| 1 |
var e,t,n,r,i,o,a,s,l,u,h,d,p,f,g,m,O,A,y,v,b,x,w,k,S,T,$,_,C,Q,P,E,R,B,I,L,D,M,N,X,F,U,z,q,V,W,j,Y,Z,G,H,K,J,ee,te,ne,re,ie,oe,ae,se,le,ce,ue,he,de,pe,fe,ge,me,Oe,Ae,ye,ve,be,xe,we,ke,Se,Te,$e,_e,Ce,Qe,Pe,Ee,Re,Be,Ie,Le,De,Me,Ne,Xe,Fe,Ue,ze,qe,Ve,We,je,Ye,Ze,Ge,He,Ke,Je,et,tt,nt,rt,it,ot,at,st,lt,ct,ut,ht,dt,pt,ft,gt,mt,Ot,At,yt,vt,bt,xt,wt,kt,St,Tt,$t,_t,Ct,Qt,Pt,Et,Rt,Bt,It,Lt,Dt,Mt,Nt,Xt,Ft,Ut,zt,qt,Vt,Wt,jt,Yt,Zt,Gt,Ht,Kt,Jt,en,tn,nn,rn,on,an,sn,ln,cn,un,hn,dn,pn,fn,gn,mn,On,An,yn,vn,bn,xn,wn,kn,Sn,Tn,$n,_n,Cn,Qn,Pn,En,Rn,Bn,In,Ln,Dn,Mn,Nn,Xn,Fn,Un,zn,qn,Vn,Wn,jn,Yn,Zn,Gn,Hn=Object.defineProperty,Kn=e=>{throw TypeError(e)},Jn=(e,t,n)=>((e,t,n)=>t in e?Hn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),er=(e,t,n)=>t.has(e)||Kn("Cannot "+n),tr=(e,t,n)=>(er(e,t,"read from private field"),n?n.call(e):t.get(e)),nr=(e,t,n)=>t.has(e)?Kn("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),rr=(e,t,n,r)=>(er(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);function ir(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}const or={},ar=[],sr=()=>{},lr=()=>!1,cr=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ur=e=>e.startsWith("onUpdate:"),hr=Object.assign,dr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},pr=Object.prototype.hasOwnProperty,fr=(e,t)=>pr.call(e,t),gr=Array.isArray,mr=e=>"[object Map]"===Tr(e),Or=e=>"[object Set]"===Tr(e),Ar=e=>"[object Date]"===Tr(e),yr=e=>"[object RegExp]"===Tr(e),vr=e=>"function"==typeof e,br=e=>"string"==typeof e,xr=e=>"symbol"==typeof e,wr=e=>null!==e&&"object"==typeof e,kr=e=>(wr(e)||vr(e))&&vr(e.then)&&vr(e.catch),Sr=Object.prototype.toString,Tr=e=>Sr.call(e),$r=e=>Tr(e).slice(8,-1),_r=e=>"[object Object]"===Tr(e),Cr=e=>br(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,Qr=ir(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pr=ir("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Er=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Rr=/-\w/g,Br=Er(e=>e.replace(Rr,e=>e.slice(1).toUpperCase())),Ir=/\B([A-Z])/g,Lr=Er(e=>e.replace(Ir,"-$1").toLowerCase()),Dr=Er(e=>e.charAt(0).toUpperCase()+e.slice(1)),Mr=Er(e=>e?`on${Dr(e)}`:""),Nr=(e,t)=>!Object.is(e,t),Xr=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Fr=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Ur=e=>{const t=parseFloat(e);return isNaN(t)?e:t},zr=e=>{const t=br(e)?Number(e):NaN;return isNaN(t)?e:t};let qr;const Vr=()=>qr||(qr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}),Wr=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;const jr={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"CACHED",[-2]:"BAIL"},Yr={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},Zr=ir("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol"),Gr=Zr;function Hr(e,t=0,n=e.length){if((t=Math.max(0,Math.min(t,e.length)))>(n=Math.max(0,Math.min(n,e.length))))return"";let r=e.split(/(\r?\n)/);const i=r.filter((e,t)=>t%2==1);r=r.filter((e,t)=>t%2==0);let o=0;const a=[];for(let s=0;s<r.length;s++)if(o+=r[s].length+(i[s]&&i[s].length||0),o>=t){for(let e=s-2;e<=s+2||n>o;e++){if(e<0||e>=r.length)continue;const l=e+1;a.push(`${l}${" ".repeat(Math.max(3-String(l).length,0))}| ${r[e]}`);const c=r[e].length,u=i[e]&&i[e].length||0;if(e===s){const e=t-(o-(c+u)),r=Math.max(1,n>o?c-e:n-t);a.push(" | "+" ".repeat(e)+"^".repeat(r))}else if(e>s){if(n>o){const e=Math.max(Math.min(n-o,c),1);a.push(" | "+"^".repeat(e))}o+=c+u}}break}return a.join("\n")}function Kr(e){if(gr(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=br(r)?ni(r):Kr(r);if(i)for(const e in i)t[e]=i[e]}return t}if(br(e)||wr(e))return e}const Jr=/;(?![^(]*\))/g,ei=/:([^]+)/,ti=/\/\*[^]*?\*\//g;function ni(e){const t={};return e.replace(ti,"").split(Jr).forEach(e=>{if(e){const n=e.split(ei);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ri(e){let t="";if(br(e))t=e;else if(gr(e))for(let n=0;n<e.length;n++){const r=ri(e[n]);r&&(t+=r+" ")}else if(wr(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ii(e){if(!e)return null;let{class:t,style:n}=e;return t&&!br(t)&&(e.class=ri(t)),n&&(e.style=Kr(n)),e}const oi=ir("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),ai=ir("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,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,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),si=ir("annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"),li=ir("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),ci="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ui=ir(ci),hi=ir(ci+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function di(e){return!!e||""===e}const pi=/[>/="'\u0009\u000a\u000c\u0020]/,fi={};const gi=ir("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),mi=ir("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan"),Oi=ir("accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns");const Ai=/["'&<>]/;const yi=/^-?>|<!--|-->|--!>|<!-$/g;const vi=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function bi(e,t){if(e===t)return!0;let n=Ar(e),r=Ar(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=xr(e),r=xr(t),n||r)return e===t;if(n=gr(e),r=gr(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=bi(e[r],t[r]);return n}(e,t);if(n=wr(e),r=wr(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!bi(e[n],t[n]))return!1}}return String(e)===String(t)}function xi(e,t){return e.findIndex(e=>bi(e,t))}const wi=e=>!(!e||!0!==e.__v_isRef),ki=e=>br(e)?e:null==e?"":gr(e)||wr(e)&&(e.toString===Sr||!vr(e.toString))?wi(e)?ki(e.value):JSON.stringify(e,Si,2):String(e),Si=(e,t)=>wi(t)?Si(e,t.value):mr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Ti(t,r)+" =>"]=n,e),{})}:Or(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ti(e))}:xr(t)?Ti(t):!wr(t)||gr(t)||_r(t)?t:String(t),Ti=(e,t="")=>{var n;return xr(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};function $i(e){return null==e?"initial":"string"==typeof e?""===e?" ":e:String(e)}const _i=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:ar,EMPTY_OBJ:or,NO:lr,NOOP:sr,PatchFlagNames:jr,PatchFlags:{TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",CACHED:-1,"-1":"CACHED",BAIL:-2,"-2":"BAIL"},ShapeFlags:{ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},SlotFlags:{STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},camelize:Br,capitalize:Dr,cssVarNameEscapeSymbolsRE:vi,def:Fr,escapeHtml:function(e){const t=""+e,n=Ai.exec(t);if(!n)return t;let r,i,o="",a=0;for(i=n.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}a!==i&&(o+=t.slice(a,i)),a=i+1,o+=r}return a!==i?o+t.slice(a,i):o},escapeHtmlComment:function(e){return e.replace(yi,"")},extend:hr,genCacheKey:function(e,t){return e+JSON.stringify(t,(e,t)=>"function"==typeof t?t.toString():t)},genPropsAccessExp:function(e){return Wr.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`},generateCodeFrame:Hr,getEscapedCssVarName:function(e,t){return e.replace(vi,e=>t?'"'===e?'\\\\\\"':`\\\\${e}`:`\\${e}`)},getGlobalThis:Vr,hasChanged:Nr,hasOwn:fr,hyphenate:Lr,includeBooleanAttr:di,invokeArrayFns:Xr,isArray:gr,isBooleanAttr:hi,isBuiltInDirective:Pr,isDate:Ar,isFunction:vr,isGloballyAllowed:Zr,isGloballyWhitelisted:Gr,isHTMLTag:oi,isIntegerKey:Cr,isKnownHtmlAttr:gi,isKnownMathMLAttr:Oi,isKnownSvgAttr:mi,isMap:mr,isMathMLTag:si,isModelListener:ur,isObject:wr,isOn:cr,isPlainObject:_r,isPromise:kr,isRegExp:yr,isRenderableAttrValue:function(e){if(null==e)return!1;const t=typeof e;return"string"===t||"number"===t||"boolean"===t},isReservedProp:Qr,isSSRSafeAttrName:function(e){if(fi.hasOwnProperty(e))return fi[e];const t=pi.test(e);return fi[e]=!t},isSVGTag:ai,isSet:Or,isSpecialBooleanAttr:ui,isString:br,isSymbol:xr,isVoidTag:li,looseEqual:bi,looseIndexOf:xi,looseToNumber:Ur,makeMap:ir,normalizeClass:ri,normalizeCssVarValue:$i,normalizeProps:ii,normalizeStyle:Kr,objectToString:Sr,parseStringStyle:ni,propsToAttrMap:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},remove:dr,slotFlagsText:Yr,stringifyStyle:function(e){if(!e)return"";if(br(e))return e;let t="";for(const n in e){const r=e[n];if(br(r)||"number"==typeof r){t+=`${n.startsWith("--")?n:Lr(n)}:${r};`}}return t},toDisplayString:ki,toHandlerKey:Mr,toNumber:zr,toRawType:$r,toTypeString:Tr},Symbol.toStringTag,{value:"Module"}));let Ci,Qi;class Pi{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Ci,!e&&Ci&&(this.index=(Ci.scopes||(Ci.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=Ci;try{return Ci=this,e()}finally{Ci=t}}}on(){1===++this._on&&(this.prevScope=Ci,Ci=this)}off(){this._on>0&&0===--this._on&&(Ci=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}function Ei(e){return new Pi(e)}function Ri(){return Ci}function Bi(e,t=!1){Ci&&Ci.cleanups.push(e)}const Ii=new WeakSet;class Li{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ci&&Ci.active&&Ci.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,Ii.has(this)&&(Ii.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||Xi(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,Ji(this),zi(this);const e=Qi,t=Zi;Qi=this,Zi=!0;try{return this.fn()}finally{qi(this),Qi=e,Zi=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)ji(e);this.deps=this.depsTail=void 0,Ji(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?Ii.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Vi(this)&&this.run()}get dirty(){return Vi(this)}}let Di,Mi,Ni=0;function Xi(e,t=!1){if(e.flags|=8,t)return e.next=Mi,void(Mi=e);e.next=Di,Di=e}function Fi(){Ni++}function Ui(){if(--Ni>0)return;if(Mi){let e=Mi;for(Mi=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Di;){let n=Di;for(Di=void 0;n;){const r=n.next;if(n.next=void 0,n.flags&=-9,1&n.flags)try{n.trigger()}catch(t){e||(e=t)}n=r}}if(e)throw e}function zi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function qi(e){let t,n=e.depsTail,r=n;for(;r;){const e=r.prevDep;-1===r.version?(r===n&&(n=e),ji(r),Yi(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Vi(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Wi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Wi(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===eo)return;if(e.globalVersion=eo,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!Vi(e)))return;e.flags|=2;const t=e.dep,n=Qi,r=Zi;Qi=e,Zi=!0;try{zi(e);const n=e.fn(e._value);(0===t.version||Nr(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(i){throw t.version++,i}finally{Qi=n,Zi=r,qi(e),e.flags&=-3}}function ji(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)ji(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function Yi(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Zi=!0;const Gi=[];function Hi(){Gi.push(Zi),Zi=!1}function Ki(){const e=Gi.pop();Zi=void 0===e||e}function Ji(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=Qi;Qi=void 0;try{t()}finally{Qi=e}}}let eo=0,to=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class no{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Qi||!Zi||Qi===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==Qi)t=this.activeLink=new to(Qi,this),Qi.deps?(t.prevDep=Qi.depsTail,Qi.depsTail.nextDep=t,Qi.depsTail=t):Qi.deps=Qi.depsTail=t,ro(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=Qi.depsTail,t.nextDep=void 0,Qi.depsTail.nextDep=t,Qi.depsTail=t,Qi.deps===t&&(Qi.deps=e)}return t}trigger(e){this.version++,eo++,this.notify(e)}notify(e){Fi();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Ui()}}}function ro(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)ro(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const io=new WeakMap,oo=Symbol(""),ao=Symbol(""),so=Symbol("");function lo(e,t,n){if(Zi&&Qi){let t=io.get(e);t||io.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new no),r.map=t,r.key=n),r.track()}}function co(e,t,n,r,i,o){const a=io.get(e);if(!a)return void eo++;const s=e=>{e&&e.trigger()};if(Fi(),"clear"===t)a.forEach(s);else{const i=gr(e),o=i&&Cr(n);if(i&&"length"===n){const e=Number(r);a.forEach((t,n)=>{("length"===n||n===so||!xr(n)&&n>=e)&&s(t)})}else switch((void 0!==n||a.has(void 0))&&s(a.get(n)),o&&s(a.get(so)),t){case"add":i?o&&s(a.get("length")):(s(a.get(oo)),mr(e)&&s(a.get(ao)));break;case"delete":i||(s(a.get(oo)),mr(e)&&s(a.get(ao)));break;case"set":mr(e)&&s(a.get(oo))}}Ui()}function uo(e){const t=Jo(e);return t===e?t:(lo(t,0,so),Ho(e)?t:t.map(ta))}function ho(e){return lo(e=Jo(e),0,so),e}function po(e,t){return Go(e)?na(Zo(e)?ta(t):t):ta(t)}const fo={__proto__:null,[Symbol.iterator](){return go(this,Symbol.iterator,e=>po(this,e))},concat(...e){return uo(this).concat(...e.map(e=>gr(e)?uo(e):e))},entries(){return go(this,"entries",e=>(e[1]=po(this,e[1]),e))},every(e,t){return Oo(this,"every",e,t,void 0,arguments)},filter(e,t){return Oo(this,"filter",e,t,e=>e.map(e=>po(this,e)),arguments)},find(e,t){return Oo(this,"find",e,t,e=>po(this,e),arguments)},findIndex(e,t){return Oo(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Oo(this,"findLast",e,t,e=>po(this,e),arguments)},findLastIndex(e,t){return Oo(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Oo(this,"forEach",e,t,void 0,arguments)},includes(...e){return yo(this,"includes",e)},indexOf(...e){return yo(this,"indexOf",e)},join(e){return uo(this).join(e)},lastIndexOf(...e){return yo(this,"lastIndexOf",e)},map(e,t){return Oo(this,"map",e,t,void 0,arguments)},pop(){return vo(this,"pop")},push(...e){return vo(this,"push",e)},reduce(e,...t){return Ao(this,"reduce",e,t)},reduceRight(e,...t){return Ao(this,"reduceRight",e,t)},shift(){return vo(this,"shift")},some(e,t){return Oo(this,"some",e,t,void 0,arguments)},splice(...e){return vo(this,"splice",e)},toReversed(){return uo(this).toReversed()},toSorted(e){return uo(this).toSorted(e)},toSpliced(...e){return uo(this).toSpliced(...e)},unshift(...e){return vo(this,"unshift",e)},values(){return go(this,"values",e=>po(this,e))}};function go(e,t,n){const r=ho(e),i=r[t]();return r===e||Ho(e)||(i._next=i.next,i.next=()=>{const e=i._next();return e.done||(e.value=n(e.value)),e}),i}const mo=Array.prototype;function Oo(e,t,n,r,i,o){const a=ho(e),s=a!==e&&!Ho(e),l=a[t];if(l!==mo[t]){const t=l.apply(e,o);return s?ta(t):t}let c=n;a!==e&&(s?c=function(t,r){return n.call(this,po(e,t),r,e)}:n.length>2&&(c=function(t,r){return n.call(this,t,r,e)}));const u=l.call(a,c,r);return s&&i?i(u):u}function Ao(e,t,n,r){const i=ho(e);let o=n,a=!1;i!==e&&(i!==e&&!Ho(e)?(a=0===r.length,o=function(t,r,i){return a&&(a=!1,t=po(e,t)),n.call(this,t,po(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));const s=i[t](o,...r);return a?po(e,s):s}function yo(e,t,n){const r=Jo(e);lo(r,0,so);const i=r[t](...n);return-1!==i&&!1!==i||!Ko(n[0])?i:(n[0]=Jo(n[0]),r[t](...n))}function vo(e,t,n=[]){Hi(),Fi();const r=Jo(e)[t].apply(e,n);return Ui(),Ki(),r}const bo=ir("__proto__,__v_isRef,__isVue"),xo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(xr));function wo(e){xr(e)||(e=String(e));const t=Jo(this);return lo(t,0,e),t.hasOwnProperty(e)}class ko{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const r=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return i;if("__v_raw"===t)return n===(r?i?zo:Uo:i?Fo:Xo).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=gr(e);if(!r){let e;if(o&&(e=fo[t]))return e;if("hasOwnProperty"===t)return wo}const a=Reflect.get(e,t,ra(e)?e:n);if(xr(t)?xo.has(t):bo(t))return a;if(r||lo(e,0,t),i)return a;if(ra(a)){const e=o&&Cr(t)?a:a.value;return r&&wr(e)?Wo(e):e}return wr(a)?r?Wo(a):qo(a):a}}class So extends ko{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t];const o=gr(e)&&Cr(t);if(!this._isShallow){const e=Go(i);if(Ho(n)||Go(n)||(i=Jo(i),n=Jo(n)),!o&&ra(i)&&!ra(n))return e||(i.value=n),!0}const a=o?Number(t)<e.length:fr(e,t),s=Reflect.set(e,t,n,ra(e)?e:r);return e===Jo(r)&&(a?Nr(n,i)&&co(e,"set",t,n):co(e,"add",t,n)),s}deleteProperty(e,t){const n=fr(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&co(e,"delete",t,void 0),r}has(e,t){const n=Reflect.has(e,t);return xr(t)&&xo.has(t)||lo(e,0,t),n}ownKeys(e){return lo(e,0,gr(e)?"length":oo),Reflect.ownKeys(e)}}class To extends ko{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const $o=new So,_o=new To,Co=new So(!0),Qo=new To(!0),Po=e=>e,Eo=e=>Reflect.getPrototypeOf(e);function Ro(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function Bo(e,t){const n={get(n){const r=this.__v_raw,i=Jo(r),o=Jo(n);e||(Nr(n,o)&&lo(i,0,n),lo(i,0,o));const{has:a}=Eo(i),s=t?Po:e?na:ta;return a.call(i,n)?s(r.get(n)):a.call(i,o)?s(r.get(o)):void(r!==i&&r.get(n))},get size(){const t=this.__v_raw;return!e&&lo(Jo(t),0,oo),t.size},has(t){const n=this.__v_raw,r=Jo(n),i=Jo(t);return e||(Nr(t,i)&&lo(r,0,t),lo(r,0,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){const i=this,o=i.__v_raw,a=t?Po:e?na:ta;return!e&&lo(Jo(o),0,oo),o.forEach((e,t)=>n.call(r,a(e),a(t),i))}};hr(n,e?{add:Ro("add"),set:Ro("set"),delete:Ro("delete"),clear:Ro("clear")}:{add(e){const n=Jo(this),r=Eo(n),i=Jo(e),o=t||Ho(e)||Go(e)?e:i;return r.has.call(n,o)||Nr(e,o)&&r.has.call(n,e)||Nr(i,o)&&r.has.call(n,i)||(n.add(o),co(n,"add",o,o)),this},set(e,n){t||Ho(n)||Go(n)||(n=Jo(n));const r=Jo(this),{has:i,get:o}=Eo(r);let a=i.call(r,e);a||(e=Jo(e),a=i.call(r,e));const s=o.call(r,e);return r.set(e,n),a?Nr(n,s)&&co(r,"set",e,n):co(r,"add",e,n),this},delete(e){const t=Jo(this),{has:n,get:r}=Eo(t);let i=n.call(t,e);i||(e=Jo(e),i=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return i&&co(t,"delete",e,void 0),o},clear(){const e=Jo(this),t=0!==e.size,n=e.clear();return t&&co(e,"clear",void 0,void 0),n}});return["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=function(e,t,n){return function(...r){const i=this.__v_raw,o=Jo(i),a=mr(o),s="entries"===e||e===Symbol.iterator&&a,l="keys"===e&&a,c=i[e](...r),u=n?Po:t?na:ta;return!t&&lo(o,0,l?ao:oo),hr(Object.create(c),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}}})}}(r,e,t)}),n}function Io(e,t){const n=Bo(e,t);return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(fr(n,r)&&r in t?n:t,r,i)}const Lo={get:Io(!1,!1)},Do={get:Io(!1,!0)},Mo={get:Io(!0,!1)},No={get:Io(!0,!0)},Xo=new WeakMap,Fo=new WeakMap,Uo=new WeakMap,zo=new WeakMap;function qo(e){return Go(e)?e:Yo(e,!1,$o,Lo,Xo)}function Vo(e){return Yo(e,!1,Co,Do,Fo)}function Wo(e){return Yo(e,!0,_o,Mo,Uo)}function jo(e){return Yo(e,!0,Qo,No,zo)}function Yo(e,t,n,r,i){if(!wr(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=(a=e).__v_skip||!Object.isExtensible(a)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}($r(a));var a;if(0===o)return e;const s=i.get(e);if(s)return s;const l=new Proxy(e,2===o?r:n);return i.set(e,l),l}function Zo(e){return Go(e)?Zo(e.__v_raw):!(!e||!e.__v_isReactive)}function Go(e){return!(!e||!e.__v_isReadonly)}function Ho(e){return!(!e||!e.__v_isShallow)}function Ko(e){return!!e&&!!e.__v_raw}function Jo(e){const t=e&&e.__v_raw;return t?Jo(t):e}function ea(e){return!fr(e,"__v_skip")&&Object.isExtensible(e)&&Fr(e,"__v_skip",!0),e}const ta=e=>wr(e)?qo(e):e,na=e=>wr(e)?Wo(e):e;function ra(e){return!!e&&!0===e.__v_isRef}function ia(e){return aa(e,!1)}function oa(e){return aa(e,!0)}function aa(e,t){return ra(e)?e:new sa(e,t)}class sa{constructor(e,t){this.dep=new no,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Jo(e),this._value=t?e:ta(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||Ho(e)||Go(e);Nr(e=n?e:Jo(e),t)&&(this._rawValue=e,this._value=n?e:ta(e),this.dep.trigger())}}function la(e){e.dep&&e.dep.trigger()}function ca(e){return ra(e)?e.value:e}function ua(e){return vr(e)?e():ca(e)}const ha={get:(e,t,n)=>"__v_raw"===t?e:ca(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return ra(i)&&!ra(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function da(e){return Zo(e)?e:new Proxy(e,ha)}class pa{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new no,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}}function fa(e){return new pa(e)}function ga(e){const t=gr(e)?new Array(e.length):{};for(const n in e)t[n]=ya(e,n);return t}class ma{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=xr(t)?t:String(t),this._raw=Jo(e);let r=!0,i=e;if(!gr(e)||xr(this._key)||!Cr(this._key))do{r=!Ko(i)||Ho(i)}while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=ca(e)),this._value=void 0===e?this._defaultValue:e}set value(e){if(this._shallow&&ra(this._raw[this._key])){const t=this._object[this._key];if(ra(t))return void(t.value=e)}this._object[this._key]=e}get dep(){return function(e,t){const n=io.get(e);return n&&n.get(t)}(this._raw,this._key)}}class Oa{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Aa(e,t,n){return ra(e)?e:vr(e)?new Oa(e):wr(e)&&arguments.length>1?ya(e,t,n):ia(e)}function ya(e,t,n){return new ma(e,t,n)}class va{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new no(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=eo-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags)&&Qi!==this)return Xi(this,!0),!0}get value(){const e=this.dep.track();return Wi(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function ba(e,t,n=!1){let r,i;vr(e)?r=e:(r=e.get,i=e.set);return new va(r,i,n)}const xa={},wa=new WeakMap;let ka;function Sa(e,t=!1,n=ka){if(n){let t=wa.get(n);t||wa.set(n,t=[]),t.push(e)}}function Ta(e,t=1/0,n){if(t<=0||!wr(e)||e.__v_skip)return e;if(((n=n||new Map).get(e)||0)>=t)return e;if(n.set(e,t),t--,ra(e))Ta(e.value,t,n);else if(gr(e))for(let r=0;r<e.length;r++)Ta(e[r],t,n);else if(Or(e)||mr(e))e.forEach(e=>{Ta(e,t,n)});else if(_r(e)){for(const r in e)Ta(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Ta(e[r],t,n)}return e}const $a=[];const _a={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Ca(e,t,n,r){try{return r?e(...r):e()}catch(i){Pa(i,t,n)}}function Qa(e,t,n,r){if(vr(e)){const i=Ca(e,t,n,r);return i&&kr(i)&&i.catch(e=>{Pa(e,t,n)}),i}if(gr(e)){const i=[];for(let o=0;o<e.length;o++)i.push(Qa(e[o],t,n,r));return i}}function Pa(e,t,n,r=!0){t&&t.vnode;const{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||or;if(t){let r=t.parent;const o=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,o,a))return;r=r.parent}if(i)return Hi(),Ca(i,null,10,[e,o,a]),void Ki()}!function(e,t,n,r=!0,i=!1){if(i)throw e}(e,0,0,r,o)}const Ea=[];let Ra=-1;const Ba=[];let Ia=null,La=0;const Da=Promise.resolve();let Ma=null;function Na(e){const t=Ma||Da;return e?t.then(this?e.bind(this):e):t}function Xa(e){if(!(1&e.flags)){const t=Va(e),n=Ea[Ea.length-1];!n||!(2&e.flags)&&t>=Va(n)?Ea.push(e):Ea.splice(function(e){let t=Ra+1,n=Ea.length;for(;t<n;){const r=t+n>>>1,i=Ea[r],o=Va(i);o<e||o===e&&2&i.flags?t=r+1:n=r}return t}(t),0,e),e.flags|=1,Fa()}}function Fa(){Ma||(Ma=Da.then(Wa))}function Ua(e){gr(e)?Ba.push(...e):Ia&&-1===e.id?Ia.splice(La+1,0,e):1&e.flags||(Ba.push(e),e.flags|=1),Fa()}function za(e,t,n=Ra+1){for(;n<Ea.length;n++){const t=Ea[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;Ea.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function qa(e){if(Ba.length){const e=[...new Set(Ba)].sort((e,t)=>Va(e)-Va(t));if(Ba.length=0,Ia)return void Ia.push(...e);for(Ia=e,La=0;La<Ia.length;La++){const e=Ia[La];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}Ia=null,La=0}}const Va=e=>null==e.id?2&e.flags?-1:1/0:e.id;function Wa(e){try{for(Ra=0;Ra<Ea.length;Ra++){const e=Ea[Ra];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),Ca(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;Ra<Ea.length;Ra++){const e=Ea[Ra];e&&(e.flags&=-2)}Ra=-1,Ea.length=0,qa(),Ma=null,(Ea.length||Ba.length)&&Wa()}}let ja,Ya=[];let Za=null,Ga=null;function Ha(e){const t=Za;return Za=e,Ga=e&&e.type.__scopeId||null,t}function Ka(e,t=Za,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&au(-1);const i=Ha(t);let o;try{o=e(...n)}finally{Ha(i),r._d&&au(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Ja(e,t){if(null===Za)return e;const n=qu(Za),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[e,o,a,s=or]=t[i];e&&(vr(e)&&(e={mounted:e,updated:e}),e.deep&&Ta(o),r.push({dir:e,instance:n,value:o,oldValue:void 0,arg:a,modifiers:s}))}return e}function es(e,t,n,r){const i=e.dirs,o=t&&t.dirs;for(let a=0;a<i.length;a++){const s=i[a];o&&(s.oldValue=o[a].value);let l=s.dir[r];l&&(Hi(),Qa(l,n,8,[e.el,s,e,t]),Ki())}}function ts(e,t){if(Cu){let n=Cu.provides;const r=Cu.parent&&Cu.parent.provides;r===n&&(n=Cu.provides=Object.create(r)),n[e]=t}}function ns(e,t,n=!1){const r=Qu();if(r||ac){let i=ac?ac._context.provides:r?null==r.parent||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&vr(t)?t.call(r&&r.proxy):t}}function rs(){return!(!Qu()&&!ac)}const is=Symbol.for("v-scx"),as=()=>ns(is);function ss(e,t){return us(e,null,t)}function ls(e,t){return us(e,null,{flush:"sync"})}function cs(e,t,n){return us(e,t,n)}function us(e,t,n=or){const{immediate:r,deep:i,flush:o,once:a}=n,s=hr({},n),l=t&&r||!t&&"post"!==o;let c;if(Mu)if("sync"===o){const e=as();c=e.__watcherHandles||(e.__watcherHandles=[])}else if(!l){const e=()=>{};return e.stop=sr,e.resume=sr,e.pause=sr,e}const u=Cu;s.call=(e,t,n)=>Qa(e,u,t,n);let h=!1;"post"===o?s.scheduler=e=>{Ec(e,u&&u.suspense)}:"sync"!==o&&(h=!0,s.scheduler=(e,t)=>{t?e():Xa(e)}),s.augmentJob=e=>{t&&(e.flags|=4),h&&(e.flags|=2,u&&(e.id=u.uid,e.i=u))};const d=function(e,t,n=or){const{immediate:r,deep:i,once:o,scheduler:a,augmentJob:s,call:l}=n,c=e=>i?e:Ho(e)||!1===i||0===i?Ta(e,1):Ta(e);let u,h,d,p,f=!1,g=!1;if(ra(e)?(h=()=>e.value,f=Ho(e)):Zo(e)?(h=()=>c(e),f=!0):gr(e)?(g=!0,f=e.some(e=>Zo(e)||Ho(e)),h=()=>e.map(e=>ra(e)?e.value:Zo(e)?c(e):vr(e)?l?l(e,2):e():void 0)):h=vr(e)?t?l?()=>l(e,2):e:()=>{if(d){Hi();try{d()}finally{Ki()}}const t=ka;ka=u;try{return l?l(e,3,[p]):e(p)}finally{ka=t}}:sr,t&&i){const e=h,t=!0===i?1/0:i;h=()=>Ta(e(),t)}const m=Ri(),O=()=>{u.stop(),m&&m.active&&dr(m.effects,u)};if(o&&t){const e=t;t=(...t)=>{e(...t),O()}}let A=g?new Array(e.length).fill(xa):xa;const y=e=>{if(1&u.flags&&(u.dirty||e))if(t){const e=u.run();if(i||f||(g?e.some((e,t)=>Nr(e,A[t])):Nr(e,A))){d&&d();const n=ka;ka=u;try{const n=[e,A===xa?void 0:g&&A[0]===xa?[]:A,p];A=e,l?l(t,3,n):t(...n)}finally{ka=n}}}else u.run()};return s&&s(y),u=new Li(h),u.scheduler=a?()=>a(y,!1):y,p=e=>Sa(e,!1,u),d=u.onStop=()=>{const e=wa.get(u);if(e){if(l)l(e,4);else for(const t of e)t();wa.delete(u)}},t?r?y(!0):A=u.run():a?a(y.bind(null,!0),!0):u.run(),O.pause=u.pause.bind(u),O.resume=u.resume.bind(u),O.stop=O,O}(e,t,s);return Mu&&(c?c.push(d):l&&d()),d}function hs(e,t,n){const r=this.proxy,i=br(e)?e.includes(".")?ds(r,e):()=>r[e]:e.bind(r,r);let o;vr(t)?o=t:(o=t.handler,n=t);const a=Ru(this),s=us(i,o.bind(r),n);return a(),s}function ds(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}const ps=new WeakMap,fs=Symbol("_vte"),gs=e=>e.__isTeleport,ms=e=>e&&(e.disabled||""===e.disabled),Os=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,As=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,ys=(e,t)=>{const n=e&&e.to;if(br(n)){if(t){return t(n)}return null}return n},vs={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,o,a,s,l,c){const{mc:u,pc:h,pbc:d,o:{insert:p,querySelector:f,createText:g,createComment:m}}=c,O=ms(t.props);let{dynamicChildren:A}=t;const y=(e,t,n)=>{16&e.shapeFlag&&u(e.children,t,n,i,o,a,s,l)},v=(e=t)=>{const n=ms(e.props),r=e.target=ys(e.props,f),o=ks(r,e,g,p);r&&("svg"!==a&&Os(r)?a="svg":"mathml"!==a&&As(r)&&(a="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(y(e,r,o),ws(e,!1)))},b=e=>{const t=()=>{ps.get(e)===t&&(ps.delete(e),ms(e.props)&&(y(e,n,e.anchor),ws(e,!0)),v(e))};ps.set(e,t),Ec(t,o)};if(null==e){const e=t.el=g(""),i=t.anchor=g("");if(p(e,n,r),p(i,n,r),(x=t.props)&&(x.defer||""===x.defer)||o&&o.pendingBranch)return void b(t);O&&(y(t,n,i),ws(t,!0)),v()}else{t.el=e.el;const r=t.anchor=e.anchor,u=ps.get(e);if(u)return u.flags|=8,ps.delete(e),void b(t);t.targetStart=e.targetStart;const p=t.target=e.target,g=t.targetAnchor=e.targetAnchor,m=ms(e.props),y=m?n:p,v=m?r:g;if("svg"===a||Os(p)?a="svg":("mathml"===a||As(p))&&(a="mathml"),A?(d(e.dynamicChildren,A,y,i,o,a,s),Nc(e,t,!0)):l||h(e,t,y,v,i,o,a,s,!1),O)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):bs(t,n,r,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=ys(t.props,f);e&&bs(t,e,null,c,0)}else m&&bs(t,p,g,c,1);ws(t,O)}var x},remove(e,t,n,{um:r,o:{remove:i}},o){const{shapeFlag:a,children:s,anchor:l,targetStart:c,targetAnchor:u,target:h,props:d}=e;let p=o||!ms(d);const f=ps.get(e);if(f&&(f.flags|=8,ps.delete(e),p=!1),h&&(i(c),i(u)),o&&i(l),16&a)for(let g=0;g<s.length;g++){const e=s[g];r(e,t,n,p,!!e.dynamicChildren)}},move:bs,hydrate:function(e,t,n,r,i,o,{o:{nextSibling:a,parentNode:s,querySelector:l,insert:c,createText:u}},h){function d(e,n){let r=n;for(;r;){if(r&&8===r.nodeType)if("teleport start anchor"===r.data)t.targetStart=r;else if("teleport anchor"===r.data){t.targetAnchor=r,e._lpa=t.targetAnchor&&a(t.targetAnchor);break}r=a(r)}}function p(e,t){t.anchor=h(a(e),t,s(e),n,r,i,o)}const f=t.target=ys(t.props,l),g=ms(t.props);if(f){const l=f._lpa||f.firstChild;16&t.shapeFlag&&(g?(p(e,t),d(f,l),t.targetAnchor||ks(f,t,u,c,s(e)===f?e:null)):(t.anchor=a(e),d(f,l),t.targetAnchor||ks(f,t,u,c),h(l&&a(l),t,f,n,r,i,o))),ws(t,g)}else g&&16&t.shapeFlag&&(p(e,t),t.targetStart=e,t.targetAnchor=a(e));return t.anchor&&a(t.anchor)}};function bs(e,t,n,{o:{insert:r},m:i},o=2){0===o&&r(e.targetAnchor,t,n);const{el:a,anchor:s,shapeFlag:l,children:c,props:u}=e,h=2===o;if(h&&r(a,t,n),(!h||ms(u))&&16&l)for(let d=0;d<c.length;d++)i(c[d],t,n,2);h&&r(s,t,n)}const xs=vs;function ws(e,t){const n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)1===r.nodeType&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function ks(e,t,n,r,i=null){const o=t.targetStart=n(""),a=t.targetAnchor=n("");return o[fs]=a,e&&(r(o,e,i),r(a,e,i)),a}const Ss=Symbol("_leaveCb"),Ts=Symbol("_enterCb");function $s(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return gl(()=>{e.isMounted=!0}),Al(()=>{e.isUnmounting=!0}),e}const _s=[Function,Array],Cs={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:_s,onEnter:_s,onAfterEnter:_s,onEnterCancelled:_s,onBeforeLeave:_s,onLeave:_s,onAfterLeave:_s,onLeaveCancelled:_s,onBeforeAppear:_s,onAppear:_s,onAfterAppear:_s,onAppearCancelled:_s},Qs=e=>{const t=e.subTree;return t.component?Qs(t.component):t};function Ps(e){let t=e[0];if(e.length>1)for(const n of e)if(n.type!==Jc){t=n;break}return t}const Es={name:"BaseTransition",props:Cs,setup(e,{slots:t}){const n=Qu(),r=$s();return()=>{const i=t.default&&Ms(t.default(),!0);if(!i||!i.length)return;const o=Ps(i),a=Jo(e),{mode:s}=a;if(r.isLeaving)return Is(o);const l=Ls(o);if(!l)return Is(o);let c=Bs(l,a,r,n,e=>c=e);l.type!==Jc&&Ds(l,c);let u=n.subTree&&Ls(n.subTree);if(u&&u.type!==Jc&&!hu(u,l)&&Qs(n).type!==Jc){let e=Bs(u,a,r,n);if(Ds(u,e),"out-in"===s&&l.type!==Jc)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,8&n.job.flags||n.update(),delete e.afterLeave,u=void 0},Is(o);"in-out"===s&&l.type!==Jc?e.delayLeave=(e,t,n)=>{Rs(r,u)[String(u.key)]=u,e[Ss]=()=>{t(),e[Ss]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{n(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return o}}};function Rs(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Bs(e,t,n,r,i){const{appear:o,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:h,onBeforeLeave:d,onLeave:p,onAfterLeave:f,onLeaveCancelled:g,onBeforeAppear:m,onAppear:O,onAfterAppear:A,onAppearCancelled:y}=t,v=String(e.key),b=Rs(n,e),x=(e,t)=>{e&&Qa(e,r,9,t)},w=(e,t)=>{const n=t[1];x(e,t),gr(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},k={mode:a,persisted:s,beforeEnter(t){let r=l;if(!n.isMounted){if(!o)return;r=m||l}t[Ss]&&t[Ss](!0);const i=b[v];i&&hu(e,i)&&i.el[Ss]&&i.el[Ss](),x(r,[t])},enter(t){if(b[v]===e)return;let r=c,i=u,a=h;if(!n.isMounted){if(!o)return;r=O||c,i=A||u,a=y||h}let s=!1;t[Ts]=e=>{s||(s=!0,x(e?a:i,[t]),k.delayedLeave&&k.delayedLeave(),t[Ts]=void 0)};const l=t[Ts].bind(null,!1);r?w(r,[t,l]):l()},leave(t,r){const i=String(e.key);if(t[Ts]&&t[Ts](!0),n.isUnmounting)return r();x(d,[t]);let o=!1;t[Ss]=n=>{o||(o=!0,r(),x(n?g:f,[t]),t[Ss]=void 0,b[i]===e&&delete b[i])};const a=t[Ss].bind(null,!1);b[i]=e,p?w(p,[t,a]):a()},clone(e){const o=Bs(e,t,n,r,i);return i&&i(o),o}};return k}function Is(e){if(rl(e))return(e=Ou(e)).children=null,e}function Ls(e){if(!rl(e))return gs(e.type)&&e.children?Ps(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&vr(n.default))return n.default()}}function Ds(e,t){6&e.shapeFlag&&e.component?(e.transition=t,Ds(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ms(e,t=!1,n){let r=[],i=0;for(let o=0;o<e.length;o++){let a=e[o];const s=null==n?a.key:String(n)+String(null!=a.key?a.key:o);a.type===Hc?(128&a.patchFlag&&i++,r=r.concat(Ms(a.children,t,s))):(t||a.type!==Jc)&&r.push(null!=s?Ou(a,{key:s}):a)}if(i>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}function Ns(e,t){return vr(e)?(()=>hr({name:e.name},t,{setup:e}))():e}function Xs(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Fs(e,t){let n;return!(!(n=Object.getOwnPropertyDescriptor(e,t))||n.configurable)}const Us=new WeakMap;function zs(e,t,n,r,i=!1){if(gr(e))return void e.forEach((e,o)=>zs(e,t&&(gr(t)?t[o]:t),n,r,i));if(tl(r)&&!i)return void(512&r.shapeFlag&&r.type.__asyncResolved&&r.component.subTree.component&&zs(e,t,n,r.component.subTree));const o=4&r.shapeFlag?qu(r.component):r.el,a=i?null:o,{i:s,r:l}=e,c=t&&t.r,u=s.refs===or?s.refs={}:s.refs,h=s.setupState,d=Jo(h),p=h===or?lr:e=>!Fs(u,e)&&fr(d,e),f=(e,t)=>!t||!Fs(u,t);if(null!=c&&c!==l)if(qs(t),br(c))u[c]=null,p(c)&&(h[c]=null);else if(ra(c)){const e=t;f(0,e.k)&&(c.value=null),e.k&&(u[e.k]=null)}if(vr(l))Ca(l,s,12,[a,u]);else{const t=br(l),r=ra(l);if(t||r){const s=()=>{if(e.f){const n=t?p(l)?h[l]:u[l]:f()||!e.k?l.value:u[e.k];if(i)gr(n)&&dr(n,o);else if(gr(n))n.includes(o)||n.push(o);else if(t)u[l]=[o],p(l)&&(h[l]=u[l]);else{const t=[o];f(0,e.k)&&(l.value=t),e.k&&(u[e.k]=t)}}else t?(u[l]=a,p(l)&&(h[l]=a)):r&&(f(0,e.k)&&(l.value=a),e.k&&(u[e.k]=a))};if(a){const t=()=>{s(),Us.delete(e)};t.id=-1,Us.set(e,t),Ec(t,n)}else qs(e),s()}}}function qs(e){const t=Us.get(e);t&&(t.flags|=8,Us.delete(e))}let Vs=!1;const Ws=()=>{Vs||(Vs=!0)},js=e=>{if(1===e.nodeType)return(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0},Ys=e=>8===e.nodeType;function Zs(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:o,parentNode:a,remove:s,insert:l,createComment:c}}=e,u=(n,r,s,c,A,y=!1)=>{y=y||!!r.dynamicChildren;const v=Ys(n)&&"["===n.data,b=()=>f(n,r,s,c,A,v),{type:x,ref:w,shapeFlag:k,patchFlag:S}=r;let T=n.nodeType;r.el=n,-2===S&&(y=!1,r.dynamicChildren=null);let $=null;switch(x){case Kc:3!==T?""===r.children?(l(r.el=i(""),a(n),n),$=n):$=b():(n.data!==r.children&&(Ws(),n.data=r.children),$=o(n));break;case Jc:O(n)?($=o(n),m(r.el=n.content.firstChild,n,s)):$=8!==T||v?b():o(n);break;case eu:if(v&&(T=(n=o(n)).nodeType),1===T||3===T){$=n;const e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=1===$.nodeType?$.outerHTML:$.data),t===r.staticCount-1&&(r.anchor=$),$=o($);return v?o($):$}b();break;case Hc:$=v?p(n,r,s,c,A,y):b();break;default:if(1&k)$=1===T&&r.type.toLowerCase()===n.tagName.toLowerCase()||O(n)?h(n,r,s,c,A,y):b();else if(6&k){r.slotScopeIds=A;const e=a(n);if($=v?g(n):Ys(n)&&"teleport start"===n.data?g(n,n.data,"teleport end"):o(n),t(r,e,null,s,c,js(e),y),tl(r)&&!r.type.__asyncResolved){let t;v?(t=gu(Hc),t.anchor=$?$.previousSibling:e.lastChild):t=3===n.nodeType?Au(""):gu("div"),t.el=n,r.component.subTree=t}}else 64&k?$=8!==T?b():r.type.hydrate(n,r,s,c,A,y,e,d):128&k&&($=r.type.hydrate(n,r,s,c,js(a(n)),A,y,e,u))}return null!=w&&zs(w,null,c,r),$},h=(e,t,n,i,o,a)=>{a=a||!!t.dynamicChildren;const{type:l,props:c,patchFlag:u,shapeFlag:h,dirs:p,transition:f}=t,g="input"===l||"option"===l;if(g||-1!==u){p&&es(t,null,n,"created");let l,A=!1;if(O(e)){A=Mc(null,f)&&n&&n.vnode.props&&n.vnode.props.appear;const r=e.content.firstChild;if(A){const e=r.getAttribute("class");e&&(r.$cls=e),f.beforeEnter(r)}m(r,e,n),t.el=e=r}if(16&h&&(!c||!c.innerHTML&&!c.textContent)){let r=d(e.firstChild,t,e,n,i,o,a);for(;r;){Ks(e,1)||Ws();const t=r;r=r.nextSibling,s(t)}}else if(8&h){let n=t.children;"\n"!==n[0]||"PRE"!==e.tagName&&"TEXTAREA"!==e.tagName||(n=n.slice(1));const{textContent:r}=e;r!==n&&r!==n.replace(/\r\n|\r/g,"\n")&&(Ks(e,0)||Ws(),e.textContent=t.children)}if(c)if(g||!a||48&u){const t=e.tagName.includes("-");for(const i in c)(g&&(i.endsWith("value")||"indeterminate"===i)||cr(i)&&!Qr(i)||"."===i[0]||t&&!Qr(i))&&r(e,i,null,c[i],void 0,n)}else if(c.onClick)r(e,"onClick",null,c.onClick,void 0,n);else if(4&u&&Zo(c.style))for(const e in c.style)c.style[e];(l=c&&c.onVnodeBeforeMount)&&Su(l,n,t),p&&es(t,null,n,"beforeMount"),((l=c&&c.onVnodeMounted)||p||A)&&Zc(()=>{l&&Su(l,n,t),A&&f.enter(e),p&&es(t,null,n,"mounted")},i)}return e.nextSibling},d=(e,t,r,a,s,c,h)=>{h=h||!!t.dynamicChildren;const d=t.children,p=d.length;for(let f=0;f<p;f++){const t=h?d[f]:d[f]=bu(d[f]),g=t.type===Kc;e?(g&&!h&&f+1<p&&bu(d[f+1]).type===Kc&&(l(i(e.data.slice(t.children.length)),r,o(e)),e.data=t.children),e=u(e,t,a,s,c,h)):g&&!t.children?l(t.el=i(""),r):(Ks(r,1)||Ws(),n(null,t,r,null,a,s,js(r),c))}return e},p=(e,t,n,r,i,s)=>{const{slotScopeIds:u}=t;u&&(i=i?i.concat(u):u);const h=a(e),p=d(o(e),t,h,n,r,i,s);return p&&Ys(p)&&"]"===p.data?o(t.anchor=p):(Ws(),l(t.anchor=c("]"),h,p),p)},f=(e,t,r,i,l,c)=>{if(Ks(e.parentElement,1)||Ws(),t.el=null,c){const t=g(e);for(;;){const n=o(e);if(!n||n===t)break;s(n)}}const u=o(e),h=a(e);return s(e),n(null,t,h,u,r,i,js(h),l),r&&(r.vnode.el=t.el,Oc(r,t.el)),u},g=(e,t="[",n="]")=>{let r=0;for(;e;)if((e=o(e))&&Ys(e)&&(e.data===t&&r++,e.data===n)){if(0===r)return o(e);r--}return e},m=(e,t,n)=>{const r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},O=e=>1===e.nodeType&&"TEMPLATE"===e.tagName;return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),qa(),void(t._vnode=e);u(t.firstChild,e,null,null,null),qa(),t._vnode=e},u]}const Gs="data-allow-mismatch",Hs={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Ks(e,t){if(0===t||1===t)for(;e&&!e.hasAttribute(Gs);)e=e.parentElement;const n=e&&e.getAttribute(Gs);if(null==n)return!1;if(""===n)return!0;{const e=n.split(",");return!(0!==t||!e.includes("children"))||e.includes(Hs[t])}}const Js=Vr().requestIdleCallback||(e=>setTimeout(e,1)),el=Vr().cancelIdleCallback||(e=>clearTimeout(e));const tl=e=>!!e.type.__asyncLoader;function nl(e,t){const{ref:n,props:r,children:i,ce:o}=t.vnode,a=gu(e,r,i);return a.ref=n,a.ce=o,delete t.vnode.ce,a}const rl=e=>e.type.__isKeepAlive,il={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Qu(),r=n.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const i=new Map,o=new Set;let a=null;const s=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:h}}}=r,d=h("div");function p(e){ul(e),u(e,n,s,!0)}function f(e){i.forEach((t,n)=>{const r=Vu(tl(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&g(n)})}function g(e){const t=i.get(e);!t||a&&hu(t,a)?a&&ul(a):p(t),i.delete(e),o.delete(e)}r.activate=(e,t,n,r,i)=>{const o=e.component;c(e,t,n,0,s),l(o.vnode,e,t,n,o,s,r,e.slotScopeIds,i),Ec(()=>{o.isDeactivated=!1,o.a&&Xr(o.a);const t=e.props&&e.props.onVnodeMounted;t&&Su(t,o.parent,e)},s)},r.deactivate=e=>{const t=e.component;Fc(t.m),Fc(t.a),c(e,d,null,1,s),Ec(()=>{t.da&&Xr(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&Su(n,t.parent,e),t.isDeactivated=!0},s)},cs(()=>[e.include,e.exclude],([e,t])=>{e&&f(t=>ol(e,t)),t&&f(e=>!ol(t,e))},{flush:"post",deep:!0});let m=null;const O=()=>{null!=m&&(zc(n.subTree.type)?Ec(()=>{i.set(m,hl(n.subTree))},n.subTree.suspense):i.set(m,hl(n.subTree)))};return gl(O),Ol(O),Al(()=>{i.forEach(e=>{const{subTree:t,suspense:r}=n,i=hl(t);if(e.type===i.type&&e.key===i.key){ul(i);const e=i.component.da;return void(e&&Ec(e,r))}p(e)})}),()=>{if(m=null,!t.default)return a=null;const n=t.default(),r=n[0];if(n.length>1)return a=null,n;if(!(uu(r)&&(4&r.shapeFlag||128&r.shapeFlag)))return a=null,r;let s=hl(r);if(s.type===Jc)return a=null,s;const l=s.type,c=Vu(tl(s)?s.type.__asyncResolved||{}:l),{include:u,exclude:h,max:d}=e;if(u&&(!c||!ol(u,c))||h&&c&&ol(h,c))return s.shapeFlag&=-257,a=s,r;const p=null==s.key?l:s.key,f=i.get(p);return s.el&&(s=Ou(s),128&r.shapeFlag&&(r.ssContent=s)),m=p,f?(s.el=f.el,s.component=f.component,s.transition&&Ds(s,s.transition),s.shapeFlag|=512,o.delete(p),o.add(p)):(o.add(p),d&&o.size>parseInt(d,10)&&g(o.values().next().value)),s.shapeFlag|=256,a=s,zc(r.type)?r:s}}};function ol(e,t){return gr(e)?e.some(e=>ol(e,t)):br(e)?e.split(",").includes(t):!!yr(e)&&(e.lastIndex=0,e.test(t))}function al(e,t){ll(e,"a",t)}function sl(e,t){ll(e,"da",t)}function ll(e,t,n=Cu){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(dl(t,r,n),n){let e=n.parent;for(;e&&e.parent;)rl(e.parent.vnode)&&cl(r,t,n,e),e=e.parent}}function cl(e,t,n,r){const i=dl(t,e,r,!0);yl(()=>{dr(r[t],i)},n)}function ul(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function hl(e){return 128&e.shapeFlag?e.ssContent:e}function dl(e,t,n=Cu,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{Hi();const i=Ru(n),o=Qa(t,n,e,r);return i(),Ki(),o});return r?i.unshift(o):i.push(o),o}}const pl=e=>(t,n=Cu)=>{Mu&&"sp"!==e||dl(e,(...e)=>t(...e),n)},fl=pl("bm"),gl=pl("m"),ml=pl("bu"),Ol=pl("u"),Al=pl("bum"),yl=pl("um"),vl=pl("sp"),bl=pl("rtg"),xl=pl("rtc");function wl(e,t=Cu){dl("ec",e,t)}const kl="components";function Sl(e,t){return Cl(kl,e,!0,t)||e}const Tl=Symbol.for("v-ndc");function $l(e){return br(e)?Cl(kl,e,!1)||e:e||Tl}function _l(e){return Cl("directives",e)}function Cl(e,t,n=!0,r=!1){const i=Za||Cu;if(i){const n=i.type;if(e===kl){const e=Vu(n,!1);if(e&&(e===t||e===Br(t)||e===Dr(Br(t))))return n}const o=Ql(i[e]||n[e],t)||Ql(i.appContext[e],t);return!o&&r?n:o}}function Ql(e,t){return e&&(e[t]||e[Br(t)]||e[Dr(Br(t))])}function Pl(e,t,n,r){let i;const o=n&&n[r],a=gr(e);if(a||br(e)){let n=!1,r=!1;a&&Zo(e)&&(n=!Ho(e),r=Go(e),e=ho(e)),i=new Array(e.length);for(let a=0,s=e.length;a<s;a++)i[a]=t(n?r?na(ta(e[a])):ta(e[a]):e[a],a,void 0,o&&o[a])}else if("number"==typeof e){i=new Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,o&&o[n])}else if(wr(e))if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,o&&o[n]));else{const n=Object.keys(e);i=new Array(n.length);for(let r=0,a=n.length;r<a;r++){const a=n[r];i[r]=t(e[a],a,r,o&&o[r])}}else i=[];return n&&(n[r]=i),i}function El(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(gr(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function Rl(e,t,n={},r,i){if(Za.ce||Za.parent&&tl(Za.parent)&&Za.parent.ce){const e=Object.keys(n).length>0;return"default"!==t&&(n.name=t),ru(),cu(Hc,null,[gu("slot",n,r&&r())],e?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),ru();const a=o&&Bl(o(n)),s=n.key||a&&a.key,l=cu(Hc,{key:(s&&!xr(s)?s:`_${t}`)+(!a&&r?"_fb":"")},a||(r?r():[]),a&&1===e._?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function Bl(e){return e.some(e=>!uu(e)||e.type!==Jc&&!(e.type===Hc&&!Bl(e.children)))?e:null}function Il(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Mr(r)]=e[r];return n}const Ll=e=>e?Iu(e)?qu(e):Ll(e.parent):null,Dl=hr(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ll(e.parent),$root:e=>Ll(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Zl(e),$forceUpdate:e=>e.f||(e.f=()=>{Xa(e.update)}),$nextTick:e=>e.n||(e.n=Na.bind(e.proxy)),$watch:e=>hs.bind(e)}),Ml=(e,t)=>e!==or&&!e.__isScriptSetup&&fr(e,t),Nl={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:r,data:i,props:o,accessCache:a,type:s,appContext:l}=e;if("$"!==t[0]){const e=a[t];if(void 0!==e)switch(e){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(Ml(r,t))return a[t]=1,r[t];if(i!==or&&fr(i,t))return a[t]=2,i[t];if(fr(o,t))return a[t]=3,o[t];if(n!==or&&fr(n,t))return a[t]=4,n[t];Vl&&(a[t]=0)}}const c=Dl[t];let u,h;return c?("$attrs"===t&&lo(e.attrs,0,""),c(e)):(u=s.__cssModules)&&(u=u[t])?u:n!==or&&fr(n,t)?(a[t]=4,n[t]):(h=l.config.globalProperties,fr(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return Ml(i,t)?(i[t]=n,!0):r!==or&&fr(r,t)?(r[t]=n,!0):!fr(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(o[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:o,type:a}},s){let l;return!!(n[s]||e!==or&&"$"!==s[0]&&fr(e,s)||Ml(t,s)||fr(o,s)||fr(r,s)||fr(Dl,s)||fr(i.config.globalProperties,s)||(l=a.__cssModules)&&l[s])},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:fr(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Xl=hr({},Nl,{get(e,t){if(t!==Symbol.unscopables)return Nl.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!Zr(t)});function Fl(){return zl().slots}function Ul(){return zl().attrs}function zl(e){const t=Qu();return t.setupContext||(t.setupContext=zu(t))}function ql(e){return gr(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}let Vl=!0;function Wl(e){const t=Zl(e),n=e.proxy,r=e.ctx;Vl=!1,t.beforeCreate&&jl(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:a,watch:s,provide:l,inject:c,created:u,beforeMount:h,mounted:d,beforeUpdate:p,updated:f,activated:g,deactivated:m,beforeDestroy:O,beforeUnmount:A,destroyed:y,unmounted:v,render:b,renderTracked:x,renderTriggered:w,errorCaptured:k,serverPrefetch:S,expose:T,inheritAttrs:$,components:_,directives:C,filters:Q}=t;if(c&&function(e,t){gr(e)&&(e=Jl(e));for(const n in e){const r=e[n];let i;i=wr(r)?"default"in r?ns(r.from||n,r.default,!0):ns(r.from||n):ns(r),ra(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}(c,r,null),a)for(const E in a){const e=a[E];vr(e)&&(r[E]=e.bind(n))}if(i){const t=i.call(n,n);wr(t)&&(e.data=qo(t))}if(Vl=!0,o)for(const E in o){const e=o[E],t=vr(e)?e.bind(n,n):vr(e.get)?e.get.bind(n,n):sr,i=!vr(e)&&vr(e.set)?e.set.bind(n):sr,a=Wu({get:t,set:i});Object.defineProperty(r,E,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(s)for(const E in s)Yl(s[E],r,n,E);if(l){const e=vr(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{ts(t,e[t])})}function P(e,t){gr(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(u&&jl(u,e,"c"),P(fl,h),P(gl,d),P(ml,p),P(Ol,f),P(al,g),P(sl,m),P(wl,k),P(xl,x),P(bl,w),P(Al,A),P(yl,v),P(vl,S),gr(T))if(T.length){const t=e.exposed||(e.exposed={});T.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});b&&e.render===sr&&(e.render=b),null!=$&&(e.inheritAttrs=$),_&&(e.components=_),C&&(e.directives=C),S&&Xs(e)}function jl(e,t,n){Qa(gr(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Yl(e,t,n,r){let i=r.includes(".")?ds(n,r):()=>n[r];if(br(e)){const n=t[e];vr(n)&&cs(i,n)}else if(vr(e))cs(i,e.bind(n));else if(wr(e))if(gr(e))e.forEach(e=>Yl(e,t,n,r));else{const r=vr(e.handler)?e.handler.bind(n):t[e.handler];vr(r)&&cs(i,r,e)}}function Zl(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,s=o.get(t);let l;return s?l=s:i.length||n||r?(l={},i.length&&i.forEach(e=>Gl(l,e,a,!0)),Gl(l,t,a)):l=t,wr(t)&&o.set(t,l),l}function Gl(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&Gl(e,o,n,!0),i&&i.forEach(t=>Gl(e,t,n,!0));for(const a in t)if(r&&"expose"===a);else{const r=Hl[a]||n&&n[a];e[a]=r?r(e[a],t[a]):t[a]}return e}const Hl={data:Kl,props:nc,emits:nc,methods:tc,computed:tc,beforeCreate:ec,created:ec,beforeMount:ec,mounted:ec,beforeUpdate:ec,updated:ec,beforeDestroy:ec,beforeUnmount:ec,destroyed:ec,unmounted:ec,activated:ec,deactivated:ec,errorCaptured:ec,serverPrefetch:ec,components:tc,directives:tc,watch:function(e,t){if(!e)return t;if(!t)return e;const n=hr(Object.create(null),e);for(const r in t)n[r]=ec(e[r],t[r]);return n},provide:Kl,inject:function(e,t){return tc(Jl(e),Jl(t))}};function Kl(e,t){return t?e?function(){return hr(vr(e)?e.call(this,this):e,vr(t)?t.call(this,this):t)}:t:e}function Jl(e){if(gr(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ec(e,t){return e?[...new Set([].concat(e,t))]:t}function tc(e,t){return e?hr(Object.create(null),e,t):t}function nc(e,t){return e?gr(e)&&gr(t)?[...new Set([...e,...t])]:hr(Object.create(null),ql(e),ql(null!=t?t:{})):t}function rc(){return{app:null,config:{isNativeTag:lr,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ic=0;function oc(e,t){return function(n,r=null){vr(n)||(n=hr({},n)),null==r||wr(r)||(r=null);const i=rc(),o=new WeakSet,a=[];let s=!1;const l=i.app={_uid:ic++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Zu,get config(){return i.config},set config(e){},use:(e,...t)=>(o.has(e)||(e&&vr(e.install)?(o.add(e),e.install(l,...t)):vr(e)&&(o.add(e),e(l,...t))),l),mixin:e=>(i.mixins.includes(e)||i.mixins.push(e),l),component:(e,t)=>t?(i.components[e]=t,l):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,l):i.directives[e],mount(o,a,c){if(!s){const u=l._ceVNode||gu(n,r);return u.appContext=i,!0===c?c="svg":!1===c&&(c=void 0),a&&t?t(u,o):e(u,o,c),s=!0,l._container=o,o.__vue_app__=l,qu(u.component)}},onUnmount(e){a.push(e)},unmount(){s&&(Qa(a,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,l),runWithContext(e){const t=ac;ac=l;try{return e()}finally{ac=t}}};return l}}let ac=null;const sc=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${Br(t)}Modifiers`]||e[`${Lr(t)}Modifiers`];function lc(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||or;let i=n;const o=t.startsWith("update:"),a=o&&sc(r,t.slice(7));let s;a&&(a.trim&&(i=n.map(e=>br(e)?e.trim():e)),a.number&&(i=n.map(Ur)));let l=r[s=Mr(t)]||r[s=Mr(Br(t))];!l&&o&&(l=r[s=Mr(Lr(t))]),l&&Qa(l,e,6,i);const c=r[s+"Once"];if(c){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,Qa(c,e,6,i)}}const cc=new WeakMap;function uc(e,t,n=!1){const r=n?cc:t.emitsCache,i=r.get(e);if(void 0!==i)return i;const o=e.emits;let a={},s=!1;if(!vr(e)){const r=e=>{const n=uc(e,t,!0);n&&(s=!0,hr(a,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return o||s?(gr(o)?o.forEach(e=>a[e]=null):hr(a,o),wr(e)&&r.set(e,a),a):(wr(e)&&r.set(e,null),null)}function hc(e,t){return!(!e||!cr(t))&&(t=t.slice(2).replace(/Once$/,""),fr(e,t[0].toLowerCase()+t.slice(1))||fr(e,Lr(t))||fr(e,t))}function dc(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[o],slots:a,attrs:s,emit:l,render:c,renderCache:u,props:h,data:d,setupState:p,ctx:f,inheritAttrs:g}=e,m=Ha(e);let O,A;try{if(4&n.shapeFlag){const e=i||r,t=e;O=bu(c.call(t,e,u,h,p,d,f)),A=s}else{const e=t;0,O=bu(e.length>1?e(h,{attrs:s,slots:a,emit:l}):e(h,null)),A=t.props?s:pc(s)}}catch(v){tu.length=0,Pa(v,e,1),O=gu(Jc)}let y=O;if(A&&!1!==g){const e=Object.keys(A),{shapeFlag:t}=y;e.length&&7&t&&(o&&e.some(ur)&&(A=fc(A,o)),y=Ou(y,A,!1,!0))}return n.dirs&&(y=Ou(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&Ds(y,n.transition),O=y,Ha(m),O}const pc=e=>{let t;for(const n in e)("class"===n||"style"===n||cr(n))&&((t||(t={}))[n]=e[n]);return t},fc=(e,t)=>{const n={};for(const r in e)ur(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function gc(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(mc(t,e,o)&&!hc(n,o))return!0}return!1}function mc(e,t,n){const r=e[n],i=t[n];return"style"===n&&wr(r)&&wr(i)?!bi(r,i):r!==i}function Oc({vnode:e,parent:t,suspense:n},r){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n!==e)break;(e=t.vnode).el=r,t=t.parent}n&&n.activeBranch===e&&(n.vnode.el=r)}const Ac={},yc=()=>Object.create(Ac),vc=e=>Object.getPrototypeOf(e)===Ac;function bc(e,t,n,r){const[i,o]=e.propsOptions;let a,s=!1;if(t)for(let l in t){if(Qr(l))continue;const c=t[l];let u;i&&fr(i,u=Br(l))?o&&o.includes(u)?(a||(a={}))[u]=c:n[u]=c:hc(e.emitsOptions,l)||l in r&&c===r[l]||(r[l]=c,s=!0)}if(o){const t=Jo(n),r=a||or;for(let a=0;a<o.length;a++){const s=o[a];n[s]=xc(i,t,s,r[s],e,!fr(r,s))}}return s}function xc(e,t,n,r,i,o){const a=e[n];if(null!=a){const e=fr(a,"default");if(e&&void 0===r){const e=a.default;if(a.type!==Function&&!a.skipFactory&&vr(e)){const{propsDefaults:o}=i;if(n in o)r=o[n];else{const a=Ru(i);r=o[n]=e.call(null,t),a()}}else r=e;i.ce&&i.ce._setProp(n,r)}a[0]&&(o&&!e?r=!1:!a[1]||""!==r&&r!==Lr(n)||(r=!0))}return r}const wc=new WeakMap;function kc(e,t,n=!1){const r=n?wc:t.propsCache,i=r.get(e);if(i)return i;const o=e.props,a={},s=[];let l=!1;if(!vr(e)){const r=e=>{l=!0;const[n,r]=kc(e,t,!0);hr(a,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!o&&!l)return wr(e)&&r.set(e,ar),ar;if(gr(o))for(let u=0;u<o.length;u++){const e=Br(o[u]);Sc(e)&&(a[e]=or)}else if(o)for(const u in o){const e=Br(u);if(Sc(e)){const t=o[u],n=a[e]=gr(t)||vr(t)?{type:t}:hr({},t),r=n.type;let i=!1,l=!0;if(gr(r))for(let e=0;e<r.length;++e){const t=r[e],n=vr(t)&&t.name;if("Boolean"===n){i=!0;break}"String"===n&&(l=!1)}else i=vr(r)&&"Boolean"===r.name;n[0]=i,n[1]=l,(i||fr(n,"default"))&&s.push(e)}}const c=[a,s];return wr(e)&&r.set(e,c),c}function Sc(e){return"$"!==e[0]&&!Qr(e)}const Tc=e=>"_"===e||"_ctx"===e||"$stable"===e,$c=e=>gr(e)?e.map(bu):[bu(e)],_c=(e,t,n)=>{if(t._n)return t;const r=Ka((...e)=>$c(t(...e)),n);return r._c=!1,r},Cc=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Tc(i))continue;const n=e[i];if(vr(n))t[i]=_c(0,n,r);else if(null!=n){const e=$c(n);t[i]=()=>e}}},Qc=(e,t)=>{const n=$c(t);e.slots.default=()=>n},Pc=(e,t,n)=>{for(const r in t)!n&&Tc(r)||(e[r]=t[r])},Ec=Zc;function Rc(e){return Ic(e)}function Bc(e){return Ic(e,Zs)}function Ic(e,t){Vr().__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:o,createText:a,createComment:s,setText:l,setElementText:c,parentNode:u,nextSibling:h,setScopeId:d=sr,insertStaticContent:p}=e,f=(e,t,n,r=null,i=null,o=null,a=void 0,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!hu(e,t)&&(r=X(e),I(e,i,o,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:h}=t;switch(c){case Kc:g(e,t,n,r);break;case Jc:m(e,t,n,r);break;case eu:null==e&&O(t,n,r,a);break;case Hc:S(e,t,n,r,i,o,a,s,l);break;default:1&h?A(e,t,n,r,i,o,a,s,l):6&h?T(e,t,n,r,i,o,a,s,l):(64&h||128&h)&&c.process(e,t,n,r,i,o,a,s,l,z)}null!=u&&i?zs(u,e&&e.ref,o,t||e,!t):null==u&&e&&null!=e.ref&&zs(e.ref,null,o,e,!0)},g=(e,t,r,i)=>{if(null==e)n(t.el=a(t.children),r,i);else{const n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},m=(e,t,r,i)=>{null==e?n(t.el=s(t.children||""),r,i):t.el=e.el},O=(e,t,n,r)=>{[e.el,e.anchor]=p(e.children,t,n,r,e.el,e.anchor)},A=(e,t,n,r,i,o,a,s,l)=>{if("svg"===t.type?a="svg":"math"===t.type&&(a="mathml"),null==e)y(t,n,r,i,o,a,s,l);else{const n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),x(e,t,i,o,a,s,l)}finally{n&&n._endPatch()}}},y=(e,t,r,a,s,l,u,h)=>{let d,p;const{props:f,shapeFlag:g,transition:m,dirs:O}=e;if(d=e.el=o(e.type,l,f&&f.is,f),8&g?c(d,e.children):16&g&&b(e.children,d,null,a,s,Lc(e,l),u,h),O&&es(e,null,a,"created"),v(d,e,e.scopeId,u,a),f){for(const e in f)"value"===e||Qr(e)||i(d,e,null,f[e],l,a);"value"in f&&i(d,"value",null,f.value,l),(p=f.onVnodeBeforeMount)&&Su(p,a,e)}O&&es(e,null,a,"beforeMount");const A=Mc(s,m);A&&m.beforeEnter(d),n(d,t,r),((p=f&&f.onVnodeMounted)||A||O)&&Ec(()=>{try{p&&Su(p,a,e),A&&m.enter(d),O&&es(e,null,a,"mounted")}finally{}},s)},v=(e,t,n,r,i)=>{if(n&&d(e,n),r)for(let o=0;o<r.length;o++)d(e,r[o]);if(i){let n=i.subTree;if(t===n||zc(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=i.vnode;v(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},b=(e,t,n,r,i,o,a,s,l=0)=>{for(let c=l;c<e.length;c++){const l=e[c]=s?xu(e[c]):bu(e[c]);f(null,l,t,n,r,i,o,a,s)}},x=(e,t,n,r,o,a,s)=>{const l=t.el=e.el;let{patchFlag:u,dynamicChildren:h,dirs:d}=t;u|=16&e.patchFlag;const p=e.props||or,f=t.props||or;let g;if(n&&Dc(n,!1),(g=f.onVnodeBeforeUpdate)&&Su(g,n,t,e),d&&es(t,e,n,"beforeUpdate"),n&&Dc(n,!0),(p.innerHTML&&null==f.innerHTML||p.textContent&&null==f.textContent)&&c(l,""),h?w(e.dynamicChildren,h,l,n,r,Lc(t,o),a):s||P(e,t,l,null,n,r,Lc(t,o),a,!1),u>0){if(16&u)k(l,p,f,n,o);else if(2&u&&p.class!==f.class&&i(l,"class",null,f.class,o),4&u&&i(l,"style",p.style,f.style,o),8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const r=e[t],a=p[r],s=f[r];s===a&&"value"!==r||i(l,r,a,s,o,n)}}1&u&&e.children!==t.children&&c(l,t.children)}else s||null!=h||k(l,p,f,n,o);((g=f.onVnodeUpdated)||d)&&Ec(()=>{g&&Su(g,n,t,e),d&&es(t,e,n,"updated")},r)},w=(e,t,n,r,i,o,a)=>{for(let s=0;s<t.length;s++){const l=e[s],c=t[s],h=l.el&&(l.type===Hc||!hu(l,c)||198&l.shapeFlag)?u(l.el):n;f(l,c,h,null,r,i,o,a,!0)}},k=(e,t,n,r,o)=>{if(t!==n){if(t!==or)for(const a in t)Qr(a)||a in n||i(e,a,t[a],null,o,r);for(const a in n){if(Qr(a))continue;const s=n[a],l=t[a];s!==l&&"value"!==a&&i(e,a,l,s,o,r)}"value"in n&&i(e,"value",t.value,n.value,o)}},S=(e,t,r,i,o,s,l,c,u)=>{const h=t.el=e?e.el:a(""),d=t.anchor=e?e.anchor:a("");let{patchFlag:p,dynamicChildren:f,slotScopeIds:g}=t;g&&(c=c?c.concat(g):g),null==e?(n(h,r,i),n(d,r,i),b(t.children||[],r,d,o,s,l,c,u)):p>0&&64&p&&f&&e.dynamicChildren&&e.dynamicChildren.length===f.length?(w(e.dynamicChildren,f,r,o,s,l,c),(null!=t.key||o&&t===o.subTree)&&Nc(e,t,!0)):P(e,t,r,d,o,s,l,c,u)},T=(e,t,n,r,i,o,a,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,a,l):$(t,n,r,i,o,a,l):_(e,t,l)},$=(e,t,n,r,i,o,a)=>{const s=e.component=_u(e,r,i);if(rl(e)&&(s.ctx.renderer=z),Nu(s,!1,a),s.asyncDep){if(i&&i.registerDep(s,C,a),!e.el){const r=s.subTree=gu(Jc);m(null,r,t,n),e.placeholder=r.el}}else C(s,e,t,n,i,o,a)},_=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:i,component:o}=e,{props:a,children:s,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!i&&!s||s&&s.$stable)||r!==a&&(r?!a||gc(r,a,c):!!a);if(1024&l)return!0;if(16&l)return r?gc(r,a,c):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(mc(a,r,n)&&!hc(c,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void Q(r,t,n);r.next=t,r.update()}else t.el=e.el,r.vnode=t},C=(e,t,n,r,i,o,a)=>{e.scope.on();const s=e.effect=new Li(()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{const n=Xc(e);if(n)return t&&(t.el=c.el,Q(e,t,a)),void n.asyncDep.then(()=>{Ec(()=>{e.isUnmounted||l()},i)})}let h,d=t;Dc(e,!1),t?(t.el=c.el,Q(e,t,a)):t=c,n&&Xr(n),(h=t.props&&t.props.onVnodeBeforeUpdate)&&Su(h,s,t,c),Dc(e,!0);const p=dc(e),g=e.subTree;e.subTree=p,f(g,p,u(g.el),X(g),e,i,o),t.el=p.el,null===d&&Oc(e,p.el),r&&Ec(r,i),(h=t.props&&t.props.onVnodeUpdated)&&Ec(()=>Su(h,s,t,c),i)}else{let a;const{el:s,props:l}=t,{bm:c,m:u,parent:h,root:d,type:p}=e,g=tl(t);if(Dc(e,!1),c&&Xr(c),!g&&(a=l&&l.onVnodeBeforeMount)&&Su(a,h,t),Dc(e,!0),s&&V){const t=()=>{e.subTree=dc(e),V(s,e.subTree,e,i,null)};g&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{d.ce&&d.ce._hasShadowRoot()&&d.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);const a=e.subTree=dc(e);f(null,a,n,r,e,i,o),t.el=a.el}if(u&&Ec(u,i),!g&&(a=l&&l.onVnodeMounted)){const e=t;Ec(()=>Su(a,h,e),i)}(256&t.shapeFlag||h&&tl(h.vnode)&&256&h.vnode.shapeFlag)&&e.a&&Ec(e.a,i),e.isMounted=!0,t=n=r=null}});e.scope.off();const l=e.update=s.run.bind(s),c=e.job=s.runIfDirty.bind(s);c.i=e,c.id=e.uid,s.scheduler=()=>Xa(c),Dc(e,!0),l()},Q=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:a}}=e,s=Jo(i),[l]=e.propsOptions;let c=!1;if(!(r||a>0)||16&a){let r;bc(e,t,i,o)&&(c=!0);for(const o in s)t&&(fr(t,o)||(r=Lr(o))!==o&&fr(t,r))||(l?!n||void 0===n[o]&&void 0===n[r]||(i[o]=xc(l,s,o,void 0,e,!0)):delete i[o]);if(o!==s)for(const e in o)t&&fr(t,e)||(delete o[e],c=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let a=n[r];if(hc(e.emitsOptions,a))continue;const u=t[a];if(l)if(fr(o,a))u!==o[a]&&(o[a]=u,c=!0);else{const t=Br(a);i[t]=xc(l,s,t,u,e,!1)}else u!==o[a]&&(o[a]=u,c=!0)}}c&&co(e.attrs,"set","")}(e,t.props,r,n),((e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,a=or;if(32&r.shapeFlag){const e=t._;e?n&&1===e?o=!1:Pc(i,t,n):(o=!t.$stable,Cc(t,i)),a=t}else t&&(Qc(e,t),a={default:1});if(o)for(const s in i)Tc(s)||null!=a[s]||delete i[s]})(e,t.children,n),Hi(),za(e),Ki()},P=(e,t,n,r,i,o,a,s,l=!1)=>{const u=e&&e.children,h=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void R(u,d,n,r,i,o,a,s,l);if(256&p)return void E(u,d,n,r,i,o,a,s,l)}8&f?(16&h&&N(u,i,o),d!==u&&c(n,d)):16&h?16&f?R(u,d,n,r,i,o,a,s,l):N(u,i,o,!0):(8&h&&c(n,""),16&f&&b(d,n,r,i,o,a,s,l))},E=(e,t,n,r,i,o,a,s,l)=>{t=t||ar;const c=(e=e||ar).length,u=t.length,h=Math.min(c,u);let d;for(d=0;d<h;d++){const r=t[d]=l?xu(t[d]):bu(t[d]);f(e[d],r,n,null,i,o,a,s,l)}c>u?N(e,i,o,!0,!1,h):b(t,n,r,i,o,a,s,l,h)},R=(e,t,n,r,i,o,a,s,l)=>{let c=0;const u=t.length;let h=e.length-1,d=u-1;for(;c<=h&&c<=d;){const r=e[c],u=t[c]=l?xu(t[c]):bu(t[c]);if(!hu(r,u))break;f(r,u,n,null,i,o,a,s,l),c++}for(;c<=h&&c<=d;){const r=e[h],c=t[d]=l?xu(t[d]):bu(t[d]);if(!hu(r,c))break;f(r,c,n,null,i,o,a,s,l),h--,d--}if(c>h){if(c<=d){const e=d+1,h=e<u?t[e].el:r;for(;c<=d;)f(null,t[c]=l?xu(t[c]):bu(t[c]),n,h,i,o,a,s,l),c++}}else if(c>d)for(;c<=h;)I(e[c],i,o,!0),c++;else{const p=c,g=c,m=new Map;for(c=g;c<=d;c++){const e=t[c]=l?xu(t[c]):bu(t[c]);null!=e.key&&m.set(e.key,c)}let O,A=0;const y=d-g+1;let v=!1,b=0;const x=new Array(y);for(c=0;c<y;c++)x[c]=0;for(c=p;c<=h;c++){const r=e[c];if(A>=y){I(r,i,o,!0);continue}let u;if(null!=r.key)u=m.get(r.key);else for(O=g;O<=d;O++)if(0===x[O-g]&&hu(r,t[O])){u=O;break}void 0===u?I(r,i,o,!0):(x[u-g]=c+1,u>=b?b=u:v=!0,f(r,t[u],n,null,i,o,a,s,l),A++)}const w=v?function(e){const t=e.slice(),n=[0];let r,i,o,a,s;const l=e.length;for(r=0;r<l;r++){const l=e[r];if(0!==l){if(i=n[n.length-1],e[i]<l){t[r]=i,n.push(r);continue}for(o=0,a=n.length-1;o<a;)s=o+a>>1,e[n[s]]<l?o=s+1:a=s;l<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}o=n.length,a=n[o-1];for(;o-- >0;)n[o]=a,a=t[a];return n}(x):ar;for(O=w.length-1,c=y-1;c>=0;c--){const e=g+c,h=t[e],d=t[e+1],p=e+1<u?d.el||Uc(d):r;0===x[c]?f(null,h,n,p,i,o,a,s,l):v&&(O<0||c!==w[O]?B(h,n,p,2):O--)}}},B=(e,t,i,o,a=null)=>{const{el:s,type:l,transition:c,children:u,shapeFlag:d}=e;if(6&d)return void B(e.component.subTree,t,i,o);if(128&d)return void e.suspense.move(t,i,o);if(64&d)return void l.move(e,t,i,z);if(l===Hc){n(s,t,i);for(let e=0;e<u.length;e++)B(u[e],t,i,o);return void n(e.anchor,t,i)}if(l===eu)return void(({el:e,anchor:t},r,i)=>{let o;for(;e&&e!==t;)o=h(e),n(e,r,i),e=o;n(t,r,i)})(e,t,i);if(2!==o&&1&d&&c)if(0===o)c.beforeEnter(s),n(s,t,i),Ec(()=>c.enter(s),a);else{const{leave:o,delayLeave:a,afterLeave:l}=c,u=()=>{e.ctx.isUnmounted?r(s):n(s,t,i)},h=()=>{s._isLeaving&&s[Ss](!0),o(s,()=>{u(),l&&l()})};a?a(s,u,h):h()}else n(s,t,i)},I=(e,t,n,r=!1,i=!1)=>{const{type:o,props:a,ref:s,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:h,dirs:d,cacheIndex:p,memo:f}=e;if(-2===h&&(i=!1),null!=s&&(Hi(),zs(s,null,n,e,!0),Ki()),null!=p&&(t.renderCache[p]=void 0),256&u)return void t.ctx.deactivate(e);const g=1&u&&d,m=!tl(e);let O;if(m&&(O=a&&a.onVnodeBeforeUnmount)&&Su(O,t,e),6&u)M(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);g&&es(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,z,r):c&&!c.hasOnce&&(o!==Hc||h>0&&64&h)?N(c,t,n,!1,!0):(o===Hc&&384&h||!i&&16&u)&&N(l,t,n),r&&L(e)}const A=null!=f&&null==p;(m&&(O=a&&a.onVnodeUnmounted)||g||A)&&Ec(()=>{O&&Su(O,t,e),g&&es(e,null,t,"unmounted"),A&&(e.el=null)},n)},L=e=>{const{type:t,el:n,anchor:i,transition:o}=e;if(t===Hc)return void D(n,i);if(t===eu)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),r(e),e=n;r(t)})(e);const a=()=>{r(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,i=()=>t(n,a);r?r(e.el,a,i):i()}else a()},D=(e,t)=>{let n;for(;e!==t;)n=h(e),r(e),e=n;r(t)},M=(e,t,n)=>{const{bum:r,scope:i,job:o,subTree:a,um:s,m:l,a:c}=e;Fc(l),Fc(c),r&&Xr(r),i.stop(),o&&(o.flags|=8,I(a,e,t,n)),s&&Ec(s,t),Ec(()=>{e.isUnmounted=!0},t)},N=(e,t,n,r=!1,i=!1,o=0)=>{for(let a=o;a<e.length;a++)I(e[a],t,n,r,i)},X=e=>{if(6&e.shapeFlag)return X(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=h(e.anchor||e.el),n=t&&t[fs];return n?h(n):t};let F=!1;const U=(e,t,n)=>{let r;null==e?t._vnode&&(I(t._vnode,null,null,!0),r=t._vnode.component):f(t._vnode||null,e,t,null,null,null,n),t._vnode=e,F||(F=!0,za(r),qa(),F=!1)},z={p:f,um:I,m:B,r:L,mt:$,mc:b,pc:P,pbc:w,n:X,o:e};let q,V;return t&&([q,V]=t(z)),{render:U,hydrate:q,createApp:oc(U,q)}}function Lc({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Dc({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Mc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Nc(e,t,n=!1){const r=e.children,i=t.children;if(gr(r)&&gr(i))for(let o=0;o<r.length;o++){const e=r[o];let t=i[o];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=i[o]=xu(i[o]),t.el=e.el),n||-2===t.patchFlag||Nc(e,t)),t.type===Kc&&(-1===t.patchFlag&&(t=i[o]=xu(t)),t.el=e.el),t.type!==Jc||t.el||(t.el=e.el)}}function Xc(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Xc(t)}function Fc(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Uc(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Uc(t.subTree):null}const zc=e=>e.__isSuspense;let qc=0;const Vc={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,o,a,s,l,c){if(null==e)!function(e,t,n,r,i,o,a,s,l){const{p:c,o:{createElement:u}}=l,h=u("div"),d=e.suspense=jc(e,i,r,t,h,n,o,a,s,l);c(null,d.pendingBranch=e.ssContent,h,null,r,d,o,a),d.deps>0?(Wc(e,"onPending"),Wc(e,"onFallback"),c(null,e.ssFallback,t,n,r,null,o,a),Gc(d,e.ssFallback)):d.resolve(!1,!0)}(t,n,r,i,o,a,s,l,c);else{if(o&&o.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,r,i,o,a,s,{p:l,um:c,o:{createElement:u}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const d=t.ssContent,p=t.ssFallback,{activeBranch:f,pendingBranch:g,isInFallback:m,isHydrating:O}=h;if(g)h.pendingBranch=d,hu(g,d)?(l(g,d,h.hiddenContainer,null,i,h,o,a,s),h.deps<=0?h.resolve():m&&(O||(l(f,p,n,r,i,null,o,a,s),Gc(h,p)))):(h.pendingId=qc++,O?(h.isHydrating=!1,h.activeBranch=g):c(g,i,h),h.deps=0,h.effects.length=0,h.hiddenContainer=u("div"),m?(l(null,d,h.hiddenContainer,null,i,h,o,a,s),h.deps<=0?h.resolve():(l(f,p,n,r,i,null,o,a,s),Gc(h,p))):f&&hu(f,d)?(l(f,d,n,r,i,h,o,a,s),h.resolve(!0)):(l(null,d,h.hiddenContainer,null,i,h,o,a,s),h.deps<=0&&h.resolve()));else if(f&&hu(f,d))l(f,d,n,r,i,h,o,a,s),Gc(h,d);else if(Wc(t,"onPending"),h.pendingBranch=d,512&d.shapeFlag?h.pendingId=d.component.suspenseId:h.pendingId=qc++,l(null,d,h.hiddenContainer,null,i,h,o,a,s),h.deps<=0)h.resolve();else{const{timeout:e,pendingId:t}=h;e>0?setTimeout(()=>{h.pendingId===t&&h.fallback(p)},e):0===e&&h.fallback(p)}}(e,t,n,r,i,a,s,l,c)}},hydrate:function(e,t,n,r,i,o,a,s,l){const c=t.suspense=jc(t,r,n,e.parentNode,document.createElement("div"),null,i,o,a,s,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,o,a);0===c.deps&&c.resolve(!1,!0);return u},normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=Yc(r?n.default:n),e.ssFallback=r?Yc(n.fallback):gu(Jc)}};function Wc(e,t){const n=e.props&&e.props[t];vr(n)&&n()}function jc(e,t,n,r,i,o,a,s,l,c,u=!1){const{p:h,m:d,um:p,n:f,o:{parentNode:g,remove:m}}=c;let O;const A=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);A&&t&&t.pendingBranch&&(O=t.pendingId,t.deps++);const y=e.props?zr(e.props.timeout):void 0,v=o,b={vnode:e,parent:t,parentComponent:n,namespace:a,container:r,hiddenContainer:i,deps:0,pendingId:qc++,timeout:"number"==typeof y?y:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:r,activeBranch:i,pendingBranch:a,pendingId:s,effects:l,parentComponent:c,container:u,isInFallback:h}=b;let m=!1;b.isHydrating?b.isHydrating=!1:e||(m=i&&a.transition&&"out-in"===a.transition.mode,m&&(i.transition.afterLeave=()=>{s===b.pendingId&&(d(a,u,o===v?f(i):o,0),Ua(l),h&&r.ssFallback&&(r.ssFallback.el=null))}),i&&!b.isFallbackMountPending&&(g(i.el)===u&&(o=f(i)),p(i,c,b,!0),!m&&h&&r.ssFallback&&Ec(()=>r.ssFallback.el=null,b)),m||d(a,u,o,0)),b.isFallbackMountPending=!1,Gc(b,a),b.pendingBranch=null,b.isInFallback=!1;let y=b.parent,x=!1;for(;y;){if(y.pendingBranch){y.effects.push(...l),x=!0;break}y=y.parent}x||m||Ua(l),b.effects=[],A&&t&&t.pendingBranch&&O===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),Wc(r,"onResolve")},fallback(e){if(!b.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:o}=b;Wc(t,"onFallback");const a=f(n),c=()=>{b.isFallbackMountPending=!1,b.isInFallback&&(h(null,e,i,a,r,null,o,s,l),Gc(b,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(b.isFallbackMountPending=!0,n.transition.afterLeave=c),b.isInFallback=!0,p(n,r,null,!0),u||c()},move(e,t,n){b.activeBranch&&d(b.activeBranch,e,t,n),b.container=e},next:()=>b.activeBranch&&f(b.activeBranch),registerDep(e,t,n){const r=!!b.pendingBranch;r&&b.deps++;const i=e.vnode.el;e.asyncDep.catch(t=>{Pa(t,e,0)}).then(o=>{if(e.isUnmounted||b.isUnmounted||b.pendingId!==e.suspenseId)return;Bu(),e.asyncResolved=!0;const{vnode:s}=e;Xu(e,o,!1),i&&(s.el=i);const l=!i&&e.subTree.el;t(e,s,g(i||e.subTree.el),i?null:f(e.subTree),b,a,n),l&&(s.placeholder=null,m(l)),Oc(e,s.el),r&&0===--b.deps&&b.resolve()})},unmount(e,t){b.isUnmounted=!0,b.activeBranch&&p(b.activeBranch,n,e,t),b.pendingBranch&&p(b.pendingBranch,n,e,t)}};return b}function Yc(e){let t;if(vr(e)){const n=ou&&e._c;n&&(e._d=!1,ru()),e=e(),n&&(e._d=!0,t=nu,iu())}if(gr(e)){const t=function(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(!uu(r))return;if(r.type!==Jc||"v-if"===r.children){if(t)return;t=r}}return t}(e);e=t}return e=bu(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function Zc(e,t){t&&t.pendingBranch?gr(e)?t.effects.push(...e):t.effects.push(e):Ua(e)}function Gc(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let i=t.el;for(;!i&&t.component;)i=(t=t.component.subTree).el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,Oc(r,i))}const Hc=Symbol.for("v-fgt"),Kc=Symbol.for("v-txt"),Jc=Symbol.for("v-cmt"),eu=Symbol.for("v-stc"),tu=[];let nu=null;function ru(e=!1){tu.push(nu=e?null:[])}function iu(){tu.pop(),nu=tu[tu.length-1]||null}let ou=1;function au(e,t=!1){ou+=e,e<0&&nu&&t&&(nu.hasOnce=!0)}function su(e){return e.dynamicChildren=ou>0?nu||ar:null,iu(),ou>0&&nu&&nu.push(e),e}function lu(e,t,n,r,i,o){return su(fu(e,t,n,r,i,o,!0))}function cu(e,t,n,r,i){return su(gu(e,t,n,r,i,!0))}function uu(e){return!!e&&!0===e.__v_isVNode}function hu(e,t){return e.type===t.type&&e.key===t.key}const du=({key:e})=>null!=e?e:null,pu=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?br(e)||ra(e)||vr(e)?{i:Za,r:e,k:t,f:!!n}:e:null);function fu(e,t=null,n=null,r=0,i=null,o=(e===Hc?0:1),a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&du(t),ref:t&&pu(t),scopeId:Ga,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Za};return s?(wu(l,n),128&o&&e.normalize(l)):n&&(l.shapeFlag|=br(n)?8:16),ou>0&&!a&&nu&&(l.patchFlag>0||6&o)&&32!==l.patchFlag&&nu.push(l),l}const gu=function(e,t=null,n=null,r=0,i=null,o=!1){e&&e!==Tl||(e=Jc);if(uu(e)){const r=Ou(e,t,!0);return n&&wu(r,n),ou>0&&!o&&nu&&(6&r.shapeFlag?nu[nu.indexOf(e)]=r:nu.push(r)),r.patchFlag=-2,r}a=e,vr(a)&&"__vccOpts"in a&&(e=e.__vccOpts);var a;if(t){t=mu(t);let{class:e,style:n}=t;e&&!br(e)&&(t.class=ri(e)),wr(n)&&(Ko(n)&&!gr(n)&&(n=hr({},n)),t.style=Kr(n))}const s=br(e)?1:zc(e)?128:gs(e)?64:wr(e)?4:vr(e)?2:0;return fu(e,t,n,r,i,s,o,!0)};function mu(e){return e?Ko(e)||vc(e)?hr({},e):e:null}function Ou(e,t,n=!1,r=!1){const{props:i,ref:o,patchFlag:a,children:s,transition:l}=e,c=t?ku(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&du(c),ref:t&&t.ref?n&&o?gr(o)?o.concat(pu(t)):[o,pu(t)]:pu(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Hc?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ou(e.ssContent),ssFallback:e.ssFallback&&Ou(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Ds(u,l.clone(u)),u}function Au(e=" ",t=0){return gu(Kc,null,e,t)}function yu(e,t){const n=gu(eu,null,e);return n.staticCount=t,n}function vu(e="",t=!1){return t?(ru(),cu(Jc,null,e)):gu(Jc,null,e)}function bu(e){return null==e||"boolean"==typeof e?gu(Jc):gr(e)?gu(Hc,null,e.slice()):uu(e)?xu(e):gu(Kc,null,String(e))}function xu(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Ou(e)}function wu(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(gr(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),wu(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||vc(t)?3===r&&Za&&(1===Za.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Za}}else vr(t)?(t={default:t,_ctx:Za},n=32):(t=String(t),64&r?(n=16,t=[Au(t)]):n=8);e.children=t,e.shapeFlag|=n}function ku(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=ri([t.class,r.class]));else if("style"===e)t.style=Kr([t.style,r.style]);else if(cr(e)){const n=t[e],i=r[e];!i||n===i||gr(n)&&n.includes(i)?null!=i||null!=n||ur(e)||(t[e]=i):t[e]=n?[].concat(n,i):i}else""!==e&&(t[e]=r[e])}return t}function Su(e,t,n,r=null){Qa(e,t,7,[n,r])}const Tu=rc();let $u=0;function _u(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||Tu,o={uid:$u++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Pi(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:kc(r,i),emitsOptions:uc(r,i),emit:null,emitted:null,propsDefaults:or,inheritAttrs:r.inheritAttrs,ctx:or,data:or,props:or,attrs:or,slots:or,refs:or,setupState:or,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=lc.bind(null,o),e.ce&&e.ce(o),o}let Cu=null;const Qu=()=>Cu||Za;let Pu,Eu;{const e=Vr(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Pu=t("__VUE_INSTANCE_SETTERS__",e=>Cu=e),Eu=t("__VUE_SSR_SETTERS__",e=>Mu=e)}const Ru=e=>{const t=Cu;return Pu(e),e.scope.on(),()=>{e.scope.off(),Pu(t)}},Bu=()=>{Cu&&Cu.scope.off(),Pu(null)};function Iu(e){return 4&e.vnode.shapeFlag}let Lu,Du,Mu=!1;function Nu(e,t=!1,n=!1){t&&Eu(t);const{props:r,children:i}=e.vnode,o=Iu(e);!function(e,t,n,r=!1){const i={},o=yc();e.propsDefaults=Object.create(null),bc(e,t,i,o);for(const a in e.propsOptions[0])a in i||(i[a]=void 0);n?e.props=r?i:Vo(i):e.type.props?e.props=i:e.props=o,e.attrs=o}(e,r,o,t),((e,t,n)=>{const r=e.slots=yc();if(32&e.vnode.shapeFlag){const e=t._;e?(Pc(r,t,n),n&&Fr(r,"_",e,!0)):Cc(t,r)}else t&&Qc(e,t)})(e,i,n||t);const a=o?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Nl);const{setup:r}=n;if(r){Hi();const n=e.setupContext=r.length>1?zu(e):null,i=Ru(e),o=Ca(r,e,0,[e.props,n]),a=kr(o);if(Ki(),i(),!a&&!e.sp||tl(e)||Xs(e),a){if(o.then(Bu,Bu),t)return o.then(n=>{Xu(e,n,t)}).catch(t=>{Pa(t,e,0)});e.asyncDep=o}else Xu(e,o,t)}else Fu(e,t)}(e,t):void 0;return t&&Eu(!1),a}function Xu(e,t,n){vr(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:wr(t)&&(e.setupState=da(t)),Fu(e,n)}function Fu(e,t,n){const r=e.type;if(!e.render){if(!t&&Lu&&!r.render){const t=r.template||Zl(e).template;if(t){const{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,s=hr(hr({isCustomElement:n,delimiters:o},i),a);r.render=Lu(t,s)}}e.render=r.render||sr,Du&&Du(e)}{const t=Ru(e);Hi();try{Wl(e)}finally{Ki(),t()}}}const Uu={get:(e,t)=>(lo(e,0,""),e[t])};function zu(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,Uu),slots:e.slots,emit:e.emit,expose:t}}function qu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(da(ea(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Dl?Dl[n](e):void 0,has:(e,t)=>t in e||t in Dl})):e.proxy}function Vu(e,t=!0){return vr(e)?e.displayName||e.name:e.name||t&&e.__name}const Wu=(e,t)=>ba(e,0,Mu);function ju(e,t,n){try{au(-1);const r=arguments.length;return 2===r?wr(t)&&!gr(t)?uu(t)?gu(e,null,[t]):gu(e,t):gu(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&uu(n)&&(n=[n]),gu(e,t,n))}finally{au(1)}}function Yu(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(Nr(n[r],t[r]))return!1;return ou>0&&nu&&nu.push(e),!0}const Zu="3.5.32",Gu=sr,Hu=_a,Ku=ja,Ju=function e(t,n){var r,i;if(ja=t,ja)ja.enabled=!0,Ya.forEach(({event:e,args:t})=>ja.emit(e,...t)),Ya=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null==(i=null==(r=window.navigator)?void 0:r.userAgent)?void 0:i.includes("jsdom"))){(n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(t=>{e(t,n)}),setTimeout(()=>{ja||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Ya=[])},3e3)}else Ya=[]},eh={createComponentInstance:_u,setupComponent:Nu,renderComponentRoot:dc,setCurrentRenderingInstance:Ha,isVNode:uu,normalizeVNode:bu,getComponentPublicInstance:qu,ensureValidVNode:Bl,pushWarningContext:function(e){$a.push(e)},popWarningContext:function(){$a.pop()}};let th;const nh="undefined"!=typeof window&&window.trustedTypes;if(nh)try{th=nh.createPolicy("vue",{createHTML:e=>e})}catch(jk){}const rh=th?e=>th.createHTML(e):e=>e,ih="undefined"!=typeof document?document:null,oh=ih&&ih.createElement("template"),ah={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i="svg"===t?ih.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?ih.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?ih.createElement(e,{is:n}):ih.createElement(e);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>ih.createTextNode(e),createComment:e=>ih.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ih.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,o){const a=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==o&&(i=i.nextSibling););else{oh.innerHTML=rh("svg"===r?`<svg>${e}</svg>`:"mathml"===r?`<math>${e}</math>`:e);const i=oh.content;if("svg"===r||"mathml"===r){const e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},sh="transition",lh="animation",ch=Symbol("_vtc"),uh={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},hh=hr({},Cs,uh),dh=e=>(e.displayName="Transition",e.props=hh,e),ph=dh((e,{slots:t})=>ju(Es,mh(e),t)),fh=(e,t=[])=>{gr(e)?e.forEach(e=>e(...t)):e&&e(...t)},gh=e=>!!e&&(gr(e)?e.some(e=>e.length>1):e.length>1);function mh(e){const t={};for(const _ in e)_ in uh||(t[_]=e[_]);if(!1===e.css)return t;const{name:n="v",type:r,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=a,appearToClass:u=s,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,f=function(e){if(null==e)return null;if(wr(e))return[Oh(e.enter),Oh(e.leave)];{const t=Oh(e);return[t,t]}}(i),g=f&&f[0],m=f&&f[1],{onBeforeEnter:O,onEnter:A,onEnterCancelled:y,onLeave:v,onLeaveCancelled:b,onBeforeAppear:x=O,onAppear:w=A,onAppearCancelled:k=y}=t,S=(e,t,n,r)=>{e._enterCancelled=r,yh(e,t?u:s),yh(e,t?c:a),n&&n()},T=(e,t)=>{e._isLeaving=!1,yh(e,h),yh(e,p),yh(e,d),t&&t()},$=e=>(t,n)=>{const i=e?w:A,a=()=>S(t,e,n);fh(i,[t,a]),vh(()=>{yh(t,e?l:o),Ah(t,e?u:s),gh(i)||xh(t,r,g,a)})};return hr(t,{onBeforeEnter(e){fh(O,[e]),Ah(e,o),Ah(e,a)},onBeforeAppear(e){fh(x,[e]),Ah(e,l),Ah(e,c)},onEnter:$(!1),onAppear:$(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>T(e,t);Ah(e,h),e._enterCancelled?(Ah(e,d),Th(e)):(Th(e),Ah(e,d)),vh(()=>{e._isLeaving&&(yh(e,h),Ah(e,p),gh(v)||xh(e,r,m,n))}),fh(v,[e,n])},onEnterCancelled(e){S(e,!1,void 0,!0),fh(y,[e])},onAppearCancelled(e){S(e,!0,void 0,!0),fh(k,[e])},onLeaveCancelled(e){T(e),fh(b,[e])}})}function Oh(e){return zr(e)}function Ah(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[ch]||(e[ch]=new Set)).add(t)}function yh(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));const n=e[ch];n&&(n.delete(t),n.size||(e[ch]=void 0))}function vh(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let bh=0;function xh(e,t,n,r){const i=e._endId=++bh,o=()=>{i===e._endId&&r()};if(null!=n)return setTimeout(o,n);const{type:a,timeout:s,propCount:l}=wh(e,t);if(!a)return r();const c=a+"end";let u=0;const h=()=>{e.removeEventListener(c,d),o()},d=t=>{t.target===e&&++u>=l&&h()};setTimeout(()=>{u<l&&h()},s+1),e.addEventListener(c,d)}function wh(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),i=r(`${sh}Delay`),o=r(`${sh}Duration`),a=kh(i,o),s=r(`${lh}Delay`),l=r(`${lh}Duration`),c=kh(s,l);let u=null,h=0,d=0;t===sh?a>0&&(u=sh,h=a,d=o.length):t===lh?c>0&&(u=lh,h=c,d=l.length):(h=Math.max(a,c),u=h>0?a>c?sh:lh:null,d=u?u===sh?o.length:l.length:0);return{type:u,timeout:h,propCount:d,hasTransform:u===sh&&/\b(?:transform|all)(?:,|$)/.test(r(`${sh}Property`).toString())}}function kh(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>Sh(t)+Sh(e[n])))}function Sh(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function Th(e){return(e?e.ownerDocument:document).body.offsetHeight}const $h=Symbol("_vod"),_h=Symbol("_vsh"),Ch={name:"show",beforeMount(e,{value:t},{transition:n}){e[$h]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Qh(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Qh(e,!0),r.enter(e)):r.leave(e,()=>{Qh(e,!1)}):Qh(e,t))},beforeUnmount(e,{value:t}){Qh(e,t)}};function Qh(e,t){e.style.display=t?e[$h]:"none",e[_h]=!t}const Ph=Symbol("");function Eh(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Eh(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Rh(e.el,t);else if(e.type===Hc)e.children.forEach(e=>Eh(e,t));else if(e.type===eu){let{el:n,anchor:r}=e;for(;n&&(Rh(n,t),n!==r);)n=n.nextSibling}}function Rh(e,t){if(1===e.nodeType){const n=e.style;let r="";for(const e in t){const i=$i(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[Ph]=r}}const Bh=/(?:^|;)\s*display\s*:/;const Ih=/\s*!important$/;function Lh(e,t,n){if(gr(n))n.forEach(n=>Lh(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=Mh[t];if(n)return n;let r=Br(t);if("filter"!==r&&r in e)return Mh[t]=r;r=Dr(r);for(let i=0;i<Dh.length;i++){const n=Dh[i]+r;if(n in e)return Mh[t]=n}return t}(e,t);Ih.test(n)?e.setProperty(Lr(r),n.replace(Ih,""),"important"):e[r]=n}}const Dh=["Webkit","Moz","ms"],Mh={};const Nh="http://www.w3.org/1999/xlink";function Xh(e,t,n,r,i,o=ui(t)){r&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(Nh,t.slice(6,t.length)):e.setAttributeNS(Nh,t,n):null==n||o&&!di(n)?e.removeAttribute(t):e.setAttribute(t,o?"":xr(n)?String(n):n)}function Fh(e,t,n,r,i){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?rh(n):n));const o=e.tagName;if("value"===t&&"PROGRESS"!==o&&!o.includes("-")){const r="OPTION"===o?e.getAttribute("value")||"":e.value,i=null==n?"checkbox"===e.type?"on":"":String(n);return r===i&&"_value"in e||(e.value=i),null==n&&e.removeAttribute(t),void(e._value=n)}let a=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=di(n):null==n&&"string"===r?(n="",a=!0):"number"===r&&(n=0,a=!0)}try{e[t]=n}catch(jk){}a&&e.removeAttribute(i||t)}function Uh(e,t,n,r){e.addEventListener(t,n,r)}const zh=Symbol("_vei");function qh(e,t,n,r,i=null){const o=e[zh]||(e[zh]={}),a=o[t];if(r&&a)a.value=r;else{const[n,s]=function(e){let t;if(Vh.test(e)){let n;for(t={};n=e.match(Vh);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):Lr(e.slice(2));return[n,t]}(t);if(r){const a=o[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();Qa(function(e,t){if(gr(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Yh(),n}(r,i);Uh(e,n,a,s)}else a&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,a,s),o[t]=void 0)}}const Vh=/(?:Once|Passive|Capture)$/;let Wh=0;const jh=Promise.resolve(),Yh=()=>Wh||(jh.then(()=>Wh=0),Wh=Date.now());const Zh=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Gh=(e,t,n,r,i,o)=>{const a="svg"===i;"class"===t?function(e,t,n){const r=e[ch];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,a):"style"===t?function(e,t,n){const r=e.style,i=br(n);let o=!1;if(n&&!i){if(t)if(br(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Lh(r,t,"")}else for(const e in t)null==n[e]&&Lh(r,e,"");for(const e in n)"display"===e&&(o=!0),Lh(r,e,n[e])}else if(i){if(t!==n){const e=r[Ph];e&&(n+=";"+e),r.cssText=n,o=Bh.test(n)}}else t&&e.removeAttribute("style");$h in e&&(e[$h]=o?r.display:"",e[_h]&&(r.display="none"))}(e,n,r):cr(t)?ur(t)||qh(e,t,0,r,o):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&Zh(t)&&vr(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("sandbox"===t&&"IFRAME"===e.tagName)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(Zh(t)&&br(n))return!1;return t in e}(e,t,r,a))?(Fh(e,t,r),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Xh(e,t,r,a,0,"value"!==t)):e._isVueCE&&(function(e,t){const n=e._def.props;if(!n)return!1;const r=Br(t);return Array.isArray(n)?n.some(e=>Br(e)===r):Object.keys(n).some(e=>Br(e)===r)}(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!br(r)))?Fh(e,Br(t),r,0,t):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),Xh(e,t,r,a))};const Hh={};function Kh(e,t,n){let r=Ns(e,t);_r(r)&&(r=hr({},r,t));class i extends ed{constructor(e){super(r,e,n)}}return i.def=r,i}const Jh="undefined"!=typeof HTMLElement?HTMLElement:class{};class ed extends Jh{constructor(e,t={},n=Xd){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==Xd?this._root=this.shadowRoot:!1!==e.shadowRoot?(this.attachShadow(hr({},e.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._resolved||this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.assignedSlot||e.parentNode||e.host);)if(e instanceof ed){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,Na(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(e){for(const t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:n,styles:r}=e;let i;if(n&&!gr(n))for(const o in n){const e=n[o];(e===Number||e&&e.type===Number)&&(o in this._props&&(this._props[o]=zr(this._props[o])),(i||(i=Object.create(null)))[Br(o)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const t=this._instance&&this._instance.exposed;if(t)for(const n in t)fr(this,n)||Object.defineProperty(this,n,{get:()=>ca(t[n])})}_resolveProps(e){const{props:t}=e,n=gr(t)?t:Object.keys(t||{});for(const r of Object.keys(this))"_"!==r[0]&&n.includes(r)&&this._setProp(r,this[r]);for(const r of n.map(Br))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(e){this._setProp(r,e,!0,!this._patching)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const t=this.hasAttribute(e);let n=t?this.getAttribute(e):Hh;const r=Br(e);t&&this._numberProps&&this._numberProps[r]&&(n=zr(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(this._dirty=!0,t===Hh?delete this._props[e]:(this._props[e]=t,"key"===e&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){const n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),!0===t?this.setAttribute(Lr(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(Lr(e),t+""):t||this.removeAttribute(Lr(e)),n&&n.observe(this,{attributes:!0})}}_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),Nd(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const t=gu(this._def,hr(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,_r(t[0])?hr({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),Lr(e)!==e&&t(Lr(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}const r=this._nonce,i=this.shadowRoot,o=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i);let a=null;for(let s=e.length-1;s>=0;s--){const l=document.createElement("style");r&&l.setAttribute("nonce",r),l.textContent=e[s],i.insertBefore(l,a||o),a=l,0===s&&(n||this._styleAnchors.set(this._def,l),t&&this._styleAnchors.set(t,l))}}_getStyleAnchor(e){if(!e)return null;const t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){const e=this._slots={};let t;for(;t=this.firstChild;){const n=1===t.nodeType&&t.getAttribute("slot")||"default";(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){const e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){const r=e[n],i=r.getAttribute("name")||"default",o=this._slots[i],a=r.parentNode;if(o)for(const e of o){if(t&&1===e.nodeType){const n=t+"-s",r=document.createTreeWalker(e,1);let i;for(e.setAttribute(n,"");i=r.nextNode();)i.setAttribute(n,"")}a.insertBefore(e,r)}else for(;r.firstChild;)a.insertBefore(r.firstChild,r);a.removeChild(r)}}_getSlots(){const e=[this];this._teleportTargets&&e.push(...this._teleportTargets);const t=new Set;for(const n of e){const e=n.querySelectorAll("slot");for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return!1!==this._def.shadowRoot}_removeChildStyle(e){}}function td(e){const t=Qu(),n=t&&t.ce;return n||null}const nd=new WeakMap,rd=new WeakMap,id=Symbol("_moveCb"),od=Symbol("_enterCb"),ad=e=>(delete e.props.mode,e),sd=ad({name:"TransitionGroup",props:hr({},hh,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Qu(),r=$s();let i,o;return Ol(()=>{if(!i.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const r=e.cloneNode(),i=e[ch];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))});n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display="none";const o=1===t.nodeType?t:t.parentNode;o.appendChild(r);const{hasTransform:a}=wh(r);return o.removeChild(r),a}(i[0].el,n.vnode.el,t))return void(i=[]);i.forEach(cd),i.forEach(ud);const r=i.filter(hd);Th(n.vnode.el),r.forEach(e=>{const n=e.el,r=n.style;Ah(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const i=n[id]=e=>{e&&e.target!==n||e&&!e.propertyName.endsWith("transform")||(n.removeEventListener("transitionend",i),n[id]=null,yh(n,t))};n.addEventListener("transitionend",i)}),i=[]}),()=>{const a=Jo(e),s=mh(a);let l=a.tag||Hc;if(i=[],o)for(let e=0;e<o.length;e++){const t=o[e];t.el&&t.el instanceof Element&&(i.push(t),Ds(t,Bs(t,s,r,n)),nd.set(t,dd(t.el)))}o=t.default?Ms(t.default()):[];for(let e=0;e<o.length;e++){const t=o[e];null!=t.key&&Ds(t,Bs(t,s,r,n))}return gu(l,null,o)}}}),ld=sd;function cd(e){const t=e.el;t[id]&&t[id](),t[od]&&t[od]()}function ud(e){rd.set(e,dd(e.el))}function hd(e){const t=nd.get(e),n=rd.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const t=e.el,n=t.style,o=t.getBoundingClientRect();let a=1,s=1;return t.offsetWidth&&(a=o.width/t.offsetWidth),t.offsetHeight&&(s=o.height/t.offsetHeight),Number.isFinite(a)&&0!==a||(a=1),Number.isFinite(s)&&0!==s||(s=1),Math.abs(a-1)<.01&&(a=1),Math.abs(s-1)<.01&&(s=1),n.transform=n.webkitTransform=`translate(${r/a}px,${i/s}px)`,n.transitionDuration="0s",e}}function dd(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}const pd=e=>{const t=e.props["onUpdate:modelValue"]||!1;return gr(t)?e=>Xr(t,e):t};function fd(e){e.target.composing=!0}function gd(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const md=Symbol("_assign");function Od(e,t,n){return t&&(e=e.trim()),n&&(e=Ur(e)),e}const Ad={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[md]=pd(i);const o=r||i.props&&"number"===i.props.type;Uh(e,t?"change":"input",t=>{t.target.composing||e[md](Od(e.value,n,o))}),(n||o)&&Uh(e,"change",()=>{e.value=Od(e.value,n,o)}),t||(Uh(e,"compositionstart",fd),Uh(e,"compositionend",gd),Uh(e,"change",gd))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:o}},a){if(e[md]=pd(a),e.composing)return;const s=null==t?"":t;if((!o&&"number"!==e.type||/^0\d/.test(e.value)?e.value:Ur(e.value))===s)return;const l=e.getRootNode();if((l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&"range"!==e.type){if(r&&t===n)return;if(i&&e.value.trim()===s)return}e.value=s}},yd={deep:!0,created(e,t,n){e[md]=pd(n),Uh(e,"change",()=>{const t=e._modelValue,n=kd(e),r=e.checked,i=e[md];if(gr(t)){const e=xi(t,n),o=-1!==e;if(r&&!o)i(t.concat(n));else if(!r&&o){const n=[...t];n.splice(e,1),i(n)}}else if(Or(t)){const e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Sd(e,r))})},mounted:vd,beforeUpdate(e,t,n){e[md]=pd(n),vd(e,t,n)}};function vd(e,{value:t,oldValue:n},r){let i;if(e._modelValue=t,gr(t))i=xi(t,r.props.value)>-1;else if(Or(t))i=t.has(r.props.value);else{if(t===n)return;i=bi(t,Sd(e,!0))}e.checked!==i&&(e.checked=i)}const bd={created(e,{value:t},n){e.checked=bi(t,n.props.value),e[md]=pd(n),Uh(e,"change",()=>{e[md](kd(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[md]=pd(r),t!==n&&(e.checked=bi(t,r.props.value))}},xd={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=Or(t);Uh(e,"change",()=>{const t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?Ur(kd(e)):kd(e));e[md](e.multiple?i?new Set(t):t:t[0]),e._assigning=!0,Na(()=>{e._assigning=!1})}),e[md]=pd(r)},mounted(e,{value:t}){wd(e,t)},beforeUpdate(e,t,n){e[md]=pd(n)},updated(e,{value:t}){e._assigning||wd(e,t)}};function wd(e,t){const n=e.multiple,r=gr(t);if(!n||r||Or(t)){for(let i=0,o=e.options.length;i<o;i++){const o=e.options[i],a=kd(o);if(n)if(r){const e=typeof a;o.selected="string"===e||"number"===e?t.some(e=>String(e)===String(a)):xi(t,a)>-1}else o.selected=t.has(a);else if(bi(kd(o),t))return void(e.selectedIndex!==i&&(e.selectedIndex=i))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function kd(e){return"_value"in e?e._value:e.value}function Sd(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Td={created(e,t,n){_d(e,t,n,null,"created")},mounted(e,t,n){_d(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){_d(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){_d(e,t,n,r,"updated")}};function $d(e,t){switch(e){case"SELECT":return xd;case"TEXTAREA":return Ad;default:switch(t){case"checkbox":return yd;case"radio":return bd;default:return Ad}}}function _d(e,t,n,r,i){const o=$d(e.tagName,n.props&&n.props.type)[i];o&&o(e,t,n,r)}const Cd=["ctrl","shift","alt","meta"],Qd={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Cd.some(n=>e[`${n}Key`]&&!t.includes(n))},Pd=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(n,...r)=>{for(let e=0;e<t.length;e++){const r=Qd[t[e]];if(r&&r(n,t))return}return e(n,...r)})},Ed={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Rd=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=n=>{if(!("key"in n))return;const r=Lr(n.key);return t.some(e=>e===r||Ed[e]===r)?e(n):void 0})},Bd=hr({patchProp:Gh},ah);let Id,Ld=!1;function Dd(){return Id||(Id=Rc(Bd))}function Md(){return Id=Ld?Id:Bc(Bd),Ld=!0,Id}const Nd=(...e)=>{Dd().render(...e)},Xd=(...e)=>{const t=Dd().createApp(...e),{mount:n}=t;return t.mount=e=>{const r=zd(e);if(!r)return;const i=t._component;vr(i)||i.render||i.template||(i.template=r.innerHTML),1===r.nodeType&&(r.textContent="");const o=n(r,!1,Ud(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t},Fd=(...e)=>{const t=Md().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=zd(e);if(t)return n(t,!0,Ud(t))},t};function Ud(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function zd(e){if(br(e)){return document.querySelector(e)}return e}let qd=!1;const Vd=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Es,BaseTransitionPropsValidators:Cs,Comment:Jc,DeprecationTypes:null,EffectScope:Pi,ErrorCodes:{SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},ErrorTypeStrings:Hu,Fragment:Hc,KeepAlive:il,ReactiveEffect:Li,Static:eu,Suspense:Vc,Teleport:xs,Text:Kc,TrackOpTypes:{GET:"get",HAS:"has",ITERATE:"iterate"},Transition:ph,TransitionGroup:ld,TriggerOpTypes:{SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},VueElement:ed,assertNumber:function(e,t){},callWithAsyncErrorHandling:Qa,callWithErrorHandling:Ca,camelize:Br,capitalize:Dr,cloneVNode:Ou,compatUtils:null,computed:Wu,createApp:Xd,createBlock:cu,createCommentVNode:vu,createElementBlock:lu,createElementVNode:fu,createHydrationRenderer:Bc,createPropsRestProxy:function(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n},createRenderer:Rc,createSSRApp:Fd,createSlots:El,createStaticVNode:yu,createTextVNode:Au,createVNode:gu,customRef:fa,defineAsyncComponent:function(e){vr(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:o,timeout:a,suspensible:s=!0,onError:l}=e;let c,u=null,h=0;const d=()=>{let e;return u||(e=u=t().catch(e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise((t,n)=>{l(e,()=>t((h++,u=null,d())),()=>n(e),h+1)});throw e}).then(t=>e!==u&&u?u:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t)))};return Ns({name:"AsyncComponentWrapper",__asyncLoader:d,__asyncHydrate(e,t,n){let r=!1;(t.bu||(t.bu=[])).push(()=>r=!0);const i=()=>{r||n()},a=o?()=>{const n=o(i,t=>function(e,t){if(Ys(e)&&"["===e.data){let n=1,r=e.nextSibling;for(;r;){if(1===r.nodeType){if(!1===t(r))break}else if(Ys(r))if("]"===r.data){if(0===--n)break}else"["===r.data&&n++;r=r.nextSibling}}else t(e)}(e,t));n&&(t.bum||(t.bum=[])).push(n)}:i;c?a():d().then(()=>!t.isUnmounted&&a())},get __asyncResolved(){return c},setup(){const e=Cu;if(Xs(e),c)return()=>nl(c,e);const t=t=>{u=null,Pa(t,e,13,!r)};if(s&&e.suspense||Mu)return d().then(t=>()=>nl(t,e)).catch(e=>(t(e),()=>r?gu(r,{error:e}):null));const o=ia(!1),l=ia(),h=ia(!!i);return i&&setTimeout(()=>{h.value=!1},i),null!=a&&setTimeout(()=>{if(!o.value&&!l.value){const e=new Error(`Async component timed out after ${a}ms.`);t(e),l.value=e}},a),d().then(()=>{o.value=!0,e.parent&&rl(e.parent.vnode)&&e.parent.update()}).catch(e=>{t(e),l.value=e}),()=>o.value&&c?nl(c,e):l.value&&r?gu(r,{error:l.value}):n&&!h.value?nl(n,e):void 0}})},defineComponent:Ns,defineCustomElement:Kh,defineEmits:function(){return null},defineExpose:function(e){},defineModel:function(){},defineOptions:function(e){},defineProps:function(){return null},defineSSRCustomElement:(e,t)=>Kh(e,t,Fd),defineSlots:function(){return null},devtools:Ku,effect:function(e,t){e.effect instanceof Li&&(e=e.effect.fn);const n=new Li(e);t&&hr(n,t);try{n.run()}catch(i){throw n.stop(),i}const r=n.run.bind(n);return r.effect=n,r},effectScope:Ei,getCurrentInstance:Qu,getCurrentScope:Ri,getCurrentWatcher:function(){return ka},getTransitionRawChildren:Ms,guardReactiveProps:mu,h:ju,handleError:Pa,hasInjectionContext:rs,hydrate:(...e)=>{Md().hydrate(...e)},hydrateOnIdle:(e=1e4)=>t=>{const n=Js(t,{timeout:e});return()=>el(n)},hydrateOnInteraction:(e=[])=>(t,n)=>{br(e)&&(e=[e]);let r=!1;const i=e=>{r||(r=!0,o(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},o=()=>{n(t=>{for(const n of e)t.removeEventListener(n,i)})};return n(t=>{for(const n of e)t.addEventListener(n,i,{once:!0})}),o},hydrateOnMediaQuery:e=>t=>{if(e){const n=matchMedia(e);if(!n.matches)return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t);t()}},hydrateOnVisible:e=>(t,n)=>{const r=new IntersectionObserver(e=>{for(const n of e)if(n.isIntersecting){r.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element)return function(e){const{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:o,innerWidth:a}=window;return(t>0&&t<o||r>0&&r<o)&&(n>0&&n<a||i>0&&i<a)}(e)?(t(),r.disconnect(),!1):void r.observe(e)}),()=>r.disconnect()},initCustomFormatter:function(){},initDirectivesForSSR:()=>{qd||(qd=!0,Ad.getSSRProps=({value:e})=>({value:e}),bd.getSSRProps=({value:e},t)=>{if(t.props&&bi(t.props.value,e))return{checked:!0}},yd.getSSRProps=({value:e},t)=>{if(gr(e)){if(t.props&&xi(e,t.props.value)>-1)return{checked:!0}}else if(Or(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Td.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=$d(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},Ch.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},inject:ns,isMemoSame:Yu,isProxy:Ko,isReactive:Zo,isReadonly:Go,isRef:ra,isRuntimeOnly:()=>!Lu,isShallow:Ho,isVNode:uu,markRaw:ea,mergeDefaults:function(e,t){const n=ql(e);for(const r in t){if(r.startsWith("__skip"))continue;let e=n[r];e?gr(e)||vr(e)?e=n[r]={type:e,default:t[r]}:e.default=t[r]:null===e&&(e=n[r]={default:t[r]}),e&&t[`__skip_${r}`]&&(e.skipFactory=!0)}return n},mergeModels:function(e,t){return e&&t?gr(e)&&gr(t)?e.concat(t):hr({},ql(e),ql(t)):e||t},mergeProps:ku,nextTick:Na,nodeOps:ah,normalizeClass:ri,normalizeProps:ii,normalizeStyle:Kr,onActivated:al,onBeforeMount:fl,onBeforeUnmount:Al,onBeforeUpdate:ml,onDeactivated:sl,onErrorCaptured:wl,onMounted:gl,onRenderTracked:xl,onRenderTriggered:bl,onScopeDispose:Bi,onServerPrefetch:vl,onUnmounted:yl,onUpdated:Ol,onWatcherCleanup:Sa,openBlock:ru,patchProp:Gh,popScopeId:function(){Ga=null},provide:ts,proxyRefs:da,pushScopeId:function(e){Ga=e},queuePostFlushCb:Ua,reactive:qo,readonly:Wo,ref:ia,registerRuntimeCompiler:function(e){Lu=e,Du=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Xl))}},render:Nd,renderList:Pl,renderSlot:Rl,resolveComponent:Sl,resolveDirective:_l,resolveDynamicComponent:$l,resolveFilter:null,resolveTransitionHooks:Bs,setBlockTracking:au,setDevtoolsHook:Ju,setTransitionHooks:Ds,shallowReactive:Vo,shallowReadonly:jo,shallowRef:oa,ssrContextKey:is,ssrUtils:eh,stop:function(e){e.effect.stop()},toDisplayString:ki,toHandlerKey:Mr,toHandlers:Il,toRaw:Jo,toRef:Aa,toRefs:ga,toValue:ua,transformVNodeArgs:function(e){},triggerRef:la,unref:ca,useAttrs:Ul,useCssModule:function(e="$style"){{const t=Qu();if(!t)return or;const n=t.type.__cssModules;if(!n)return or;const r=n[e];return r||or}},useCssVars:function(e){const t=Qu();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>Rh(e,n))},r=()=>{const r=e(t.proxy);t.ce?Rh(t.ce,r):Eh(t.subTree,r),n(r)};ml(()=>{Ua(r)}),gl(()=>{cs(r,sr,{flush:"post"});const e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),yl(()=>e.disconnect())})},useHost:td,useId:function(){const e=Qu();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""},useModel:function(e,t,n=or){const r=Qu(),i=Br(t),o=Lr(t),a=sc(e,i),s=fa((a,s)=>{let l,c,u=or;return ls(()=>{const t=e[i];Nr(l,t)&&(l=t,s())}),{get:()=>(a(),n.get?n.get(l):l),set(e){const a=n.set?n.set(e):e;if(!(Nr(a,l)||u!==or&&Nr(e,u)))return;const h=r.vnode.props;h&&(t in h||i in h||o in h)&&(`onUpdate:${t}`in h||`onUpdate:${i}`in h||`onUpdate:${o}`in h)||(l=e,s()),r.emit(`update:${t}`,a),Nr(e,a)&&Nr(e,u)&&!Nr(a,c)&&s(),u=e,c=a}}});return s[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?a||or:s,done:!1}:{done:!0}}},s},useSSRContext:as,useShadowRoot:function(){const e=td();return e&&e.shadowRoot},useSlots:Fl,useTemplateRef:function(e){const t=Qu(),n=oa(null);if(t){const r=t.refs===or?t.refs={}:t.refs;Object.defineProperty(r,e,{enumerable:!0,get:()=>n.value,set:e=>n.value=e})}return n},useTransitionState:$s,vModelCheckbox:yd,vModelDynamic:Td,vModelRadio:bd,vModelSelect:xd,vModelText:Ad,vShow:Ch,version:Zu,warn:Gu,watch:cs,watchEffect:ss,watchPostEffect:function(e,t){return us(e,null,{flush:"post"})},watchSyncEffect:ls,withAsyncContext:function(e){const t=Qu(),n=Mu;let r=e();Bu(),n&&Eu(!1);const i=()=>{Ru(t),n&&Eu(!0)},o=()=>{Qu()!==t&&t.scope.off(),Bu(),n&&Eu(!1)};return kr(r)&&(r=r.catch(e=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(o)),e})),[r,()=>{i(),Promise.resolve().then(o)}]},withCtx:Ka,withDefaults:function(e,t){return null},withDirectives:Ja,withKeys:Rd,withMemo:function(e,t,n,r){const i=n[r];if(i&&Yu(i,e))return i;const o=t();return o.memo=e.slice(),o.cacheIndex=r,n[r]=o},withModifiers:Pd,withScopeId:e=>Ka},Symbol.toStringTag,{value:"Module"})),Wd="undefined"!=typeof document;function jd(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}const Yd=Object.assign;function Zd(e,t){const n={};for(const r in t){const i=t[r];n[r]=Hd(i)?i.map(e):e(i)}return n}const Gd=()=>{},Hd=Array.isArray;function Kd(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const Jd=/#/g,ep=/&/g,tp=/\//g,np=/=/g,rp=/\?/g,ip=/\+/g,op=/%5B/g,ap=/%5D/g,sp=/%5E/g,lp=/%60/g,cp=/%7B/g,up=/%7C/g,hp=/%7D/g,dp=/%20/g;function pp(e){return null==e?"":encodeURI(""+e).replace(up,"|").replace(op,"[").replace(ap,"]")}function fp(e){return pp(e).replace(ip,"%2B").replace(dp,"+").replace(Jd,"%23").replace(ep,"%26").replace(lp,"`").replace(cp,"{").replace(hp,"}").replace(sp,"^")}function gp(e){return fp(e).replace(np,"%3D")}function mp(e){return function(e){return pp(e).replace(Jd,"%23").replace(rp,"%3F")}(e).replace(tp,"%2F")}function Op(e){if(null==e)return null;try{return decodeURIComponent(""+e)}catch(t){}return""+e}const Ap=/\/$/;function yp(e,t,n="/"){let r,i={},o="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return l=s>=0&&l>s?-1:l,l>=0&&(r=t.slice(0,l),o=t.slice(l,s>0?s:t.length),i=e(o.slice(1))),s>=0&&(r=r||t.slice(0,s),a=t.slice(s,t.length)),r=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];".."!==i&&"."!==i||r.push("");let o,a,s=n.length-1;for(o=0;o<r.length;o++)if(a=r[o],"."!==a){if(".."!==a)break;s>1&&s--}return n.slice(0,s).join("/")+"/"+r.slice(o).join("/")}(null!=r?r:t,n),{fullPath:r+o+a,path:r,query:i,hash:Op(a)}}function vp(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function bp(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function xp(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!wp(e[n],t[n]))return!1;return!0}function wp(e,t){return Hd(e)?kp(e,t):Hd(t)?kp(t,e):(null==e?void 0:e.valueOf())===(null==t?void 0:t.valueOf())}function kp(e,t){return Hd(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):1===e.length&&e[0]===t}const Sp={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Tp=function(e){return e.pop="pop",e.push="push",e}({}),$p=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function _p(e){if(!e)if(Wd){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(Ap,"")}const Cp=/^[^#]+#/;function Qp(e,t){return e.replace(Cp,"#")+t}const Pp=()=>({left:window.scrollX,top:window.scrollY});function Ep(e){let t;if("el"in e){const n=e.el,r="string"==typeof n&&n.startsWith("#"),i="string"==typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function Rp(e,t){return(history.state?history.state.position-t:-1)+e}const Bp=new Map;function Ip(e){return"string"==typeof e||"symbol"==typeof e}let Lp=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const Dp=Symbol("");function Mp(e,t){return Yd(new Error,{type:e,[Dp]:!0},t)}function Np(e,t){return e instanceof Error&&Dp in e&&(null==t||!!(e.type&t))}Lp.MATCHER_NOT_FOUND,Lp.NAVIGATION_GUARD_REDIRECT,Lp.NAVIGATION_ABORTED,Lp.NAVIGATION_CANCELLED,Lp.NAVIGATION_DUPLICATED;function Xp(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const e=n[r].replace(ip," "),i=e.indexOf("="),o=Op(i<0?e:e.slice(0,i)),a=i<0?null:Op(e.slice(i+1));if(o in t){let e=t[o];Hd(e)||(e=t[o]=[e]),e.push(a)}else t[o]=a}return t}function Fp(e){let t="";for(let n in e){const r=e[n];n=gp(n),null!=r?(Hd(r)?r.map(e=>e&&fp(e)):[r&&fp(r)]).forEach(e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}):void 0!==r&&(t+=(t.length?"&":"")+n)}return t}function Up(e){const t={};for(const n in e){const r=e[n];void 0!==r&&(t[n]=Hd(r)?r.map(e=>null==e?null:""+e):null==r?r:""+r)}return t}const zp=Symbol(""),qp=Symbol(""),Vp=Symbol(""),Wp=Symbol(""),jp=Symbol("");function Yp(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function Zp(e,t,n,r,i,o=e=>e()){const a=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const c=e=>{var o;!1===e?l(Mp(Lp.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?l(e):"string"==typeof(o=e)||o&&"object"==typeof o?l(Mp(Lp.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(a&&r.enterCallbacks[i]===a&&"function"==typeof e&&a.push(e),s())},u=o(()=>e.call(r&&r.instances[i],t,n,c));let h=Promise.resolve(u);e.length<3&&(h=h.then(c)),h.catch(e=>l(e))})}function Gp(e,t,n,r,i=e=>e()){const o=[];for(const a of e)for(const e in a.components){let s=a.components[e];if("beforeRouteEnter"===t||a.instances[e])if(jd(s)){const l=(s.__vccOpts||s)[t];l&&o.push(Zp(l,n,r,a,e,i))}else{let l=s();o.push(()=>l.then(o=>{if(!o)throw new Error(`Couldn't resolve component "${e}" at "${a.path}"`);const s=(l=o).__esModule||"Module"===l[Symbol.toStringTag]||l.default&&jd(l.default)?o.default:o;var l;a.mods[e]=o,a.components[e]=s;const c=(s.__vccOpts||s)[t];return c&&Zp(c,n,r,a,e,i)()}))}}return o}function Hp(e,t){const{pathname:n,search:r,hash:i}=t,o=e.indexOf("#");if(o>-1){let t=i.includes(e.slice(o))?e.slice(o).length:1,n=i.slice(t);return"/"!==n[0]&&(n="/"+n),vp(n,"")}return vp(n,e)+r+i}function Kp(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Pp():null}}function Jp(e){const{history:t,location:n}=window,r={value:Hp(e,n)},i={value:t.state};function o(r,o,a){const s=e.indexOf("#"),l=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+r:location.protocol+"//"+location.host+e+r;try{t[a?"replaceState":"pushState"](o,"",l),i.value=o}catch(c){n[a?"replace":"assign"](l)}}return i.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:r,state:i,push:function(e,n){const a=Yd({},i.value,t.state,{forward:e,scroll:Pp()});o(a.current,a,!0),o(e,Yd({},Kp(r.value,e,null),{position:a.position+1},n),!1),r.value=e},replace:function(e,n){o(e,Yd({},t.state,Kp(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}}}function ef(e){const t=Jp(e=_p(e)),n=function(e,t,n,r){let i=[],o=[],a=null;const s=({state:o})=>{const s=Hp(e,location),l=n.value,c=t.value;let u=0;if(o){if(n.value=s,t.value=o,a&&a===l)return void(a=null);u=c?o.position-c.position:0}else r(s);i.forEach(e=>{e(n.value,l,{delta:u,type:Tp.pop,direction:u?u>0?$p.forward:$p.back:$p.unknown})})};function l(){if("hidden"===document.visibilityState){const{history:e}=window;if(!e.state)return;e.replaceState(Yd({},e.state,{scroll:Pp()}),"")}}return window.addEventListener("popstate",s),window.addEventListener("pagehide",l),document.addEventListener("visibilitychange",l),{pauseListeners:function(){a=n.value},listen:function(e){i.push(e);const t=()=>{const t=i.indexOf(e);t>-1&&i.splice(t,1)};return o.push(t),t},destroy:function(){for(const e of o)e();o=[],window.removeEventListener("popstate",s),window.removeEventListener("pagehide",l),document.removeEventListener("visibilitychange",l)}}}(e,t.state,t.location,t.replace);const r=Yd({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:Qp.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function tf(e){return(e=location.host?e||location.pathname+location.search:"").includes("#")||(e+="#"),ef(e)}let nf=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var rf=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(rf||{});const of={type:nf.Static,value:""},af=/[a-zA-Z0-9_]/;const sf="[^/]+?",lf={sensitive:!1,strict:!1,start:!0,end:!0};var cf=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e}(cf||{});const uf=/[.+*?^${}()[\]/\\]/g;function hf(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?1===e.length&&e[0]===cf.Static+cf.Segment?-1:1:e.length>t.length?1===t.length&&t[0]===cf.Static+cf.Segment?1:-1:0}function df(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const e=hf(r[n],i[n]);if(e)return e;n++}if(1===Math.abs(i.length-r.length)){if(pf(r))return 1;if(pf(i))return-1}return i.length-r.length}function pf(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const ff={strict:!1,end:!0,sensitive:!1};function gf(e,t,n){const r=function(e,t){const n=Yd({},lf,t),r=[];let i=n.start?"^":"";const o=[];for(const s of e){const e=s.length?[]:[cf.Root];n.strict&&!s.length&&(i+="/");for(let t=0;t<s.length;t++){const r=s[t];let a=cf.Segment+(n.sensitive?cf.BonusCaseSensitive:0);if(r.type===nf.Static)t||(i+="/"),i+=r.value.replace(uf,"\\$&"),a+=cf.Static;else if(r.type===nf.Param){const{value:e,repeatable:n,optional:l,regexp:c}=r;o.push({name:e,repeatable:n,optional:l});const u=c||sf;u!==sf&&(a+=cf.BonusCustomRegExp);let h=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;t||(h=l&&s.length<2?`(?:/${h})`:"/"+h),l&&(h+="?"),i+=h,a+=cf.Dynamic,l&&(a+=cf.BonusOptional),n&&(a+=cf.BonusRepeatable),".*"===u&&(a+=cf.BonusWildcard)}e.push(a)}r.push(e)}if(n.strict&&n.end){const e=r.length-1;r[e][r[e].length-1]+=cf.BonusStrict}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const a=new RegExp(i,n.sensitive?"":"i");return{re:a,score:r,keys:o,parse:function(e){const t=e.match(a),n={};if(!t)return null;for(let r=1;r<t.length;r++){const e=t[r]||"",i=o[r-1];n[i.name]=e&&i.repeatable?e.split("/"):e}return n},stringify:function(t){let n="",r=!1;for(const i of e){r&&n.endsWith("/")||(n+="/"),r=!1;for(const e of i)if(e.type===nf.Static)n+=e.value;else if(e.type===nf.Param){const{value:o,repeatable:a,optional:s}=e,l=o in t?t[o]:"";if(Hd(l)&&!a)throw new Error(`Provided param "${o}" is an array but it is not repeatable (* or + modifiers)`);const c=Hd(l)?l.join("/"):l;if(!c){if(!s)throw new Error(`Missing required param "${o}"`);i.length<2&&(n.endsWith("/")?n=n.slice(0,-1):r=!0)}n+=c}}return n||"/"}}}(function(e){if(!e)return[[]];if("/"===e)return[[of]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${c}": ${e}`)}let n=rf.Static,r=n;const i=[];let o;function a(){o&&i.push(o),o=[]}let s,l=0,c="",u="";function h(){c&&(n===rf.Static?o.push({type:nf.Static,value:c}):n===rf.Param||n===rf.ParamRegExp||n===rf.ParamRegExpEnd?(o.length>1&&("*"===s||"+"===s)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:nf.Param,value:c,regexp:u,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),c="")}function d(){c+=s}for(;l<e.length;)if(s=e[l++],"\\"!==s||n===rf.ParamRegExp)switch(n){case rf.Static:"/"===s?(c&&h(),a()):":"===s?(h(),n=rf.Param):d();break;case rf.EscapeNext:d(),n=r;break;case rf.Param:"("===s?n=rf.ParamRegExp:af.test(s)?d():(h(),n=rf.Static,"*"!==s&&"?"!==s&&"+"!==s&&l--);break;case rf.ParamRegExp:")"===s?"\\"==u[u.length-1]?u=u.slice(0,-1)+s:n=rf.ParamRegExpEnd:u+=s;break;case rf.ParamRegExpEnd:h(),n=rf.Static,"*"!==s&&"?"!==s&&"+"!==s&&l--,u="";break;default:t("Unknown state")}else r=n,n=rf.EscapeNext;return n===rf.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),h(),a(),i}(e.path),n),i=Yd(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function mf(e,t){const n=[],r=new Map;function i(e,n,r){const s=!r,l=Af(e);l.aliasOf=r&&r.record;const c=Kd(t,e),u=[l];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)u.push(Af(Yd({},l,{components:r?r.record.components:l.components,path:e,aliasOf:r?r.record:l})))}let h,d;for(const t of u){const{path:u}=t;if(n&&"/"!==u[0]){const e=n.record.path,r="/"===e[e.length-1]?"":"/";t.path=n.record.path+(u&&r+u)}if(h=gf(t,n,c),r?r.alias.push(h):(d=d||h,d!==h&&d.alias.push(h),s&&e.name&&!vf(h)&&o(e.name)),xf(h)&&a(h),l.children){const e=l.children;for(let t=0;t<e.length;t++)i(e[t],h,r&&r.children[t])}r=r||h}return d?()=>{o(d)}:Gd}function o(e){if(Ip(e)){const t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function a(e){const t=function(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;df(e,t[i])<0?r=i:n=i+1}const i=function(e){let t=e;for(;t=t.parent;)if(xf(t)&&0===df(e,t))return t}(e);i&&(r=t.lastIndexOf(i,r-1));return r}(e,n);n.splice(t,0,e),e.record.name&&!vf(e)&&r.set(e.record.name,e)}return t=Kd(ff,t),e.forEach(e=>i(e)),{addRoute:i,resolve:function(e,t){let i,o,a,s={};if("name"in e&&e.name){if(i=r.get(e.name),!i)throw Mp(Lp.MATCHER_NOT_FOUND,{location:e});a=i.record.name,s=Yd(Of(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Of(e.params,i.keys.map(e=>e.name))),o=i.stringify(s)}else if(null!=e.path)o=e.path,i=n.find(e=>e.re.test(o)),i&&(s=i.parse(o),a=i.record.name);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw Mp(Lp.MATCHER_NOT_FOUND,{location:e,currentLocation:t});a=i.record.name,s=Yd({},t.params,e.params),o=i.stringify(s)}const l=[];let c=i;for(;c;)l.unshift(c.record),c=c.parent;return{name:a,path:o,params:s,matched:l,meta:bf(l)}},removeRoute:o,clearRoutes:function(){n.length=0,r.clear()},getRoutes:function(){return n},getRecordMatcher:function(e){return r.get(e)}}}function Of(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Af(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:yf(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function yf(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]="object"==typeof n?n[r]:n;return t}function vf(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function bf(e){return e.reduce((e,t)=>Yd(e,t.meta),{})}function xf({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function wf(e){const t=ns(Vp),n=ns(Wp),r=Wu(()=>{const n=ca(e.to);return t.resolve(n)}),i=Wu(()=>{const{matched:e}=r.value,{length:t}=e,i=e[t-1],o=n.matched;if(!i||!o.length)return-1;const a=o.findIndex(bp.bind(null,i));if(a>-1)return a;const s=Sf(e[t-2]);return t>1&&Sf(i)===s&&o[o.length-1].path!==s?o.findIndex(bp.bind(null,e[t-2])):a}),o=Wu(()=>i.value>-1&&function(e,t){for(const n in t){const r=t[n],i=e[n];if("string"==typeof r){if(r!==i)return!1}else if(!Hd(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}(n.params,r.value.params)),a=Wu(()=>i.value>-1&&i.value===n.matched.length-1&&xp(n.params,r.value.params));return{route:r,href:Wu(()=>r.value.href),isActive:o,isExactActive:a,navigate:function(n={}){if(function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)){const n=t[ca(e.replace)?"replace":"push"](ca(e.to)).catch(Gd);return e.viewTransition&&"undefined"!=typeof document&&"startViewTransition"in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}}}const kf=Ns({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:wf,setup(e,{slots:t}){const n=qo(wf(e)),{options:r}=ns(Vp),i=Wu(()=>({[Tf(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Tf(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&(1===(o=t.default(n)).length?o[0]:o);var o;return e.custom?r:ju("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function Sf(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Tf=(e,t,n)=>null!=e?e:null!=t?t:n;function $f(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const _f=Ns({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ns(jp),i=Wu(()=>e.route||r.value),o=ns(qp,0),a=Wu(()=>{let e=ca(o);const{matched:t}=i.value;let n;for(;(n=t[e])&&!n.components;)e++;return e}),s=Wu(()=>i.value.matched[a.value]);ts(qp,Wu(()=>a.value+1)),ts(zp,s),ts(jp,i);const l=ia();return cs(()=>[l.value,s.value,e.name],([e,t,n],[r,i,o])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),!e||!t||i&&bp(t,i)&&r||(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:"post"}),()=>{const r=i.value,o=e.name,a=s.value,c=a&&a.components[o];if(!c)return $f(n.default,{Component:c,route:r});const u=a.props[o],h=u?!0===u?r.params:"function"==typeof u?u(r):u:null,d=ju(c,Yd({},h,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[o]=null)},ref:l}));return $f(n.default,{Component:d,route:r})||d}}});function Cf(e){const t=mf(e.routes,e),n=e.parseQuery||Xp,r=e.stringifyQuery||Fp,i=e.history,o=Yp(),a=Yp(),s=Yp(),l=oa(Sp);let c=Sp;Wd&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Zd.bind(null,e=>""+e),h=Zd.bind(null,mp),d=Zd.bind(null,Op);function p(e,o){if(o=Yd({},o||l.value),"string"==typeof e){const r=yp(n,e,o.path),a=t.resolve({path:r.path},o),s=i.createHref(r.fullPath);return Yd(r,a,{params:d(a.params),hash:Op(r.hash),redirectedFrom:void 0,href:s})}let a;if(null!=e.path)a=Yd({},e,{path:yp(n,e.path,o.path).path});else{const t=Yd({},e.params);for(const e in t)null==t[e]&&delete t[e];a=Yd({},e,{params:h(t)}),o.params=h(o.params)}const s=t.resolve(a,o),c=e.hash||"";s.params=u(d(s.params));const p=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(r,Yd({},e,{hash:(f=c,pp(f).replace(cp,"{").replace(hp,"}").replace(sp,"^")),path:s.path}));var f;const g=i.createHref(p);return Yd({fullPath:p,hash:c,query:r===Fp?Up(e.query):e.query||{}},s,{redirectedFrom:void 0,href:g})}function f(e){return"string"==typeof e?yp(n,e,l.value.path):Yd({},e)}function g(e,t){if(c!==e)return Mp(Lp.NAVIGATION_CANCELLED,{from:t,to:e})}function m(e){return A(e)}function O(e,t){const n=e.matched[e.matched.length-1];if(n&&n.redirect){const{redirect:r}=n;let i="function"==typeof r?r(e,t):r;return"string"==typeof i&&(i=i.includes("?")||i.includes("#")?i=f(i):{path:i},i.params={}),Yd({query:e.query,hash:e.hash,params:null!=i.path?{}:e.params},i)}}function A(e,t){const n=c=p(e),i=l.value,o=e.state,a=e.force,s=!0===e.replace,u=O(n,i);if(u)return A(Yd(f(u),{state:"object"==typeof u?Yd({},o,u.state):o,force:a,replace:s}),t||n);const h=n;let d;return h.redirectedFrom=t,!a&&function(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&bp(t.matched[r],n.matched[i])&&xp(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(r,i,n)&&(d=Mp(Lp.NAVIGATION_DUPLICATED,{to:h,from:i}),P(i,i,!0,!1)),(d?Promise.resolve(d):b(h,i)).catch(e=>Np(e)?Np(e,Lp.NAVIGATION_GUARD_REDIRECT)?e:Q(e):C(e,h,i)).then(e=>{if(e){if(Np(e,Lp.NAVIGATION_GUARD_REDIRECT))return A(Yd({replace:s},f(e.to),{state:"object"==typeof e.to?Yd({},o,e.to.state):o,force:a}),t||h)}else e=w(h,i,!0,s,o);return x(h,i,e),e})}function y(e,t){const n=g(e,t);return n?Promise.reject(n):Promise.resolve()}function v(e){const t=B.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function b(e,t){let n;const[r,i,s]=function(e,t){const n=[],r=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;a<o;a++){const o=t.matched[a];o&&(e.matched.find(e=>bp(e,o))?r.push(o):n.push(o));const s=e.matched[a];s&&(t.matched.find(e=>bp(e,s))||i.push(s))}return[n,r,i]}(e,t);n=Gp(r.reverse(),"beforeRouteLeave",e,t);for(const o of r)o.leaveGuards.forEach(r=>{n.push(Zp(r,e,t))});const l=y.bind(null,e,t);return n.push(l),L(n).then(()=>{n=[];for(const r of o.list())n.push(Zp(r,e,t));return n.push(l),L(n)}).then(()=>{n=Gp(i,"beforeRouteUpdate",e,t);for(const r of i)r.updateGuards.forEach(r=>{n.push(Zp(r,e,t))});return n.push(l),L(n)}).then(()=>{n=[];for(const r of s)if(r.beforeEnter)if(Hd(r.beforeEnter))for(const i of r.beforeEnter)n.push(Zp(i,e,t));else n.push(Zp(r.beforeEnter,e,t));return n.push(l),L(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Gp(s,"beforeRouteEnter",e,t,v),n.push(l),L(n))).then(()=>{n=[];for(const r of a.list())n.push(Zp(r,e,t));return n.push(l),L(n)}).catch(e=>Np(e,Lp.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function x(e,t,n){s.list().forEach(r=>v(()=>r(e,t,n)))}function w(e,t,n,r,o){const a=g(e,t);if(a)return a;const s=t===Sp,c=Wd?history.state:{};n&&(r||s?i.replace(e.fullPath,Yd({scroll:s&&c&&c.scroll},o)):i.push(e.fullPath,o)),l.value=e,P(e,t,n,s),Q()}let k;function S(){k||(k=i.listen((e,t,n)=>{if(!I.listening)return;const r=p(e),o=O(r,I.currentRoute.value);if(o)return void A(Yd(o,{replace:!0,force:!0}),r).catch(Gd);c=r;const a=l.value;var s,u;Wd&&(s=Rp(a.fullPath,n.delta),u=Pp(),Bp.set(s,u)),b(r,a).catch(e=>Np(e,Lp.NAVIGATION_ABORTED|Lp.NAVIGATION_CANCELLED)?e:Np(e,Lp.NAVIGATION_GUARD_REDIRECT)?(A(Yd(f(e.to),{force:!0}),r).then(e=>{Np(e,Lp.NAVIGATION_ABORTED|Lp.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===Tp.pop&&i.go(-1,!1)}).catch(Gd),Promise.reject()):(n.delta&&i.go(-n.delta,!1),C(e,r,a))).then(e=>{(e=e||w(r,a,!1))&&(n.delta&&!Np(e,Lp.NAVIGATION_CANCELLED)?i.go(-n.delta,!1):n.type===Tp.pop&&Np(e,Lp.NAVIGATION_ABORTED|Lp.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),x(r,a,e)}).catch(Gd)}))}let T,$=Yp(),_=Yp();function C(e,t,n){Q(e);const r=_.list();return r.length&&r.forEach(r=>r(e,t,n)),Promise.reject(e)}function Q(e){return T||(T=!e,S(),$.list().forEach(([t,n])=>e?n(e):t()),$.reset()),e}function P(t,n,r,i){const{scrollBehavior:o}=e;if(!Wd||!o)return Promise.resolve();const a=!r&&function(e){const t=Bp.get(e);return Bp.delete(e),t}(Rp(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return Na().then(()=>o(t,n,a)).then(e=>e&&Ep(e)).catch(e=>C(e,t,n))}const E=e=>i.go(e);let R;const B=new Set,I={currentRoute:l,listening:!0,addRoute:function(e,n){let r,i;return Ip(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map(e=>e.record)},resolve:p,options:e,push:m,replace:function(e){return m(Yd(f(e),{replace:!0}))},go:E,back:()=>E(-1),forward:()=>E(1),beforeEach:o.add,beforeResolve:a.add,afterEach:s.add,onError:_.add,isReady:function(){return T&&l.value!==Sp?Promise.resolve():new Promise((e,t)=>{$.add([e,t])})},install(e){e.component("RouterLink",kf),e.component("RouterView",_f),e.config.globalProperties.$router=I,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>ca(l)}),Wd&&!R&&l.value===Sp&&(R=!0,m(i.location).catch(e=>{}));const t={};for(const r in Sp)Object.defineProperty(t,r,{get:()=>l.value[r],enumerable:!0});e.provide(Vp,I),e.provide(Wp,Vo(t)),e.provide(jp,l);const n=e.unmount;B.add(e),e.unmount=function(){B.delete(e),B.size<1&&(c=Sp,k&&k(),k=null,l.value=Sp,R=!1,T=!1),n()}}};function L(e){return e.reduce((e,t)=>e.then(()=>v(t)),Promise.resolve())}return I}const Qf={},Pf=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=function(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:"fulfilled",value:e}),e=>({status:"rejected",reason:e}))))};const i=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),a=(null==o?void 0:o.nonce)||(null==o?void 0:o.getAttribute("nonce"));r=e(t.map(e=>{if(e=function(e,t){return new URL(e,t).href}(e,n),e in Qf)return;Qf[e]=!0;const t=e.endsWith(".css"),r=t?'[rel="stylesheet"]':"";if(!!n)for(let n=i.length-1;n>=0;n--){const r=i[n];if(r.href===e&&(!t||"stylesheet"===r.rel))return}else if(document.querySelector(`link[href="${e}"]${r}`))return;const o=document.createElement("link");return o.rel=t?"stylesheet":"modulepreload",t||(o.as="script"),o.crossOrigin="",o.href=e,a&&o.setAttribute("nonce",a),document.head.appendChild(o),t?new Promise((t,n)=>{o.addEventListener("load",t),o.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${e}`)))}):void 0}))}function i(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(const e of t||[])"rejected"===e.status&&i(e.reason);return e().catch(i)})};var Ef="object"==typeof global&&global&&global.Object===Object&&global,Rf="object"==typeof self&&self&&self.Object===Object&&self,Bf=Ef||Rf||Function("return this")(),If=Bf.Symbol,Lf=Object.prototype,Df=Lf.hasOwnProperty,Mf=Lf.toString,Nf=If?If.toStringTag:void 0;var Xf=Object.prototype.toString;var Ff=If?If.toStringTag:void 0;function Uf(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ff&&Ff in Object(e)?function(e){var t=Df.call(e,Nf),n=e[Nf];try{e[Nf]=void 0;var r=!0}catch(jk){}var i=Mf.call(e);return r&&(t?e[Nf]=n:delete e[Nf]),i}(e):function(e){return Xf.call(e)}(e)}function zf(e){return null!=e&&"object"==typeof e}function qf(e){return"symbol"==typeof e||zf(e)&&"[object Symbol]"==Uf(e)}function Vf(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var Wf=Array.isArray,jf=If?If.prototype:void 0,Yf=jf?jf.toString:void 0;function Zf(e){if("string"==typeof e)return e;if(Wf(e))return Vf(e,Zf)+"";if(qf(e))return Yf?Yf.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var Gf=/\s/;var Hf=/^\s+/;function Kf(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&Gf.test(e.charAt(t)););return t}(e)+1).replace(Hf,""):e}function Jf(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var eg=/^[-+]0x[0-9a-f]+$/i,tg=/^0b[01]+$/i,ng=/^0o[0-7]+$/i,rg=parseInt;function ig(e){if("number"==typeof e)return e;if(qf(e))return NaN;if(Jf(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Jf(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Kf(e);var n=tg.test(e);return n||ng.test(e)?rg(e.slice(2),n?2:8):eg.test(e)?NaN:+e}var og=1/0;function ag(e){return e?(e=ig(e))===og||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function sg(e){return e}function lg(e){if(!Jf(e))return!1;var t=Uf(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var cg,ug=Bf["__core-js_shared__"],hg=(cg=/[^.]+$/.exec(ug&&ug.keys&&ug.keys.IE_PROTO||""))?"Symbol(src)_1."+cg:"";var dg=Function.prototype.toString;function pg(e){if(null!=e){try{return dg.call(e)}catch(jk){}try{return e+""}catch(jk){}}return""}var fg=/^\[object .+?Constructor\]$/,gg=Function.prototype,mg=Object.prototype,Og=gg.toString,Ag=mg.hasOwnProperty,yg=RegExp("^"+Og.call(Ag).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vg(e){return!(!Jf(e)||(t=e,hg&&hg in t))&&(lg(e)?yg:fg).test(pg(e));var t}function bg(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return vg(n)?n:void 0}var xg=bg(Bf,"WeakMap"),wg=Object.create,kg=function(){function e(){}return function(t){if(!Jf(t))return{};if(wg)return wg(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Sg(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Tg=Date.now;function $g(e){return function(){return e}}var _g,Cg,Qg,Pg=function(){try{var e=bg(Object,"defineProperty");return e({},"",{}),e}catch(jk){}}(),Eg=Pg?function(e,t){return Pg(e,"toString",{configurable:!0,enumerable:!1,value:$g(t),writable:!0})}:sg,Rg=(_g=Eg,Cg=0,Qg=0,function(){var e=Tg(),t=16-(e-Qg);if(Qg=e,t>0){if(++Cg>=800)return arguments[0]}else Cg=0;return _g.apply(void 0,arguments)});function Bg(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Ig(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Lg(e){return e!=e}function Dg(e,t){return!!(null==e?0:e.length)&&function(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Ig(e,Lg,n)}(e,t,0)>-1}var Mg=/^(?:0|[1-9]\d*)$/;function Ng(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Mg.test(e))&&e>-1&&e%1==0&&e<t}function Xg(e,t,n){"__proto__"==t&&Pg?Pg(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Fg(e,t){return e===t||e!=e&&t!=t}var Ug=Object.prototype.hasOwnProperty;function zg(e,t,n){var r=e[t];Ug.call(e,t)&&Fg(r,n)&&(void 0!==n||t in e)||Xg(e,t,n)}function qg(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=void 0;void 0===l&&(l=e[s]),i?Xg(n,s,l):zg(n,s,l)}return n}var Vg=Math.max;function Wg(e,t,n){return t=Vg(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Vg(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}function jg(e,t){return Rg(Wg(e,t,sg),e+"")}function Yg(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Zg(e){return null!=e&&Yg(e.length)&&!lg(e)}function Gg(e,t,n){if(!Jf(n))return!1;var r=typeof t;return!!("number"==r?Zg(n)&&Ng(t,n.length):"string"==r&&t in n)&&Fg(n[t],e)}var Hg=Object.prototype;function Kg(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Hg)}function Jg(e){return zf(e)&&"[object Arguments]"==Uf(e)}var em=Object.prototype,tm=em.hasOwnProperty,nm=em.propertyIsEnumerable,rm=Jg(function(){return arguments}())?Jg:function(e){return zf(e)&&tm.call(e,"callee")&&!nm.call(e,"callee")};var im="object"==typeof exports&&exports&&!exports.nodeType&&exports,om=im&&"object"==typeof module&&module&&!module.nodeType&&module,am=om&&om.exports===im?Bf.Buffer:void 0,sm=(am?am.isBuffer:void 0)||function(){return!1},lm={};function cm(e){return function(t){return e(t)}}lm["[object Float32Array]"]=lm["[object Float64Array]"]=lm["[object Int8Array]"]=lm["[object Int16Array]"]=lm["[object Int32Array]"]=lm["[object Uint8Array]"]=lm["[object Uint8ClampedArray]"]=lm["[object Uint16Array]"]=lm["[object Uint32Array]"]=!0,lm["[object Arguments]"]=lm["[object Array]"]=lm["[object ArrayBuffer]"]=lm["[object Boolean]"]=lm["[object DataView]"]=lm["[object Date]"]=lm["[object Error]"]=lm["[object Function]"]=lm["[object Map]"]=lm["[object Number]"]=lm["[object Object]"]=lm["[object RegExp]"]=lm["[object Set]"]=lm["[object String]"]=lm["[object WeakMap]"]=!1;var um="object"==typeof exports&&exports&&!exports.nodeType&&exports,hm=um&&"object"==typeof module&&module&&!module.nodeType&&module,dm=hm&&hm.exports===um&&Ef.process,pm=function(){try{var e=hm&&hm.require&&hm.require("util").types;return e||dm&&dm.binding&&dm.binding("util")}catch(jk){}}(),fm=pm&&pm.isTypedArray,gm=fm?cm(fm):function(e){return zf(e)&&Yg(e.length)&&!!lm[Uf(e)]},mm=Object.prototype.hasOwnProperty;function Om(e,t){var n=Wf(e),r=!n&&rm(e),i=!n&&!r&&sm(e),o=!n&&!r&&!i&&gm(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)!t&&!mm.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ng(c,l))||s.push(c);return s}function Am(e,t){return function(n){return e(t(n))}}var ym=Am(Object.keys,Object),vm=Object.prototype.hasOwnProperty;function bm(e){if(!Kg(e))return ym(e);var t=[];for(var n in Object(e))vm.call(e,n)&&"constructor"!=n&&t.push(n);return t}function xm(e){return Zg(e)?Om(e):bm(e)}var wm=Object.prototype.hasOwnProperty;function km(e){if(!Jf(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Kg(e),n=[];for(var r in e)("constructor"!=r||!t&&wm.call(e,r))&&n.push(r);return n}function Sm(e){return Zg(e)?Om(e,!0):km(e)}var Tm=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$m=/^\w*$/;function _m(e,t){if(Wf(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!qf(e))||($m.test(e)||!Tm.test(e)||null!=t&&e in Object(t))}var Cm=bg(Object,"create");var Qm=Object.prototype.hasOwnProperty;var Pm=Object.prototype.hasOwnProperty;function Em(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Rm(e,t){for(var n=e.length;n--;)if(Fg(e[n][0],t))return n;return-1}Em.prototype.clear=function(){this.__data__=Cm?Cm(null):{},this.size=0},Em.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Em.prototype.get=function(e){var t=this.__data__;if(Cm){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Qm.call(t,e)?t[e]:void 0},Em.prototype.has=function(e){var t=this.__data__;return Cm?void 0!==t[e]:Pm.call(t,e)},Em.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Cm&&void 0===t?"__lodash_hash_undefined__":t,this};var Bm=Array.prototype.splice;function Im(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Im.prototype.clear=function(){this.__data__=[],this.size=0},Im.prototype.delete=function(e){var t=this.__data__,n=Rm(t,e);return!(n<0)&&(n==t.length-1?t.pop():Bm.call(t,n,1),--this.size,!0)},Im.prototype.get=function(e){var t=this.__data__,n=Rm(t,e);return n<0?void 0:t[n][1]},Im.prototype.has=function(e){return Rm(this.__data__,e)>-1},Im.prototype.set=function(e,t){var n=this.__data__,r=Rm(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var Lm=bg(Bf,"Map");function Dm(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Mm(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Mm.prototype.clear=function(){this.size=0,this.__data__={hash:new Em,map:new(Lm||Im),string:new Em}},Mm.prototype.delete=function(e){var t=Dm(this,e).delete(e);return this.size-=t?1:0,t},Mm.prototype.get=function(e){return Dm(this,e).get(e)},Mm.prototype.has=function(e){return Dm(this,e).has(e)},Mm.prototype.set=function(e,t){var n=Dm(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Nm(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Nm.Cache||Mm),n}Nm.Cache=Mm;var Xm=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fm=/\\(\\)?/g,Um=function(e){var t=Nm(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Xm,function(e,n,r,i){t.push(r?i.replace(Fm,"$1"):n||e)}),t});function zm(e){return null==e?"":Zf(e)}function qm(e,t){return Wf(e)?e:_m(e,t)?[e]:Um(zm(e))}function Vm(e){if("string"==typeof e||qf(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Wm(e,t){for(var n=0,r=(t=qm(t,e)).length;null!=e&&n<r;)e=e[Vm(t[n++])];return n&&n==r?e:void 0}function jm(e,t,n){var r=null==e?void 0:Wm(e,t);return void 0===r?n:r}function Ym(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Zm=If?If.isConcatSpreadable:void 0;function Gm(e){return Wf(e)||rm(e)||!!(Zm&&e&&e[Zm])}function Hm(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=Gm),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?Hm(s,t-1,n,r,i):Ym(i,s):r||(i[i.length]=s)}return i}function Km(e){return(null==e?0:e.length)?Hm(e,1):[]}function Jm(e){return Rg(Wg(e,void 0,Km),e+"")}var eO=Am(Object.getPrototypeOf,Object),tO=Function.prototype,nO=Object.prototype,rO=tO.toString,iO=nO.hasOwnProperty,oO=rO.call(Object);function aO(e){if(!zf(e)||"[object Object]"!=Uf(e))return!1;var t=eO(e);if(null===t)return!0;var n=iO.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&rO.call(n)==oO}function sO(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function lO(){if(!arguments.length)return[];var e=arguments[0];return Wf(e)?e:[e]}function cO(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=ig(n))==n?n:0),void 0!==t&&(t=(t=ig(t))==t?t:0),function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}(ig(e),t,n)}function uO(e){var t=this.__data__=new Im(e);this.size=t.size}uO.prototype.clear=function(){this.__data__=new Im,this.size=0},uO.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},uO.prototype.get=function(e){return this.__data__.get(e)},uO.prototype.has=function(e){return this.__data__.has(e)},uO.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Im){var r=n.__data__;if(!Lm||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Mm(r)}return n.set(e,t),this.size=n.size,this};var hO="object"==typeof exports&&exports&&!exports.nodeType&&exports,dO=hO&&"object"==typeof module&&module&&!module.nodeType&&module,pO=dO&&dO.exports===hO?Bf.Buffer:void 0,fO=pO?pO.allocUnsafe:void 0;function gO(e,t){if(t)return e.slice();var n=e.length,r=fO?fO(n):new e.constructor(n);return e.copy(r),r}function mO(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function OO(){return[]}var AO=Object.prototype.propertyIsEnumerable,yO=Object.getOwnPropertySymbols,vO=yO?function(e){return null==e?[]:(e=Object(e),mO(yO(e),function(t){return AO.call(e,t)}))}:OO;var bO=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Ym(t,vO(e)),e=eO(e);return t}:OO;function xO(e,t,n){var r=t(e);return Wf(e)?r:Ym(r,n(e))}function wO(e){return xO(e,xm,vO)}function kO(e){return xO(e,Sm,bO)}var SO=bg(Bf,"DataView"),TO=bg(Bf,"Promise"),$O=bg(Bf,"Set"),_O="[object Map]",CO="[object Promise]",QO="[object Set]",PO="[object WeakMap]",EO="[object DataView]",RO=pg(SO),BO=pg(Lm),IO=pg(TO),LO=pg($O),DO=pg(xg),MO=Uf;(SO&&MO(new SO(new ArrayBuffer(1)))!=EO||Lm&&MO(new Lm)!=_O||TO&&MO(TO.resolve())!=CO||$O&&MO(new $O)!=QO||xg&&MO(new xg)!=PO)&&(MO=function(e){var t=Uf(e),n="[object Object]"==t?e.constructor:void 0,r=n?pg(n):"";if(r)switch(r){case RO:return EO;case BO:return _O;case IO:return CO;case LO:return QO;case DO:return PO}return t});var NO=Object.prototype.hasOwnProperty;var XO=Bf.Uint8Array;function FO(e){var t=new e.constructor(e.byteLength);return new XO(t).set(new XO(e)),t}var UO=/\w*$/;var zO=If?If.prototype:void 0,qO=zO?zO.valueOf:void 0;function VO(e,t){var n=t?FO(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function WO(e,t,n){var r,i,o,a=e.constructor;switch(t){case"[object ArrayBuffer]":return FO(e);case"[object Boolean]":case"[object Date]":return new a(+e);case"[object DataView]":return function(e,t){var n=t?FO(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return VO(e,n);case"[object Map]":case"[object Set]":return new a;case"[object Number]":case"[object String]":return new a(e);case"[object RegExp]":return(o=new(i=e).constructor(i.source,UO.exec(i))).lastIndex=i.lastIndex,o;case"[object Symbol]":return r=e,qO?Object(qO.call(r)):{}}}function jO(e){return"function"!=typeof e.constructor||Kg(e)?{}:kg(eO(e))}var YO=pm&&pm.isMap,ZO=YO?cm(YO):function(e){return zf(e)&&"[object Map]"==MO(e)};var GO=pm&&pm.isSet,HO=GO?cm(GO):function(e){return zf(e)&&"[object Set]"==MO(e)},KO="[object Arguments]",JO="[object Function]",eA="[object Object]",tA={};function nA(e,t,n,r,i,o){var a,s=1&t,l=2&t,c=4&t;if(n&&(a=i?n(e,r,i,o):n(e)),void 0!==a)return a;if(!Jf(e))return e;var u=Wf(e);if(u){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&NO.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return Sg(e,a)}else{var h=MO(e),d=h==JO||"[object GeneratorFunction]"==h;if(sm(e))return gO(e,s);if(h==eA||h==KO||d&&!i){if(a=l||d?{}:jO(e),!s)return l?function(e,t){return qg(e,bO(e),t)}(e,function(e,t){return e&&qg(t,Sm(t),e)}(a,e)):function(e,t){return qg(e,vO(e),t)}(e,function(e,t){return e&&qg(t,xm(t),e)}(a,e))}else{if(!tA[h])return i?e:{};a=WO(e,h,s)}}o||(o=new uO);var p=o.get(e);if(p)return p;o.set(e,a),HO(e)?e.forEach(function(r){a.add(nA(r,t,n,r,e,o))}):ZO(e)&&e.forEach(function(r,i){a.set(i,nA(r,t,n,i,e,o))});var f=u?void 0:(c?l?kO:wO:l?Sm:xm)(e);return Bg(f||e,function(r,i){f&&(r=e[i=r]),zg(a,i,nA(r,t,n,i,e,o))}),a}tA[KO]=tA["[object Array]"]=tA["[object ArrayBuffer]"]=tA["[object DataView]"]=tA["[object Boolean]"]=tA["[object Date]"]=tA["[object Float32Array]"]=tA["[object Float64Array]"]=tA["[object Int8Array]"]=tA["[object Int16Array]"]=tA["[object Int32Array]"]=tA["[object Map]"]=tA["[object Number]"]=tA[eA]=tA["[object RegExp]"]=tA["[object Set]"]=tA["[object String]"]=tA["[object Symbol]"]=tA["[object Uint8Array]"]=tA["[object Uint8ClampedArray]"]=tA["[object Uint16Array]"]=tA["[object Uint32Array]"]=!0,tA["[object Error]"]=tA[JO]=tA["[object WeakMap]"]=!1;function rA(e){return nA(e,5)}function iA(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Mm;++t<n;)this.add(e[t])}function oA(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function aA(e,t){return e.has(t)}iA.prototype.add=iA.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},iA.prototype.has=function(e){return this.__data__.has(e)};function sA(e,t,n,r,i,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var h=-1,d=!0,p=2&n?new iA:void 0;for(o.set(e,t),o.set(t,e);++h<s;){var f=e[h],g=t[h];if(r)var m=a?r(g,f,h,t,e,o):r(f,g,h,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!oA(t,function(e,t){if(!aA(p,t)&&(f===e||i(f,e,n,r,o)))return p.push(t)})){d=!1;break}}else if(f!==g&&!i(f,g,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function lA(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function cA(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var uA=If?If.prototype:void 0,hA=uA?uA.valueOf:void 0;var dA=Object.prototype.hasOwnProperty;var pA="[object Arguments]",fA="[object Array]",gA="[object Object]",mA=Object.prototype.hasOwnProperty;function OA(e,t,n,r,i,o){var a=Wf(e),s=Wf(t),l=a?fA:MO(e),c=s?fA:MO(t),u=(l=l==pA?gA:l)==gA,h=(c=c==pA?gA:c)==gA,d=l==c;if(d&&sm(e)){if(!sm(t))return!1;a=!0,u=!1}if(d&&!u)return o||(o=new uO),a||gm(e)?sA(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new XO(e),new XO(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Fg(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=lA;case"[object Set]":var l=1&r;if(s||(s=cA),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=sA(s(e),s(t),r,i,o,a);return a.delete(e),u;case"[object Symbol]":if(hA)return hA.call(e)==hA.call(t)}return!1}(e,t,l,n,r,i,o);if(!(1&n)){var p=u&&mA.call(e,"__wrapped__"),f=h&&mA.call(t,"__wrapped__");if(p||f){var g=p?e.value():e,m=f?t.value():t;return o||(o=new uO),i(g,m,n,r,o)}}return!!d&&(o||(o=new uO),function(e,t,n,r,i,o){var a=1&n,s=wO(e),l=s.length;if(l!=wO(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:dA.call(t,u)))return!1}var h=o.get(e),d=o.get(t);if(h&&d)return h==t&&d==e;var p=!0;o.set(e,t),o.set(t,e);for(var f=a;++c<l;){var g=e[u=s[c]],m=t[u];if(r)var O=a?r(m,g,u,t,e,o):r(g,m,u,e,t,o);if(!(void 0===O?g===m||i(g,m,n,r,o):O)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var A=e.constructor,y=t.constructor;A==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof A&&A instanceof A&&"function"==typeof y&&y instanceof y||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,r,i,o))}function AA(e,t,n,r,i){return e===t||(null==e||null==t||!zf(e)&&!zf(t)?e!=e&&t!=t:OA(e,t,n,r,AA,i))}function yA(e){return e==e&&!Jf(e)}function vA(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}function bA(e){var t=function(e){for(var t=xm(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,yA(i)]}return t}(e);return 1==t.length&&t[0][2]?vA(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var i=n.length,o=i;if(null==e)return!o;for(e=Object(e);i--;){var a=n[i];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++i<o;){var s=(a=n[i])[0],l=e[s],c=a[1];if(a[2]){if(void 0===l&&!(s in e))return!1}else if(!AA(c,l,3,r,new uO))return!1}return!0}(n,0,t)}}function xA(e,t){return null!=e&&t in Object(e)}function wA(e,t,n){for(var r=-1,i=(t=qm(t,e)).length,o=!1;++r<i;){var a=Vm(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Yg(i)&&Ng(a,i)&&(Wf(e)||rm(e))}function kA(e,t){return null!=e&&wA(e,t,xA)}function SA(e){return _m(e)?(t=Vm(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return Wm(t,e)}}(e);var t}function TA(e){return"function"==typeof e?e:null==e?sg:"object"==typeof e?Wf(e)?(t=e[0],n=e[1],_m(t)&&yA(n)?vA(Vm(t),n):function(e){var r=jm(e,t);return void 0===r&&r===n?kA(e,t):AA(n,r,3)}):bA(e):SA(e);var t,n}var $A=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[++r];if(!1===t(i[s],s,i))break}return e};function _A(e,t){return e&&$A(e,t,xm)}var CA,QA=(CA=_A,function(e,t){if(null==e)return e;if(!Zg(e))return CA(e,t);for(var n=e.length,r=-1,i=Object(e);++r<n&&!1!==t(i[r],r,i););return e}),PA=function(){return Bf.Date.now()},EA=Math.max,RA=Math.min;function BA(e,t,n){var r,i,o,a,s,l,c=0,u=!1,h=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,o=i;return r=i=void 0,c=t,a=e.apply(o,n)}function f(e){var n=e-l;return void 0===l||n>=t||n<0||h&&e-c>=o}function g(){var e=PA();if(f(e))return m(e);s=setTimeout(g,function(e){var n=t-(e-l);return h?RA(n,o-(e-c)):n}(e))}function m(e){return s=void 0,d&&r?p(e):(r=i=void 0,a)}function O(){var e=PA(),n=f(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(g,t),u?p(e):a}(l);if(h)return clearTimeout(s),s=setTimeout(g,t),p(l)}return void 0===s&&(s=setTimeout(g,t)),a}return t=ig(t)||0,Jf(n)&&(u=!!n.leading,o=(h="maxWait"in n)?EA(ig(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d),O.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=i=s=void 0},O.flush=function(){return void 0===s?a:m(PA())},O}var IA=Object.prototype,LA=IA.hasOwnProperty,DA=jg(function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&Gg(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],a=Sm(o),s=-1,l=a.length;++s<l;){var c=a[s],u=e[c];(void 0===u||Fg(u,IA[c])&&!LA.call(e,c))&&(e[c]=o[c])}return e});function MA(e,t,n){(void 0!==n&&!Fg(e[t],n)||void 0===n&&!(t in e))&&Xg(e,t,n)}function NA(e){return zf(e)&&Zg(e)}function XA(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function FA(e,t,n,r,i,o,a){var s=XA(e,n),l=XA(t,n),c=a.get(l);if(c)MA(e,n,c);else{var u,h=o?o(s,l,n+"",e,t,a):void 0,d=void 0===h;if(d){var p=Wf(l),f=!p&&sm(l),g=!p&&!f&&gm(l);h=l,p||f||g?Wf(s)?h=s:NA(s)?h=Sg(s):f?(d=!1,h=gO(l,!0)):g?(d=!1,h=VO(l,!0)):h=[]:aO(l)||rm(l)?(h=s,rm(s)?h=qg(u=s,Sm(u)):Jf(s)&&!lg(s)||(h=jO(l))):d=!1}d&&(a.set(l,h),i(h,l,r,o,a),a.delete(l)),MA(e,n,h)}}function UA(e,t,n,r,i){e!==t&&$A(t,function(o,a){if(i||(i=new uO),Jf(o))FA(e,t,a,n,UA,r,i);else{var s=r?r(XA(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),MA(e,a,s)}},Sm)}function zA(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}function qA(e){return"function"==typeof e?e:sg}function VA(e,t){return(Wf(e)?Bg:QA)(e,qA(t))}function WA(e,t){var n=[];return QA(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function jA(e,t){return(Wf(e)?mO:WA)(e,TA(t))}var YA=Math.max;var ZA,GA=(ZA=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i,o,a=null==n?0:(i=ag(n),o=i%1,i==i?o?i-o:i:0);return a<0&&(a=YA(r+a,0)),Ig(e,TA(t),a)},function(e,t,n){var r=Object(e);if(!Zg(e)){var i=TA(t);e=xm(e),t=function(e){return i(r[e],e,r)}}var o=ZA(e,t,n);return o>-1?r[i?e[o]:o]:void 0});function HA(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return Ig(e,TA(t),i,!0)}function KA(e,t){var n=-1,r=Zg(e)?Array(e.length):[];return QA(e,function(e,i,o){r[++n]=t(e,i,o)}),r}function JA(e,t){return(Wf(e)?Vf:KA)(e,TA(t))}function ey(e,t){return Hm(JA(e,t),1)}var ty=1/0;function ny(e){return(null==e?0:e.length)?Hm(e,ty):[]}function ry(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];Xg(r,i[0],i[1])}return r}function iy(e,t){return e>t}var oy=Object.prototype.hasOwnProperty;function ay(e,t){return null!=e&&oy.call(e,t)}function sy(e,t){return null!=e&&wA(e,t,ay)}function ly(e){return null==e?[]:function(e,t){return Vf(t,function(t){return e[t]})}(e,xm(e))}function cy(e,t){return t.length<2?e:Wm(e,function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}(t,0,-1))}var uy=Object.prototype.hasOwnProperty;function hy(e){if(null==e)return!0;if(Zg(e)&&(Wf(e)||"string"==typeof e||"function"==typeof e.splice||sm(e)||gm(e)||rm(e)))return!e.length;var t=MO(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(Kg(e))return!bm(e).length;for(var n in e)if(uy.call(e,n))return!1;return!0}function dy(e,t){return AA(e,t)}function py(e){return null==e}function fy(e){return null===e}function gy(e){return void 0===e}function my(e,t){return e<t}function Oy(e,t){var n={};return t=TA(t),_A(e,function(e,r,i){Xg(n,r,t(e,r,i))}),n}function Ay(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===s?a==a&&!qf(a):n(a,s)))var s=a,l=o}return l}function yy(e){return e&&e.length?Ay(e,sg,iy):void 0}var vy,by=(vy=function(e,t,n){UA(e,t,n)},jg(function(e,t){var n=-1,r=t.length,i=r>1?t[r-1]:void 0,o=r>2?t[2]:void 0;for(i=vy.length>3&&"function"==typeof i?(r--,i):void 0,o&&Gg(t[0],t[1],o)&&(i=r<3?void 0:i,r=1),e=Object(e);++n<r;){var a=t[n];a&&vy(e,a,n,i)}return e}));function xy(e){return e&&e.length?Ay(e,sg,my):void 0}function wy(e,t){return e&&e.length?Ay(e,TA(t),my):void 0}var ky=Object.prototype.hasOwnProperty;function Sy(e,t){var n=-1,r=(t=qm(t,e)).length;if(!r)return!0;for(;++n<r;){var i=Vm(t[n]);if("__proto__"===i&&!ky.call(e,"__proto__"))return!1;if(("constructor"===i||"prototype"===i)&&n<r-1)return!1}var o=cy(e,t);return null==o||delete o[Vm(zA(t))]}function Ty(e){return aO(e)?void 0:e}var $y=Jm(function(e,t){var n={};if(null==e)return n;var r=!1;t=Vf(t,function(t){return t=qm(t,e),r||(r=t.length>1),t}),qg(e,kO(e),n),r&&(n=nA(n,7,Ty));for(var i=t.length;i--;)Sy(n,t[i]);return n});function _y(e,t,n,r){if(!Jf(e))return e;for(var i=-1,o=(t=qm(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var l=Vm(t[i]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=a){var u=s[l];void 0===(c=void 0)&&(c=Jf(u)?u:Ng(t[i+1])?[]:{})}zg(s,l,c),s=s[l]}return e}function Cy(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=qf(e),a=void 0!==t,s=null===t,l=t==t,c=qf(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}function Qy(e,t,n){t=t.length?Vf(t,function(e){return Wf(e)?function(t){return Wm(t,1===e.length?e[0]:e)}:e}):[sg];var r=-1;return t=Vf(t,cm(TA)),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(KA(e,function(e,n,i){return{criteria:Vf(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=Cy(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function Py(e,t){return function(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Wm(e,a);n(s,a)&&_y(o,qm(a,e),s)}return o}(e,t,function(t,n){return kA(e,n)})}var Ey=Jm(function(e,t){return null==e?{}:Py(e,t)}),Ry=Math.ceil,By=Math.max;var Iy=function(e,t,n){return n&&"number"!=typeof n&&Gg(e,t,n)&&(t=n=void 0),e=ag(e),void 0===t?(t=e,e=0):t=ag(t),function(e,t,n){for(var r=-1,i=By(Ry((t-e)/(n||1)),0),o=Array(i);i--;)o[++r]=e,e+=n;return o}(e,t,n=void 0===n?e<t?1:-1:ag(n))};function Ly(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}function Dy(e,t,n){var r=Wf(e)?sO:Ly,i=arguments.length<3;return r(e,TA(t),n,i,QA)}function My(e,t,n){return null==e?e:_y(e,t,n)}var Ny=jg(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Gg(e,t[0],t[1])?t=[]:n>2&&Gg(t[0],t[1],t[2])&&(t=[t[0]]),Qy(e,Hm(t,1),[])});function Xy(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Jf(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),BA(e,t,{leading:r,maxWait:t,trailing:i})}var Fy=$O&&1/cA(new $O([,-0]))[1]==1/0?function(e){return new $O(e)}:function(){};var Uy=jg(function(e){return function(e,t,n){var r=-1,i=Dg,o=e.length,a=!0,s=[],l=s;if(o>=200){var c=Fy(e);if(c)return cA(c);a=!1,i=aA,l=new iA}else l=s;e:for(;++r<o;){var u=e[r],h=u;if(u=0!==u?u:0,a&&h==h){for(var d=l.length;d--;)if(l[d]===h)continue e;s.push(u)}else i(l,h,n)||(l!==s&&l.push(h),s.push(u))}return s}(Hm(e,1,NA,!0))}),zy=0;function qy(e){var t=++zy;return zm(e)+t}function Vy(e,t){const n=oa();return ss(()=>{n.value=e()},{...t,flush:null!=void 0?void 0:"sync"}),Wo(n)}function Wy(e){return!!Ri()&&(Bi(e),!0)}function jy(e){return"function"==typeof e?e():ca(e)}function Yy(e){return qo(ra(t=Wu(e))?new Proxy({},{get:(e,n,r)=>ca(Reflect.get(t.value,n,r)),set:(e,n,r)=>(ra(t.value[n])&&!ra(r)?t.value[n].value=r:t.value[n]=r,!0),deleteProperty:(e,n)=>Reflect.deleteProperty(t.value,n),has:(e,n)=>Reflect.has(t.value,n),ownKeys:()=>Object.keys(t.value),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})}):t);var t}const Zy="undefined"!=typeof window&&"undefined"!=typeof document;"undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope);const Gy=e=>null!=e,Hy=Object.prototype.toString,Ky=(e,t,n)=>Math.min(n,Math.max(t,e)),Jy=()=>{},ev=tv();function tv(){var e,t;return Zy&&(null==(e=null==window?void 0:window.navigator)?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||(null==(t=null==window?void 0:window.navigator)?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(null==window?void 0:window.navigator.userAgent))}function nv(e,t){return function(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}}function rv(e,t=200,n={}){return nv(function(e,t={}){let n,r,i=Jy;const o=e=>{clearTimeout(e),i(),i=Jy};return a=>{const s=jy(e),l=jy(t.maxWait);return n&&o(n),s<=0||void 0!==l&&l<=0?(r&&(o(r),r=null),Promise.resolve(a())):new Promise((e,c)=>{i=t.rejectOnCancel?c:e,l&&!r&&(r=setTimeout(()=>{n&&o(n),r=null,e(a())},l)),n=setTimeout(()=>{r&&o(r),r=null,e(a())},s)})}}(t,n),e)}function iv(e,t=200,n={}){const r=ia(e.value),i=rv(()=>{r.value=e.value},t,n);return cs(e,()=>i()),r}function ov(e,t=200,n=!1,r=!0,i=!1){return nv(function(...e){let t,n,r,i,o,a,s=0,l=!0,c=Jy;ra(e[0])||"object"!=typeof e[0]?[r,i=!0,o=!0,a=!1]=e:({delay:r,trailing:i=!0,leading:o=!0,rejectOnCancel:a=!1}=e[0]);const u=()=>{t&&(clearTimeout(t),t=void 0,c(),c=Jy)};return e=>{const h=jy(r),d=Date.now()-s,p=()=>n=e();return u(),h<=0?(s=Date.now(),p()):(d>h&&(o||!l)?(s=Date.now(),p()):i&&(n=new Promise((e,n)=>{c=a?n:e,t=setTimeout(()=>{s=Date.now(),l=!0,e(p()),u()},Math.max(0,h-d))})),o||t||(t=setTimeout(()=>l=!0,h)),l=!1,n)}}(t,n,r,i),e)}function av(e,t=!0,n){Qu()?gl(e,n):t?e():Na(e)}function sv(e,t,n={}){const{immediate:r=!0}=n,i=ia(!1);let o=null;function a(){o&&(clearTimeout(o),o=null)}function s(){i.value=!1,a()}function l(...n){a(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=null,e(...n)},jy(t))}return r&&(i.value=!0,Zy&&l()),Wy(s),{isPending:Wo(i),start:l,stop:s}}const lv=Zy?window:void 0,cv=Zy?window.document:void 0;function uv(e){var t;const n=jy(e);return null!=(t=null==n?void 0:n.$el)?t:n}function hv(...e){let t,n,r,i;if("string"==typeof e[0]||Array.isArray(e[0])?([n,r,i]=e,t=lv):[t,n,r,i]=e,!t)return Jy;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],a=()=>{o.forEach(e=>e()),o.length=0},s=cs(()=>[uv(t),jy(i)],([e,t])=>{if(a(),!e)return;const i=(s=t,"[object Object]"===Hy.call(s)?{...t}:t);var s;o.push(...n.flatMap(t=>r.map(n=>((e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)))(e,t,n,i))))},{immediate:!0,flush:"post"}),l=()=>{s(),a()};return Wy(l),l}let dv=!1;function pv(e,t,n={}){const{window:r=lv,ignore:i=[],capture:o=!0,detectIframe:a=!1}=n;if(!r)return Jy;ev&&!dv&&(dv=!0,Array.from(r.document.body.children).forEach(e=>e.addEventListener("click",Jy)),r.document.documentElement.addEventListener("click",Jy));let s=!0;const l=e=>jy(i).some(t=>{if("string"==typeof t)return Array.from(r.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{const n=uv(t);return n&&(e.target===n||e.composedPath().includes(n))}});const c=n=>{const r=uv(e);null!=n.target&&(r instanceof Element||!function(e){const t=jy(e);return t&&16===t.$.subTree.shapeFlag}(e)||!function(e,t){const n=jy(e),r=n.$.subTree&&n.$.subTree.children;return!(null==r||!Array.isArray(r))&&r.some(e=>e.el===t.target||t.composedPath().includes(e.el))}(e,n))&&r&&r!==n.target&&!n.composedPath().includes(r)&&(0===n.detail&&(s=!l(n)),s?t(n):s=!0)};let u=!1;const h=[hv(r,"click",e=>{u||(u=!0,setTimeout(()=>{u=!1},0),c(e))},{passive:!0,capture:o}),hv(r,"pointerdown",t=>{const n=uv(e);s=!l(t)&&!(!n||t.composedPath().includes(n))},{passive:!0}),a&&hv(r,"blur",n=>{setTimeout(()=>{var i;const o=uv(e);"IFRAME"!==(null==(i=r.document.activeElement)?void 0:i.tagName)||(null==o?void 0:o.contains(r.document.activeElement))||t(n)},0)})].filter(Boolean);return()=>h.forEach(e=>e())}function fv(e){const t=function(){const e=ia(!1),t=Qu();return t&&gl(()=>{e.value=!0},t),e}();return Wu(()=>(t.value,Boolean(e())))}function gv(e,t,n={}){const{window:r=lv,...i}=n;let o;const a=fv(()=>r&&"MutationObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},l=Wu(()=>{const t=jy(e),n=(Array.isArray(t)?t:[t]).map(uv).filter(Gy);return new Set(n)}),c=cs(()=>l.value,e=>{s(),a.value&&e.size&&(o=new MutationObserver(t),e.forEach(e=>o.observe(e,i)))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return Wy(u),{isSupported:a,stop:u,takeRecords:()=>null==o?void 0:o.takeRecords()}}function mv(e={}){var t;const{window:n=lv,deep:r=!0,triggerOnRemoval:i=!1}=e,o=null!=(t=e.document)?t:null==n?void 0:n.document,a=ia(),s=()=>{a.value=(()=>{var e;let t=null==o?void 0:o.activeElement;if(r)for(;null==t?void 0:t.shadowRoot;)t=null==(e=null==t?void 0:t.shadowRoot)?void 0:e.activeElement;return t})()};return n&&(hv(n,"blur",e=>{null===e.relatedTarget&&s()},!0),hv(n,"focus",s,!0)),i&&gv(o,e=>{e.filter(e=>e.removedNodes.length).map(e=>Array.from(e.removedNodes)).flat().forEach(e=>{e===a.value&&s()})},{childList:!0,subtree:!0}),s(),a}function Ov(e,t,n={}){const{window:r=lv,initialValue:i,observe:o=!1}=n,a=ia(i),s=Wu(()=>{var e;return uv(t)||(null==(e=null==r?void 0:r.document)?void 0:e.documentElement)});function l(){var t;const n=jy(e),o=jy(s);if(o&&r&&n){const e=null==(t=r.getComputedStyle(o).getPropertyValue(n))?void 0:t.trim();a.value=e||i}}return o&&gv(s,l,{attributeFilter:["style","class"],window:r}),cs([s,()=>jy(e)],(e,t)=>{t[0]&&t[1]&&t[0].style.removeProperty(t[1]),l()},{immediate:!0}),cs(a,t=>{var n;const r=jy(e);(null==(n=s.value)?void 0:n.style)&&r&&(null==t?s.value.style.removeProperty(r):s.value.style.setProperty(r,t))}),a}function Av(e={}){const{document:t=cv}=e;if(!t)return ia("visible");const n=ia(t.visibilityState);return hv(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function yv(e,t,n={}){const{window:r=lv,...i}=n;let o;const a=fv(()=>r&&"ResizeObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},l=cs(Wu(()=>{const t=jy(e);return Array.isArray(t)?t.map(e=>uv(e)):[uv(t)]}),e=>{if(s(),a.value&&r){o=new ResizeObserver(t);for(const t of e)t&&o.observe(t,i)}},{immediate:!0,flush:"post"}),c=()=>{s(),l()};return Wy(c),{isSupported:a,stop:c}}function vv(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:i=!0,immediate:o=!0,updateTiming:a="sync"}=t,s=ia(0),l=ia(0),c=ia(0),u=ia(0),h=ia(0),d=ia(0),p=ia(0),f=ia(0);function g(){const t=uv(e);if(!t)return void(n&&(s.value=0,l.value=0,c.value=0,u.value=0,h.value=0,d.value=0,p.value=0,f.value=0));const r=t.getBoundingClientRect();s.value=r.height,l.value=r.bottom,c.value=r.left,u.value=r.right,h.value=r.top,d.value=r.width,p.value=r.x,f.value=r.y}function m(){"sync"===a?g():"next-frame"===a&&requestAnimationFrame(()=>g())}return yv(e,m),cs(()=>uv(e),e=>!e&&m()),gv(e,m,{attributeFilter:["style","class"]}),i&&hv("scroll",m,{capture:!0,passive:!0}),r&&hv("resize",m,{passive:!0}),av(()=>{o&&m()}),{height:s,bottom:l,left:c,right:u,top:h,width:d,x:p,y:f,update:m}}function bv(e,t={width:0,height:0},n={}){const{window:r=lv,box:i="content-box"}=n,o=Wu(()=>{var t,n;return null==(n=null==(t=uv(e))?void 0:t.namespaceURI)?void 0:n.includes("svg")}),a=ia(t.width),s=ia(t.height),{stop:l}=yv(e,([t])=>{const n="border-box"===i?t.borderBoxSize:"content-box"===i?t.contentBoxSize:t.devicePixelContentBoxSize;if(r&&o.value){const t=uv(e);if(t){const e=t.getBoundingClientRect();a.value=e.width,s.value=e.height}}else if(n){const e=Array.isArray(n)?n:[n];a.value=e.reduce((e,{inlineSize:t})=>e+t,0),s.value=e.reduce((e,{blockSize:t})=>e+t,0)}else a.value=t.contentRect.width,s.value=t.contentRect.height},n);av(()=>{const n=uv(e);n&&(a.value="offsetWidth"in n?n.offsetWidth:t.width,s.value="offsetHeight"in n?n.offsetHeight:t.height)});const c=cs(()=>uv(e),e=>{a.value=e?t.width:0,s.value=e?t.height:0});return{width:a,height:s,stop:function(){l(),c()}}}function xv(e,t,n={}){const{root:r,rootMargin:i="0px",threshold:o=0,window:a=lv,immediate:s=!0}=n,l=fv(()=>a&&"IntersectionObserver"in a),c=Wu(()=>{const t=jy(e);return(Array.isArray(t)?t:[t]).map(uv).filter(Gy)});let u=Jy;const h=ia(s),d=l.value?cs(()=>[c.value,uv(r),h.value],([e,n])=>{if(u(),!h.value)return;if(!e.length)return;const r=new IntersectionObserver(t,{root:uv(n),rootMargin:i,threshold:o});e.forEach(e=>e&&r.observe(e)),u=()=>{r.disconnect(),u=Jy}},{immediate:s,flush:"post"}):Jy,p=()=>{u(),d(),h.value=!1};return Wy(p),{isSupported:l,isActive:h,pause(){u(),h.value=!1},resume(){h.value=!0},stop:p}}function wv(e,t,n,r={}){var i,o,a;const{clone:s=!1,passive:l=!1,eventName:c,deep:u=!1,defaultValue:h,shouldEmit:d}=r,p=Qu(),f=n||(null==p?void 0:p.emit)||(null==(i=null==p?void 0:p.$emit)?void 0:i.bind(p))||(null==(a=null==(o=null==p?void 0:p.proxy)?void 0:o.$emit)?void 0:a.bind(null==p?void 0:p.proxy));let g=c;t||(t="modelValue"),g=g||`update:${t.toString()}`;const m=e=>{return s?"function"==typeof s?s(e):(t=e,JSON.parse(JSON.stringify(t))):e;var t},O=()=>void 0!==e[t]?m(e[t]):h,A=e=>{d?d(e)&&f(g,e):f(g,e)};if(l){const n=ia(O());let r=!1;return cs(()=>e[t],e=>{r||(r=!0,n.value=m(e),Na(()=>r=!1))}),cs(n,n=>{r||n===e[t]&&!u||A(n)},{deep:u}),n}return Wu({get:()=>O(),set(e){A(e)}})}function kv(e={}){const{window:t=lv}=e;if(!t)return ia(!1);const n=ia(t.document.hasFocus());return hv(t,"blur",()=>{n.value=!1}),hv(t,"focus",()=>{n.value=!0}),n}function Sv(e={}){const{window:t=lv,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:o=!0,type:a="inner"}=e,s=ia(n),l=ia(r),c=()=>{t&&("outer"===a?(s.value=t.outerWidth,l.value=t.outerHeight):o?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};if(c(),av(c),hv("resize",c,{passive:!0}),i){const e=function(e,t={}){const{window:n=lv}=t,r=fv(()=>n&&"matchMedia"in n&&"function"==typeof n.matchMedia);let i;const o=ia(!1),a=e=>{o.value=e.matches},s=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",a):i.removeListener(a))},l=ss(()=>{r.value&&(s(),i=n.matchMedia(jy(e)),"addEventListener"in i?i.addEventListener("change",a):i.addListener(a),o.value=i.matches)});return Wy(()=>{l(),s(),i=void 0}),o}("(orientation: portrait)");cs(e,()=>c())}return{width:s,height:l}}var Tv="top",$v="bottom",_v="right",Cv="left",Qv="auto",Pv=[Tv,$v,_v,Cv],Ev="start",Rv="end",Bv="viewport",Iv="popper",Lv=Pv.reduce(function(e,t){return e.concat([t+"-"+Ev,t+"-"+Rv])},[]),Dv=[].concat(Pv,[Qv]).reduce(function(e,t){return e.concat([t,t+"-"+Ev,t+"-"+Rv])},[]),Mv=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Nv(e){return e?(e.nodeName||"").toLowerCase():null}function Xv(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Fv(e){return e instanceof Xv(e).Element||e instanceof Element}function Uv(e){return e instanceof Xv(e).HTMLElement||e instanceof HTMLElement}function zv(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Xv(e).ShadowRoot||e instanceof ShadowRoot)}var qv={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!Uv(i)||!Nv(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});!Uv(r)||!Nv(r)||(Object.assign(r.style,o),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};function Vv(e){return e.split("-")[0]}var Wv=Math.max,jv=Math.min,Yv=Math.round;function Zv(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Gv(){return!/^((?!chrome|android).)*safari/i.test(Zv())}function Hv(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Uv(e)&&(i=e.offsetWidth>0&&Yv(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Yv(r.height)/e.offsetHeight||1);var a=(Fv(e)?Xv(e):window).visualViewport,s=!Gv()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/i,c=(r.top+(s&&a?a.offsetTop:0))/o,u=r.width/i,h=r.height/o;return{width:u,height:h,top:c,right:l+u,bottom:c+h,left:l,x:l,y:c}}function Kv(e){var t=Hv(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Jv(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&zv(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function eb(e){return Xv(e).getComputedStyle(e)}function tb(e){return["table","td","th"].indexOf(Nv(e))>=0}function nb(e){return((Fv(e)?e.ownerDocument:e.document)||window.document).documentElement}function rb(e){return"html"===Nv(e)?e:e.assignedSlot||e.parentNode||(zv(e)?e.host:null)||nb(e)}function ib(e){return Uv(e)&&"fixed"!==eb(e).position?e.offsetParent:null}function ob(e){for(var t=Xv(e),n=ib(e);n&&tb(n)&&"static"===eb(n).position;)n=ib(n);return n&&("html"===Nv(n)||"body"===Nv(n)&&"static"===eb(n).position)?t:n||function(e){var t=/firefox/i.test(Zv());if(/Trident/i.test(Zv())&&Uv(e)&&"fixed"===eb(e).position)return null;var n=rb(e);for(zv(n)&&(n=n.host);Uv(n)&&["html","body"].indexOf(Nv(n))<0;){var r=eb(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function ab(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function sb(e,t,n){return Wv(e,jv(t,n))}function lb(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function cb(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var ub={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Vv(n.placement),l=ab(s),c=[Cv,_v].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return lb("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:cb(e,Pv))}(i.padding,n),h=Kv(o),d="y"===l?Tv:Cv,p="y"===l?$v:_v,f=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],g=a[l]-n.rects.reference[l],m=ob(o),O=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,A=f/2-g/2,y=u[d],v=O-h[c]-u[p],b=O/2-h[c]/2+A,x=sb(y,b,v),w=l;n.modifiersData[r]=((t={})[w]=x,t.centerOffset=x-b,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"==typeof r&&!(r=t.elements.popper.querySelector(r))||Jv(t.elements.popper,r)&&(t.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function hb(e){return e.split("-")[1]}var db={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pb(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,h=e.isFixed,d=a.x,p=void 0===d?0:d,f=a.y,g=void 0===f?0:f,m="function"==typeof u?u({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var O=a.hasOwnProperty("x"),A=a.hasOwnProperty("y"),y=Cv,v=Tv,b=window;if(c){var x=ob(n),w="clientHeight",k="clientWidth";if(x===Xv(n)&&("static"!==eb(x=nb(n)).position&&"absolute"===s&&(w="scrollHeight",k="scrollWidth")),i===Tv||(i===Cv||i===_v)&&o===Rv)v=$v,g-=(h&&x===b&&b.visualViewport?b.visualViewport.height:x[w])-r.height,g*=l?1:-1;if(i===Cv||(i===Tv||i===$v)&&o===Rv)y=_v,p-=(h&&x===b&&b.visualViewport?b.visualViewport.width:x[k])-r.width,p*=l?1:-1}var S,T=Object.assign({position:s},c&&db),$=!0===u?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Yv(n*i)/i||0,y:Yv(r*i)/i||0}}({x:p,y:g},Xv(n)):{x:p,y:g};return p=$.x,g=$.y,l?Object.assign({},T,((S={})[v]=A?"0":"",S[y]=O?"0":"",S.transform=(b.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",S)):Object.assign({},T,((t={})[v]=A?g+"px":"",t[y]=O?p+"px":"",t.transform="",t))}var fb={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,c={placement:Vv(t.placement),variation:hb(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,pb(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,pb(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},gb={passive:!0};var mb={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,l=Xv(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",n.update,gb)}),s&&l.addEventListener("resize",n.update,gb),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",n.update,gb)}),s&&l.removeEventListener("resize",n.update,gb)}},data:{}},Ob={left:"right",right:"left",bottom:"top",top:"bottom"};function Ab(e){return e.replace(/left|right|bottom|top/g,function(e){return Ob[e]})}var yb={start:"end",end:"start"};function vb(e){return e.replace(/start|end/g,function(e){return yb[e]})}function bb(e){var t=Xv(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function xb(e){return Hv(nb(e)).left+bb(e).scrollLeft}function wb(e){var t=eb(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function kb(e){return["html","body","#document"].indexOf(Nv(e))>=0?e.ownerDocument.body:Uv(e)&&wb(e)?e:kb(rb(e))}function Sb(e,t){var n;void 0===t&&(t=[]);var r=kb(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=Xv(r),a=i?[o].concat(o.visualViewport||[],wb(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Sb(rb(a)))}function Tb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $b(e,t,n){return t===Bv?Tb(function(e,t){var n=Xv(e),r=nb(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=Gv();(c||!c&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+xb(e),y:l}}(e,n)):Fv(t)?function(e,t){var n=Hv(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Tb(function(e){var t,n=nb(e),r=bb(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=Wv(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Wv(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+xb(e),l=-r.scrollTop;return"rtl"===eb(i||n).direction&&(s+=Wv(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(nb(e)))}function _b(e,t,n,r){var i="clippingParents"===t?function(e){var t=Sb(rb(e)),n=["absolute","fixed"].indexOf(eb(e).position)>=0&&Uv(e)?ob(e):e;return Fv(n)?t.filter(function(e){return Fv(e)&&Jv(e,n)&&"body"!==Nv(e)}):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(t,n){var i=$b(e,n,r);return t.top=Wv(i.top,t.top),t.right=jv(i.right,t.right),t.bottom=jv(i.bottom,t.bottom),t.left=Wv(i.left,t.left),t},$b(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Cb(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?Vv(i):null,a=i?hb(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case Tv:t={x:s,y:n.y-r.height};break;case $v:t={x:s,y:n.y+n.height};break;case _v:t={x:n.x+n.width,y:l};break;case Cv:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?ab(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Ev:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Rv:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function Qb(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?Bv:c,h=n.elementContext,d=void 0===h?Iv:h,p=n.altBoundary,f=void 0!==p&&p,g=n.padding,m=void 0===g?0:g,O=lb("number"!=typeof m?m:cb(m,Pv)),A=d===Iv?"reference":Iv,y=e.rects.popper,v=e.elements[f?A:d],b=_b(Fv(v)?v:v.contextElement||nb(e.elements.popper),l,u,a),x=Hv(e.elements.reference),w=Cb({reference:x,element:y,placement:i}),k=Tb(Object.assign({},y,w)),S=d===Iv?k:x,T={top:b.top-S.top+O.top,bottom:S.bottom-b.bottom+O.bottom,left:b.left-S.left+O.left,right:S.right-b.right+O.right},$=e.modifiersData.offset;if(d===Iv&&$){var _=$[i];Object.keys(T).forEach(function(e){var t=[_v,$v].indexOf(e)>=0?1:-1,n=[Tv,$v].indexOf(e)>=0?"y":"x";T[e]+=_[n]*t})}return T}var Pb={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,h=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,f=void 0===p||p,g=n.allowedAutoPlacements,m=t.options.placement,O=Vv(m),A=l||(O===m||!f?[Ab(m)]:function(e){if(Vv(e)===Qv)return[];var t=Ab(e);return[vb(e),t,vb(t)]}(m)),y=[m].concat(A).reduce(function(e,n){return e.concat(Vv(n)===Qv?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Dv:l,u=hb(r),h=u?s?Lv:Lv.filter(function(e){return hb(e)===u}):Pv,d=h.filter(function(e){return c.indexOf(e)>=0});0===d.length&&(d=h);var p=d.reduce(function(t,n){return t[n]=Qb(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[Vv(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}(t,{placement:n,boundary:u,rootBoundary:h,padding:c,flipVariations:f,allowedAutoPlacements:g}):n)},[]),v=t.rects.reference,b=t.rects.popper,x=new Map,w=!0,k=y[0],S=0;S<y.length;S++){var T=y[S],$=Vv(T),_=hb(T)===Ev,C=[Tv,$v].indexOf($)>=0,Q=C?"width":"height",P=Qb(t,{placement:T,boundary:u,rootBoundary:h,altBoundary:d,padding:c}),E=C?_?_v:Cv:_?$v:Tv;v[Q]>b[Q]&&(E=Ab(E));var R=Ab(E),B=[];if(o&&B.push(P[$]<=0),s&&B.push(P[E]<=0,P[R]<=0),B.every(function(e){return e})){k=T,w=!1;break}x.set(T,B)}if(w)for(var I=function(e){var t=y.find(function(t){var n=x.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return k=t,"break"},L=f?3:1;L>0;L--){if("break"===I(L))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Eb(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Rb(e){return[Tv,_v,$v,Cv].some(function(t){return e[t]>=0})}var Bb={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Qb(t,{elementContext:"reference"}),s=Qb(t,{altBoundary:!0}),l=Eb(a,r),c=Eb(s,i,o),u=Rb(l),h=Rb(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}};var Ib={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=Dv.reduce(function(e,n){return e[n]=function(e,t,n){var r=Vv(e),i=[Cv,Tv].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Cv,_v].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e},{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var Lb={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Cb({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}};var Db={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,h=n.padding,d=n.tether,p=void 0===d||d,f=n.tetherOffset,g=void 0===f?0:f,m=Qb(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:u}),O=Vv(t.placement),A=hb(t.placement),y=!A,v=ab(O),b=function(e){return"x"===e?"y":"x"}(v),x=t.modifiersData.popperOffsets,w=t.rects.reference,k=t.rects.popper,S="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,T="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(x){if(o){var C,Q="y"===v?Tv:Cv,P="y"===v?$v:_v,E="y"===v?"height":"width",R=x[v],B=R+m[Q],I=R-m[P],L=p?-k[E]/2:0,D=A===Ev?w[E]:k[E],M=A===Ev?-k[E]:-w[E],N=t.elements.arrow,X=p&&N?Kv(N):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=F[Q],z=F[P],q=sb(0,w[E],X[E]),V=y?w[E]/2-L-q-U-T.mainAxis:D-q-U-T.mainAxis,W=y?-w[E]/2+L+q+z+T.mainAxis:M+q+z+T.mainAxis,j=t.elements.arrow&&ob(t.elements.arrow),Y=j?"y"===v?j.clientTop||0:j.clientLeft||0:0,Z=null!=(C=null==$?void 0:$[v])?C:0,G=R+W-Z,H=sb(p?jv(B,R+V-Z-Y):B,R,p?Wv(I,G):I);x[v]=H,_[v]=H-R}if(s){var K,J="x"===v?Tv:Cv,ee="x"===v?$v:_v,te=x[b],ne="y"===b?"height":"width",re=te+m[J],ie=te-m[ee],oe=-1!==[Tv,Cv].indexOf(O),ae=null!=(K=null==$?void 0:$[b])?K:0,se=oe?re:te-w[ne]-k[ne]-ae+T.altAxis,le=oe?te+w[ne]+k[ne]-ae-T.altAxis:ie,ce=p&&oe?function(e,t,n){var r=sb(e,t,n);return r>n?n:r}(se,te,le):sb(p?se:re,te,p?le:ie);x[b]=ce,_[b]=ce-te}t.modifiersData[r]=_}},requiresIfExists:["offset"]};function Mb(e,t,n){void 0===n&&(n=!1);var r=Uv(t),i=Uv(t)&&function(e){var t=e.getBoundingClientRect(),n=Yv(t.width)/e.offsetWidth||1,r=Yv(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=nb(t),a=Hv(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Nv(t)||wb(o))&&(s=function(e){return e!==Xv(e)&&Uv(e)?function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):bb(e)}(t)),Uv(t)?((l=Hv(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=xb(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Nb(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||i(e)}),r}function Xb(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}var Fb={placement:"bottom",modifiers:[],strategy:"absolute"};function Ub(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function zb(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?Fb:i;return function(e,t,n){void 0===n&&(n=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},Fb,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,l={state:i,setOptions:function(n){var s="function"==typeof n?n(i.options):n;c(),i.options=Object.assign({},o,i.options,s),i.scrollParents={reference:Fv(e)?Sb(e):e.contextElement?Sb(e.contextElement):[],popper:Sb(t)};var u=function(e){var t=Nb(e);return Mv.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}(function(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}([].concat(r,i.options.modifiers)));return i.orderedModifiers=u.filter(function(e){return e.enabled}),i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var s=o({state:i,name:t,instance:l,options:r}),c=function(){};a.push(s||c)}}),l.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(Ub(t,n)){i.rects={reference:Mb(t,ob(n),"fixed"===i.options.strategy),popper:Kv(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,c=o.options,u=void 0===c?{}:c,h=o.name;"function"==typeof a&&(i=a({state:i,options:u,name:h,instance:l})||i)}else i.reset=!1,r=-1}}},update:Xb(function(){return new Promise(function(e){l.forceUpdate(),e(i)})}),destroy:function(){c(),s=!0}};if(!Ub(e,t))return l;function c(){a.forEach(function(e){return e()}),a=[]}return l.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)}),l}}zb(),zb({defaultModifiers:[mb,Lb,fb,qv]});var qb=zb({defaultModifiers:[mb,Lb,fb,qv,Ib,Pb,Db,ub,Bb]});const Vb=Math.min,Wb=Math.max,jb=Math.round,Yb=Math.floor,Zb=e=>({x:e,y:e}),Gb={left:"right",right:"left",bottom:"top",top:"bottom"};function Hb(e,t,n){return Wb(e,Vb(t,n))}function Kb(e,t){return"function"==typeof e?e(t):e}function Jb(e){return e.split("-")[0]}function ex(e){return e.split("-")[1]}function tx(e){return"x"===e?"y":"x"}function nx(e){return"y"===e?"height":"width"}function rx(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function ix(e){return tx(rx(e))}function ox(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const ax=["left","right"],sx=["right","left"],lx=["top","bottom"],cx=["bottom","top"];function ux(e,t,n,r){const i=ex(e);let o=function(e,t,n){switch(e){case"top":case"bottom":return n?t?sx:ax:t?ax:sx;case"left":case"right":return t?lx:cx;default:return[]}}(Jb(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(ox)))),o}function hx(e){const t=Jb(e);return Gb[t]+e.slice(t.length)}function dx(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function px(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function fx(e,t,n){let{reference:r,floating:i}=e;const o=rx(t),a=ix(t),s=nx(a),l=Jb(t),c="y"===o,u=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,d=r[s]/2-i[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-i.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:h};break;case"left":p={x:r.x-i.width,y:h};break;default:p={x:r.x,y:r.y}}switch(ex(t)){case"start":p[a]-=d*(n&&c?-1:1);break;case"end":p[a]+=d*(n&&c?-1:1)}return p}async function gx(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:d=!1,padding:p=0}=Kb(t,e),f=dx(p),g=s[d?"floating"===h?"reference":"floating":h],m=px(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),O="floating"===h?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,A=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),y=await(null==o.isElement?void 0:o.isElement(A))&&await(null==o.getScale?void 0:o.getScale(A))||{x:1,y:1},v=px(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:O,offsetParent:A,strategy:l}):O);return{top:(m.top-v.top+f.top)/y.y,bottom:(v.bottom-m.bottom+f.bottom)/y.y,left:(m.left-v.left+f.left)/y.x,right:(v.right-m.right+f.right)/y.x}}const mx=new Set(["left","top"]);function Ox(){return"undefined"!=typeof window}function Ax(e){return bx(e)?(e.nodeName||"").toLowerCase():"#document"}function yx(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function vx(e){var t;return null==(t=(bx(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function bx(e){return!!Ox()&&(e instanceof Node||e instanceof yx(e).Node)}function xx(e){return!!Ox()&&(e instanceof Element||e instanceof yx(e).Element)}function wx(e){return!!Ox()&&(e instanceof HTMLElement||e instanceof yx(e).HTMLElement)}function kx(e){return!(!Ox()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof yx(e).ShadowRoot)}function Sx(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ix(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function Tx(e){return/^(table|td|th)$/.test(Ax(e))}function $x(e){try{if(e.matches(":popover-open"))return!0}catch(t){}try{return e.matches(":modal")}catch(t){return!1}}const _x=/transform|translate|scale|rotate|perspective|filter/,Cx=/paint|layout|strict|content/,Qx=e=>!!e&&"none"!==e;let Px;function Ex(e){const t=xx(e)?Ix(e):e;return Qx(t.transform)||Qx(t.translate)||Qx(t.scale)||Qx(t.rotate)||Qx(t.perspective)||!Rx()&&(Qx(t.backdropFilter)||Qx(t.filter))||_x.test(t.willChange||"")||Cx.test(t.contain||"")}function Rx(){return null==Px&&(Px="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Px}function Bx(e){return/^(html|body|#document)$/.test(Ax(e))}function Ix(e){return yx(e).getComputedStyle(e)}function Lx(e){return xx(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Dx(e){if("html"===Ax(e))return e;const t=e.assignedSlot||e.parentNode||kx(e)&&e.host||vx(e);return kx(t)?t.host:t}function Mx(e){const t=Dx(e);return Bx(t)?e.ownerDocument?e.ownerDocument.body:e.body:wx(t)&&Sx(t)?t:Mx(t)}function Nx(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=Mx(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=yx(i);if(o){const e=Xx(a);return t.concat(a,a.visualViewport||[],Sx(i)?i:[],e&&n?Nx(e):[])}return t.concat(i,Nx(i,[],n))}function Xx(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Fx(e){const t=Ix(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=wx(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=jb(n)!==o||jb(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function Ux(e){return xx(e)?e:e.contextElement}function zx(e){const t=Ux(e);if(!wx(t))return Zb(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Fx(t);let a=(o?jb(n.width):n.width)/r,s=(o?jb(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const qx=Zb(0);function Vx(e){const t=yx(e);return Rx()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:qx}function Wx(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=Ux(e);let a=Zb(1);t&&(r?xx(r)&&(a=zx(r)):a=zx(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==yx(e))&&t}(o,n,r)?Vx(o):Zb(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,u=i.width/a.x,h=i.height/a.y;if(o){const e=yx(o),t=r&&xx(r)?yx(r):r;let n=e,i=Xx(n);for(;i&&r&&t!==n;){const e=zx(i),t=i.getBoundingClientRect(),r=Ix(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,h*=e.y,l+=o,c+=a,n=yx(i),i=Xx(n)}}return px({width:u,height:h,x:l,y:c})}function jx(e,t){const n=Lx(e).scrollLeft;return t?t.left+n:Wx(vx(e)).left+n}function Yx(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-jx(e,n),y:n.top+t.scrollTop}}function Zx(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=yx(e),r=vx(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const e=Rx();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}const c=jx(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-i);a<=25&&(o-=a)}else c<=25&&(o+=c);return{width:o,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=vx(e),n=Lx(e),r=e.ownerDocument.body,i=Wb(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Wb(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+jx(e);const s=-n.scrollTop;return"rtl"===Ix(r).direction&&(a+=Wb(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}(vx(e));else if(xx(t))r=function(e,t){const n=Wx(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=wx(e)?zx(e):Zb(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{const n=Vx(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return px(r)}function Gx(e,t){const n=Dx(e);return!(n===t||!xx(n)||Bx(n))&&("fixed"===Ix(n).position||Gx(n,t))}function Hx(e,t,n){const r=wx(t),i=vx(t),o="fixed"===n,a=Wx(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=Zb(0);function c(){l.x=jx(i)}if(r||!r&&!o)if(("body"!==Ax(t)||Sx(i))&&(s=Lx(t)),r){const e=Wx(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&c();o&&!r&&i&&c();const u=!i||r||o?Zb(0):Yx(i,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function Kx(e){return"static"===Ix(e).position}function Jx(e,t){if(!wx(e)||"fixed"===Ix(e).position)return null;if(t)return t(e);let n=e.offsetParent;return vx(e)===n&&(n=n.ownerDocument.body),n}function ew(e,t){const n=yx(e);if($x(e))return n;if(!wx(e)){let t=Dx(e);for(;t&&!Bx(t);){if(xx(t)&&!Kx(t))return t;t=Dx(t)}return n}let r=Jx(e,t);for(;r&&Tx(r)&&Kx(r);)r=Jx(r,t);return r&&Bx(r)&&Kx(r)&&!Ex(r)?n:r||function(e){let t=Dx(e);for(;wx(t)&&!Bx(t);){if(Ex(t))return t;if($x(t))return null;t=Dx(t)}return null}(e)||n}const tw={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o="fixed"===i,a=vx(r),s=!!t&&$x(t.floating);if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=Zb(1);const u=Zb(0),h=wx(r);if((h||!h&&!o)&&(("body"!==Ax(r)||Sx(a))&&(l=Lx(r)),h)){const e=Wx(r);c=zx(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const d=!a||h||o?Zb(0):Yx(a,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+d.x,y:n.y*c.y-l.scrollTop*c.y+u.y+d.y}},getDocumentElement:vx,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[..."clippingAncestors"===n?$x(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Nx(e,[],!1).filter(e=>xx(e)&&"body"!==Ax(e)),i=null;const o="fixed"===Ix(e).position;let a=o?Dx(e):e;for(;xx(a)&&!Bx(a);){const t=Ix(a),n=Ex(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||Sx(a)&&!n&&Gx(e,a))?r=r.filter(e=>e!==a):i=t,a=Dx(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=Zx(t,o[0],i);let s=a.top,l=a.right,c=a.bottom,u=a.left;for(let h=1;h<o.length;h++){const e=Zx(t,o[h],i);s=Wb(e.top,s),l=Vb(e.right,l),c=Vb(e.bottom,c),u=Wb(e.left,u)}return{width:l-u,height:c-s,x:u,y:s}},getOffsetParent:ew,getElementRects:async function(e){const t=this.getOffsetParent||ew,n=this.getDimensions,r=await n(e.floating);return{reference:Hx(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Fx(e);return{width:t,height:n}},getScale:zx,isElement:xx,isRTL:function(e){return"rtl"===Ix(e).direction}};function nw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function rw(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Ux(e),u=i||o?[...c?Nx(c):[],...t?Nx(t):[]]:[];u.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});const h=c&&s?function(e,t){let n,r=null;const i=vx(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:h,width:d,height:p}=c;if(s||t(),!d||!p)return;const f={rootMargin:-Yb(h)+"px "+-Yb(i.clientWidth-(u+d))+"px "+-Yb(i.clientHeight-(h+p))+"px "+-Yb(u)+"px",threshold:Wb(0,Vb(1,l))||1};let g=!0;function m(t){const r=t[0].intersectionRatio;if(r!==l){if(!g)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||nw(c,e.getBoundingClientRect())||a(),g=!1}try{r=new IntersectionObserver(m,{...f,root:i.ownerDocument})}catch(O){r=new IntersectionObserver(m,f)}r.observe(e)}(!0),o}(c,n):null;let d,p=-1,f=null;a&&(f=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&f&&t&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),n()}),c&&!l&&f.observe(c),t&&f.observe(t));let g=l?Wx(e):null;return l&&function t(){const r=Wx(e);g&&!nw(g,r)&&n();g=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(d)}}const iw=gx,ow=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:i}=e,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),a=Jb(n),s=ex(n),l="y"===rx(n),c=mx.has(a)?-1:1,u=o&&l?-1:1,h=Kb(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:f}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&"number"==typeof f&&(p="end"===s?-1*f:f),l?{x:p*u,y:d*c}:{x:d*c,y:p*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},aw=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=Kb(e,t),u={x:n,y:r},h=await o.detectOverflow(t,c),d=rx(Jb(i)),p=tx(d);let f=u[p],g=u[d];if(a){const e="y"===p?"bottom":"right";f=Hb(f+h["y"===p?"top":"left"],f,f-h[e])}if(s){const e="y"===d?"bottom":"right";g=Hb(g+h["y"===d?"top":"left"],g,g-h[e])}const m=l.fn({...t,[p]:f,[d]:g});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[p]:a,[d]:s}}}}}},sw=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:g=!0,...m}=Kb(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const O=Jb(i),A=rx(s),y=Jb(s)===s,v=await(null==l.isRTL?void 0:l.isRTL(c.floating)),b=d||(y||!g?[hx(s)]:function(e){const t=hx(e);return[ox(e),t,ox(t)]}(s)),x="none"!==f;!d&&x&&b.push(...ux(s,g,f,v));const w=[s,...b],k=await l.detectOverflow(t,m),S=[];let T=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&S.push(k[O]),h){const e=function(e,t,n){void 0===n&&(n=!1);const r=ex(e),i=ix(e),o=nx(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=hx(a)),[a,hx(a)]}(i,a,v);S.push(k[e[0]],k[e[1]])}if(T=[...T,{placement:i,overflows:S}],!S.every(e=>e<=0)){var $,_;const e=((null==($=o.flip)?void 0:$.index)||0)+1,t=w[e];if(t){if(!("alignment"===h&&A!==rx(t))||T.every(e=>rx(e.placement)!==A||e.overflows[0]>0))return{data:{index:e,overflows:T},reset:{placement:t}}}let n=null==(_=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:_.placement;if(!n)switch(p){case"bestFit":{var C;const e=null==(C=T.filter(e=>{if(x){const t=rx(e.placement);return t===A||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:C[0];e&&(n=e);break}case"initialPlacement":n=s}if(i!==n)return{reset:{placement:n}}}return{}}}},lw=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Kb(e,t)||{};if(null==c)return{};const h=dx(u),d={x:n,y:r},p=ix(i),f=nx(p),g=await a.getDimensions(c),m="y"===p,O=m?"top":"left",A=m?"bottom":"right",y=m?"clientHeight":"clientWidth",v=o.reference[f]+o.reference[p]-d[p]-o.floating[f],b=d[p]-o.reference[p],x=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let w=x?x[y]:0;w&&await(null==a.isElement?void 0:a.isElement(x))||(w=s.floating[y]||o.floating[f]);const k=v/2-b/2,S=w/2-g[f]/2-1,T=Vb(h[O],S),$=Vb(h[A],S),_=T,C=w-g[f]-$,Q=w/2-g[f]/2+k,P=Hb(_,Q,C),E=!l.arrow&&null!=ex(i)&&Q!==P&&o.reference[f]/2-(Q<_?T:$)-g[f]/2<0,R=E?Q<_?Q-_:Q-C:0;return{[p]:d[p]+R,data:{[p]:P,centerOffset:Q-P-R,...E&&{alignmentOffset:R}},reset:E}}}),cw=(e,t,n)=>{const r=new Map,i={platform:tw,...n},o={...i.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:gx},l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:h}=fx(c,r,l),d=r,p=0;const f={};for(let g=0;g<o.length;g++){const n=o[g];if(!n)continue;const{name:m,fn:O}=n,{x:A,y:y,data:v,reset:b}=await O({x:u,y:h,initialPlacement:r,placement:d,strategy:i,middlewareData:f,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=A?A:u,h=null!=y?y:h,f[m]={...f[m],...v},b&&p<50&&(p++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(c=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):b.rects),({x:u,y:h}=fx(c,d,l))),g=-1)}return{x:u,y:h,placement:d,strategy:i,middlewareData:f}})(e,t,{...i,platform:o})};function uw(){return uw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uw.apply(this,arguments)}function hw(e){return(hw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function dw(e,t){return(dw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function pw(e,t,n){return(pw=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(jk){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&dw(i,n.prototype),i}).apply(null,arguments)}function fw(e){var t="function"==typeof Map?new Map:void 0;return fw=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return pw(e,arguments,hw(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),dw(r,e)},fw(e)}var gw=/%[sdj%]/g;function mw(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function Ow(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,o=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(gw,function(e){if("%%"===e)return"%";if(i>=o)return e;switch(e){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(t){return"[Circular]"}break;default:return e}}):e}function Aw(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function yw(e,t,n){var r=0,i=e.length;!function o(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<i?t(e[s],o):n([])}}([])}var vw=function(e){var t,n;function r(t,n){var r;return(r=e.call(this,"Async Validation Error")||this).errors=t,r.fields=n,r}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,dw(t,n),r}(fw(Error));function bw(e,t,n,r,i){if(t.first){var o=new Promise(function(t,o){var a=function(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}(e);yw(a,n,function(e){return r(e),e.length?o(new vw(e,mw(e))):t(i)})});return o.catch(function(e){return e}),o}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],h=new Promise(function(t,o){var h=function(e){if(u.push.apply(u,e),++c===l)return r(u),u.length?o(new vw(u,mw(u))):t(i)};s.length||(r(u),t(i)),s.forEach(function(t){var r=e[t];-1!==a.indexOf(t)?yw(r,n,h):function(e,t,n){var r=[],i=0,o=e.length;function a(e){r.push.apply(r,e||[]),++i===o&&n(r)}e.forEach(function(e){t(e,a)})}(r,n,h)})});return h.catch(function(e){return e}),h}function xw(e,t){return function(n){var r,i;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(i=n)&&void 0!==i.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function ww(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"==typeof r&&"object"==typeof e[n]?e[n]=uw({},e[n],r):e[n]=r}return e}var kw,Sw=function(e,t,n,r,i,o){!e.required||n.hasOwnProperty(e.field)&&!Aw(t,o||e.type)||r.push(Ow(i.messages.required,e.fullField))},Tw=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,$w=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,_w={integer:function(e){return _w.number(e)&&parseInt(e,10)===e},float:function(e){return _w.number(e)&&!_w.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(jk){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!_w.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Tw)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(kw)return kw;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=("\n(?:\n(?:"+r+":){7}(?:"+r+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+n+"|:"+r+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+i+"$"),l=function(e){return e&&e.exact?o:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+i+t(e)+")","g")};l.v4=function(e){return e&&e.exact?a:new RegExp(""+t(e)+n+t(e),"g")},l.v6=function(e){return e&&e.exact?s:new RegExp(""+t(e)+i+t(e),"g")};var c=l.v4().source,u=l.v6().source;return kw=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+c+"|"+u+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"==typeof e&&!!e.match($w)}},Cw="enum",Qw={required:Sw,whitespace:function(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(Ow(i.messages.whitespace,e.fullField))},type:function(e,t,n,r,i){if(e.required&&void 0===t)Sw(e,t,n,r,i);else{var o=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)>-1?_w[o](t)||r.push(Ow(i.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(Ow(i.messages.types[o],e.fullField,e.type))}},range:function(e,t,n,r,i){var o="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,l=t,c=null,u="number"==typeof t,h="string"==typeof t,d=Array.isArray(t);if(u?c="number":h?c="string":d&&(c="array"),!c)return!1;d&&(l=t.length),h&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?l!==e.len&&r.push(Ow(i.messages[c].len,e.fullField,e.len)):a&&!s&&l<e.min?r.push(Ow(i.messages[c].min,e.fullField,e.min)):s&&!a&&l>e.max?r.push(Ow(i.messages[c].max,e.fullField,e.max)):a&&s&&(l<e.min||l>e.max)&&r.push(Ow(i.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,i){e[Cw]=Array.isArray(e[Cw])?e[Cw]:[],-1===e[Cw].indexOf(t)&&r.push(Ow(i.messages[Cw],e.fullField,e[Cw].join(", ")))},pattern:function(e,t,n,r,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Ow(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(Ow(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},Pw=function(e,t,n,r,i){var o=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Aw(t,o)&&!e.required)return n();Qw.required(e,t,r,a,i,o),Aw(t,o)||Qw.type(e,t,r,a,i)}n(a)},Ew={string:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Aw(t,"string")&&!e.required)return n();Qw.required(e,t,r,o,i,"string"),Aw(t,"string")||(Qw.type(e,t,r,o,i),Qw.range(e,t,r,o,i),Qw.pattern(e,t,r,o,i),!0===e.whitespace&&Qw.whitespace(e,t,r,o,i))}n(o)},method:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Aw(t)&&!e.required)return n();Qw.required(e,t,r,o,i),void 0!==t&&Qw.type(e,t,r,o,i)}n(o)},number:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Aw(t)&&!e.required)return n();Qw.required(e,t,r,o,i),void 0!==t&&(Qw.type(e,t,r,o,i),Qw.range(e,t,r,o,i))}n(o)},boolean:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Aw(t)&&!e.required)return n();Qw.required(e,t,r,o,i),void 0!==t&&Qw.type(e,t,r,o,i)}n(o)},regexp:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Aw(t)&&!e.required)return n();Qw.required(e,t,r,o,i),Aw(t)||Qw.type(e,t,r,o,i)}n(o)},integer:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Aw(t)&&!e.required)return n();Qw.required(e,t,r,o,i),void 0!==t&&(Qw.type(e,t,r,o,i),Qw.range(e,t,r,o,i))}n(o)},float:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Aw(t)&&!e.required)return n();Qw.required(e,t,r,o,i),void 0!==t&&(Qw.type(e,t,r,o,i),Qw.range(e,t,r,o,i))}n(o)},array:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();Qw.required(e,t,r,o,i,"array"),null!=t&&(Qw.type(e,t,r,o,i),Qw.range(e,t,r,o,i))}n(o)},object:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Aw(t)&&!e.required)return n();Qw.required(e,t,r,o,i),void 0!==t&&Qw.type(e,t,r,o,i)}n(o)},enum:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Aw(t)&&!e.required)return n();Qw.required(e,t,r,o,i),void 0!==t&&Qw.enum(e,t,r,o,i)}n(o)},pattern:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Aw(t,"string")&&!e.required)return n();Qw.required(e,t,r,o,i),Aw(t,"string")||Qw.pattern(e,t,r,o,i)}n(o)},date:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Aw(t,"date")&&!e.required)return n();var a;if(Qw.required(e,t,r,o,i),!Aw(t,"date"))a=t instanceof Date?t:new Date(t),Qw.type(e,a,r,o,i),a&&Qw.range(e,a.getTime(),r,o,i)}n(o)},url:Pw,hex:Pw,email:Pw,required:function(e,t,n,r,i){var o=[],a=Array.isArray(t)?"array":typeof t;Qw.required(e,t,r,o,i,a),n(o)},any:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Aw(t)&&!e.required)return n();Qw.required(e,t,r,o,i)}n(o)}};function Rw(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Bw=Rw(),Iw=function(){function e(e){this.rules=null,this._messages=Bw,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})},t.messages=function(e){return e&&(this._messages=ww(Rw(),e)),this._messages},t.validate=function(t,n,r){var i=this;void 0===n&&(n={}),void 0===r&&(r=function(){});var o=t,a=n,s=r;if("function"==typeof a&&(s=a,a={}),!this.rules||0===Object.keys(this.rules).length)return s&&s(null,o),Promise.resolve(o);if(a.messages){var l=this.messages();l===Bw&&(l=Rw()),ww(l,a.messages),a.messages=l}else a.messages=this.messages();var c={};(a.keys||Object.keys(this.rules)).forEach(function(e){var n=i.rules[e],r=o[e];n.forEach(function(n){var a=n;"function"==typeof a.transform&&(o===t&&(o=uw({},o)),r=o[e]=a.transform(r)),(a="function"==typeof a?{validator:a}:uw({},a)).validator=i.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=i.getType(a),c[e]=c[e]||[],c[e].push({rule:a,value:r,source:o,field:e}))})});var u={};return bw(c,a,function(t,n){var r,i=t.rule,s=!("object"!==i.type&&"array"!==i.type||"object"!=typeof i.fields&&"object"!=typeof i.defaultField);function l(e,t){return uw({},t,{fullField:i.fullField+"."+e,fullFields:i.fullFields?[].concat(i.fullFields,[e]):[e]})}function c(r){void 0===r&&(r=[]);var c=Array.isArray(r)?r:[r];!a.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==i.message&&(c=[].concat(i.message));var h=c.map(xw(i,o));if(a.first&&h.length)return u[i.field]=1,n(h);if(s){if(i.required&&!t.value)return void 0!==i.message?h=[].concat(i.message).map(xw(i,o)):a.error&&(h=[a.error(i,Ow(a.messages.required,i.field))]),n(h);var d={};i.defaultField&&Object.keys(t.value).map(function(e){d[e]=i.defaultField}),d=uw({},d,t.rule.fields);var p={};Object.keys(d).forEach(function(e){var t=d[e],n=Array.isArray(t)?t:[t];p[e]=n.map(l.bind(null,e))});var f=new e(p);f.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),f.validate(t.value,t.rule.options||a,function(e){var t=[];h&&h.length&&t.push.apply(t,h),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)})}else n(h)}if(s=s&&(i.required||!i.required&&t.value),i.field=t.field,i.asyncValidator)r=i.asyncValidator(i,t.value,c,t.source,a);else if(i.validator){try{r=i.validator(i,t.value,c,t.source,a)}catch(h){console.error,a.suppressValidatorError||setTimeout(function(){throw h},0),c(h.message)}!0===r?c():!1===r?c("function"==typeof i.message?i.message(i.fullField||i.field):i.message||(i.fullField||i.field)+" fails"):r instanceof Array?c(r):r instanceof Error&&c(r.message)}r&&r.then&&r.then(function(){return c()},function(e){return c(e)})},function(e){!function(e){var t=[],n={};function r(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,e):t.push(e)}for(var i=0;i<e.length;i++)r(e[i]);t.length?(n=mw(t),s(t,n)):s(null,o)}(e)},o)},t.getType=function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!Ew.hasOwnProperty(e.type))throw new Error(Ow("Unknown rule type %s",e.type));return e.type||"string"},t.getValidationMethod=function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?Ew.required:Ew[this.getType(e)]||void 0},e}();function Lw(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");const n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function Dw(e){return Math.min(1,Math.max(0,e))}function Mw(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Nw(e){return Number(e)<=1?100*Number(e)+"%":e}function Xw(e){return 1===e.length?"0"+e:String(e)}function Fw(e,t,n){e=Lw(e,255),t=Lw(t,255),n=Lw(n,255);const r=Math.max(e,t,n),i=Math.min(e,t,n);let o=0,a=0;const s=(r+i)/2;if(r===i)a=0,o=0;else{const l=r-i;switch(a=s>.5?l/(2-r-i):l/(r+i),r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4}o/=6}return{h:o,s:a,l:s}}function Uw(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function zw(e,t,n){e=Lw(e,255),t=Lw(t,255),n=Lw(n,255);const r=Math.max(e,t,n),i=Math.min(e,t,n);let o=0;const a=r,s=r-i,l=0===r?0:s/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/s+(t<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4}o/=6}return{h:o,s:l,v:a}}function qw(e,t,n,r){const i=[Xw(Math.round(e).toString(16)),Xw(Math.round(t).toString(16)),Xw(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function Vw(e,t,n){let r=1-e/255,i=1-t/255,o=1-n/255,a=Math.min(r,i,o);return 1===a?(r=0,i=0,o=0):(r=(r-a)/(1-a)*100,i=(i-a)/(1-a)*100,o=(o-a)/(1-a)*100),a*=100,{c:Math.round(r),m:Math.round(i),y:Math.round(o),k:Math.round(a)}}function Ww(e){return jw(e)/255}function jw(e){return parseInt(e,16)}Iw.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Ew[e]=t},Iw.warning=function(){},Iw.messages=Bw,Iw.validators=Ew;const Yw={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Zw(e){let t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;var l,c,u;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;let t=!1;if(Yw[e])e=Yw[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};let n=Jw.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=Jw.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=Jw.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=Jw.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=Jw.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=Jw.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=Jw.cmyk.exec(e),n)return{c:n[1],m:n[2],y:n[3],k:n[4]};if(n=Jw.hex8.exec(e),n)return{r:jw(n[1]),g:jw(n[2]),b:jw(n[3]),a:Ww(n[4]),format:t?"name":"hex8"};if(n=Jw.hex6.exec(e),n)return{r:jw(n[1]),g:jw(n[2]),b:jw(n[3]),format:t?"name":"hex"};if(n=Jw.hex4.exec(e),n)return{r:jw(n[1]+n[1]),g:jw(n[2]+n[2]),b:jw(n[3]+n[3]),a:Ww(n[4]+n[4]),format:t?"name":"hex8"};if(n=Jw.hex3.exec(e),n)return{r:jw(n[1]+n[1]),g:jw(n[2]+n[2]),b:jw(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(ek(e.r)&&ek(e.g)&&ek(e.b)?(l=e.r,c=e.g,u=e.b,t={r:255*Lw(l,255),g:255*Lw(c,255),b:255*Lw(u,255)},a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):ek(e.h)&&ek(e.s)&&ek(e.v)?(r=Nw(e.s),i=Nw(e.v),t=function(e,t,n){e=6*Lw(e,360),t=Lw(t,100),n=Lw(n,100);const r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6;return{r:255*[n,a,o,o,s,n][l],g:255*[s,n,n,a,o,o][l],b:255*[o,o,s,n,n,a][l]}}(e.h,r,i),a=!0,s="hsv"):ek(e.h)&&ek(e.s)&&ek(e.l)?(r=Nw(e.s),o=Nw(e.l),t=function(e,t,n){let r,i,o;if(e=Lw(e,360),t=Lw(t,100),n=Lw(n,100),0===t)i=n,o=n,r=n;else{const a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=Uw(s,a,e+1/3),i=Uw(s,a,e),o=Uw(s,a,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,r,o),a=!0,s="hsl"):ek(e.c)&&ek(e.m)&&ek(e.y)&&ek(e.k)&&(t=function(e,t,n,r){const i=r/100;return{r:255*(1-e/100)*(1-i),g:255*(1-t/100)*(1-i),b:255*(1-n/100)*(1-i)}}(e.c,e.m,e.y,e.k),a=!0,s="cmyk"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Mw(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}const Gw="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",Hw="[\\s|\\(]+("+Gw+")[,|\\s]+("+Gw+")[,|\\s]+("+Gw+")\\s*\\)?",Kw="[\\s|\\(]+("+Gw+")[,|\\s]+("+Gw+")[,|\\s]+("+Gw+")[,|\\s]+("+Gw+")\\s*\\)?",Jw={CSS_UNIT:new RegExp(Gw),rgb:new RegExp("rgb"+Hw),rgba:new RegExp("rgba"+Kw),hsl:new RegExp("hsl"+Hw),hsla:new RegExp("hsla"+Kw),hsv:new RegExp("hsv"+Hw),hsva:new RegExp("hsva"+Kw),cmyk:new RegExp("cmyk"+Kw),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function ek(e){return"number"==typeof e?!Number.isNaN(e):Jw.CSS_UNIT.test(e)}class tk{constructor(e="",t={}){if(e instanceof tk)return e;"number"==typeof e&&(e=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(e)),this.originalInput=e;const n=Zw(e);this.originalInput=e,this.r=n.r,this.g=n.g,this.b=n.b,this.a=n.a,this.roundA=Math.round(100*this.a)/100,this.format=t.format??n.format,this.gradientType=t.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=n.ok}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}getBrightness(){const e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3}getLuminance(){const e=this.toRgb();let t,n,r;const i=e.r/255,o=e.g/255,a=e.b/255;return t=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),n=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),r=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4),.2126*t+.7152*n+.0722*r}getAlpha(){return this.a}setAlpha(e){return this.a=Mw(e),this.roundA=Math.round(100*this.a)/100,this}isMonochrome(){const{s:e}=this.toHsl();return 0===e}toHsv(){const e=zw(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}}toHsvString(){const e=zw(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?`hsv(${t}, ${n}%, ${r}%)`:`hsva(${t}, ${n}%, ${r}%, ${this.roundA})`}toHsl(){const e=Fw(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}}toHslString(){const e=Fw(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?`hsl(${t}, ${n}%, ${r}%)`:`hsla(${t}, ${n}%, ${r}%, ${this.roundA})`}toHex(e=!1){return qw(this.r,this.g,this.b,e)}toHexString(e=!1){return"#"+this.toHex(e)}toHex8(e=!1){return function(e,t,n,r,i){const o=[Xw(Math.round(e).toString(16)),Xw(Math.round(t).toString(16)),Xw(Math.round(n).toString(16)),Xw((a=r,Math.round(255*parseFloat(a)).toString(16)))];var a;return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this.r,this.g,this.b,this.a,e)}toHex8String(e=!1){return"#"+this.toHex8(e)}toHexShortString(e=!1){return 1===this.a?this.toHexString(e):this.toHex8String(e)}toRgb(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}}toRgbString(){const e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?`rgb(${e}, ${t}, ${n})`:`rgba(${e}, ${t}, ${n}, ${this.roundA})`}toPercentageRgb(){const e=e=>`${Math.round(100*Lw(e,255))}%`;return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}}toPercentageRgbString(){const e=e=>Math.round(100*Lw(e,255));return 1===this.a?`rgb(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%)`:`rgba(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%, ${this.roundA})`}toCmyk(){return{...Vw(this.r,this.g,this.b)}}toCmykString(){const{c:e,m:t,y:n,k:r}=Vw(this.r,this.g,this.b);return`cmyk(${e}, ${t}, ${n}, ${r})`}toName(){if(0===this.a)return"transparent";if(this.a<1)return!1;const e="#"+qw(this.r,this.g,this.b,!1);for(const[t,n]of Object.entries(Yw))if(e===n)return t;return!1}toString(e){const t=Boolean(e);e=e??this.format;let n=!1;const r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),"cmyk"===e&&(n=this.toCmykString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()}toNumber(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)}clone(){return new tk(this.toString())}lighten(e=10){const t=this.toHsl();return t.l+=e/100,t.l=Dw(t.l),new tk(t)}brighten(e=10){const t=this.toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(-e/100*255))),t.g=Math.max(0,Math.min(255,t.g-Math.round(-e/100*255))),t.b=Math.max(0,Math.min(255,t.b-Math.round(-e/100*255))),new tk(t)}darken(e=10){const t=this.toHsl();return t.l-=e/100,t.l=Dw(t.l),new tk(t)}tint(e=10){return this.mix("white",e)}shade(e=10){return this.mix("black",e)}desaturate(e=10){const t=this.toHsl();return t.s-=e/100,t.s=Dw(t.s),new tk(t)}saturate(e=10){const t=this.toHsl();return t.s+=e/100,t.s=Dw(t.s),new tk(t)}greyscale(){return this.desaturate(100)}spin(e){const t=this.toHsl(),n=(t.h+e)%360;return t.h=n<0?360+n:n,new tk(t)}mix(e,t=50){const n=this.toRgb(),r=new tk(e).toRgb(),i=t/100,o={r:(r.r-n.r)*i+n.r,g:(r.g-n.g)*i+n.g,b:(r.b-n.b)*i+n.b,a:(r.a-n.a)*i+n.a};return new tk(o)}analogous(e=6,t=30){const n=this.toHsl(),r=360/t,i=[this];for(n.h=(n.h-(r*e>>1)+720)%360;--e;)n.h=(n.h+r)%360,i.push(new tk(n));return i}complement(){const e=this.toHsl();return e.h=(e.h+180)%360,new tk(e)}monochromatic(e=6){const t=this.toHsv(),{h:n}=t,{s:r}=t;let{v:i}=t;const o=[],a=1/e;for(;e--;)o.push(new tk({h:n,s:r,v:i})),i=(i+a)%1;return o}splitcomplement(){const e=this.toHsl(),{h:t}=e;return[this,new tk({h:(t+72)%360,s:e.s,l:e.l}),new tk({h:(t+216)%360,s:e.s,l:e.l})]}onBackground(e){const t=this.toRgb(),n=new tk(e).toRgb(),r=t.a+n.a*(1-t.a);return new tk({r:(t.r*t.a+n.r*n.a*(1-t.a))/r,g:(t.g*t.a+n.g*n.a*(1-t.a))/r,b:(t.b*t.a+n.b*n.a*(1-t.a))/r,a:r})}triad(){return this.polyad(3)}tetrad(){return this.polyad(4)}polyad(e){const t=this.toHsl(),{h:n}=t,r=[this],i=360/e;for(let o=1;o<e;o++)r.push(new tk({h:(n+o*i)%360,s:t.s,l:t.l}));return r}equals(e){const t=new tk(e);return"cmyk"===this.format||"cmyk"===t.format?this.toCmykString()===t.toCmykString():this.toRgbString()===t.toRgbString()}}var nk="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function rk(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ik(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var ok,ak={exports:{}};var sk=(ok||(ok=1,ak.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",l="week",c="month",u="quarter",h="year",d="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},O=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},A={s:O,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+O(r,2,"0")+":"+O(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,c),o=n-i<0,a=t.clone().add(r+(o?-1:1),c);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:h,w:l,d:s,D:d,h:a,m:o,s:i,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",v={};v[y]=m;var b="$isDayjsObject",x=function(e){return e instanceof T||!(!e||!e[b])},w=function e(t,n,r){var i;if(!t)return y;if("string"==typeof t){var o=t.toLowerCase();v[o]&&(i=o),n&&(v[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;v[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},k=function(e,t){if(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new T(n)},S=A;S.l=w,S.i=x,S.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function m(e){this.$L=w(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[b]=!0}var O=m.prototype;return O.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},O.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},O.$utils=function(){return S},O.isValid=function(){return!(this.$d.toString()===p)},O.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},O.isAfter=function(e,t){return k(e)<this.startOf(t)},O.isBefore=function(e,t){return this.endOf(t)<k(e)},O.$g=function(e,t,n){return S.u(e)?this[t]:this.set(n,e)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(e,t){var n=this,r=!!S.u(t)||t,u=S.p(e),p=function(e,t){var i=S.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},f=function(e,t){return S.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,m=this.$M,O=this.$D,A="set"+(this.$u?"UTC":"");switch(u){case h:return r?p(1,0):p(31,11);case c:return r?p(1,m):p(0,m+1);case l:var y=this.$locale().weekStart||0,v=(g<y?g+7:g)-y;return p(r?O-v:O+(6-v),m);case s:case d:return f(A+"Hours",0);case a:return f(A+"Minutes",1);case o:return f(A+"Seconds",2);case i:return f(A+"Milliseconds",3);default:return this.clone()}},O.endOf=function(e){return this.startOf(e,!1)},O.$set=function(e,t){var n,l=S.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[s]=u+"Date",n[d]=u+"Date",n[c]=u+"Month",n[h]=u+"FullYear",n[a]=u+"Hours",n[o]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[l],f=l===s?this.$D+(t-this.$W):t;if(l===c||l===h){var g=this.clone().set(d,1);g.$d[p](f),g.init(),this.$d=g.set(d,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},O.set=function(e,t){return this.clone().$set(e,t)},O.get=function(e){return this[S.p(e)]()},O.add=function(r,u){var d,p=this;r=Number(r);var f=S.p(u),g=function(e){var t=k(p);return S.w(t.date(t.date()+Math.round(e*r)),p)};if(f===c)return this.set(c,this.$M+r);if(f===h)return this.set(h,this.$y+r);if(f===s)return g(1);if(f===l)return g(7);var m=(d={},d[o]=t,d[a]=n,d[i]=e,d)[f]||1,O=this.$d.getTime()+r*m;return S.w(O,this)},O.subtract=function(e,t){return this.add(-1*e,t)},O.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=S.z(this),o=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,h=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},d=function(e){return S.s(o%12||12,e,"0")},f=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(g,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return S.s(t.$y,4,"0");case"M":return s+1;case"MM":return S.s(s+1,2,"0");case"MMM":return h(n.monthsShort,s,c,3);case"MMMM":return h(c,s);case"D":return t.$D;case"DD":return S.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return h(n.weekdaysMin,t.$W,l,2);case"ddd":return h(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return S.s(o,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return f(o,a,!0);case"A":return f(o,a,!1);case"m":return String(a);case"mm":return S.s(a,2,"0");case"s":return String(t.$s);case"ss":return S.s(t.$s,2,"0");case"SSS":return S.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(r,d,p){var f,g=this,m=S.p(d),O=k(r),A=(O.utcOffset()-this.utcOffset())*t,y=this-O,v=function(){return S.m(g,O)};switch(m){case h:f=v()/12;break;case c:f=v();break;case u:f=v()/3;break;case l:f=(y-A)/6048e5;break;case s:f=(y-A)/864e5;break;case a:f=y/n;break;case o:f=y/t;break;case i:f=y/e;break;default:f=y}return p?f:S.a(f)},O.daysInMonth=function(){return this.endOf(c).$D},O.$locale=function(){return v[this.$L]},O.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=w(e,t,!0);return r&&(n.$L=r),n},O.clone=function(){return S.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},m}(),$=T.prototype;return k.prototype=$,[["$ms",r],["$s",i],["$m",o],["$H",a],["$W",s],["$M",c],["$y",h],["$D",d]].forEach(function(e){$[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),k.extend=function(e,t){return e.$i||(e(t,T,k),e.$i=!0),k},k.locale=w,k.isDayjs=x,k.unix=function(e){return k(1e3*e)},k.en=v[y],k.Ls=v,k.p={},k}()),ak.exports);const lk=rk(sk);var ck,uk,hk,dk,pk,fk,gk,mk,Ok,Ak,yk,vk,bk,xk,wk,kk=!1;function Sk(){if(!kk){kk=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(vk=/\b(iPhone|iP[ao]d)/.exec(e),bk=/\b(iP[ao]d)/.exec(e),Ak=/Android/i.exec(e),xk=/FBAN\/\w+;/i.exec(e),wk=/Mobile/i.exec(e),yk=!!/Win64/.exec(e),t){(ck=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(ck=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);fk=r?parseFloat(r[1])+4:ck,uk=t[2]?parseFloat(t[2]):NaN,hk=t[3]?parseFloat(t[3]):NaN,(dk=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),pk=t&&t[1]?parseFloat(t[1]):NaN):pk=NaN}else ck=uk=hk=pk=dk=NaN;if(n){if(n[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);gk=!i||parseFloat(i[1].replace("_","."))}else gk=!1;mk=!!n[2],Ok=!!n[3]}else gk=mk=Ok=!1}}var Tk,$k={ie:function(){return Sk()||ck},ieCompatibilityMode:function(){return Sk()||fk>ck},ie64:function(){return $k.ie()&&yk},firefox:function(){return Sk()||uk},opera:function(){return Sk()||hk},webkit:function(){return Sk()||dk},safari:function(){return $k.webkit()},chrome:function(){return Sk()||pk},windows:function(){return Sk()||mk},osx:function(){return Sk()||gk},linux:function(){return Sk()||Ok},iphone:function(){return Sk()||vk},mobile:function(){return Sk()||vk||bk||Ak||wk},nativeApp:function(){return Sk()||xk},android:function(){return Sk()||Ak},ipad:function(){return Sk()||bk}},_k=$k,Ck={canUseDOM:!!(typeof window<"u"&&window.document&&window.document.createElement)};Ck.canUseDOM&&(Tk=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));var Qk=function(e,t){if(!Ck.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var i=document.createElement("div");i.setAttribute(n,"return;"),r="function"==typeof i[n]}return!r&&Tk&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r};function Pk(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,i=10*n,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||i)&&e.deltaMode&&(1==e.deltaMode?(r*=40,i*=40):(r*=800,i*=800)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}Pk.getEventType=function(){return _k.firefox()?"DOMMouseScroll":Qk("wheel")?"wheel":"mousewheel"};var Ek,Rk=Pk,Bk={exports:{}};var Ik=(Ek||(Ek=1,Bk.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,a={},s=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},h=function(e,t){var n,r=a.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[o,function(e){this.afternoon=h(e,!1)}],a:[o,function(e){this.afternoon=h(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,l("seconds")],ss:[i,l("seconds")],m:[i,l("minutes")],mm:[i,l("minutes")],H:[i,l("hours")],h:[i,l("hours")],HH:[i,l("hours")],hh:[i,l("hours")],D:[i,l("day")],DD:[r,l("day")],Do:[o,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[i,l("week")],ww:[r,l("week")],M:[i,l("month")],MM:[r,l("month")],MMM:[o,function(e){var t=u("months"),n=(u("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function p(n){var r,i;r=n,i=a&&a.formats;for(var o=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),s=o.length,l=0;l<s;l+=1){var c=o[l],u=d[c],h=u&&u[0],p=u&&u[1];o[l]=p?{regex:h,parser:p}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=o[n];if("string"==typeof i)r+=i.length;else{var a=i.regex,l=i.parser,c=e.slice(r),u=a.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,o=e.args;this.$u=r;var s=o[1];if("string"==typeof s){var l=!0===o[2],c=!0===o[3],u=l||c,h=o[2];c&&(h=o[2]),a=this.$locale(),!l&&h&&(a=n.Ls[h]),this.$d=function(e,t,n,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var i=p(t)(e),o=i.year,a=i.month,s=i.day,l=i.hours,c=i.minutes,u=i.seconds,h=i.milliseconds,d=i.zone,f=i.week,g=new Date,m=s||(o||a?1:g.getDate()),O=o||g.getFullYear(),A=0;o&&!a||(A=a>0?a-1:g.getMonth());var y,v=l||0,b=c||0,x=u||0,w=h||0;return d?new Date(Date.UTC(O,A,m,v,b,x,w+60*d.offset*1e3)):n?new Date(Date.UTC(O,A,m,v,b,x,w)):(y=new Date(O,A,m,v,b,x,w),f&&(y=r(y).week(f).toDate()),y)}catch(k){return new Date("")}}(t,s,r,n),this.init(),h&&!0!==h&&(this.$L=this.locale(h).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),a={}}else if(s instanceof Array)for(var d=s.length,f=1;f<=d;f+=1){o[1]=s[f-1];var g=n.apply(this,o);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}f===d&&(this.$d=new Date(""))}else i.call(this,e)}}}()),Bk.exports);const Lk=rk(Ik);var Dk,Mk={exports:{}};var Nk=(Dk||(Dk=1,Mk.exports=function(e,t,n){var r=t.prototype,i=function(e){return e&&(e.indexOf?e:e.s)},o=function(e,t,n,r,o){var a=e.name?e:e.$locale(),s=i(a[t]),l=i(a[n]),c=s||l.map(function(e){return e.slice(0,r)});if(!o)return c;var u=a.weekStart;return c.map(function(e,t){return c[(t+(u||0))%7]})},a=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||e.formats[t.toUpperCase()].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):o(e,"months")},monthsShort:function(t){return t?t.format("MMM"):o(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):o(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):o(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):o(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return l.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return o(a(),"months")},n.monthsShort=function(){return o(a(),"monthsShort","months",3)},n.weekdays=function(e){return o(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return o(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return o(a(),"weekdaysMin","weekdays",2,e)}}),Mk.exports);const Xk=rk(Nk);var Fk,Uk={exports:{}};var zk=Fk?Uk.exports:(Fk=1,Uk.exports=function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),o=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return i.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return i.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return i.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}});return r.bind(this)(o)}});const qk=rk(zk);var Vk,Wk={exports:{}};var jk,Yk,Zk=Vk?Wk.exports:(Vk=1,Wk.exports=(jk="week",Yk="year",function(e,t,n){var r=t.prototype;r.week=function(e){if(void 0===e&&(e=null),null!==e)return this.add(7*(e-this.week()),"day");var t=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var r=n(this).startOf(Yk).add(1,Yk).date(t),i=n(this).endOf(jk);if(r.isBefore(i))return 1}var o=n(this).startOf(Yk).date(t).startOf(jk).subtract(1,"millisecond"),a=this.diff(o,jk,!0);return a<0?n(this).startOf("week").week():Math.ceil(a)},r.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}));const Gk=rk(Zk);var Hk,Kk={exports:{}};var Jk=(Hk||(Hk=1,Kk.exports=function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}),Kk.exports);const eS=rk(Jk);var tS,nS={exports:{}};var rS=(tS||(tS=1,nS.exports=function(e,t,n){t.prototype.dayOfYear=function(e){var t=Math.round((n(this).startOf("day")-n(this).startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"day")}}),nS.exports);const iS=rk(rS);var oS,aS={exports:{}};var sS=(oS||(oS=1,aS.exports=function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}),aS.exports);const lS=rk(sS);var cS,uS={exports:{}};var hS=(cS||(cS=1,uS.exports=function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}),uS.exports);const dS=rk(hS);var pS=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function fS(e,t){return e===t||!(!pS(e)||!pS(t))}function gS(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!fS(e[n],t[n]))return!1;return!0}function mS(e,t){void 0===t&&(t=gS);var n=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){n=null},r}let OS;const AS=e=>OS=e,yS=Symbol();function vS(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var bS,xS;function wS(){const e=Ei(!0),t=e.run(()=>ia({}));let n=[],r=[];const i=ea({install(e){AS(i),i._a=e,e.provide(yS,i),e.config.globalProperties.$pinia=i,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}(xS=bS||(bS={})).direct="direct",xS.patchObject="patch object",xS.patchFunction="patch function";const kS=()=>{};function SS(e,t,n,r=kS){e.add(t);const i=()=>{e.delete(t)&&r()};return!n&&Ri()&&Bi(i),i}function TS(e,...t){e.forEach(e=>{e(...t)})}const $S=e=>e(),_S=Symbol(),CS=Symbol();function QS(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];vS(i)&&vS(r)&&e.hasOwnProperty(n)&&!ra(r)&&!Zo(r)?e[n]=QS(i,r):e[n]=r}return e}const PS=Symbol();function ES(e){return!vS(e)||!Object.prototype.hasOwnProperty.call(e,PS)}const{assign:RS}=Object;function BS(e){return!(!ra(e)||!e.effect)}function IS(e,t,n={},r,i,o){let a;const s=RS({actions:{}},n),l={deep:!0};let c,u,h,d=new Set,p=new Set;const f=r.state.value[e];let g;function m(t){let n;c=u=!1,"function"==typeof t?(t(r.state.value[e]),n={type:bS.patchFunction,storeId:e,events:h}):(QS(r.state.value[e],t),n={type:bS.patchObject,payload:t,storeId:e,events:h});const i=g=Symbol();Na().then(()=>{g===i&&(c=!0)}),u=!0,TS(d,n,r.state.value[e])}o||f||(r.state.value[e]={});const O=o?function(){const{state:e}=n,t=e?e():{};this.$patch(e=>{RS(e,t)})}:kS;const A=(t,n="")=>{if(_S in t)return t[CS]=n,t;const i=function(){AS(r);const n=Array.from(arguments),o=new Set,a=new Set;let s;TS(p,{args:n,name:i[CS],store:y,after:function(e){o.add(e)},onError:function(e){a.add(e)}});try{s=t.apply(this&&this.$id===e?this:y,n)}catch(l){throw TS(a,l),l}return s instanceof Promise?s.then(e=>(TS(o,e),e)).catch(e=>(TS(a,e),Promise.reject(e))):(TS(o,s),s)};return i[_S]=!0,i[CS]=n,i},y=qo({_p:r,$id:e,$onAction:SS.bind(null,p),$patch:m,$reset:O,$subscribe(t,n={}){const i=SS(d,t,n.detached,()=>o()),o=a.run(()=>cs(()=>r.state.value[e],r=>{("sync"===n.flush?u:c)&&t({storeId:e,type:bS.direct,events:h},r)},RS({},l,n)));return i},$dispose:function(){a.stop(),d.clear(),p.clear(),r._s.delete(e)}});r._s.set(e,y);const v=(r._a&&r._a.runWithContext||$S)(()=>r._e.run(()=>(a=Ei()).run(()=>t({action:A}))));for(const b in v){const t=v[b];if(ra(t)&&!BS(t)||Zo(t))o||(f&&ES(t)&&(ra(t)?t.value=f[b]:QS(t,f[b])),r.state.value[e][b]=t);else if("function"==typeof t){const e=A(t,b);v[b]=e,s.actions[b]=t}}return RS(y,v),RS(Jo(y),v),Object.defineProperty(y,"$state",{get:()=>r.state.value[e],set:e=>{m(t=>{RS(t,e)})}}),r._p.forEach(e=>{RS(y,a.run(()=>e({store:y,app:r._a,pinia:r,options:s})))}),f&&o&&n.hydrate&&n.hydrate(y.$state,f),c=!0,u=!0,y}function LS(e,t,n){let r;const i="function"==typeof t;function o(n,o){const a=rs();(n=n||(a?ns(yS,null):null))&&AS(n),(n=OS)._s.has(e)||(i?IS(e,t,r,n):function(e,t,n){const{state:r,actions:i,getters:o}=t,a=n.state.value[e];let s;s=IS(e,function(){a||(n.state.value[e]=r?r():{});const t=ga(n.state.value[e]);return RS(t,i,Object.keys(o||{}).reduce((t,r)=>(t[r]=ea(Wu(()=>{AS(n);const t=n._s.get(e);return o[r].call(t,t)})),t),{}))},t,n,0,!0)}(e,r,n));return n._s.get(e)}return r=i?n:t,o.$id=e,o}function DS(e,t){return Array.isArray(t)?t.reduce((t,n)=>(t[n]=function(){return e(this.$pinia)[n]},t),{}):Object.keys(t).reduce((n,r)=>(n[r]=function(){const n=e(this.$pinia),i=t[r];return"function"==typeof i?i.call(this,n):n[i]},n),{})}function MS(e,t){return Array.isArray(t)?t.reduce((t,n)=>(t[n]=function(...t){return e(this.$pinia)[n](...t)},t),{}):Object.keys(t).reduce((n,r)=>(n[r]=function(...n){return e(this.$pinia)[t[r]](...n)},n),{})}function NS(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var XS,FS={exports:{}};var US=(XS||(XS=1,FS.exports=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(!s&&NS)return NS(a);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return i(n||e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var o=NS,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){(function(e){var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,a=new i(u),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var l=new e.MessageChannel;l.port1.onmessage=u,n=function(){l.port2.postMessage(0)}}var c=[];function u(){var e,t;r=!0;for(var n=c.length;n;){for(t=c,c=[],e=-1;++e<n;)t[e]();n=c.length}r=!1}function h(e){1!==c.push(e)||r||n()}t.exports=h}).call(this,void 0!==nk?nk:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){var r=e(1);function i(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==i&&p(this,e)}function u(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function h(e,t,n){r(function(){var r;try{r=t(n)}catch(jk){return o.reject(e,jk)}r===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,r)})}function d(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function p(e,t){var n=!1;function r(t){n||(n=!0,o.reject(e,t))}function i(t){n||(n=!0,o.resolve(e,t))}function a(){t(i,r)}var s=f(a);"error"===s.status&&r(s.value)}function f(e,t){var n={};try{n.value=e(t),n.status="success"}catch(jk){n.status="error",n.value=jk}return n}function g(e){return e instanceof this?e:o.resolve(new this(i),e)}function m(e){var t=new this(i);return o.reject(t,e)}function O(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,l=-1,c=new this(i);++l<n;)u(e[l],l);return c;function u(e,i){function l(e){a[i]=e,++s!==n||r||(r=!0,o.resolve(c,a))}t.resolve(e).then(l,function(e){r||(r=!0,o.reject(c,e))})}}function A(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=-1,s=new this(i);++a<n;)l(e[a]);return s;function l(e){t.resolve(e).then(function(e){r||(r=!0,o.resolve(s,e))},function(e){r||(r=!0,o.reject(s,e))})}}t.exports=c,c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var n=new this.constructor(i);return this.state!==l?h(n,this.state===s?e:t,this.outcome):this.queue.push(new u(n,e,t)),n},u.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){h(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){o.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){h(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=f(d,t);if("error"===n.status)return o.reject(e,n.value);var r=n.value;if(r)p(e,r);else{e.state=s,e.outcome=t;for(var i=-1,a=e.queue.length;++i<a;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},c.resolve=g,c.reject=m,c.all=O,c.race=A},{1:1}],3:[function(e,t,n){(function(t){"function"!=typeof t.Promise&&(t.Promise=e(2))}).call(this,void 0!==nk?nk:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,t,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(jk){return}}var a=o();function s(){try{if(!a||!a.open)return!1;var e="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(jk){return!1}}function l(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(jk){if("TypeError"!==jk.name)throw jk;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(t.type)}}"undefined"==typeof Promise&&e(3);var c=Promise;function u(e,t){t&&e.then(function(e){t(null,e)},function(e){t(e)})}function h(e,t,n){"function"==typeof t&&e.then(t),"function"==typeof n&&e.catch(n)}function d(e){return"string"!=typeof e&&(e=String(e)),e}function p(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var f="local-forage-detect-blob-support",g=void 0,m={},O=Object.prototype.toString,A="readonly",y="readwrite";function v(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),i=0;i<t;i++)r[i]=e.charCodeAt(i);return n}function b(e){return new c(function(t){var n=e.transaction(f,y),r=l([""]);n.objectStore(f).put(r,"key"),n.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},n.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),n=navigator.userAgent.match(/Edge\//);t(n||!e||parseInt(e[1],10)>=43)}}).catch(function(){return!1})}function x(e){return"boolean"==typeof g?c.resolve(g):b(e).then(function(e){return g=e})}function w(e){var t=m[e.name],n={};n.promise=new c(function(e,t){n.resolve=e,n.reject=t}),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then(function(){return n.promise}):t.dbReady=n.promise}function k(e){var t=m[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function S(e,t){var n=m[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function T(e,t){return new c(function(n,r){if(m[e.name]=m[e.name]||L(),e.db){if(!t)return n(e.db);w(e),e.db.close()}var i=[e.name];t&&i.push(e.version);var o=a.open.apply(a,i);t&&(o.onupgradeneeded=function(t){var n=o.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore(f)}catch(r){if("ConstraintError"!==r.name)throw r}}),o.onerror=function(e){e.preventDefault(),r(o.error)},o.onsuccess=function(){var t=o.result;t.onversionchange=function(e){e.target.close()},n(t),k(e)}})}function $(e){return T(e,!1)}function _(e){return T(e,!0)}function C(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.version<e.db.version,i=e.version>e.db.version;if(r&&(e.version,e.version=e.db.version),i||n){if(n){var o=e.db.version+1;o>e.version&&(e.version=o)}return!0}return!1}function Q(e){return new c(function(t,n){var r=new FileReader;r.onerror=n,r.onloadend=function(n){var r=btoa(n.target.result||"");t({__local_forage_encoded_blob:!0,data:r,type:e.type})},r.readAsBinaryString(e)})}function P(e){return l([v(atob(e.data))],{type:e.type})}function E(e){return e&&e.__local_forage_encoded_blob}function R(e){var t=this,n=t._initReady().then(function(){var e=m[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady});return h(n,e,e),n}function B(e){w(e);for(var t=m[e.name],n=t.forages,r=0;r<n.length;r++){var i=n[r];i._dbInfo.db&&(i._dbInfo.db.close(),i._dbInfo.db=null)}return e.db=null,$(e).then(function(t){return e.db=t,C(e)?_(e):t}).then(function(r){e.db=t.db=r;for(var i=0;i<n.length;i++)n[i]._dbInfo.db=r}).catch(function(t){throw S(e,t),t})}function I(e,t,n,r){void 0===r&&(r=1);try{var i=e.db.transaction(e.storeName,t);n(null,i)}catch(o){if(r>0&&(!e.db||"InvalidStateError"===o.name||"NotFoundError"===o.name))return c.resolve().then(function(){if(!e.db||"NotFoundError"===o.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),_(e)}).then(function(){return B(e).then(function(){I(e,t,n,r-1)})}).catch(n);n(o)}}function L(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function D(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var i=m[n.name];i||(i=L(),m[n.name]=i),i.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=R);var o=[];function a(){return c.resolve()}for(var s=0;s<i.forages.length;s++){var l=i.forages[s];l!==t&&o.push(l._initReady().catch(a))}var u=i.forages.slice(0);return c.all(o).then(function(){return n.db=i.db,$(n)}).then(function(e){return n.db=e,C(n,t._defaultConfig.version)?_(n):e}).then(function(e){n.db=i.db=e,t._dbInfo=n;for(var r=0;r<u.length;r++){var o=u[r];o!==t&&(o._dbInfo.db=n.db,o._dbInfo.version=n.version)}})}function M(e,t){var n=this;e=d(e);var r=new c(function(t,r){n.ready().then(function(){I(n._dbInfo,A,function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName).get(e);a.onsuccess=function(){var e=a.result;void 0===e&&(e=null),E(e)&&(e=P(e)),t(e)},a.onerror=function(){r(a.error)}}catch(jk){r(jk)}})}).catch(r)});return u(r,t),r}function N(e,t){var n=this,r=new c(function(t,r){n.ready().then(function(){I(n._dbInfo,A,function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName).openCursor(),s=1;a.onsuccess=function(){var n=a.result;if(n){var r=n.value;E(r)&&(r=P(r));var i=e(r,n.key,s++);void 0!==i?t(i):n.continue()}else t()},a.onerror=function(){r(a.error)}}catch(jk){r(jk)}})}).catch(r)});return u(r,t),r}function X(e,t,n){var r=this;e=d(e);var i=new c(function(n,i){var o;r.ready().then(function(){return o=r._dbInfo,"[object Blob]"===O.call(t)?x(o.db).then(function(e){return e?t:Q(t)}):t}).then(function(t){I(r._dbInfo,y,function(o,a){if(o)return i(o);try{var s=a.objectStore(r._dbInfo.storeName);null===t&&(t=void 0);var l=s.put(t,e);a.oncomplete=function(){void 0===t&&(t=null),n(t)},a.onabort=a.onerror=function(){var e=l.error?l.error:l.transaction.error;i(e)}}catch(jk){i(jk)}})}).catch(i)});return u(i,n),i}function F(e,t){var n=this;e=d(e);var r=new c(function(t,r){n.ready().then(function(){I(n._dbInfo,y,function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName).delete(e);o.oncomplete=function(){t()},o.onerror=function(){r(a.error)},o.onabort=function(){var e=a.error?a.error:a.transaction.error;r(e)}}catch(jk){r(jk)}})}).catch(r)});return u(r,t),r}function U(e){var t=this,n=new c(function(e,n){t.ready().then(function(){I(t._dbInfo,y,function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).clear();i.oncomplete=function(){e()},i.onabort=i.onerror=function(){var e=o.error?o.error:o.transaction.error;n(e)}}catch(jk){n(jk)}})}).catch(n)});return u(n,e),n}function z(e){var t=this,n=new c(function(e,n){t.ready().then(function(){I(t._dbInfo,A,function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).count();o.onsuccess=function(){e(o.result)},o.onerror=function(){n(o.error)}}catch(jk){n(jk)}})}).catch(n)});return u(n,e),n}function q(e,t){var n=this,r=new c(function(t,r){e<0?t(null):n.ready().then(function(){I(n._dbInfo,A,function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName),s=!1,l=a.openKeyCursor();l.onsuccess=function(){var n=l.result;n?0===e||s?t(n.key):(s=!0,n.advance(e)):t(null)},l.onerror=function(){r(l.error)}}catch(jk){r(jk)}})}).catch(r)});return u(r,t),r}function V(e){var t=this,n=new c(function(e,n){t.ready().then(function(){I(t._dbInfo,A,function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).openKeyCursor(),a=[];o.onsuccess=function(){var t=o.result;t?(a.push(t.key),t.continue()):e(a)},o.onerror=function(){n(o.error)}}catch(jk){n(jk)}})}).catch(n)});return u(n,e),n}function W(e,t){t=p.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,i=this;if(e.name){var o=e.name===n.name&&i._dbInfo.db?c.resolve(i._dbInfo.db):$(e).then(function(t){var n=m[e.name],r=n.forages;n.db=t;for(var i=0;i<r.length;i++)r[i]._dbInfo.db=t;return t});r=e.storeName?o.then(function(t){if(t.objectStoreNames.contains(e.storeName)){var n=t.version+1;w(e);var r=m[e.name],i=r.forages;t.close();for(var o=0;o<i.length;o++){var s=i[o];s._dbInfo.db=null,s._dbInfo.version=n}return new c(function(t,r){var i=a.open(e.name,n);i.onerror=function(e){i.result.close(),r(e)},i.onupgradeneeded=function(){i.result.deleteObjectStore(e.storeName)},i.onsuccess=function(){var e=i.result;e.close(),t(e)}}).then(function(e){r.db=e;for(var t=0;t<i.length;t++){var n=i[t];n._dbInfo.db=e,k(n._dbInfo)}}).catch(function(t){throw(S(e,t)||c.resolve()).catch(function(){}),t})}}):o.then(function(t){w(e);var n=m[e.name],r=n.forages;t.close();for(var i=0;i<r.length;i++)r[i]._dbInfo.db=null;return new c(function(t,n){var r=a.deleteDatabase(e.name);r.onerror=function(){var e=r.result;e&&e.close(),n(r.error)},r.onblocked=function(){},r.onsuccess=function(){var e=r.result;e&&e.close(),t(e)}}).then(function(e){n.db=e;for(var t=0;t<r.length;t++)k(r[t]._dbInfo)}).catch(function(t){throw(S(e,t)||c.resolve()).catch(function(){}),t})})}else r=c.reject("Invalid arguments");return u(r,t),r}var j={_driver:"asyncStorage",_initStorage:D,_support:s(),iterate:N,getItem:M,setItem:X,removeItem:F,clear:U,length:z,key:q,keys:V,dropInstance:W};function Y(){return"function"==typeof openDatabase}var Z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",G="~~local_forage_type~",H=/^~~local_forage_type~([^~]+)~/,K="__lfsc__:",J=K.length,ee="arbf",te="blob",ne="si08",re="ui08",ie="uic8",oe="si16",ae="si32",se="ur16",le="ui32",ce="fl32",ue="fl64",he=J+ee.length,de=Object.prototype.toString;function pe(e){var t,n,r,i,o,a=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var c=new ArrayBuffer(a),u=new Uint8Array(c);for(t=0;t<s;t+=4)n=Z.indexOf(e[t]),r=Z.indexOf(e[t+1]),i=Z.indexOf(e[t+2]),o=Z.indexOf(e[t+3]),u[l++]=n<<2|r>>4,u[l++]=(15&r)<<4|i>>2,u[l++]=(3&i)<<6|63&o;return c}function fe(e){var t,n=new Uint8Array(e),r="";for(t=0;t<n.length;t+=3)r+=Z[n[t]>>2],r+=Z[(3&n[t])<<4|n[t+1]>>4],r+=Z[(15&n[t+1])<<2|n[t+2]>>6],r+=Z[63&n[t+2]];return n.length%3==2?r=r.substring(0,r.length-1)+"=":n.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}function ge(e,t){var n="";if(e&&(n=de.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===de.call(e.buffer))){var r,i=K;e instanceof ArrayBuffer?(r=e,i+=ee):(r=e.buffer,"[object Int8Array]"===n?i+=ne:"[object Uint8Array]"===n?i+=re:"[object Uint8ClampedArray]"===n?i+=ie:"[object Int16Array]"===n?i+=oe:"[object Uint16Array]"===n?i+=se:"[object Int32Array]"===n?i+=ae:"[object Uint32Array]"===n?i+=le:"[object Float32Array]"===n?i+=ce:"[object Float64Array]"===n?i+=ue:t(new Error("Failed to get type for BinaryArray"))),t(i+fe(r))}else if("[object Blob]"===n){var o=new FileReader;o.onload=function(){var n=G+e.type+"~"+fe(this.result);t(K+te+n)},o.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(jk){t(null,jk)}}function me(e){if(e.substring(0,J)!==K)return JSON.parse(e);var t,n=e.substring(he),r=e.substring(J,he);if(r===te&&H.test(n)){var i=n.match(H);t=i[1],n=n.substring(i[0].length)}var o=pe(n);switch(r){case ee:return o;case te:return l([o],{type:t});case ne:return new Int8Array(o);case re:return new Uint8Array(o);case ie:return new Uint8ClampedArray(o);case oe:return new Int16Array(o);case se:return new Uint16Array(o);case ae:return new Int32Array(o);case le:return new Uint32Array(o);case ce:return new Float32Array(o);case ue:return new Float64Array(o);default:throw new Error("Unkown type: "+r)}}var Oe={serialize:ge,deserialize:me,stringToBuffer:pe,bufferToString:fe};function Ae(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function ye(e){var t=this,n={db:null};if(e)for(var r in e)n[r]="string"!=typeof e[r]?e[r].toString():e[r];var i=new c(function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(jk){return r(jk)}n.db.transaction(function(i){Ae(i,n,function(){t._dbInfo=n,e()},function(e,t){r(t)})},r)});return n.serializer=Oe,i}function ve(e,t,n,r,i,o){e.executeSql(n,r,i,function(e,a){a.code===a.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],function(e,s){s.rows.length?o(e,a):Ae(e,t,function(){e.executeSql(n,r,i,o)},o)},o):o(e,a)},o)}function be(e,t){var n=this;e=d(e);var r=new c(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){ve(n,i,"SELECT * FROM "+i.storeName+" WHERE key = ? LIMIT 1",[e],function(e,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=i.serializer.deserialize(r)),t(r)},function(e,t){r(t)})})}).catch(r)});return u(r,t),r}function xe(e,t){var n=this,r=new c(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){ve(n,i,"SELECT * FROM "+i.storeName,[],function(n,r){for(var o=r.rows,a=o.length,s=0;s<a;s++){var l=o.item(s),c=l.value;if(c&&(c=i.serializer.deserialize(c)),void 0!==(c=e(c,l.key,s+1)))return void t(c)}t()},function(e,t){r(t)})})}).catch(r)});return u(r,t),r}function we(e,t,n,r){var i=this;e=d(e);var o=new c(function(o,a){i.ready().then(function(){void 0===t&&(t=null);var s=t,l=i._dbInfo;l.serializer.serialize(t,function(t,c){c?a(c):l.db.transaction(function(n){ve(n,l,"INSERT OR REPLACE INTO "+l.storeName+" (key, value) VALUES (?, ?)",[e,t],function(){o(s)},function(e,t){a(t)})},function(t){if(t.code===t.QUOTA_ERR){if(r>0)return void o(we.apply(i,[e,s,n,r-1]));a(t)}})})}).catch(a)});return u(o,n),o}function ke(e,t,n){return we.apply(this,[e,t,n,1])}function Se(e,t){var n=this;e=d(e);var r=new c(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){ve(n,i,"DELETE FROM "+i.storeName+" WHERE key = ?",[e],function(){t()},function(e,t){r(t)})})}).catch(r)});return u(r,t),r}function Te(e){var t=this,n=new c(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){ve(t,r,"DELETE FROM "+r.storeName,[],function(){e()},function(e,t){n(t)})})}).catch(n)});return u(n,e),n}function $e(e){var t=this,n=new c(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){ve(t,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],function(t,n){var r=n.rows.item(0).c;e(r)},function(e,t){n(t)})})}).catch(n)});return u(n,e),n}function _e(e,t){var n=this,r=new c(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){ve(n,i,"SELECT key FROM "+i.storeName+" WHERE id = ? LIMIT 1",[e+1],function(e,n){var r=n.rows.length?n.rows.item(0).key:null;t(r)},function(e,t){r(t)})})}).catch(r)});return u(r,t),r}function Ce(e){var t=this,n=new c(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){ve(t,r,"SELECT key FROM "+r.storeName,[],function(t,n){for(var r=[],i=0;i<n.rows.length;i++)r.push(n.rows.item(i).key);e(r)},function(e,t){n(t)})})}).catch(n)});return u(n,e),n}function Qe(e){return new c(function(t,n){e.transaction(function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(n,r){for(var i=[],o=0;o<r.rows.length;o++)i.push(r.rows.item(o).name);t({db:e,storeNames:i})},function(e,t){n(t)})},function(e){n(e)})})}function Pe(e,t){t=p.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,i=this;return r=e.name?new c(function(t){var r;r=e.name===n.name?i._dbInfo.db:openDatabase(e.name,"","",0),e.storeName?t({db:r,storeNames:[e.storeName]}):t(Qe(r))}).then(function(e){return new c(function(t,n){e.db.transaction(function(r){function i(e){return new c(function(t,n){r.executeSql("DROP TABLE IF EXISTS "+e,[],function(){t()},function(e,t){n(t)})})}for(var o=[],a=0,s=e.storeNames.length;a<s;a++)o.push(i(e.storeNames[a]));c.all(o).then(function(){t()}).catch(function(e){n(e)})},function(e){n(e)})})}):c.reject("Invalid arguments"),u(r,t),r}var Ee={_driver:"webSQLStorage",_initStorage:ye,_support:Y(),iterate:xe,getItem:be,setItem:ke,removeItem:Se,clear:Te,length:$e,key:_e,keys:Ce,dropInstance:Pe};function Re(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(jk){return!1}}function Be(e,t){var n=e.name+"/";return e.storeName!==t.storeName&&(n+=e.storeName+"/"),n}function Ie(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch(jk){return!0}}function Le(){return!Ie()||localStorage.length>0}function De(e){var t=this,n={};if(e)for(var r in e)n[r]=e[r];return n.keyPrefix=Be(e,t._defaultConfig),Le()?(t._dbInfo=n,n.serializer=Oe,c.resolve()):c.reject()}function Me(e){var t=this,n=t.ready().then(function(){for(var e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}});return u(n,e),n}function Ne(e,t){var n=this;e=d(e);var r=n.ready().then(function(){var t=n._dbInfo,r=localStorage.getItem(t.keyPrefix+e);return r&&(r=t.serializer.deserialize(r)),r});return u(r,t),r}function Xe(e,t){var n=this,r=n.ready().then(function(){for(var t=n._dbInfo,r=t.keyPrefix,i=r.length,o=localStorage.length,a=1,s=0;s<o;s++){var l=localStorage.key(s);if(0===l.indexOf(r)){var c=localStorage.getItem(l);if(c&&(c=t.serializer.deserialize(c)),void 0!==(c=e(c,l.substring(i),a++)))return c}}});return u(r,t),r}function Fe(e,t){var n=this,r=n.ready().then(function(){var t,r=n._dbInfo;try{t=localStorage.key(e)}catch(i){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t});return u(r,t),r}function Ue(e){var t=this,n=t.ready().then(function(){for(var e=t._dbInfo,n=localStorage.length,r=[],i=0;i<n;i++){var o=localStorage.key(i);0===o.indexOf(e.keyPrefix)&&r.push(o.substring(e.keyPrefix.length))}return r});return u(n,e),n}function ze(e){var t=this.keys().then(function(e){return e.length});return u(t,e),t}function qe(e,t){var n=this;e=d(e);var r=n.ready().then(function(){var t=n._dbInfo;localStorage.removeItem(t.keyPrefix+e)});return u(r,t),r}function Ve(e,t,n){var r=this;e=d(e);var i=r.ready().then(function(){void 0===t&&(t=null);var n=t;return new c(function(i,o){var a=r._dbInfo;a.serializer.serialize(t,function(t,r){if(r)o(r);else try{localStorage.setItem(a.keyPrefix+e,t),i(n)}catch(jk){"QuotaExceededError"!==jk.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==jk.name||o(jk),o(jk)}})})});return u(i,n),i}function We(e,t){if(t=p.apply(this,arguments),!(e="function"!=typeof e&&e||{}).name){var n=this.config();e.name=e.name||n.name,e.storeName=e.storeName||n.storeName}var r,i=this;return r=e.name?new c(function(t){e.storeName?t(Be(e,i._defaultConfig)):t(e.name+"/")}).then(function(e){for(var t=localStorage.length-1;t>=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}}):c.reject("Invalid arguments"),u(r,t),r}var je={_driver:"localStorageWrapper",_initStorage:De,_support:Re(),iterate:Xe,getItem:Ne,setItem:Ve,removeItem:qe,clear:Me,length:ze,key:Fe,keys:Ue,dropInstance:We},Ye=function(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)},Ze=function(e,t){for(var n=e.length,r=0;r<n;){if(Ye(e[r],t))return!0;r++}return!1},Ge=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},He={},Ke={},Je={INDEXEDDB:j,WEBSQL:Ee,LOCALSTORAGE:je},et=[Je.INDEXEDDB._driver,Je.WEBSQL._driver,Je.LOCALSTORAGE._driver],tt=["dropInstance"],nt=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(tt),rt={description:"",driver:et.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function it(e,t){e[t]=function(){var n=arguments;return e.ready().then(function(){return e[t].apply(e,n)})}}function ot(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var n in t)t.hasOwnProperty(n)&&(Ge(t[n])?arguments[0][n]=t[n].slice():arguments[0][n]=t[n])}return arguments[0]}var at=function(){function e(t){for(var n in i(this,e),Je)if(Je.hasOwnProperty(n)){var r=Je[n],o=r._driver;this[n]=o,He[o]||this.defineDriver(r)}this._defaultConfig=ot({},rt),this._config=ot({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return e.prototype.config=function(e){if("object"===(void 0===e?"undefined":r(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)}return"string"==typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,n){var r=new c(function(t,n){try{var r=e._driver,i=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void n(i);for(var o=nt.concat("_initStorage"),a=0,s=o.length;a<s;a++){var l=o[a];if((!Ze(tt,l)||e[l])&&"function"!=typeof e[l])return void n(i)}var h=function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),n=c.reject(t);return u(n,arguments[arguments.length-1]),n}},n=0,r=tt.length;n<r;n++){var i=tt[n];e[i]||(e[i]=t(i))}};h();var d=function(n){He[r],He[r]=e,Ke[r]=n,t()};"_support"in e?e._support&&"function"==typeof e._support?e._support().then(d,n):d(!!e._support):d(!0)}catch(jk){n(jk)}});return h(r,t,n),r},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,n){var r=He[e]?c.resolve(He[e]):c.reject(new Error("Driver not found."));return h(r,t,n),r},e.prototype.getSerializer=function(e){var t=c.resolve(Oe);return h(t,e),t},e.prototype.ready=function(e){var t=this,n=t._driverSet.then(function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready});return h(n,e,e),n},e.prototype.setDriver=function(e,t,n){var r=this;Ge(e)||(e=[e]);var i=this._getSupportedDrivers(e);function o(){r._config.driver=r.driver()}function a(e){return r._extend(e),o(),r._ready=r._initStorage(r._config),r._ready}function s(e){return function(){var t=0;function n(){for(;t<e.length;){var i=e[t];return t++,r._dbInfo=null,r._ready=null,r.getDriver(i).then(a).catch(n)}o();var s=new Error("No available storage method found.");return r._driverSet=c.reject(s),r._driverSet}return n()}}var l=null!==this._driverSet?this._driverSet.catch(function(){return c.resolve()}):c.resolve();return this._driverSet=l.then(function(){var e=i[0];return r._dbInfo=null,r._ready=null,r.getDriver(e).then(function(e){r._driver=e._driver,o(),r._wrapLibraryMethodsWithReady(),r._initDriver=s(i)})}).catch(function(){o();var e=new Error("No available storage method found.");return r._driverSet=c.reject(e),r._driverSet}),h(this._driverSet,t,n),this._driverSet},e.prototype.supports=function(e){return!!Ke[e]},e.prototype._extend=function(e){ot(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];this.supports(i)&&t.push(i)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,t=nt.length;e<t;e++)it(this,nt[e])},e.prototype.createInstance=function(t){return new e(t)},e}(),st=new at;t.exports=st},{3:3}]},{},[4])(4)),FS.exports);const zS=rk(US);function qS(e){return Array.isArray?Array.isArray(e):"[object Array]"===KS(e)}function VS(e){return null==e?"":function(e){if("string"==typeof e)return e;if("bigint"==typeof e)return e.toString();const t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}function WS(e){return"string"==typeof e}function jS(e){return"number"==typeof e}function YS(e){return!0===e||!1===e||function(e){return ZS(e)&&null!==e}(e)&&"[object Boolean]"==KS(e)}function ZS(e){return"object"==typeof e}function GS(e){return null!=e}function HS(e){return!e.trim().length}function KS(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const JS=Object.prototype.hasOwnProperty;class eT{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{const n=tT(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function tT(e){let t=null,n=null,r=null,i=1,o=null;if(WS(e)||qS(e))r=e,t=nT(e),n=rT(e);else{if(!JS.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const a=e.name;if(r=a,JS.call(e,"weight")&&(i=e.weight,i<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(a));t=nT(a),n=rT(a),o=e.getFn}return{path:t,id:n,weight:i,src:r,getFn:o}}function nT(e){return qS(e)?e:e.split(".")}function rT(e){return qS(e)?e.join("."):e}const iT={useExtendedSearch:!1,useTokenSearch:!1,getFn:function(e,t){const n=[];let r=!1;const i=(e,t,o,a)=>{if(GS(e))if(t[o]){const s=e[t[o]];if(!GS(s))return;if(o===t.length-1&&(WS(s)||jS(s)||YS(s)||"bigint"==typeof s))n.push(void 0!==a?{v:VS(s),i:a}:VS(s));else if(qS(s)){r=!0;for(let e=0,n=s.length;e<n;e+=1)i(s[e],t,o+1,e)}else t.length&&i(s,t,o+1,a)}else n.push(void 0!==a?{v:e,i:a}:e)};return i(e,WS(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},oT=Object.freeze({isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,...iT}),aT=/[^ ]+/g;class sT{constructor({getFn:e=oT.getFn,fieldNormWeight:t=oT.fieldNormWeight}={}){this.norm=function(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(t){const i=t.match(aT).length;if(n.has(i))return n.get(i);const o=1/Math.pow(i,.5*e),a=parseFloat(Math.round(o*r)/r);return n.set(i,a),a},clear(){n.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,WS(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){const t=this.size();WS(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}removeAll(e){for(let t=e.length-1;t>=0;t-=1)this.records.splice(e[t],1);for(let t=0,n=this.records.length;t<n;t+=1)this.records[t].i=t}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!GS(e)||HS(e))return;const n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){const n={i:t,$:{}};this.keys.forEach((t,r)=>{const i=t.getFn?t.getFn(e):this.getFn(e,t.path);if(GS(i))if(qS(i)){const e=[];for(let t=0,n=i.length;t<n;t+=1){const n=i[t];if(GS(n))if(WS(n)){if(!HS(n)){const r={v:n,i:t,n:this.norm.get(n)};e.push(r)}}else if(GS(n.v)){const t=WS(n.v)?n.v:VS(n.v);if(!HS(t)){const r={v:t,i:n.i,n:this.norm.get(t)};e.push(r)}}}n.$[r]=e}else if(WS(i)&&!HS(i)){const e={v:i,n:this.norm.get(i)};n.$[r]=e}}),this.records.push(n)}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}}function lT(e,t,{getFn:n=oT.getFn,fieldNormWeight:r=oT.fieldNormWeight}={}){const i=new sT({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(tT)),i.setSources(t),i.create(),i}const cT=32;function uT(e,t,n,{location:r=oT.location,distance:i=oT.distance,threshold:o=oT.threshold,findAllMatches:a=oT.findAllMatches,minMatchCharLength:s=oT.minMatchCharLength,includeMatches:l=oT.includeMatches,ignoreLocation:c=oT.ignoreLocation}={}){if(t.length>cT)throw new Error(`Pattern length exceeds max of ${cT}.`);const u=t.length,h=e.length,d=Math.max(0,Math.min(r,h));let p=o,f=d;const g=(e,t)=>{const n=e/u;if(c)return n;const r=Math.abs(d-t);return i?n+r/i:r?1:n},m=s>1||l,O=m?Array(h):[];let A;for(;(A=e.indexOf(t,f))>-1;){const e=g(0,A);if(p=Math.min(e,p),f=A+u,m){let e=0;for(;e<u;)O[A+e]=1,e+=1}}f=-1;let y=[],v=1,b=u+h;const x=1<<u-1;for(let k=0;k<u;k+=1){let t=0,r=b;for(;t<r;){g(k,d+r)<=p?t=r:b=r,r=Math.floor((b-t)/2+t)}b=r;let i=Math.max(1,d-r+1);const o=a?h:Math.min(d+r,h)+u,s=Array(o+2);s[o+1]=(1<<k)-1;for(let a=o;a>=i;a-=1){const t=a-1,r=n[e[t]];if(m&&(O[t]=+!!r),s[a]=(s[a+1]<<1|1)&r,k&&(s[a]|=(y[a+1]|y[a])<<1|1|y[a+1]),s[a]&x&&(v=g(k,t),v<=p)){if(p=v,f=t,f<=d)break;i=Math.max(1,2*d-f)}}if(g(k+1,d)>p)break;y=s}const w={isMatch:f>=0,score:Math.max(.001,v)};if(m){const e=function(e=[],t=oT.minMatchCharLength){const n=[];let r=-1,i=-1,o=0;for(let a=e.length;o<a;o+=1){const a=e[o];a&&-1===r?r=o:a||-1===r||(i=o-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}(O,s);e.length?l&&(w.indices=e):w.isMatch=!1}return w}function hT(e){const t={};for(let n=0,r=e.length;n<r;n+=1){const i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}function dT(e){if(e.length<=1)return e;e.sort((e,t)=>e[0]-t[0]||e[1]-t[1]);const t=[e[0]];for(let n=1,r=e.length;n<r;n+=1){const r=t[t.length-1],i=e[n];i[0]<=r[1]+1?r[1]=Math.max(r[1],i[1]):t.push(i)}return t}const pT={"ł":"l","Ł":"L","đ":"d","Đ":"D","ø":"o","Ø":"O","ħ":"h","Ħ":"H","ŧ":"t","Ŧ":"T","ı":"i","ß":"ss"},fT=new RegExp("["+Object.keys(pT).join("")+"]","g"),gT=String.prototype.normalize?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"").replace(fT,e=>pT[e]):e=>e;class mT{constructor(e,{location:t=oT.location,threshold:n=oT.threshold,distance:r=oT.distance,includeMatches:i=oT.includeMatches,findAllMatches:o=oT.findAllMatches,minMatchCharLength:a=oT.minMatchCharLength,isCaseSensitive:s=oT.isCaseSensitive,ignoreDiacritics:l=oT.ignoreDiacritics,ignoreLocation:c=oT.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLength:a,isCaseSensitive:s,ignoreDiacritics:l,ignoreLocation:c},e=s?e:e.toLowerCase(),e=l?gT(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const u=(e,t)=>{this.chunks.push({pattern:e,alphabet:hT(e),startIndex:t})},h=this.pattern.length;if(h>cT){let e=0;const t=h%cT,n=h-t;for(;e<n;)u(this.pattern.substr(e,cT),e),e+=cT;if(t){const e=h-cT;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r}=this.options;if(e=t?e:e.toLowerCase(),e=n?gT(e):e,this.pattern===e){const t={isMatch:!0,score:0};return r&&(t.indices=[[0,e.length-1]]),t}const{location:i,distance:o,threshold:a,findAllMatches:s,minMatchCharLength:l,ignoreLocation:c}=this.options,u=[];let h=0,d=!1;this.chunks.forEach(({pattern:t,alphabet:n,startIndex:p})=>{const{isMatch:f,score:g,indices:m}=uT(e,t,n,{location:i+p,distance:o,threshold:a,findAllMatches:s,minMatchCharLength:l,includeMatches:r,ignoreLocation:c});f&&(d=!0),h+=g,f&&m&&u.push(...m)});const p={isMatch:d,score:d?h/this.chunks.length:1};return d&&r&&(p.indices=dT(u)),p}}class OT{constructor(e){this.pattern=e}static isMultiMatch(e){return AT(e,this.multiRegex)}static isSingleMatch(e){return AT(e,this.singleRegex)}search(e){return{isMatch:!1,score:1}}}function AT(e,t){const n=e.match(t);return n?n[1]:null}class yT extends OT{constructor(e,{location:t=oT.location,threshold:n=oT.threshold,distance:r=oT.distance,includeMatches:i=oT.includeMatches,findAllMatches:o=oT.findAllMatches,minMatchCharLength:a=oT.minMatchCharLength,isCaseSensitive:s=oT.isCaseSensitive,ignoreDiacritics:l=oT.ignoreDiacritics,ignoreLocation:c=oT.ignoreLocation}={}){super(e),this._bitapSearch=new mT(e,{location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLength:a,isCaseSensitive:s,ignoreDiacritics:l,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class vT extends OT{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,n=0;const r=[],i=this.pattern.length;for(;(t=e.indexOf(this.pattern,n))>-1;)n=t+i,r.push([t,n-1]);const o=!!r.length;return{isMatch:o,score:o?0:1,indices:r}}}const bT=[class extends OT{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},vT,class extends OT{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends OT{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends OT{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends OT{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends OT{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},yT],xT=bT.length;const wT=new Set([yT.type,vT.type]);class kT{constructor(e,{isCaseSensitive:t=oT.isCaseSensitive,ignoreDiacritics:n=oT.ignoreDiacritics,includeMatches:r=oT.includeMatches,minMatchCharLength:i=oT.minMatchCharLength,ignoreLocation:o=oT.ignoreLocation,findAllMatches:a=oT.findAllMatches,location:s=oT.location,threshold:l=oT.threshold,distance:c=oT.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r,minMatchCharLength:i,findAllMatches:a,ignoreLocation:o,location:s,threshold:l,distance:c},e=t?e:e.toLowerCase(),e=n?gT(e):e,this.pattern=e,this.query=function(e,t={}){return e.replace(/\\\|/g,"\0").split("|").map(e=>{const n=function(e){const t=[],n=e.length;let r=0;for(;r<n;){for(;r<n&&" "===e[r];)r++;if(r>=n)break;let i=r;for(;i<n&&" "!==e[i]&&'"'!==e[i];)i++;if(i<n&&'"'===e[i]){for(i++;i<n;){if('"'===e[i]){const t=i+1;if(t>=n||" "===e[t]){i++;break}if("$"===e[t]&&(t+1>=n||" "===e[t+1])){i+=2;break}}i++}t.push(e.substring(r,i)),r=i}else{for(;i<n&&" "!==e[i];)i++;t.push(e.substring(r,i)),r=i}}return t}(e.replace(/\u0000/g,"|").trim()).filter(e=>e&&!!e.trim()),r=[];for(let i=0,o=n.length;i<o;i+=1){const e=n[i];let o=!1,a=-1;for(;!o&&++a<xT;){const n=bT[a],i=n.isMultiMatch(e);i&&(r.push(new n(i,t)),o=!0)}if(!o)for(a=-1;++a<xT;){const n=bT[a],i=n.isSingleMatch(e);if(i){r.push(new n(i,t));break}}}return r})}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r,ignoreDiacritics:i}=this.options;e=r?e:e.toLowerCase(),e=i?gT(e):e;let o=0;const a=[];let s=0,l=!1;for(let c=0,u=t.length;c<u;c+=1){const r=t[c];a.length=0,o=0,l=!1;for(let t=0,i=r.length;t<i;t+=1){const i=r[t],{isMatch:c,indices:u,score:h}=i.search(e);if(!c){s=0,o=0,a.length=0,l=!1;break}{o+=1,s+=h;const e=i.constructor.type;e.startsWith("inverse")&&(l=!0),n&&(wT.has(e)?a.push(...u):a.push(u))}}if(o){const e={isMatch:!0,score:s/o};return l&&(e.hasInverse=!0),n&&(e.indices=dT(a)),e}}return{isMatch:!1,score:1}}}const ST=[];function TT(...e){ST.push(...e)}function $T(e,t){for(let n=0,r=ST.length;n<r;n+=1){const r=ST[n];if(r.condition(e,t))return new r(e,t)}return new mT(e,t)}const _T="$and",CT="$or",QT="$path",PT="$val",ET=e=>!(!e[_T]&&!e[CT]),RT=e=>({[_T]:Object.keys(e).map(t=>({[t]:e[t]}))});function BT(e,t,{auto:n=!0}={}){const r=e=>{if(WS(e)){const r={keyId:null,pattern:e};return n&&(r.searcher=$T(e,t)),r}const i=Object.keys(e),o=(e=>!!e[QT])(e);if(!o&&i.length>1&&!ET(e))return r(RT(e));if((e=>!qS(e)&&ZS(e)&&!ET(e))(e)){const r=o?e[QT]:i[0],a=o?e[PT]:e[r];if(!WS(a))throw new Error((e=>`Invalid value for key ${e}`)(r));const s={keyId:rT(r),pattern:a};return n&&(s.searcher=$T(a,t)),s}const a={children:[],operator:i[0]};return i.forEach(t=>{const n=e[t];qS(n)&&n.forEach(e=>{a.children.push(r(e))})}),a};return ET(e)||(e=RT(e)),r(e)}function IT(e,{ignoreFieldNorm:t=oT.ignoreFieldNorm}){let n=1;return e.forEach(({key:e,norm:r,score:i})=>{const o=e?e.weight:null;n*=Math.pow(0===i&&o?Number.EPSILON:i,(o||1)*(t?1:r))}),n}class LT{constructor(e){this.limit=e,this.heap=[]}get size(){return this.heap.length}shouldInsert(e){return this.size<this.limit||e<this.heap[0].score}insert(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):e.score<this.heap[0].score&&(this.heap[0]=e,this._sinkDown(0))}extractSorted(e){return this.heap.sort(e)}_bubbleUp(e){const t=this.heap;for(;e>0;){const n=e-1>>1;if(t[e].score<=t[n].score)break;const r=t[e];t[e]=t[n],t[n]=r,e=n}}_sinkDown(e){const t=this.heap,n=t.length;let r=e;do{const i=2*(e=r)+1,o=2*e+2;if(i<n&&t[i].score>t[r].score&&(r=i),o<n&&t[o].score>t[r].score&&(r=o),r!==e){const n=t[e];t[e]=t[r],t[r]=n}}while(r!==e)}}function DT(e,t){const n=e.matches;t.matches=[],GS(n)&&n.forEach(e=>{if(!GS(e.indices)||!e.indices.length)return;const{indices:n,value:r}=e,i={indices:n,value:r};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)})}function MT(e,t){t.score=e.score}const NT=/\b\w+\b/g;function XT({isCaseSensitive:e=!1,ignoreDiacritics:t=!1}={}){return{tokenize:n=>(e||(n=n.toLowerCase()),t&&(n=gT(n)),n.match(NT)||[])}}function FT(e,t){for(const[n,r]of e.terms){const i=r.filter(e=>e.docIdx!==t),o=r.length-i.length;o>0&&(e.fieldCount-=o,e.df.set(n,(e.df.get(n)||0)-o),0===i.length?(e.terms.delete(n),e.df.delete(n)):e.terms.set(n,i))}}class UT{constructor(e,t,n){this.options={...oT,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new eT(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;const t=$T(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof sT))throw new Error("Incorrect 'index' type");if(this._myIndex=t||lT(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){const e=XT({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics});this._invertedIndex=function(e,t,n){const r=new Map,i=new Map;let o=0;function a(e,t,a,s){const l=n.tokenize(e);if(!l.length)return;o++;const c=new Map;for(const n of l)c.set(n,(c.get(n)||0)+1);for(const[n,o]of c){const e={docIdx:t,keyIdx:a,subIdx:s,tf:o};let l=r.get(n);l||(l=[],r.set(n,l)),l.push(e),i.set(n,(i.get(n)||0)+1)}}for(const s of e){const{i:e,v:n,$:r}=s;if(void 0===n){if(r)for(let i=0;i<t;i++){const t=r[i];if(t)if(Array.isArray(t))for(const n of t)a(n.v,e,i,n.i??-1);else a(t.v,e,i,-1)}}else a(n,e,-1,-1)}return{terms:r,fieldCount:o,df:i}}(this._myIndex.records,this._myIndex.keys.length,e)}}add(e){if(GS(e)&&(this._docs.push(e),this._myIndex.add(e),this._invertedIndex)){const e=this._myIndex.records[this._myIndex.records.length-1],t=XT({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics});!function(e,t,n,r){const{i:i,v:o,$:a}=t;function s(t,n,o){const a=r.tokenize(t);if(!a.length)return;e.fieldCount++;const s=new Map;for(const e of a)s.set(e,(s.get(e)||0)+1);for(const[r,l]of s){const t={docIdx:i,keyIdx:n,subIdx:o,tf:l};let a=e.terms.get(r);a||(a=[],e.terms.set(r,a)),a.push(t),e.df.set(r,(e.df.get(r)||0)+1)}}if(void 0===o){if(a)for(let l=0;l<n;l++){const e=a[l];if(e)if(Array.isArray(e))for(const t of e)s(t.v,l,t.i??-1);else s(e.v,l,-1)}}else s(o,-1,-1)}(this._invertedIndex,e,this._myIndex.keys.length,t)}}remove(e=()=>!1){const t=[],n=[];for(let r=0,i=this._docs.length;r<i;r+=1)e(this._docs[r],r)&&(t.push(this._docs[r]),n.push(r));if(n.length){if(this._invertedIndex)for(const e of n)FT(this._invertedIndex,e);for(let e=n.length-1;e>=0;e-=1)this._docs.splice(n[e],1);this._myIndex.removeAll(n)}return t}removeAt(e){this._invertedIndex&&FT(this._invertedIndex,e);const t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),t}getIndex(){return this._myIndex}search(e,t){const{limit:n=-1}=t||{},{includeMatches:r,includeScore:i,shouldSort:o,sortFn:a,ignoreFieldNorm:s}=this.options;if(WS(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return jS(n)&&n>-1&&(e=e.slice(0,n)),e}let l;if(jS(n)&&n>0&&WS(e)){const t=new LT(n);WS(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:s}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:s}),l=t.extractSorted(a)}else l=WS(e)?WS(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),function(e,{ignoreFieldNorm:t=oT.ignoreFieldNorm}){e.forEach(e=>{e.score=IT(e.matches,{ignoreFieldNorm:t})})}(l,{ignoreFieldNorm:s}),o&&l.sort(a),jS(n)&&n>-1&&(l=l.slice(0,n));return function(e,t,{includeMatches:n=oT.includeMatches,includeScore:r=oT.includeScore}={}){const i=[];return n&&i.push(DT),r&&i.push(MT),e.map(e=>{const{idx:n}=e,r={item:t[n],refIndex:n};return i.length&&i.forEach(t=>{t(e,r)}),r})}(l,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e,{heap:t,ignoreFieldNorm:n}={}){const r=this._getSearcher(e),{records:i}=this._myIndex,o=t?null:[];return i.forEach(({v:e,i:i,n:a})=>{if(!GS(e))return;const{isMatch:s,score:l,indices:c}=r.searchIn(e);if(s){const r={item:e,idx:i,matches:[{score:l,value:e,norm:a,indices:c}]};t?(r.score=IT(r.matches,{ignoreFieldNorm:n}),t.shouldInsert(r.score)&&t.insert(r)):o.push(r)}}),o}_searchLogical(e){const t=BT(e,this.options),n=(e,t,r)=>{if(!("children"in e)){const{keyId:n,searcher:i}=e;let o;return null===n?(o=[],this._myIndex.keys.forEach((e,n)=>{o.push(...this._findMatches({key:e,value:t[n],searcher:i}))})):o=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:i}),o&&o.length?[{idx:r,item:t,matches:o}]:[]}const{children:i,operator:o}=e,a=[];for(let s=0,l=i.length;s<l;s+=1){const e=i[s],l=n(e,t,r);if(l.length)a.push(...l);else if(o===_T)return[]}return a},r=this._myIndex.records,i=new Map,o=[];return r.forEach(({$:e,i:r})=>{if(GS(e)){const a=n(t,e,r);a.length&&(i.has(r)||(i.set(r,{idx:r,item:e,matches:[]}),o.push(i.get(r))),a.forEach(({matches:e})=>{i.get(r).matches.push(...e)}))}}),o}_searchObjectList(e,{heap:t,ignoreFieldNorm:n}={}){const r=this._getSearcher(e),{keys:i,records:o}=this._myIndex,a=t?null:[];return o.forEach(({$:e,i:o})=>{if(!GS(e))return;const s=[];let l=!1,c=!1;if(i.forEach((t,n)=>{const i=this._findMatches({key:t,value:e[n],searcher:r});i.length?(s.push(...i),i[0].hasInverse&&(c=!0)):l=!0}),(!c||!l)&&s.length){const r={idx:o,item:e,matches:s};t?(r.score=IT(r.matches,{ignoreFieldNorm:n}),t.shouldInsert(r.score)&&t.insert(r)):a.push(r)}}),a}_findMatches({key:e,value:t,searcher:n}){if(!GS(t))return[];const r=[];if(qS(t))t.forEach(({v:t,i:i,n:o})=>{if(!GS(t))return;const{isMatch:a,score:s,indices:l,hasInverse:c}=n.searchIn(t);a&&r.push({score:s,key:e,value:t,idx:i,norm:o,indices:l,hasInverse:c})});else{const{v:i,n:o}=t,{isMatch:a,score:s,indices:l,hasInverse:c}=n.searchIn(i);a&&r.push({score:s,key:e,value:i,norm:o,indices:l,hasInverse:c})}return r}}class zT{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=XT({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics});const n=this.analyzer.tokenize(e),r=t._invertedIndex,{df:i,fieldCount:o}=r;this.termSearchers=[],this.idfWeights=[];for(const a of n){this.termSearchers.push(new mT(a,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));const e=i.get(a)||0,n=Math.log(1+(o-e+.5)/(e+.5));this.idfWeights.push(n)}}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};const t=[];let n=0,r=0,i=0;for(let s=0;s<this.termSearchers.length;s++){const o=this.termSearchers[s].searchIn(e),a=this.idfWeights[s];r+=a,o.isMatch&&(i++,n+=a*(1-o.score),o.indices&&t.push(...o.indices))}if(0===i)return{isMatch:!1,score:1};const o=r>0?1-n/r:0,a={isMatch:!0,score:Math.max(.001,o)};return this.options.includeMatches&&t.length&&(a.indices=dT(t)),a}}UT.version="7.3.0",UT.createIndex=lT,UT.parseIndex=function(e,{getFn:t=oT.getFn,fieldNormWeight:n=oT.fieldNormWeight}={}){const{keys:r,records:i}=e,o=new sT({getFn:t,fieldNormWeight:n});return o.setKeys(r),o.setIndexRecords(i),o},UT.config=oT,UT.match=function(e,t,n){return $T(e,{...oT,...n}).searchIn(t)},UT.parseQuery=BT,TT(kT),TT(zT),UT.use=function(...e){e.forEach(e=>TT(e))};var qT,VT={exports:{}};var WT,jT,YT,ZT=(qT||(qT=1,WT=VT,jT=VT.exports,function(){var e,t="Expected a function",n="__lodash_hash_undefined__",r="__lodash_placeholder__",i=32,o=128,a=256,s=1/0,l=9007199254740991,c=NaN,u=4294967295,h=[["ary",o],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",i],["partialRight",64],["rearg",a]],d="[object Arguments]",p="[object Array]",f="[object Boolean]",g="[object Date]",m="[object Error]",O="[object Function]",A="[object GeneratorFunction]",y="[object Map]",v="[object Number]",b="[object Object]",x="[object Promise]",w="[object RegExp]",k="[object Set]",S="[object String]",T="[object Symbol]",$="[object WeakMap]",_="[object ArrayBuffer]",C="[object DataView]",Q="[object Float32Array]",P="[object Float64Array]",E="[object Int8Array]",R="[object Int16Array]",B="[object Int32Array]",I="[object Uint8Array]",L="[object Uint8ClampedArray]",D="[object Uint16Array]",M="[object Uint32Array]",N=/\b__p \+= '';/g,X=/\b(__p \+=) '' \+/g,F=/(__e\(.*?\)|\b__t\)) \+\n'';/g,U=/&(?:amp|lt|gt|quot|#39);/g,z=/[&<>"']/g,q=RegExp(U.source),V=RegExp(z.source),W=/<%-([\s\S]+?)%>/g,j=/<%([\s\S]+?)%>/g,Y=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,G=/^\w*$/,H=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,K=/[\\^$.*+?()[\]{}|]/g,J=RegExp(K.source),ee=/^\s+/,te=/\s/,ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,re=/\{\n\/\* \[wrapped with (.+)\] \*/,ie=/,? & /,oe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ae=/[()=,{}\[\]\/\s]/,se=/\\(\\)?/g,le=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ce=/\w*$/,ue=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,de=/^\[object .+?Constructor\]$/,pe=/^0o[0-7]+$/i,fe=/^(?:0|[1-9]\d*)$/,ge=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,me=/($^)/,Oe=/['\n\r\u2028\u2029\\]/g,Ae="\\ud800-\\udfff",ye="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ve="\\u2700-\\u27bf",be="a-z\\xdf-\\xf6\\xf8-\\xff",xe="A-Z\\xc0-\\xd6\\xd8-\\xde",we="\\ufe0e\\ufe0f",ke="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Se="['’]",Te="["+Ae+"]",$e="["+ke+"]",_e="["+ye+"]",Ce="\\d+",Qe="["+ve+"]",Pe="["+be+"]",Ee="[^"+Ae+ke+Ce+ve+be+xe+"]",Re="\\ud83c[\\udffb-\\udfff]",Be="[^"+Ae+"]",Ie="(?:\\ud83c[\\udde6-\\uddff]){2}",Le="[\\ud800-\\udbff][\\udc00-\\udfff]",De="["+xe+"]",Me="\\u200d",Ne="(?:"+Pe+"|"+Ee+")",Xe="(?:"+De+"|"+Ee+")",Fe="(?:['’](?:d|ll|m|re|s|t|ve))?",Ue="(?:['’](?:D|LL|M|RE|S|T|VE))?",ze="(?:"+_e+"|"+Re+")?",qe="["+we+"]?",Ve=qe+ze+"(?:"+Me+"(?:"+[Be,Ie,Le].join("|")+")"+qe+ze+")*",We="(?:"+[Qe,Ie,Le].join("|")+")"+Ve,je="(?:"+[Be+_e+"?",_e,Ie,Le,Te].join("|")+")",Ye=RegExp(Se,"g"),Ze=RegExp(_e,"g"),Ge=RegExp(Re+"(?="+Re+")|"+je+Ve,"g"),He=RegExp([De+"?"+Pe+"+"+Fe+"(?="+[$e,De,"$"].join("|")+")",Xe+"+"+Ue+"(?="+[$e,De+Ne,"$"].join("|")+")",De+"?"+Ne+"+"+Fe,De+"+"+Ue,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ce,We].join("|"),"g"),Ke=RegExp("["+Me+Ae+ye+we+"]"),Je=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,et=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],tt=-1,nt={};nt[Q]=nt[P]=nt[E]=nt[R]=nt[B]=nt[I]=nt[L]=nt[D]=nt[M]=!0,nt[d]=nt[p]=nt[_]=nt[f]=nt[C]=nt[g]=nt[m]=nt[O]=nt[y]=nt[v]=nt[b]=nt[w]=nt[k]=nt[S]=nt[$]=!1;var rt={};rt[d]=rt[p]=rt[_]=rt[C]=rt[f]=rt[g]=rt[Q]=rt[P]=rt[E]=rt[R]=rt[B]=rt[y]=rt[v]=rt[b]=rt[w]=rt[k]=rt[S]=rt[T]=rt[I]=rt[L]=rt[D]=rt[M]=!0,rt[m]=rt[O]=rt[$]=!1;var it={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ot=parseFloat,at=parseInt,st="object"==typeof nk&&nk&&nk.Object===Object&&nk,lt="object"==typeof self&&self&&self.Object===Object&&self,ct=st||lt||Function("return this")(),ut=jT&&!jT.nodeType&&jT,ht=ut&&WT&&!WT.nodeType&&WT,dt=ht&&ht.exports===ut,pt=dt&&st.process,ft=function(){try{var e=ht&&ht.require&&ht.require("util").types;return e||pt&&pt.binding&&pt.binding("util")}catch(jk){}}(),gt=ft&&ft.isArrayBuffer,mt=ft&&ft.isDate,Ot=ft&&ft.isMap,At=ft&&ft.isRegExp,yt=ft&&ft.isSet,vt=ft&&ft.isTypedArray;function bt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function xt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function wt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function kt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function St(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Tt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function $t(e,t){return!(null==e||!e.length)&&Dt(e,t,0)>-1}function _t(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Ct(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Qt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Pt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function Et(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Rt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Bt=Ft("length");function It(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function Lt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Dt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Lt(e,Nt,n)}function Mt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Nt(e){return e!=e}function Xt(e,t){var n=null==e?0:e.length;return n?qt(e,t)/n:c}function Ft(t){return function(n){return null==n?e:n[t]}}function Ut(t){return function(n){return null==t?e:t[n]}}function zt(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}function qt(t,n){for(var r,i=-1,o=t.length;++i<o;){var a=n(t[i]);a!==e&&(r=r===e?a:r+a)}return r}function Vt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Wt(e){return e?e.slice(0,cn(e)+1).replace(ee,""):e}function jt(e){return function(t){return e(t)}}function Yt(e,t){return Ct(t,function(t){return e[t]})}function Zt(e,t){return e.has(t)}function Gt(e,t){for(var n=-1,r=e.length;++n<r&&Dt(t,e[n],0)>-1;);return n}function Ht(e,t){for(var n=e.length;n--&&Dt(t,e[n],0)>-1;);return n}var Kt=Ut({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Jt=Ut({"&":"&","<":"<",">":">",'"':""","'":"'"});function en(e){return"\\"+it[e]}function tn(e){return Ke.test(e)}function nn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function rn(e,t){return function(n){return e(t(n))}}function on(e,t){for(var n=-1,i=e.length,o=0,a=[];++n<i;){var s=e[n];s!==t&&s!==r||(e[n]=r,a[o++]=n)}return a}function an(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function sn(e){return tn(e)?function(e){for(var t=Ge.lastIndex=0;Ge.test(e);)++t;return t}(e):Bt(e)}function ln(e){return tn(e)?function(e){return e.match(Ge)||[]}(e):function(e){return e.split("")}(e)}function cn(e){for(var t=e.length;t--&&te.test(e.charAt(t)););return t}var un=Ut({"&":"&","<":"<",">":">",""":'"',"'":"'"}),hn=function te(Ae){var ye=(Ae=null==Ae?ct:hn.defaults(ct.Object(),Ae,hn.pick(ct,et))).Array,ve=Ae.Date,be=Ae.Error,xe=Ae.Function,we=Ae.Math,ke=Ae.Object,Se=Ae.RegExp,Te=Ae.String,$e=Ae.TypeError,_e=ye.prototype,Ce=xe.prototype,Qe=ke.prototype,Pe=Ae["__core-js_shared__"],Ee=Ce.toString,Re=Qe.hasOwnProperty,Be=0,Ie=function(){var e=/[^.]+$/.exec(Pe&&Pe.keys&&Pe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Le=Qe.toString,De=Ee.call(ke),Me=ct._,Ne=Se("^"+Ee.call(Re).replace(K,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xe=dt?Ae.Buffer:e,Fe=Ae.Symbol,Ue=Ae.Uint8Array,ze=Xe?Xe.allocUnsafe:e,qe=rn(ke.getPrototypeOf,ke),Ve=ke.create,We=Qe.propertyIsEnumerable,je=_e.splice,Ge=Fe?Fe.isConcatSpreadable:e,Ke=Fe?Fe.iterator:e,it=Fe?Fe.toStringTag:e,st=function(){try{var e=lo(ke,"defineProperty");return e({},"",{}),e}catch(jk){}}(),lt=Ae.clearTimeout!==ct.clearTimeout&&Ae.clearTimeout,ut=ve&&ve.now!==ct.Date.now&&ve.now,ht=Ae.setTimeout!==ct.setTimeout&&Ae.setTimeout,pt=we.ceil,ft=we.floor,Bt=ke.getOwnPropertySymbols,Ut=Xe?Xe.isBuffer:e,dn=Ae.isFinite,pn=_e.join,fn=rn(ke.keys,ke),gn=we.max,mn=we.min,On=ve.now,An=Ae.parseInt,yn=we.random,vn=_e.reverse,bn=lo(Ae,"DataView"),xn=lo(Ae,"Map"),wn=lo(Ae,"Promise"),kn=lo(Ae,"Set"),Sn=lo(Ae,"WeakMap"),Tn=lo(ke,"create"),$n=Sn&&new Sn,_n={},Cn=Io(bn),Qn=Io(xn),Pn=Io(wn),En=Io(kn),Rn=Io(Sn),Bn=Fe?Fe.prototype:e,In=Bn?Bn.valueOf:e,Ln=Bn?Bn.toString:e;function Dn(e){if(Ka(e)&&!Fa(e)&&!(e instanceof Fn)){if(e instanceof Xn)return e;if(Re.call(e,"__wrapped__"))return Lo(e)}return new Xn(e)}var Mn=function(){function t(){}return function(n){if(!Ha(n))return{};if(Ve)return Ve(n);t.prototype=n;var r=new t;return t.prototype=e,r}}();function Nn(){}function Xn(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=e}function Fn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=u,this.__views__=[]}function Un(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function zn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new qn;++t<n;)this.add(e[t])}function Wn(e){var t=this.__data__=new zn(e);this.size=t.size}function jn(e,t){var n=Fa(e),r=!n&&Xa(e),i=!n&&!r&&Va(e),o=!n&&!r&&!i&&as(e),a=n||r||i||o,s=a?Vt(e.length,Te):[],l=s.length;for(var c in e)!t&&!Re.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||mo(c,l))||s.push(c);return s}function Yn(t){var n=t.length;return n?t[Vr(0,n-1)]:e}function Zn(e,t){return Eo(Ti(e),ir(t,0,e.length))}function Gn(e){return Eo(Ti(e))}function Hn(t,n,r){(r!==e&&!Da(t[n],r)||r===e&&!(n in t))&&nr(t,n,r)}function Kn(t,n,r){var i=t[n];Re.call(t,n)&&Da(i,r)&&(r!==e||n in t)||nr(t,n,r)}function Jn(e,t){for(var n=e.length;n--;)if(Da(e[n][0],t))return n;return-1}function er(e,t,n,r){return cr(e,function(e,i,o){t(r,e,n(e),o)}),r}function tr(e,t){return e&&$i(t,_s(t),e)}function nr(e,t,n){"__proto__"==t&&st?st(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function rr(t,n){for(var r=-1,i=n.length,o=ye(i),a=null==t;++r<i;)o[r]=a?e:ws(t,n[r]);return o}function ir(t,n,r){return t==t&&(r!==e&&(t=t<=r?t:r),n!==e&&(t=t>=n?t:n)),t}function or(t,n,r,i,o,a){var s,l=1&n,c=2&n,u=4&n;if(r&&(s=o?r(t,i,o,a):r(t)),s!==e)return s;if(!Ha(t))return t;var h=Fa(t);if(h){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!l)return Ti(t,s)}else{var p=ho(t),m=p==O||p==A;if(Va(t))return vi(t,l);if(p==b||p==d||m&&!o){if(s=c||m?{}:fo(t),!l)return c?function(e,t){return $i(e,uo(e),t)}(t,function(e,t){return e&&$i(t,Cs(t),e)}(s,t)):function(e,t){return $i(e,co(e),t)}(t,tr(s,t))}else{if(!rt[p])return o?t:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case _:return bi(e);case f:case g:return new i(+e);case C:return function(e,t){var n=t?bi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case Q:case P:case E:case R:case B:case I:case L:case D:case M:return xi(e,n);case y:return new i;case v:case S:return new i(e);case w:return function(e){var t=new e.constructor(e.source,ce.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new i;case T:return r=e,In?ke(In.call(r)):{}}}(t,p,l)}}a||(a=new Wn);var x=a.get(t);if(x)return x;a.set(t,s),rs(t)?t.forEach(function(e){s.add(or(e,n,r,e,t,a))}):Ja(t)&&t.forEach(function(e,i){s.set(i,or(e,n,r,i,t,a))});var $=h?e:(u?c?to:eo:c?Cs:_s)(t);return wt($||t,function(e,i){$&&(e=t[i=e]),Kn(s,i,or(e,n,r,i,t,a))}),s}function ar(t,n,r){var i=r.length;if(null==t)return!i;for(t=ke(t);i--;){var o=r[i],a=n[o],s=t[o];if(s===e&&!(o in t)||!a(s))return!1}return!0}function sr(n,r,i){if("function"!=typeof n)throw new $e(t);return _o(function(){n.apply(e,i)},r)}function lr(e,t,n,r){var i=-1,o=$t,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Ct(t,jt(n))),r?(o=_t,a=!1):t.length>=200&&(o=Zt,a=!1,t=new Vn(t));e:for(;++i<s;){var u=e[i],h=null==n?u:n(u);if(u=r||0!==u?u:0,a&&h==h){for(var d=c;d--;)if(t[d]===h)continue e;l.push(u)}else o(t,h,r)||l.push(u)}return l}Dn.templateSettings={escape:W,evaluate:j,interpolate:Y,variable:"",imports:{_:Dn}},Dn.prototype=Nn.prototype,Dn.prototype.constructor=Dn,Xn.prototype=Mn(Nn.prototype),Xn.prototype.constructor=Xn,Fn.prototype=Mn(Nn.prototype),Fn.prototype.constructor=Fn,Un.prototype.clear=function(){this.__data__=Tn?Tn(null):{},this.size=0},Un.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Un.prototype.get=function(t){var r=this.__data__;if(Tn){var i=r[t];return i===n?e:i}return Re.call(r,t)?r[t]:e},Un.prototype.has=function(t){var n=this.__data__;return Tn?n[t]!==e:Re.call(n,t)},Un.prototype.set=function(t,r){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=Tn&&r===e?n:r,this},zn.prototype.clear=function(){this.__data__=[],this.size=0},zn.prototype.delete=function(e){var t=this.__data__,n=Jn(t,e);return!(n<0||(n==t.length-1?t.pop():je.call(t,n,1),--this.size,0))},zn.prototype.get=function(t){var n=this.__data__,r=Jn(n,t);return r<0?e:n[r][1]},zn.prototype.has=function(e){return Jn(this.__data__,e)>-1},zn.prototype.set=function(e,t){var n=this.__data__,r=Jn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Un,map:new(xn||zn),string:new Un}},qn.prototype.delete=function(e){var t=ao(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return ao(this,e).get(e)},qn.prototype.has=function(e){return ao(this,e).has(e)},qn.prototype.set=function(e,t){var n=ao(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Vn.prototype.add=Vn.prototype.push=function(e){return this.__data__.set(e,n),this},Vn.prototype.has=function(e){return this.__data__.has(e)},Wn.prototype.clear=function(){this.__data__=new zn,this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Wn.prototype.get=function(e){return this.__data__.get(e)},Wn.prototype.has=function(e){return this.__data__.has(e)},Wn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof zn){var r=n.__data__;if(!xn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(e,t),this.size=n.size,this};var cr=Qi(Or),ur=Qi(Ar,!0);function hr(e,t){var n=!0;return cr(e,function(e,r,i){return n=!!t(e,r,i)}),n}function dr(t,n,r){for(var i=-1,o=t.length;++i<o;){var a=t[i],s=n(a);if(null!=s&&(l===e?s==s&&!os(s):r(s,l)))var l=s,c=a}return c}function pr(e,t){var n=[];return cr(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function fr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=go),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?fr(s,t-1,n,r,i):Qt(i,s):r||(i[i.length]=s)}return i}var gr=Pi(),mr=Pi(!0);function Or(e,t){return e&&gr(e,t,_s)}function Ar(e,t){return e&&mr(e,t,_s)}function yr(e,t){return Tt(t,function(t){return Ya(e[t])})}function vr(t,n){for(var r=0,i=(n=mi(n,t)).length;null!=t&&r<i;)t=t[Bo(n[r++])];return r&&r==i?t:e}function br(e,t,n){var r=t(e);return Fa(e)?r:Qt(r,n(e))}function xr(t){return null==t?t===e?"[object Undefined]":"[object Null]":it&&it in ke(t)?function(t){var n=Re.call(t,it),r=t[it];try{t[it]=e;var i=!0}catch(jk){}var o=Le.call(t);return i&&(n?t[it]=r:delete t[it]),o}(t):function(e){return Le.call(e)}(t)}function wr(e,t){return e>t}function kr(e,t){return null!=e&&Re.call(e,t)}function Sr(e,t){return null!=e&&t in ke(e)}function Tr(t,n,r){for(var i=r?_t:$t,o=t[0].length,a=t.length,s=a,l=ye(a),c=1/0,u=[];s--;){var h=t[s];s&&n&&(h=Ct(h,jt(n))),c=mn(h.length,c),l[s]=!r&&(n||o>=120&&h.length>=120)?new Vn(s&&h):e}h=t[0];var d=-1,p=l[0];e:for(;++d<o&&u.length<c;){var f=h[d],g=n?n(f):f;if(f=r||0!==f?f:0,!(p?Zt(p,g):i(u,g,r))){for(s=a;--s;){var m=l[s];if(!(m?Zt(m,g):i(t[s],g,r)))continue e}p&&p.push(g),u.push(f)}}return u}function $r(t,n,r){var i=null==(t=So(t,n=mi(n,t)))?t:t[Bo(jo(n))];return null==i?e:bt(i,t,r)}function _r(e){return Ka(e)&&xr(e)==d}function Cr(t,n,r,i,o){return t===n||(null==t||null==n||!Ka(t)&&!Ka(n)?t!=t&&n!=n:function(t,n,r,i,o,a){var s=Fa(t),l=Fa(n),c=s?p:ho(t),u=l?p:ho(n),h=(c=c==d?b:c)==b,O=(u=u==d?b:u)==b,A=c==u;if(A&&Va(t)){if(!Va(n))return!1;s=!0,h=!1}if(A&&!h)return a||(a=new Wn),s||as(t)?Ki(t,n,r,i,o,a):function(e,t,n,r,i,o,a){switch(n){case C:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!o(new Ue(e),new Ue(t)));case f:case g:case v:return Da(+e,+t);case m:return e.name==t.name&&e.message==t.message;case w:case S:return e==t+"";case y:var s=nn;case k:var l=1&r;if(s||(s=an),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=Ki(s(e),s(t),r,i,o,a);return a.delete(e),u;case T:if(In)return In.call(e)==In.call(t)}return!1}(t,n,c,r,i,o,a);if(!(1&r)){var x=h&&Re.call(t,"__wrapped__"),$=O&&Re.call(n,"__wrapped__");if(x||$){var Q=x?t.value():t,P=$?n.value():n;return a||(a=new Wn),o(Q,P,r,i,a)}}return!!A&&(a||(a=new Wn),function(t,n,r,i,o,a){var s=1&r,l=eo(t),c=l.length,u=eo(n),h=u.length;if(c!=h&&!s)return!1;for(var d=c;d--;){var p=l[d];if(!(s?p in n:Re.call(n,p)))return!1}var f=a.get(t),g=a.get(n);if(f&&g)return f==n&&g==t;var m=!0;a.set(t,n),a.set(n,t);for(var O=s;++d<c;){var A=t[p=l[d]],y=n[p];if(i)var v=s?i(y,A,p,n,t,a):i(A,y,p,t,n,a);if(!(v===e?A===y||o(A,y,r,i,a):v)){m=!1;break}O||(O="constructor"==p)}if(m&&!O){var b=t.constructor,x=n.constructor;b==x||!("constructor"in t)||!("constructor"in n)||"function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x||(m=!1)}return a.delete(t),a.delete(n),m}(t,n,r,i,o,a))}(t,n,r,i,Cr,o))}function Qr(t,n,r,i){var o=r.length,a=o,s=!i;if(null==t)return!a;for(t=ke(t);o--;){var l=r[o];if(s&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++o<a;){var c=(l=r[o])[0],u=t[c],h=l[1];if(s&&l[2]){if(u===e&&!(c in t))return!1}else{var d=new Wn;if(i)var p=i(u,h,c,t,n,d);if(!(p===e?Cr(h,u,3,i,d):p))return!1}}return!0}function Pr(e){return!(!Ha(e)||function(e){return!!Ie&&Ie in e}(e))&&(Ya(e)?Ne:de).test(Io(e))}function Er(e){return"function"==typeof e?e:null==e?el:"object"==typeof e?Fa(e)?Mr(e[0],e[1]):Dr(e):cl(e)}function Rr(e){if(!bo(e))return fn(e);var t=[];for(var n in ke(e))Re.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Br(e){if(!Ha(e))return function(e){var t=[];if(null!=e)for(var n in ke(e))t.push(n);return t}(e);var t=bo(e),n=[];for(var r in e)("constructor"!=r||!t&&Re.call(e,r))&&n.push(r);return n}function Ir(e,t){return e<t}function Lr(e,t){var n=-1,r=za(e)?ye(e.length):[];return cr(e,function(e,i,o){r[++n]=t(e,i,o)}),r}function Dr(e){var t=so(e);return 1==t.length&&t[0][2]?wo(t[0][0],t[0][1]):function(n){return n===e||Qr(n,e,t)}}function Mr(t,n){return Ao(t)&&xo(n)?wo(Bo(t),n):function(r){var i=ws(r,t);return i===e&&i===n?ks(r,t):Cr(n,i,3)}}function Nr(t,n,r,i,o){t!==n&&gr(n,function(a,s){if(o||(o=new Wn),Ha(a))!function(t,n,r,i,o,a,s){var l=To(t,r),c=To(n,r),u=s.get(c);if(u)Hn(t,r,u);else{var h=a?a(l,c,r+"",t,n,s):e,d=h===e;if(d){var p=Fa(c),f=!p&&Va(c),g=!p&&!f&&as(c);h=c,p||f||g?Fa(l)?h=l:qa(l)?h=Ti(l):f?(d=!1,h=vi(c,!0)):g?(d=!1,h=xi(c,!0)):h=[]:ts(c)||Xa(c)?(h=l,Xa(l)?h=fs(l):Ha(l)&&!Ya(l)||(h=fo(c))):d=!1}d&&(s.set(c,h),o(h,c,i,a,s),s.delete(c)),Hn(t,r,h)}}(t,n,s,r,Nr,i,o);else{var l=i?i(To(t,s),a,s+"",t,n,o):e;l===e&&(l=a),Hn(t,s,l)}},Cs)}function Xr(t,n){var r=t.length;if(r)return mo(n+=n<0?r:0,r)?t[n]:e}function Fr(e,t,n){t=t.length?Ct(t,function(e){return Fa(e)?function(t){return vr(t,1===e.length?e[0]:e)}:e}):[el];var r=-1;return t=Ct(t,jt(oo())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Lr(e,function(e,n,i){return{criteria:Ct(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=wi(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function Ur(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=vr(e,a);n(s,a)&&Gr(o,mi(a,e),s)}return o}function zr(e,t,n,r){var i=r?Mt:Dt,o=-1,a=t.length,s=e;for(e===t&&(t=Ti(t)),n&&(s=Ct(e,jt(n)));++o<a;)for(var l=0,c=t[o],u=n?n(c):c;(l=i(s,u,l,r))>-1;)s!==e&&je.call(s,l,1),je.call(e,l,1);return e}function qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;mo(i)?je.call(e,i,1):li(e,i)}}return e}function Vr(e,t){return e+ft(yn()*(t-e+1))}function Wr(e,t){var n="";if(!e||t<1||t>l)return n;do{t%2&&(n+=e),(t=ft(t/2))&&(e+=e)}while(t);return n}function jr(e,t){return Co(ko(e,t,el),e+"")}function Yr(e){return Yn(Ds(e))}function Zr(e,t){var n=Ds(e);return Eo(n,ir(t,0,n.length))}function Gr(t,n,r,i){if(!Ha(t))return t;for(var o=-1,a=(n=mi(n,t)).length,s=a-1,l=t;null!=l&&++o<a;){var c=Bo(n[o]),u=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(o!=s){var h=l[c];(u=i?i(h,c,l):e)===e&&(u=Ha(h)?h:mo(n[o+1])?[]:{})}Kn(l,c,u),l=l[c]}return t}var Hr=$n?function(e,t){return $n.set(e,t),e}:el,Kr=st?function(e,t){return st(e,"toString",{configurable:!0,enumerable:!1,value:Hs(t),writable:!0})}:el;function Jr(e){return Eo(Ds(e))}function ei(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=ye(i);++r<i;)o[r]=e[r+t];return o}function ti(e,t){var n;return cr(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}function ni(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!os(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return ri(e,t,el,n)}function ri(t,n,r,i){var o=0,a=null==t?0:t.length;if(0===a)return 0;for(var s=(n=r(n))!=n,l=null===n,c=os(n),u=n===e;o<a;){var h=ft((o+a)/2),d=r(t[h]),p=d!==e,f=null===d,g=d==d,m=os(d);if(s)var O=i||g;else O=u?g&&(i||p):l?g&&p&&(i||!f):c?g&&p&&!f&&(i||!m):!f&&!m&&(i?d<=n:d<n);O?o=h+1:a=h}return mn(a,4294967294)}function ii(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Da(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function oi(e){return"number"==typeof e?e:os(e)?c:+e}function ai(e){if("string"==typeof e)return e;if(Fa(e))return Ct(e,ai)+"";if(os(e))return Ln?Ln.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function si(e,t,n){var r=-1,i=$t,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=_t;else if(o>=200){var c=t?null:Wi(e);if(c)return an(c);a=!1,i=Zt,l=new Vn}else l=t?[]:s;e:for(;++r<o;){var u=e[r],h=t?t(u):u;if(u=n||0!==u?u:0,a&&h==h){for(var d=l.length;d--;)if(l[d]===h)continue e;t&&l.push(h),s.push(u)}else i(l,h,n)||(l!==s&&l.push(h),s.push(u))}return s}function li(e,t){var n=-1,r=(t=mi(t,e)).length;if(!r)return!0;for(;++n<r;){var i=Bo(t[n]);if("__proto__"===i&&!Re.call(e,"__proto__"))return!1;if(("constructor"===i||"prototype"===i)&&n<r-1)return!1}var o=So(e,t);return null==o||delete o[Bo(jo(t))]}function ci(e,t,n,r){return Gr(e,t,n(vr(e,t)),r)}function ui(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ei(e,r?0:o,r?o+1:i):ei(e,r?o+1:0,r?i:o)}function hi(e,t){var n=e;return n instanceof Fn&&(n=n.value()),Pt(t,function(e,t){return t.func.apply(t.thisArg,Qt([e],t.args))},n)}function di(e,t,n){var r=e.length;if(r<2)return r?si(e[0]):[];for(var i=-1,o=ye(r);++i<r;)for(var a=e[i],s=-1;++s<r;)s!=i&&(o[i]=lr(o[i]||a,e[s],t,n));return si(fr(o,1),t,n)}function pi(t,n,r){for(var i=-1,o=t.length,a=n.length,s={};++i<o;){var l=i<a?n[i]:e;r(s,t[i],l)}return s}function fi(e){return qa(e)?e:[]}function gi(e){return"function"==typeof e?e:el}function mi(e,t){return Fa(e)?e:Ao(e,t)?[e]:Ro(gs(e))}var Oi=jr;function Ai(t,n,r){var i=t.length;return r=r===e?i:r,!n&&r>=i?t:ei(t,n,r)}var yi=lt||function(e){return ct.clearTimeout(e)};function vi(e,t){if(t)return e.slice();var n=e.length,r=ze?ze(n):new e.constructor(n);return e.copy(r),r}function bi(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function xi(e,t){var n=t?bi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function wi(t,n){if(t!==n){var r=t!==e,i=null===t,o=t==t,a=os(t),s=n!==e,l=null===n,c=n==n,u=os(n);if(!l&&!u&&!a&&t>n||a&&s&&c&&!l&&!u||i&&s&&c||!r&&c||!o)return 1;if(!i&&!a&&!u&&t<n||u&&r&&o&&!i&&!a||l&&r&&o||!s&&o||!c)return-1}return 0}function ki(e,t,n,r){for(var i=-1,o=e.length,a=n.length,s=-1,l=t.length,c=gn(o-a,0),u=ye(l+c),h=!r;++s<l;)u[s]=t[s];for(;++i<a;)(h||i<o)&&(u[n[i]]=e[i]);for(;c--;)u[s++]=e[i++];return u}function Si(e,t,n,r){for(var i=-1,o=e.length,a=-1,s=n.length,l=-1,c=t.length,u=gn(o-s,0),h=ye(u+c),d=!r;++i<u;)h[i]=e[i];for(var p=i;++l<c;)h[p+l]=t[l];for(;++a<s;)(d||i<o)&&(h[p+n[a]]=e[i++]);return h}function Ti(e,t){var n=-1,r=e.length;for(t||(t=ye(r));++n<r;)t[n]=e[n];return t}function $i(t,n,r,i){var o=!r;r||(r={});for(var a=-1,s=n.length;++a<s;){var l=n[a],c=i?i(r[l],t[l],l,r,t):e;c===e&&(c=t[l]),o?nr(r,l,c):Kn(r,l,c)}return r}function _i(e,t){return function(n,r){var i=Fa(n)?xt:er,o=t?t():{};return i(n,e,oo(r,2),o)}}function Ci(t){return jr(function(n,r){var i=-1,o=r.length,a=o>1?r[o-1]:e,s=o>2?r[2]:e;for(a=t.length>3&&"function"==typeof a?(o--,a):e,s&&Oo(r[0],r[1],s)&&(a=o<3?e:a,o=1),n=ke(n);++i<o;){var l=r[i];l&&t(n,l,i,a)}return n})}function Qi(e,t){return function(n,r){if(null==n)return n;if(!za(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=ke(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Pi(e){return function(t,n,r){for(var i=-1,o=ke(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}function Ei(t){return function(n){var r=tn(n=gs(n))?ln(n):e,i=r?r[0]:n.charAt(0),o=r?Ai(r,1).join(""):n.slice(1);return i[t]()+o}}function Ri(e){return function(t){return Pt(Ys(Xs(t).replace(Ye,"")),e,"")}}function Bi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Mn(e.prototype),r=e.apply(n,t);return Ha(r)?r:n}}function Ii(t){return function(n,r,i){var o=ke(n);if(!za(n)){var a=oo(r,3);n=_s(n),r=function(e){return a(o[e],e,o)}}var s=t(n,r,i);return s>-1?o[a?n[s]:s]:e}}function Li(n){return Ji(function(r){var i=r.length,o=i,a=Xn.prototype.thru;for(n&&r.reverse();o--;){var s=r[o];if("function"!=typeof s)throw new $e(t);if(a&&!l&&"wrapper"==ro(s))var l=new Xn([],!0)}for(o=l?o:i;++o<i;){var c=ro(s=r[o]),u="wrapper"==c?no(s):e;l=u&&yo(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[ro(u[0])].apply(l,u[3]):1==s.length&&yo(s)?l[c]():l.thru(s)}return function(){var e=arguments,t=e[0];if(l&&1==e.length&&Fa(t))return l.plant(t).value();for(var n=0,o=i?r[n].apply(this,e):t;++n<i;)o=r[n].call(this,o);return o}})}function Di(t,n,r,i,a,s,l,c,u,h){var d=n&o,p=1&n,f=2&n,g=24&n,m=512&n,O=f?e:Bi(t);return function o(){for(var A=arguments.length,y=ye(A),v=A;v--;)y[v]=arguments[v];if(g)var b=io(o),x=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(y,b);if(i&&(y=ki(y,i,a,g)),s&&(y=Si(y,s,l,g)),A-=x,g&&A<h){var w=on(y,b);return qi(t,n,Di,o.placeholder,r,y,w,c,u,h-A)}var k=p?r:this,S=f?k[t]:t;return A=y.length,c?y=function(t,n){for(var r=t.length,i=mn(n.length,r),o=Ti(t);i--;){var a=n[i];t[i]=mo(a,r)?o[a]:e}return t}(y,c):m&&A>1&&y.reverse(),d&&u<A&&(y.length=u),this&&this!==ct&&this instanceof o&&(S=O||Bi(S)),S.apply(k,y)}}function Mi(e,t){return function(n,r){return function(e,t,n,r){return Or(e,function(e,i,o){t(r,n(e),i,o)}),r}(n,e,t(r),{})}}function Ni(t,n){return function(r,i){var o;if(r===e&&i===e)return n;if(r!==e&&(o=r),i!==e){if(o===e)return i;"string"==typeof r||"string"==typeof i?(r=ai(r),i=ai(i)):(r=oi(r),i=oi(i)),o=t(r,i)}return o}}function Xi(e){return Ji(function(t){return t=Ct(t,jt(oo())),jr(function(n){var r=this;return e(t,function(e){return bt(e,r,n)})})})}function Fi(t,n){var r=(n=n===e?" ":ai(n)).length;if(r<2)return r?Wr(n,t):n;var i=Wr(n,pt(t/sn(n)));return tn(n)?Ai(ln(i),0,t).join(""):i.slice(0,t)}function Ui(t){return function(n,r,i){return i&&"number"!=typeof i&&Oo(n,r,i)&&(r=i=e),n=us(n),r===e?(r=n,n=0):r=us(r),function(e,t,n,r){for(var i=-1,o=gn(pt((t-e)/(n||1)),0),a=ye(o);o--;)a[r?o:++i]=e,e+=n;return a}(n,r,i=i===e?n<r?1:-1:us(i),t)}}function zi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ps(t),n=ps(n)),e(t,n)}}function qi(t,n,r,o,a,s,l,c,u,h){var d=8&n;n|=d?i:64,4&(n&=~(d?64:i))||(n&=-4);var p=[t,n,a,d?s:e,d?l:e,d?e:s,d?e:l,c,u,h],f=r.apply(e,p);return yo(t)&&$o(f,p),f.placeholder=o,Qo(f,t,n)}function Vi(e){var t=we[e];return function(e,n){if(e=ps(e),(n=null==n?0:mn(hs(n),292))&&dn(e)){var r=(gs(e)+"e").split("e");return+((r=(gs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Wi=kn&&1/an(new kn([,-0]))[1]==s?function(e){return new kn(e)}:ol;function ji(e){return function(t){var n=ho(t);return n==y?nn(t):n==k?function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}(t):function(e,t){return Ct(t,function(t){return[t,e[t]]})}(t,e(t))}}function Yi(n,s,l,c,u,h,d,p){var f=2&s;if(!f&&"function"!=typeof n)throw new $e(t);var g=c?c.length:0;if(g||(s&=-97,c=u=e),d=d===e?d:gn(hs(d),0),p=p===e?p:hs(p),g-=u?u.length:0,64&s){var m=c,O=u;c=u=e}var A=f?e:no(n),y=[n,s,l,c,u,m,O,h,d,p];if(A&&function(e,t){var n=e[1],i=t[1],s=n|i,l=s<131,c=i==o&&8==n||i==o&&n==a&&e[7].length<=t[8]||384==i&&t[7].length<=t[8]&&8==n;if(!l&&!c)return e;1&i&&(e[2]=t[2],s|=1&n?0:4);var u=t[3];if(u){var h=e[3];e[3]=h?ki(h,u,t[4]):u,e[4]=h?on(e[3],r):t[4]}(u=t[5])&&(h=e[5],e[5]=h?Si(h,u,t[6]):u,e[6]=h?on(e[5],r):t[6]),(u=t[7])&&(e[7]=u),i&o&&(e[8]=null==e[8]?t[8]:mn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=s}(y,A),n=y[0],s=y[1],l=y[2],c=y[3],u=y[4],!(p=y[9]=y[9]===e?f?0:n.length:gn(y[9]-g,0))&&24&s&&(s&=-25),s&&1!=s)v=8==s||16==s?function(t,n,r){var i=Bi(t);return function o(){for(var a=arguments.length,s=ye(a),l=a,c=io(o);l--;)s[l]=arguments[l];var u=a<3&&s[0]!==c&&s[a-1]!==c?[]:on(s,c);return(a-=u.length)<r?qi(t,n,Di,o.placeholder,e,s,u,e,e,r-a):bt(this&&this!==ct&&this instanceof o?i:t,this,s)}}(n,s,p):s!=i&&33!=s||u.length?Di.apply(e,y):function(e,t,n,r){var i=1&t,o=Bi(e);return function t(){for(var a=-1,s=arguments.length,l=-1,c=r.length,u=ye(c+s),h=this&&this!==ct&&this instanceof t?o:e;++l<c;)u[l]=r[l];for(;s--;)u[l++]=arguments[++a];return bt(h,i?n:this,u)}}(n,s,l,c);else var v=function(e,t,n){var r=1&t,i=Bi(e);return function t(){return(this&&this!==ct&&this instanceof t?i:e).apply(r?n:this,arguments)}}(n,s,l);return Qo((A?Hr:$o)(v,y),n,s)}function Zi(t,n,r,i){return t===e||Da(t,Qe[r])&&!Re.call(i,r)?n:t}function Gi(t,n,r,i,o,a){return Ha(t)&&Ha(n)&&(a.set(n,t),Nr(t,n,e,Gi,a),a.delete(n)),t}function Hi(t){return ts(t)?e:t}function Ki(t,n,r,i,o,a){var s=1&r,l=t.length,c=n.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(t),h=a.get(n);if(u&&h)return u==n&&h==t;var d=-1,p=!0,f=2&r?new Vn:e;for(a.set(t,n),a.set(n,t);++d<l;){var g=t[d],m=n[d];if(i)var O=s?i(m,g,d,n,t,a):i(g,m,d,t,n,a);if(O!==e){if(O)continue;p=!1;break}if(f){if(!Rt(n,function(e,t){if(!Zt(f,t)&&(g===e||o(g,e,r,i,a)))return f.push(t)})){p=!1;break}}else if(g!==m&&!o(g,m,r,i,a)){p=!1;break}}return a.delete(t),a.delete(n),p}function Ji(t){return Co(ko(t,e,Uo),t+"")}function eo(e){return br(e,_s,co)}function to(e){return br(e,Cs,uo)}var no=$n?function(e){return $n.get(e)}:ol;function ro(e){for(var t=e.name+"",n=_n[t],r=Re.call(_n,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function io(e){return(Re.call(Dn,"placeholder")?Dn:e).placeholder}function oo(){var e=Dn.iteratee||tl;return e=e===tl?Er:e,arguments.length?e(arguments[0],arguments[1]):e}function ao(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function so(e){for(var t=_s(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,xo(i)]}return t}function lo(t,n){var r=function(t,n){return null==t?e:t[n]}(t,n);return Pr(r)?r:e}var co=Bt?function(e){return null==e?[]:(e=ke(e),Tt(Bt(e),function(t){return We.call(e,t)}))}:dl,uo=Bt?function(e){for(var t=[];e;)Qt(t,co(e)),e=qe(e);return t}:dl,ho=xr;function po(e,t,n){for(var r=-1,i=(t=mi(t,e)).length,o=!1;++r<i;){var a=Bo(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Ga(i)&&mo(a,i)&&(Fa(e)||Xa(e))}function fo(e){return"function"!=typeof e.constructor||bo(e)?{}:Mn(qe(e))}function go(e){return Fa(e)||Xa(e)||!!(Ge&&e&&e[Ge])}function mo(e,t){var n=typeof e;return!!(t=null==t?l:t)&&("number"==n||"symbol"!=n&&fe.test(e))&&e>-1&&e%1==0&&e<t}function Oo(e,t,n){if(!Ha(n))return!1;var r=typeof t;return!!("number"==r?za(n)&&mo(t,n.length):"string"==r&&t in n)&&Da(n[t],e)}function Ao(e,t){if(Fa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!os(e))||G.test(e)||!Z.test(e)||null!=t&&e in ke(t)}function yo(e){var t=ro(e),n=Dn[t];if("function"!=typeof n||!(t in Fn.prototype))return!1;if(e===n)return!0;var r=no(n);return!!r&&e===r[0]}(bn&&ho(new bn(new ArrayBuffer(1)))!=C||xn&&ho(new xn)!=y||wn&&ho(wn.resolve())!=x||kn&&ho(new kn)!=k||Sn&&ho(new Sn)!=$)&&(ho=function(t){var n=xr(t),r=n==b?t.constructor:e,i=r?Io(r):"";if(i)switch(i){case Cn:return C;case Qn:return y;case Pn:return x;case En:return k;case Rn:return $}return n});var vo=Pe?Ya:pl;function bo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Qe)}function xo(e){return e==e&&!Ha(e)}function wo(t,n){return function(r){return null!=r&&r[t]===n&&(n!==e||t in ke(r))}}function ko(t,n,r){return n=gn(n===e?t.length-1:n,0),function(){for(var e=arguments,i=-1,o=gn(e.length-n,0),a=ye(o);++i<o;)a[i]=e[n+i];i=-1;for(var s=ye(n+1);++i<n;)s[i]=e[i];return s[n]=r(a),bt(t,this,s)}}function So(e,t){return t.length<2?e:vr(e,ei(t,0,-1))}function To(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var $o=Po(Hr),_o=ht||function(e,t){return ct.setTimeout(e,t)},Co=Po(Kr);function Qo(e,t,n){var r=t+"";return Co(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ne,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return wt(h,function(n){var r="_."+n[0];t&n[1]&&!$t(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(re);return t?t[1].split(ie):[]}(r),n)))}function Po(t){var n=0,r=0;return function(){var i=On(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(e,arguments)}}function Eo(t,n){var r=-1,i=t.length,o=i-1;for(n=n===e?i:n;++r<n;){var a=Vr(r,o),s=t[a];t[a]=t[r],t[r]=s}return t.length=n,t}var Ro=function(e){var t=Pa(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(H,function(e,n,r,i){t.push(r?i.replace(se,"$1"):n||e)}),t});function Bo(e){if("string"==typeof e||os(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Io(e){if(null!=e){try{return Ee.call(e)}catch(jk){}try{return e+""}catch(jk){}}return""}function Lo(e){if(e instanceof Fn)return e.clone();var t=new Xn(e.__wrapped__,e.__chain__);return t.__actions__=Ti(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Do=jr(function(e,t){return qa(e)?lr(e,fr(t,1,qa,!0)):[]}),Mo=jr(function(t,n){var r=jo(n);return qa(r)&&(r=e),qa(t)?lr(t,fr(n,1,qa,!0),oo(r,2)):[]}),No=jr(function(t,n){var r=jo(n);return qa(r)&&(r=e),qa(t)?lr(t,fr(n,1,qa,!0),e,r):[]});function Xo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:hs(n);return i<0&&(i=gn(r+i,0)),Lt(e,oo(t,3),i)}function Fo(t,n,r){var i=null==t?0:t.length;if(!i)return-1;var o=i-1;return r!==e&&(o=hs(r),o=r<0?gn(i+o,0):mn(o,i-1)),Lt(t,oo(n,3),o,!0)}function Uo(e){return null!=e&&e.length?fr(e,1):[]}function zo(t){return t&&t.length?t[0]:e}var qo=jr(function(e){var t=Ct(e,fi);return t.length&&t[0]===e[0]?Tr(t):[]}),Vo=jr(function(t){var n=jo(t),r=Ct(t,fi);return n===jo(r)?n=e:r.pop(),r.length&&r[0]===t[0]?Tr(r,oo(n,2)):[]}),Wo=jr(function(t){var n=jo(t),r=Ct(t,fi);return(n="function"==typeof n?n:e)&&r.pop(),r.length&&r[0]===t[0]?Tr(r,e,n):[]});function jo(t){var n=null==t?0:t.length;return n?t[n-1]:e}var Yo=jr(Zo);function Zo(e,t){return e&&e.length&&t&&t.length?zr(e,t):e}var Go=Ji(function(e,t){var n=null==e?0:e.length,r=rr(e,t);return qr(e,Ct(t,function(e){return mo(e,n)?+e:e}).sort(wi)),r});function Ho(e){return null==e?e:vn.call(e)}var Ko=jr(function(e){return si(fr(e,1,qa,!0))}),Jo=jr(function(t){var n=jo(t);return qa(n)&&(n=e),si(fr(t,1,qa,!0),oo(n,2))}),ea=jr(function(t){var n=jo(t);return n="function"==typeof n?n:e,si(fr(t,1,qa,!0),e,n)});function ta(e){if(!e||!e.length)return[];var t=0;return e=Tt(e,function(e){if(qa(e))return t=gn(e.length,t),!0}),Vt(t,function(t){return Ct(e,Ft(t))})}function na(t,n){if(!t||!t.length)return[];var r=ta(t);return null==n?r:Ct(r,function(t){return bt(n,e,t)})}var ra=jr(function(e,t){return qa(e)?lr(e,t):[]}),ia=jr(function(e){return di(Tt(e,qa))}),oa=jr(function(t){var n=jo(t);return qa(n)&&(n=e),di(Tt(t,qa),oo(n,2))}),aa=jr(function(t){var n=jo(t);return n="function"==typeof n?n:e,di(Tt(t,qa),e,n)}),sa=jr(ta),la=jr(function(t){var n=t.length,r=n>1?t[n-1]:e;return r="function"==typeof r?(t.pop(),r):e,na(t,r)});function ca(e){var t=Dn(e);return t.__chain__=!0,t}function ua(e,t){return t(e)}var ha=Ji(function(t){var n=t.length,r=n?t[0]:0,i=this.__wrapped__,o=function(e){return rr(e,t)};return!(n>1||this.__actions__.length)&&i instanceof Fn&&mo(r)?((i=i.slice(r,+r+(n?1:0))).__actions__.push({func:ua,args:[o],thisArg:e}),new Xn(i,this.__chain__).thru(function(t){return n&&!t.length&&t.push(e),t})):this.thru(o)}),da=_i(function(e,t,n){Re.call(e,n)?++e[n]:nr(e,n,1)}),pa=Ii(Xo),fa=Ii(Fo);function ga(e,t){return(Fa(e)?wt:cr)(e,oo(t,3))}function ma(e,t){return(Fa(e)?kt:ur)(e,oo(t,3))}var Oa=_i(function(e,t,n){Re.call(e,n)?e[n].push(t):nr(e,n,[t])}),Aa=jr(function(e,t,n){var r=-1,i="function"==typeof t,o=za(e)?ye(e.length):[];return cr(e,function(e){o[++r]=i?bt(t,e,n):$r(e,t,n)}),o}),ya=_i(function(e,t,n){nr(e,n,t)});function va(e,t){return(Fa(e)?Ct:Lr)(e,oo(t,3))}var ba=_i(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),xa=jr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Oo(e,t[0],t[1])?t=[]:n>2&&Oo(t[0],t[1],t[2])&&(t=[t[0]]),Fr(e,fr(t,1),[])}),wa=ut||function(){return ct.Date.now()};function ka(t,n,r){return n=r?e:n,n=t&&null==n?t.length:n,Yi(t,o,e,e,e,e,n)}function Sa(n,r){var i;if("function"!=typeof r)throw new $e(t);return n=hs(n),function(){return--n>0&&(i=r.apply(this,arguments)),n<=1&&(r=e),i}}var Ta=jr(function(e,t,n){var r=1;if(n.length){var o=on(n,io(Ta));r|=i}return Yi(e,r,t,n,o)}),$a=jr(function(e,t,n){var r=3;if(n.length){var o=on(n,io($a));r|=i}return Yi(t,r,e,n,o)});function _a(n,r,i){var o,a,s,l,c,u,h=0,d=!1,p=!1,f=!0;if("function"!=typeof n)throw new $e(t);function g(t){var r=o,i=a;return o=a=e,h=t,l=n.apply(i,r)}function m(t){var n=t-u;return u===e||n>=r||n<0||p&&t-h>=s}function O(){var e=wa();if(m(e))return A(e);c=_o(O,function(e){var t=r-(e-u);return p?mn(t,s-(e-h)):t}(e))}function A(t){return c=e,f&&o?g(t):(o=a=e,l)}function y(){var t=wa(),n=m(t);if(o=arguments,a=this,u=t,n){if(c===e)return function(e){return h=e,c=_o(O,r),d?g(e):l}(u);if(p)return yi(c),c=_o(O,r),g(u)}return c===e&&(c=_o(O,r)),l}return r=ps(r)||0,Ha(i)&&(d=!!i.leading,s=(p="maxWait"in i)?gn(ps(i.maxWait)||0,r):s,f="trailing"in i?!!i.trailing:f),y.cancel=function(){c!==e&&yi(c),h=0,o=u=a=c=e},y.flush=function(){return c===e?l:A(wa())},y}var Ca=jr(function(e,t){return sr(e,1,t)}),Qa=jr(function(e,t,n){return sr(e,ps(t)||0,n)});function Pa(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw new $e(t);var r=function(){var t=arguments,i=n?n.apply(this,t):t[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,t);return r.cache=o.set(i,a)||o,a};return r.cache=new(Pa.Cache||qn),r}function Ea(e){if("function"!=typeof e)throw new $e(t);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Pa.Cache=qn;var Ra=Oi(function(e,t){var n=(t=1==t.length&&Fa(t[0])?Ct(t[0],jt(oo())):Ct(fr(t,1),jt(oo()))).length;return jr(function(r){for(var i=-1,o=mn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return bt(e,this,r)})}),Ba=jr(function(t,n){var r=on(n,io(Ba));return Yi(t,i,e,n,r)}),Ia=jr(function(t,n){var r=on(n,io(Ia));return Yi(t,64,e,n,r)}),La=Ji(function(t,n){return Yi(t,a,e,e,e,n)});function Da(e,t){return e===t||e!=e&&t!=t}var Ma=zi(wr),Na=zi(function(e,t){return e>=t}),Xa=_r(function(){return arguments}())?_r:function(e){return Ka(e)&&Re.call(e,"callee")&&!We.call(e,"callee")},Fa=ye.isArray,Ua=gt?jt(gt):function(e){return Ka(e)&&xr(e)==_};function za(e){return null!=e&&Ga(e.length)&&!Ya(e)}function qa(e){return Ka(e)&&za(e)}var Va=Ut||pl,Wa=mt?jt(mt):function(e){return Ka(e)&&xr(e)==g};function ja(e){if(!Ka(e))return!1;var t=xr(e);return t==m||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ts(e)}function Ya(e){if(!Ha(e))return!1;var t=xr(e);return t==O||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Za(e){return"number"==typeof e&&e==hs(e)}function Ga(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=l}function Ha(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ka(e){return null!=e&&"object"==typeof e}var Ja=Ot?jt(Ot):function(e){return Ka(e)&&ho(e)==y};function es(e){return"number"==typeof e||Ka(e)&&xr(e)==v}function ts(e){if(!Ka(e)||xr(e)!=b)return!1;var t=qe(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ee.call(n)==De}var ns=At?jt(At):function(e){return Ka(e)&&xr(e)==w},rs=yt?jt(yt):function(e){return Ka(e)&&ho(e)==k};function is(e){return"string"==typeof e||!Fa(e)&&Ka(e)&&xr(e)==S}function os(e){return"symbol"==typeof e||Ka(e)&&xr(e)==T}var as=vt?jt(vt):function(e){return Ka(e)&&Ga(e.length)&&!!nt[xr(e)]},ss=zi(Ir),ls=zi(function(e,t){return e<=t});function cs(e){if(!e)return[];if(za(e))return is(e)?ln(e):Ti(e);if(Ke&&e[Ke])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ke]());var t=ho(e);return(t==y?nn:t==k?an:Ds)(e)}function us(e){return e?(e=ps(e))===s||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function hs(e){var t=us(e),n=t%1;return t==t?n?t-n:t:0}function ds(e){return e?ir(hs(e),0,u):0}function ps(e){if("number"==typeof e)return e;if(os(e))return c;if(Ha(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ha(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Wt(e);var n=he.test(e);return n||pe.test(e)?at(e.slice(2),n?2:8):ue.test(e)?c:+e}function fs(e){return $i(e,Cs(e))}function gs(e){return null==e?"":ai(e)}var ms=Ci(function(e,t){if(bo(t)||za(t))$i(t,_s(t),e);else for(var n in t)Re.call(t,n)&&Kn(e,n,t[n])}),Os=Ci(function(e,t){$i(t,Cs(t),e)}),As=Ci(function(e,t,n,r){$i(t,Cs(t),e,r)}),ys=Ci(function(e,t,n,r){$i(t,_s(t),e,r)}),vs=Ji(rr),bs=jr(function(t,n){t=ke(t);var r=-1,i=n.length,o=i>2?n[2]:e;for(o&&Oo(n[0],n[1],o)&&(i=1);++r<i;)for(var a=n[r],s=Cs(a),l=-1,c=s.length;++l<c;){var u=s[l],h=t[u];(h===e||Da(h,Qe[u])&&!Re.call(t,u))&&(t[u]=a[u])}return t}),xs=jr(function(t){return t.push(e,Gi),bt(Ps,e,t)});function ws(t,n,r){var i=null==t?e:vr(t,n);return i===e?r:i}function ks(e,t){return null!=e&&po(e,t,Sr)}var Ss=Mi(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),e[t]=n},Hs(el)),Ts=Mi(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),Re.call(e,t)?e[t].push(n):e[t]=[n]},oo),$s=jr($r);function _s(e){return za(e)?jn(e):Rr(e)}function Cs(e){return za(e)?jn(e,!0):Br(e)}var Qs=Ci(function(e,t,n){Nr(e,t,n)}),Ps=Ci(function(e,t,n,r){Nr(e,t,n,r)}),Es=Ji(function(e,t){var n={};if(null==e)return n;var r=!1;t=Ct(t,function(t){return t=mi(t,e),r||(r=t.length>1),t}),$i(e,to(e),n),r&&(n=or(n,7,Hi));for(var i=t.length;i--;)li(n,t[i]);return n}),Rs=Ji(function(e,t){return null==e?{}:function(e,t){return Ur(e,t,function(t,n){return ks(e,n)})}(e,t)});function Bs(e,t){if(null==e)return{};var n=Ct(to(e),function(e){return[e]});return t=oo(t),Ur(e,n,function(e,n){return t(e,n[0])})}var Is=ji(_s),Ls=ji(Cs);function Ds(e){return null==e?[]:Yt(e,_s(e))}var Ms=Ri(function(e,t,n){return t=t.toLowerCase(),e+(n?Ns(t):t)});function Ns(e){return js(gs(e).toLowerCase())}function Xs(e){return(e=gs(e))&&e.replace(ge,Kt).replace(Ze,"")}var Fs=Ri(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Us=Ri(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),zs=Ei("toLowerCase"),qs=Ri(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Vs=Ri(function(e,t,n){return e+(n?" ":"")+js(t)}),Ws=Ri(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),js=Ei("toUpperCase");function Ys(t,n,r){return t=gs(t),(n=r?e:n)===e?function(e){return Je.test(e)}(t)?function(e){return e.match(He)||[]}(t):function(e){return e.match(oe)||[]}(t):t.match(n)||[]}var Zs=jr(function(t,n){try{return bt(t,e,n)}catch(jk){return ja(jk)?jk:new be(jk)}}),Gs=Ji(function(e,t){return wt(t,function(t){t=Bo(t),nr(e,t,Ta(e[t],e))}),e});function Hs(e){return function(){return e}}var Ks=Li(),Js=Li(!0);function el(e){return e}function tl(e){return Er("function"==typeof e?e:or(e,1))}var nl=jr(function(e,t){return function(n){return $r(n,e,t)}}),rl=jr(function(e,t){return function(n){return $r(e,n,t)}});function il(e,t,n){var r=_s(t),i=yr(t,r);null!=n||Ha(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=yr(t,_s(t)));var o=!(Ha(n)&&"chain"in n&&!n.chain),a=Ya(e);return wt(i,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Ti(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Qt([this.value()],arguments))})}),e}function ol(){}var al=Xi(Ct),sl=Xi(St),ll=Xi(Rt);function cl(e){return Ao(e)?Ft(Bo(e)):function(e){return function(t){return vr(t,e)}}(e)}var ul=Ui(),hl=Ui(!0);function dl(){return[]}function pl(){return!1}var fl,gl=Ni(function(e,t){return e+t},0),ml=Vi("ceil"),Ol=Ni(function(e,t){return e/t},1),Al=Vi("floor"),yl=Ni(function(e,t){return e*t},1),vl=Vi("round"),bl=Ni(function(e,t){return e-t},0);return Dn.after=function(e,n){if("function"!=typeof n)throw new $e(t);return e=hs(e),function(){if(--e<1)return n.apply(this,arguments)}},Dn.ary=ka,Dn.assign=ms,Dn.assignIn=Os,Dn.assignInWith=As,Dn.assignWith=ys,Dn.at=vs,Dn.before=Sa,Dn.bind=Ta,Dn.bindAll=Gs,Dn.bindKey=$a,Dn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Fa(e)?e:[e]},Dn.chain=ca,Dn.chunk=function(t,n,r){n=(r?Oo(t,n,r):n===e)?1:gn(hs(n),0);var i=null==t?0:t.length;if(!i||n<1)return[];for(var o=0,a=0,s=ye(pt(i/n));o<i;)s[a++]=ei(t,o,o+=n);return s},Dn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Dn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=ye(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Qt(Fa(n)?Ti(n):[n],fr(t,1))},Dn.cond=function(e){var n=null==e?0:e.length,r=oo();return e=n?Ct(e,function(e){if("function"!=typeof e[1])throw new $e(t);return[r(e[0]),e[1]]}):[],jr(function(t){for(var r=-1;++r<n;){var i=e[r];if(bt(i[0],this,t))return bt(i[1],this,t)}})},Dn.conforms=function(e){return function(e){var t=_s(e);return function(n){return ar(n,e,t)}}(or(e,1))},Dn.constant=Hs,Dn.countBy=da,Dn.create=function(e,t){var n=Mn(e);return null==t?n:tr(n,t)},Dn.curry=function t(n,r,i){var o=Yi(n,8,e,e,e,e,e,r=i?e:r);return o.placeholder=t.placeholder,o},Dn.curryRight=function t(n,r,i){var o=Yi(n,16,e,e,e,e,e,r=i?e:r);return o.placeholder=t.placeholder,o},Dn.debounce=_a,Dn.defaults=bs,Dn.defaultsDeep=xs,Dn.defer=Ca,Dn.delay=Qa,Dn.difference=Do,Dn.differenceBy=Mo,Dn.differenceWith=No,Dn.drop=function(t,n,r){var i=null==t?0:t.length;return i?ei(t,(n=r||n===e?1:hs(n))<0?0:n,i):[]},Dn.dropRight=function(t,n,r){var i=null==t?0:t.length;return i?ei(t,0,(n=i-(n=r||n===e?1:hs(n)))<0?0:n):[]},Dn.dropRightWhile=function(e,t){return e&&e.length?ui(e,oo(t,3),!0,!0):[]},Dn.dropWhile=function(e,t){return e&&e.length?ui(e,oo(t,3),!0):[]},Dn.fill=function(t,n,r,i){var o=null==t?0:t.length;return o?(r&&"number"!=typeof r&&Oo(t,n,r)&&(r=0,i=o),function(t,n,r,i){var o=t.length;for((r=hs(r))<0&&(r=-r>o?0:o+r),(i=i===e||i>o?o:hs(i))<0&&(i+=o),i=r>i?0:ds(i);r<i;)t[r++]=n;return t}(t,n,r,i)):[]},Dn.filter=function(e,t){return(Fa(e)?Tt:pr)(e,oo(t,3))},Dn.flatMap=function(e,t){return fr(va(e,t),1)},Dn.flatMapDeep=function(e,t){return fr(va(e,t),s)},Dn.flatMapDepth=function(t,n,r){return r=r===e?1:hs(r),fr(va(t,n),r)},Dn.flatten=Uo,Dn.flattenDeep=function(e){return null!=e&&e.length?fr(e,s):[]},Dn.flattenDepth=function(t,n){return null!=t&&t.length?fr(t,n=n===e?1:hs(n)):[]},Dn.flip=function(e){return Yi(e,512)},Dn.flow=Ks,Dn.flowRight=Js,Dn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];nr(r,i[0],i[1])}return r},Dn.functions=function(e){return null==e?[]:yr(e,_s(e))},Dn.functionsIn=function(e){return null==e?[]:yr(e,Cs(e))},Dn.groupBy=Oa,Dn.initial=function(e){return null!=e&&e.length?ei(e,0,-1):[]},Dn.intersection=qo,Dn.intersectionBy=Vo,Dn.intersectionWith=Wo,Dn.invert=Ss,Dn.invertBy=Ts,Dn.invokeMap=Aa,Dn.iteratee=tl,Dn.keyBy=ya,Dn.keys=_s,Dn.keysIn=Cs,Dn.map=va,Dn.mapKeys=function(e,t){var n={};return t=oo(t,3),Or(e,function(e,r,i){nr(n,t(e,r,i),e)}),n},Dn.mapValues=function(e,t){var n={};return t=oo(t,3),Or(e,function(e,r,i){nr(n,r,t(e,r,i))}),n},Dn.matches=function(e){return Dr(or(e,1))},Dn.matchesProperty=function(e,t){return Mr(e,or(t,1))},Dn.memoize=Pa,Dn.merge=Qs,Dn.mergeWith=Ps,Dn.method=nl,Dn.methodOf=rl,Dn.mixin=il,Dn.negate=Ea,Dn.nthArg=function(e){return e=hs(e),jr(function(t){return Xr(t,e)})},Dn.omit=Es,Dn.omitBy=function(e,t){return Bs(e,Ea(oo(t)))},Dn.once=function(e){return Sa(2,e)},Dn.orderBy=function(t,n,r,i){return null==t?[]:(Fa(n)||(n=null==n?[]:[n]),Fa(r=i?e:r)||(r=null==r?[]:[r]),Fr(t,n,r))},Dn.over=al,Dn.overArgs=Ra,Dn.overEvery=sl,Dn.overSome=ll,Dn.partial=Ba,Dn.partialRight=Ia,Dn.partition=ba,Dn.pick=Rs,Dn.pickBy=Bs,Dn.property=cl,Dn.propertyOf=function(t){return function(n){return null==t?e:vr(t,n)}},Dn.pull=Yo,Dn.pullAll=Zo,Dn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?zr(e,t,oo(n,2)):e},Dn.pullAllWith=function(t,n,r){return t&&t.length&&n&&n.length?zr(t,n,e,r):t},Dn.pullAt=Go,Dn.range=ul,Dn.rangeRight=hl,Dn.rearg=La,Dn.reject=function(e,t){return(Fa(e)?Tt:pr)(e,Ea(oo(t,3)))},Dn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=oo(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return qr(e,i),n},Dn.rest=function(n,r){if("function"!=typeof n)throw new $e(t);return jr(n,r=r===e?r:hs(r))},Dn.reverse=Ho,Dn.sampleSize=function(t,n,r){return n=(r?Oo(t,n,r):n===e)?1:hs(n),(Fa(t)?Zn:Zr)(t,n)},Dn.set=function(e,t,n){return null==e?e:Gr(e,t,n)},Dn.setWith=function(t,n,r,i){return i="function"==typeof i?i:e,null==t?t:Gr(t,n,r,i)},Dn.shuffle=function(e){return(Fa(e)?Gn:Jr)(e)},Dn.slice=function(t,n,r){var i=null==t?0:t.length;return i?(r&&"number"!=typeof r&&Oo(t,n,r)?(n=0,r=i):(n=null==n?0:hs(n),r=r===e?i:hs(r)),ei(t,n,r)):[]},Dn.sortBy=xa,Dn.sortedUniq=function(e){return e&&e.length?ii(e):[]},Dn.sortedUniqBy=function(e,t){return e&&e.length?ii(e,oo(t,2)):[]},Dn.split=function(t,n,r){return r&&"number"!=typeof r&&Oo(t,n,r)&&(n=r=e),(r=r===e?u:r>>>0)?(t=gs(t))&&("string"==typeof n||null!=n&&!ns(n))&&!(n=ai(n))&&tn(t)?Ai(ln(t),0,r):t.split(n,r):[]},Dn.spread=function(e,n){if("function"!=typeof e)throw new $e(t);return n=null==n?0:gn(hs(n),0),jr(function(t){var r=t[n],i=Ai(t,0,n);return r&&Qt(i,r),bt(e,this,i)})},Dn.tail=function(e){var t=null==e?0:e.length;return t?ei(e,1,t):[]},Dn.take=function(t,n,r){return t&&t.length?ei(t,0,(n=r||n===e?1:hs(n))<0?0:n):[]},Dn.takeRight=function(t,n,r){var i=null==t?0:t.length;return i?ei(t,(n=i-(n=r||n===e?1:hs(n)))<0?0:n,i):[]},Dn.takeRightWhile=function(e,t){return e&&e.length?ui(e,oo(t,3),!1,!0):[]},Dn.takeWhile=function(e,t){return e&&e.length?ui(e,oo(t,3)):[]},Dn.tap=function(e,t){return t(e),e},Dn.throttle=function(e,n,r){var i=!0,o=!0;if("function"!=typeof e)throw new $e(t);return Ha(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),_a(e,n,{leading:i,maxWait:n,trailing:o})},Dn.thru=ua,Dn.toArray=cs,Dn.toPairs=Is,Dn.toPairsIn=Ls,Dn.toPath=function(e){return Fa(e)?Ct(e,Bo):os(e)?[e]:Ti(Ro(gs(e)))},Dn.toPlainObject=fs,Dn.transform=function(e,t,n){var r=Fa(e),i=r||Va(e)||as(e);if(t=oo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Ha(e)&&Ya(o)?Mn(qe(e)):{}}return(i?wt:Or)(e,function(e,r,i){return t(n,e,r,i)}),n},Dn.unary=function(e){return ka(e,1)},Dn.union=Ko,Dn.unionBy=Jo,Dn.unionWith=ea,Dn.uniq=function(e){return e&&e.length?si(e):[]},Dn.uniqBy=function(e,t){return e&&e.length?si(e,oo(t,2)):[]},Dn.uniqWith=function(t,n){return n="function"==typeof n?n:e,t&&t.length?si(t,e,n):[]},Dn.unset=function(e,t){return null==e||li(e,t)},Dn.unzip=ta,Dn.unzipWith=na,Dn.update=function(e,t,n){return null==e?e:ci(e,t,gi(n))},Dn.updateWith=function(t,n,r,i){return i="function"==typeof i?i:e,null==t?t:ci(t,n,gi(r),i)},Dn.values=Ds,Dn.valuesIn=function(e){return null==e?[]:Yt(e,Cs(e))},Dn.without=ra,Dn.words=Ys,Dn.wrap=function(e,t){return Ba(gi(t),e)},Dn.xor=ia,Dn.xorBy=oa,Dn.xorWith=aa,Dn.zip=sa,Dn.zipObject=function(e,t){return pi(e||[],t||[],Kn)},Dn.zipObjectDeep=function(e,t){return pi(e||[],t||[],Gr)},Dn.zipWith=la,Dn.entries=Is,Dn.entriesIn=Ls,Dn.extend=Os,Dn.extendWith=As,il(Dn,Dn),Dn.add=gl,Dn.attempt=Zs,Dn.camelCase=Ms,Dn.capitalize=Ns,Dn.ceil=ml,Dn.clamp=function(t,n,r){return r===e&&(r=n,n=e),r!==e&&(r=(r=ps(r))==r?r:0),n!==e&&(n=(n=ps(n))==n?n:0),ir(ps(t),n,r)},Dn.clone=function(e){return or(e,4)},Dn.cloneDeep=function(e){return or(e,5)},Dn.cloneDeepWith=function(t,n){return or(t,5,n="function"==typeof n?n:e)},Dn.cloneWith=function(t,n){return or(t,4,n="function"==typeof n?n:e)},Dn.conformsTo=function(e,t){return null==t||ar(e,t,_s(t))},Dn.deburr=Xs,Dn.defaultTo=function(e,t){return null==e||e!=e?t:e},Dn.divide=Ol,Dn.endsWith=function(t,n,r){t=gs(t),n=ai(n);var i=t.length,o=r=r===e?i:ir(hs(r),0,i);return(r-=n.length)>=0&&t.slice(r,o)==n},Dn.eq=Da,Dn.escape=function(e){return(e=gs(e))&&V.test(e)?e.replace(z,Jt):e},Dn.escapeRegExp=function(e){return(e=gs(e))&&J.test(e)?e.replace(K,"\\$&"):e},Dn.every=function(t,n,r){var i=Fa(t)?St:hr;return r&&Oo(t,n,r)&&(n=e),i(t,oo(n,3))},Dn.find=pa,Dn.findIndex=Xo,Dn.findKey=function(e,t){return It(e,oo(t,3),Or)},Dn.findLast=fa,Dn.findLastIndex=Fo,Dn.findLastKey=function(e,t){return It(e,oo(t,3),Ar)},Dn.floor=Al,Dn.forEach=ga,Dn.forEachRight=ma,Dn.forIn=function(e,t){return null==e?e:gr(e,oo(t,3),Cs)},Dn.forInRight=function(e,t){return null==e?e:mr(e,oo(t,3),Cs)},Dn.forOwn=function(e,t){return e&&Or(e,oo(t,3))},Dn.forOwnRight=function(e,t){return e&&Ar(e,oo(t,3))},Dn.get=ws,Dn.gt=Ma,Dn.gte=Na,Dn.has=function(e,t){return null!=e&&po(e,t,kr)},Dn.hasIn=ks,Dn.head=zo,Dn.identity=el,Dn.includes=function(e,t,n,r){e=za(e)?e:Ds(e),n=n&&!r?hs(n):0;var i=e.length;return n<0&&(n=gn(i+n,0)),is(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Dt(e,t,n)>-1},Dn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:hs(n);return i<0&&(i=gn(r+i,0)),Dt(e,t,i)},Dn.inRange=function(t,n,r){return n=us(n),r===e?(r=n,n=0):r=us(r),function(e,t,n){return e>=mn(t,n)&&e<gn(t,n)}(t=ps(t),n,r)},Dn.invoke=$s,Dn.isArguments=Xa,Dn.isArray=Fa,Dn.isArrayBuffer=Ua,Dn.isArrayLike=za,Dn.isArrayLikeObject=qa,Dn.isBoolean=function(e){return!0===e||!1===e||Ka(e)&&xr(e)==f},Dn.isBuffer=Va,Dn.isDate=Wa,Dn.isElement=function(e){return Ka(e)&&1===e.nodeType&&!ts(e)},Dn.isEmpty=function(e){if(null==e)return!0;if(za(e)&&(Fa(e)||"string"==typeof e||"function"==typeof e.splice||Va(e)||as(e)||Xa(e)))return!e.length;var t=ho(e);if(t==y||t==k)return!e.size;if(bo(e))return!Rr(e).length;for(var n in e)if(Re.call(e,n))return!1;return!0},Dn.isEqual=function(e,t){return Cr(e,t)},Dn.isEqualWith=function(t,n,r){var i=(r="function"==typeof r?r:e)?r(t,n):e;return i===e?Cr(t,n,e,r):!!i},Dn.isError=ja,Dn.isFinite=function(e){return"number"==typeof e&&dn(e)},Dn.isFunction=Ya,Dn.isInteger=Za,Dn.isLength=Ga,Dn.isMap=Ja,Dn.isMatch=function(e,t){return e===t||Qr(e,t,so(t))},Dn.isMatchWith=function(t,n,r){return r="function"==typeof r?r:e,Qr(t,n,so(n),r)},Dn.isNaN=function(e){return es(e)&&e!=+e},Dn.isNative=function(e){if(vo(e))throw new be("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pr(e)},Dn.isNil=function(e){return null==e},Dn.isNull=function(e){return null===e},Dn.isNumber=es,Dn.isObject=Ha,Dn.isObjectLike=Ka,Dn.isPlainObject=ts,Dn.isRegExp=ns,Dn.isSafeInteger=function(e){return Za(e)&&e>=-9007199254740991&&e<=l},Dn.isSet=rs,Dn.isString=is,Dn.isSymbol=os,Dn.isTypedArray=as,Dn.isUndefined=function(t){return t===e},Dn.isWeakMap=function(e){return Ka(e)&&ho(e)==$},Dn.isWeakSet=function(e){return Ka(e)&&"[object WeakSet]"==xr(e)},Dn.join=function(e,t){return null==e?"":pn.call(e,t)},Dn.kebabCase=Fs,Dn.last=jo,Dn.lastIndexOf=function(t,n,r){var i=null==t?0:t.length;if(!i)return-1;var o=i;return r!==e&&(o=(o=hs(r))<0?gn(i+o,0):mn(o,i-1)),n==n?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(t,n,o):Lt(t,Nt,o,!0)},Dn.lowerCase=Us,Dn.lowerFirst=zs,Dn.lt=ss,Dn.lte=ls,Dn.max=function(t){return t&&t.length?dr(t,el,wr):e},Dn.maxBy=function(t,n){return t&&t.length?dr(t,oo(n,2),wr):e},Dn.mean=function(e){return Xt(e,el)},Dn.meanBy=function(e,t){return Xt(e,oo(t,2))},Dn.min=function(t){return t&&t.length?dr(t,el,Ir):e},Dn.minBy=function(t,n){return t&&t.length?dr(t,oo(n,2),Ir):e},Dn.stubArray=dl,Dn.stubFalse=pl,Dn.stubObject=function(){return{}},Dn.stubString=function(){return""},Dn.stubTrue=function(){return!0},Dn.multiply=yl,Dn.nth=function(t,n){return t&&t.length?Xr(t,hs(n)):e},Dn.noConflict=function(){return ct._===this&&(ct._=Me),this},Dn.noop=ol,Dn.now=wa,Dn.pad=function(e,t,n){e=gs(e);var r=(t=hs(t))?sn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Fi(ft(i),n)+e+Fi(pt(i),n)},Dn.padEnd=function(e,t,n){e=gs(e);var r=(t=hs(t))?sn(e):0;return t&&r<t?e+Fi(t-r,n):e},Dn.padStart=function(e,t,n){e=gs(e);var r=(t=hs(t))?sn(e):0;return t&&r<t?Fi(t-r,n)+e:e},Dn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),An(gs(e).replace(ee,""),t||0)},Dn.random=function(t,n,r){if(r&&"boolean"!=typeof r&&Oo(t,n,r)&&(n=r=e),r===e&&("boolean"==typeof n?(r=n,n=e):"boolean"==typeof t&&(r=t,t=e)),t===e&&n===e?(t=0,n=1):(t=us(t),n===e?(n=t,t=0):n=us(n)),t>n){var i=t;t=n,n=i}if(r||t%1||n%1){var o=yn();return mn(t+o*(n-t+ot("1e-"+((o+"").length-1))),n)}return Vr(t,n)},Dn.reduce=function(e,t,n){var r=Fa(e)?Pt:zt,i=arguments.length<3;return r(e,oo(t,4),n,i,cr)},Dn.reduceRight=function(e,t,n){var r=Fa(e)?Et:zt,i=arguments.length<3;return r(e,oo(t,4),n,i,ur)},Dn.repeat=function(t,n,r){return n=(r?Oo(t,n,r):n===e)?1:hs(n),Wr(gs(t),n)},Dn.replace=function(){var e=arguments,t=gs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Dn.result=function(t,n,r){var i=-1,o=(n=mi(n,t)).length;for(o||(o=1,t=e);++i<o;){var a=null==t?e:t[Bo(n[i])];a===e&&(i=o,a=r),t=Ya(a)?a.call(t):a}return t},Dn.round=vl,Dn.runInContext=te,Dn.sample=function(e){return(Fa(e)?Yn:Yr)(e)},Dn.size=function(e){if(null==e)return 0;if(za(e))return is(e)?sn(e):e.length;var t=ho(e);return t==y||t==k?e.size:Rr(e).length},Dn.snakeCase=qs,Dn.some=function(t,n,r){var i=Fa(t)?Rt:ti;return r&&Oo(t,n,r)&&(n=e),i(t,oo(n,3))},Dn.sortedIndex=function(e,t){return ni(e,t)},Dn.sortedIndexBy=function(e,t,n){return ri(e,t,oo(n,2))},Dn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ni(e,t);if(r<n&&Da(e[r],t))return r}return-1},Dn.sortedLastIndex=function(e,t){return ni(e,t,!0)},Dn.sortedLastIndexBy=function(e,t,n){return ri(e,t,oo(n,2),!0)},Dn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ni(e,t,!0)-1;if(Da(e[n],t))return n}return-1},Dn.startCase=Vs,Dn.startsWith=function(e,t,n){return e=gs(e),n=null==n?0:ir(hs(n),0,e.length),t=ai(t),e.slice(n,n+t.length)==t},Dn.subtract=bl,Dn.sum=function(e){return e&&e.length?qt(e,el):0},Dn.sumBy=function(e,t){return e&&e.length?qt(e,oo(t,2)):0},Dn.template=function(t,n,r){var i=Dn.templateSettings;r&&Oo(t,n,r)&&(n=e),t=gs(t),n=ys({},n,i,Zi);var o=ys({},n.imports,i.imports,Zi),a=_s(o),s=Yt(o,a);wt(a,function(e){if(ae.test(e))throw new be("Invalid `imports` option passed into `_.template`")});var l,c,u=0,h=n.interpolate||me,d="__p += '",p=Se((n.escape||me).source+"|"+h.source+"|"+(h===Y?le:me).source+"|"+(n.evaluate||me).source+"|$","g"),f="//# sourceURL="+(Re.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++tt+"]")+"\n";t.replace(p,function(e,n,r,i,o,a){return r||(r=i),d+=t.slice(u,a).replace(Oe,en),n&&(l=!0,d+="' +\n__e("+n+") +\n'"),o&&(c=!0,d+="';\n"+o+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=a+e.length,e}),d+="';\n";var g=Re.call(n,"variable")&&n.variable;if(g){if(ae.test(g))throw new be("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(c?d.replace(N,""):d).replace(X,"$1").replace(F,"$1;"),d="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(l?", __e = _.escape":"")+(c?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=Zs(function(){return xe(a,f+"return "+d).apply(e,s)});if(m.source=d,ja(m))throw m;return m},Dn.times=function(e,t){if((e=hs(e))<1||e>l)return[];var n=u,r=mn(e,u);t=oo(t),e-=u;for(var i=Vt(r,t);++n<e;)t(n);return i},Dn.toFinite=us,Dn.toInteger=hs,Dn.toLength=ds,Dn.toLower=function(e){return gs(e).toLowerCase()},Dn.toNumber=ps,Dn.toSafeInteger=function(e){return e?ir(hs(e),-9007199254740991,l):0===e?e:0},Dn.toString=gs,Dn.toUpper=function(e){return gs(e).toUpperCase()},Dn.trim=function(t,n,r){if((t=gs(t))&&(r||n===e))return Wt(t);if(!t||!(n=ai(n)))return t;var i=ln(t),o=ln(n);return Ai(i,Gt(i,o),Ht(i,o)+1).join("")},Dn.trimEnd=function(t,n,r){if((t=gs(t))&&(r||n===e))return t.slice(0,cn(t)+1);if(!t||!(n=ai(n)))return t;var i=ln(t);return Ai(i,0,Ht(i,ln(n))+1).join("")},Dn.trimStart=function(t,n,r){if((t=gs(t))&&(r||n===e))return t.replace(ee,"");if(!t||!(n=ai(n)))return t;var i=ln(t);return Ai(i,Gt(i,ln(n))).join("")},Dn.truncate=function(t,n){var r=30,i="...";if(Ha(n)){var o="separator"in n?n.separator:o;r="length"in n?hs(n.length):r,i="omission"in n?ai(n.omission):i}var a=(t=gs(t)).length;if(tn(t)){var s=ln(t);a=s.length}if(r>=a)return t;var l=r-sn(i);if(l<1)return i;var c=s?Ai(s,0,l).join(""):t.slice(0,l);if(o===e)return c+i;if(s&&(l+=c.length-l),ns(o)){if(t.slice(l).search(o)){var u,h=c;for(o.global||(o=Se(o.source,gs(ce.exec(o))+"g")),o.lastIndex=0;u=o.exec(h);)var d=u.index;c=c.slice(0,d===e?l:d)}}else if(t.indexOf(ai(o),l)!=l){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+i},Dn.unescape=function(e){return(e=gs(e))&&q.test(e)?e.replace(U,un):e},Dn.uniqueId=function(e){var t=++Be;return gs(e)+t},Dn.upperCase=Ws,Dn.upperFirst=js,Dn.each=ga,Dn.eachRight=ma,Dn.first=zo,il(Dn,(fl={},Or(Dn,function(e,t){Re.call(Dn.prototype,t)||(fl[t]=e)}),fl),{chain:!1}),Dn.VERSION="4.18.1",wt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Dn[e].placeholder=Dn}),wt(["drop","take"],function(t,n){Fn.prototype[t]=function(r){r=r===e?1:gn(hs(r),0);var i=this.__filtered__&&!n?new Fn(this):this.clone();return i.__filtered__?i.__takeCount__=mn(r,i.__takeCount__):i.__views__.push({size:mn(r,u),type:t+(i.__dir__<0?"Right":"")}),i},Fn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),wt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;Fn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:oo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),wt(["head","last"],function(e,t){var n="take"+(t?"Right":"");Fn.prototype[e]=function(){return this[n](1).value()[0]}}),wt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Fn.prototype[e]=function(){return this.__filtered__?new Fn(this):this[n](1)}}),Fn.prototype.compact=function(){return this.filter(el)},Fn.prototype.find=function(e){return this.filter(e).head()},Fn.prototype.findLast=function(e){return this.reverse().find(e)},Fn.prototype.invokeMap=jr(function(e,t){return"function"==typeof e?new Fn(this):this.map(function(n){return $r(n,e,t)})}),Fn.prototype.reject=function(e){return this.filter(Ea(oo(e)))},Fn.prototype.slice=function(t,n){t=hs(t);var r=this;return r.__filtered__&&(t>0||n<0)?new Fn(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),n!==e&&(r=(n=hs(n))<0?r.dropRight(-n):r.take(n-t)),r)},Fn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Fn.prototype.toArray=function(){return this.take(u)},Or(Fn.prototype,function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),o=Dn[i?"take"+("last"==n?"Right":""):n],a=i||/^find/.test(n);o&&(Dn.prototype[n]=function(){var n=this.__wrapped__,s=i?[1]:arguments,l=n instanceof Fn,c=s[0],u=l||Fa(n),h=function(e){var t=o.apply(Dn,Qt([e],s));return i&&d?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(l=u=!1);var d=this.__chain__,p=!!this.__actions__.length,f=a&&!d,g=l&&!p;if(!a&&u){n=g?n:new Fn(this);var m=t.apply(n,s);return m.__actions__.push({func:ua,args:[h],thisArg:e}),new Xn(m,d)}return f&&g?t.apply(this,s):(m=this.thru(h),f?i?m.value()[0]:m.value():m)})}),wt(["pop","push","shift","sort","splice","unshift"],function(e){var t=_e[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Dn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Fa(i)?i:[],e)}return this[n](function(n){return t.apply(Fa(n)?n:[],e)})}}),Or(Fn.prototype,function(e,t){var n=Dn[t];if(n){var r=n.name+"";Re.call(_n,r)||(_n[r]=[]),_n[r].push({name:t,func:n})}}),_n[Di(e,2).name]=[{name:"wrapper",func:e}],Fn.prototype.clone=function(){var e=new Fn(this.__wrapped__);return e.__actions__=Ti(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ti(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ti(this.__views__),e},Fn.prototype.reverse=function(){if(this.__filtered__){var e=new Fn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Fn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Fa(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=mn(t,e+a);break;case"takeRight":e=gn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,h=u.length,d=0,p=mn(l,this.__takeCount__);if(!n||!r&&i==l&&p==l)return hi(e,this.__actions__);var f=[];e:for(;l--&&d<p;){for(var g=-1,m=e[c+=t];++g<h;){var O=u[g],A=O.iteratee,y=O.type,v=A(m);if(2==y)m=v;else if(!v){if(1==y)continue e;break e}}f[d++]=m}return f},Dn.prototype.at=ha,Dn.prototype.chain=function(){return ca(this)},Dn.prototype.commit=function(){return new Xn(this.value(),this.__chain__)},Dn.prototype.next=function(){this.__values__===e&&(this.__values__=cs(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?e:this.__values__[this.__index__++]}},Dn.prototype.plant=function(t){for(var n,r=this;r instanceof Nn;){var i=Lo(r);i.__index__=0,i.__values__=e,n?o.__wrapped__=i:n=i;var o=i;r=r.__wrapped__}return o.__wrapped__=t,n},Dn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Fn){var n=t;return this.__actions__.length&&(n=new Fn(this)),(n=n.reverse()).__actions__.push({func:ua,args:[Ho],thisArg:e}),new Xn(n,this.__chain__)}return this.thru(Ho)},Dn.prototype.toJSON=Dn.prototype.valueOf=Dn.prototype.value=function(){return hi(this.__wrapped__,this.__actions__)},Dn.prototype.first=Dn.prototype.head,Ke&&(Dn.prototype[Ke]=function(){return this}),Dn}();ht?((ht.exports=hn)._=hn,ut._=hn):ct._=hn}.call(VT.exports)),VT.exports),GT={exports:{}};var HT=(YT||(YT=1,GT.exports=function(e,t,n){e=e||{};var r=t.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(e,t,n,i){return r.fromToBase(e,t,n,i)}n.en.relativeTime=i,r.fromToBase=function(t,r,o,a,s){for(var l,c,u,h=o.$locale().relativeTime||i,d=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],p=d.length,f=0;f<p;f+=1){var g=d[f];g.d&&(l=a?n(t).diff(o,g.d,!0):o.diff(t,g.d,!0));var m=(e.rounding||Math.round)(Math.abs(l));if(u=l>0,m<=g.r||!g.r){m<=1&&f>0&&(g=d[f-1]);var O=h[g.l];s&&(m=s(""+m)),c="string"==typeof O?O.replace("%d",m):O(m,r,g.l,u);break}}if(r)return c;var A=u?h.future:h.past;return"function"==typeof A?A(c):A.replace("%s",c)},r.to=function(e,t){return o(e,t,this,!0)},r.from=function(e,t){return o(e,t,this)};var a=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(a(this),e)},r.fromNow=function(e){return this.from(a(this),e)}}),GT.exports);const KT=rk(HT);var JT,e$={exports:{}};var t$=(JT||(JT=1,e$.exports=function(){var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,o){var a=i.prototype;o.utc=function(e){return new i({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=a.utcOffset;a.utcOffset=function(r,i){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&null===(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],o=i[0],a=60*+i[1]+ +i[2];return 0===a?0:"+"===o?a:-a}(r)))return this;var a=Math.abs(r)<=16?60*r:r;if(0===a)return this.utc(i);var s=this.clone();if(i)return s.$offset=a,s.$u=!1,s;var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(s=this.local().add(a+l,e)).$offset=a,s.$x.$localOffset=l,s};var u=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var h=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var d=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return d.call(this,e,t,n);var r=this.local(),i=o(e).local();return d.call(r,i,t,n)}}}()),e$.exports);const n$=rk(t$);var r$,i$={exports:{}};var o$=(r$||(r$=1,i$.exports=function(){var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,r,i){var o,a=function(e,n,r){void 0===r&&(r={});var i=new Date(e);return function(e,n){void 0===n&&(n={});var r=n.timeZoneName||"short",i=e+"|"+r,o=t[i];return o||(o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:r}),t[i]=o),o}(n,r).formatToParts(i)},s=function(t,n){for(var r=a(t,n),o=[],s=0;s<r.length;s+=1){var l=r[s],c=l.type,u=l.value,h=e[c];h>=0&&(o[h]=parseInt(u,10))}var d=o[3],p=24===d?0:d,f=o[0]+"-"+o[1]+"-"+o[2]+" "+p+":"+o[4]+":"+o[5]+":000",g=+t;return(i.utc(f).valueOf()-(g-=g%1e3))/6e4},l=r.prototype;l.tz=function(e,t){void 0===e&&(e=o);var n,r=this.utcOffset(),a=this.toDate(),s=a.toLocaleString("en-US",{timeZone:e}),l=Math.round((a-new Date(s))/1e3/60),c=15*-Math.round(a.getTimezoneOffset()/15)-l;if(Number(c)){if(n=i(s,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(c,!0),t){var u=n.utcOffset();n=n.add(r-u,"minute")}}else n=this.utcOffset(0,t);return n.$x.$timezone=e,n},l.offsetName=function(e){var t=this.$x.$timezone||i.tz.guess(),n=a(this.valueOf(),t,{timeZoneName:e}).find(function(e){return"timezonename"===e.type.toLowerCase()});return n&&n.value};var c=l.startOf;l.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t);var n=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return c.call(n,e,t).tz(this.$x.$timezone,!0)},i.tz=function(e,t,n){var r=n&&t,a=n||t||o,l=s(+i(),a);if("string"!=typeof e)return i(e).tz(a);var c=function(e,t,n){var r=e-60*t*1e3,i=s(r,n);if(t===i)return[r,t];var o=s(r-=60*(i-t)*1e3,n);return i===o?[r,i]:[e-60*Math.min(i,o)*1e3,Math.max(i,o)]}(i.utc(e,r).valueOf(),l,a),u=c[0],h=c[1],d=i(u).utcOffset(h);return d.$x.$timezone=a,d},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(e){o=e}}}()),i$.exports);const a$=rk(o$);var s$,l$={exports:{}};var c$=(s$||(s$=1,l$.exports=function(e,t,n){t.prototype.isBetween=function(e,t,r,i){var o=n(e),a=n(t),s="("===(i=i||"()")[0],l=")"===i[1];return(s?this.isAfter(o,r):!this.isBefore(o,r))&&(l?this.isBefore(a,r):!this.isAfter(a,r))||(s?this.isBefore(o,r):!this.isAfter(o,r))&&(l?this.isAfter(a,r):!this.isBefore(a,r))}}),l$.exports);const u$=rk(c$);var h$={exports:{}},d$={exports:{}},p$={};const f$=Symbol(""),g$=Symbol(""),m$=Symbol(""),O$=Symbol(""),A$=Symbol(""),y$=Symbol(""),v$=Symbol(""),b$=Symbol(""),x$=Symbol(""),w$=Symbol(""),k$=Symbol(""),S$=Symbol(""),T$=Symbol(""),$$=Symbol(""),_$=Symbol(""),C$=Symbol(""),Q$=Symbol(""),P$=Symbol(""),E$=Symbol(""),R$=Symbol(""),B$=Symbol(""),I$=Symbol(""),L$=Symbol(""),D$=Symbol(""),M$=Symbol(""),N$=Symbol(""),X$=Symbol(""),F$=Symbol(""),U$=Symbol(""),z$=Symbol(""),q$=Symbol(""),V$=Symbol(""),W$=Symbol(""),j$=Symbol(""),Y$=Symbol(""),Z$=Symbol(""),G$=Symbol(""),H$=Symbol(""),K$=Symbol(""),J$={[f$]:"Fragment",[g$]:"Teleport",[m$]:"Suspense",[O$]:"KeepAlive",[A$]:"BaseTransition",[y$]:"openBlock",[v$]:"createBlock",[b$]:"createElementBlock",[x$]:"createVNode",[w$]:"createElementVNode",[k$]:"createCommentVNode",[S$]:"createTextVNode",[T$]:"createStaticVNode",[$$]:"resolveComponent",[_$]:"resolveDynamicComponent",[C$]:"resolveDirective",[Q$]:"resolveFilter",[P$]:"withDirectives",[E$]:"renderList",[R$]:"renderSlot",[B$]:"createSlots",[I$]:"toDisplayString",[L$]:"mergeProps",[D$]:"normalizeClass",[M$]:"normalizeStyle",[N$]:"normalizeProps",[X$]:"guardReactiveProps",[F$]:"toHandlers",[U$]:"camelize",[z$]:"capitalize",[q$]:"toHandlerKey",[V$]:"setBlockTracking",[W$]:"pushScopeId",[j$]:"popScopeId",[Y$]:"withCtx",[Z$]:"unref",[G$]:"isRef",[H$]:"withMemo",[K$]:"isMemoSame"};function e_(e){Object.getOwnPropertySymbols(e).forEach(t=>{J$[t]=e[t]})}const t_={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function n_(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:t_}}function r_(e,t,n,r,i,o,a,s=!1,l=!1,c=!1,u=t_){return e&&(s?(e.helper(y$),e.helper(g_(e.inSSR,c))):e.helper(f_(e.inSSR,c)),a&&e.helper(P$)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:o,directives:a,isBlock:s,disableTracking:l,isComponent:c,loc:u}}function i_(e,t=t_){return{type:17,loc:t,elements:e}}function o_(e,t=t_){return{type:15,loc:t,properties:e}}function a_(e,t){return{type:16,loc:t_,key:br(e)?s_(e,!0):e,value:t}}function s_(e,t=!1,n=t_,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function l_(e,t=t_){return{type:8,loc:t,children:e}}function c_(e,t=[],n=t_){return{type:14,loc:n,callee:e,arguments:t}}function u_(e,t=void 0,n=!1,r=!1,i=t_){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function h_(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:t_}}function d_(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:t_}}function p_(e){return{type:21,body:e,loc:t_}}function f_(e,t){return e||t?x$:w$}function g_(e,t){return e||t?v$:b$}function m_(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(f_(r,e.isComponent)),t(y$),t(g_(r,e.isComponent)))}const O_=new Uint8Array([123,123]),A_=new Uint8Array([125,125]);function y_(e){return e>=97&&e<=122||e>=65&&e<=90}function v_(e){return 32===e||10===e||9===e||12===e||13===e}function b_(e){return 47===e||62===e||v_(e)}function x_(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const w_={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};const k_={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function S_(e,{compatConfig:t}){const n=t&&t[e];return"MODE"===e?n||3:n}function T_(e,t){const n=S_("MODE",t),r=S_(e,t);return 3===n?!0===r:!1!==r}function $_(e,t,n,...r){return T_(e,t)}function __(e){throw e}function C_(e){}function Q_(e,t,n,r){const i=new SyntaxError(String(`https://vuejs.org/error-reference/#compiler-${e}`));return i.code=e,i.loc=t,i}const P_={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '<' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '\x3c!--' in comment.",17:"Attribute name cannot contain U+0022 (\"), U+0027 ('), and U+003C (<).",18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",53:"v-bind with same-name shorthand only allows static argument.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:"v-model cannot be used on a prop, because local prop bindings are not writable.\nUse a v-bind binding combined with a v-on listener that emits update:x event instead.",45:"v-model cannot be used on a const binding because it is not writable.",46:"Error parsing JavaScript expression: ",47:"<KeepAlive> expects exactly one child component.",52:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",48:'"prefixIdentifiers" option is not supported in this build of compiler.',49:"ES module mode is not supported in this build of compiler.",50:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',51:'"scopeId" option is only supported in module mode.',54:""};function E_(e,t){const n="SwitchCase"===e.type?e.consequent:e.body;for(const r of n)if("VariableDeclaration"===r.type){if(r.declare)continue;for(const e of r.declarations)for(const n of L_(e.id))t(n)}else if("FunctionDeclaration"===r.type||"ClassDeclaration"===r.type){if(r.declare||!r.id)continue;t(r.id)}else R_(r)?B_(r,!0,t):"SwitchStatement"===r.type&&I_(r,!0,t)}function R_(e){return"ForOfStatement"===e.type||"ForInStatement"===e.type||"ForStatement"===e.type}function B_(e,t,n){const r="ForStatement"===e.type?e.init:e.left;if(r&&"VariableDeclaration"===r.type&&("var"===r.kind?t:!t))for(const i of r.declarations)for(const e of L_(i.id))n(e)}function I_(e,t,n){for(const r of e.cases){for(const e of r.consequent)if("VariableDeclaration"===e.type&&("var"===e.kind?t:!t))for(const t of e.declarations)for(const e of L_(t.id))n(e);E_(r,n)}}function L_(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"MemberExpression":let n=e;for(;"MemberExpression"===n.type;)n=n.object;t.push(n);break;case"ObjectPattern":for(const r of e.properties)"RestElement"===r.type?L_(r.argument,t):L_(r.value,t);break;case"ArrayPattern":e.elements.forEach(e=>{e&&L_(e,t)});break;case"RestElement":L_(e.argument,t);break;case"AssignmentPattern":L_(e.left,t)}return t}const D_=e=>e&&("ObjectProperty"===e.type||"ObjectMethod"===e.type)&&!e.computed,M_=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];const N_=e=>4===e.type&&e.isStatic;function X_(e){switch(e){case"Teleport":case"teleport":return g$;case"Suspense":case"suspense":return m$;case"KeepAlive":case"keep-alive":return O$;case"BaseTransition":case"base-transition":return A$}}const F_=/^$|^\d|[^\$\w\xA0-\uFFFF]/,U_=e=>!F_.test(e),z_=/[A-Za-z_$\xA0-\uFFFF]/,q_=/[\.\?\w$\xA0-\uFFFF]/,V_=/\s+[.[]\s*|\s*[.[]\s+/g,W_=e=>4===e.type?e.content:e.loc.source,j_=e=>{const t=W_(e).trim().replace(V_,e=>e.trim());let n=0,r=[],i=0,o=0,a=null;for(let s=0;s<t.length;s++){const e=t.charAt(s);switch(n){case 0:if("["===e)r.push(n),n=1,i++;else if("("===e)r.push(n),n=2,o++;else if(!(0===s?z_:q_).test(e))return!1;break;case 1:"'"===e||'"'===e||"`"===e?(r.push(n),n=3,a=e):"["===e?i++:"]"===e&&(--i||(n=r.pop()));break;case 2:if("'"===e||'"'===e||"`"===e)r.push(n),n=3,a=e;else if("("===e)o++;else if(")"===e){if(s===t.length-1)return!1;--o||(n=r.pop())}break;case 3:e===a&&(n=r.pop(),a=null)}}return!i&&!o},Y_=sr,Z_=j_,G_=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,H_=e=>G_.test(W_(e)),K_=sr,J_=H_;function eC(e,t,n=t.length){let r=0,i=-1;for(let o=0;o<n;o++)10===t.charCodeAt(o)&&(r++,i=o);return e.offset+=n,e.line+=r,e.column=-1===i?e.column+n:n-i,e}function tC(e,t,n=!1){for(let r=0;r<e.props.length;r++){const i=e.props[r];if(7===i.type&&(n||i.exp)&&(br(t)?i.name===t:t.test(i.name)))return i}}function nC(e,t,n=!1,r=!1){for(let i=0;i<e.props.length;i++){const o=e.props[i];if(6===o.type){if(n)continue;if(o.name===t&&(o.value||r))return o}else if("bind"===o.name&&(o.exp||r)&&rC(o.arg,t))return o}}function rC(e,t){return!(!e||!N_(e)||e.content!==t)}function iC(e){return e.props.some(e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic))}function oC(e){return 5===e.type||2===e.type}function aC(e){return 7===e.type&&"pre"===e.name}function sC(e){return 7===e.type&&"slot"===e.name}function lC(e){return 1===e.type&&3===e.tagType}function cC(e){return 1===e.type&&2===e.tagType}const uC=new Set([N$,X$]);function hC(e,t=[]){if(e&&!br(e)&&14===e.type){const n=e.callee;if(!br(n)&&uC.has(n))return hC(e.arguments[0],t.concat(e))}return[e,t]}function dC(e,t,n){let r,i,o=13===e.type?e.props:e.arguments[2],a=[];if(o&&!br(o)&&14===o.type){const e=hC(o);o=e[0],a=e[1],i=a[a.length-1]}if(null==o||br(o))r=o_([t]);else if(14===o.type){const e=o.arguments[0];br(e)||15!==e.type?o.callee===F$?r=c_(n.helper(L$),[o_([t]),o]):o.arguments.unshift(o_([t])):pC(t,e)||e.properties.unshift(t),!r&&(r=o)}else 15===o.type?(pC(t,o)||o.properties.unshift(t),r=o):(r=c_(n.helper(L$),[o_([t]),o]),i&&i.callee===X$&&(i=a[a.length-2]));13===e.type?i?i.arguments[0]=r:e.props=r:i?i.arguments[0]=r:e.arguments[2]=r}function pC(e,t){let n=!1;if(4===e.key.type){const r=e.key.content;n=t.properties.some(e=>4===e.key.type&&e.key.content===r)}return n}function fC(e,t){return`_${t}_${e.replace(/[^\w]/g,(t,n)=>"-"===t?"_":e.charCodeAt(n).toString())}`}function gC(e){return 14===e.type&&e.callee===H$?e.arguments[1].returns:e}const mC=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function OC(e){for(let t=0;t<e.length;t++)if(!v_(e.charCodeAt(t)))return!1;return!0}function AC(e){return 2===e.type&&OC(e.content)||12===e.type&&AC(e.content)}function yC(e){return 3===e.type||AC(e)}const vC={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:lr,isPreTag:lr,isIgnoreNewlineTag:lr,isCustomElement:lr,onError:__,onWarn:C_,comments:!1,prefixIdentifiers:!1};let bC=vC,xC=null,wC="",kC=null,SC=null,TC="",$C=-1,_C=-1,CC=0,QC=!1,PC=null;const EC=[],RC=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=O_,this.delimiterClose=A_,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=O_,this.delimiterClose=A_}getPos(e){let t=1,n=e+1;const r=this.newlines.length;let i=-1;if(r>100){let t=-1,n=r;for(;t+1<n;){const r=t+n>>>1;this.newlines[r]<e?t=r:n=r}i=t}else for(let o=r-1;o>=0;o--)if(e>this.newlines[o]){i=o;break}return i>=0&&(t=i+2,n=e-this.newlines[i]),{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?b_(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||v_(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart<t){const e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}return this.sectionStart=t+2,this.stateInClosingTagName(e),void(this.inRCDATA=!1)}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===w_.TitleEnd||this.currentSequence===w_.TextareaEnd&&!this.inSFCRoot?this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=Number(60===e)}stateCDATASequence(e){e===w_.Cdata[this.sequenceIndex]?++this.sequenceIndex===w_.Cdata.length&&(this.state=28,this.currentSequence=w_.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length;){const t=this.buffer.charCodeAt(this.index);if(10===t&&this.newlines.push(this.index),t===e)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===w_.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(e,t){this.enterRCDATA(e,t),this.state=31}enterRCDATA(e,t){this.inRCDATA=!0,this.currentSequence=e,this.sequenceIndex=t}stateBeforeTagName(e){33===e?(this.state=22,this.sectionStart=this.index+1):63===e?(this.state=24,this.sectionStart=this.index+1):y_(e)?(this.sectionStart=this.index,0===this.mode?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:this.state=116===e?30:115===e?29:6):47===e?this.state=8:(this.state=1,this.stateText(e))}stateInTagName(e){b_(e)&&this.handleTagName(e)}stateInSFCRootTagName(e){if(b_(e)){const t=this.buffer.slice(this.sectionStart,this.index);"template"!==t&&this.enterRCDATA(x_("</"+t),0),this.handleTagName(e)}}handleTagName(e){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)}stateBeforeClosingTagName(e){v_(e)||(62===e?(this.state=1,this.sectionStart=this.index+1):(this.state=y_(e)?9:27,this.sectionStart=this.index))}stateInClosingTagName(e){(62===e||v_(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){62===e&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(e){62===e?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):47===e?this.state=7:60===e&&47===this.peek()?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):v_(e)||this.handleAttrStart(e)}handleAttrStart(e){118===e&&45===this.peek()?(this.state=13,this.sectionStart=this.index):46===e||58===e||64===e||35===e?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(e){62===e?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):v_(e)||(this.state=11,this.stateBeforeAttrName(e))}stateInAttrName(e){(61===e||b_(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(e))}stateInDirName(e){61===e||b_(e)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(e)):58===e?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):46===e&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(e){61===e||b_(e)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(e)):91===e?this.state=15:46===e&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(e){93===e?this.state=14:(61===e||b_(e))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(e))}stateInDirModifier(e){61===e||b_(e)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(e)):46===e&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(e){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(e)}stateAfterAttrName(e){61===e?this.state=18:47===e||62===e?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)):v_(e)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(e))}stateBeforeAttrValue(e){34===e?(this.state=19,this.sectionStart=this.index+1):39===e?(this.state=20,this.sectionStart=this.index+1):v_(e)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(e))}handleInAttrValue(e,t){(e===t||this.fastForwardTo(t))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(34===t?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(e){this.handleInAttrValue(e,34)}stateInAttrValueSingleQuotes(e){this.handleInAttrValue(e,39)}stateInAttrValueNoQuotes(e){v_(e)||62===e?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(e)):39!==e&&60!==e&&61!==e&&96!==e||this.cbs.onerr(18,this.index)}stateBeforeDeclaration(e){91===e?(this.state=26,this.sequenceIndex=0):this.state=45===e?25:23}stateInDeclaration(e){(62===e||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(62===e||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(e){45===e?(this.state=28,this.currentSequence=w_.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(e){(62===e||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){e===w_.ScriptEnd[3]?this.startSpecial(w_.ScriptEnd,4):e===w_.StyleEnd[3]?this.startSpecial(w_.StyleEnd,4):(this.state=6,this.stateInTagName(e))}stateBeforeSpecialT(e){e===w_.TitleEnd[3]?this.startSpecial(w_.TitleEnd,4):e===w_.TextareaEnd[3]?this.startSpecial(w_.TextareaEnd,4):(this.state=6,this.stateInTagName(e))}startEntity(){}stateInEntity(){}parse(e){for(this.buffer=e;this.index<this.buffer.length;){const e=this.buffer.charCodeAt(this.index);switch(10===e&&33!==this.state&&this.newlines.push(this.index),this.state){case 1:this.stateText(e);break;case 2:this.stateInterpolationOpen(e);break;case 3:this.stateInterpolation(e);break;case 4:this.stateInterpolationClose(e);break;case 31:this.stateSpecialStartSequence(e);break;case 32:this.stateInRCDATA(e);break;case 26:this.stateCDATASequence(e);break;case 19:this.stateInAttrValueDoubleQuotes(e);break;case 12:this.stateInAttrName(e);break;case 13:this.stateInDirName(e);break;case 14:this.stateInDirArg(e);break;case 15:this.stateInDynamicDirArg(e);break;case 16:this.stateInDirModifier(e);break;case 28:this.stateInCommentLike(e);break;case 27:this.stateInSpecialComment(e);break;case 11:this.stateBeforeAttrName(e);break;case 6:this.stateInTagName(e);break;case 34:this.stateInSFCRootTagName(e);break;case 9:this.stateInClosingTagName(e);break;case 5:this.stateBeforeTagName(e);break;case 17:this.stateAfterAttrName(e);break;case 20:this.stateInAttrValueSingleQuotes(e);break;case 18:this.stateBeforeAttrValue(e);break;case 8:this.stateBeforeClosingTagName(e);break;case 10:this.stateAfterClosingTagName(e);break;case 29:this.stateBeforeSpecialS(e);break;case 30:this.stateBeforeSpecialT(e);break;case 21:this.stateInAttrValueNoQuotes(e);break;case 7:this.stateInSelfClosingTag(e);break;case 23:this.stateInDeclaration(e);break;case 22:this.stateBeforeDeclaration(e);break;case 25:this.stateBeforeComment(e);break;case 24:this.stateInProcessingInstruction(e);break;case 33:this.stateInEntity()}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(1===this.state||32===this.state&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):19!==this.state&&20!==this.state&&21!==this.state||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const e=this.buffer.length;this.sectionStart>=e||(28===this.state?this.currentSequence===w_.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(EC,{onerr:KC,ontext(e,t){MC(LC(e,t),e,t)},ontextentity(e,t,n){MC(e,t,n)},oninterpolation(e,t){if(QC)return MC(LC(e,t),e,t);let n=e+RC.delimiterOpen.length,r=t-RC.delimiterClose.length;for(;v_(wC.charCodeAt(n));)n++;for(;v_(wC.charCodeAt(r-1));)r--;let i=LC(n,r);i.includes("&")&&(i=bC.decodeEntities(i,!1)),jC({type:5,content:HC(i,!1,YC(n,r)),loc:YC(e,t)})},onopentagname(e,t){const n=LC(e,t);kC={type:1,tag:n,ns:bC.getNamespace(n,EC[0],bC.ns),tagType:0,props:[],children:[],loc:YC(e-1,t),codegenNode:void 0}},onopentagend(e){DC(e)},onclosetag(e,t){const n=LC(e,t);if(!bC.isVoidTag(n)){let r=!1;for(let e=0;e<EC.length;e++){if(EC[e].tag.toLowerCase()===n.toLowerCase()){r=!0,e>0&&KC(24,EC[0].loc.start.offset);for(let n=0;n<=e;n++){NC(EC.shift(),t,n<e)}break}}r||KC(23,XC(e,60))}},onselfclosingtag(e){const t=kC.tag;kC.isSelfClosing=!0,DC(e),EC[0]&&EC[0].tag===t&&NC(EC.shift(),e)},onattribname(e,t){SC={type:6,name:LC(e,t),nameLoc:YC(e,t),value:void 0,loc:YC(e)}},ondirname(e,t){const n=LC(e,t),r="."===n||":"===n?"bind":"@"===n?"on":"#"===n?"slot":n.slice(2);if(QC||""!==r||KC(26,e),QC||""===r)SC={type:6,name:n,nameLoc:YC(e,t),value:void 0,loc:YC(e)};else if(SC={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:"."===n?[s_("prop")]:[],loc:YC(e)},"pre"===r){QC=RC.inVPre=!0,PC=kC;const e=kC.props;for(let t=0;t<e.length;t++)7===e[t].type&&(e[t]=GC(e[t]))}},ondirarg(e,t){if(e===t)return;const n=LC(e,t);if(QC&&!aC(SC))SC.name+=n,ZC(SC.nameLoc,t);else{const r="["!==n[0];SC.arg=HC(r?n:n.slice(1,-1),r,YC(e,t),r?3:0)}},ondirmodifier(e,t){const n=LC(e,t);if(QC&&!aC(SC))SC.name+="."+n,ZC(SC.nameLoc,t);else if("slot"===SC.name){const e=SC.arg;e&&(e.content+="."+n,ZC(e.loc,t))}else{const r=s_(n,!0,YC(e,t));SC.modifiers.push(r)}},onattribdata(e,t){TC+=LC(e,t),$C<0&&($C=e),_C=t},onattribentity(e,t,n){TC+=e,$C<0&&($C=t),_C=n},onattribnameend(e){const t=SC.loc.start.offset,n=LC(t,e);7===SC.type&&(SC.rawName=n),kC.props.some(e=>(7===e.type?e.rawName:e.name)===n)&&KC(2,t)},onattribend(e,t){if(kC&&SC){if(ZC(SC.loc,t),0!==e)if(TC.includes("&")&&(TC=bC.decodeEntities(TC,!0)),6===SC.type)"class"===SC.name&&(TC=WC(TC).trim()),1!==e||TC||KC(13,t),SC.value={type:2,content:TC,loc:1===e?YC($C,_C):YC($C-1,_C+1)},RC.inSFCRoot&&"template"===kC.tag&&"lang"===SC.name&&TC&&"html"!==TC&&RC.enterRCDATA(x_("</template"),0);else{let e=0;SC.exp=HC(TC,!1,YC($C,_C),0,e),"for"===SC.name&&(SC.forParseResult=function(e){const t=e.loc,n=e.content,r=n.match(mC);if(!r)return;const[,i,o]=r,a=(e,n,r=!1)=>{const i=t.start.offset+n;return HC(e,!1,YC(i,i+e.length),0,r?1:0)},s={source:a(o.trim(),n.indexOf(o,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=i.trim().replace(IC,"").trim();const c=i.indexOf(l),u=l.match(BC);if(u){l=l.replace(BC,"").trim();const e=u[1].trim();let t;if(e&&(t=n.indexOf(e,c+l.length),s.key=a(e,t,!0)),u[2]){const r=u[2].trim();r&&(s.index=a(r,n.indexOf(r,s.key?t+e.length:c+l.length),!0))}}l&&(s.value=a(l,c,!0));return s}(SC.exp));let t=-1;"bind"===SC.name&&(t=SC.modifiers.findIndex(e=>"sync"===e.content))>-1&&$_("COMPILER_V_BIND_SYNC",bC,SC.loc,SC.arg.loc.source)&&(SC.name="model",SC.modifiers.splice(t,1))}7===SC.type&&"pre"===SC.name||kC.props.push(SC)}TC="",$C=_C=-1},oncomment(e,t){bC.comments&&jC({type:3,content:LC(e,t),loc:YC(e-4,t+3)})},onend(){const e=wC.length;for(let t=0;t<EC.length;t++)NC(EC[t],e-1),KC(24,EC[t].loc.start.offset)},oncdata(e,t){0!==EC[0].ns?MC(LC(e,t),e,t):KC(1,e-9)},onprocessinginstruction(e){0===(EC[0]?EC[0].ns:bC.ns)&&KC(21,e-1)}}),BC=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,IC=/^\(|\)$/g;function LC(e,t){return wC.slice(e,t)}function DC(e){RC.inSFCRoot&&(kC.innerLoc=YC(e+1,e+1)),jC(kC);const{tag:t,ns:n}=kC;0===n&&bC.isPreTag(t)&&CC++,bC.isVoidTag(t)?NC(kC,e):(EC.unshift(kC),1!==n&&2!==n||(RC.inXML=!0)),kC=null}function MC(e,t,n){{const t=EC[0]&&EC[0].tag;"script"!==t&&"style"!==t&&e.includes("&")&&(e=bC.decodeEntities(e,!1))}const r=EC[0]||xC,i=r.children[r.children.length-1];i&&2===i.type?(i.content+=e,ZC(i.loc,n)):r.children.push({type:2,content:e,loc:YC(t,n)})}function NC(e,t,n=!1){ZC(e.loc,n?XC(t,60):function(e,t){let n=e;for(;wC.charCodeAt(n)!==t&&n<wC.length-1;)n++;return n}(t,62)+1),RC.inSFCRoot&&(e.children.length?e.innerLoc.end=hr({},e.children[e.children.length-1].loc.end):e.innerLoc.end=hr({},e.innerLoc.start),e.innerLoc.source=LC(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:r,ns:i,children:o}=e;if(QC||("slot"===r?e.tagType=2:UC(e)?e.tagType=3:function({tag:e,props:t}){if(bC.isCustomElement(e))return!1;if("component"===e||(n=e.charCodeAt(0),n>64&&n<91)||X_(e)||bC.isBuiltInComponent&&bC.isBuiltInComponent(e)||bC.isNativeTag&&!bC.isNativeTag(e))return!0;var n;for(let r=0;r<t.length;r++){const e=t[r];if(6===e.type){if("is"===e.name&&e.value){if(e.value.content.startsWith("vue:"))return!0;if($_("COMPILER_IS_ON_ELEMENT",bC,e.loc))return!0}}else if("bind"===e.name&&rC(e.arg,"is")&&$_("COMPILER_IS_ON_ELEMENT",bC,e.loc))return!0}return!1}(e)&&(e.tagType=1)),RC.inRCDATA||(e.children=qC(o)),0===i&&bC.isIgnoreNewlineTag(r)){const e=o[0];e&&2===e.type&&(e.content=e.content.replace(/^\r?\n/,""))}0===i&&bC.isPreTag(r)&&CC--,PC===e&&(QC=RC.inVPre=!1,PC=null),RC.inXML&&0===(EC[0]?EC[0].ns:bC.ns)&&(RC.inXML=!1);{const t=e.props;if(!RC.inSFCRoot&&T_("COMPILER_NATIVE_TEMPLATE",bC)&&"template"===e.tag&&!UC(e)){const t=EC[0]||xC,n=t.children.indexOf(e);t.children.splice(n,1,...e.children)}const n=t.find(e=>6===e.type&&"inline-template"===e.name);n&&$_("COMPILER_INLINE_TEMPLATE",bC,n.loc)&&e.children.length&&(n.value={type:2,content:LC(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function XC(e,t){let n=e;for(;wC.charCodeAt(n)!==t&&n>=0;)n--;return n}const FC=new Set(["if","else","else-if","for","slot"]);function UC({tag:e,props:t}){if("template"===e)for(let n=0;n<t.length;n++)if(7===t[n].type&&FC.has(t[n].name))return!0;return!1}const zC=/\r\n/g;function qC(e){const t="preserve"!==bC.whitespace;let n=!1;for(let r=0;r<e.length;r++){const i=e[r];if(2===i.type)if(CC)i.content=i.content.replace(zC,"\n");else if(OC(i.content)){const o=e[r-1]&&e[r-1].type,a=e[r+1]&&e[r+1].type;!o||!a||t&&(3===o&&(3===a||1===a)||1===o&&(3===a||1===a&&VC(i.content)))?(n=!0,e[r]=null):i.content=" "}else t&&(i.content=WC(i.content))}return n?e.filter(Boolean):e}function VC(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(10===n||13===n)return!0}return!1}function WC(e){let t="",n=!1;for(let r=0;r<e.length;r++)v_(e.charCodeAt(r))?n||(t+=" ",n=!0):(t+=e[r],n=!1);return t}function jC(e){(EC[0]||xC).children.push(e)}function YC(e,t){return{start:RC.getPos(e),end:null==t?t:RC.getPos(t),source:null==t?t:LC(e,t)}}function ZC(e,t){e.end=RC.getPos(t),e.source=LC(e.start.offset,t)}function GC(e){const t={type:6,name:e.rawName,nameLoc:YC(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function HC(e,t=!1,n,r=0,i=0){return s_(e,t,n,r)}function KC(e,t,n){bC.onError(Q_(e,YC(t,t)))}function JC(e,t){if(RC.reset(),kC=null,SC=null,TC="",$C=-1,_C=-1,EC.length=0,wC=e,bC=hr({},vC),t){let e;for(e in t)null!=t[e]&&(bC[e]=t[e])}RC.mode="html"===bC.parseMode?1:"sfc"===bC.parseMode?2:0,RC.inXML=1===bC.ns||2===bC.ns;const n=t&&t.delimiters;n&&(RC.delimiterOpen=x_(n[0]),RC.delimiterClose=x_(n[1]));const r=xC=n_([],e);return RC.parse(wC),r.loc=YC(0,e.length),r.children=qC(r.children),xC=null,r}function eQ(e,t){nQ(e,void 0,t,!!tQ(e))}function tQ(e){const t=e.children.filter(e=>3!==e.type);return 1!==t.length||1!==t[0].type||cC(t[0])?null:t[0]}function nQ(e,t,n,r=!1,i=!1){const{children:o}=e,a=[];for(let u=0;u<o.length;u++){const t=o[u];if(1===t.type&&0===t.tagType){const e=r?0:rQ(t,n);if(e>0){if(e>=2){t.codegenNode.patchFlag=-1,a.push(t);continue}}else{const e=t.codegenNode;if(13===e.type){const r=e.patchFlag;if((void 0===r||512===r||1===r)&&aQ(t,n)>=2){const r=sQ(t);r&&(e.props=n.hoist(r))}e.dynamicProps&&(e.dynamicProps=n.hoist(e.dynamicProps))}}}else if(12===t.type){if((r?0:rQ(t,n))>=2){14===t.codegenNode.type&&t.codegenNode.arguments.length>0&&t.codegenNode.arguments.push("-1"),a.push(t);continue}}if(1===t.type){const r=1===t.tagType;r&&n.scopes.vSlot++,nQ(t,e,n,!1,i),r&&n.scopes.vSlot--}else if(11===t.type)nQ(t,e,n,1===t.children.length,!0);else if(9===t.type)for(let r=0;r<t.branches.length;r++)nQ(t.branches[r],e,n,1===t.branches[r].children.length,i)}let s=!1;if(a.length===o.length&&1===e.type)if(0===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&gr(e.codegenNode.children))e.codegenNode.children=l(i_(e.codegenNode.children)),s=!0;else if(1===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&e.codegenNode.children&&!gr(e.codegenNode.children)&&15===e.codegenNode.children.type){const t=c(e.codegenNode,"default");t&&(t.returns=l(i_(t.returns)),s=!0)}else if(3===e.tagType&&t&&1===t.type&&1===t.tagType&&t.codegenNode&&13===t.codegenNode.type&&t.codegenNode.children&&!gr(t.codegenNode.children)&&15===t.codegenNode.children.type){const n=tC(e,"slot",!0),r=n&&n.arg&&c(t.codegenNode,n.arg);r&&(r.returns=l(i_(r.returns)),s=!0)}if(!s)for(const u of a)u.codegenNode=n.cache(u.codegenNode);function l(e){const t=n.cache(e);return t.needArraySpread=!0,t}function c(e,t){if(e.children&&!gr(e.children)&&15===e.children.type){const n=e.children.properties.find(e=>e.key===t||e.key.content===t);return n&&n.value}}a.length&&n.transformHoist&&n.transformHoist(o,n,e)}function rQ(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const r=n.get(e);if(void 0!==r)return r;const i=e.codegenNode;if(13!==i.type)return 0;if(i.isBlock&&"svg"!==e.tag&&"foreignObject"!==e.tag&&"math"!==e.tag)return 0;if(void 0===i.patchFlag){let r=3;const o=aQ(e,t);if(0===o)return n.set(e,0),0;o<r&&(r=o);for(let i=0;i<e.children.length;i++){const o=rQ(e.children[i],t);if(0===o)return n.set(e,0),0;o<r&&(r=o)}if(r>1)for(let i=0;i<e.props.length;i++){const o=e.props[i];if(7===o.type&&"bind"===o.name&&o.exp){const i=rQ(o.exp,t);if(0===i)return n.set(e,0),0;i<r&&(r=i)}}if(i.isBlock){for(let t=0;t<e.props.length;t++){if(7===e.props[t].type)return n.set(e,0),0}t.removeHelper(y$),t.removeHelper(g_(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(f_(t.inSSR,i.isComponent))}return n.set(e,r),r}return n.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:default:return 0;case 5:case 12:return rQ(e.content,t);case 4:return e.constType;case 8:let o=3;for(let n=0;n<e.children.length;n++){const r=e.children[n];if(br(r)||xr(r))continue;const i=rQ(r,t);if(0===i)return 0;i<o&&(o=i)}return o;case 20:return 2}}const iQ=new Set([D$,M$,N$,X$]);function oQ(e,t){if(14===e.type&&!br(e.callee)&&iQ.has(e.callee)){const n=e.arguments[0];if(4===n.type)return rQ(n,t);if(14===n.type)return oQ(n,t)}return 0}function aQ(e,t){let n=3;const r=sQ(e);if(r&&15===r.type){const{properties:e}=r;for(let r=0;r<e.length;r++){const{key:i,value:o}=e[r],a=rQ(i,t);if(0===a)return a;let s;if(a<n&&(n=a),s=4===o.type?rQ(o,t):14===o.type?oQ(o,t):0,0===s)return s;s<n&&(n=s)}}return n}function sQ(e){const t=e.codegenNode;if(13===t.type)return t.props}function lQ(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:i=!1,cacheHandlers:o=!1,nodeTransforms:a=[],directiveTransforms:s={},transformHoist:l=null,isBuiltInComponent:c=sr,isCustomElement:u=sr,expressionPlugins:h=[],scopeId:d=null,slotted:p=!0,ssr:f=!1,inSSR:g=!1,ssrCssVars:m="",bindingMetadata:O=or,inline:A=!1,isTS:y=!1,onError:v=__,onWarn:b=C_,compatConfig:x}){const w=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),k={filename:t,selfName:w&&Dr(Br(w[1])),prefixIdentifiers:n,hoistStatic:r,hmr:i,cacheHandlers:o,nodeTransforms:a,directiveTransforms:s,transformHoist:l,isBuiltInComponent:c,isCustomElement:u,expressionPlugins:h,scopeId:d,slotted:p,ssr:f,inSSR:g,ssrCssVars:m,bindingMetadata:O,inline:A,isTS:y,onError:v,onWarn:b,compatConfig:x,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){const t=k.helpers.get(e)||0;return k.helpers.set(e,t+1),e},removeHelper(e){const t=k.helpers.get(e);if(t){const n=t-1;n?k.helpers.set(e,n):k.helpers.delete(e)}},helperString:e=>`_${J$[k.helper(e)]}`,replaceNode(e){k.parent.children[k.childIndex]=k.currentNode=e},removeNode(e){const t=k.parent.children,n=e?t.indexOf(e):k.currentNode?k.childIndex:-1;e&&e!==k.currentNode?k.childIndex>n&&(k.childIndex--,k.onNodeRemoved()):(k.currentNode=null,k.onNodeRemoved()),k.parent.children.splice(n,1)},onNodeRemoved:sr,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){br(e)&&(e=s_(e)),k.hoists.push(e);const t=s_(`_hoisted_${k.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1,n=!1){const r=d_(k.cached.length,e,t,n);return k.cached.push(r),r}};return k.filters=new Set,k}function cQ(e,t){const n=lQ(e,t);uQ(e,n),t.hoistStatic&&eQ(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:r}=e;if(1===r.length){const n=tQ(e);if(n&&n.codegenNode){const r=n.codegenNode;13===r.type&&m_(r,t),e.codegenNode=r}else e.codegenNode=r[0]}else if(r.length>1){let r=64;e.codegenNode=r_(t,n(f$),void 0,e.children,r,void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function uQ(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let o=0;o<n.length;o++){const i=n[o](e,t);if(i&&(gr(i)?r.push(...i):r.push(i)),!t.currentNode)return;e=t.currentNode}switch(e.type){case 3:t.ssr||t.helper(k$);break;case 5:t.ssr||t.helper(I$);break;case 9:for(let n=0;n<e.branches.length;n++)uQ(e.branches[n],t);break;case 10:case 11:case 1:case 0:!function(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];br(i)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=r,uQ(i,t))}}(e,t)}t.currentNode=e;let i=r.length;for(;i--;)r[i]()}function hQ(e,t){const n=br(e)?t=>t===e:t=>e.test(t);return(e,r)=>{if(1===e.type){const{props:i}=e;if(3===e.tagType&&i.some(sC))return;const o=[];for(let a=0;a<i.length;a++){const s=i[a];if(7===s.type&&n(s.name)){i.splice(a,1),a--;const n=t(e,s,r);n&&o.push(n)}}return o}}}const dQ="/*@__PURE__*/",pQ=e=>`${J$[e]}: _${J$[e]}`;function fQ(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:r=!1,filename:i="template.vue.html",scopeId:o=null,optimizeImports:a=!1,runtimeGlobalName:s="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:u=!1,isTS:h=!1,inSSR:d=!1}){const p={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:o,optimizeImports:a,runtimeGlobalName:s,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:u,isTS:h,inSSR:d,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${J$[e]}`,push(e,t=-2,n){p.code+=e},indent(){f(++p.indentLevel)},deindent(e=!1){e?--p.indentLevel:f(--p.indentLevel)},newline(){f(p.indentLevel)}};function f(e){p.push("\n"+" ".repeat(e),0)}return p}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:i,prefixIdentifiers:o,indent:a,deindent:s,newline:l,scopeId:c,ssr:u}=n,h=Array.from(e.helpers),d=h.length>0,p=!o&&"module"!==r;!function(e,t){const{ssr:n,prefixIdentifiers:r,push:i,newline:o,runtimeModuleName:a,runtimeGlobalName:s,ssrRuntimeModuleName:l}=t,c=s,u=Array.from(e.helpers);if(u.length>0&&(i(`const _Vue = ${c}\n`,-1),e.hoists.length)){i(`const { ${[x$,w$,k$,S$,T$].filter(e=>u.includes(e)).map(pQ).join(", ")} } = _Vue\n`,-1)}(function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r}=t;r();for(let i=0;i<e.length;i++){const o=e[i];o&&(n(`const _hoisted_${i+1} = `),AQ(o,t),r())}t.pure=!1})(e.hoists,t),o(),i("return ")}(e,n);if(i(`function ${u?"ssrRender":"render"}(${(u?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),a(),p&&(i("with (_ctx) {"),a(),d&&(i(`const { ${h.map(pQ).join(", ")} } = _Vue\n`,-1),l())),e.components.length&&(gQ(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(gQ(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),gQ(e.filters,"filter",n),l()),e.temps>0){i("let ");for(let t=0;t<e.temps;t++)i(`${t>0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(i("\n",0),l()),u||i("return "),e.codegenNode?AQ(e.codegenNode,n):i("null"),p&&(s(),i("}")),s(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function gQ(e,t,{helper:n,push:r,newline:i,isTS:o}){const a=n("filter"===t?Q$:"component"===t?$$:C$);for(let s=0;s<e.length;s++){let n=e[s];const l=n.endsWith("__self");l&&(n=n.slice(0,-6)),r(`const ${fC(n,t)} = ${a}(${JSON.stringify(n)}${l?", true":""})${o?"!":""}`),s<e.length-1&&i()}}function mQ(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),OQ(e,t,n),n&&t.deindent(),t.push("]")}function OQ(e,t,n=!1,r=!0){const{push:i,newline:o}=t;for(let a=0;a<e.length;a++){const s=e[a];br(s)?i(s,-3):gr(s)?mQ(s,t):AQ(s,t),a<e.length-1&&(n?(r&&i(","),o()):r&&i(", "))}}function AQ(e,t){if(br(e))t.push(e,-3);else if(xr(e))t.push(t.helper(e));else switch(e.type){case 1:case 9:case 11:case 12:AQ(e.codegenNode,t);break;case 2:!function(e,t){t.push(JSON.stringify(e.content),-3,e)}(e,t);break;case 4:yQ(e,t);break;case 5:!function(e,t){const{push:n,helper:r,pure:i}=t;i&&n(dQ);n(`${r(I$)}(`),AQ(e.content,t),n(")")}(e,t);break;case 8:vQ(e,t);break;case 3:!function(e,t){const{push:n,helper:r,pure:i}=t;i&&n(dQ);n(`${r(k$)}(${JSON.stringify(e.content)})`,-3,e)}(e,t);break;case 13:!function(e,t){const{push:n,helper:r,pure:i}=t,{tag:o,props:a,children:s,patchFlag:l,dynamicProps:c,directives:u,isBlock:h,disableTracking:d,isComponent:p}=e;let f;l&&(f=String(l));u&&n(r(P$)+"(");h&&n(`(${r(y$)}(${d?"true":""}), `);i&&n(dQ);const g=h?g_(t.inSSR,p):f_(t.inSSR,p);n(r(g)+"(",-2,e),OQ(function(e){let t=e.length;for(;t--&&null==e[t];);return e.slice(0,t+1).map(e=>e||"null")}([o,a,s,f,c]),t),n(")"),h&&n(")");u&&(n(", "),AQ(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:r,pure:i}=t,o=br(e.callee)?e.callee:r(e.callee);i&&n(dQ);n(o+"(",-2,e),OQ(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:r,deindent:i,newline:o}=t,{properties:a}=e;if(!a.length)return void n("{}",-2,e);const s=a.length>1||!1;n(s?"{":"{ "),s&&r();for(let l=0;l<a.length;l++){const{key:e,value:r}=a[l];bQ(e,t),n(": "),AQ(r,t),l<a.length-1&&(n(","),o())}s&&i(),n(s?"}":" }")}(e,t);break;case 17:!function(e,t){mQ(e.elements,t)}(e,t);break;case 18:!function(e,t){const{push:n,indent:r,deindent:i}=t,{params:o,returns:a,body:s,newline:l,isSlot:c}=e;c&&n(`_${J$[Y$]}(`);n("(",-2,e),gr(o)?OQ(o,t):o&&AQ(o,t);n(") => "),(l||s)&&(n("{"),r());a?(l&&n("return "),gr(a)?mQ(a,t):AQ(a,t)):s&&AQ(s,t);(l||s)&&(i(),n("}"));c&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:r,alternate:i,newline:o}=e,{push:a,indent:s,deindent:l,newline:c}=t;if(4===n.type){const e=!U_(n.content);e&&a("("),yQ(n,t),e&&a(")")}else a("("),AQ(n,t),a(")");o&&s(),t.indentLevel++,o||a(" "),a("? "),AQ(r,t),t.indentLevel--,o&&c(),o||a(" "),a(": ");const u=19===i.type;u||t.indentLevel++;AQ(i,t),u||t.indentLevel--;o&&l(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:r,indent:i,deindent:o,newline:a}=t,{needPauseTracking:s,needArraySpread:l}=e;l&&n("[...(");n(`_cache[${e.index}] || (`),s&&(i(),n(`${r(V$)}(-1`),e.inVOnce&&n(", true"),n("),"),a(),n("("));n(`_cache[${e.index}] = `),AQ(e.value,t),s&&(n(`).cacheIndex = ${e.index},`),a(),n(`${r(V$)}(1),`),a(),n(`_cache[${e.index}]`),o());n(")"),l&&n(")]")}(e,t);break;case 21:OQ(e.body,t,!0,!1)}}function yQ(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function vQ(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];br(r)?t.push(r,-3):AQ(r,t)}}function bQ(e,t){const{push:n}=t;if(8===e.type)n("["),vQ(e,t),n("]");else if(e.isStatic){n(U_(e.content)?e.content:JSON.stringify(e.content),-2,e)}else n(`[${e.content}]`,-3,e)}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");function xQ(e,t,n=!1,r=!1,i=Object.create(t.identifiers)){return e}const wQ=hQ(/^(?:if|else|else-if)$/,(e,t,n)=>kQ(e,t,n,(e,t,r)=>{const i=n.parent.children;let o=i.indexOf(e),a=0;for(;o-- >=0;){const e=i[o];e&&9===e.type&&(a+=e.branches.length)}return()=>{if(r)e.codegenNode=TQ(t,a,n);else{const r=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);r.alternate=TQ(t,a+e.branches.length-1,n)}}}));function kQ(e,t,n,r){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const r=t.exp?t.exp.loc:e.loc;n.onError(Q_(28,t.loc)),t.exp=s_("true",!1,r)}if("if"===t.name){const o=SQ(e,t),a={type:9,loc:(i=e.loc,YC(i.start.offset,i.end.offset)),branches:[o]};if(n.replaceNode(a),r)return r(a,o,!0)}else{const i=n.parent.children;let o=i.indexOf(e);for(;o-- >=-1;){const a=i[o];if(!a||!yC(a)){if(a&&9===a.type){"else-if"!==t.name&&"else"!==t.name||void 0!==a.branches[a.branches.length-1].condition||n.onError(Q_(30,e.loc)),n.removeNode();const i=SQ(e,t);a.branches.push(i);const o=r&&r(a,i,!1);uQ(i,n),o&&o(),n.currentNode=null}else n.onError(Q_(30,e.loc));break}n.removeNode(a)}}var i}function SQ(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!tC(e,"for")?e.children:[e],userKey:nC(e,"key"),isTemplateIf:n}}function TQ(e,t,n){return e.condition?h_(e.condition,$Q(e,t,n),c_(n.helper(k$),['""',"true"])):$Q(e,t,n)}function $Q(e,t,n){const{helper:r}=n,i=a_("key",s_(`${t}`,!1,t_,2)),{children:o}=e,a=o[0];if(1!==o.length||1!==a.type){if(1===o.length&&11===a.type){const e=a.codegenNode;return dC(e,i,n),e}{let t=64;return r_(n,r(f$),o_([i]),o,t,void 0,void 0,!0,!1,!1,e.loc)}}{const e=a.codegenNode,t=gC(e);return 13===t.type&&m_(t,n),dC(t,i,n),e}}const _Q=hQ("for",(e,t,n)=>{const{helper:r,removeHelper:i}=n;return CQ(e,t,n,t=>{const o=c_(r(E$),[t.source]),a=lC(e),s=tC(e,"memo"),l=nC(e,"key",!1,!0);l&&l.type;let c=l&&(6===l.type?l.value?s_(l.value.content,!0):void 0:l.exp);const u=l&&c?a_("key",c):null,h=4===t.source.type&&t.source.constType>0,d=h?64:l?128:256;return t.codegenNode=r_(n,r(f$),void 0,o,d,void 0,void 0,!0,!h,!1,e.loc),()=>{let l;const{children:d}=t,p=1!==d.length||1!==d[0].type,f=cC(e)?e:a&&1===e.children.length&&cC(e.children[0])?e.children[0]:null;if(f?(l=f.codegenNode,a&&u&&dC(l,u,n)):p?l=r_(n,r(f$),u?o_([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(l=d[0].codegenNode,a&&u&&dC(l,u,n),l.isBlock!==!h&&(l.isBlock?(i(y$),i(g_(n.inSSR,l.isComponent))):i(f_(n.inSSR,l.isComponent))),l.isBlock=!h,l.isBlock?(r(y$),r(g_(n.inSSR,l.isComponent))):r(f_(n.inSSR,l.isComponent))),s){const e=u_(PQ(t.parseResult,[s_("_cached")]));e.body=p_([l_(["const _memo = (",s.exp,")"]),l_(["if (_cached && _cached.el",...c?[" && _cached.key === ",c]:[],` && ${n.helperString(K$)}(_cached, _memo)) return _cached`]),l_(["const _item = ",l]),s_("_item.memo = _memo"),s_("return _item")]),o.arguments.push(e,s_("_cache"),s_(String(n.cached.length))),n.cached.push(null)}else o.arguments.push(u_(PQ(t.parseResult),l,!0))}})});function CQ(e,t,n,r){if(!t.exp)return void n.onError(Q_(31,t.loc));const i=t.forParseResult;if(!i)return void n.onError(Q_(32,t.loc));QQ(i);const{addIdentifiers:o,removeIdentifiers:a,scopes:s}=n,{source:l,value:c,key:u,index:h}=i,d={type:11,loc:t.loc,source:l,valueAlias:c,keyAlias:u,objectIndexAlias:h,parseResult:i,children:lC(e)?e.children:[e]};n.replaceNode(d),s.vFor++;const p=r&&r(d);return()=>{s.vFor--,p&&p()}}function QQ(e,t){e.finalized||(e.finalized=!0)}function PQ({value:e,key:t,index:n},r=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((e,t)=>e||s_("_".repeat(t+1),!1))}([e,t,n,...r])}const EQ=s_("undefined",!1),RQ=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=tC(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},BQ=(e,t,n,r)=>u_(e,n,!1,!0,n.length?n[0].loc:r);function IQ(e,t,n=BQ){t.helper(Y$);const{children:r,loc:i}=e,o=[],a=[];let s=t.scopes.vSlot>0||t.scopes.vFor>0;const l=tC(e,"slot",!0);if(l){const{arg:e,exp:t}=l;e&&!N_(e)&&(s=!0),o.push(a_(e||s_("default",!0),n(t,void 0,r,i)))}let c=!1,u=!1;const h=[],d=new Set;let p=0;for(let m=0;m<r.length;m++){const e=r[m];let i;if(!lC(e)||!(i=tC(e,"slot",!0))){3!==e.type&&h.push(e);continue}if(l){t.onError(Q_(37,i.loc));break}c=!0;const{children:f,loc:g}=e,{arg:O=s_("default",!0),exp:A,loc:y}=i;let v;N_(O)?v=O?O.content:"default":s=!0;const b=tC(e,"for"),x=n(A,b,f,g);let w,k;if(w=tC(e,"if"))s=!0,a.push(h_(w.exp,LQ(O,x,p++),EQ));else if(k=tC(e,/^else(?:-if)?$/,!0)){let e,n=m;for(;n--&&(e=r[n],yC(e)););if(e&&lC(e)&&tC(e,/^(?:else-)?if$/)){let e=a[a.length-1];for(;19===e.alternate.type;)e=e.alternate;e.alternate=k.exp?h_(k.exp,LQ(O,x,p++),EQ):LQ(O,x,p++)}else t.onError(Q_(30,k.loc))}else if(b){s=!0;const e=b.forParseResult;e?(QQ(e),a.push(c_(t.helper(E$),[e.source,u_(PQ(e),LQ(O,x),!0)]))):t.onError(Q_(32,b.loc))}else{if(v){if(d.has(v)){t.onError(Q_(38,y));continue}d.add(v),"default"===v&&(u=!0)}o.push(a_(O,x))}}if(!l){const e=(e,r)=>{const o=n(e,void 0,r,i);return t.compatConfig&&(o.isNonScopedSlot=!0),a_("default",o)};c?h.length&&!h.every(AC)&&(u?t.onError(Q_(39,h[0].loc)):o.push(e(void 0,h))):o.push(e(void 0,r))}const f=s?2:DQ(e.children)?3:1;let g=o_(o.concat(a_("_",s_(f+"",!1))),i);return a.length&&(g=c_(t.helper(B$),[g,i_(a)])),{slots:g,hasDynamicSlots:s}}function LQ(e,t,n){const r=[a_("name",e),a_("fn",t)];return null!=n&&r.push(a_("key",s_(String(n),!0))),o_(r)}function DQ(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(2===n.tagType||DQ(n.children))return!0;break;case 9:if(DQ(n.branches))return!0;break;case 10:case 11:if(DQ(n.children))return!0}}return!1}const MQ=new WeakMap,NQ=(e,t)=>function(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:r}=e,i=1===e.tagType;let o=i?XQ(e,t):`"${n}"`;const a=wr(o)&&o.callee===_$;let s,l,c,u,h,d=0,p=a||o===g$||o===m$||!i&&("svg"===n||"foreignObject"===n||"math"===n);if(r.length>0){const n=FQ(e,t,void 0,i,a);s=n.props,d=n.patchFlag,u=n.dynamicPropNames;const r=n.directives;h=r&&r.length?i_(r.map(e=>qQ(e,t))):void 0,n.shouldUseBlock&&(p=!0)}if(e.children.length>0){o===O$&&(p=!0,d|=1024);if(i&&o!==g$&&o!==O$){const{slots:n,hasDynamicSlots:r}=IQ(e,t);l=n,r&&(d|=1024)}else if(1===e.children.length&&o!==g$){const n=e.children[0],r=n.type,i=5===r||8===r;i&&0===rQ(n,t)&&(d|=1),l=i||2===r?n:e.children}else l=e.children}u&&u.length&&(c=function(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}(u)),e.codegenNode=r_(t,o,s,l,0===d?void 0:d,c,h,!!p,!1,i,e.loc)};function XQ(e,t,n=!1){let{tag:r}=e;const i=VQ(r),o=nC(e,"is",!1,!0);if(o)if(i||T_("COMPILER_IS_ON_ELEMENT",t)){let e;if(6===o.type?e=o.value&&s_(o.value.content,!0):(e=o.exp,e||(e=s_("is",!1,o.arg.loc))),e)return c_(t.helper(_$),[e])}else 6===o.type&&o.value.content.startsWith("vue:")&&(r=o.value.content.slice(4));const a=X_(r)||t.isBuiltInComponent(r);return a?(n||t.helper(a),a):(t.helper($$),t.components.add(r),fC(r,"component"))}function FQ(e,t,n=e.props,r,i,o=!1){const{tag:a,loc:s,children:l}=e;let c=[];const u=[],h=[],d=l.length>0;let p=!1,f=0,g=!1,m=!1,O=!1,A=!1,y=!1,v=!1;const b=[],x=e=>{c.length&&(u.push(o_(UQ(c),s)),c=[]),e&&u.push(e)},w=()=>{t.scopes.vFor>0&&c.push(a_(s_("ref_for",!0),s_("true")))},k=({key:e,value:n})=>{if(N_(e)){const o=e.content,a=cr(o);if(!a||r&&!i||"onclick"===o.toLowerCase()||"onUpdate:modelValue"===o||Qr(o)||(A=!0),a&&Qr(o)&&(v=!0),a&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&rQ(n,t)>0)return;"ref"===o?g=!0:"class"===o?m=!0:"style"===o?O=!0:"key"===o||b.includes(o)||b.push(o),!r||"class"!==o&&"style"!==o||b.includes(o)||b.push(o)}else y=!0};for(let T=0;T<n.length;T++){const i=n[T];if(6===i.type){const{loc:e,name:n,nameLoc:r,value:o}=i;let s=!0;if("ref"===n&&(g=!0,w()),"is"===n&&(VQ(a)||o&&o.content.startsWith("vue:")||T_("COMPILER_IS_ON_ELEMENT",t)))continue;c.push(a_(s_(n,!0,r),s_(o?o.content:"",s,o?o.loc:e)))}else{const{name:n,arg:l,exp:g,loc:m,modifiers:O}=i,A="bind"===n,v="on"===n;if("slot"===n){r||t.onError(Q_(40,m));continue}if("once"===n||"memo"===n)continue;if("is"===n||A&&rC(l,"is")&&(VQ(a)||T_("COMPILER_IS_ON_ELEMENT",t)))continue;if(v&&o)continue;if((A&&rC(l,"key")||v&&d&&rC(l,"vue:before-update"))&&(p=!0),A&&rC(l,"ref")&&w(),!l&&(A||v)){if(y=!0,g)if(A){if(x(),T_("COMPILER_V_BIND_OBJECT_ORDER",t)){u.unshift(g);continue}w(),x(),u.push(g)}else x({type:14,loc:m,callee:t.helper(F$),arguments:r?[g]:[g,"true"]});else t.onError(Q_(A?34:35,m));continue}A&&O.some(e=>"prop"===e.content)&&(f|=32);const b=t.directiveTransforms[n];if(b){const{props:n,needRuntime:r}=b(i,e,t);!o&&n.forEach(k),v&&l&&!N_(l)?x(o_(n,s)):c.push(...n),r&&(h.push(i),xr(r)&&MQ.set(i,r))}else Pr(n)||(h.push(i),d&&(p=!0))}}let S;if(u.length?(x(),S=u.length>1?c_(t.helper(L$),u,s):u[0]):c.length&&(S=o_(UQ(c),s)),y?f|=16:(m&&!r&&(f|=2),O&&!r&&(f|=4),b.length&&(f|=8),A&&(f|=32)),p||0!==f&&32!==f||!(g||v||h.length>0)||(f|=512),!t.inSSR&&S)switch(S.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t<S.properties.length;t++){const i=S.properties[t].key;N_(i)?"class"===i.content?e=t:"style"===i.content&&(n=t):i.isHandlerKey||(r=!0)}const i=S.properties[e],o=S.properties[n];r?S=c_(t.helper(N$),[S]):(i&&!N_(i.value)&&(i.value=c_(t.helper(D$),[i.value])),o&&(O||4===o.value.type&&"["===o.value.content.trim()[0]||17===o.value.type)&&(o.value=c_(t.helper(M$),[o.value])));break;case 14:break;default:S=c_(t.helper(N$),[c_(t.helper(X$),[S])])}return{props:S,directives:h,patchFlag:f,dynamicPropNames:b,shouldUseBlock:p}}function UQ(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const i=e[r];if(8===i.key.type||!i.key.isStatic){n.push(i);continue}const o=i.key.content,a=t.get(o);a?("style"===o||"class"===o||cr(o))&&zQ(a,i):(t.set(o,i),n.push(i))}return n}function zQ(e,t){17===e.value.type?e.value.elements.push(t.value):e.value=i_([e.value,t.value],e.loc)}function qQ(e,t){const n=[],r=MQ.get(e);r?n.push(t.helperString(r)):(t.helper(C$),t.directives.add(e.name),n.push(fC(e.name,"directive")));const{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=s_("true",!1,i);n.push(o_(e.modifiers.map(e=>a_(e,t)),i))}return i_(n,e.loc)}function VQ(e){return"component"===e||"Component"===e}const WQ=(e,t)=>{if(cC(e)){const{children:n,loc:r}=e,{slotName:i,slotProps:o}=jQ(e,t),a=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let s=2;o&&(a[2]=o,s=3),n.length&&(a[3]=u_([],n,!1,!1,r),s=4),t.scopeId&&!t.slotted&&(s=5),a.splice(s),e.codegenNode=c_(t.helper(R$),a,r)}};function jQ(e,t){let n,r='"default"';const i=[];for(let o=0;o<e.props.length;o++){const t=e.props[o];if(6===t.type)t.value&&("name"===t.name?r=JSON.stringify(t.value.content):(t.name=Br(t.name),i.push(t)));else if("bind"===t.name&&rC(t.arg,"name")){if(t.exp)r=t.exp;else if(t.arg&&4===t.arg.type){const e=Br(t.arg.content);r=t.exp=s_(e,!1,t.arg.loc)}}else"bind"===t.name&&t.arg&&N_(t.arg)&&(t.arg.content=Br(t.arg.content)),i.push(t)}if(i.length>0){const{props:r,directives:o}=FQ(e,t,i,!1,!1);n=r,o.length&&t.onError(Q_(36,o[0].loc))}return{slotName:r,slotProps:n}}const YQ=(e,t,n,r)=>{const{loc:i,modifiers:o,arg:a}=e;let s;if(e.exp||o.length||n.onError(Q_(35,i)),4===a.type)if(a.isStatic){let e=a.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`);s=s_(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?Mr(Br(e)):`on:${e}`,!0,a.loc)}else s=l_([`${n.helperString(q$)}(`,a,")"]);else s=a,s.children.unshift(`${n.helperString(q$)}(`),s.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let c=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const e=Z_(l),t=!(e||J_(l)),n=l.content.includes(";");(t||c&&e)&&(l=l_([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let u={props:[a_(s,l||s_("() => {}",!1,i))]};return r&&(u=r(u)),c&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach(e=>e.key.isHandlerKey=!0),u},ZQ=(e,t,n)=>{const{modifiers:r,loc:i}=e,o=e.arg;let{exp:a}=e;return a&&4===a.type&&!a.content.trim()&&(a=void 0),4!==o.type?(o.children.unshift("("),o.children.push(') || ""')):o.isStatic||(o.content=o.content?`${o.content} || ""`:'""'),r.some(e=>"camel"===e.content)&&(4===o.type?o.isStatic?o.content=Br(o.content):o.content=`${n.helperString(U$)}(${o.content})`:(o.children.unshift(`${n.helperString(U$)}(`),o.children.push(")"))),n.inSSR||(r.some(e=>"prop"===e.content)&&GQ(o,"."),r.some(e=>"attr"===e.content)&&GQ(o,"^")),{props:[a_(o,a)]}},GQ=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},HQ=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let r,i=!1;for(let e=0;e<n.length;e++){const t=n[e];if(oC(t)){i=!0;for(let i=e+1;i<n.length;i++){const o=n[i];if(!oC(o)){r=void 0;break}r||(r=n[e]=l_([t],t.loc)),r.children.push(" + ",o),n.splice(i,1),i--}}}if(i&&(1!==n.length||0!==e.type&&(1!==e.type||0!==e.tagType||e.props.find(e=>7===e.type&&!t.directiveTransforms[e.name])||"template"===e.tag)))for(let e=0;e<n.length;e++){const r=n[e];if(oC(r)||8===r.type){const i=[];2===r.type&&" "===r.content||i.push(r),t.ssr||0!==rQ(r,t)||i.push("1"),n[e]={type:12,content:r,loc:r.loc,codegenNode:c_(t.helper(S$),i)}}}}},KQ=new WeakSet,JQ=(e,t)=>{if(1===e.type&&tC(e,"once",!0)){if(KQ.has(e)||t.inVOnce||t.inSSR)return;return KQ.add(e),t.inVOnce=!0,t.helper(V$),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0,!0))}}},eP=(e,t,n)=>{const{exp:r,arg:i}=e;if(!r)return n.onError(Q_(41,e.loc)),tP();const o=r.loc.source.trim(),a=4===r.type?r.content:o,s=n.bindingMetadata[o];if("props"===s||"props-aliased"===s)return n.onError(Q_(44,r.loc)),tP();if("literal-const"===s||"setup-const"===s)return n.onError(Q_(45,r.loc)),tP();if(!a.trim()||!Z_(r))return n.onError(Q_(42,r.loc)),tP();const l=i||s_("modelValue",!0),c=i?N_(i)?`onUpdate:${Br(i.content)}`:l_(['"onUpdate:" + ',i]):"onUpdate:modelValue";let u;u=l_([`${n.isTS?"($event: any)":"$event"} => ((`,r,") = $event)"]);const h=[a_(l,e.exp),a_(c,u)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map(e=>e.content).map(e=>(U_(e)?e:JSON.stringify(e))+": true").join(", "),n=i?N_(i)?`${i.content}Modifiers`:l_([i,' + "Modifiers"']):"modelModifiers";h.push(a_(n,s_(`{ ${t} }`,!1,e.loc,2)))}return tP(h)};function tP(e=[]){return{props:e}}const nP=/[\w).+\-_$\]]/,rP=(e,t)=>{T_("COMPILER_FILTERS",t)&&(5===e.type?iP(e.content,t):1===e.type&&e.props.forEach(e=>{7===e.type&&"for"!==e.name&&e.exp&&iP(e.exp,t)}))};function iP(e,t){if(4===e.type)oP(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];"object"==typeof r&&(4===r.type?oP(r,t):8===r.type?iP(e,t):5===r.type&&iP(r.content,t))}}function oP(e,t){const n=e.content;let r,i,o,a,s=!1,l=!1,c=!1,u=!1,h=0,d=0,p=0,f=0,g=[];for(o=0;o<n.length;o++)if(i=r,r=n.charCodeAt(o),s)39===r&&92!==i&&(s=!1);else if(l)34===r&&92!==i&&(l=!1);else if(c)96===r&&92!==i&&(c=!1);else if(u)47===r&&92!==i&&(u=!1);else if(124!==r||124===n.charCodeAt(o+1)||124===n.charCodeAt(o-1)||h||d||p){switch(r){case 34:l=!0;break;case 39:s=!0;break;case 96:c=!0;break;case 40:p++;break;case 41:p--;break;case 91:d++;break;case 93:d--;break;case 123:h++;break;case 125:h--}if(47===r){let e,t=o-1;for(;t>=0&&(e=n.charAt(t)," "===e);t--);e&&nP.test(e)||(u=!0)}}else void 0===a?(f=o+1,a=n.slice(0,o).trim()):m();function m(){g.push(n.slice(f,o).trim()),f=o+1}if(void 0===a?a=n.slice(0,o).trim():0!==f&&m(),g.length){for(o=0;o<g.length;o++)a=aP(a,g[o],t);e.content=a,e.ast=void 0}}function aP(e,t,n){n.helper(Q$);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${fC(t,"filter")}(${e})`;{const i=t.slice(0,r),o=t.slice(r+1);return n.filters.add(i),`${fC(i,"filter")}(${e}${")"!==o?","+o:o}`}}const sP=new WeakSet,lP=(e,t)=>{if(1===e.type){const n=tC(e,"memo");if(!n||sP.has(e)||t.inSSR)return;return sP.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&13===r.type&&(1!==e.tagType&&m_(r,t),e.codegenNode=c_(t.helper(H$),[n.exp,u_(void 0,r),"_cache",String(t.cached.length)]),t.cached.push(null))}}},cP=(e,t)=>{if(1===e.type)for(const n of e.props)if(7===n.type&&"bind"===n.name&&(!n.exp||4===n.exp.type&&!n.exp.content.trim())&&n.arg){const e=n.arg;if(4===e.type&&e.isStatic){const t=Br(e.content);(z_.test(t[0])||"-"===t[0])&&(n.exp=s_(t,!1,e.loc))}else t.onError(Q_(53,e.loc)),n.exp=s_("",!0,e.loc)}};function uP(e){return[[cP,JQ,wQ,lP,_Q,rP,WQ,NQ,RQ,HQ],{on:YQ,bind:ZQ,model:eP}]}function hP(e,t={}){const n=t.onError||__,r="module"===t.mode;!0===t.prefixIdentifiers?n(Q_(48)):r&&n(Q_(49));t.cacheHandlers&&n(Q_(50)),t.scopeId&&!r&&n(Q_(51));const i=hr({},t,{prefixIdentifiers:!1}),o=br(e)?JC(e,i):e,[a,s]=uP();return cQ(o,hr({},i,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:hr({},s,t.directiveTransforms||{})})),fQ(o,i)}const dP=()=>({props:[]}),pP=Symbol(""),fP=Symbol(""),gP=Symbol(""),mP=Symbol(""),OP=Symbol(""),AP=Symbol(""),yP=Symbol(""),vP=Symbol(""),bP=Symbol(""),xP=Symbol("");let wP;e_({[pP]:"vModelRadio",[fP]:"vModelCheckbox",[gP]:"vModelText",[mP]:"vModelSelect",[OP]:"vModelDynamic",[AP]:"withModifiers",[yP]:"withKeys",[vP]:"vShow",[bP]:"Transition",[xP]:"TransitionGroup"});const kP={parseMode:"html",isVoidTag:li,isNativeTag:e=>oi(e)||ai(e)||si(e),isPreTag:e=>"pre"===e,isIgnoreNewlineTag:e=>"pre"===e||"textarea"===e,decodeEntities:function(e,t=!1){return wP||(wP=document.createElement("div")),t?(wP.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,wP.children[0].getAttribute("foo")):(wP.innerHTML=e,wP.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?bP:"TransitionGroup"===e||"transition-group"===e?xP:void 0,getNamespace(e,t,n){let r=t?t.ns:n;if(t&&2===r)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some(e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(r=0);else t&&1===r&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(r=0));if(0===r){if("svg"===e)return 1;if("math"===e)return 2}return r}},SP=e=>{1===e.type&&e.props.forEach((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:s_("style",!0,t.loc),exp:TP(t.value.content,t.loc),modifiers:[],loc:t.loc})})},TP=(e,t)=>{const n=ni(e);return s_(JSON.stringify(n),!1,t,3)};function $P(e,t){return Q_(e,t)}const _P={54:"v-html is missing expression.",55:"v-html will override element children.",56:"v-text is missing expression.",57:"v-text will override element children.",58:"v-model can only be used on <input>, <textarea> and <select> elements.",59:"v-model argument is not supported on plain elements.",60:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",61:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",62:"v-show is missing expression.",63:"<Transition> expects exactly one child element or component.",64:"Tags with side effect (<script> and <style>) are ignored in client component templates."},CP=ir("passive,once,capture"),QP=ir("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),PP=ir("left,right"),EP=ir("onkeyup,onkeydown,onkeypress"),RP=(e,t)=>N_(e)&&"onclick"===e.content.toLowerCase()?s_(t,!0):4!==e.type?l_(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,BP=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},IP=[SP],LP={cloak:dP,html:(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError($P(54,i)),t.children.length&&(n.onError($P(55,i)),t.children.length=0),{props:[a_(s_("innerHTML",!0,i),r||s_("",!0))]}},text:(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError($P(56,i)),t.children.length&&(n.onError($P(57,i)),t.children.length=0),{props:[a_(s_("textContent",!0),r?rQ(r,n)>0?r:c_(n.helperString(I$),[r],i):s_("",!0))]}},model:(e,t,n)=>{const r=eP(e,t,n);if(!r.props.length||1===t.tagType)return r;e.arg&&n.onError($P(59,e.arg.loc));const{tag:i}=t,o=n.isCustomElement(i);if("input"===i||"textarea"===i||"select"===i||o){let a=gP,s=!1;if("input"===i||o){const r=nC(t,"type");if(r){if(7===r.type)a=OP;else if(r.value)switch(r.value.content){case"radio":a=pP;break;case"checkbox":a=fP;break;case"file":s=!0,n.onError($P(60,e.loc))}}else iC(t)&&(a=OP)}else"select"===i&&(a=mP);s||(r.needRuntime=n.helper(a))}else n.onError($P(58,e.loc));return r.props=r.props.filter(e=>!(4===e.key.type&&"modelValue"===e.key.content)),r},on:(e,t,n)=>YQ(e,t,n,t=>{const{modifiers:r}=e;if(!r.length)return t;let{key:i,value:o}=t.props[0];const{keyModifiers:a,nonKeyModifiers:s,eventOptionModifiers:l}=((e,t,n)=>{const r=[],i=[],o=[];for(let a=0;a<t.length;a++){const s=t[a].content;"native"===s&&$_("COMPILER_V_ON_NATIVE",n)||CP(s)?o.push(s):PP(s)?N_(e)?EP(e.content.toLowerCase())?r.push(s):i.push(s):(r.push(s),i.push(s)):QP(s)?i.push(s):r.push(s)}return{keyModifiers:r,nonKeyModifiers:i,eventOptionModifiers:o}})(i,r,n,e.loc);if(s.includes("right")&&(i=RP(i,"onContextmenu")),s.includes("middle")&&(i=RP(i,"onMouseup")),s.length&&(o=c_(n.helper(AP),[o,JSON.stringify(s)])),!a.length||N_(i)&&!EP(i.content.toLowerCase())||(o=c_(n.helper(yP),[o,JSON.stringify(a)])),l.length){const e=l.map(Dr).join("");i=N_(i)?s_(`${i.content}${e}`,!0):l_(["(",i,`) + "${e}"`])}return{props:[a_(i,o)]}}),show:(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError($P(62,i)),{props:[],needRuntime:n.helper(vP)}}};const DP=Object.freeze(Object.defineProperty({__proto__:null,BASE_TRANSITION:A$,BindingTypes:{DATA:"data",PROPS:"props",PROPS_ALIASED:"props-aliased",SETUP_LET:"setup-let",SETUP_CONST:"setup-const",SETUP_REACTIVE_CONST:"setup-reactive-const",SETUP_MAYBE_REF:"setup-maybe-ref",SETUP_REF:"setup-ref",OPTIONS:"options",LITERAL_CONST:"literal-const"},CAMELIZE:U$,CAPITALIZE:z$,CREATE_BLOCK:v$,CREATE_COMMENT:k$,CREATE_ELEMENT_BLOCK:b$,CREATE_ELEMENT_VNODE:w$,CREATE_SLOTS:B$,CREATE_STATIC:T$,CREATE_TEXT:S$,CREATE_VNODE:x$,CompilerDeprecationTypes:{COMPILER_IS_ON_ELEMENT:"COMPILER_IS_ON_ELEMENT",COMPILER_V_BIND_SYNC:"COMPILER_V_BIND_SYNC",COMPILER_V_BIND_OBJECT_ORDER:"COMPILER_V_BIND_OBJECT_ORDER",COMPILER_V_ON_NATIVE:"COMPILER_V_ON_NATIVE",COMPILER_V_IF_V_FOR_PRECEDENCE:"COMPILER_V_IF_V_FOR_PRECEDENCE",COMPILER_NATIVE_TEMPLATE:"COMPILER_NATIVE_TEMPLATE",COMPILER_INLINE_TEMPLATE:"COMPILER_INLINE_TEMPLATE",COMPILER_FILTERS:"COMPILER_FILTERS"},ConstantTypes:{NOT_CONSTANT:0,0:"NOT_CONSTANT",CAN_SKIP_PATCH:1,1:"CAN_SKIP_PATCH",CAN_CACHE:2,2:"CAN_CACHE",CAN_STRINGIFY:3,3:"CAN_STRINGIFY"},DOMDirectiveTransforms:LP,DOMErrorCodes:{X_V_HTML_NO_EXPRESSION:54,54:"X_V_HTML_NO_EXPRESSION",X_V_HTML_WITH_CHILDREN:55,55:"X_V_HTML_WITH_CHILDREN",X_V_TEXT_NO_EXPRESSION:56,56:"X_V_TEXT_NO_EXPRESSION",X_V_TEXT_WITH_CHILDREN:57,57:"X_V_TEXT_WITH_CHILDREN",X_V_MODEL_ON_INVALID_ELEMENT:58,58:"X_V_MODEL_ON_INVALID_ELEMENT",X_V_MODEL_ARG_ON_ELEMENT:59,59:"X_V_MODEL_ARG_ON_ELEMENT",X_V_MODEL_ON_FILE_INPUT_ELEMENT:60,60:"X_V_MODEL_ON_FILE_INPUT_ELEMENT",X_V_MODEL_UNNECESSARY_VALUE:61,61:"X_V_MODEL_UNNECESSARY_VALUE",X_V_SHOW_NO_EXPRESSION:62,62:"X_V_SHOW_NO_EXPRESSION",X_TRANSITION_INVALID_CHILDREN:63,63:"X_TRANSITION_INVALID_CHILDREN",X_IGNORED_SIDE_EFFECT_TAG:64,64:"X_IGNORED_SIDE_EFFECT_TAG",__EXTEND_POINT__:65,65:"__EXTEND_POINT__"},DOMErrorMessages:_P,DOMNodeTransforms:IP,ElementTypes:{ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},ErrorCodes:{ABRUPT_CLOSING_OF_EMPTY_COMMENT:0,0:"ABRUPT_CLOSING_OF_EMPTY_COMMENT",CDATA_IN_HTML_CONTENT:1,1:"CDATA_IN_HTML_CONTENT",DUPLICATE_ATTRIBUTE:2,2:"DUPLICATE_ATTRIBUTE",END_TAG_WITH_ATTRIBUTES:3,3:"END_TAG_WITH_ATTRIBUTES",END_TAG_WITH_TRAILING_SOLIDUS:4,4:"END_TAG_WITH_TRAILING_SOLIDUS",EOF_BEFORE_TAG_NAME:5,5:"EOF_BEFORE_TAG_NAME",EOF_IN_CDATA:6,6:"EOF_IN_CDATA",EOF_IN_COMMENT:7,7:"EOF_IN_COMMENT",EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT:8,8:"EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT",EOF_IN_TAG:9,9:"EOF_IN_TAG",INCORRECTLY_CLOSED_COMMENT:10,10:"INCORRECTLY_CLOSED_COMMENT",INCORRECTLY_OPENED_COMMENT:11,11:"INCORRECTLY_OPENED_COMMENT",INVALID_FIRST_CHARACTER_OF_TAG_NAME:12,12:"INVALID_FIRST_CHARACTER_OF_TAG_NAME",MISSING_ATTRIBUTE_VALUE:13,13:"MISSING_ATTRIBUTE_VALUE",MISSING_END_TAG_NAME:14,14:"MISSING_END_TAG_NAME",MISSING_WHITESPACE_BETWEEN_ATTRIBUTES:15,15:"MISSING_WHITESPACE_BETWEEN_ATTRIBUTES",NESTED_COMMENT:16,16:"NESTED_COMMENT",UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME:17,17:"UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME",UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE:18,18:"UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE",UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME:19,19:"UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME",UNEXPECTED_NULL_CHARACTER:20,20:"UNEXPECTED_NULL_CHARACTER",UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME:21,21:"UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME",UNEXPECTED_SOLIDUS_IN_TAG:22,22:"UNEXPECTED_SOLIDUS_IN_TAG",X_INVALID_END_TAG:23,23:"X_INVALID_END_TAG",X_MISSING_END_TAG:24,24:"X_MISSING_END_TAG",X_MISSING_INTERPOLATION_END:25,25:"X_MISSING_INTERPOLATION_END",X_MISSING_DIRECTIVE_NAME:26,26:"X_MISSING_DIRECTIVE_NAME",X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END:27,27:"X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END",X_V_IF_NO_EXPRESSION:28,28:"X_V_IF_NO_EXPRESSION",X_V_IF_SAME_KEY:29,29:"X_V_IF_SAME_KEY",X_V_ELSE_NO_ADJACENT_IF:30,30:"X_V_ELSE_NO_ADJACENT_IF",X_V_FOR_NO_EXPRESSION:31,31:"X_V_FOR_NO_EXPRESSION",X_V_FOR_MALFORMED_EXPRESSION:32,32:"X_V_FOR_MALFORMED_EXPRESSION",X_V_FOR_TEMPLATE_KEY_PLACEMENT:33,33:"X_V_FOR_TEMPLATE_KEY_PLACEMENT",X_V_BIND_NO_EXPRESSION:34,34:"X_V_BIND_NO_EXPRESSION",X_V_ON_NO_EXPRESSION:35,35:"X_V_ON_NO_EXPRESSION",X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET:36,36:"X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET",X_V_SLOT_MIXED_SLOT_USAGE:37,37:"X_V_SLOT_MIXED_SLOT_USAGE",X_V_SLOT_DUPLICATE_SLOT_NAMES:38,38:"X_V_SLOT_DUPLICATE_SLOT_NAMES",X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN:39,39:"X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN",X_V_SLOT_MISPLACED:40,40:"X_V_SLOT_MISPLACED",X_V_MODEL_NO_EXPRESSION:41,41:"X_V_MODEL_NO_EXPRESSION",X_V_MODEL_MALFORMED_EXPRESSION:42,42:"X_V_MODEL_MALFORMED_EXPRESSION",X_V_MODEL_ON_SCOPE_VARIABLE:43,43:"X_V_MODEL_ON_SCOPE_VARIABLE",X_V_MODEL_ON_PROPS:44,44:"X_V_MODEL_ON_PROPS",X_V_MODEL_ON_CONST:45,45:"X_V_MODEL_ON_CONST",X_INVALID_EXPRESSION:46,46:"X_INVALID_EXPRESSION",X_KEEP_ALIVE_INVALID_CHILDREN:47,47:"X_KEEP_ALIVE_INVALID_CHILDREN",X_PREFIX_ID_NOT_SUPPORTED:48,48:"X_PREFIX_ID_NOT_SUPPORTED",X_MODULE_MODE_NOT_SUPPORTED:49,49:"X_MODULE_MODE_NOT_SUPPORTED",X_CACHE_HANDLER_NOT_SUPPORTED:50,50:"X_CACHE_HANDLER_NOT_SUPPORTED",X_SCOPE_ID_NOT_SUPPORTED:51,51:"X_SCOPE_ID_NOT_SUPPORTED",X_VNODE_HOOKS:52,52:"X_VNODE_HOOKS",X_V_BIND_INVALID_SAME_NAME_ARGUMENT:53,53:"X_V_BIND_INVALID_SAME_NAME_ARGUMENT",__EXTEND_POINT__:54,54:"__EXTEND_POINT__"},FRAGMENT:f$,GUARD_REACTIVE_PROPS:X$,IS_MEMO_SAME:K$,IS_REF:G$,KEEP_ALIVE:O$,MERGE_PROPS:L$,NORMALIZE_CLASS:D$,NORMALIZE_PROPS:N$,NORMALIZE_STYLE:M$,Namespaces:{HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},NodeTypes:{ROOT:0,0:"ROOT",ELEMENT:1,1:"ELEMENT",TEXT:2,2:"TEXT",COMMENT:3,3:"COMMENT",SIMPLE_EXPRESSION:4,4:"SIMPLE_EXPRESSION",INTERPOLATION:5,5:"INTERPOLATION",ATTRIBUTE:6,6:"ATTRIBUTE",DIRECTIVE:7,7:"DIRECTIVE",COMPOUND_EXPRESSION:8,8:"COMPOUND_EXPRESSION",IF:9,9:"IF",IF_BRANCH:10,10:"IF_BRANCH",FOR:11,11:"FOR",TEXT_CALL:12,12:"TEXT_CALL",VNODE_CALL:13,13:"VNODE_CALL",JS_CALL_EXPRESSION:14,14:"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,15:"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,16:"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,17:"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,18:"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,19:"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,20:"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,21:"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,22:"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,23:"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,24:"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,25:"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,26:"JS_RETURN_STATEMENT"},OPEN_BLOCK:y$,POP_SCOPE_ID:j$,PUSH_SCOPE_ID:W$,RENDER_LIST:E$,RENDER_SLOT:R$,RESOLVE_COMPONENT:$$,RESOLVE_DIRECTIVE:C$,RESOLVE_DYNAMIC_COMPONENT:_$,RESOLVE_FILTER:Q$,SET_BLOCK_TRACKING:V$,SUSPENSE:m$,TELEPORT:g$,TO_DISPLAY_STRING:I$,TO_HANDLERS:F$,TO_HANDLER_KEY:q$,TRANSITION:bP,TRANSITION_GROUP:xP,TS_NODE_TYPES:M_,UNREF:Z$,V_MODEL_CHECKBOX:fP,V_MODEL_DYNAMIC:OP,V_MODEL_RADIO:pP,V_MODEL_SELECT:mP,V_MODEL_TEXT:gP,V_ON_WITH_KEYS:yP,V_ON_WITH_MODIFIERS:AP,V_SHOW:vP,WITH_CTX:Y$,WITH_DIRECTIVES:P$,WITH_MEMO:H$,advancePositionWithClone:function(e,t,n=t.length){return eC({offset:e.offset,line:e.line,column:e.column},t,n)},advancePositionWithMutation:eC,assert:function(e,t){if(!e)throw new Error(t||"unexpected compiler condition")},baseCompile:hP,baseParse:JC,buildDirectiveArgs:qQ,buildProps:FQ,buildSlots:IQ,checkCompatEnabled:$_,compile:function(e,t={}){return hP(e,hr({},kP,t,{nodeTransforms:[BP,...IP,...t.nodeTransforms||[]],directiveTransforms:hr({},LP,t.directiveTransforms||{}),transformHoist:null}))},convertToBlock:m_,createArrayExpression:i_,createAssignmentExpression:function(e,t){return{type:24,left:e,right:t,loc:t_}},createBlockStatement:p_,createCacheExpression:d_,createCallExpression:c_,createCompilerError:Q_,createCompoundExpression:l_,createConditionalExpression:h_,createDOMCompilerError:$P,createForLoopParams:PQ,createFunctionExpression:u_,createIfStatement:function(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:t_}},createInterpolation:function(e,t){return{type:5,loc:t,content:br(e)?s_(e,!1,t):e}},createObjectExpression:o_,createObjectProperty:a_,createReturnStatement:function(e){return{type:26,returns:e,loc:t_}},createRoot:n_,createSequenceExpression:function(e){return{type:25,expressions:e,loc:t_}},createSimpleExpression:s_,createStructuralDirectiveTransform:hQ,createTemplateLiteral:function(e){return{type:22,elements:e,loc:t_}},createTransformContext:lQ,createVNodeCall:r_,errorMessages:P_,extractIdentifiers:L_,findDir:tC,findProp:nC,forAliasRE:mC,generate:fQ,generateCodeFrame:Hr,getBaseTransformPreset:uP,getConstantType:rQ,getMemoedVNodeCall:gC,getVNodeBlockHelper:g_,getVNodeHelper:f_,hasDynamicKeyVBind:iC,hasScopeRef:function e(t,n){if(!t||0===Object.keys(n).length)return!1;switch(t.type){case 1:for(let r=0;r<t.props.length;r++){const i=t.props[r];if(7===i.type&&(e(i.arg,n)||e(i.exp,n)))return!0}return t.children.some(t=>e(t,n));case 11:return!!e(t.source,n)||t.children.some(t=>e(t,n));case 9:return t.branches.some(t=>e(t,n));case 10:return!!e(t.condition,n)||t.children.some(t=>e(t,n));case 4:return!t.isStatic&&U_(t.content)&&!!n[t.content];case 8:return t.children.some(t=>wr(t)&&e(t,n));case 5:case 12:return e(t.content,n);default:return!1}},helperNameMap:J$,injectProp:dC,isAllWhitespace:OC,isCommentOrWhitespace:yC,isCoreComponent:X_,isFnExpression:J_,isFnExpressionBrowser:H_,isFnExpressionNode:K_,isFunctionType:e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),isInDestructureAssignment:function(e,t){if(e&&("ObjectProperty"===e.type||"ArrayPattern"===e.type)){let e=t.length;for(;e--;){const n=t[e];if("AssignmentExpression"===n.type)return!0;if("ObjectProperty"!==n.type&&!n.type.endsWith("Pattern"))break}}return!1},isInNewExpression:function(e){let t=e.length;for(;t--;){const n=e[t];if("NewExpression"===n.type)return!0;if("MemberExpression"!==n.type)break}return!1},isMemberExpression:Z_,isMemberExpressionBrowser:j_,isMemberExpressionNode:Y_,isReferencedIdentifier:function(e,t,n){return!1},isSimpleIdentifier:U_,isSlotOutlet:cC,isStaticArgOf:rC,isStaticExp:N_,isStaticProperty:D_,isStaticPropertyKey:(e,t)=>D_(t)&&t.key===e,isTemplateNode:lC,isText:oC,isVPre:aC,isVSlot:sC,isWhitespaceText:AC,locStub:t_,noopDirectiveTransform:dP,parse:function(e,t={}){return JC(e,hr({},kP,t))},parserOptions:kP,processExpression:xQ,processFor:CQ,processIf:kQ,processSlotOutlet:jQ,registerRuntimeHelpers:e_,resolveComponentType:XQ,stringifyExpression:function e(t){return br(t)?t:4===t.type?t.content:t.children.map(e).join("")},toValidAssetId:fC,trackSlotScopes:RQ,trackVForSlotScopes:(e,t)=>{let n;if(lC(e)&&e.props.some(sC)&&(n=tC(e,"for"))){const e=n.forParseResult;if(e){QQ(e);const{value:n,key:r,index:i}=e,{addIdentifiers:o,removeIdentifiers:a}=t;return n&&o(n),r&&o(r),i&&o(i),()=>{n&&a(n),r&&a(r),i&&a(i)}}}},transform:cQ,transformBind:ZQ,transformElement:NQ,transformExpression:(e,t)=>{if(5===e.type)e.content=xQ(e.content,t);else if(1===e.type){const n=tC(e,"memo");for(let r=0;r<e.props.length;r++){const i=e.props[r];if(7===i.type&&"for"!==i.name){const e=i.exp,r=i.arg;!e||4!==e.type||"on"===i.name&&r||n&&r&&4===r.type&&"key"===r.content||(i.exp=xQ(e,t,"slot"===i.name)),r&&4===r.type&&!r.isStatic&&(i.arg=xQ(r,t))}}}},transformModel:eP,transformOn:YQ,transformStyle:SP,transformVBindShorthand:cP,traverseNode:uQ,unwrapTSNode:function e(t){return M_.includes(t.type)?e(t.expression):t},validFirstIdentCharRE:z_,walkBlockDeclarations:E_,walkFunctionParams:function(e,t){for(const n of e.params)for(const e of L_(n))t(e)},walkIdentifiers:function(e,t,n=!1,r=[],i=Object.create(null)){},warnDeprecation:function(e,t,n,...r){if("suppress-warning"===S_(e,t))return;const{message:i,link:o}=k_[e],a=`(deprecation ${e}) ${"function"==typeof i?i(...r):i}${o?`\n Details: ${o}`:""}`,s=new SyntaxError(a);s.code=e,n&&(s.loc=n),t.onWarn(s)}},Symbol.toStringTag,{value:"Module"})),MP=ik(DP),NP=ik(Vd),XP=ik(_i);var FP,UP;function zP(){return UP||(UP=1,d$.exports=(FP||(FP=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=MP,n=NP,r=XP;function i(e){var t=Object.create(null);if(e)for(var n in e)t[n]=e[n];return t.default=e,Object.freeze(t)}var o=i(n);const a=Object.create(null);function s(e,n){if(!r.isString(e)){if(!e.nodeType)return r.NOOP;e=e.innerHTML}const i=r.genCacheKey(e,n),s=a[i];if(s)return s;if("#"===e[0]){const t=document.querySelector(e);e=t?t.innerHTML:""}const l=r.extend({hoistStatic:!0,onError:void 0,onWarn:r.NOOP},n);l.isCustomElement||"undefined"==typeof customElements||(l.isCustomElement=e=>!!customElements.get(e));const{code:c}=t.compile(e,l),u=new Function("Vue",c)(o);return u._rc=!0,a[i]=u}n.registerRuntimeCompiler(s),e.compile=s,Object.keys(n).forEach(function(t){"default"===t||Object.prototype.hasOwnProperty.call(e,t)||(e[t]=n[t])})}(p$)),p$)),d$.exports}function qP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function VP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qP(Object(n),!0).forEach(function(t){jP(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function WP(e){return(WP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function jP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YP(){return YP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YP.apply(this,arguments)}function ZP(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function GP(e){return function(e){if(Array.isArray(e))return HP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return HP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return HP(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function HP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function KP(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var JP=KP(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),eE=KP(/Edge/i),tE=KP(/firefox/i),nE=KP(/safari/i)&&!KP(/chrome/i)&&!KP(/android/i),rE=KP(/iP(ad|od|hone)/i),iE=KP(/chrome/i)&&KP(/android/i),oE={capture:!1,passive:!1};function aE(e,t,n){e.addEventListener(t,n,!JP&&oE)}function sE(e,t,n){e.removeEventListener(t,n,!JP&&oE)}function lE(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function cE(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function uE(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&lE(e,t):lE(e,t))||r&&e===n)return e;if(e===n)break}while(e=cE(e))}return null}var hE,dE=/\s+/g;function pE(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(dE," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(dE," ")}}function fE(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function gE(e,t){var n="";if("string"==typeof e)n=e;else do{var r=fE(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function mE(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function OE(){var e=document.scrollingElement;return e||document.documentElement}function AE(e,t,n,r,i){if(e.getBoundingClientRect||e===window){var o,a,s,l,c,u,h;if(e!==window&&e.parentNode&&e!==OE()?(a=(o=e.getBoundingClientRect()).top,s=o.left,l=o.bottom,c=o.right,u=o.height,h=o.width):(a=0,s=0,l=window.innerHeight,c=window.innerWidth,u=window.innerHeight,h=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!JP))do{if(i&&i.getBoundingClientRect&&("none"!==fE(i,"transform")||n&&"static"!==fE(i,"position"))){var d=i.getBoundingClientRect();a-=d.top+parseInt(fE(i,"border-top-width")),s-=d.left+parseInt(fE(i,"border-left-width")),l=a+o.height,c=s+o.width;break}}while(i=i.parentNode);if(r&&e!==window){var p=gE(i||e),f=p&&p.a,g=p&&p.d;p&&(l=(a/=g)+(u/=g),c=(s/=f)+(h/=f))}return{top:a,left:s,bottom:l,right:c,width:h,height:u}}}function yE(e,t,n){for(var r=kE(e,!0),i=AE(e)[t];r;){if(!(i>=AE(r)[n]))return r;if(r===OE())break;r=kE(r,!1)}return!1}function vE(e,t,n,r){for(var i=0,o=0,a=e.children;o<a.length;){if("none"!==a[o].style.display&&a[o]!==QR.ghost&&(r||a[o]!==QR.dragged)&&uE(a[o],n.draggable,e,!1)){if(i===t)return a[o];i++}o++}return null}function bE(e,t){for(var n=e.lastElementChild;n&&(n===QR.ghost||"none"===fE(n,"display")||t&&!lE(n,t));)n=n.previousElementSibling;return n||null}function xE(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===QR.clone||t&&!lE(e,t)||n++;return n}function wE(e){var t=0,n=0,r=OE();if(e)do{var i=gE(e),o=i.a,a=i.d;t+=e.scrollLeft*o,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function kE(e,t){if(!e||!e.getBoundingClientRect)return OE();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=fE(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return OE();if(r||t)return n;r=!0}}}while(n=n.parentNode);return OE()}function SE(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function TE(e,t){return function(){if(!hE){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),hE=setTimeout(function(){hE=void 0},t)}}}function $E(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function _E(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function CE(e,t){fE(e,"position","absolute"),fE(e,"top",t.top),fE(e,"left",t.left),fE(e,"width",t.width),fE(e,"height",t.height)}function QE(e){fE(e,"position",""),fE(e,"top",""),fE(e,"left",""),fE(e,"width",""),fE(e,"height","")}var PE="Sortable"+(new Date).getTime();function EE(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach(function(e){if("none"!==fE(e,"display")&&e!==QR.ghost){t.push({target:e,rect:AE(e)});var n=VP({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=gE(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}})},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var i=!1,o=0;t.forEach(function(e){var t=0,n=e.target,a=n.fromRect,s=AE(n),l=n.prevFromRect,c=n.prevToRect,u=e.rect,h=gE(n,!0);h&&(s.top-=h.f,s.left-=h.e),n.toRect=s,n.thisAnimationDuration&&SE(l,s)&&!SE(a,s)&&(u.top-s.top)/(u.left-s.left)===(a.top-s.top)/(a.left-s.left)&&(t=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(u,l,c,r.options)),SE(s,a)||(n.prevFromRect=a,n.prevToRect=s,t||(t=r.options.animation),r.animate(n,u,s,t)),t&&(i=!0,o=Math.max(o,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout(function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null},t),n.thisAnimationDuration=t)}),clearTimeout(e),i?e=setTimeout(function(){"function"==typeof n&&n()},o):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){fE(e,"transition",""),fE(e,"transform","");var i=gE(this.el),o=i&&i.a,a=i&&i.d,s=(t.left-n.left)/(o||1),l=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!l,fE(e,"transform","translate3d("+s+"px,"+l+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),fE(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),fE(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout(function(){fE(e,"transition",""),fE(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1},r)}}}}var RE=[],BE={initializeByDefault:!0},IE={mount:function(e){for(var t in BE)BE.hasOwnProperty(t)&&!(t in e)&&(e[t]=BE[t]);RE.forEach(function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),RE.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+"Global";RE.forEach(function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](VP({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](VP({sortable:t},n)))})},initializePlugins:function(e,t,n,r){for(var i in RE.forEach(function(r){var i=r.pluginName;if(e.options[i]||r.initializeByDefault){var o=new r(e,t,e.options);o.sortable=e,o.options=e.options,e[i]=o,YP(n,o.defaults)}}),e.options)if(e.options.hasOwnProperty(i)){var o=this.modifyOption(e,i,e.options[i]);void 0!==o&&(e.options[i]=o)}},getEventProperties:function(e,t){var n={};return RE.forEach(function(r){"function"==typeof r.eventProperties&&YP(n,r.eventProperties.call(t[r.pluginName],e))}),n},modifyOption:function(e,t,n){var r;return RE.forEach(function(i){e[i.pluginName]&&i.optionListeners&&"function"==typeof i.optionListeners[t]&&(r=i.optionListeners[t].call(e[i.pluginName],n))}),r}};function LE(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,o=e.cloneEl,a=e.toEl,s=e.fromEl,l=e.oldIndex,c=e.newIndex,u=e.oldDraggableIndex,h=e.newDraggableIndex,d=e.originalEvent,p=e.putSortable,f=e.extraEventProperties;if(t=t||n&&n[PE]){var g,m=t.options,O="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||JP||eE?(g=document.createEvent("Event")).initEvent(r,!0,!0):g=new CustomEvent(r,{bubbles:!0,cancelable:!0}),g.to=a||n,g.from=s||n,g.item=i||n,g.clone=o,g.oldIndex=l,g.newIndex=c,g.oldDraggableIndex=u,g.newDraggableIndex=h,g.originalEvent=d,g.pullMode=p?p.lastPutMode:void 0;var A=VP(VP({},f),IE.getEventProperties(r,t));for(var y in A)g[y]=A[y];n&&n.dispatchEvent(g),m[O]&&m[O].call(t,g)}}var DE=["evt"],ME=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=ZP(n,DE);IE.pluginEvent.bind(QR)(e,t,VP({dragEl:XE,parentEl:FE,ghostEl:UE,rootEl:zE,nextEl:qE,lastDownEl:VE,cloneEl:WE,cloneHidden:jE,dragStarted:aR,putSortable:JE,activeSortable:QR.active,originalEvent:r,oldIndex:YE,oldDraggableIndex:GE,newIndex:ZE,newDraggableIndex:HE,hideGhostForTarget:TR,unhideGhostForTarget:$R,cloneNowHidden:function(){jE=!0},cloneNowShown:function(){jE=!1},dispatchSortableEvent:function(e){NE({sortable:t,name:e,originalEvent:r})}},i))};function NE(e){LE(VP({putSortable:JE,cloneEl:WE,targetEl:XE,rootEl:zE,oldIndex:YE,oldDraggableIndex:GE,newIndex:ZE,newDraggableIndex:HE},e))}var XE,FE,UE,zE,qE,VE,WE,jE,YE,ZE,GE,HE,KE,JE,eR,tR,nR,rR,iR,oR,aR,sR,lR,cR,uR,hR=!1,dR=!1,pR=[],fR=!1,gR=!1,mR=[],OR=!1,AR=[],yR="undefined"!=typeof document,vR=rE,bR=eE||JP?"cssFloat":"float",xR=yR&&!iE&&!rE&&"draggable"in document.createElement("div"),wR=function(){if(yR){if(JP)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),kR=function(e,t){var n=fE(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=vE(e,0,t),o=vE(e,1,t),a=i&&fE(i),s=o&&fE(o),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+AE(i).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+AE(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!o||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=r&&"none"===n[bR]||o&&"none"===n[bR]&&l+c>r)?"vertical":"horizontal"},SR=function(e){function t(e,n){return function(r,i,o,a){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,i,o,a),n)(r,i,o,a);var l=(n?r:i).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},r=e.group;r&&"object"==WP(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},TR=function(){!wR&&UE&&fE(UE,"display","none")},$R=function(){!wR&&UE&&fE(UE,"display","")};yR&&document.addEventListener("click",function(e){if(dR)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),dR=!1,!1},!0);var _R=function(e){if(XE){e=e.touches?e.touches[0]:e;var t=(i=e.clientX,o=e.clientY,pR.some(function(e){var t=e[PE].options.emptyInsertThreshold;if(t&&!bE(e)){var n=AE(e),r=i>=n.left-t&&i<=n.right+t,s=o>=n.top-t&&o<=n.bottom+t;return r&&s?a=e:void 0}}),a);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[PE]._onDragOver(n)}}var i,o,a},CR=function(e){XE&&XE.parentNode[PE]._isOutsideThisEl(e.target)};function QR(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=YP({},t),e[PE]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return kR(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==QR.supportPointer&&"PointerEvent"in window&&!nE,emptyInsertThreshold:5};for(var r in IE.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in SR(t),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&xR,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?aE(e,"pointerdown",this._onTapStart):(aE(e,"mousedown",this._onTapStart),aE(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(aE(e,"dragover",this),aE(e,"dragenter",this)),pR.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),YP(this,EE())}function PR(e,t,n,r,i,o,a,s){var l,c,u=e[PE],h=u.options.onMove;return!window.CustomEvent||JP||eE?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=i||t,l.relatedRect=o||AE(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),h&&(c=h.call(u,l,a)),c}function ER(e){e.draggable=!1}function RR(){OR=!1}function BR(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function IR(e){return setTimeout(e,0)}function LR(e){return clearTimeout(e)}QR.prototype={constructor:QR,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(sR=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,XE):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=r.filter;if(function(e){AR.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var r=t[n];r.checked&&AR.push(r)}}(n),!XE&&!(/mousedown|pointerdown/.test(o)&&0!==e.button||r.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!nE||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=uE(s,r.draggable,n,!1))&&s.animated||VE===s)){if(YE=xE(s),GE=xE(s,r.draggable),"function"==typeof c){if(c.call(this,e,s,this))return NE({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),ME("filter",t,{evt:e}),void(i&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some(function(r){if(r=uE(l,r.trim(),n,!1))return NE({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),ME("filter",t,{evt:e}),!0})))return void(i&&e.cancelable&&e.preventDefault());r.handle&&!uE(l,r.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var r,i=this,o=i.el,a=i.options,s=o.ownerDocument;if(n&&!XE&&n.parentNode===o){var l=AE(n);if(zE=o,FE=(XE=n).parentNode,qE=XE.nextSibling,VE=n,KE=a.group,QR.dragged=XE,eR={target:XE,clientX:(t||e).clientX,clientY:(t||e).clientY},iR=eR.clientX-l.left,oR=eR.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,XE.style["will-change"]="all",r=function(){ME("delayEnded",i,{evt:e}),QR.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!tE&&i.nativeDraggable&&(XE.draggable=!0),i._triggerDragStart(e,t),NE({sortable:i,name:"choose",originalEvent:e}),pE(XE,a.chosenClass,!0))},a.ignore.split(",").forEach(function(e){mE(XE,e.trim(),ER)}),aE(s,"dragover",_R),aE(s,"mousemove",_R),aE(s,"touchmove",_R),aE(s,"mouseup",i._onDrop),aE(s,"touchend",i._onDrop),aE(s,"touchcancel",i._onDrop),tE&&this.nativeDraggable&&(this.options.touchStartThreshold=4,XE.draggable=!0),ME("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(eE||JP))r();else{if(QR.eventCanceled)return void this._onDrop();aE(s,"mouseup",i._disableDelayedDrag),aE(s,"touchend",i._disableDelayedDrag),aE(s,"touchcancel",i._disableDelayedDrag),aE(s,"mousemove",i._delayedDragTouchMoveHandler),aE(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&aE(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){XE&&ER(XE),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;sE(e,"mouseup",this._disableDelayedDrag),sE(e,"touchend",this._disableDelayedDrag),sE(e,"touchcancel",this._disableDelayedDrag),sE(e,"mousemove",this._delayedDragTouchMoveHandler),sE(e,"touchmove",this._delayedDragTouchMoveHandler),sE(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?aE(document,"pointermove",this._onTouchMove):aE(document,t?"touchmove":"mousemove",this._onTouchMove):(aE(XE,"dragend",this),aE(zE,"dragstart",this._onDragStart));try{document.selection?IR(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(hR=!1,zE&&XE){ME("dragStarted",this,{evt:t}),this.nativeDraggable&&aE(document,"dragover",CR);var n=this.options;!e&&pE(XE,n.dragClass,!1),pE(XE,n.ghostClass,!0),QR.active=this,e&&this._appendGhost(),NE({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(tR){this._lastX=tR.clientX,this._lastY=tR.clientY,TR();for(var e=document.elementFromPoint(tR.clientX,tR.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(tR.clientX,tR.clientY))!==t;)t=e;if(XE.parentNode[PE]._isOutsideThisEl(e),t)do{if(t[PE]){if(t[PE]._onDragOver({clientX:tR.clientX,clientY:tR.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);$R()}},_onTouchMove:function(e){if(eR){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,o=UE&&gE(UE,!0),a=UE&&o&&o.a,s=UE&&o&&o.d,l=vR&&uR&&wE(uR),c=(i.clientX-eR.clientX+r.x)/(a||1)+(l?l[0]-mR[0]:0)/(a||1),u=(i.clientY-eR.clientY+r.y)/(s||1)+(l?l[1]-mR[1]:0)/(s||1);if(!QR.active&&!hR){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(UE){o?(o.e+=c-(nR||0),o.f+=u-(rR||0)):o={a:1,b:0,c:0,d:1,e:c,f:u};var h="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");fE(UE,"webkitTransform",h),fE(UE,"mozTransform",h),fE(UE,"msTransform",h),fE(UE,"transform",h),nR=c,rR=u,tR=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!UE){var e=this.options.fallbackOnBody?document.body:zE,t=AE(XE,!0,vR,!0,e),n=this.options;if(vR){for(uR=e;"static"===fE(uR,"position")&&"none"===fE(uR,"transform")&&uR!==document;)uR=uR.parentNode;uR!==document.body&&uR!==document.documentElement?(uR===document&&(uR=OE()),t.top+=uR.scrollTop,t.left+=uR.scrollLeft):uR=OE(),mR=wE(uR)}pE(UE=XE.cloneNode(!0),n.ghostClass,!1),pE(UE,n.fallbackClass,!0),pE(UE,n.dragClass,!0),fE(UE,"transition",""),fE(UE,"transform",""),fE(UE,"box-sizing","border-box"),fE(UE,"margin",0),fE(UE,"top",t.top),fE(UE,"left",t.left),fE(UE,"width",t.width),fE(UE,"height",t.height),fE(UE,"opacity","0.8"),fE(UE,"position",vR?"absolute":"fixed"),fE(UE,"zIndex","100000"),fE(UE,"pointerEvents","none"),QR.ghost=UE,e.appendChild(UE),fE(UE,"transform-origin",iR/parseInt(UE.style.width)*100+"% "+oR/parseInt(UE.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;ME("dragStart",this,{evt:e}),QR.eventCanceled?this._onDrop():(ME("setupClone",this),QR.eventCanceled||((WE=_E(XE)).draggable=!1,WE.style["will-change"]="",this._hideClone(),pE(WE,this.options.chosenClass,!1),QR.clone=WE),n.cloneId=IR(function(){ME("clone",n),QR.eventCanceled||(n.options.removeCloneOnHide||zE.insertBefore(WE,XE),n._hideClone(),NE({sortable:n,name:"clone"}))}),!t&&pE(XE,i.dragClass,!0),t?(dR=!0,n._loopId=setInterval(n._emulateDragOver,50)):(sE(document,"mouseup",n._onDrop),sE(document,"touchend",n._onDrop),sE(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",i.setData&&i.setData.call(n,r,XE)),aE(document,"drop",n),fE(XE,"transform","translateZ(0)")),hR=!0,n._dragStartId=IR(n._dragStarted.bind(n,t,e)),aE(document,"selectstart",n),aR=!0,nE&&fE(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,i,o=this.el,a=e.target,s=this.options,l=s.group,c=QR.active,u=KE===l,h=s.sort,d=JE||c,p=this,f=!1;if(!OR){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),a=uE(a,s.draggable,o,!0),C("dragOver"),QR.eventCanceled)return f;if(XE.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return P(!1);if(dR=!1,c&&!s.disabled&&(u?h||(r=FE!==zE):JE===this||(this.lastPutMode=KE.checkPull(this,c,XE,e))&&l.checkPut(this,c,XE,e))){if(i="vertical"===this._getDirection(e,a),t=AE(XE),C("dragOverValid"),QR.eventCanceled)return f;if(r)return FE=zE,Q(),this._hideClone(),C("revert"),QR.eventCanceled||(qE?zE.insertBefore(XE,qE):zE.appendChild(XE)),P(!0);var g=bE(o,s.draggable);if(!g||function(e,t,n){var r=AE(bE(n.el,n.options.draggable)),i=10;return t?e.clientX>r.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}(e,i,this)&&!g.animated){if(g===XE)return P(!1);if(g&&o===e.target&&(a=g),a&&(n=AE(a)),!1!==PR(zE,o,XE,t,a,n,e,!!a))return Q(),o.appendChild(XE),FE=o,E(),P(!0)}else if(g&&function(e,t,n){var r=AE(vE(n.el,0,n.options,!0)),i=10;return t?e.clientX<r.left-i||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-i||e.clientY<r.bottom&&e.clientX<r.left}(e,i,this)){var m=vE(o,0,s,!0);if(m===XE)return P(!1);if(n=AE(a=m),!1!==PR(zE,o,XE,t,a,n,e,!1))return Q(),o.insertBefore(XE,m),FE=o,E(),P(!0)}else if(a.parentNode===o){n=AE(a);var O,A,y,v=XE.parentNode!==o,b=!function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,o=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return r===a||i===s||r+o/2===a+l/2}(XE.animated&&XE.toRect||t,a.animated&&a.toRect||n,i),x=i?"top":"left",w=yE(a,"top","top")||yE(XE,"top","top"),k=w?w.scrollTop:void 0;if(sR!==a&&(A=n[x],fR=!1,gR=!b&&s.invertSwap||v),O=function(e,t,n,r,i,o,a,s){var l=r?e.clientY:e.clientX,c=r?n.height:n.width,u=r?n.top:n.left,h=r?n.bottom:n.right,d=!1;if(!a)if(s&&cR<c*i){if(!fR&&(1===lR?l>u+c*o/2:l<h-c*o/2)&&(fR=!0),fR)d=!0;else if(1===lR?l<u+cR:l>h-cR)return-lR}else if(l>u+c*(1-i)/2&&l<h-c*(1-i)/2)return function(e){return xE(XE)<xE(e)?1:-1}(t);if((d=d||a)&&(l<u+c*o/2||l>h-c*o/2))return l>u+c/2?1:-1;return 0}(e,a,n,i,b?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,gR,sR===a),0!==O){var S=xE(XE);do{S-=O,y=FE.children[S]}while(y&&("none"===fE(y,"display")||y===UE))}if(0===O||y===a)return P(!1);sR=a,lR=O;var T=a.nextElementSibling,$=!1,_=PR(zE,o,XE,t,a,n,e,$=1===O);if(!1!==_)return 1!==_&&-1!==_||($=1===_),OR=!0,setTimeout(RR,30),Q(),$&&!T?o.appendChild(XE):a.parentNode.insertBefore(XE,$?T:a),w&&$E(w,0,k-w.scrollTop),FE=XE.parentNode,void 0===A||gR||(cR=Math.abs(A-AE(a)[x])),E(),P(!0)}if(o.contains(XE))return P(!1)}return!1}function C(s,l){ME(s,p,VP({evt:e,isOwner:u,axis:i?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:h,fromSortable:d,target:a,completed:P,onMove:function(n,r){return PR(zE,o,XE,t,n,AE(n),e,r)},changed:E},l))}function Q(){C("dragOverAnimationCapture"),p.captureAnimationState(),p!==d&&d.captureAnimationState()}function P(t){return C("dragOverCompleted",{insertion:t}),t&&(u?c._hideClone():c._showClone(p),p!==d&&(pE(XE,JE?JE.options.ghostClass:c.options.ghostClass,!1),pE(XE,s.ghostClass,!0)),JE!==p&&p!==QR.active?JE=p:p===QR.active&&JE&&(JE=null),d===p&&(p._ignoreWhileAnimating=a),p.animateAll(function(){C("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(a===XE&&!XE.animated||a===o&&!a.animated)&&(sR=null),s.dragoverBubble||e.rootEl||a===document||(XE.parentNode[PE]._isOutsideThisEl(e.target),!t&&_R(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),f=!0}function E(){ZE=xE(XE),HE=xE(XE,s.draggable),NE({sortable:p,name:"change",toEl:o,newIndex:ZE,newDraggableIndex:HE,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){sE(document,"mousemove",this._onTouchMove),sE(document,"touchmove",this._onTouchMove),sE(document,"pointermove",this._onTouchMove),sE(document,"dragover",_R),sE(document,"mousemove",_R),sE(document,"touchmove",_R)},_offUpEvents:function(){var e=this.el.ownerDocument;sE(e,"mouseup",this._onDrop),sE(e,"touchend",this._onDrop),sE(e,"pointerup",this._onDrop),sE(e,"touchcancel",this._onDrop),sE(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ZE=xE(XE),HE=xE(XE,n.draggable),ME("drop",this,{evt:e}),FE=XE&&XE.parentNode,ZE=xE(XE),HE=xE(XE,n.draggable),QR.eventCanceled||(hR=!1,gR=!1,fR=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),LR(this.cloneId),LR(this._dragStartId),this.nativeDraggable&&(sE(document,"drop",this),sE(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),nE&&fE(document.body,"user-select",""),fE(XE,"transform",""),e&&(aR&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),UE&&UE.parentNode&&UE.parentNode.removeChild(UE),(zE===FE||JE&&"clone"!==JE.lastPutMode)&&WE&&WE.parentNode&&WE.parentNode.removeChild(WE),XE&&(this.nativeDraggable&&sE(XE,"dragend",this),ER(XE),XE.style["will-change"]="",aR&&!hR&&pE(XE,JE?JE.options.ghostClass:this.options.ghostClass,!1),pE(XE,this.options.chosenClass,!1),NE({sortable:this,name:"unchoose",toEl:FE,newIndex:null,newDraggableIndex:null,originalEvent:e}),zE!==FE?(ZE>=0&&(NE({rootEl:FE,name:"add",toEl:FE,fromEl:zE,originalEvent:e}),NE({sortable:this,name:"remove",toEl:FE,originalEvent:e}),NE({rootEl:FE,name:"sort",toEl:FE,fromEl:zE,originalEvent:e}),NE({sortable:this,name:"sort",toEl:FE,originalEvent:e})),JE&&JE.save()):ZE!==YE&&ZE>=0&&(NE({sortable:this,name:"update",toEl:FE,originalEvent:e}),NE({sortable:this,name:"sort",toEl:FE,originalEvent:e})),QR.active&&(null!=ZE&&-1!==ZE||(ZE=YE,HE=GE),NE({sortable:this,name:"end",toEl:FE,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){ME("nulling",this),zE=XE=FE=UE=qE=WE=VE=jE=eR=tR=aR=ZE=HE=YE=GE=sR=lR=JE=KE=QR.dragged=QR.ghost=QR.clone=QR.active=null,AR.forEach(function(e){e.checked=!0}),AR.length=nR=rR=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":XE&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,i=n.length,o=this.options;r<i;r++)uE(e=n[r],o.draggable,this.el,!1)&&t.push(e.getAttribute(o.dataIdAttr)||BR(e));return t},sort:function(e,t){var n={},r=this.el;this.toArray().forEach(function(e,t){var i=r.children[t];uE(i,this.options.draggable,r,!1)&&(n[e]=i)},this),t&&this.captureAnimationState(),e.forEach(function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return uE(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=IE.modifyOption(this,e,t);n[e]=void 0!==r?r:t,"group"===e&&SR(n)},destroy:function(){ME("destroy",this);var e=this.el;e[PE]=null,sE(e,"mousedown",this._onTapStart),sE(e,"touchstart",this._onTapStart),sE(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(sE(e,"dragover",this),sE(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),pR.splice(pR.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!jE){if(ME("hideClone",this),QR.eventCanceled)return;fE(WE,"display","none"),this.options.removeCloneOnHide&&WE.parentNode&&WE.parentNode.removeChild(WE),jE=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(jE){if(ME("showClone",this),QR.eventCanceled)return;XE.parentNode!=zE||this.options.group.revertClone?qE?zE.insertBefore(WE,qE):zE.appendChild(WE):zE.insertBefore(WE,XE),this.options.group.revertClone&&this.animate(XE,WE),fE(WE,"display",""),jE=!1}}else this._hideClone()}},yR&&aE(document,"touchmove",function(e){(QR.active||hR)&&e.cancelable&&e.preventDefault()}),QR.utils={on:aE,off:sE,css:fE,find:mE,is:function(e,t){return!!uE(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:TE,closest:uE,toggleClass:pE,clone:_E,index:xE,nextTick:IR,cancelNextTick:LR,detectDirection:kR,getChild:vE},QR.get=function(e){return e[PE]},QR.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(QR.utils=VP(VP({},QR.utils),e.utils)),IE.mount(e)})},QR.create=function(e,t){return new QR(e,t)},QR.version="1.14.0";var DR,MR,NR,XR,FR,UR,zR=[],qR=!1;function VR(){zR.forEach(function(e){clearInterval(e.pid)}),zR=[]}function WR(){clearInterval(UR)}var jR,YR=TE(function(e,t,n,r){if(t.scroll){var i,o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,c=OE(),u=!1;MR!==n&&(MR=n,VR(),DR=t.scroll,i=t.scrollFn,!0===DR&&(DR=kE(n,!0)));var h=0,d=DR;do{var p=d,f=AE(p),g=f.top,m=f.bottom,O=f.left,A=f.right,y=f.width,v=f.height,b=void 0,x=void 0,w=p.scrollWidth,k=p.scrollHeight,S=fE(p),T=p.scrollLeft,$=p.scrollTop;p===c?(b=y<w&&("auto"===S.overflowX||"scroll"===S.overflowX||"visible"===S.overflowX),x=v<k&&("auto"===S.overflowY||"scroll"===S.overflowY||"visible"===S.overflowY)):(b=y<w&&("auto"===S.overflowX||"scroll"===S.overflowX),x=v<k&&("auto"===S.overflowY||"scroll"===S.overflowY));var _=b&&(Math.abs(A-o)<=s&&T+y<w)-(Math.abs(O-o)<=s&&!!T),C=x&&(Math.abs(m-a)<=s&&$+v<k)-(Math.abs(g-a)<=s&&!!$);if(!zR[h])for(var Q=0;Q<=h;Q++)zR[Q]||(zR[Q]={});zR[h].vx==_&&zR[h].vy==C&&zR[h].el===p||(zR[h].el=p,zR[h].vx=_,zR[h].vy=C,clearInterval(zR[h].pid),0==_&&0==C||(u=!0,zR[h].pid=setInterval(function(){r&&0===this.layer&&QR.active._onTouchMove(FR);var t=zR[this.layer].vy?zR[this.layer].vy*l:0,n=zR[this.layer].vx?zR[this.layer].vx*l:0;"function"==typeof i&&"continue"!==i.call(QR.dragged.parentNode[PE],n,t,e,FR,zR[this.layer].el)||$E(zR[this.layer].el,n,t)}.bind({layer:h}),24))),h++}while(t.bubbleScroll&&d!==c&&(d=kE(d,!1)));qR=u}},30),ZR=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,o=e.dispatchSortableEvent,a=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=n||i;a();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(u)&&(o("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function GR(){}function HR(){}GR.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=vE(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:ZR},YP(GR,{pluginName:"revertOnSpill"}),HR.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:ZR},YP(HR,{pluginName:"removeOnSpill"});var KR,JR,eB,tB,nB,rB=[],iB=[],oB=!1,aB=!1,sB=!1;function lB(e,t){iB.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function cB(){rB.forEach(function(e){e!==eB&&e.parentNode&&e.parentNode.removeChild(e)})}QR.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?aE(document,"dragover",this._handleAutoScroll):this.options.supportPointer?aE(document,"pointermove",this._handleFallbackAutoScroll):t.touches?aE(document,"touchmove",this._handleFallbackAutoScroll):aE(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?sE(document,"dragover",this._handleAutoScroll):(sE(document,"pointermove",this._handleFallbackAutoScroll),sE(document,"touchmove",this._handleFallbackAutoScroll),sE(document,"mousemove",this._handleFallbackAutoScroll)),WR(),VR(),clearTimeout(hE),hE=void 0},nulling:function(){FR=MR=DR=qR=UR=NR=XR=null,zR.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,o=document.elementFromPoint(r,i);if(FR=e,t||this.options.forceAutoScrollFallback||eE||JP||nE){YR(e,this.options,o,t);var a=kE(o,!0);!qR||UR&&r===NR&&i===XR||(UR&&WR(),UR=setInterval(function(){var o=kE(document.elementFromPoint(r,i),!0);o!==a&&(a=o,VR()),YR(e,n.options,o,t)},10),NR=r,XR=i)}else{if(!this.options.bubbleScroll||kE(o,!0)===OE())return void VR();YR(e,this.options,kE(o,!1),!1)}}},YP(e,{pluginName:"scroll",initializeByDefault:!0})}),QR.mount(HR,GR);const uB=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:function(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?aE(document,"pointerup",this._deselectMultiDrag):(aE(document,"mouseup",this._deselectMultiDrag),aE(document,"touchend",this._deselectMultiDrag)),aE(document,"keydown",this._checkKeyDown),aE(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var r="";rB.length&&JR===e?rB.forEach(function(e,t){r+=(t?", ":"")+e.textContent}):r=n.textContent,t.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;eB=t},delayEnded:function(){this.isMultiDrag=~rB.indexOf(eB)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<rB.length;r++)iB.push(_E(rB[r])),iB[r].sortableIndex=rB[r].sortableIndex,iB[r].draggable=!1,iB[r].style["will-change"]="",pE(iB[r],this.options.selectedClass,!1),rB[r]===eB&&pE(iB[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,i=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||rB.length&&JR===t&&(lB(!0,n),r("clone"),i()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(lB(!1,n),iB.forEach(function(e){fE(e,"display","")}),t(),nB=!1,r())},hideClone:function(e){var t=this;e.sortable;var n=e.cloneNowHidden,r=e.cancel;this.isMultiDrag&&(iB.forEach(function(e){fE(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)}),n(),nB=!0,r())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&JR&&JR.multiDrag._deselectMultiDrag(),rB.forEach(function(e){e.sortableIndex=xE(e)}),rB=rB.sort(function(e,t){return e.sortableIndex-t.sortableIndex}),sB=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){rB.forEach(function(e){e!==eB&&fE(e,"position","absolute")});var r=AE(eB,!1,!0,!0);rB.forEach(function(e){e!==eB&&CE(e,r)}),aB=!0,oB=!0}n.animateAll(function(){aB=!1,oB=!1,t.options.animation&&rB.forEach(function(e){QE(e)}),t.options.sort&&cB()})}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;aB&&~rB.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,i=e.dragRect;rB.length>1&&(rB.forEach(function(e){r.addAnimationState({target:e,rect:aB?AE(e):i}),QE(e),e.fromRect=i,t.removeAnimationState(e)}),aB=!1,function(e,t){rB.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,i=e.activeSortable,o=e.parentEl,a=e.putSortable,s=this.options;if(r){if(n&&i._hideClone(),oB=!1,s.animation&&rB.length>1&&(aB||!n&&!i.options.sort&&!a)){var l=AE(eB,!1,!0,!0);rB.forEach(function(e){e!==eB&&(CE(e,l),o.appendChild(e))}),aB=!0}if(!n)if(aB||cB(),rB.length>1){var c=nB;i._showClone(t),i.options.animation&&!nB&&c&&iB.forEach(function(e){i.addAnimationState({target:e,rect:tB}),e.fromRect=tB,e.thisAnimationDuration=null})}else i._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(rB.forEach(function(e){e.thisAnimationDuration=null}),r.options.animation&&!n&&r.multiDrag.isMultiDrag){tB=YP({},t);var i=gE(eB,!0);tB.top-=i.f,tB.left-=i.e}},dragOverAnimationComplete:function(){aB&&(aB=!1,cB())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,i=e.sortable,o=e.dispatchSortableEvent,a=e.oldIndex,s=e.putSortable,l=s||this.sortable;if(t){var c=this.options,u=r.children;if(!sB)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),pE(eB,c.selectedClass,!~rB.indexOf(eB)),~rB.indexOf(eB))rB.splice(rB.indexOf(eB),1),KR=null,LE({sortable:i,rootEl:n,name:"deselect",targetEl:eB});else{if(rB.push(eB),LE({sortable:i,rootEl:n,name:"select",targetEl:eB}),t.shiftKey&&KR&&i.el.contains(KR)){var h,d,p=xE(KR),f=xE(eB);if(~p&&~f&&p!==f)for(f>p?(d=p,h=f):(d=f,h=p+1);d<h;d++)~rB.indexOf(u[d])||(pE(u[d],c.selectedClass,!0),rB.push(u[d]),LE({sortable:i,rootEl:n,name:"select",targetEl:u[d]}))}else KR=eB;JR=l}if(sB&&this.isMultiDrag){if(aB=!1,(r[PE].options.sort||r!==n)&&rB.length>1){var g=AE(eB),m=xE(eB,":not(."+this.options.selectedClass+")");if(!oB&&c.animation&&(eB.thisAnimationDuration=null),l.captureAnimationState(),!oB&&(c.animation&&(eB.fromRect=g,rB.forEach(function(e){if(e.thisAnimationDuration=null,e!==eB){var t=aB?AE(e):g;e.fromRect=t,l.addAnimationState({target:e,rect:t})}})),cB(),rB.forEach(function(e){u[m]?r.insertBefore(e,u[m]):r.appendChild(e),m++}),a===xE(eB))){var O=!1;rB.forEach(function(e){e.sortableIndex===xE(e)||(O=!0)}),O&&o("update")}rB.forEach(function(e){QE(e)}),l.animateAll()}JR=l}(n===r||s&&"clone"!==s.lastPutMode)&&iB.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)})}},nullingGlobal:function(){this.isMultiDrag=sB=!1,iB.length=0},destroyGlobal:function(){this._deselectMultiDrag(),sE(document,"pointerup",this._deselectMultiDrag),sE(document,"mouseup",this._deselectMultiDrag),sE(document,"touchend",this._deselectMultiDrag),sE(document,"keydown",this._checkKeyDown),sE(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==sB&&sB||JR!==this.sortable||e&&uE(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;rB.length;){var t=rB[0];pE(t,this.options.selectedClass,!1),rB.shift(),LE({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},YP(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[PE];t&&t.options.multiDrag&&!~rB.indexOf(e)&&(JR&&JR!==t&&(JR.multiDrag._deselectMultiDrag(),JR=t),pE(e,t.options.selectedClass,!0),rB.push(e))},deselect:function(e){var t=e.parentNode[PE],n=rB.indexOf(e);t&&t.options.multiDrag&&~n&&(pE(e,t.options.selectedClass,!1),rB.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return rB.forEach(function(r){var i;t.push({multiDragElement:r,index:r.sortableIndex}),i=aB&&r!==eB?-1:aB?xE(r,":not(."+e.options.selectedClass+")"):xE(r),n.push({multiDragElement:r,index:i})}),{items:GP(rB),clones:[].concat(iB),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})},Sortable:QR,Swap:function(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;jR=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,i=e.activeSortable,o=e.changed,a=e.cancel;if(i.options.swap){var s=this.sortable.el,l=this.options;if(n&&n!==s){var c=jR;!1!==r(n)?(pE(n,l.swapClass,!0),jR=n):jR=null,c&&c!==jR&&pE(c,l.swapClass,!1)}o(),t(!0),a()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,i=n||this.sortable,o=this.options;jR&&pE(jR,o.swapClass,!1),jR&&(o.swap||n&&n.options.swap)&&r!==jR&&(i.captureAnimationState(),i!==t&&t.captureAnimationState(),function(e,t){var n,r,i=e.parentNode,o=t.parentNode;if(!i||!o||i.isEqualNode(t)||o.isEqualNode(e))return;n=xE(e),r=xE(t),i.isEqualNode(o)&&n<r&&r++;i.insertBefore(t,i.children[n]),o.insertBefore(e,o.children[r])}(r,jR),i.animateAll(),i!==t&&t.animateAll())},nulling:function(){jR=null}},YP(e,{pluginName:"swap",eventProperties:function(){return{swapItem:jR}}})},default:QR},Symbol.toStringTag,{value:"Module"})),hB=ik(uB);var dB;var pB,fB=dB?h$.exports:(dB=1,"undefined"!=typeof self&&self,pB=function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"00ee":function(e,t,n){var r={};r[n("b622")("toStringTag")]="z",e.exports="[object z]"===String(r)},"0366":function(e,t,n){var r=n("1c0b");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"057f":function(e,t,n){var r=n("fc6a"),i=n("241c").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(t){return a.slice()}}(e):i(r(e))}},"06cf":function(e,t,n){var r=n("83ab"),i=n("d1e7"),o=n("5c6c"),a=n("fc6a"),s=n("c04e"),l=n("5135"),c=n("0cfb"),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=a(e),t=s(t,!0),c)try{return u(e,t)}catch(n){}if(l(e,t))return o(!i.f.call(e,t),e[t])}},"0cfb":function(e,t,n){var r=n("83ab"),i=n("d039"),o=n("cc12");e.exports=!r&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},"13d5":function(e,t,n){var r=n("23e7"),i=n("d58f").left,o=n("a640"),a=n("ae40"),s=o("reduce"),l=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!s||!l},{reduce:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(e,t,n){var r=n("c6b6"),i=n("9263");e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},"159b":function(e,t,n){var r=n("da84"),i=n("fdbc"),o=n("17c2"),a=n("9112");for(var s in i){var l=r[s],c=l&&l.prototype;if(c&&c.forEach!==o)try{a(c,"forEach",o)}catch(u){c.forEach=o}}},"17c2":function(e,t,n){var r=n("b727").forEach,i=n("a640"),o=n("ae40"),a=i("forEach"),s=o("forEach");e.exports=a&&s?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"1be4":function(e,t,n){var r=n("d066");e.exports=r("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,n){var r=n("b622")("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch(s){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(s){}return n}},"1d80":function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},"1dde":function(e,t,n){var r=n("d039"),i=n("b622"),o=n("2d00"),a=i("species");e.exports=function(e){return o>=51||!r(function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},"23cb":function(e,t,n){var r=n("a691"),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},"23e7":function(e,t,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),a=n("6eeb"),s=n("ce4e"),l=n("e893"),c=n("94ca");e.exports=function(e,t){var n,u,h,d,p,f=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[f]||s(f,{}):(r[f]||{}).prototype)for(u in t){if(d=t[u],h=e.noTargetGet?(p=i(n,u))&&p.value:n[u],!c(g?u:f+(m?".":"#")+u,e.forced)&&void 0!==h){if(typeof d==typeof h)continue;l(d,h)}(e.sham||h&&h.sham)&&o(d,"sham",!0),a(n,u,d,e)}}},"241c":function(e,t,n){var r=n("ca84"),i=n("7839").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"25f0":function(e,t,n){var r=n("6eeb"),i=n("825a"),o=n("d039"),a=n("ad6d"),s="toString",l=RegExp.prototype,c=l[s],u=o(function(){return"/a/b"!=c.call({source:"a",flags:"b"})}),h=c.name!=s;(u||h)&&r(RegExp.prototype,s,function(){var e=i(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in l)?a.call(e):n)},{unsafe:!0})},"2ca0":function(e,t,n){var r,i=n("23e7"),o=n("06cf").f,a=n("50c4"),s=n("5a34"),l=n("1d80"),c=n("ab13"),u=n("c430"),h="".startsWith,d=Math.min,p=c("startsWith");i({target:"String",proto:!0,forced:!(!u&&!p&&(r=o(String.prototype,"startsWith"),r&&!r.writable)||p)},{startsWith:function(e){var t=String(l(this));s(e);var n=a(d(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return h?h.call(t,r,n):t.slice(n,n+r.length)===r}})},"2d00":function(e,t,n){var r,i,o=n("da84"),a=n("342f"),s=o.process,l=s&&s.versions,c=l&&l.v8;c?i=(r=c.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},"342f":function(e,t,n){var r=n("d066");e.exports=r("navigator","userAgent")||""},"35a1":function(e,t,n){var r=n("f5df"),i=n("3f8c"),o=n("b622")("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},"37e8":function(e,t,n){var r=n("83ab"),i=n("9bf2"),o=n("825a"),a=n("df75");e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=r.length,l=0;s>l;)i.f(e,n=r[l++],t[n]);return e}},"3bbe":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3ca3":function(e,t,n){var r=n("6547").charAt,i=n("69f3"),o=n("7dd0"),a="String Iterator",s=i.set,l=i.getterFor(a);o(String,"String",function(e){s(this,{type:a,string:String(e),index:0})},function(){var e,t=l(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})})},"3f8c":function(e,t){e.exports={}},4160:function(e,t,n){var r=n("23e7"),i=n("17c2");r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},"428f":function(e,t,n){var r=n("da84");e.exports=r},"44ad":function(e,t,n){var r=n("d039"),i=n("c6b6"),o="".split;e.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},"44d2":function(e,t,n){var r=n("b622"),i=n("7c73"),o=n("9bf2"),a=r("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},"44e7":function(e,t,n){var r=n("861d"),i=n("c6b6"),o=n("b622")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},4930:function(e,t,n){var r=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},"4d64":function(e,t,n){var r=n("fc6a"),i=n("50c4"),o=n("23cb"),a=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"4de4":function(e,t,n){var r=n("23e7"),i=n("b727").filter,o=n("1dde"),a=n("ae40"),s=o("filter"),l=a("filter");r({target:"Array",proto:!0,forced:!s||!l},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){var r=n("0366"),i=n("7b0b"),o=n("9bdd"),a=n("e95a"),s=n("50c4"),l=n("8418"),c=n("35a1");e.exports=function(e){var t,n,u,h,d,p,f=i(e),g="function"==typeof this?this:Array,m=arguments.length,O=m>1?arguments[1]:void 0,A=void 0!==O,y=c(f),v=0;if(A&&(O=r(O,m>2?arguments[2]:void 0,2)),null==y||g==Array&&a(y))for(n=new g(t=s(f.length));t>v;v++)p=A?O(f[v],v):f[v],l(n,v,p);else for(d=(h=y.call(f)).next,n=new g;!(u=d.call(h)).done;v++)p=A?o(h,O,[u.value,v],!0):u.value,l(n,v,p);return n.length=v,n}},"4fad":function(e,t,n){var r=n("23e7"),i=n("6f53").entries;r({target:"Object",stat:!0},{entries:function(e){return i(e)}})},"50c4":function(e,t,n){var r=n("a691"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},5319:function(e,t,n){var r=n("d784"),i=n("825a"),o=n("7b0b"),a=n("50c4"),s=n("a691"),l=n("1d80"),c=n("8aa5"),u=n("14c3"),h=Math.max,d=Math.min,p=Math.floor,f=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g,m=function(e){return void 0===e?e:String(e)};r("replace",2,function(e,t,n,r){var O=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,A=r.REPLACE_KEEPS_$0,y=O?"$":"$0";return[function(n,r){var i=l(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,r){if(!O&&A||"string"==typeof r&&-1===r.indexOf(y)){var o=n(t,e,this,r);if(o.done)return o.value}var l=i(e),p=String(this),f="function"==typeof r;f||(r=String(r));var g=l.global;if(g){var b=l.unicode;l.lastIndex=0}for(var x=[];;){var w=u(l,p);if(null===w)break;if(x.push(w),!g)break;""===String(w[0])&&(l.lastIndex=c(p,a(l.lastIndex),b))}for(var k="",S=0,T=0;T<x.length;T++){w=x[T];for(var $=String(w[0]),_=h(d(s(w.index),p.length),0),C=[],Q=1;Q<w.length;Q++)C.push(m(w[Q]));var P=w.groups;if(f){var E=[$].concat(C,_,p);void 0!==P&&E.push(P);var R=String(r.apply(void 0,E))}else R=v($,p,_,C,P,r);_>=S&&(k+=p.slice(S,_)+R,S=_+$.length)}return k+p.slice(S)}];function v(e,n,r,i,a,s){var l=r+e.length,c=i.length,u=g;return void 0!==a&&(a=o(a),u=f),t.call(s,u,function(t,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(l);case"<":s=a[o.slice(1,-1)];break;default:var u=+o;if(0===u)return t;if(u>c){var h=p(u/10);return 0===h?t:h<=c?void 0===i[h-1]?o.charAt(1):i[h-1]+o.charAt(1):t}s=i[u-1]}return void 0===s?"":s})}})},5692:function(e,t,n){var r=n("c430"),i=n("c6cd");(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,n){var r=n("d066"),i=n("241c"),o=n("7418"),a=n("825a");e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},"5a34":function(e,t,n){var r=n("44e7");e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5db7":function(e,t,n){var r=n("23e7"),i=n("a2bf"),o=n("7b0b"),a=n("50c4"),s=n("1c0b"),l=n("65f0");r({target:"Array",proto:!0},{flatMap:function(e){var t,n=o(this),r=a(n.length);return s(e),(t=l(n,0)).length=i(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},6547:function(e,t,n){var r=n("a691"),i=n("1d80"),o=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},"65f0":function(e,t,n){var r=n("861d"),i=n("e8b5"),o=n("b622")("species");e.exports=function(e,t){var n;return i(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"69f3":function(e,t,n){var r,i,o,a=n("7f9a"),s=n("da84"),l=n("861d"),c=n("9112"),u=n("5135"),h=n("f772"),d=n("d012"),p=s.WeakMap;if(a){var f=new p,g=f.get,m=f.has,O=f.set;r=function(e,t){return O.call(f,e,t),t},i=function(e){return g.call(f,e)||{}},o=function(e){return m.call(f,e)}}else{var A=h("state");d[A]=!0,r=function(e,t){return c(e,A,t),t},i=function(e){return u(e,A)?e[A]:{}},o=function(e){return u(e,A)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},"6eeb":function(e,t,n){var r=n("da84"),i=n("9112"),o=n("5135"),a=n("ce4e"),s=n("8925"),l=n("69f3"),c=l.get,u=l.enforce,h=String(String).split("String");(e.exports=function(e,t,n,s){var l=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),u(n).source=h.join("string"==typeof t?t:"")),e!==r?(l?!d&&e[t]&&(c=!0):delete e[t],c?e[t]=n:i(e,t,n)):c?e[t]=n:a(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&c(this).source||s(this)})},"6f53":function(e,t,n){var r=n("83ab"),i=n("df75"),o=n("fc6a"),a=n("d1e7").f,s=function(e){return function(t){for(var n,s=o(t),l=i(s),c=l.length,u=0,h=[];c>u;)n=l[u++],r&&!a.call(s,n)||h.push(e?[n,s[n]]:s[n]);return h}};e.exports={entries:s(!0),values:s(!1)}},"73d9":function(e,t,n){n("44d2")("flatMap")},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,n){var r=n("428f"),i=n("5135"),o=n("e538"),a=n("9bf2").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(e,t,n){var r=n("1d80");e.exports=function(e){return Object(r(e))}},"7c73":function(e,t,n){var r,i=n("825a"),o=n("37e8"),a=n("7839"),s=n("d012"),l=n("1be4"),c=n("cc12"),u=n("f772"),h="prototype",d="script",p=u("IE_PROTO"),f=function(){},g=function(e){return"<"+d+">"+e+"</"+d+">"},m=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(o){}var e,t,n;m=r?function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):(t=c("iframe"),n="java"+d+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F);for(var i=a.length;i--;)delete m[h][a[i]];return m()};s[p]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f[h]=i(e),n=new f,f[h]=null,n[p]=e):n=m(),void 0===t?n:o(n,t)}},"7dd0":function(e,t,n){var r=n("23e7"),i=n("9ed3"),o=n("e163"),a=n("d2bb"),s=n("d44e"),l=n("9112"),c=n("6eeb"),u=n("b622"),h=n("c430"),d=n("3f8c"),p=n("ae93"),f=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,m=u("iterator"),O="keys",A="values",y="entries",v=function(){return this};e.exports=function(e,t,n,u,p,b,x){i(n,t,u);var w,k,S,T=function(e){if(e===p&&P)return P;if(!g&&e in C)return C[e];switch(e){case O:case A:case y:return function(){return new n(this,e)}}return function(){return new n(this)}},$=t+" Iterator",_=!1,C=e.prototype,Q=C[m]||C["@@iterator"]||p&&C[p],P=!g&&Q||T(p),E="Array"==t&&C.entries||Q;if(E&&(w=o(E.call(new e)),f!==Object.prototype&&w.next&&(h||o(w)===f||(a?a(w,f):"function"!=typeof w[m]&&l(w,m,v)),s(w,$,!0,!0),h&&(d[$]=v))),p==A&&Q&&Q.name!==A&&(_=!0,P=function(){return Q.call(this)}),h&&!x||C[m]===P||l(C,m,P),d[t]=P,p)if(k={values:T(A),keys:b?P:T(O),entries:T(y)},x)for(S in k)(g||_||!(S in C))&&c(C,S,k[S]);else r({target:t,proto:!0,forced:g||_},k);return k}},"7f9a":function(e,t,n){var r=n("da84"),i=n("8925"),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},"825a":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,t,n){var r=n("d039");e.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},8418:function(e,t,n){var r=n("c04e"),i=n("9bf2"),o=n("5c6c");e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},"861d":function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},8875:function(e,t,n){var r,i,o;"undefined"!=typeof self&&self,i=[],r=function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(d){var n,r,i,o=/@([^@]*):(\d+):(\d+)\s*$/gi,a=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(d.stack)||o.exec(d.stack),s=a&&a[1]||!1,l=a&&a[2]||!1,c=document.location.href.replace(document.location.hash,""),u=document.getElementsByTagName("script");s===c&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),i=n.replace(r,"$1").trim());for(var h=0;h<u.length;h++){if("interactive"===u[h].readyState)return u[h];if(u[h].src===s)return u[h];if(s===c&&u[h].innerHTML&&u[h].innerHTML.trim()===i)return u[h]}return null}}return e},void 0===(o="function"==typeof r?r.apply(t,i):r)||(e.exports=o)},8925:function(e,t,n){var r=n("c6cd"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},"8aa5":function(e,t,n){var r=n("6547").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"8bbf":function(t,n){t.exports=e},"90e3":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},9112:function(e,t,n){var r=n("83ab"),i=n("9bf2"),o=n("5c6c");e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},9263:function(e,t,n){var r,i,o=n("ad6d"),a=n("9f7f"),s=RegExp.prototype.exec,l=String.prototype.replace,c=s,u=(r=/a/,i=/b*/g,s.call(r,"a"),s.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),h=a.UNSUPPORTED_Y||a.BROKEN_CARET,d=void 0!==/()??/.exec("")[1];(u||d||h)&&(c=function(e){var t,n,r,i,a=this,c=h&&a.sticky,p=o.call(a),f=a.source,g=0,m=e;return c&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),m=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(f="(?: "+f+")",m=" "+m,g++),n=new RegExp("^(?:"+f+")",p)),d&&(n=new RegExp("^"+f+"$(?!\\s)",p)),u&&(t=a.lastIndex),r=s.call(c?n:a,m),c?r?(r.input=r.input.slice(g),r[0]=r[0].slice(g),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:u&&r&&(a.lastIndex=a.global?r.index+r[0].length:t),d&&r&&r.length>1&&l.call(r[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r}),e.exports=c},"94ca":function(e,t,n){var r=n("d039"),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},"99af":function(e,t,n){var r=n("23e7"),i=n("d039"),o=n("e8b5"),a=n("861d"),s=n("7b0b"),l=n("50c4"),c=n("8418"),u=n("65f0"),h=n("1dde"),d=n("b622"),p=n("2d00"),f=d("isConcatSpreadable"),g=9007199254740991,m="Maximum allowed index exceeded",O=p>=51||!i(function(){var e=[];return e[f]=!1,e.concat()[0]!==e}),A=h("concat"),y=function(e){if(!a(e))return!1;var t=e[f];return void 0!==t?!!t:o(e)};r({target:"Array",proto:!0,forced:!O||!A},{concat:function(e){var t,n,r,i,o,a=s(this),h=u(a,0),d=0;for(t=-1,r=arguments.length;t<r;t++)if(y(o=-1===t?a:arguments[t])){if(d+(i=l(o.length))>g)throw TypeError(m);for(n=0;n<i;n++,d++)n in o&&c(h,d,o[n])}else{if(d>=g)throw TypeError(m);c(h,d++,o)}return h.length=d,h}})},"9bdd":function(e,t,n){var r=n("825a");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(a){var o=e.return;throw void 0!==o&&r(o.call(e)),a}}},"9bf2":function(e,t,n){var r=n("83ab"),i=n("0cfb"),o=n("825a"),a=n("c04e"),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9ed3":function(e,t,n){var r=n("ae93").IteratorPrototype,i=n("7c73"),o=n("5c6c"),a=n("d44e"),s=n("3f8c"),l=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=i(r,{next:o(1,n)}),a(e,c,!1,!0),s[c]=l,e}},"9f7f":function(e,t,n){var r=n("d039");function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r(function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),t.BROKEN_CARET=r(function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")})},a2bf:function(e,t,n){var r=n("e8b5"),i=n("50c4"),o=n("0366"),a=function(e,t,n,s,l,c,u,h){for(var d,p=l,f=0,g=!!u&&o(u,h,3);f<s;){if(f in n){if(d=g?g(n[f],f,t):n[f],c>0&&r(d))p=a(e,t,d,i(d.length),p,c-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[p]=d}p++}f++}return p};e.exports=a},a352:function(e,n){e.exports=t},a434:function(e,t,n){var r=n("23e7"),i=n("23cb"),o=n("a691"),a=n("50c4"),s=n("7b0b"),l=n("65f0"),c=n("8418"),u=n("1dde"),h=n("ae40"),d=u("splice"),p=h("splice",{ACCESSORS:!0,0:0,1:2}),f=Math.max,g=Math.min;r({target:"Array",proto:!0,forced:!d||!p},{splice:function(e,t){var n,r,u,h,d,p,m=s(this),O=a(m.length),A=i(e,O),y=arguments.length;if(0===y?n=r=0:1===y?(n=0,r=O-A):(n=y-2,r=g(f(o(t),0),O-A)),O+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(u=l(m,r),h=0;h<r;h++)(d=A+h)in m&&c(u,h,m[d]);if(u.length=r,n<r){for(h=A;h<O-r;h++)p=h+n,(d=h+r)in m?m[p]=m[d]:delete m[p];for(h=O;h>O-r+n;h--)delete m[h-1]}else if(n>r)for(h=O-r;h>A;h--)p=h+n-1,(d=h+r-1)in m?m[p]=m[d]:delete m[p];for(h=0;h<n;h++)m[h+A]=arguments[h+2];return m.length=O-r+n,u}})},a4d3:function(e,t,n){var r=n("23e7"),i=n("da84"),o=n("d066"),a=n("c430"),s=n("83ab"),l=n("4930"),c=n("fdbf"),u=n("d039"),h=n("5135"),d=n("e8b5"),p=n("861d"),f=n("825a"),g=n("7b0b"),m=n("fc6a"),O=n("c04e"),A=n("5c6c"),y=n("7c73"),v=n("df75"),b=n("241c"),x=n("057f"),w=n("7418"),k=n("06cf"),S=n("9bf2"),T=n("d1e7"),$=n("9112"),_=n("6eeb"),C=n("5692"),Q=n("f772"),P=n("d012"),E=n("90e3"),R=n("b622"),B=n("e538"),I=n("746f"),L=n("d44e"),D=n("69f3"),M=n("b727").forEach,N=Q("hidden"),X="Symbol",F="prototype",U=R("toPrimitive"),z=D.set,q=D.getterFor(X),V=Object[F],W=i.Symbol,j=o("JSON","stringify"),Y=k.f,Z=S.f,G=x.f,H=T.f,K=C("symbols"),J=C("op-symbols"),ee=C("string-to-symbol-registry"),te=C("symbol-to-string-registry"),ne=C("wks"),re=i.QObject,ie=!re||!re[F]||!re[F].findChild,oe=s&&u(function(){return 7!=y(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=Y(V,t);r&&delete V[t],Z(e,t,n),r&&e!==V&&Z(V,t,r)}:Z,ae=function(e,t){var n=K[e]=y(W[F]);return z(n,{type:X,tag:e,description:t}),s||(n.description=t),n},se=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof W},le=function(e,t,n){e===V&&le(J,t,n),f(e);var r=O(t,!0);return f(n),h(K,r)?(n.enumerable?(h(e,N)&&e[N][r]&&(e[N][r]=!1),n=y(n,{enumerable:A(0,!1)})):(h(e,N)||Z(e,N,A(1,{})),e[N][r]=!0),oe(e,r,n)):Z(e,r,n)},ce=function(e,t){f(e);var n=m(t),r=v(n).concat(pe(n));return M(r,function(t){s&&!ue.call(n,t)||le(e,t,n[t])}),e},ue=function(e){var t=O(e,!0),n=H.call(this,t);return!(this===V&&h(K,t)&&!h(J,t))&&(!(n||!h(this,t)||!h(K,t)||h(this,N)&&this[N][t])||n)},he=function(e,t){var n=m(e),r=O(t,!0);if(n!==V||!h(K,r)||h(J,r)){var i=Y(n,r);return!i||!h(K,r)||h(n,N)&&n[N][r]||(i.enumerable=!0),i}},de=function(e){var t=G(m(e)),n=[];return M(t,function(e){h(K,e)||h(P,e)||n.push(e)}),n},pe=function(e){var t=e===V,n=G(t?J:m(e)),r=[];return M(n,function(e){!h(K,e)||t&&!h(V,e)||r.push(K[e])}),r};l||(W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=E(e),n=function(e){this===V&&n.call(J,e),h(this,N)&&h(this[N],t)&&(this[N][t]=!1),oe(this,t,A(1,e))};return s&&ie&&oe(V,t,{configurable:!0,set:n}),ae(t,e)},_(W[F],"toString",function(){return q(this).tag}),_(W,"withoutSetter",function(e){return ae(E(e),e)}),T.f=ue,S.f=le,k.f=he,b.f=x.f=de,w.f=pe,B.f=function(e){return ae(R(e),e)},s&&(Z(W[F],"description",{configurable:!0,get:function(){return q(this).description}}),a||_(V,"propertyIsEnumerable",ue,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:W}),M(v(ne),function(e){I(e)}),r({target:X,stat:!0,forced:!l},{for:function(e){var t=String(e);if(h(ee,t))return ee[t];var n=W(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!se(e))throw TypeError(e+" is not a symbol");if(h(te,e))return te[e]},useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!s},{create:function(e,t){return void 0===t?y(e):ce(y(e),t)},defineProperty:le,defineProperties:ce,getOwnPropertyDescriptor:he}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:de,getOwnPropertySymbols:pe}),r({target:"Object",stat:!0,forced:u(function(){w.f(1)})},{getOwnPropertySymbols:function(e){return w.f(g(e))}}),j&&r({target:"JSON",stat:!0,forced:!l||u(function(){var e=W();return"[null]"!=j([e])||"{}"!=j({a:e})||"{}"!=j(Object(e))})},{stringify:function(e,t,n){for(var r,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=t,(p(t)||void 0!==e)&&!se(e))return d(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!se(t))return t}),i[1]=t,j.apply(null,i)}}),W[F][U]||$(W[F],U,W[F].valueOf),L(W,X),P[N]=!0},a630:function(e,t,n){var r=n("23e7"),i=n("4df4");r({target:"Array",stat:!0,forced:!n("1c7e")(function(e){Array.from(e)})},{from:i})},a640:function(e,t,n){var r=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){throw 1},1)})}},a691:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},ab13:function(e,t,n){var r=n("b622")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(jk){try{return t[r]=!1,"/./"[e](t)}catch(n){}}return!1}},ac1f:function(e,t,n){var r=n("23e7"),i=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},ad6d:function(e,t,n){var r=n("825a");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},ae40:function(e,t,n){var r=n("83ab"),i=n("d039"),o=n("5135"),a=Object.defineProperty,s={},l=function(e){throw e};e.exports=function(e,t){if(o(s,e))return s[e];t||(t={});var n=[][e],c=!!o(t,"ACCESSORS")&&t.ACCESSORS,u=o(t,0)?t[0]:l,h=o(t,1)?t[1]:void 0;return s[e]=!!n&&!i(function(){if(c&&!r)return!0;var e={length:-1};c?a(e,1,{enumerable:!0,get:l}):e[1]=1,n.call(e,u,h)})}},ae93:function(e,t,n){var r,i,o,a=n("e163"),s=n("9112"),l=n("5135"),c=n("b622"),u=n("c430"),h=c("iterator"),d=!1;[].keys&&("next"in(o=[].keys())?(i=a(a(o)))!==Object.prototype&&(r=i):d=!0),null==r&&(r={}),u||l(r,h)||s(r,h,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},b041:function(e,t,n){var r=n("00ee"),i=n("f5df");e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},b0c0:function(e,t,n){var r=n("83ab"),i=n("9bf2").f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/,l="name";r&&!(l in o)&&i(o,l,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},b622:function(e,t,n){var r=n("da84"),i=n("5692"),o=n("5135"),a=n("90e3"),s=n("4930"),l=n("fdbf"),c=i("wks"),u=r.Symbol,h=l?u:u&&u.withoutSetter||a;e.exports=function(e){return o(c,e)||(s&&o(u,e)?c[e]=u[e]:c[e]=h("Symbol."+e)),c[e]}},b64b:function(e,t,n){var r=n("23e7"),i=n("7b0b"),o=n("df75");r({target:"Object",stat:!0,forced:n("d039")(function(){o(1)})},{keys:function(e){return o(i(e))}})},b727:function(e,t,n){var r=n("0366"),i=n("44ad"),o=n("7b0b"),a=n("50c4"),s=n("65f0"),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,h=6==e,d=5==e||h;return function(p,f,g,m){for(var O,A,y=o(p),v=i(y),b=r(f,g,3),x=a(v.length),w=0,k=m||s,S=t?k(p,x):n?k(p,0):void 0;x>w;w++)if((d||w in v)&&(A=b(O=v[w],w,y),e))if(t)S[w]=A;else if(A)switch(e){case 3:return!0;case 5:return O;case 6:return w;case 2:l.call(S,O)}else if(u)return!1;return h?-1:c||u?u:S}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},c04e:function(e,t,n){var r=n("861d");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},c430:function(e,t){e.exports=!1},c6b6:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},c6cd:function(e,t,n){var r=n("da84"),i=n("ce4e"),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},c740:function(e,t,n){var r=n("23e7"),i=n("b727").findIndex,o=n("44d2"),a=n("ae40"),s="findIndex",l=!0,c=a(s);s in[]&&Array(1)[s](function(){l=!1}),r({target:"Array",proto:!0,forced:l||!c},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(s)},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(jk){"object"==typeof window&&(n=window)}e.exports=n},c975:function(e,t,n){var r=n("23e7"),i=n("4d64").indexOf,o=n("a640"),a=n("ae40"),s=[].indexOf,l=!!s&&1/[1].indexOf(1,-0)<0,c=o("indexOf"),u=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:l||!c||!u},{indexOf:function(e){return l?s.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})},ca84:function(e,t,n){var r=n("5135"),i=n("fc6a"),o=n("4d64").indexOf,a=n("d012");e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},caad:function(e,t,n){var r=n("23e7"),i=n("4d64").includes,o=n("44d2");r({target:"Array",proto:!0,forced:!n("ae40")("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},cc12:function(e,t,n){var r=n("da84"),i=n("861d"),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},ce4e:function(e,t,n){var r=n("da84"),i=n("9112");e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var r=n("428f"),i=n("da84"),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},d1e7:function(e,t,n){var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},d28b:function(e,t,n){n("746f")("iterator")},d2bb:function(e,t,n){var r=n("825a"),i=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(o){}return function(n,o){return r(n),i(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},d3b7:function(e,t,n){var r=n("00ee"),i=n("6eeb"),o=n("b041");r||i(Object.prototype,"toString",o,{unsafe:!0})},d44e:function(e,t,n){var r=n("9bf2").f,i=n("5135"),o=n("b622")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},d58f:function(e,t,n){var r=n("1c0b"),i=n("7b0b"),o=n("44ad"),a=n("50c4"),s=function(e){return function(t,n,s,l){r(n);var c=i(t),u=o(c),h=a(c.length),d=e?h-1:0,p=e?-1:1;if(s<2)for(;;){if(d in u){l=u[d],d+=p;break}if(d+=p,e?d<0:h<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?d>=0:h>d;d+=p)d in u&&(l=n(l,u[d],d,c));return l}};e.exports={left:s(!1),right:s(!0)}},d784:function(e,t,n){n("ac1f");var r=n("6eeb"),i=n("d039"),o=n("b622"),a=n("9263"),s=n("9112"),l=o("species"),c=!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),u="$0"==="a".replace(/./,"$0"),h=o("replace"),d=!!/./[h]&&""===/./[h]("a","$0"),p=!i(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]});e.exports=function(e,t,n,h){var f=o(e),g=!i(function(){var t={};return t[f]=function(){return 7},7!=""[e](t)}),m=g&&!i(function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t});if(!g||!m||"replace"===e&&(!c||!u||d)||"split"===e&&!p){var O=/./[f],A=n(f,""[e],function(e,t,n,r,i){return t.exec===a?g&&!i?{done:!0,value:O.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}},{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),y=A[0],v=A[1];r(String.prototype,e,y),r(RegExp.prototype,f,2==t?function(e,t){return v.call(e,this,t)}:function(e){return v.call(e,this)})}h&&s(RegExp.prototype[f],"sham",!0)}},d81d:function(e,t,n){var r=n("23e7"),i=n("b727").map,o=n("1dde"),a=n("ae40"),s=o("map"),l=a("map");r({target:"Array",proto:!0,forced:!s||!l},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n("c8ba"))},dbb4:function(e,t,n){var r=n("23e7"),i=n("83ab"),o=n("56ef"),a=n("fc6a"),s=n("06cf"),l=n("8418");r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),i=s.f,c=o(r),u={},h=0;c.length>h;)void 0!==(n=i(r,t=c[h++]))&&l(u,t,n);return u}})},dbf1:function(e,t,n){(function(e){n.d(t,"a",function(){return r});var r="undefined"!=typeof window?window.console:e.console}).call(this,n("c8ba"))},ddb0:function(e,t,n){var r=n("da84"),i=n("fdbc"),o=n("e260"),a=n("9112"),s=n("b622"),l=s("iterator"),c=s("toStringTag"),u=o.values;for(var h in i){var d=r[h],p=d&&d.prototype;if(p){if(p[l]!==u)try{a(p,l,u)}catch(g){p[l]=u}if(p[c]||a(p,c,h),i[h])for(var f in o)if(p[f]!==o[f])try{a(p,f,o[f])}catch(g){p[f]=o[f]}}}},df75:function(e,t,n){var r=n("ca84"),i=n("7839");e.exports=Object.keys||function(e){return r(e,i)}},e01a:function(e,t,n){var r=n("23e7"),i=n("83ab"),o=n("da84"),a=n("5135"),s=n("861d"),l=n("9bf2").f,c=n("e893"),u=o.Symbol;if(i&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var h={},d=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof d?new u(e):void 0===e?u():u(e);return""===e&&(h[t]=!0),t};c(d,u);var p=d.prototype=u.prototype;p.constructor=d;var f=p.toString,g="Symbol(test)"==String(u("test")),m=/^Symbol\((.*)\)[^)]+$/;l(p,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=f.call(e);if(a(h,e))return"";var n=g?t.slice(7,-1):t.replace(m,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:d})}},e163:function(e,t,n){var r=n("5135"),i=n("7b0b"),o=n("f772"),a=n("e177"),s=o("IE_PROTO"),l=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},e177:function(e,t,n){var r=n("d039");e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},e260:function(e,t,n){var r=n("fc6a"),i=n("44d2"),o=n("3f8c"),a=n("69f3"),s=n("7dd0"),l="Array Iterator",c=a.set,u=a.getterFor(l);e.exports=s(Array,"Array",function(e,t){c(this,{type:l,target:r(e),index:0,kind:t})},function(){var e=u(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},e439:function(e,t,n){var r=n("23e7"),i=n("d039"),o=n("fc6a"),a=n("06cf").f,s=n("83ab"),l=i(function(){a(1)});r({target:"Object",stat:!0,forced:!s||l,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},e538:function(e,t,n){var r=n("b622");t.f=r},e893:function(e,t,n){var r=n("5135"),i=n("56ef"),o=n("06cf"),a=n("9bf2");e.exports=function(e,t){for(var n=i(t),s=a.f,l=o.f,c=0;c<n.length;c++){var u=n[c];r(e,u)||s(e,u,l(t,u))}}},e8b5:function(e,t,n){var r=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==r(e)}},e95a:function(e,t,n){var r=n("b622"),i=n("3f8c"),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},f5df:function(e,t,n){var r=n("00ee"),i=n("c6b6"),o=n("b622")("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),o))?n:a?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},f772:function(e,t,n){var r=n("5692"),i=n("90e3"),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},fb15:function(e,t,n){if(n.r(t),"undefined"!=typeof window){var r=window.document.currentScript,i=n("8875");r=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n("99af"),n("4de4"),n("4160"),n("c975"),n("d81d"),n("a434"),n("159b"),n("a4d3"),n("e439"),n("dbb4"),n("b64b"),n("e01a"),n("d28b"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0"),n("a630"),n("fb6a"),n("b0c0"),n("25f0");var p=n("a352"),f=n.n(p);function g(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function m(e,t,n){var r=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}var O=n("dbf1");n("13d5"),n("4fad"),n("ac1f"),n("5319");var A,y,v=/-(\w)/g,b=(A=function(e){return e.replace(v,function(e,t){return t.toUpperCase()})},y=Object.create(null),function(e){return y[e]||(y[e]=A(e))});n("5db7"),n("73d9");var x=["Start","Add","Remove","Update","End"],w=["Choose","Unchoose","Sort","Filter","Clone"],k=["Move"],S=[k,x,w].flatMap(function(e){return e}).map(function(e){return"on".concat(e)}),T={manage:k,manageAndEmit:x,emit:w};n("caad"),n("2ca0");var $=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function _(e){return["id","class","role","style"].includes(e)||e.startsWith("data-")||e.startsWith("aria-")||e.startsWith("on")}function C(e){return e.reduce(function(e,t){var n=h(t,2),r=n[0],i=n[1];return e[r]=i,e},{})}function Q(e){return Object.entries(e).filter(function(e){var t=h(e,2),n=t[0];return t[1],!_(n)}).map(function(e){var t=h(e,2),n=t[0],r=t[1];return[b(n),r]}).filter(function(e){var t,n=h(e,2),r=n[0];return n[1],t=r,!(-1!==S.indexOf(t))})}function P(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}n("c740");var E=function(e){return e.el},R=function(e){return e.__draggable_context},B=function(){function e(t){var n=t.nodes,r=n.header,i=n.default,o=n.footer,a=t.root,s=t.realList;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.defaultNodes=i,this.children=[].concat(d(r),d(i),d(o)),this.externalComponent=a.externalComponent,this.rootTransition=a.transition,this.tag=a.tag,this.realList=s}return P(e,[{key:"render",value:function(e,t){var n=this.tag,r=this.children;return e(n,t,this._isRootComponent?{default:function(){return r}}:r)}},{key:"updated",value:function(){var e=this.defaultNodes,t=this.realList;e.forEach(function(e,n){var r,i;r=E(e),i={element:t[n],index:n},r.__draggable_context=i})}},{key:"getUnderlyingVm",value:function(e){return R(e)}},{key:"getVmIndexFromDomIndex",value:function(e,t){var n=this.defaultNodes,r=n.length,i=t.children,o=i.item(e);if(null===o)return r;var a=R(o);if(a)return a.index;if(0===r)return 0;var s=E(n[0]);return e<d(i).findIndex(function(e){return e===s})?0:r}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),e}(),I=n("8bbf");function L(e){var t=["transition-group","TransitionGroup"].includes(e),n=!function(e){return $.includes(e)}(e)&&!t;return{transition:t,externalComponent:n,tag:n?Object(I.resolveComponent)(e):t?I.TransitionGroup:e}}function D(e){var t=e.$slots,n=e.tag,r=e.realList,i=function(e){var t=e.$slots,n=e.realList,r=e.getKey,i=n||[],o=h(["header","footer"].map(function(e){return(n=t[e])?n():[];var n}),2),a=o[0],s=o[1],c=t.item;if(!c)throw new Error("draggable element must have an item slot");var u=i.flatMap(function(e,t){return c({element:e,index:t}).map(function(t){return t.key=r(e),t.props=l(l({},t.props||{}),{},{"data-draggable":!0}),t})});if(u.length!==i.length)throw new Error("Item slot must have only one child");return{header:a,footer:s,default:u}}({$slots:t,realList:r,getKey:e.getKey}),o=L(n);return new B({nodes:i,root:o,realList:r})}function M(e,t){var n=this;Object(I.nextTick)(function(){return n.$emit(e.toLowerCase(),t)})}function N(e){var t=this;return function(n,r){if(null!==t.realList)return t["onDrag".concat(e)](n,r)}}function X(e){var t=this,n=N.call(this,e);return function(r,i){n.call(t,r,i),M.call(t,e,r)}}var F=null,U={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(e){return e}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},z=["update:modelValue","change"].concat(d([].concat(d(T.manageAndEmit),d(T.emit)).map(function(e){return e.toLowerCase()}))),q=Object(I.defineComponent)({name:"draggable",inheritAttrs:!1,props:U,emits:z,data:function(){return{error:!1}},render:function(){try{this.error=!1;var e=this.$slots,t=this.$attrs,n=this.tag,r=this.componentData,i=D({$slots:e,tag:n,realList:this.realList,getKey:this.getKey});this.componentStructure=i;var o=function(e){var t=e.$attrs,n=e.componentData,r=void 0===n?{}:n;return l(l({},C(Object.entries(t).filter(function(e){var t=h(e,2),n=t[0];return t[1],_(n)}))),r)}({$attrs:t,componentData:r});return i.render(I.h,o)}catch(a){return this.error=!0,Object(I.h)("pre",{style:{color:"red"}},a.stack)}},created:function(){null!==this.list&&null!==this.modelValue&&O.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var e=this;if(!this.error){var t=this.$attrs,n=this.$el;this.componentStructure.updated();var r=function(e){var t=e.$attrs,n=e.callBackBuilder,r=C(Q(t));Object.entries(n).forEach(function(e){var t=h(e,2),n=t[0],i=t[1];T[n].forEach(function(e){r["on".concat(e)]=i(e)})});var i="[data-draggable]".concat(r.draggable||"");return l(l({},r),{},{draggable:i})}({$attrs:t,callBackBuilder:{manageAndEmit:function(t){return X.call(e,t)},emit:function(t){return M.bind(e,t)},manage:function(t){return N.call(e,t)}}}),i=1===n.nodeType?n:n.parentElement;this._sortable=new f.a(i,r),this.targetDomElement=i,i.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{realList:function(){var e=this.list;return e||this.modelValue},getKey:function(){var e=this.itemKey;return"function"==typeof e?e:function(t){return t[e]}}},watch:{$attrs:{handler:function(e){var t=this._sortable;t&&Q(e).forEach(function(e){var n=h(e,2),r=n[0],i=n[1];t.option(r,i)})},deep:!0}},methods:{getUnderlyingVm:function(e){return this.componentStructure.getUnderlyingVm(e)||null},getUnderlyingPotencialDraggableComponent:function(e){return e.__draggable_component__},emitChanges:function(e){var t=this;Object(I.nextTick)(function(){return t.$emit("change",e)})},alterList:function(e){if(this.list)e(this.list);else{var t=d(this.modelValue);e(t),this.$emit("update:modelValue",t)}},spliceList:function(){var e=arguments;this.alterList(function(t){return t.splice.apply(t,d(e))})},updatePosition:function(e,t){this.alterList(function(n){return n.splice(t,0,n.splice(e,1)[0])})},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,r=this.getUnderlyingPotencialDraggableComponent(t);if(!r)return{component:r};var i=r.realList,o={list:i,component:r};return t!==n&&i?l(l({},r.getUnderlyingVm(n)||{}),o):o},getVmIndexFromDomIndex:function(e){return this.componentStructure.getVmIndexFromDomIndex(e,this.targetDomElement)},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),F=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){g(e.item);var n=this.getVmIndexFromDomIndex(e.newIndex);this.spliceList(n,0,t);var r={element:t,newIndex:n};this.emitChanges({added:r})}},onDragRemove:function(e){if(m(this.$el,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context,n=t.index,r=t.element;this.spliceList(n,1);var i={element:r,oldIndex:n};this.emitChanges({removed:i})}else g(e.clone)},onDragUpdate:function(e){g(e.item),m(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndexFromDomIndex(e.newIndex);this.updatePosition(t,n);var r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=d(t.to.children).filter(function(e){return"none"!==e.style.display}),r=n.indexOf(t.related),i=e.component.getVmIndexFromDomIndex(r);return-1===n.indexOf(F)&&t.willInsertAfter?i+1:i},onDragMove:function(e,t){var n=this.move,r=this.realList;if(!n||!r)return!0;var i=this.getRelatedContextFromMoveEvent(e),o=this.computeFutureIndex(i,e),a=l(l({},this.context),{},{futureIndex:o});return n(l(l({},e),{},{relatedContext:i,draggedContext:a}),t)},onDragEnd:function(){F=null}}}),V=q;t.default=V},fb6a:function(e,t,n){var r=n("23e7"),i=n("861d"),o=n("e8b5"),a=n("23cb"),s=n("50c4"),l=n("fc6a"),c=n("8418"),u=n("b622"),h=n("1dde"),d=n("ae40"),p=h("slice"),f=d("slice",{ACCESSORS:!0,0:0,1:2}),g=u("species"),m=[].slice,O=Math.max;r({target:"Array",proto:!0,forced:!p||!f},{slice:function(e,t){var n,r,u,h=l(this),d=s(h.length),p=a(e,d),f=a(void 0===t?d:t,d);if(o(h)&&("function"!=typeof(n=h.constructor)||n!==Array&&!o(n.prototype)?i(n)&&null===(n=n[g])&&(n=void 0):n=void 0,n===Array||void 0===n))return m.call(h,p,f);for(r=new(void 0===n?Array:n)(O(f-p,0)),u=0;p<f;p++,u++)p in h&&c(r,u,h[p]);return r.length=u,r}})},fc6a:function(e,t,n){var r=n("44ad"),i=n("1d80");e.exports=function(e){return r(i(e))}},fdbc:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,n){var r=n("4930");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}}).default},h$.exports=pB(zP(),hB));const gB=rk(fB);function mB(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let OB={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function AB(e){OB=e}const yB=/[&<>"']/,vB=new RegExp(yB.source,"g"),bB=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,xB=new RegExp(bB.source,"g"),wB={"&":"&","<":"<",">":">",'"':""","'":"'"},kB=e=>wB[e];function SB(e,t){if(t){if(yB.test(e))return e.replace(vB,kB)}else if(bB.test(e))return e.replace(xB,kB);return e}const TB=/(^|[^\[])\^/g;function $B(e,t){let n="string"==typeof e?e:e.source;t=t||"";const r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(TB,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}function _B(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const CB={exec:()=>null};function QB(e,t){const n=e.replace(/\|/g,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(/ \|/);let r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}function PB(e,t,n){const r=e.length;if(0===r)return"";let i=0;for(;i<r;){if(e.charAt(r-i-1)!==t)break;i++}return e.slice(0,r-i)}function EB(e,t,n,r){const i=t.href,o=t.title?SB(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:i,title:o,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,e}return{type:"image",raw:n,href:i,title:o,text:SB(a)}}class RB{constructor(e){Jn(this,"options"),Jn(this,"rules"),Jn(this,"lexer"),this.options=e||OB}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:PB(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const r=n[1];return t.split("\n").map(e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=r.length?e.slice(r.length):e}).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=PB(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:PB(t[0],"\n")}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let e=PB(t[0],"\n").split("\n"),n="",r="";const i=[];for(;e.length>0;){let t=!1;const o=[];let a;for(a=0;a<e.length;a++)if(/^ {0,3}>/.test(e[a]))o.push(e[a]),t=!0;else{if(t)break;o.push(e[a])}e=e.slice(a);const s=o.join("\n"),l=s.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,"\n $1").replace(/^ {0,3}>[ \t]?/gm,"");n=n?`${n}\n${s}`:s,r=r?`${r}\n${l}`:l;const c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=c,0===e.length)break;const u=i[i.length-1];if("code"===(null==u?void 0:u.type))break;if("blockquote"===(null==u?void 0:u.type)){const t=u,o=t.raw+"\n"+e.join("\n"),a=this.blockquote(o);i[i.length-1]=a,n=n.substring(0,n.length-t.raw.length)+a.raw,r=r.substring(0,r.length-t.text.length)+a.text;break}if("list"===(null==u?void 0:u.type)){const t=u,o=t.raw+"\n"+e.join("\n"),a=this.list(o);i[i.length-1]=a,n=n.substring(0,n.length-u.raw.length)+a.raw,r=r.substring(0,r.length-t.raw.length)+a.raw,e=o.substring(i[i.length-1].raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");const o=new RegExp(`^( {0,3}${n})((?:[\t ][^\\n]*)?(?:\\n|$))`);let a=!1;for(;e;){let n=!1,r="",s="";if(!(t=o.exec(e)))break;if(this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let l=t[2].split("\n",1)[0].replace(/^\t+/,e=>" ".repeat(3*e.length)),c=e.split("\n",1)[0],u=!l.trim(),h=0;if(this.options.pedantic?(h=2,s=l.trimStart()):u?h=t[1].length+1:(h=t[2].search(/[^ ]/),h=h>4?1:h,s=l.slice(h),h+=t[1].length),u&&/^[ \t]*$/.test(c)&&(r+=c+"\n",e=e.substring(c.length+1),n=!0),!n){const t=new RegExp(`^ {0,${Math.min(3,h-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),n=new RegExp(`^ {0,${Math.min(3,h-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),i=new RegExp(`^ {0,${Math.min(3,h-1)}}(?:\`\`\`|~~~)`),o=new RegExp(`^ {0,${Math.min(3,h-1)}}#`),a=new RegExp(`^ {0,${Math.min(3,h-1)}}<(?:[a-z].*>|!--)`,"i");for(;e;){const d=e.split("\n",1)[0];let p;if(c=d,this.options.pedantic?(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," "),p=c):p=c.replace(/\t/g," "),i.test(c))break;if(o.test(c))break;if(a.test(c))break;if(t.test(c))break;if(n.test(c))break;if(p.search(/[^ ]/)>=h||!c.trim())s+="\n"+p.slice(h);else{if(u)break;if(l.replace(/\t/g," ").search(/[^ ]/)>=4)break;if(i.test(l))break;if(o.test(l))break;if(n.test(l))break;s+="\n"+c}u||c.trim()||(u=!0),r+=d+"\n",e=e.substring(d.length+1),l=p.slice(h)}}i.loose||(a?i.loose=!0:/\n[ \t]*\n[ \t]*$/.test(r)&&(a=!0));let d,p=null;this.options.gfm&&(p=/^\[[ xX]\] /.exec(s),p&&(d="[ ] "!==p[0],s=s.replace(/^\[[ xX]\] +/,""))),i.items.push({type:"list_item",raw:r,task:!!p,checked:d,loose:!1,text:s,tokens:[]}),i.raw+=r}i.items[i.items.length-1].raw=i.items[i.items.length-1].raw.trimEnd(),i.items[i.items.length-1].text=i.items[i.items.length-1].text.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){const t=i.items[e].tokens.filter(e=>"space"===e.type),n=t.length>0&&t.some(e=>/\n.*\n/.test(e.raw));i.loose=n}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){const t=this.rules.block.html.exec(e);if(t){return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){const t=this.rules.block.table.exec(e);if(!t)return;if(!/[:|]/.test(t[2]))return;const n=QB(t[1]),r=t[2].replace(/^\||\| *$/g,"").split("|"),i=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[],o={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(const e of r)/^ *-+: *$/.test(e)?o.align.push("right"):/^ *:-+: *$/.test(e)?o.align.push("center"):/^ *:-+ *$/.test(e)?o.align.push("left"):o.align.push(null);for(let e=0;e<n.length;e++)o.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:o.align[e]});for(const e of i)o.rows.push(QB(e,o.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:o.align[t]})));return o}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:SB(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=PB(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return-1}(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),EB(t,{href:n?n.replace(this.rules.inline.anyPunctuation,"$1"):n,title:r?r.replace(this.rules.inline.anyPunctuation,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const e=t[(n[2]||n[1]).replace(/\s+/g," ").toLowerCase()];if(!e){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return EB(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(r[1]||r[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const n=[...r[0]].length-1;let i,o,a=n,s=0;const l="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=l.exec(t));){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(o=[...i].length,r[3]||r[4]){a+=o;continue}if((r[5]||r[6])&&n%3&&!((n+o)%3)){s+=o;continue}if(a-=o,a>0)continue;o=Math.min(o,o+a+s);const t=[...r[0]][0].length,l=e.slice(0,n+r.index+t+o);if(Math.min(n,o)%2){const e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}const c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=SB(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=SB(t[1]),n="mailto:"+e):(e=SB(t[1]),n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){var t;let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=SB(n[0]),r="mailto:"+e;else{let i;do{i=n[0],n[0]=(null==(t=this.rules.inline._backpedal.exec(n[0]))?void 0:t[0])??""}while(i!==n[0]);e=SB(n[0]),r="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let e;return e=this.lexer.state.inRawBlock?t[0]:SB(t[0]),{type:"text",raw:t[0],text:e}}}}const BB=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,IB=/(?:[*+-]|\d{1,9}[.)])/,LB=$B(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,IB).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),DB=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,MB=/(?!\s*\])(?:\\.|[^\[\]\\])+/,NB=$B(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",MB).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),XB=$B(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,IB).getRegex(),FB="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",UB=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,zB=$B("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",UB).replace("tag",FB).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),qB=$B(DB).replace("hr",BB).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",FB).getRegex(),VB={blockquote:$B(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",qB).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:NB,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:BB,html:zB,lheading:LB,list:XB,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:qB,table:CB,text:/^[^\n]+/},WB=$B("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",BB).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",FB).getRegex(),jB={...VB,table:WB,paragraph:$B(DB).replace("hr",BB).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",WB).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",FB).getRegex()},YB={...VB,html:$B("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",UB).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:CB,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:$B(DB).replace("hr",BB).replace("heading"," *#{1,6} *[^\n]").replace("lheading",LB).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ZB=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,GB=/^( {2,}|\\)\n(?!\s*$)/,HB="\\p{P}\\p{S}",KB=$B(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,HB).getRegex(),JB=$B(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,HB).getRegex(),eI=$B("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,HB).getRegex(),tI=$B("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,HB).getRegex(),nI=$B(/\\([punct])/,"gu").replace(/punct/g,HB).getRegex(),rI=$B(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),iI=$B(UB).replace("(?:--\x3e|$)","--\x3e").getRegex(),oI=$B("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",iI).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),aI=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,sI=$B(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",aI).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),lI=$B(/^!?\[(label)\]\[(ref)\]/).replace("label",aI).replace("ref",MB).getRegex(),cI=$B(/^!?\[(ref)\](?:\[\])?/).replace("ref",MB).getRegex(),uI={_backpedal:CB,anyPunctuation:nI,autolink:rI,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,br:GB,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:CB,emStrongLDelim:JB,emStrongRDelimAst:eI,emStrongRDelimUnd:tI,escape:ZB,link:sI,nolink:cI,punctuation:KB,reflink:lI,reflinkSearch:$B("reflink|nolink(?!\\()","g").replace("reflink",lI).replace("nolink",cI).getRegex(),tag:oI,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:CB},hI={...uI,link:$B(/^!?\[(label)\]\((.*?)\)/).replace("label",aI).getRegex(),reflink:$B(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",aI).getRegex()},dI={...uI,escape:$B(ZB).replace("])","~|])").getRegex(),url:$B(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},pI={...dI,br:$B(GB).replace("{2,}","*").getRegex(),text:$B(dI.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},fI={normal:VB,gfm:jB,pedantic:YB},gI={normal:uI,gfm:dI,breaks:pI,pedantic:hI};class mI{constructor(e){Jn(this,"tokens"),Jn(this,"options"),Jn(this,"state"),Jn(this,"tokenizer"),Jn(this,"inlineQueue"),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||OB,this.options.tokenizer=this.options.tokenizer||new RB,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:fI.normal,inline:gI.normal};this.options.pedantic?(t.block=fI.pedantic,t.inline=gI.pedantic):this.options.gfm&&(t.block=fI.gfm,this.options.breaks?t.inline=gI.breaks:t.inline=gI.gfm),this.tokenizer.rules=t}static get rules(){return{block:fI,inline:gI}}static lex(e,t){return new mI(t).lex(e)}static lexInline(e,t){return new mI(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){const e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){let r,i,o;for(this.options.pedantic&&(e=e.replace(/\t/g," ").replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0))))if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),1===r.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(r);else if(r=this.tokenizer.code(e))e=e.substring(r.raw.length),i=t[t.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?t.push(r):(i.raw+="\n"+r.raw,i.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.list(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.html(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.def(e))e=e.substring(r.raw.length),i=t[t.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(i.raw+="\n"+r.raw,i.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(r=this.tokenizer.table(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(e))e=e.substring(r.raw.length),t.push(r);else{if(o=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(o)))i=t[t.length-1],n&&"paragraph"===(null==i?void 0:i.type)?(i.raw+="\n"+r.raw,i.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(r),n=o.length!==e.length,e=e.substring(r.raw.length);else if(r=this.tokenizer.text(e))e=e.substring(r.raw.length),i=t[t.length-1],i&&"text"===i.type?(i.raw+="\n"+r.raw,i.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(r);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r,i,o,a,s,l=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(l));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.anyPunctuation.exec(l));)l=l.slice(0,o.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(a||(s=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,l,s))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e))){if(i=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(i))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),a=!0,r=t[t.length-1],r&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}}class OI{constructor(e){Jn(this,"options"),Jn(this,"parser"),this.options=e||OB}space(e){return""}code({text:e,lang:t,escaped:n}){var r;const i=null==(r=(t||"").match(/^\S*/))?void 0:r[0],o=e.replace(/\n$/,"")+"\n";return i?'<pre><code class="language-'+SB(i)+'">'+(n?o:SB(o,!0))+"</code></pre>\n":"<pre><code>"+(n?o:SB(o,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){const t=e.ordered,n=e.start;let r="";for(let o=0;o<e.items.length;o++){const t=e.items[o];r+=this.listitem(t)}const i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+i+">\n"}listitem(e){let t="";if(e.task){const n=this.checkbox({checked:!!e.checked});e.loose?e.tokens.length>0&&"paragraph"===e.tokens[0].type?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+e.tokens[0].tokens[0].text)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" "}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let i=0;i<e.header.length;i++)n+=this.tablecell(e.header[i]);t+=this.tablerow({text:n});let r="";for(let i=0;i<e.rows.length;i++){const t=e.rows[i];n="";for(let e=0;e<t.length;e++)n+=this.tablecell(t[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+r+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){const t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${e}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){const r=this.parser.parseInline(n),i=_B(e);if(null===i)return r;let o='<a href="'+(e=i)+'"';return t&&(o+=' title="'+t+'"'),o+=">"+r+"</a>",o}image({href:e,title:t,text:n}){const r=_B(e);if(null===r)return n;let i=`<img src="${e=r}" alt="${n}"`;return t&&(i+=` title="${t}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):e.text}}class AI{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}}class yI{constructor(e){Jn(this,"options"),Jn(this,"renderer"),Jn(this,"textRenderer"),this.options=e||OB,this.options.renderer=this.options.renderer||new OI,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new AI}static parse(e,t){return new yI(t).parse(e)}static parseInline(e,t){return new yI(t).parseInline(e)}parse(e,t=!0){let n="";for(let r=0;r<e.length;r++){const i=e[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){const e=i,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){n+=t||"";continue}}const o=i;switch(o.type){case"space":n+=this.renderer.space(o);continue;case"hr":n+=this.renderer.hr(o);continue;case"heading":n+=this.renderer.heading(o);continue;case"code":n+=this.renderer.code(o);continue;case"table":n+=this.renderer.table(o);continue;case"blockquote":n+=this.renderer.blockquote(o);continue;case"list":n+=this.renderer.list(o);continue;case"html":n+=this.renderer.html(o);continue;case"paragraph":n+=this.renderer.paragraph(o);continue;case"text":{let i=o,a=this.renderer.text(i);for(;r+1<e.length&&"text"===e[r+1].type;)i=e[++r],a+="\n"+this.renderer.text(i);n+=t?this.renderer.paragraph({type:"paragraph",raw:a,text:a,tokens:[{type:"text",raw:a,text:a}]}):a;continue}default:{const e='Token with "'+o.type+'" type was not found.';if(this.options.silent)return"";throw new Error(e)}}}return n}parseInline(e,t){t=t||this.renderer;let n="";for(let r=0;r<e.length;r++){const i=e[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){const e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=e||"";continue}}const o=i;switch(o.type){case"escape":case"text":n+=t.text(o);break;case"html":n+=t.html(o);break;case"link":n+=t.link(o);break;case"image":n+=t.image(o);break;case"strong":n+=t.strong(o);break;case"em":n+=t.em(o);break;case"codespan":n+=t.codespan(o);break;case"br":n+=t.br(o);break;case"del":n+=t.del(o);break;default:{const e='Token with "'+o.type+'" type was not found.';if(this.options.silent)return"";throw new Error(e)}}}return n}}class vI{constructor(e){Jn(this,"options"),Jn(this,"block"),this.options=e||OB}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?mI.lex:mI.lexInline}provideParser(){return this.block?yI.parse:yI.parseInline}}Jn(vI,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));const bI=new class{constructor(...e){Jn(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),Jn(this,"options",this.setOptions),Jn(this,"parse",this.parseMarkdown(!0)),Jn(this,"parseInline",this.parseMarkdown(!1)),Jn(this,"Parser",yI),Jn(this,"Renderer",OI),Jn(this,"TextRenderer",AI),Jn(this,"Lexer",mI),Jn(this,"Tokenizer",RB),Jn(this,"Hooks",vI),this.use(...e)}walkTokens(e,t){var n,r;let i=[];for(const o of e)switch(i=i.concat(t.call(this,o)),o.type){case"table":{const e=o;for(const n of e.header)i=i.concat(this.walkTokens(n.tokens,t));for(const n of e.rows)for(const e of n)i=i.concat(this.walkTokens(e.tokens,t));break}case"list":{const e=o;i=i.concat(this.walkTokens(e.items,t));break}default:{const e=o;(null==(r=null==(n=this.defaults.extensions)?void 0:n.childTokens)?void 0:r[e.type])?this.defaults.extensions.childTokens[e.type].forEach(n=>{const r=e[n].flat(1/0);i=i.concat(this.walkTokens(r,t))}):e.tokens&&(i=i.concat(this.walkTokens(e.tokens,t)))}}return i}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{const n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){const n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");const n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){const t=this.defaults.renderer||new OI(this.defaults);for(const n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;const r=n,i=e.renderer[r],o=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=o.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){const t=this.defaults.tokenizer||new RB(this.defaults);for(const n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;const r=n,i=e.tokenizer[r],o=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=o.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){const t=this.defaults.hooks||new vI;for(const n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;const r=n,i=e.hooks[r],o=t[r];vI.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async)return Promise.resolve(i.call(t,e)).then(e=>o.call(t,e));const n=i.call(t,e);return o.call(t,n)}:t[r]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=o.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){const t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return mI.lex(e,t??this.defaults)}parser(e,t){return yI.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{const r={...n},i={...this.defaults,...r},o=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(null==t)return o(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));i.hooks&&(i.hooks.options=i,i.hooks.block=e);const a=i.hooks?i.hooks.provideLexer():e?mI.lex:mI.lexInline,s=i.hooks?i.hooks.provideParser():e?yI.parse:yI.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(t):t).then(e=>a(e,i)).then(e=>i.hooks?i.hooks.processAllTokens(e):e).then(e=>i.walkTokens?Promise.all(this.walkTokens(e,i.walkTokens)).then(()=>e):e).then(e=>s(e,i)).then(e=>i.hooks?i.hooks.postprocess(e):e).catch(o);try{i.hooks&&(t=i.hooks.preprocess(t));let e=a(t,i);i.hooks&&(e=i.hooks.processAllTokens(e)),i.walkTokens&&this.walkTokens(e,i.walkTokens);let n=s(e,i);return i.hooks&&(n=i.hooks.postprocess(n)),n}catch(jk){return o(jk)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+SB(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function xI(e,t){return bI.parse(e,t)}function wI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return wI(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wI(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}xI.options=xI.setOptions=function(e){return bI.setOptions(e),xI.defaults=bI.defaults,AB(xI.defaults),xI},xI.getDefaults=mB,xI.defaults=OB,xI.use=function(...e){return bI.use(...e),xI.defaults=bI.defaults,AB(xI.defaults),xI},xI.walkTokens=function(e,t){return bI.walkTokens(e,t)},xI.parseInline=bI.parseInline,xI.Parser=yI,xI.parser=yI.parse,xI.Renderer=OI,xI.TextRenderer=AI,xI.Lexer=mI,xI.lexer=mI.lex,xI.Tokenizer=RB,xI.Hooks=vI,xI.parse=xI,xI.options,xI.setOptions,xI.use,xI.walkTokens,xI.parseInline,yI.parse,mI.lex;const SI=Object.entries,TI=Object.setPrototypeOf,$I=Object.isFrozen,_I=Object.getPrototypeOf,CI=Object.getOwnPropertyDescriptor;let QI=Object.freeze,PI=Object.seal,EI=Object.create,RI="undefined"!=typeof Reflect&&Reflect,BI=RI.apply,II=RI.construct;QI||(QI=function(e){return e}),PI||(PI=function(e){return e}),BI||(BI=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)}),II||(II=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const LI=rL(Array.prototype.forEach),DI=rL(Array.prototype.lastIndexOf),MI=rL(Array.prototype.pop),NI=rL(Array.prototype.push),XI=rL(Array.prototype.splice),FI=Array.isArray,UI=rL(String.prototype.toLowerCase),zI=rL(String.prototype.toString),qI=rL(String.prototype.match),VI=rL(String.prototype.replace),WI=rL(String.prototype.indexOf),jI=rL(String.prototype.trim),YI=rL(Number.prototype.toString),ZI=rL(Boolean.prototype.toString),GI="undefined"==typeof BigInt?null:rL(BigInt.prototype.toString),HI="undefined"==typeof Symbol?null:rL(Symbol.prototype.toString),KI=rL(Object.prototype.hasOwnProperty),JI=rL(Object.prototype.toString),eL=rL(RegExp.prototype.test),tL=(nL=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return II(nL,t)});var nL;function rL(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return BI(e,t,r)}}function iL(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:UI;if(TI&&TI(e,null),!FI(t))return e;let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){const e=n(i);e!==i&&($I(t)||(t[r]=e),i=e)}e[i]=!0}return e}function oL(e){for(let t=0;t<e.length;t++){KI(e,t)||(e[t]=null)}return e}function aL(e){const t=EI(null);for(const r of SI(e)){var n=kI(r,2);const i=n[0],o=n[1];KI(e,i)&&(FI(o)?t[i]=oL(o):o&&"object"==typeof o&&o.constructor===Object?t[i]=aL(o):t[i]=o)}return t}function sL(e,t){for(;null!==e;){const n=CI(e,t);if(n){if(n.get)return rL(n.get);if("function"==typeof n.value)return rL(n.value)}e=_I(e)}return function(){return null}}const lL=QI(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),cL=QI(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),uL=QI(["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"]),hL=QI(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),dL=QI(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),pL=QI(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),fL=QI(["#text"]),gL=QI(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),mL=QI(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),OL=QI(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),AL=QI(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),yL=PI(/{{[\w\W]*|^[\w\W]*}}/g),vL=PI(/<%[\w\W]*|^[\w\W]*%>/g),bL=PI(/\${[\w\W]*/g),xL=PI(/^data-[\-\w.\u00B7-\uFFFF]+$/),wL=PI(/^aria-[\-\w]+$/),kL=PI(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),SL=PI(/^(?:\w+script|data):/i),TL=PI(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$L=PI(/^html$/i),_L=PI(/^[a-z][.\w]*(-[.\w]+)+$/i),CL=PI(/<[/\w!]/g),QL=PI(/<[/\w]/g),PL=PI(/<\/no(script|embed|frames)/i),EL=PI(/\/>/i),RL=1,BL=3,IL=7,LL=8,DL=9,ML=11,NL=function(e,t,n,r){return KI(e,t)&&FI(e[t])?iL(r.base?aL(r.base):{},e[t],r.transform):n};var XL=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const n=t=>e(t);if(n.version="3.4.11",n.removed=[],!t||!t.document||t.document.nodeType!==DL||!t.Element)return n.isSupported=!1,n;let r=t.document;const i=r,o=i.currentScript;t.DocumentFragment;const a=t.HTMLTemplateElement,s=t.Node,l=t.Element,c=t.NodeFilter,u=t.NamedNodeMap;void 0===u&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const h=t.DOMParser,d=t.trustedTypes,p=l.prototype,f=sL(p,"cloneNode"),g=sL(p,"remove"),m=sL(p,"nextSibling"),O=sL(p,"childNodes"),A=sL(p,"parentNode"),y=sL(p,"shadowRoot"),v=sL(p,"attributes"),b=s&&s.prototype?sL(s.prototype,"nodeType"):null,x=s&&s.prototype?sL(s.prototype,"nodeName"):null;if("function"==typeof a){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let w,k,S="",T=!1,$=0;const _=function(){if($>0)throw tL('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},C=function(e){_(),$++;try{return w.createHTML(e)}finally{$--}},Q=r,P=Q.implementation,E=Q.createNodeIterator,R=Q.createDocumentFragment,B=Q.getElementsByTagName,I=i.importNode;let L={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof SI&&"function"==typeof A&&P&&void 0!==P.createHTMLDocument;const D=yL,M=vL,N=bL,X=xL,F=wL,U=SL,z=TL,q=_L;let V=kL,W=null;const j=iL({},[...lL,...cL,...uL,...dL,...fL]);let Y=null;const Z=iL({},[...gL,...mL,...OL,...AL]);let G=Object.seal(EI(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),H=null,K=null;const J=Object.seal(EI(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ee=!0,te=!0,ne=!1,re=!0,ie=!1,oe=!0,ae=!1,se=!1,le=null,ce=null,ue=!1,he=!1,de=!1,pe=!1,fe=!0,ge=!1;const me="user-content-";let Oe=!0,Ae=!1,ye={},ve=null;const be=iL({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let xe=null;const we=iL({},["audio","video","img","source","image","track"]);let ke=null;const Se=iL({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Te="http://www.w3.org/1998/Math/MathML",$e="http://www.w3.org/2000/svg",_e="http://www.w3.org/1999/xhtml";let Ce=_e,Qe=!1,Pe=null;const Ee=iL({},[Te,$e,_e],zI),Re=QI(["mi","mo","mn","ms","mtext"]);let Be=iL({},Re);const Ie=QI(["annotation-xml"]);let Le=iL({},Ie);const De=iL({},["title","style","font","a","script"]);let Me=null;const Ne=["application/xhtml+xml","text/html"];let Xe=null,Fe=null;const Ue=r.createElement("form"),ze=function(e){return e instanceof RegExp||e instanceof Function},qe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Fe&&Fe===e)return;e&&"object"==typeof e||(e={}),e=aL(e),Me=-1===Ne.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Xe="application/xhtml+xml"===Me?zI:UI,W=NL(e,"ALLOWED_TAGS",j,{transform:Xe}),Y=NL(e,"ALLOWED_ATTR",Z,{transform:Xe}),Pe=NL(e,"ALLOWED_NAMESPACES",Ee,{transform:zI}),ke=NL(e,"ADD_URI_SAFE_ATTR",Se,{transform:Xe,base:Se}),xe=NL(e,"ADD_DATA_URI_TAGS",we,{transform:Xe,base:we}),ve=NL(e,"FORBID_CONTENTS",be,{transform:Xe}),H=NL(e,"FORBID_TAGS",aL({}),{transform:Xe}),K=NL(e,"FORBID_ATTR",aL({}),{transform:Xe}),ye=!!KI(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?aL(e.USE_PROFILES):e.USE_PROFILES),ee=!1!==e.ALLOW_ARIA_ATTR,te=!1!==e.ALLOW_DATA_ATTR,ne=e.ALLOW_UNKNOWN_PROTOCOLS||!1,re=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ie=e.SAFE_FOR_TEMPLATES||!1,oe=!1!==e.SAFE_FOR_XML,ae=e.WHOLE_DOCUMENT||!1,he=e.RETURN_DOM||!1,de=e.RETURN_DOM_FRAGMENT||!1,pe=e.RETURN_TRUSTED_TYPE||!1,ue=e.FORCE_BODY||!1,fe=!1!==e.SANITIZE_DOM,ge=e.SANITIZE_NAMED_PROPS||!1,Oe=!1!==e.KEEP_CONTENT,Ae=e.IN_PLACE||!1,V=function(e){try{return eL(e,""),!0}catch(t){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:kL,Ce="string"==typeof e.NAMESPACE?e.NAMESPACE:_e,Be=KI(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?aL(e.MATHML_TEXT_INTEGRATION_POINTS):iL({},Re),Le=KI(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?aL(e.HTML_INTEGRATION_POINTS):iL({},Ie);const t=KI(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?aL(e.CUSTOM_ELEMENT_HANDLING):EI(null);if(G=EI(null),KI(t,"tagNameCheck")&&ze(t.tagNameCheck)&&(G.tagNameCheck=t.tagNameCheck),KI(t,"attributeNameCheck")&&ze(t.attributeNameCheck)&&(G.attributeNameCheck=t.attributeNameCheck),KI(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(G.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),PI(G),ie&&(te=!1),de&&(he=!0),ye&&(W=iL({},fL),Y=EI(null),!0===ye.html&&(iL(W,lL),iL(Y,gL)),!0===ye.svg&&(iL(W,cL),iL(Y,mL),iL(Y,AL)),!0===ye.svgFilters&&(iL(W,uL),iL(Y,mL),iL(Y,AL)),!0===ye.mathMl&&(iL(W,dL),iL(Y,OL),iL(Y,AL))),J.tagCheck=null,J.attributeCheck=null,KI(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?J.tagCheck=e.ADD_TAGS:FI(e.ADD_TAGS)&&(W===j&&(W=aL(W)),iL(W,e.ADD_TAGS,Xe))),KI(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?J.attributeCheck=e.ADD_ATTR:FI(e.ADD_ATTR)&&(Y===Z&&(Y=aL(Y)),iL(Y,e.ADD_ATTR,Xe))),KI(e,"ADD_URI_SAFE_ATTR")&&FI(e.ADD_URI_SAFE_ATTR)&&iL(ke,e.ADD_URI_SAFE_ATTR,Xe),KI(e,"FORBID_CONTENTS")&&FI(e.FORBID_CONTENTS)&&(ve===be&&(ve=aL(ve)),iL(ve,e.FORBID_CONTENTS,Xe)),KI(e,"ADD_FORBID_CONTENTS")&&FI(e.ADD_FORBID_CONTENTS)&&(ve===be&&(ve=aL(ve)),iL(ve,e.ADD_FORBID_CONTENTS,Xe)),Oe&&(W["#text"]=!0),ae&&iL(W,["html","head","body"]),W.table&&(iL(W,["tbody"]),delete H.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw tL('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw tL('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=w;w=e.TRUSTED_TYPES_POLICY;try{S=C("")}catch(n){throw w=t,n}}else null===e.TRUSTED_TYPES_POLICY?(w=void 0,S=""):(void 0===w&&(T||(k=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(o){return null}}(d,o),T=!0),w=k),w&&"string"==typeof S&&(S=C("")));QI&&QI(e),Fe=e},Ve=iL({},[...cL,...uL,...hL]),We=iL({},[...dL,...pL]),je=function(e){let t=A(e);t&&t.tagName||(t={namespaceURI:Ce,tagName:"template"});const n=UI(e.tagName),r=UI(t.tagName);return!!Pe[e.namespaceURI]&&(e.namespaceURI===$e?function(e,t,n){return t.namespaceURI===_e?"svg"===e:t.namespaceURI===Te?"svg"===e&&("annotation-xml"===n||Be[n]):Boolean(Ve[e])}(n,t,r):e.namespaceURI===Te?function(e,t,n){return t.namespaceURI===_e?"math"===e:t.namespaceURI===$e?"math"===e&&Le[n]:Boolean(We[e])}(n,t,r):e.namespaceURI===_e?function(e,t,n){return!(t.namespaceURI===$e&&!Le[n])&&!(t.namespaceURI===Te&&!Be[n])&&!We[e]&&(De[e]||!Ve[e])}(n,t,r):!("application/xhtml+xml"!==Me||!Pe[e.namespaceURI]))},Ye=function(e){NI(n.removed,{element:e});try{A(e).removeChild(e)}catch(t){if(g(e),!A(e))throw tL("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ze=function(e){const t=O(e);if(t){const e=[];LI(t,t=>{NI(e,t)}),LI(e,e=>{try{g(e)}catch(t){}})}const n=v(e);if(n)for(let i=n.length-1;i>=0;--i){const t=n[i],o=t&&t.name;if("string"==typeof o)try{e.removeAttribute(o)}catch(r){}}},Ge=function(e,t){try{NI(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){NI(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(he||de)try{Ye(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},He=function(e){const t=v(e);if(t)for(let r=t.length-1;r>=0;--r){const i=t[r],o=i&&i.name;if("string"==typeof o&&!Y[Xe(o)])try{e.removeAttribute(o)}catch(n){}}},Ke=function(e){let t=null,n=null;if(ue)e="<remove></remove>"+e;else{const t=qI(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Me&&Ce===_e&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=w?C(e):e;if(Ce===_e)try{t=(new h).parseFromString(i,Me)}catch(a){}if(!t||!t.documentElement){t=P.createDocument(Ce,"template",null);try{t.documentElement.innerHTML=Qe?S:i}catch(a){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(r.createTextNode(n),o.childNodes[0]||null),Ce===_e?B.call(t,ae?"html":"body")[0]:ae?t.documentElement:o},Je=function(e){return E.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},et=function(e){return e=VI(e,D," "),e=VI(e,M," "),e=VI(e,N," ")},tt=function(e){var t;e.normalize();const n=E.call(e.ownerDocument||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let r=n.nextNode();for(;r;)r.data=et(r.data),r=n.nextNode();const i=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");i&&LI(i,e=>{rt(e.content)&&tt(e.content)})},nt=function(e){const t=x?x(e):null;return"string"==typeof t&&("form"===Xe(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==v(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==b(e)||e.childNodes!==O(e)))},rt=function(e){if(!b||"object"!=typeof e||null===e)return!1;try{return b(e)===ML}catch(t){return!1}},it=function(e){if(!b||"object"!=typeof e||null===e)return!1;try{return"number"==typeof b(e)}catch(t){return!1}};function ot(e,t,r){0!==e.length&&LI(e,e=>{e.call(n,t,r,Fe)})}const at=function(e){if(ot(L.beforeSanitizeElements,e,null),nt(e))return Ye(e),!0;const t=Xe(x?x(e):e.nodeName);if(ot(L.uponSanitizeElement,e,{tagName:t,allowedTags:W}),function(e,t){return!!(oe&&e.hasChildNodes()&&!it(e.firstElementChild)&&eL(CL,e.textContent)&&eL(CL,e.innerHTML))||!(!oe||e.namespaceURI!==_e||"style"!==t||!it(e.firstElementChild))||e.nodeType===IL||!(!oe||e.nodeType!==LL||!eL(QL,e.data))}(e,t))return Ye(e),!0;if(H[t]||!(J.tagCheck instanceof Function&&J.tagCheck(t))&&!W[t])return function(e,t){if(!H[t]&&ct(t)){if(G.tagNameCheck instanceof RegExp&&eL(G.tagNameCheck,t))return!1;if(G.tagNameCheck instanceof Function&&G.tagNameCheck(t))return!1}if(Oe&&!ve[t]){const t=A(e),n=O(e);if(n&&t)for(let r=n.length-1;r>=0;--r){const i=Ae?n[r]:f(n[r],!0);t.insertBefore(i,m(e))}}return Ye(e),!0}(e,t);if((b?b(e):e.nodeType)===RL&&!je(e))return Ye(e),!0;if(("noscript"===t||"noembed"===t||"noframes"===t)&&eL(PL,e.innerHTML))return Ye(e),!0;if(ie&&e.nodeType===BL){const t=et(e.textContent);e.textContent!==t&&(NI(n.removed,{element:e.cloneNode()}),e.textContent=t)}return ot(L.afterSanitizeElements,e,null),!1},st=function(e,t,n){if(K[t])return!1;if(fe&&("id"===t||"name"===t)&&(n in r||n in Ue))return!1;const i=Y[t]||J.attributeCheck instanceof Function&&J.attributeCheck(t,e);if(te&&eL(X,t));else if(ee&&eL(F,t));else if(i)if(ke[t]);else if(eL(V,VI(n,z,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==WI(n,"data:")||!xe[e]){if(ne&&!eL(U,VI(n,z,"")));else if(n)return!1}else;else if(!(ct(e)&&(G.tagNameCheck instanceof RegExp&&eL(G.tagNameCheck,e)||G.tagNameCheck instanceof Function&&G.tagNameCheck(e))&&(G.attributeNameCheck instanceof RegExp&&eL(G.attributeNameCheck,t)||G.attributeNameCheck instanceof Function&&G.attributeNameCheck(t,e))||"is"===t&&G.allowCustomizedBuiltInElements&&(G.tagNameCheck instanceof RegExp&&eL(G.tagNameCheck,n)||G.tagNameCheck instanceof Function&&G.tagNameCheck(n))))return!1;return!0},lt=iL({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ct=function(e){return!lt[UI(e)]&&eL(q,e)},ut=function(e,t,n,r){if(w&&"object"==typeof d&&"function"==typeof d.getAttributeType&&!n)switch(d.getAttributeType(e,t)){case"TrustedHTML":return C(r);case"TrustedScriptURL":return function(e){_(),$++;try{return w.createScriptURL(e)}finally{$--}}(r)}return r},ht=function(e,t,r,i){try{r?e.setAttributeNS(r,t,i):e.setAttribute(t,i),nt(e)?Ye(e):MI(n.removed)}catch(o){Ge(t,e)}},dt=function(e){ot(L.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||nt(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y,forceKeepAttr:void 0};let r=t.length;const i=Xe(e.nodeName);for(;r--;){const o=t[r],a=o.name,s=o.namespaceURI,l=o.value,c=Xe(a),u=l;let h="value"===a?u:jI(u);n.attrName=c,n.attrValue=h,n.keepAttr=!0,n.forceKeepAttr=void 0,ot(L.uponSanitizeAttribute,e,n),h=n.attrValue,!ge||"id"!==c&&"name"!==c||0===WI(h,me)||(Ge(a,e),h=me+h),oe&&eL(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,h)?Ge(a,e):"attributename"===c&&qI(h,"href")?Ge(a,e):n.forceKeepAttr||(n.keepAttr&&(re||!eL(EL,h))?(ie&&(h=et(h)),st(i,c,h)?(h=ut(i,c,s,h),h!==u&&ht(e,a,s,h)):Ge(a,e)):Ge(a,e))}ot(L.afterSanitizeAttributes,e,null)},pt=function(e){let t=null;const n=Je(e);for(ot(L.beforeSanitizeShadowDOM,e,null);t=n.nextNode();){ot(L.uponSanitizeShadowNode,t,null),at(t),dt(t),rt(t.content)&&pt(t.content);if((b?b(t):t.nodeType)===RL){const e=y(t);rt(e)&&(ft(e),pt(e))}}ot(L.afterSanitizeShadowDOM,e,null)},ft=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){pt(e.shadow);continue}const n=e.node,r=(b?b(n):n.nodeType)===RL,i=O(n);if(i)for(let o=i.length-1;o>=0;--o)t.push({node:i[o],shadow:null});if(r){const e=x?x(n):null;if("string"==typeof e&&"template"===Xe(e)){const e=n.content;rt(e)&&t.push({node:e,shadow:null})}}if(r){const e=y(n);rt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,a=null,s=null;if(Qe=!e,Qe&&(e="\x3c!--\x3e"),"string"!=typeof e&&!it(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return YI(e);case"boolean":return ZI(e);case"bigint":return GI?GI(e):"0";case"symbol":return HI?HI(e):"Symbol()";case"undefined":default:return JI(e);case"function":case"object":{if(null===e)return JI(e);const t=e,n=sL(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:JI(e)}return JI(e)}}}(e)))throw tL("dirty is not a string, aborting");if(!n.isSupported)return e;se?(W=le,Y=ce):qe(t),(L.uponSanitizeElement.length>0||L.uponSanitizeAttribute.length>0)&&(W=aL(W)),L.uponSanitizeAttribute.length>0&&(Y=aL(Y)),n.removed=[];const l=Ae&&"string"!=typeof e&&it(e);if(l){const t=x?x(e):e.nodeName;if("string"==typeof t){const e=Xe(t);if(!W[e]||H[e])throw tL("root node is forbidden and cannot be sanitized in-place")}if(nt(e))throw tL("root node is clobbered and cannot be sanitized in-place");try{ft(e)}catch(h){throw Ze(e),h}}else if(it(e))r=Ke("\x3c!----\x3e"),o=r.ownerDocument.importNode(e,!0),o.nodeType===RL&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o),ft(o);else{if(!he&&!ie&&!ae&&-1===e.indexOf("<"))return w&&pe?C(e):e;if(r=Ke(e),!r)return he?null:pe?S:""}r&&ue&&Ye(r.firstChild);const c=Je(l?e:r);try{for(;a=c.nextNode();)at(a),dt(a),rt(a.content)&&pt(a.content)}catch(h){throw l&&Ze(e),h}if(l)return LI(n.removed,e=>{e.element&&function(e){const t=[e];for(;t.length>0;){const e=t.pop();(b?b(e):e.nodeType)===RL&&He(e);const n=O(e);if(n)for(let r=n.length-1;r>=0;--r)t.push(n[r])}}(e.element)}),ie&&tt(e),e;if(he){if(ie&&tt(r),de)for(s=R.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(Y.shadowroot||Y.shadowrootmode)&&(s=I.call(i,s,!0)),s}let u=ae?r.outerHTML:r.innerHTML;return ae&&W["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&eL($L,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),ie&&(u=et(u)),w&&pe?C(u):u},n.setConfig=function(){qe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),se=!0,le=W,ce=Y},n.clearConfig=function(){Fe=null,se=!1,le=null,ce=null,w=k,S=""},n.isValidAttribute=function(e,t,n){Fe||qe({});const r=Xe(e),i=Xe(t);return st(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&KI(L,e)&&NI(L[e],t)},n.removeHook=function(e,t){if(KI(L,e)){if(void 0!==t){const n=DI(L[e],t);return-1===n?void 0:XI(L[e],n,1)[0]}return MI(L[e])}},n.removeHooks=function(e){KI(L,e)&&(L[e]=[])},n.removeAllHooks=function(){L={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),FL=(e=>(e.docTypeError="docTypeError",e.contextNotFound="contextNotFound",e.timerNotFound="timerNotFound",e.ctxCallOutOfScope="ctxCallOutOfScope",e.createNodeInParserFail="createNodeInParserFail",e.stackOverFlow="stackOverFlow",e.parserMatchError="parserMatchError",e.serializerMatchError="serializerMatchError",e.getAtomFromSchemaFail="getAtomFromSchemaFail",e.expectDomTypeError="expectDomTypeError",e.callCommandBeforeEditorView="callCommandBeforeEditorView",e.missingRootElement="missingRootElement",e.missingNodeInSchema="missingNodeInSchema",e.missingMarkInSchema="missingMarkInSchema",e.ctxNotBind="ctxNotBind",e.missingYjsDoc="missingYjsDoc",e))(FL||{});let UL=class extends Error{constructor(e,t){super(t),this.name="MilkdownError",this.code=e}};const zL=(e,t)=>"function"==typeof t?"[Function]":t,qL=e=>JSON.stringify(e,zL);function VL(){return new UL(FL.ctxCallOutOfScope,"Should not call a context out of the plugin.")}function WL(){return new UL(FL.stackOverFlow,"Stack over flow, cannot pop on an empty stack.")}function jL(e){return new UL(FL.expectDomTypeError,`Expect to be a dom, but get: ${qL(e)}.`)}function YL(e){return new UL(FL.missingNodeInSchema,`Missing node in schema, milkdown cannot find "${e}" in schema.`)}var ZL=e=>{throw TypeError(e)},GL=(e,t,n)=>t.has(e)||ZL("Cannot "+n),HL=(e,t,n)=>(GL(e,t,"read from private field"),n?n.call(e):t.get(e)),KL=(e,t,n)=>t.has(e)?ZL("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),JL=(e,t,n,r)=>(GL(e,t,"write to private field"),t.set(e,n),n);let eD=class{constructor(){this.sliceMap=new Map,this.get=e=>{const t="string"==typeof e?[...this.sliceMap.values()].find(t=>t.type.name===e):this.sliceMap.get(e.id);if(!t){throw function(e){return new UL(FL.contextNotFound,`Context "${e}" not found, do you forget to inject it?`)}("string"==typeof e?e:e.name)}return t},this.remove=e=>{const t="string"==typeof e?[...this.sliceMap.values()].find(t=>t.type.name===e):this.sliceMap.get(e.id);t&&this.sliceMap.delete(t.type.id)},this.has=e=>"string"==typeof e?[...this.sliceMap.values()].some(t=>t.type.name===e):this.sliceMap.has(e.id)}};var tD,nD,rD;let iD=class{constructor(e,t,n){KL(this,tD),KL(this,nD),KL(this,rD),JL(this,tD,[]),JL(this,rD,()=>{HL(this,tD).forEach(e=>e(HL(this,nD)))}),this.set=e=>{JL(this,nD,e),HL(this,rD).call(this)},this.get=()=>HL(this,nD),this.update=e=>{JL(this,nD,e(HL(this,nD))),HL(this,rD).call(this)},this.type=n,JL(this,nD,t),e.set(n.id,this)}on(e){return HL(this,tD).push(e),()=>{JL(this,tD,HL(this,tD).filter(t=>t!==e))}}once(e){const t=this.on(n=>{e(n),t()});return t}off(e){JL(this,tD,HL(this,tD).filter(t=>t!==e))}offAll(){JL(this,tD,[])}};tD=new WeakMap,nD=new WeakMap,rD=new WeakMap;let oD=class{constructor(e,t){this.id=Symbol(`Context-${t}`),this.name=t,this._defaultValue=e,this._typeInfo=()=>{throw VL()}}create(e,t=this._defaultValue){return new iD(e,t,this)}};const aD=(e,t)=>new oD(e,t);var sD,lD,cD,uD,hD,dD,pD,fD,gD;let mD=class{constructor(e,t,n){KL(this,sD),KL(this,lD),KL(this,cD),KL(this,uD),KL(this,hD),KL(this,dD),KL(this,pD),KL(this,fD),KL(this,gD),JL(this,uD,new Set),JL(this,hD,new Set),JL(this,dD,new Map),JL(this,pD,new Map),this.read=()=>({metadata:HL(this,sD),injectedSlices:[...HL(this,uD)].map(e=>({name:"string"==typeof e?e:e.name,value:HL(this,fD).call(this,e)})),consumedSlices:[...HL(this,hD)].map(e=>({name:"string"==typeof e?e:e.name,value:HL(this,fD).call(this,e)})),recordedTimers:[...HL(this,dD)].map(([e,{duration:t}])=>({name:e.name,duration:t,status:HL(this,gD).call(this,e)})),waitTimers:[...HL(this,pD)].map(([e,{duration:t}])=>({name:e.name,duration:t,status:HL(this,gD).call(this,e)}))}),this.onRecord=e=>{HL(this,dD).set(e,{start:Date.now(),duration:0})},this.onClear=e=>{HL(this,dD).delete(e)},this.onDone=e=>{const t=HL(this,dD).get(e);t&&(t.duration=Date.now()-t.start)},this.onWait=(e,t)=>{const n=Date.now();t.finally(()=>{HL(this,pD).set(e,{duration:Date.now()-n})})},this.onInject=e=>{HL(this,uD).add(e)},this.onRemove=e=>{HL(this,uD).delete(e)},this.onUse=e=>{HL(this,hD).add(e)},JL(this,fD,e=>HL(this,lD).get(e).get()),JL(this,gD,e=>HL(this,cD).get(e).status),JL(this,lD,e),JL(this,cD,t),JL(this,sD,n)}};var OD,AD,yD,vD;sD=new WeakMap,lD=new WeakMap,cD=new WeakMap,uD=new WeakMap,hD=new WeakMap,dD=new WeakMap,pD=new WeakMap,fD=new WeakMap,gD=new WeakMap;OD=new WeakMap,AD=new WeakMap,yD=new WeakMap,vD=new WeakMap;let bD=class e{constructor(t,n,r){KL(this,OD),KL(this,AD),KL(this,yD),KL(this,vD),this.produce=t=>t&&Object.keys(t).length?new e(HL(this,OD),HL(this,AD),{...t}):this,this.inject=(e,t)=>{var n;const r=e.create(HL(this,OD).sliceMap);return null!=t&&r.set(t),null==(n=HL(this,vD))||n.onInject(e),this},this.remove=e=>{var t;return HL(this,OD).remove(e),null==(t=HL(this,vD))||t.onRemove(e),this},this.record=e=>{var t;return e.create(HL(this,AD).store),null==(t=HL(this,vD))||t.onRecord(e),this},this.clearTimer=e=>{var t;return HL(this,AD).remove(e),null==(t=HL(this,vD))||t.onClear(e),this},this.isInjected=e=>HL(this,OD).has(e),this.isRecorded=e=>HL(this,AD).has(e),this.use=e=>{var t;return null==(t=HL(this,vD))||t.onUse(e),HL(this,OD).get(e)},this.get=e=>this.use(e).get(),this.set=(e,t)=>this.use(e).set(t),this.update=(e,t)=>this.use(e).update(t),this.timer=e=>HL(this,AD).get(e),this.done=e=>{var t;this.timer(e).done(),null==(t=HL(this,vD))||t.onDone(e)},this.wait=e=>{var t;const n=this.timer(e).start();return null==(t=HL(this,vD))||t.onWait(e,n),n},this.waitTimers=async e=>{await Promise.all(this.get(e).map(e=>this.wait(e)))},JL(this,OD,t),JL(this,AD,n),JL(this,yD,r),r&&JL(this,vD,new mD(t,n,r))}get meta(){return HL(this,yD)}get inspector(){return HL(this,vD)}},xD=class{constructor(){this.store=new Map,this.get=e=>{const t=this.store.get(e.id);if(!t)throw function(e){return new UL(FL.timerNotFound,`Timer "${e}" not found, do you forget to record it?`)}(e.name);return t},this.remove=e=>{this.store.delete(e.id)},this.has=e=>this.store.has(e.id)}};var wD,kD,SD,TD,$D,_D;let CD=class{constructor(e,t){KL(this,wD),KL(this,kD),KL(this,SD),KL(this,TD),KL(this,$D),KL(this,_D),JL(this,wD,null),JL(this,kD,null),JL(this,TD,"pending"),this.start=()=>(HL(this,wD)??JL(this,wD,new Promise((e,t)=>{JL(this,kD,t=>{t instanceof CustomEvent&&t.detail.id===HL(this,SD)&&(JL(this,TD,"resolved"),HL(this,$D).call(this),t.stopImmediatePropagation(),e())}),HL(this,_D).call(this,()=>{"pending"===HL(this,TD)&&JL(this,TD,"rejected"),HL(this,$D).call(this),t(new Error(`Timing ${this.type.name} timeout.`))}),JL(this,TD,"pending"),addEventListener(this.type.name,HL(this,kD))})),HL(this,wD)),this.done=()=>{const e=new CustomEvent(this.type.name,{detail:{id:HL(this,SD)}});dispatchEvent(e)},JL(this,$D,()=>{HL(this,kD)&&removeEventListener(this.type.name,HL(this,kD))}),JL(this,_D,e=>{setTimeout(()=>{e()},this.type.timeout)}),JL(this,SD,Symbol(t.name)),this.type=t,e.set(t.id,this)}get status(){return HL(this,TD)}};wD=new WeakMap,kD=new WeakMap,SD=new WeakMap,TD=new WeakMap,$D=new WeakMap,_D=new WeakMap;let QD=class{constructor(e,t=3e3){this.create=e=>new CD(e,this),this.id=Symbol(`Timer-${e}`),this.name=e,this.timeout=t}};const PD=(e,t=3e3)=>new QD(e,t);function ED(e){this.content=e}function RD(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),o=t.child(r);if(i!=o){if(!i.sameMarkup(o))return n;if(i.isText&&i.text!=o.text){let e=i.text,t=o.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r<e.length&&r<t.length&&LD(e.charCodeAt(r-1))&&ID(e.charCodeAt(r))&&n--,n}if(i.content.size||o.content.size){let e=RD(i.content,o.content,n+1);if(null!=e)return e}n+=i.nodeSize}else n+=i.nodeSize}}function BD(e,t,n,r){for(let i=e.childCount,o=t.childCount;;){if(0==i||0==o)return i==o?null:{a:n,b:r};let a=e.child(--i),s=t.child(--o),l=a.nodeSize;if(a!=s){if(!a.sameMarkup(s))return{a:n,b:r};if(a.isText&&a.text!=s.text){let e=a.text,t=s.text,i=e.length,o=t.length;for(;i>0&&o>0&&e[i-1]==t[o-1];)i--,o--,n--,r--;return i&&o&&i<e.length&&LD(e.charCodeAt(i-1))&&ID(e.charCodeAt(i))&&(n++,r++),{a:n,b:r}}if(a.content.size||s.content.size){let e=BD(a.content,s.content,n-1,r-1);if(e)return e}n-=l,r-=l}else n-=l,r-=l}}function ID(e){return e>=56320&&e<57344}function LD(e){return e>=55296&&e<56320}ED.prototype={constructor:ED,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return-1==t?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),o=r.content.slice();return-1==i?o.push(n||e,t):(o[i+1]=t,n&&(o[i]=n)),new ED(o)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new ED(n)},addToStart:function(e,t){return new ED([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new ED(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),o=r.find(e);return i.splice(-1==o?i.length:o,0,t,n),new ED(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=ED.from(e)).size?new ED(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=ED.from(e)).size?new ED(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=ED.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},ED.from=function(e){if(e instanceof ED)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new ED(t)};let DD=class e{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let n=0;n<e.length;n++)this.size+=e[n].nodeSize}nodesBetween(e,t,n,r=0,i){for(let o=0,a=0;a<t;o++){let s=this.content[o],l=a+s.nodeSize;if(l>e&&!1!==n(s,r+a,i||null,o)&&s.content.size){let i=a+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}a=l}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i="",o=!0;return this.nodesBetween(e,t,(a,s)=>{let l=a.isText?a.text.slice(Math.max(e,s)-s,t-s):a.isLeaf?r?"function"==typeof r?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&l||a.isTextblock)&&n&&(o?o=!1:i+=n),i+=l},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),o=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),o=1);o<t.content.length;o++)i.push(t.content[o]);return new e(i,this.size+t.size)}cut(t,n=this.size){if(0==t&&n==this.size)return this;let r=[],i=0;if(n>t)for(let e=0,o=0;o<n;e++){let a=this.content[e],s=o+a.nodeSize;s>t&&((o<t||s>n)&&(a=a.isText?a.cut(Math.max(0,t-o),Math.min(a.text.length,n-o)):a.cut(Math.max(0,t-o-1),Math.min(a.content.size,n-o-1))),r.push(a),i+=a.nodeSize),o=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:0==t&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),o=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,o)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return RD(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return BD(this,e,t,n)}findIndex(e){if(0==e)return ND(0,e);if(e==this.size)return ND(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=n+this.child(t).nodeSize;if(r>=e)return r==e?ND(t+1,r):ND(t,n);n=r}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return e.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;e<t.length;e++){let i=t[e];r+=i.nodeSize,e&&i.isText&&t[e-1].sameMarkup(i)?(n||(n=t.slice(0,e)),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw new RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}};DD.empty=new DD([],0);const MD={index:0,offset:0};function ND(e,t){return MD.index=e,MD.offset=t,MD}function XD(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!XD(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!XD(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}let FD=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,r));else{if(i.type.excludes(this.type))return e;!n&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(i)}}return t||(t=e.slice()),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&XD(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let n=e.marks[t.type];if(!n)throw new RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&0==t.length)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};FD.none=[];class UD extends Error{}class zD{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let n=VD(this.content,e+this.openStart,t,this.openStart+1,this.openEnd+1);return n&&new zD(n,this.openStart,this.openEnd)}removeBetween(e,t){return new zD(qD(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return zD.empty;let n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new zD(DD.fromJSON(e,t.content),n,r)}static maxOpen(e,t=!0){let n=0,r=0;for(let i=e.firstChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.firstChild)n++;for(let i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)r++;return new zD(e,n,r)}}function qD(e,t,n){let{index:r,offset:i}=e.findIndex(t),o=e.maybeChild(r),{index:a,offset:s}=e.findIndex(n);if(i==t||o.isText){if(s!=n&&!e.child(a).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=a)throw new RangeError("Removing non-flat range");return e.replaceChild(r,o.copy(qD(o.content,t-i-1,n-i-1)))}function VD(e,t,n,r,i,o){let{index:a,offset:s}=e.findIndex(t),l=e.maybeChild(a);if(s==t||l.isText)return o&&r<=0&&i<=0&&!o.canReplace(a,a,n)?null:e.cut(0,t).append(n).append(e.cut(t));let c=VD(l.content,t-s-1,n,0==a?r-1:0,a==e.childCount-1?i-1:0,l);return c&&e.replaceChild(a,l.copy(c))}function WD(e,t,n){if(n.openStart>e.depth)throw new UD("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new UD("Inconsistent open depths");return jD(e,t,n,0)}function jD(e,t,n,r){let i=e.index(r),o=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let a=jD(e,t,n,r+1);return o.copy(o.content.replaceChild(i,a))}if(n.content.size){if(n.openStart||n.openEnd||e.depth!=r||t.depth!=r){let{start:i,end:a}=function(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let i=n-1;i>=0;i--)r=t.node(i).copy(DD.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}(n,e);return KD(o,JD(e,i,a,t,r))}{let r=e.parent,i=r.content;return KD(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}}return KD(o,eM(e,t,r))}function YD(e,t){if(!t.type.compatibleContent(e.type))throw new UD("Cannot join "+t.type.name+" onto "+e.type.name)}function ZD(e,t,n){let r=e.node(n);return YD(r,t.node(n)),r}function GD(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function HD(e,t,n,r){let i=(t||e).node(n),o=0,a=t?t.index(n):i.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(GD(e.nodeAfter,r),o++));for(let s=o;s<a;s++)GD(i.child(s),r);t&&t.depth==n&&t.textOffset&&GD(t.nodeBefore,r)}function KD(e,t){if(!e.type.validContent(t))throw new UD("Invalid content for node "+e.type.name);return e.copy(t)}function JD(e,t,n,r,i){let o=e.depth>i&&ZD(e,t,i+1),a=r.depth>i&&ZD(n,r,i+1),s=[];return HD(null,e,i,s),o&&a&&t.index(i)==n.index(i)?(YD(o,a),GD(KD(o,JD(e,t,n,r,i+1)),s)):(o&&GD(KD(o,eM(e,t,i+1)),s),HD(t,n,i,s),a&&GD(KD(a,eM(n,r,i+1)),s)),HD(r,null,i,s),new DD(s)}function eM(e,t,n){let r=[];if(HD(null,e,n,r),e.depth>n){GD(KD(ZD(e,t,n+1),eM(e,t,n+1)),r)}return HD(t,null,n,r),new DD(r)}zD.empty=new zD(DD.empty,0,0);class tM{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1;for(let i=0;i<e;i++)r+=n.child(i).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return FD.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var o=0;o<i.length;o++)!1!==i[o].type.spec.inclusive||r&&i[o].isInSet(r.marks)||(i=i[o--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)!1!==n[i].type.spec.inclusive||r&&n[i].isInSet(r.marks)||(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new oM(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let n=[],r=0,i=t;for(let o=e;;){let{index:e,offset:t}=o.content.findIndex(i),a=i-t;if(n.push(o,e,r+t),!a)break;if(o=o.child(e),o.isText)break;i=a-1,r+=t+1}return new tM(t,n,i)}static resolveCached(e,t){let n=iM.get(e);if(n)for(let i=0;i<n.elts.length;i++){let e=n.elts[i];if(e.pos==t)return e}else iM.set(e,n=new nM);let r=n.elts[n.i]=tM.resolve(e,t);return n.i=(n.i+1)%rM,r}}class nM{constructor(){this.elts=[],this.i=0}}const rM=12,iM=new WeakMap;class oM{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const aM=Object.create(null);let sM=class e{constructor(e,t,n,r=FD.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||DD.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&XD(this.attrs,t||e.defaultAttrs||aM)&&FD.sameSet(this.marks,n||FD.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return zD.empty;let r=this.resolve(e),i=this.resolve(t),o=n?0:r.sharedDepth(t),a=r.start(o),s=r.node(o).content.cut(r.pos-a,i.pos-a);return new zD(s,r.depth-o,i.depth-o)}replace(e,t,n){return WD(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return tM.resolveCached(this,e)}resolveNoCache(e){return tM.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),cM(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,n=DD.empty,r=0,i=n.childCount){let o=this.contentMatchAt(e).matchFragment(n,r,i),a=o&&o.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(let s=r;s<i;s++)if(!this.type.allowsMarks(n.child(s).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),o=i&&i.matchFragment(this.content,t);return!!o&&o.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=FD.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!FD.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let n;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,n)}let r=DD.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};sM.prototype.text=void 0;let lM=class e extends sM{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):cM(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function cM(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class uM{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let n=new hM(e,t);if(null==n.next)return uM.empty;let r=dM(n);n.next&&n.err("Unexpected trailing text");let i=function(e){let t=Object.create(null);return n(AM(e,0));function n(r){let i=[];r.forEach(t=>{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<i.length;e++)i[e][0]==t&&(r=i[e][1]);AM(e,n).forEach(e=>{r||i.push([t,r=[]]),-1==r.indexOf(e)&&r.push(e)})})});let o=t[r.join(",")]=new uM(r.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort(OM);o.next.push({type:i[e][0],next:t[r.join(",")]||n(r)})}return o}}(function(e){let t=[[]];return i(o(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function o(e,t){if("choice"==e.type)return e.exprs.reduce((e,n)=>e.concat(o(n,t)),[]);if("seq"!=e.type){if("star"==e.type){let a=n();return r(t,a),i(o(e.expr,a),a),[r(a)]}if("plus"==e.type){let a=n();return i(o(e.expr,t),a),i(o(e.expr,a),a),[r(a)]}if("opt"==e.type)return[r(t)].concat(o(e.expr,t));if("range"==e.type){let a=t;for(let t=0;t<e.min;t++){let t=n();i(o(e.expr,a),t),a=t}if(-1==e.max)i(o(e.expr,a),a);else for(let t=e.min;t<e.max;t++){let t=n();r(a,t),i(o(e.expr,a),t),a=t}return[r(a)]}if("name"==e.type)return[r(t,void 0,e.value)];throw new Error("Unknown expr type")}for(let r=0;;r++){let a=o(e.exprs[r],t);if(r==e.exprs.length-1)return a;i(a,t=n())}}}(r));return function(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],i=!e.validEnd,o=[];for(let t=0;t<e.next.length;t++){let{type:n,next:a}=e.next[t];o.push(n.name),!i||n.isText||n.hasRequiredAttrs()||(i=!1),-1==r.indexOf(a)&&r.push(a)}i&&t.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(i,n),i}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!t.isText&&!t.hasRequiredAttrs())return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];return function i(o,a){let s=o.matchFragment(e,n);if(s&&(!t||s.validEnd))return DD.from(a.map(e=>e.createAndFill()));for(let e=0;e<o.next.length;e++){let{type:t,next:n}=o.next[e];if(!t.isText&&!t.hasRequiredAttrs()&&-1==r.indexOf(n)){r.push(n);let e=i(n,a.concat(t));if(e)return e}}return null}(this,[])}findWrapping(e){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==e)return this.wrapCache[n+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:o,next:a}=i.next[e];o.isLeaf||o.hasRequiredAttrs()||o.name in t||r.type&&!a.validEnd||(n.push({match:o.contentMatch,type:o,via:r}),t[o.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];return function t(n){e.push(n);for(let r=0;r<n.next.length;r++)-1==e.indexOf(n.next[r].next)&&t(n.next[r].next)}(this),e.map((t,n)=>{let r=n+(t.validEnd?"*":" ")+" ";for(let i=0;i<t.next.length;i++)r+=(i?", ":"")+t.next[i].type.name+"->"+e.indexOf(t.next[i].next);return r}).join("\n")}}uM.empty=new uM(!0);class hM{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function dM(e){let t=[];do{t.push(pM(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function pM(e){let t=[];do{t.push(fM(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function fM(e){let t=function(e){if(e.eat("(")){let t=dM(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){let t=function(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let o in n){let e=n[o];e.isInGroup(t)&&i.push(e)}0==i.length&&e.err("No node type or group '"+t+"' found");return i}(e,e.next).map(t=>(null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}));return e.pos++,1==t.length?t[0]:{type:"choice",exprs:t}}e.err("Unexpected token '"+e.next+"'")}(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=mM(e,t)}return t}function gM(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function mM(e,t){let n=gM(e),r=n;return e.eat(",")&&(r="}"!=e.next?gM(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function OM(e,t){return t-e}function AM(e,t){let n=[];return function t(r){let i=e[r];if(1==i.length&&!i[0].term)return t(i[0].to);n.push(r);for(let e=0;e<i.length;e++){let{term:r,to:o}=i[e];r||-1!=n.indexOf(o)||t(o)}}(t),n.sort(OM)}function yM(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function vM(e,t){let n=Object.create(null);for(let r in e){let i=t&&t[r];if(void 0===i){let t=e[r];if(!t.hasDefault)throw new RangeError("No value supplied for attribute "+r);i=t.default}n[r]=i}return n}function bM(e,t,n,r){for(let i in t)if(!(i in e))throw new RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let i in e)e[i].validate&&e[i].validate(t[i])}function xM(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new kM(e,r,t[r]);return n}let wM=class e{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=xM(e,n.attrs),this.defaultAttrs=yM(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==uM.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:vM(this.attrs,e)}create(e=null,t,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new sM(this,this.computeAttrs(e),DD.from(t),FD.setFrom(n))}createChecked(e=null,t,n){return t=DD.from(t),this.checkContent(t),new sM(this,this.computeAttrs(e),t,FD.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),(t=DD.from(t)).size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),i=r&&r.fillBefore(DD.empty,!0);return i?new sM(this,e,t.append(i),FD.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){bM(this.attrs,e,"node",this.name)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(null==this.markSet)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:FD.none:e}static compile(t,n){let r=Object.create(null);t.forEach((t,i)=>r[t]=new e(t,n,i));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let e in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};let kM=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,"default"),this.default=n.default,this.validate="string"==typeof n.validate?function(e,t,n){let r=n.split("|");return n=>{let i=null===n?"null":typeof n;if(r.indexOf(i)<0)throw new RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}}(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}};class SM{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=xM(e,r.attrs),this.excluded=null;let i=yM(this.attrs);this.instance=i?new FD(this,i):null}create(e=null){return!e&&this.instance?this.instance:new FD(this,vM(this.attrs,e))}static compile(e,t){let n=Object.create(null),r=0;return e.forEach((e,i)=>n[e]=new SM(e,r++,t,i)),n}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){bM(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}let TM=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let r in e)t[r]=e[r];t.nodes=ED.from(e.nodes),t.marks=ED.from(e.marks||{}),this.nodes=wM.compile(this.spec.nodes,this),this.marks=SM.compile(this.spec.marks,this);let n=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let e=this.nodes[r],t=e.spec.content||"",i=e.spec.marks;if(e.contentMatch=n[t]||(n[t]=uM.parse(t,this.nodes)),e.inlineContent=e.contentMatch.inlineContent,e.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!e.isInline||!e.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=e}e.markSet="_"==i?null:i?$M(this,i.split(" ")):""!=i&&e.inlineContent?null:[]}for(let r in this.marks){let e=this.marks[r],t=e.spec.excludes;e.excluded=null==t?[e]:""==t?[]:$M(this,t.split(" "))}this.nodeFromJSON=e=>sM.fromJSON(this,e),this.markFromJSON=e=>FD.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof wM))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new lM(n,n.defaultAttrs,e,FD.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}};function $M(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],o=e.marks[i],a=o;if(o)n.push(o);else for(let t in e.marks){let r=e.marks[t];("_"==i||r.spec.group&&r.spec.group.split(" ").indexOf(i)>-1)&&n.push(a=r)}if(!a)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}let _M=class e{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(function(e){return null!=e.tag}(e))this.tags.push(e);else if(function(e){return null!=e.style}(e)){let t=/[^=]*/.exec(e.style)[0];n.indexOf(t)<0&&n.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new BM(this,t,!1);return n.addAll(e,FD.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new BM(this,t,!0);return n.addAll(e,FD.none,t.from,t.to),zD.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let n=this.tags[r];if(IM(e,n.tag)&&(void 0===n.namespace||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(!1===t)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let r=this.styles[i],o=r.style;if(!(0!=o.indexOf(e)||r.context&&!n.matchesContext(r.context)||o.length>e.length&&(61!=o.charCodeAt(e.length)||o.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(!1===e)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=null==e.priority?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((null==e.priority?50:e.priority)<n)break}t.splice(r,0,e)}for(let r in e.marks){let t=e.marks[r].spec.parseDOM;t&&t.forEach(e=>{n(e=LM(e)),e.mark||e.ignore||e.clearMark||(e.mark=r)})}for(let r in e.nodes){let t=e.nodes[r].spec.parseDOM;t&&t.forEach(e=>{n(e=LM(e)),e.node||e.ignore||e.mark||(e.node=r)})}return t}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new e(t,e.schemaRules(t)))}};const CM={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},QM={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},PM={ol:!0,ul:!0};function EM(e,t,n){return null!=t?(t?1:0)|("full"===t?2:0):e&&"pre"==e.whitespace?3:-5&n}class RM{constructor(e,t,n,r,i,o){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=o,this.content=[],this.activeMarks=FD.none,this.match=i||(4&o?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(DD.from(e));if(!t){let t,n=this.type.contentMatch;return(t=n.findWrapping(e.type))?(this.match=n,t):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let e,t=this.content[this.content.length-1];if(t&&t.isText&&(e=/[ \t\r\n\u000c]+$/.exec(t.text))){let n=t;t.text.length==e[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-e[0].length))}}let t=DD.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(DD.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!CM.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}let BM=class{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r,i=t.topNode,o=EM(null,t.preserveWhitespace,0)|(n?4:0);r=i?new RM(i.type,i.attrs,FD.none,!0,t.topMatch||i.type.contentMatch,o):new RM(n?null:e.schema.topNodeType,null,FD.none,!0,null,o),this.nodes=[r],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){3==e.nodeType?this.addTextNode(e,t):1==e.nodeType&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,i=2&r.options?"full":this.localPreserveWS||(1&r.options)>0,{schema:o}=this.parser;if("full"===i||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(i)if("full"===i)n=n.replace(/\r\n?/g,"\n");else if(o.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(o.linebreakReplacement.create())){let e=n.split(/\r?\n|\r/);for(let n=0;n<e.length;n++)n&&this.insertNode(o.linebreakReplacement.create(),t,!0),e[n]&&this.insertNode(o.text(e[n]),t,!/\S/.test(e[n]));n=""}else n=n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],i=e.previousSibling;(!t||i&&"BR"==i.nodeName||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}n&&this.insertNode(o.text(n),t,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,t,n){let r=this.localPreserveWS,i=this.top;("PRE"==e.tagName||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let o,a=e.nodeName.toLowerCase();PM.hasOwnProperty(a)&&this.parser.normalizeLists&&function(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&PM.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):"li"==e?n=t:e&&(n=null)}}(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));e:if(s?s.ignore:QM.hasOwnProperty(a))this.findInside(e),this.ignoreFallback(e,t);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let n,r=this.needsBlock;if(CM.hasOwnProperty(a))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),n=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break e}let o=s&&s.skip?t:this.readStyles(e,t);o&&this.addAll(e,o),n&&this.sync(i),this.needsBlock=r}else{let n=this.readStyles(e,t);n&&this.addElementByRule(e,s,n,!1===s.consuming?o:void 0)}this.localPreserveWS=r}leafFallback(e,t){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"),t)}ignoreFallback(e,t){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let n=e.style;if(n&&n.length)for(let r=0;r<this.parser.matchedStyles.length;r++){let e=this.parser.matchedStyles[r],i=n.getPropertyValue(e);if(i)for(let n;;){let r=this.parser.matchStyle(e,i,this,n);if(!r)break;if(r.ignore)return null;if(t=r.clearMark?t.filter(e=>!r.clearMark(e)):t.concat(this.parser.schema.marks[r.mark].create(r.attrs)),!1!==r.consuming)break;n=r}}return t}addElementByRule(e,t,n,r){let i,o;if(t.node)if(o=this.parser.schema.nodes[t.node],o.isLeaf)this.insertNode(o.create(t.attrs),n,"BR"==e.nodeName)||this.leafFallback(e,n);else{let e=this.enter(o,t.attrs||null,n,t.preserveWhitespace);e&&(i=!0,n=e)}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let a=this.top;if(o&&o.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,n,!1));else{let r=e;"string"==typeof t.contentElement?r=e.querySelector(t.contentElement):"function"==typeof t.contentElement?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}i&&this.sync(a)&&this.open--}addAll(e,t,n,r){let i=n||0;for(let o=n?e.childNodes[n]:e.firstChild,a=null==r?null:e.childNodes[r];o!=a;o=o.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(o,t);this.findAtPoint(e,i)}findPlace(e,t,n){let r,i;for(let o=this.open,a=0;o>=0;o--){let t=this.nodes[o],s=t.findWrapping(e);if(s&&(!r||r.length>s.length+a)&&(r=s,i=t,!s.length))break;if(t.solid){if(n)break;a+=2}}if(!r)return null;this.sync(i);for(let o=0;o<r.length;o++)t=this.enterInner(r[o],null,t,!1);return t}insertNode(e,t,n){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let r=this.findPlace(e,t,n);if(r){this.closeExtra();let t=this.top;t.match&&(t.match=t.match.matchType(e.type));let n=FD.none;for(let i of r.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):DM(i.type,e.type))&&(n=i.addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n,r){let i=this.findPlace(e.create(t),n,!1);return i&&(i=this.enterInner(e,t,n,!0,r)),i}enterInner(e,t,n,r=!1,i){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(e);let a=EM(e,i,o.options);4&o.options&&0==o.content.length&&(a|=4);let s=FD.none;return n=n.filter(t=>!(o.type?o.type.allowsMarkType(t.type):DM(t.type,e))||(s=t.addToSet(s),!1)),this.nodes.push(new RM(e,t,s,r,null,a)),this.open++,n}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!(!this.isOpen&&!this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--){if(this.nodes[t]==e)return this.open=t,!0;this.localPreserveWS&&(this.nodes[t].options|=1)}return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)if(null==this.find[r].pos&&1==e.nodeType&&e.contains(this.find[r].node)){t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),n=this.options.context,r=!(this.isOpen||n&&n.parent.type!=this.nodes[0].type),i=-(n?n.depth+1:0)+(r?0:1),o=(e,a)=>{for(;e>=0;e--){let s=t[e];if(""==s){if(e==t.length-1||0==e)continue;for(;a>=i;a--)if(o(e-1,a))return!0;return!1}{let e=a>0||0==a&&r?this.nodes[a].type:n&&a>=i?n.node(a-i).type:null;if(!e||e.name!=s&&!e.isInGroup(s))return!1;a--}}return!0};return o(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let t in this.parser.schema.nodes){let e=this.parser.schema.nodes[t];if(e.isTextblock&&e.defaultAttrs)return e}}};function IM(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function LM(e){let t={};for(let n in e)t[n]=e[n];return t}function DM(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let o=[],a=e=>{o.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:i}=e.edge(n);if(r==t)return!0;if(o.indexOf(i)<0&&a(i))return!0}};if(a(i.contentMatch))return!0}}class MM{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||(n=XM(t).createDocumentFragment());let r=n,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let n=0,o=0;for(;n<i.length&&o<e.marks.length;){let t=e.marks[o];if(this.marks[t.type.name]){if(!t.eq(i[n][0])||!1===t.type.spec.spanning)break;n++,o++}else o++}for(;n<i.length;)r=i.pop()[1];for(;o<e.marks.length;){let n=e.marks[o++],a=this.serializeMark(n,e.isInline,t);a&&(i.push([n,r]),r.appendChild(a.dom),r=a.contentDOM||a.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,t){if(e.isText)return XM(t).createTextNode(e.text);let{dom:n,contentDOM:r}=zM(XM(t),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&zM(XM(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return"string"==typeof t?{dom:e.createTextNode(t)}:zM(e,t,n,r)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new MM(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=NM(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return NM(e.marks)}}function NM(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function XM(e){return e.document||window.document}const FM=new WeakMap;function UM(e){let t=FM.get(e);return void 0===t&&FM.set(e,t=function(e){let t=null;function n(e){if(e&&"object"==typeof e)if(Array.isArray(e))if("string"==typeof e[0])t||(t=[]),t.push(e);else for(let t=0;t<e.length;t++)n(e[t]);else for(let t in e)n(e[t])}return n(e),t}(e)),t}function zM(e,t,n,r){if(1==t.nodeType)return{dom:t};if(t.dom&&1==t.dom.nodeType)return t;let i,o=t[0];if("string"!=typeof o)throw new RangeError("Invalid array passed to renderSpec");if(r&&(i=UM(r))&&i.indexOf(t)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let a,s=o.indexOf(" ");s>0&&(n=o.slice(0,s),o=o.slice(s+1));let l=n?e.createElementNS(n,o):e.createElement(o),c=t[1],u=1;if(c&&"object"==typeof c&&null==c.nodeType&&!Array.isArray(c)){u=2;for(let e in c)if(null!=c[e]){let t=e.indexOf(" ");t>0?l.setAttributeNS(e.slice(0,t),e.slice(t+1),c[e]):"style"==e&&l.style?l.style.cssText=c[e]:l.setAttribute(e,c[e])}}for(let h=u;h<t.length;h++){let i=t[h];if(0===i){if(h<t.length-1||h>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}if("string"==typeof i)l.appendChild(e.createTextNode(i));else{let{dom:t,contentDOM:o}=zM(e,i,n,r);if(l.appendChild(t),o){if(a)throw new RangeError("Multiple content holes");a=o}}}return{dom:l,contentDOM:a}}const qM={};function VM(e,t){return WM(e,"boolean"!=typeof qM.includeImageAlt||qM.includeImageAlt,"boolean"!=typeof qM.includeHtml||qM.includeHtml)}function WM(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return jM(e.children,t,n)}return Array.isArray(e)?jM(e,t,n):""}function jM(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=WM(e[i],t,n);return r.join("")}const YM=document.createElement("i");function ZM(e){const t="&"+e+";";YM.innerHTML=t;const n=YM.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}function GM(e,t,n,r){const i=e.length;let o,a=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function HM(e,t){return e.length>0?(GM(e,e.length,0,t),e):t}const KM={}.hasOwnProperty;function JM(e){const t={};let n=-1;for(;++n<e.length;)eN(t,e[n]);return t}function eN(e,t){let n;for(n in t){const r=(KM.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){KM.call(r,o)||(r[o]=[]);const e=i[o];tN(r[o],Array.isArray(e)?e:e?[e]:[])}}}function tN(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);GM(e,0,0,r)}function nN(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function rN(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const iN=mN(/[A-Za-z]/),oN=mN(/[\dA-Za-z]/),aN=mN(/[#-'*+\--9=?A-Z^-~]/);function sN(e){return null!==e&&(e<32||127===e)}const lN=mN(/\d/),cN=mN(/[\dA-Fa-f]/),uN=mN(/[!-/:-@[-`{-~]/);function hN(e){return null!==e&&e<-2}function dN(e){return null!==e&&(e<0||32===e)}function pN(e){return-2===e||-1===e||32===e}const fN=mN(new RegExp("\\p{P}|\\p{S}","u")),gN=mN(/\s/);function mN(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function ON(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(pN(r))return e.enter(n),a(r);return t(r)};function a(r){return pN(r)&&o++<i?(e.consume(r),a):(e.exit(n),t(r))}}const AN={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ON(e,t,"linePrefix")},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):hN(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),i)}}};const yN={tokenize:function(e){const t=this,n=[];let r,i,o,a=0;return s;function s(r){if(a<n.length){const i=n[a];return t.containerState=i[1],e.attempt(i[0].continuation,l,c)(r)}return c(r)}function l(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&A();const n=t.events.length;let i,o=n;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){i=t.events[o][1].end;break}O(a);let s=n;for(;s<t.events.length;)t.events[s][1].end={...i},s++;return GM(t.events,o+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(i){if(a===n.length){if(!r)return d(i);if(r.currentConstruct&&r.currentConstruct.concrete)return f(i);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(vN,u,h)(i)}function u(e){return r&&A(),O(a),d(e)}function h(e){return t.parser.lazy[t.now().line]=a!==n.length,o=t.now().offset,f(e)}function d(n){return t.containerState={},e.attempt(vN,p,f)(n)}function p(e){return a++,n.push([t.currentConstruct,t.containerState]),d(e)}function f(n){return null===n?(r&&A(),O(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:i}),g(n))}function g(n){return null===n?(m(e.exit("chunkFlow"),!0),O(0),void e.consume(n)):hN(n)?(e.consume(n),m(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(n),g)}function m(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=i,i&&(i.next=e),i=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o))return;const n=t.events.length;let i,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(i){s=t.events[l][1].end;break}i=!0}for(O(a),e=n;e<t.events.length;)t.events[e][1].end={...s},e++;GM(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function O(r){let i=n.length;for(;i-- >r;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function A(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},vN={tokenize:function(e,t,n){return ON(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function bN(e){return null===e||dN(e)||gN(e)?1:fN(e)?2:void 0}function xN(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const wN={name:"attention",resolveAll:function(e,t){let n,r,i,o,a,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const h={...e[n][1].end},d={...e[u][1].start};kN(h,-s),kN(d,s),o={type:s>1?"strongSequence":"emphasisSequence",start:h,end:{...e[n][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:d},i={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[n][1].end={...o.start},e[u][1].start={...a.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=HM(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=HM(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=HM(l,xN(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=HM(l,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=HM(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,GM(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=bN(r);let o;return function(t){return o=t,e.enter("attentionSequence"),a(t)};function a(s){if(s===o)return e.consume(s),a;const l=e.exit("attentionSequence"),c=bN(s),u=!c||2===c&&i||n.includes(s),h=!i||2===i&&c||n.includes(r);return l._open=Boolean(42===o?u:u&&(i||!h)),l._close=Boolean(42===o?h:h&&(c||!u)),t(s)}}};function kN(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const SN={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return iN(t)?(e.consume(t),o):64===t?n(t):l(t)}function o(e){return 43===e||45===e||46===e||oN(e)?(r=1,a(e)):l(e)}function a(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||oN(t))&&r++<32?(e.consume(t),a):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||sN(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):aN(t)?(e.consume(t),l):n(t)}function c(e){return oN(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):h(n)}function h(t){if((45===t||oN(t))&&r++<63){const n=45===t?h:u;return e.consume(t),n}return n(t)}}};const TN={partial:!0,tokenize:function(e,t,n){return function(t){return pN(t)?ON(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||hN(e)?t(e):n(e)}}};const $N={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(pN(t))return ON(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return i(t)};function i(r){return e.attempt($N,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return pN(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const _N={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return uN(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const CN={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,o=oN,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=cN,c):(e.enter("characterReferenceValue"),i=7,o=lN,c(t))}function c(s){if(59===s&&a){const i=e.exit("characterReferenceValue");return o!==oN||ZM(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return o(s)&&a++<i?(e.consume(s),c):n(s)}}};const QN={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},PN={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,i={partial:!0,tokenize:function(e,t,n){let i=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),pN(t)?ON(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===o?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===o?(i++,e.consume(t),u):i>=s?(e.exit("codeFencedFenceSequence"),pN(t)?ON(e,h,"whitespace")(t):h(t)):n(t)}function h(r){return null===r||hN(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let o,a=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===o?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),pN(t)?ON(e,c,"whitespace")(t):c(t))}function c(n){return null===n||hN(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(QN,p,A)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||hN(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):pN(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ON(e,h,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),u)}function h(t){return null===t||hN(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||hN(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===o?n(t):(e.consume(t),d)}function p(t){return e.attempt(i,A,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),g}function g(t){return a>0&&pN(t)?ON(e,m,"linePrefix",a+1)(t):m(t)}function m(t){return null===t||hN(t)?e.check(QN,p,A)(t):(e.enter("codeFlowValue"),O(t))}function O(t){return null===t||hN(t)?(e.exit("codeFlowValue"),m(t)):(e.consume(t),O)}function A(n){return e.exit("codeFenced"),t(n)}}};const EN={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),ON(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?s(t):hN(t)?e.attempt(RN,o,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||hN(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},RN={partial:!0,tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):hN(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):ON(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):hN(e)?i(e):n(e)}}};const BN={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}t=i-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),o++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(i=e.enter("codeTextSequence"),r=0,c(t)):hN(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||hN(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",l(n))}}};class IN{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&LN(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),LN(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),LN(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);LN(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);LN(this.left,t.reverse())}}}function LN(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function DN(e){const t={};let n,r,i,o,a,s,l,c=-1;const u=new IN(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=n[1]._tokenizer.events,i=0,i<s.length&&"lineEndingBlank"===s[i][1].type&&(i+=2),i<s.length&&"content"===s[i][1].type))for(;++i<s.length&&"content"!==s[i][1].type;)"chunkText"===s[i][1].type&&(s[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,MN(u,c)),c=t[c],l=!0);else if(n[1]._container){for(i=c,r=void 0;i--;)if(o=u.get(i),"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type)"enter"===o[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);else if("linePrefix"!==o[1].type&&"listItemIndent"!==o[1].type)break;r&&(n[1].end={...u.get(r)[1].start},a=u.slice(r,c),a.unshift(n),u.splice(r,c-r+1,a))}}return GM(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function MN(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const s=a.events,l=[],c={};let u,h,d=-1,p=n,f=0,g=0;const m=[g];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),h&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),h=p,p=p.next}for(p=n;++d<s.length;)"exit"===s[d][0]&&"enter"===s[d-1][0]&&s[d][1].type===s[d-1][1].type&&s[d][1].start.line!==s[d][1].end.line&&(g=d+1,m.push(g),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):m.pop(),d=m.length;d--;){const t=s.slice(m[d],m[d+1]),n=o.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),d=-1;++d<l.length;)c[f+l[d][0]]=f+l[d][1],f+=l[d][1]-l[d][0]-1;return c}const NN={resolve:function(e){return DN(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):hN(t)?e.check(XN,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},XN={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ON(e,i,"linePrefix")};function i(i){if(null===i||hN(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}};function FN(e,t,n,r,i,o,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),h;if(null===t||32===t||41===t||sN(t))return n(t);return e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),f(t)};function h(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(s),h(t)):null===t||60===t||hN(t)?n(t):(e.consume(t),92===t?p:d)}function p(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function f(i){return u||null!==i&&41!==i&&!dN(i)?u<c&&40===i?(e.consume(i),u++,f):41===i?(e.consume(i),u--,f):null===i||32===i||40===i||sN(i)?n(i):(e.consume(i),92===i?g:f):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(i))}function g(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function UN(e,t,n,r,i,o){const a=this;let s,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),c};function c(h){return l>999||null===h||91===h||93===h&&!s||94===h&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(h):93===h?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):hN(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(t){return null===t||91===t||93===t||hN(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!pN(t)),92===t?h:u)}function h(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function zN(e,t,n,r,i,o){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,s;return n(t)};function s(n){return n===a?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===a?(e.exit(o),s(a)):null===t?n(t):hN(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ON(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||hN(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function qN(e,t){let n;return function r(i){if(hN(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r;if(pN(i))return ON(e,r,n?"linePrefix":"lineSuffix")(i);return t(i)}}const VN={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return UN.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=rN(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return dN(t)?qN(e,s)(t):s(t)}function s(t){return FN(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(WN,c,c)(t)}function c(t){return pN(t)?ON(e,u,"whitespace")(t):u(t)}function u(o){return null===o||hN(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},WN={partial:!0,tokenize:function(e,t,n){return function(t){return dN(t)?qN(e,r)(t):n(t)};function r(t){return zN(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return pN(t)?ON(e,o,"whitespace")(t):o(t)}function o(e){return null===e||hN(e)?t(e):n(e)}}};const jN={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return hN(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const YN={name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);i-2>o&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},GM(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||dN(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||hN(n)?(e.exit("atxHeading"),t(n)):pN(n)?ON(e,o,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),o(t))}function s(t){return null===t||35===t||dN(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),s)}}};const ZN=["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"],GN=["pre","script","style","textarea"],HN={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let i,o,a,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),o=!0,p):63===s?(e.consume(s),i=3,r.interrupt?t:B):iN(s)?(e.consume(s),a=String.fromCharCode(s),f):n(s)}function u(o){return 45===o?(e.consume(o),i=2,h):91===o?(e.consume(o),i=5,s=0,d):iN(o)?(e.consume(o),i=4,r.interrupt?t:B):n(o)}function h(i){return 45===i?(e.consume(i),r.interrupt?t:B):n(i)}function d(i){const o="CDATA[";return i===o.charCodeAt(s++)?(e.consume(i),6===s?r.interrupt?t:T:d):n(i)}function p(t){return iN(t)?(e.consume(t),a=String.fromCharCode(t),f):n(t)}function f(s){if(null===s||47===s||62===s||dN(s)){const l=47===s,c=a.toLowerCase();return l||o||!GN.includes(c)?ZN.includes(a.toLowerCase())?(i=6,l?(e.consume(s),g):r.interrupt?t(s):T(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):o?m(s):O(s)):(i=1,r.interrupt?t(s):T(s))}return 45===s||oN(s)?(e.consume(s),a+=String.fromCharCode(s),f):n(s)}function g(i){return 62===i?(e.consume(i),r.interrupt?t:T):n(i)}function m(t){return pN(t)?(e.consume(t),m):k(t)}function O(t){return 47===t?(e.consume(t),k):58===t||95===t||iN(t)?(e.consume(t),A):pN(t)?(e.consume(t),O):k(t)}function A(t){return 45===t||46===t||58===t||95===t||oN(t)?(e.consume(t),A):y(t)}function y(t){return 61===t?(e.consume(t),v):pN(t)?(e.consume(t),y):O(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,b):pN(t)?(e.consume(t),v):x(t)}function b(t){return t===l?(e.consume(t),l=null,w):null===t||hN(t)?n(t):(e.consume(t),b)}function x(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||dN(t)?y(t):(e.consume(t),x)}function w(e){return 47===e||62===e||pN(e)?O(e):n(e)}function k(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||hN(t)?T(t):pN(t)?(e.consume(t),S):n(t)}function T(t){return 45===t&&2===i?(e.consume(t),Q):60===t&&1===i?(e.consume(t),P):62===t&&4===i?(e.consume(t),I):63===t&&3===i?(e.consume(t),B):93===t&&5===i?(e.consume(t),R):!hN(t)||6!==i&&7!==i?null===t||hN(t)?(e.exit("htmlFlowData"),$(t)):(e.consume(t),T):(e.exit("htmlFlowData"),e.check(KN,L,$)(t))}function $(t){return e.check(JN,_,L)(t)}function _(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),C}function C(t){return null===t||hN(t)?$(t):(e.enter("htmlFlowData"),T(t))}function Q(t){return 45===t?(e.consume(t),B):T(t)}function P(t){return 47===t?(e.consume(t),a="",E):T(t)}function E(t){if(62===t){const n=a.toLowerCase();return GN.includes(n)?(e.consume(t),I):T(t)}return iN(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),E):T(t)}function R(t){return 93===t?(e.consume(t),B):T(t)}function B(t){return 62===t?(e.consume(t),I):45===t&&2===i?(e.consume(t),B):T(t)}function I(t){return null===t||hN(t)?(e.exit("htmlFlowData"),L(t)):(e.consume(t),I)}function L(n){return e.exit("htmlFlow"),t(n)}}},KN={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(TN,t,n)}}},JN={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(hN(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i;return n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const eX={name:"htmlText",tokenize:function(e,t,n){const r=this;let i,o,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),v):63===t?(e.consume(t),A):iN(t)?(e.consume(t),w):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),o=0,p):iN(t)?(e.consume(t),O):n(t)}function c(t){return 45===t?(e.consume(t),d):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),h):hN(t)?(a=u,E(t)):(e.consume(t),u)}function h(t){return 45===t?(e.consume(t),d):u(t)}function d(e){return 62===e?P(e):45===e?h(e):u(e)}function p(t){const r="CDATA[";return t===r.charCodeAt(o++)?(e.consume(t),6===o?f:p):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),g):hN(t)?(a=f,E(t)):(e.consume(t),f)}function g(t){return 93===t?(e.consume(t),m):f(t)}function m(t){return 62===t?P(t):93===t?(e.consume(t),m):f(t)}function O(t){return null===t||62===t?P(t):hN(t)?(a=O,E(t)):(e.consume(t),O)}function A(t){return null===t?n(t):63===t?(e.consume(t),y):hN(t)?(a=A,E(t)):(e.consume(t),A)}function y(e){return 62===e?P(e):A(e)}function v(t){return iN(t)?(e.consume(t),b):n(t)}function b(t){return 45===t||oN(t)?(e.consume(t),b):x(t)}function x(t){return hN(t)?(a=x,E(t)):pN(t)?(e.consume(t),x):P(t)}function w(t){return 45===t||oN(t)?(e.consume(t),w):47===t||62===t||dN(t)?k(t):n(t)}function k(t){return 47===t?(e.consume(t),P):58===t||95===t||iN(t)?(e.consume(t),S):hN(t)?(a=k,E(t)):pN(t)?(e.consume(t),k):P(t)}function S(t){return 45===t||46===t||58===t||95===t||oN(t)?(e.consume(t),S):T(t)}function T(t){return 61===t?(e.consume(t),$):hN(t)?(a=T,E(t)):pN(t)?(e.consume(t),T):k(t)}function $(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),i=t,_):hN(t)?(a=$,E(t)):pN(t)?(e.consume(t),$):(e.consume(t),C)}function _(t){return t===i?(e.consume(t),i=void 0,Q):null===t?n(t):hN(t)?(a=_,E(t)):(e.consume(t),_)}function C(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||dN(t)?k(t):(e.consume(t),C)}function Q(e){return 47===e||62===e||dN(e)?k(e):n(e)}function P(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function E(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),R}function R(t){return pN(t)?ON(e,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):B(t)}function B(t){return e.enter("htmlTextData"),a(t)}}};const tX={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&GM(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,i,o,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=a);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[i-2][1].start}};return o=[["enter",l,t],["enter",c,t]],o=HM(o,e.slice(r+1,r+s+3)),o=HM(o,[["enter",u,t]]),o=HM(o,xN(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),o=HM(o,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),o=HM(o,e.slice(i+1)),o=HM(o,[["exit",l,t]]),GM(e,r,e.length,o),e},tokenize:function(e,t,n){const r=this;let i,o,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){i=r.events[a][1];break}return function(t){if(!i)return n(t);if(i._inactive)return u(t);return o=r.parser.defined.includes(rN(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(nX,c,o?c:u)(t):91===t?e.attempt(rX,c,o?l:u)(t):o?c(t):u(t)}function l(t){return e.attempt(iX,c,u)(t)}function c(e){return t(e)}function u(e){return i._balanced=!0,n(e)}}},nX={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return dN(t)?qN(e,i)(t):i(t)}function i(t){return 41===t?c(t):FN(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return dN(t)?qN(e,s)(t):c(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?zN(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return dN(t)?qN(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},rX={tokenize:function(e,t,n){const r=this;return function(t){return UN.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(rN(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},iX={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const oX={name:"labelStartImage",resolveAll:tX.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const aX={name:"labelStartLink",resolveAll:tX.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const sX={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ON(e,t,"linePrefix")}}};const lX={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,o(e)}(t)};function o(o){return o===r?(e.enter("thematicBreakSequence"),a(o)):i>=3&&(null===o||hN(o))?(e.exit("thematicBreak"),t(o)):n(o)}function a(t){return t===r?(e.consume(t),i++,a):(e.exit("thematicBreakSequence"),pN(t)?ON(e,o,"whitespace")(t):o(t))}}};const cX={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(TN,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ON(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){if(r.containerState.furtherBlankLines||!pN(n))return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n);return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(hX,t,i)(n)});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,ON(e,e.attempt(cX,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:lN(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(lX,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return lN(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(TN,r.interrupt?n:c,e.attempt(uX,h,u))}function c(e){return r.containerState.initialBlankLine=!0,o++,h(e)}function u(t){return pN(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),h):n(t)}function h(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},uX={partial:!0,tokenize:function(e,t,n){const r=this;return ON(e,function(e){const i=r.events[r.events.length-1];return!pN(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},hX={partial:!0,tokenize:function(e,t,n){const r=this;return ON(e,function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}};const dX={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",a,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=a;return e.push(["exit",a,t]),e},tokenize:function(e,t,n){const r=this;let i;return function(t){let a,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){a="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t);return n(t)};function o(t){return t===i?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),pN(t)?ON(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||hN(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const pX={tokenize:function(e){const t=this,n=e.attempt(TN,function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,ON(e,e.attempt(this.parser.constructs.flow,r,e.attempt(NN,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const fX={resolveAll:AX()},gX=OX("string"),mX=OX("text");function OX(e){return{resolveAll:AX("text"===e?yX:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,a);return o;function o(e){return l(e)?i(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function AX(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function yX(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],i=t.sliceStream(r);let o,a=i.length,s=-1,l=0;for(;a--;){const e=i[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)o=!0,l++;else if(-1!==e){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const i={type:n===e.length||o||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}const vX={42:cX,43:cX,45:cX,48:cX,49:cX,50:cX,51:cX,52:cX,53:cX,54:cX,55:cX,56:cX,57:cX,62:$N},bX={91:VN},xX={[-2]:EN,[-1]:EN,32:EN},wX={35:YN,42:lX,45:[dX,lX],60:HN,61:dX,95:lX,96:PN,126:PN},kX={38:CN,92:_N},SX={[-5]:sX,[-4]:sX,[-3]:sX,33:oX,38:CN,42:wN,60:[SN,eX],91:aX,92:[jN,_N],93:tX,95:wN,96:BN},TX={null:[wN,fX]},$X=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:bX,disable:{null:[]},document:vX,flow:wX,flowInitial:xX,insideSpan:TX,string:kX,text:SX},Symbol.toStringTag,{value:"Module"}));function _X(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let a=[],s=[];const l={attempt:m(function(e,t){O(e,t.from)}),check:m(g),consume:function(e){hN(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,A()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=d(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=d(),c.events.push(["exit",t,c]),t},interrupt:m(g,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,A()},events:[],now:d,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if("string"==typeof o)a=o;else switch(o){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&i)continue;a=" ";break;default:a=String.fromCharCode(o)}i=-2===o,r.push(a)}return r.join("")}(h(e),t)},sliceStream:h,write:function(e){if(a=HM(a,e),p(),null!==a[a.length-1])return[];return O(t,0),c.events=xN(o,c.events,c),c.events}};let u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function h(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}(a,e)}function d(){const{_bufferIndex:e,_index:t,line:n,column:i,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:o}}function p(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)f(t.charCodeAt(r._bufferIndex));else f(t)}}function f(e){u=u(e)}function g(e,t){t.restore()}function m(e,t){return function(n,i,o){let a,u,h,p;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function f(e){return a=e,u=0,0===e.length?o:g(e[u])}function g(e){return function(n){p=function(){const e=d(),t=c.previous,n=c.currentConstruct,i=c.events.length,o=Array.from(s);return{from:i,restore:a};function a(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,s=o,A()}}(),h=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return O();return e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,m,O)(n)}}function m(t){return e(h,p),i}function O(e){return p.restore(),++u<a.length?g(a[u]):o}}}function O(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&GM(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function A(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}const CX=/[\0\t\n\r]/g;const QX=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function PX(e){return e.replace(QX,EX)}function EX(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return nN(n.slice(t?2:1),t?16:10)}return ZM(n)||e}function RX(e){return e&&"object"==typeof e?"position"in e||"type"in e?IX(e.position):"start"in e||"end"in e?IX(e):"line"in e||"column"in e?BX(e):"":""}function BX(e){return LX(e&&e.line)+":"+LX(e&&e.column)}function IX(e){return BX(e&&e.start)+"-"+BX(e&&e.end)}function LX(e){return e&&"number"==typeof e?e:1}const DX={}.hasOwnProperty;function MX(e,t,n){return t&&"object"==typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(te),autolinkProtocol:S,autolinkEmail:S,atxHeading:o(H),blockQuote:o(W),characterEscape:S,characterReference:S,codeFenced:o(j),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:o(j,a),codeText:o(Y,a),codeTextData:S,data:S,codeFlowValue:S,definition:o(Z),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:o(G),hardBreakEscape:o(K),hardBreakTrailing:o(K),htmlFlow:o(J,a),htmlFlowData:S,htmlText:o(J,a),htmlTextData:S,image:o(ee),label:a,link:o(te),listItem:o(re),listItemValue:d,listOrdered:o(ne,h),listUnordered:o(ne),paragraph:o(ie),reference:N,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:o(H),strong:o(oe),thematicBreak:o(se)},exit:{atxHeading:l(),atxHeadingSequence:b,autolink:l(),autolinkEmail:V,autolinkProtocol:q,blockQuote:l(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:F,characterReferenceMarkerNumeric:F,characterReferenceValue:U,characterReference:z,codeFenced:l(m),codeFencedFence:g,codeFencedFenceInfo:p,codeFencedFenceMeta:f,codeFlowValue:T,codeIndented:l(O),codeText:l(P),codeTextData:T,data:T,definition:l(),definitionDestinationString:v,definitionLabelString:A,definitionTitleString:y,emphasis:l(),hardBreakEscape:l(_),hardBreakTrailing:l(_),htmlFlow:l(C),htmlFlowData:T,htmlText:l(Q),htmlTextData:T,image:l(R),label:I,labelText:B,lineEnding:$,link:l(E),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:X,resourceDestinationString:L,resourceTitleString:D,resource:M,setextHeading:l(k),setextHeadingLineSequence:w,setextHeadingText:x,strong:l(),thematicBreak:l()}};XX(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const o={stack:[r],tokenStack:[],config:t,enter:s,exit:c,buffer:a,resume:u,data:n},l=[];let h=-1;for(;++h<e.length;)if("listOrdered"===e[h][1].type||"listUnordered"===e[h][1].type)if("enter"===e[h][0])l.push(h);else{h=i(e,l.pop(),h)}for(h=-1;++h<e.length;){const n=t[e[h][0]];DX.call(n,e[h][1].type)&&n[e[h][1].type].call(Object.assign({sliceSerialize:e[h][2].sliceSerialize},o),e[h][1])}if(o.tokenStack.length>0){const e=o.tokenStack[o.tokenStack.length-1];(e[1]||UX).call(o,void 0,e[0])}for(r.position={start:NX(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:NX(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},h=-1;++h<t.transforms.length;)r=t.transforms[h](r)||r;return r}function i(e,t,n){let r,i,o,a,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||l||o||(o=s),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=s;for(i=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(s,0,["enter",i,t[2]]),s++,n++,o=void 0,a=!0}}}return e[t][1]._spread=c,n}function o(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:NX(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+RX({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||UX).call(this,e,r[0])}n.position.end=NX(e.end)}function u(){return VM(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function d(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function f(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function m(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function O(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function A(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=rN(this.sliceSerialize(e)).toLowerCase()}function y(){const e=this.resume();this.stack[this.stack.length-1].title=e}function v(){const e=this.resume();this.stack[this.stack.length-1].url=e}function b(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function w(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function k(){this.data.setextHeadingSlurpLineEnding=void 0}function S(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ae(),n.position={start:NX(e.start),end:void 0},t.push(n)),this.stack.push(n)}function T(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=NX(e.end)}function $(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=NX(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(S.call(this,e),T.call(this,e))}function _(){this.data.atHardBreak=!0}function C(){const e=this.resume();this.stack[this.stack.length-1].value=e}function Q(){const e=this.resume();this.stack[this.stack.length-1].value=e}function P(){const e=this.resume();this.stack[this.stack.length-1].value=e}function E(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function R(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function B(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=PX(t),n.identifier=rN(t).toLowerCase()}function I(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function L(){const e=this.resume();this.stack[this.stack.length-1].url=e}function D(){const e=this.resume();this.stack[this.stack.length-1].title=e}function M(){this.data.inReference=void 0}function N(){this.data.referenceType="collapsed"}function X(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=rN(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function F(e){this.data.characterReferenceType=e.type}function U(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=nN(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=ZM(t)}this.stack[this.stack.length-1].value+=r}function z(e){this.stack.pop().position.end=NX(e.end)}function q(e){T.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function V(e){T.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function W(){return{type:"blockquote",children:[]}}function j(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function Z(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function G(){return{type:"emphasis",children:[]}}function H(){return{type:"heading",depth:0,children:[]}}function K(){return{type:"break"}}function J(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ie(){return{type:"paragraph",children:[]}}function oe(){return{type:"strong",children:[]}}function ae(){return{type:"text",value:""}}function se(){return{type:"thematicBreak"}}}(n)(function(e){for(;!DN(e););return e}(function(e){const t={constructs:JM([$X,...(e||{}).extensions||[]]),content:n(AN),defined:[],document:n(yN),flow:n(pX),lazy:{},string:n(gX),text:n(mX)};return t;function n(e){return function(n){return _X(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(i,o,a){const s=[];let l,c,u,h,d;for(i=n+("string"==typeof i?i.toString():new TextDecoder(o||void 0).decode(i)),u=0,n="",r&&(65279===i.charCodeAt(0)&&u++,r=void 0);u<i.length;){if(CX.lastIndex=u,l=CX.exec(i),h=l&&void 0!==l.index?l.index:i.length,d=i.charCodeAt(h),!l){n=i.slice(u);break}if(10===d&&u===h&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<h&&(s.push(i.slice(u,h)),t+=h-u),d){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=h+1}return a&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function NX(e){return{line:e.line,column:e.column,offset:e.offset}}function XX(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?XX(e,r):FX(e,r)}}function FX(e,t){let n;for(n in t)if(DX.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function UX(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+RX({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+RX({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+RX({start:t.start,end:t.end})+") is still open")}function zX(e){const t=this;t.parser=function(n){return MX(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const qX={}.hasOwnProperty;const VX={}.hasOwnProperty;function WX(e,t){let n,r=-1;if(t.extensions)for(;++r<t.extensions.length;)WX(e,t.extensions[r]);for(n in t)if(VX.call(t,n))switch(n){case"extensions":break;case"unsafe":case"join":jX(e[n],t[n]);break;case"handlers":YX(e[n],t[n]);break;default:e.options[n]=t[n]}return e}function jX(e,t){t&&e.push(...t)}function YX(e,t){t&&Object.assign(e,t)}function ZX(e,t,n){return">"+(n?"":" ")+e}function GX(e,t){return HX(e,t.inConstruct,!0)&&!HX(e,t.notInConstruct,!1)}function HX(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function KX(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if("\n"===n.unsafe[i].character&&GX(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function JX(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function eF(e,t,n){return(n?"":" ")+e}function tF(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function nF(e){return"&#x"+e.toString(16).toUpperCase()+";"}function rF(e,t,n){const r=bN(e),i=bN(t);return void 0===r?void 0===i?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function iF(e,t,n,r){const i=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),o=n.enter("emphasis"),a=n.createTracker(r),s=a.move(i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const c=l.charCodeAt(0),u=rF(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=nF(c)+l.slice(1));const h=l.charCodeAt(l.length-1),d=rF(r.after.charCodeAt(0),h,i);d.inside&&(l=l.slice(0,-1)+nF(h));const p=a.move(i);return o(),n.attentionEncodeSurroundingInfo={after:d.outside,before:u.outside},s+l+p}iF.peek=function(e,t,n){return n.options.emphasis||"*"};const oF=function(e){if(null==e)return sF;if("function"==typeof e)return aF(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=oF(e[n]);return aF(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return aF(n);function n(n){const r=n;let i;for(i in e)if(r[i]!==t[i])return!1;return!0}}(e);if("string"==typeof e)return function(e){return aF(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function aF(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function sF(){return!0}const lF=[],cF=!0,uF=!1,hF="skip";function dF(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;const o=oF(i),a=r?-1:1;!function e(i,s,l){const c=i&&"object"==typeof i?i:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,h,d=lF;if((!t||o(i,s,l[l.length-1]||void 0))&&(d=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[cF,e];return null==e?lF:[e]}(n(i,l)),d[0]===uF))return d;if("children"in i&&i.children){const t=i;if(t.children&&d[0]!==hF)for(u=(r?t.children.length:-1)+a,h=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,h)(),c[0]===uF)return c;u="number"==typeof c[1]?c[1]:u+a}}return d}}(e,void 0,[])()}function pF(e,t,n,r){let i,o,a;"function"==typeof t&&"function"!=typeof n?(o=void 0,a=t,i=n):(o=t,a=n,i=r),dF(e,o,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)},i)}function fF(e,t){let n=!1;return pF(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,uF}),Boolean((!e.depth||e.depth<3)&&VM(e)&&(t.options.setext||n))}function gF(e){return e.value||""}function mF(e,t,n,r){const i=tF(n),o='"'===i?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),c+=l.move(")"),a(),c}function OF(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,o(),"full"!==i&&c&&c===h?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(h+"]"),l}function AF(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const e=n.unsafe[o],t=n.compilePattern(e);let i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(i.index+1)}}return i+r+i}function yF(e,t){const n=VM(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function vF(e,t,n,r){const i=tF(n),o='"'===i?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(yF(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=a.move("<");return r+=a.move(n.containerPhrasing(e,{before:r,after:">",...a.current()})),r+=a.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(l=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${o}`),c+=a.move(" "+i),c+=a.move(n.safe(e.title,{before:c,after:i,...a.current()})),c+=a.move(i),l()),c+=a.move(")"),s(),c}function bF(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,o(),"full"!==i&&c&&c===h?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(h+"]"),l}function xF(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function wF(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}gF.peek=function(){return"<"},mF.peek=function(){return"!"},OF.peek=function(){return"!"},AF.peek=function(){return"`"},vF.peek=function(e,t,n){return yF(e,n)?"<":"["},bF.peek=function(){return"["};const kF=oF(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function SF(e,t,n,r){const i=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),o=n.enter("strong"),a=n.createTracker(r),s=a.move(i+i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const c=l.charCodeAt(0),u=rF(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=nF(c)+l.slice(1));const h=l.charCodeAt(l.length-1),d=rF(r.after.charCodeAt(0),h,i);d.inside&&(l=l.slice(0,-1)+nF(h));const p=a.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:d.outside,before:u.outside},s+l+p}SF.peek=function(e,t,n){return n.options.strong||"*"};const TF={blockquote:function(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const a=n.indentLines(n.containerFlow(e,o.current()),ZX);return i(),a},break:KX,code:function(e,t,n,r){const i=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",a="`"===i?"GraveAccent":"Tilde";if(JX(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(o,eF);return e(),t}const s=n.createTracker(r),l=i.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===i?++o>a&&(a=o):o=1,i=r+t.length,r=n.indexOf(t,i);return a}(o,i)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${a}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${a}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),o&&(u+=s.move(o+"\n")),u+=s.move(l),c(),u},definition:function(e,t,n,r){const i=tF(n),o='"'===i?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),a(),c},emphasis:iF,hardBreak:KX,heading:function(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(fF(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),a+"\n"+(1===i?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(i),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(a+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(c)&&(c=nF(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),l(),s(),c},html:gF,image:mF,imageReference:OF,inlineCode:AF,link:vF,linkReference:bF,list:function(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):xF(n);const s=e.ordered?"."===a?")":".":function(e){const t=xF(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&a===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),wF(n)===a&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(a=s),n.bulletCurrent=a;const c=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=o,i(),c},listItem:function(e,t,n,r){const i=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let o=n.bulletCurrent||xF(n);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let a=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){if(t)return(n?"":" ".repeat(a))+e;return(n?o:o+" ".repeat(a-o.length))+e});return l(),c},paragraph:function(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a},root:function(e,t,n,r){return(e.children.some(function(e){return kF(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:SF,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(wF(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}},$F=[function(e,t,n,r){if("code"===t.type&&JX(t,r)&&("list"===e.type||e.type===t.type&&JX(e,r)))return!1;if("spread"in n&&"boolean"==typeof n.spread){if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&fF(t,r)))return;return n.spread?1:0}}];const _F=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],CF=[{character:"\t",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",before:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:"\n",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:_F},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:"(?:[\r\n]|$)"},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:_F},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:"(?:[ \t\r\n*])"},{character:"*",inConstruct:"phrasing",notInConstruct:_F},{atBreak:!0,character:"+",after:"(?:[ \t\r\n])"},{atBreak:!0,character:"-",after:"(?:[ \t\r\n-])"},{atBreak:!0,before:"\\d+",character:".",after:"(?:[ \t\r\n]|$)"},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:_F},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:_F},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:_F},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:_F},{atBreak:!0,character:"~"}];function QF(e){return e.label||!e.identifier?e.label||"":PX(e.identifier)}function PF(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function EF(e,t,n,r){let i=r.join.length;for(;i--;){const o=r.join[i](e,t,n,r);if(!0===o||1===o)break;if("number"==typeof o)return"\n".repeat(1+o);if(!1===o)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}const RF=/\r?\n|\r/g;function BF(e,t){const n=[];let r,i=0,o=0;for(;r=RF.exec(e);)a(e.slice(i,r.index)),n.push(r[0]),i=r.index+r[0].length,o++;return a(e.slice(i)),n.join("");function a(e){n.push(t(e,o,!e))}}function IF(e,t){return e-t}function LF(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],o=e+t;let a,s=-1,l=0;for(;a=n.exec(o);)r.push(a.index);for(;++s<r.length;)l!==r[s]&&i.push(e.slice(l,r[s])),i.push("\\"),l=r[s];return i.push(e.slice(l)),i.join("")}function DF(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,i=n.line||1,o=n.column||1;return{move:function(e){const t=e||"",n=t.split(/\r?\n|\r/g),a=n[n.length-1];return i+=n.length-1,o=1===n.length?o+a.length:1+a.length+r,t},current:function(){return{now:{line:i,column:o},lineShift:r}},shift:function(e){r+=e}}}function MF(e,t){const n=t||{},r={associationId:QF,containerPhrasing:UF,containerFlow:zF,createTracker:DF,compilePattern:PF,enter:function(e){return r.stack.push(e),function(){r.stack.pop()}},handlers:{...TF},handle:void 0,indentLines:BF,indexStack:[],join:[...$F],options:{},safe:qF,stack:[],unsafe:[...CF]};WX(r,n),r.options.tightDefinitions&&r.join.push(FF),r.handle=function(e,t){const n=t||{};function r(t,...n){let i=r.invalid;const o=r.handlers;if(t&&qX.call(t,e)){const n=String(t[e]);i=qX.call(o,n)?o[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}("type",{invalid:NF,unknown:XF,handlers:r.handlers});let i=r.handle(e,void 0,r,{before:"\n",after:"\n",now:{line:1,column:1},lineShift:0});return i&&10!==i.charCodeAt(i.length-1)&&13!==i.charCodeAt(i.length-1)&&(i+="\n"),i}function NF(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function XF(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function FF(e,t){if("definition"===e.type&&e.type===t.type)return 0}function UF(e,t){return function(e,t,n){const r=t.indexStack,i=e.children||[],o=[];let a,s=-1,l=n.before;r.push(-1);let c=t.createTracker(n);for(;++s<i.length;){const u=i[s];let h;if(r[r.length-1]=s,s+1<i.length){let n=t.handle.handlers[i[s+1].type];n&&n.peek&&(n=n.peek),h=n?n(i[s+1],e,t,{before:"",after:"",...c.current()}).charAt(0):""}else h=n.after;o.length>0&&("\r"===l||"\n"===l)&&"html"===u.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),l=" ",c=t.createTracker(n),c.move(o.join("")));let d=t.handle(u,e,t,{...c.current(),after:h,before:l});a&&a===d.slice(0,1)&&(d=nF(a.charCodeAt(0))+d.slice(1));const p=t.attentionEncodeSurroundingInfo;t.attentionEncodeSurroundingInfo=void 0,a=void 0,p&&(o.length>0&&p.before&&l===o[o.length-1].slice(-1)&&(o[o.length-1]=o[o.length-1].slice(0,-1)+nF(l.charCodeAt(0))),p.after&&(a=h)),c.move(d),o.push(d),l=d.slice(-1)}return r.pop(),o.join("")}(e,this,t)}function zF(e,t){return function(e,t,n){const r=t.indexStack,i=e.children||[],o=t.createTracker(n),a=[];let s=-1;for(r.push(-1);++s<i.length;){const n=i[s];r[r.length-1]=s,a.push(o.move(t.handle(n,e,t,{before:"\n",after:"\n",...o.current()}))),"list"!==n.type&&(t.bulletLastUsed=void 0),s<i.length-1&&a.push(o.move(EF(n,i[s+1],e,t)))}return r.pop(),a.join("")}(e,this,t)}function qF(e,t){return function(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),i=[],o=[],a={};let s=-1;for(;++s<e.unsafe.length;){const t=e.unsafe[s];if(!GX(e.stack,t))continue;const n=e.compilePattern(t);let o;for(;o=n.exec(r);){const e="before"in t||Boolean(t.atBreak),n="after"in t,r=o.index+(e?o[1].length:0);i.includes(r)?(a[r].before&&!e&&(a[r].before=!1),a[r].after&&!n&&(a[r].after=!1)):(i.push(r),a[r]={before:e,after:n})}}i.sort(IF);let l=n.before?n.before.length:0;const c=r.length-(n.after?n.after.length:0);for(s=-1;++s<i.length;){const e=i[s];e<l||e>=c||e+1<c&&i[s+1]===e+1&&a[e].after&&!a[e+1].before&&!a[e+1].after||i[s-1]===e-1&&a[e].before&&!a[e-1].before&&!a[e-1].after||(l!==e&&o.push(LF(r.slice(l,e),"\\")),l=e,!/[!-/:-@[-`{-~]/.test(r.charAt(e))||n.encode&&n.encode.includes(r.charAt(e))?(o.push(nF(r.charCodeAt(e))),l++):o.push("\\"))}return o.push(LF(r.slice(l,c),n.after)),o.join("")}(this,e,t)}function VF(e){const t=this;t.compiler=function(n){return MF(n,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}function WF(e){if(e)throw e}var jF,YF;var ZF=function(){if(YF)return jF;YF=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return jF=function e(){var t,n,r,l,c,u,h=arguments[0],d=1,p=arguments.length,f=!1;for("boolean"==typeof h&&(f=h,h=arguments[1]||{},d=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});d<p;++d)if(null!=(t=arguments[d]))for(n in t)r=s(h,n),h!==(l=s(t,n))&&(f&&l&&(o(l)||(c=i(l)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},a(h,{name:n,newValue:e(f,u,l)})):void 0!==l&&a(h,{name:n,newValue:l}));return h},jF}();const GF=rk(ZF);function HF(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function KF(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function i(o,...a){const s=e[++n];let l=-1;if(o)r(o);else{for(;++l<t.length;)null!==a[l]&&void 0!==a[l]||(a[l]=t[l]);t=a,s?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let s;r&&t.push(i);try{s=e.apply(this,t)}catch(o){if(r&&n)throw o;return i(o)}r||(s&&s.then&&"function"==typeof s.then?s.then(a,i):s instanceof Error?i(s):a(s))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}(s,i)(...a):r(null,...a)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}class JF extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=a?a.line:void 0,this.name=RX(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}JF.prototype.file="",JF.prototype.name="",JF.prototype.reason="",JF.prototype.message="",JF.prototype.stack="",JF.prototype.column=void 0,JF.prototype.line=void 0,JF.prototype.ancestors=void 0,JF.prototype.cause=void 0,JF.prototype.fatal=void 0,JF.prototype.place=void 0,JF.prototype.ruleId=void 0,JF.prototype.source=void 0;const eU={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');tU(e);let n,r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,s=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(i=o):(s=-1,i=a));r===i?i=a:i<0&&(i=e.length);return e.slice(r,i)},dirname:function(e){if(tU(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){tU(e);let t,n=e.length,r=-1,i=0,o=-1,a=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==a&&(a=1):o>-1&&(a=-1);else if(t){i=n+1;break}}if(o<0||r<0||0===a||1===a&&o===r-1&&o===i+1)return"";return e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)tU(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){tU(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,i="",o=0,a=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(i.length<2||2!==o||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2))if(i.length>2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",o=0):(i=i.slice(0,r),o=i.length-1-i.lastIndexOf("/")),a=l,s=0;continue}}else if(i.length>0){i="",o=0,a=l,s=0;continue}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(a+1,l):i=e.slice(a+1,l),o=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function tU(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const nU={cwd:function(){return"/"}};function rU(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function iU(e){if("string"==typeof e)e=new URL(e);else if(!rU(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const oU=["history","path","basename","stem","extname","dirname"];class aU{constructor(e){let t;t=e?rU(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":nU.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<oU.length;){const e=oU[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)oU.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?eU.basename(this.path):void 0}set basename(e){lU(e,"basename"),sU(e,"basename"),this.path=eU.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?eU.dirname(this.path):void 0}set dirname(e){cU(this.basename,"dirname"),this.path=eU.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?eU.extname(this.path):void 0}set extname(e){if(sU(e,"extname"),cU(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=eU.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){rU(e)&&(e=iU(e)),lU(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?eU.basename(this.path,this.extname):void 0}set stem(e){lU(e,"stem"),sU(e,"stem"),this.path=eU.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new JF(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function sU(e,t){if(e&&e.includes(eU.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+eU.sep+"`")}function lU(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function cU(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const uU=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},hU={}.hasOwnProperty;class dU extends uU{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=KF()}copy(){const e=new dU;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(GF(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(mU("data",this.frozen),this.namespace[e]=t,this):hU.call(this.namespace,e)&&this.namespace[e]||void 0:e?(mU("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=yU(e),n=this.parser||this.Parser;return fU("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),fU("process",this.parser||this.Parser),gU("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){const o=yU(e),a=n.parse(o);function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(a,o,function(e,t,r){if(e||!t||!r)return s(e);const i=t,o=n.stringify(i,r);var a;"string"==typeof(a=o)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(a)?r.value=o:r.result=o,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),fU("processSync",this.parser||this.Parser),gU("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,WF(e),t=r}),AU("processSync","process",n),t}run(e,t,n){OU(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,o){const a=yU(t);r.run(e,a,function(t,r,a){const s=r||e;t?o(t):i?i(s):n(void 0,s,a)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){WF(e),n=t,r=!0}),AU("runSync","run",r),n}stringify(e,t){this.freeze();const n=yU(t),r=this.compiler||this.Compiler;return gU("stringify",r),OU(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(mU("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?a(e):o(e)}return this;function i(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else o(e)}}function o(e){if(!("plugins"in e)&&!("settings"in e))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");a(e.plugins),e.settings&&(r.settings=GF(!0,r.settings,e.settings))}function a(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){i(e[t])}}}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...o]=t;const a=n[i][1];HF(a)&&HF(r)&&(r=GF(!0,a,r)),n[i]=[e,r,...o]}}}}const pU=(new dU).freeze();function fU(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function gU(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function mU(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function OU(e){if(!HF(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function AU(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function yU(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new aU(e)}var vU=e=>{throw TypeError(e)},bU=(e,t,n)=>t.has(e)||vU("Cannot "+n),xU=(e,t,n)=>(bU(e,t,"read from private field"),n?n.call(e):t.get(e)),wU=(e,t,n)=>t.has(e)?vU("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),kU=(e,t,n,r)=>(bU(e,t,"write to private field"),t.set(e,n),n);let SU=class{},TU=class{constructor(){this.elements=[],this.size=()=>this.elements.length,this.top=()=>this.elements.at(-1),this.push=e=>{var t;null==(t=this.top())||t.push(e)},this.open=e=>{this.elements.push(e)},this.close=()=>{const e=this.elements.pop();if(!e)throw WL();return e}}},$U=class e extends SU{constructor(e,t,n){super(),this.type=e,this.content=t,this.attrs=n}push(e,...t){this.content.push(e,...t)}pop(){return this.content.pop()}static create(t,n,r){return new e(t,n,r)}};var _U,CU,QU,PU,EU,RU,BU;const IU=class extends TU{constructor(e){super(),wU(this,_U),wU(this,CU),wU(this,QU),wU(this,PU),wU(this,EU),wU(this,RU),wU(this,BU),kU(this,_U,FD.none),kU(this,CU,e=>e.isText),kU(this,QU,(e,t)=>{if(xU(this,CU).call(this,e)&&xU(this,CU).call(this,t)&&FD.sameSet(e.marks,t.marks))return this.schema.text(e.text+t.text,e.marks)}),kU(this,PU,e=>{const t=Object.values({...this.schema.nodes,...this.schema.marks}).find(t=>t.spec.parseMarkdown.match(e));if(!t)throw function(e){return new UL(FL.parserMatchError,`Cannot match target parser for node: ${qL(e)}.`)}(e);return t}),kU(this,EU,e=>{const t=xU(this,PU).call(this,e);t.spec.parseMarkdown.runner(this,e,t)}),this.injectRoot=(e,t,n)=>(this.openNode(t,n),this.next(e.children),this),this.openNode=(e,t)=>(this.open($U.create(e,[],t)),this),kU(this,RU,()=>{kU(this,_U,FD.none);const e=this.close();return xU(this,BU).call(this,e.type,e.attrs,e.content)}),this.closeNode=()=>(xU(this,RU).call(this),this),kU(this,BU,(e,t,n)=>{const r=e.createAndFill(t,n,xU(this,_U));if(!r)throw function(...e){const t=e.reduce((e,t)=>{if(!t)return e;const n=e=>Array.isArray(e)?e.map(e=>n(e)).join(", "):e.toJSON?qL(e.toJSON()):e.spec?qL(e.spec):e.toString();return`${e}, ${n(t)}`},"Create prosemirror node from remark failed in parser");return new UL(FL.createNodeInParserFail,t)}(e,t,n);return this.push(r),r}),this.addNode=(e,t,n)=>(xU(this,BU).call(this,e,t,n),this),this.openMark=(e,t)=>{const n=e.create(t);return kU(this,_U,n.addToSet(xU(this,_U))),this},this.closeMark=e=>(kU(this,_U,e.removeFromSet(xU(this,_U))),this),this.addText=e=>{const t=this.top();if(!t)throw WL();const n=t.pop(),r=this.schema.text(e,xU(this,_U));if(!n)return t.push(r),this;const i=xU(this,QU).call(this,n,r);return i?(t.push(i),this):(t.push(n,r),this)},this.build=()=>{let e;do{e=xU(this,RU).call(this)}while(this.size());return e},this.next=(e=[])=>([e].flat().forEach(e=>xU(this,EU).call(this,e)),this),this.toDoc=()=>this.build(),this.run=(e,t)=>{const n=e.runSync(e.parse(t),t);return this.next(n),this},this.schema=e}};_U=new WeakMap,CU=new WeakMap,QU=new WeakMap,PU=new WeakMap,EU=new WeakMap,RU=new WeakMap,BU=new WeakMap,IU.create=(e,t)=>{const n=new IU(e);return e=>(n.run(t,e),n.toDoc())};let LU=IU;const DU=class extends SU{constructor(e,t,n,r={}){super(),this.type=e,this.children=t,this.value=n,this.props=r,this.push=(e,...t)=>{this.children||(this.children=[]),this.children.push(e,...t)},this.pop=()=>{var e;return null==(e=this.children)?void 0:e.pop()}}};DU.create=(e,t,n,r={})=>new DU(e,t,n,r);let MU=DU;var NU,XU,FU,UU,zU,qU,VU,WU,jU,YU,ZU,GU,HU;const KU=class extends TU{constructor(e){super(),wU(this,NU),wU(this,XU),wU(this,FU),wU(this,UU),wU(this,zU),wU(this,qU),wU(this,VU),wU(this,WU),wU(this,jU),wU(this,YU),wU(this,ZU),wU(this,GU),wU(this,HU),kU(this,NU,FD.none),kU(this,XU,e=>{const t=Object.values({...this.schema.nodes,...this.schema.marks}).find(t=>t.spec.toMarkdown.match(e));if(!t)throw function(e){return new UL(FL.serializerMatchError,`Cannot match target serializer for node: ${qL(e)}.`)}(e.type);return t}),kU(this,FU,e=>xU(this,XU).call(this,e).spec.toMarkdown.runner(this,e)),kU(this,UU,(e,t)=>xU(this,XU).call(this,e).spec.toMarkdown.runner(this,e,t)),kU(this,zU,e=>{const{marks:t}=e,n=e=>e.type.spec.priority??50;[...t].sort((e,t)=>n(e)-n(t)).every(t=>!xU(this,UU).call(this,t,e))&&xU(this,FU).call(this,e),t.forEach(e=>xU(this,HU).call(this,e))}),kU(this,qU,(e,t)=>{var n;if(e.type===t||1!==(null==(n=e.children)?void 0:n.length))return e;const r=e=>{var n;if(e.type===t)return e;if(1!==(null==(n=e.children)?void 0:n.length))return null;const[i]=e.children;return i?r(i):null},i=r(e);if(!i)return e;const o=i.children?[...i.children]:void 0,a={...e,children:o};return a.children=o,i.children=[a],i}),kU(this,VU,e=>{const{children:t}=e;return t&&(e.children=t.reduce((e,t,n)=>{if(0===n)return[t];const r=e.at(-1);if(r&&r.isMark&&t.isMark){t=xU(this,qU).call(this,t,r.type);const{children:n,...i}=t,{children:o,...a}=r;if(t.type===r.type&&n&&o&&JSON.stringify(i)===JSON.stringify(a)){const t={...a,children:[...o,...n]};return e.slice(0,-1).concat(xU(this,VU).call(this,t))}}return e.concat(t)},[])),e}),kU(this,WU,e=>{const t={...e.props,type:e.type};return e.children&&(t.children=e.children),e.value&&(t.value=e.value),t}),this.openNode=(e,t,n)=>(this.open(MU.create(e,void 0,t,n)),this),kU(this,jU,(e,t)=>{let n="",r="";const i=e.children;let o=-1,a=-1;if(i){(e=>{e&&e.forEach((e,t)=>{"text"===e.type&&e.value&&(o<0&&(o=t),a=t)})})(i);const e=null==i?void 0:i[a],t=null==i?void 0:i[o];e&&e.value.endsWith(" ")&&(r=e.value.match(/ +$/)[0],e.value=e.value.trimEnd()),t&&t.value.startsWith(" ")&&(n=t.value.match(/^ +/)[0],t.value=t.value.trimStart())}n.length&&xU(this,ZU).call(this,"text",void 0,n);const s=t();return r.length&&xU(this,ZU).call(this,"text",void 0,r),s}),kU(this,YU,(e=!1)=>{const t=this.close(),n=()=>xU(this,ZU).call(this,t.type,t.children,t.value,t.props);return e?xU(this,jU).call(this,t,n):n()}),this.closeNode=()=>(xU(this,YU).call(this),this),kU(this,ZU,(e,t,n,r)=>{const i=MU.create(e,t,n,r),o=xU(this,VU).call(this,xU(this,WU).call(this,i));return this.push(o),o}),this.addNode=(e,t,n,r)=>(xU(this,ZU).call(this,e,t,n,r),this),kU(this,GU,(e,t,n,r)=>e.isInSet(xU(this,NU))?this:(kU(this,NU,e.addToSet(xU(this,NU))),this.openNode(t,n,{...r,isMark:!0}))),kU(this,HU,e=>{e.isInSet(xU(this,NU))&&(kU(this,NU,e.type.removeFromSet(xU(this,NU))),xU(this,YU).call(this,!0))}),this.withMark=(e,t,n,r)=>(xU(this,GU).call(this,e,t,n,r),this),this.closeMark=e=>(xU(this,HU).call(this,e),this),this.build=()=>{let e=null;do{e=xU(this,YU).call(this)}while(this.size());return e},this.next=e=>{return t=e,Object.prototype.hasOwnProperty.call(t,"size")?(e.forEach(e=>{xU(this,zU).call(this,e)}),this):(xU(this,zU).call(this,e),this);var t},this.toString=e=>e.stringify(this.build()),this.run=e=>(this.next(e),this),this.schema=e}};NU=new WeakMap,XU=new WeakMap,FU=new WeakMap,UU=new WeakMap,zU=new WeakMap,qU=new WeakMap,VU=new WeakMap,WU=new WeakMap,jU=new WeakMap,YU=new WeakMap,ZU=new WeakMap,GU=new WeakMap,HU=new WeakMap,KU.create=(e,t)=>{const n=new KU(e);return e=>(n.run(e),n.toString(t))};let JU=KU;const ez=Math.pow(2,16);function tz(e,t){return e+t*ez}function nz(e){return 65535&e}class rz{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class iz{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&iz.empty)return iz.empty}recover(e){let t=0,n=nz(e);if(!this.inverted)for(let r=0;r<n;r++)t+=this.ranges[3*r+2]-this.ranges[3*r+1];return this.ranges[3*n]+t+function(e){return(e-(65535&e))/ez}(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,i=this.inverted?2:1,o=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let s=this.ranges[a]-(this.inverted?r:0);if(s>e)break;let l=this.ranges[a+i],c=this.ranges[a+o],u=s+l;if(e<=u){let i=s+r+((l?e==s?-1:e==u?1:t:t)<0?0:c);if(n)return i;let o=e==(t<0?s:u)?null:tz(a/3,e-s),h=e==s?2:e==u?1:4;return(t<0?e!=s:e!=u)&&(h|=8),new rz(i,h,o)}r+=c-l}return n?e+r:new rz(e+r,0,null)}touches(e,t){let n=0,r=nz(t),i=this.inverted?2:1,o=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let t=this.ranges[a]-(this.inverted?n:0);if(t>e)break;let s=this.ranges[a+i];if(e<=t+s&&a==3*r)return!0;n+=this.ranges[a+o]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let o=this.ranges[r],a=o-(this.inverted?i:0),s=o+(this.inverted?0:i),l=this.ranges[r+t],c=this.ranges[r+n];e(a,a+l,s,s+c),i+=c-l}}invert(){return new iz(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?iz.empty:new iz(e<0?[0,-e,0]:[0,0,e])}}iz.empty=new iz([]);class oz{constructor(e,t,n=0,r=(e?e.length:0)){this.mirror=t,this.from=n,this.to=r,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new oz(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),null!=t&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,n=this._maps.length;t<e._maps.length;t++){let r=e.getMirror(t);this.appendMap(e._maps[t],null!=r&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror)for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this._maps.length+e._maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),null!=r&&r>t?n-r-1:void 0)}}invert(){let e=new oz;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this._maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let i=this.from;i<this.to;i++){let n=this._maps[i].mapResult(e,t);if(null!=n.recover){let t=this.getMirror(i);if(null!=t&&t>i&&t<this.to){i=t,e=this._maps[t].recover(n.recover);continue}}r|=n.delInfo,e=n.pos}return n?e:new rz(e,r,null)}}const az=Object.create(null);let sz=class{getMap(){return iz.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=az[t.stepType];if(!n)throw new RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in az)throw new RangeError("Duplicate use of step JSON ID "+e);return az[e]=t,t.prototype.jsonID=e,t}};class lz{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new lz(e,null)}static fail(e){return new lz(null,e)}static fromReplace(e,t,n,r){try{return lz.ok(e.replace(t,n,r))}catch(jk){if(jk instanceof UD)return lz.fail(jk.message);throw jk}}}function cz(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let o=e.child(i);o.content.size&&(o=o.copy(cz(o.content,t,o))),o.isInline&&(o=t(o,n,i)),r.push(o)}return DD.fromArray(r)}class uz extends sz{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new zD(cz(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,r),t.openStart,t.openEnd);return lz.fromReplace(e,this.from,this.to,i)}invert(){return new hz(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new uz(t.pos,n.pos,this.mark)}merge(e){return e instanceof uz&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new uz(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new uz(t.from,t.to,e.markFromJSON(t.mark))}}sz.jsonID("addMark",uz);class hz extends sz{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new zD(cz(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return lz.fromReplace(e,this.from,this.to,n)}invert(){return new uz(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new hz(t.pos,n.pos,this.mark)}merge(e){return e instanceof hz&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new hz(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new hz(t.from,t.to,e.markFromJSON(t.mark))}}sz.jsonID("removeMark",hz);class dz extends sz{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return lz.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return lz.fromReplace(e,this.pos,this.pos+1,new zD(DD.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let n=0;n<t.marks.length;n++)if(!t.marks[n].isInSet(e))return new dz(this.pos,t.marks[n]);return new dz(this.pos,this.mark)}}return new pz(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new dz(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new dz(t.pos,e.markFromJSON(t.mark))}}sz.jsonID("addNodeMark",dz);class pz extends sz{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return lz.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return lz.fromReplace(e,this.pos,this.pos+1,new zD(DD.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new dz(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new pz(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new pz(t.pos,e.markFromJSON(t.mark))}}sz.jsonID("removeNodeMark",pz);class fz extends sz{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&mz(e,this.from,this.to)?lz.fail("Structure replace would overwrite content"):lz.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new iz([this.from,this.to-this.from,this.slice.size])}invert(e){return new fz(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.to,-1),n=this.from==this.to&&fz.MAP_BIAS<0?t:e.mapResult(this.from,1);return n.deletedAcross&&t.deletedAcross?null:new fz(n.pos,Math.max(n.pos,t.pos),this.slice,this.structure)}merge(e){if(!(e instanceof fz)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;{let t=this.slice.size+e.slice.size==0?zD.empty:new zD(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new fz(e.from,this.to,t,this.structure)}}{let t=this.slice.size+e.slice.size==0?zD.empty:new zD(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new fz(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new fz(t.from,t.to,zD.fromJSON(e,t.slice),!!t.structure)}}fz.MAP_BIAS=1,sz.jsonID("replace",fz);class gz extends sz{constructor(e,t,n,r,i,o,a=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=o,this.structure=a}apply(e){if(this.structure&&(mz(e,this.from,this.gapFrom)||mz(e,this.gapTo,this.to)))return lz.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return lz.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,t.content);return n?lz.fromReplace(e,this.from,this.to,n):lz.fail("Content does not fit in gap")}getMap(){return new iz([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new gz(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),r=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?n.pos:e.map(this.gapTo,1);return t.deletedAcross&&n.deletedAcross||r<t.pos||i>n.pos?null:new gz(t.pos,n.pos,r,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new gz(t.from,t.to,t.gapFrom,t.gapTo,zD.fromJSON(e,t.slice),t.insert,!!t.structure)}}function mz(e,t,n){let r=e.resolve(t),i=n-t,o=r.depth;for(;i>0&&o>0&&r.indexAfter(o)==r.node(o).childCount;)o--,i--;if(i>0){let e=r.node(o).maybeChild(r.indexAfter(o));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function Oz(e,t,n,r=n.contentMatch,i=!0){let o=e.doc.nodeAt(t),a=[],s=t+1;for(let l=0;l<o.childCount;l++){let t=o.child(l),c=s+t.nodeSize,u=r.matchType(t.type);if(u){r=u;for(let r=0;r<t.marks.length;r++)n.allowsMarkType(t.marks[r].type)||e.step(new hz(s,c,t.marks[r]));if(i&&t.isText&&"pre"!=n.whitespace){let e,r,i=/\r?\n|\r/g;for(;e=i.exec(t.text);)r||(r=new zD(DD.from(n.schema.text(" ",n.allowedMarks(t.marks))),0,0)),a.push(new fz(s+e.index,s+e.index+e[0].length,r))}}else a.push(new fz(s,c,zD.empty));s=c}if(!r.validEnd){let t=r.fillBefore(DD.empty,!0);e.replace(s,s,new zD(t,0,0))}for(let l=a.length-1;l>=0;l--)e.step(a[l])}function Az(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function yz(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth,r=0,i=0;;--n){let o=e.$from.node(n),a=e.$from.index(n)+r,s=e.$to.indexAfter(n)-i;if(n<e.depth&&o.canReplace(a,s,t))return n;if(0==n||o.type.spec.isolating||!Az(o,a,s))break;a&&(r=1),s<o.childCount&&(i=1)}return null}function vz(e,t,n=null,r=e){let i=function(e,t){let{parent:n,startIndex:r,endIndex:i}=e,o=n.contentMatchAt(r).findWrapping(t);if(!o)return null;let a=o.length?o[0]:t;return n.canReplaceWith(r,i,a)?o:null}(e,t),o=i&&function(e,t){let{parent:n,startIndex:r,endIndex:i}=e,o=n.child(r),a=t.contentMatch.findWrapping(o.type);if(!a)return null;let s=(a.length?a[a.length-1]:t).contentMatch;for(let l=r;s&&l<i;l++)s=s.matchType(n.child(l).type);return s&&s.validEnd?a:null}(r,t);return o?i.map(bz).concat({type:t,attrs:n}).concat(o.map(bz)):null}function bz(e){return{type:e,attrs:null}}function xz(e,t,n,r){t.forEach((i,o)=>{if(i.isText){let a,s=/\r?\n|\r/g;for(;a=s.exec(i.text);){let i=e.mapping.slice(r).map(n+1+o+a.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function wz(e,t,n,r){t.forEach((i,o)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(r).map(n+1+o);e.replaceWith(i,i+1,t.type.schema.text("\n"))}})}function kz(e,t,n=1,r){let i=e.resolve(t),o=i.depth-n,a=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!a.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let c=i.depth-1,u=n-2;c>o;c--,u--){let e=i.node(c),t=i.index(c);if(e.type.spec.isolating)return!1;let n=e.content.cutByIndex(t,e.childCount),o=r&&r[u+1];o&&(n=n.replaceChild(0,o.type.create(o.attrs)));let a=r&&r[u]||e;if(!e.canReplace(t+1,e.childCount)||!a.type.validContent(n))return!1}let s=i.indexAfter(o),l=r&&r[0];return i.node(o).canReplaceWith(s,s,l?l.type:i.node(o+1).type)}function Sz(e,t){let n=e.resolve(t),r=n.index();return i=n.nodeBefore,o=n.nodeAfter,!(!i||!o||i.isLeaf||!function(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let i=0;i<t.childCount;i++){let o=t.child(i),a=o.type==r?e.type.schema.nodes.text:o.type;if(n=n.matchType(a),!n)return!1;if(!e.type.allowsMarks(o.marks))return!1}return n.validEnd}(i,o))&&n.parent.canReplace(r,r+1);var i,o}function Tz(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let i=n.content;for(let o=0;o<n.openStart;o++)i=i.firstChild.content;for(let o=1;o<=(0==n.openStart&&n.size?2:1);o++)for(let e=r.depth;e>=0;e--){let t=e==r.depth?0:r.pos<=(r.start(e+1)+r.end(e+1))/2?-1:1,n=r.index(e)+(t>0?1:0),a=r.node(e),s=!1;if(1==o)s=a.canReplace(n,n,i);else{let e=a.contentMatchAt(n).findWrapping(i.firstChild.type);s=e&&a.canReplaceWith(n,n,e[0])}if(s)return 0==t?r.pos:t<0?r.before(e+1):r.after(e+1)}return null}function $z(e,t,n=t,r=zD.empty){if(t==n&&!r.size)return null;let i=e.resolve(t),o=e.resolve(n);return _z(i,o,r)?new fz(t,n,r):new Cz(i,o,r).fit()}function _z(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}sz.jsonID("replaceAround",gz);class Cz{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=DD.empty;for(let r=0;r<=e.depth;r++){let t=e.node(r);this.frontier.push({type:t.type,match:t.contentMatchAt(e.indexAfter(r))})}for(let r=e.depth;r>0;r--)this.placed=DD.from(e.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,r=this.close(e<0?this.$to:n.doc.resolve(e));if(!r)return null;let i=this.placed,o=n.depth,a=r.depth;for(;o&&a&&1==i.childCount;)i=i.firstChild.content,o--,a--;let s=new zD(i,o,a);return e>-1?new gz(n.pos,e,this.$to.pos,this.$to.end(),s,t):s.size||n.pos!=this.$to.pos?new fz(n.pos,r.pos,s):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let i=t.firstChild;if(t.childCount>1&&(r=0),i.type.spec.isolating&&r<=n){e=n;break}t=i.content}for(let t=1;t<=2;t++)for(let n=1==t?e:this.unplaced.openStart;n>=0;n--){let e,r=null;n?(r=Ez(this.unplaced.content,n-1).firstChild,e=r.content):e=this.unplaced.content;let i=e.firstChild;for(let o=this.depth;o>=0;o--){let e,{type:a,match:s}=this.frontier[o],l=null;if(1==t&&(i?s.matchType(i.type)||(l=s.fillBefore(DD.from(i),!1)):r&&a.compatibleContent(r.type)))return{sliceDepth:n,frontierDepth:o,parent:r,inject:l};if(2==t&&i&&(e=s.findWrapping(i.type)))return{sliceDepth:n,frontierDepth:o,parent:r,wrap:e};if(r&&s.matchType(r.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=Ez(e,t);return!(!r.childCount||r.firstChild.isLeaf)&&(this.unplaced=new zD(e,t+1,Math.max(n,r.size+t>=e.size-n?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=Ez(e,t);if(r.childCount<=1&&t>0){let i=e.size-t<=t+r.size;this.unplaced=new zD(Qz(e,t-1,1),t-1,i?t-1:n)}else this.unplaced=new zD(Qz(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:r,wrap:i}){for(;this.depth>t;)this.closeFrontierNode();if(i)for(let f=0;f<i.length;f++)this.openFrontierNode(i[f]);let o=this.unplaced,a=n?n.content:o.content,s=o.openStart-e,l=0,c=[],{match:u,type:h}=this.frontier[t];if(r){for(let e=0;e<r.childCount;e++)c.push(r.child(e));u=u.matchFragment(r)}let d=a.size+e-(o.content.size-o.openEnd);for(;l<a.childCount;){let e=a.child(l),t=u.matchType(e.type);if(!t)break;l++,(l>1||0==s||e.content.size)&&(u=t,c.push(Rz(e.mark(h.allowedMarks(e.marks)),1==l?s:0,l==a.childCount?d:-1)))}let p=l==a.childCount;p||(d=-1),this.placed=Pz(this.placed,t,DD.from(c)),this.frontier[t].match=u,p&&d<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let f=0,g=a;f<d;f++){let e=g.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),g=e.content}this.unplaced=p?0==e?zD.empty:new zD(Qz(o.content,e-1,1),e-1,d<0?o.openEnd:e-1):new zD(Qz(o.content,e,l),o.openStart,o.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e,t=this.frontier[this.depth];if(!t.type.isTextblock||!Bz(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return-1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),o=Bz(e,t,r,n,i);if(o){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],i=Bz(e,n,r,t,!0);if(!i||i.childCount)continue e}return{depth:t,fit:o,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=Pz(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,n){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=Pz(this.placed,this.depth,DD.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(DD.empty,!0);e.childCount&&(this.placed=Pz(this.placed,this.frontier.length,e))}}function Qz(e,t,n){return 0==t?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(Qz(e.firstChild.content,t-1,n)))}function Pz(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(Pz(e.lastChild.content,t-1,n)))}function Ez(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function Rz(e,t,n){if(t<=0)return e;let r=e.content;return t>1&&(r=r.replaceChild(0,Rz(r.firstChild,t-1,1==r.childCount?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(DD.empty,!0)))),e.copy(r)}function Bz(e,t,n,r,i){let o=e.node(t),a=i?e.indexAfter(t):e.index(t);if(a==o.childCount&&!n.compatibleContent(o.type))return null;let s=r.fillBefore(o.content,!0,a);return s&&!function(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}(n,o.content,a)?s:null}function Iz(e){return e.spec.defining||e.spec.definingForContent}function Lz(e,t,n,r,i){if(t<n){let i=e.firstChild;e=e.replaceChild(0,i.copy(Lz(i.content,t+1,n,r,i)))}if(t>r){let t=i.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(DD.empty,!0))}return e}function Dz(e,t){let n=[];for(let r=Math.min(e.depth,t.depth);r>=0;r--){let i=e.start(r);if(i<e.pos-(e.depth-r)||t.end(r)>t.pos+(t.depth-r)||e.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;(i==t.start(r)||r==e.depth&&r==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&r&&t.start(r-1)==i-1)&&n.push(r)}return n}class Mz extends sz{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return lz.fail("No node at attribute step's position");let n=Object.create(null);for(let i in t.attrs)n[i]=t.attrs[i];n[this.attr]=this.value;let r=t.type.create(n,null,t.marks);return lz.fromReplace(e,this.pos,this.pos+1,new zD(DD.from(r),0,t.isLeaf?0:1))}getMap(){return iz.empty}invert(e){return new Mz(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Mz(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new Mz(t.pos,t.attr,t.value)}}sz.jsonID("attr",Mz);class Nz extends sz{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let r in e.attrs)t[r]=e.attrs[r];t[this.attr]=this.value;let n=e.type.create(t,e.content,e.marks);return lz.ok(n)}getMap(){return iz.empty}invert(e){return new Nz(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Nz(t.attr,t.value)}}sz.jsonID("docAttr",Nz);let Xz=class extends Error{};Xz=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},(Xz.prototype=Object.create(Error.prototype)).constructor=Xz,Xz.prototype.name="TransformError";let Fz=class{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new oz}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new Xz(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,t=-1e9;for(let n=0;n<this.mapping.maps.length;n++){let r=this.mapping.maps[n];n&&(e=r.map(e,1),t=r.map(t,-1)),r.forEach((n,r,i,o)=>{e=Math.min(e,i),t=Math.max(t,o)})}return 1e9==e?null:{from:e,to:t}}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=zD.empty){let r=$z(this.doc,e,t,n);return r&&this.step(r),this}replaceWith(e,t,n){return this.replace(e,t,new zD(DD.from(n),0,0))}delete(e,t){return this.replace(e,t,zD.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return function(e,t,n,r){if(!r.size)return e.deleteRange(t,n);let i=e.doc.resolve(t),o=e.doc.resolve(n);if(_z(i,o,r))return e.step(new fz(t,n,r));let a=Dz(i,o);0==a[a.length-1]&&a.pop();let s=-(i.depth+1);a.unshift(s);for(let d=i.depth,p=i.pos-1;d>0;d--,p--){let e=i.node(d).type.spec;if(e.defining||e.definingAsContext||e.isolating)break;a.indexOf(d)>-1?s=d:i.before(d)==p&&a.splice(1,0,-d)}let l=a.indexOf(s),c=[],u=r.openStart;for(let d=r.content,p=0;;p++){let e=d.firstChild;if(c.push(e),p==r.openStart)break;d=e.content}for(let d=u-1;d>=0;d--){let e=c[d],t=Iz(e.type);if(t&&!e.sameMarkup(i.node(Math.abs(s)-1)))u=d;else if(t||!e.type.isTextblock)break}for(let d=r.openStart;d>=0;d--){let t=(d+u+1)%(r.openStart+1),s=c[t];if(s)for(let c=0;c<a.length;c++){let u=a[(c+l)%a.length],h=!0;u<0&&(h=!1,u=-u);let d=i.node(u-1),p=i.index(u-1);if(d.canReplaceWith(p,p,s.type,s.marks))return e.replace(i.before(u),h?o.after(u):n,new zD(Lz(r.content,0,r.openStart,t),t,r.openEnd))}}let h=e.steps.length;for(let d=a.length-1;d>=0&&(e.replace(t,n,r),!(e.steps.length>h));d--){let e=a[d];e<0||(t=i.before(e),n=o.after(e))}}(this,e,t,n),this}replaceRangeWith(e,t,n){return function(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let i=function(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(let i=r.depth-1;i>=0;i--){let e=r.index(i);if(r.node(i).canReplaceWith(e,e,n))return r.before(i+1);if(e>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let e=r.indexAfter(i);if(r.node(i).canReplaceWith(e,e,n))return r.after(i+1);if(e<r.node(i).childCount)return null}return null}(e.doc,t,r.type);null!=i&&(t=n=i)}e.replaceRange(t,n,new zD(DD.from(r),0,0))}(this,e,t,n),this}deleteRange(e,t){return function(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n);if(r.parent.isTextblock&&i.parent.isTextblock&&r.start()!=i.start()&&0==r.parentOffset&&0==i.parentOffset){let o=r.sharedDepth(n),a=!1;for(let e=r.depth;e>o;e--)r.node(e).type.spec.isolating&&(a=!0);for(let e=i.depth;e>o;e--)i.node(e).type.spec.isolating&&(a=!0);if(!a){for(let e=r.depth;e>0&&t==r.start(e);e--)t=r.before(e);for(let e=i.depth;e>0&&n==i.start(e);e--)n=i.before(e);r=e.doc.resolve(t),i=e.doc.resolve(n)}}let o=Dz(r,i);for(let a=0;a<o.length;a++){let t=o[a],n=a==o.length-1;if(n&&0==t||r.node(t).type.contentMatch.validEnd)return e.delete(r.start(t),i.end(t));if(t>0&&(n||r.node(t-1).canReplace(r.index(t-1),i.indexAfter(t-1))))return e.delete(r.before(t),i.after(t))}for(let a=1;a<=r.depth&&a<=i.depth;a++)if(t-r.start(a)==r.depth-a&&n>r.end(a)&&i.end(a)-n!=i.depth-a&&r.start(a-1)==i.start(a-1)&&r.node(a-1).canReplace(r.index(a-1),i.index(a-1)))return e.delete(r.before(a),n);e.delete(t,n)}(this,e,t),this}lift(e,t){return function(e,t,n){let{$from:r,$to:i,depth:o}=t,a=r.before(o+1),s=i.after(o+1),l=a,c=s,u=DD.empty,h=0;for(let f=o,g=!1;f>n;f--)g||r.index(f)>0?(g=!0,u=DD.from(r.node(f).copy(u)),h++):l--;let d=DD.empty,p=0;for(let f=o,g=!1;f>n;f--)g||i.after(f+1)<i.end(f)?(g=!0,d=DD.from(i.node(f).copy(d)),p++):c++;e.step(new gz(l,c,a,s,new zD(u.append(d),h,p),u.size-h,!0))}(this,e,t),this}join(e,t=1){return function(e,t,n){let r=null,{linebreakReplacement:i}=e.doc.type.schema,o=e.doc.resolve(t-n),a=o.node().type;if(i&&a.inlineContent){let e="pre"==a.whitespace,t=!!a.contentMatch.matchType(i);e&&!t?r=!1:!e&&t&&(r=!0)}let s=e.steps.length;if(!1===r){let r=e.doc.resolve(t+n);wz(e,r.node(),r.before(),s)}a.inlineContent&&Oz(e,t+n-1,a,o.node().contentMatchAt(o.index()),null==r);let l=e.mapping.slice(s),c=l.map(t-n);if(e.step(new fz(c,l.map(t+n,-1),zD.empty,!0)),!0===r){let t=e.doc.resolve(c);xz(e,t.node(),t.before(),e.steps.length)}}(this,e,t),this}wrap(e,t){return function(e,t,n){let r=DD.empty;for(let a=n.length-1;a>=0;a--){if(r.size){let e=n[a].type.contentMatch.matchFragment(r);if(!e||!e.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=DD.from(n[a].type.create(n[a].attrs,r))}let i=t.start,o=t.end;e.step(new gz(i,o,i,o,new zD(r,0,0),n.length,!0))}(this,e,t),this}setBlockType(e,t=e,n,r=null){return function(e,t,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let o=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{let a="function"==typeof i?i(t):i;if(t.isTextblock&&!t.hasMarkup(r,a)&&function(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}(e.doc,e.mapping.slice(o).map(n),r)){let i=null;if(r.schema.linebreakReplacement){let e="pre"==r.whitespace,t=!!r.contentMatch.matchType(r.schema.linebreakReplacement);e&&!t?i=!1:!e&&t&&(i=!0)}!1===i&&wz(e,t,n,o),Oz(e,e.mapping.slice(o).map(n,1),r,void 0,null===i);let s=e.mapping.slice(o),l=s.map(n,1),c=s.map(n+t.nodeSize,1);return e.step(new gz(l,c,l+1,c-1,new zD(DD.from(r.create(a,null,t.marks)),0,0),1,!0)),!0===i&&xz(e,t,n,o),!1}})}(this,e,t,n,r),this}setNodeMarkup(e,t,n=null,r){return function(e,t,n,r,i){let o=e.doc.nodeAt(t);if(!o)throw new RangeError("No node at given position");n||(n=o.type);let a=n.create(r,null,i||o.marks);if(o.isLeaf)return e.replaceWith(t,t+o.nodeSize,a);if(!n.validContent(o.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new gz(t,t+o.nodeSize,t+1,t+o.nodeSize-1,new zD(DD.from(a),0,0),1,!0))}(this,e,t,n,r),this}setNodeAttribute(e,t,n){return this.step(new Mz(e,t,n)),this}setDocAttribute(e,t){return this.step(new Nz(e,t)),this}addNodeMark(e,t){return this.step(new dz(e,t)),this}removeNodeMark(e,t){let n=this.doc.nodeAt(e);if(!n)throw new RangeError("No node at position "+e);if(t instanceof FD)t.isInSet(n.marks)&&this.step(new pz(e,t));else{let r,i=n.marks,o=[];for(;r=t.isInSet(i);)o.push(new pz(e,r)),i=r.removeFromSet(i);for(let e=o.length-1;e>=0;e--)this.step(o[e])}return this}split(e,t=1,n){return function(e,t,n=1,r){let i=e.doc.resolve(t),o=DD.empty,a=DD.empty;for(let s=i.depth,l=i.depth-n,c=n-1;s>l;s--,c--){o=DD.from(i.node(s).copy(o));let e=r&&r[c];a=DD.from(e?e.type.create(e.attrs,a):i.node(s).copy(a))}e.step(new fz(t,t,new zD(o.append(a),n,n),!0))}(this,e,t,n),this}addMark(e,t,n){return function(e,t,n,r){let i,o,a=[],s=[];e.doc.nodesBetween(t,n,(e,l,c)=>{if(!e.isInline)return;let u=e.marks;if(!r.isInSet(u)&&c.type.allowsMarkType(r.type)){let c=Math.max(l,t),h=Math.min(l+e.nodeSize,n),d=r.addToSet(u);for(let e=0;e<u.length;e++)u[e].isInSet(d)||(i&&i.to==c&&i.mark.eq(u[e])?i.to=h:a.push(i=new hz(c,h,u[e])));o&&o.to==c?o.to=h:s.push(o=new uz(c,h,r))}}),a.forEach(t=>e.step(t)),s.forEach(t=>e.step(t))}(this,e,t,n),this}removeMark(e,t,n){return function(e,t,n,r){let i=[],o=0;e.doc.nodesBetween(t,n,(e,a)=>{if(!e.isInline)return;o++;let s=null;if(r instanceof SM){let t,n=e.marks;for(;t=r.isInSet(n);)(s||(s=[])).push(t),n=t.removeFromSet(n)}else r?r.isInSet(e.marks)&&(s=[r]):s=e.marks;if(s&&s.length){let r=Math.min(a+e.nodeSize,n);for(let e=0;e<s.length;e++){let n,l=s[e];for(let e=0;e<i.length;e++){let t=i[e];t.step==o-1&&l.eq(i[e].style)&&(n=t)}n?(n.to=r,n.step=o):i.push({style:l,from:Math.max(a,t),to:r,step:o})}}}),i.forEach(t=>e.step(new hz(t.from,t.to,t.style)))}(this,e,t,n),this}clearIncompatible(e,t,n){return Oz(this,e,t,n),this}};const Uz=Object.create(null);let zz=class{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new qz(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=zD.empty){let n=t.content.lastChild,r=null;for(let a=0;a<t.openEnd;a++)r=n,n=n.lastChild;let i=e.steps.length,o=this.ranges;for(let a=0;a<o.length;a++){let{$from:s,$to:l}=o[a],c=e.mapping.slice(i);e.replaceRange(c.map(s.pos),c.map(l.pos),a?zD.empty:t),0==a&&eq(e,i,(n?n.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:o,$to:a}=r[i],s=e.mapping.slice(n),l=s.map(o.pos),c=s.map(a.pos);i?e.deleteRange(l,c):(e.replaceRangeWith(l,c,t),eq(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new jz(e):Jz(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let i=e.depth-1;i>=0;i--){let r=t<0?Jz(e.node(0),e.node(i),e.before(i+1),e.index(i),t,n):Jz(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,t,n);if(r)return r}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new Hz(e.node(0))}static atStart(e){return Jz(e,e,0,0,1)||new Hz(e)}static atEnd(e){return Jz(e,e,e.content.size,e.childCount,-1)||new Hz(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=Uz[t.type];if(!n)throw new RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in Uz)throw new RangeError("Duplicate use of selection JSON ID "+e);return Uz[e]=t,t.prototype.jsonID=e,t}getBookmark(){return jz.between(this.$anchor,this.$head).getBookmark()}};zz.prototype.visible=!0;let qz=class{constructor(e,t){this.$from=e,this.$to=t}},Vz=!1;function Wz(e){Vz||e.parent.inlineContent||(Vz=!0)}class jz extends zz{constructor(e,t=e){Wz(e),Wz(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let n=e.resolve(t.map(this.head));if(!n.parent.inlineContent)return zz.near(n);let r=e.resolve(t.map(this.anchor));return new jz(r.parent.inlineContent?r:n,n)}replace(e,t=zD.empty){if(super.replace(e,t),t==zD.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof jz&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Yz(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new jz(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(e,t,n){let r=e.pos-t.pos;if(n&&!r||(n=r>=0?1:-1),!t.parent.inlineContent){let e=zz.findFrom(t,n,!0)||zz.findFrom(t,-n,!0);if(!e)return zz.near(t,n);t=e.$head}return e.parent.inlineContent||(0==r||(e=(zz.findFrom(e,-n,!0)||zz.findFrom(e,n,!0)).$anchor).pos<t.pos!=r<0)&&(e=t),new jz(e,t)}}zz.jsonID("text",jz);class Yz{constructor(e,t){this.anchor=e,this.head=t}map(e){return new Yz(e.map(this.anchor),e.map(this.head))}resolve(e){return jz.between(e.resolve(this.anchor),e.resolve(this.head))}}class Zz extends zz{constructor(e){let t=e.nodeAfter,n=e.node(0).resolve(e.pos+t.nodeSize);super(e,n),this.node=t}map(e,t){let{deleted:n,pos:r}=t.mapResult(this.anchor),i=e.resolve(r);return n?zz.near(i):new Zz(i)}content(){return new zD(DD.from(this.node),0,0)}eq(e){return e instanceof Zz&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Gz(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new Zz(e.resolve(t.anchor))}static create(e,t){return new Zz(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}Zz.prototype.visible=!1,zz.jsonID("node",Zz);class Gz{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:n}=e.mapResult(this.anchor);return t?new Yz(n,n):new Gz(n)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&Zz.isSelectable(n)?new Zz(t):zz.near(t)}}class Hz extends zz{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=zD.empty){if(t==zD.empty){e.delete(0,e.doc.content.size);let t=zz.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new Hz(e)}map(e){return new Hz(e)}eq(e){return e instanceof Hz}getBookmark(){return Kz}}zz.jsonID("all",Hz);const Kz={map(){return this},resolve:e=>new Hz(e)};function Jz(e,t,n,r,i,o=!1){if(t.inlineContent)return jz.create(e,n);for(let a=r-(i>0?0:1);i>0?a<t.childCount:a>=0;a+=i){let r=t.child(a);if(r.isAtom){if(!o&&Zz.isSelectable(r))return Zz.create(e,n-(i<0?r.nodeSize:0))}else{let t=Jz(e,r,n+i,i<0?r.childCount:0,i,o);if(t)return t}n+=r.nodeSize*i}return null}function eq(e,t,n){let r=e.steps.length-1;if(r<t)return;let i,o=e.steps[r];(o instanceof fz||o instanceof gz)&&(e.mapping.maps[r].forEach((e,t,n,r)=>{null==i&&(i=r)}),e.setSelection(zz.near(e.doc.resolve(i),n)))}let tq=class extends Fz{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=-3&this.updated|1,this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=2,this}ensureMarks(e){return FD.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(e,t){super.addStep(e,t),this.updated=-3&this.updated,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||FD.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n){let r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(null==n&&(n=t),!e)return this.deleteRange(t,n);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=n==t?e.marks():e.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,i)),this.selection.empty||this.selection.to!=t+e.length||this.setSelection(zz.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}};function nq(e,t){return t&&e?e.bind(t):e}class rq{constructor(e,t,n){this.name=e,this.init=nq(t.init,n),this.apply=nq(t.apply,n)}}const iq=[new rq("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new rq("selection",{init:(e,t)=>e.selection||zz.atStart(t.doc),apply:e=>e.selection}),new rq("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,n,r)=>r.selection.$cursor?e.storedMarks:null}),new rq("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t})];let oq=class{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=iq.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new rq(e.key,e.spec.state,e))})}},aq=class e{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=t){let t=this.config.plugins[n];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],n=this.applyInner(e),r=null;for(;;){let i=!1;for(let o=0;o<this.config.plugins.length;o++){let a=this.config.plugins[o];if(a.spec.appendTransaction){let s=r?r[o].n:0,l=r?r[o].state:this,c=s<t.length&&a.spec.appendTransaction.call(a,s?t.slice(s):t,l,n);if(c&&n.filterTransaction(c,o)){if(c.setMeta("appendedTransaction",e),!r){r=[];for(let e=0;e<this.config.plugins.length;e++)r.push(e<o?{state:n,n:t.length}:{state:this,n:0})}t.push(c),n=n.applyInner(c),i=!0}r&&(r[o]={state:n,n:t.length})}}if(!i)return{state:n,transactions:t}}}applyInner(t){if(!t.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new e(this.config),r=this.config.fields;for(let e=0;e<r.length;e++){let i=r[e];n[i.name]=i.apply(t,this[i.name],this,n)}return n}get tr(){return new tq(this)}static create(t){let n=new oq(t.doc?t.doc.type.schema:t.schema,t.plugins),r=new e(n);for(let e=0;e<n.fields.length;e++)r[n.fields[e].name]=n.fields[e].init(t,r);return r}reconfigure(t){let n=new oq(this.schema,t.plugins),r=n.fields,i=new e(n);for(let e=0;e<r.length;e++){let n=r[e].name;i[n]=this.hasOwnProperty(n)?this[n]:r[e].init(t,i)}return i}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&"object"==typeof e)for(let n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],i=r.spec.state;i&&i.toJSON&&(t[n]=i.toJSON.call(r,this[r.key]))}return t}static fromJSON(t,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let i=new oq(t.schema,t.plugins),o=new e(i);return i.fields.forEach(e=>{if("doc"==e.name)o.doc=sM.fromJSON(t.schema,n.doc);else if("selection"==e.name)o.selection=zz.fromJSON(o.doc,n.selection);else if("storedMarks"==e.name)n.storedMarks&&(o.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(r)for(let i in r){let a=r[i],s=a.spec.state;if(a.key==e.name&&s&&s.fromJSON&&Object.prototype.hasOwnProperty.call(n,i))return void(o[e.name]=s.fromJSON.call(a,t,n[i],o))}o[e.name]=e.init(t,o)}}),o}};function sq(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):"handleDOMEvents"==r&&(i=sq(i,t,{})),n[r]=i}return n}class lq{constructor(e){this.spec=e,this.props={},e.props&&sq(e.props,this,this.props),this.key=e.key?e.key.key:uq("plugin")}getState(e){return e[this.key]}}const cq=Object.create(null);function uq(e){return e in cq?e+"$"+ ++cq[e]:(cq[e]=0,e+"$")}class hq{constructor(e="key"){this.key=uq(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}class dq{constructor(e,t,n={}){var r;this.match=e,this.match=e,this.handler="string"==typeof t?(r=t,function(e,t,n,i){let o=r;if(t[1]){let e=t[0].lastIndexOf(t[1]);o+=t[0].slice(e+t[1].length);let r=(n+=e)-i;r>0&&(o=t[0].slice(e-r,e)+o,n=i)}return e.tr.insertText(o,n,i)}):t,this.undoable=!1!==n.undoable,this.inCode=n.inCode||!1,this.inCodeMark=!1!==n.inCodeMark}}const pq=(e,t)=>{let n=e.plugins;for(let r=0;r<n.length;r++){let i,o=n[r];if(o.spec.isInputRules&&(i=o.getState(e))){if(t){let n=e.tr,r=i.transform;for(let e=r.steps.length-1;e>=0;e--)n.step(r.steps[e].invert(r.docs[e]));if(i.text){let t=n.doc.resolve(i.from).marks();n.replaceWith(i.from,i.to,e.schema.text(i.text,t))}else n.delete(i.from,i.to);t(n)}return!0}}return!1};function fq(e,t,n=null,r){return new dq(e,(e,i,o,a)=>{let s=n instanceof Function?n(i):n,l=e.tr.delete(o,a),c=l.doc.resolve(o).blockRange(),u=c&&vz(c,t,s);if(!u)return null;l.wrap(c,u);let h=l.doc.resolve(o-1).nodeBefore;return h&&h.type==t&&Sz(l.doc,o-1)&&(!r||r(i,h))&&l.join(o-1),l})}function gq(e,t,n=null){return new dq(e,(e,r,i,o)=>{let a=e.doc.resolve(i),s=n instanceof Function?n(r):n;return a.node(-1).canReplaceWith(a.index(-1),a.indexAfter(-1),t)?e.tr.delete(i,o).setBlockType(i,i,t,s):null})}new dq(/--$/,"—",{inCodeMark:!1}),new dq(/\.\.\.$/,"…",{inCodeMark:!1}),new dq(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“",{inCodeMark:!1}),new dq(/"$/,"”",{inCodeMark:!1}),new dq(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘",{inCodeMark:!1}),new dq(/'$/,"’",{inCodeMark:!1});const mq="undefined"!=typeof navigator?navigator:null,Oq="undefined"!=typeof document?document:null,Aq=mq&&mq.userAgent||"",yq=/Edge\/(\d+)/.exec(Aq),vq=/MSIE \d/.exec(Aq),bq=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Aq),xq=!!(vq||bq||yq),wq=vq?document.documentMode:bq?+bq[1]:yq?+yq[1]:0,kq=!xq&&/gecko\/(\d+)/i.test(Aq),Sq=kq&&+(/Firefox\/(\d+)/.exec(Aq)||[0,0])[1],Tq=!xq&&/Chrome\/(\d+)/.exec(Aq),$q=!!Tq,_q=Tq?+Tq[1]:0,Cq=!xq&&!!mq&&/Apple Computer/.test(mq.vendor),Qq=Cq&&(/Mobile\/\w+/.test(Aq)||!!mq&&mq.maxTouchPoints>2),Pq=Qq||!!mq&&/Mac/.test(mq.platform),Eq=/Android \d/.test(Aq),Rq=!!Oq&&"webkitFontSmoothing"in Oq.documentElement.style,Bq=Rq?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;var Iq=Object.freeze({__proto__:null,android:Eq,chrome:$q,chrome_version:_q,gecko:kq,gecko_version:Sq,ie:xq,ie_version:wq,ios:Qq,mac:Pq,safari:Cq,webkit:Rq,webkit_version:Bq});function Lq(e,t,n,r,i,o){var a;if(e.composing)return!1;const s=e.state,l=s.doc.resolve(t);if(l.parent.type.spec.code)return!1;const c=l.parent.textBetween(Math.max(0,l.parentOffset-500),l.parentOffset,void 0,"")+r;for(let u=0;u<i.length;u++){const l=i[u].match.exec(c),h=l&&l[0]&&i[u].handler(s,l,t-(l[0].length-r.length),n);if(h)return!1!==(null==(a=i[u])?void 0:a.undoable)&&h.setMeta(o,{transform:h,from:t,to:n,text:r}),e.dispatch(h),!0}return!1}const Dq=new hq("MILKDOWN_CUSTOM_INPUTRULES");function Mq({rules:e}){const t=new lq({key:Dq,isInputRules:!0,state:{init:()=>null,apply(e,t){const n=e.getMeta(this);return n||(e.selectionSet||e.docChanged?null:t)}},props:{handleTextInput:(n,r,i,o)=>Lq(n,r,i,o,e,t),handleDOMEvents:{compositionend:n=>(setTimeout(()=>{const{$cursor:r}=n.state.selection;r&&Lq(n,r.pos,r.pos,"",e,t)}),!1)},handleKeyDown(n,r){if("Enter"!==r.key)return!1;const{$cursor:i}=n.state.selection;return!!i&&Lq(n,i.pos,i.pos,"\n",e,t)}}});return t}function Nq(e,t,n={}){return new dq(e,(e,r,i,o)=>{var a,s,l,c;const{tr:u}=e;let h=r[r.length-1],d=r[0],p=[],f=o;const g={group:h,fullMatch:d,start:i,end:o},m=null==(a=n.updateCaptured)?void 0:a.call(n,g);if(Object.assign(g,m),({group:h,fullMatch:d,start:i,end:o}=g),null===d)return null;if(""===(null==h?void 0:h.trim()))return null;if(h){const e=d.search(/\S/),a=i+d.indexOf(h),g=a+h.length;p=null!=(s=u.storedMarks)?s:[],g<o&&u.delete(g,o),a>i&&u.delete(i+e,a),f=i+e+h.length;const m=null==(l=n.getAttr)?void 0:l.call(n,r);u.addMark(i,f,t.create(m)),u.setStoredMarks(p),null==(c=n.beforeDispatch)||c.call(n,{match:r,start:i,end:o,tr:u})}return u})}var Xq=Object.defineProperty,Fq=Object.defineProperties,Uq=Object.getOwnPropertyDescriptors,zq=Object.getOwnPropertySymbols,qq=Object.prototype.hasOwnProperty,Vq=Object.prototype.propertyIsEnumerable,Wq=(e,t,n)=>t in e?Xq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function jq(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function Yq(e,t,n){const r=e.state.doc.content.size,i=jq(t,0,r),o=jq(n,0,r),a=e.coordsAtPos(i),s=e.coordsAtPos(o,-1),l=Math.min(a.top,s.top),c=Math.max(a.bottom,s.bottom),u=Math.min(a.left,s.left),h=Math.max(a.right,s.right),d={top:l,bottom:c,left:u,right:h,width:h-u,height:c-l,x:u,y:l};return p=((e,t)=>{for(var n in t||(t={}))qq.call(t,n)&&Wq(e,n,t[n]);if(zq)for(var n of zq(t))Vq.call(t,n)&&Wq(e,n,t[n]);return e})({},d),Fq(p,Uq({toJSON:()=>d}));var p}function Zq(e){return Object.assign(Object.create(e),e).setTime(Date.now())}function Gq(e){return t=>{for(let n=t.depth;n>0;n-=1){const r=t.node(n);if(e(r)){return{from:t.before(n),to:t.after(n),node:r}}}}}function Hq(e,t){const n=t.nodes[e];if(!n)throw function(e,t){return new UL(FL.getAtomFromSchemaFail,`Cannot get ${e}: ${t} from schema.`)}("node",e);return n}function Kq(e){return t=>{for(let n=t.depth;n>0;n--){const r=t.node(n);if(e(r))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:r}}}}function Jq(e,t){if(!(e instanceof Zz))return;const{node:n,$from:r}=e;return function(e,t){return Array.isArray(e)&&e.includes(t.type)||t.type===e}(t,n)?{node:n,pos:r.pos,start:r.start(r.depth),depth:r.depth}:void 0}const eV=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);const tV=(e,t,n)=>{let r=function(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}(e,n);if(!r)return!1;let i=iV(r);if(!i){let n=r.blockRange(),i=n&&yz(n);return null!=i&&(t&&t(e.tr.lift(n,i).scrollIntoView()),!0)}let o=i.nodeBefore;if(cV(e,i,t,-1))return!0;if(0==r.parent.content.size&&(nV(o,"end")||Zz.isSelectable(o)))for(let a=r.depth;;a--){let n=$z(e.doc,r.before(a),r.after(a),zD.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(nV(o,"end")?zz.findFrom(r.doc.resolve(r.mapping.map(i.pos,-1)),-1):Zz.create(r.doc,i.pos-o.nodeSize)),t(r.scrollIntoView())}return!0}if(1==a||r.node(a-1).childCount>1)break}return!(!o.isAtom||i.depth!=r.depth-1)&&(t&&t(e.tr.delete(i.pos-o.nodeSize,i.pos).scrollIntoView()),!0)};function nV(e,t,n=!1){for(let r=e;r;r="start"==t?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&1!=r.childCount)return!1}return!1}const rV=(e,t,n)=>{let{$head:r,empty:i}=e.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;o=iV(r)}let a=o&&o.nodeBefore;return!(!a||!Zz.isSelectable(a))&&(t&&t(e.tr.setSelection(Zz.create(e.doc,o.pos-a.nodeSize)).scrollIntoView()),!0)};function iV(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function oV(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}function aV(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const sV=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),o=n.indexAfter(-1),a=aV(i.contentMatchAt(o));if(!a||!i.canReplaceWith(o,o,a))return!1;if(t){let r=n.after(),i=e.tr.replaceWith(r,r,a.createAndFill());i.setSelection(zz.near(i.doc.resolve(r),1)),t(i.scrollIntoView())}return!0};const lV=(e,t)=>{let{$from:n,$to:r}=e.selection;if(e.selection instanceof Zz&&e.selection.node.isBlock)return!(!n.parentOffset||!kz(e.doc,n.pos)||(t&&t(e.tr.split(n.pos).scrollIntoView()),0));if(!n.depth)return!1;let i,o,a=[],s=!1,l=!1;for(let d=n.depth;;d--){if(n.node(d).isBlock){s=n.end(d)==n.pos+(n.depth-d),l=n.start(d)==n.pos-(n.depth-d),o=aV(n.node(d-1).contentMatchAt(n.indexAfter(d-1))),a.unshift(s&&o?{type:o}:null),i=d;break}if(1==d)return!1;a.unshift(null)}let c=e.tr;(e.selection instanceof jz||e.selection instanceof Hz)&&c.deleteSelection();let u=c.mapping.map(n.pos),h=kz(c.doc,u,a.length,a);if(h||(a[0]=o?{type:o}:null,h=kz(c.doc,u,a.length,a)),!h)return!1;if(c.split(u,a.length,a),!s&&l&&n.node(i).type!=o){let e=c.mapping.map(n.before(i)),t=c.doc.resolve(e);o&&n.node(i-1).canReplaceWith(t.index(),t.index()+1,o)&&c.setNodeMarkup(c.mapping.map(n.before(i)),o)}return t&&t(c.scrollIntoView()),!0};function cV(e,t,n,r){let i,o,a=t.nodeBefore,s=t.nodeAfter,l=a.type.spec.isolating||s.type.spec.isolating;if(!l&&function(e,t,n){let r=t.nodeBefore,i=t.nodeAfter,o=t.index();return!(!(r&&i&&r.type.compatibleContent(i.type))||(!r.content.size&&t.parent.canReplace(o-1,o)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),0):!t.parent.canReplace(o,o+1)||!i.isTextblock&&!Sz(e.doc,t.pos)||(n&&n(e.tr.join(t.pos).scrollIntoView()),0)))}(e,t,n))return!0;let c=!l&&t.parent.canReplace(t.index(),t.index()+1);if(c&&(i=(o=a.contentMatchAt(a.childCount)).findWrapping(s.type))&&o.matchType(i[0]||s.type).validEnd){if(n){let r=t.pos+s.nodeSize,o=DD.empty;for(let e=i.length-1;e>=0;e--)o=DD.from(i[e].create(null,o));o=DD.from(a.copy(o));let l=e.tr.step(new gz(t.pos-1,r,t.pos,r,new zD(o,1,0),i.length,!0)),c=l.doc.resolve(r+2*i.length);c.nodeAfter&&c.nodeAfter.type==a.type&&Sz(l.doc,c.pos)&&l.join(c.pos),n(l.scrollIntoView())}return!0}let u=s.type.spec.isolating||r>0&&l?null:zz.findFrom(t,1),h=u&&u.$from.blockRange(u.$to),d=h&&yz(h);if(null!=d&&d>=t.depth)return n&&n(e.tr.lift(h,d).scrollIntoView()),!0;if(c&&nV(s,"start",!0)&&nV(a,"end")){let r=a,i=[];for(;i.push(r),!r.isTextblock;)r=r.lastChild;let o=s,l=1;for(;!o.isTextblock;o=o.firstChild)l++;if(r.canReplace(r.childCount,r.childCount,o.content)){if(n){let r=DD.empty;for(let e=i.length-1;e>=0;e--)r=DD.from(i[e].copy(r));n(e.tr.step(new gz(t.pos-i.length,t.pos+s.nodeSize,t.pos+l,t.pos+s.nodeSize-l,new zD(r,i.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function uV(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,o=i.depth;for(;i.node(o).isInline;){if(!o)return!1;o--}return!!i.node(o).isTextblock&&(n&&n(t.tr.setSelection(jz.create(t.doc,e<0?i.start(o):i.end(o)))),!0)}}const hV=uV(-1),dV=uV(1);function pV(e,t=null){return function(n,r){let{$from:i,$to:o}=n.selection,a=i.blockRange(o),s=a&&vz(a,e,t);return!!s&&(r&&r(n.tr.wrap(a,s).scrollIntoView()),!0)}}function fV(e,t=null){return function(n,r){let i=!1;for(let o=0;o<n.selection.ranges.length&&!i;o++){let{$from:{pos:r},$to:{pos:a}}=n.selection.ranges[o];n.doc.nodesBetween(r,a,(r,o)=>{if(i)return!1;if(r.isTextblock&&!r.hasMarkup(e,t))if(r.type==e)i=!0;else{let t=n.doc.resolve(o),r=t.index();i=t.parent.canReplaceWith(r,r+1,e)}})}if(!i)return!1;if(r){let i=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:o},$to:{pos:a}}=n.selection.ranges[r];i.setBlockType(o,a,e,t)}r(i.scrollIntoView())}return!0}}function gV(e,t=null,n){return function(n,r){let{empty:i,$cursor:o,ranges:a}=n.selection;if(i&&!o||!function(e,t,n){for(let r=0;r<t.length;r++){let{$from:i,$to:o}=t[r],a=0==i.depth&&e.inlineContent&&e.type.allowsMarkType(n);if(e.nodesBetween(i.pos,o.pos,(e,t)=>{if(a)return!1;a=e.inlineContent&&e.type.allowsMarkType(n)}),a)return!0}return!1}(n.doc,a,e))return!1;if(r)if(o)e.isInSet(n.storedMarks||o.marks())?r(n.tr.removeStoredMark(e)):r(n.tr.addStoredMark(e.create(t)));else{let i,o=n.tr;i=!a.some(t=>n.doc.rangeHasMark(t.$from.pos,t.$to.pos,e));for(let n=0;n<a.length;n++){let{$from:r,$to:s}=a[n];if(i){let n=r.pos,i=s.pos,a=r.nodeAfter,l=s.nodeBefore,c=a&&a.isText?/^\s*/.exec(a.text)[0].length:0,u=l&&l.isText?/\s*$/.exec(l.text)[0].length:0;n+c<i&&(n+=c,i-=u),o.addMark(n,i,e.create(t))}else o.removeMark(r.pos,s.pos,e)}r(o.scrollIntoView())}return!0}}function mV(...e){return function(t,n,r){for(let i=0;i<e.length;i++)if(e[i](t,n,r))return!0;return!1}}let OV=mV(eV,tV,rV),AV=mV(eV,(e,t,n)=>{let r=function(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)?null:n}(e,n);if(!r)return!1;let i=oV(r);if(!i)return!1;let o=i.nodeAfter;if(cV(e,i,t,1))return!0;if(0==r.parent.content.size&&(nV(o,"start")||Zz.isSelectable(o))){let n=$z(e.doc,r.before(),r.after(),zD.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(nV(o,"start")?zz.findFrom(r.doc.resolve(r.mapping.map(i.pos)),1):Zz.create(r.doc,r.mapping.map(i.pos))),t(r.scrollIntoView())}return!0}}return!(!o.isAtom||i.depth!=r.depth-1)&&(t&&t(e.tr.delete(i.pos,i.pos+o.nodeSize).scrollIntoView()),!0)},(e,t,n)=>{let{$head:r,empty:i}=e.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)return!1;o=oV(r)}let a=o&&o.nodeAfter;return!(!a||!Zz.isSelectable(a))&&(t&&t(e.tr.setSelection(Zz.create(e.doc,o.pos)).scrollIntoView()),!0)});const yV={Enter:mV((e,t)=>{let{$head:n,$anchor:r}=e.selection;return!(!n.parent.type.spec.code||!n.sameParent(r))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)},(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof Hz||r.parent.inlineContent||i.parent.inlineContent)return!1;let o=aV(i.parent.contentMatchAt(i.indexAfter()));if(!o||!o.isTextblock)return!1;if(t){let n=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,a=e.tr.insert(n,o.createAndFill());a.setSelection(jz.create(a.doc,n+1)),t(a.scrollIntoView())}return!0},(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if(kz(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),i=r&&yz(r);return null!=i&&(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)},lV),"Mod-Enter":sV,Backspace:OV,"Mod-Backspace":OV,"Shift-Backspace":OV,Delete:AV,"Mod-Delete":AV,"Mod-a":(e,t)=>(t&&t(e.tr.setSelection(new Hz(e.doc))),!0)},vV={"Ctrl-h":yV.Backspace,"Alt-Backspace":yV["Mod-Backspace"],"Ctrl-d":yV.Delete,"Ctrl-Alt-Backspace":yV["Mod-Delete"],"Alt-Delete":yV["Mod-Delete"],"Alt-d":yV["Mod-Delete"],"Ctrl-a":hV,"Ctrl-e":dV};for(let c in yV)vV[c]=yV[c];const bV=("undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!("undefined"==typeof os||!os.platform)&&"darwin"==os.platform())?vV:yV;for(var xV={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},wV={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},kV="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),SV="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),TV=0;TV<10;TV++)xV[48+TV]=xV[96+TV]=String(TV);for(TV=1;TV<=24;TV++)xV[TV+111]="F"+TV;for(TV=65;TV<=90;TV++)xV[TV]=String.fromCharCode(TV+32),wV[TV]=String.fromCharCode(TV);for(var $V in xV)wV.hasOwnProperty($V)||(wV[$V]=xV[$V]);function _V(e){var t=!(kV&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||SV&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?wV:xV)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}const CV="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),QV="undefined"!=typeof navigator&&/Win/.test(navigator.platform);function PV(e){let t,n,r,i,o=e.split(/-(?!$)/),a=o[o.length-1];"Space"==a&&(a=" ");for(let s=0;s<o.length-1;s++){let e=o[s];if(/^(cmd|meta|m)$/i.test(e))i=!0;else if(/^a(lt)?$/i.test(e))t=!0;else if(/^(c|ctrl|control)$/i.test(e))n=!0;else if(/^s(hift)?$/i.test(e))r=!0;else{if(!/^mod$/i.test(e))throw new Error("Unrecognized modifier name: "+e);CV?i=!0:n=!0}}return t&&(a="Alt-"+a),n&&(a="Ctrl-"+a),i&&(a="Meta-"+a),r&&(a="Shift-"+a),a}function EV(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function RV(e){return new lq({props:{handleKeyDown:BV(e)}})}function BV(e){let t=function(e){let t=Object.create(null);for(let n in e)t[PV(n)]=e[n];return t}(e);return function(e,n){let r,i=_V(n),o=t[EV(i,n)];if(o&&o(e.state,e.dispatch,e))return!0;if(1==i.length&&" "!=i){if(n.shiftKey){let r=t[EV(i,n,!1)];if(r&&r(e.state,e.dispatch,e))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(QV&&n.ctrlKey&&n.altKey)&&(r=xV[n.keyCode])&&r!=i){let i=t[EV(r,n)];if(i&&i(e.state,e.dispatch,e))return!0}}return!1}}const IV=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},LV=function(e){let t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t};let DV=null;const MV=function(e,t,n){let r=DV||(DV=document.createRange());return r.setEnd(e,null==n?e.nodeValue.length:n),r.setStart(e,t||0),r},NV=function(e,t,n,r){return n&&(FV(e,t,n,r,-1)||FV(e,t,n,r,1))},XV=/^(img|br|input|textarea|hr)$/i;function FV(e,t,n,r,i){for(var o;;){if(e==n&&t==r)return!0;if(t==(i<0?0:UV(e))){let n=e.parentNode;if(!n||1!=n.nodeType||zV(e)||XV.test(e.nodeName)||"false"==e.contentEditable)return!1;t=IV(e)+(i<0?0:1),e=n}else{if(1!=e.nodeType)return!1;{let n=e.childNodes[t+(i<0?-1:0)];if(1==n.nodeType&&"false"==n.contentEditable){if(!(null===(o=n.pmViewDesc)||void 0===o?void 0:o.ignoreForSelection))return!1;t+=i}else e=n,t=i<0?UV(e):0}}}}function UV(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function zV(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const qV=function(e){return e.focusNode&&NV(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function VV(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}const WV="undefined"!=typeof navigator?navigator:null,jV="undefined"!=typeof document?document:null,YV=WV&&WV.userAgent||"",ZV=/Edge\/(\d+)/.exec(YV),GV=/MSIE \d/.exec(YV),HV=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(YV),KV=!!(GV||HV||ZV),JV=GV?document.documentMode:HV?+HV[1]:ZV?+ZV[1]:0,eW=!KV&&/gecko\/(\d+)/i.test(YV);eW&&(/Firefox\/(\d+)/.exec(YV)||[0,0])[1];const tW=!KV&&/Chrome\/(\d+)/.exec(YV),nW=!!tW,rW=tW?+tW[1]:0,iW=!KV&&!!WV&&/Apple Computer/.test(WV.vendor),oW=iW&&(/Mobile\/\w+/.test(YV)||!!WV&&WV.maxTouchPoints>2),aW=oW||!!WV&&/Mac/.test(WV.platform),sW=!!WV&&/Win/.test(WV.platform),lW=/Android \d/.test(YV),cW=!!jV&&"webkitFontSmoothing"in jV.documentElement.style,uW=cW?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function hW(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function dW(e,t){return"number"==typeof e?e:e[t]}function pW(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function fW(e,t,n){let r=e.someProp("scrollThreshold")||0,i=e.someProp("scrollMargin")||5,o=e.dom.ownerDocument;for(let a=n||e.dom;a;){if(1!=a.nodeType){a=LV(a);continue}let e=a,n=e==o.body,s=n?hW(o):pW(e),l=0,c=0;if(t.top<s.top+dW(r,"top")?c=-(s.top-t.top+dW(i,"top")):t.bottom>s.bottom-dW(r,"bottom")&&(c=t.bottom-t.top>s.bottom-s.top?t.top+dW(i,"top")-s.top:t.bottom-s.bottom+dW(i,"bottom")),t.left<s.left+dW(r,"left")?l=-(s.left-t.left+dW(i,"left")):t.right>s.right-dW(r,"right")&&(l=t.right-s.right+dW(i,"right")),l||c)if(n)o.defaultView.scrollBy(l,c);else{let n=e.scrollLeft,r=e.scrollTop;c&&(e.scrollTop+=c),l&&(e.scrollLeft+=l);let i=e.scrollLeft-n,o=e.scrollTop-r;t={left:t.left-i,top:t.top-o,right:t.right-i,bottom:t.bottom-o}}let u=n?"fixed":getComputedStyle(a).position;if(/^(fixed|sticky)$/.test(u))break;a="absolute"==u?a.offsetParent:LV(a)}}function gW(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=LV(r));return t}function mW(e,t){for(let n=0;n<e.length;n++){let{dom:r,top:i,left:o}=e[n];r.scrollTop!=i+t&&(r.scrollTop=i+t),r.scrollLeft!=o&&(r.scrollLeft=o)}}let OW=null;function AW(e,t){let n,r,i,o,a=2e8,s=0,l=t.top,c=t.top;for(let u=e.firstChild,h=0;u;u=u.nextSibling,h++){let e;if(1==u.nodeType)e=u.getClientRects();else{if(3!=u.nodeType)continue;e=MV(u).getClientRects()}for(let d=0;d<e.length;d++){let p=e[d];if(p.top<=l&&p.bottom>=c){l=Math.max(p.bottom,l),c=Math.min(p.top,c);let e=p.left>t.left?p.left-t.left:p.right<t.left?t.left-p.right:0;if(e<a){n=u,a=e,r=e&&3==n.nodeType?{left:p.right<t.left?p.right:p.left,top:t.top}:t,1==u.nodeType&&e&&(s=h+(t.left>=(p.left+p.right)/2?1:0));continue}}else p.top>t.top&&!i&&p.left<=t.left&&p.right>=t.left&&(i=u,o={left:Math.max(p.left,Math.min(p.right,t.left)),top:p.top});!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(s=h+1)}}return!n&&i&&(n=i,r=o,a=0),n&&3==n.nodeType?function(e,t){let n,r=e.nodeValue.length,i=document.createRange();for(let o=0;o<r;o++){i.setEnd(e,o+1),i.setStart(e,o);let r=wW(i,1);if(r.top!=r.bottom&&yW(t,r)){n={node:e,offset:o+(t.left>=(r.left+r.right)/2?1:0)};break}}return i.detach(),n||{node:e,offset:0}}(n,r):!n||a&&1==n.nodeType?{node:e,offset:s}:AW(n,r)}function yW(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function vW(e,t,n){let r=e.childNodes.length;if(r&&n.top<n.bottom)for(let i=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),o=i;;){let n=e.childNodes[o];if(1==n.nodeType){let e=n.getClientRects();for(let r=0;r<e.length;r++){let i=e[r];if(yW(t,i))return vW(n,t,i)}}if((o=(o+1)%r)==i)break}return e}function bW(e,t){let n,r=e.dom.ownerDocument,i=0,o=function(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(UV(r.offsetNode),r.offset)}}catch(r){}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:Math.min(UV(r.startContainer),r.startOffset)}}}(r,t.left,t.top);o&&({node:n,offset:i}=o);let a,s=(e.root.elementFromPoint?e.root:r).elementFromPoint(t.left,t.top);if(!s||!e.dom.contains(1!=s.nodeType?s.parentNode:s)){let n=e.dom.getBoundingClientRect();if(!yW(t,n))return null;if(s=vW(e.dom,t,n),!s)return null}if(iW)for(let c=s;n&&c;c=LV(c))c.draggable&&(n=void 0);if(s=function(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}(s,t),n){if(eW&&1==n.nodeType&&(i=Math.min(i,n.childNodes.length),i<n.childNodes.length)){let e,r=n.childNodes[i];"IMG"==r.nodeName&&(e=r.getBoundingClientRect()).right<=t.left&&e.bottom>t.top&&i++}let r;cW&&i&&1==n.nodeType&&1==(r=n.childNodes[i-1]).nodeType&&"false"==r.contentEditable&&r.getBoundingClientRect().top>=t.top&&i--,n==e.dom&&i==n.childNodes.length-1&&1==n.lastChild.nodeType&&t.top>n.lastChild.getBoundingClientRect().bottom?a=e.state.doc.content.size:0!=i&&1==n.nodeType&&"BR"==n.childNodes[i-1].nodeName||(a=function(e,t,n,r){let i=-1;for(let o=t,a=!1;o!=e.dom;){let t,n=e.docView.nearestDesc(o,!0);if(!n)return null;if(1==n.dom.nodeType&&(n.node.isBlock&&n.parent||!n.contentDOM)&&((t=n.dom.getBoundingClientRect()).width||t.height)&&(n.node.isBlock&&n.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(n.dom.nodeName)&&(!a&&t.left>r.left||t.top>r.top?i=n.posBefore:(!a&&t.right<r.left||t.bottom<r.top)&&(i=n.posAfter),a=!0),!n.contentDOM&&i<0&&!n.node.isText))return(n.node.isBlock?r.top<(t.top+t.bottom)/2:r.left<(t.left+t.right)/2)?n.posBefore:n.posAfter;o=n.dom.parentNode}return i>-1?i:e.docView.posFromDOM(t,n,-1)}(e,n,i,t))}null==a&&(a=function(e,t,n){let{node:r,offset:i}=AW(t,n),o=-1;if(1==r.nodeType&&!r.firstChild){let e=r.getBoundingClientRect();o=e.left!=e.right&&n.left>(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(r,i,o)}(e,s,t));let l=e.docView.nearestDesc(s,!0);return{pos:a,inside:l?l.posAtStart-l.border:-1}}function xW(e){return e.top<e.bottom||e.left<e.right}function wW(e,t){let n=e.getClientRects();if(n.length){let e=n[t<0?0:n.length-1];if(xW(e))return e}return Array.prototype.find.call(n,xW)||e.getBoundingClientRect()}const kW=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function SW(e,t,n){let{node:r,offset:i,atom:o}=e.docView.domFromPos(t,n<0?-1:1),a=cW||eW;if(3==r.nodeType){if(!a||!kW.test(r.nodeValue)&&(n<0?i:i!=r.nodeValue.length)){let e=i,t=i,o=n<0?1:-1;return n<0&&!i?(t++,o=-1):n>=0&&i==r.nodeValue.length?(e--,o=1):n<0?e--:t++,TW(wW(MV(r,e,t),o),o<0)}{let e=wW(MV(r,i,i),n);if(eW&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let t=wW(MV(r,i-1,i-1),-1);if(t.top==e.top){let n=wW(MV(r,i,i+1),-1);if(n.top!=e.top)return TW(n,n.left<t.left)}}return e}}if(!e.state.doc.resolve(t-(o||0)).parent.inlineContent){if(null==o&&i&&(n<0||i==UV(r))){let e=r.childNodes[i-1];if(1==e.nodeType)return $W(e.getBoundingClientRect(),!1)}if(null==o&&i<UV(r)){let e=r.childNodes[i];if(1==e.nodeType)return $W(e.getBoundingClientRect(),!0)}return $W(r.getBoundingClientRect(),n>=0)}if(null==o&&i&&(n<0||i==UV(r))){let e=r.childNodes[i-1],t=3==e.nodeType?MV(e,UV(e)-(a?0:1)):1!=e.nodeType||"BR"==e.nodeName&&e.nextSibling?null:e;if(t)return TW(wW(t,1),!1)}if(null==o&&i<UV(r)){let e=r.childNodes[i];for(;e.pmViewDesc&&e.pmViewDesc.ignoreForCoords;)e=e.nextSibling;let t=e?3==e.nodeType?MV(e,0,a?0:1):1==e.nodeType?e:null:null;if(t)return TW(wW(t,-1),!0)}return TW(wW(3==r.nodeType?MV(r):r,-n),n>=0)}function TW(e,t){if(0==e.width)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function $W(e,t){if(0==e.height)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function _W(e,t,n){let r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}const CW=/[\u0590-\u08ac]/;let QW=null,PW=null,EW=!1;function RW(e,t,n){return QW==t&&PW==n?EW:(QW=t,PW=n,EW="up"==n||"down"==n?function(e,t,n){let r=t.selection,i="up"==n?r.$from:r.$to;return _W(e,t,()=>{let{node:t}=e.docView.domFromPos(i.pos,"up"==n?-1:1);for(;;){let n=e.docView.nearestDesc(t,!0);if(!n)break;if(n.node.isBlock){t=n.contentDOM||n.dom;break}t=n.dom.parentNode}let r=SW(e,i.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(1==e.nodeType)t=e.getClientRects();else{if(3!=e.nodeType)continue;t=MV(e,0,e.nodeValue.length).getClientRects()}for(let e=0;e<t.length;e++){let i=t[e];if(i.bottom>i.top+1&&("up"==n?r.top-i.top>2*(i.bottom-r.top):i.bottom-r.bottom>2*(r.bottom-i.top)))return!1}}return!0})}(e,t,n):function(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,o=!i,a=i==r.parent.content.size,s=e.domSelection();return s?CW.test(r.parent.textContent)&&s.modify?_W(e,t,()=>{let{focusNode:t,focusOffset:i,anchorNode:o,anchorOffset:a}=e.domSelectionRange(),l=s.caretBidiLevel;s.modify("move",n,"character");let c=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:u,focusOffset:h}=e.domSelectionRange(),d=u&&!c.contains(1==u.nodeType?u:u.parentNode)||t==u&&i==h;try{s.collapse(o,a),t&&(t!=o||i!=a)&&s.extend&&s.extend(t,i)}catch(p){}return null!=l&&(s.caretBidiLevel=l),d}):"left"==n||"backward"==n?o:a:r.pos==r.start()||r.pos==r.end()}(e,t,n))}class BW{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,this.contentDOM=r,this.dirty=0,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,n){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,n=this.posAtStart;;t++){let r=this.children[t];if(r==e)return n;n+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,n){if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode)){if(n<0){let n,r;if(e==this.contentDOM)n=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.previousSibling}for(;n&&(!(r=n.pmViewDesc)||r.parent!=this);)n=n.previousSibling;return n?this.posBeforeChild(r)+r.size:this.posAtStart}{let n,r;if(e==this.contentDOM)n=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.nextSibling}for(;n&&(!(r=n.pmViewDesc)||r.parent!=this);)n=n.nextSibling;return n?this.posBeforeChild(r):this.posAtEnd}}let r;if(e==this.dom&&this.contentDOM)r=t>IV(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!1;break}if(t.previousSibling)break}if(null==r&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!0;break}if(t.nextSibling)break}}return(null==r?n>0:r)?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let n=!0,r=e;r;r=r.parentNode){let i,o=this.getDesc(r);if(o&&(!t||o.node)){if(!n||!(i=o.nodeDOM)||(1==i.nodeType?i.contains(1==e.nodeType?e:e.parentNode):i==e))return o;n=!1}}}getDesc(e){let t=e.pmViewDesc;for(let n=t;n;n=n.parent)if(n==this)return t}posFromDOM(e,t,n){for(let r=e;r;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(e,t,n)}return-1}descAt(e){for(let t=0,n=0;t<this.children.length;t++){let r=this.children[t],i=n+r.size;if(n==e&&i!=n){for(;!r.border&&r.children.length;)for(let e=0;e<r.children.length;e++){let t=r.children[e];if(t.size){r=t;break}}return r}if(e<i)return r.descAt(e-n-r.border);n=i}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let n=0,r=0;for(let i=0;n<this.children.length;n++){let t=this.children[n],o=i+t.size;if(o>e||t instanceof FW){r=e-i;break}i=o}if(r)return this.children[n].domFromPos(r-this.children[n].border,t);for(let i;n&&!(i=this.children[n-1]).size&&i instanceof IW&&i.side>=0;n--);if(t<=0){let e,r=!0;for(;e=n?this.children[n-1]:null,e&&e.dom.parentNode!=this.contentDOM;n--,r=!1);return e&&t&&r&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?IV(e.dom)+1:0}}{let e,r=!0;for(;e=n<this.children.length?this.children[n]:null,e&&e.dom.parentNode!=this.contentDOM;n++,r=!1);return e&&r&&!e.border&&!e.domAtom?e.domFromPos(0,t):{node:this.contentDOM,offset:e?IV(e.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,n=0){if(0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,i=-1;for(let o=n,a=0;;a++){let n=this.children[a],s=o+n.size;if(-1==r&&e<=s){let i=o+n.border;if(e>=i&&t<=s-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(e,t,i);e=o;for(let t=a;t>0;t--){let n=this.children[t-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){r=IV(n.dom)+1;break}e-=n.size}-1==r&&(r=0)}if(r>-1&&(s>t||a==this.children.length-1)){t=s;for(let e=a+1;e<this.children.length;e++){let n=this.children[e];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(-1)){i=IV(n.dom);break}t+=n.size}-1==i&&(i=this.contentDOM.childNodes.length);break}o=s}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return 0==t.size||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:n}=this.domFromPos(e,0);if(1!=t.nodeType||n==t.childNodes.length)throw new RangeError("No node after pos "+e);return t.childNodes[n]}setSelection(e,t,n,r=!1){let i=Math.min(e,t),o=Math.max(e,t);for(let p=0,f=0;p<this.children.length;p++){let a=this.children[p],s=f+a.size;if(i>f&&o<s)return a.setSelection(e-f-a.border,t-f-a.border,n,r);f=s}let a=this.domFromPos(e,e?-1:1),s=t==e?a:this.domFromPos(t,t?-1:1),l=n.root.getSelection(),c=n.domSelectionRange(),u=!1;if((eW||iW)&&e==t){let{node:e,offset:t}=a;if(3==e.nodeType){if(u=!(!t||"\n"!=e.nodeValue[t-1]),u&&t==e.nodeValue.length)for(let n,r=e;r;r=r.parentNode){if(n=r.nextSibling){"BR"==n.nodeName&&(a=s={node:n.parentNode,offset:IV(n)+1});break}let e=r.pmViewDesc;if(e&&e.node&&e.node.isBlock)break}}else{let n=e.childNodes[t-1];u=n&&("BR"==n.nodeName||"false"==n.contentEditable)}}if(eW&&c.focusNode&&c.focusNode!=s.node&&1==c.focusNode.nodeType){let e=c.focusNode.childNodes[c.focusOffset];e&&"false"==e.contentEditable&&(r=!0)}if(!(r||u&&iW)&&NV(a.node,a.offset,c.anchorNode,c.anchorOffset)&&NV(s.node,s.offset,c.focusNode,c.focusOffset))return;let h=!1;if((l.extend||e==t)&&(!u||!eW)){l.collapse(a.node,a.offset);try{e!=t&&l.extend(s.node,s.offset),h=!0}catch(d){}}if(!h){if(e>t){let e=a;a=s,s=e}let n=document.createRange();n.setEnd(s.node,s.offset),n.setStart(a.node,a.offset),l.removeAllRanges(),l.addRange(n)}}ignoreMutation(e){return!this.contentDOM&&"selection"!=e.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let n=0,r=0;r<this.children.length;r++){let i=this.children[r],o=n+i.size;if(n==o?e<=o&&t>=n:e<o&&t>n){let r=n+i.border,a=o-i.border;if(e>=r&&t<=a)return this.dirty=e==n||t==o?2:1,void(e!=r||t!=a||!i.contentLost&&i.dom.parentNode==this.contentDOM?i.markDirty(e-r,t-r):i.dirty=3);i.dirty=i.dom!=i.contentDOM||i.dom.parentNode!=this.contentDOM||i.children.length?3:2}n=o}this.dirty=2}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=1==e?2:1;t.dirty<n&&(t.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class IW extends BW{constructor(e,t,n,r){let i,o=t.type.toDOM;if("function"==typeof o&&(o=o(n,()=>i?i.parent?i.parent.posBeforeChild(i):void 0:r)),!t.type.spec.raw){if(1!=o.nodeType){let e=document.createElement("span");e.appendChild(o),o=e}o.contentEditable="false",o.classList.add("ProseMirror-widget")}super(e,[],o,null),this.widget=t,this.widget=t,i=this}matchesWidget(e){return 0==this.dirty&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return!!t&&t(e)}ignoreMutation(e){return"selection"!=e.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class LW extends BW{constructor(e,t,n,r){super(e,[],t,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue}}class DW extends BW{constructor(e,t,n,r,i){super(e,[],n,r),this.mark=t,this.spec=i}static create(e,t,n,r){let i=r.nodeViews[t.type.name],o=i&&i(t,r,n);return o&&o.dom||(o=MM.renderSpec(document,t.type.spec.toDOM(t,n),null,t.attrs)),new DW(e,t,o.dom,o.contentDOM||o.dom,o)}parseRule(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return 3!=this.dirty&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),0!=this.dirty){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=0}}slice(e,t,n){let r=DW.create(this.parent,this.mark,!0,n),i=this.children,o=this.size;t<o&&(i=ej(i,t,o,n)),e>0&&(i=ej(i,0,e,n));for(let a=0;a<i.length;a++)i[a].parent=r;return r.children=i,r}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class MW extends BW{constructor(e,t,n,r,i,o,a,s,l){super(e,[],i,o),this.node=t,this.outerDeco=n,this.innerDeco=r,this.nodeDOM=a}static create(e,t,n,r,i,o){let a,s=i.nodeViews[t.type.name],l=s&&s(t,i,()=>a?a.parent?a.parent.posBeforeChild(a):void 0:o,n,r),c=l&&l.dom,u=l&&l.contentDOM;if(t.isText)if(c){if(3!=c.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else c=document.createTextNode(t.text);else if(!c){let e=MM.renderSpec(document,t.type.spec.toDOM(t),null,t.attrs);({dom:c,contentDOM:u}=e)}u||t.isText||"BR"==c.nodeName||(c.hasAttribute("contenteditable")||(c.contentEditable="false"),t.type.spec.draggable&&(c.draggable=!0));let h=c;return c=ZW(c,n,t),l?a=new UW(e,t,n,r,c,u||null,h,l,i,o+1):t.isText?new XW(e,t,n,r,c,h,i):new MW(e,t,n,r,c,u||null,h,i,o+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(e.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let t=this.children.length-1;t>=0;t--){let n=this.children[t];if(this.dom.contains(n.dom.parentNode)){e.contentElement=n.dom.parentNode;break}}e.contentElement||(e.getContent=()=>DD.empty)}else e.contentElement=this.contentDOM;else e.getContent=()=>this.node.content;return e}matchesNode(e,t,n){return 0==this.dirty&&e.eq(this.node)&&GW(t,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let n=this.node.inlineContent,r=t,i=e.composing?this.localCompositionInfo(e,t):null,o=i&&i.pos>-1?i:null,a=i&&i.pos<0,s=new KW(this,o&&o.node,e);!function(e,t,n,r){let i=t.locals(e),o=0;if(0==i.length){for(let n=0;n<e.childCount;n++){let a=e.child(n);r(a,i,t.forChild(o,a),n),o+=a.nodeSize}return}let a=0,s=[],l=null;for(let c=0;;){let u,h,d,p;for(;a<i.length&&i[a].to==o;){let e=i[a++];e.widget&&(u?(h||(h=[u])).push(e):u=e)}if(u)if(h){h.sort(JW);for(let e=0;e<h.length;e++)n(h[e],c,!!l)}else n(u,c,!!l);if(l)p=-1,d=l,l=null;else{if(!(c<e.childCount))break;p=c,d=e.child(c++)}for(let e=0;e<s.length;e++)s[e].to<=o&&s.splice(e--,1);for(;a<i.length&&i[a].from<=o&&i[a].to>o;)s.push(i[a++]);let f=o+d.nodeSize;if(d.isText){let e=f;a<i.length&&i[a].from<e&&(e=i[a].from);for(let t=0;t<s.length;t++)s[t].to<e&&(e=s[t].to);e<f&&(l=d.cut(e-o),d=d.cut(0,e-o),f=e,p=-1)}else for(;a<i.length&&i[a].to<f;)a++;r(d,d.isInline&&!d.isLeaf?s.filter(e=>!e.inline):s.slice(),t.forChild(o,d),p),o=f}}(this.node,this.innerDeco,(t,i,o)=>{t.spec.marks?s.syncToMarks(t.spec.marks,n,e,i):t.type.side>=0&&!o&&s.syncToMarks(i==this.node.childCount?FD.none:this.node.child(i).marks,n,e,i),s.placeWidget(t,e,r)},(t,o,l,c)=>{let u;s.syncToMarks(t.marks,n,e,c),s.findNodeMatch(t,o,l,c)||a&&e.state.selection.from>r&&e.state.selection.to<r+t.nodeSize&&(u=s.findIndexWithChild(i.node))>-1&&s.updateNodeAt(t,o,l,u,e)||s.updateNextNode(t,o,l,e,c,r)||s.addNode(t,o,l,e,r),r+=t.nodeSize}),s.syncToMarks([],n,e,0),this.node.isTextblock&&s.addTextblockHacks(),s.destroyRest(),(s.changed||2==this.dirty)&&(o&&this.protectLocalComposition(e,o),zW(this.contentDOM,this.children,e),oW&&function(e){if("UL"==e.nodeName||"OL"==e.nodeName){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}(this.dom))}localCompositionInfo(e,t){let{from:n,to:r}=e.state.selection;if(!(e.state.selection instanceof jz)||n<t||r>t+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let e=i.nodeValue,o=function(e,t,n,r){for(let i=0,o=0;i<e.childCount&&o<=r;){let a=e.child(i++),s=o;if(o+=a.nodeSize,!a.isText)continue;let l=a.text;for(;i<e.childCount;){let t=e.child(i++);if(o+=t.nodeSize,!t.isText)break;l+=t.text}if(o>=n){if(o>=r&&l.slice(r-t.length-s,r-s)==t)return r-t.length;let e=s<r?l.lastIndexOf(t,r-s-1):-1;if(e>=0&&e+t.length+s>=n)return s+e;if(n==r&&l.length>=r+t.length-s&&l.slice(r-s,r-s+t.length)==t)return r}}return-1}(this.node.content,e,n-t,r-t);return o<0?null:{node:i,pos:o,text:e}}return{node:i,pos:-1,text:""}}protectLocalComposition(e,{node:t,pos:n,text:r}){if(this.getDesc(t))return;let i=t;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let o=new LW(this,i,t,r);e.input.compositionNodes.push(o),this.children=ej(this.children,n,n+r.length,e,o)}update(e,t,n,r){return!(3==this.dirty||!e.sameMarkup(this.node))&&(this.updateInner(e,t,n,r),!0)}updateInner(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=0}updateOuterDeco(e){if(GW(e,this.outerDeco))return;let t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=jW(this.dom,this.nodeDOM,WW(this.outerDeco,this.node,t),WW(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){1==this.nodeDOM.nodeType&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.nodeDOM.draggable=!0))}deselectNode(){1==this.nodeDOM.nodeType&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function NW(e,t,n,r,i){ZW(r,t,e);let o=new MW(void 0,e,t,n,r,r,r,i,0);return o.contentDOM&&o.updateChildren(i,0),o}class XW extends MW{constructor(e,t,n,r,i,o,a){super(e,t,n,r,i,null,o,a,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,n,r){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!e.sameMarkup(this.node))&&(this.updateOuterDeco(t),0==this.dirty&&e.text==this.node.text||e.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=0,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,n){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,n)}ignoreMutation(e){return"characterData"!=e.type&&"selection"!=e.type}slice(e,t,n){let r=this.node.cut(e,t),i=document.createTextNode(r.text);return new XW(this.parent,r,this.outerDeco,this.innerDeco,i,i,n)}markDirty(e,t){super.markDirty(e,t),this.dom==this.nodeDOM||0!=e&&t!=this.nodeDOM.nodeValue.length||(this.dirty=3)}get domAtom(){return!1}isText(e){return this.node.text==e}}class FW extends BW{parseRule(){return{ignore:!0}}matchesHack(e){return 0==this.dirty&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class UW extends MW{constructor(e,t,n,r,i,o,a,s,l,c){super(e,t,n,r,i,o,a,l,c),this.spec=s}update(e,t,n,r){if(3==this.dirty)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let i=this.spec.update(e,t,n);return i&&this.updateInner(e,t,n,r),i}return!(!this.contentDOM&&!e.isLeaf)&&super.update(e,t,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,n,r){this.spec.setSelection?this.spec.setSelection(e,t,n.root):super.setSelection(e,t,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function zW(e,t,n){let r=e.firstChild,i=!1;for(let o=0;o<t.length;o++){let a=t[o],s=a.dom;if(s.parentNode==e){for(;s!=r;)r=HW(r),i=!0;r=r.nextSibling}else i=!0,e.insertBefore(s,r);if(a instanceof DW){let t=r?r.previousSibling:e.lastChild;zW(a.contentDOM,a.children,n),r=t?t.nextSibling:e.firstChild}}for(;r;)r=HW(r),i=!0;i&&n.trackWrites==e&&(n.trackWrites=null)}const qW=function(e){e&&(this.nodeName=e)};qW.prototype=Object.create(null);const VW=[new qW];function WW(e,t,n){if(0==e.length)return VW;let r=n?VW[0]:new qW,i=[r];for(let o=0;o<e.length;o++){let a=e[o].type.attrs;if(a){a.nodeName&&i.push(r=new qW(a.nodeName));for(let e in a){let o=a[e];null!=o&&(n&&1==i.length&&i.push(r=new qW(t.isInline?"span":"div")),"class"==e?r.class=(r.class?r.class+" ":"")+o:"style"==e?r.style=(r.style?r.style+";":"")+o:"nodeName"!=e&&(r[e]=o))}}}return i}function jW(e,t,n,r){if(n==VW&&r==VW)return t;let i=t;for(let o=0;o<r.length;o++){let t=r[o],a=n[o];if(o){let n;a&&a.nodeName==t.nodeName&&i!=e&&(n=i.parentNode)&&n.nodeName.toLowerCase()==t.nodeName||(n=document.createElement(t.nodeName),n.pmIsDeco=!0,n.appendChild(i),a=VW[0]),i=n}YW(i,a||VW[0],t)}return i}function YW(e,t,n){for(let r in t)"class"==r||"style"==r||"nodeName"==r||r in n||e.removeAttribute(r);for(let r in n)"class"!=r&&"style"!=r&&"nodeName"!=r&&n[r]!=t[r]&&e.setAttribute(r,n[r]);if(t.class!=n.class){let r=t.class?t.class.split(" ").filter(Boolean):[],i=n.class?n.class.split(" ").filter(Boolean):[];for(let t=0;t<r.length;t++)-1==i.indexOf(r[t])&&e.classList.remove(r[t]);for(let t=0;t<i.length;t++)-1==r.indexOf(i[t])&&e.classList.add(i[t]);0==e.classList.length&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style){let n,r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;for(;n=r.exec(t.style);)e.style.removeProperty(n[1])}n.style&&(e.style.cssText+=n.style)}}function ZW(e,t,n){return jW(e,e,VW,WW(t,n,1!=e.nodeType))}function GW(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function HW(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class KW{constructor(e,t,n){this.lock=t,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=function(e,t){let n=t,r=n.children.length,i=e.childCount,o=new Map,a=[];e:for(;i>0;){let s;for(;;)if(r){let e=n.children[r-1];if(!(e instanceof DW)){s=e,r--;break}n=e,r=e.children.length}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=s.node;if(l){if(l!=e.child(i-1))break;--i,o.set(s,i),a.push(s)}}return{index:i,matched:o,matches:a.reverse()}}(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,n,r){let i=0,o=this.stack.length>>1,a=Math.min(o,e.length);for(;i<a&&(i==o-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&!1!==e[i].type.spec.spanning;)i++;for(;i<o;)this.destroyRest(),this.top.dirty=0,this.index=this.stack.pop(),this.top=this.stack.pop(),o--;for(;o<e.length;){this.stack.push(this.top,this.index+1);let i=-1,a=this.top.children.length;r<this.preMatch.index&&(a=Math.min(this.index+3,a));for(let t=this.index;t<a;t++){let n=this.top.children[t];if(n.matchesMark(e[o])&&!this.isLocked(n.dom)){i=t;break}}if(i>-1)i>this.index&&(this.changed=!0,this.destroyBetween(this.index,i)),this.top=this.top.children[this.index];else{let r=DW.create(this.top,e[o],t,n);this.top.children.splice(this.index,0,r),this.top=r,this.changed=!0}this.index=0,o++}}findNodeMatch(e,t,n,r){let i,o=-1;if(r>=this.preMatch.index&&(i=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&i.matchesNode(e,t,n))o=this.top.children.indexOf(i,this.index);else for(let a=this.index,s=Math.min(this.top.children.length,a+5);a<s;a++){let r=this.top.children[a];if(r.matchesNode(e,t,n)&&!this.preMatch.matched.has(r)){o=a;break}}return!(o<0)&&(this.destroyBetween(this.index,o),this.index++,!0)}updateNodeAt(e,t,n,r,i){let o=this.top.children[r];return 3==o.dirty&&o.dom==o.contentDOM&&(o.dirty=2),!!o.update(e,t,n,i)&&(this.destroyBetween(this.index,r),this.index++,!0)}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let t=e.pmViewDesc;if(t)for(let e=this.index;e<this.top.children.length;e++)if(this.top.children[e]==t)return e;return-1}e=t}}updateNextNode(e,t,n,r,i,o){for(let a=this.index;a<this.top.children.length;a++){let s=this.top.children[a];if(s instanceof MW){let l=this.preMatch.matched.get(s);if(null!=l&&l!=i)return!1;let c,u=s.dom,h=this.isLocked(u)&&!(e.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==e.text&&3!=s.dirty&&GW(t,s.outerDeco));if(!h&&s.update(e,t,n,r))return this.destroyBetween(this.index,a),s.dom!=u&&(this.changed=!0),this.index++,!0;if(!h&&(c=this.recreateWrapper(s,e,t,n,r,o)))return this.destroyBetween(this.index,a),this.top.children[this.index]=c,c.contentDOM&&(c.dirty=2,c.updateChildren(r,o+1),c.dirty=0),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,n,r,i,o){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content)||!GW(n,e.outerDeco)||!r.eq(e.innerDeco))return null;let a=MW.create(this.top,t,n,r,i,o);if(a.contentDOM){a.children=e.children,e.children=[];for(let e of a.children)e.parent=a}return e.destroy(),a}addNode(e,t,n,r,i){let o=MW.create(this.top,e,t,n,r,i);o.contentDOM&&o.updateChildren(r,i+1),this.top.children.splice(this.index++,0,o),this.changed=!0}placeWidget(e,t,n){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(!r||!r.matchesWidget(e)||e!=r.widget&&r.widget.type.toDOM.parentNode){let r=new IW(this.top,e,t,n);this.top.children.splice(this.index++,0,r),this.changed=!0}else this.index++}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof DW;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof XW)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((iW||nW)&&e&&"false"==e.dom.contentEditable&&this.addHackNode("IMG",t),this.addHackNode("BR",this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let n=document.createElement(e);"IMG"==e&&(n.className="ProseMirror-separator",n.alt=""),"BR"==e&&(n.className="ProseMirror-trailingBreak");let r=new FW(this.top,[],n,null);t!=this.top?t.children.push(r):t.children.splice(this.index++,0,r),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||1==e.nodeType&&e.contains(this.lock.parentNode))}}function JW(e,t){return e.type.side-t.type.side}function ej(e,t,n,r,i){let o=[];for(let a=0,s=0;a<e.length;a++){let l=e[a],c=s,u=s+=l.size;c>=n||u<=t?o.push(l):(c<t&&o.push(l.slice(0,t-c,r)),i&&(o.push(i),i=void 0),u>n&&o.push(l.slice(n-c,l.size,r)))}return o}function tj(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let i=e.docView.nearestDesc(n.focusNode),o=i&&0==i.size,a=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(a<0)return null;let s,l,c=r.resolve(a);if(qV(n)){for(s=a;i&&!i.node;)i=i.parent;let e=i.node;if(i&&e.isAtom&&Zz.isSelectable(e)&&i.parent&&(!e.isInline||!function(e,t,n){for(let r=0==t,i=t==UV(e);r||i;){if(e==n)return!0;let t=IV(e);if(!(e=e.parentNode))return!1;r=r&&0==t,i=i&&t==UV(e)}}(n.focusNode,n.focusOffset,i.dom))){let e=i.posBefore;l=new Zz(a==e?c:r.resolve(e))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let t=a,i=a;for(let r=0;r<n.rangeCount;r++){let o=n.getRangeAt(r);t=Math.min(t,e.docView.posFromDOM(o.startContainer,o.startOffset,1)),i=Math.max(i,e.docView.posFromDOM(o.endContainer,o.endOffset,-1))}if(t<0)return null;[s,a]=i==e.state.selection.anchor?[i,t]:[t,i],c=r.resolve(a)}else s=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(s<0)return null}let u=r.resolve(s);if(!l){l=uj(e,u,c,"pointer"==t||e.state.selection.head<c.pos&&!o?1:-1)}return l}function nj(e){return e.editable?e.hasFocus():dj(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function rj(e,t=!1){let n=e.state.selection;if(lj(e,n),!nj(e))return;let r=e.input.mouseDown;if(!t&&nW&&r){let t=e.domSelectionRange(),n=e.domObserver.currentSelection;if(t.anchorNode&&n.anchorNode&&NV(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset)&&r.delaySelUpdate())return void e.domObserver.setCurSelection()}if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,r="IMG"==n.nodeName;r?t.collapse(n.parentNode,IV(n)+1):t.collapse(n,0);!r&&!e.state.selection.visible&&KV&&JV<=11&&(n.disabled=!0,n.disabled=!1)}(e);else{let r,i,{anchor:o,head:a}=n;!ij||n instanceof jz||(n.$from.parent.inlineContent||(r=oj(e,n.from)),n.empty||n.$from.parent.inlineContent||(i=oj(e,n.to))),e.docView.setSelection(o,a,e,t),ij&&(r&&sj(r),i&&sj(i)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&function(e){let t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);let n=e.domSelectionRange(),r=n.anchorNode,i=n.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{n.anchorNode==r&&n.anchorOffset==i||(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{nj(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")},20))})}(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}const ij=iW||nW&&rW<63;function oj(e,t){let{node:n,offset:r}=e.docView.domFromPos(t,0),i=r<n.childNodes.length?n.childNodes[r]:null,o=r?n.childNodes[r-1]:null;if(iW&&i&&"false"==i.contentEditable)return aj(i);if(!(i&&"false"!=i.contentEditable||o&&"false"!=o.contentEditable)){if(i)return aj(i);if(o)return aj(o)}}function aj(e){return e.contentEditable="true",iW&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function sj(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function lj(e,t){if(t instanceof Zz){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(cj(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else cj(e)}function cj(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function uj(e,t,n,r){return e.someProp("createSelectionBetween",r=>r(e,t,n))||jz.between(t,n,r)}function hj(e){return!(e.editable&&!e.hasFocus())&&dj(e)}function dj(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(n){return!1}}function pj(e,t){let{$anchor:n,$head:r}=e.selection,i=t>0?n.max(r):n.min(r),o=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return o&&zz.findFrom(o,t)}function fj(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function gj(e,t,n){let r=e.state.selection;if(!(r instanceof jz)){if(r instanceof Zz&&r.node.isInline)return fj(e,new jz(t>0?r.$to:r.$from));{let n=pj(e.state,t);return!!n&&fj(e,n)}}if(n.indexOf("s")>-1){let{$head:n}=r,i=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let o=e.state.doc.resolve(n.pos+i.nodeSize*(t<0?-1:1));return fj(e,new jz(r.$anchor,o))}if(!r.empty)return!1;if(e.endOfTextblock(t>0?"forward":"backward")){let n=pj(e.state,t);return!!(n&&n instanceof Zz)&&fj(e,n)}if(!(aW&&n.indexOf("m")>-1)){let n,i=r.$head,o=i.textOffset?null:t<0?i.nodeBefore:i.nodeAfter;if(!o||o.isText)return!1;let a=t<0?i.pos-o.nodeSize:i.pos;return!!(o.isAtom||(n=e.docView.descAt(a))&&!n.contentDOM)&&(Zz.isSelectable(o)?fj(e,new Zz(t<0?e.state.doc.resolve(i.pos-o.nodeSize):i)):!!cW&&fj(e,new jz(e.state.doc.resolve(t<0?a:a+o.nodeSize))))}}function mj(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Oj(e,t){let n=e.pmViewDesc;return n&&0==n.size&&(t<0||e.nextSibling||"BR"!=e.nodeName)}function Aj(e,t){return t<0?function(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,o,a=!1;eW&&1==n.nodeType&&r<mj(n)&&Oj(n.childNodes[r],-1)&&(a=!0);for(;;)if(r>0){if(1!=n.nodeType)break;{let e=n.childNodes[r-1];if(Oj(e,-1))i=n,o=--r;else{if(3!=e.nodeType)break;n=e,r=n.nodeValue.length}}}else{if(yj(n))break;{let t=n.previousSibling;for(;t&&Oj(t,-1);)i=n.parentNode,o=IV(t),t=t.previousSibling;if(t)n=t,r=mj(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}a?vj(e,n,r):i&&vj(e,i,o)}(e):function(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,o,a=mj(n);for(;;)if(r<a){if(1!=n.nodeType)break;if(!Oj(n.childNodes[r],1))break;i=n,o=++r}else{if(yj(n))break;{let t=n.nextSibling;for(;t&&Oj(t,1);)i=t.parentNode,o=IV(t)+1,t=t.nextSibling;if(t)n=t,r=0,a=mj(n);else{if(n=n.parentNode,n==e.dom)break;r=a=0}}}i&&vj(e,i,o)}(e)}function yj(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function vj(e,t,n){if(3!=t.nodeType){let e,r;(r=function(e,t){for(;e&&t==e.childNodes.length&&!zV(e);)t=IV(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;e=n,t=0}}(t,n))?(t=r,n=0):(e=function(e,t){for(;e&&!t&&!zV(e);)t=IV(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;t=(e=n).childNodes.length}}(t,n))&&(t=e,n=e.nodeValue.length)}let r=e.domSelection();if(!r)return;if(qV(r)){let e=document.createRange();e.setEnd(t,n),e.setStart(t,n),r.removeAllRanges(),r.addRange(e)}else r.extend&&r.extend(t,n);e.domObserver.setCurSelection();let{state:i}=e;setTimeout(()=>{e.state==i&&rj(e)},50)}function bj(e,t){let n=e.state.doc.resolve(t);if(!nW&&!sW&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let n=e.coordsAtPos(t-1),i=(n.top+n.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(n.left-r.left)>1)return n.left<r.left?"ltr":"rtl"}if(t<n.end()){let n=e.coordsAtPos(t+1),i=(n.top+n.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(n.left-r.left)>1)return n.left>r.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(e.dom).direction?"rtl":"ltr"}function xj(e,t,n){let r=e.state.selection;if(r instanceof jz&&!r.empty||n.indexOf("s")>-1)return!1;if(aW&&n.indexOf("m")>-1)return!1;let{$from:i,$to:o}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let n=pj(e.state,t);if(n&&n instanceof Zz)return fj(e,n)}if(!i.parent.inlineContent){let n=t<0?i:o,a=r instanceof Hz?zz.near(n,t):zz.findFrom(n,t);return!!a&&fj(e,a)}return!1}function wj(e,t){if(!(e.state.selection instanceof jz))return!0;let{$head:n,$anchor:r,empty:i}=e.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let o=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(o&&!o.isText){let r=e.state.tr;return t<0?r.delete(n.pos-o.nodeSize,n.pos):r.delete(n.pos,n.pos+o.nodeSize),e.dispatch(r),!0}return!1}function kj(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function Sj(e,t){let n=t.keyCode,r=function(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}(t);if(8==n||aW&&72==n&&"c"==r)return wj(e,-1)||Aj(e,-1);if(46==n&&!t.shiftKey||aW&&68==n&&"c"==r)return wj(e,1)||Aj(e,1);if(13==n||27==n)return!0;if(37==n||aW&&66==n&&"c"==r){let t=37==n?"ltr"==bj(e,e.state.selection.from)?-1:1:-1;return gj(e,t,r)||Aj(e,t)}if(39==n||aW&&70==n&&"c"==r){let t=39==n?"ltr"==bj(e,e.state.selection.from)?1:-1:1;return gj(e,t,r)||Aj(e,t)}return 38==n||aW&&80==n&&"c"==r?xj(e,-1,r)||Aj(e,-1):40==n||aW&&78==n&&"c"==r?function(e){if(!iW||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&1==t.nodeType&&0==n&&t.firstChild&&"false"==t.firstChild.contentEditable){let n=t.firstChild;kj(e,n,"true"),setTimeout(()=>kj(e,n,"false"),20)}return!1}(e)||xj(e,1,r)||Aj(e,1):r==(aW?"m":"c")&&(66==n||73==n||89==n||90==n)}function Tj(e,t){e.someProp("transformCopied",n=>{t=n(t,e)});let n=[],{content:r,openStart:i,openEnd:o}=t;for(;i>1&&o>1&&1==r.childCount&&1==r.firstChild.childCount;){i--,o--;let e=r.firstChild;n.push(e.type.name,e.attrs!=e.type.defaultAttrs?e.attrs:null),r=e.content}let a=e.someProp("clipboardSerializer")||MM.fromSchema(e.state.schema),s=Lj(),l=s.createElement("div");l.appendChild(a.serializeFragment(r,{document:s}));let c,u=l.firstChild,h=0;for(;u&&1==u.nodeType&&(c=Bj[u.nodeName.toLowerCase()]);){for(let e=c.length-1;e>=0;e--){let t=s.createElement(c[e]);for(;l.firstChild;)t.appendChild(l.firstChild);l.appendChild(t),h++}u=l.firstChild}return u&&1==u.nodeType&&u.setAttribute("data-pm-slice",`${i} ${o}${h?` -${h}`:""} ${JSON.stringify(n)}`),{dom:l,text:e.someProp("clipboardTextSerializer",n=>n(t,e))||t.content.textBetween(0,t.content.size,"\n\n"),slice:t}}function $j(e,t,n,r,i){let o,a,s=i.parent.type.spec.code;if(!n&&!t)return null;let l=!!t&&(r||s||!n);if(l){if(e.someProp("transformPastedText",n=>{t=n(t,s||r,e)}),s)return a=new zD(DD.from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0),e.someProp("transformPasted",t=>{a=t(a,e,!0)}),a;let n=e.someProp("clipboardTextParser",n=>n(t,i,r,e));if(n)a=n;else{let n=i.marks(),{schema:r}=e.state,a=MM.fromSchema(r);o=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(e=>{let t=o.appendChild(document.createElement("p"));e&&t.appendChild(a.serializeNode(r.text(e,n)))})}}else e.someProp("transformPastedHTML",t=>{n=t(n,e)}),o=function(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n,r=Lj().createElement("div"),i=/<([a-z][^>\s]+)/i.exec(e);(n=i&&Bj[i[1].toLowerCase()])&&(e=n.map(e=>"<"+e+">").join("")+e+n.map(e=>"</"+e+">").reverse().join(""));if(r.innerHTML=function(e){let t=window.trustedTypes;if(!t)return e;Dj||(Dj=t.defaultPolicy||t.createPolicy("ProseMirrorClipboard",{createHTML:e=>e}));return Dj.createHTML(e)}(e),n)for(let o=0;o<n.length;o++)r=r.querySelector(n[o])||r;return r}(n),cW&&function(e){let t=e.querySelectorAll(nW?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<t.length;n++){let r=t[n];1==r.childNodes.length&&" "==r.textContent&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),r)}}(o);let c=o&&o.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let h=+u[3];h>0;h--){let e=o.firstChild;for(;e&&1!=e.nodeType;)e=e.nextSibling;if(!e)break;o=e}if(!a){let t=e.someProp("clipboardParser")||e.someProp("domParser")||_M.fromSchema(e.state.schema);a=t.parseSlice(o,{preserveWhitespace:!(!l&&!u),context:i,ruleFromNode:e=>"BR"!=e.nodeName||e.nextSibling||!e.parentNode||_j.test(e.parentNode.nodeName)?null:{ignore:!0}})}if(u)a=function(e,t){if(!e.size)return e;let n,r=e.content.firstChild.type.schema;try{n=JSON.parse(t)}catch(jk){return e}let{content:i,openStart:o,openEnd:a}=e;for(let s=n.length-2;s>=0;s-=2){let e=r.nodes[n[s]];if(!e||e.hasRequiredAttrs())break;i=DD.from(e.create(n[s+1],i)),o++,a++}return new zD(i,o,a)}(Rj(a,+u[1],+u[2]),u[4]);else if(a=zD.maxOpen(function(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r,i=t.node(n).contentMatchAt(t.index(n)),o=[];if(e.forEach(e=>{if(!o)return;let t,n=i.findWrapping(e.type);if(!n)return o=null;if(t=o.length&&r.length&&Qj(n,r,e,o[o.length-1],0))o[o.length-1]=t;else{o.length&&(o[o.length-1]=Pj(o[o.length-1],r.length));let t=Cj(e,n);o.push(t),i=i.matchType(t.type),r=n}}),o)return DD.from(o)}return e}(a.content,i),!0),a.openStart||a.openEnd){let e=0,t=0;for(let n=a.content.firstChild;e<a.openStart&&!n.type.spec.isolating;e++,n=n.firstChild);for(let n=a.content.lastChild;t<a.openEnd&&!n.type.spec.isolating;t++,n=n.lastChild);a=Rj(a,e,t)}return e.someProp("transformPasted",t=>{a=t(a,e,l)}),a}const _j=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Cj(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,DD.from(e));return e}function Qj(e,t,n,r,i){if(i<e.length&&i<t.length&&e[i]==t[i]){let o=Qj(e,t,n,r.lastChild,i+1);if(o)return r.copy(r.content.replaceChild(r.childCount-1,o));if(r.contentMatchAt(r.childCount).matchType(i==e.length-1?n.type:e[i+1]))return r.copy(r.content.append(DD.from(Cj(n,e,i+1))))}}function Pj(e,t){if(0==t)return e;let n=e.content.replaceChild(e.childCount-1,Pj(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(DD.empty,!0);return e.copy(n.append(r))}function Ej(e,t,n,r,i,o){let a=t<0?e.firstChild:e.lastChild,s=a.content;return e.childCount>1&&(o=0),i<r-1&&(s=Ej(s,t,n,r,i+1,o)),i>=n&&(s=t<0?a.contentMatchAt(0).fillBefore(s,o<=i).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(DD.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(s))}function Rj(e,t,n){return t<e.openStart&&(e=new zD(Ej(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new zD(Ej(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}const Bj={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let Ij=null;function Lj(){return Ij||(Ij=document.implementation.createHTMLDocument("title"))}let Dj=null;const Mj={},Nj={},Xj={touchstart:!0,touchmove:!0};let Fj=class{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}};function Uj(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function zj(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=t=>qj(e,t))})}function qj(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return!!r&&(r(e,t)||t.defaultPrevented)})}function Vj(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function Wj(e){return{left:e.clientX,top:e.clientY}}function jj(e,t,n,r,i){if(-1==r)return!1;let o=e.state.doc.resolve(r);for(let a=o.depth+1;a>0;a--)if(e.someProp(t,t=>a>o.depth?t(e,n,o.nodeAfter,o.before(a),i,!0):t(e,n,o.node(a),o.before(a),i,!1)))return!0;return!1}function Yj(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);r.setMeta("pointer",!0),e.dispatch(r)}function Zj(e,t,n,r,i){return jj(e,"handleClickOn",t,n,r)||e.someProp("handleClick",n=>n(e,t,r))||(i?function(e,t){if(-1==t)return!1;let n,r,i=e.state.selection;i instanceof Zz&&(n=i.node);let o=e.state.doc.resolve(t);for(let a=o.depth+1;a>0;a--){let e=a>o.depth?o.nodeAfter:o.node(a);if(Zz.isSelectable(e)){r=n&&i.$from.depth>0&&a>=i.$from.depth&&o.before(i.$from.depth+1)==i.$from.pos?o.before(i.$from.depth):o.before(a);break}}return null!=r&&(Yj(e,Zz.create(e.state.doc,r)),!0)}(e,n):function(e,t){if(-1==t)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return!!(r&&r.isAtom&&Zz.isSelectable(r))&&(Yj(e,new Zz(n)),!0)}(e,n))}function Gj(e,t,n,r){return jj(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",n=>n(e,t,r))}function Hj(e,t,n,r){return jj(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",n=>n(e,t,r))||function(e,t,n){if(0!=n.button)return!1;let r=Kj(e,t,!0),i=e.state.doc;if(!r)return!1;Yj(e,r),r instanceof jz&&i.eq(e.state.doc)&&(e.input.mouseDown=new rY(e,r));return!0}(e,n,r)}function Kj(e,t,n){let r=e.state.doc;if(-1==t)return r.inlineContent?jz.create(r,0,r.content.size):null;let i=r.resolve(t);for(let o=i.depth+1;o>0;o--){let e=o>i.depth?i.nodeAfter:i.node(o),t=i.before(o);if(e.inlineContent)return jz.create(r,t+1,t+1+e.content.size);if(n&&Zz.isSelectable(e))return Zz.create(r,t)}return null}function Jj(e){return cY(e)}Nj.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=16==n.keyCode||n.shiftKey,!iY(e)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!lW||!nW||13!=n.keyCode))if(229!=n.keyCode&&e.domObserver.forceFlush(),!oW||13!=n.keyCode||n.ctrlKey||n.altKey||n.metaKey)e.someProp("handleKeyDown",t=>t(e,n))||Sj(e,n)?n.preventDefault():Uj(e,"key");else{let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==t&&(e.someProp("handleKeyDown",t=>t(e,VV(13,"Enter"))),e.input.lastIOSEnter=0)},200)}},Nj.keyup=(e,t)=>{16==t.keyCode&&(e.input.shiftKey=!1)},Nj.keypress=(e,t)=>{let n=t;if(iY(e)||!n.charCode||n.ctrlKey&&!n.altKey||aW&&n.metaKey)return;if(e.someProp("handleKeyPress",t=>t(e,n)))return void n.preventDefault();let r=e.state.selection;if(!(r instanceof jz&&r.$from.sameParent(r.$to))){let t=String.fromCharCode(n.charCode),i=()=>e.state.tr.insertText(t).scrollIntoView();/[\r\n]/.test(t)||e.someProp("handleTextInput",n=>n(e,r.$from.pos,r.$to.pos,t,i))||e.dispatch(i()),n.preventDefault()}};const eY=aW?"metaKey":"ctrlKey";Mj.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=Jj(e),i=Date.now(),o="singleClick";i-e.input.lastClick.time<500&&function(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}(n,e.input.lastClick)&&!n[eY]&&e.input.lastClick.button==n.button&&("singleClick"==e.input.lastClick.type?o="doubleClick":"doubleClick"==e.input.lastClick.type&&(o="tripleClick")),e.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:o,button:n.button},e.input.mouseDown&&e.input.mouseDown.done();let a=e.posAtCoords(Wj(n));a&&("singleClick"==o?e.input.mouseDown=new nY(e,a,n,!!r):("doubleClick"==o?Gj:Hj)(e,a.pos,a.inside,n)?n.preventDefault():Uj(e,"pointer"))};class tY{constructor(e){this.view=e,this.mightDrag=null,e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this))}up(e){this.done()}move(e){0==e.buttons&&this.done()}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.view.input.mouseDown==this&&(this.view.input.mouseDown=null)}delaySelUpdate(){return!1}}class nY extends tY{constructor(e,t,n,r){let i,o;if(super(e),this.pos=t,this.event=n,this.flushed=r,this.delayedSelectionSync=!1,this.startDoc=e.state.doc,this.selectNode=!!n[eY],this.allowDefault=n.shiftKey,t.inside>-1)i=e.state.doc.nodeAt(t.inside),o=t.inside;else{let n=e.state.doc.resolve(t.pos);i=n.parent,o=n.depth?n.before():0}const a=r?null:n.target,s=a?e.docView.nearestDesc(a,!0):null;this.target=s&&1==s.nodeDOM.nodeType?s.nodeDOM:null;let{selection:l}=e.state;0==n.button&&(i.type.spec.draggable&&!1!==i.type.spec.selectable||l instanceof Zz&&l.from<=o&&l.to>o)&&(this.mightDrag={node:i,pos:o,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!eW||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),Uj(e,"pointer")}done(){super.done(),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>{this.view.isDestroyed||rj(this.view)})}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(Wj(e))),this.updateAllowDefault(e),this.allowDefault||!t?Uj(this.view,"pointer"):Zj(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||iW&&this.mightDrag&&!this.mightDrag.node.isAtom||nW&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(Yj(this.view,zz.near(this.view.state.doc.resolve(t.pos))),e.preventDefault()):Uj(this.view,"pointer")}move(e){this.updateAllowDefault(e),Uj(this.view,"pointer"),super.move(e)}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}delaySelUpdate(){return!!this.allowDefault&&(this.delayedSelectionSync=!0,!0)}}class rY extends tY{constructor(e,t){super(e),this.startSelection=t,this.startDoc=e.state.doc}move(e){if(0==e.buttons||this.view.isDestroyed||!this.view.state.doc.eq(this.startDoc))return void this.done();e.preventDefault(),Uj(this.view,"pointer");let t=this.view.posAtCoords(Wj(e)),n=t&&Kj(this.view,t.inside,!1);if(!n)return;let{doc:r}=this.view.state,i=this.startSelection,[o,a]=n.from<i.from?[i.to,n.from]:[i.from,n.to];Yj(this.view,jz.create(r,o,a))}}function iY(e,t){return!!e.composing||!!(iW&&Math.abs(Date.now()-e.input.compositionEndedAt)<500)&&(e.input.compositionEndedAt=-2e8,!0)}Mj.touchstart=e=>{e.input.lastTouch=Date.now(),Jj(e),Uj(e,"pointer")},Mj.touchmove=e=>{e.input.lastTouch=Date.now(),Uj(e,"pointer")},Mj.contextmenu=e=>Jj(e);const oY=lW?5e3:-1;function aY(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>cY(e),t))}function sY(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function lY(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=function(e,t){for(;;){if(3==e.nodeType&&t)return e;if(1==e.nodeType&&t>0){if("false"==e.contentEditable)return null;t=UV(e=e.childNodes[t-1])}else{if(!e.parentNode||zV(e))return null;t=IV(e),e=e.parentNode}}}(t.focusNode,t.focusOffset),r=function(e,t){for(;;){if(3==e.nodeType&&t<e.nodeValue.length)return e;if(1==e.nodeType&&t<e.childNodes.length){if("false"==e.contentEditable)return null;e=e.childNodes[t],t=0}else{if(!e.parentNode||zV(e))return null;t=IV(e)+1,e=e.parentNode}}}(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let t=r.pmViewDesc,i=e.domObserver.lastChangedTextNode;if(n==i||r==i)return i;if(!t||!t.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let e=n.pmViewDesc;if(e&&e.isText(n.nodeValue))return r}}return n||r}function cY(e,t=!1){if(!(lW&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),sY(e),t||e.docView&&e.docView.dirty){let n=tj(e),r=e.state.selection;return n&&!n.eq(r)?e.dispatch(e.state.tr.setSelection(n)):!e.markCursor&&!t||r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?e.updateState(e.state):e.dispatch(e.state.tr.deleteSelection()),!0}return!1}}Nj.compositionstart=Nj.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof jz&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(e=>!1===e.type.spec.inclusive)||nW&&sW&&function(e){let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(!t||1!=t.nodeType||n>=t.childNodes.length)return!1;let r=t.childNodes[n];return 1==r.nodeType&&"false"==r.contentEditable}(e)))e.markCursor=e.state.storedMarks||n.marks(),cY(e,!0),e.markCursor=null;else if(cY(e,!t.selection.empty),eW&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.domSelectionRange();for(let n=t.focusNode,r=t.focusOffset;n&&1==n.nodeType&&0!=r;){let t=r<0?n.lastChild:n.childNodes[r-1];if(!t)break;if(3==t.nodeType){let n=e.domSelection();n&&n.collapse(t,t.nodeValue.length);break}n=t,r=-1}}e.input.composing=!0}aY(e,oY)},Nj.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now(),e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.badSafariComposition?e.domObserver.forceFlush():e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,aY(e,20))};const uY=KV&&JV<15||oW&&uW<604;function hY(e,t,n,r,i){let o=$j(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",t=>t(e,i,o||zD.empty)))return!0;if(!o)return!1;let a=function(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}(o),s=a?e.state.tr.replaceSelectionWith(a,r):e.state.tr.replaceSelection(o);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function dY(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Mj.copy=Nj.cut=(e,t)=>{let n=t,r=e.state.selection,i="cut"==n.type;if(r.empty)return;let o=uY?null:n.clipboardData,a=r.content(),{dom:s,text:l}=Tj(e,a);o?(n.preventDefault(),o.clearData(),o.setData("text/html",s.innerHTML),o.setData("text/plain",l)):function(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}(e,s),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},Nj.paste=(e,t)=>{let n=t;if(e.composing&&!lW)return;let r=uY?null:n.clipboardData,i=e.input.shiftKey&&45!=e.input.lastKeyCode;r&&hY(e,dY(r),r.getData("text/html"),i,n)?n.preventDefault():function(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let i=e.input.shiftKey&&45!=e.input.lastKeyCode;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?hY(e,r.value,null,i,t):hY(e,r.textContent,r.innerHTML,i,t)},50)}(e,n)};class pY{constructor(e,t,n){this.slice=e,this.move=t,this.node=n}}const fY=aW?"altKey":"ctrlKey";function gY(e,t){let n;return e.someProp("dragCopies",e=>{n=n||e(t)}),null!=n?!n:!t[fY]}Mj.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i,o=e.state.selection,a=o.empty?null:e.posAtCoords(Wj(n));if(a&&a.pos>=o.from&&a.pos<=(o instanceof Zz?o.to-1:o.to));else if(r&&r.mightDrag)i=Zz.create(e.state.doc,r.mightDrag.pos);else if(n.target&&1==n.target.nodeType){let t=e.docView.nearestDesc(n.target,!0);t&&t.node.type.spec.draggable&&t!=e.docView&&(i=Zz.create(e.state.doc,t.posBefore))}let s=(i||e.state.selection).content(),{dom:l,text:c,slice:u}=Tj(e,s);(!n.dataTransfer.files.length||!nW||rW>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(uY?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",uY||n.dataTransfer.setData("text/plain",c),e.dragging=new pY(u,gY(e,n),i)},Mj.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},Nj.dragover=Nj.dragenter=(e,t)=>t.preventDefault(),Nj.drop=(e,t)=>{try{!function(e,t,n){if(!t.dataTransfer)return;let r=e.posAtCoords(Wj(t));if(!r)return;let i=e.state.doc.resolve(r.pos),o=n&&n.slice;o?e.someProp("transformPasted",t=>{o=t(o,e,!1)}):o=$j(e,dY(t.dataTransfer),uY?null:t.dataTransfer.getData("text/html"),!1,i);let a=!(!n||!gY(e,t));if(e.someProp("handleDrop",n=>n(e,t,o||zD.empty,a)))return void t.preventDefault();if(!o)return;t.preventDefault();let s=o?Tz(e.state.doc,i.pos,o):i.pos;null==s&&(s=i.pos);let l=e.state.tr;if(a){let{node:e}=n;e?e.replace(l):l.deleteSelection()}let c=l.mapping.map(s),u=0==o.openStart&&0==o.openEnd&&1==o.content.childCount,h=l.doc;u?l.replaceRangeWith(c,c,o.content.firstChild):l.replaceRange(c,c,o);if(l.doc.eq(h))return;let d=l.doc.resolve(c);if(u&&Zz.isSelectable(o.content.firstChild)&&d.nodeAfter&&d.nodeAfter.sameMarkup(o.content.firstChild))l.setSelection(new Zz(d));else{let t=l.mapping.map(s);l.mapping.maps[l.mapping.maps.length-1].forEach((e,n,r,i)=>t=i),l.setSelection(uj(e,d,l.doc.resolve(t)))}e.focus(),e.dispatch(l.setMeta("uiEvent","drop"))}(e,t,e.dragging)}finally{e.dragging=null}},Mj.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&rj(e)},20))},Mj.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},Mj.beforeinput=(e,t)=>{if(nW&&lW&&"deleteContentBackward"==t.inputType){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=t)return;if(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",t=>t(e,VV(8,"Backspace"))))return;let{$cursor:n}=e.state.selection;n&&n.pos>0&&e.dispatch(e.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}};for(let c in Nj)Mj[c]=Nj[c];function mY(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}let OY=class e{constructor(e,t){this.toDOM=e,this.spec=t||xY,this.side=this.spec.side||0}map(e,t,n,r){let{pos:i,deleted:o}=e.mapResult(t.from+r,this.side<0?-1:1);return o?null:new vY(i-n,i-n,this)}valid(){return!0}eq(t){return this==t||t instanceof e&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&mY(this.spec,t.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}};class AY{constructor(e,t){this.attrs=e,this.spec=t||xY}map(e,t,n,r){let i=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,o=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return i>=o?null:new vY(i,o,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof AY&&mY(this.attrs,e.attrs)&&mY(this.spec,e.spec)}static is(e){return e.type instanceof AY}destroy(){}}let yY=class e{constructor(e,t){this.attrs=e,this.spec=t||xY}map(e,t,n,r){let i=e.mapResult(t.from+r,1);if(i.deleted)return null;let o=e.mapResult(t.to+r,-1);return o.deleted||o.pos<=i.pos?null:new vY(i.pos-n,o.pos-n,this)}valid(e,t){let n,{index:r,offset:i}=e.content.findIndex(t.from);return i==t.from&&!(n=e.child(r)).isText&&i+n.nodeSize==t.to}eq(t){return this==t||t instanceof e&&mY(this.attrs,t.attrs)&&mY(this.spec,t.spec)}destroy(){}},vY=class e{constructor(e,t,n){this.from=e,this.to=t,this.type=n}copy(t,n){return new e(t,n,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,n){return this.type.map(e,this,t,n)}static widget(t,n,r){return new e(t,t,new OY(n,r))}static inline(t,n,r,i){return new e(t,n,new AY(r,i))}static node(t,n,r,i){return new e(t,n,new yY(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof AY}get widget(){return this.type instanceof OY}};const bY=[],xY={};class wY{constructor(e,t){this.local=e.length?e:bY,this.children=t.length?t:bY}static create(e,t){return t.length?CY(t,e,0,xY):kY}find(e,t,n){let r=[];return this.findInner(null==e?0:e,null==t?1e9:t,r,0,n),r}findInner(e,t,n,r,i){for(let o=0;o<this.local.length;o++){let a=this.local[o];a.from<=t&&a.to>=e&&(!i||i(a.spec))&&n.push(a.copy(a.from+r,a.to+r))}for(let o=0;o<this.children.length;o+=3)if(this.children[o]<t&&this.children[o+1]>e){let a=this.children[o]+1;this.children[o+2].findInner(e-a,t-a,n,r+a,i)}}map(e,t,n){return this==kY||0==e.maps.length?this:this.mapInner(e,t,0,0,n||xY)}mapInner(e,t,n,r,i){let o;for(let a=0;a<this.local.length;a++){let s=this.local[a].map(e,n,r);s&&s.type.valid(t,s)?(o||(o=[])).push(s):i.onRemove&&i.onRemove(this.local[a].spec)}return this.children.length?function(e,t,n,r,i,o,a){let s=e.slice();for(let c=0,u=o;c<n.maps.length;c++){let e=0;n.maps[c].forEach((t,n,r,i)=>{let o=i-r-(n-t);for(let a=0;a<s.length;a+=3){let r=s[a+1];if(r<0||t>r+u-e)continue;let i=s[a]+u-e;n>=i?s[a+1]=t<=i?-2:-1:t>=u&&o&&(s[a]+=o,s[a+1]+=o)}e+=o}),u=n.maps[c].map(u,-1)}let l=!1;for(let c=0;c<s.length;c+=3)if(s[c+1]<0){if(-2==s[c+1]){l=!0,s[c+1]=-1;continue}let t=n.map(e[c]+o),u=t-i;if(u<0||u>=r.content.size){l=!0;continue}let h=n.map(e[c+1]+o,-1)-i,{index:d,offset:p}=r.content.findIndex(u),f=r.maybeChild(d);if(f&&p==u&&p+f.nodeSize==h){let r=s[c+2].mapInner(n,f,t+1,e[c]+o+1,a);r!=kY?(s[c]=u,s[c+1]=h,s[c+2]=r):(s[c+1]=-2,l=!0)}else l=!0}if(l){let l=function(e,t,n,r,i,o,a){function s(e,t){for(let o=0;o<e.local.length;o++){let s=e.local[o].map(r,i,t);s?n.push(s):a.onRemove&&a.onRemove(e.local[o].spec)}for(let n=0;n<e.children.length;n+=3)s(e.children[n+2],e.children[n]+t+1)}for(let l=0;l<e.length;l+=3)-1==e[l+1]&&s(e[l+2],t[l]+o+1);return n}(s,e,t,n,i,o,a),c=CY(l,r,0,a);t=c.local;for(let e=0;e<s.length;e+=3)s[e+1]<0&&(s.splice(e,3),e-=3);for(let e=0,t=0;e<c.children.length;e+=3){let n=c.children[e];for(;t<s.length&&s[t]<n;)t+=3;s.splice(t,0,c.children[e],c.children[e+1],c.children[e+2])}}return new wY(t.sort(QY),s)}(this.children,o||[],e,t,n,r,i):o?new wY(o.sort(QY),bY):kY}add(e,t){return t.length?this==kY?wY.create(e,t):this.addInner(e,t,0):this}addInner(e,t,n){let r,i=0;e.forEach((e,o)=>{let a,s=o+n;if(a=$Y(t,e,s)){for(r||(r=this.children.slice());i<r.length&&r[i]<o;)i+=3;r[i]==o?r[i+2]=r[i+2].addInner(e,a,s+1):r.splice(i,0,o,o+e.nodeSize,CY(a,e,s+1,xY)),i+=3}});let o=TY(i?_Y(t):t,-n);for(let a=0;a<o.length;a++)o[a].type.valid(e,o[a])||o.splice(a--,1);return new wY(o.length?this.local.concat(o).sort(QY):this.local,r||this.children)}remove(e){return 0==e.length||this==kY?this:this.removeInner(e,0)}removeInner(e,t){let n=this.children,r=this.local;for(let i=0;i<n.length;i+=3){let r,o=n[i]+t,a=n[i+1]+t;for(let t,n=0;n<e.length;n++)(t=e[n])&&t.from>o&&t.to<a&&(e[n]=null,(r||(r=[])).push(t));if(!r)continue;n==this.children&&(n=this.children.slice());let s=n[i+2].removeInner(r,o+1);s!=kY?n[i+2]=s:(n.splice(i,3),i-=3)}if(r.length)for(let i,o=0;o<e.length;o++)if(i=e[o])for(let e=0;e<r.length;e++)r[e].eq(i,t)&&(r==this.local&&(r=this.local.slice()),r.splice(e--,1));return n==this.children&&r==this.local?this:r.length||n.length?new wY(r,n):kY}forChild(e,t){if(this==kY)return this;if(t.isLeaf)return wY.empty;let n,r;for(let a=0;a<this.children.length;a+=3)if(this.children[a]>=e){this.children[a]==e&&(n=this.children[a+2]);break}let i=e+1,o=i+t.content.size;for(let a=0;a<this.local.length;a++){let e=this.local[a];if(e.from<o&&e.to>i&&e.type instanceof AY){let t=Math.max(i,e.from)-i,n=Math.min(o,e.to)-i;t<n&&(r||(r=[])).push(e.copy(t,n))}}if(r){let e=new wY(r.sort(QY),bY);return n?new SY([e,n]):e}return n||kY}eq(e){if(this==e)return!0;if(!(e instanceof wY)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return PY(this.localsInner(e))}localsInner(e){if(this==kY)return bY;if(e.inlineContent||!this.local.some(AY.is))return this.local;let t=[];for(let n=0;n<this.local.length;n++)this.local[n].type instanceof AY||t.push(this.local[n]);return t}forEachSet(e){e(this)}}wY.empty=new wY([],[]),wY.removeOverlap=PY;const kY=wY.empty;class SY{constructor(e){this.members=e}map(e,t){const n=this.members.map(n=>n.map(e,t,xY));return SY.from(n)}forChild(e,t){if(t.isLeaf)return wY.empty;let n=[];for(let r=0;r<this.members.length;r++){let i=this.members[r].forChild(e,t);i!=kY&&(i instanceof SY?n=n.concat(i.members):n.push(i))}return SY.from(n)}eq(e){if(!(e instanceof SY)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,n=!0;for(let r=0;r<this.members.length;r++){let i=this.members[r].localsInner(e);if(i.length)if(t){n&&(t=t.slice(),n=!1);for(let e=0;e<i.length;e++)t.push(i[e])}else t=i}return t?PY(n?t:t.sort(QY)):bY}static from(e){switch(e.length){case 0:return kY;case 1:return e[0];default:return new SY(e.every(e=>e instanceof wY)?e:e.reduce((e,t)=>e.concat(t instanceof wY?t:t.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}}function TY(e,t){if(!t||!e.length)return e;let n=[];for(let r=0;r<e.length;r++){let i=e[r];n.push(new vY(i.from+t,i.to+t,i.type))}return n}function $Y(e,t,n){if(t.isLeaf)return null;let r=n+t.nodeSize,i=null;for(let o,a=0;a<e.length;a++)(o=e[a])&&o.from>n&&o.to<r&&((i||(i=[])).push(o),e[a]=null);return i}function _Y(e){let t=[];for(let n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function CY(e,t,n,r){let i=[],o=!1;t.forEach((t,a)=>{let s=$Y(e,t,a+n);if(s){o=!0;let e=CY(s,t,n+a+1,r);e!=kY&&i.push(a,a+t.nodeSize,e)}});let a=TY(o?_Y(e):e,-n).sort(QY);for(let s=0;s<a.length;s++)a[s].type.valid(t,a[s])||(r.onRemove&&r.onRemove(a[s].spec),a.splice(s--,1));return a.length||i.length?new wY(a,i):kY}function QY(e,t){return e.from-t.from||e.to-t.to}function PY(e){let t=e;for(let n=0;n<t.length-1;n++){let r=t[n];if(r.from!=r.to)for(let i=n+1;i<t.length;i++){let o=t[i];if(o.from!=r.from){o.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,o.from),EY(t,i,r.copy(o.from,r.to)));break}o.to!=r.to&&(t==e&&(t=e.slice()),t[i]=o.copy(o.from,r.to),EY(t,i+1,o.copy(r.to,o.to)))}}return t}function EY(e,t,n){for(;t<e.length&&QY(n,e[t])>0;)t++;e.splice(t,0,n)}function RY(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=kY&&t.push(r)}),e.cursorWrapper&&t.push(wY.create(e.state.doc,[e.cursorWrapper.deco])),SY.from(t)}const BY={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},IY=KV&&JV<=11;class LY{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}let DY=class{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new LY,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(t=>{for(let e=0;e<t.length;e++)this.queue.push(t[e]);KV&&JV<=11&&t.some(e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():iW&&e.composing&&t.some(e=>"childList"==e.type&&"TR"==e.target.nodeName)?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),IY&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,BY)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(hj(this.view)){if(this.suppressingSelectionUpdates)return rj(this.view);if(KV&&JV<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&NV(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t,n=new Set;for(let i=e.focusNode;i;i=LV(i))n.add(i);for(let i=e.anchorNode;i;i=LV(i))if(n.has(i)){t=i;break}let r=t&&this.view.docView.nearestDesc(t);return r&&r.ignoreMutation({type:"selection",target:3==t.nodeType?t.parentNode:t})?(this.setCurSelection(),!0):void 0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let n=e.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&hj(e)&&!this.ignoreSelectionChange(n),i=-1,o=-1,a=!1,s=[];if(e.editable)for(let c=0;c<t.length;c++){let e=this.registerMutation(t[c],s);e&&(i=i<0?e.from:Math.min(e.from,i),o=o<0?e.to:Math.max(e.to,o),e.typeOver&&(a=!0))}if(s.some(e=>"BR"==e.nodeName)&&(8==e.input.lastKeyCode||46==e.input.lastKeyCode||nW&&(e.composing||e.input.compositionEndedAt>Date.now()-50)&&t.some(e=>"childList"==e.type&&e.removedNodes.length))){for(let c of s)if("BR"==c.nodeName&&c.parentNode){let e=c.nextSibling;for(;e&&1==e.nodeType;){if("false"==e.contentEditable){c.parentNode.removeChild(c);break}e=e.firstChild}}}else if(eW&&s.length){let t=s.filter(e=>"BR"==e.nodeName);if(2==t.length){let[e,n]=t;e.parentNode&&e.parentNode.parentNode==n.parentNode?n.remove():e.remove()}else{let{focusNode:n}=this.currentSelection;for(let r of t){let t=r.parentNode;!t||"LI"!=t.nodeName||n&&FY(e,n)==t||r.remove()}}}let l=null;i<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&qV(n)&&(l=tj(e))&&l.eq(zz.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,rj(e),this.currentSelection.set(n),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,o),function(e){if(MY.has(e))return;if(MY.set(e,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace)){if(e.requiresGeckoHackNode=eW,NY)return;NY=!0}}(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,function(e,t){var n;let{focusNode:r,focusOffset:i}=e.domSelectionRange();for(let o of t)if("TR"==(null===(n=o.parentNode)||void 0===n?void 0:n.nodeName)){let t=o.nextSibling;for(;t&&"TD"!=t.nodeName&&"TH"!=t.nodeName;)t=t.nextSibling;if(t){let n=t;for(;;){let e=n.firstChild;if(!e||1!=e.nodeType||"false"==e.contentEditable||/^(BR|IMG)$/.test(e.nodeName))break;n=e}n.insertBefore(o,n.firstChild),r==o&&e.domSelection().collapse(o,i)}else o.parentNode.removeChild(o)}}(e,s)),this.handleDOMChange(i,o,a,s),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(n)||rj(e),this.currentSelection.set(n))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(e))return null;if("childList"==e.type){for(let n=0;n<e.addedNodes.length;n++){let r=e.addedNodes[n];t.push(r),3==r.nodeType&&(this.lastChangedTextNode=r)}if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};let r=e.previousSibling,i=e.nextSibling;if(KV&&JV<=11&&e.addedNodes.length)for(let t=0;t<e.addedNodes.length;t++){let{previousSibling:n,nextSibling:o}=e.addedNodes[t];(!n||Array.prototype.indexOf.call(e.addedNodes,n)<0)&&(r=n),(!o||Array.prototype.indexOf.call(e.addedNodes,o)<0)&&(i=o)}let o=r&&r.parentNode==e.target?IV(r)+1:0,a=n.localPosFromDOM(e.target,o,-1),s=i&&i.parentNode==e.target?IV(i):e.target.childNodes.length;return{from:a,to:n.localPosFromDOM(e.target,s,1)}}return"attributes"==e.type?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:(this.lastChangedTextNode=e.target,{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}},MY=new WeakMap,NY=!1;function XY(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,o=t.endOffset,a=e.domAtPos(e.state.selection.anchor);return NV(a.node,a.offset,i,o)&&([n,r,i,o]=[i,o,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}}function FY(e,t){for(let n=t.parentNode;n&&n!=e.dom;n=n.parentNode){let t=e.docView.nearestDesc(n,!0);if(t&&t.node.isBlock)return n}return null}function UY(e){let t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(iW&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let e=document.createElement("div");return e.appendChild(document.createElement("li")),{skip:e}}if(e.parentNode.lastChild==e||iW&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const zY=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function qY(e,t,n,r,i){let o=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let t=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,n=tj(e,t);if(n&&!e.state.selection.eq(n)){if(nW&&lW&&13===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",t=>t(e,VV(13,"Enter"))))return;let r=e.state.tr.setSelection(n);"pointer"==t?r.setMeta("pointer",!0):"key"==t&&r.scrollIntoView(),o&&r.setMeta("composition",o),e.dispatch(r)}return}let a=e.state.doc.resolve(t),s=a.sharedDepth(n);t=a.before(s+1),n=e.state.doc.resolve(n).after(s+1);let l,c,u=e.state.selection,h=function(e,t,n){let r,{node:i,fromOffset:o,toOffset:a,from:s,to:l}=e.docView.parseRange(t,n),c=e.domSelectionRange(),u=c.anchorNode;if(u&&e.dom.contains(1==u.nodeType?u:u.parentNode)&&(r=[{node:u,offset:c.anchorOffset}],qV(c)||r.push({node:c.focusNode,offset:c.focusOffset})),nW&&8===e.input.lastKeyCode)for(let m=a;m>o;m--){let e=i.childNodes[m-1],t=e.pmViewDesc;if("BR"==e.nodeName&&!t){a=m;break}if(!t||t.size)break}let h=e.state.doc,d=e.someProp("domParser")||_M.fromSchema(e.state.schema),p=h.resolve(s),f=null,g=d.parse(i,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:o,to:a,preserveWhitespace:"pre"!=p.parent.type.whitespace||"full",findPositions:r,ruleFromNode:UY,context:p});if(r&&null!=r[0].pos){let e=r[0].pos,t=r[1]&&r[1].pos;null==t&&(t=e),f={anchor:e+s,head:t+s}}return{doc:g,sel:f,from:s,to:l}}(e,t,n),d=e.state.doc,p=d.slice(h.from,h.to);8===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime?(l=e.state.selection.to,c="end"):(l=e.state.selection.from,c="start"),e.input.lastKeyCode=null;let f=function(e,t,n,r,i){let o=e.findDiffStart(t,n),a=n+e.size,s=n+t.size;if(null==o)return null;let{a:l,b:c}=e.findDiffEnd(t,a,s);if("end"==i){r-=l+Math.max(0,o-Math.min(l,c))-o}if(l<o&&a<s){o-=r<=o&&r>=l?o-r:0,c=o+(c-l),l=o}else if(c<o){o-=r<=o&&r>=c?o-r:0,l=o+(l-c),c=o}return{start:o,endA:l,endB:c}}(p.content,h.doc.content,h.from,l,c);if(f&&e.input.domChangeCount++,(oW&&e.input.lastIOSEnter>Date.now()-225||lW)&&i.some(e=>1==e.nodeType&&!zY.test(e.nodeName))&&(!f||f.endA>=f.endB)&&e.someProp("handleKeyDown",t=>t(e,VV(13,"Enter"))))return void(e.input.lastIOSEnter=0);if(!f){if(!(r&&u instanceof jz&&!u.empty&&u.$head.sameParent(u.$anchor))||e.composing||h.sel&&h.sel.anchor!=h.sel.head){if(h.sel){let t=VY(e,e.state.doc,h.sel);if(t&&!t.eq(e.state.selection)){let n=e.state.tr.setSelection(t);o&&n.setMeta("composition",o),e.dispatch(n)}}return}f={start:u.from,endA:u.to,endB:u.to}}e.state.selection.from<e.state.selection.to&&f.start==f.endB&&e.state.selection instanceof jz&&(f.start>e.state.selection.from&&f.start<=e.state.selection.from+2&&e.state.selection.from>=h.from?f.start=e.state.selection.from:f.endA<e.state.selection.to&&f.endA>=e.state.selection.to-2&&e.state.selection.to<=h.to&&(f.endB+=e.state.selection.to-f.endA,f.endA=e.state.selection.to)),KV&&JV<=11&&f.endB==f.start+1&&f.endA==f.start&&f.start>h.from&&" "==h.doc.textBetween(f.start-h.from-1,f.start-h.from+1)&&(f.start--,f.endA--,f.endB--);let g=h.doc.resolveNoCache(f.start-h.from),m=h.doc.resolveNoCache(f.endB-h.from),O=d.resolve(f.start),A=g.sameParent(m)&&g.parent.inlineContent&&O.end()>=f.endA;if((oW&&e.input.lastIOSEnter>Date.now()-225&&(!A||i.some(e=>"DIV"==e.nodeName||"P"==e.nodeName))||!A&&g.pos<h.doc.content.size&&(!g.sameParent(m)||!g.parent.inlineContent)&&g.pos<m.pos&&!/\S/.test(h.doc.textBetween(g.pos,m.pos,"","")))&&e.someProp("handleKeyDown",t=>t(e,VV(13,"Enter"))))return void(e.input.lastIOSEnter=0);if(e.state.selection.anchor>f.start&&function(e,t,n,r,i){if(n-t<=i.pos-r.pos||WY(r,!0,!1)<i.pos)return!1;let o=e.resolve(t);if(!r.parent.isTextblock){let e=o.nodeAfter;return null!=e&&n==t+e.nodeSize}if(o.parentOffset<o.parent.content.size||!o.parent.isTextblock)return!1;let a=e.resolve(WY(o,!0,!0));return!(!a.parent.isTextblock||a.pos>n||WY(a,!0,!1)<n)&&r.parent.content.cut(r.parentOffset).eq(a.parent.content)}(d,f.start,f.endA,g,m)&&e.someProp("handleKeyDown",t=>t(e,VV(8,"Backspace"))))return void(lW&&nW&&e.domObserver.suppressSelectionUpdates());nW&&f.endB==f.start&&(e.input.lastChromeDelete=Date.now()),lW&&!A&&g.start()!=m.start()&&0==m.parentOffset&&g.depth==m.depth&&h.sel&&h.sel.anchor==h.sel.head&&h.sel.head==f.endA&&(f.endB-=2,m=h.doc.resolveNoCache(f.endB-h.from),setTimeout(()=>{e.someProp("handleKeyDown",function(t){return t(e,VV(13,"Enter"))})},20));let y,v=f.start,b=f.endA,x=t=>{let n=t||e.state.tr.replace(v,b,h.doc.slice(f.start-h.from,f.endB-h.from));if(h.sel){let t=VY(e,n.doc,h.sel);t&&!(nW&&e.composing&&t.empty&&(f.start!=f.endB||e.input.lastChromeDelete<Date.now()-100)&&(t.head==v||t.head==n.mapping.map(b)-1)||KV&&t.empty&&t.head==v)&&n.setSelection(t)}return o&&n.setMeta("composition",o),n.scrollIntoView()};if(A)if(g.pos==m.pos){KV&&JV<=11&&0==g.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>rj(e),20));let t=x(e.state.tr.delete(v,b)),n=d.resolve(f.start).marksAcross(d.resolve(f.endA));n&&t.ensureMarks(n),e.dispatch(t)}else if(f.endA==f.endB&&(y=function(e,t){let n,r,i,o=e.firstChild.marks,a=t.firstChild.marks,s=o,l=a;for(let u=0;u<a.length;u++)s=a[u].removeFromSet(s);for(let u=0;u<o.length;u++)l=o[u].removeFromSet(l);if(1==s.length&&0==l.length)r=s[0],n="add",i=e=>e.mark(r.addToSet(e.marks));else{if(0!=s.length||1!=l.length)return null;r=l[0],n="remove",i=e=>e.mark(r.removeFromSet(e.marks))}let c=[];for(let u=0;u<t.childCount;u++)c.push(i(t.child(u)));if(DD.from(c).eq(e))return{mark:r,type:n}}(g.parent.content.cut(g.parentOffset,m.parentOffset),O.parent.content.cut(O.parentOffset,f.endA-O.start())))){let t=x(e.state.tr);"add"==y.type?t.addMark(v,b,y.mark):t.removeMark(v,b,y.mark),e.dispatch(t)}else if(g.parent.child(g.index()).isText&&g.index()==m.index()-(m.textOffset?0:1)){let t=g.parent.textBetween(g.parentOffset,m.parentOffset),n=()=>x(e.state.tr.insertText(t,v,b));e.someProp("handleTextInput",r=>r(e,v,b,t,n))||e.dispatch(n())}else e.dispatch(x());else e.dispatch(x())}function VY(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:uj(e,t.resolve(n.anchor),t.resolve(n.head))}function WY(e,t,n){let r=e.depth,i=t?e.end():e.pos;for(;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,i++,t=!1;if(n){let t=e.node(r).maybeChild(e.indexAfter(r));for(;t&&!t.isLeaf;)t=t.firstChild,i++}return i}let jY=class{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new Fj,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(KY),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):"function"==typeof e?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=GY(this),ZY(this),this.nodeViews=HY(this),this.docView=NW(this.state.doc,YY(this),RY(this),this.dom,this),this.domObserver=new DY(this,(e,t,n,r)=>qY(this,e,t,n,r)),this.domObserver.start(),function(e){for(let t in Mj){let n=Mj[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{!Vj(e,t)||qj(e,t)||!e.editable&&t.type in Nj||n(e,t)},Xj[t]?{passive:!0}:void 0)}iW&&e.dom.addEventListener("input",()=>null),zj(e)}(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&zj(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(KY),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let n in this._props)t[n]=this._props[n];t.state=this.state;for(let n in e)t[n]=e[n];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){var n;let r=this.state,i=!1,o=!1;e.storedMarks&&this.composing&&(sY(this),o=!0),this.state=e;let a=r.plugins!=e.plugins||this._props.plugins!=t.plugins;if(a||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let e=HY(this);(function(e,t){let n=0,r=0;for(let i in e){if(e[i]!=t[i])return!0;n++}for(let i in t)r++;return n!=r})(e,this.nodeViews)&&(this.nodeViews=e,i=!0)}(a||t.handleDOMEvents!=this._props.handleDOMEvents)&&zj(this),this.editable=GY(this),ZY(this);let s=RY(this),l=YY(this),c=r.plugins==e.plugins||r.doc.eq(e.doc)?e.scrollToSelection>r.scrollToSelection?"to selection":"preserve":"reset",u=i||!this.docView.matchesNode(e.doc,l,s);!u&&e.selection.eq(r.selection)||(o=!0);let h="preserve"==c&&o&&null==this.dom.style.overflowAnchor&&function(e){let t,n,r=e.dom.getBoundingClientRect(),i=Math.max(0,r.top);for(let o=(r.left+r.right)/2,a=i+1;a<Math.min(innerHeight,r.bottom);a+=5){let r=e.root.elementFromPoint(o,a);if(!r||r==e.dom||!e.dom.contains(r))continue;let s=r.getBoundingClientRect();if(s.top>=i-20){t=r,n=s.top;break}}return{refDOM:t,refTop:n,stack:gW(e.dom)}}(this);if(o){this.domObserver.stop();let t=u&&(KV||nW)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&function(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}(r.selection,e.selection);if(u){let n=nW?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=lY(this)),!i&&this.docView.update(e.doc,l,s,this)||(this.docView.updateOuterDeco(l),this.docView.destroy(),this.docView=NW(e.doc,l,s,this.dom,this)),!n||this.trackWrites&&this.dom.contains(this.trackWrites)||(t=!0)}let n=this.input.mouseDown;t||!(n&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&function(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return NV(t.node,t.offset,n.anchorNode,n.anchorOffset)}(this)&&n.delaySelUpdate())?rj(this,t):(lj(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),(null===(n=this.dragging)||void 0===n?void 0:n.node)&&!r.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,r),"reset"==c?this.dom.scrollTop=0:"to selection"==c?this.scrollToSelection():h&&function({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;mW(n,0==r?0:r-t)}(h)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(e&&this.dom.contains(1==e.nodeType?e:e.parentNode))if(this.someProp("handleScrollToSelection",e=>e(this)));else if(this.state.selection instanceof Zz){let t=this.docView.domAfterPos(this.state.selection.from);1==t.nodeType&&fW(this,t.getBoundingClientRect(),e)}else fW(this,this.coordsAtPos(this.state.selection.head,1),e);else;}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let t=0;t<this.pluginViews.length;t++){let n=this.pluginViews[t];n.update&&n.update(this,e)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let e=0;e<this.directPlugins.length;e++){let t=this.directPlugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}for(let e=0;e<this.state.plugins.length;e++){let t=this.state.plugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}}}updateDraggedNode(e,t){let n=e.node,r=-1;if(n.from<this.state.doc.content.size&&this.state.doc.nodeAt(n.from)==n.node)r=n.from;else{let e=n.from+(this.state.doc.content.size-t.doc.content.size);(e>0&&e<this.state.doc.content.size&&this.state.doc.nodeAt(e))==n.node&&(r=e)}this.dragging=new pY(e.slice,e.move,r<0?void 0:Zz.create(this.state.doc,r))}someProp(e,t){let n,r=this._props&&this._props[e];if(null!=r&&(n=t?t(r):r))return n;for(let o=0;o<this.directPlugins.length;o++){let r=this.directPlugins[o].props[e];if(null!=r&&(n=t?t(r):r))return n}let i=this.state.plugins;if(i)for(let o=0;o<i.length;o++){let r=i[o].props[e];if(null!=r&&(n=t?t(r):r))return n}}hasFocus(){if(KV){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if("false"==e.contentEditable)return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&function(e){if(e.setActive)return e.setActive();if(OW)return e.focus(OW);let t=gW(e);e.focus(null==OW?{get preventScroll(){return OW={preventScroll:!0},!0}}:void 0),OW||(OW=!1,mW(t,0))}(this.dom),rj(this),this.domObserver.start()}get root(){let e=this._root;if(null==e)for(let t=this.dom.parentNode;t;t=t.parentNode)if(9==t.nodeType||11==t.nodeType&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=()=>t.ownerDocument.getSelection()),this._root=t;return e||document}updateRoot(){this._root=null}posAtCoords(e){return bW(this,e)}coordsAtPos(e,t=1){return SW(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,n=-1){let r=this.docView.posFromDOM(e,t,n);if(null==r)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(e,t){return RW(this,t||this.state,e)}pasteHTML(e,t){return hY(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return hY(this,e,null,!0,t||new ClipboardEvent("paste"))}serializeForClipboard(e){return Tj(this,e)}destroy(){this.docView&&(!function(e){e.input.mouseDown&&e.input.mouseDown.done(),e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],RY(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,DV=null)}get isDestroyed(){return null==this.docView}dispatchEvent(e){return function(e,t){qj(e,t)||!Mj[t.type]||!e.editable&&t.type in Nj||Mj[t.type](e,t)}(this,e)}domSelectionRange(){let e=this.domSelection();return e?iW&&11===this.root.nodeType&&function(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return XY(e,n)}let n;function r(e){e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0]}return e.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",r,!0),n?XY(e,n):null}(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}};function YY(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if("function"==typeof n&&(n=n(e.state)),n)for(let e in n)"class"==e?t.class+=" "+n[e]:"style"==e?t.style=(t.style?t.style+";":"")+n[e]:t[e]||"contenteditable"==e||"nodeName"==e||(t[e]=String(n[e]))}),t.translate||(t.translate="no"),[vY.node(0,e.state.doc.content.size,t)]}function ZY(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:vY.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function GY(e){return!e.someProp("editable",t=>!1===t(e.state))}function HY(e){let t=Object.create(null);function n(e){for(let n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function KY(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}jY.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};var JY=e=>{throw TypeError(e)},eZ=(e,t,n)=>t.has(e)||JY("Cannot "+n),tZ=(e,t,n)=>(eZ(e,t,"read from private field"),n?n.call(e):t.get(e)),nZ=(e,t,n)=>t.has(e)?JY("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),rZ=(e,t,n,r)=>(eZ(e,t,"write to private field"),t.set(e,n),n);function iZ(e,t){return e.meta={package:"@milkdown/core",group:"System",...t},e}const oZ={strong:(e,t,n,r)=>{const i=e.marker||n.options.strong||"*",o=n.enter("strong"),a=n.createTracker(r);let s=a.move(i+i);return s+=a.move(n.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i+i),o(),s},emphasis:(e,t,n,r)=>{const i=e.marker||n.options.emphasis||"*",o=n.enter("emphasis"),a=n.createTracker(r);let s=a.move(i);return s+=a.move(n.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i),o(),s}},aZ=aD({},"editorView"),sZ=aD({},"editorState"),lZ=aD([],"initTimer"),cZ=aD({},"editor"),uZ=aD([],"inputRules"),hZ=aD([],"prosePlugins"),dZ=aD([],"remarkPlugins"),pZ=aD([],"nodeView"),fZ=aD([],"markView"),gZ=aD(pU().use(zX).use(VF),"remark"),mZ=aD({handlers:oZ},"remarkStringifyOptions"),OZ=PD("ConfigReady");const AZ=PD("InitReady");function yZ(e){const t=t=>(t.inject(cZ,e).inject(hZ,[]).inject(dZ,[]).inject(uZ,[]).inject(pZ,[]).inject(fZ,[]).inject(mZ,{handlers:oZ}).inject(gZ,pU().use(zX).use(VF)).inject(lZ,[OZ]).record(AZ),async()=>{await t.waitTimers(lZ);const e=t.get(mZ);return t.set(gZ,pU().use(zX).use(VF,e)),t.done(AZ),()=>{t.remove(cZ).remove(hZ).remove(dZ).remove(uZ).remove(pZ).remove(fZ).remove(mZ).remove(gZ).remove(lZ).clearTimer(AZ)}});return iZ(t,{displayName:"Init"}),t}const vZ=PD("SchemaReady"),bZ=aD([],"schemaTimer"),xZ=aD({},"schema"),wZ=aD([],"nodes"),kZ=aD([],"marks");function SZ(e){var t;return{...e,parseDOM:null==(t=e.parseDOM)?void 0:t.map(t=>({priority:e.priority,...t}))}}const TZ=e=>(e.inject(xZ,{}).inject(wZ,[]).inject(kZ,[]).inject(bZ,[AZ]).record(vZ),async()=>{await e.waitTimers(bZ);const t=e.get(gZ),n=e.get(dZ).reduce((e,t)=>e.use(t.plugin,t.options),t);e.set(gZ,n);const r=Object.fromEntries(e.get(wZ).map(([e,t])=>[e,SZ(t)])),i=Object.fromEntries(e.get(kZ).map(([e,t])=>[e,SZ(t)])),o=new TM({nodes:r,marks:i});return e.set(xZ,o),e.done(vZ),()=>{e.remove(xZ).remove(wZ).remove(kZ).remove(bZ).clearTimer(vZ)}});var $Z,_Z;iZ(TZ,{displayName:"Schema"});let CZ=class{constructor(){nZ(this,$Z),nZ(this,_Z),rZ(this,$Z,new eD),rZ(this,_Z,null),this.setCtx=e=>{rZ(this,_Z,e)}}get ctx(){return tZ(this,_Z)}create(e,t){const n=e.create(tZ(this,$Z).sliceMap);return n.set(t),n}get(e){return tZ(this,$Z).get(e).get()}remove(e){return tZ(this,$Z).remove(e)}call(e,t){if(null==tZ(this,_Z))throw new UL(FL.callCommandBeforeEditorView,"You're trying to call a command before editor view initialized, make sure to get commandManager from ctx after editor view has been initialized");const n=this.get(e)(t),r=tZ(this,_Z).get(aZ);return n(r.state,r.dispatch,r)}};$Z=new WeakMap,_Z=new WeakMap;const QZ=aD(new CZ,"commands"),PZ=aD([vZ],"commandsTimer"),EZ=PD("CommandsReady"),RZ=e=>{const t=new CZ;return t.setCtx(e),e.inject(QZ,t).inject(PZ,[vZ]).record(EZ),async()=>(await e.waitTimers(PZ),e.done(EZ),()=>{e.remove(QZ).remove(PZ).clearTimer(EZ)})};iZ(RZ,{displayName:"Commands"});const BZ=PD("ParserReady"),IZ=()=>{throw VL()},LZ=aD(IZ,"parser"),DZ=aD([],"parserTimer"),MZ=e=>(e.inject(LZ,IZ).inject(DZ,[vZ]).record(BZ),async()=>{await e.waitTimers(DZ);const t=e.get(gZ),n=e.get(xZ);return e.set(LZ,LU.create(n,t)),e.done(BZ),()=>{e.remove(LZ).remove(DZ).clearTimer(BZ)}});iZ(MZ,{displayName:"Parser"});const NZ=PD("SerializerReady"),XZ=aD([],"serializerTimer"),FZ=()=>{throw VL()},UZ=aD(FZ,"serializer"),zZ=e=>(e.inject(UZ,FZ).inject(XZ,[vZ]).record(NZ),async()=>{await e.waitTimers(XZ);const t=e.get(gZ),n=e.get(xZ);return e.set(UZ,JU.create(n,t)),e.done(NZ),()=>{e.remove(UZ).remove(XZ).clearTimer(NZ)}});iZ(zZ,{displayName:"Serializer"});const qZ=aD("","defaultValue"),VZ=aD(e=>e,"stateOptions"),WZ=aD([],"editorStateTimer"),jZ=PD("EditorStateReady");function YZ(e,t,n){if("string"==typeof e)return t(e);if("html"===e.type)return _M.fromSchema(n).parse(e.dom);if("json"===e.type)return sM.fromJSON(n,e.value);throw function(e){return new UL(FL.docTypeError,`Doc type error, unsupported type: ${qL(e)}`)}(e)}const ZZ=new hq("MILKDOWN_STATE_TRACKER");function GZ(e){const t=mV(pq,eV,tV,rV);return e.Backspace=t,e}const HZ=e=>(e.inject(qZ,"").inject(sZ,{}).inject(VZ,e=>e).inject(WZ,[BZ,NZ,EZ]).record(jZ),async()=>{await e.waitTimers(WZ);const t=e.get(xZ),n=e.get(LZ),r=e.get(uZ),i=e.get(VZ),o=e.get(hZ),a=YZ(e.get(qZ),n,t),s=[...o,new lq({key:ZZ,state:{init:()=>{},apply:(t,n,r,i)=>{e.set(sZ,i)}}}),Mq({rules:r}),RV(GZ(bV))];e.set(hZ,s);const l=i({schema:t,doc:a,plugins:s}),c=aq.create(l);return e.set(sZ,c),e.done(jZ),()=>{e.remove(qZ).remove(sZ).remove(VZ).remove(WZ).clearTimer(jZ)}});iZ(HZ,{displayName:"EditorState"});const KZ=PD("EditorViewReady"),JZ=aD([],"editorViewTimer"),eG=aD({},"editorViewOptions"),tG=aD(null,"root"),nG=aD(null,"rootDOM"),rG=aD({},"rootAttrs");const iG=new hq("MILKDOWN_VIEW_CLEAR"),oG=e=>(e.inject(tG,document.body).inject(aZ,{}).inject(eG,{}).inject(nG,null).inject(rG,{}).inject(JZ,[jZ]).record(KZ),async()=>{await e.wait(AZ);const t=e.get(tG)||document.body,n="string"==typeof t?document.querySelector(t):t;e.update(hZ,t=>[new lq({key:iG,view:t=>{const r=n?function(e,t){const n=document.createElement("div");n.className="milkdown",e.appendChild(n),t.set(nG,n);const r=t.get(rG);return Object.entries(r).forEach(([e,t])=>n.setAttribute(e,t)),n}(n,e):void 0;return(()=>{if(r&&n){const e=t.dom;n.replaceChild(r,e),r.appendChild(e)}})(),{destroy:()=>{null!=r&&r.parentNode&&(null==r||r.parentNode.replaceChild(t.dom,r)),null==r||r.remove()}}}}),...t]),await e.waitTimers(JZ);const r=e.get(sZ),i=e.get(eG),o=Object.fromEntries(e.get(pZ)),a=Object.fromEntries(e.get(fZ)),s=new jY(n,{state:r,nodeViews:o,markViews:a,...i});return function(e){e.classList.add("editor"),e.setAttribute("role","textbox")}(s.dom),e.set(aZ,s),e.done(KZ),()=>{null==s||s.destroy(),e.remove(tG).remove(aZ).remove(eG).remove(nG).remove(rG).remove(JZ).clearTimer(KZ)}});var aG,sG,lG,cG,uG,hG,dG,pG,fG,gG,mG,OG,AG,yG,vG;iZ(oG,{displayName:"EditorView"});aG=new WeakMap,sG=new WeakMap,lG=new WeakMap,cG=new WeakMap,uG=new WeakMap,hG=new WeakMap,dG=new WeakMap,pG=new WeakMap,fG=new WeakMap,gG=new WeakMap,mG=new WeakMap,OG=new WeakMap,AG=new WeakMap,yG=new WeakMap,vG=new WeakMap;let bG=class e{constructor(){nZ(this,aG),nZ(this,sG),nZ(this,lG),nZ(this,cG),nZ(this,uG),nZ(this,hG),nZ(this,dG),nZ(this,pG),nZ(this,fG),nZ(this,gG),nZ(this,mG),nZ(this,OG),nZ(this,AG),nZ(this,yG),nZ(this,vG),rZ(this,aG,!1),rZ(this,sG,"Idle"),rZ(this,lG,[]),rZ(this,cG,()=>{}),rZ(this,uG,new eD),rZ(this,hG,new xD),rZ(this,dG,new Map),rZ(this,pG,new Map),rZ(this,fG,new bD(tZ(this,uG),tZ(this,hG))),rZ(this,gG,()=>{const e=function(e){const t=t=>(t.record(OZ),async()=>(await e(t),t.done(OZ),()=>{t.clearTimer(OZ)}));return iZ(t,{displayName:"Config"}),t}(async e=>{await Promise.all(tZ(this,lG).map(t=>t(e)))}),t=[TZ,MZ,zZ,RZ,HZ,oG,yZ(this),e];tZ(this,mG).call(this,t,tZ(this,pG))}),rZ(this,mG,(e,t)=>{e.forEach(e=>{const n=tZ(this,fG).produce(tZ(this,aG)?e.meta:void 0),r=e(n);t.set(e,{ctx:n,handler:r,cleanup:void 0})})}),rZ(this,OG,(e,t=!1)=>Promise.all([e].flat().map(e=>{const n=tZ(this,dG).get(e),r=null==n?void 0:n.cleanup;return t?tZ(this,dG).delete(e):tZ(this,dG).set(e,{ctx:void 0,handler:void 0,cleanup:void 0}),"function"==typeof r?r():r}))),rZ(this,AG,async()=>{await Promise.all([...tZ(this,pG).entries()].map(([e,{cleanup:t}])=>"function"==typeof t?t():t)),tZ(this,pG).clear()}),rZ(this,yG,e=>{rZ(this,sG,e),tZ(this,cG).call(this,e)}),rZ(this,vG,e=>[...e.entries()].map(async([t,n])=>{const{ctx:r,handler:i}=n;if(!i)return;const o=await i();e.set(t,{ctx:r,handler:i,cleanup:o})})),this.enableInspector=(e=!0)=>(rZ(this,aG,e),this),this.onStatusChange=e=>(rZ(this,cG,e),this),this.config=e=>(tZ(this,lG).push(e),this),this.removeConfig=e=>(rZ(this,lG,tZ(this,lG).filter(t=>t!==e)),this),this.use=e=>{const t=[e].flat();return t.flat().forEach(e=>{tZ(this,dG).set(e,{ctx:void 0,handler:void 0,cleanup:void 0})}),"Created"===tZ(this,sG)&&tZ(this,mG).call(this,t,tZ(this,dG)),this},this.remove=async e=>"OnCreate"===tZ(this,sG)?new Promise(t=>{setTimeout(()=>{t(this.remove(e))},50)}):(await tZ(this,OG).call(this,[e].flat(),!0),this),this.create=async()=>("OnCreate"===tZ(this,sG)||("Created"===tZ(this,sG)&&await this.destroy(),tZ(this,yG).call(this,"OnCreate"),tZ(this,gG).call(this),tZ(this,mG).call(this,[...tZ(this,dG).keys()],tZ(this,dG)),await Promise.all([tZ(this,vG).call(this,tZ(this,pG)),tZ(this,vG).call(this,tZ(this,dG))].flat()),tZ(this,yG).call(this,"Created")),this),this.destroy=async(e=!1)=>"Destroyed"===tZ(this,sG)||"OnDestroy"===tZ(this,sG)?this:"OnCreate"===tZ(this,sG)?new Promise(t=>{setTimeout(()=>{t(this.destroy(e))},50)}):(e&&rZ(this,lG,[]),tZ(this,yG).call(this,"OnDestroy"),await tZ(this,OG).call(this,[...tZ(this,dG).keys()],e),await tZ(this,AG).call(this),tZ(this,yG).call(this,"Destroyed"),this),this.action=e=>e(tZ(this,fG)),this.inspect=()=>tZ(this,aG)?[...tZ(this,pG).values(),...tZ(this,dG).values()].map(({ctx:e})=>{var t;return null==(t=null==e?void 0:e.inspector)?void 0:t.read()}).filter(e=>!!e):[]}static make(){return new e}get ctx(){return tZ(this,fG)}get status(){return tZ(this,sG)}};function xG(e,t){const n=function(e="cmdKey"){return aD(()=>()=>!1,e)}(e),r=i=>async()=>{r.key=n,await i.wait(EZ);const o=t(i);return i.get(QZ).create(n,o),r.run=t=>i.get(QZ).call(e,t),()=>{i.get(QZ).remove(n)}};return r}function wG(e){const t=n=>async()=>{await n.wait(vZ);const r=e(n);return n.update(uZ,e=>[...e,r]),t.inputRule=r,()=>{n.update(uZ,e=>e.filter(e=>e!==r))}};return t}function kG(e,t){const n=r=>async()=>{const i=t(r);return r.update(kZ,t=>[...t.filter(t=>t[0]!==e),[e,i]]),n.id=e,n.schema=i,()=>{r.update(kZ,t=>t.filter(([t])=>t!==e))}};return n.type=t=>{const n=t.get(xZ).marks[e];if(!n)throw function(e){return new UL(FL.missingMarkInSchema,`Missing mark in schema, milkdown cannot find "${e}" in schema.`)}(e);return n},n}function SG(e,t){const n=r=>async()=>{const i=t(r);return r.update(wZ,t=>[...t.filter(t=>t[0]!==e),[e,i]]),n.id=e,n.schema=i,()=>{r.update(wZ,t=>t.filter(([t])=>t!==e))}};return n.type=t=>{const n=t.get(xZ).nodes[e];if(!n)throw YL(e);return n},n}function TG(e){let t;const n=n=>async()=>(await n.wait(vZ),t=e(n),n.update(hZ,e=>[...e,t]),()=>{n.update(hZ,e=>e.filter(e=>e!==t))});return n.plugin=()=>t,n.key=()=>t.spec.key,n}function $G(e){const t=n=>async()=>{await n.wait(vZ);const r=e(n),i=RV(r);return n.update(hZ,e=>[...e,i]),t.keymap=r,()=>{n.update(hZ,e=>e.filter(e=>e!==i))}};return t}function _G(e,t){const n=r=>async()=>{await r.wait(vZ);const i=t(r);return e.type(r)instanceof wM?r.update(pZ,t=>[...t,[e.id,i]]):r.update(fZ,t=>[...t,[e.id,i]]),n.view=i,n.type=e,()=>{e.type(r)instanceof wM?r.update(pZ,t=>t.filter(t=>t[0]!==e.id)):r.update(fZ,t=>t.filter(t=>t[0]!==e.id))}};return n}function CG(e,t){const n=aD(e,t),r=e=>(e.inject(n),()=>()=>{e.remove(n)});return r.key=n,r}function QG(e,t){const n=CG(t,e),r=SG(e,e=>e.get(n.key)(e)),i=[n,r];return i.id=r.id,i.node=r,i.type=e=>r.type(e),i.schema=r.schema,i.ctx=n,i.key=n.key,i.extendSchema=t=>r=>()=>{const o=r.get(n.key),a=t(o)(r);r.update(wZ,t=>[...t.filter(t=>t[0]!==e),[e,a]]),i.schema=a},i}function PG(e,t){const n=CG(t,e),r=kG(e,e=>e.get(n.key)(e)),i=[n,r];return i.id=r.id,i.mark=r,i.type=r.type,i.schema=r.schema,i.ctx=n,i.key=n.key,i.extendSchema=t=>r=>()=>{const o=r.get(n.key),a=t(o)(r);r.update(kZ,t=>[...t.filter(t=>t[0]!==e),[e,a]]),i.schema=a},i}function EG(e,t){const n=Object.fromEntries(Object.entries(t).map(([e,{shortcuts:t}])=>[e,t])),r=CG(n,`${e}Keymap`),i=$G(e=>{const n=e.get(r.key),i=Object.entries(t).flatMap(([t,{command:r}])=>[n[t]].flat().map(t=>[t,r(e)]));return Object.fromEntries(i)}),o=[r,i];return o.ctx=r,o.shortcuts=i,o.key=r.key,o.keymap=i.keymap,o}const RG=(e,t=()=>({}))=>CG(t,`${e}Attr`),BG=(e,t=()=>({}))=>CG(t,`${e}Attr`);function IG(e,t,n){const r=CG({},e),i=e=>async()=>{await e.wait(AZ);const n={plugin:t(e),options:e.get(r.key)};return e.update(dZ,e=>[...e,n]),()=>{e.update(dZ,e=>e.filter(e=>e!==n))}},o=[r,i];return o.id=e,o.plugin=i,o.options=r,o}function LG(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const DG=[["ß","ss"],["ẞ","Ss"],["ä","ae"],["Ä","Ae"],["ö","oe"],["Ö","Oe"],["ü","ue"],["Ü","Ue"],["À","A"],["Á","A"],["Â","A"],["Ã","A"],["Ä","Ae"],["Å","A"],["Æ","AE"],["Ç","C"],["È","E"],["É","E"],["Ê","E"],["Ë","E"],["Ì","I"],["Í","I"],["Î","I"],["Ï","I"],["Ð","D"],["Ñ","N"],["Ò","O"],["Ó","O"],["Ô","O"],["Õ","O"],["Ö","Oe"],["Ő","O"],["Ø","O"],["Ù","U"],["Ú","U"],["Û","U"],["Ü","Ue"],["Ű","U"],["Ý","Y"],["Þ","TH"],["ß","ss"],["à","a"],["á","a"],["â","a"],["ã","a"],["ä","ae"],["å","a"],["æ","ae"],["ç","c"],["è","e"],["é","e"],["ê","e"],["ë","e"],["ì","i"],["í","i"],["î","i"],["ï","i"],["ð","d"],["ñ","n"],["ò","o"],["ó","o"],["ô","o"],["õ","o"],["ö","oe"],["ő","o"],["ø","o"],["ù","u"],["ú","u"],["û","u"],["ü","ue"],["ű","u"],["ý","y"],["þ","th"],["ÿ","y"],["ẞ","SS"],["à","a"],["À","A"],["á","a"],["Á","A"],["â","a"],["Â","A"],["ã","a"],["Ã","A"],["è","e"],["È","E"],["é","e"],["É","E"],["ê","e"],["Ê","E"],["ì","i"],["Ì","I"],["í","i"],["Í","I"],["ò","o"],["Ò","O"],["ó","o"],["Ó","O"],["ô","o"],["Ô","O"],["õ","o"],["Õ","O"],["ù","u"],["Ù","U"],["ú","u"],["Ú","U"],["ý","y"],["Ý","Y"],["ă","a"],["Ă","A"],["Đ","D"],["đ","d"],["ĩ","i"],["Ĩ","I"],["ũ","u"],["Ũ","U"],["ơ","o"],["Ơ","O"],["ư","u"],["Ư","U"],["ạ","a"],["Ạ","A"],["ả","a"],["Ả","A"],["ấ","a"],["Ấ","A"],["ầ","a"],["Ầ","A"],["ẩ","a"],["Ẩ","A"],["ẫ","a"],["Ẫ","A"],["ậ","a"],["Ậ","A"],["ắ","a"],["Ắ","A"],["ằ","a"],["Ằ","A"],["ẳ","a"],["Ẳ","A"],["ẵ","a"],["Ẵ","A"],["ặ","a"],["Ặ","A"],["ẹ","e"],["Ẹ","E"],["ẻ","e"],["Ẻ","E"],["ẽ","e"],["Ẽ","E"],["ế","e"],["Ế","E"],["ề","e"],["Ề","E"],["ể","e"],["Ể","E"],["ễ","e"],["Ễ","E"],["ệ","e"],["Ệ","E"],["ỉ","i"],["Ỉ","I"],["ị","i"],["Ị","I"],["ọ","o"],["Ọ","O"],["ỏ","o"],["Ỏ","O"],["ố","o"],["Ố","O"],["ồ","o"],["Ồ","O"],["ổ","o"],["Ổ","O"],["ỗ","o"],["Ỗ","O"],["ộ","o"],["Ộ","O"],["ớ","o"],["Ớ","O"],["ờ","o"],["Ờ","O"],["ở","o"],["Ở","O"],["ỡ","o"],["Ỡ","O"],["ợ","o"],["Ợ","O"],["ụ","u"],["Ụ","U"],["ủ","u"],["Ủ","U"],["ứ","u"],["Ứ","U"],["ừ","u"],["Ừ","U"],["ử","u"],["Ử","U"],["ữ","u"],["Ữ","U"],["ự","u"],["Ự","U"],["ỳ","y"],["Ỳ","Y"],["ỵ","y"],["Ỵ","Y"],["ỷ","y"],["Ỷ","Y"],["ỹ","y"],["Ỹ","Y"],["ء","e"],["آ","a"],["أ","a"],["ؤ","w"],["إ","i"],["ئ","y"],["ا","a"],["ب","b"],["ة","t"],["ت","t"],["ث","th"],["ج","j"],["ح","h"],["خ","kh"],["د","d"],["ذ","dh"],["ر","r"],["ز","z"],["س","s"],["ش","sh"],["ص","s"],["ض","d"],["ط","t"],["ظ","z"],["ع","e"],["غ","gh"],["ـ","_"],["ف","f"],["ق","q"],["ك","k"],["ل","l"],["م","m"],["ن","n"],["ه","h"],["و","w"],["ى","a"],["ي","y"],["َ","a"],["ُ","u"],["ِ","i"],["٠","0"],["١","1"],["٢","2"],["٣","3"],["٤","4"],["٥","5"],["٦","6"],["٧","7"],["٨","8"],["٩","9"],["چ","ch"],["ک","k"],["گ","g"],["پ","p"],["ژ","zh"],["ی","y"],["۰","0"],["۱","1"],["۲","2"],["۳","3"],["۴","4"],["۵","5"],["۶","6"],["۷","7"],["۸","8"],["۹","9"],["ټ","p"],["ځ","z"],["څ","c"],["ډ","d"],["ﺫ","d"],["ﺭ","r"],["ړ","r"],["ﺯ","z"],["ږ","g"],["ښ","x"],["ګ","g"],["ڼ","n"],["ۀ","e"],["ې","e"],["ۍ","ai"],["ٹ","t"],["ڈ","d"],["ڑ","r"],["ں","n"],["ہ","h"],["ھ","h"],["ے","e"],["А","A"],["а","a"],["Б","B"],["б","b"],["В","V"],["в","v"],["Г","G"],["г","g"],["Д","D"],["д","d"],["ъе","ye"],["Ъе","Ye"],["ъЕ","yE"],["ЪЕ","YE"],["Е","E"],["е","e"],["Ё","Yo"],["ё","yo"],["Ж","Zh"],["ж","zh"],["З","Z"],["з","z"],["И","I"],["и","i"],["ый","iy"],["Ый","Iy"],["ЫЙ","IY"],["ыЙ","iY"],["Й","Y"],["й","y"],["К","K"],["к","k"],["Л","L"],["л","l"],["М","M"],["м","m"],["Н","N"],["н","n"],["О","O"],["о","o"],["П","P"],["п","p"],["Р","R"],["р","r"],["С","S"],["с","s"],["Т","T"],["т","t"],["У","U"],["у","u"],["Ф","F"],["ф","f"],["Х","Kh"],["х","kh"],["Ц","Ts"],["ц","ts"],["Ч","Ch"],["ч","ch"],["Ш","Sh"],["ш","sh"],["Щ","Sch"],["щ","sch"],["Ъ",""],["ъ",""],["Ы","Y"],["ы","y"],["Ь",""],["ь",""],["Э","E"],["э","e"],["Ю","Yu"],["ю","yu"],["Я","Ya"],["я","ya"],["ă","a"],["Ă","A"],["ș","s"],["Ș","S"],["ț","t"],["Ț","T"],["ţ","t"],["Ţ","T"],["ş","s"],["Ş","S"],["ç","c"],["Ç","C"],["ğ","g"],["Ğ","G"],["ı","i"],["İ","I"],["ա","a"],["Ա","A"],["բ","b"],["Բ","B"],["գ","g"],["Գ","G"],["դ","d"],["Դ","D"],["ե","ye"],["Ե","Ye"],["զ","z"],["Զ","Z"],["է","e"],["Է","E"],["ը","y"],["Ը","Y"],["թ","t"],["Թ","T"],["ժ","zh"],["Ժ","Zh"],["ի","i"],["Ի","I"],["լ","l"],["Լ","L"],["խ","kh"],["Խ","Kh"],["ծ","ts"],["Ծ","Ts"],["կ","k"],["Կ","K"],["հ","h"],["Հ","H"],["ձ","dz"],["Ձ","Dz"],["ղ","gh"],["Ղ","Gh"],["ճ","tch"],["Ճ","Tch"],["մ","m"],["Մ","M"],["յ","y"],["Յ","Y"],["ն","n"],["Ն","N"],["շ","sh"],["Շ","Sh"],["ո","vo"],["Ո","Vo"],["չ","ch"],["Չ","Ch"],["պ","p"],["Պ","P"],["ջ","j"],["Ջ","J"],["ռ","r"],["Ռ","R"],["ս","s"],["Ս","S"],["վ","v"],["Վ","V"],["տ","t"],["Տ","T"],["ր","r"],["Ր","R"],["ց","c"],["Ց","C"],["ու","u"],["ՈՒ","U"],["Ու","U"],["փ","p"],["Փ","P"],["ք","q"],["Ք","Q"],["օ","o"],["Օ","O"],["ֆ","f"],["Ֆ","F"],["և","yev"],["ა","a"],["ბ","b"],["გ","g"],["დ","d"],["ე","e"],["ვ","v"],["ზ","z"],["თ","t"],["ი","i"],["კ","k"],["ლ","l"],["მ","m"],["ნ","n"],["ო","o"],["პ","p"],["ჟ","zh"],["რ","r"],["ს","s"],["ტ","t"],["უ","u"],["ფ","ph"],["ქ","q"],["ღ","gh"],["ყ","k"],["შ","sh"],["ჩ","ch"],["ც","ts"],["ძ","dz"],["წ","ts"],["ჭ","tch"],["ხ","kh"],["ჯ","j"],["ჰ","h"],["č","c"],["ď","d"],["ě","e"],["ň","n"],["ř","r"],["š","s"],["ť","t"],["ů","u"],["ž","z"],["Č","C"],["Ď","D"],["Ě","E"],["Ň","N"],["Ř","R"],["Š","S"],["Ť","T"],["Ů","U"],["Ž","Z"],["ހ","h"],["ށ","sh"],["ނ","n"],["ރ","r"],["ބ","b"],["ޅ","lh"],["ކ","k"],["އ","a"],["ވ","v"],["މ","m"],["ފ","f"],["ދ","dh"],["ތ","th"],["ލ","l"],["ގ","g"],["ޏ","gn"],["ސ","s"],["ޑ","d"],["ޒ","z"],["ޓ","t"],["ޔ","y"],["ޕ","p"],["ޖ","j"],["ޗ","ch"],["ޘ","tt"],["ޙ","hh"],["ޚ","kh"],["ޛ","th"],["ޜ","z"],["ޝ","sh"],["ޞ","s"],["ޟ","d"],["ޠ","t"],["ޡ","z"],["ޢ","a"],["ޣ","gh"],["ޤ","q"],["ޥ","w"],["ަ","a"],["ާ","aa"],["ި","i"],["ީ","ee"],["ު","u"],["ޫ","oo"],["ެ","e"],["ޭ","ey"],["ޮ","o"],["ޯ","oa"],["ް",""],["α","a"],["β","v"],["γ","g"],["δ","d"],["ε","e"],["ζ","z"],["η","i"],["θ","th"],["ι","i"],["κ","k"],["λ","l"],["μ","m"],["ν","n"],["ξ","ks"],["ο","o"],["π","p"],["ρ","r"],["σ","s"],["τ","t"],["υ","y"],["φ","f"],["χ","x"],["ψ","ps"],["ω","o"],["ά","a"],["έ","e"],["ί","i"],["ό","o"],["ύ","y"],["ή","i"],["ώ","o"],["ς","s"],["ϊ","i"],["ΰ","y"],["ϋ","y"],["ΐ","i"],["Α","A"],["Β","B"],["Γ","G"],["Δ","D"],["Ε","E"],["Ζ","Z"],["Η","I"],["Θ","TH"],["Ι","I"],["Κ","K"],["Λ","L"],["Μ","M"],["Ν","N"],["Ξ","KS"],["Ο","O"],["Π","P"],["Ρ","R"],["Σ","S"],["Τ","T"],["Υ","Y"],["Φ","F"],["Χ","X"],["Ψ","PS"],["Ω","O"],["Ά","A"],["Έ","E"],["Ί","I"],["Ό","O"],["Ύ","Y"],["Ή","I"],["Ώ","O"],["Ϊ","I"],["Ϋ","Y"],["ā","a"],["ē","e"],["ģ","g"],["ī","i"],["ķ","k"],["ļ","l"],["ņ","n"],["ū","u"],["Ā","A"],["Ē","E"],["Ģ","G"],["Ī","I"],["Ķ","K"],["Ļ","L"],["Ņ","N"],["Ū","U"],["č","c"],["š","s"],["ž","z"],["Č","C"],["Š","S"],["Ž","Z"],["ą","a"],["č","c"],["ę","e"],["ė","e"],["į","i"],["š","s"],["ų","u"],["ū","u"],["ž","z"],["Ą","A"],["Č","C"],["Ę","E"],["Ė","E"],["Į","I"],["Š","S"],["Ų","U"],["Ū","U"],["Ќ","Kj"],["ќ","kj"],["Љ","Lj"],["љ","lj"],["Њ","Nj"],["њ","nj"],["Тс","Ts"],["тс","ts"],["ą","a"],["ć","c"],["ę","e"],["ł","l"],["ń","n"],["ś","s"],["ź","z"],["ż","z"],["Ą","A"],["Ć","C"],["Ę","E"],["Ł","L"],["Ń","N"],["Ś","S"],["Ź","Z"],["Ż","Z"],["Є","Ye"],["І","I"],["Ї","Yi"],["Ґ","G"],["є","ye"],["і","i"],["ї","yi"],["ґ","g"],["IJ","IJ"],["ij","ij"],["¢","c"],["¥","Y"],["߿","b"],["৳","t"],["૱","Bo"],["฿","B"],["₠","CE"],["₡","C"],["₢","Cr"],["₣","F"],["₥","m"],["₦","N"],["₧","Pt"],["₨","Rs"],["₩","W"],["₫","s"],["€","E"],["₭","K"],["₮","T"],["₯","Dp"],["₰","S"],["₱","P"],["₲","G"],["₳","A"],["₴","S"],["₵","C"],["₶","tt"],["₷","S"],["₸","T"],["₹","R"],["₺","L"],["₽","P"],["₿","B"],["﹩","$"],["¢","c"],["¥","Y"],["₩","W"],["𝐀","A"],["𝐁","B"],["𝐂","C"],["𝐃","D"],["𝐄","E"],["𝐅","F"],["𝐆","G"],["𝐇","H"],["𝐈","I"],["𝐉","J"],["𝐊","K"],["𝐋","L"],["𝐌","M"],["𝐍","N"],["𝐎","O"],["𝐏","P"],["𝐐","Q"],["𝐑","R"],["𝐒","S"],["𝐓","T"],["𝐔","U"],["𝐕","V"],["𝐖","W"],["𝐗","X"],["𝐘","Y"],["𝐙","Z"],["𝐚","a"],["𝐛","b"],["𝐜","c"],["𝐝","d"],["𝐞","e"],["𝐟","f"],["𝐠","g"],["𝐡","h"],["𝐢","i"],["𝐣","j"],["𝐤","k"],["𝐥","l"],["𝐦","m"],["𝐧","n"],["𝐨","o"],["𝐩","p"],["𝐪","q"],["𝐫","r"],["𝐬","s"],["𝐭","t"],["𝐮","u"],["𝐯","v"],["𝐰","w"],["𝐱","x"],["𝐲","y"],["𝐳","z"],["𝐴","A"],["𝐵","B"],["𝐶","C"],["𝐷","D"],["𝐸","E"],["𝐹","F"],["𝐺","G"],["𝐻","H"],["𝐼","I"],["𝐽","J"],["𝐾","K"],["𝐿","L"],["𝑀","M"],["𝑁","N"],["𝑂","O"],["𝑃","P"],["𝑄","Q"],["𝑅","R"],["𝑆","S"],["𝑇","T"],["𝑈","U"],["𝑉","V"],["𝑊","W"],["𝑋","X"],["𝑌","Y"],["𝑍","Z"],["𝑎","a"],["𝑏","b"],["𝑐","c"],["𝑑","d"],["𝑒","e"],["𝑓","f"],["𝑔","g"],["𝑖","i"],["𝑗","j"],["𝑘","k"],["𝑙","l"],["𝑚","m"],["𝑛","n"],["𝑜","o"],["𝑝","p"],["𝑞","q"],["𝑟","r"],["𝑠","s"],["𝑡","t"],["𝑢","u"],["𝑣","v"],["𝑤","w"],["𝑥","x"],["𝑦","y"],["𝑧","z"],["𝑨","A"],["𝑩","B"],["𝑪","C"],["𝑫","D"],["𝑬","E"],["𝑭","F"],["𝑮","G"],["𝑯","H"],["𝑰","I"],["𝑱","J"],["𝑲","K"],["𝑳","L"],["𝑴","M"],["𝑵","N"],["𝑶","O"],["𝑷","P"],["𝑸","Q"],["𝑹","R"],["𝑺","S"],["𝑻","T"],["𝑼","U"],["𝑽","V"],["𝑾","W"],["𝑿","X"],["𝒀","Y"],["𝒁","Z"],["𝒂","a"],["𝒃","b"],["𝒄","c"],["𝒅","d"],["𝒆","e"],["𝒇","f"],["𝒈","g"],["𝒉","h"],["𝒊","i"],["𝒋","j"],["𝒌","k"],["𝒍","l"],["𝒎","m"],["𝒏","n"],["𝒐","o"],["𝒑","p"],["𝒒","q"],["𝒓","r"],["𝒔","s"],["𝒕","t"],["𝒖","u"],["𝒗","v"],["𝒘","w"],["𝒙","x"],["𝒚","y"],["𝒛","z"],["𝒜","A"],["𝒞","C"],["𝒟","D"],["𝒢","g"],["𝒥","J"],["𝒦","K"],["𝒩","N"],["𝒪","O"],["𝒫","P"],["𝒬","Q"],["𝒮","S"],["𝒯","T"],["𝒰","U"],["𝒱","V"],["𝒲","W"],["𝒳","X"],["𝒴","Y"],["𝒵","Z"],["𝒶","a"],["𝒷","b"],["𝒸","c"],["𝒹","d"],["𝒻","f"],["𝒽","h"],["𝒾","i"],["𝒿","j"],["𝓀","h"],["𝓁","l"],["𝓂","m"],["𝓃","n"],["𝓅","p"],["𝓆","q"],["𝓇","r"],["𝓈","s"],["𝓉","t"],["𝓊","u"],["𝓋","v"],["𝓌","w"],["𝓍","x"],["𝓎","y"],["𝓏","z"],["𝓐","A"],["𝓑","B"],["𝓒","C"],["𝓓","D"],["𝓔","E"],["𝓕","F"],["𝓖","G"],["𝓗","H"],["𝓘","I"],["𝓙","J"],["𝓚","K"],["𝓛","L"],["𝓜","M"],["𝓝","N"],["𝓞","O"],["𝓟","P"],["𝓠","Q"],["𝓡","R"],["𝓢","S"],["𝓣","T"],["𝓤","U"],["𝓥","V"],["𝓦","W"],["𝓧","X"],["𝓨","Y"],["𝓩","Z"],["𝓪","a"],["𝓫","b"],["𝓬","c"],["𝓭","d"],["𝓮","e"],["𝓯","f"],["𝓰","g"],["𝓱","h"],["𝓲","i"],["𝓳","j"],["𝓴","k"],["𝓵","l"],["𝓶","m"],["𝓷","n"],["𝓸","o"],["𝓹","p"],["𝓺","q"],["𝓻","r"],["𝓼","s"],["𝓽","t"],["𝓾","u"],["𝓿","v"],["𝔀","w"],["𝔁","x"],["𝔂","y"],["𝔃","z"],["𝔄","A"],["𝔅","B"],["𝔇","D"],["𝔈","E"],["𝔉","F"],["𝔊","G"],["𝔍","J"],["𝔎","K"],["𝔏","L"],["𝔐","M"],["𝔑","N"],["𝔒","O"],["𝔓","P"],["𝔔","Q"],["𝔖","S"],["𝔗","T"],["𝔘","U"],["𝔙","V"],["𝔚","W"],["𝔛","X"],["𝔜","Y"],["𝔞","a"],["𝔟","b"],["𝔠","c"],["𝔡","d"],["𝔢","e"],["𝔣","f"],["𝔤","g"],["𝔥","h"],["𝔦","i"],["𝔧","j"],["𝔨","k"],["𝔩","l"],["𝔪","m"],["𝔫","n"],["𝔬","o"],["𝔭","p"],["𝔮","q"],["𝔯","r"],["𝔰","s"],["𝔱","t"],["𝔲","u"],["𝔳","v"],["𝔴","w"],["𝔵","x"],["𝔶","y"],["𝔷","z"],["𝔸","A"],["𝔹","B"],["𝔻","D"],["𝔼","E"],["𝔽","F"],["𝔾","G"],["𝕀","I"],["𝕁","J"],["𝕂","K"],["𝕃","L"],["𝕄","M"],["𝕆","N"],["𝕊","S"],["𝕋","T"],["𝕌","U"],["𝕍","V"],["𝕎","W"],["𝕏","X"],["𝕐","Y"],["𝕒","a"],["𝕓","b"],["𝕔","c"],["𝕕","d"],["𝕖","e"],["𝕗","f"],["𝕘","g"],["𝕙","h"],["𝕚","i"],["𝕛","j"],["𝕜","k"],["𝕝","l"],["𝕞","m"],["𝕟","n"],["𝕠","o"],["𝕡","p"],["𝕢","q"],["𝕣","r"],["𝕤","s"],["𝕥","t"],["𝕦","u"],["𝕧","v"],["𝕨","w"],["𝕩","x"],["𝕪","y"],["𝕫","z"],["𝕬","A"],["𝕭","B"],["𝕮","C"],["𝕯","D"],["𝕰","E"],["𝕱","F"],["𝕲","G"],["𝕳","H"],["𝕴","I"],["𝕵","J"],["𝕶","K"],["𝕷","L"],["𝕸","M"],["𝕹","N"],["𝕺","O"],["𝕻","P"],["𝕼","Q"],["𝕽","R"],["𝕾","S"],["𝕿","T"],["𝖀","U"],["𝖁","V"],["𝖂","W"],["𝖃","X"],["𝖄","Y"],["𝖅","Z"],["𝖆","a"],["𝖇","b"],["𝖈","c"],["𝖉","d"],["𝖊","e"],["𝖋","f"],["𝖌","g"],["𝖍","h"],["𝖎","i"],["𝖏","j"],["𝖐","k"],["𝖑","l"],["𝖒","m"],["𝖓","n"],["𝖔","o"],["𝖕","p"],["𝖖","q"],["𝖗","r"],["𝖘","s"],["𝖙","t"],["𝖚","u"],["𝖛","v"],["𝖜","w"],["𝖝","x"],["𝖞","y"],["𝖟","z"],["𝖠","A"],["𝖡","B"],["𝖢","C"],["𝖣","D"],["𝖤","E"],["𝖥","F"],["𝖦","G"],["𝖧","H"],["𝖨","I"],["𝖩","J"],["𝖪","K"],["𝖫","L"],["𝖬","M"],["𝖭","N"],["𝖮","O"],["𝖯","P"],["𝖰","Q"],["𝖱","R"],["𝖲","S"],["𝖳","T"],["𝖴","U"],["𝖵","V"],["𝖶","W"],["𝖷","X"],["𝖸","Y"],["𝖹","Z"],["𝖺","a"],["𝖻","b"],["𝖼","c"],["𝖽","d"],["𝖾","e"],["𝖿","f"],["𝗀","g"],["𝗁","h"],["𝗂","i"],["𝗃","j"],["𝗄","k"],["𝗅","l"],["𝗆","m"],["𝗇","n"],["𝗈","o"],["𝗉","p"],["𝗊","q"],["𝗋","r"],["𝗌","s"],["𝗍","t"],["𝗎","u"],["𝗏","v"],["𝗐","w"],["𝗑","x"],["𝗒","y"],["𝗓","z"],["𝗔","A"],["𝗕","B"],["𝗖","C"],["𝗗","D"],["𝗘","E"],["𝗙","F"],["𝗚","G"],["𝗛","H"],["𝗜","I"],["𝗝","J"],["𝗞","K"],["𝗟","L"],["𝗠","M"],["𝗡","N"],["𝗢","O"],["𝗣","P"],["𝗤","Q"],["𝗥","R"],["𝗦","S"],["𝗧","T"],["𝗨","U"],["𝗩","V"],["𝗪","W"],["𝗫","X"],["𝗬","Y"],["𝗭","Z"],["𝗮","a"],["𝗯","b"],["𝗰","c"],["𝗱","d"],["𝗲","e"],["𝗳","f"],["𝗴","g"],["𝗵","h"],["𝗶","i"],["𝗷","j"],["𝗸","k"],["𝗹","l"],["𝗺","m"],["𝗻","n"],["𝗼","o"],["𝗽","p"],["𝗾","q"],["𝗿","r"],["𝘀","s"],["𝘁","t"],["𝘂","u"],["𝘃","v"],["𝘄","w"],["𝘅","x"],["𝘆","y"],["𝘇","z"],["𝘈","A"],["𝘉","B"],["𝘊","C"],["𝘋","D"],["𝘌","E"],["𝘍","F"],["𝘎","G"],["𝘏","H"],["𝘐","I"],["𝘑","J"],["𝘒","K"],["𝘓","L"],["𝘔","M"],["𝘕","N"],["𝘖","O"],["𝘗","P"],["𝘘","Q"],["𝘙","R"],["𝘚","S"],["𝘛","T"],["𝘜","U"],["𝘝","V"],["𝘞","W"],["𝘟","X"],["𝘠","Y"],["𝘡","Z"],["𝘢","a"],["𝘣","b"],["𝘤","c"],["𝘥","d"],["𝘦","e"],["𝘧","f"],["𝘨","g"],["𝘩","h"],["𝘪","i"],["𝘫","j"],["𝘬","k"],["𝘭","l"],["𝘮","m"],["𝘯","n"],["𝘰","o"],["𝘱","p"],["𝘲","q"],["𝘳","r"],["𝘴","s"],["𝘵","t"],["𝘶","u"],["𝘷","v"],["𝘸","w"],["𝘹","x"],["𝘺","y"],["𝘻","z"],["𝘼","A"],["𝘽","B"],["𝘾","C"],["𝘿","D"],["𝙀","E"],["𝙁","F"],["𝙂","G"],["𝙃","H"],["𝙄","I"],["𝙅","J"],["𝙆","K"],["𝙇","L"],["𝙈","M"],["𝙉","N"],["𝙊","O"],["𝙋","P"],["𝙌","Q"],["𝙍","R"],["𝙎","S"],["𝙏","T"],["𝙐","U"],["𝙑","V"],["𝙒","W"],["𝙓","X"],["𝙔","Y"],["𝙕","Z"],["𝙖","a"],["𝙗","b"],["𝙘","c"],["𝙙","d"],["𝙚","e"],["𝙛","f"],["𝙜","g"],["𝙝","h"],["𝙞","i"],["𝙟","j"],["𝙠","k"],["𝙡","l"],["𝙢","m"],["𝙣","n"],["𝙤","o"],["𝙥","p"],["𝙦","q"],["𝙧","r"],["𝙨","s"],["𝙩","t"],["𝙪","u"],["𝙫","v"],["𝙬","w"],["𝙭","x"],["𝙮","y"],["𝙯","z"],["𝙰","A"],["𝙱","B"],["𝙲","C"],["𝙳","D"],["𝙴","E"],["𝙵","F"],["𝙶","G"],["𝙷","H"],["𝙸","I"],["𝙹","J"],["𝙺","K"],["𝙻","L"],["𝙼","M"],["𝙽","N"],["𝙾","O"],["𝙿","P"],["𝚀","Q"],["𝚁","R"],["𝚂","S"],["𝚃","T"],["𝚄","U"],["𝚅","V"],["𝚆","W"],["𝚇","X"],["𝚈","Y"],["𝚉","Z"],["𝚊","a"],["𝚋","b"],["𝚌","c"],["𝚍","d"],["𝚎","e"],["𝚏","f"],["𝚐","g"],["𝚑","h"],["𝚒","i"],["𝚓","j"],["𝚔","k"],["𝚕","l"],["𝚖","m"],["𝚗","n"],["𝚘","o"],["𝚙","p"],["𝚚","q"],["𝚛","r"],["𝚜","s"],["𝚝","t"],["𝚞","u"],["𝚟","v"],["𝚠","w"],["𝚡","x"],["𝚢","y"],["𝚣","z"],["𝚤","l"],["𝚥","j"],["𝛢","A"],["𝛣","B"],["𝛤","G"],["𝛥","D"],["𝛦","E"],["𝛧","Z"],["𝛨","I"],["𝛩","TH"],["𝛪","I"],["𝛫","K"],["𝛬","L"],["𝛭","M"],["𝛮","N"],["𝛯","KS"],["𝛰","O"],["𝛱","P"],["𝛲","R"],["𝛳","TH"],["𝛴","S"],["𝛵","T"],["𝛶","Y"],["𝛷","F"],["𝛸","x"],["𝛹","PS"],["𝛺","O"],["𝛻","D"],["𝛼","a"],["𝛽","b"],["𝛾","g"],["𝛿","d"],["𝜀","e"],["𝜁","z"],["𝜂","i"],["𝜃","th"],["𝜄","i"],["𝜅","k"],["𝜆","l"],["𝜇","m"],["𝜈","n"],["𝜉","ks"],["𝜊","o"],["𝜋","p"],["𝜌","r"],["𝜍","s"],["𝜎","s"],["𝜏","t"],["𝜐","y"],["𝜑","f"],["𝜒","x"],["𝜓","ps"],["𝜔","o"],["𝜕","d"],["𝜖","E"],["𝜗","TH"],["𝜘","K"],["𝜙","f"],["𝜚","r"],["𝜛","p"],["𝜜","A"],["𝜝","V"],["𝜞","G"],["𝜟","D"],["𝜠","E"],["𝜡","Z"],["𝜢","I"],["𝜣","TH"],["𝜤","I"],["𝜥","K"],["𝜦","L"],["𝜧","M"],["𝜨","N"],["𝜩","KS"],["𝜪","O"],["𝜫","P"],["𝜬","S"],["𝜭","TH"],["𝜮","S"],["𝜯","T"],["𝜰","Y"],["𝜱","F"],["𝜲","X"],["𝜳","PS"],["𝜴","O"],["𝜵","D"],["𝜶","a"],["𝜷","v"],["𝜸","g"],["𝜹","d"],["𝜺","e"],["𝜻","z"],["𝜼","i"],["𝜽","th"],["𝜾","i"],["𝜿","k"],["𝝀","l"],["𝝁","m"],["𝝂","n"],["𝝃","ks"],["𝝄","o"],["𝝅","p"],["𝝆","r"],["𝝇","s"],["𝝈","s"],["𝝉","t"],["𝝊","y"],["𝝋","f"],["𝝌","x"],["𝝍","ps"],["𝝎","o"],["𝝏","a"],["𝝐","e"],["𝝑","i"],["𝝒","k"],["𝝓","f"],["𝝔","r"],["𝝕","p"],["𝝖","A"],["𝝗","B"],["𝝘","G"],["𝝙","D"],["𝝚","E"],["𝝛","Z"],["𝝜","I"],["𝝝","TH"],["𝝞","I"],["𝝟","K"],["𝝠","L"],["𝝡","M"],["𝝢","N"],["𝝣","KS"],["𝝤","O"],["𝝥","P"],["𝝦","R"],["𝝧","TH"],["𝝨","S"],["𝝩","T"],["𝝪","Y"],["𝝫","F"],["𝝬","X"],["𝝭","PS"],["𝝮","O"],["𝝯","D"],["𝝰","a"],["𝝱","v"],["𝝲","g"],["𝝳","d"],["𝝴","e"],["𝝵","z"],["𝝶","i"],["𝝷","th"],["𝝸","i"],["𝝹","k"],["𝝺","l"],["𝝻","m"],["𝝼","n"],["𝝽","ks"],["𝝾","o"],["𝝿","p"],["𝞀","r"],["𝞁","s"],["𝞂","s"],["𝞃","t"],["𝞄","y"],["𝞅","f"],["𝞆","x"],["𝞇","ps"],["𝞈","o"],["𝞉","a"],["𝞊","e"],["𝞋","i"],["𝞌","k"],["𝞍","f"],["𝞎","r"],["𝞏","p"],["𝞐","A"],["𝞑","V"],["𝞒","G"],["𝞓","D"],["𝞔","E"],["𝞕","Z"],["𝞖","I"],["𝞗","TH"],["𝞘","I"],["𝞙","K"],["𝞚","L"],["𝞛","M"],["𝞜","N"],["𝞝","KS"],["𝞞","O"],["𝞟","P"],["𝞠","S"],["𝞡","TH"],["𝞢","S"],["𝞣","T"],["𝞤","Y"],["𝞥","F"],["𝞦","X"],["𝞧","PS"],["𝞨","O"],["𝞩","D"],["𝞪","av"],["𝞫","g"],["𝞬","d"],["𝞭","e"],["𝞮","z"],["𝞯","i"],["𝞰","i"],["𝞱","th"],["𝞲","i"],["𝞳","k"],["𝞴","l"],["𝞵","m"],["𝞶","n"],["𝞷","ks"],["𝞸","o"],["𝞹","p"],["𝞺","r"],["𝞻","s"],["𝞼","s"],["𝞽","t"],["𝞾","y"],["𝞿","f"],["𝟀","x"],["𝟁","ps"],["𝟂","o"],["𝟃","a"],["𝟄","e"],["𝟅","i"],["𝟆","k"],["𝟇","f"],["𝟈","r"],["𝟉","p"],["𝟊","F"],["𝟋","f"],["⒜","(a)"],["⒝","(b)"],["⒞","(c)"],["⒟","(d)"],["⒠","(e)"],["⒡","(f)"],["⒢","(g)"],["⒣","(h)"],["⒤","(i)"],["⒥","(j)"],["⒦","(k)"],["⒧","(l)"],["⒨","(m)"],["⒩","(n)"],["⒪","(o)"],["⒫","(p)"],["⒬","(q)"],["⒭","(r)"],["⒮","(s)"],["⒯","(t)"],["⒰","(u)"],["⒱","(v)"],["⒲","(w)"],["⒳","(x)"],["⒴","(y)"],["⒵","(z)"],["Ⓐ","(A)"],["Ⓑ","(B)"],["Ⓒ","(C)"],["Ⓓ","(D)"],["Ⓔ","(E)"],["Ⓕ","(F)"],["Ⓖ","(G)"],["Ⓗ","(H)"],["Ⓘ","(I)"],["Ⓙ","(J)"],["Ⓚ","(K)"],["Ⓛ","(L)"],["Ⓝ","(N)"],["Ⓞ","(O)"],["Ⓟ","(P)"],["Ⓠ","(Q)"],["Ⓡ","(R)"],["Ⓢ","(S)"],["Ⓣ","(T)"],["Ⓤ","(U)"],["Ⓥ","(V)"],["Ⓦ","(W)"],["Ⓧ","(X)"],["Ⓨ","(Y)"],["Ⓩ","(Z)"],["ⓐ","(a)"],["ⓑ","(b)"],["ⓒ","(b)"],["ⓓ","(c)"],["ⓔ","(e)"],["ⓕ","(f)"],["ⓖ","(g)"],["ⓗ","(h)"],["ⓘ","(i)"],["ⓙ","(j)"],["ⓚ","(k)"],["ⓛ","(l)"],["ⓜ","(m)"],["ⓝ","(n)"],["ⓞ","(o)"],["ⓟ","(p)"],["ⓠ","(q)"],["ⓡ","(r)"],["ⓢ","(s)"],["ⓣ","(t)"],["ⓤ","(u)"],["ⓥ","(v)"],["ⓦ","(w)"],["ⓧ","(x)"],["ⓨ","(y)"],["ⓩ","(z)"],["Ċ","C"],["ċ","c"],["Ġ","G"],["ġ","g"],["Ħ","H"],["ħ","h"],["Ż","Z"],["ż","z"],["𝟎","0"],["𝟏","1"],["𝟐","2"],["𝟑","3"],["𝟒","4"],["𝟓","5"],["𝟔","6"],["𝟕","7"],["𝟖","8"],["𝟗","9"],["𝟘","0"],["𝟙","1"],["𝟚","2"],["𝟛","3"],["𝟜","4"],["𝟝","5"],["𝟞","6"],["𝟟","7"],["𝟠","8"],["𝟡","9"],["𝟢","0"],["𝟣","1"],["𝟤","2"],["𝟥","3"],["𝟦","4"],["𝟧","5"],["𝟨","6"],["𝟩","7"],["𝟪","8"],["𝟫","9"],["𝟬","0"],["𝟭","1"],["𝟮","2"],["𝟯","3"],["𝟰","4"],["𝟱","5"],["𝟲","6"],["𝟳","7"],["𝟴","8"],["𝟵","9"],["𝟶","0"],["𝟷","1"],["𝟸","2"],["𝟹","3"],["𝟺","4"],["𝟻","5"],["𝟼","6"],["𝟽","7"],["𝟾","8"],["𝟿","9"],["①","1"],["②","2"],["③","3"],["④","4"],["⑤","5"],["⑥","6"],["⑦","7"],["⑧","8"],["⑨","9"],["⑩","10"],["⑪","11"],["⑫","12"],["⑬","13"],["⑭","14"],["⑮","15"],["⑯","16"],["⑰","17"],["⑱","18"],["⑲","19"],["⑳","20"],["⑴","1"],["⑵","2"],["⑶","3"],["⑷","4"],["⑸","5"],["⑹","6"],["⑺","7"],["⑻","8"],["⑼","9"],["⑽","10"],["⑾","11"],["⑿","12"],["⒀","13"],["⒁","14"],["⒂","15"],["⒃","16"],["⒄","17"],["⒅","18"],["⒆","19"],["⒇","20"],["⒈","1."],["⒉","2."],["⒊","3."],["⒋","4."],["⒌","5."],["⒍","6."],["⒎","7."],["⒏","8."],["⒐","9."],["⒑","10."],["⒒","11."],["⒓","12."],["⒔","13."],["⒕","14."],["⒖","15."],["⒗","16."],["⒘","17."],["⒙","18."],["⒚","19."],["⒛","20."],["⓪","0"],["⓫","11"],["⓬","12"],["⓭","13"],["⓮","14"],["⓯","15"],["⓰","16"],["⓱","17"],["⓲","18"],["⓳","19"],["⓴","20"],["⓵","1"],["⓶","2"],["⓷","3"],["⓸","4"],["⓹","5"],["⓺","6"],["⓻","7"],["⓼","8"],["⓽","9"],["⓾","10"],["⓿","0"],["🙰","&"],["🙱","&"],["🙲","&"],["🙳","&"],["🙴","&"],["🙵","&"],["🙶",'"'],["🙷",'"'],["🙸",'"'],["‽","?!"],["🙹","?!"],["🙺","?!"],["🙻","?!"],["🙼","/"],["🙽","\\"],["🜇","AR"],["🜈","V"],["🜉","V"],["🜆","VR"],["🜅","VF"],["🜩","2"],["🜪","5"],["🝡","f"],["🝢","W"],["🝣","U"],["🝧","V"],["🝨","T"],["🝪","V"],["🝫","MB"],["🝬","VB"],["🝲","3B"],["🝳","3B"],["💯","100"],["🔙","BACK"],["🔚","END"],["🔛","ON!"],["🔜","SOON"],["🔝","TOP"],["🔞","18"],["🔤","abc"],["🔠","ABCD"],["🔡","abcd"],["🔢","1234"],["🔣","T&@%"],["#️⃣","#"],["*️⃣","*"],["0️⃣","0"],["1️⃣","1"],["2️⃣","2"],["3️⃣","3"],["4️⃣","4"],["5️⃣","5"],["6️⃣","6"],["7️⃣","7"],["8️⃣","8"],["9️⃣","9"],["🔟","10"],["🅰️","A"],["🅱️","B"],["🆎","AB"],["🆑","CL"],["🅾️","O"],["🅿","P"],["🆘","SOS"],["🅲","C"],["🅳","D"],["🅴","E"],["🅵","F"],["🅶","G"],["🅷","H"],["🅸","I"],["🅹","J"],["🅺","K"],["🅻","L"],["🅼","M"],["🅽","N"],["🆀","Q"],["🆁","R"],["🆂","S"],["🆃","T"],["🆄","U"],["🆅","V"],["🆆","W"],["🆇","X"],["🆈","Y"],["🆉","Z"]];function MG(e,t){if("string"!=typeof e)throw new TypeError(`Expected a string, got \`${typeof e}\``);t={customReplacements:[],...t};const n=new Map([...DG,...t.customReplacements]);return e=(e=((e,t)=>{for(const[n,r]of t)e=e.replace(new RegExp(LG(n),"g"),r);return e})(e=e.normalize(),n)).normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").normalize()}const NG=[["&"," and "],["🦄"," unicorn "],["♥"," love "]];function XG(e,t){if("string"!=typeof e)throw new TypeError(`Expected a string, got \`${typeof e}\``);const n=(t={separator:"-",lowercase:!0,decamelize:!0,customReplacements:[],preserveLeadingUnderscore:!1,preserveTrailingDash:!1,preserveCharacters:[],...t}).preserveLeadingUnderscore&&e.startsWith("_"),r=t.preserveTrailingDash&&e.endsWith("-");e=MG(e,{customReplacements:new Map([...NG,...t.customReplacements])}),t.decamelize&&(e=(e=>e.replace(/([A-Z]{2,})(\d+)/g,"$1 $2").replace(/([a-z\d]+)([A-Z]{2,})/g,"$1 $2").replace(/([a-z\d])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-rt-z\d]+)/g,"$1 $2"))(e));const i=(e=>{let t="a-z\\d";if(t+=e.lowercase?"":"A-Z",e.preserveCharacters.length>0)for(const n of e.preserveCharacters){if(n===e.separator)throw new Error(`The separator character \`${e.separator}\` cannot be included in preserved characters: ${e.preserveCharacters}`);t+=LG(n)}return new RegExp(`[^${t}]+`,"g")})(t);return t.lowercase&&(e=e.toLowerCase()),e=(e=(e=e.replace(/([a-zA-Z\d]+)'([ts])(\s|$)/g,"$1$2$3")).replace(i,t.separator)).replace(/\\/g,""),t.separator&&(e=((e,t)=>{const n=LG(t);return e.replace(new RegExp(`${n}{2,}`,"g"),t).replace(new RegExp(`^${n}|${n}$`,"g"),"")})(e,t.separator)),n&&(e=`_${e}`),r&&(e=`${e}-`),e}function FG(e){return function(t,n){let{$from:r,$to:i}=t.selection,o=r.blockRange(i,t=>t.childCount>0&&t.firstChild.type==e);return!!o&&(!n||(r.node(o.depth-1).type==e?function(e,t,n,r){let i=e.tr,o=r.end,a=r.$to.end(r.depth);o<a&&(i.step(new gz(o-1,a,o,a,new zD(DD.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new oM(i.doc.resolve(r.$from.pos),i.doc.resolve(a),r.depth));const s=yz(r);if(null==s)return!1;i.lift(r,s);let l=i.doc.resolve(i.mapping.map(o,-1)-1);Sz(i.doc,l.pos)&&l.nodeBefore.type==l.nodeAfter.type&&i.join(l.pos);return t(i.scrollIntoView()),!0}(t,n,e,o):function(e,t,n){let r=e.tr,i=n.parent;for(let p=n.end,f=n.endIndex-1,g=n.startIndex;f>g;f--)p-=i.child(f).nodeSize,r.delete(p-1,p+1);let o=r.doc.resolve(n.start),a=o.nodeAfter;if(r.mapping.map(n.end)!=n.start+o.nodeAfter.nodeSize)return!1;let s=0==n.startIndex,l=n.endIndex==i.childCount,c=o.node(-1),u=o.index(-1);if(!c.canReplace(u+(s?0:1),u+1,a.content.append(l?DD.empty:DD.from(i))))return!1;let h=o.pos,d=h+a.nodeSize;return r.step(new gz(h-(s?1:0),d+(l?1:0),h+1,d-1,new zD((s?DD.empty:DD.from(i.copy(DD.empty))).append(l?DD.empty:DD.from(i.copy(DD.empty))),s?0:1,l?0:1),s?0:1)),t(r.scrollIntoView()),!0}(t,n,o)))}}function UG(e){return String(e||"").toUpperCase()}function zG(){return function(e){const t=function(e){const t=new Map;if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return pF(e,"definition",function(e){const n=UG(e.identifier);n&&!t.get(n)&&t.set(n,e)}),function(e){const n=UG(e);return t.get(n)}}(e);pF(e,function(e,n,r){if("definition"===e.type&&void 0!==r&&"number"==typeof n)return r.children.splice(n,1),[hF,n];if("imageReference"===e.type||"linkReference"===e.type){const i=t(e.identifier);if(i&&r&&"number"==typeof n)return r.children[n]="imageReference"===e.type?{type:"image",url:i.url,title:i.title,alt:e.alt}:{type:"link",url:i.url,title:i.title,children:e.children},[hF,n]}})}}function qG(e,t){var n;if(!(t.childCount>=1&&"hardbreak"===(null==(n=t.lastChild)?void 0:n.type.name)))return void e.next(t.content);const r=[];t.content.forEach((e,n,i)=>{i!==t.childCount-1&&r.push(e)}),e.next(DD.fromArray(r))}function VG(e,t){return Object.assign(e,{meta:{package:"@milkdown/preset-commonmark",...t}}),e}const WG=BG("emphasis");VG(WG,{displayName:"Attr<emphasis>",group:"Emphasis"});const jG=PG("emphasis",e=>({attrs:{marker:{default:e.get(mZ).emphasis||"*"}},parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style",getAttrs:e=>"italic"===e}],toDOM:t=>["em",e.get(WG.key)(t)],parseMarkdown:{match:e=>"emphasis"===e.type,runner:(e,t,n)=>{e.openMark(n,{marker:t.marker}),e.next(t.children),e.closeMark(n)}},toMarkdown:{match:e=>"emphasis"===e.type.name,runner:(e,t)=>{e.withMark(t,"emphasis",void 0,{marker:t.attrs.marker})}}}));VG(jG.mark,{displayName:"MarkSchema<emphasis>",group:"Emphasis"}),VG(jG.ctx,{displayName:"MarkSchemaCtx<emphasis>",group:"Emphasis"});const YG=xG("ToggleEmphasis",e=>()=>gV(jG.type(e)));VG(YG,{displayName:"Command<toggleEmphasisCommand>",group:"Emphasis"});const ZG=wG(e=>Nq(/(?:^|[^*])\*([^*]+)\*$/,jG.type(e),{getAttr:()=>({marker:"*"}),updateCaptured:({fullMatch:e,start:t})=>e.startsWith("*")?{}:{fullMatch:e.slice(1),start:t+1}}));VG(ZG,{displayName:"InputRule<emphasis>|Star",group:"Emphasis"});const GG=wG(e=>Nq(/(?:^|[^_])_([^_]+)_$/,jG.type(e),{getAttr:()=>({marker:"_"}),updateCaptured:({fullMatch:e,start:t})=>e.startsWith("_")?{}:{fullMatch:e.slice(1),start:t+1}}));VG(GG,{displayName:"InputRule<emphasis>|Underscore",group:"Emphasis"});const HG=EG("emphasisKeymap",{ToggleEmphasis:{shortcuts:"Mod-i",command:e=>{const t=e.get(QZ);return()=>t.call(YG.key)}}});VG(HG.ctx,{displayName:"KeymapCtx<emphasis>",group:"Emphasis"}),VG(HG.shortcuts,{displayName:"Keymap<emphasis>",group:"Emphasis"});const KG=BG("strong");VG(KG,{displayName:"Attr<strong>",group:"Strong"});const JG=PG("strong",e=>({attrs:{marker:{default:e.get(mZ).strong||"*"}},parseDOM:[{tag:"b"},{tag:"strong"},{style:"font-style",getAttrs:e=>"bold"===e}],toDOM:t=>["strong",e.get(KG.key)(t)],parseMarkdown:{match:e=>"strong"===e.type,runner:(e,t,n)=>{e.openMark(n,{marker:t.marker}),e.next(t.children),e.closeMark(n)}},toMarkdown:{match:e=>"strong"===e.type.name,runner:(e,t)=>{e.withMark(t,"strong",void 0,{marker:t.attrs.marker})}}}));VG(JG.mark,{displayName:"MarkSchema<strong>",group:"Strong"}),VG(JG.ctx,{displayName:"MarkSchemaCtx<strong>",group:"Strong"});const eH=xG("ToggleStrong",e=>()=>gV(JG.type(e)));VG(eH,{displayName:"Command<toggleStrongCommand>",group:"Strong"});const tH=wG(e=>Nq(/(?:\*\*|__)([^*_]+)(?:\*\*|__)$/,JG.type(e),{getAttr:e=>({marker:e[0].startsWith("*")?"*":"_"})}));VG(tH,{displayName:"InputRule<strong>",group:"Strong"});const nH=EG("strongKeymap",{ToggleBold:{shortcuts:["Mod-b"],command:e=>{const t=e.get(QZ);return()=>t.call(eH.key)}}});VG(nH.ctx,{displayName:"KeymapCtx<strong>",group:"Strong"}),VG(nH.shortcuts,{displayName:"Keymap<strong>",group:"Strong"});const rH=BG("inlineCode");VG(rH,{displayName:"Attr<inlineCode>",group:"InlineCode"});const iH=PG("inlineCode",e=>({priority:100,code:!0,inclusive:!1,parseDOM:[{tag:"code"}],toDOM:t=>["code",e.get(rH.key)(t)],parseMarkdown:{match:e=>"inlineCode"===e.type,runner:(e,t,n)=>{e.openMark(n),e.addText(t.value),e.closeMark(n)}},toMarkdown:{match:e=>"inlineCode"===e.type.name,runner:(e,t,n)=>{e.withMark(t,"inlineCode",n.text||"")}}}));VG(iH.mark,{displayName:"MarkSchema<inlineCode>",group:"InlineCode"}),VG(iH.ctx,{displayName:"MarkSchemaCtx<inlineCode>",group:"InlineCode"});const oH=xG("ToggleInlineCode",e=>()=>(t,n)=>{const{selection:r,tr:i}=t;if(r.empty)return!1;const{from:o,to:a}=r;return t.doc.rangeHasMark(o,a,iH.type(e))?(null==n||n(i.removeMark(o,a,iH.type(e))),!0):(Object.keys(t.schema.marks).filter(e=>e!==iH.type.name).map(e=>t.schema.marks[e]).forEach(e=>{i.removeMark(o,a,e)}),null==n||n(i.addMark(o,a,iH.type(e).create())),!0)});VG(oH,{displayName:"Command<toggleInlineCodeCommand>",group:"InlineCode"});const aH=wG(e=>Nq(/(?:`)([^`]+)(?:`)$/,iH.type(e)));VG(aH,{displayName:"InputRule<inlineCodeInputRule>",group:"InlineCode"});const sH=EG("inlineCodeKeymap",{ToggleInlineCode:{shortcuts:"Mod-e",command:e=>{const t=e.get(QZ);return()=>t.call(oH.key)}}});VG(sH.ctx,{displayName:"KeymapCtx<inlineCode>",group:"InlineCode"}),VG(sH.shortcuts,{displayName:"Keymap<inlineCode>",group:"InlineCode"});const lH=BG("link");VG(lH,{displayName:"Attr<link>",group:"Link"});const cH=PG("link",e=>({attrs:{href:{},title:{default:null}},parseDOM:[{tag:"a[href]",getAttrs:e=>{if(!(e instanceof HTMLElement))throw jL(e);return{href:e.getAttribute("href"),title:e.getAttribute("title")}}}],toDOM:t=>["a",{...e.get(lH.key)(t),...t.attrs}],parseMarkdown:{match:e=>"link"===e.type,runner:(e,t,n)=>{const r=t.url,i=t.title;e.openMark(n,{href:r,title:i}),e.next(t.children),e.closeMark(n)}},toMarkdown:{match:e=>"link"===e.type.name,runner:(e,t)=>{e.withMark(t,"link",void 0,{title:t.attrs.title,url:t.attrs.href})}}}));VG(cH.mark,{displayName:"MarkSchema<link>",group:"Link"});const uH=xG("ToggleLink",e=>(t={})=>gV(cH.type(e),t));VG(uH,{displayName:"Command<toggleLinkCommand>",group:"Link"});const hH=xG("UpdateLink",e=>(t={})=>(n,r)=>{if(!r)return!1;let i,o=-1;const{selection:a}=n,{from:s,to:l}=a;if(n.doc.nodesBetween(s,s===l?l+1:l,(t,n)=>{if(cH.type(e).isInSet(t.marks))return i=t,o=n,!1}),!i)return!1;const c=i.marks.find(({type:t})=>t===cH.type(e));if(!c)return!1;const u=o,h=o+i.nodeSize,{tr:d}=n,p=cH.type(e).create({...c.attrs,...t});return!!p&&(r(d.removeMark(u,h,c).addMark(u,h,p).setSelection(new jz(d.selection.$anchor)).scrollIntoView()),!0)});VG(hH,{displayName:"Command<updateLinkCommand>",group:"Link"});const dH=SG("doc",()=>({content:"block+",parseMarkdown:{match:({type:e})=>"root"===e,runner:(e,t,n)=>{e.injectRoot(t,n)}},toMarkdown:{match:e=>"doc"===e.type.name,runner:(e,t)=>{e.openNode("root"),e.next(t.content)}}}));VG(dH,{displayName:"NodeSchema<doc>",group:"Doc"});const pH=RG("paragraph");VG(pH,{displayName:"Attr<paragraph>",group:"Paragraph"});const fH=QG("paragraph",e=>({content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM:t=>["p",e.get(pH.key)(t),0],parseMarkdown:{match:e=>"paragraph"===e.type,runner:(e,t,n)=>{e.openNode(n),t.children?e.next(t.children):e.addText(t.value||""),e.closeNode()}},toMarkdown:{match:e=>"paragraph"===e.type.name,runner:(e,t)=>{e.openNode("paragraph"),qG(e,t),e.closeNode()}}}));VG(fH.node,{displayName:"NodeSchema<paragraph>",group:"Paragraph"}),VG(fH.ctx,{displayName:"NodeSchemaCtx<paragraph>",group:"Paragraph"});const gH=xG("TurnIntoText",e=>()=>fV(fH.type(e)));VG(gH,{displayName:"Command<turnIntoTextCommand>",group:"Paragraph"});const mH=EG("paragraphKeymap",{TurnIntoText:{shortcuts:"Mod-Alt-0",command:e=>{const t=e.get(QZ);return()=>t.call(gH.key)}}});VG(mH.ctx,{displayName:"KeymapCtx<paragraph>",group:"Paragraph"}),VG(mH.shortcuts,{displayName:"Keymap<paragraph>",group:"Paragraph"});const OH=Array(6).fill(0).map((e,t)=>t+1);const AH=CG(function(e){return XG(e.textContent)},"headingIdGenerator");VG(AH,{displayName:"Ctx<HeadingIdGenerator>",group:"Heading"});const yH=RG("heading");VG(yH,{displayName:"Attr<heading>",group:"Heading"});const vH=QG("heading",e=>{const t=e.get(AH.key);return{content:"inline*",group:"block",defining:!0,attrs:{id:{default:""},level:{default:1}},parseDOM:OH.map(e=>({tag:`h${e}`,getAttrs:t=>{if(!(t instanceof HTMLElement))throw jL(t);return{level:e,id:t.id}}})),toDOM:n=>[`h${n.attrs.level}`,{...e.get(yH.key)(n),id:n.attrs.id||t(n)},0],parseMarkdown:{match:({type:e})=>"heading"===e,runner:(e,t,n)=>{const r=t.depth;e.openNode(n,{level:r}),e.next(t.children),e.closeNode()}},toMarkdown:{match:e=>"heading"===e.type.name,runner:(e,t)=>{e.openNode("heading",void 0,{depth:t.attrs.level}),qG(e,t),e.closeNode()}}}});VG(vH.node,{displayName:"NodeSchema<heading>",group:"Heading"}),VG(vH.ctx,{displayName:"NodeSchemaCtx<heading>",group:"Heading"});const bH=wG(e=>gq(/^(?<hashes>#+)\s$/,vH.type(e),t=>{var n,r;const i=(null==(r=null==(n=t.groups)?void 0:n.hashes)?void 0:r.length)||0,o=e.get(aZ),{$from:a}=o.state.selection,s=a.node();if("heading"===s.type.name){let e=Number(s.attrs.level)+Number(i);return e>6&&(e=6),{level:e}}return{level:i}}));VG(bH,{displayName:"InputRule<wrapInHeadingInputRule>",group:"Heading"});const xH=xG("WrapInHeading",e=>t=>(t??(t=1),t<1?fV(fH.type(e)):fV(vH.type(e),{level:t})));VG(xH,{displayName:"Command<wrapInHeadingCommand>",group:"Heading"});const wH=xG("DowngradeHeading",e=>()=>(t,n,r)=>{const{$from:i}=t.selection,o=i.node();if(o.type!==vH.type(e)||!t.selection.empty||0!==i.parentOffset)return!1;const a=o.attrs.level-1;return a?(null==n||n(t.tr.setNodeMarkup(t.selection.$from.before(),void 0,{...o.attrs,level:a})),!0):fV(fH.type(e))(t,n,r)});VG(wH,{displayName:"Command<downgradeHeadingCommand>",group:"Heading"});const kH=EG("headingKeymap",{TurnIntoH1:{shortcuts:"Mod-Alt-1",command:e=>{const t=e.get(QZ);return()=>t.call(xH.key,1)}},TurnIntoH2:{shortcuts:"Mod-Alt-2",command:e=>{const t=e.get(QZ);return()=>t.call(xH.key,2)}},TurnIntoH3:{shortcuts:"Mod-Alt-3",command:e=>{const t=e.get(QZ);return()=>t.call(xH.key,3)}},TurnIntoH4:{shortcuts:"Mod-Alt-4",command:e=>{const t=e.get(QZ);return()=>t.call(xH.key,4)}},TurnIntoH5:{shortcuts:"Mod-Alt-5",command:e=>{const t=e.get(QZ);return()=>t.call(xH.key,5)}},TurnIntoH6:{shortcuts:"Mod-Alt-6",command:e=>{const t=e.get(QZ);return()=>t.call(xH.key,6)}},DowngradeHeading:{shortcuts:["Delete","Backspace"],command:e=>{const t=e.get(QZ);return()=>t.call(wH.key)}}});VG(kH.ctx,{displayName:"KeymapCtx<heading>",group:"Heading"}),VG(kH.shortcuts,{displayName:"Keymap<heading>",group:"Heading"});const SH=RG("blockquote");VG(SH,{displayName:"Attr<blockquote>",group:"Blockquote"});const TH=QG("blockquote",e=>({content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM:t=>["blockquote",e.get(SH.key)(t),0],parseMarkdown:{match:({type:e})=>"blockquote"===e,runner:(e,t,n)=>{e.openNode(n).next(t.children).closeNode()}},toMarkdown:{match:e=>"blockquote"===e.type.name,runner:(e,t)=>{e.openNode("blockquote").next(t.content).closeNode()}}}));VG(TH.node,{displayName:"NodeSchema<blockquote>",group:"Blockquote"}),VG(TH.ctx,{displayName:"NodeSchemaCtx<blockquote>",group:"Blockquote"});const $H=wG(e=>fq(/^\s*>\s$/,TH.type(e)));VG($H,{displayName:"InputRule<wrapInBlockquoteInputRule>",group:"Blockquote"});const _H=xG("WrapInBlockquote",e=>()=>pV(TH.type(e)));VG(_H,{displayName:"Command<wrapInBlockquoteCommand>",group:"Blockquote"});const CH=EG("blockquoteKeymap",{WrapInBlockquote:{shortcuts:"Mod-Shift-b",command:e=>{const t=e.get(QZ);return()=>t.call(_H.key)}}});VG(CH.ctx,{displayName:"KeymapCtx<blockquote>",group:"Blockquote"}),VG(CH.shortcuts,{displayName:"Keymap<blockquote>",group:"Blockquote"});const QH=RG("codeBlock",()=>({pre:{},code:{}}));VG(QH,{displayName:"Attr<codeBlock>",group:"CodeBlock"});const PH=QG("code_block",e=>({content:"text*",group:"block",marks:"",defining:!0,code:!0,attrs:{language:{default:""}},parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:e=>{if(!(e instanceof HTMLElement))throw jL(e);return{language:e.dataset.language}}}],toDOM:t=>{const n=e.get(QH.key)(t);return["pre",{...n.pre,"data-language":t.attrs.language},["code",n.code,0]]},parseMarkdown:{match:({type:e})=>"code"===e,runner:(e,t,n)=>{const r=t.lang,i=t.value;e.openNode(n,{language:r}),i&&e.addText(i),e.closeNode()}},toMarkdown:{match:e=>"code_block"===e.type.name,runner:(e,t)=>{var n;e.addNode("code",void 0,(null==(n=t.content.firstChild)?void 0:n.text)||"",{lang:t.attrs.language})}}}));VG(PH.node,{displayName:"NodeSchema<codeBlock>",group:"CodeBlock"}),VG(PH.ctx,{displayName:"NodeSchemaCtx<codeBlock>",group:"CodeBlock"});const EH=wG(e=>gq(/^```(?<language>[a-z]*)?[\s\n]$/,PH.type(e),e=>{var t;return{language:(null==(t=e.groups)?void 0:t.language)??""}}));VG(EH,{displayName:"InputRule<createCodeBlockInputRule>",group:"CodeBlock"});const RH=xG("CreateCodeBlock",e=>(t="")=>fV(PH.type(e),{language:t}));VG(RH,{displayName:"Command<createCodeBlockCommand>",group:"CodeBlock"});const BH=xG("UpdateCodeBlockLanguage",()=>({pos:e,language:t}={pos:-1,language:""})=>(n,r)=>e>=0&&(null==r||r(n.tr.setNodeAttribute(e,"language",t)),!0));VG(BH,{displayName:"Command<updateCodeBlockLanguageCommand>",group:"CodeBlock"});const IH=EG("codeBlockKeymap",{CreateCodeBlock:{shortcuts:"Mod-Alt-c",command:e=>{const t=e.get(QZ);return()=>t.call(RH.key)}}});VG(IH.ctx,{displayName:"KeymapCtx<codeBlock>",group:"CodeBlock"}),VG(IH.shortcuts,{displayName:"Keymap<codeBlock>",group:"CodeBlock"});const LH=RG("image");VG(LH,{displayName:"Attr<image>",group:"Image"});const DH=QG("image",e=>({inline:!0,group:"inline",selectable:!0,draggable:!0,marks:"",atom:!0,defining:!0,isolating:!0,attrs:{src:{default:""},alt:{default:""},title:{default:""}},parseDOM:[{tag:"img[src]",getAttrs:e=>{if(!(e instanceof HTMLElement))throw jL(e);return{src:e.getAttribute("src")||"",alt:e.getAttribute("alt")||"",title:e.getAttribute("title")||e.getAttribute("alt")||""}}}],toDOM:t=>["img",{...e.get(LH.key)(t),...t.attrs}],parseMarkdown:{match:({type:e})=>"image"===e,runner:(e,t,n)=>{const r=t.url,i=t.alt,o=t.title;e.addNode(n,{src:r,alt:i,title:o})}},toMarkdown:{match:e=>"image"===e.type.name,runner:(e,t)=>{e.addNode("image",void 0,void 0,{title:t.attrs.title,url:t.attrs.src,alt:t.attrs.alt})}}}));VG(DH.node,{displayName:"NodeSchema<image>",group:"Image"}),VG(DH.ctx,{displayName:"NodeSchemaCtx<image>",group:"Image"});const MH=xG("InsertImage",e=>(t={})=>(n,r)=>{if(!r)return!0;const{src:i="",alt:o="",title:a=""}=t,s=DH.type(e).create({src:i,alt:o,title:a});return s&&r(n.tr.replaceSelectionWith(s).scrollIntoView()),!0});VG(MH,{displayName:"Command<insertImageCommand>",group:"Image"});const NH=xG("UpdateImage",e=>(t={})=>(n,r)=>{const i=Jq(n.selection,DH.type(e));if(!i)return!1;const{node:o,pos:a}=i,s={...o.attrs},{src:l,alt:c,title:u}=t;return void 0!==l&&(s.src=l),void 0!==c&&(s.alt=c),void 0!==u&&(s.title=u),null==r||r(n.tr.setNodeMarkup(a,void 0,s).scrollIntoView()),!0});VG(NH,{displayName:"Command<updateImageCommand>",group:"Image"});const XH=wG(e=>new dq(/!\[(?<alt>.*?)]\((?<filename>.*?)\s*(?="|\))"?(?<title>[^"]+)?"?\)/,(t,n,r,i)=>{const[o,a,s="",l]=n;return o?t.tr.replaceWith(r,i,DH.type(e).create({src:s,alt:a,title:l})):null}));VG(XH,{displayName:"InputRule<insertImageInputRule>",group:"Image"});const FH=RG("hardbreak",e=>({"data-type":"hardbreak","data-is-inline":e.attrs.isInline}));VG(FH,{displayName:"Attr<hardbreak>",group:"Hardbreak"});const UH=QG("hardbreak",e=>({inline:!0,group:"inline",attrs:{isInline:{default:!1}},selectable:!1,parseDOM:[{tag:"br"},{tag:'span[data-type="hardbreak"]',getAttrs:()=>({isInline:!0})}],toDOM:t=>t.attrs.isInline?["span",e.get(FH.key)(t)," "]:["br",e.get(FH.key)(t)],parseMarkdown:{match:({type:e})=>"break"===e,runner:(e,t,n)=>{var r;e.addNode(n,{isInline:!(null==(r=t.data)||!r.isInline)})}},leafText:()=>"\n",toMarkdown:{match:e=>"hardbreak"===e.type.name,runner:(e,t)=>{t.attrs.isInline?e.addNode("text",void 0,"\n"):e.addNode("break")}}}));VG(UH.node,{displayName:"NodeSchema<hardbreak>",group:"Hardbreak"}),VG(UH.ctx,{displayName:"NodeSchemaCtx<hardbreak>",group:"Hardbreak"});const zH=xG("InsertHardbreak",e=>()=>(t,n)=>{var r;const{selection:i,tr:o}=t;if(!(i instanceof jz))return!1;if(i.empty){const e=i.$from.node();if(e.childCount>0&&"hardbreak"===(null==(r=e.lastChild)?void 0:r.type.name))return null==n||n(o.replaceRangeWith(i.to-1,i.to,t.schema.node("paragraph")).setSelection(zz.near(o.doc.resolve(i.to))).scrollIntoView()),!0}return null==n||n(o.setMeta("hardbreak",!0).replaceSelectionWith(UH.type(e).create()).scrollIntoView()),!0});VG(zH,{displayName:"Command<insertHardbreakCommand>",group:"Hardbreak"});const qH=EG("hardbreakKeymap",{InsertHardbreak:{shortcuts:"Shift-Enter",command:e=>{const t=e.get(QZ);return()=>t.call(zH.key)}}});VG(qH.ctx,{displayName:"KeymapCtx<hardbreak>",group:"Hardbreak"}),VG(qH.shortcuts,{displayName:"Keymap<hardbreak>",group:"Hardbreak"});const VH=RG("hr");VG(VH,{displayName:"Attr<hr>",group:"Hr"});const WH=QG("hr",e=>({group:"block",parseDOM:[{tag:"hr"}],toDOM:t=>["hr",e.get(VH.key)(t)],parseMarkdown:{match:({type:e})=>"thematicBreak"===e,runner:(e,t,n)=>{e.addNode(n)}},toMarkdown:{match:e=>"hr"===e.type.name,runner:e=>{e.addNode("thematicBreak")}}}));VG(WH.node,{displayName:"NodeSchema<hr>",group:"Hr"}),VG(WH.ctx,{displayName:"NodeSchemaCtx<hr>",group:"Hr"});const jH=wG(e=>new dq(/^(?:---|___\s|\*\*\*\s)$/,(t,n,r,i)=>{const{tr:o}=t;return n[0]&&o.replaceWith(r-1,i,WH.type(e).create()),o}));VG(jH,{displayName:"InputRule<insertHrInputRule>",group:"Hr"});const YH=xG("InsertHr",e=>()=>(t,n)=>{if(!n)return!0;const r=fH.node.type(e).create(),{tr:i,selection:o}=t,{from:a}=o,s=WH.type(e).create();if(!s)return!0;const l=i.replaceSelectionWith(s).insert(a,r),c=zz.findFrom(l.doc.resolve(a),1,!0);return c&&n(l.setSelection(c).scrollIntoView()),!0});VG(YH,{displayName:"Command<insertHrCommand>",group:"Hr"});const ZH=RG("bulletList");VG(ZH,{displayName:"Attr<bulletList>",group:"BulletList"});const GH=QG("bullet_list",e=>({content:"listItem+",group:"block",attrs:{spread:{default:!1}},parseDOM:[{tag:"ul",getAttrs:e=>{if(!(e instanceof HTMLElement))throw jL(e);return{spread:e.dataset.spread}}}],toDOM:t=>["ul",{...e.get(ZH.key)(t),"data-spread":t.attrs.spread},0],parseMarkdown:{match:({type:e,ordered:t})=>"list"===e&&!t,runner:(e,t,n)=>{const r=null!=t.spread?`${t.spread}`:"false";e.openNode(n,{spread:r}).next(t.children).closeNode()}},toMarkdown:{match:e=>"bullet_list"===e.type.name,runner:(e,t)=>{e.openNode("list",void 0,{ordered:!1,spread:"true"===t.attrs.spread}).next(t.content).closeNode()}}}));VG(GH.node,{displayName:"NodeSchema<bulletList>",group:"BulletList"}),VG(GH.ctx,{displayName:"NodeSchemaCtx<bulletList>",group:"BulletList"});const HH=wG(e=>fq(/^\s*([-+*])\s$/,GH.type(e)));VG(HH,{displayName:"InputRule<wrapInBulletListInputRule>",group:"BulletList"});const KH=xG("WrapInBulletList",e=>()=>pV(GH.type(e)));VG(KH,{displayName:"Command<wrapInBulletListCommand>",group:"BulletList"});const JH=EG("bulletListKeymap",{WrapInBulletList:{shortcuts:"Mod-Alt-8",command:e=>{const t=e.get(QZ);return()=>t.call(KH.key)}}});VG(JH.ctx,{displayName:"KeymapCtx<bulletListKeymap>",group:"BulletList"}),VG(JH.shortcuts,{displayName:"Keymap<bulletListKeymap>",group:"BulletList"});const eK=RG("orderedList");VG(eK,{displayName:"Attr<orderedList>",group:"OrderedList"});const tK=QG("ordered_list",e=>({content:"listItem+",group:"block",attrs:{order:{default:1},spread:{default:!1}},parseDOM:[{tag:"ol",getAttrs:e=>{if(!(e instanceof HTMLElement))throw jL(e);return{spread:e.dataset.spread,order:e.hasAttribute("start")?Number(e.getAttribute("start")):1}}}],toDOM:t=>["ol",{...e.get(eK.key)(t),...1===t.attrs.order?{}:t.attrs.order,"data-spread":t.attrs.spread},0],parseMarkdown:{match:({type:e,ordered:t})=>"list"===e&&!!t,runner:(e,t,n)=>{const r=null!=t.spread?`${t.spread}`:"true";e.openNode(n,{spread:r}).next(t.children).closeNode()}},toMarkdown:{match:e=>"ordered_list"===e.type.name,runner:(e,t)=>{e.openNode("list",void 0,{ordered:!0,start:1,spread:"true"===t.attrs.spread}),e.next(t.content),e.closeNode()}}}));VG(tK.node,{displayName:"NodeSchema<orderedList>",group:"OrderedList"}),VG(tK.ctx,{displayName:"NodeSchemaCtx<orderedList>",group:"OrderedList"});const nK=wG(e=>fq(/^\s*(\d+)\.\s$/,tK.type(e),e=>({order:Number(e[1])}),(e,t)=>t.childCount+t.attrs.order===Number(e[1])));VG(nK,{displayName:"InputRule<wrapInOrderedListInputRule>",group:"OrderedList"});const rK=xG("WrapInOrderedList",e=>()=>pV(tK.type(e)));VG(rK,{displayName:"Command<wrapInOrderedListCommand>",group:"OrderedList"});const iK=EG("orderedListKeymap",{WrapInOrderedList:{shortcuts:"Mod-Alt-7",command:e=>{const t=e.get(QZ);return()=>t.call(rK.key)}}});VG(iK.ctx,{displayName:"KeymapCtx<orderedList>",group:"OrderedList"}),VG(iK.shortcuts,{displayName:"Keymap<orderedList>",group:"OrderedList"});const oK=RG("listItem");VG(oK,{displayName:"Attr<listItem>",group:"ListItem"});const aK=QG("list_item",e=>({group:"listItem",content:"(paragraph|blockquote) block*",attrs:{label:{default:"•"},listType:{default:"bullet"},spread:{default:"true"}},defining:!0,parseDOM:[{tag:"li",getAttrs:e=>{if(!(e instanceof HTMLElement))throw jL(e);return{label:e.dataset.label,listType:e.dataset.listType,spread:e.dataset.spread}}}],toDOM:t=>["li",{...e.get(oK.key)(t),"data-label":t.attrs.label,"data-list-type":t.attrs.listType,"data-spread":t.attrs.spread},0],parseMarkdown:{match:({type:e})=>"listItem"===e,runner:(e,t,n)=>{const r=null!=t.label?`${t.label}.`:"•",i=null!=t.label?"ordered":"bullet",o=null!=t.spread?`${t.spread}`:"true";e.openNode(n,{label:r,listType:i,spread:o}),e.next(t.children),e.closeNode()}},toMarkdown:{match:e=>"list_item"===e.type.name,runner:(e,t)=>{e.openNode("listItem",void 0,{spread:"true"===t.attrs.spread}),e.next(t.content),e.closeNode()}}}));VG(aK.node,{displayName:"NodeSchema<listItem>",group:"ListItem"}),VG(aK.ctx,{displayName:"NodeSchemaCtx<listItem>",group:"ListItem"});const sK=xG("SinkListItem",e=>()=>{return t=aK.type(e),function(e,n){let{$from:r,$to:i}=e.selection,o=r.blockRange(i,e=>e.childCount>0&&e.firstChild.type==t);if(!o)return!1;let a=o.startIndex;if(0==a)return!1;let s=o.parent,l=s.child(a-1);if(l.type!=t)return!1;if(n){let r=l.lastChild&&l.lastChild.type==s.type,i=DD.from(r?t.create():null),a=new zD(DD.from(t.create(null,DD.from(s.type.create(null,i)))),r?3:1,0),c=o.start,u=o.end;n(e.tr.step(new gz(c-(r?3:1),u,c,u,a,1,!0)).scrollIntoView())}return!0};var t});VG(sK,{displayName:"Command<sinkListItemCommand>",group:"ListItem"});const lK=xG("LiftListItem",e=>()=>FG(aK.type(e)));VG(lK,{displayName:"Command<liftListItemCommand>",group:"ListItem"});const cK=xG("SplitListItem",e=>()=>{return t=aK.type(e),function(e,n){let{$from:r,$to:i,node:o}=e.selection;if(o&&o.isBlock||r.depth<2||!r.sameParent(i))return!1;let a=r.node(-1);if(a.type!=t)return!1;if(0==r.parent.content.size&&r.node(-1).childCount==r.indexAfter(-1)){if(3==r.depth||r.node(-3).type!=t||r.index(-2)!=r.node(-2).childCount-1)return!1;if(n){let i=DD.empty,o=r.index(-1)?1:r.index(-2)?2:3;for(let e=r.depth-o;e>=r.depth-3;e--)i=DD.from(r.node(e).copy(i));let a=r.indexAfter(-1)<r.node(-2).childCount?1:r.indexAfter(-2)<r.node(-3).childCount?2:3;i=i.append(DD.from(t.createAndFill()));let s=r.before(r.depth-(o-1)),l=e.tr.replace(s,r.after(-a),new zD(i,4-o,0)),c=-1;l.doc.nodesBetween(s,l.doc.content.size,(e,t)=>{if(c>-1)return!1;e.isTextblock&&0==e.content.size&&(c=t+1)}),c>-1&&l.setSelection(zz.near(l.doc.resolve(c))),n(l.scrollIntoView())}return!0}let s=i.pos==r.end()?a.contentMatchAt(0).defaultType:null,l=e.tr.delete(r.pos,i.pos),c=s?[null,{type:s}]:void 0;return!!kz(l.doc,r.pos,2,c)&&(n&&n(l.split(r.pos,2,c).scrollIntoView()),!0)};var t});VG(cK,{displayName:"Command<splitListItemCommand>",group:"ListItem"});const uK=xG("LiftFirstListItem",e=>()=>function(e){return(t,n,r)=>{const{selection:i}=t;if(!(i instanceof jz))return!1;const{empty:o,$from:a}=i;if(!o||0!==a.parentOffset)return!1;const s=a.node(-1);return!(s.type!==aK.type(e)||s.firstChild!==a.node()||a.node(-2).childCount>1)&&FG(aK.type(e))(t,n,r)}}(e));VG(uK,{displayName:"Command<liftFirstListItemCommand>",group:"ListItem"});const hK=EG("listItemKeymap",{NextListItem:{shortcuts:"Enter",command:e=>{const t=e.get(QZ);return()=>t.call(cK.key)}},SinkListItem:{shortcuts:["Tab","Mod-]"],command:e=>{const t=e.get(QZ);return()=>t.call(sK.key)}},LiftListItem:{shortcuts:["Shift-Tab","Mod-["],command:e=>{const t=e.get(QZ);return()=>t.call(lK.key)}},LiftFirstListItem:{shortcuts:["Backspace","Delete"],command:e=>{const t=e.get(QZ);return()=>t.call(uK.key)}}});VG(hK.ctx,{displayName:"KeymapCtx<listItem>",group:"ListItem"}),VG(hK.shortcuts,{displayName:"Keymap<listItem>",group:"ListItem"});const dK=SG("text",()=>({group:"inline",parseMarkdown:{match:({type:e})=>"text"===e,runner:(e,t)=>{e.addText(t.value)}},toMarkdown:{match:e=>"text"===e.type.name,runner:(e,t)=>{e.addNode("text",void 0,t.text)}}}));VG(dK,{displayName:"NodeSchema<text>",group:"Text"});const pK=RG("html");VG(pK,{displayName:"Attr<html>",group:"Html"});const fK=QG("html",e=>({atom:!0,group:"inline",inline:!0,attrs:{value:{default:""}},toDOM:t=>{const n=document.createElement("span"),r={...e.get(pK.key)(t),"data-value":t.attrs.value,"data-type":"html"};return n.textContent=t.attrs.value,["span",r,t.attrs.value]},parseDOM:[{tag:'span[data-type="html"]',getAttrs:e=>({value:e.dataset.value??""})}],parseMarkdown:{match:({type:e})=>"html"===e,runner:(e,t,n)=>{e.addNode(n,{value:t.value})}},toMarkdown:{match:e=>"html"===e.type.name,runner:(e,t)=>{e.addNode("html",void 0,t.attrs.value)}}}));VG(fK.node,{displayName:"NodeSchema<html>",group:"Html"}),VG(fK.ctx,{displayName:"NodeSchemaCtx<html>",group:"Html"});const gK=[dH,pH,fH,AH,yH,vH,FH,UH,SH,TH,QH,PH,VH,WH,LH,DH,ZH,GH,eK,tK,oK,aK,WG,jG,KG,JG,rH,iH,lH,cH,pK,fK,dK].flat(),mK=[$H,HH,nK,EH,jH,bH].flat(),OK=[ZG,GG,aH,tH],AK=[gH,_H,xH,wH,RH,zH,YH,MH,NH,rK,KH,sK,cK,lK,uK,YG,oH,eH,uH,hH],yK=[CH,IH,qH,kH,hK,iK,JH,mH,HG,sH,nH].flat(),vK=IG("remarkAddOrderInList",()=>()=>e=>{pF(e,"list",e=>{if(e.ordered){const t=e.start??1;e.children.forEach((e,n)=>{e.label=n+t})}})});VG(vK.plugin,{displayName:"Remark<remarkAddOrderInListPlugin>",group:"Remark"}),VG(vK.options,{displayName:"RemarkConfig<remarkAddOrderInListPlugin>",group:"Remark"});const bK=IG("remarkLineBreak",()=>()=>e=>{const t=/[\t ]*(?:\r?\n|\r)/g;pF(e,"text",(e,n,r)=>{if(!e.value||"string"!=typeof e.value)return;const i=[];let o=0;t.lastIndex=0;let a=t.exec(e.value);for(;a;){const n=a.index;o!==n&&i.push({type:"text",value:e.value.slice(o,n)}),i.push({type:"break",data:{isInline:!0}}),o=n+a[0].length,a=t.exec(e.value)}return i.length>0&&r&&"number"==typeof n?(o<e.value.length&&i.push({type:"text",value:e.value.slice(o)}),r.children.splice(n,1,...i),n+i.length):void 0})});VG(bK.plugin,{displayName:"Remark<remarkLineBreak>",group:"Remark"}),VG(bK.options,{displayName:"RemarkConfig<remarkLineBreak>",group:"Remark"});const xK=IG("remarkInlineLink",()=>zG);VG(xK.plugin,{displayName:"Remark<remarkInlineLinkPlugin>",group:"Remark"}),VG(xK.options,{displayName:"RemarkConfig<remarkInlineLinkPlugin>",group:"Remark"});const wK=IG("remarkHTMLTransformer",()=>()=>e=>{!function(e,t){(function e(n,r,i){if((e=>!!e.children)(n)){const t=[];for(let r=0,i=n.children.length;r<i;r++){const i=n.children[r];if(i){const o=e(i,r,n);if(o)for(let e=0,n=o.length;e<n;e++){const n=o[e];n&&t.push(n)}}}n.children=t}return t(n,r,i)})(e,0,null)[0]}(e,(e,t,n)=>(e=>"html"===e.type)(e)?("root"===(null==n?void 0:n.type)&&(e.children=[{...e}],delete e.value,e.type="paragraph"),[e]):[e])});VG(wK.plugin,{displayName:"Remark<remarkHtmlTransformer>",group:"Remark"}),VG(wK.options,{displayName:"RemarkConfig<remarkHtmlTransformer>",group:"Remark"});const kK=IG("remarkMarker",()=>()=>(e,t)=>{pF(e,e=>["strong","emphasis"].includes(e.type),e=>{e.marker=(e=>t.value.charAt(e.position.start.offset))(e)})});VG(kK.plugin,{displayName:"Remark<remarkMarker>",group:"Remark"}),VG(kK.options,{displayName:"RemarkConfig<remarkMarker>",group:"Remark"});const SK=TG(()=>{let e=!1;const t=new hq("MILKDOWN_INLINE_NODES_CURSOR"),n=new lq({key:t,state:{init:()=>!1,apply(e){if(!e.selection.empty)return!1;const t=e.selection.$from,n=t.nodeBefore,r=t.nodeAfter;return!(!(n&&r&&n.isInline&&!n.isText&&r.isInline)||r.isText)}},props:{handleDOMEvents:{compositionend:(t,r)=>!!e&&(e=!1,requestAnimationFrame(()=>{if(n.getState(t.state)){const e=t.state.selection.from;r.preventDefault(),t.dispatch(t.state.tr.insertText(r.data||"",e))}}),!0),compositionstart:t=>(n.getState(t.state)&&(e=!0),!1),beforeinput:(t,r)=>{if(n.getState(t.state)&&r instanceof InputEvent&&r.data&&!e){const e=t.state.selection.from;return r.preventDefault(),t.dispatch(t.state.tr.insertText(r.data||"",e)),!0}return!1}},decorations(e){if(n.getState(e)){const t=e.selection.$from.pos,n=document.createElement("span"),r=vY.widget(t,n,{side:-1}),i=document.createElement("span"),o=vY.widget(t,i);return setTimeout(()=>{n.contentEditable="true",i.contentEditable="true"}),wY.create(e.doc,[r,o])}return wY.empty}}});return n});VG(SK,{displayName:"Prose<inlineNodesCursorPlugin>",group:"Prose"});const TK=TG(e=>new lq({key:new hq("MILKDOWN_HARDBREAK_MARKS"),appendTransaction:(t,n,r)=>{if(!t.length)return;const[i]=t;if(!i)return;const[o]=i.steps;if(i.getMeta("hardbreak")){if(!(o instanceof fz))return;const{from:t}=o;return r.tr.setNodeMarkup(t,UH.type(e),void 0,[])}if(o instanceof uz){let t=r.tr;const{from:n,to:i}=o;return r.doc.nodesBetween(n,i,(n,r)=>{n.type===UH.type(e)&&(t=t.setNodeMarkup(r,UH.type(e),void 0,[]))}),t}}}));VG(TK,{displayName:"Prose<hardbreakClearMarkPlugin>",group:"Prose"});const $K=CG(["table","code_block"],"hardbreakFilterNodes");VG($K,{displayName:"Ctx<hardbreakFilterNodes>",group:"Prose"});const _K=TG(e=>{const t=e.get($K.key);return new lq({key:new hq("MILKDOWN_HARDBREAK_FILTER"),filterTransaction:(e,n)=>{const r=e.getMeta("hardbreak"),[i]=e.steps;if(r&&i){const{from:e}=i,r=n.doc.resolve(e);let o=r.depth,a=!0;for(;o>0;)t.includes(r.node(o).type.name)&&(a=!1),o--;return a}return!0}})});VG(_K,{displayName:"Prose<hardbreakFilterPlugin>",group:"Prose"});const CK=TG(e=>{const t=new hq("MILKDOWN_HEADING_ID"),n=n=>{if(n.composing)return;const r=e.get(AH.key),i=n.state.tr.setMeta("addToHistory",!1);let o=!1;const a={};n.state.doc.descendants((n,s)=>{if(n.type===vH.type(e)){if(0===n.textContent.trim().length)return;const e=n.attrs;let l=r(n);a[l]?(a[l]+=1,l+=`-#${a[l]}`):a[l]=1,e.id!==l&&(o=!0,i.setMeta(t,!0).setNodeMarkup(s,void 0,{...e,id:l}))}}),o&&n.dispatch(i)};return new lq({key:t,view:e=>(n(e),{update:(e,t)=>{e.state.doc.eq(t.doc)||n(e)}})})});VG(CK,{displayName:"Prose<syncHeadingIdPlugin>",group:"Prose"});const QK=TG(e=>{const t=t=>{if(t.composing||!t.editable)return;const n=tK.type(e),r=GH.type(e),i=aK.type(e),o=t.state,a=(e,t)=>{let n=!1;const r=`${t+1}.`;return e.label!==r&&(e.label=r,n=!0),n};let s=o.tr,l=!1;o.doc.descendants((e,t,o,c)=>{if(e.type===r){const r=e.maybeChild(0);(null==r?void 0:r.type)===i&&"ordered"===r.attrs.listType&&(l=!0,s.setNodeMarkup(t,n,{spread:"true"}),e.descendants((e,t,n,r)=>{if(e.type===i){const n={...e.attrs};a(n,r)&&(s=s.setNodeMarkup(t,void 0,n))}return!1}))}else if(e.type===i&&(null==o?void 0:o.type)===n){const n={...e.attrs};let r=!1;"ordered"!==n.listType&&(n.listType="ordered",r=!0),(null==o?void 0:o.maybeChild(0))&&(r=a(n,c)),r&&(s=s.setNodeMarkup(t,void 0,n),l=!0)}}),l&&t.dispatch(s.setMeta("addToHistory",!1))};return new lq({key:new hq("MILKDOWN_KEEP_LIST_ORDER"),view:e=>(t(e),{update:e=>{t(e)}})})});VG(QK,{displayName:"Prose<syncListOrderPlugin>",group:"Prose"});const PK=[gK,mK,OK,AK,yK,[TK,$K,_K,SK,vK,xK,bK,wK,kK,CK,QK].flat()].flat();let EK,RK;if("undefined"!=typeof WeakMap){let e=new WeakMap;EK=t=>e.get(t),RK=(t,n)=>(e.set(t,n),n)}else{const e=[],t=10;let n=0;EK=t=>{for(let n=0;n<e.length;n+=2)if(e[n]==t)return e[n+1]},RK=(r,i)=>(n==t&&(n=0),e[n++]=r,e[n++]=i)}var BK=class{constructor(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r}findCell(e){for(let t=0;t<this.map.length;t++){const n=this.map[t];if(n!=e)continue;const r=t%this.width,i=t/this.width|0;let o=r+1,a=i+1;for(let e=1;o<this.width&&this.map[t+e]==n;e++)o++;for(let e=1;a<this.height&&this.map[t+this.width*e]==n;e++)a++;return{left:r,top:i,right:o,bottom:a}}throw new RangeError(`No cell with offset ${e} found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw new RangeError(`No cell with offset ${e} found`)}nextCell(e,t,n){const{left:r,right:i,top:o,bottom:a}=this.findCell(e);return"horiz"==t?(n<0?0==r:i==this.width)?null:this.map[o*this.width+(n<0?r-1:i)]:(n<0?0==o:a==this.height)?null:this.map[r+this.width*(n<0?o-1:a)]}rectBetween(e,t){const{left:n,right:r,top:i,bottom:o}=this.findCell(e),{left:a,right:s,top:l,bottom:c}=this.findCell(t);return{left:Math.min(n,a),top:Math.min(i,l),right:Math.max(r,s),bottom:Math.max(o,c)}}cellsInRect(e){const t=[],n={};for(let r=e.top;r<e.bottom;r++)for(let i=e.left;i<e.right;i++){const o=r*this.width+i,a=this.map[o];n[a]||(n[a]=!0,i==e.left&&i&&this.map[o-1]==a||r==e.top&&r&&this.map[o-this.width]==a||t.push(a))}return t}positionAt(e,t,n){for(let r=0,i=0;;r++){const o=i+n.child(r).nodeSize;if(r==e){let n=t+e*this.width;const r=(e+1)*this.width;for(;n<r&&this.map[n]<i;)n++;return n==r?o-1:this.map[n]}i=o}}static get(e){return EK(e)||RK(e,function(e){if("table"!=e.type.spec.tableRole)throw new RangeError("Not a table node: "+e.type.name);const t=function(e){let t=-1,n=!1;for(let r=0;r<e.childCount;r++){const i=e.child(r);let o=0;if(n)for(let t=0;t<r;t++){const n=e.child(t);for(let e=0;e<n.childCount;e++){const i=n.child(e);t+i.attrs.rowspan>r&&(o+=i.attrs.colspan)}}for(let e=0;e<i.childCount;e++){const t=i.child(e);o+=t.attrs.colspan,t.attrs.rowspan>1&&(n=!0)}-1==t?t=o:t!=o&&(t=Math.max(t,o))}return t}(e),n=e.childCount,r=[];let i=0,o=null;const a=[];for(let c=0,u=t*n;c<u;c++)r[c]=0;for(let c=0,u=0;c<n;c++){const s=e.child(c);u++;for(let e=0;;e++){for(;i<r.length&&0!=r[i];)i++;if(e==s.childCount)break;const l=s.child(e),{colspan:h,rowspan:d,colwidth:p}=l.attrs;for(let e=0;e<d;e++){if(e+c>=n){(o||(o=[])).push({type:"overlong_rowspan",pos:u,n:d-e});break}const s=i+e*t;for(let e=0;e<h;e++){0==r[s+e]?r[s+e]=u:(o||(o=[])).push({type:"collision",row:c,pos:u,n:h-e});const n=p&&p[e];if(n){const r=(s+e)%t*2,i=a[r];null==i||i!=n&&1==a[r+1]?(a[r]=n,a[r+1]=1):i==n&&a[r+1]++}}}i+=h,u+=l.nodeSize}const l=(c+1)*t;let h=0;for(;i<l;)0==r[i++]&&h++;h&&(o||(o=[])).push({type:"missing",row:c,n:h}),u++}0!==t&&0!==n||(o||(o=[])).push({type:"zero_sized"});const s=new BK(t,n,r,o);let l=!1;for(let c=0;!l&&c<a.length;c+=2)null!=a[c]&&a[c+1]<n&&(l=!0);l&&function(e,t,n){e.problems||(e.problems=[]);const r={};for(let i=0;i<e.map.length;i++){const o=e.map[i];if(r[o])continue;r[o]=!0;const a=n.nodeAt(o);if(!a)throw new RangeError(`No cell with offset ${o} found`);let s=null;const l=a.attrs;for(let n=0;n<l.colspan;n++){const r=t[(i+n)%e.width*2];null==r||l.colwidth&&l.colwidth[n]==r||((s||(s=IK(l)))[n]=r)}s&&e.problems.unshift({type:"colwidth mismatch",pos:o,colwidth:s})}}(s,a,e);return s}(e))}};function IK(e){if(e.colwidth)return e.colwidth.slice();const t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}function LK(e,t){if("string"==typeof e)return{};const n=e.getAttribute("data-colwidth"),r=n&&/^\d+(,\d+)*$/.test(n)?n.split(",").map(e=>Number(e)):null,i=Number(e.getAttribute("colspan")||1),o={colspan:i,rowspan:Number(e.getAttribute("rowspan")||1),colwidth:r&&r.length==i?r:null};for(const a in t){const n=t[a].getFromDOM,r=n&&n(e);null!=r&&(o[a]=r)}return o}function DK(e,t){const n={};1!=e.attrs.colspan&&(n.colspan=e.attrs.colspan),1!=e.attrs.rowspan&&(n.rowspan=e.attrs.rowspan),e.attrs.colwidth&&(n["data-colwidth"]=e.attrs.colwidth.join(","));for(const r in t){const i=t[r].setDOMAttr;i&&i(e.attrs[r],n)}return n}function MK(e){if(null!==e){if(!Array.isArray(e))throw new TypeError("colwidth must be null or an array");for(const t of e)if("number"!=typeof t)throw new TypeError("colwidth must be null or an array of numbers")}}function NK(e){let t=e.cached.tableNodeTypes;if(!t){t=e.cached.tableNodeTypes={};for(const n in e.nodes){const r=e.nodes[n],i=r.spec.tableRole;i&&(t[i]=r)}}return t}const XK=new hq("selectingCells");function FK(e){for(let t=e.depth-1;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}function UK(e){const t=e.selection.$head;for(let n=t.depth;n>0;n--)if("row"==t.node(n).type.spec.tableRole)return!0;return!1}function zK(e){const t=e.selection;if("$anchorCell"in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if("node"in t&&t.node&&"cell"==t.node.type.spec.tableRole)return t.$anchor;const n=FK(t.$head)||function(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){const r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n)}for(let t=e.nodeBefore,n=e.pos;t;t=t.lastChild,n--){const r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n-t.nodeSize)}}(t.$head);if(n)return n;throw new RangeError(`No cell found around position ${t.head}`)}function qK(e){return"row"==e.parent.type.spec.tableRole&&!!e.nodeAfter}function VK(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function WK(e,t,n){const r=e.node(-1),i=BK.get(r),o=e.start(-1),a=i.nextCell(e.pos-o,t,n);return null==a?null:e.node(0).resolve(o+a)}function jK(e,t,n=1){const r={...e,colspan:e.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some(e=>e>0)||(r.colwidth=null)),r}function YK(e,t,n=1){const r={...e,colspan:e.colspan+n};if(r.colwidth){r.colwidth=r.colwidth.slice();for(let e=0;e<n;e++)r.colwidth.splice(t,0,0)}return r}var ZK=class e extends zz{constructor(e,t=e){const n=e.node(-1),r=BK.get(n),i=e.start(-1),o=r.rectBetween(e.pos-i,t.pos-i),a=e.node(0),s=r.cellsInRect(o).filter(e=>e!=t.pos-i);s.unshift(t.pos-i);const l=s.map(e=>{const t=n.nodeAt(e);if(!t)throw new RangeError(`No cell with offset ${e} found`);const r=i+e+1;return new qz(a.resolve(r),a.resolve(r+t.content.size))});super(l[0].$from,l[0].$to,l),this.$anchorCell=e,this.$headCell=t}map(t,n){const r=t.resolve(n.map(this.$anchorCell.pos)),i=t.resolve(n.map(this.$headCell.pos));if(qK(r)&&qK(i)&&VK(r,i)){const t=this.$anchorCell.node(-1)!=r.node(-1);return t&&this.isRowSelection()?e.rowSelection(r,i):t&&this.isColSelection()?e.colSelection(r,i):new e(r,i)}return jz.between(r,i)}content(){const e=this.$anchorCell.node(-1),t=BK.get(e),n=this.$anchorCell.start(-1),r=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),i={},o=[];for(let s=r.top;s<r.bottom;s++){const n=[];for(let o=s*t.width+r.left,a=r.left;a<r.right;a++,o++){const a=t.map[o];if(i[a])continue;i[a]=!0;const s=t.findCell(a);let l=e.nodeAt(a);if(!l)throw new RangeError(`No cell with offset ${a} found`);const c=r.left-s.left,u=s.right-r.right;if(c>0||u>0){let e=l.attrs;if(c>0&&(e=jK(e,0,c)),u>0&&(e=jK(e,e.colspan-u,u)),s.left<r.left){if(l=l.type.createAndFill(e),!l)throw new RangeError(`Could not create cell with attrs ${JSON.stringify(e)}`)}else l=l.type.create(e,l.content)}if(s.top<r.top||s.bottom>r.bottom){const e={...l.attrs,rowspan:Math.min(s.bottom,r.bottom)-Math.max(s.top,r.top)};l=s.top<r.top?l.type.createAndFill(e):l.type.create(e,l.content)}n.push(l)}o.push(e.child(s).copy(DD.from(n)))}const a=this.isColSelection()&&this.isRowSelection()?e:o;return new zD(DD.from(a),1,1)}replace(e,t=zD.empty){const n=e.steps.length,r=this.ranges;for(let o=0;o<r.length;o++){const{$from:i,$to:a}=r[o],s=e.mapping.slice(n);e.replace(s.map(i.pos),s.map(a.pos),o?zD.empty:t)}const i=zz.findFrom(e.doc.resolve(e.mapping.slice(n).map(this.to)),-1);i&&e.setSelection(i)}replaceWith(e,t){this.replace(e,new zD(DD.from(t),0,0))}forEachCell(e){const t=this.$anchorCell.node(-1),n=BK.get(t),r=this.$anchorCell.start(-1),i=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r));for(let o=0;o<i.length;o++)e(t.nodeAt(i[o]),r+i[o])}isColSelection(){const e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(Math.min(e,t)>0)return!1;const n=e+this.$anchorCell.nodeAfter.attrs.rowspan,r=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,r)==this.$headCell.node(-1).childCount}static colSelection(t,n=t){const r=t.node(-1),i=BK.get(r),o=t.start(-1),a=i.findCell(t.pos-o),s=i.findCell(n.pos-o),l=t.node(0);return a.top<=s.top?(a.top>0&&(t=l.resolve(o+i.map[a.left])),s.bottom<i.height&&(n=l.resolve(o+i.map[i.width*(i.height-1)+s.right-1]))):(s.top>0&&(n=l.resolve(o+i.map[s.left])),a.bottom<i.height&&(t=l.resolve(o+i.map[i.width*(i.height-1)+a.right-1]))),new e(t,n)}isRowSelection(){const e=this.$anchorCell.node(-1),t=BK.get(e),n=this.$anchorCell.start(-1),r=t.colCount(this.$anchorCell.pos-n),i=t.colCount(this.$headCell.pos-n);if(Math.min(r,i)>0)return!1;const o=r+this.$anchorCell.nodeAfter.attrs.colspan,a=i+this.$headCell.nodeAfter.attrs.colspan;return Math.max(o,a)==t.width}eq(t){return t instanceof e&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,n=t){const r=t.node(-1),i=BK.get(r),o=t.start(-1),a=i.findCell(t.pos-o),s=i.findCell(n.pos-o),l=t.node(0);return a.left<=s.left?(a.left>0&&(t=l.resolve(o+i.map[a.top*i.width])),s.right<i.width&&(n=l.resolve(o+i.map[i.width*(s.top+1)-1]))):(s.left>0&&(n=l.resolve(o+i.map[s.top*i.width])),a.right<i.width&&(t=l.resolve(o+i.map[i.width*(a.top+1)-1]))),new e(t,n)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,n){return new e(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){return new e(t.resolve(n),t.resolve(r))}getBookmark(){return new GK(this.$anchorCell.pos,this.$headCell.pos)}};ZK.prototype.visible=!1,zz.jsonID("cell",ZK);var GK=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){const t=e.resolve(this.anchor),n=e.resolve(this.head);return"row"==t.parent.type.spec.tableRole&&"row"==n.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&n.index()<n.parent.childCount&&VK(t,n)?new ZK(t,n):zz.near(n,1)}};function HK(e){if(!(e.selection instanceof ZK))return null;const t=[];return e.selection.forEachCell((e,n)=>{t.push(vY.node(n,n+e.nodeSize,{class:"selectedCell"}))}),wY.create(e.doc,t)}const KK=new hq("fix-tables");function JK(e,t,n,r){const i=e.childCount,o=t.childCount;e:for(let a=0,s=0;a<o;a++){const o=t.child(a);for(let t=s,r=Math.min(i,a+3);t<r;t++)if(e.child(t)==o){s=t+1,n+=o.nodeSize;continue e}r(o,n),s<i&&e.child(s).sameMarkup(o)?JK(e.child(s),o,n+1,r):o.nodesBetween(0,o.content.size,r,n+1),n+=o.nodeSize}}function eJ(e,t){let n;const r=(t,r)=>{"table"==t.type.spec.tableRole&&(n=function(e,t,n,r){const i=BK.get(t);if(!i.problems)return r;r||(r=e.tr);const o=[];for(let l=0;l<i.height;l++)o.push(0);for(let l=0;l<i.problems.length;l++){const e=i.problems[l];if("collision"==e.type){const i=t.nodeAt(e.pos);if(!i)continue;const a=i.attrs;for(let t=0;t<a.rowspan;t++)o[e.row+t]+=e.n;r.setNodeMarkup(r.mapping.map(n+1+e.pos),null,jK(a,a.colspan-e.n,e.n))}else if("missing"==e.type)o[e.row]+=e.n;else if("overlong_rowspan"==e.type){const i=t.nodeAt(e.pos);if(!i)continue;r.setNodeMarkup(r.mapping.map(n+1+e.pos),null,{...i.attrs,rowspan:i.attrs.rowspan-e.n})}else if("colwidth mismatch"==e.type){const i=t.nodeAt(e.pos);if(!i)continue;r.setNodeMarkup(r.mapping.map(n+1+e.pos),null,{...i.attrs,colwidth:e.colwidth})}else if("zero_sized"==e.type){const e=r.mapping.map(n);r.delete(e,e+t.nodeSize)}}let a,s;for(let l=0;l<o.length;l++)o[l]&&(null==a&&(a=l),s=l);for(let l=0,c=n+1;l<i.height;l++){const n=t.child(l),i=c+n.nodeSize,u=o[l];if(u>0){let t="cell";n.firstChild&&(t=n.firstChild.type.spec.tableRole);const o=[];for(let n=0;n<u;n++){const n=NK(e.schema)[t].createAndFill();n&&o.push(n)}const h=0!=l&&a!=l-1||s!=l?i-1:c+1;r.insert(r.mapping.map(h),o)}c=i}return r.setMeta(KK,{fixTables:!0})}(e,t,r,n))};return t?t.doc!=e.doc&&JK(t.doc,e.doc,0,r):e.doc.descendants(r),n}function tJ(e){const t=e.selection,n=zK(e),r=n.node(-1),i=n.start(-1),o=BK.get(r);return{...t instanceof ZK?o.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):o.findCell(n.pos-i),tableStart:i,map:o,table:r}}function nJ(e,{map:t,tableStart:n,table:r},i){let o=i>0?-1:0;(function(e,t,n){const r=NK(t.type.schema).header_cell;for(let i=0;i<e.height;i++)if(t.nodeAt(e.map[n+i*e.width]).type!=r)return!1;return!0})(t,r,i+o)&&(o=0==i||i==t.width?null:0);for(let a=0;a<t.height;a++){const s=a*t.width+i;if(i>0&&i<t.width&&t.map[s-1]==t.map[s]){const o=t.map[s],l=r.nodeAt(o);e.setNodeMarkup(e.mapping.map(n+o),null,YK(l.attrs,i-t.colCount(o))),a+=l.attrs.rowspan-1}else{const l=null==o?NK(r.type.schema).cell:r.nodeAt(t.map[s+o]).type,c=t.positionAt(a,i,r);e.insert(e.mapping.map(n+c),l.createAndFill())}}return e}function rJ(e,t){if(!UK(e))return!1;if(t){const n=tJ(e);t(nJ(e.tr,n,n.left))}return!0}function iJ(e,t){if(!UK(e))return!1;if(t){const n=tJ(e);t(nJ(e.tr,n,n.right))}return!0}function oJ(e,{map:t,table:n,tableStart:r},i){const o=e.mapping.maps.length;for(let a=0;a<t.height;){const s=a*t.width+i,l=t.map[s],c=n.nodeAt(l),u=c.attrs;if(i>0&&t.map[s-1]==l||i<t.width-1&&t.map[s+1]==l)e.setNodeMarkup(e.mapping.slice(o).map(r+l),null,jK(u,i-t.colCount(l)));else{const t=e.mapping.slice(o).map(r+l);e.delete(t,t+c.nodeSize)}a+=u.rowspan}}function aJ(e,{map:t,table:n,tableStart:r},i){let o=0;for(let c=0;c<i;c++)o+=n.child(c).nodeSize;const a=o+n.child(i).nodeSize,s=e.mapping.maps.length;e.delete(o+r,a+r);const l=new Set;for(let c=0,u=i*t.width;c<t.width;c++,u++){const o=t.map[u];if(!l.has(o))if(l.add(o),i>0&&o==t.map[u-t.width]){const t=n.nodeAt(o).attrs;e.setNodeMarkup(e.mapping.slice(s).map(o+r),null,{...t,rowspan:t.rowspan-1}),c+=t.colspan-1}else if(i<t.height&&o==t.map[u+t.width]){const a=n.nodeAt(o),l=a.attrs,u=a.type.create({...l,rowspan:a.attrs.rowspan-1},a.content),h=t.positionAt(i+1,c,n);e.insert(e.mapping.slice(s).map(r+h),u),c+=l.colspan-1}}}function sJ(e,t,n){const r=t.map.cellsInRect({left:0,top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1});for(let i=0;i<r.length;i++){const e=t.table.nodeAt(r[i]);if(e&&e.type!==n.header_cell)return!1}return!0}function lJ(e,t){return(t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic?function(e){return function(t,n){if(!UK(t))return!1;if(n){const r=NK(t.schema),i=tJ(t),o=t.tr,a=i.map.cellsInRect("column"==e?{left:i.left,top:0,right:i.right,bottom:i.map.height}:"row"==e?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),s=a.map(e=>i.table.nodeAt(e));for(let e=0;e<a.length;e++)s[e].type==r.header_cell&&o.setNodeMarkup(i.tableStart+a[e],r.cell,s[e].attrs);if(0===o.steps.length)for(let e=0;e<a.length;e++)o.setNodeMarkup(i.tableStart+a[e],r.header_cell,s[e].attrs);n(o)}return!0}}(e):function(t,n){if(!UK(t))return!1;if(n){const r=NK(t.schema),i=tJ(t),o=t.tr,a=sJ("row",i,r),s=sJ("column",i,r),l=("column"===e?a:"row"===e&&s)?1:0,c="column"==e?{left:0,top:l,right:1,bottom:i.map.height}:"row"==e?{left:l,top:0,right:i.map.width,bottom:1}:i,u="column"==e?s?r.cell:r.header_cell:"row"==e?a?r.cell:r.header_cell:r.cell;i.map.cellsInRect(c).forEach(e=>{const t=e+i.tableStart,n=o.doc.nodeAt(t);n&&o.setNodeMarkup(t,u,n.attrs)}),n(o)}return!0}}function cJ(e){return function(t,n){if(!UK(t))return!1;const r=function(e,t){if(t<0){const t=e.nodeBefore;if(t)return e.pos-t.nodeSize;for(let n=e.index(-1)-1,r=e.before();n>=0;n--){const t=e.node(-1).child(n),i=t.lastChild;if(i)return r-1-i.nodeSize;r-=t.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;const t=e.node(-1);for(let n=e.indexAfter(-1),r=e.after();n<t.childCount;n++){const e=t.child(n);if(e.childCount)return r+1;r+=e.nodeSize}}return null}(zK(t),e);if(null==r)return!1;if(n){const e=t.doc.resolve(r);n(t.tr.setSelection(jz.between(e,(i=e,i.node(0).resolve(i.pos+i.nodeAfter.nodeSize)))).scrollIntoView())}var i;return!0}}function uJ(e,t){const n=e.selection;if(!(n instanceof ZK))return!1;if(t){const r=e.tr,i=NK(e.schema).cell.createAndFill().content;n.forEachCell((e,t)=>{e.content.eq(i)||r.replace(r.mapping.map(t+1),r.mapping.map(t+e.nodeSize-1),new zD(i,0,0))}),r.docChanged&&t(r)}return!0}function hJ(e){if(0===e.size)return null;let{content:t,openStart:n,openEnd:r}=e;for(;1==t.childCount&&(n>0&&r>0||"table"==t.child(0).type.spec.tableRole);)n--,r--,t=t.child(0).content;const i=t.child(0),o=i.type.spec.tableRole,a=i.type.schema,s=[];if("row"==o)for(let l=0;l<t.childCount;l++){let e=t.child(l).content;const i=l?0:Math.max(0,n-1),o=l<t.childCount-1?0:Math.max(0,r-1);(i||o)&&(e=dJ(NK(a).row,new zD(e,i,o)).content),s.push(e)}else{if("cell"!=o&&"header_cell"!=o)return null;s.push(n||r?dJ(NK(a).row,new zD(t,n,r)).content:t)}return function(e,t){const n=[];for(let i=0;i<t.length;i++){const e=t[i];for(let t=e.childCount-1;t>=0;t--){const{rowspan:r,colspan:o}=e.child(t).attrs;for(let e=i;e<i+r;e++)n[e]=(n[e]||0)+o}}let r=0;for(let i=0;i<n.length;i++)r=Math.max(r,n[i]);for(let i=0;i<n.length;i++)if(i>=t.length&&t.push(DD.empty),n[i]<r){const o=NK(e).cell.createAndFill(),a=[];for(let e=n[i];e<r;e++)a.push(o);t[i]=t[i].append(DD.from(a))}return{height:t.length,width:r,rows:t}}(a,s)}function dJ(e,t){const n=e.createAndFill();return new Fz(n).replace(0,n.content.size,t).doc}function pJ(e,t,n,r,i,o,a,s){if(0==a||a==t.height)return!1;let l=!1;for(let c=i;c<o;c++){const i=a*t.width+c,o=t.map[i];if(t.map[i-t.width]==o){l=!0;const i=n.nodeAt(o),{top:u,left:h}=t.findCell(o);e.setNodeMarkup(e.mapping.slice(s).map(o+r),null,{...i.attrs,rowspan:a-u}),e.insert(e.mapping.slice(s).map(t.positionAt(a,h,n)),i.type.createAndFill({...i.attrs,rowspan:u+i.attrs.rowspan-a})),c+=i.attrs.colspan-1}}return l}function fJ(e,t,n,r,i,o,a,s){if(0==a||a==t.width)return!1;let l=!1;for(let c=i;c<o;c++){const i=c*t.width+a,o=t.map[i];if(t.map[i-1]==o){l=!0;const i=n.nodeAt(o),u=t.colCount(o),h=e.mapping.slice(s).map(o+r);e.setNodeMarkup(h,null,jK(i.attrs,a-u,i.attrs.colspan-(a-u))),e.insert(h+i.nodeSize,i.type.createAndFill(jK(i.attrs,0,a-u))),c+=i.attrs.rowspan-1}}return l}function gJ(e,t,n,r,i){let o=n?e.doc.nodeAt(n-1):e.doc;if(!o)throw new Error("No table found");let a=BK.get(o);const{top:s,left:l}=r,c=l+i.width,u=s+i.height,h=e.tr;let d=0;function p(){if(o=n?h.doc.nodeAt(n-1):h.doc,!o)throw new Error("No table found");a=BK.get(o),d=h.mapping.maps.length}(function(e,t,n,r,i,o,a){const s=NK(e.doc.type.schema);let l,c;if(i>t.width)for(let u=0,h=0;u<t.height;u++){const o=n.child(u);h+=o.nodeSize;const d=[];let p;p=null==o.lastChild||o.lastChild.type==s.cell?l||(l=s.cell.createAndFill()):c||(c=s.header_cell.createAndFill());for(let e=t.width;e<i;e++)d.push(p);e.insert(e.mapping.slice(a).map(h-1+r),d)}if(o>t.height){const u=[];for(let e=0,r=(t.height-1)*t.width;e<Math.max(t.width,i);e++){const i=!(e>=t.width)&&n.nodeAt(t.map[r+e]).type==s.header_cell;u.push(i?c||(c=s.header_cell.createAndFill()):l||(l=s.cell.createAndFill()))}const h=s.row.create(null,DD.from(u)),d=[];for(let e=t.height;e<o;e++)d.push(h);e.insert(e.mapping.slice(a).map(r+n.nodeSize-2),d)}return!(!l&&!c)})(h,a,o,n,c,u,d)&&p(),pJ(h,a,o,n,l,c,s,d)&&p(),pJ(h,a,o,n,l,c,u,d)&&p(),fJ(h,a,o,n,s,u,l,d)&&p(),fJ(h,a,o,n,s,u,c,d)&&p();for(let f=s;f<u;f++){const e=a.positionAt(f,l,o),t=a.positionAt(f,c,o);h.replace(h.mapping.slice(d).map(e+n),h.mapping.slice(d).map(t+n),new zD(i.rows[f-s],0,0))}p(),h.setSelection(new ZK(h.doc.resolve(n+a.positionAt(s,l,o)),h.doc.resolve(n+a.positionAt(u-1,c-1,o)))),t(h)}lJ("row",{useDeprecatedLogic:!0}),lJ("column",{useDeprecatedLogic:!0}),lJ("cell",{useDeprecatedLogic:!0});const mJ=BV({ArrowLeft:AJ("horiz",-1),ArrowRight:AJ("horiz",1),ArrowUp:AJ("vert",-1),ArrowDown:AJ("vert",1),"Shift-ArrowLeft":yJ("horiz",-1),"Shift-ArrowRight":yJ("horiz",1),"Shift-ArrowUp":yJ("vert",-1),"Shift-ArrowDown":yJ("vert",1),Backspace:uJ,"Mod-Backspace":uJ,Delete:uJ,"Mod-Delete":uJ});function OJ(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function AJ(e,t){return(n,r,i)=>{if(!i)return!1;const o=n.selection;if(o instanceof ZK)return OJ(n,r,zz.near(o.$headCell,t));if("horiz"!=e&&!o.empty)return!1;const a=wJ(i,e,t);if(null==a)return!1;if("horiz"==e)return OJ(n,r,zz.near(n.doc.resolve(o.head+t),t));{const i=n.doc.resolve(a),o=WK(i,e,t);let s;return s=o?zz.near(o,1):t<0?zz.near(n.doc.resolve(i.before(-1)),-1):zz.near(n.doc.resolve(i.after(-1)),1),OJ(n,r,s)}}}function yJ(e,t){return(n,r,i)=>{if(!i)return!1;const o=n.selection;let a;if(o instanceof ZK)a=o;else{const r=wJ(i,e,t);if(null==r)return!1;a=new ZK(n.doc.resolve(r))}const s=WK(a.$headCell,e,t);return!!s&&OJ(n,r,new ZK(a.$anchorCell,s))}}function vJ(e,t){const n=FK(e.state.doc.resolve(t));return!!n&&(e.dispatch(e.state.tr.setSelection(new ZK(n))),!0)}function bJ(e,t,n){if(!UK(e.state))return!1;let r=hJ(n);const i=e.state.selection;if(i instanceof ZK){r||(r={width:1,height:1,rows:[DD.from(dJ(NK(e.state.schema).cell,n))]});const t=i.$anchorCell.node(-1),o=i.$anchorCell.start(-1),a=BK.get(t).rectBetween(i.$anchorCell.pos-o,i.$headCell.pos-o);return r=function({width:e,height:t,rows:n},r,i){if(e!=r){const t=[],i=[];for(let e=0;e<n.length;e++){const o=n[e],a=[];for(let n=t[e]||0,i=0;n<r;i++){let s=o.child(i%o.childCount);n+s.attrs.colspan>r&&(s=s.type.createChecked(jK(s.attrs,s.attrs.colspan,n+s.attrs.colspan-r),s.content)),a.push(s),n+=s.attrs.colspan;for(let n=1;n<s.attrs.rowspan;n++)t[e+n]=(t[e+n]||0)+s.attrs.colspan}i.push(DD.from(a))}n=i,e=r}if(t!=i){const e=[];for(let r=0,o=0;r<i;r++,o++){const a=[],s=n[o%t];for(let e=0;e<s.childCount;e++){let t=s.child(e);r+t.attrs.rowspan>i&&(t=t.type.create({...t.attrs,rowspan:Math.max(1,i-t.attrs.rowspan)},t.content)),a.push(t)}e.push(DD.from(a))}n=e,t=i}return{width:e,height:t,rows:n}}(r,a.right-a.left,a.bottom-a.top),gJ(e.state,e.dispatch,o,a,r),!0}if(r){const t=zK(e.state),n=t.start(-1);return gJ(e.state,e.dispatch,n,BK.get(t.node(-1)).findCell(t.pos-n),r),!0}return!1}function xJ(e,t){var n;if(0!=t.button)return;if(t.ctrlKey||t.metaKey)return;const r=kJ(e,t.target);let i;if(t.shiftKey&&e.state.selection instanceof ZK)o(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&r&&null!=(i=FK(e.state.selection.$anchor))&&(null===(n=SJ(e,t))||void 0===n?void 0:n.pos)!=i.pos)o(i,t),t.preventDefault();else if(!r)return;function o(t,n){let r=SJ(e,n);const i=null==XK.getState(e.state);if(!r||!VK(t,r)){if(!i)return;r=t}const o=new ZK(t,r);if(i||!e.state.selection.eq(o)){const n=e.state.tr.setSelection(o);i&&n.setMeta(XK,t.pos),e.dispatch(n)}}function a(){e.root.removeEventListener("mouseup",a),e.root.removeEventListener("dragstart",a),e.root.removeEventListener("mousemove",s),null!=XK.getState(e.state)&&e.dispatch(e.state.tr.setMeta(XK,-1))}function s(n){const i=n,s=XK.getState(e.state);let l;if(null!=s)l=e.state.doc.resolve(s);else if(kJ(e,i.target)!=r&&(l=SJ(e,t),!l))return a();l&&o(l,i)}e.root.addEventListener("mouseup",a),e.root.addEventListener("dragstart",a),e.root.addEventListener("mousemove",s)}function wJ(e,t,n){if(!(e.state.selection instanceof jz))return null;const{$head:r}=e.state.selection;for(let i=r.depth-1;i>=0;i--){const o=r.node(i);if((n<0?r.index(i):r.indexAfter(i))!=(n<0?0:o.childCount))return null;if("cell"==o.type.spec.tableRole||"header_cell"==o.type.spec.tableRole){const o=r.before(i),a="vert"==t?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(a)?o:null}}return null}function kJ(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t;return null}function SJ(e,t){const n=e.posAtCoords({left:t.clientX,top:t.clientY});if(!n)return null;let{inside:r,pos:i}=n;return r>=0&&FK(e.state.doc.resolve(r))||FK(e.state.doc.resolve(i))}var TJ=class{constructor(e,t){this.node=e,this.defaultCellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.table.style.setProperty("--default-cell-min-width",`${t}px`),this.colgroup=this.table.appendChild(document.createElement("colgroup")),$J(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type==this.node.type&&(this.node=e,$J(e,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))}};function $J(e,t,n,r,i,o){let a=0,s=!0,l=t.firstChild;const c=e.firstChild;if(c){for(let e=0,n=0;e<c.childCount;e++){const{colspan:u,colwidth:h}=c.child(e).attrs;for(let e=0;e<u;e++,n++){const c=i==n?o:h&&h[e],u=c?c+"px":"";if(a+=c||r,c||(s=!1),l)l.style.width!=u&&(l.style.width=u),l=l.nextSibling;else{const e=document.createElement("col");e.style.width=u,t.appendChild(e)}}}for(;l;){var u;const e=l.nextSibling;null===(u=l.parentNode)||void 0===u||u.removeChild(l),l=e}s?(n.style.width=a+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=a+"px")}}const _J=new hq("tableColumnResizing");function CJ({handleWidth:e=5,cellMinWidth:t=25,defaultCellMinWidth:n=100,View:r=TJ,lastColumnResizable:i=!0}={}){const o=new lq({key:_J,state:{init(e,t){var i;const a=null===(i=o.spec)||void 0===i||null===(i=i.props)||void 0===i?void 0:i.nodeViews,s=NK(t.schema).table.name;return r&&a&&(a[s]=(e,t)=>new r(e,n,t)),new QJ(-1,!1)},apply:(e,t)=>t.apply(e)},props:{attributes:e=>{const t=_J.getState(e);return t&&t.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(t,n)=>{!function(e,t,n,r){if(!e.editable)return;const i=_J.getState(e.state);if(!i)return;if(!i.dragging){const o=function(e){for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.classList&&e.classList.contains("ProseMirror")?null:e.parentNode;return e}(t.target);let a=-1;if(o){const{left:r,right:i}=o.getBoundingClientRect();t.clientX-r<=n?a=PJ(e,t,"left",n):i-t.clientX<=n&&(a=PJ(e,t,"right",n))}if(a!=i.activeHandle){if(!r&&-1!==a){const t=e.state.doc.resolve(a),n=t.node(-1),r=BK.get(n),i=t.start(-1);if(r.colCount(t.pos-i)+t.nodeAfter.attrs.colspan-1==r.width-1)return}RJ(e,a)}}}(t,n,e,i)},mouseleave:e=>{!function(e){if(!e.editable)return;const t=_J.getState(e.state);t&&t.activeHandle>-1&&!t.dragging&&RJ(e,-1)}(e)},mousedown:(e,r)=>{!function(e,t,n,r){var i;if(!e.editable)return!1;const o=null!==(i=e.dom.ownerDocument.defaultView)&&void 0!==i?i:window,a=_J.getState(e.state);if(!a||-1==a.activeHandle||a.dragging)return!1;const s=e.state.doc.nodeAt(a.activeHandle),l=function(e,t,{colspan:n,colwidth:r}){const i=r&&r[r.length-1];if(i)return i;const o=e.domAtPos(t);let a=o.node.childNodes[o.offset].offsetWidth,s=n;if(r)for(let l=0;l<n;l++)r[l]&&(a-=r[l],s--);return a/s}(e,a.activeHandle,s.attrs);function c(t){o.removeEventListener("mouseup",c),o.removeEventListener("mousemove",u);const r=_J.getState(e.state);(null==r?void 0:r.dragging)&&(!function(e,t,n){const r=e.state.doc.resolve(t),i=r.node(-1),o=BK.get(i),a=r.start(-1),s=o.colCount(r.pos-a)+r.nodeAfter.attrs.colspan-1,l=e.state.tr;for(let c=0;c<o.height;c++){const e=c*o.width+s;if(c&&o.map[e]==o.map[e-o.width])continue;const t=o.map[e],r=i.nodeAt(t).attrs,u=1==r.colspan?0:s-o.colCount(t);if(r.colwidth&&r.colwidth[u]==n)continue;const h=r.colwidth?r.colwidth.slice():IJ(r.colspan);h[u]=n,l.setNodeMarkup(a+t,null,{...r,colwidth:h})}l.docChanged&&e.dispatch(l)}(e,r.activeHandle,EJ(r.dragging,t,n)),e.dispatch(e.state.tr.setMeta(_J,{setDragging:null})))}function u(t){if(!t.which)return c(t);const i=_J.getState(e.state);if(i&&i.dragging){const o=EJ(i.dragging,t,n);BJ(e,i.activeHandle,o,r)}}e.dispatch(e.state.tr.setMeta(_J,{setDragging:{startX:t.clientX,startWidth:l}})),BJ(e,a.activeHandle,l,r),o.addEventListener("mouseup",c),o.addEventListener("mousemove",u),t.preventDefault()}(e,r,t,n)}},decorations:e=>{const t=_J.getState(e);if(t&&t.activeHandle>-1)return function(e,t){const n=[],r=e.doc.resolve(t),i=r.node(-1);if(!i)return wY.empty;const o=BK.get(i),a=r.start(-1),s=o.colCount(r.pos-a)+r.nodeAfter.attrs.colspan-1;for(let c=0;c<o.height;c++){const t=s+c*o.width;if(!(s!=o.width-1&&o.map[t]==o.map[t+1]||0!=c&&o.map[t]==o.map[t-o.width])){var l;const r=o.map[t],s=a+r+i.nodeAt(r).nodeSize-1,c=document.createElement("div");c.className="column-resize-handle",(null===(l=_J.getState(e))||void 0===l?void 0:l.dragging)&&n.push(vY.node(a+r,a+r+i.nodeAt(r).nodeSize,{class:"column-resize-dragging"})),n.push(vY.widget(s,c))}}return wY.create(e.doc,n)}(e,t.activeHandle)},nodeViews:{}}});return o}var QJ=class e{constructor(e,t){this.activeHandle=e,this.dragging=t}apply(t){const n=this,r=t.getMeta(_J);if(r&&null!=r.setHandle)return new e(r.setHandle,!1);if(r&&void 0!==r.setDragging)return new e(n.activeHandle,r.setDragging);if(n.activeHandle>-1&&t.docChanged){let r=t.mapping.map(n.activeHandle,-1);return qK(t.doc.resolve(r))||(r=-1),new e(r,n.dragging)}return n}};function PJ(e,t,n,r){const i="right"==n?-r:r,o=e.posAtCoords({left:t.clientX+i,top:t.clientY});if(!o)return-1;const{pos:a}=o,s=FK(e.state.doc.resolve(a));if(!s)return-1;if("right"==n)return s.pos;const l=BK.get(s.node(-1)),c=s.start(-1),u=l.map.indexOf(s.pos-c);return u%l.width==0?-1:c+l.map[u-1]}function EJ(e,t,n){const r=t.clientX-e.startX;return Math.max(n,e.startWidth+r)}function RJ(e,t){e.dispatch(e.state.tr.setMeta(_J,{setHandle:t}))}function BJ(e,t,n,r){const i=e.state.doc.resolve(t),o=i.node(-1),a=i.start(-1),s=BK.get(o).colCount(i.pos-a)+i.nodeAfter.attrs.colspan-1;let l=e.domAtPos(i.start(-1)).node;for(;l&&"TABLE"!=l.nodeName;)l=l.parentNode;l&&$J(o,l.firstChild,l,r,s,n)}function IJ(e){return Array(e).fill(0)}function LJ({allowTableNodeSelection:e=!1}={}){return new lq({key:XK,state:{init:()=>null,apply(e,t){const n=e.getMeta(XK);if(null!=n)return-1==n?null:n;if(null==t||!e.docChanged)return t;const{deleted:r,pos:i}=e.mapping.mapResult(t);return r?null:i}},props:{decorations:HK,handleDOMEvents:{mousedown:xJ},createSelectionBetween:e=>null!=XK.getState(e.state)?e.state.selection:null,handleTripleClick:vJ,handleKeyDown:mJ,handlePaste:bJ},appendTransaction:(t,n,r)=>function(e,t,n){const r=(t||e).selection,i=(t||e).doc;let o,a;if(r instanceof Zz&&(a=r.node.type.spec.tableRole)){if("cell"==a||"header_cell"==a)o=ZK.create(i,r.from);else if("row"==a){const e=i.resolve(r.from+1);o=ZK.rowSelection(e,e)}else if(!n){const e=BK.get(r.node),t=r.from+1,n=t+e.map[e.width*e.height-1];o=ZK.create(i,t+1,n)}}else r instanceof jz&&function({$from:e,$to:t}){if(e.pos==t.pos||e.pos<t.pos-6)return!1;let n=e.pos,r=t.pos,i=e.depth;for(;i>=0&&!(e.after(i+1)<e.end(i));i--,n++);for(let o=t.depth;o>=0&&!(t.before(o+1)>t.start(o));o--,r--);return n==r&&/row|table/.test(e.node(i).type.spec.tableRole)}(r)?o=jz.create(i,r.from):r instanceof jz&&function({$from:e,$to:t}){let n,r;for(let i=e.depth;i>0;i--){const t=e.node(i);if("cell"===t.type.spec.tableRole||"header_cell"===t.type.spec.tableRole){n=t;break}}for(let i=t.depth;i>0;i--){const e=t.node(i);if("cell"===e.type.spec.tableRole||"header_cell"===e.type.spec.tableRole){r=e;break}}return n!==r&&0===t.parentOffset}(r)&&(o=jz.create(i,r.$from.start(),r.$from.end()));return o&&(t||(t=e.tr)).setSelection(o),t}(r,eJ(r,n),e)})}var DJ="undefined"!=typeof navigator?navigator:null,MJ=DJ&&DJ.userAgent||"",NJ=/Edge\/(\d+)/.exec(MJ),XJ=/MSIE \d/.exec(MJ),FJ=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(MJ),UJ=!!!(XJ||FJ||NJ)&&!!DJ&&/Apple Computer/.test(DJ.vendor),zJ=new hq("safari-ime-span"),qJ=!1;function VJ(e){const t=e.dom.ownerDocument.createElement("span");return t.className="ProseMirror-safari-ime-span",t}var WJ=new lq(UJ?{key:zJ,props:{decorations:function(e){const{$from:t,$to:n,to:r}=e.selection;if(qJ&&t.sameParent(n)){const t=vY.widget(r,VJ,{ignoreSelection:!0,key:"safari-ime-span"});return wY.create(e.doc,[t])}},handleDOMEvents:{compositionstart:()=>{qJ=!0},compositionend:()=>{qJ=!1}}}}:{key:zJ});function jJ(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}function YJ(e,t,n){const r=oF((n||{}).ignore||[]),i=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([ZJ(e[0]),GJ(e[1])])}return t}(t);let o=-1;for(;++o<i.length;)dF(e,"text",a);function a(e,t){let n,a=-1;for(;++a<t.length;){const e=t[a],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=i[o][0],a=i[o][1];let s=0;const l=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let h=r.exec(e.value);for(;h;){const n=h.index,i={index:h.index,input:h.input,stack:[...t,e]};let o=a(...h,i);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(o)?u.push(...o):o&&u.push(o),s=n+h[0].length,c=!0),!r.global)break;h=r.exec(e.value)}c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...u)):u=[e];return l+u.length}(e,t)}}function ZJ(e){return"string"==typeof e?new RegExp(LG(e),"g"):e}function GJ(e){return"function"==typeof e?e:function(){return e}}const HJ="phrasing",KJ=["autolink","link","image","label"];function JJ(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function e0(e){this.config.enter.autolinkProtocol.call(this,e)}function t0(e){this.config.exit.autolinkProtocol.call(this,e)}function n0(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function r0(e){this.config.exit.autolinkEmail.call(this,e)}function i0(e){this.exit(e)}function o0(e){YJ(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,a0],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),s0]],{ignore:["link","linkReference"]})}function a0(e,t,n,r,i){let o="";if(!l0(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=jJ(e,"(");let o=jJ(e,")");for(;-1!==r&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function s0(e,t,n,r){return!(!l0(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function l0(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||gN(n)||fN(n))&&(!t||47!==n)}function c0(){this.buffer()}function u0(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function h0(){this.buffer()}function d0(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function p0(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=rN(this.sliceSerialize(e)).toLowerCase(),n.label=t}function f0(e){this.exit(e)}function g0(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=rN(this.sliceSerialize(e)).toLowerCase(),n.label=t}function m0(e){this.exit(e)}function O0(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),s(),a(),o+=i.move("]"),o}function A0(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,i){const o=r.createTracker(i);let a=o.move("[^");const s=r.enter("footnoteDefinition"),l=r.enter("label");a+=o.move(r.safe(r.associationId(e),{before:a,after:"]"})),l(),a+=o.move("]:"),e.children&&e.children.length>0&&(o.shift(4),a+=o.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,o.current()),t?v0:y0)));return s(),a},footnoteReference:O0},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function y0(e,t,n){return 0===t?e:v0(e,t,n)}function v0(e,t,n){return(n?"":" ")+e}O0.peek=function(){return"["};const b0=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function x0(e){this.enter({type:"delete",children:[]},e)}function w0(e){this.exit(e)}function k0(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function S0(e){return e.length}function T0(e){return null==e?"":String(e)}function $0(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function _0(e){const t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function C0(e){this.exit(e),this.data.inTable=void 0}function Q0(e){this.enter({type:"tableRow",children:[]},e)}function P0(e){this.exit(e)}function E0(e){this.enter({type:"tableCell",children:[]},e)}function R0(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,B0));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function B0(e,t){return"|"===t?t:e}function I0(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=TF.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let i=-1;const o=[],a=t.enter("table");for(;++i<r.length;)o[i]=l(r[i],t,n);return a(),o}(e,n,r),e.align)},tableCell:a,tableRow:function(e,t,n,r){const i=s([l(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function a(e,t,n,r){const i=n.enter("tableCell"),a=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:o,after:o});return a(),i(),s}function s(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||S0,o=[],a=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let o=-1;for(e[u].length>c&&(c=e[u].length);++o<e[u].length;){const a=T0(e[u][o]);if(!1!==n.alignDelimiters){const e=i(a);r[o]=e,(void 0===l[o]||e>l[o])&&(l[o]=e)}t.push(a)}a[u]=t,s[u]=r}let h=-1;if("object"==typeof r&&"length"in r)for(;++h<c;)o[h]=$0(r[h]);else{const e=$0(r);for(;++h<c;)o[h]=e}h=-1;const d=[],p=[];for(;++h<c;){const e=o[h];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,l[h]-t.length-r.length);const a=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&(i=t.length+i+r.length,i>l[h]&&(l[h]=i),p[h]=i),d[h]=a}a.splice(1,0,d),s.splice(1,0,p),u=-1;const f=[];for(;++u<a.length;){const e=a[u],t=s[u];h=-1;const r=[];for(;++h<c;){const i=e[h]||"";let a="",s="";if(!1!==n.alignDelimiters){const e=l[h]-(t[h]||0),n=o[h];114===n?a=" ".repeat(e):99===n?e%2?(a=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),s=a):s=" ".repeat(e)}!1===n.delimiterStart||h||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===i||!1===n.delimiterStart&&!h||r.push(" "),!1!==n.alignDelimiters&&r.push(a),r.push(i),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&h===c-1||r.push("|")}f.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return f.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function l(e,t,n){const r=e.children;let i=-1;const o=[],s=t.enter("tableRow");for(;++i<r.length;)o[i]=a(r[i],0,t,n);return s(),o}}function L0(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function D0(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let i,o=-1;for(;++o<r.length;){const e=r[o];if("paragraph"===e.type){i=e;break}}i===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function M0(e,t,n,r){const i=e.children[0],o="boolean"==typeof e.checked&&i&&"paragraph"===i.type,a="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);o&&s.move(a);let l=TF.listItem(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+a})),l}k0.peek=function(){return"~"};const N0={tokenize:function(e,t,n){let r=0;return function t(o){if((87===o||119===o)&&r<3)return r++,e.consume(o),t;if(46===o&&3===r)return e.consume(o),i;return n(o)};function i(e){return null===e?n(e):t(e)}},partial:!0},X0={tokenize:function(e,t,n){let r,i,o;return a;function a(t){return 46===t||95===t?e.check(U0,l,s)(t):null===t||dN(t)||gN(t)||45!==t&&fN(t)?l(t):(o=!0,e.consume(t),a)}function s(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),a}function l(e){return i||r||!o?n(e):t(e)}},partial:!0},F0={tokenize:function(e,t){let n=0,r=0;return i;function i(a){return 40===a?(n++,e.consume(a),i):41===a&&r<n?o(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(U0,t,o)(a):null===a||dN(a)||gN(a)?t(a):(e.consume(a),i)}function o(t){return 41===t&&r++,e.consume(t),i}},partial:!0},U0={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),o):93===a?(e.consume(a),i):60===a||null===a||dN(a)||gN(a)?t(a):n(a)}function i(e){return null===e||40===e||91===e||dN(e)||gN(e)?t(e):r(e)}function o(e){return iN(e)?a(e):n(e)}function a(t){return 59===t?(e.consume(t),r):iN(t)?(e.consume(t),a):n(t)}},partial:!0},z0={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return oN(e)?n(e):t(e)}},partial:!0},q0={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!Z0.call(r,r.previous)||J0(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(N0,e.attempt(X0,e.attempt(F0,i),n),n)(t)};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:Z0},V0={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let i="",o=!1;return function(t){if((72===t||104===t)&&G0.call(r,r.previous)&&!J0(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),a;return n(t)};function a(t){if(iN(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),a;if(58===t){const n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),o?l:(o=!0,s)):n(t)}function l(t){return null===t||sN(t)||dN(t)||gN(t)||fN(t)?n(t):e.attempt(X0,e.attempt(F0,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:G0},W0={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let i,o;return function(t){if(!K0(t)||!H0.call(r,r.previous)||J0(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return K0(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(z0,c,l)(t):45===t||95===t||oN(t)?(o=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),i=!0,s}function c(a){return o&&i&&iN(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:H0},j0={};let Y0=48;for(;Y0<123;)j0[Y0]=W0,Y0++,58===Y0?Y0=65:91===Y0&&(Y0=97);function Z0(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||dN(e)}function G0(e){return!iN(e)}function H0(e){return!(47===e||K0(e))}function K0(e){return 43===e||45===e||46===e||95===e||oN(e)}function J0(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}j0[43]=W0,j0[45]=W0,j0[46]=W0,j0[95]=W0,j0[72]=[W0,V0],j0[104]=[W0,V0],j0[87]=[W0,q0],j0[119]=[W0,q0];const e1={tokenize:function(e,t,n){const r=this;return ON(e,function(e){const i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function t1(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const e=r.events[i][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!a||!a._balanced)return n(i);const s=rN(r.sliceSerialize({start:a.end,end:r.now()}));if(94!==s.codePointAt(0)||!o.includes(s.slice(1)))return n(i);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)}}function n1(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function r1(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(a>999||93===s&&!o||null===s||91===s||dN(s))return n(s);if(93===s){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return i.includes(rN(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return dN(s)||(o=!0),a++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function i1(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!a||null===t||91===t||dN(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=rN(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return dN(t)||(a=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function h(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(o)||i.push(o),ON(e,d,"gfmFootnoteDefinitionWhitespace")):n(t)}function d(e){return t(e)}}function o1(e,t,n){return e.check(TN,t,e.attempt(e1,t,n))}function a1(e){e.exit("gfmFootnoteDefinition")}function s1(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const i=this.previous,o=this.events;let a=0;return function(t){if(126===i&&"characterEscape"!==o[o.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(o){const l=bN(i);if(126===o)return a>1?r(o):(e.consume(o),a++,s);if(a<2&&!t)return r(o);const c=e.exit("strikethroughSequenceTemporary"),u=bN(o);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],s=t.parser.constructs.insideSpan.null;s&&GM(a,a.length,0,xN(s,e.slice(r+1,n),t)),GM(a,a.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),GM(e,r-1,n-r+3,a),n=r+a.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class l1{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0===n&&0===r.length)return;for(;i<e.map.length;){if(e.map[i][0]===t)return e.map[i][1]+=n,void e.map[i][2].push(...r);i+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function c1(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}function u1(e,t,n){const r=this;let i,o=0,a=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const i=t>-1?r.events[t][1].type:null,o="tableHead"===i||"tableRow"===i?v:s;if(o===v&&r.parser.lazy[r.now().line])return n(e);return o(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return i=!0,a+=1,l(e)}(t)}function l(t){return null===t?n(t):hN(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h):n(t):pN(t)?ON(e,l,"whitespace")(t):(a+=1,i&&(i=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||dN(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function h(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),i=!1,pN(t)?ON(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):d(t))}function d(t){return 45===t||58===t?f(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):y(t)}function p(t){return pN(t)?ON(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(a+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):45===t?(a+=1,g(t)):null===t||hN(t)?A(t):y(t)}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),m(t)):y(t)}function m(t){return 45===t?(e.consume(t),m):58===t?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),O):(e.exit("tableDelimiterFiller"),O(t))}function O(t){return pN(t)?ON(e,A,"whitespace")(t):A(t)}function A(n){return 124===n?d(n):(null===n||hN(n))&&i&&o===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):y(n)}function y(e){return n(e)}function v(t){return e.enter("tableRow"),b(t)}function b(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),b):null===n||hN(n)?(e.exit("tableRow"),t(n)):pN(n)?ON(e,b,"whitespace")(n):(e.enter("data"),x(n))}function x(t){return null===t||124===t||dN(t)?(e.exit("data"),b(t)):(e.consume(t),92===t?w:x)}function w(t){return 92===t||124===t?(e.consume(t),x):x(t)}}function h1(e,t){let n,r,i,o=-1,a=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,h=0;const d=new l1;for(;++o<e.length;){const p=e[o],f=p[1];"enter"===p[0]?"tableHead"===f.type?(u=!1,0!==h&&(p1(d,t,h,n,r),r=void 0,h=0),n={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},d.add(o,0,[["enter",n,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(a=!0,i=void 0,l=[0,0,0,0],c=[0,o+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},d.add(o,0,[["enter",r,t]])),s="tableDelimiterRow"===f.type?2:r?3:1):!s||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type?"tableCellDivider"===f.type&&(a?a=!1:(0!==l[1]&&(c[0]=c[1],i=d1(d,t,l,s,void 0,i)),l=c,c=[l[1],o,0,0])):(a=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],i=d1(d,t,l,s,void 0,i),l=[0,0,0,0]),c[2]=o)):"tableHead"===f.type?(u=!0,h=o):"tableRow"===f.type||"tableDelimiterRow"===f.type?(h=o,0!==l[1]?(c[0]=c[1],i=d1(d,t,l,s,o,i)):0!==c[1]&&(i=d1(d,t,c,s,o,i)),s=0):!s||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type||(c[3]=o)}for(0!==h&&p1(d,t,h,n,r),d.consume(t.events),o=-1;++o<t.events.length;){const e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=c1(t.events,o))}return e}function d1(e,t,n,r,i,o){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(o.end=Object.assign({},f1(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const s=f1(t.events,n[1]);if(o={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){const i=f1(t.events,n[2]),o=f1(t.events,n[3]),a={type:"tableContent",start:Object.assign({},i),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){const r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==i&&(o.end=Object.assign({},f1(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function p1(e,t,n,r,i){const o=[],a=f1(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function f1(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const g1={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i};function i(t){return dN(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return hN(r)?t(r):pN(r)?e.check({tokenize:m1},t,n)(r):n(r)}}};function m1(e,t,n){return ON(e,function(e){return null===e?n(e):t(e)},"whitespace")}const O1={};function A1(e){const t=e||O1,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return JM([{text:j0},{document:{91:{name:"gfmFootnoteDefinition",tokenize:i1,continuation:{tokenize:o1},exit:a1}},text:{91:{name:"gfmFootnoteCall",tokenize:r1},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:t1,resolveTo:n1}}},s1(e),{flow:{null:{name:"table",tokenize:u1,resolveAll:h1}}},{text:{91:g1}}])}(t)),i.push([{transforms:[o0],enter:{literalAutolink:JJ,literalAutolinkEmail:e0,literalAutolinkHttp:e0,literalAutolinkWww:e0},exit:{literalAutolink:i0,literalAutolinkEmail:r0,literalAutolinkHttp:t0,literalAutolinkWww:n0}},{enter:{gfmFootnoteCallString:c0,gfmFootnoteCall:u0,gfmFootnoteDefinitionLabelString:h0,gfmFootnoteDefinition:d0},exit:{gfmFootnoteCallString:p0,gfmFootnoteCall:f0,gfmFootnoteDefinitionLabelString:g0,gfmFootnoteDefinition:m0}},{canContainEols:["delete"],enter:{strikethrough:x0},exit:{strikethrough:w0}},{enter:{table:_0,tableData:E0,tableHeader:E0,tableRow:Q0},exit:{codeText:R0,table:C0,tableData:P0,tableHeader:P0,tableRow:P0}},{exit:{taskListCheckValueChecked:L0,taskListCheckValueUnchecked:L0,paragraph:D0}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:HJ,notInConstruct:KJ},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:HJ,notInConstruct:KJ},{character:":",before:"[ps]",after:"\\/",inConstruct:HJ,notInConstruct:KJ}]},A0(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:b0}],handlers:{delete:k0}},I0(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:M0}}]}}(t))}function y1(e,t){return Object.assign(e,{meta:{package:"@milkdown/preset-gfm",...t}}),e}const v1=BG("strike_through");y1(v1,{displayName:"Attr<strikethrough>",group:"Strikethrough"});const b1=PG("strike_through",e=>({parseDOM:[{tag:"del"},{style:"text-decoration",getAttrs:e=>"line-through"===e}],toDOM:t=>["del",e.get(v1.key)(t)],parseMarkdown:{match:e=>"delete"===e.type,runner:(e,t,n)=>{e.openMark(n),e.next(t.children),e.closeMark(n)}},toMarkdown:{match:e=>"strike_through"===e.type.name,runner:(e,t)=>{e.withMark(t,"delete")}}}));y1(b1.mark,{displayName:"MarkSchema<strikethrough>",group:"Strikethrough"}),y1(b1.ctx,{displayName:"MarkSchemaCtx<strikethrough>",group:"Strikethrough"});const x1=xG("ToggleStrikeThrough",e=>()=>gV(b1.type(e)));y1(x1,{displayName:"Command<ToggleStrikethrough>",group:"Strikethrough"});const w1=wG(e=>Nq(/~([^~]+)~$/,b1.type(e)));y1(w1,{displayName:"InputRule<strikethrough>",group:"Strikethrough"});const k1=EG("strikeThroughKeymap",{ToggleStrikethrough:{shortcuts:"Mod-Alt-x",command:e=>{const t=e.get(QZ);return()=>t.call(x1.key)}}});y1(k1.ctx,{displayName:"KeymapCtx<strikethrough>",group:"Strikethrough"}),y1(k1.shortcuts,{displayName:"Keymap<strikethrough>",group:"Strikethrough"});const S1=function(e){const t=e.cellAttributes||{},n={colspan:{default:1,validate:"number"},rowspan:{default:1,validate:"number"},colwidth:{default:null,validate:MK}};for(const r in t)n[r]={default:t[r].default,validate:t[r].validate};return{table:{content:"table_row+",tableRole:"table",isolating:!0,group:e.tableGroup,parseDOM:[{tag:"table"}],toDOM:()=>["table",["tbody",0]]},table_row:{content:"(table_cell | table_header)*",tableRole:"row",parseDOM:[{tag:"tr"}],toDOM:()=>["tr",0]},table_cell:{content:e.cellContent,attrs:n,tableRole:"cell",isolating:!0,parseDOM:[{tag:"td",getAttrs:e=>LK(e,t)}],toDOM:e=>["td",DK(e,t),0]},table_header:{content:e.cellContent,attrs:n,tableRole:"header_cell",isolating:!0,parseDOM:[{tag:"th",getAttrs:e=>LK(e,t)}],toDOM:e=>["th",DK(e,t),0]}}}({tableGroup:"block",cellContent:"paragraph",cellAttributes:{alignment:{default:"left",getFromDOM:e=>e.style.textAlign||"left",setDOMAttr:(e,t)=>{t.style=`text-align: ${e||"left"}`}}}}),T1=QG("table",()=>({...S1.table,content:"table_header_row table_row+",disableDropCursor:!0,parseMarkdown:{match:e=>"table"===e.type,runner:(e,t,n)=>{const r=t.align,i=t.children.map((e,t)=>({...e,align:r,isHeader:0===t}));e.openNode(n),e.next(i),e.closeNode()}},toMarkdown:{match:e=>"table"===e.type.name,runner:(e,t)=>{var n;const r=null==(n=t.content.firstChild)?void 0:n.content;if(!r)return;const i=[];r.forEach(e=>{i.push(e.attrs.alignment)}),e.openNode("table",void 0,{align:i}),e.next(t.content),e.closeNode()}}}));y1(T1.node,{displayName:"NodeSchema<table>",group:"Table"}),y1(T1.ctx,{displayName:"NodeSchemaCtx<table>",group:"Table"});const $1=QG("table_header_row",()=>({...S1.table_row,disableDropCursor:!0,content:"(table_header)*",parseDOM:[{tag:"tr[data-is-header]"}],toDOM:()=>["tr",{"data-is-header":!0},0],parseMarkdown:{match:e=>!("tableRow"!==e.type||!e.isHeader),runner:(e,t,n)=>{const r=t.align,i=t.children.map((e,n)=>({...e,align:r[n],isHeader:t.isHeader}));e.openNode(n),e.next(i),e.closeNode()}},toMarkdown:{match:e=>"table_header_row"===e.type.name,runner:(e,t)=>{e.openNode("tableRow",void 0,{isHeader:!0}),e.next(t.content),e.closeNode()}}}));y1($1.node,{displayName:"NodeSchema<tableHeaderRow>",group:"Table"}),y1($1.ctx,{displayName:"NodeSchemaCtx<tableHeaderRow>",group:"Table"});const _1=QG("table_row",()=>({...S1.table_row,disableDropCursor:!0,content:"(table_cell)*",parseMarkdown:{match:e=>"tableRow"===e.type,runner:(e,t,n)=>{const r=t.align,i=t.children.map((e,t)=>({...e,align:r[t]}));e.openNode(n),e.next(i),e.closeNode()}},toMarkdown:{match:e=>"table_row"===e.type.name,runner:(e,t)=>{e.openNode("tableRow"),e.next(t.content),e.closeNode()}}}));y1(_1.node,{displayName:"NodeSchema<tableRow>",group:"Table"}),y1(_1.ctx,{displayName:"NodeSchemaCtx<tableRow>",group:"Table"});const C1=QG("table_cell",()=>({...S1.table_cell,disableDropCursor:!0,parseMarkdown:{match:e=>"tableCell"===e.type&&!e.isHeader,runner:(e,t,n)=>{const r=t.align;e.openNode(n,{alignment:r}).openNode(e.schema.nodes.paragraph).next(t.children).closeNode().closeNode()}},toMarkdown:{match:e=>"table_cell"===e.type.name,runner:(e,t)=>{e.openNode("tableCell").next(t.content).closeNode()}}}));y1(C1.node,{displayName:"NodeSchema<tableCell>",group:"Table"}),y1(C1.ctx,{displayName:"NodeSchemaCtx<tableCell>",group:"Table"});const Q1=QG("table_header",()=>({...S1.table_header,disableDropCursor:!0,parseMarkdown:{match:e=>"tableCell"===e.type&&!!e.isHeader,runner:(e,t,n)=>{const r=t.align;e.openNode(n,{alignment:r}),e.openNode(e.schema.nodes.paragraph),e.next(t.children),e.closeNode(),e.closeNode()}},toMarkdown:{match:e=>"table_header"===e.type.name,runner:(e,t)=>{e.openNode("tableCell"),e.next(t.content),e.closeNode()}}}));function P1(e,t=3,n=3){const r=Array(n).fill(0).map(()=>C1.type(e).createAndFill()),i=Array(n).fill(0).map(()=>Q1.type(e).createAndFill()),o=Array(t).fill(0).map((t,n)=>0===n?$1.type(e).create(null,i):_1.type(e).create(null,r));return T1.type(e).create(null,o)}function E1(e){return Kq(e=>"table"===e.type.spec.tableRole)(e)}function R1(e,t){const n=E1(t.$from);if(!n)return;const r=BK.get(n.node);return e<0||e>=r.width?void 0:r.cellsInRect({left:e,right:e+1,top:0,bottom:r.height}).map(e=>{const t=n.node.nodeAt(e);if(!t)return;const r=e+n.start;return{pos:r,start:r+1,node:t}}).filter(e=>null!=e)}function B1(e,t){const n=E1(t.$from);if(!n)return;const r=BK.get(n.node);return e<0||e>=r.height?void 0:r.cellsInRect({left:0,right:r.width,top:e,bottom:e+1}).map(e=>{const t=n.node.nodeAt(e);if(!t)return;const r=e+n.start;return{pos:r,start:r+1,node:t}}).filter(e=>null!=e)}function I1(e){const t=function(e){const t=E1(e.$from);if(!t)return;const n=BK.get(t.node);return n.cellsInRect({left:0,right:n.width,top:0,bottom:n.height}).map(e=>{const n=t.node.nodeAt(e),r=e+t.start;return{pos:r,start:r+1,node:n}})}(e.selection);if(t&&t[0]){const n=e.doc.resolve(t[0].pos),r=t[t.length-1];if(r){const t=e.doc.resolve(r.pos);return Zq(e.setSelection(new ZK(t,n)))}}return e}function L1(e,t,{map:n,tableStart:r,table:i},o){const a=Array(o).fill(0).reduce((e,t,n)=>e+i.child(n).nodeSize,r),s=Array(n.width).fill(0).map((t,r)=>{const o=i.nodeAt(n.map[r]);return C1.type(e).createAndFill({alignment:null==o?void 0:o.attrs.alignment})});return t.insert(a,_1.type(e).create(null,s)),t}function D1(e){return(t,n)=>r=>{n=n??r.selection.from;const i=r.doc.resolve(n),o=Kq(e=>"table"===e.type.name)(i),a=o?{node:o.node,from:o.start}:void 0,s="row"===e;if(a){const e=BK.get(a.node);if(t>=0&&t<(s?e.height:e.width)){const n=e.positionAt(s?t:e.height-1,s?e.width-1:t,a.node),i=r.doc.resolve(a.from+n),o=s?ZK.rowSelection:ZK.colSelection,l=e.positionAt(s?t:0,s?0:t,a.node),c=r.doc.resolve(a.from+l);return Zq(r.setSelection(o(i,c)))}}return r}}y1(Q1.node,{displayName:"NodeSchema<tableHeader>",group:"Table"}),y1(Q1.ctx,{displayName:"NodeSchemaCtx<tableHeader>",group:"Table"});const M1=D1("row"),N1=D1("col");function X1(e){return e[0].map((t,n)=>e.map(e=>e[n]))}function F1(e,t){const n=[],r=BK.get(e);for(let i=0;i<r.height;i++){const o=e.child(i),a=[];for(let n=0;n<r.width;n++){if(!t[i][n])continue;const o=r.map[i*r.width+n],s=t[i][n],l=e.nodeAt(o).type.createChecked(Object.assign({},s.attrs),s.content,s.marks);a.push(l)}n.push(o.type.createChecked(o.attrs,a,o.marks))}return e.type.createChecked(e.attrs,n,e.marks)}function U1(e){const t=BK.get(e),n=[];for(let r=0;r<t.height;r++){const i=[],o={};for(let n=0;n<t.width;n++){const a=t.map[r*t.width+n],s=e.nodeAt(a),l=t.findCell(a);o[a]||l.top!==r?i.push(null):(o[a]=!0,i.push(s))}n.push(i)}return n}function z1(e,t,n,r){const i=t[0]>n[0]?-1:1,o=e.splice(t[0],t.length),a=o.length%2==0?1:0;let s;return s=-1===i?n[0]:n[n.length-1]-a,e.splice(s,0,...o),e}function q1(e,t){let n=e,r=e;for(let c=e;c>=0;c--){const e=R1(c,t.selection);e&&e.forEach(e=>{const t=e.node.attrs.colspan+c-1;t>=n&&(n=c),t>r&&(r=t)})}for(let c=e;c<=r;c++){const e=R1(c,t.selection);e&&e.forEach(e=>{const t=e.node.attrs.colspan+c-1;e.node.attrs.colspan>1&&t>r&&(r=t)})}const i=[];for(let c=n;c<=r;c++){const e=R1(c,t.selection);e&&e.length&&i.push(c)}n=i[0],r=i[i.length-1];const o=R1(n,t.selection),a=B1(0,t.selection),s=t.doc.resolve(o[o.length-1].pos);let l;for(let c=r;c>=n;c--){const e=R1(c,t.selection);if(e&&e.length){for(let t=a.length-1;t>=0;t--)if(a[t].pos===e[0].pos){l=e[0];break}if(l)break}}return{$anchor:s,$head:t.doc.resolve(l.pos),indexes:i}}function V1(e,t){let n=e,r=e;for(let c=e;c>=0;c--)B1(c,t.selection).forEach(e=>{const t=e.node.attrs.rowspan+c-1;t>=n&&(n=c),t>r&&(r=t)});for(let c=e;c<=r;c++)B1(c,t.selection).forEach(e=>{const t=e.node.attrs.rowspan+c-1;e.node.attrs.rowspan>1&&t>r&&(r=t)});const i=[];for(let c=n;c<=r;c++){const e=B1(c,t.selection);e&&e.length&&i.push(c)}n=i[0],r=i[i.length-1];const o=B1(n,t.selection),a=R1(0,t.selection),s=t.doc.resolve(o[o.length-1].pos);let l;for(let c=r;c>=n;c--){const e=B1(c,t.selection);if(e&&e.length){for(let t=a.length-1;t>=0;t--)if(a[t].pos===e[0].pos){l=e[0];break}if(l)break}}return{$anchor:s,$head:t.doc.resolve(l.pos),indexes:i}}function W1(e){const{tr:t,origin:n,target:r,select:i=!0,pos:o}=e,a=E1(null!=o?t.doc.resolve(o):t.selection.$from);if(!a)return t;const{indexes:s}=q1(n,t),{indexes:l}=q1(r,t);if(s.includes(r))return t;const c=function(e,t,n){let r=X1(U1(e.node));return r=z1(r,t,n),r=X1(r),F1(e.node,r)}(a,s,l),u=Zq(t).replaceWith(a.pos,a.pos+a.node.nodeSize,c);if(!i)return u;const h=BK.get(c),d=a.start,p=r,f=h.positionAt(h.height-1,p,c),g=u.doc.resolve(d+f),m=ZK.colSelection,O=h.positionAt(0,p,c),A=u.doc.resolve(d+O);return u.setSelection(m(g,A))}function j1(e){const{tr:t,origin:n,target:r,select:i=!0,pos:o}=e,a=E1(null!=o?t.doc.resolve(o):t.selection.$from);if(!a)return t;const{indexes:s}=V1(n,t),{indexes:l}=V1(r,t);if(s.includes(r))return t;const c=function(e,t,n){let r=U1(e.node);return r=z1(r,t,n),F1(e.node,r)}(a,s,l),u=Zq(t).replaceWith(a.pos,a.pos+a.node.nodeSize,c);if(!i)return u;const h=BK.get(c),d=a.start,p=r,f=h.positionAt(p,h.width-1,c),g=u.doc.resolve(d+f),m=ZK.rowSelection,O=h.positionAt(p,0,c),A=u.doc.resolve(d+O);return u.setSelection(m(g,A))}const Y1=xG("GoToPrevTableCell",()=>()=>cJ(-1));y1(Y1,{displayName:"Command<goToPrevTableCellCommand>",group:"Table"});const Z1=xG("GoToNextTableCell",()=>()=>cJ(1));y1(Z1,{displayName:"Command<goToNextTableCellCommand>",group:"Table"});const G1=xG("ExitTable",e=>()=>(t,n)=>{if(!UK(t))return!1;const{$head:r}=t.selection,i=(o=r,a=T1.type(e),Gq(e=>e.type===a)(o));var o,a;if(!i)return!1;const{to:s}=i,l=t.tr.replaceWith(s,s,fH.type(e).createAndFill());return l.setSelection(zz.near(l.doc.resolve(s),1)).scrollIntoView(),null==n||n(l),!0});y1(G1,{displayName:"Command<breakTableCommand>",group:"Table"});const H1=xG("InsertTable",e=>({row:t,col:n}={})=>(r,i)=>{const{selection:o,tr:a}=r,{from:s}=o,l=P1(e,t,n),c=a.replaceSelectionWith(l),u=zz.findFrom(c.doc.resolve(s),1,!0);return u&&c.setSelection(u),null==i||i(c),!0});y1(H1,{displayName:"Command<insertTableCommand>",group:"Table"});const K1=xG("MoveRow",()=>({from:e,to:t,pos:n}={})=>(r,i)=>{const{tr:o}=r;return!!(null==i?void 0:i(j1({tr:o,origin:e??0,target:t??0,pos:n,select:!0})))});y1(K1,{displayName:"Command<moveRowCommand>",group:"Table"});const J1=xG("MoveCol",()=>({from:e,to:t,pos:n}={})=>(r,i)=>{const{tr:o}=r;return!!(null==i?void 0:i(W1({tr:o,origin:e??0,target:t??0,pos:n,select:!0})))});y1(J1,{displayName:"Command<moveColCommand>",group:"Table"});const e2=xG("SelectRow",()=>(e={index:0})=>(t,n)=>{const{tr:r}=t;return!!(null==n?void 0:n(M1(e.index,e.pos)(r)))});y1(e2,{displayName:"Command<selectRowCommand>",group:"Table"});const t2=xG("SelectCol",()=>(e={index:0})=>(t,n)=>{const{tr:r}=t;return!!(null==n?void 0:n(N1(e.index,e.pos)(r)))});y1(t2,{displayName:"Command<selectColCommand>",group:"Table"});const n2=xG("SelectTable",()=>()=>(e,t)=>{const{tr:n}=e;return!!(null==t?void 0:t(I1(n)))});y1(n2,{displayName:"Command<selectTableCommand>",group:"Table"});const r2=xG("DeleteSelectedCells",()=>()=>(e,t)=>{const{selection:n}=e;if(!(n instanceof ZK))return!1;const r=n.isRowSelection(),i=n.isColSelection();return r&&i?function(e,t){const n=e.selection.$anchor;for(let r=n.depth;r>0;r--)if("table"==n.node(r).type.spec.tableRole)return t&&t(e.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0;return!1}(e,t):i?function(e,t){if(!UK(e))return!1;if(t){const n=tJ(e),r=e.tr;if(0==n.left&&n.right==n.map.width)return!1;for(let e=n.right-1;oJ(r,n,e),e!=n.left;e--){const e=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!e)throw new RangeError("No table found");n.table=e,n.map=BK.get(e)}t(r)}return!0}(e,t):function(e,t){if(!UK(e))return!1;if(t){const n=tJ(e),r=e.tr;if(0==n.top&&n.bottom==n.map.height)return!1;for(let e=n.bottom-1;aJ(r,n,e),e!=n.top;e--){const e=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!e)throw new RangeError("No table found");n.table=e,n.map=BK.get(n.table)}t(r)}return!0}(e,t)});y1(r2,{displayName:"Command<deleteSelectedCellsCommand>",group:"Table"});const i2=xG("AddColBefore",()=>()=>rJ);y1(i2,{displayName:"Command<addColBeforeCommand>",group:"Table"});const o2=xG("AddColAfter",()=>()=>iJ);y1(o2,{displayName:"Command<addColAfterCommand>",group:"Table"});const a2=xG("AddRowBefore",e=>()=>(t,n)=>{if(!UK(t))return!1;if(n){const r=tJ(t);n(L1(e,t.tr,r,r.top))}return!0});y1(a2,{displayName:"Command<addRowBeforeCommand>",group:"Table"});const s2=xG("AddRowAfter",e=>()=>(t,n)=>{if(!UK(t))return!1;if(n){const r=tJ(t);n(L1(e,t.tr,r,r.bottom))}return!0});y1(s2,{displayName:"Command<addRowAfterCommand>",group:"Table"});const l2=xG("SetAlign",()=>(e="left")=>{return t="alignment",n=e,function(e,r){if(!UK(e))return!1;const i=zK(e);if(i.nodeAfter.attrs[t]===n)return!1;if(r){const o=e.tr;e.selection instanceof ZK?e.selection.forEachCell((e,r)=>{e.attrs[t]!==n&&o.setNodeMarkup(r,null,{...e.attrs,[t]:n})}):o.setNodeMarkup(i.pos,null,{...i.nodeAfter.attrs,[t]:n}),r(o)}return!0};var t,n});y1(l2,{displayName:"Command<setAlignCommand>",group:"Table"});const c2=wG(e=>new dq(/^\|(?<col>\d+)[xX](?<row>\d+)\|\s$/,(t,n,r,i)=>{var o,a;const s=t.doc.resolve(r);if(!s.node(-1).canReplaceWith(s.index(-1),s.indexAfter(-1),T1.type(e)))return null;const l=P1(e,Number(null==(o=n.groups)?void 0:o.row),Number(null==(a=n.groups)?void 0:a.col)),c=t.tr.replaceRangeWith(r,i,l);return c.setSelection(jz.create(c.doc,r+3)).scrollIntoView()}));y1(c2,{displayName:"InputRule<insertTableInputRule>",group:"Table"});const u2=EG("tableKeymap",{NextCell:{shortcuts:["Mod-]","Tab"],command:e=>{const t=e.get(QZ);return()=>t.call(Z1.key)}},PrevCell:{shortcuts:["Mod-[","Shift-Tab"],command:e=>{const t=e.get(QZ);return()=>t.call(Y1.key)}},ExitTable:{shortcuts:["Mod-Enter"],command:e=>{const t=e.get(QZ);return()=>t.call(G1.key)}}});y1(u2.ctx,{displayName:"KeymapCtx<table>",group:"Table"}),y1(u2.shortcuts,{displayName:"Keymap<table>",group:"Table"});const h2="footnote_definition",d2="footnoteDefinition",p2=QG("footnote_definition",()=>({group:"block",content:"block+",defining:!0,attrs:{label:{default:""}},parseDOM:[{tag:`dl[data-type="${h2}"]`,getAttrs:e=>{if(!(e instanceof HTMLElement))throw jL(e);return{label:e.dataset.label}},contentElement:"dd"}],toDOM:e=>{const t=e.attrs.label;return["dl",{"data-label":t,"data-type":h2},["dt",t],["dd",0]]},parseMarkdown:{match:({type:e})=>e===d2,runner:(e,t,n)=>{e.openNode(n,{label:t.label}).next(t.children).closeNode()}},toMarkdown:{match:e=>e.type.name===h2,runner:(e,t)=>{e.openNode(d2,void 0,{label:t.attrs.label,identifier:t.attrs.label}).next(t.content).closeNode()}}}));y1(p2.ctx,{displayName:"NodeSchemaCtx<footnodeDef>",group:"footnote"}),y1(p2.node,{displayName:"NodeSchema<footnodeDef>",group:"footnote"});const f2="footnote_reference",g2=QG("footnote_reference",()=>({group:"inline",inline:!0,atom:!0,attrs:{label:{default:""}},parseDOM:[{tag:`sup[data-type="${f2}"]`,getAttrs:e=>{if(!(e instanceof HTMLElement))throw jL(e);return{label:e.dataset.label}}}],toDOM:e=>{const t=e.attrs.label;return["sup",{"data-label":t,"data-type":f2},t]},parseMarkdown:{match:({type:e})=>"footnoteReference"===e,runner:(e,t,n)=>{e.addNode(n,{label:t.label})}},toMarkdown:{match:e=>e.type.name===f2,runner:(e,t)=>{e.addNode("footnoteReference",void 0,void 0,{label:t.attrs.label,identifier:t.attrs.label})}}}));y1(g2.ctx,{displayName:"NodeSchemaCtx<footnodeRef>",group:"footnote"}),y1(g2.node,{displayName:"NodeSchema<footnodeRef>",group:"footnote"});const m2=aK.extendSchema(e=>t=>{const n=e(t);return{...n,attrs:{...n.attrs,checked:{default:null}},parseDOM:[{tag:'li[data-item-type="task"]',getAttrs:e=>{if(!(e instanceof HTMLElement))throw jL(e);return{label:e.dataset.label,listType:e.dataset.listType,spread:e.dataset.spread,checked:e.dataset.checked?"true"===e.dataset.checked:null}}},...(null==n?void 0:n.parseDOM)||[]],toDOM:e=>n.toDOM&&null==e.attrs.checked?n.toDOM(e):["li",{"data-item-type":"task","data-label":e.attrs.label,"data-list-type":e.attrs.listType,"data-spread":e.attrs.spread,"data-checked":e.attrs.checked},0],parseMarkdown:{match:({type:e})=>"listItem"===e,runner:(e,t,r)=>{if(null==t.checked)return void n.parseMarkdown.runner(e,t,r);const i=null!=t.label?`${t.label}.`:"•",o=null!=t.checked?!!t.checked:null,a=null!=t.label?"ordered":"bullet",s=null!=t.spread?`${t.spread}`:"true";e.openNode(r,{label:i,listType:a,spread:s,checked:o}),e.next(t.children),e.closeNode()}},toMarkdown:{match:e=>"list_item"===e.type.name,runner:(e,t)=>{if(null==t.attrs.checked)return void n.toMarkdown.runner(e,t);const r=t.attrs.label,i=t.attrs.listType,o="true"===t.attrs.spread,a=t.attrs.checked;e.openNode("listItem",void 0,{label:r,listType:i,spread:o,checked:a}),e.next(t.content),e.closeNode()}}}});y1(m2,{displayName:"NodeSchema<listItem>",group:"ListItem"});const O2=wG(()=>new dq(/^\[(?<checked>\s|x)\]\s$/,(e,t,n,r)=>{var i;const o=e.doc.resolve(n);let a=0,s=o.node(a);for(;s&&"list_item"!==s.type.name;)a--,s=o.node(a);if(!s||null!=s.attrs.checked)return null;const l="x"===(null==(i=t.groups)?void 0:i.checked),c=o.before(a),u=e.tr;return u.deleteRange(n,r).setNodeMarkup(c,void 0,{...s.attrs,checked:l}),u}));y1(O2,{displayName:"InputRule<wrapInTaskListInputRule>",group:"ListItem"});const A2=[k1,u2].flat(),y2=[c2,O2],v2=[w1],b2=TG(()=>WJ);y1(b2,{displayName:"Prose<autoInsertSpanPlugin>",group:"Prose"});y1(TG(()=>CJ({})),{displayName:"Prose<columnResizingPlugin>",group:"Prose"});const x2=TG(()=>LJ({allowTableNodeSelection:!0}));y1(x2,{displayName:"Prose<tableEditingPlugin>",group:"Prose"});const w2=IG("remarkGFM",()=>A1);y1(w2.plugin,{displayName:"Remark<remarkGFMPlugin>",group:"Remark"}),y1(w2.options,{displayName:"RemarkConfig<remarkGFMPlugin>",group:"Remark"});const k2=new hq("MILKDOWN_KEEP_TABLE_ALIGN_PLUGIN");const S2=TG(()=>new lq({key:k2,appendTransaction:(e,t,n)=>{let r;return t.doc!==n.doc&&n.doc.descendants((e,t)=>{if(r||(r=n.tr),"table_cell"!==e.type.name)return;const i=n.doc.resolve(t),o=i.node(i.depth),a=i.node(i.depth-1).firstChild;if(!a)return;const s=function(e,t){let n=0;return t.forEach((t,r,i)=>{t===e&&(n=i)}),n}(e,o),l=a.maybeChild(s);if(!l)return;const c=l.attrs.alignment;c!==e.attrs.alignment&&r.setNodeMarkup(t,void 0,{...e.attrs,alignment:c})}),r}}));y1(S2,{displayName:"Prose<keepTableAlignPlugin>",group:"Prose"});const T2=[S2,b2,w2,x2].flat(),$2=[[m2,T1,$1,_1,Q1,C1,p2,g2,v1,b1].flat(),y2,v2,A2,[Z1,Y1,G1,H1,K1,J1,e2,t2,n2,r2,a2,s2,i2,o2,l2,x1],T2].flat();var _2=200,C2=function(){};C2.prototype.append=function(e){return e.length?(e=C2.from(e),!this.length&&e||e.length<_2&&this.leafAppend(e)||this.length<_2&&e.leafPrepend(this)||this.appendInner(e)):this},C2.prototype.prepend=function(e){return e.length?C2.from(e).append(this):this},C2.prototype.appendInner=function(e){return new P2(this,e)},C2.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t?C2.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},C2.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},C2.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},C2.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var r=[];return this.forEach(function(t,n){return r.push(e(t,n))},t,n),r},C2.from=function(e){return e instanceof C2?e:e&&e.length?new Q2(e):C2.empty};var Q2=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var i=t;i<n;i++)if(!1===e(this.values[i],r+i))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var i=t-1;i>=n;i--)if(!1===e(this.values[i],r+i))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=_2)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=_2)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(C2);C2.empty=new Q2([]);var P2=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var i=this.left.length;return!(t<i&&!1===this.left.forEachInner(e,t,Math.min(n,i),r))&&(!(n>i&&!1===this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,n)-i,r+i))&&void 0)},t.prototype.forEachInvertedInner=function(e,t,n,r){var i=this.left.length;return!(t>i&&!1===this.right.forEachInvertedInner(e,t-i,Math.max(n,i)-i,r+i))&&(!(n<i&&!1===this.left.forEachInvertedInner(e,Math.min(t,i),n,r))&&void 0)},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(C2);let E2=class e{constructor(e,t){this.items=e,this.eventCount=t}popEvent(t,n){if(0==this.eventCount)return null;let r,i,o=this.items.length;for(;;o--){if(this.items.get(o-1).selection){--o;break}}n&&(r=this.remapping(o,this.items.length),i=r.maps.length);let a,s,l=t.tr,c=[],u=[];return this.items.forEach((t,n)=>{if(!t.step)return r||(r=this.remapping(o,n+1),i=r.maps.length),i--,void u.push(t);if(r){u.push(new R2(t.map));let e,n=t.step.map(r.slice(i));n&&l.maybeStep(n).doc&&(e=l.mapping.maps[l.mapping.maps.length-1],c.push(new R2(e,void 0,void 0,c.length+u.length))),i--,e&&r.appendMap(e,i)}else l.maybeStep(t.step);return t.selection?(a=r?t.selection.map(r.slice(i)):t.selection,s=new e(this.items.slice(0,o).append(u.reverse().concat(c)),this.eventCount-1),!1):void 0},this.items.length,0),{remaining:s,transform:l,selection:a}}addTransform(t,n,r,i){let o=[],a=this.eventCount,s=this.items,l=!i&&s.length?s.get(s.length-1):null;for(let e=0;e<t.steps.length;e++){let r,c=t.steps[e].invert(t.docs[e]),u=new R2(t.mapping.maps[e],c,n);(r=l&&l.merge(u))&&(u=r,e?o.pop():s=s.slice(0,s.length-1)),o.push(u),n&&(a++,n=void 0),i||(l=u)}let c=a-r.depth;return c>I2&&(s=function(e,t){let n;return e.forEach((e,r)=>{if(e.selection&&0==t--)return n=r,!1}),e.slice(n)}(s,c),a-=c),new e(s.append(o),a)}remapping(e,t){let n=new oz;return this.items.forEach((t,r)=>{let i=null!=t.mirrorOffset&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,i)},e,t),n}addMaps(t){return 0==this.eventCount?this:new e(this.items.append(t.map(e=>new R2(e))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-n),o=t.mapping,a=t.steps.length,s=this.eventCount;this.items.forEach(e=>{e.selection&&s--},i);let l=n;this.items.forEach(e=>{let n=o.getMirror(--l);if(null==n)return;a=Math.min(a,n);let i=o.maps[n];if(e.step){let a=t.steps[n].invert(t.docs[n]),c=e.selection&&e.selection.map(o.slice(l+1,n));c&&s++,r.push(new R2(i,a,c))}else r.push(new R2(i))},i);let c=[];for(let e=n;e<a;e++)c.push(new R2(o.maps[e]));let u=this.items.slice(0,i).append(c).append(r),h=new e(u,s);return h.emptyItemCount()>500&&(h=h.compress(this.items.length-r.length)),h}emptyItemCount(){let e=0;return this.items.forEach(t=>{t.step||e++}),e}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,i=[],o=0;return this.items.forEach((e,a)=>{if(a>=t)i.push(e),e.selection&&o++;else if(e.step){let t=e.step.map(n.slice(r)),a=t&&t.getMap();if(r--,a&&n.appendMap(a,r),t){let s=e.selection&&e.selection.map(n.slice(r));s&&o++;let l,c=new R2(a.invert(),t,s),u=i.length-1;(l=i.length&&i[u].merge(c))?i[u]=l:i.push(c)}}else e.map&&r--},this.items.length,0),new e(C2.from(i.reverse()),o)}};E2.empty=new E2(C2.empty,0);let R2=class e{constructor(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new e(n.getMap().invert(),n,this.selection)}}},B2=class{constructor(e,t,n,r,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}};const I2=20;function L2(e){let t=[];for(let n=e.length-1;n>=0&&0==t.length;n--)e[n].forEach((e,n,r,i)=>t.push(r,i));return t}function D2(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let i=t.map(e[r],1),o=t.map(e[r+1],-1);i<=o&&n.push(i,o)}return n}let M2=!1,N2=null;function X2(e){let t=e.plugins;if(N2!=t){M2=!1,N2=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){M2=!0;break}}return M2}const F2=new hq("history"),U2=new hq("closeHistory");function z2(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new lq({key:F2,state:{init:()=>new B2(E2.empty,E2.empty,null,0,-1),apply:(t,n,r)=>function(e,t,n,r){let i,o=n.getMeta(F2);if(o)return o.historyState;n.getMeta(U2)&&(e=new B2(e.done,e.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(a&&a.getMeta(F2))return a.getMeta(F2).redo?new B2(e.done.addTransform(n,void 0,r,X2(t)),e.undone,L2(n.mapping.maps),e.prevTime,e.prevComposition):new B2(e.done,e.undone.addTransform(n,void 0,r,X2(t)),null,e.prevTime,e.prevComposition);if(!1===n.getMeta("addToHistory")||a&&!1===a.getMeta("addToHistory"))return(i=n.getMeta("rebased"))?new B2(e.done.rebased(n,i),e.undone.rebased(n,i),D2(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new B2(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),D2(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);{let i=n.getMeta("composition"),o=0==e.prevTime||!a&&e.prevComposition!=i&&(e.prevTime<(n.time||0)-r.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((e,r)=>{for(let i=0;i<t.length;i+=2)e<=t[i+1]&&r>=t[i]&&(n=!0)}),n}(n,e.prevRanges)),s=a?D2(e.prevRanges,n.mapping):L2(n.mapping.maps);return new B2(e.done.addTransform(n,o?t.selection.getBookmark():void 0,r,X2(t)),E2.empty,s,n.time,null==i?e.prevComposition:i)}}(n,r,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r="historyUndo"==n?V2:"historyRedo"==n?W2:null;return!(!r||!e.editable)&&(t.preventDefault(),r(e.state,e.dispatch))}}}})}function q2(e,t){return(n,r)=>{let i=F2.getState(n);if(!i||0==(e?i.undone:i.done).eventCount)return!1;if(r){let o=function(e,t,n){let r=X2(t),i=F2.get(t).spec.config,o=(n?e.undone:e.done).popEvent(t,r);if(!o)return null;let a=o.selection.resolve(o.transform.doc),s=(n?e.done:e.undone).addTransform(o.transform,t.selection.getBookmark(),i,r),l=new B2(n?s:o.remaining,n?o.remaining:s,null,0,-1);return o.transform.setSelection(a).setMeta(F2,{redo:n,historyState:l})}(i,n,e);o&&r(t?o.scrollIntoView():o)}return!0}}const V2=q2(!1,!0),W2=q2(!0,!0);function j2(e,t){return Object.assign(e,{meta:{package:"@milkdown/plugin-history",...t}}),e}const Y2=xG("Undo",()=>()=>V2);j2(Y2,{displayName:"Command<undo>"});const Z2=xG("Redo",()=>()=>W2);j2(Z2,{displayName:"Command<redo>"});const G2=CG({},"historyProviderConfig");j2(G2,{displayName:"Ctx<historyProviderConfig>"});const H2=TG(e=>z2(e.get(G2.key)));j2(H2,{displayName:"Ctx<historyProviderPlugin>"});const K2=EG("historyKeymap",{Undo:{shortcuts:"Mod-z",command:e=>{const t=e.get(QZ);return()=>t.call(Y2.key)}},Redo:{shortcuts:["Mod-y","Shift-Mod-z"],command:e=>{const t=e.get(QZ);return()=>t.call(Z2.key)}}});j2(K2.ctx,{displayName:"KeymapCtx<history>"}),j2(K2.shortcuts,{displayName:"Keymap<history>"});const J2=[G2,H2,K2,Y2,Z2].flat();class e5{constructor(n){nr(this,e),nr(this,t,new Set),rr(this,e,n)}get current(){return tr(this,e)}set current(n){tr(this,e)!=n&&(rr(this,e,n),tr(this,t).forEach(e=>e(n)))}on(e){return tr(this,t).add(e),()=>tr(this,t).delete(e)}}e=new WeakMap,t=new WeakMap;const t5=e=>new e5(e),n5=Symbol.for("atomico.hooks");globalThis[n5]=globalThis[n5]||{};let r5=globalThis[n5];const i5=Symbol.for("Atomico.suspense"),o5=Symbol.for("Atomico.effect"),a5=Symbol.for("Atomico.layoutEffect"),s5=Symbol.for("Atomico.insertionEffect"),l5=(e,t,n)=>{const{i:r,hooks:i}=r5.c,o=i[r]=i[r]||{};return o.value=e(o.value),o.effect=t,o.tag=n,r5.c.i++,i[r].value},c5=e=>l5((t=t5(e))=>t),u5=()=>l5((e=t5(r5.c.host))=>e),h5=()=>r5.c.update,d5=Symbol.for;function p5(e,t){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++){if(e[r]!==t[r])return!1}return!0}const f5=e=>"function"==typeof e,g5=e=>"object"==typeof e,{isArray:m5}=Array,O5=(e,t)=>(!t||e instanceof HTMLStyleElement)&&"hydrate"in((null==e?void 0:e.dataset)||{});function A5(e,t){let n;const r=e=>{let{length:i}=e;for(let o=0;o<i;o++){const i=e[o];if(i&&Array.isArray(i))r(i);else{const e=typeof i;if(null==i||"function"===e||"boolean"===e)continue;"string"===e||"number"===e?(null==n&&(n=""),n+=i):(null!=n&&(t(n),n=null),t(i))}}};r(e),null!=n&&t(n)}const y5=(e,t,n)=>(e.addEventListener(t,n),()=>e.removeEventListener(t,n));let v5=class{constructor(e,t,n){this.message=t,this.target=e,this.value=n}};class b5 extends v5{}let x5=class extends v5{};const w5="Custom",k5={true:1,"":1,1:1};function S5(e,t,n,r,i){const{type:o,reflect:a,event:s,value:l,attr:c=$5(t)}=(null==n?void 0:n.name)!=w5&&g5(n)&&null!=n?n:{type:n},u=(null==o?void 0:o.name)===w5&&o.map,h=null!=l?o!=Function&&f5(l)?l:()=>l:null;Object.defineProperty(e,t,{configurable:!0,set(e){const n=this[t];h&&o!=Boolean&&null==e&&(e=h());const{error:r,value:i}=(u?C5:Q5)(o,e);if(r&&null!=i)throw new b5(this,`The value defined for prop '${t}' must be of type '${o.name}'`,i);n!=i&&(this._props[t]=null==i?void 0:i,this.update(),s&&T5(this,s),this.updated.then(()=>{a&&(this._ignoreAttr=c,_5(this,o,c,this[t]),this._ignoreAttr=null)}))},get(){return this._props[t]}}),h&&(i[t]=h()),r[c]={prop:t,type:o}}const T5=(e,{type:t,base:n=CustomEvent,...r})=>e.dispatchEvent(new n(t,r)),$5=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase(),_5=(e,t,n,r)=>null==r||t==Boolean&&!r?e.removeAttribute(n):e.setAttribute(n,(null==t?void 0:t.name)===w5&&(null==t?void 0:t.serialize)?null==t?void 0:t.serialize(r):g5(r)?JSON.stringify(r):t==Boolean?"":r),C5=({map:e},t)=>{try{return{value:e(t),error:!1}}catch{return{value:t,error:!0}}},Q5=(e,t)=>null==e||null==t?{value:t,error:!1}:e!=String&&""===t?{value:void 0,error:!1}:e==Object||e==Array||e==Symbol?{value:t,error:{}.toString.call(t)!==`[object ${e.name}]`}:t instanceof e?{value:t,error:e==Number&&Number.isNaN(t.valueOf())}:e==String||e==Number||e==Boolean?{value:t,error:e==Number?"number"!=typeof t||Number.isNaN(t):e==String?"string"!=typeof t:"boolean"!=typeof t}:{value:t,error:!0};let P5=0;const E5=(e,t=HTMLElement)=>{const n={},r={},i="prototype"in t&&t.prototype instanceof Element,o=i?t:"base"in t?t.base:HTMLElement,{props:a,styles:s}=i?e:t;return class extends o{constructor(){super(),this._setup(),this._render=()=>e({...this._props});for(const e in r)this[e]=r[e]}static get styles(){return[super.styles,s]}async _setup(){if(this._props)return;let e,t;this._props={},this.mounted=new Promise(n=>this.mount=()=>{n(),e!=this.parentNode&&(t!=e?this.unmounted.then(this.update):this.update()),e=this.parentNode}),this.unmounted=new Promise(r=>this.unmount=()=>{r(),e==this.parentNode&&this.isConnected||(n.cleanEffects(!0)()(),t=this.parentNode,e=null)}),this.symbolId=this.symbolId||Symbol(),this.symbolIdParent=Symbol();const n=((e,t,n=0)=>{let r={},i=!1;const o=(e,t)=>{for(const n in r){const i=r[n];i.effect&&i.tag===e&&(i.value=i.effect(i.value,t))}};return{load:o=>{let a;r5.c={host:t,hooks:r,update:e,i:0,id:n};try{i=!1,a=o()}catch(jk){if(jk!==i5)throw jk;i=!0}finally{r5.c=null}return a},cleanEffects:e=>(o(s5,e),()=>(o(a5,e),()=>{o(o5,e)})),isSuspense:()=>i}})(()=>this.update(),this,(null==(i=(null==(r=this)?void 0:r.dataset)||{})?void 0:i.hydrate)||"c"+P5++);var r,i;let o,a=!0;const s=O5(this);this.update=()=>(o||(o=!0,this.updated=(this.updated||this.mounted).then(()=>{try{const e=n.load(this._render),t=n.cleanEffects();return e&&e.render(this,this.symbolId,s),o=!1,a&&!n.isSuspense()&&(a=!1,!s&&function(e){const{styles:t}=e.constructor,{shadowRoot:n}=e;if(n&&t.length){const e=[];A5(t,t=>{t&&(t instanceof Element?n.appendChild(t.cloneNode(!0)):e.push(t))}),e.length&&(n.adoptedStyleSheets=e)}}(this)),t()}finally{o=!1}}).then(e=>{e&&e()})),this.updated),this.update()}connectedCallback(){this.mount(),super.connectedCallback&&super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),this.unmount()}attributeChangedCallback(e,t,r){if(n[e]){if(e===this._ignoreAttr||t===r)return;const{prop:i,type:o}=n[e];try{this[i]=((e,t)=>e==Boolean?!!k5[t]:e==Number?Number(t):e==String?t:e==Array||e==Object?JSON.parse(t):e.name==w5?t:new e(t))(o,r)}catch(jk){throw new x5(this,`The value defined as attr '${e}' cannot be parsed by type '${o.name}'`,r)}}else super.attributeChangedCallback(e,t,r)}static get props(){return{...super.props,...a}}static get observedAttributes(){const e=super.observedAttributes||[];for(const t in a)S5(this.prototype,t,a[t],n,r);return Object.keys(n).concat(e)}}};const R5=e=>(t,n)=>{l5(([e,t]=[])=>(!t&&t||(t&&p5(t,n)?e=e||!0:(f5(e)&&e(),e=null)),[e,n]),([e,n],r)=>r?(f5(e)&&e(),[]):[e||t(),n],e)},B5=R5(a5),I5=R5(o5),L5=R5(s5);let D5=class extends Array{constructor(e,t){let n=!0;const r=e=>{try{t(e,this,n)}finally{n=!1}};super(void 0,r,t),r(e)}};const M5=e=>{const t=h5();return l5((n=new D5(e,(e,n,r)=>{(e=f5(e)?e(n[0]):e)!==n[0]&&(n[0]=e,r||t())}))=>n)},N5=(e,t)=>{const[n]=l5(([n,r,i=0]=[])=>((!r||r&&!p5(r,t))&&(n=e()),[n,t,i]));return n},X5=(e,t)=>N5(()=>e,t),F5=d5("atomico/options");globalThis[F5]=globalThis[F5]||{sheet:!!document.adoptedStyleSheets};const U5=globalThis[F5];new Promise(e=>{U5.ssr||("loading"===document.readyState?y5(document,"DOMContentLoaded",e):e())});const z5={checked:1,value:1,selected:1},q5={list:1,type:1,size:1,form:1,width:1,height:1,src:1,href:1,slot:1},V5={shadowDom:1,staticNode:1,cloneNode:1,children:1,key:1},W5={},j5=[];class Y5 extends Text{}const Z5=d5("atomico/id"),G5=d5("atomico/type"),H5=d5("atomico/ref"),K5=d5("atomico/vnode"),J5=()=>{};function e4(e,t,n){return n4(this,e,t,n)}const t4=(e,t,...n)=>{const r=t||W5;let{children:i}=r;if(i=null!=i?i:n.length?n:j5,e===J5)return i;const o=e?e instanceof Node?1:e.prototype instanceof HTMLElement&&2:0;if(!1===o&&e instanceof Function)return e(i!=j5?{children:i,...r}:r);const a=U5.render||e4;return{[G5]:K5,type:e,props:r,children:i,key:r.key,shadow:r.shadowDom,static:r.staticNode,raw:o,is:r.is,clone:r.cloneNode,render:a}};function n4(e,t,n=Z5,r,i){let o;if(t&&t[n]&&t[n].vnode==e||e[G5]!=K5)return t;!e&&t||(i=i||"svg"==e.type,o="host"!=e.type&&(1==e.raw?(t&&e.clone?t[H5]:t)!=e.type:2==e.raw?!(t instanceof e.type):t?t[H5]||t.localName!=e.type:!t),o&&null!=e.type&&(1==e.raw&&e.clone?(r=!0,(t=e.type.cloneNode(!0))[H5]=e.type):t=1==e.raw?e.type:2==e.raw?new e.type:i?document.createElementNS("http://www.w3.org/2000/svg",e.type):document.createElement(e.type,e.is?{is:e.is}:void 0)));const a=t[n]?t[n]:W5,{vnode:s=W5,cycle:l=0}=a;let{fragment:c,handlers:u}=a;const{children:h=j5,props:d=W5}=s;if(u=o?{}:u||{},e.static&&!o)return t;if(e.shadow&&!t.shadowRoot&&t.attachShadow({mode:"open",...e.shadow}),e.props!=d&&function(e,t,n,r,i){for(const o in t)!(o in n)&&r4(e,o,t[o],null,i,r);for(const o in n)r4(e,o,t[o],n[o],i,r)}(t,d,e.props,u,i),e.children!==h){const o=e.shadow?t.shadowRoot:t;c=function(e,t,n,r,i,o){e=null==e?null:m5(e)?e:[e];const a=t||function(e,t){const n=new Y5(""),r=new Y5("");let i;if(e[t?"prepend":"append"](n),t){let{lastElementChild:t}=e;for(;t;){const{previousElementSibling:e}=t;if(O5(t,!0)&&!O5(e,!0)){i=t;break}t=e}}i?i.before(r):e.append(r);return{markStart:n,markEnd:r}}(n,i),{markStart:s,markEnd:l,keyes:c}=a;let u;const h=c&&new Set;let d=s;if(e&&A5(e,e=>{if("object"==typeof e&&!e[G5])return;const t=e[G5]&&e.key,a=c&&null!=t&&c.get(t);d!=l&&d===a?h.delete(d):d=d==l?l:d.nextSibling;const s=c?a:d;let p=s;if(e[G5])p=n4(e,s,r,i,o);else{const t=e+"";!(p instanceof Text)||p instanceof Y5?p=new Text(t):p.data!=t&&(p.data=t)}p!=d&&(c&&h.delete(p),!s||c?(n.insertBefore(p,d),c&&d!=l&&h.add(d)):s==l?n.insertBefore(p,l):(n.replaceChild(p,s),d=p)),null!=t&&(u=u||new Map,u.set(t,p))}),d=d==l?l:d.nextSibling,t&&d!=l)for(;d!=l;){const e=d;d=d.nextSibling,e.remove()}return h&&h.forEach(e=>e.remove()),a.keyes=u,a}(e.children,c,o,n,!l&&r,(!i||"foreignObject"!=e.type)&&i)}return t[n]={vnode:e,handlers:u,fragment:c,cycle:l+1},t}function r4(e,t,n,r,i,o){if(n=null==n?null:n,r=null==r?null:r,(t="class"!=t||i?t:"className")in e&&z5[t]&&(n=e[t]),r!==n&&!V5[t]&&"_"!=t[0])if("slot"===e.localName&&"assignNode"===t&&"assign"in e)e.assign(r);else if("o"==t[0]&&"n"==t[1]&&(f5(r)||f5(n)))!function(e,t,n,r){r.handleEvent||(r.handleEvent=t=>r[t.type].call(e,t));if(n){if(!r[t]){const i=n.capture||n.once||n.passive?Object.assign({},n):null;e.addEventListener(t,r,i)}r[t]=n}else r[t]&&(e.removeEventListener(t,r),delete r[t])}(e,t.slice(2),r,o);else if("ref"==t)r&&(f5(r)?r(e):r.current=e);else if("style"==t){const{style:t}=e;r=r||"";const i=g5(n=n||""),o=g5(r);if(i)for(const e in n){if(!o)break;!(e in r)&&i4(t,e,null)}if(o)for(const e in r){const o=r[e];i&&n[e]===o||i4(t,e,o)}else t.cssText=r}else{const o="$"==t[0]?t.slice(1):t;o===t&&(!i&&!q5[t]&&t in e||f5(r)||f5(n))?e[t]=null==r?"":r:null==r?e.removeAttribute(o):e.setAttribute(o,g5(r)?JSON.stringify(r):r)}}function i4(e,t,n){let r="setProperty";null==n&&(r="removeProperty",n=null),~t.indexOf("-")?e[r](t,n):e[t]=n}const o4=t4("host",{style:"display: contents"});(e=>{const t=E5(({value:e})=>(((e,t)=>{const n=u5(),r=c5();L5(()=>y5(n.current,"ConnectContext",t=>{t.composedPath().at(0)!==t.currentTarget&&e===t.detail.id&&(t.stopPropagation(),t.detail.connect(r))}),[e]),r.current=t})(t,e),o4),{props:{value:{type:Object,value:()=>e}}});t.value=e})({dispatch(e,t){}});const a4=(e,t,n,r)=>{let i;t[0]=0;for(let o=1;o<t.length;o++){const a=t[o++],s=t[o]?(t[0]|=a?1:2,n[t[o++]]):t[++o];3===a?r[0]=s:4===a?r[1]=Object.assign(r[1]||{},s):5===a?(r[1]=r[1]||{})[t[++o]]=s:6===a?r[1][t[++o]]+=s+"":a?(i=e.apply(s,a4(e,s,n,["",null])),r.push(i),s[0]?t[0]|=2:(t[o-2]=0,t[o]=i)):r.push(s)}return r},s4=new Map;function l4(e){let t=s4;return t=a4(t4,t.get(e)||(t.set(e,t=function(e){let t,n,r=1,i="",o="",a=[0];const s=e=>{1===r&&(e||(i=i.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?a.push(0,e,i):3===r&&(e||i)?(a.push(3,e,i),r=2):2===r&&"..."===i&&e?a.push(4,e,0):2===r&&i&&!e?a.push(5,0,!0,i):r>=5&&((i||!e&&5===r)&&(a.push(r,0,i,n),r=6),e&&(a.push(r,e,0,n),r=6)),i=""};for(let l=0;l<e.length;l++){l&&(1===r&&s(),s(l));for(let c=0;c<e[l].length;c++)t=e[l][c],1===r?"<"===t?(s(),a=[a],r=3):i+=t:4===r?"--"===i&&">"===t?(r=1,i=""):i=t+i[0]:o?t===o?o="":i+=t:'"'===t||"'"===t?o=t:">"===t?(s(),r=1):r&&("="===t?(r=5,n=i,i=""):"/"===t&&(r<5||">"===e[l][c+1])?(s(),3===r&&(a=a[0]),r=a,(a=a[0]).push(2,0,r),r=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(s(),r=2):i+=t),3===r&&"!--"===i&&(r=4,a=a[0])}return s(),a}(e)),t),arguments,[]),t.length>1?t:t[0]}var c4,u4;var h4=function(){if(u4)return c4;u4=1;var e=/^\s+|\s+$/g,t=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,r=/^0o[0-7]+$/i,i=parseInt,o="object"==typeof nk&&nk&&nk.Object===Object&&nk,a="object"==typeof self&&self&&self.Object===Object&&self,s=o||a||Function("return this")(),l=Object.prototype.toString,c=Math.max,u=Math.min,h=function(){return s.Date.now()};function d(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function p(o){if("number"==typeof o)return o;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==l.call(e)}(o))return NaN;if(d(o)){var a="function"==typeof o.valueOf?o.valueOf():o;o=d(a)?a+"":a}if("string"!=typeof o)return 0===o?o:+o;o=o.replace(e,"");var s=n.test(o);return s||r.test(o)?i(o.slice(2),s?2:8):t.test(o)?NaN:+o}return c4=function(e,t,n){var r,i,o,a,s,l,f=0,g=!1,m=!1,O=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function A(t){var n=r,o=i;return r=i=void 0,f=t,a=e.apply(o,n)}function y(e){var n=e-l;return void 0===l||n>=t||n<0||m&&e-f>=o}function v(){var e=h();if(y(e))return b(e);s=setTimeout(v,function(e){var n=t-(e-l);return m?u(n,o-(e-f)):n}(e))}function b(e){return s=void 0,O&&r?A(e):(r=i=void 0,a)}function x(){var e=h(),n=y(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return function(e){return f=e,s=setTimeout(v,t),g?A(e):a}(l);if(m)return s=setTimeout(v,t),A(l)}return void 0===s&&(s=setTimeout(v,t)),a}return t=p(t)||0,d(n)&&(g=!!n.leading,o=(m="maxWait"in n)?c(p(n.maxWait)||0,t):o,O="trailing"in n?!!n.trailing:O),x.cancel=function(){void 0!==s&&clearTimeout(s),f=0,r=l=i=s=void 0},x.flush=function(){return void 0===s?a:b(h())},x},c4}();const d4=rk(h4);var p4,f4,g4,m4,O4,A4,y4,v4,b4,x4=e=>{throw TypeError(e)},w4=(e,t,n)=>t.has(e)||x4("Cannot "+n),k4=(e,t,n)=>(w4(e,t,"read from private field"),n?n.call(e):t.get(e)),S4=(e,t,n)=>t.has(e)?x4("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),T4=(e,t,n,r)=>(w4(e,t,"write to private field"),t.set(e,n),n);let $4=class{constructor(e){S4(this,v4),S4(this,p4),S4(this,f4),S4(this,g4),S4(this,m4),S4(this,O4),S4(this,A4),S4(this,y4),T4(this,O4,!1),this.onShow=()=>{},this.onHide=()=>{},T4(this,y4,(e,t)=>{var n;const{state:r,composing:i}=e,{selection:o,doc:a}=r,{ranges:s}=o,l=Math.min(...s.map(e=>e.$from.pos)),c=Math.max(...s.map(e=>e.$to.pos)),u=t&&t.doc.eq(a)&&t.selection.eq(o);k4(this,O4)||(null==(n=e.dom.parentElement)||n.appendChild(this.element),T4(this,O4,!0)),i||u||(k4(this,f4).call(this,e,t)?(cw({getBoundingClientRect:()=>Yq(e,l,c)},this.element,{placement:"top",middleware:[sw(),ow(k4(this,A4)),aw(),...k4(this,g4)]}).then(({x:e,y:t})=>{Object.assign(this.element.style,{left:`${e}px`,top:`${t}px`})}),this.show()):this.hide())}),this.update=(e,t)=>{d4(k4(this,y4),k4(this,p4))(e,t)},this.destroy=()=>{},this.show=e=>{this.element.dataset.show="true",e&&cw(e,this.element,{placement:"top",middleware:[sw(),ow(k4(this,A4))],...k4(this,m4)}).then(({x:e,y:t})=>{Object.assign(this.element.style,{left:`${e}px`,top:`${t}px`})}),this.onShow()},this.hide=()=>{"false"!==this.element.dataset.show&&(this.element.dataset.show="false",this.onHide())},this.element=e.content,T4(this,p4,e.debounce??200),T4(this,f4,e.shouldShow??((e,t,n)=>(w4(e,t,"access private method"),n))(this,v4,b4)),T4(this,A4,e.offset),T4(this,g4,e.middleware??[]),T4(this,m4,e.floatingUIOptions??{}),this.element.dataset.show="false"}};function _4(e){const t=CG({},`${e}_TOOLTIP_SPEC`),n=TG(n=>{const r=n.get(t.key);return new lq({key:new hq(`${e}_TOOLTIP`),...r})}),r=[t,n];return r.key=t.key,r.pluginKey=n.key,t.meta={package:"@milkdown/plugin-tooltip",displayName:`Ctx<tooltipSpec>|${e}`},n.meta={package:"@milkdown/plugin-tooltip",displayName:`Prose<tooltip>|${e}`},r}function C4(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=C4(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Q4(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=C4(e))&&(r&&(r+=" "),r+=t);return r}p4=new WeakMap,f4=new WeakMap,g4=new WeakMap,m4=new WeakMap,O4=new WeakMap,A4=new WeakMap,y4=new WeakMap,v4=new WeakSet,b4=function(e){const{doc:t,selection:n}=e.state,{empty:r,from:i,to:o}=n,a=!t.textBetween(i,o).length&&e.state.selection instanceof jz,s=this.element.contains(document.activeElement),l=!e.hasFocus()&&!s,c=!e.editable;return!(l||r||a||c)};var P4=Object.defineProperty,E4=Object.getOwnPropertySymbols,R4=Object.prototype.hasOwnProperty,B4=Object.prototype.propertyIsEnumerable,I4=(e,t,n)=>t in e?P4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,L4=(e,t)=>{for(var n in t||(t={}))R4.call(t,n)&&I4(e,n,t[n]);if(E4)for(var n of E4(t))B4.call(t,n)&&I4(e,n,t[n]);return e};function D4(e,t){return Object.assign(e,{meta:L4({package:"@milkdown/components"},t)}),e}var M4=Object.defineProperty,N4=Object.getOwnPropertySymbols,X4=Object.prototype.hasOwnProperty,F4=Object.prototype.propertyIsEnumerable,U4=(e,t,n)=>t in e?M4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,z4=(e,t)=>{for(var n in t||(t={}))X4.call(t,n)&&U4(e,n,t[n]);if(N4)for(var n of N4(t))F4.call(t,n)&&U4(e,n,t[n]);return e};const q4=CG(z4({},{mode:"preview"}),"linkTooltipStateCtx");D4(q4,{displayName:"State<link-tooltip>",group:"LinkTooltip"});const V4=CG(z4({},{addLink:()=>{},editLink:()=>{},removeLink:()=>{}}),"linkTooltipAPICtx");D4(q4,{displayName:"API<link-tooltip>",group:"LinkTooltip"});const W4=CG(z4({},{linkIcon:()=>"🔗",editButton:()=>"✎",removeButton:()=>"⌫",confirmButton:()=>l4`Confirm ⏎`,onCopyLink:()=>{},inputPlaceholder:"Paste link..."}),"linkTooltipConfigCtx");D4(q4,{displayName:"Config<link-tooltip>",group:"LinkTooltip"});const j4=_4("LINK_PREVIEW");D4(j4[0],{displayName:"PreviewTooltipSpec<link-tooltip>",group:"LinkTooltip"}),D4(j4[1],{displayName:"PreviewTooltipPlugin<link-tooltip>",group:"LinkTooltip"});const Y4=_4("LINK_EDIT");function Z4(e,t){const n=customElements.get(e);null!=n||customElements.define(e,t)}D4(Y4[0],{displayName:"EditTooltipSpec<link-tooltip>",group:"LinkTooltip"}),D4(Y4[1],{displayName:"EditTooltipPlugin<link-tooltip>",group:"LinkTooltip"});const G4=({config:e,src:t,onEdit:n,onRemove:r})=>l4` |
| 138 |
function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(e){var n,r,i,o,a,s,l,c=t,u=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],d={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},p={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},f=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],g=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),m=!1,O=0;this.__bidiEngine__={};var A=function(e){var t=e.charCodeAt(),n=t>>8,r=p[n];return void 0!==r?c[256*r+(255&t)]:252===n||253===n?"AL":g.test(n)?"L":8===n?"R":"N"},y=function(e){for(var t,n=0;n<e.length;n++){if("L"===(t=A(e.charAt(n))))return!1;if("R"===t)return!0}return!1},v=function(e,t,a,s){var l,c,u,h,d=t[s];switch(d){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":m=!1;break;case"N":case"AN":break;case"EN":m&&(d="AN");break;case"AL":m=!0,d="R";break;case"WS":case"BN":d="N";break;case"CS":s<1||s+1>=t.length||"EN"!==(l=a[s-1])&&"AN"!==l||"EN"!==(c=t[s+1])&&"AN"!==c?d="N":m&&(c="AN"),d=c===l?c:"N";break;case"ES":d="EN"===(l=s>0?a[s-1]:"B")&&s+1<t.length&&"EN"===t[s+1]?"EN":"N";break;case"ET":if(s>0&&"EN"===a[s-1]){d="EN";break}if(m){d="N";break}for(u=s+1,h=t.length;u<h&&"ET"===t[u];)u++;d=u<h&&"EN"===t[u]?"EN":"N";break;case"NSM":if(i&&!o){for(h=t.length,u=s+1;u<h&&"NSM"===t[u];)u++;if(u<h){var p=e[s],f=p>=1425&&p<=2303||64286===p;if(l=t[u],f&&("R"===l||"AL"===l)){d="R";break}}}d=s<1||"B"===(l=t[s-1])?"N":a[s-1];break;case"B":m=!1,n=!0,d=O;break;case"S":r=!0,d="N"}return d},b=function(e,t,n){var r=e.split("");return n&&x(r,n,{hiLevel:O}),r.reverse(),t&&t.reverse(),r.join("")},x=function(e,t,i){var o,a,s,l,c,p=-1,f=e.length,g=0,y=[],b=O?h:u,x=[];for(m=!1,n=!1,r=!1,a=0;a<f;a++)x[a]=A(e[a]);for(s=0;s<f;s++){if(c=g,y[s]=v(e,x,y,s),o=240&(g=b[c][d[y[s]]]),g&=15,t[s]=l=b[g][5],o>0)if(16===o){for(a=p;a<s;a++)t[a]=1;p=-1}else p=-1;if(b[g][6])-1===p&&(p=s);else if(p>-1){for(a=p;a<s;a++)t[a]=l;p=-1}"B"===x[s]&&(t[s]=0),i.hiLevel|=l}r&&function(e,t,n){for(var r=0;r<n;r++)if("S"===e[r]){t[r]=O;for(var i=r-1;i>=0&&"WS"===e[i];i--)t[i]=O}}(x,t,f)},w=function(e,t,r,i,o){if(!(o.hiLevel<e)){if(1===e&&1===O&&!n)return t.reverse(),void(r&&r.reverse());for(var a,s,l,c,u=t.length,h=0;h<u;){if(i[h]>=e){for(l=h+1;l<u&&i[l]>=e;)l++;for(c=h,s=l-1;c<s;c++,s--)a=t[c],t[c]=t[s],t[s]=a,r&&(a=r[c],r[c]=r[s],r[s]=a);h=l}h++}}},k=function(e,t,n){var r=e.split(""),i={hiLevel:O};return n||(n=[]),x(r,n,i),function(e,t,n){if(0!==n.hiLevel&&l)for(var r,i=0;i<e.length;i++)1===t[i]&&(r=f.indexOf(e[i]))>=0&&(e[i]=f[r+1])}(r,n,i),w(2,r,t,n,i),w(1,r,t,n,i),r.join("")};return this.__bidiEngine__.doBidiReorder=function(e,t,n){if(function(e,t){if(t)for(var n=0;n<e.length;n++)t[n]=n;void 0===o&&(o=y(e)),void 0===s&&(s=y(e))}(e,t),i||!a||s)if(i&&a&&o^s)O=o?1:0,e=b(e,t,n);else if(!i&&a&&s)O=o?1:0,e=k(e,t,n),e=b(e,t);else if(!i||o||a||s){if(i&&!a&&o^s)e=b(e,t),o?(O=0,e=k(e,t,n)):(O=1,e=k(e,t,n),e=b(e,t));else if(i&&o&&!a&&s)O=1,e=k(e,t,n),e=b(e,t);else if(!i&&!a&&o^s){var r=l;o?(O=1,e=k(e,t,n),O=0,l=!1,e=k(e,t,n),l=r):(O=0,e=k(e,t,n),e=b(e,t),O=1,l=!1,e=k(e,t,n),l=r,e=b(e,t))}}else O=0,e=k(e,t,n);else O=o?1:0,e=k(e,t,n);return e},this.__bidiEngine__.setOptions=function(e){e&&(i=e.isInputVisual,a=e.isOutputVisual,o=e.isInputRtl,s=e.isOutputRtl,l=e.isSymmetricSwapping)},this.__bidiEngine__.setOptions(e),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(e){var t=e.text;e.x,e.y;var r=e.options||{};e.mutex,r.lang;var i=[];if(r.isInputVisual="boolean"!=typeof r.isInputVisual||r.isInputVisual,n.setOptions(r),"[object Array]"===Object.prototype.toString.call(t)){var o=0;for(i=[],o=0;o<t.length;o+=1)"[object Array]"===Object.prototype.toString.call(t[o])?i.push([n.doBidiReorder(t[o][0]),t[o][1],t[o][2]]):i.push([n.doBidiReorder(t[o])]);e.text=i}else e.text=n.doBidiReorder(t);n.setOptions({isInputVisual:!0})}])}(ace),ace.API.TTFFont=function(){function e(e){var t;if(this.rawData=e,t=this.contents=new Rue(e),this.contents.pos=4,"ttcf"===t.readString(4))throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new Kue(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new Bue(this.contents),this.head=new Due(this),this.name=new que(this),this.cmap=new Nue(this),this.toUnicode={},this.hhea=new Xue(this),this.maxp=new Vue(this),this.hmtx=new Wue(this),this.post=new Uue(this),this.os2=new Fue(this),this.loca=new Hue(this),this.glyf=new Yue(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var e,t,n,r,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var t,n,r,i;for(i=[],t=0,n=(r=this.bbox).length;t<n;t++)e=r[t],i.push(Math.round(e*this.scaleFactor));return i}.call(this),this.stemV=0,this.post.exists?(n=255&(r=this.post.italic_angle),32768&(t=r>>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(i=this.familyClass)||2===i||3===i||4===i||5===i||7===i,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(e){var t;return(null!=(t=this.cmap.unicode)?t.codeMap[e]:void 0)||0},e.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},e.prototype.widthOfString=function(e,t,n){var r,i,o,a;for(o=0,i=0,a=(e=""+e).length;0<=a?i<a:i>a;i=0<=a?++i:--i)r=e.charCodeAt(i),o+=this.widthOfGlyph(this.characterToGlyph(r))+n*(1e3/t)||0;return o*(t/1e3)},e.prototype.lineHeight=function(e,t){var n;return null==t&&(t=!1),n=t?this.lineGap:0,(this.ascender+n-this.decender)/1e3*e},e}();var Eue,Rue=function(){function e(e){this.data=e??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(e){return this.data[this.pos++]=e},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},e.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},e.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},e.prototype.readString=function(e){var t,n;for(n=[],t=0;0<=e?t<e:t>e;t=0<=e?++t:--t)n[t]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(e){var t,n,r;for(r=[],t=0,n=e.length;0<=n?t<n:t>n;t=0<=n?++t:--t)r.push(this.writeByte(e.charCodeAt(t)));return r},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(e){return this.writeInt16(e)},e.prototype.readLongLong=function(){var e,t,n,r,i,o,a,s;return e=this.readByte(),t=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),o=this.readByte(),a=this.readByte(),s=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^i)+65536*(255^o)+256*(255^a)+(255^s)+1):72057594037927940*e+281474976710656*t+1099511627776*n+4294967296*r+16777216*i+65536*o+256*a+s},e.prototype.writeLongLong=function(e){var t,n;return t=Math.floor(e/4294967296),n=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(e){return this.writeInt32(e)},e.prototype.read=function(e){var t,n;for(t=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)t.push(this.readByte());return t},e.prototype.write=function(e){var t,n,r,i;for(i=[],n=0,r=e.length;n<r;n++)t=e[n],i.push(this.writeByte(t));return i},e}(),Bue=function(){var e;function t(e){var t,n,r;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},n=0,r=this.tableCount;0<=r?n<r:n>r;n=0<=r?++n:--n)t={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[t.tag]=t}return t.prototype.encode=function(t){var n,r,i,o,a,s,l,c,u,h,d,p,f;for(f in d=Object.keys(t).length,s=Math.log(2),u=16*Math.floor(Math.log(d)/s),o=Math.floor(u/s),c=16*d-u,(r=new Rue).writeInt(this.scalarType),r.writeShort(d),r.writeShort(u),r.writeShort(o),r.writeShort(c),i=16*d,l=r.pos+i,a=null,p=[],t)for(h=t[f],r.writeString(f),r.writeInt(e(h)),r.writeInt(l),r.writeInt(h.length),p=p.concat(h),"head"===f&&(a=l),l+=h.length;l%4;)p.push(0),l++;return r.write(p),n=2981146554-e(r.data),r.pos=a+8,r.writeUInt32(n),r.data},e=function(e){var t,n,r,i;for(e=jue.call(e);e.length%4;)e.push(0);for(r=new Rue(e),n=0,t=0,i=e.length;t<i;t=t+=4)n+=r.readUInt32();return 4294967295&n},t}(),Iue={}.hasOwnProperty,Lue=function(e,t){for(var n in t)Iue.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e};Eue=function(){function e(e){var t;this.file=e,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var Due=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Lue(e,Eue),e.prototype.tag="head",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},e.prototype.encode=function(e){var t;return(t=new Rue).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(e),t.writeShort(this.glyphDataFormat),t.data},e}(),Mue=function(){function e(e,t){var n,r,i,o,a,s,l,c,u,h,d,p,f,g,m,O,A;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=t+e.readInt(),u=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(s=0;s<256;++s)this.codeMap[s]=e.readByte();break;case 4:for(d=e.readUInt16(),h=d/2,e.pos+=6,i=function(){var t,n;for(n=[],s=t=0;0<=h?t<h:t>h;s=0<=h?++t:--t)n.push(e.readUInt16());return n}(),e.pos+=2,f=function(){var t,n;for(n=[],s=t=0;0<=h?t<h:t>h;s=0<=h?++t:--t)n.push(e.readUInt16());return n}(),l=function(){var t,n;for(n=[],s=t=0;0<=h?t<h:t>h;s=0<=h?++t:--t)n.push(e.readUInt16());return n}(),c=function(){var t,n;for(n=[],s=t=0;0<=h?t<h:t>h;s=0<=h?++t:--t)n.push(e.readUInt16());return n}(),r=(this.length-e.pos+this.offset)/2,a=function(){var t,n;for(n=[],s=t=0;0<=r?t<r:t>r;s=0<=r?++t:--t)n.push(e.readUInt16());return n}(),s=m=0,A=i.length;m<A;s=++m)for(g=i[s],n=O=p=f[s];p<=g?O<=g:O>=g;n=p<=g?++O:--O)0===c[s]?o=n+l[s]:0!==(o=a[c[s]/2+(n-p)-(h-s)]||0)&&(o+=l[s]),this.codeMap[n]=65535&o}e.pos=u}return e.encode=function(e,t){var n,r,i,o,a,s,l,c,u,h,d,p,f,g,m,O,A,y,v,b,x,w,k,S,T,$,_,C,Q,P,E,R,B,I,L,D,M,N,X,F,U,z,q,V,W,j;switch(C=new Rue,o=Object.keys(e).sort(function(e,t){return e-t}),t){case"macroman":for(f=0,g=function(){var e=[];for(p=0;p<256;++p)e.push(0);return e}(),O={0:0},i={},Q=0,B=o.length;Q<B;Q++)null==O[q=e[r=o[Q]]]&&(O[q]=++f),i[r]={old:e[r],new:O[e[r]]},g[r]=O[e[r]];return C.writeUInt16(1),C.writeUInt16(0),C.writeUInt32(12),C.writeUInt16(0),C.writeUInt16(262),C.writeUInt16(0),C.write(g),{charMap:i,subtable:C.data,maxGlyphID:f+1};case"unicode":for($=[],u=[],A=0,O={},n={},m=l=null,P=0,I=o.length;P<I;P++)null==O[v=e[r=o[P]]]&&(O[v]=++A),n[r]={old:v,new:O[v]},a=O[v]-r,null!=m&&a===l||(m&&u.push(m),$.push(r),l=a),m=r;for(m&&u.push(m),u.push(65535),$.push(65535),S=2*(k=$.length),w=2*Math.pow(Math.log(k)/Math.LN2,2),h=Math.log(w/2)/Math.LN2,x=2*k-w,s=[],b=[],d=[],p=E=0,L=$.length;E<L;p=++E){if(T=$[p],c=u[p],65535===T){s.push(0),b.push(0);break}if(T-(_=n[T].new)>=32768)for(s.push(0),b.push(2*(d.length+k-p)),r=R=T;T<=c?R<=c:R>=c;r=T<=c?++R:--R)d.push(n[r].new);else s.push(_-T),b.push(0)}for(C.writeUInt16(3),C.writeUInt16(1),C.writeUInt32(12),C.writeUInt16(4),C.writeUInt16(16+8*k+2*d.length),C.writeUInt16(0),C.writeUInt16(S),C.writeUInt16(w),C.writeUInt16(h),C.writeUInt16(x),U=0,D=u.length;U<D;U++)r=u[U],C.writeUInt16(r);for(C.writeUInt16(0),z=0,M=$.length;z<M;z++)r=$[z],C.writeUInt16(r);for(V=0,N=s.length;V<N;V++)a=s[V],C.writeUInt16(a);for(W=0,X=b.length;W<X;W++)y=b[W],C.writeUInt16(y);for(j=0,F=d.length;j<F;j++)f=d[j],C.writeUInt16(f);return{charMap:n,subtable:C.data,maxGlyphID:A+1}}},e}(),Nue=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Lue(e,Eue),e.prototype.tag="cmap",e.prototype.parse=function(e){var t,n,r;for(e.pos=this.offset,this.version=e.readUInt16(),r=e.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=r?n<r:n>r;n=0<=r?++n:--n)t=new Mue(e,this.offset),this.tables.push(t),t.isUnicode&&null==this.unicode&&(this.unicode=t);return!0},e.encode=function(e,t){var n,r;return null==t&&(t="macroman"),n=Mue.encode(e,t),(r=new Rue).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},e}(),Xue=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Lue(e,Eue),e.prototype.tag="hhea",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},e}(),Fue=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Lue(e,Eue),e.prototype.tag="OS/2",e.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var t,n;for(n=[],t=0;t<10;++t)n.push(e.readByte());return n}(),this.charRange=function(){var t,n;for(n=[],t=0;t<4;++t)n.push(e.readInt());return n}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var t,n;for(n=[],t=0;t<2;t=++t)n.push(e.readInt());return n}(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},e}(),Uue=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Lue(e,Eue),e.prototype.tag="post",e.prototype.parse=function(e){var t,n,r;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:case 196608:break;case 131072:var i;for(n=e.readUInt16(),this.glyphNameIndex=[],i=0;0<=n?i<n:i>n;i=0<=n?++i:--i)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],r=[];e.pos<this.offset+this.length;)t=e.readByte(),r.push(this.names.push(e.readString(t)));return r;case 151552:return n=e.readUInt16(),this.offsets=e.read(n);case 262144:return this.map=function(){var t,n,r;for(r=[],i=t=0,n=this.file.maxp.numGlyphs;0<=n?t<n:t>n;i=0<=n?++t:--t)r.push(e.readUInt32());return r}.call(this)}},e}(),zue=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},que=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Lue(e,Eue),e.prototype.tag="name",e.prototype.parse=function(e){var t,n,r,i,o,a,s,l,c,u,h;for(e.pos=this.offset,e.readShort(),t=e.readShort(),a=e.readShort(),n=[],i=0;0<=t?i<t:i>t;i=0<=t?++i:--i)n.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+a+e.readShort()});for(s={},i=c=0,u=n.length;c<u;i=++c)r=n[i],e.pos=r.offset,l=e.readString(r.length),o=new zue(l,r),null==s[h=r.nameID]&&(s[h]=[]),s[r.nameID].push(o);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},e}(),Vue=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Lue(e,Eue),e.prototype.tag="maxp",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},e}(),Wue=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Lue(e,Eue),e.prototype.tag="hmtx",e.prototype.parse=function(e){var t,n,r,i,o,a,s;for(e.pos=this.offset,this.metrics=[],t=0,a=this.file.hhea.numberOfMetrics;0<=a?t<a:t>a;t=0<=a?++t:--t)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var n,i;for(i=[],t=n=0;0<=r?n<r:n>r;t=0<=r?++n:--n)i.push(e.readInt16());return i}(),this.widths=function(){var e,t,n,r;for(r=[],e=0,t=(n=this.metrics).length;e<t;e++)i=n[e],r.push(i.advance);return r}.call(this),n=this.widths[this.widths.length-1],s=[],t=o=0;0<=r?o<r:o>r;t=0<=r?++o:--o)s.push(this.widths.push(n));return s},e.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},e}(),jue=[].slice,Yue=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Lue(e,Eue),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(e){var t,n,r,i,o,a,s,l,c,u;return e in this.cache?this.cache[e]:(i=this.file.loca,t=this.file.contents,n=i.indexOf(e),0===(r=i.lengthOf(e))?this.cache[e]=null:(t.pos=this.offset+n,o=(a=new Rue(t.read(r))).readShort(),l=a.readShort(),u=a.readShort(),s=a.readShort(),c=a.readShort(),this.cache[e]=-1===o?new Gue(a,l,u,s,c):new Zue(a,o,l,u,s,c),this.cache[e]))},e.prototype.encode=function(e,t,n){var r,i,o,a,s;for(o=[],i=[],a=0,s=t.length;a<s;a++)r=e[t[a]],i.push(o.length),r&&(o=o.concat(r.encode(n)));return i.push(o.length),{table:o,offsets:i}},e}(),Zue=function(){function e(e,t,n,r,i,o){this.raw=e,this.numberOfContours=t,this.xMin=n,this.yMin=r,this.xMax=i,this.yMax=o,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),Gue=function(){function e(e,t,n,r,i){var o,a;for(this.raw=e,this.xMin=t,this.yMin=n,this.xMax=r,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;a=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readUInt16()),32&a;)o.pos+=1&a?4:2,128&a?o.pos+=8:64&a?o.pos+=4:8&a&&(o.pos+=2)}return e.prototype.encode=function(){var e,t,n;for(t=new Rue(jue.call(this.raw.data)),e=0,n=this.glyphIDs.length;e<n;++e)t.pos=this.glyphOffsets[e];return t.data},e}(),Hue=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Lue(e,Eue),e.prototype.tag="loca",e.prototype.parse=function(e){var t,n;return e.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=0===t?function(){var t,r;for(r=[],n=0,t=this.length;n<t;n+=2)r.push(2*e.readUInt16());return r}.call(this):function(){var t,r;for(r=[],n=0,t=this.length;n<t;n+=4)r.push(e.readUInt32());return r}.call(this)},e.prototype.indexOf=function(e){return this.offsets[e]},e.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},e.prototype.encode=function(e,t){for(var n=new Uint32Array(this.offsets.length),r=0,i=0,o=0;o<n.length;++o)if(n[o]=r,i<t.length&&t[i]==o){++i,n[o]=r;var a=this.offsets[o],s=this.offsets[o+1]-a;s>0&&(r+=s)}for(var l=new Array(4*n.length),c=0;c<n.length;++c)l[4*c+3]=255&n[c],l[4*c+2]=(65280&n[c])>>8,l[4*c+1]=(16711680&n[c])>>16,l[4*c]=(4278190080&n[c])>>24;return l},e}(),Kue=function(){function e(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var e,t,n,r,i;for(t in r=this.font.cmap.tables[0].codeMap,e={},i=this.subset)n=i[t],e[t]=r[n];return e},e.prototype.glyphsFor=function(e){var t,n,r,i,o,a,s;for(r={},o=0,a=e.length;o<a;o++)r[i=e[o]]=this.font.glyf.glyphFor(i);for(i in t=[],r)null!=(n=r[i])&&n.compound&&t.push.apply(t,n.glyphIDs);if(t.length>0)for(i in s=this.glyphsFor(t))n=s[i],r[i]=n;return r},e.prototype.encode=function(e,t){var n,r,i,o,a,s,l,c,u,h,d,p,f,g,m;for(r in n=Nue.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(e),d={0:0},m=n.charMap)d[(s=m[r]).old]=s.new;for(p in h=n.maxGlyphID,o)p in d||(d[p]=h++);return c=function(e){var t,n;for(t in n={},e)n[e[t]]=t;return n}(d),u=Object.keys(c).sort(function(e,t){return e-t}),f=function(){var e,t,n;for(n=[],e=0,t=u.length;e<t;e++)a=u[e],n.push(c[a]);return n}(),i=this.font.glyf.encode(o,f,d),l=this.font.loca.encode(i.offsets,f),g={cmap:this.font.cmap.raw(),glyf:i.table,loca:l,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(g["OS/2"]=this.font.os2.raw()),this.font.directory.encode(g)},e}();ace.API.PDFObject=function(){var e;function t(){}return e=function(e,t){return(Array(t+1).join("0")+e).slice(-t)},t.convert=function(n){var r,i,o,a;if(Array.isArray(n))return"["+function(){var e,i,o;for(o=[],e=0,i=n.length;e<i;e++)r=n[e],o.push(t.convert(r));return o}().join(" ")+"]";if("string"==typeof n)return"/"+n;if(null!=n&&n.isString)return"("+n+")";if(n instanceof Date)return"(D:"+e(n.getUTCFullYear(),4)+e(n.getUTCMonth(),2)+e(n.getUTCDate(),2)+e(n.getUTCHours(),2)+e(n.getUTCMinutes(),2)+e(n.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(n)){for(i in o=["<<"],n)a=n[i],o.push("/"+i+" "+t.convert(a));return o.push(">>"),o.join("\n")}return""+n},t}();var Jue=function(e,t){return Jue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Jue(e,t)};function ehe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Jue(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var the=function(){return the=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},the.apply(this,arguments)};function nhe(e,t,n,r){return new(n||(n=Promise))(function(t,i){function o(e){try{s(r.next(e))}catch(t){i(t)}}function a(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){e.done?t(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(o,a)}s((r=r.apply(e,[])).next())})}function rhe(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}for(var ihe=function(){function e(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r}return e.prototype.add=function(t,n,r,i){return new e(this.left+t,this.top+n,this.width+r,this.height+i)},e.fromClientRect=function(t,n){return new e(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height)},e.fromDOMRectList=function(t,n){var r=Array.from(n).find(function(e){return 0!==e.width});return r?new e(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),ohe=function(e,t){return ihe.fromClientRect(e,t.getBoundingClientRect())},ahe=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t},she=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var r=[],i=-1,o="";++i<n;){var a=e[i];a<=65535?r.push(a):(a-=65536,r.push(55296+(a>>10),a%1024+56320)),(i+1===n||r.length>16384)&&(o+=String.fromCharCode.apply(String,r),r.length=0)}return o},lhe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",che=typeof Uint8Array>"u"?[]:new Uint8Array(256),uhe=0;uhe<64;uhe++)che[lhe.charCodeAt(uhe)]=uhe;for(var hhe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dhe=typeof Uint8Array>"u"?[]:new Uint8Array(256),phe=0;phe<64;phe++)dhe[hhe.charCodeAt(phe)]=phe;for(var fhe=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},ghe=function(){function e(e,t,n,r,i,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=o}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>5])<<2)+(31&e),this.data[t];if(e<=65535)return t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[t];if(e<this.highStart)return t=2080+(e>>11),t=this.index[t],t+=e>>5&63,t=((t=this.index[t])<<2)+(31&e),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),mhe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ohe=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ahe=0;Ahe<64;Ahe++)Ohe[mhe.charCodeAt(Ahe)]=Ahe;var yhe=10,vhe=13,bhe=15,xhe=17,whe=18,khe=19,She=20,The=21,$he=22,_he=24,Che=25,Qhe=26,Phe=27,Ehe=28,Rhe=30,Bhe=32,Ihe=33,Lhe=34,Dhe=35,Mhe=37,Nhe=38,Xhe=39,Fhe=40,Uhe=42,zhe=[9001,65288],qhe="×",Vhe="÷",Whe=function(e){var t=function(e){var t,n,r,i,o,a=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(a):new Array(a),u=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<s;t+=4)n=dhe[e.charCodeAt(t)],r=dhe[e.charCodeAt(t+1)],i=dhe[e.charCodeAt(t+2)],o=dhe[e.charCodeAt(t+3)],u[l++]=n<<2|r>>4,u[l++]=(15&r)<<4|i>>2,u[l++]=(3&i)<<6|63&o;return c}(e),n=Array.isArray(t)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=4)n.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return n}(t):new Uint32Array(t),r=Array.isArray(t)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n.push(e[r+1]<<8|e[r]);return n}(t):new Uint16Array(t),i=fhe(r,12,n[4]/2),o=2===n[5]?fhe(r,(24+n[4])/2):function(e,t,n){return e.slice?e.slice(t,n):new Uint32Array(Array.prototype.slice.call(e,t,n))}(n,Math.ceil((24+n[4])/4));return new ghe(n[0],n[1],n[2],n[3],i,o)}("KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgE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sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB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AAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADA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gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8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AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AK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AeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcA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UAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAX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AKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4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AB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=="),jhe=[Rhe,36],Yhe=[1,2,3,5],Zhe=[yhe,8],Ghe=[Phe,Qhe],Hhe=Yhe.concat(Zhe),Khe=[Nhe,Xhe,Fhe,Lhe,Dhe],Jhe=[bhe,vhe],ede=function(e,t,n,r){var i=r[n];if(Array.isArray(e)?-1!==e.indexOf(i):e===i)for(var o=n;o<=r.length;){if((l=r[++o])===t)return!0;if(l!==yhe)break}if(i===yhe)for(o=n;o>0;){var a=r[--o];if(Array.isArray(e)?-1!==e.indexOf(a):e===a)for(var s=n;s<=r.length;){var l;if((l=r[++s])===t)return!0;if(l!==yhe)break}if(a!==yhe)break}return!1},tde=function(e,t){for(var n=e;n>=0;){var r=t[n];if(r!==yhe)return r;n--}return 0},nde=function(e,t,n,r,i){if(0===n[r])return qhe;var o=r-1;if(Array.isArray(i)&&!0===i[o])return qhe;var a=o-1,s=o+1,l=t[o],c=a>=0?t[a]:0,u=t[s];if(2===l&&3===u)return qhe;if(-1!==Yhe.indexOf(l))return"!";if(-1!==Yhe.indexOf(u)||-1!==Zhe.indexOf(u))return qhe;if(8===tde(o,t))return Vhe;if(11===Whe.get(e[o])||(l===Bhe||l===Ihe)&&11===Whe.get(e[s])||7===l||7===u||9===l||-1===[yhe,vhe,bhe].indexOf(l)&&9===u||-1!==[xhe,whe,khe,_he,Ehe].indexOf(u)||tde(o,t)===$he||ede(23,$he,o,t)||ede([xhe,whe],The,o,t)||ede(12,12,o,t))return qhe;if(l===yhe)return Vhe;if(23===l||23===u)return qhe;if(16===u||16===l)return Vhe;if(-1!==[vhe,bhe,The].indexOf(u)||14===l||36===c&&-1!==Jhe.indexOf(l)||l===Ehe&&36===u||u===She||-1!==jhe.indexOf(u)&&l===Che||-1!==jhe.indexOf(l)&&u===Che||l===Phe&&-1!==[Mhe,Bhe,Ihe].indexOf(u)||-1!==[Mhe,Bhe,Ihe].indexOf(l)&&u===Qhe||-1!==jhe.indexOf(l)&&-1!==Ghe.indexOf(u)||-1!==Ghe.indexOf(l)&&-1!==jhe.indexOf(u)||-1!==[Phe,Qhe].indexOf(l)&&(u===Che||-1!==[$he,bhe].indexOf(u)&&t[s+1]===Che)||-1!==[$he,bhe].indexOf(l)&&u===Che||l===Che&&-1!==[Che,Ehe,_he].indexOf(u))return qhe;if(-1!==[Che,Ehe,_he,xhe,whe].indexOf(u))for(var h=o;h>=0;){if((d=t[h])===Che)return qhe;if(-1===[Ehe,_he].indexOf(d))break;h--}if(-1!==[Phe,Qhe].indexOf(u))for(h=-1!==[xhe,whe].indexOf(l)?a:o;h>=0;){var d;if((d=t[h])===Che)return qhe;if(-1===[Ehe,_he].indexOf(d))break;h--}if(Nhe===l&&-1!==[Nhe,Xhe,Lhe,Dhe].indexOf(u)||-1!==[Xhe,Lhe].indexOf(l)&&-1!==[Xhe,Fhe].indexOf(u)||-1!==[Fhe,Dhe].indexOf(l)&&u===Fhe||-1!==Khe.indexOf(l)&&-1!==[She,Qhe].indexOf(u)||-1!==Khe.indexOf(u)&&l===Phe||-1!==jhe.indexOf(l)&&-1!==jhe.indexOf(u)||l===_he&&-1!==jhe.indexOf(u)||-1!==jhe.concat(Che).indexOf(l)&&u===$he&&-1===zhe.indexOf(e[s])||-1!==jhe.concat(Che).indexOf(u)&&l===whe)return qhe;if(41===l&&41===u){for(var p=n[o],f=1;p>0&&41===t[--p];)f++;if(f%2!=0)return qhe}return l===Bhe&&u===Ihe?qhe:Vhe},rde=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var n=function(e,t){void 0===t&&(t="strict");var n=[],r=[],i=[];return e.forEach(function(e,o){var a=Whe.get(e);if(a>50?(i.push(!0),a-=50):i.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return r.push(o),n.push(16);if(4===a||11===a){if(0===o)return r.push(o),n.push(Rhe);var s=n[o-1];return-1===Hhe.indexOf(s)?(r.push(r[o-1]),n.push(s)):(r.push(o),n.push(Rhe))}return r.push(o),31===a?n.push("strict"===t?The:Mhe):a===Uhe||29===a?n.push(Rhe):43===a?e>=131072&&e<=196605||e>=196608&&e<=262141?n.push(Mhe):n.push(Rhe):void n.push(a)}),[r,n,i]}(e,t.lineBreak),r=n[0],i=n[1],o=n[2];return("break-all"===t.wordBreak||"break-word"===t.wordBreak)&&(i=i.map(function(e){return-1!==[Che,Rhe,Uhe].indexOf(e)?Mhe:e})),[r,i,"keep-all"===t.wordBreak?o.map(function(t,n){return t&&e[n]>=19968&&e[n]<=40959}):void 0]},ide=function(){function e(e,t,n,r){this.codePoints=e,this.required="!"===t,this.start=n,this.end=r}return e.prototype.slice=function(){return she.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),ode=45,ade=43,sde=-1,lde=function(e){return e>=48&&e<=57},cde=function(e){return lde(e)||e>=65&&e<=70||e>=97&&e<=102},ude=function(e){return 10===e||9===e||32===e},hde=function(e){return function(e){return function(e){return e>=97&&e<=122}(e)||function(e){return e>=65&&e<=90}(e)}(e)||function(e){return e>=128}(e)||95===e},dde=function(e){return hde(e)||lde(e)||e===ode},pde=function(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e},fde=function(e,t){return 92===e&&10!==t},gde=function(e,t,n){return e===ode?hde(t)||fde(t,n):!!hde(e)||!(92!==e||!fde(e,t))},mde=function(e,t,n){return e===ade||e===ode?!!lde(t)||46===t&&lde(n):lde(46===e?t:e)},Ode=function(e){var t=0,n=1;(e[t]===ade||e[t]===ode)&&(e[t]===ode&&(n=-1),t++);for(var r=[];lde(e[t]);)r.push(e[t++]);var i=r.length?parseInt(she.apply(void 0,r),10):0;46===e[t]&&t++;for(var o=[];lde(e[t]);)o.push(e[t++]);var a=o.length,s=a?parseInt(she.apply(void 0,o),10):0;(69===e[t]||101===e[t])&&t++;var l=1;(e[t]===ade||e[t]===ode)&&(e[t]===ode&&(l=-1),t++);for(var c=[];lde(e[t]);)c.push(e[t++]);var u=c.length?parseInt(she.apply(void 0,c),10):0;return n*(i+s*Math.pow(10,-a))*Math.pow(10,l*u)},Ade={type:2},yde={type:3},vde={type:4},bde={type:13},xde={type:8},wde={type:21},kde={type:9},Sde={type:10},Tde={type:11},$de={type:12},_de={type:14},Cde={type:23},Qde={type:1},Pde={type:25},Ede={type:24},Rde={type:26},Bde={type:27},Ide={type:28},Lde={type:29},Dde={type:31},Mde={type:32},Nde=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(ahe(e))},e.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==Mde;)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(dde(t)||fde(n,r)){var i=gde(t,n,r)?2:1;return{type:5,value:this.consumeName(),flags:i}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),bde;break;case 39:return this.consumeStringToken(39);case 40:return Ade;case 41:return yde;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),_de;break;case ade:if(mde(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return vde;case ode:var o=e,a=this.peekCodePoint(0),s=this.peekCodePoint(1);if(mde(o,a,s))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(gde(o,a,s))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(a===ode&&62===s)return this.consumeCodePoint(),this.consumeCodePoint(),Ede;break;case 46:if(mde(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var l=this.consumeCodePoint();if(42===l&&47===(l=this.consumeCodePoint()))return this.consumeToken();if(l===sde)return this.consumeToken()}break;case 58:return Rde;case 59:return Bde;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===ode&&this.peekCodePoint(2)===ode)return this.consumeCodePoint(),this.consumeCodePoint(),Pde;break;case 64:var c=this.peekCodePoint(0),u=this.peekCodePoint(1),h=this.peekCodePoint(2);if(gde(c,u,h))return{type:7,value:this.consumeName()};break;case 91:return Ide;case 92:if(fde(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return Lde;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),xde;break;case 123:return Tde;case 125:return $de;case 117:case 85:var d=this.peekCodePoint(0),p=this.peekCodePoint(1);return d===ade&&(cde(p)||63===p)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),kde;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),wde;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Sde;break;case sde:return Mde}return ude(e)?(this.consumeWhiteSpace(),Dde):lde(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):hde(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:she(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();cde(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;63===t&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(she.apply(void 0,e.map(function(e){return 63===e?48:e})),16),end:parseInt(she.apply(void 0,e.map(function(e){return 63===e?70:e})),16)};var r=parseInt(she.apply(void 0,e),16);if(this.peekCodePoint(0)===ode&&cde(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var i=[];cde(t)&&i.length<6;)i.push(t),t=this.consumeCodePoint();return{type:30,start:r,end:parseInt(she.apply(void 0,i),16)}}return{type:30,start:r,end:r}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===sde)return{type:22,value:""};var t=this.peekCodePoint(0);if(39===t||34===t){var n=this.consumeStringToken(this.consumeCodePoint());return 0===n.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===sde||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),Cde)}for(;;){var r=this.consumeCodePoint();if(r===sde||41===r)return{type:22,value:she.apply(void 0,e)};if(ude(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===sde||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:she.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Cde);if(34===r||39===r||40===r||pde(r))return this.consumeBadUrlRemnants(),Cde;if(92===r){if(!fde(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),Cde;e.push(this.consumeEscapedCodePoint())}else e.push(r)}},e.prototype.consumeWhiteSpace=function(){for(;ude(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(41===e||e===sde)return;fde(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var t="";e>0;){var n=Math.min(5e4,e);t+=she.apply(void 0,this._value.splice(0,n)),e-=n}return this._value.shift(),t},e.prototype.consumeStringToken=function(e){for(var t="",n=0;;){var r=this._value[n];if(r===sde||void 0===r||r===e)return{type:0,value:t+=this.consumeStringSlice(n)};if(10===r)return this._value.splice(0,n),Qde;if(92===r){var i=this._value[n+1];i!==sde&&void 0!==i&&(10===i?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):fde(r,i)&&(t+=this.consumeStringSlice(n),t+=she(this.consumeEscapedCodePoint()),n=-1))}n++}},e.prototype.consumeNumber=function(){var e=[],t=4,n=this.peekCodePoint(0);for((n===ade||n===ode)&&e.push(this.consumeCodePoint());lde(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(46===n&&lde(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;lde(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((69===n||101===n)&&((r===ade||r===ode)&&lde(i)||lde(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;lde(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[Ode(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],r=this.peekCodePoint(0),i=this.peekCodePoint(1),o=this.peekCodePoint(2);return gde(r,i,o)?{type:15,number:t,flags:n,unit:this.consumeName()}:37===r?(this.consumeCodePoint(),{type:16,number:t,flags:n}):{type:17,number:t,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(cde(e)){for(var t=she(e);cde(this.peekCodePoint(0))&&t.length<6;)t+=she(this.consumeCodePoint());ude(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return 0===n||function(e){return e>=55296&&e<=57343}(n)||n>1114111?65533:n}return e===sde?65533:e},e.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(dde(t))e+=she(t);else{if(!fde(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=she(this.consumeEscapedCodePoint())}}},e}(),Xde=function(){function e(e){this._tokens=e}return e.create=function(t){var n=new Nde;return n.write(t),new e(n.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();31===e.type;)e=this.consumeToken();if(32===e.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(31===e.type);if(32===e.type)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(32===t.type)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(32===n.type||Zde(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(32===n.type||3===n.type)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?Mde:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),Fde=function(e){return 15===e.type},Ude=function(e){return 17===e.type},zde=function(e){return 20===e.type},qde=function(e){return 0===e.type},Vde=function(e,t){return zde(e)&&e.value===t},Wde=function(e){return 31!==e.type},jde=function(e){return 31!==e.type&&4!==e.type},Yde=function(e){var t=[],n=[];return e.forEach(function(e){if(4===e.type){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(n),void(n=[])}31!==e.type&&n.push(e)}),n.length&&t.push(n),t},Zde=function(e,t){return 11===t&&12===e.type||28===t&&29===e.type||2===t&&3===e.type},Gde=function(e){return 17===e.type||15===e.type},Hde=function(e){return 16===e.type||Gde(e)},Kde=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},Jde={type:17,number:0,flags:4},epe={type:16,number:50,flags:4},tpe={type:16,number:100,flags:4},npe=function(e,t,n){var r=e[0],i=e[1];return[rpe(r,t),rpe(typeof i<"u"?i:r,n)]},rpe=function(e,t){if(16===e.type)return e.number/100*t;if(Fde(e))switch(e.unit){case"rem":case"em":return 16*e.number;default:return e.number}return e.number},ipe="grad",ope="turn",ape=function(e,t){if(15===t.type)switch(t.unit){case"deg":return Math.PI*t.number/180;case ipe:return Math.PI/200*t.number;case"rad":return t.number;case ope:return 2*Math.PI*t.number}throw new Error("Unsupported angle type")},spe=function(e){return 15===e.type&&("deg"===e.unit||e.unit===ipe||"rad"===e.unit||e.unit===ope)},lpe=function(e){var t=e.filter(zde).map(function(e){return e.value}).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Jde,Jde];case"to top":case"bottom":return cpe(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Jde,tpe];case"to right":case"left":return cpe(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[tpe,tpe];case"to bottom":case"top":return cpe(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[tpe,Jde];case"to left":case"right":return cpe(270)}return 0},cpe=function(e){return Math.PI*e/180},upe=function(e,t){if(18===t.type){var n=Ape[t.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return n(e,t.values)}if(5===t.type){if(3===t.value.length){var r=t.value.substring(0,1),i=t.value.substring(1,2),o=t.value.substring(2,3);return ppe(parseInt(r+r,16),parseInt(i+i,16),parseInt(o+o,16),1)}if(4===t.value.length){r=t.value.substring(0,1),i=t.value.substring(1,2),o=t.value.substring(2,3);var a=t.value.substring(3,4);return ppe(parseInt(r+r,16),parseInt(i+i,16),parseInt(o+o,16),parseInt(a+a,16)/255)}if(6===t.value.length){r=t.value.substring(0,2),i=t.value.substring(2,4),o=t.value.substring(4,6);return ppe(parseInt(r,16),parseInt(i,16),parseInt(o,16),1)}if(8===t.value.length){r=t.value.substring(0,2),i=t.value.substring(2,4),o=t.value.substring(4,6),a=t.value.substring(6,8);return ppe(parseInt(r,16),parseInt(i,16),parseInt(o,16),parseInt(a,16)/255)}}if(20===t.type){var s=vpe[t.value.toUpperCase()];if(typeof s<"u")return s}return vpe.TRANSPARENT},hpe=function(e){return!(255&e)},dpe=function(e){var t=255&e,n=255&e>>8,r=255&e>>16,i=255&e>>24;return t<255?"rgba("+i+","+r+","+n+","+t/255+")":"rgb("+i+","+r+","+n+")"},ppe=function(e,t,n,r){return(e<<24|t<<16|n<<8|Math.round(255*r))>>>0},fpe=function(e,t){if(17===e.type)return e.number;if(16===e.type){var n=3===t?1:255;return 3===t?e.number/100*n:Math.round(e.number/100*n)}return 0},gpe=function(e,t){var n=t.filter(jde);if(3===n.length){var r=n.map(fpe),i=r[0],o=r[1],a=r[2];return ppe(i,o,a,1)}if(4===n.length){var s=n.map(fpe),l=(i=s[0],o=s[1],a=s[2],s[3]);return ppe(i,o,a,l)}return 0};function mpe(e,t,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(t-e)*n*6+e:n<.5?t:n<2/3?6*(t-e)*(2/3-n)+e:e}var Ope=function(e,t){var n=t.filter(jde),r=n[0],i=n[1],o=n[2],a=n[3],s=(17===r.type?cpe(r.number):ape(e,r))/(2*Math.PI),l=Hde(i)?i.number/100:0,c=Hde(o)?o.number/100:0,u=typeof a<"u"&&Hde(a)?rpe(a,1):1;if(0===l)return ppe(255*c,255*c,255*c,1);var h=c<=.5?c*(l+1):c+l-c*l,d=2*c-h,p=mpe(d,h,s+1/3),f=mpe(d,h,s),g=mpe(d,h,s-1/3);return ppe(255*p,255*f,255*g,u)},Ape={hsl:Ope,hsla:Ope,rgb:gpe,rgba:gpe},ype=function(e,t){return upe(e,Xde.create(t).parseComponentValue())},vpe={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},bpe={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(zde(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},xpe={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},wpe=function(e,t){var n=upe(e,t[0]),r=t[1];return r&&Hde(r)?{color:n,stop:r}:{color:n,stop:null}},kpe=function(e,t){var n=e[0],r=e[e.length-1];null===n.stop&&(n.stop=Jde),null===r.stop&&(r.stop=tpe);for(var i=[],o=0,a=0;a<e.length;a++){var s=e[a].stop;if(null!==s){var l=rpe(s,t);l>o?i.push(l):i.push(o),o=l}else i.push(null)}var c=null;for(a=0;a<i.length;a++){var u=i[a];if(null===u)null===c&&(c=a);else if(null!==c){for(var h=a-c,d=(u-i[c-1])/(h+1),p=1;p<=h;p++)i[c+p-1]=d*p;c=null}}return e.map(function(e,n){return{color:e.color,stop:Math.max(Math.min(1,i[n]/t),0)}})},Spe=function(e,t,n){var r="number"==typeof e?e:function(e,t,n){var r=t/2,i=n/2,o=rpe(e[0],t)-r,a=i-rpe(e[1],n);return(Math.atan2(a,o)+2*Math.PI)%(2*Math.PI)}(e,t,n),i=Math.abs(t*Math.sin(r))+Math.abs(n*Math.cos(r)),o=t/2,a=n/2,s=i/2,l=Math.sin(r-Math.PI/2)*s,c=Math.cos(r-Math.PI/2)*s;return[i,o-c,o+c,a-l,a+l]},Tpe=function(e,t){return Math.sqrt(e*e+t*t)},$pe=function(e,t,n,r,i){return[[0,0],[0,t],[e,0],[e,t]].reduce(function(e,t){var o=t[0],a=t[1],s=Tpe(n-o,r-a);return(i?s<e.optimumDistance:s>e.optimumDistance)?{optimumCorner:t,optimumDistance:s}:e},{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},_pe=function(e,t){var n=cpe(180),r=[];return Yde(t).forEach(function(t,i){if(0===i){var o=t[0];if(20===o.type&&-1!==["top","left","right","bottom"].indexOf(o.value))return void(n=lpe(t));if(spe(o))return void(n=(ape(e,o)+cpe(270))%cpe(360))}var a=wpe(e,t);r.push(a)}),{angle:n,stops:r,type:1}},Cpe="closest-side",Qpe="farthest-side",Ppe="closest-corner",Epe="farthest-corner",Rpe="circle",Bpe="ellipse",Ipe="cover",Lpe="contain",Dpe=function(e,t){var n=0,r=3,i=[],o=[];return Yde(t).forEach(function(t,a){var s=!0;if(0===a?s=t.reduce(function(e,t){if(zde(t))switch(t.value){case"center":return o.push(epe),!1;case"top":case"left":return o.push(Jde),!1;case"right":case"bottom":return o.push(tpe),!1}else if(Hde(t)||Gde(t))return o.push(t),!1;return e},s):1===a&&(s=t.reduce(function(e,t){if(zde(t))switch(t.value){case Rpe:return n=0,!1;case Bpe:return n=1,!1;case Lpe:case Cpe:return r=0,!1;case Qpe:return r=1,!1;case Ppe:return r=2,!1;case Ipe:case Epe:return r=3,!1}else if(Gde(t)||Hde(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e},s)),s){var l=wpe(e,t);i.push(l)}}),{size:r,shape:n,stops:i,position:o,type:2}},Mpe=function(e,t){if(22===t.type){var n={url:t.value,type:0};return e.cache.addImage(t.value),n}if(18===t.type){var r=Xpe[t.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return r(e,t.values)}throw new Error("Unsupported image type "+t.type)};var Npe,Xpe={"linear-gradient":function(e,t){var n=cpe(180),r=[];return Yde(t).forEach(function(t,i){if(0===i){var o=t[0];if(20===o.type&&"to"===o.value)return void(n=lpe(t));if(spe(o))return void(n=ape(e,o))}var a=wpe(e,t);r.push(a)}),{angle:n,stops:r,type:1}},"-moz-linear-gradient":_pe,"-ms-linear-gradient":_pe,"-o-linear-gradient":_pe,"-webkit-linear-gradient":_pe,"radial-gradient":function(e,t){var n=0,r=3,i=[],o=[];return Yde(t).forEach(function(t,a){var s=!0;if(0===a){var l=!1;s=t.reduce(function(e,t){if(l)if(zde(t))switch(t.value){case"center":return o.push(epe),e;case"top":case"left":return o.push(Jde),e;case"right":case"bottom":return o.push(tpe),e}else(Hde(t)||Gde(t))&&o.push(t);else if(zde(t))switch(t.value){case Rpe:return n=0,!1;case Bpe:return n=1,!1;case"at":return l=!0,!1;case Cpe:return r=0,!1;case Ipe:case Qpe:return r=1,!1;case Lpe:case Ppe:return r=2,!1;case Epe:return r=3,!1}else if(Gde(t)||Hde(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e},s)}if(s){var c=wpe(e,t);i.push(c)}}),{size:r,shape:n,stops:i,position:o,type:2}},"-moz-radial-gradient":Dpe,"-ms-radial-gradient":Dpe,"-o-radial-gradient":Dpe,"-webkit-radial-gradient":Dpe,"-webkit-gradient":function(e,t){var n=cpe(180),r=[],i=1;return Yde(t).forEach(function(t,n){var o=t[0];if(0===n){if(zde(o)&&"linear"===o.value)return void(i=1);if(zde(o)&&"radial"===o.value)return void(i=2)}if(18===o.type)if("from"===o.name){var a=upe(e,o.values[0]);r.push({stop:Jde,color:a})}else if("to"===o.name){a=upe(e,o.values[0]);r.push({stop:tpe,color:a})}else if("color-stop"===o.name){var s=o.values.filter(jde);if(2===s.length){a=upe(e,s[1]);var l=s[0];Ude(l)&&r.push({stop:{type:16,number:100*l.number,flags:l.flags},color:a})}}}),1===i?{angle:(n+cpe(180))%cpe(360),stops:r,type:i}:{size:3,shape:0,stops:r,position:[],type:i}}},Fpe={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t.filter(function(e){return jde(e)&&function(e){return!(20===e.type&&"none"===e.value||18===e.type&&!Xpe[e.name])}(e)}).map(function(t){return Mpe(e,t)})}},Upe={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(zde(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},zpe={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return Yde(t).map(function(e){return e.filter(Hde)}).map(Kde)}},qpe={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return Yde(t).map(function(e){return e.filter(zde).map(function(e){return e.value}).join(" ")}).map(Vpe)}},Vpe=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};!function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"}(Npe||(Npe={}));var Wpe,jpe={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return Yde(t).map(function(e){return e.filter(Ype)})}},Ype=function(e){return zde(e)||Hde(e)},Zpe=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Gpe=Zpe("top"),Hpe=Zpe("right"),Kpe=Zpe("bottom"),Jpe=Zpe("left"),efe=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return Kde(t.filter(Hde))}}},tfe=efe("top-left"),nfe=efe("top-right"),rfe=efe("bottom-right"),ife=efe("bottom-left"),ofe=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},afe=ofe("top"),sfe=ofe("right"),lfe=ofe("bottom"),cfe=ofe("left"),ufe=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Fde(t)?t.number:0}}},hfe=ufe("top"),dfe=ufe("right"),pfe=ufe("bottom"),ffe=ufe("left"),gfe={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},mfe={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){return"rtl"===t?1:0}},Ofe={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(zde).reduce(function(e,t){return e|Afe(t.value)},0)}},Afe=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},yfe={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},vfe={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return 20===t.type&&"normal"===t.value?0:17===t.type||15===t.type?t.number:0}};!function(e){e.NORMAL="normal",e.STRICT="strict"}(Wpe||(Wpe={}));var bfe,xfe={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){return"strict"===t?Wpe.STRICT:Wpe.NORMAL}},wfe={name:"line-height",initialValue:"normal",prefix:!1,type:4},kfe=function(e,t){return zde(e)&&"normal"===e.value?1.2*t:17===e.type?t*e.number:Hde(e)?rpe(e,t):t},Sfe={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return 20===t.type&&"none"===t.value?null:Mpe(e,t)}},Tfe={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){return"inside"===t?0:1}},$fe={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},_fe=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},Cfe=_fe("top"),Qfe=_fe("right"),Pfe=_fe("bottom"),Efe=_fe("left"),Rfe={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(zde).map(function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},Bfe={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){return"break-word"===t?"break-word":"normal"}},Ife=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Lfe=Ife("top"),Dfe=Ife("right"),Mfe=Ife("bottom"),Nfe=Ife("left"),Xfe={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},Ffe={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Ufe={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&Vde(t[0],"none")?[]:Yde(t).map(function(t){for(var n={color:vpe.TRANSPARENT,offsetX:Jde,offsetY:Jde,blur:Jde},r=0,i=0;i<t.length;i++){var o=t[i];Gde(o)?(0===r?n.offsetX=o:1===r?n.offsetY=o:n.blur=o,r++):n.color=upe(e,o)}return n})}},zfe={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},qfe={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,t){if(20===t.type&&"none"===t.value)return null;if(18===t.type){var n=Vfe[t.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return n(t.values)}return null}},Vfe={matrix:function(e){var t=e.filter(function(e){return 17===e.type}).map(function(e){return e.number});return 6===t.length?t:null},matrix3d:function(e){var t=e.filter(function(e){return 17===e.type}).map(function(e){return e.number}),n=t[0],r=t[1];t[2],t[3];var i=t[4],o=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var a=t[12],s=t[13];return t[14],t[15],16===t.length?[n,r,i,o,a,s]:null}},Wfe={type:16,number:50,flags:4},jfe=[Wfe,Wfe],Yfe={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var n=t.filter(Hde);return 2!==n.length?jfe:[n[0],n[1]]}},Zfe={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return 1;case"collapse":return 2;default:return 0}}};!function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"}(bfe||(bfe={}));for(var Gfe={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return bfe.BREAK_ALL;case"keep-all":return bfe.KEEP_ALL;default:return bfe.NORMAL}}},Hfe={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(20===t.type)return{auto:!0,order:0};if(Ude(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},Kfe=function(e,t){if(15===t.type)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")},Jfe={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return Ude(t)?t.number:1}},ege={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},tge={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(zde).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return 0!==e})}},nge={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var n=[],r=[];return t.forEach(function(e){switch(e.type){case 20:case 0:n.push(e.value);break;case 17:n.push(e.number.toString());break;case 4:r.push(n.join(" ")),n.length=0}}),n.length&&r.push(n.join(" ")),r.map(function(e){return-1===e.indexOf(" ")?e:"'"+e+"'"})}},rge={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},ige={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){if(Ude(t))return t.number;if(zde(t)){if("bold"===t.value)return 700;return 400}return 400}},oge={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(zde).map(function(e){return e.value})}},age={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},sge=function(e,t){return 0!==(e&t)},lge={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t}},cge={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(20===n.type&&"none"===n.value)return null;for(var r=[],i=t.filter(Wde),o=0;o<i.length;o++){var a=i[o],s=i[o+1];if(20===a.type){var l=s&&Ude(s)?s.number:1;r.push({counter:a.value,increment:l})}}return r}},uge={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return[];for(var n=[],r=t.filter(Wde),i=0;i<r.length;i++){var o=r[i],a=r[i+1];if(zde(o)&&"none"!==o.value){var s=a&&Ude(a)?a.number:0;n.push({counter:o.value,reset:s})}}return n}},hge={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,t){return t.filter(Fde).map(function(t){return Kfe(e,t)})}},dge={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(20===n.type&&"none"===n.value)return null;var r=[],i=t.filter(qde);if(i.length%2!=0)return null;for(var o=0;o<i.length;o+=2){var a=i[o].value,s=i[o+1].value;r.push({open:a,close:s})}return r}},pge=function(e,t,n){if(!e)return"";var r=e[Math.min(t,e.length-1)];return r?n?r.open:r.close:""},fge={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&Vde(t[0],"none")?[]:Yde(t).map(function(t){for(var n={color:255,offsetX:Jde,offsetY:Jde,blur:Jde,spread:Jde,inset:!1},r=0,i=0;i<t.length;i++){var o=t[i];Vde(o,"inset")?n.inset=!0:Gde(o)?(0===r?n.offsetX=o:1===r?n.offsetY=o:2===r?n.blur=o:n.spread=o,r++):n.color=upe(e,o)}return n})}},gge={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,t){var n=[];return t.filter(zde).forEach(function(e){switch(e.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2)}}),[0,1,2].forEach(function(e){-1===n.indexOf(e)&&n.push(e)}),n}},mge={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Oge={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Fde(t)?t.number:0}},Age=function(){function e(e,t){var n,r;this.animationDuration=bge(e,hge,t.animationDuration),this.backgroundClip=bge(e,bpe,t.backgroundClip),this.backgroundColor=bge(e,xpe,t.backgroundColor),this.backgroundImage=bge(e,Fpe,t.backgroundImage),this.backgroundOrigin=bge(e,Upe,t.backgroundOrigin),this.backgroundPosition=bge(e,zpe,t.backgroundPosition),this.backgroundRepeat=bge(e,qpe,t.backgroundRepeat),this.backgroundSize=bge(e,jpe,t.backgroundSize),this.borderTopColor=bge(e,Gpe,t.borderTopColor),this.borderRightColor=bge(e,Hpe,t.borderRightColor),this.borderBottomColor=bge(e,Kpe,t.borderBottomColor),this.borderLeftColor=bge(e,Jpe,t.borderLeftColor),this.borderTopLeftRadius=bge(e,tfe,t.borderTopLeftRadius),this.borderTopRightRadius=bge(e,nfe,t.borderTopRightRadius),this.borderBottomRightRadius=bge(e,rfe,t.borderBottomRightRadius),this.borderBottomLeftRadius=bge(e,ife,t.borderBottomLeftRadius),this.borderTopStyle=bge(e,afe,t.borderTopStyle),this.borderRightStyle=bge(e,sfe,t.borderRightStyle),this.borderBottomStyle=bge(e,lfe,t.borderBottomStyle),this.borderLeftStyle=bge(e,cfe,t.borderLeftStyle),this.borderTopWidth=bge(e,hfe,t.borderTopWidth),this.borderRightWidth=bge(e,dfe,t.borderRightWidth),this.borderBottomWidth=bge(e,pfe,t.borderBottomWidth),this.borderLeftWidth=bge(e,ffe,t.borderLeftWidth),this.boxShadow=bge(e,fge,t.boxShadow),this.color=bge(e,gfe,t.color),this.direction=bge(e,mfe,t.direction),this.display=bge(e,Ofe,t.display),this.float=bge(e,yfe,t.cssFloat),this.fontFamily=bge(e,nge,t.fontFamily),this.fontSize=bge(e,rge,t.fontSize),this.fontStyle=bge(e,age,t.fontStyle),this.fontVariant=bge(e,oge,t.fontVariant),this.fontWeight=bge(e,ige,t.fontWeight),this.letterSpacing=bge(e,vfe,t.letterSpacing),this.lineBreak=bge(e,xfe,t.lineBreak),this.lineHeight=bge(e,wfe,t.lineHeight),this.listStyleImage=bge(e,Sfe,t.listStyleImage),this.listStylePosition=bge(e,Tfe,t.listStylePosition),this.listStyleType=bge(e,$fe,t.listStyleType),this.marginTop=bge(e,Cfe,t.marginTop),this.marginRight=bge(e,Qfe,t.marginRight),this.marginBottom=bge(e,Pfe,t.marginBottom),this.marginLeft=bge(e,Efe,t.marginLeft),this.opacity=bge(e,Jfe,t.opacity);var i=bge(e,Rfe,t.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=bge(e,Bfe,t.overflowWrap),this.paddingTop=bge(e,Lfe,t.paddingTop),this.paddingRight=bge(e,Dfe,t.paddingRight),this.paddingBottom=bge(e,Mfe,t.paddingBottom),this.paddingLeft=bge(e,Nfe,t.paddingLeft),this.paintOrder=bge(e,gge,t.paintOrder),this.position=bge(e,Ffe,t.position),this.textAlign=bge(e,Xfe,t.textAlign),this.textDecorationColor=bge(e,ege,null!==(n=t.textDecorationColor)&&void 0!==n?n:t.color),this.textDecorationLine=bge(e,tge,null!==(r=t.textDecorationLine)&&void 0!==r?r:t.textDecoration),this.textShadow=bge(e,Ufe,t.textShadow),this.textTransform=bge(e,zfe,t.textTransform),this.transform=bge(e,qfe,t.transform),this.transformOrigin=bge(e,Yfe,t.transformOrigin),this.visibility=bge(e,Zfe,t.visibility),this.webkitTextStrokeColor=bge(e,mge,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=bge(e,Oge,t.webkitTextStrokeWidth),this.wordBreak=bge(e,Gfe,t.wordBreak),this.zIndex=bge(e,Hfe,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},e.prototype.isTransparent=function(){return hpe(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return 0!==this.position},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return 0!==this.float},e.prototype.isInlineLevel=function(){return sge(this.display,4)||sge(this.display,33554432)||sge(this.display,268435456)||sge(this.display,536870912)||sge(this.display,67108864)||sge(this.display,134217728)},e}(),yge=function(){return function(e,t){this.content=bge(e,lge,t.content),this.quotes=bge(e,dge,t.quotes)}}(),vge=function(){return function(e,t){this.counterIncrement=bge(e,cge,t.counterIncrement),this.counterReset=bge(e,uge,t.counterReset)}}(),bge=function(e,t,n){var r=new Nde,i=null!==n&&typeof n<"u"?n.toString():t.initialValue;r.write(i);var o=new Xde(r.read());switch(t.type){case 2:var a=o.parseComponentValue();return t.parse(e,zde(a)?a.value:t.initialValue);case 0:return t.parse(e,o.parseComponentValue());case 1:return t.parse(e,o.parseComponentValues());case 4:return o.parseComponentValue();case 3:switch(t.format){case"angle":return ape(e,o.parseComponentValue());case"color":return upe(e,o.parseComponentValue());case"image":return Mpe(e,o.parseComponentValue());case"length":var s=o.parseComponentValue();return Gde(s)?s:Jde;case"length-percentage":var l=o.parseComponentValue();return Hde(l)?l:Jde;case"time":return Kfe(e,o.parseComponentValue())}}},xge=function(e,t){var n=function(e){switch(e.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(e);return 1===n||t===n},wge=function(){return function(e,t){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,xge(t,3),this.styles=new Age(e,window.getComputedStyle(t,null)),$me(t)&&(this.styles.animationDuration.some(function(e){return e>0})&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=ohe(this.context,t),xge(t,4)&&(this.flags|=16)}}(),kge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Sge=typeof Uint8Array>"u"?[]:new Uint8Array(256),Tge=0;Tge<64;Tge++)Sge[kge.charCodeAt(Tge)]=Tge;for(var $ge=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},_ge=function(){function e(e,t,n,r,i,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=o}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>5])<<2)+(31&e),this.data[t];if(e<=65535)return t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[t];if(e<this.highStart)return t=2080+(e>>11),t=this.index[t],t+=e>>5&63,t=((t=this.index[t])<<2)+(31&e),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),Cge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Qge=typeof Uint8Array>"u"?[]:new Uint8Array(256),Pge=0;Pge<64;Pge++)Qge[Cge.charCodeAt(Pge)]=Pge;var Ege,Rge=8,Bge=9,Ige=11,Lge=12,Dge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var r=[],i=-1,o="";++i<n;){var a=e[i];a<=65535?r.push(a):(a-=65536,r.push(55296+(a>>10),a%1024+56320)),(i+1===n||r.length>16384)&&(o+=String.fromCharCode.apply(String,r),r.length=0)}return o},Mge=function(e){var t=function(e){var t,n,r,i,o,a=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(a):new Array(a),u=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<s;t+=4)n=Sge[e.charCodeAt(t)],r=Sge[e.charCodeAt(t+1)],i=Sge[e.charCodeAt(t+2)],o=Sge[e.charCodeAt(t+3)],u[l++]=n<<2|r>>4,u[l++]=(15&r)<<4|i>>2,u[l++]=(3&i)<<6|63&o;return c}(e),n=Array.isArray(t)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=4)n.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return n}(t):new Uint32Array(t),r=Array.isArray(t)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n.push(e[r+1]<<8|e[r]);return n}(t):new Uint16Array(t),i=$ge(r,12,n[4]/2),o=2===n[5]?$ge(r,(24+n[4])/2):function(e,t,n){return e.slice?e.slice(t,n):new Uint32Array(Array.prototype.slice.call(e,t,n))}(n,Math.ceil((24+n[4])/4));return new _ge(n[0],n[1],n[2],n[3],i,o)}("AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACA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IAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgAC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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA="),Nge="×",Xge=function(e){return Mge.get(e)},Fge=function(e,t,n){var r=n-2,i=t[r],o=t[n-1],a=t[n];if(2===o&&3===a)return Nge;if(2===o||3===o||4===o||2===a||3===a||4===a)return"÷";if(o===Rge&&-1!==[Rge,Bge,Ige,Lge].indexOf(a)||(o===Ige||o===Bge)&&(a===Bge||10===a)||(o===Lge||10===o)&&10===a||13===a||5===a||7===a||1===o)return Nge;if(13===o&&14===a){for(;5===i;)i=t[--r];if(14===i)return Nge}if(15===o&&15===a){for(var s=0;15===i;)s++,i=t[--r];if(s%2==0)return Nge}return"÷"},Uge=function(e){var t=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}(e),n=t.length,r=0,i=0,o=t.map(Xge);return{next:function(){if(r>=n)return{done:!0,value:null};for(var e=Nge;r<n&&(e=Fge(0,o,++r))===Nge;);if(e!==Nge||r===n){var a=Dge.apply(null,t.slice(i,r));return i=r,{value:a,done:!1}}return{done:!0,value:null}}}},zge=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},qge=function(e,t,n,r,i){var o="http://www.w3.org/2000/svg",a=document.createElementNS(o,"svg"),s=document.createElementNS(o,"foreignObject");return a.setAttributeNS(null,"width",e.toString()),a.setAttributeNS(null,"height",t.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",n.toString()),s.setAttributeNS(null,"y",r.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),a.appendChild(s),s.appendChild(i),a},Vge=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){return t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))})},Wge={get SUPPORT_RANGE_BOUNDS(){var e=function(e){if(e.createRange){var t=e.createRange();if(t.getBoundingClientRect){var n=e.createElement("boundtest");n.style.height="123px",n.style.display="block",e.body.appendChild(n),t.selectNode(n);var r=t.getBoundingClientRect(),i=Math.round(r.height);if(e.body.removeChild(n),123===i)return!0}}return!1}(document);return Object.defineProperty(Wge,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=Wge.SUPPORT_RANGE_BOUNDS&&function(e){var t=e.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",e.body.appendChild(t);var n=e.createRange();t.innerHTML="function"==typeof"".repeat?"👨".repeat(10):"";var r=t.firstChild,i=ahe(r.data).map(function(e){return she(e)}),o=0,a={},s=i.every(function(e,t){n.setStart(r,o),n.setEnd(r,o+e.length);var i=n.getBoundingClientRect();o+=e.length;var s=i.x>a.x||i.y>a.y;return a=i,0===t||s});return e.body.removeChild(t),s}(document);return Object.defineProperty(Wge,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=function(e){var t=new Image,n=e.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(t,0,0),n.toDataURL()}catch{return!1}return!0}(document);return Object.defineProperty(Wge,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"==typeof Array.from&&"function"==typeof window.fetch?function(e){var t=e.createElement("canvas"),n=100;t.width=n,t.height=n;var r=t.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,n,n);var i=new Image,o=t.toDataURL();i.src=o;var a=qge(n,n,0,0,i);return r.fillStyle="red",r.fillRect(0,0,n,n),Vge(a).then(function(t){r.drawImage(t,0,0);var i=r.getImageData(0,0,n,n).data;r.fillStyle="red",r.fillRect(0,0,n,n);var a=e.createElement("div");return a.style.backgroundImage="url("+o+")",a.style.height=n+"px",zge(i)?Vge(qge(n,n,0,0,a)):Promise.reject(!1)}).then(function(e){return r.drawImage(e,0,0),zge(r.getImageData(0,0,n,n).data)}).catch(function(){return!1})}(document):Promise.resolve(!1);return Object.defineProperty(Wge,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=typeof(new Image).crossOrigin<"u";return Object.defineProperty(Wge,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Wge,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Wge,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Wge,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},jge=function(){return function(e,t){this.text=e,this.bounds=t}}(),Yge=function(e,t){var n=t.ownerDocument;if(n){var r=n.createElement("html2canvaswrapper");r.appendChild(t.cloneNode(!0));var i=t.parentNode;if(i){i.replaceChild(r,t);var o=ohe(e,r);return r.firstChild&&i.replaceChild(r.firstChild,r),o}}return ihe.EMPTY},Zge=function(e,t,n){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var i=r.createRange();return i.setStart(e,t),i.setEnd(e,t+n),i},Gge=function(e){if(Wge.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map(function(e){return e.segment})}return function(e){for(var t,n=Uge(e),r=[];!(t=n.next()).done;)t.value&&r.push(t.value.slice());return r}(e)},Hge=function(e,t){return 0!==t.letterSpacing?Gge(e):function(e,t){if(Wge.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(e)).map(function(e){return e.segment})}return Jge(e,t)}(e,t)},Kge=[32,160,4961,65792,65793,4153,4241],Jge=function(e,t){for(var n,r=function(e,t){var n=ahe(e),r=rde(n,t),i=r[0],o=r[1],a=r[2],s=n.length,l=0,c=0;return{next:function(){if(c>=s)return{done:!0,value:null};for(var e=qhe;c<s&&(e=nde(n,o,i,++c,a))===qhe;);if(e!==qhe||c===s){var t=new ide(n,e,l,c);return l=c,{value:t,done:!1}}return{done:!0,value:null}}}}(e,{lineBreak:t.lineBreak,wordBreak:"break-word"===t.overflowWrap?"break-word":t.wordBreak}),i=[],o=function(){if(n.value){var e=n.value.slice(),t=ahe(e),r="";t.forEach(function(e){-1===Kge.indexOf(e)?r+=she(e):(r.length&&i.push(r),i.push(she(e)),r="")}),r.length&&i.push(r)}};!(n=r.next()).done;)o();return i},eme=function(){return function(e,t,n){this.text=tme(t.data,n.textTransform),this.textBounds=function(e,t,n,r){var i=Hge(t,n),o=[],a=0;return i.forEach(function(t){if(n.textDecorationLine.length||t.trim().length>0)if(Wge.SUPPORT_RANGE_BOUNDS){var i=Zge(r,a,t.length).getClientRects();if(i.length>1){var s=Gge(t),l=0;s.forEach(function(t){o.push(new jge(t,ihe.fromDOMRectList(e,Zge(r,l+a,t.length).getClientRects()))),l+=t.length})}else o.push(new jge(t,ihe.fromDOMRectList(e,i)))}else{var c=r.splitText(t.length);o.push(new jge(t,Yge(e,r))),r=c}else Wge.SUPPORT_RANGE_BOUNDS||(r=r.splitText(t.length));a+=t.length}),o}(e,this.text,n,t)}}(),tme=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(nme,rme);case 2:return e.toUpperCase();default:return e}},nme=/(^|\s|:|-|\(|\))([a-z])/g,rme=function(e,t,n){return e.length>0?t+n.toUpperCase():e},ime=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return ehe(t,e),t}(wge),ome=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return ehe(t,e),t}(wge),ame=function(e){function t(t,n){var r=e.call(this,t,n)||this,i=new XMLSerializer,o=ohe(t,n);return n.setAttribute("width",o.width+"px"),n.setAttribute("height",o.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return ehe(t,e),t}(wge),sme=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.value=n.value,r}return ehe(t,e),t}(wge),lme=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.start=n.start,r.reversed="boolean"==typeof n.reversed&&!0===n.reversed,r}return ehe(t,e),t}(wge),cme=[{type:15,flags:0,unit:"px",number:3}],ume=[{type:16,flags:0,number:50}],hme="checkbox",dme="radio",pme="password",fme=707406591,gme=function(e){function t(t,n){var r=e.call(this,t,n)||this;switch(r.type=n.type.toLowerCase(),r.checked=n.checked,r.value=function(e){var t=e.type===pme?new Array(e.value.length+1).join("•"):e.value;return 0===t.length?e.placeholder||"":t}(n),(r.type===hme||r.type===dme)&&(r.styles.backgroundColor=3739148031,r.styles.borderTopColor=r.styles.borderRightColor=r.styles.borderBottomColor=r.styles.borderLeftColor=2779096575,r.styles.borderTopWidth=r.styles.borderRightWidth=r.styles.borderBottomWidth=r.styles.borderLeftWidth=1,r.styles.borderTopStyle=r.styles.borderRightStyle=r.styles.borderBottomStyle=r.styles.borderLeftStyle=1,r.styles.backgroundClip=[0],r.styles.backgroundOrigin=[0],r.bounds=function(e){return e.width>e.height?new ihe(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new ihe(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e}(r.bounds)),r.type){case hme:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=cme;break;case dme:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=ume}return r}return ehe(t,e),t}(wge),mme=function(e){function t(t,n){var r=e.call(this,t,n)||this,i=n.options[n.selectedIndex||0];return r.value=i&&i.text||"",r}return ehe(t,e),t}(wge),Ome=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.value=n.value,r}return ehe(t,e),t}(wge),Ame=function(e){function t(t,n){var r=e.call(this,t,n)||this;r.src=n.src,r.width=parseInt(n.width,10)||0,r.height=parseInt(n.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){r.tree=xme(t,n.contentWindow.document.documentElement);var i=n.contentWindow.document.documentElement?ype(t,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):vpe.TRANSPARENT,o=n.contentWindow.document.body?ype(t,getComputedStyle(n.contentWindow.document.body).backgroundColor):vpe.TRANSPARENT;r.backgroundColor=hpe(i)?hpe(o)?r.styles.backgroundColor:o:i}}catch{}return r}return ehe(t,e),t}(wge),yme=["OL","UL","MENU"],vme=function(e,t,n,r){for(var i=t.firstChild,o=void 0;i;i=o)if(o=i.nextSibling,Sme(i)&&i.data.trim().length>0)n.textNodes.push(new eme(e,i,n.styles));else if(Tme(i))if(Fme(i)&&i.assignedNodes)i.assignedNodes().forEach(function(t){return vme(e,t,n,r)});else{var a=bme(e,i);a.styles.isVisible()&&(wme(i,a,r)?a.flags|=4:kme(a.styles)&&(a.flags|=2),-1!==yme.indexOf(i.tagName)&&(a.flags|=8),n.elements.push(a),i.slot,i.shadowRoot?vme(e,i.shadowRoot,a,r):!Nme(i)&&!Eme(i)&&!Xme(i)&&vme(e,i,a,r))}},bme=function(e,t){return Lme(t)?new ime(e,t):Bme(t)?new ome(e,t):Eme(t)?new ame(e,t):Cme(t)?new sme(e,t):Qme(t)?new lme(e,t):Pme(t)?new gme(e,t):Xme(t)?new mme(e,t):Nme(t)?new Ome(e,t):Dme(t)?new Ame(e,t):new wge(e,t)},xme=function(e,t){var n=bme(e,t);return n.flags|=4,vme(e,t,n,n),n},wme=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||Rme(e)&&n.styles.isTransparent()},kme=function(e){return e.isPositioned()||e.isFloating()},Sme=function(e){return e.nodeType===Node.TEXT_NODE},Tme=function(e){return e.nodeType===Node.ELEMENT_NODE},$me=function(e){return Tme(e)&&typeof e.style<"u"&&!_me(e)},_me=function(e){return"object"==typeof e.className},Cme=function(e){return"LI"===e.tagName},Qme=function(e){return"OL"===e.tagName},Pme=function(e){return"INPUT"===e.tagName},Eme=function(e){return"svg"===e.tagName},Rme=function(e){return"BODY"===e.tagName},Bme=function(e){return"CANVAS"===e.tagName},Ime=function(e){return"VIDEO"===e.tagName},Lme=function(e){return"IMG"===e.tagName},Dme=function(e){return"IFRAME"===e.tagName},Mme=function(e){return"STYLE"===e.tagName},Nme=function(e){return"TEXTAREA"===e.tagName},Xme=function(e){return"SELECT"===e.tagName},Fme=function(e){return"SLOT"===e.tagName},Ume=function(e){return e.tagName.indexOf("-")>0},zme=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){return this.counters[e]||[]},e.prototype.pop=function(e){var t=this;e.forEach(function(e){return t.counters[e].pop()})},e.prototype.parse=function(e){var t=this,n=e.counterIncrement,r=e.counterReset,i=!0;null!==n&&n.forEach(function(e){var n=t.counters[e.counter];n&&0!==e.increment&&(i=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=e.increment)});var o=[];return i&&r.forEach(function(e){var n=t.counters[e.counter];o.push(e.counter),n||(n=t.counters[e.counter]=[]),n.push(e.reset)}),o},e}(),qme={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Vme={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Wme={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},jme={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Yme=function(e,t,n,r,i,o){return e<t||e>n?rOe(e,i,o.length>0):r.integers.reduce(function(t,n,i){for(;e>=n;)e-=n,t+=r.values[i];return t},"")+o},Zme=function(e,t,n,r){var i="";do{n||e--,i=r(e)+i,e/=t}while(e*t>=t);return i},Gme=function(e,t,n,r,i){var o=n-t+1;return(e<0?"-":"")+(Zme(Math.abs(e),o,r,function(e){return she(Math.floor(e%o)+t)})+i)},Hme=function(e,t,n){void 0===n&&(n=". ");var r=t.length;return Zme(Math.abs(e),r,!1,function(e){return t[Math.floor(e%r)]})+n},Kme=function(e,t,n,r,i,o){if(e<-9999||e>9999)return rOe(e,4,i.length>0);var a=Math.abs(e),s=i;if(0===a)return t[0]+s;for(var l=0;a>0&&l<=4;l++){var c=a%10;0===c&&sge(o,1)&&""!==s?s=t[c]+s:c>1||1===c&&0===l||1===c&&1===l&&sge(o,2)||1===c&&1===l&&sge(o,4)&&e>100||1===c&&l>1&&sge(o,8)?s=t[c]+(l>0?n[l-1]:"")+s:1===c&&l>0&&(s=n[l-1]+s),a=Math.floor(a/10)}return(e<0?r:"")+s},Jme="十百千萬",eOe="拾佰仟萬",tOe="マイナス",nOe="마이너스",rOe=function(e,t,n){var r=n?". ":"",i=n?"、":"",o=n?", ":"",a=n?" ":"";switch(t){case 0:return"•"+a;case 1:return"◦"+a;case 2:return"◾"+a;case 5:var s=Gme(e,48,57,!0,r);return s.length<4?"0"+s:s;case 4:return Hme(e,"〇一二三四五六七八九",i);case 6:return Yme(e,1,3999,qme,3,r).toLowerCase();case 7:return Yme(e,1,3999,qme,3,r);case 8:return Gme(e,945,969,!1,r);case 9:return Gme(e,97,122,!1,r);case 10:return Gme(e,65,90,!1,r);case 11:return Gme(e,1632,1641,!0,r);case 12:case 49:return Yme(e,1,9999,Vme,3,r);case 35:return Yme(e,1,9999,Vme,3,r).toLowerCase();case 13:return Gme(e,2534,2543,!0,r);case 14:case 30:return Gme(e,6112,6121,!0,r);case 15:return Hme(e,"子丑寅卯辰巳午未申酉戌亥",i);case 16:return Hme(e,"甲乙丙丁戊己庚辛壬癸",i);case 17:case 48:return Kme(e,"零一二三四五六七八九",Jme,"負",i,14);case 47:return Kme(e,"零壹貳參肆伍陸柒捌玖",eOe,"負",i,15);case 42:return Kme(e,"零一二三四五六七八九",Jme,"负",i,14);case 41:return Kme(e,"零壹贰叁肆伍陆柒捌玖",eOe,"负",i,15);case 26:return Kme(e,"〇一二三四五六七八九","十百千万",tOe,i,0);case 25:return Kme(e,"零壱弐参四伍六七八九","拾百千万",tOe,i,7);case 31:return Kme(e,"영일이삼사오육칠팔구","십백천만",nOe,o,7);case 33:return Kme(e,"零一二三四五六七八九","十百千萬",nOe,o,0);case 32:return Kme(e,"零壹貳參四五六七八九","拾百千",nOe,o,7);case 18:return Gme(e,2406,2415,!0,r);case 20:return Yme(e,1,19999,jme,3,r);case 21:return Gme(e,2790,2799,!0,r);case 22:return Gme(e,2662,2671,!0,r);case 22:return Yme(e,1,10999,Wme,3,r);case 23:return Hme(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Hme(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Gme(e,3302,3311,!0,r);case 28:return Hme(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",i);case 29:return Hme(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",i);case 34:return Gme(e,3792,3801,!0,r);case 37:return Gme(e,6160,6169,!0,r);case 38:return Gme(e,4160,4169,!0,r);case 39:return Gme(e,2918,2927,!0,r);case 40:return Gme(e,1776,1785,!0,r);case 43:return Gme(e,3046,3055,!0,r);case 44:return Gme(e,3174,3183,!0,r);case 45:return Gme(e,3664,3673,!0,r);case 46:return Gme(e,3872,3881,!0,r);default:return Gme(e,48,57,!0,r)}},iOe="data-html2canvas-ignore",oOe=function(){function e(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new zme,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(e,t){var n=this,r=sOe(e,t);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var i=e.defaultView.pageXOffset,o=e.defaultView.pageYOffset,a=r.contentWindow,s=a.document,l=uOe(r).then(function(){return nhe(n,0,void 0,function(){var e,n;return rhe(this,function(i){switch(i.label){case 0:return this.scrolledElements.forEach(gOe),a&&(a.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(a.scrollY!==t.top||a.scrollX!==t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(a.scrollX-t.left,a.scrollY-t.top,0,0))),e=this.options.onclone,typeof(n=this.clonedReferenceElement)>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:s.fonts&&s.fonts.ready?[4,s.fonts.ready]:[3,2];case 1:i.sent(),i.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,cOe(s)]:[3,4];case 3:i.sent(),i.label=4;case 4:return"function"==typeof e?[2,Promise.resolve().then(function(){return e(s,n)}).then(function(){return r})]:[2,r]}})})});return s.open(),s.write(pOe(document.doctype)+"<html></html>"),fOe(this.referenceElement.ownerDocument,i,o),s.replaceChild(s.adoptNode(this.documentElement),s.documentElement),s.close(),l},e.prototype.createElementClone=function(e){if(xge(e,2),Bme(e))return this.createCanvasClone(e);if(Ime(e))return this.createVideoClone(e);if(Mme(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return Lme(t)&&(Lme(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),Ume(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return dOe(e.style,t),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce(function(e,t){return t&&"string"==typeof t.cssText?e+t.cssText:e},""),r=e.cloneNode(!1);return r.textContent=n,r}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),"SecurityError"!==i.name)throw i}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var r=e.cloneNode(!1);try{r.width=e.width,r.height=e.height;var i=e.getContext("2d"),o=r.getContext("2d");if(o)if(!this.options.allowTaint&&i)o.putImageData(i.getImageData(0,0,e.width,e.height),0,0);else{var a=null!==(t=e.getContext("webgl2"))&&void 0!==t?t:e.getContext("webgl");if(a){var s=a.getContextAttributes();!1===(null==s?void 0:s.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}o.drawImage(e,0,0)}return r}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return r},e.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var n=t.getContext("2d");try{return n&&(n.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||n.getImageData(0,0,t.width,t.height)),t}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var r=e.ownerDocument.createElement("canvas");return r.width=e.offsetWidth,r.height=e.offsetHeight,r},e.prototype.appendChildNode=function(e,t,n){(!Tme(t)||!function(e){return"SCRIPT"===e.tagName}(t)&&!t.hasAttribute(iOe)&&("function"!=typeof this.options.ignoreElements||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!Tme(t)||!Mme(t))&&e.appendChild(this.cloneNode(t,n))},e.prototype.cloneChildNodes=function(e,t,n){for(var r=this,i=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;i;i=i.nextSibling)if(Tme(i)&&Fme(i)&&"function"==typeof i.assignedNodes){var o=i.assignedNodes();o.length&&o.forEach(function(e){return r.appendChildNode(t,e,n)})}else this.appendChildNode(t,i,n)},e.prototype.cloneNode=function(e,t){if(Sme(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&Tme(e)&&($me(e)||_me(e))){var r=this.createElementClone(e);r.style.transitionProperty="none";var i=n.getComputedStyle(e),o=n.getComputedStyle(e,":before"),a=n.getComputedStyle(e,":after");this.referenceElement===e&&$me(r)&&(this.clonedReferenceElement=r),Rme(r)&&yOe(r);var s=this.counters.parse(new vge(this.context,i)),l=this.resolvePseudoContent(e,r,o,Ege.BEFORE);Ume(e)&&(t=!0),Ime(e)||this.cloneChildNodes(e,r,t),l&&r.insertBefore(l,r.firstChild);var c=this.resolvePseudoContent(e,r,a,Ege.AFTER);return c&&r.appendChild(c),this.counters.pop(s),(i&&(this.options.copyStyles||_me(e))&&!Dme(e)||t)&&dOe(i,r),(0!==e.scrollTop||0!==e.scrollLeft)&&this.scrolledElements.push([r,e.scrollLeft,e.scrollTop]),(Nme(e)||Xme(e))&&(Nme(r)||Xme(r))&&(r.value=e.value),r}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,n,r){var i=this;if(n){var o=n.content,a=t.ownerDocument;if(a&&o&&"none"!==o&&"-moz-alt-content"!==o&&"none"!==n.display){this.counters.parse(new vge(this.context,n));var s=new yge(this.context,n),l=a.createElement("html2canvaspseudoelement");dOe(n,l),s.content.forEach(function(t){if(0===t.type)l.appendChild(a.createTextNode(t.value));else if(22===t.type){var n=a.createElement("img");n.src=t.value,n.style.opacity="1",l.appendChild(n)}else if(18===t.type){if("attr"===t.name){var r=t.values.filter(zde);r.length&&l.appendChild(a.createTextNode(e.getAttribute(r[0].value)||""))}else if("counter"===t.name){var o=t.values.filter(jde),c=o[0],u=o[1];if(c&&zde(c)){var h=i.counters.getCounterValue(c.value),d=u&&zde(u)?$fe.parse(i.context,u.value):3;l.appendChild(a.createTextNode(rOe(h,d,!1)))}}else if("counters"===t.name){var p=t.values.filter(jde),f=(c=p[0],p[1]);u=p[2];if(c&&zde(c)){var g=i.counters.getCounterValues(c.value),m=u&&zde(u)?$fe.parse(i.context,u.value):3,O=f&&0===f.type?f.value:"",A=g.map(function(e){return rOe(e,m,!1)}).join(O);l.appendChild(a.createTextNode(A))}}}else if(20===t.type)switch(t.value){case"open-quote":l.appendChild(a.createTextNode(pge(s.quotes,i.quoteDepth++,!0)));break;case"close-quote":l.appendChild(a.createTextNode(pge(s.quotes,--i.quoteDepth,!1)));break;default:l.appendChild(a.createTextNode(t.value))}}),l.className=mOe+" "+OOe;var c=r===Ege.BEFORE?" "+mOe:" "+OOe;return _me(t)?t.className.baseValue+=c:t.className+=c,l}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();!function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"}(Ege||(Ege={}));var aOe,sOe=function(e,t){var n=e.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=t.width.toString(),n.height=t.height.toString(),n.scrolling="no",n.setAttribute(iOe,"true"),e.body.appendChild(n),n},lOe=function(e){return new Promise(function(t){e.complete?t():e.src?(e.onload=t,e.onerror=t):t()})},cOe=function(e){return Promise.all([].slice.call(e.images,0).map(lOe))},uOe=function(e){return new Promise(function(t,n){var r=e.contentWindow;if(!r)return n("No window assigned for iframe");var i=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var n=setInterval(function(){i.body.childNodes.length>0&&"complete"===i.readyState&&(clearInterval(n),t(e))},50)}})},hOe=["all","d","content"],dOe=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e.item(n);-1===hOe.indexOf(r)&&t.style.setProperty(r,e.getPropertyValue(r))}return t},pOe=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},fOe=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},gOe=function(e){var t=e[0],n=e[1],r=e[2];t.scrollLeft=n,t.scrollTop=r},mOe="___html2canvas___pseudoelement_before",OOe="___html2canvas___pseudoelement_after",AOe='{\n content: "" !important;\n display: none !important;\n}',yOe=function(e){vOe(e,"."+mOe+":before"+AOe+"\n ."+OOe+":after"+AOe)},vOe=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement("style");r.textContent=t,e.appendChild(r)}},bOe=function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),xOe=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)||(COe(e)||TOe(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return nhe(this,0,void 0,function(){var t,n,r,i,o=this;return rhe(this,function(a){switch(a.label){case 0:return t=bOe.isSameOrigin(e),n=!$Oe(e)&&!0===this._options.useCORS&&Wge.SUPPORT_CORS_IMAGES&&!t,r=!$Oe(e)&&!t&&!COe(e)&&"string"==typeof this._options.proxy&&Wge.SUPPORT_CORS_XHR&&!n,t||!1!==this._options.allowTaint||$Oe(e)||COe(e)||r||n?(i=e,r?[4,this.proxy(i)]:[3,2]):[2];case 1:i=a.sent(),a.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,(_Oe(i)||n)&&(r.crossOrigin="anonymous"),r.src=i,!0===r.complete&&setTimeout(function(){return e(r)},500),o._options.imageTimeout>0&&setTimeout(function(){return t("Timed out ("+o._options.imageTimeout+"ms) loading image")},o._options.imageTimeout)})];case 3:return[2,a.sent()]}})})},e.prototype.has=function(e){return typeof this._cache[e]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise(function(i,o){var a=Wge.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(200===s.status)if("text"===a)i(s.response);else{var e=new FileReader;e.addEventListener("load",function(){return i(e.result)},!1),e.addEventListener("error",function(e){return o(e)},!1),e.readAsDataURL(s.response)}else o("Failed to proxy resource "+r+" with status code "+s.status)},s.onerror=o;var l=n.indexOf("?")>-1?"&":"?";if(s.open("GET",""+n+l+"url="+encodeURIComponent(e)+"&responseType="+a),"text"!==a&&s instanceof XMLHttpRequest&&(s.responseType=a),t._options.imageTimeout){var c=t._options.imageTimeout;s.timeout=c,s.ontimeout=function(){return o("Timed out ("+c+"ms) proxying "+r)}}s.send()})},e}(),wOe=/^data:image\/svg\+xml/i,kOe=/^data:image\/.*;base64,/i,SOe=/^data:image\/.*/i,TOe=function(e){return Wge.SUPPORT_SVG_DRAWING||!QOe(e)},$Oe=function(e){return SOe.test(e)},_Oe=function(e){return kOe.test(e)},COe=function(e){return"blob"===e.substr(0,4)},QOe=function(e){return"svg"===e.substr(-3).toLowerCase()||wOe.test(e)},POe=function(){function e(e,t){this.type=0,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),EOe=function(e,t,n){return new POe(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},ROe=function(){function e(e,t,n,r){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=r}return e.prototype.subdivide=function(t,n){var r=EOe(this.start,this.startControl,t),i=EOe(this.startControl,this.endControl,t),o=EOe(this.endControl,this.end,t),a=EOe(r,i,t),s=EOe(i,o,t),l=EOe(a,s,t);return n?new e(this.start,r,a,l):new e(l,s,o,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),BOe=function(e){return 1===e.type},IOe=function(){return function(e){var t=e.styles,n=e.bounds,r=npe(t.borderTopLeftRadius,n.width,n.height),i=r[0],o=r[1],a=npe(t.borderTopRightRadius,n.width,n.height),s=a[0],l=a[1],c=npe(t.borderBottomRightRadius,n.width,n.height),u=c[0],h=c[1],d=npe(t.borderBottomLeftRadius,n.width,n.height),p=d[0],f=d[1],g=[];g.push((i+s)/n.width),g.push((p+u)/n.width),g.push((o+f)/n.height),g.push((l+h)/n.height);var m=Math.max.apply(Math,g);m>1&&(i/=m,o/=m,s/=m,l/=m,u/=m,h/=m,p/=m,f/=m);var O=n.width-s,A=n.height-h,y=n.width-u,v=n.height-f,b=t.borderTopWidth,x=t.borderRightWidth,w=t.borderBottomWidth,k=t.borderLeftWidth,S=rpe(t.paddingTop,e.bounds.width),T=rpe(t.paddingRight,e.bounds.width),$=rpe(t.paddingBottom,e.bounds.width),_=rpe(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||o>0?LOe(n.left+k/3,n.top+b/3,i-k/3,o-b/3,aOe.TOP_LEFT):new POe(n.left+k/3,n.top+b/3),this.topRightBorderDoubleOuterBox=i>0||o>0?LOe(n.left+O,n.top+b/3,s-x/3,l-b/3,aOe.TOP_RIGHT):new POe(n.left+n.width-x/3,n.top+b/3),this.bottomRightBorderDoubleOuterBox=u>0||h>0?LOe(n.left+y,n.top+A,u-x/3,h-w/3,aOe.BOTTOM_RIGHT):new POe(n.left+n.width-x/3,n.top+n.height-w/3),this.bottomLeftBorderDoubleOuterBox=p>0||f>0?LOe(n.left+k/3,n.top+v,p-k/3,f-w/3,aOe.BOTTOM_LEFT):new POe(n.left+k/3,n.top+n.height-w/3),this.topLeftBorderDoubleInnerBox=i>0||o>0?LOe(n.left+2*k/3,n.top+2*b/3,i-2*k/3,o-2*b/3,aOe.TOP_LEFT):new POe(n.left+2*k/3,n.top+2*b/3),this.topRightBorderDoubleInnerBox=i>0||o>0?LOe(n.left+O,n.top+2*b/3,s-2*x/3,l-2*b/3,aOe.TOP_RIGHT):new POe(n.left+n.width-2*x/3,n.top+2*b/3),this.bottomRightBorderDoubleInnerBox=u>0||h>0?LOe(n.left+y,n.top+A,u-2*x/3,h-2*w/3,aOe.BOTTOM_RIGHT):new POe(n.left+n.width-2*x/3,n.top+n.height-2*w/3),this.bottomLeftBorderDoubleInnerBox=p>0||f>0?LOe(n.left+2*k/3,n.top+v,p-2*k/3,f-2*w/3,aOe.BOTTOM_LEFT):new POe(n.left+2*k/3,n.top+n.height-2*w/3),this.topLeftBorderStroke=i>0||o>0?LOe(n.left+k/2,n.top+b/2,i-k/2,o-b/2,aOe.TOP_LEFT):new POe(n.left+k/2,n.top+b/2),this.topRightBorderStroke=i>0||o>0?LOe(n.left+O,n.top+b/2,s-x/2,l-b/2,aOe.TOP_RIGHT):new POe(n.left+n.width-x/2,n.top+b/2),this.bottomRightBorderStroke=u>0||h>0?LOe(n.left+y,n.top+A,u-x/2,h-w/2,aOe.BOTTOM_RIGHT):new POe(n.left+n.width-x/2,n.top+n.height-w/2),this.bottomLeftBorderStroke=p>0||f>0?LOe(n.left+k/2,n.top+v,p-k/2,f-w/2,aOe.BOTTOM_LEFT):new POe(n.left+k/2,n.top+n.height-w/2),this.topLeftBorderBox=i>0||o>0?LOe(n.left,n.top,i,o,aOe.TOP_LEFT):new POe(n.left,n.top),this.topRightBorderBox=s>0||l>0?LOe(n.left+O,n.top,s,l,aOe.TOP_RIGHT):new POe(n.left+n.width,n.top),this.bottomRightBorderBox=u>0||h>0?LOe(n.left+y,n.top+A,u,h,aOe.BOTTOM_RIGHT):new POe(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=p>0||f>0?LOe(n.left,n.top+v,p,f,aOe.BOTTOM_LEFT):new POe(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||o>0?LOe(n.left+k,n.top+b,Math.max(0,i-k),Math.max(0,o-b),aOe.TOP_LEFT):new POe(n.left+k,n.top+b),this.topRightPaddingBox=s>0||l>0?LOe(n.left+Math.min(O,n.width-x),n.top+b,O>n.width+x?0:Math.max(0,s-x),Math.max(0,l-b),aOe.TOP_RIGHT):new POe(n.left+n.width-x,n.top+b),this.bottomRightPaddingBox=u>0||h>0?LOe(n.left+Math.min(y,n.width-k),n.top+Math.min(A,n.height-w),Math.max(0,u-x),Math.max(0,h-w),aOe.BOTTOM_RIGHT):new POe(n.left+n.width-x,n.top+n.height-w),this.bottomLeftPaddingBox=p>0||f>0?LOe(n.left+k,n.top+Math.min(v,n.height-w),Math.max(0,p-k),Math.max(0,f-w),aOe.BOTTOM_LEFT):new POe(n.left+k,n.top+n.height-w),this.topLeftContentBox=i>0||o>0?LOe(n.left+k+_,n.top+b+S,Math.max(0,i-(k+_)),Math.max(0,o-(b+S)),aOe.TOP_LEFT):new POe(n.left+k+_,n.top+b+S),this.topRightContentBox=s>0||l>0?LOe(n.left+Math.min(O,n.width+k+_),n.top+b+S,O>n.width+k+_?0:s-k+_,l-(b+S),aOe.TOP_RIGHT):new POe(n.left+n.width-(x+T),n.top+b+S),this.bottomRightContentBox=u>0||h>0?LOe(n.left+Math.min(y,n.width-(k+_)),n.top+Math.min(A,n.height+b+S),Math.max(0,u-(x+T)),h-(w+$),aOe.BOTTOM_RIGHT):new POe(n.left+n.width-(x+T),n.top+n.height-(w+$)),this.bottomLeftContentBox=p>0||f>0?LOe(n.left+k+_,n.top+v,Math.max(0,p-(k+_)),f-(w+$),aOe.BOTTOM_LEFT):new POe(n.left+k+_,n.top+n.height-(w+$))}}();!function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(aOe||(aOe={}));var LOe=function(e,t,n,r,i){var o=(Math.sqrt(2)-1)/3*4,a=n*o,s=r*o,l=e+n,c=t+r;switch(i){case aOe.TOP_LEFT:return new ROe(new POe(e,c),new POe(e,c-s),new POe(l-a,t),new POe(l,t));case aOe.TOP_RIGHT:return new ROe(new POe(e,t),new POe(e+a,t),new POe(l,c-s),new POe(l,c));case aOe.BOTTOM_RIGHT:return new ROe(new POe(l,t),new POe(l,t+s),new POe(e+a,c),new POe(e,c));case aOe.BOTTOM_LEFT:default:return new ROe(new POe(l,c),new POe(l-a,c),new POe(e,t+s),new POe(e,t))}},DOe=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},MOe=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},NOe=function(){return function(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6}}(),XOe=function(){return function(e,t){this.path=e,this.target=t,this.type=1}}(),FOe=function(){return function(e){this.opacity=e,this.type=2,this.target=6}}(),UOe=function(e){return 1===e.type},zOe=function(e,t){return e.length===t.length&&e.some(function(e,n){return e===t[n]})},qOe=function(){return function(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}}(),VOe=function(){function e(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new IOe(this.container),this.container.styles.opacity<1&&this.effects.push(new FOe(this.container.styles.opacity)),null!==this.container.styles.transform){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new NOe(n,r,i))}if(0!==this.container.styles.overflowX){var o=DOe(this.curves),a=MOe(this.curves);zOe(o,a)?this.effects.push(new XOe(o,6)):(this.effects.push(new XOe(o,2)),this.effects.push(new XOe(a,4)))}}return e.prototype.getEffects=function(e){for(var t=-1===[2,3].indexOf(this.container.styles.position),n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter(function(e){return!UOe(e)});if(t||0!==n.container.styles.position||!n.parent){if(r.unshift.apply(r,i),t=-1===[2,3].indexOf(n.container.styles.position),0!==n.container.styles.overflowX){var o=DOe(n.curves),a=MOe(n.curves);zOe(o,a)||r.unshift(new XOe(a,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(t){return sge(t.target,e)})},e}(),WOe=function(e,t,n,r){e.container.elements.forEach(function(i){var o=sge(i.flags,4),a=sge(i.flags,2),s=new VOe(i,e);sge(i.styles.display,2048)&&r.push(s);var l=sge(i.flags,8)?[]:r;if(o||a){var c=o||i.styles.isPositioned()?n:t,u=new qOe(s);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var h=i.styles.zIndex.order;if(h<0){var d=0;c.negativeZIndex.some(function(e,t){return h>e.element.container.styles.zIndex.order?(d=t,!1):d>0}),c.negativeZIndex.splice(d,0,u)}else if(h>0){var p=0;c.positiveZIndex.some(function(e,t){return h>=e.element.container.styles.zIndex.order?(p=t+1,!1):p>0}),c.positiveZIndex.splice(p,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else i.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);WOe(s,u,o?u:n,l)}else i.styles.isInlineLevel()?t.inlineLevel.push(s):t.nonInlineLevel.push(s),WOe(s,t,n,l);sge(i.flags,8)&&jOe(i,l)})},jOe=function(e,t){for(var n=e instanceof lme?e.start:1,r=e instanceof lme&&e.reversed,i=0;i<t.length;i++){var o=t[i];o.container instanceof sme&&"number"==typeof o.container.value&&0!==o.container.value&&(n=o.container.value),o.listValue=rOe(n,o.container.styles.listStyleType,!0),n+=r?-1:1}},YOe=function(e,t){switch(t){case 0:return GOe(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return GOe(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return GOe(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);default:return GOe(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},ZOe=function(e,t){var n=[];return BOe(e)?n.push(e.subdivide(.5,!1)):n.push(e),BOe(t)?n.push(t.subdivide(.5,!0)):n.push(t),n},GOe=function(e,t,n,r){var i=[];return BOe(e)?i.push(e.subdivide(.5,!1)):i.push(e),BOe(n)?i.push(n.subdivide(.5,!0)):i.push(n),BOe(r)?i.push(r.subdivide(.5,!0).reverse()):i.push(r),BOe(t)?i.push(t.subdivide(.5,!1).reverse()):i.push(t),i},HOe=function(e){var t=e.bounds,n=e.styles;return t.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},KOe=function(e){var t=e.styles,n=e.bounds,r=rpe(t.paddingLeft,n.width),i=rpe(t.paddingRight,n.width),o=rpe(t.paddingTop,n.width),a=rpe(t.paddingBottom,n.width);return n.add(r+t.borderLeftWidth,o+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+r+i),-(t.borderTopWidth+t.borderBottomWidth+o+a))},JOe=function(e,t,n){var r=function(e,t){return 0===e?t.bounds:2===e?KOe(t):HOe(t)}(rAe(e.styles.backgroundOrigin,t),e),i=function(e,t){return 0===e?t.bounds:2===e?KOe(t):HOe(t)}(rAe(e.styles.backgroundClip,t),e),o=nAe(rAe(e.styles.backgroundSize,t),n,r),a=o[0],s=o[1],l=npe(rAe(e.styles.backgroundPosition,t),r.width-a,r.height-s);return[iAe(rAe(e.styles.backgroundRepeat,t),l,o,r,i),Math.round(r.left+l[0]),Math.round(r.top+l[1]),a,s]},eAe=function(e){return zde(e)&&e.value===Npe.AUTO},tAe=function(e){return"number"==typeof e},nAe=function(e,t,n){var r=t[0],i=t[1],o=t[2],a=e[0],s=e[1];if(!a)return[0,0];if(Hde(a)&&s&&Hde(s))return[rpe(a,n.width),rpe(s,n.height)];var l=tAe(o);if(zde(a)&&(a.value===Npe.CONTAIN||a.value===Npe.COVER))return tAe(o)?n.width/n.height<o!=(a.value===Npe.COVER)?[n.width,n.width/o]:[n.height*o,n.height]:[n.width,n.height];var c=tAe(r),u=tAe(i),h=c||u;if(eAe(a)&&(!s||eAe(s)))return c&&u?[r,i]:l||h?h&&l?[c?r:i*o,u?i:r/o]:[c?r:n.width,u?i:n.height]:[n.width,n.height];if(l){var d=0,p=0;return Hde(a)?d=rpe(a,n.width):Hde(s)&&(p=rpe(s,n.height)),eAe(a)?d=p*o:(!s||eAe(s))&&(p=d/o),[d,p]}var f=null,g=null;if(Hde(a)?f=rpe(a,n.width):s&&Hde(s)&&(g=rpe(s,n.height)),null!==f&&(!s||eAe(s))&&(g=c&&u?f/r*i:n.height),null!==g&&eAe(a)&&(f=c&&u?g/i*r:n.width),null!==f&&null!==g)return[f,g];throw new Error("Unable to calculate background-size for element")},rAe=function(e,t){var n=e[t];return typeof n>"u"?e[0]:n},iAe=function(e,t,n,r,i){var o=t[0],a=t[1],s=n[0],l=n[1];switch(e){case 2:return[new POe(Math.round(r.left),Math.round(r.top+a)),new POe(Math.round(r.left+r.width),Math.round(r.top+a)),new POe(Math.round(r.left+r.width),Math.round(l+r.top+a)),new POe(Math.round(r.left),Math.round(l+r.top+a))];case 3:return[new POe(Math.round(r.left+o),Math.round(r.top)),new POe(Math.round(r.left+o+s),Math.round(r.top)),new POe(Math.round(r.left+o+s),Math.round(r.height+r.top)),new POe(Math.round(r.left+o),Math.round(r.height+r.top))];case 1:return[new POe(Math.round(r.left+o),Math.round(r.top+a)),new POe(Math.round(r.left+o+s),Math.round(r.top+a)),new POe(Math.round(r.left+o+s),Math.round(r.top+a+l)),new POe(Math.round(r.left+o),Math.round(r.top+a+l))];default:return[new POe(Math.round(i.left),Math.round(i.top)),new POe(Math.round(i.left+i.width),Math.round(i.top)),new POe(Math.round(i.left+i.width),Math.round(i.height+i.top)),new POe(Math.round(i.left),Math.round(i.height+i.top))]}},oAe="Hidden Text",aAe=function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,t){var n=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),o=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",o.appendChild(n),r.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=e,i.style.fontSize=t,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(oAe)),n.appendChild(i),n.appendChild(r);var a=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(oAe)),n.style.lineHeight="normal",r.style.verticalAlign="super";var s=r.offsetTop-n.offsetTop+2;return o.removeChild(n),{baseline:a,middle:s}},e.prototype.getMetrics=function(e,t){var n=e+" "+t;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},e}(),sAe=function(){return function(e,t){this.context=e,this.options=t}}(),lAe=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px"),r.fontMetrics=new aAe(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),r}return ehe(t,e),t.prototype.applyEffects=function(e){for(var t=this;this._activeEffects.length;)this.popEffect();e.forEach(function(e){return t.applyEffect(e)})},t.prototype.applyEffect=function(e){this.ctx.save(),function(e){return 2===e.type}(e)&&(this.ctx.globalAlpha=e.opacity),function(e){return 0===e.type}(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),UOe(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(e){return nhe(this,0,void 0,function(){return rhe(this,function(t){switch(t.label){case 0:return e.element.container.styles.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(e){return nhe(this,0,void 0,function(){return rhe(this,function(t){switch(t.label){case 0:return sge(e.container.flags,16),e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(e,t,n){var r=this;0===t?this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+n):Gge(e.text).reduce(function(t,i){return r.ctx.fillText(i,t,e.bounds.top+n),t+r.ctx.measureText(i).width},e.bounds.left)},t.prototype.createFontStyle=function(e){var t=e.fontVariant.filter(function(e){return"normal"===e||"small-caps"===e}).join(""),n=pAe(e.fontFamily).join(", "),r=Fde(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,t,e.fontWeight,r,n].join(" "),n,r]},t.prototype.renderTextNode=function(e,t){return nhe(this,0,void 0,function(){var n,r,i,o,a,s,l,c,u=this;return rhe(this,function(h){return n=this.createFontStyle(t),r=n[0],i=n[1],o=n[2],this.ctx.font=r,this.ctx.direction=1===t.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",a=this.fontMetrics.getMetrics(i,o),s=a.baseline,l=a.middle,c=t.paintOrder,e.textBounds.forEach(function(e){c.forEach(function(n){switch(n){case 0:u.ctx.fillStyle=dpe(t.color),u.renderTextWithLetterSpacing(e,t.letterSpacing,s);var r=t.textShadow;r.length&&e.text.trim().length&&(r.slice(0).reverse().forEach(function(n){u.ctx.shadowColor=dpe(n.color),u.ctx.shadowOffsetX=n.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=n.offsetY.number*u.options.scale,u.ctx.shadowBlur=n.blur.number,u.renderTextWithLetterSpacing(e,t.letterSpacing,s)}),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),t.textDecorationLine.length&&(u.ctx.fillStyle=dpe(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(t){switch(t){case 1:u.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top+s),e.bounds.width,1);break;case 2:u.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top),e.bounds.width,1);break;case 3:u.ctx.fillRect(e.bounds.left,Math.ceil(e.bounds.top+l),e.bounds.width,1)}}));break;case 1:t.webkitTextStrokeWidth&&e.text.trim().length&&(u.ctx.strokeStyle=dpe(t.webkitTextStrokeColor),u.ctx.lineWidth=t.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(e.text,e.bounds.left,e.bounds.top+s)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter"}})}),[2]})})},t.prototype.renderReplacedElement=function(e,t,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var r=KOe(e),i=MOe(t);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(e){return nhe(this,0,void 0,function(){var n,r,i,o,a,s,l,c,u,h,d,p,f,g,m,O,A,y;return rhe(this,function(v){switch(v.label){case 0:this.applyEffects(e.getEffects(4)),n=e.container,r=e.curves,i=n.styles,o=0,a=n.textNodes,v.label=1;case 1:return o<a.length?(s=a[o],[4,this.renderTextNode(s,i)]):[3,4];case 2:v.sent(),v.label=3;case 3:return o++,[3,1];case 4:if(!(n instanceof ime))return[3,8];v.label=5;case 5:return v.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return m=v.sent(),this.renderReplacedElement(n,r,m),[3,8];case 7:return v.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof ome&&this.renderReplacedElement(n,r,n.canvas),!(n instanceof ame))return[3,12];v.label=9;case 9:return v.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return m=v.sent(),this.renderReplacedElement(n,r,m),[3,12];case 11:return v.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof Ame&&n.tree?[4,new t(this.context,{scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,width:n.width,height:n.height}).render(n.tree)]:[3,14];case 13:l=v.sent(),n.width&&n.height&&this.ctx.drawImage(l,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),v.label=14;case 14:if(n instanceof gme&&(c=Math.min(n.bounds.width,n.bounds.height),n.type===hme?n.checked&&(this.ctx.save(),this.path([new POe(n.bounds.left+.39363*c,n.bounds.top+.79*c),new POe(n.bounds.left+.16*c,n.bounds.top+.5549*c),new POe(n.bounds.left+.27347*c,n.bounds.top+.44071*c),new POe(n.bounds.left+.39694*c,n.bounds.top+.5649*c),new POe(n.bounds.left+.72983*c,n.bounds.top+.23*c),new POe(n.bounds.left+.84*c,n.bounds.top+.34085*c),new POe(n.bounds.left+.39363*c,n.bounds.top+.79*c)]),this.ctx.fillStyle=dpe(fme),this.ctx.fill(),this.ctx.restore()):n.type===dme&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+c/2,n.bounds.top+c/2,c/4,0,2*Math.PI,!0),this.ctx.fillStyle=dpe(fme),this.ctx.fill(),this.ctx.restore())),cAe(n)&&n.value.length){switch(u=this.createFontStyle(i),A=u[0],h=u[1],d=this.fontMetrics.getMetrics(A,h).baseline,this.ctx.font=A,this.ctx.fillStyle=dpe(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=hAe(n.styles.textAlign),y=KOe(n),p=0,n.styles.textAlign){case 1:p+=y.width/2;break;case 2:p+=y.width}f=y.add(p,0,0,-y.height/2+1),this.ctx.save(),this.path([new POe(y.left,y.top),new POe(y.left+y.width,y.top),new POe(y.left+y.width,y.top+y.height),new POe(y.left,y.top+y.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new jge(n.value,f),i.letterSpacing,d),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!sge(n.styles.display,2048))return[3,20];if(null===n.styles.listStyleImage)return[3,19];if(0!==(g=n.styles.listStyleImage).type)return[3,18];m=void 0,O=g.url,v.label=15;case 15:return v.trys.push([15,17,,18]),[4,this.context.cache.match(O)];case 16:return m=v.sent(),this.ctx.drawImage(m,n.bounds.left-(m.width+10),n.bounds.top),[3,18];case 17:return v.sent(),this.context.logger.error("Error loading list-style-image "+O),[3,18];case 18:return[3,20];case 19:e.listValue&&-1!==n.styles.listStyleType&&(A=this.createFontStyle(i)[0],this.ctx.font=A,this.ctx.fillStyle=dpe(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",y=new ihe(n.bounds.left,n.bounds.top+rpe(n.styles.paddingTop,n.bounds.width),n.bounds.width,kfe(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new jge(e.listValue,y),i.letterSpacing,kfe(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),v.label=20;case 20:return[2]}})})},t.prototype.renderStackContent=function(e){return nhe(this,0,void 0,function(){var t,n,r,i,o,a,s,l,c,u,h,d,p,f,g;return rhe(this,function(m){switch(m.label){case 0:return sge(e.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:m.sent(),t=0,n=e.negativeZIndex,m.label=2;case 2:return t<n.length?(g=n[t],[4,this.renderStack(g)]):[3,5];case 3:m.sent(),m.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:m.sent(),r=0,i=e.nonInlineLevel,m.label=7;case 7:return r<i.length?(g=i[r],[4,this.renderNode(g)]):[3,10];case 8:m.sent(),m.label=9;case 9:return r++,[3,7];case 10:o=0,a=e.nonPositionedFloats,m.label=11;case 11:return o<a.length?(g=a[o],[4,this.renderStack(g)]):[3,14];case 12:m.sent(),m.label=13;case 13:return o++,[3,11];case 14:s=0,l=e.nonPositionedInlineLevel,m.label=15;case 15:return s<l.length?(g=l[s],[4,this.renderStack(g)]):[3,18];case 16:m.sent(),m.label=17;case 17:return s++,[3,15];case 18:c=0,u=e.inlineLevel,m.label=19;case 19:return c<u.length?(g=u[c],[4,this.renderNode(g)]):[3,22];case 20:m.sent(),m.label=21;case 21:return c++,[3,19];case 22:h=0,d=e.zeroOrAutoZIndexOrTransformedOrOpacity,m.label=23;case 23:return h<d.length?(g=d[h],[4,this.renderStack(g)]):[3,26];case 24:m.sent(),m.label=25;case 25:return h++,[3,23];case 26:p=0,f=e.positiveZIndex,m.label=27;case 27:return p<f.length?(g=f[p],[4,this.renderStack(g)]):[3,30];case 28:m.sent(),m.label=29;case 29:return p++,[3,27];case 30:return[2]}})})},t.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},t.prototype.formatPath=function(e){var t=this;e.forEach(function(e,n){var r=BOe(e)?e.start:e;0===n?t.ctx.moveTo(r.x,r.y):t.ctx.lineTo(r.x,r.y),BOe(e)&&t.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)})},t.prototype.renderRepeat=function(e,t,n,r){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(n,r),this.ctx.fill(),this.ctx.translate(-n,-r)},t.prototype.resizeImage=function(e,t,n){var r;if(e.width===t&&e.height===n)return e;var i=(null!==(r=this.canvas.ownerDocument)&&void 0!==r?r:document).createElement("canvas");return i.width=Math.max(1,t),i.height=Math.max(1,n),i.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,t,n),i},t.prototype.renderBackgroundImage=function(e){return nhe(this,0,void 0,function(){var t,n,r,i,o,a;return rhe(this,function(s){switch(s.label){case 0:t=e.styles.backgroundImage.length-1,n=function(n){var i,o,a,s,l,c,u,h,d,p,f,g,m,O,A,y,v,b,x,w,k,S,T,$,_,C,Q,P,E,R,B;return rhe(this,function(I){switch(I.label){case 0:if(0!==n.type)return[3,5];i=void 0,o=n.url,I.label=1;case 1:return I.trys.push([1,3,,4]),[4,r.context.cache.match(o)];case 2:return i=I.sent(),[3,4];case 3:return I.sent(),r.context.logger.error("Error loading background-image "+o),[3,4];case 4:return i&&(a=JOe(e,t,[i.width,i.height,i.width/i.height]),y=a[0],S=a[1],T=a[2],x=a[3],w=a[4],O=r.ctx.createPattern(r.resizeImage(i,x,w),"repeat"),r.renderRepeat(y,O,S,T)),[3,6];case 5:!function(e){return 1===e.type}(n)?function(e){return 2===e.type}(n)&&(A=JOe(e,t,[null,null,null]),y=A[0],v=A[1],b=A[2],x=A[3],w=A[4],k=0===n.position.length?[epe]:n.position,S=rpe(k[0],x),T=rpe(k[k.length-1],w),$=function(e,t,n,r,i){var o=0,a=0;switch(e.size){case 0:0===e.shape?o=a=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-i)):1===e.shape&&(o=Math.min(Math.abs(t),Math.abs(t-r)),a=Math.min(Math.abs(n),Math.abs(n-i)));break;case 2:if(0===e.shape)o=a=Math.min(Tpe(t,n),Tpe(t,n-i),Tpe(t-r,n),Tpe(t-r,n-i));else if(1===e.shape){var s=Math.min(Math.abs(n),Math.abs(n-i))/Math.min(Math.abs(t),Math.abs(t-r)),l=$pe(r,i,t,n,!0),c=l[0],u=l[1];a=s*(o=Tpe(c-t,(u-n)/s))}break;case 1:0===e.shape?o=a=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-i)):1===e.shape&&(o=Math.max(Math.abs(t),Math.abs(t-r)),a=Math.max(Math.abs(n),Math.abs(n-i)));break;case 3:if(0===e.shape)o=a=Math.max(Tpe(t,n),Tpe(t,n-i),Tpe(t-r,n),Tpe(t-r,n-i));else if(1===e.shape){s=Math.max(Math.abs(n),Math.abs(n-i))/Math.max(Math.abs(t),Math.abs(t-r));var h=$pe(r,i,t,n,!1);c=h[0],u=h[1],a=s*(o=Tpe(c-t,(u-n)/s))}}return Array.isArray(e.size)&&(o=rpe(e.size[0],r),a=2===e.size.length?rpe(e.size[1],i):o),[o,a]}(n,S,T,x,w),_=$[0],C=$[1],_>0&&C>0&&(Q=r.ctx.createRadialGradient(v+S,b+T,0,v+S,b+T,_),kpe(n.stops,2*_).forEach(function(e){return Q.addColorStop(e.stop,dpe(e.color))}),r.path(y),r.ctx.fillStyle=Q,_!==C?(P=e.bounds.left+.5*e.bounds.width,E=e.bounds.top+.5*e.bounds.height,B=1/(R=C/_),r.ctx.save(),r.ctx.translate(P,E),r.ctx.transform(1,0,0,R,0,0),r.ctx.translate(-P,-E),r.ctx.fillRect(v,B*(b-E)+E,x,w*B),r.ctx.restore()):r.ctx.fill())):(s=JOe(e,t,[null,null,null]),y=s[0],S=s[1],T=s[2],x=s[3],w=s[4],l=Spe(n.angle,x,w),c=l[0],u=l[1],h=l[2],d=l[3],p=l[4],(f=document.createElement("canvas")).width=x,f.height=w,g=f.getContext("2d"),m=g.createLinearGradient(u,d,h,p),kpe(n.stops,c).forEach(function(e){return m.addColorStop(e.stop,dpe(e.color))}),g.fillStyle=m,g.fillRect(0,0,x,w),x>0&&w>0&&(O=r.ctx.createPattern(f,"repeat"),r.renderRepeat(y,O,S,T))),I.label=6;case 6:return t--,[2]}})},r=this,i=0,o=e.styles.backgroundImage.slice(0).reverse(),s.label=1;case 1:return i<o.length?(a=o[i],[5,n(a)]):[3,4];case 2:s.sent(),s.label=3;case 3:return i++,[3,1];case 4:return[2]}})})},t.prototype.renderSolidBorder=function(e,t,n){return nhe(this,0,void 0,function(){return rhe(this,function(r){return this.path(YOe(n,t)),this.ctx.fillStyle=dpe(e),this.ctx.fill(),[2]})})},t.prototype.renderDoubleBorder=function(e,t,n,r){return nhe(this,0,void 0,function(){var i,o;return rhe(this,function(a){switch(a.label){case 0:return t<3?[4,this.renderSolidBorder(e,n,r)]:[3,2];case 1:return a.sent(),[2];case 2:return i=function(e,t){switch(t){case 0:return GOe(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return GOe(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return GOe(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);default:return GOe(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}}(r,n),this.path(i),this.ctx.fillStyle=dpe(e),this.ctx.fill(),o=function(e,t){switch(t){case 0:return GOe(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return GOe(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return GOe(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);default:return GOe(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}}(r,n),this.path(o),this.ctx.fill(),[2]}})})},t.prototype.renderNodeBackgroundAndBorders=function(e){return nhe(this,0,void 0,function(){var t,n,r,i,o,a,s,l,c=this;return rhe(this,function(u){switch(u.label){case 0:return this.applyEffects(e.getEffects(2)),t=e.container.styles,n=!hpe(t.backgroundColor)||t.backgroundImage.length,r=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],i=uAe(rAe(t.backgroundClip,0),e.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(i),this.ctx.clip(),hpe(t.backgroundColor)||(this.ctx.fillStyle=dpe(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:u.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(t){c.ctx.save();var n=DOe(e.curves),r=t.inset?0:1e4,i=function(e,t,n,r,i){return e.map(function(e,o){switch(o){case 0:return e.add(t,n);case 1:return e.add(t+r,n);case 2:return e.add(t+r,n+i);case 3:return e.add(t,n+i)}return e})}(n,-r+(t.inset?1:-1)*t.spread.number,(t.inset?1:-1)*t.spread.number,t.spread.number*(t.inset?-2:2),t.spread.number*(t.inset?-2:2));t.inset?(c.path(n),c.ctx.clip(),c.mask(i)):(c.mask(n),c.ctx.clip(),c.path(i)),c.ctx.shadowOffsetX=t.offsetX.number+r,c.ctx.shadowOffsetY=t.offsetY.number,c.ctx.shadowColor=dpe(t.color),c.ctx.shadowBlur=t.blur.number,c.ctx.fillStyle=t.inset?dpe(t.color):"rgba(0,0,0,1)",c.ctx.fill(),c.ctx.restore()}),u.label=2;case 2:o=0,a=0,s=r,u.label=3;case 3:return a<s.length?0!==(l=s[a]).style&&!hpe(l.color)&&l.width>0?2!==l.style?[3,5]:[4,this.renderDashedDottedBorder(l.color,l.width,o,e.curves,2)]:[3,11]:[3,13];case 4:return u.sent(),[3,11];case 5:return 3!==l.style?[3,7]:[4,this.renderDashedDottedBorder(l.color,l.width,o,e.curves,3)];case 6:return u.sent(),[3,11];case 7:return 4!==l.style?[3,9]:[4,this.renderDoubleBorder(l.color,l.width,o,e.curves)];case 8:return u.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,o,e.curves)];case 10:u.sent(),u.label=11;case 11:o++,u.label=12;case 12:return a++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(e,t,n,r,i){return nhe(this,0,void 0,function(){var o,a,s,l,c,u,h,d,p,f,g,m,O,A,y,v;return rhe(this,function(b){return this.ctx.save(),o=function(e,t){switch(t){case 0:return ZOe(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return ZOe(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return ZOe(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);default:return ZOe(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}}(r,n),a=YOe(r,n),2===i&&(this.path(a),this.ctx.clip()),BOe(a[0])?(s=a[0].start.x,l=a[0].start.y):(s=a[0].x,l=a[0].y),BOe(a[1])?(c=a[1].end.x,u=a[1].end.y):(c=a[1].x,u=a[1].y),h=0===n||2===n?Math.abs(s-c):Math.abs(l-u),this.ctx.beginPath(),3===i?this.formatPath(o):this.formatPath(a.slice(0,2)),d=t<3?3*t:2*t,p=t<3?2*t:t,3===i&&(d=t,p=t),f=!0,h<=2*d?f=!1:h<=2*d+p?(d*=g=h/(2*d+p),p*=g):(m=Math.floor((h+p)/(d+p)),O=(h-m*d)/(m-1),p=(A=(h-(m+1)*d)/m)<=0||Math.abs(p-O)<Math.abs(p-A)?O:A),f&&(3===i?this.ctx.setLineDash([0,d+p]):this.ctx.setLineDash([d,p])),3===i?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=2*t+1.1,this.ctx.strokeStyle=dpe(e),this.ctx.stroke(),this.ctx.setLineDash([]),2===i&&(BOe(a[0])&&(y=a[3],v=a[0],this.ctx.beginPath(),this.formatPath([new POe(y.end.x,y.end.y),new POe(v.start.x,v.start.y)]),this.ctx.stroke()),BOe(a[1])&&(y=a[1],v=a[2],this.ctx.beginPath(),this.formatPath([new POe(y.end.x,y.end.y),new POe(v.start.x,v.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},t.prototype.render=function(e){return nhe(this,0,void 0,function(){var t;return rhe(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=dpe(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=function(e){var t=new VOe(e,null),n=new qOe(t),r=[];return WOe(t,n,n,r),jOe(t.container,r),n}(e),[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},t}(sAe),cAe=function(e){return e instanceof Ome||e instanceof mme||e instanceof gme&&e.type!==dme&&e.type!==hme},uAe=function(e,t){switch(e){case 0:return DOe(t);case 2:return function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]}(t);default:return MOe(t)}},hAe=function(e){switch(e){case 1:return"center";case 2:return"right";default:return"left"}},dAe=["-apple-system","system-ui"],pAe=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(e){return-1===dAe.indexOf(e)}):e},fAe=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),r}return ehe(t,e),t.prototype.render=function(e){return nhe(this,0,void 0,function(){var t,n;return rhe(this,function(r){switch(r.label){case 0:return t=qge(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,gAe(t)];case 1:return n=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=dpe(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},t}(sAe),gAe=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))})},mAe=function(){function e(e){var t=e.id,n=e.enabled;this.id=t,this.enabled=n,this.start=Date.now()}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&"function"==typeof console.debug||this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&typeof window<"u"&&window.console&&console.info},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&"function"==typeof console.warn||this.info.apply(this,e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&"function"==typeof console.error||this.info.apply(this,e))},e.instances={},e}(),OAe=function(){function e(t,n){var r;this.windowBounds=n,this.instanceName="#"+e.instanceCount++,this.logger=new mAe({id:this.instanceName,enabled:t.logging}),this.cache=null!==(r=t.cache)&&void 0!==r?r:new xOe(this,t)}return e.instanceCount=1,e}(),AAe=function(e,t){return void 0===t&&(t={}),yAe(e,t)};typeof window<"u"&&bOe.setContext(window);var yAe=function(e,t){return nhe(void 0,0,void 0,function(){var n,r,i,o,a,s,l,c,u,h,d,p,f,g,m,O,A,y,v,b,x,w,k,S,T,$,_,C,Q,P,E,R,B,I,L,D,M,N;return rhe(this,function(X){switch(X.label){case 0:if(!e||"object"!=typeof e)return[2,Promise.reject("Invalid element provided as first argument")];if(!(n=e.ownerDocument))throw new Error("Element is not attached to a Document");if(!(r=n.defaultView))throw new Error("Document is not attached to a Window");return i={allowTaint:null!==(w=t.allowTaint)&&void 0!==w&&w,imageTimeout:null!==(k=t.imageTimeout)&&void 0!==k?k:15e3,proxy:t.proxy,useCORS:null!==(S=t.useCORS)&&void 0!==S&&S},o=the({logging:null===(T=t.logging)||void 0===T||T,cache:t.cache},i),a={windowWidth:null!==($=t.windowWidth)&&void 0!==$?$:r.innerWidth,windowHeight:null!==(_=t.windowHeight)&&void 0!==_?_:r.innerHeight,scrollX:null!==(C=t.scrollX)&&void 0!==C?C:r.pageXOffset,scrollY:null!==(Q=t.scrollY)&&void 0!==Q?Q:r.pageYOffset},s=new ihe(a.scrollX,a.scrollY,a.windowWidth,a.windowHeight),l=new OAe(o,s),c=null!==(P=t.foreignObjectRendering)&&void 0!==P&&P,u={allowTaint:null!==(E=t.allowTaint)&&void 0!==E&&E,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:c,copyStyles:c},l.logger.debug("Starting document clone with size "+s.width+"x"+s.height+" scrolled to "+-s.left+","+-s.top),h=new oOe(l,e,u),(d=h.clonedReferenceElement)?[4,h.toIFrame(n,s)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return p=X.sent(),f=Rme(d)||function(e){return"HTML"===e.tagName}(d)?function(e){var t=e.body,n=e.documentElement;if(!t||!n)throw new Error("Unable to get document size");var r=Math.max(Math.max(t.scrollWidth,n.scrollWidth),Math.max(t.offsetWidth,n.offsetWidth),Math.max(t.clientWidth,n.clientWidth)),i=Math.max(Math.max(t.scrollHeight,n.scrollHeight),Math.max(t.offsetHeight,n.offsetHeight),Math.max(t.clientHeight,n.clientHeight));return new ihe(0,0,r,i)}(d.ownerDocument):ohe(l,d),g=f.width,m=f.height,O=f.left,A=f.top,y=vAe(l,d,t.backgroundColor),v={canvas:t.canvas,backgroundColor:y,scale:null!==(B=null!==(R=t.scale)&&void 0!==R?R:r.devicePixelRatio)&&void 0!==B?B:1,x:(null!==(I=t.x)&&void 0!==I?I:0)+O,y:(null!==(L=t.y)&&void 0!==L?L:0)+A,width:null!==(D=t.width)&&void 0!==D?D:Math.ceil(g),height:null!==(M=t.height)&&void 0!==M?M:Math.ceil(m)},c?(l.logger.debug("Document cloned, using foreign object rendering"),[4,new fAe(l,v).render(d)]):[3,3];case 2:return b=X.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+O+","+A+" with size "+g+"x"+m+" using computed rendering"),l.logger.debug("Starting DOM parsing"),x=xme(l,d),y===x.styles.backgroundColor&&(x.styles.backgroundColor=vpe.TRANSPARENT),l.logger.debug("Starting renderer for element at "+v.x+","+v.y+" with size "+v.width+"x"+v.height),[4,new lAe(l,v).render(x)];case 4:b=X.sent(),X.label=5;case 5:return(!(null!==(N=t.removeContainer)&&void 0!==N)||N)&&(oOe.destroy(p)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,b]}})})},vAe=function(e,t,n){var r=t.ownerDocument,i=r.documentElement?ype(e,getComputedStyle(r.documentElement).backgroundColor):vpe.TRANSPARENT,o=r.body?ype(e,getComputedStyle(r.body).backgroundColor):vpe.TRANSPARENT,a="string"==typeof n?ype(e,n):null===n?vpe.TRANSPARENT:4294967295;return t===r.documentElement?hpe(i)?hpe(o)?a:o:i:a};const bAe=Object.freeze(Object.defineProperty({__proto__:null,default:AAe},Symbol.toStringTag,{value:"Module"}));function xAe(e){let t=!1;if("object"==typeof e.type){const n=e.type;t="TaskListContextMenu"===n.name||"TaskListContextMenu"===n.__name||void 0!==n.__file&&n.__file.includes("TaskListContextMenu")}if(!t)return null;const n=e.props||{},r=e.children,i=null==r?void 0:r.default;return i?{defaultSlot:i,taskType:n.taskType||n["task-type"]}:null}function wAe(e){const t=Wu(()=>function(e){var t;const n=null==(t=e.default)?void 0:t.call(e);if(!n||!Array.isArray(n))return null;const r=e=>{for(const t of e){if(!t)continue;if("symbol"==typeof t.type){if(t.children&&Array.isArray(t.children)){const e=r(t.children);if(e)return e}continue}const e=xAe(t);if(e)return e;if(t.children&&Array.isArray(t.children)){const e=r(t.children);if(e)return e}}return null};return r(n)}(e)),n=Wu(()=>!!t.value);return{declarativeContextMenu:t,hasDeclarativeContextMenu:n}}function kAe(e){let t=!1;if("object"==typeof e.type){const n=e.type;t="TaskBarContextMenu"===n.name||"TaskBarContextMenu"===n.__name||void 0!==n.__file&&n.__file.includes("TaskBarContextMenu")}if(!t)return null;const n=e.props||{},r=e.children,i=null==r?void 0:r.default;return i?{defaultSlot:i,taskType:n.taskType||n["task-type"]}:null}function SAe(e){const t=Wu(()=>function(e){var t;const n=null==(t=e.default)?void 0:t.call(e);if(!n||!Array.isArray(n))return null;const r=e=>{for(const t of e){if(!t)continue;if("symbol"==typeof t.type){if(t.children&&Array.isArray(t.children)){const e=r(t.children);if(e)return e}continue}const e=kAe(t);if(e)return e;if(t.children&&Array.isArray(t.children)){const e=r(t.children);if(e)return e}}return null};return r(n)}(e)),n=Wu(()=>!!t.value);return{declarativeContextMenu:t,hasDeclarativeContextMenu:n}}const TAe={class:"gantt-body"},$Ae=["title"],_Ae={width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},CAe={key:0,points:"15,18 9,12 15,6"},QAe={key:1,points:"9,18 15,12 9,6"},PAe={class:"close-text"},EAe=Ns({__name:"GanttChart",props:{tasks:{default:()=>[]},milestones:{default:()=>[]},resources:{default:()=>[]},viewMode:{default:"task"},useDefaultDrawer:{type:Boolean,default:!0},useDefaultMilestoneDialog:{type:Boolean,default:!0},toolbarConfig:{default:()=>({})},showToolbar:{type:Boolean,default:!0},onTodayLocate:{type:Function,default:void 0},onExportCsv:{type:Function,default:void 0},onExportPdf:{type:Function,default:void 0},onLanguageChange:{type:Function,default:void 0},onThemeChange:{type:Function,default:void 0},onFullscreenChange:{type:Function,default:void 0},onSettingsConfirm:{type:Function,default:void 0},onExpandAll:{type:Function,default:void 0},onCollapseAll:{type:Function,default:void 0},localeMessages:{default:void 0},workingHours:{default:()=>({morning:{start:8,end:11},afternoon:{start:13,end:17}})},taskListConfig:{default:void 0},resourceListConfig:{default:void 0},taskListColumnRenderMode:{default:"default"},taskBarConfig:{default:void 0},autoSortByStartDate:{type:Boolean,default:!1},allowDragAndResize:{type:Boolean,default:!0},enableTaskRowMove:{type:Boolean,default:!1},assigneeOptions:{default:()=>[]},taskListRowClassName:{type:[String,Function],default:void 0},taskListRowStyle:{type:[Boolean,null,String,Object,Array,Function],default:void 0},enableTaskListContextMenu:{type:Boolean,default:!0},enableTaskBarContextMenu:{type:Boolean,default:!0},enableLinkAnchor:{type:Boolean,default:!0},enableTaskBarTooltip:{type:Boolean,default:!0},enableMilestoneTooltip:{type:Boolean,default:!0},showActualTaskbar:{type:Boolean,default:!1},showConflicts:{type:Boolean,default:!0},showTaskbarTab:{type:Boolean,default:!0},pendingTaskBackgroundColor:{},delayTaskBackgroundColor:{},completeTaskBackgroundColor:{},ongoingTaskBackgroundColor:{},fullscreen:{type:Boolean,default:!1},expandAll:{type:Boolean,default:!0},locale:{default:"zh-CN"},timeScale:{default:"week"},theme:{default:void 0},enableTaskListCollapsible:{type:Boolean,default:!0},taskListVisible:{type:Boolean,default:!0},enableTaskDrawerAutoClose:{type:Boolean,default:!0},scaleConfigs:{default:void 0},rowHeight:{default:51},enableParentTaskAutoSchedule:{type:Boolean,default:!0}},emits:["task-click","task-double-click","taskbar-drag-end","taskbar-resize-end","milestone-drag-end","milestone-double-click","timer-started","timer-stopped","predecessor-added","successor-added","task-deleted","task-added","task-updated","task-collapse-change","link-deleted","view-mode-changed","add-task","add-milestone","milestone-saved","milestone-deleted","milestone-icon-changed","add-predecessor","add-successor","task-row-moved","taskbar-resource-change","resource-drag-end"],setup(e,{expose:t,emit:n}){const r=e,i=n,o=ia(),a=ia(null),{showMessage:s}=$ne(),l=Fl(),c=ia(r.viewMode||"task"),u=Wu(()=>"resource"===c.value?r.resources:r.tasks),h=Wu(()=>"resource"===c.value?r.resourceListConfig:r.taskListConfig);ts("gantt-view-mode",c),ts("gantt-data-source",u),ts("gantt-list-config",h),ts("gantt-show-conflicts",Wu(()=>r.showConflicts)),ts("gantt-show-taskbar-tab",Wu(()=>r.showTaskbarTab)),ts("gantt-row-height",Wu(()=>Math.min(60,Math.max(30,r.rowHeight??51))));const d=new Map,p=new Map,f=e=>e.map(e=>`${e.id}-${e.startDate||""}-${e.endDate||""}`).join("|"),g=Wu(()=>{const e=new Map;if("resource"===c.value){const t=u.value,n=Math.min(60,Math.max(30,r.rowHeight??51));if(U.value>=0){const r=q.value;r.size>0&&r.size<.3*t.length?(d.forEach((t,n)=>{e.set(n,t.layout)}),r.forEach(r=>{const i=t.find(e=>String(e.id)===String(r));if(!i)return;const o=String(i.id),a=i.tasks||[];if(0===a.length)return e.set(o,{taskRowMap:new Map,rowHeights:[n],totalHeight:n}),void d.set(o,{layout:e.get(o),hash:""});const s=f(a),l=`${Y.value}:${s}`,c=d.get(o);if(c&&c.hash===l)e.set(o,c.layout);else{const t=voe(a,n,Y.value);e.set(o,t),d.set(o,{layout:t,hash:l})}})):t.forEach(t=>{const r=String(t.id),i=t.tasks||[];if(0===i.length)return void e.set(r,{taskRowMap:new Map,rowHeights:[n],totalHeight:n});const o=f(i),a=`${Y.value}:${o}`,s=d.get(r);if(s&&s.hash===a)e.set(r,s.layout);else{const t=voe(i,n,Y.value);e.set(r,t),d.set(r,{layout:t,hash:a})}})}}return e}),m=Wu(()=>{const e=new Map;if("resource"===c.value){const t=u.value;let n=0;t.forEach(t=>{const i=String(t.id);e.set(i,n);const o=g.value.get(i),a=(null==o?void 0:o.totalHeight)||Math.min(60,Math.max(30,r.rowHeight??51));n+=a})}return e}),O=Wu(()=>{if("resource"!==c.value)return new Map;const e=u.value,t=new Map;if(U.value>=0){const n=q.value;n.size>0&&n.size<.3*e.length?(p.forEach((e,n)=>{e.conflicts.size>0&&t.set(n,e.conflicts)}),n.forEach(n=>{const r=e.find(e=>String(e.id)===String(n));if(!r)return;const i=r.tasks||[];if(i.length<2)return;const o=String(r.id),a=f(i),s=`${Y.value}:${a}`,l=p.get(o);if(l&&l.hash===s)l.conflicts.size>0&&t.set(o,l.conflicts);else{const e=d7(i,r.id,Y.value);if(e.length>0){const n=new Set;e.forEach(e=>{e.tasks.forEach(e=>{n.add(e.id)})}),n.size>0&&t.set(o,n),p.set(o,{conflicts:n,hash:s})}else p.set(o,{conflicts:new Set,hash:s})}})):e.forEach(e=>{const n=e.tasks||[];if(n.length<2)return;const r=String(e.id),i=f(n),o=`${Y.value}:${i}`,a=p.get(r);if(a&&a.hash===o)a.conflicts.size>0&&t.set(r,a.conflicts);else{const i=d7(n,e.id,Y.value);if(i.length>0){const e=new Set;i.forEach(t=>{t.tasks.forEach(t=>{e.add(t.id)})}),e.size>0&&t.set(r,e),p.set(r,{conflicts:e,hash:o})}else p.set(r,{conflicts:new Set,hash:o})}})}return t});ts("resourceTaskLayouts",g),ts("resourceRowPositions",m),ts("resourceConflicts",O),ts("gantt-column-slots",l),ts("gantt-has-taskbar-tooltip-slot",Wu(()=>!!l["taskbar-tooltip"])),ts("enable-task-list-context-menu",Wu(()=>r.enableTaskListContextMenu)),ts("enable-task-bar-context-menu",Wu(()=>r.enableTaskBarContextMenu)),ts("enable-link-anchor",Wu(()=>r.enableLinkAnchor));const A=()=>typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",y=ia("light");ts("gantt-theme",y);const{hasDeclarativeContextMenu:v,declarativeContextMenu:b}=wAe(l),{hasDeclarativeContextMenu:x,declarativeContextMenu:w}=SAe(l);ts("task-list-context-menu-slot",Wu(()=>v.value)),ts("declarative-task-list-context-menu",b);ts("task-bar-context-menu-slot",Wu(()=>x.value)),ts("declarative-task-bar-context-menu",w);const k=ia(1920),S=async()=>{await Na(),R.value=C(),E.value=Q(),I.value=Q(),L.value=Q(),B.value=C();const e=M(D.value);e!==D.value&&(D.value=e)},T=()=>{if(o.value){const e=o.value.clientWidth;e!==k.value&&(k.value=e,S())}},$=((e,t)=>{let n=0,r=null;return(...i)=>{const o=Date.now(),a=t-(o-n);r&&clearTimeout(r),a<=0?(n=o,e(...i)):r=window.setTimeout(()=>{n=Date.now(),e(...i),r=null},a)}})(T,100);gl(()=>{T(),S(),window.addEventListener("resize",$),Na(()=>{if(o.value){const e=r.theme??A();o.value.setAttribute("data-theme",e),y.value=e}})}),yl(()=>{window.removeEventListener("resize",$)});const _=()=>{var e;let t;if("declarative"===r.taskListColumnRenderMode)t=B8(l);else{const n=null==(e=r.taskListConfig)?void 0:e.columns;if(!n||0===n.length)return null;t=n.filter(e=>!1!==e.visible)}if(0===t.length||t.some(e=>null==e.width))return null;let n=0,i=0;for(const r of t){const e=r.width;if("number"==typeof e)n+=e;else{const t=e.trim();if(t.endsWith("%"))i+=parseFloat(t)/100;else{const e=parseFloat(t);if(isNaN(e))return null;n+=e}}}return i>=1?null:i>0?Math.round(n/(1-i)):n},C=()=>{var e;const t=C8(null==(e=r.taskListConfig)?void 0:e.minWidth,k.value,280),n=Math.max(t,280),i=_();return null!==i&&n>=i?i:n},Q=()=>{var e,t;const n=C8(null==(e=r.taskListConfig)?void 0:e.maxWidth,k.value,1160),i=(null==(t=a.value)?void 0:t.getHeaderScrollWidth())??null;if(null!==i&&i>0)return Math.min(n,i);const o=_();return null!==o?Math.min(n,o):n},P=()=>{var e;return C8(null==(e=r.taskListConfig)?void 0:e.defaultWidth,k.value,320)},E=ia(Q()),R=ia(C()),B=ia(C()),I=ia(Q()),L=ia(Q()),D=ia(P());ts("gantt-task-list-width",D);const M=e=>e<R.value?R.value:e>L.value?L.value:Math.max(R.value,e);cs(()=>r.taskListConfig,e=>{e&&(void 0!==e.defaultWidth&&(D.value=P()),S())},{immediate:!1,deep:!0});const N=oa("declarative"===r.taskListColumnRenderMode?B8(l).map(e=>`${e.width??"?"}`).join(","):null);cs(()=>"declarative"!==r.taskListColumnRenderMode?null:l.default??null,()=>{if("declarative"!==r.taskListColumnRenderMode)return void(N.value=null);const e=B8(l);N.value=e.map(e=>`${e.width??"?"}`).join(",")}),cs(N,()=>{null!==N.value&&S()});const X=ia(null),F=ia(0),U=ia(0),z=ia(null),q=ia(new Set),V=()=>{z.value=null,q.value=new Set,U.value++},W=new Map,j=(e,t)=>{W.clear();const n=e=>{for(const t of e)t.children&&t.children.length>0&&(W.set(t.id,{startDate:t.startDate||"",endDate:t.endDate||""}),n(t.children))};e&&n(e)};r.tasks&&j(r.tasks),cs(()=>r.tasks,e=>{e&&j(e),V(),!1===r.expandAll&&Na(()=>ge())}),cs(()=>r.enableParentTaskAutoSchedule,(e,t)=>{if(!1!==t&&!1===e&&r.tasks){const e=t=>{for(const n of t)if(n.children&&n.children.length>0){const t=W.get(n.id);t&&(n.startDate=t.startDate,n.endDate=t.endDate),e(n.children)}};e(r.tasks),V()}}),cs(()=>r.resources,()=>{V()}),cs(()=>{var e;return null==(e=r.resources)?void 0:e.map(e=>e.tasks.length)},()=>{V()});const Y=ia(F8.DAY),Z=Wu(()=>{if(!r.scaleConfigs)return U8;const e={};for(const t of Object.keys(U8)){const n=r.scaleConfigs[t];if(n){const r=U8[t],i=n.cellWidth??r.cellWidth,o=Math.min(r.maxCellWidth??1/0,Math.max(r.minCellWidth??0,i));e[t]={...r,cellWidth:o,...null!=n.preBuffer?{preBuffer:n.preBuffer}:{},...null!=n.sufBuffer?{sufBuffer:n.sufBuffer}:{},formatters:n.formatter?{...r.formatters,...n.formatter}:r.formatters,headerLevels:2}}else e[t]=U8[t]}return e}),G=e=>{c.value!==e&&(c.value=e,i("view-mode-changed",e))};cs(()=>r.viewMode,e=>{e&&c.value!==e&&(c.value=e,i("view-mode-changed",e))}),cs(c,()=>{S()});const H=Wu(()=>{var e;return null!=(null==(e=X.value)?void 0:e.highlightedTaskId)});cs(()=>X.value,e=>{e&&e.updateTimeScale(Y.value)},{once:!0});const K=ia(!1);ts("isSplitBarDragging",K);const J=ia(!1);function ee(e){if(e.target.closest(".task-list-toggle"))return;e.preventDefault(),e.stopPropagation(),K.value=!0;const t=e.clientX,n=D.value,r=document.querySelector(".task-list-body");if(!r)return;const i=r.getBoundingClientRect();E.value=i.width,I.value=.8*window.innerWidth-6,L.value=Math.min(I.value,L.value),window.dispatchEvent(new CustomEvent("splitter-drag-start")),document.body.style.userSelect="none",document.body.style.webkitUserSelect="none",document.body.style.cursor="col-resize",document.body.style.pointerEvents="none";const o=e=>{"mousemove"!==e.type&&"mouseup"!==e.type&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation())};document.addEventListener("mousedown",o,{capture:!0}),document.addEventListener("click",o,{capture:!0}),document.addEventListener("dblclick",o,{capture:!0}),document.addEventListener("mouseover",o,{capture:!0}),document.addEventListener("mouseout",o,{capture:!0}),document.addEventListener("mouseenter",o,{capture:!0}),document.addEventListener("mouseleave",o,{capture:!0}),document.addEventListener("wheel",o,{capture:!0,passive:!1}),document.addEventListener("contextmenu",o,{capture:!0});let a=null,s=null;function l(e){if(!K.value)return;e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();const r=e.clientX-t;s=M(n+r),null===a&&(a=requestAnimationFrame(()=>{null!==s&&(D.value=s,s=null),a=null}))}window.addEventListener("mousemove",l),window.addEventListener("mouseup",function e(){K.value=!1,null!==a&&(cancelAnimationFrame(a),a=null,null!==s&&(D.value=s,s=null)),document.removeEventListener("mousedown",o,{capture:!0}),document.removeEventListener("click",o,{capture:!0}),document.removeEventListener("dblclick",o,{capture:!0}),document.removeEventListener("mouseover",o,{capture:!0}),document.removeEventListener("mouseout",o,{capture:!0}),document.removeEventListener("mouseenter",o,{capture:!0}),document.removeEventListener("mouseleave",o,{capture:!0}),document.removeEventListener("wheel",o,{capture:!0}),document.removeEventListener("contextmenu",o,{capture:!0}),window.dispatchEvent(new CustomEvent("splitter-drag-end")),document.body.style.userSelect="",document.body.style.webkitUserSelect="",document.body.style.cursor="",document.body.style.pointerEvents="",E.value=Q(),R.value=C(),I.value=Q(),L.value=Q(),B.value=C(),window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",e)})}ts("isTaskListToggling",J);const te=ia(!!r.enableTaskListCollapsible&&(r.taskListVisible??!0));cs(()=>r.taskListVisible,e=>{r.enableTaskListCollapsible&&(te.value=e??!0)}),cs(()=>r.enableTaskListCollapsible,e=>{te.value=!!e&&(r.taskListVisible??!0)});const ne=ia(!1),re=ia(""),ie=()=>{r.enableTaskListCollapsible&&(ne.value||(J.value=!0,ne.value=!0,te.value?re.value="impact-left":re.value="impact-right",setTimeout(()=>{te.value=!te.value},200),setTimeout(()=>{ne.value=!1,re.value="",J.value=!1,Na(()=>{window.dispatchEvent(new CustomEvent("timeline-container-resized",{detail:{source:"manual-task-list-toggle"}}))})},400)))},oe=e=>{J.value=!0,te.value=e.detail,Na(()=>{J.value=!1,window.dispatchEvent(new CustomEvent("timeline-container-resized",{detail:{source:"task-list-toggle"}}))})};function ae(e){const t=e.detail;yt(t,!0),U.value++,i("taskbar-drag-end",t)}function se(e){const t=e.detail;yt(t,!0),U.value++,i("taskbar-resize-end",t)}function le(e){const t=e.detail;U.value++,i("milestone-drag-end",t)}let ce=null;gl(()=>{window.addEventListener("taskbar-drag-end",ae),window.addEventListener("taskbar-resize-end",se),window.addEventListener("milestone-drag-end",le),Na(()=>{const e=document.querySelector(".gantt-body");e&&(F.value=e.clientWidth,ce=new ResizeObserver(e=>{for(const t of e)F.value=t.contentRect.width}),ce.observe(e))})}),yl(()=>{window.removeEventListener("taskbar-drag-end",ae),window.removeEventListener("taskbar-resize-end",se),window.removeEventListener("milestone-drag-end",le),ce&&(ce.disconnect(),ce=null)});const ue=e=>{const t=(e,n,r)=>{for(const i of e){if(i.id===n)return i.collapsed=r,!0;if(i.children&&i.children.length>0&&t(i.children,n,r))return!0}return!1};r.tasks&&t(r.tasks,e.id,e.collapsed??!1),U.value++,i("task-collapse-change",e)},he=()=>{if(r.onExpandAll&&"function"==typeof r.onExpandAll)r.onExpandAll();else{const e=t=>{t.forEach(t=>{t.children&&t.children.length>0&&(t.collapsed=!1,e(t.children))})};r.tasks&&(e(r.tasks),U.value++)}},de=e=>{const{draggedTask:t,targetTask:n,position:o}=e;if(!r.tasks)return;const a=Ooe(r.tasks,t.id,n.id,o);a&&(U.value++,Na(()=>{window.dispatchEvent(new CustomEvent("task-updated",{detail:a.movedTask}))}),i("task-row-moved",{draggedTask:a.movedTask,targetTask:n,position:o,oldParent:a.oldParent,newParent:a.newParent}))},pe=()=>{if(r.onCollapseAll&&"function"==typeof r.onCollapseAll)r.onCollapseAll();else{const e=t=>{t.forEach(t=>{t.children&&t.children.length>0&&(t.collapsed=!0,e(t.children))})};r.tasks&&(e(r.tasks),U.value++)}},fe=()=>{he()},ge=()=>{pe()},me=()=>{if(!r.tasks||0===r.tasks.length)return!0;const e=t=>{for(const n of t)if(n.children&&n.children.length>0&&(n.collapsed||!e(n.children)))return!1;return!0};return e(r.tasks)};cs(()=>r.expandAll,e=>{void 0!==e&&(e?fe():ge())},{immediate:!0});const Oe=()=>{const e=[],t=n=>{n.forEach(n=>{e.push(n),n.children&&n.children.length>0&&t(n.children)})};r.tasks&&t(r.tasks),r.milestones&&e.push(...r.milestones),window.dispatchEvent(new CustomEvent("task-list-updated",{detail:e}))};cs([()=>r.tasks,()=>r.milestones],()=>{Na(()=>{Oe()})},{immediate:!0}),gl(()=>{window.addEventListener("toggle-task-list",oe),window.addEventListener("fullscreen-toggle",Me),window.addEventListener("milestone-icon-changed",Ue),window.addEventListener("milestone-deleted",ze),window.addEventListener("milestone-data-changed",qe),window.addEventListener("request-task-list",Oe),window.addEventListener("resize",Ze),window.addEventListener("context-menu",at),Na(()=>{X.value&&"function"==typeof X.value.scrollToTodayCenter&&X.value.scrollToTodayCenter()})}),yl(()=>{K.value=!1,window.removeEventListener("toggle-task-list",oe),window.removeEventListener("fullscreen-toggle",Me),window.removeEventListener("milestone-icon-changed",Ue),window.removeEventListener("milestone-deleted",ze),window.removeEventListener("milestone-data-changed",qe),window.removeEventListener("request-task-list",Oe),window.removeEventListener("resize",Ze),window.removeEventListener("context-menu",at)});const Ae=e=>{const t=e||"dark";y.value=t,o.value&&o.value.setAttribute("data-theme",t)};if(cs(()=>r.theme,e=>{if(!o.value)return;const t=e??A();t!==y.value&&Ae(t)}),typeof window<"u"&&window.matchMedia){const e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>{if(!r.theme){const t=e.matches?"dark":"light";Ae(t)}};e.addEventListener("change",t),yl(()=>{e.removeEventListener("change",t)})}const ye=ia(!1),{t:ve,locale:be}=l7(),xe=Wu(()=>ve.value.collapseTaskList),we=Wu(()=>ve.value.expandTaskList),ke=Wu(()=>{U.value;const e=[];if(r.milestones&&r.milestones.length>0){const t={id:-1,name:ve.value.milestoneGroup,startDate:"",endDate:"",type:"milestone-group",children:r.milestones,isParent:!0,collapsed:!1};e.push(t)}if(r.tasks&&r.tasks.length>0)if(r.autoSortByStartDate){const t=e=>[...e].map(e=>{const n={...e};return e.children&&e.children.length>0&&(n.children=t(e.children)),n}).sort((e,t)=>{const n=e=>{if(e.children&&e.children.length>0){const t=e.children.map(e=>n(e)).filter(e=>e.getTime()>0);if(t.length>0)return new Date(Math.min(...t.map(e=>e.getTime())))}return e.startDate?new Date(e.startDate):new Date("9999-12-31")},r=n(e),i=n(t),o=r.getTime()-i.getTime();return 0!==o?o:e.id-t.id}),n=t(r.tasks);e.push(...n)}else e.push(...r.tasks);return e}),Se=Wu(()=>{U.value;const e=[];if(r.milestones&&r.milestones.length>0){const t={id:-1,name:ve.value.milestoneGroup,startDate:"",endDate:"",type:"milestone-group",children:r.milestones,isParent:!0,collapsed:!1};e.push(t)}if(r.tasks&&r.tasks.length>0){const t=e=>{const n=[],r=[];return e.forEach(e=>{if(e.startDate&&n.push(e.startDate),e.endDate&&r.push(e.endDate),e.children&&e.children.length>0){const i=t(e.children);n.push(...i.starts),r.push(...i.ends)}}),{starts:n,ends:r}},n=e=>{if(!e.children||0===e.children.length)return{startDate:e.startDate||"",endDate:e.endDate||""};const{starts:n,ends:r}=t(e.children);if(0===n.length||0===r.length)return{startDate:e.startDate||"",endDate:e.endDate||""};return{startDate:n.reduce((e,t)=>new Date(t)<new Date(e)?t:e),endDate:r.reduce((e,t)=>new Date(t)>new Date(e)?t:e)}},i=e=>e.map(e=>{if(!e.children||0===e.children.length)return e;const t=i(e.children),o="story"===e.type||!0;if(!r.enableParentTaskAutoSchedule)return{...e,children:t,isParent:o};const a={...e,children:t},{startDate:s,endDate:l}=n(a);return{...e,children:t,isParent:o,startDate:s,endDate:l}}),o=(e,t=0)=>{const n=[];return e.forEach(e=>{const r={...e,level:t};if(n.push(r),e.children&&e.children.length>0&&!e.collapsed){const r=o(e.children,t+1);n.push(...r)}}),n},a=ke.value.filter(e=>"milestone-group"!==e.type),s=i(a),l=o(s);e.push(...l)}return e}),Te=Wu(()=>(U.value,r.milestones?r.milestones.filter(e=>!!e.startDate).map(e=>({id:e.id,name:e.name,startDate:e.startDate,endDate:e.endDate,assignee:e.assignee,assigneeName:e.assigneeName,avatar:e.avatar,type:e.type||"milestone",icon:e.icon,description:e.description})):[])),$e=Wu(()=>{U.value;const e=t=>{let n=[];return t.forEach(t=>{n.push(t),t.children&&t.children.length>0&&(n=n.concat(e(t.children)))}),n};let t=[];if("resource"===c.value&&r.resources)for(const c of r.resources)c.tasks&&Array.isArray(c.tasks)&&(t=t.concat(e(c.tasks)));else r.tasks&&(t=t.concat(e(r.tasks))),r.milestones&&(t=t.concat(r.milestones));const n=t.map(e=>e.startDate).filter(Boolean).map(e=>new Date(e)),i=t.map(e=>e.endDate).filter(Boolean).map(e=>new Date(e));if(0===n.length||0===i.length){const e=new Date;return{min:new Date(e.getFullYear(),e.getMonth()-6,1),max:new Date(e.getFullYear(),e.getMonth()+6+1,0)}}const o=new Date(Math.min(...n.map(e=>e.getTime()))),a=new Date(Math.max(...i.map(e=>e.getTime()))),s=F.value||1200,l=Z.value[Y.value].cellWidth,u=Math.ceil(s/l),h=Z.value[Y.value],d=_e(h.preBuffer),p=_e(h.sufBuffer),{min:f,max:g}=function(e,t,n,r,i,o=null,a=null){let s,l;switch(n){case F8.HOUR:{const n=null!==o?o:24,i=null!==a?a:24;s=new Date(e.getTime()-60*n*60*1e3),l=new Date(t.getTime()+60*i*60*1e3);const c=Math.ceil((l.getTime()-s.getTime())/36e5);if(c<r){const e=r-c,t=Math.ceil(e/2);s=new Date(s.getTime()-60*t*60*1e3),l=new Date(l.getTime()+60*t*60*1e3)}break}case F8.DAY:{const n=null!==o?o:15,i=null!==a?a:15,c=new Date(e);c.setDate(c.getDate()-n);const u=new Date(t);u.setDate(u.getDate()+i),s=new Date(c.getFullYear(),c.getMonth(),1),l=new Date(u.getFullYear(),u.getMonth()+1,0);const h=Math.ceil((l.getTime()-s.getTime())/864e5);if(h<r){const e=r-h,t=Math.ceil(e/30),n=s.getMonth()-t,i=s.getFullYear()+Math.floor(n/12);s=new Date(i,(n%12+12)%12,1);const o=l.getMonth()+t+1,a=l.getFullYear()+Math.floor(o/12);l=new Date(a,(o%12+12)%12,0)}break}case F8.WEEK:{const n=e=>{const t=new Date(e),n=t.getDay()||7;return t.setDate(t.getDate()-(n-1)),t},c=(e,t)=>{let r=1;for(;r<=31;){const i=new Date(e,t,r);if(i.getMonth()!==t)break;const o=n(i);if(o.getMonth()===t)return o;r++}return new Date(e,t,1)},u=(e,t)=>{for(let r=new Date(e,t+1,0).getDate();r>=1;r--){const i=new Date(e,t,r),o=n(i);if(o.getMonth()===t)return o}return new Date(e,t,1)},h=(e,t)=>{const n=[],r=c(e,t),i=u(e,t),o=new Date(r);for(;o<=i;)n.push(new Date(o)),o.setDate(o.getDate()+7);return n},d=n(e),p=d.getFullYear(),f=d.getMonth();let g;if(null!==o){const e=new Date(d);e.setDate(e.getDate()-7*o),g=[e]}else{g=h(0===f?p-1:p,0===f?11:f-1)}const m=n(t),O=m.getFullYear(),A=m.getMonth();let y;if(null!==a){const e=new Date(m);e.setDate(e.getDate()+7*a),y=[e]}else{y=h(11===A?O+1:O,11===A?0:A+1)}let v=[];v.push(...g);let b=p,x=f;for(;b<O||b===O&&x<=A;){const e=h(b,x);v.push(...e),x++,x>11&&(x=0,b++)}v.push(...y);const w=60;let k=v.length*w;for(;k<r*i;){const e=v[0],t=e.getFullYear(),n=e.getMonth();if(v=[...h(0===n?t-1:t,0===n?11:n-1),...v],k=v.length*w,k>=r*i)break;const o=v[v.length-1],a=o.getFullYear(),s=o.getMonth(),l=h(11===s?a+1:a,11===s?0:s+1);v=[...v,...l],k=v.length*w}s=new Date(v[0]),l=new Date(v[v.length-1]),l.setDate(l.getDate()+6);break}case F8.MONTH:{const n=null!==o?o:12,i=null!==a?a:12;s=new Date(e.getFullYear(),e.getMonth()-n,1),l=new Date(t.getFullYear(),t.getMonth()+i+1,0);const c=12*(l.getFullYear()-s.getFullYear())+(l.getMonth()-s.getMonth());if(c<r){const e=r-c,t=Math.ceil(e/2);s=new Date(s.getFullYear(),s.getMonth()-t,1),l=new Date(l.getFullYear(),l.getMonth()+t+1,0)}break}case F8.QUARTER:{if(null!==o||null!==a){const n=3*(null!==o?o:0),r=3*(null!==a?a:0),i=e.getMonth()-n,c=e.getFullYear()+Math.floor(i/12),u=(i%12+12)%12,h=3*Math.floor(u/3);s=new Date(c,h,1);const d=t.getMonth()+r,p=t.getFullYear()+Math.floor(d/12),f=(d%12+12)%12,g=3*Math.floor(f/3)+2;l=new Date(p,g+1,0)}else{const n=(new Date).getFullYear(),r=e.getFullYear(),i=t.getFullYear();s=new Date(Math.min(n-2,r-2),0,1),l=new Date(Math.max(n+2,i+2),11,31)}const n=4*(l.getFullYear()-s.getFullYear()+1);if(n<r){const e=r-n,t=Math.ceil(e/4),i=Math.ceil(t/2);s=new Date(s.getFullYear()-i,0,1),l=new Date(l.getFullYear()+i,11,31)}break}case F8.YEAR:{if(null!==o||null!==a){const n=null!==o?o:0,r=null!==a?a:0;s=new Date(e.getFullYear()-n,0,1),l=new Date(t.getFullYear()+r,11,31)}else{const n=(new Date).getFullYear(),r=e.getFullYear(),i=t.getFullYear();s=new Date(Math.min(n-2,r-2),0,1),l=new Date(Math.max(n+2,i+2),11,31)}const n=2*(l.getFullYear()-s.getFullYear()+1);if(n<r){const e=r-n,t=Math.ceil(e/2),i=Math.ceil(t/2);s=new Date(s.getFullYear()-i,0,1),l=new Date(l.getFullYear()+i,11,31)}break}default:s=e,l=t}return{min:s,max:l}}(o,a,Y.value,u,l,d,p);return{min:f,max:g}});function _e(e){if(null==e)return null;const t=Math.ceil(e);return t<0?null:Math.max(1,t)}const Ce=()=>{r.onExportCsv&&"function"==typeof r.onExportCsv?!1===r.onExportCsv()&&Ie():Ie()},Qe=e=>{Y.value=e,X.value&&X.value.updateTimeScale(e)},Pe=e=>{Na(()=>{const t=new CustomEvent("timeline-scale-updated",{detail:e});window.dispatchEvent(t)})},Ee=e=>{var t;Ae(e?"dark":"light"),null==(t=r.onThemeChange)||t.call(r,e)},Re=["hour","day","week","month","quarter","year"];cs(()=>r.timeScale,e=>{e&&e!==Y.value&&Qe(e)},{immediate:!0});const Be=()=>{var e;null!=(e=X.value)&&e.clearHighlight&&X.value.clearHighlight()},Ie=()=>{try{const e=[];r.tasks&&r.tasks.length>0&&e.push(...r.tasks),r.milestones&&r.milestones.length>0&&e.push(...r.milestones);const t="\ufeff"+Le(e),n=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=document.createElement("a"),o=URL.createObjectURL(n),a=`gantt-tasks-${(new Date).toISOString().split("T")[0]}.csv`;i.setAttribute("href",o),i.setAttribute("download",a),i.style.visibility="hidden",document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(o)}catch(e){s("CSV导出失败","error",{closable:!1})}},Le=e=>{const t=ve.value.csvHeaders,n=[t.id,t.taskName,t.predecessor,t.assignee,t.startDate,t.endDate,t.estimatedHours,t.actualHours,t.progress,t.type,t.description],r=e=>{if(null==e)return"";const t=String(e);return t.includes(",")||t.includes('"')||t.includes("\n")||t.includes("\r")?`"${t.replace(/"/g,'""')}"`:t},i=e=>{const t=[];return e.forEach(e=>{t.push({id:e.id,name:e.name||"",predecessor:h7(e.predecessor),assignee:e.assignee||"",startDate:e.startDate||"",endDate:e.endDate||"",estimatedHours:e.estimatedHours||"",actualHours:e.actualHours||"",progress:void 0!==e.progress?`${e.progress}%`:"",type:e.type||"",description:e.description||""}),e.children&&e.children.length>0&&t.push(...i(e.children))}),t},o=i(e);return[n.map(e=>r(e)).join(","),...o.map(e=>[r(e.id),r(e.name),r(h7(e.predecessor)),r(e.assignee),r(e.startDate),r(e.endDate),r(e.estimatedHours),r(e.actualHours),r(e.progress),r(e.type),r(e.description)].join(","))].join("\n")},De=async()=>{try{const e=ve.value.pdfExportLoading,t=ve.value.pdfExportTitle,n=ve.value.pdfExportDate,r=document.createElement("div");r.innerHTML=`\n <div style="position: fixed; top: 0; left: 0; width: 100%; height: 100%;\n background: rgba(0,0,0,0.5); display: flex; align-items: center;\n justify-content: center; z-index: 10000; color: white; font-size: 16px;">\n ${e}\n </div>\n `,document.body.appendChild(r);const i=document.querySelector(".gantt-body");if(!i)throw new Error("找不到甘特图元素");const o={overflow:i.style.overflow,height:i.style.height};i.style.overflow="visible",i.style.height="auto";const a=(new Date).toLocaleDateString(be.value),s=document.createElement("div");s.style.cssText=["position: fixed","left: -9999px","top: 0",`width: ${Math.max(i.scrollWidth,800)}px`,"background: #ffffff","padding: 10px 16px","display: flex","justify-content: space-between","align-items: center","font-family: sans-serif","box-sizing: border-box"].join("; ");const l=document.createElement("span");l.style.cssText="font-size: 20px; font-weight: bold; flex: 1; text-align: center;",l.textContent=t;const c=document.createElement("span");c.style.cssText="font-size: 12px; white-space: nowrap;",c.textContent=`${n}: ${a}`,s.appendChild(l),s.appendChild(c),document.body.appendChild(s);const[u,h]=await Promise.all([AAe(s,{allowTaint:!0,useCORS:!0,scale:2,backgroundColor:"#ffffff"}),AAe(i,{allowTaint:!0,useCORS:!0,scale:2,width:i.scrollWidth,height:i.scrollHeight,backgroundColor:"#ffffff"})]);document.body.removeChild(s),i.style.overflow=o.overflow,i.style.height=o.height;const d=u.toDataURL("image/png"),p=h.toDataURL("image/png"),f=new ace({orientation:"landscape",unit:"mm",format:"a4"}),g=f.internal.pageSize.getWidth(),m=f.internal.pageSize.getHeight(),O=u.height/u.width*g;f.addImage(d,"PNG",0,0,g,O);const A=O+2,y=m-A,v=h.height/h.width,b=Math.min(g,y/v),x=b*v,w=(g-b)/2;if(f.addImage(p,"PNG",w,A,b,x),x>y){const e=Math.ceil(x/y);for(let t=1;t<e;t++){f.addPage();const e=-t*y;f.addImage(p,"PNG",w,A+e,b,x)}}const k=`gantt-chart-${(new Date).toISOString().split("T")[0]}.pdf`;f.save(k),r&&r.parentNode&&r.parentNode.removeChild(r)}catch(e){const t=document.querySelector('[style*="position: fixed"]');t&&t.parentNode&&t.parentNode.removeChild(t),alert("PDF导出失败")}},Me=e=>{ye.value=e.detail,r.onFullscreenChange&&"function"==typeof r.onFullscreenChange&&r.onFullscreenChange(ye.value),setTimeout(()=>{window.dispatchEvent(new CustomEvent("timeline-container-resized",{detail:{source:"fullscreen-toggle"}}))},500)},Ne=()=>{ye.value||(ye.value=!0,r.onFullscreenChange&&"function"==typeof r.onFullscreenChange&&r.onFullscreenChange(!0),setTimeout(()=>{window.dispatchEvent(new CustomEvent("timeline-container-resized",{detail:{source:"fullscreen-toggle"}}))},500))},Xe=()=>{ye.value&&(ye.value=!1,r.onFullscreenChange&&"function"==typeof r.onFullscreenChange&&r.onFullscreenChange(!1),setTimeout(()=>{window.dispatchEvent(new CustomEvent("timeline-container-resized",{detail:{source:"fullscreen-toggle"}}))},500))};cs(()=>r.fullscreen,e=>{void 0!==e&&e!==ye.value&&(e?Ne():Xe())},{immediate:!0});const Fe=e=>{e.id||(e.id=Date.now()),e.type="milestone",r.milestones&&((e,t)=>{const n=e.findIndex(e=>e.id===t.id);-1!==n?e.splice(n,1,{...e[n],...t}):e.push(t)})(r.milestones,e),i("milestone-saved",e),U.value++,nt.value&&$t()},Ue=e=>{const{milestoneId:t,icon:n}=e.detail;r.milestones&&((e,t,n)=>{const r=e.findIndex(e=>e.id===t);-1!==r&&e.splice(r,1,{...e[r],icon:n})})(r.milestones,t,n),i("milestone-icon-changed",{milestoneId:t,icon:n}),U.value++},ze=()=>{U.value++},qe=()=>{U.value++,Na(()=>{})};gl(()=>{Na(()=>{X.value&&"function"==typeof X.value.scrollToTodayCenter&&X.value.scrollToTodayCenter()})});const Ve=()=>{r.onTodayLocate&&"function"==typeof r.onTodayLocate?r.onTodayLocate():X.value&&"function"==typeof X.value.scrollToTodayCenter?X.value.scrollToTodayCenter():Ye()},We=()=>{i("add-milestone"),r.useDefaultMilestoneDialog&&je()},je=()=>{rt.value=null,nt.value=!0},Ye=()=>{if(X.value&&"function"==typeof X.value.scrollToToday)return void X.value.scrollToToday();const e=new Date,t=e.getMonth(),n=e.getDate();let r=0;for(let s=0;s<t;s++)r+=new Date(e.getFullYear(),s+1,0).getDate();r+=n;const i=document.querySelector(".gantt-panel-right"),o=null==i?void 0:i.clientWidth,a=30*(r-1)-(o?o/2:200);i&&(i.scrollLeft=Math.max(0,a))};cs(()=>r.locale,e=>{if(e&&e!==be.value){const{setLocale:t}=l7();t(e)}},{immediate:!0});const Ze=()=>{const e=M(D.value);e!==D.value&&(D.value=e)};r.localeMessages&&Object.keys(r.localeMessages).forEach(e=>{const t=r.localeMessages[e];t&&a7(e,t)}),cs(()=>r.localeMessages,e=>{e&&Object.keys(e).forEach(t=>{const n=e[t];n&&a7(t,n)})},{deep:!0});const Ge=ia({x:0,y:0}),He=ia(!1),Ke=ia(null),Je=ia(!1),et=ia(null),tt=ia(!1),nt=ia(!1),rt=ia(null),it=ia(null),ot=ia(null),at=e=>{const{task:t,position:n}=e.detail;Ke.value=t,Ge.value=n,He.value=!0},st=()=>{He.value=!1};function lt(){if(i("add-task"),r.useDefaultDrawer){const e={id:Date.now(),name:"",type:"task",assignee:"",startDate:"",endDate:"",predecessor:[],estimatedHours:0,actualHours:0,progress:0,description:"",parentId:void 0,children:[],resources:[]};et.value=e,tt.value=!1,Je.value=!0}}const ct=e=>{vt(e.id,t=>{t.isTimerRunning=!0,t.timerStartTime=e.timerStartTime||Date.now(),t.timerEndTime=void 0,t.timerElapsedTime=0}),st(),i("timer-started",e)},ut=e=>{vt(e.id,t=>{if(t.isTimerRunning&&void 0!==t.timerStartTime){const e=t.timerElapsedTime||0;t.timerElapsedTime=e+(Date.now()-t.timerStartTime),t.timerEndTime=Date.now()}t.isTimerRunning=!1,Je.value&&et.value&&et.value.id===e.id&&(et.value.isTimerRunning=!1,et.value.timerEndTime=Date.now())}),st(),i("timer-stopped",e)};function ht(e,t){i("task-click",e,t)}function dt(e){i("task-double-click",e),r.useDefaultDrawer&&function(e){return e&&"object"==typeof e&&!("tasks"in e&&Array.isArray(e.tasks)&&!("resources"in e))}(e)&&"number"==typeof e.id&&(et.value=e,tt.value=!0,Je.value=!0)}function pt(e){if(!e)return;i("add-predecessor",e),it.value=e;const t={id:Date.now(),name:"",type:"task",assignee:"",startDate:"",endDate:"",predecessor:[],estimatedHours:0,actualHours:0,progress:0,description:"",parentId:e.parentId,children:[],resources:[],isTimerRunning:!1,timerStartTime:void 0,timerEndTime:void 0,timerElapsedTime:0};et.value=t,tt.value=!1,Je.value=!0}function ft(e){if(!e)return;i("add-successor",e),ot.value=e;const t={id:Date.now(),name:"",type:"task",assignee:"",startDate:"",endDate:"",predecessor:[e.id],estimatedHours:0,actualHours:0,progress:0,description:"",parentId:e.parentId,children:[],resources:[],isTimerRunning:!1,timerStartTime:void 0,timerEndTime:void 0,timerElapsedTime:0};et.value=t,tt.value=!1,Je.value=!0}function gt(e){i("predecessor-added",e)}function mt(e){i("successor-added",e)}const Ot=(e,t)=>{if(!t.parentId)return e.push(t),!0;for(const n of e){if(n.id===t.parentId)return n.children||(n.children=[]),n.children.push(t),!0;if(n.children&&n.children.length>0&&Ot(n.children,t))return!0}return!1},At=(e,t)=>{for(let n=0;n<e.length;n++){if(e[n].id===t.id)return e[n]={...e[n],...t},!0;if(e[n].children&&e[n].children.length>0&&At(e[n].children,t))return!0}return!1},yt=(e,t=!1)=>{z.value=e.id;const n=new Set;if(r.tasks&&At(r.tasks,e),"resource"===c.value&&r.resources){let i=null,o=null,a=-1;for(const t of r.resources){const r=t.tasks.findIndex(t=>t.id===e.id);if(-1!==r){i=t.id,o=t,a=r,n.add(t.id);break}}if(o&&-1!==a)if(!t&&e.assignee&&e.assignee!==i){o.tasks.splice(a,1);const t=r.resources.find(t=>t.id===e.assignee);t&&(t.tasks.push({...e}),n.add(t.id))}else o.tasks[a]={...o.tasks[a],...e};else if(e.assignee){const t=r.resources.find(t=>t.id===e.assignee);t&&(t.tasks.push({...e}),n.add(t.id))}}q.value=n},vt=(e,t)=>{const n=r=>{var i;for(let o=0;o<r.length;o++){if(r[o].id===e)return t(r[o]),!0;if(null!=(i=r[o].children)&&i.length&&n(r[o].children))return!0}return!1};let i=!1;return r.tasks&&(i=n(r.tasks)),i&&"resource"===c.value&&r.resources&&r.resources.forEach(n=>{const r=n.tasks.find(t=>t.id===e);r&&t(r)}),i};function bt(e){tt.value?(yt(e),U.value++,i("task-updated",{task:e})):(r.tasks&&Ot(r.tasks,e),(e=>{if("resource"===c.value&&r.resources)if(e.resources&&e.resources.length>0)e.resources.forEach(t=>{const n=r.resources.find(e=>e.id===t.id);n&&(n.tasks.find(t=>t.id===e.id)||n.tasks.push({...e}))});else if(e.assignee){const t=Array.isArray(e.assignee)?e.assignee[0]:e.assignee,n=r.resources.find(e=>e.id===t);n&&(n.tasks.find(t=>t.id===e.id)||n.tasks.push({...e}))}})(e),U.value++,i("task-added",{task:e}),it.value&&(it.value.predecessor||(it.value.predecessor=[]),it.value.predecessor.push(e.id),i("predecessor-added",{targetTask:it.value,newTask:e}),it.value=null),ot.value&&(i("successor-added",{targetTask:ot.value,newTask:e}),ot.value=null))}function xt(e,t,n){for(let r=0;r<e.length;r++){if(e[r].id===t){if(n)e.splice(r,1);else{const t=e[r].children||[];e.splice(r,1,...t)}return!0}if(e[r].children&&e[r].children.length>0&&xt(e[r].children,t,n))return!0}return!1}function wt(e,t){r.tasks&&xt(r.tasks,e.id,t),"resource"===c.value&&r.resources&&r.resources.forEach(t=>{const n=t.tasks.findIndex(t=>t.id===e.id);-1!==n&&t.tasks.splice(n,1)}),Je.value=!1,et.value=null,i("task-deleted",{task:e})}function kt(e){if(r.tasks){const t=n=>{for(let r=0;r<n.length;r++){if(n[r].id===e.targetTaskId)return n[r]={...n[r],predecessor:e.updatedTask.predecessor},!0;if(n[r].children&&n[r].children.length>0&&t(n[r].children))return!0}return!1};t(r.tasks)}i("task-updated",{task:e.updatedTask}),i("link-deleted",e)}function St(e){i("resource-drag-end",e)}function Tt(e){i("milestone-double-click",e),r.useDefaultMilestoneDialog&&(rt.value=e,nt.value=!0)}function $t(){nt.value=!1,rt.value=null}function _t(e){r.milestones&&((e,t)=>{const n=e.findIndex(e=>e.id===t);-1!==n&&e.splice(n,1)})(r.milestones,e),i("milestone-deleted",{milestoneId:e}),U.value++,$t()}return t({enterFullscreen:Ne,exitFullscreen:Xe,toggleFullscreen:()=>{ye.value?Xe():Ne()},isFullscreen:()=>ye.value,expandAll:fe,collapseAll:ge,toggleExpandAll:()=>{const e=t=>{for(const n of t)if(n.children&&n.children.length>0&&(n.collapsed||!e(n.children)))return!1;return!0};r.tasks&&(e(r.tasks)?ge():fe())},isExpandAll:me,scrollToToday:()=>{X.value&&"function"==typeof X.value.scrollToTodayCenter?X.value.scrollToTodayCenter():Ye()},scrollToTask:e=>{const t=(e,n)=>{for(const r of e){if(r.id===n||String(r.id)===String(n))return r;if(r.children&&r.children.length>0){const e=t(r.children,n);if(e)return e}}return null};if(r.tasks){const n=t(r.tasks,e);n&&n.startDate&&X.value&&"function"==typeof X.value.scrollToDate&&X.value.scrollToDate(n.startDate)}},scrollToDate:e=>{X.value&&"function"==typeof X.value.scrollToDate&&X.value.scrollToDate(e)},setLocale:e=>{const{setLocale:t}=l7();t(e)},currentLocale:()=>be.value,setTimeScale:e=>{const t=e||"week";Re.includes(t)&&Qe(t)},zoomIn:()=>{const e=Re.indexOf(Y.value);if(e>0){const t=Re[e-1];Qe(t)}},zoomOut:()=>{const e=Re.indexOf(Y.value);if(e<Re.length-1){const t=Re[e+1];Qe(t)}},currentScale:()=>Y.value,setTheme:Ae,currentTheme:()=>y.value,getTaskListVisible:()=>te.value,setTaskListVisible:e=>{r.enableTaskListCollapsible&&(te.value=e)},toggleTaskList:ie}),(e,t)=>(ru(),lu("div",{ref_key:"ganttRootRef",ref:o,class:ri(["gantt-root",{"gantt-fullscreen":ye.value,"splitter-dragging":K.value}])},[r.showToolbar?(ru(),cu(wne,{key:0,config:r.toolbarConfig,"time-scale":Y.value,theme:y.value,fullscreen:ye.value,"expand-all":me(),"view-mode":c.value,"on-today-locate":Ve,"on-export-csv":Ce,"on-export-pdf":De,"on-language-change":r.onLanguageChange,"on-fullscreen-change":r.onFullscreenChange,"on-settings-confirm":r.onSettingsConfirm,"on-time-scale-change":Qe,"on-expand-all":he,"on-collapse-all":pe,"on-view-mode-change":G,onAddTask:lt,onAddMilestone:We,onExpandAll:he,onCollapseAll:pe,onThemeChange:Ee},null,8,["config","time-scale","theme","fullscreen","expand-all","view-mode","on-language-change","on-fullscreen-change","on-settings-confirm"])):vu("",!0),fu("div",TAe,[te.value?(ru(),lu("div",{key:0,class:"gantt-panel gantt-panel-left",style:Kr({width:D.value+"px"})},[gu(X8,{ref_key:"taskListComponentRef",ref:a,tasks:ke.value,"use-default-drawer":r.useDefaultDrawer,"task-list-config":r.taskListConfig,"task-list-column-render-mode":r.taskListColumnRenderMode,"enable-task-row-move":r.enableTaskRowMove,"task-list-row-class-name":r.taskListRowClassName,"task-list-row-style":r.taskListRowStyle,"enable-parent-task-auto-schedule":r.enableParentTaskAutoSchedule,onTaskCollapseChange:ue,onStartTimer:ct,onStopTimer:ut,onAddPredecessor:pt,onAddSuccessor:ft,onDelete:wt,onTaskRowMoved:de},El({_:2},[e.$slots.default?{name:"default",fn:Ka(()=>[Rl(e.$slots,"default",{},void 0,!0)]),key:"0"}:void 0,e.$slots["custom-task-content"]?{name:"custom-task-content",fn:Ka(t=>[Rl(e.$slots,"custom-task-content",ii(mu(t)),void 0,!0)]),key:"1"}:void 0]),1032,["tasks","use-default-drawer","task-list-config","task-list-column-render-mode","enable-task-row-move","task-list-row-class-name","task-list-row-style","enable-parent-task-auto-schedule"])],4)):vu("",!0),r.enableTaskListCollapsible?(ru(),lu("div",{key:1,class:"gantt-splitter",onMousedown:ee},[fu("div",{class:ri(["task-list-toggle",{collapsed:!te.value,[re.value]:ne.value}]),title:te.value?xe.value:we.value,onClick:Pd(ie,["stop"])},[(ru(),lu("svg",_Ae,[te.value?(ru(),lu("polyline",CAe)):(ru(),lu("polyline",QAe))]))],10,$Ae)],32)):vu("",!0),fu("div",{class:ri(["gantt-panel gantt-panel-right",{"full-width":!te.value}])},[gu(Ite,{ref_key:"timelineRef",ref:X,tasks:Se.value,milestones:Te.value,"start-date":$e.value.min,"end-date":$e.value.max,"scale-configs":Z.value,"working-hours":r.workingHours,"task-bar-config":r.taskBarConfig,"allow-drag-and-resize":r.allowDragAndResize,"show-actual-taskbar":r.showActualTaskbar,"enable-task-bar-tooltip":r.enableTaskBarTooltip,"enable-milestone-tooltip":r.enableMilestoneTooltip,"enable-parent-task-auto-schedule":r.enableParentTaskAutoSchedule,"pending-task-background-color":r.pendingTaskBackgroundColor,"delay-task-background-color":r.delayTaskBackgroundColor,"complete-task-background-color":r.completeTaskBackgroundColor,"ongoing-task-background-color":r.ongoingTaskBackgroundColor,"use-default-drawer":r.useDefaultDrawer,"use-default-milestone-dialog":r.useDefaultMilestoneDialog,"on-milestone-save":Fe,onTimelineScaleChanged:Pe,onClickTask:ht,onEditTask:dt,onMilestoneDoubleClick:Tt,onStartTimer:ct,onStopTimer:ut,onAddPredecessor:pt,onAddSuccessor:ft,onPredecessorAdded:gt,onSuccessorAdded:mt,onDelete:wt,onLinkDeleted:kt,onResourceDragEnd:St},El({_:2},[e.$slots["custom-task-content"]?{name:"custom-task-content",fn:Ka(t=>[Rl(e.$slots,"custom-task-content",ii(mu(t)),void 0,!0)]),key:"0"}:void 0,e.$slots["taskbar-tooltip"]?{name:"taskbar-tooltip",fn:Ka(t=>[Rl(e.$slots,"taskbar-tooltip",ii(mu(t)),void 0,!0)]),key:"1"}:void 0,e.$slots["milestone-tooltip"]?{name:"milestone-tooltip",fn:Ka(t=>[Rl(e.$slots,"milestone-tooltip",ii(mu(t)),void 0,!0)]),key:"2"}:void 0]),1032,["tasks","milestones","start-date","end-date","scale-configs","working-hours","task-bar-config","allow-drag-and-resize","show-actual-taskbar","enable-task-bar-tooltip","enable-milestone-tooltip","enable-parent-task-auto-schedule","pending-task-background-color","delay-task-background-color","complete-task-background-color","ongoing-task-background-color","use-default-drawer","use-default-milestone-dialog"]),H.value?(ru(),lu("div",{key:0,class:"focus-close-button",onClick:Pd(Be,["stop"])},[t[3]||(t[3]=fu("svg",{class:"close-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[fu("path",{d:"M18 6L6 18M6 6l12 12",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),fu("span",PAe,ki(ca(ve).disableTaskbarFocusMode),1)])):vu("",!0)],2)]),r.useDefaultDrawer?(ru(),cu(Rie,{key:1,visible:Je.value,"onUpdate:visible":t[0]||(t[0]=e=>Je.value=e),task:et.value,"is-edit":tt.value,"assignee-options":r.assigneeOptions,"pending-task-background-color":r.pendingTaskBackgroundColor,"delay-task-background-color":r.delayTaskBackgroundColor,"complete-task-background-color":r.completeTaskBackgroundColor,"ongoing-task-background-color":r.ongoingTaskBackgroundColor,"enable-close-on-overlay-click":r.enableTaskDrawerAutoClose,onSubmit:bt,onClose:t[1]||(t[1]=e=>Je.value=!1),onStartTimer:ct,onStopTimer:ut,onDelete:wt},null,8,["visible","task","is-edit","assignee-options","pending-task-background-color","delay-task-background-color","complete-task-background-color","ongoing-task-background-color","enable-close-on-overlay-click"])):vu("",!0),r.useDefaultMilestoneDialog?(ru(),cu(poe,{key:2,visible:nt.value,"onUpdate:visible":t[2]||(t[2]=e=>nt.value=e),milestone:rt.value,onClose:$t,onSave:Fe,onDelete:_t},null,8,["visible","milestone"])):vu("",!0)],2))}}),RAe=$7(EAe,[["__scopeId","data-v-f8d1d083"]]),BAe=Ns({name:"TaskListColumn",__name:"TaskListColumn",props:{prop:{},label:{},width:{},align:{default:"left"},cssClass:{}},setup:e=>(e,t)=>null}),{entries:IAe,setPrototypeOf:LAe,isFrozen:DAe,getPrototypeOf:MAe,getOwnPropertyDescriptor:NAe}=Object;let{freeze:XAe,seal:FAe,create:UAe}=Object,{apply:zAe,construct:qAe}=typeof Reflect<"u"&&Reflect;XAe||(XAe=function(e){return e}),FAe||(FAe=function(e){return e}),zAe||(zAe=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)}),qAe||(qAe=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const VAe=hye(Array.prototype.forEach),WAe=hye(Array.prototype.lastIndexOf),jAe=hye(Array.prototype.pop),YAe=hye(Array.prototype.push),ZAe=hye(Array.prototype.splice),GAe=Array.isArray,HAe=hye(String.prototype.toLowerCase),KAe=hye(String.prototype.toString),JAe=hye(String.prototype.match),eye=hye(String.prototype.replace),tye=hye(String.prototype.indexOf),nye=hye(String.prototype.trim),rye=hye(Number.prototype.toString),iye=hye(Boolean.prototype.toString),oye=typeof BigInt>"u"?null:hye(BigInt.prototype.toString),aye=typeof Symbol>"u"?null:hye(Symbol.prototype.toString),sye=hye(Object.prototype.hasOwnProperty),lye=hye(Object.prototype.toString),cye=hye(RegExp.prototype.test),uye=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return qAe(e,n)}}(TypeError);function hye(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return zAe(e,t,r)}}function dye(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:HAe;if(LAe&&LAe(e,null),!GAe(t))return e;let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){const e=n(i);e!==i&&(DAe(t)||(t[r]=e),i=e)}e[i]=!0}return e}function pye(e){for(let t=0;t<e.length;t++)sye(e,t)||(e[t]=null);return e}function fye(e){const t=UAe(null);for(const[n,r]of IAe(e))sye(e,n)&&(GAe(r)?t[n]=pye(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=fye(r):t[n]=r);return t}function gye(e,t){for(;null!==e;){const n=NAe(e,t);if(n){if(n.get)return hye(n.get);if("function"==typeof n.value)return hye(n.value)}e=MAe(e)}return function(){return null}}const mye=XAe(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Oye=XAe(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Aye=XAe(["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"]),yye=XAe(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),vye=XAe(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),bye=XAe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),xye=XAe(["#text"]),wye=XAe(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),kye=XAe(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Sye=XAe(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Tye=XAe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$ye=FAe(/\{\{[\w\W]*|[\w\W]*\}\}/gm),_ye=FAe(/<%[\w\W]*|[\w\W]*%>/gm),Cye=FAe(/\$\{[\w\W]*/gm),Qye=FAe(/^data-[\-\w.\u00B7-\uFFFF]+$/),Pye=FAe(/^aria-[\-\w]+$/),Eye=FAe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Rye=FAe(/^(?:\w+script|data):/i),Bye=FAe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Iye=FAe(/^html$/i),Lye=FAe(/^[a-z][.\w]*(-[.\w]+)+$/i);var Dye=Object.freeze({__proto__:null,ARIA_ATTR:Pye,ATTR_WHITESPACE:Bye,CUSTOM_ELEMENT:Lye,DATA_ATTR:Qye,DOCTYPE_NAME:Iye,ERB_EXPR:_ye,IS_ALLOWED_URI:Eye,IS_SCRIPT_OR_DATA:Rye,MUSTACHE_EXPR:$ye,TMPLIT_EXPR:Cye});const Mye=1,Nye=3,Xye=7,Fye=8,Uye=9;var zye=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:typeof window>"u"?null:window;const n=t=>e(t);if(n.version="3.4.2",n.removed=[],!t||!t.document||t.document.nodeType!==Uye||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const i=r,o=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:u,NamedNodeMap:h=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:p,trustedTypes:f}=t,g=c.prototype,m=gye(g,"cloneNode"),O=gye(g,"remove"),A=gye(g,"nextSibling"),y=gye(g,"childNodes"),v=gye(g,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let b,x="";const{implementation:w,createNodeIterator:k,createDocumentFragment:S,getElementsByTagName:T}=r,{importNode:$}=i;let _={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof IAe&&"function"==typeof v&&w&&void 0!==w.createHTMLDocument;const{MUSTACHE_EXPR:C,ERB_EXPR:Q,TMPLIT_EXPR:P,DATA_ATTR:E,ARIA_ATTR:R,IS_SCRIPT_OR_DATA:B,ATTR_WHITESPACE:I,CUSTOM_ELEMENT:L}=Dye;let{IS_ALLOWED_URI:D}=Dye,M=null;const N=dye({},[...mye,...Oye,...Aye,...vye,...xye]);let X=null;const F=dye({},[...wye,...kye,...Sye,...Tye]);let U=Object.seal(UAe(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),z=null,q=null;const V=Object.seal(UAe(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let W=!0,j=!0,Y=!1,Z=!0,G=!1,H=!0,K=!1,J=!1,ee=!1,te=!1,ne=!1,re=!1,ie=!0,oe=!1;const ae="user-content-";let se=!0,le=!1,ce={},ue=null;const he=dye({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let de=null;const pe=dye({},["audio","video","img","source","image","track"]);let fe=null;const ge=dye({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",Oe="http://www.w3.org/2000/svg",Ae="http://www.w3.org/1999/xhtml";let ye=Ae,ve=!1,be=null;const xe=dye({},[me,Oe,Ae],KAe);let we=dye({},["mi","mo","mn","ms","mtext"]),ke=dye({},["annotation-xml"]);const Se=dye({},["title","style","font","a","script"]);let Te=null;const $e=["application/xhtml+xml","text/html"];let _e=null,Ce=null;const Qe=r.createElement("form"),Pe=function(e){return e instanceof RegExp||e instanceof Function},Ee=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Ce&&Ce===e)return;(!e||"object"!=typeof e)&&(e={}),e=fye(e),Te=-1===$e.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,_e="application/xhtml+xml"===Te?KAe:HAe,M=sye(e,"ALLOWED_TAGS")&&GAe(e.ALLOWED_TAGS)?dye({},e.ALLOWED_TAGS,_e):N,X=sye(e,"ALLOWED_ATTR")&&GAe(e.ALLOWED_ATTR)?dye({},e.ALLOWED_ATTR,_e):F,be=sye(e,"ALLOWED_NAMESPACES")&&GAe(e.ALLOWED_NAMESPACES)?dye({},e.ALLOWED_NAMESPACES,KAe):xe,fe=sye(e,"ADD_URI_SAFE_ATTR")&&GAe(e.ADD_URI_SAFE_ATTR)?dye(fye(ge),e.ADD_URI_SAFE_ATTR,_e):ge,de=sye(e,"ADD_DATA_URI_TAGS")&&GAe(e.ADD_DATA_URI_TAGS)?dye(fye(pe),e.ADD_DATA_URI_TAGS,_e):pe,ue=sye(e,"FORBID_CONTENTS")&&GAe(e.FORBID_CONTENTS)?dye({},e.FORBID_CONTENTS,_e):he,z=sye(e,"FORBID_TAGS")&&GAe(e.FORBID_TAGS)?dye({},e.FORBID_TAGS,_e):fye({}),q=sye(e,"FORBID_ATTR")&&GAe(e.FORBID_ATTR)?dye({},e.FORBID_ATTR,_e):fye({}),ce=!!sye(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?fye(e.USE_PROFILES):e.USE_PROFILES),W=!1!==e.ALLOW_ARIA_ATTR,j=!1!==e.ALLOW_DATA_ATTR,Y=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Z=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,G=e.SAFE_FOR_TEMPLATES||!1,H=!1!==e.SAFE_FOR_XML,K=e.WHOLE_DOCUMENT||!1,te=e.RETURN_DOM||!1,ne=e.RETURN_DOM_FRAGMENT||!1,re=e.RETURN_TRUSTED_TYPE||!1,ee=e.FORCE_BODY||!1,ie=!1!==e.SANITIZE_DOM,oe=e.SANITIZE_NAMED_PROPS||!1,se=!1!==e.KEEP_CONTENT,le=e.IN_PLACE||!1,D=function(e){try{return cye(e,""),!0}catch{return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Eye,ye="string"==typeof e.NAMESPACE?e.NAMESPACE:Ae,we=sye(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?fye(e.MATHML_TEXT_INTEGRATION_POINTS):dye({},["mi","mo","mn","ms","mtext"]),ke=sye(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?fye(e.HTML_INTEGRATION_POINTS):dye({},["annotation-xml"]);const t=sye(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?fye(e.CUSTOM_ELEMENT_HANDLING):UAe(null);if(U=UAe(null),sye(t,"tagNameCheck")&&Pe(t.tagNameCheck)&&(U.tagNameCheck=t.tagNameCheck),sye(t,"attributeNameCheck")&&Pe(t.attributeNameCheck)&&(U.attributeNameCheck=t.attributeNameCheck),sye(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(U.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),G&&(j=!1),ne&&(te=!0),ce&&(M=dye({},xye),X=UAe(null),!0===ce.html&&(dye(M,mye),dye(X,wye)),!0===ce.svg&&(dye(M,Oye),dye(X,kye),dye(X,Tye)),!0===ce.svgFilters&&(dye(M,Aye),dye(X,kye),dye(X,Tye)),!0===ce.mathMl&&(dye(M,vye),dye(X,Sye),dye(X,Tye))),V.tagCheck=null,V.attributeCheck=null,sye(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?V.tagCheck=e.ADD_TAGS:GAe(e.ADD_TAGS)&&(M===N&&(M=fye(M)),dye(M,e.ADD_TAGS,_e))),sye(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?V.attributeCheck=e.ADD_ATTR:GAe(e.ADD_ATTR)&&(X===F&&(X=fye(X)),dye(X,e.ADD_ATTR,_e))),sye(e,"ADD_URI_SAFE_ATTR")&&GAe(e.ADD_URI_SAFE_ATTR)&&dye(fe,e.ADD_URI_SAFE_ATTR,_e),sye(e,"FORBID_CONTENTS")&&GAe(e.FORBID_CONTENTS)&&(ue===he&&(ue=fye(ue)),dye(ue,e.FORBID_CONTENTS,_e)),sye(e,"ADD_FORBID_CONTENTS")&&GAe(e.ADD_FORBID_CONTENTS)&&(ue===he&&(ue=fye(ue)),dye(ue,e.ADD_FORBID_CONTENTS,_e)),se&&(M["#text"]=!0),K&&dye(M,["html","head","body"]),M.table&&(dye(M,["tbody"]),delete z.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw uye('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw uye('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');b=e.TRUSTED_TYPES_POLICY,x=b.createHTML("")}else void 0===b&&(b=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch{return null}}(f,o)),null!==b&&"string"==typeof x&&(x=b.createHTML(""));XAe&&XAe(e),Ce=e},Re=dye({},[...Oye,...Aye,...yye]),Be=dye({},[...vye,...bye]),Ie=function(e){YAe(n.removed,{element:e});try{v(e).removeChild(e)}catch{O(e)}},Le=function(e,t){try{YAe(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch{YAe(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(te||ne)try{Ie(t)}catch{}else try{t.setAttribute(e,"")}catch{}},De=function(e){let t=null,n=null;if(ee)e="<remove></remove>"+e;else{const t=JAe(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Te&&ye===Ae&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=b?b.createHTML(e):e;if(ye===Ae)try{t=(new p).parseFromString(i,Te)}catch{}if(!t||!t.documentElement){t=w.createDocument(ye,"template",null);try{t.documentElement.innerHTML=ve?x:i}catch{}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(r.createTextNode(n),o.childNodes[0]||null),ye===Ae?T.call(t,K?"html":"body")[0]:K?t.documentElement:o},Me=function(e){return k.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Ne=function(e){return e instanceof d&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Xe=function(e){return"function"==typeof l&&e instanceof l};function Fe(e,t,r){VAe(e,e=>{e.call(n,t,r,Ce)})}const Ue=function(e){let t=null;if(Fe(_.beforeSanitizeElements,e,null),Ne(e))return Ie(e),!0;const r=_e(e.nodeName);if(Fe(_.uponSanitizeElement,e,{tagName:r,allowedTags:M}),H&&e.hasChildNodes()&&!Xe(e.firstElementChild)&&cye(/<[/\w!]/g,e.innerHTML)&&cye(/<[/\w!]/g,e.textContent)||H&&e.namespaceURI===Ae&&"style"===r&&Xe(e.firstElementChild)||e.nodeType===Xye||H&&e.nodeType===Fye&&cye(/<[/\w]/g,e.data))return Ie(e),!0;if(z[r]||!(V.tagCheck instanceof Function&&V.tagCheck(r))&&!M[r]){if(!z[r]&&Ve(r)&&(U.tagNameCheck instanceof RegExp&&cye(U.tagNameCheck,r)||U.tagNameCheck instanceof Function&&U.tagNameCheck(r)))return!1;if(se&&!ue[r]){const t=v(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const i=m(n[r],!0);t.insertBefore(i,A(e))}}}return Ie(e),!0}return e instanceof c&&!function(e){let t=v(e);(!t||!t.tagName)&&(t={namespaceURI:ye,tagName:"template"});const n=HAe(e.tagName),r=HAe(t.tagName);return!!be[e.namespaceURI]&&(e.namespaceURI===Oe?t.namespaceURI===Ae?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===r||we[r]):!!Re[n]:e.namespaceURI===me?t.namespaceURI===Ae?"math"===n:t.namespaceURI===Oe?"math"===n&&ke[r]:!!Be[n]:e.namespaceURI===Ae?!(t.namespaceURI===Oe&&!ke[r]||t.namespaceURI===me&&!we[r])&&!Be[n]&&(Se[n]||!Re[n]):!("application/xhtml+xml"!==Te||!be[e.namespaceURI]))}(e)||("noscript"===r||"noembed"===r||"noframes"===r)&&cye(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ie(e),!0):(G&&e.nodeType===Nye&&(t=e.textContent,VAe([C,Q,P],e=>{t=eye(t,e," ")}),e.textContent!==t&&(YAe(n.removed,{element:e.cloneNode()}),e.textContent=t)),Fe(_.afterSanitizeElements,e,null),!1)},ze=function(e,t,n){if(q[t]||ie&&("id"===t||"name"===t)&&(n in r||n in Qe))return!1;const i=X[t]||V.attributeCheck instanceof Function&&V.attributeCheck(t,e);if((!j||q[t]||!cye(E,t))&&(!W||!cye(R,t)))if(!i||q[t]){if(!(Ve(e)&&(U.tagNameCheck instanceof RegExp&&cye(U.tagNameCheck,e)||U.tagNameCheck instanceof Function&&U.tagNameCheck(e))&&(U.attributeNameCheck instanceof RegExp&&cye(U.attributeNameCheck,t)||U.attributeNameCheck instanceof Function&&U.attributeNameCheck(t,e))||"is"===t&&U.allowCustomizedBuiltInElements&&(U.tagNameCheck instanceof RegExp&&cye(U.tagNameCheck,n)||U.tagNameCheck instanceof Function&&U.tagNameCheck(n))))return!1}else if(!fe[t]&&!cye(D,eye(n,I,""))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==tye(n,"data:")||!de[e])&&(!Y||cye(B,eye(n,I,"")))&&n)return!1;return!0},qe=dye({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ve=function(e){return!qe[HAe(e)]&&cye(L,e)},We=function(e){Fe(_.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Ne(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:X,forceKeepAttr:void 0};let i=t.length;for(;i--;){const o=t[i],{name:a,namespaceURI:s,value:l}=o,c=_e(a),u=l;let h="value"===a?u:nye(u);if(r.attrName=c,r.attrValue=h,r.keepAttr=!0,r.forceKeepAttr=void 0,Fe(_.uponSanitizeAttribute,e,r),h=r.attrValue,oe&&("id"===c||"name"===c)&&0!==tye(h,ae)&&(Le(a,e),h=ae+h),H&&cye(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,h)){Le(a,e);continue}if("attributename"===c&&JAe(h,"href")){Le(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Le(a,e);continue}if(!Z&&cye(/\/>/i,h)){Le(a,e);continue}G&&VAe([C,Q,P],e=>{h=eye(h,e," ")});const d=_e(e.nodeName);if(ze(d,c,h)){if(b&&"object"==typeof f&&"function"==typeof f.getAttributeType&&!s)switch(f.getAttributeType(d,c)){case"TrustedHTML":h=b.createHTML(h);break;case"TrustedScriptURL":h=b.createScriptURL(h)}if(h!==u)try{s?e.setAttributeNS(s,a,h):e.setAttribute(a,h),Ne(e)?Ie(e):jAe(n.removed)}catch{Le(a,e)}}else Le(a,e)}Fe(_.afterSanitizeAttributes,e,null)},je=function(e){let t=null;const n=Me(e);for(Fe(_.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)Fe(_.uponSanitizeShadowNode,t,null),Ue(t),We(t),t.content instanceof a&&je(t.content);Fe(_.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,s=null,c=null;if(ve=!e,ve&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Xe(e)&&(e=function(e){switch(typeof e){case"string":return e;case"number":return rye(e);case"boolean":return iye(e);case"bigint":return oye?oye(e):"0";case"symbol":return aye?aye(e):"Symbol()";case"undefined":default:return lye(e);case"function":case"object":{if(null===e)return lye(e);const t=e,n=gye(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:lye(e)}return lye(e)}}}(e),"string"!=typeof e))throw uye("dirty is not a string, aborting");if(!n.isSupported)return e;if(J||Ee(t),n.removed=[],"string"==typeof e&&(le=!1),le){const t=e.nodeName;if("string"==typeof t){const e=_e(t);if(!M[e]||z[e])throw uye("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=De("\x3c!----\x3e"),o=r.ownerDocument.importNode(e,!0),o.nodeType===Mye&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!te&&!G&&!K&&-1===e.indexOf("<"))return b&&re?b.createHTML(e):e;if(r=De(e),!r)return te?null:re?x:""}r&&ee&&Ie(r.firstChild);const u=Me(le?e:r);for(;s=u.nextNode();)Ue(s),We(s),s.content instanceof a&&je(s.content);if(le)return e;if(te){if(G){r.normalize();let e=r.innerHTML;VAe([C,Q,P],t=>{e=eye(e,t," ")}),r.innerHTML=e}if(ne)for(c=S.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(X.shadowroot||X.shadowrootmode)&&(c=$.call(i,c,!0)),c}let h=K?r.outerHTML:r.innerHTML;return K&&M["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&cye(Iye,r.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+h),G&&VAe([C,Q,P],e=>{h=eye(h,e," ")}),b&&re?b.createHTML(h):h},n.setConfig=function(){Ee(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),J=!0},n.clearConfig=function(){Ce=null,J=!1},n.isValidAttribute=function(e,t,n){Ce||Ee({});const r=_e(e),i=_e(t);return ze(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&YAe(_[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=WAe(_[e],t);return-1===n?void 0:ZAe(_[e],n,1)[0]}return jAe(_[e])},n.removeHooks=function(e){_[e]=[]},n.removeAllHooks=function(){_={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const qye=Object.freeze(Object.defineProperty({__proto__:null,default:zye},Symbol.toStringTag,{value:"Module"}));var Vye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wye(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jye,Yye,Zye={};function Gye(){if(Yye)return jye;Yye=1;var e=function(e){return e&&e.Math===Math&&e};return jye=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof Vye&&Vye)||e("object"==typeof jye&&jye)||function(){return this}()||Function("return this")()}var Hye,Kye,Jye,eve,tve,nve,rve,ive,ove={};function ave(){return Kye||(Kye=1,Hye=function(e){try{return!!e()}catch{return!0}}),Hye}function sve(){if(eve)return Jye;eve=1;var e=ave();return Jye=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function lve(){if(nve)return tve;nve=1;var e=ave();return tve=!e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),tve}function cve(){if(ive)return rve;ive=1;var e=lve(),t=Function.prototype.call;return rve=e?t.bind(t):function(){return t.apply(t,arguments)},rve}var uve,hve,dve,pve,fve,gve,mve,Ove,Ave,yve,vve,bve,xve,wve,kve,Sve,Tve,$ve,_ve,Cve,Qve,Pve,Eve,Rve,Bve,Ive,Lve,Dve,Mve,Nve,Xve,Fve,Uve,zve,qve,Vve,Wve,jve,Yve,Zve,Gve,Hve={};function Kve(){return dve||(dve=1,hve=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),hve}function Jve(){if(fve)return pve;fve=1;var e=lve(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return pve=e?r:function(e){return function(){return n.apply(e,arguments)}},pve}function ebe(){if(mve)return gve;mve=1;var e=Jve(),t=e({}.toString),n=e("".slice);return gve=function(e){return n(t(e),8,-1)}}function tbe(){if(Ave)return Ove;Ave=1;var e=Jve(),t=ave(),n=ebe(),r=Object,i=e("".split);return Ove=t(function(){return!r("z").propertyIsEnumerable(0)})?function(e){return"String"===n(e)?i(e,""):r(e)}:r}function nbe(){return vve||(vve=1,yve=function(e){return null==e}),yve}function rbe(){if(xve)return bve;xve=1;var e=nbe(),t=TypeError;return bve=function(n){if(e(n))throw new t("Can't call method on "+n);return n},bve}function ibe(){if(kve)return wve;kve=1;var e=tbe(),t=rbe();return wve=function(n){return e(t(n))},wve}function obe(){if(Tve)return Sve;Tve=1;var e="object"==typeof document&&document.all;return Sve=typeof e>"u"&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e},Sve}function abe(){if(_ve)return $ve;_ve=1;var e=obe();return $ve=function(t){return"object"==typeof t?null!==t:e(t)},$ve}function sbe(){if(Qve)return Cve;Qve=1;var e=Gye(),t=obe();return Cve=function(n,r){return arguments.length<2?function(e){return t(e)?e:void 0}(e[n]):e[n]&&e[n][r]},Cve}function lbe(){if(Eve)return Pve;Eve=1;var e=Jve();return Pve=e({}.isPrototypeOf)}function cbe(){if(Bve)return Rve;Bve=1;var e=Gye().navigator,t=e&&e.userAgent;return Rve=t?String(t):""}function ube(){if(Lve)return Ive;Lve=1;var e,t,n=Gye(),r=cbe(),i=n.process,o=n.Deno,a=i&&i.versions||o&&o.version,s=a&&a.v8;return s&&(t=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&r&&((!(e=r.match(/Edge\/(\d+)/))||e[1]>=74)&&((e=r.match(/Chrome\/(\d+)/))&&(t=+e[1]))),Ive=t}function hbe(){if(Mve)return Dve;Mve=1;var e=ube(),t=ave(),n=Gye().String;return Dve=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})}function dbe(){if(Xve)return Nve;Xve=1;var e=hbe();return Nve=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function pbe(){if(Uve)return Fve;Uve=1;var e=sbe(),t=obe(),n=lbe(),r=dbe(),i=Object;return Fve=r?function(e){return"symbol"==typeof e}:function(r){var o=e("Symbol");return t(o)&&n(o.prototype,i(r))},Fve}function fbe(){if(qve)return zve;qve=1;var e=String;return zve=function(t){try{return e(t)}catch{return"Object"}},zve}function gbe(){if(Wve)return Vve;Wve=1;var e=obe(),t=fbe(),n=TypeError;return Vve=function(r){if(e(r))return r;throw new n(t(r)+" is not a function")}}function mbe(){if(Yve)return jve;Yve=1;var e=gbe(),t=nbe();return jve=function(n,r){var i=n[r];return t(i)?void 0:e(i)},jve}var Obe,Abe,ybe,vbe,bbe,xbe,wbe,kbe,Sbe,Tbe,$be,_be,Cbe,Qbe,Pbe,Ebe,Rbe,Bbe,Ibe,Lbe,Dbe,Mbe,Nbe,Xbe,Fbe={exports:{}};function Ube(){return Abe||(Abe=1,Obe=!1),Obe}function zbe(){if(vbe)return ybe;vbe=1;var e=Gye(),t=Object.defineProperty;return ybe=function(n,r){try{t(e,n,{value:r,configurable:!0,writable:!0})}catch{e[n]=r}return r},ybe}function qbe(){if(bbe)return Fbe.exports;bbe=1;var e=Ube(),t=Gye(),n=zbe(),r="__core-js_shared__",i=Fbe.exports=t[r]||n(r,{});return(i.versions||(i.versions=[])).push({version:"3.43.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Fbe.exports}function Vbe(){if(wbe)return xbe;wbe=1;var e=qbe();return xbe=function(t,n){return e[t]||(e[t]=n||{})},xbe}function Wbe(){if(Sbe)return kbe;Sbe=1;var e=rbe(),t=Object;return kbe=function(n){return t(e(n))},kbe}function jbe(){if($be)return Tbe;$be=1;var e=Jve(),t=Wbe(),n=e({}.hasOwnProperty);return Tbe=Object.hasOwn||function(e,r){return n(t(e),r)}}function Ybe(){if(Cbe)return _be;Cbe=1;var e=Jve(),t=0,n=Math.random(),r=e(1.1.toString);return _be=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++t+n,36)}}function Zbe(){if(Pbe)return Qbe;Pbe=1;var e=Gye(),t=Vbe(),n=jbe(),r=Ybe(),i=hbe(),o=dbe(),a=e.Symbol,s=t("wks"),l=o?a.for||a:a&&a.withoutSetter||r;return Qbe=function(e){return n(s,e)||(s[e]=i&&n(a,e)?a[e]:l("Symbol."+e)),s[e]}}function Gbe(){if(Rbe)return Ebe;Rbe=1;var e=cve(),t=abe(),n=pbe(),r=mbe(),i=function(){if(Gve)return Zve;Gve=1;var e=cve(),t=obe(),n=abe(),r=TypeError;return Zve=function(i,o){var a,s;if("string"===o&&t(a=i.toString)&&!n(s=e(a,i))||t(a=i.valueOf)&&!n(s=e(a,i))||"string"!==o&&t(a=i.toString)&&!n(s=e(a,i)))return s;throw new r("Can't convert object to primitive value")},Zve}(),o=Zbe(),a=TypeError,s=o("toPrimitive");return Ebe=function(o,l){if(!t(o)||n(o))return o;var c,u=r(o,s);if(u){if(void 0===l&&(l="default"),c=e(u,o,l),!t(c)||n(c))return c;throw new a("Can't convert object to primitive value")}return void 0===l&&(l="number"),i(o,l)}}function Hbe(){if(Ibe)return Bbe;Ibe=1;var e=Gbe(),t=pbe();return Bbe=function(n){var r=e(n,"string");return t(r)?r:r+""},Bbe}function Kbe(){if(Dbe)return Lbe;Dbe=1;var e=Gye(),t=abe(),n=e.document,r=t(n)&&t(n.createElement);return Lbe=function(e){return r?n.createElement(e):{}}}function Jbe(){if(Nbe)return Mbe;Nbe=1;var e=sve(),t=ave(),n=Kbe();return Mbe=!e&&!t(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function exe(){if(Xbe)return ove;Xbe=1;var e=sve(),t=cve(),n=function(){if(uve)return Hve;uve=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);return Hve.f=n?function(e){var n=t(this,e);return!!n&&n.enumerable}:e,Hve}(),r=Kve(),i=ibe(),o=Hbe(),a=jbe(),s=Jbe(),l=Object.getOwnPropertyDescriptor;return ove.f=e?l:function(e,c){if(e=i(e),c=o(c),s)try{return l(e,c)}catch{}if(a(e,c))return r(!t(n.f,e,c),e[c])},ove}var txe,nxe,rxe,ixe,oxe,axe,sxe,lxe={};function cxe(){if(nxe)return txe;nxe=1;var e=sve(),t=ave();return txe=e&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function uxe(){if(ixe)return rxe;ixe=1;var e=abe(),t=String,n=TypeError;return rxe=function(r){if(e(r))return r;throw new n(t(r)+" is not an object")}}function hxe(){if(oxe)return lxe;oxe=1;var e=sve(),t=Jbe(),n=cxe(),r=uxe(),i=Hbe(),o=TypeError,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l="enumerable",c="configurable",u="writable";return lxe.f=e?n?function(e,t,n){if(r(e),t=i(t),r(n),"function"==typeof e&&"prototype"===t&&"value"in n&&u in n&&!n[u]){var o=s(e,t);o&&o[u]&&(e[t]=n.value,n={configurable:c in n?n[c]:o[c],enumerable:l in n?n[l]:o[l],writable:!1})}return a(e,t,n)}:a:function(e,n,s){if(r(e),n=i(n),r(s),t)try{return a(e,n,s)}catch{}if("get"in s||"set"in s)throw new o("Accessors not supported");return"value"in s&&(e[n]=s.value),e},lxe}function dxe(){if(sxe)return axe;sxe=1;var e=sve(),t=hxe(),n=Kve();return axe=e?function(e,r,i){return t.f(e,r,n(1,i))}:function(e,t,n){return e[t]=n,e}}var pxe,fxe,gxe,mxe,Oxe,Axe,yxe,vxe,bxe,xxe,wxe,kxe,Sxe,Txe,$xe,_xe={exports:{}};function Cxe(){if(fxe)return pxe;fxe=1;var e=sve(),t=jbe(),n=Function.prototype,r=e&&Object.getOwnPropertyDescriptor,i=t(n,"name"),o=i&&"something"===function(){}.name,a=i&&(!e||e&&r(n,"name").configurable);return pxe={EXISTS:i,PROPER:o,CONFIGURABLE:a}}function Qxe(){if(mxe)return gxe;mxe=1;var e=Jve(),t=obe(),n=qbe(),r=e(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(e){return r(e)}),gxe=n.inspectSource}function Pxe(){if(vxe)return yxe;vxe=1;var e=Vbe(),t=Ybe(),n=e("keys");return yxe=function(e){return n[e]||(n[e]=t(e))}}function Exe(){return xxe||(xxe=1,bxe={}),bxe}function Rxe(){if(kxe)return wxe;kxe=1;var e,t,n,r=function(){if(Axe)return Oxe;Axe=1;var e=Gye(),t=obe(),n=e.WeakMap;return Oxe=t(n)&&/native code/.test(String(n))}(),i=Gye(),o=abe(),a=dxe(),s=jbe(),l=qbe(),c=Pxe(),u=Exe(),h="Object already initialized",d=i.TypeError,p=i.WeakMap;if(r||l.state){var f=l.state||(l.state=new p);f.get=f.get,f.has=f.has,f.set=f.set,e=function(e,t){if(f.has(e))throw new d(h);return t.facade=e,f.set(e,t),t},t=function(e){return f.get(e)||{}},n=function(e){return f.has(e)}}else{var g=c("state");u[g]=!0,e=function(e,t){if(s(e,g))throw new d(h);return t.facade=e,a(e,g,t),t},t=function(e){return s(e,g)?e[g]:{}},n=function(e){return s(e,g)}}return wxe={set:e,get:t,has:n,enforce:function(r){return n(r)?t(r):e(r,{})},getterFor:function(e){return function(n){var r;if(!o(n)||(r=t(n)).type!==e)throw new d("Incompatible receiver, "+e+" required");return r}}}}function Bxe(){if(Sxe)return _xe.exports;Sxe=1;var e=Jve(),t=ave(),n=obe(),r=jbe(),i=sve(),o=Cxe().CONFIGURABLE,a=Qxe(),s=Rxe(),l=s.enforce,c=s.get,u=String,h=Object.defineProperty,d=e("".slice),p=e("".replace),f=e([].join),g=i&&!t(function(){return 8!==h(function(){},"length",{value:8}).length}),m=String(String).split("String"),O=_xe.exports=function(e,t,n){"Symbol("===d(u(t),0,7)&&(t="["+p(u(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!r(e,"name")||o&&e.name!==t)&&(i?h(e,"name",{value:t,configurable:!0}):e.name=t),g&&n&&r(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?i&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var a=l(e);return r(a,"source")||(a.source=f(m,"string"==typeof t?t:"")),e};return Function.prototype.toString=O(function(){return n(this)&&c(this).source||a(this)},"toString"),_xe.exports}function Ixe(){if($xe)return Txe;$xe=1;var e=obe(),t=hxe(),n=Bxe(),r=zbe();return Txe=function(i,o,a,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:o;if(e(a)&&n(a,c,s),s.global)l?i[o]=a:r(o,a);else{try{s.unsafe?i[o]&&(l=!0):delete i[o]}catch{}l?i[o]=a:t.f(i,o,{value:a,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return i},Txe}var Lxe,Dxe,Mxe,Nxe,Xxe,Fxe,Uxe,zxe,qxe,Vxe,Wxe,jxe,Yxe,Zxe,Gxe,Hxe,Kxe,Jxe={};function ewe(){if(Nxe)return Mxe;Nxe=1;var e=function(){if(Dxe)return Lxe;Dxe=1;var e=Math.ceil,t=Math.floor;return Lxe=Math.trunc||function(n){var r=+n;return(r>0?t:e)(r)}}();return Mxe=function(t){var n=+t;return n!=n||0===n?0:e(n)},Mxe}function twe(){if(zxe)return Uxe;zxe=1;var e=ewe(),t=Math.min;return Uxe=function(n){var r=e(n);return r>0?t(r,9007199254740991):0},Uxe}function nwe(){if(Vxe)return qxe;Vxe=1;var e=twe();return qxe=function(t){return e(t.length)},qxe}function rwe(){if(jxe)return Wxe;jxe=1;var e=ibe(),t=function(){if(Fxe)return Xxe;Fxe=1;var e=ewe(),t=Math.max,n=Math.min;return Xxe=function(r,i){var o=e(r);return o<0?t(o+i,0):n(o,i)}}(),n=nwe(),r=function(r){return function(i,o,a){var s=e(i),l=n(s);if(0===l)return!r&&-1;var c,u=t(a,l);if(r&&o!=o){for(;l>u;)if((c=s[u++])!=c)return!0}else for(;l>u;u++)if((r||u in s)&&s[u]===o)return r||u||0;return!r&&-1}};return Wxe={includes:r(!0),indexOf:r(!1)}}function iwe(){if(Zxe)return Yxe;Zxe=1;var e=Jve(),t=jbe(),n=ibe(),r=rwe().indexOf,i=Exe(),o=e([].push);return Yxe=function(e,a){var s,l=n(e),c=0,u=[];for(s in l)!t(i,s)&&t(l,s)&&o(u,s);for(;a.length>c;)t(l,s=a[c++])&&(~r(u,s)||o(u,s));return u},Yxe}function owe(){return Hxe||(Hxe=1,Gxe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),Gxe}var awe,swe,lwe,cwe,uwe,hwe,dwe,pwe,fwe,gwe,mwe,Owe,Awe,ywe,vwe,bwe,xwe,wwe,kwe,Swe,Twe,$we,_we,Cwe,Qwe,Pwe,Ewe,Rwe,Bwe,Iwe,Lwe,Dwe,Mwe,Nwe,Xwe,Fwe,Uwe,zwe,qwe,Vwe,Wwe,jwe,Ywe,Zwe,Gwe,Hwe,Kwe,Jwe,eke,tke,nke,rke,ike,oke,ake,ske,lke,cke,uke,hke,dke,pke,fke,gke,mke,Oke,Ake,yke,vke,bke,xke,wke,kke,Ske,Tke,$ke={};function _ke(){if(lwe)return swe;lwe=1;var e=sbe(),t=Jve(),n=function(){if(Kxe)return Jxe;Kxe=1;var e=iwe(),t=owe().concat("length","prototype");return Jxe.f=Object.getOwnPropertyNames||function(n){return e(n,t)},Jxe}(),r=(awe||(awe=1,$ke.f=Object.getOwnPropertySymbols),$ke),i=uxe(),o=t([].concat);return swe=e("Reflect","ownKeys")||function(e){var t=n.f(i(e)),a=r.f;return a?o(t,a(e)):t}}function Cke(){if(dwe)return hwe;dwe=1;var e=ave(),t=obe(),n=/#|\.prototype\./,r=function(n,r){var l=o[i(n)];return l===s||l!==a&&(t(r)?e(r):!!r)},i=r.normalize=function(e){return String(e).replace(n,".").toLowerCase()},o=r.data={},a=r.NATIVE="N",s=r.POLYFILL="P";return hwe=r}function Qke(){if(fwe)return pwe;fwe=1;var e=Gye(),t=exe().f,n=dxe(),r=Ixe(),i=zbe(),o=function(){if(uwe)return cwe;uwe=1;var e=jbe(),t=_ke(),n=exe(),r=hxe();return cwe=function(i,o,a){for(var s=t(o),l=r.f,c=n.f,u=0;u<s.length;u++){var h=s[u];!e(i,h)&&(!a||!e(a,h))&&l(i,h,c(o,h))}},cwe}(),a=Cke();return pwe=function(s,l){var c,u,h,d,p,f=s.target,g=s.global,m=s.stat;if(c=g?e:m?e[f]||i(f,{}):e[f]&&e[f].prototype)for(u in l){if(d=l[u],s.dontCallGetSet?h=(p=t(c,u))&&p.value:h=c[u],!a(g?u:f+(m?".":"#")+u,s.forced)&&void 0!==h){if(typeof d==typeof h)continue;o(d,h)}(s.sham||h&&h.sham)&&n(d,"sham",!0),r(c,u,d,s)}}}function Pke(){if(mwe)return gwe;mwe=1;var e=Gye(),t=cbe(),n=ebe(),r=function(e){return t.slice(0,e.length)===e};return gwe=r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":e.Bun&&"string"==typeof Bun.version?"BUN":e.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(e.process)?"NODE":e.window&&e.document?"BROWSER":"REST"}function Eke(){if(Awe)return Owe;Awe=1;var e=Pke();return Owe="NODE"===e}function Rke(){if(Twe)return Swe;Twe=1;var e=function(){if(kwe)return wwe;kwe=1;var e=abe();return wwe=function(t){return e(t)||null===t},wwe}(),t=String,n=TypeError;return Swe=function(r){if(e(r))return r;throw new n("Can't set "+t(r)+" as a prototype")}}function Bke(){if(_we)return $we;_we=1;var e=function(){if(xwe)return bwe;xwe=1;var e=Jve(),t=gbe();return bwe=function(n,r,i){try{return e(t(Object.getOwnPropertyDescriptor(n,r)[i]))}catch{}},bwe}(),t=abe(),n=rbe(),r=Rke();return $we=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,a={};try{(i=e(Object.prototype,"__proto__","set"))(a,[]),o=a instanceof Array}catch{}return function(e,a){return n(e),r(a),t(e)&&(o?i(e,a):e.__proto__=a),e}}():void 0),$we}function Ike(){if(Qwe)return Cwe;Qwe=1;var e=hxe().f,t=jbe(),n=Zbe()("toStringTag");return Cwe=function(r,i,o){r&&!o&&(r=r.prototype),r&&!t(r,n)&&e(r,n,{configurable:!0,value:i})},Cwe}function Lke(){if(Bwe)return Rwe;Bwe=1;var e=sbe(),t=function(){if(Ewe)return Pwe;Ewe=1;var e=Bxe(),t=hxe();return Pwe=function(n,r,i){return i.get&&e(i.get,r,{getter:!0}),i.set&&e(i.set,r,{setter:!0}),t.f(n,r,i)},Pwe}(),n=Zbe(),r=sve(),i=n("species");return Rwe=function(n){var o=e(n);r&&o&&!o[i]&&t(o,i,{configurable:!0,get:function(){return this}})},Rwe}function Dke(){if(Xwe)return Nwe;Xwe=1;var e=function(){if(Mwe)return Dwe;Mwe=1;var e={};return e[Zbe()("toStringTag")]="z",Dwe="[object z]"===String(e)}(),t=obe(),n=ebe(),r=Zbe()("toStringTag"),i=Object,o="Arguments"===n(function(){return arguments}());return Nwe=e?n:function(e){var a,s,l;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch{}}(a=i(e),r))?s:o?n(a):"Object"===(l=n(a))&&t(a.callee)?"Arguments":l}}function Mke(){if(qwe)return zwe;qwe=1;var e=function(){if(Uwe)return Fwe;Uwe=1;var e=Jve(),t=ave(),n=obe(),r=Dke(),i=sbe(),o=Qxe(),a=function(){},s=i("Reflect","construct"),l=/^\s*(?:class|function)\b/,c=e(l.exec),u=!l.test(a),h=function(e){if(!n(e))return!1;try{return s(a,[],e),!0}catch{return!1}},d=function(e){if(!n(e))return!1;switch(r(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return u||!!c(l,o(e))}catch{return!0}};return d.sham=!0,Fwe=!s||t(function(){var e;return h(h.call)||!h(Object)||!h(function(){e=!0})||e})?d:h}(),t=fbe(),n=TypeError;return zwe=function(r){if(e(r))return r;throw new n(t(r)+" is not a constructor")}}function Nke(){if(Wwe)return Vwe;Wwe=1;var e=uxe(),t=Mke(),n=nbe(),r=Zbe()("species");return Vwe=function(i,o){var a,s=e(i).constructor;return void 0===s||n(a=e(s)[r])?o:t(a)},Vwe}function Xke(){if(Ywe)return jwe;Ywe=1;var e=lve(),t=Function.prototype,n=t.apply,r=t.call;return jwe="object"==typeof Reflect&&Reflect.apply||(e?r.bind(n):function(){return r.apply(n,arguments)}),jwe}function Fke(){if(Gwe)return Zwe;Gwe=1;var e=ebe(),t=Jve();return Zwe=function(n){if("Function"===e(n))return t(n)},Zwe}function Uke(){if(Kwe)return Hwe;Kwe=1;var e=Fke(),t=gbe(),n=lve(),r=e(e.bind);return Hwe=function(e,i){return t(e),void 0===i?e:n?r(e,i):function(){return e.apply(i,arguments)}},Hwe}function zke(){if(eke)return Jwe;eke=1;var e=sbe();return Jwe=e("document","documentElement")}function qke(){if(ake)return oke;ake=1;var e=cbe();return oke=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)}function Vke(){if(lke)return ske;lke=1;var e,t,n,r,i=Gye(),o=Xke(),a=Uke(),s=obe(),l=jbe(),c=ave(),u=zke(),h=function(){if(nke)return tke;nke=1;var e=Jve();return tke=e([].slice)}(),d=Kbe(),p=function(){if(ike)return rke;ike=1;var e=TypeError;return rke=function(t,n){if(t<n)throw new e("Not enough arguments");return t},rke}(),f=qke(),g=Eke(),m=i.setImmediate,O=i.clearImmediate,A=i.process,y=i.Dispatch,v=i.Function,b=i.MessageChannel,x=i.String,w=0,k={},S="onreadystatechange";c(function(){e=i.location});var T=function(e){if(l(k,e)){var t=k[e];delete k[e],t()}},$=function(e){return function(){T(e)}},_=function(e){T(e.data)},C=function(t){i.postMessage(x(t),e.protocol+"//"+e.host)};return(!m||!O)&&(m=function(e){p(arguments.length,1);var n=s(e)?e:v(e),r=h(arguments,1);return k[++w]=function(){o(n,void 0,r)},t(w),w},O=function(e){delete k[e]},g?t=function(e){A.nextTick($(e))}:y&&y.now?t=function(e){y.now($(e))}:b&&!f?(r=(n=new b).port2,n.port1.onmessage=_,t=a(r.postMessage,r)):i.addEventListener&&s(i.postMessage)&&!i.importScripts&&e&&"file:"!==e.protocol&&!c(C)?(t=C,i.addEventListener("message",_,!1)):t=S in d("script")?function(e){u.appendChild(d("script"))[S]=function(){u.removeChild(this),T(e)}}:function(e){setTimeout($(e),0)}),ske={set:m,clear:O}}function Wke(){if(dke)return hke;dke=1;var e=function(){this.head=null,this.tail=null};return e.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},hke=e}function jke(){if(Ake)return Oke;Ake=1;var e,t,n,r,i,o=Gye(),a=function(){if(uke)return cke;uke=1;var e=Gye(),t=sve(),n=Object.getOwnPropertyDescriptor;return cke=function(r){if(!t)return e[r];var i=n(e,r);return i&&i.value}}(),s=Uke(),l=Vke().set,c=Wke(),u=qke(),h=function(){if(fke)return pke;fke=1;var e=cbe();return pke=/ipad|iphone|ipod/i.test(e)&&typeof Pebble<"u"}(),d=function(){if(mke)return gke;mke=1;var e=cbe();return gke=/web0s(?!.*chrome)/i.test(e)}(),p=Eke(),f=o.MutationObserver||o.WebKitMutationObserver,g=o.document,m=o.process,O=o.Promise,A=a("queueMicrotask");if(!A){var y=new c,v=function(){var t,n;for(p&&(t=m.domain)&&t.exit();n=y.get();)try{n()}catch(r){throw y.head&&e(),r}t&&t.enter()};u||p||d||!f||!g?!h&&O&&O.resolve?((r=O.resolve(void 0)).constructor=O,i=s(r.then,r),e=function(){i(v)}):p?e=function(){m.nextTick(v)}:(l=s(l,o),e=function(){l(v)}):(t=!0,n=g.createTextNode(""),new f(v).observe(n,{characterData:!0}),e=function(){n.data=t=!t}),A=function(t){y.head||e(),y.add(t)}}return Oke=A}function Yke(){return xke||(xke=1,bke=function(e){try{return{error:!1,value:e()}}catch(Yk){return{error:!0,value:Yk}}}),bke}function Zke(){if(kke)return wke;kke=1;var e=Gye();return wke=e.Promise}function Gke(){if(Tke)return Ske;Tke=1;var e=Gye(),t=Zke(),n=obe(),r=Cke(),i=Qxe(),o=Zbe(),a=Pke(),s=Ube(),l=ube(),c=t&&t.prototype,u=o("species"),h=!1,d=n(e.PromiseRejectionEvent),p=r("Promise",function(){var e=i(t),n=e!==String(t);if(!n&&66===l||s&&(!c.catch||!c.finally))return!0;if(!l||l<51||!/native code/.test(e)){var r=new t(function(e){e(1)}),o=function(e){e(function(){},function(){})};if((r.constructor={})[u]=o,!(h=r.then(function(){})instanceof o))return!0}return!(n||"BROWSER"!==a&&"DENO"!==a||d)});return Ske={CONSTRUCTOR:p,REJECTION_EVENT:d,SUBCLASSING:h}}var Hke,Kke,Jke={};function eSe(){if(Hke)return Jke;Hke=1;var e=gbe(),t=TypeError,n=function(n){var r,i;this.promise=new n(function(e,n){if(void 0!==r||void 0!==i)throw new t("Bad Promise constructor");r=e,i=n}),this.resolve=e(r),this.reject=e(i)};return Jke.f=function(e){return new n(e)},Jke}function tSe(){if(Kke)return Zye;Kke=1;var e,t,n,r,i=Qke(),o=Ube(),a=Eke(),s=Gye(),l=function(){if(vwe)return ywe;vwe=1;var e=Gye();return ywe=e}(),c=cve(),u=Ixe(),h=Bke(),d=Ike(),p=Lke(),f=gbe(),g=obe(),m=abe(),O=function(){if(Lwe)return Iwe;Lwe=1;var e=lbe(),t=TypeError;return Iwe=function(n,r){if(e(r,n))return n;throw new t("Incorrect invocation")},Iwe}(),A=Nke(),y=Vke().set,v=jke(),b=(vke||(vke=1,yke=function(e,t){}),yke),x=Yke(),w=Wke(),k=Rxe(),S=Zke(),T=Gke(),$=eSe(),_="Promise",C=T.CONSTRUCTOR,Q=T.REJECTION_EVENT,P=T.SUBCLASSING,E=k.getterFor(_),R=k.set,B=S&&S.prototype,I=S,L=B,D=s.TypeError,M=s.document,N=s.process,X=$.f,F=X,U=!!(M&&M.createEvent&&s.dispatchEvent),z="unhandledrejection",q=function(e){var t;return!(!m(e)||!g(t=e.then))&&t},V=function(e,t){var n,r,i,o=t.value,a=1===t.state,s=a?e.ok:e.fail,l=e.resolve,u=e.reject,h=e.domain;try{s?(a||(2===t.rejection&&G(t),t.rejection=1),!0===s?n=o:(h&&h.enter(),n=s(o),h&&(h.exit(),i=!0)),n===e.promise?u(new D("Promise-chain cycle")):(r=q(n))?c(r,n,l,u):l(n)):u(o)}catch(d){h&&!i&&h.exit(),u(d)}},W=function(e,t){e.notified||(e.notified=!0,v(function(){for(var n,r=e.reactions;n=r.get();)V(n,e);e.notified=!1,t&&!e.rejection&&Y(e)}))},j=function(e,t,n){var r,i;U?((r=M.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),s.dispatchEvent(r)):r={promise:t,reason:n},!Q&&(i=s["on"+e])?i(r):e===z&&b("Unhandled promise rejection",n)},Y=function(e){c(y,s,function(){var t,n=e.facade,r=e.value;if(Z(e)&&(t=x(function(){a?N.emit("unhandledRejection",r,n):j(z,n,r)}),e.rejection=a||Z(e)?2:1,t.error))throw t.value})},Z=function(e){return 1!==e.rejection&&!e.parent},G=function(e){c(y,s,function(){var t=e.facade;a?N.emit("rejectionHandled",t):j("rejectionhandled",t,e.value)})},H=function(e,t,n){return function(r){e(t,r,n)}},K=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,W(e,!0))},J=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new D("Promise can't be resolved itself");var r=q(t);r?v(function(){var n={done:!1};try{c(r,t,H(J,n,e),H(K,n,e))}catch(i){K(n,i,e)}}):(e.value=t,e.state=1,W(e,!1))}catch(i){K({done:!1},i,e)}}};if(C&&(L=(I=function(t){O(this,L),f(t),c(e,this);var n=E(this);try{t(H(J,n),H(K,n))}catch(r){K(n,r)}}).prototype,(e=function(e){R(this,{type:_,done:!1,notified:!1,parent:!1,reactions:new w,rejection:!1,state:0,value:null})}).prototype=u(L,"then",function(e,t){var n=E(this),r=X(A(this,I));return n.parent=!0,r.ok=!g(e)||e,r.fail=g(t)&&t,r.domain=a?N.domain:void 0,0===n.state?n.reactions.add(r):v(function(){V(r,n)}),r.promise}),t=function(){var t=new e,n=E(t);this.promise=t,this.resolve=H(J,n),this.reject=H(K,n)},$.f=X=function(e){return e===I||e===n?new t(e):F(e)},!o&&g(S)&&B!==Object.prototype)){r=B.then,P||u(B,"then",function(e,t){var n=this;return new I(function(e,t){c(r,n,e,t)}).then(e,t)},{unsafe:!0});try{delete B.constructor}catch{}h&&h(B,L)}return i({global:!0,constructor:!0,wrap:!0,forced:C},{Promise:I}),n=l.Promise,d(I,_,!1,!0),p(_),Zye}var nSe,rSe,iSe,oSe,aSe,sSe,lSe,cSe,uSe,hSe,dSe,pSe,fSe,gSe,mSe,OSe,ASe,ySe={};function vSe(){return rSe||(rSe=1,nSe={}),nSe}function bSe(){if(sSe)return aSe;sSe=1;var e=Dke(),t=mbe(),n=nbe(),r=vSe(),i=Zbe()("iterator");return aSe=function(o){if(!n(o))return t(o,i)||t(o,"@@iterator")||r[e(o)]},aSe}function xSe(){if(pSe)return dSe;pSe=1;var e=Uke(),t=cve(),n=uxe(),r=fbe(),i=function(){if(oSe)return iSe;oSe=1;var e=Zbe(),t=vSe(),n=e("iterator"),r=Array.prototype;return iSe=function(e){return void 0!==e&&(t.Array===e||r[n]===e)}}(),o=nwe(),a=lbe(),s=function(){if(cSe)return lSe;cSe=1;var e=cve(),t=gbe(),n=uxe(),r=fbe(),i=bSe(),o=TypeError;return lSe=function(a,s){var l=arguments.length<2?i(a):s;if(t(l))return n(e(l,a));throw new o(r(a)+" is not iterable")},lSe}(),l=bSe(),c=function(){if(hSe)return uSe;hSe=1;var e=cve(),t=uxe(),n=mbe();return uSe=function(r,i,o){var a,s;t(r);try{if(!(a=n(r,"return"))){if("throw"===i)throw o;return o}a=e(a,r)}catch(l){s=!0,a=l}if("throw"===i)throw o;if(s)throw a;return t(a),o},uSe}(),u=TypeError,h=function(e,t){this.stopped=e,this.result=t},d=h.prototype;return dSe=function(p,f,g){var m,O,A,y,v,b,x,w=g&&g.that,k=!(!g||!g.AS_ENTRIES),S=!(!g||!g.IS_RECORD),T=!(!g||!g.IS_ITERATOR),$=!(!g||!g.INTERRUPTED),_=e(f,w),C=function(e){return m&&c(m,"normal"),new h(!0,e)},Q=function(e){return k?(n(e),$?_(e[0],e[1],C):_(e[0],e[1])):$?_(e,C):_(e)};if(S)m=p.iterator;else if(T)m=p;else{if(!(O=l(p)))throw new u(r(p)+" is not iterable");if(i(O)){for(A=0,y=o(p);y>A;A++)if((v=Q(p[A]))&&a(d,v))return v;return new h(!1)}m=s(p,O)}for(b=S?p.next:m.next;!(x=t(b,m)).done;){try{v=Q(x.value)}catch(P){c(m,"throw",P)}if("object"==typeof v&&v&&a(d,v))return v}return new h(!1)}}function wSe(){if(OSe)return mSe;OSe=1;var e=Zke(),t=function(){if(gSe)return fSe;gSe=1;var e=Zbe()("iterator"),t=!1;try{var n=0,r={next:function(){return{done:!!n++}},return:function(){t=!0}};r[e]=function(){return this},Array.from(r,function(){throw 2})}catch{}return fSe=function(n,r){try{if(!r&&!t)return!1}catch{return!1}var i=!1;try{var o={};o[e]=function(){return{next:function(){return{done:i=!0}}}},n(o)}catch{}return i},fSe}(),n=Gke().CONSTRUCTOR;return mSe=n||!t(function(t){e.all(t).then(void 0,function(){})})}var kSe,SSe={};var TSe,$Se={};var _Se,CSe={};var QSe,PSe,ESe,RSe,BSe={};function ISe(){if(ESe)return BSe;ESe=1;var e=Qke(),t=sbe(),n=Ube(),r=Zke(),i=Gke().CONSTRUCTOR,o=function(){if(PSe)return QSe;PSe=1;var e=uxe(),t=abe(),n=eSe();return QSe=function(r,i){if(e(r),t(i)&&i.constructor===r)return i;var o=n.f(r);return(0,o.resolve)(i),o.promise}}(),a=t("Promise"),s=n&&!i;return e({target:"Promise",stat:!0,forced:n||i},{resolve:function(e){return o(s&&this===a?r:this,e)}}),BSe}function LSe(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function DSe(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){LSe(o,r,i,a,s,"next",e)}function s(e){LSe(o,r,i,a,s,"throw",e)}a(void 0)})}}RSe||(RSe=1,tSe(),function(){if(ASe)return ySe;ASe=1;var e=Qke(),t=cve(),n=gbe(),r=eSe(),i=Yke(),o=xSe();e({target:"Promise",stat:!0,forced:wSe()},{all:function(e){var a=this,s=r.f(a),l=s.resolve,c=s.reject,u=i(function(){var r=n(a.resolve),i=[],s=0,u=1;o(e,function(e){var n=s++,o=!1;u++,t(r,a,e).then(function(e){o||(o=!0,i[n]=e,--u||l(i))},c)}),--u||l(i)});return u.error&&c(u.value),s.promise}})}(),function(){if(kSe)return SSe;kSe=1;var e=Qke(),t=Ube(),n=Gke().CONSTRUCTOR,r=Zke(),i=sbe(),o=obe(),a=Ixe(),s=r&&r.prototype;if(e({target:"Promise",proto:!0,forced:n,real:!0},{catch:function(e){return this.then(void 0,e)}}),!t&&o(r)){var l=i("Promise").prototype.catch;s.catch!==l&&a(s,"catch",l,{unsafe:!0})}}(),function(){if(TSe)return $Se;TSe=1;var e=Qke(),t=cve(),n=gbe(),r=eSe(),i=Yke(),o=xSe();e({target:"Promise",stat:!0,forced:wSe()},{race:function(e){var a=this,s=r.f(a),l=s.reject,c=i(function(){var r=n(a.resolve);o(e,function(e){t(r,a,e).then(s.resolve,l)})});return c.error&&l(c.value),s.promise}})}(),function(){if(_Se)return CSe;_Se=1;var e=Qke(),t=eSe();e({target:"Promise",stat:!0,forced:Gke().CONSTRUCTOR},{reject:function(e){var n=t.f(this);return(0,n.reject)(e),n.promise}})}(),ISe());var MSe,NSe,XSe,FSe,USe,zSe,qSe={},VSe={};function WSe(){if(NSe)return MSe;NSe=1;var e=Dke(),t=String;return MSe=function(n){if("Symbol"===e(n))throw new TypeError("Cannot convert a Symbol value to a string");return t(n)},MSe}function jSe(){if(FSe)return XSe;FSe=1;var e=uxe();return XSe=function(){var t=e(this),n="";return t.hasIndices&&(n+="d"),t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.unicodeSets&&(n+="v"),t.sticky&&(n+="y"),n},XSe}function YSe(){if(zSe)return USe;zSe=1;var e=ave(),t=Gye().RegExp,n=e(function(){var e=t("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),r=n||e(function(){return!t("a","y").sticky}),i=n||e(function(){var e=t("^r","gy");return e.lastIndex=2,null!==e.exec("str")});return USe={BROKEN_CARET:i,MISSED_STICKY:r,UNSUPPORTED_Y:n}}var ZSe,GSe,HSe,KSe,JSe,eTe,tTe,nTe,rTe,iTe,oTe,aTe,sTe,lTe,cTe,uTe,hTe,dTe,pTe,fTe,gTe,mTe,OTe,ATe,yTe,vTe={};function bTe(){if(HSe)return vTe;HSe=1;var e=sve(),t=cxe(),n=hxe(),r=uxe(),i=ibe(),o=function(){if(GSe)return ZSe;GSe=1;var e=iwe(),t=owe();return ZSe=Object.keys||function(n){return e(n,t)}}();return vTe.f=e&&!t?Object.defineProperties:function(e,t){r(e);for(var a,s=i(t),l=o(t),c=l.length,u=0;c>u;)n.f(e,a=l[u++],s[a]);return e},vTe}function xTe(){if(JSe)return KSe;JSe=1;var e,t=uxe(),n=bTe(),r=owe(),i=Exe(),o=zke(),a=Kbe(),s=Pxe(),l="prototype",c="script",u=s("IE_PROTO"),h=function(){},d=function(e){return"<"+c+">"+e+"</"+c+">"},p=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},f=function(){try{e=new ActiveXObject("htmlfile")}catch{}f=typeof document<"u"?document.domain&&e?p(e):function(){var e,t=a("iframe"),n="java"+c+":";return t.style.display="none",o.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F}():p(e);for(var t=r.length;t--;)delete f[l][r[t]];return f()};return i[u]=!0,KSe=Object.create||function(e,r){var i;return null!==e?(h[l]=t(e),i=new h,h[l]=null,i[u]=e):i=f(),void 0===r?i:n.f(i,r)}}function wTe(){if(oTe)return iTe;oTe=1;var e,t,n=cve(),r=Jve(),i=WSe(),o=jSe(),a=YSe(),s=Vbe(),l=xTe(),c=Rxe().get,u=function(){if(tTe)return eTe;tTe=1;var e=ave(),t=Gye().RegExp;return eTe=e(function(){var e=t(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})}(),h=function(){if(rTe)return nTe;rTe=1;var e=ave(),t=Gye().RegExp;return nTe=e(function(){var e=t("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})}(),d=s("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,f=p,g=r("".charAt),m=r("".indexOf),O=r("".replace),A=r("".slice),y=(t=/b*/g,n(p,e=/a/,"a"),n(p,t,"a"),0!==e.lastIndex||0!==t.lastIndex),v=a.BROKEN_CARET,b=void 0!==/()??/.exec("")[1];return(y||b||v||u||h)&&(f=function(e){var t,r,a,s,u,h,x,w=this,k=c(w),S=i(e),T=k.raw;if(T)return T.lastIndex=w.lastIndex,t=n(f,T,S),w.lastIndex=T.lastIndex,t;var $=k.groups,_=v&&w.sticky,C=n(o,w),Q=w.source,P=0,E=S;if(_&&(C=O(C,"y",""),-1===m(C,"g")&&(C+="g"),E=A(S,w.lastIndex),w.lastIndex>0&&(!w.multiline||w.multiline&&"\n"!==g(S,w.lastIndex-1))&&(Q="(?: "+Q+")",E=" "+E,P++),r=new RegExp("^(?:"+Q+")",C)),b&&(r=new RegExp("^"+Q+"$(?!\\s)",C)),y&&(a=w.lastIndex),s=n(p,_?r:w,E),_?s?(s.input=A(s.input,P),s[0]=A(s[0],P),s.index=w.lastIndex,w.lastIndex+=s[0].length):w.lastIndex=0:y&&s&&(w.lastIndex=w.global?s.index+s[0].length:a),b&&s&&s.length>1&&n(d,s[0],r,function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(s[u]=void 0)}),s&&$)for(s.groups=h=l(null),u=0;u<$.length;u++)h[(x=$[u])[0]]=s[x[1]];return s}),iTe=f}function kTe(){if(lTe)return sTe;lTe=1,function(){if(aTe)return VSe;aTe=1;var e=Qke(),t=wTe();e({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t})}();var e=cve(),t=Ixe(),n=wTe(),r=ave(),i=Zbe(),o=dxe(),a=i("species"),s=RegExp.prototype;return sTe=function(l,c,u,h){var d=i(l),p=!r(function(){var e={};return e[d]=function(){return 7},7!==""[l](e)}),f=p&&!r(function(){var e=!1,t=/a/;return"split"===l&&((t={}).constructor={},t.constructor[a]=function(){return t},t.flags="",t[d]=/./[d]),t.exec=function(){return e=!0,null},t[d](""),!e});if(!p||!f||u){var g=/./[d],m=c(d,""[l],function(t,r,i,o,a){var l=r.exec;return l===n||l===s.exec?p&&!a?{done:!0,value:e(g,r,i,o)}:{done:!0,value:e(t,i,r,o)}:{done:!1}});t(String.prototype,l,m[0]),t(s,d,m[1])}h&&o(s[d],"sham",!0)}}function STe(){if(dTe)return hTe;dTe=1;var e=function(){if(uTe)return cTe;uTe=1;var e=Jve(),t=ewe(),n=WSe(),r=rbe(),i=e("".charAt),o=e("".charCodeAt),a=e("".slice),s=function(e){return function(s,l){var c,u,h=n(r(s)),d=t(l),p=h.length;return d<0||d>=p?e?"":void 0:(c=o(h,d))<55296||c>56319||d+1===p||(u=o(h,d+1))<56320||u>57343?e?i(h,d):c:e?a(h,d,d+2):u-56320+(c-55296<<10)+65536}};return cTe={codeAt:s(!1),charAt:s(!0)}}().charAt;return hTe=function(t,n,r){return n+(r?e(t,n).length:1)},hTe}function TTe(){if(mTe)return gTe;mTe=1;var e=cve(),t=jbe(),n=lbe(),r=function(){if(fTe)return pTe;fTe=1;var e=Gye(),t=ave(),n=e.RegExp,r=!t(function(){var e=!0;try{n(".","d")}catch{e=!1}var t={},r="",i=e?"dgimsy":"gimsy",o=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(a.hasIndices="d"),a)o(s,a[s]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(t)!==i||r!==i});return pTe={correct:r}}(),i=jSe(),o=RegExp.prototype;return gTe=r.correct?function(e){return e.flags}:function(a){return r.correct||!n(o,a)||t(a,"flags")?a.flags:e(i,a)},gTe}function $Te(){if(ATe)return OTe;ATe=1;var e=cve(),t=uxe(),n=obe(),r=ebe(),i=wTe(),o=TypeError;return OTe=function(a,s){var l=a.exec;if(n(l)){var c=e(l,a,s);return null!==c&&t(c),c}if("RegExp"===r(a))return e(i,a,s);throw new o("RegExp#exec called on incompatible receiver")},OTe}!function(){if(yTe)return qSe;yTe=1;var e=cve(),t=Jve(),n=kTe(),r=uxe(),i=abe(),o=twe(),a=WSe(),s=rbe(),l=mbe(),c=STe(),u=TTe(),h=$Te(),d=t("".indexOf);n("match",function(t,n,p){return[function(n){var r=s(this),o=i(n)?l(n,t):void 0;return o?e(o,n,r):new RegExp(n)[t](a(r))},function(e){var t=r(this),i=a(e),s=p(n,t,i);if(s.done)return s.value;var l=a(u(t));if(-1===d(l,"g"))return h(t,i);var f=-1!==d(l,"u");t.lastIndex=0;for(var g,m=[],O=0;null!==(g=h(t,i));){var A=a(g[0]);m[O]=A,""===A&&(t.lastIndex=c(i,o(t.lastIndex),f)),O++}return 0===O?null:m}]})}();var _Te,CTe,QTe,PTe={};!function(){if(QTe)return PTe;QTe=1;var e=Xke(),t=cve(),n=Jve(),r=kTe(),i=ave(),o=uxe(),a=obe(),s=abe(),l=ewe(),c=twe(),u=WSe(),h=rbe(),d=STe(),p=mbe(),f=function(){if(CTe)return _Te;CTe=1;var e=Jve(),t=Wbe(),n=Math.floor,r=e("".charAt),i=e("".replace),o=e("".slice),a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;return _Te=function(e,l,c,u,h,d){var p=c+e.length,f=u.length,g=s;return void 0!==h&&(h=t(h),g=a),i(d,g,function(t,i){var a;switch(r(i,0)){case"$":return"$";case"&":return e;case"`":return o(l,0,c);case"'":return o(l,p);case"<":a=h[o(i,1,-1)];break;default:var s=+i;if(0===s)return t;if(s>f){var d=n(s/10);return 0===d?t:d<=f?void 0===u[d-1]?r(i,1):u[d-1]+r(i,1):t}a=u[s-1]}return void 0===a?"":a})}}(),g=TTe(),m=$Te(),O=Zbe()("replace"),A=Math.max,y=Math.min,v=n([].concat),b=n([].push),x=n("".indexOf),w=n("".slice),k=function(e){return void 0===e?e:String(e)},S="$0"==="a".replace(/./,"$0"),T=!!/./[O]&&""===/./[O]("a","$0");r("replace",function(n,r,i){var S=T?"$":"$0";return[function(e,n){var i=h(this),o=s(e)?p(e,O):void 0;return o?t(o,e,i,n):t(r,u(i),e,n)},function(t,n){var s=o(this),h=u(t);if("string"==typeof n&&-1===x(n,S)&&-1===x(n,"$<")){var p=i(r,s,h,n);if(p.done)return p.value}var O=a(n);O||(n=u(n));var T,$=u(g(s)),_=-1!==x($,"g");_&&(T=-1!==x($,"u"),s.lastIndex=0);for(var C,Q=[];null!==(C=m(s,h))&&(b(Q,C),_);){""===u(C[0])&&(s.lastIndex=d(h,c(s.lastIndex),T))}for(var P="",E=0,R=0;R<Q.length;R++){for(var B,I=u((C=Q[R])[0]),L=A(y(l(C.index),h.length),0),D=[],M=1;M<C.length;M++)b(D,k(C[M]));var N=C.groups;if(O){var X=v([I],D,L,h);void 0!==N&&b(X,N),B=u(e(n,void 0,X))}else B=f(I,h,L,D,N,n);L>=E&&(P+=w(h,E,L)+B,E=L+I.length)}return P+w(h,E)}]},!!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!S||T)}();var ETe,RTe,BTe,ITe,LTe,DTe,MTe,NTe,XTe,FTe,UTe,zTe,qTe,VTe,WTe,jTe,YTe,ZTe,GTe,HTe,KTe,JTe,e$e,t$e={};function n$e(){if(ITe)return BTe;ITe=1;var e=function(){if(RTe)return ETe;RTe=1;var e=abe(),t=ebe(),n=Zbe()("match");return ETe=function(r){var i;return e(r)&&(void 0!==(i=r[n])?!!i:"RegExp"===t(r))}}(),t=TypeError;return BTe=function(n){if(e(n))throw new t("The method doesn't accept regular expressions");return n},BTe}function r$e(){if(DTe)return LTe;DTe=1;var e=Zbe()("match");return LTe=function(t){var n=/./;try{"/./"[t](n)}catch{try{return n[e]=!1,"/./"[t](n)}catch{}}return!1},LTe}function i$e(){if(qTe)return zTe;qTe=1;var e=jbe(),t=obe(),n=Wbe(),r=Pxe(),i=function(){if(UTe)return FTe;UTe=1;var e=ave();return FTe=!e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),FTe}(),o=r("IE_PROTO"),a=Object,s=a.prototype;return zTe=i?a.getPrototypeOf:function(r){var i=n(r);if(e(i,o))return i[o];var l=i.constructor;return t(l)&&i instanceof l?l.prototype:i instanceof a?s:null}}function o$e(){if(WTe)return VTe;WTe=1;var e,t,n,r=ave(),i=obe(),o=abe(),a=xTe(),s=i$e(),l=Ixe(),c=Zbe(),u=Ube(),h=c("iterator"),d=!1;return[].keys&&("next"in(n=[].keys())?(t=s(s(n)))!==Object.prototype&&(e=t):d=!0),!o(e)||r(function(){var t={};return e[h].call(t)!==t})?e={}:u&&(e=a(e)),i(e[h])||l(e,h,function(){return this}),VTe={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:d}}function a$e(){if(GTe)return ZTe;GTe=1;var e=Qke(),t=cve(),n=Ube(),r=Cxe(),i=obe(),o=function(){if(YTe)return jTe;YTe=1;var e=o$e().IteratorPrototype,t=xTe(),n=Kve(),r=Ike(),i=vSe(),o=function(){return this};return jTe=function(a,s,l,c){var u=s+" Iterator";return a.prototype=t(e,{next:n(+!c,l)}),r(a,u,!1,!0),i[u]=o,a},jTe}(),a=i$e(),s=Bke(),l=Ike(),c=dxe(),u=Ixe(),h=Zbe(),d=vSe(),p=o$e(),f=r.PROPER,g=r.CONFIGURABLE,m=p.IteratorPrototype,O=p.BUGGY_SAFARI_ITERATORS,A=h("iterator"),y="keys",v="values",b="entries",x=function(){return this};return ZTe=function(r,h,p,w,k,S,T){o(p,h,w);var $,_,C,Q=function(e){if(e===k&&I)return I;if(!O&&e&&e in R)return R[e];switch(e){case y:case v:case b:return function(){return new p(this,e)}}return function(){return new p(this)}},P=h+" Iterator",E=!1,R=r.prototype,B=R[A]||R["@@iterator"]||k&&R[k],I=!O&&B||Q(k),L="Array"===h&&R.entries||B;if(L&&(($=a(L.call(new r)))!==Object.prototype&&$.next&&(!n&&a($)!==m&&(s?s($,m):i($[A])||u($,A,x)),l($,P,!0,!0),n&&(d[P]=x))),f&&k===v&&B&&B.name!==v&&(!n&&g?c(R,"name",v):(E=!0,I=function(){return t(B,this)})),k)if(_={values:Q(v),keys:S?I:Q(y),entries:Q(b)},T)for(C in _)(O||E||!(C in R))&&u(R,C,_[C]);else e({target:h,proto:!0,forced:O||E},_);return(!n||T)&&R[A]!==I&&u(R,A,I,{name:k}),d[h]=I,_}}function s$e(){if(e$e)return JTe;e$e=1;var e=ibe(),t=function(){if(XTe)return NTe;XTe=1;var e=Zbe(),t=xTe(),n=hxe().f,r=e("unscopables"),i=Array.prototype;return void 0===i[r]&&n(i,r,{configurable:!0,value:t(null)}),NTe=function(e){i[r][e]=!0}}(),n=vSe(),r=Rxe(),i=hxe().f,o=a$e(),a=(KTe||(KTe=1,HTe=function(e,t){return{value:e,done:t}}),HTe),s=Ube(),l=sve(),c="Array Iterator",u=r.set,h=r.getterFor(c);JTe=o(Array,"Array",function(t,n){u(this,{type:c,target:e(t),index:0,kind:n})},function(){var e=h(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,a(void 0,!0);switch(e.kind){case"keys":return a(n,!1);case"values":return a(t[n],!1)}return a([n,t[n]],!1)},"values");var d=n.Arguments=n.Array;if(t("keys"),t("values"),t("entries"),!s&&l&&"values"!==d.name)try{i(d,"name",{value:"values"})}catch{}return JTe}!function(){if(MTe)return t$e;MTe=1;var e,t=Qke(),n=Fke(),r=exe().f,i=twe(),o=WSe(),a=n$e(),s=rbe(),l=r$e(),c=Ube(),u=n("".slice),h=Math.min,d=l("startsWith");t({target:"String",proto:!0,forced:!!(c||d||(e=r(String.prototype,"startsWith"),!e||e.writable))&&!d},{startsWith:function(e){var t=o(s(this));a(e);var n=i(h(arguments.length>1?arguments[1]:void 0,t.length)),r=o(e);return u(t,n,n+r.length)===r}})}(),s$e();var l$e,c$e,u$e,h$e,d$e,p$e={};function f$e(e){var t=function(e,t){if("object"!=boe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=boe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==boe(t)?t:t+""}function g$e(e,t,n){return(t=f$e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(){if(d$e)return p$e;d$e=1;var e=Gye(),t=(c$e||(c$e=1,l$e={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),l$e),n=function(){if(h$e)return u$e;h$e=1;var e=Kbe()("span").classList,t=e&&e.constructor&&e.constructor.prototype;return u$e=t===Object.prototype?void 0:t}(),r=s$e(),i=dxe(),o=Ike(),a=Zbe()("iterator"),s=r.values,l=function(e,n){if(e){if(e[a]!==s)try{i(e,a,s)}catch{e[a]=s}if(o(e,n,!0),t[n])for(var l in r)if(e[l]!==r[l])try{i(e,l,r[l])}catch{e[l]=r[l]}}};for(var c in t)l(e[c]&&e[c].prototype,c);l(n,"DOMTokenList")}();var m$e,O$e,A$e,y$e,v$e,b$e={};function x$e(){if(y$e)return A$e;y$e=1;var e=ave();return A$e=function(t,n){var r=[][t];return!!r&&e(function(){r.call(null,n||function(){return 1},1)})},A$e}!function(){if(v$e)return b$e;v$e=1;var e=Qke(),t=function(){if(O$e)return m$e;O$e=1;var e=gbe(),t=Wbe(),n=tbe(),r=nwe(),i=TypeError,o="Reduce of empty array with no initial value",a=function(a){return function(s,l,c,u){var h=t(s),d=n(h),p=r(h);if(e(l),0===p&&c<2)throw new i(o);var f=a?p-1:0,g=a?-1:1;if(c<2)for(;;){if(f in d){u=d[f],f+=g;break}if(f+=g,a?f<0:p<=f)throw new i(o)}for(;a?f>=0:p>f;f+=g)f in d&&(u=l(u,d[f],f,h));return u}};return m$e={left:a(!1),right:a(!0)}}().left,n=x$e(),r=ube();e({target:"Array",proto:!0,forced:!Eke()&&r>79&&r<83||!n("reduce")},{reduce:function(e){var n=arguments.length;return t(this,e,n,n>1?arguments[1]:void 0)}})}();var w$e,k$e={};!function(){if(w$e)return k$e;w$e=1;var e,t=Qke(),n=Fke(),r=exe().f,i=twe(),o=WSe(),a=n$e(),s=rbe(),l=r$e(),c=Ube(),u=n("".slice),h=Math.min,d=l("endsWith");t({target:"String",proto:!0,forced:!!(c||d||(e=r(String.prototype,"endsWith"),!e||e.writable))&&!d},{endsWith:function(e){var t=o(s(this));a(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,l=void 0===n?r:h(i(n),r),c=o(e);return u(t,l-c.length,l)===c}})}();var S$e,T$e={};!function(){if(S$e)return T$e;S$e=1;var e=cve(),t=Jve(),n=kTe(),r=uxe(),i=abe(),o=rbe(),a=Nke(),s=STe(),l=twe(),c=WSe(),u=mbe(),h=$Te(),d=YSe(),p=ave(),f=d.UNSUPPORTED_Y,g=Math.min,m=t([].push),O=t("".slice),A=!p(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),y="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;n("split",function(t,n,d){var p="0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:e(n,this,t,r)}:n;return[function(n,r){var a=o(this),s=i(n)?u(n,t):void 0;return s?e(s,n,a,r):e(p,c(a),n,r)},function(e,t){var i=r(this),o=c(e);if(!y){var u=d(p,i,o,t,p!==n);if(u.done)return u.value}var A=a(i,RegExp),v=i.unicode,b=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(f?"g":"y"),x=new A(f?"^(?:"+i.source+")":i,b),w=void 0===t?4294967295:t>>>0;if(0===w)return[];if(0===o.length)return null===h(x,o)?[o]:[];for(var k=0,S=0,T=[];S<o.length;){x.lastIndex=f?0:S;var $,_=h(x,f?O(o,S):o);if(null===_||($=g(l(x.lastIndex+(f?S:0)),o.length))===k)S=s(o,S,v);else{if(m(T,O(o,k,S)),T.length===w)return T;for(var C=1;C<=_.length-1;C++)if(m(T,_[C]),T.length===w)return T;S=k=$}}return m(T,O(o,k)),T}]},y||!A,f)}();var $$e,_$e,C$e={exports:{}},Q$e={exports:{}},P$e=Q$e.exports;var E$e=function(){if(_$e)return C$e.exports;_$e=1;for(var e=($$e||($$e=1,function(){var e,t,n,r,i,o;typeof performance<"u"&&null!==performance&&performance.now?Q$e.exports=function(){return performance.now()}:typeof process<"u"&&null!==process&&process.hrtime?(Q$e.exports=function(){return(e()-i)/1e6},t=process.hrtime,e=function(){var e;return 1e9*(e=t())[0]+e[1]},r=e(),o=1e9*process.uptime(),i=r-o):Date.now?(Q$e.exports=function(){return Date.now()-n},n=Date.now()):(Q$e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}.call(P$e)),Q$e.exports),t=typeof window>"u"?Vye:window,n=["moz","webkit"],r="AnimationFrame",i=t["request"+r],o=t["cancel"+r]||t["cancelRequest"+r],a=0;!i&&a<n.length;a++)i=t[n[a]+"Request"+r],o=t[n[a]+"Cancel"+r]||t[n[a]+"CancelRequest"+r];if(!i||!o){var s=0,l=0,c=[],u=1e3/60;i=function(t){if(0===c.length){var n=e(),r=Math.max(0,u-(n-s));s=r+n,setTimeout(function(){var e=c.slice(0);c.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(s)}catch(n){setTimeout(function(){throw n},0)}},Math.round(r))}return c.push({handle:++l,callback:t,cancelled:!1}),l},o=function(e){for(var t=0;t<c.length;t++)c[t].handle===e&&(c[t].cancelled=!0)}}return C$e.exports=function(e){return i.call(t,e)},C$e.exports.cancel=function(){o.apply(t,arguments)},C$e.exports.polyfill=function(e){e||(e=t),e.requestAnimationFrame=i,e.cancelAnimationFrame=o},C$e.exports}();const R$e=Wye(E$e);var B$e,I$e,L$e,D$e,M$e,N$e,X$e,F$e,U$e,z$e={};function q$e(){return I$e||(I$e=1,B$e="\t\n\v\f\r \u2028\u2029\ufeff"),B$e}!function(){if(X$e)return z$e;X$e=1;var e=Qke(),t=function(){if(D$e)return L$e;D$e=1;var e=Jve(),t=rbe(),n=WSe(),r=q$e(),i=e("".replace),o=RegExp("^["+r+"]+"),a=RegExp("(^|[^"+r+"])["+r+"]+$"),s=function(e){return function(r){var s=n(t(r));return 1&e&&(s=i(s,o,"")),2&e&&(s=i(s,a,"$1")),s}};return L$e={start:s(1),end:s(2),trim:s(3)}}().trim,n=function(){if(N$e)return M$e;N$e=1;var e=Cxe().PROPER,t=ave(),n=q$e();return M$e=function(r){return t(function(){return!!n[r]()||"
"!=="
"[r]()||e&&n[r].name!==r})}}();e({target:"String",proto:!0,forced:n("trim")},{trim:function(){return t(this)}})}();var V$e=(U$e||(U$e=1,F$e=function(e){this.ok=!1,this.alpha=1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e=(e=e.replace(/ /g,"")).toLowerCase();var t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};e=t[e]||e;for(var n=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3]),parseFloat(e[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],r=0;r<n.length;r++){var i=n[r].re,o=n[r].process,a=i.exec(e);if(a){var s=o(a);this.r=s[0],this.g=s[1],this.b=s[2],s.length>3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==n.length&&(n="0"+n),"#"+e+t+n},this.getHelpXML=function(){for(var e=new Array,r=0;r<n.length;r++)for(var i=n[r].example,o=0;o<i.length;o++)e[e.length]=i[o];for(var a in t)e[e.length]=a;var s=document.createElement("ul");for(s.setAttribute("id","rgbcolor-examples"),r=0;r<e.length;r++)try{var l=document.createElement("li"),c=new RGBColor(e[r]),u=document.createElement("div");u.style.cssText="margin: 3px; border: 1px solid black; background:"+c.toHex()+"; color:"+c.toHex(),u.appendChild(document.createTextNode("test"));var h=document.createTextNode(" "+e[r]+" -> "+c.toRGB()+" -> "+c.toHex());l.appendChild(u),l.appendChild(h),s.appendChild(l)}catch{}return s}}),F$e);const W$e=Wye(V$e);var j$e,Y$e={};!function(){if(j$e)return Y$e;j$e=1;var e=Qke(),t=Fke(),n=rwe().indexOf,r=x$e(),i=t([].indexOf),o=!!i&&1/i([1],1,-0)<0;e({target:"Array",proto:!0,forced:o||!r("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return o?i(this,e,t)||0:n(this,e,t)}})}();var Z$e,G$e={};!function(){if(Z$e)return G$e;Z$e=1;var e=Qke(),t=Jve(),n=n$e(),r=rbe(),i=WSe(),o=r$e(),a=t("".indexOf);e({target:"String",proto:!0,forced:!o("includes")},{includes:function(e){return!!~a(i(r(this)),i(n(e)),arguments.length>1?arguments[1]:void 0)}})}();var H$e,K$e,J$e,e_e={};!function(){if(J$e)return e_e;J$e=1;var e=Qke(),t=Jve(),n=function(){if(K$e)return H$e;K$e=1;var e=ebe();return H$e=Array.isArray||function(t){return"Array"===e(t)},H$e}(),r=t([].reverse),i=[1,2];e({target:"Array",proto:!0,forced:String(i)===String(i.reverse())},{reverse:function(){return n(this)&&(this.length=this.length),r(this)}})}();var t_e=function(e,t){return(t_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function n_e(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}t_e(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function r_e(e,t){var n=e[0],r=e[1];return[n*Math.cos(t)-r*Math.sin(t),n*Math.sin(t)+r*Math.cos(t)]}function i_e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;n++)if("number"!=typeof e[n])throw new Error("assertNumbers arguments["+n+"] is not a number. "+typeof e[n]+" == typeof "+e[n]);return!0}var o_e=Math.PI;function a_e(e,t,n){e.lArcFlag=0===e.lArcFlag?0:1,e.sweepFlag=0===e.sweepFlag?0:1;var r=e.rX,i=e.rY,o=e.x,a=e.y;r=Math.abs(e.rX),i=Math.abs(e.rY);var s=r_e([(t-o)/2,(n-a)/2],-e.xRot/180*o_e),l=s[0],c=s[1],u=Math.pow(l,2)/Math.pow(r,2)+Math.pow(c,2)/Math.pow(i,2);1<u&&(r*=Math.sqrt(u),i*=Math.sqrt(u)),e.rX=r,e.rY=i;var h=Math.pow(r,2)*Math.pow(c,2)+Math.pow(i,2)*Math.pow(l,2),d=(e.lArcFlag!==e.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(r,2)*Math.pow(i,2)-h)/h)),p=r*c/i*d,f=-i*l/r*d,g=r_e([p,f],e.xRot/180*o_e);e.cX=g[0]+(t+o)/2,e.cY=g[1]+(n+a)/2,e.phi1=Math.atan2((c-f)/i,(l-p)/r),e.phi2=Math.atan2((-c-f)/i,(-l-p)/r),0===e.sweepFlag&&e.phi2>e.phi1&&(e.phi2-=2*o_e),1===e.sweepFlag&&e.phi2<e.phi1&&(e.phi2+=2*o_e),e.phi1*=180/o_e,e.phi2*=180/o_e}function s_e(e,t,n){i_e(e,t,n);var r=e*e+t*t-n*n;if(0>r)return[];if(0===r)return[[e*n/(e*e+t*t),t*n/(e*e+t*t)]];var i=Math.sqrt(r);return[[(e*n+t*i)/(e*e+t*t),(t*n-e*i)/(e*e+t*t)],[(e*n-t*i)/(e*e+t*t),(t*n+e*i)/(e*e+t*t)]]}var l_e,c_e=Math.PI/180;function u_e(e,t,n){return(1-n)*e+n*t}function h_e(e,t,n,r){return e+Math.cos(r/180*o_e)*t+Math.sin(r/180*o_e)*n}function d_e(e,t,n,r){var i=1e-6,o=t-e,a=n-t,s=3*o+3*(r-n)-6*a,l=6*(a-o),c=3*o;return Math.abs(s)<i?[-c/l]:function(e,t,n){var r=e*e/4-t;if(r<-n)return[];if(r<=n)return[-e/2];var i=Math.sqrt(r);return[-e/2-i,-e/2+i]}(l/s,c/s,i)}function p_e(e,t,n,r,i){var o=1-i;return e*(o*o*o)+t*(3*o*o*i)+n*(3*o*i*i)+r*(i*i*i)}!function(e){function t(){return i(function(e,t,n){return e.relative&&(void 0!==e.x1&&(e.x1+=t),void 0!==e.y1&&(e.y1+=n),void 0!==e.x2&&(e.x2+=t),void 0!==e.y2&&(e.y2+=n),void 0!==e.x&&(e.x+=t),void 0!==e.y&&(e.y+=n),e.relative=!1),e})}function n(){var e=NaN,t=NaN,n=NaN,r=NaN;return i(function(i,o,a){return i.type&v_e.SMOOTH_CURVE_TO&&(i.type=v_e.CURVE_TO,e=isNaN(e)?o:e,t=isNaN(t)?a:t,i.x1=i.relative?o-e:2*o-e,i.y1=i.relative?a-t:2*a-t),i.type&v_e.CURVE_TO?(e=i.relative?o+i.x2:i.x2,t=i.relative?a+i.y2:i.y2):(e=NaN,t=NaN),i.type&v_e.SMOOTH_QUAD_TO&&(i.type=v_e.QUAD_TO,n=isNaN(n)?o:n,r=isNaN(r)?a:r,i.x1=i.relative?o-n:2*o-n,i.y1=i.relative?a-r:2*a-r),i.type&v_e.QUAD_TO?(n=i.relative?o+i.x1:i.x1,r=i.relative?a+i.y1:i.y1):(n=NaN,r=NaN),i})}function r(){var e=NaN,t=NaN;return i(function(n,r,i){if(n.type&v_e.SMOOTH_QUAD_TO&&(n.type=v_e.QUAD_TO,e=isNaN(e)?r:e,t=isNaN(t)?i:t,n.x1=n.relative?r-e:2*r-e,n.y1=n.relative?i-t:2*i-t),n.type&v_e.QUAD_TO){e=n.relative?r+n.x1:n.x1,t=n.relative?i+n.y1:n.y1;var o=n.x1,a=n.y1;n.type=v_e.CURVE_TO,n.x1=((n.relative?0:r)+2*o)/3,n.y1=((n.relative?0:i)+2*a)/3,n.x2=(n.x+2*o)/3,n.y2=(n.y+2*a)/3}else e=NaN,t=NaN;return n})}function i(e){var t=0,n=0,r=NaN,i=NaN;return function(o){if(isNaN(r)&&!(o.type&v_e.MOVE_TO))throw new Error("path must start with moveto");var a=e(o,t,n,r,i);return o.type&v_e.CLOSE_PATH&&(t=r,n=i),void 0!==o.x&&(t=o.relative?t+o.x:o.x),void 0!==o.y&&(n=o.relative?n+o.y:o.y),o.type&v_e.MOVE_TO&&(r=t,i=n),a}}function o(e,t,n,r,o,a){return i_e(e,t,n,r,o,a),i(function(i,s,l,c){var u=i.x1,h=i.x2,d=i.relative&&!isNaN(c),p=void 0!==i.x?i.x:d?0:s,f=void 0!==i.y?i.y:d?0:l;function g(e){return e*e}i.type&v_e.HORIZ_LINE_TO&&0!==t&&(i.type=v_e.LINE_TO,i.y=i.relative?0:l),i.type&v_e.VERT_LINE_TO&&0!==n&&(i.type=v_e.LINE_TO,i.x=i.relative?0:s),void 0!==i.x&&(i.x=i.x*e+f*n+(d?0:o)),void 0!==i.y&&(i.y=p*t+i.y*r+(d?0:a)),void 0!==i.x1&&(i.x1=i.x1*e+i.y1*n+(d?0:o)),void 0!==i.y1&&(i.y1=u*t+i.y1*r+(d?0:a)),void 0!==i.x2&&(i.x2=i.x2*e+i.y2*n+(d?0:o)),void 0!==i.y2&&(i.y2=h*t+i.y2*r+(d?0:a));var m=e*r-t*n;if(void 0!==i.xRot&&(1!==e||0!==t||0!==n||1!==r))if(0===m)delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag,i.type=v_e.LINE_TO;else{var O=i.xRot*Math.PI/180,A=Math.sin(O),y=Math.cos(O),v=1/g(i.rX),b=1/g(i.rY),x=g(y)*v+g(A)*b,w=2*A*y*(v-b),k=g(A)*v+g(y)*b,S=x*r*r-w*t*r+k*t*t,T=w*(e*r+t*n)-2*(x*n*r+k*e*t),$=x*n*n-w*e*n+k*e*e,_=(Math.atan2(T,S-$)+Math.PI)%Math.PI/2,C=Math.sin(_),Q=Math.cos(_);i.rX=Math.abs(m)/Math.sqrt(S*g(Q)+T*C*Q+$*g(C)),i.rY=Math.abs(m)/Math.sqrt(S*g(C)-T*C*Q+$*g(Q)),i.xRot=180*_/Math.PI}return void 0!==i.sweepFlag&&0>m&&(i.sweepFlag=+!i.sweepFlag),i})}e.ROUND=function(e){function t(t){return Math.round(t*e)/e}return void 0===e&&(e=1e13),i_e(e),function(e){return void 0!==e.x1&&(e.x1=t(e.x1)),void 0!==e.y1&&(e.y1=t(e.y1)),void 0!==e.x2&&(e.x2=t(e.x2)),void 0!==e.y2&&(e.y2=t(e.y2)),void 0!==e.x&&(e.x=t(e.x)),void 0!==e.y&&(e.y=t(e.y)),void 0!==e.rX&&(e.rX=t(e.rX)),void 0!==e.rY&&(e.rY=t(e.rY)),e}},e.TO_ABS=t,e.TO_REL=function(){return i(function(e,t,n){return e.relative||(void 0!==e.x1&&(e.x1-=t),void 0!==e.y1&&(e.y1-=n),void 0!==e.x2&&(e.x2-=t),void 0!==e.y2&&(e.y2-=n),void 0!==e.x&&(e.x-=t),void 0!==e.y&&(e.y-=n),e.relative=!0),e})},e.NORMALIZE_HVZ=function(e,t,n){return void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===n&&(n=!0),i(function(r,i,o,a,s){if(isNaN(a)&&!(r.type&v_e.MOVE_TO))throw new Error("path must start with moveto");return t&&r.type&v_e.HORIZ_LINE_TO&&(r.type=v_e.LINE_TO,r.y=r.relative?0:o),n&&r.type&v_e.VERT_LINE_TO&&(r.type=v_e.LINE_TO,r.x=r.relative?0:i),e&&r.type&v_e.CLOSE_PATH&&(r.type=v_e.LINE_TO,r.x=r.relative?a-i:a,r.y=r.relative?s-o:s),r.type&v_e.ARC&&(0===r.rX||0===r.rY)&&(r.type=v_e.LINE_TO,delete r.rX,delete r.rY,delete r.xRot,delete r.lArcFlag,delete r.sweepFlag),r})},e.NORMALIZE_ST=n,e.QT_TO_C=r,e.INFO=i,e.SANITIZE=function(e){void 0===e&&(e=0),i_e(e);var t=NaN,n=NaN,r=NaN,o=NaN;return i(function(i,a,s,l,c){var u=Math.abs,h=!1,d=0,p=0;if(i.type&v_e.SMOOTH_CURVE_TO&&(d=isNaN(t)?0:a-t,p=isNaN(n)?0:s-n),i.type&(v_e.CURVE_TO|v_e.SMOOTH_CURVE_TO)?(t=i.relative?a+i.x2:i.x2,n=i.relative?s+i.y2:i.y2):(t=NaN,n=NaN),i.type&v_e.SMOOTH_QUAD_TO?(r=isNaN(r)?a:2*a-r,o=isNaN(o)?s:2*s-o):i.type&v_e.QUAD_TO?(r=i.relative?a+i.x1:i.x1,o=i.relative?s+i.y1:i.y2):(r=NaN,o=NaN),i.type&v_e.LINE_COMMANDS||i.type&v_e.ARC&&(0===i.rX||0===i.rY||!i.lArcFlag)||i.type&v_e.CURVE_TO||i.type&v_e.SMOOTH_CURVE_TO||i.type&v_e.QUAD_TO||i.type&v_e.SMOOTH_QUAD_TO){var f=void 0===i.x?0:i.relative?i.x:i.x-a,g=void 0===i.y?0:i.relative?i.y:i.y-s;d=isNaN(r)?void 0===i.x1?d:i.relative?i.x:i.x1-a:r-a,p=isNaN(o)?void 0===i.y1?p:i.relative?i.y:i.y1-s:o-s;var m=void 0===i.x2?0:i.relative?i.x:i.x2-a,O=void 0===i.y2?0:i.relative?i.y:i.y2-s;u(f)<=e&&u(g)<=e&&u(d)<=e&&u(p)<=e&&u(m)<=e&&u(O)<=e&&(h=!0)}return i.type&v_e.CLOSE_PATH&&u(a-l)<=e&&u(s-c)<=e&&(h=!0),h?[]:i})},e.MATRIX=o,e.ROTATE=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0),i_e(e,t,n);var r=Math.sin(e),i=Math.cos(e);return o(i,r,-r,i,t-t*i+n*r,n-t*r-n*i)},e.TRANSLATE=function(e,t){return void 0===t&&(t=0),i_e(e,t),o(1,0,0,1,e,t)},e.SCALE=function(e,t){return void 0===t&&(t=e),i_e(e,t),o(e,0,0,t,0,0)},e.SKEW_X=function(e){return i_e(e),o(1,0,Math.atan(e),1,0,0)},e.SKEW_Y=function(e){return i_e(e),o(1,Math.atan(e),0,1,0,0)},e.X_AXIS_SYMMETRY=function(e){return void 0===e&&(e=0),i_e(e),o(-1,0,0,1,e,0)},e.Y_AXIS_SYMMETRY=function(e){return void 0===e&&(e=0),i_e(e),o(1,0,0,-1,0,e)},e.A_TO_C=function(){return i(function(e,t,n){return v_e.ARC===e.type?function(e,t,n){var r,i,o,a;e.cX||a_e(e,t,n);for(var s=Math.min(e.phi1,e.phi2),l=Math.max(e.phi1,e.phi2)-s,c=Math.ceil(l/90),u=new Array(c),h=t,d=n,p=0;p<c;p++){var f=u_e(e.phi1,e.phi2,p/c),g=u_e(e.phi1,e.phi2,(p+1)/c),m=g-f,O=4/3*Math.tan(m*c_e/4),A=[Math.cos(f*c_e)-O*Math.sin(f*c_e),Math.sin(f*c_e)+O*Math.cos(f*c_e)],y=A[0],v=A[1],b=[Math.cos(g*c_e),Math.sin(g*c_e)],x=b[0],w=b[1],k=[x+O*Math.sin(g*c_e),w-O*Math.cos(g*c_e)],S=k[0],T=k[1];u[p]={relative:e.relative,type:v_e.CURVE_TO};var $=function(t,n){var r=r_e([t*e.rX,n*e.rY],e.xRot),i=r[0],o=r[1];return[e.cX+i,e.cY+o]};r=$(y,v),u[p].x1=r[0],u[p].y1=r[1],i=$(S,T),u[p].x2=i[0],u[p].y2=i[1],o=$(x,w),u[p].x=o[0],u[p].y=o[1],e.relative&&(u[p].x1-=h,u[p].y1-=d,u[p].x2-=h,u[p].y2-=d,u[p].x-=h,u[p].y-=d),h=(a=[u[p].x,u[p].y])[0],d=a[1]}return u}(e,e.relative?0:t,e.relative?0:n):e})},e.ANNOTATE_ARCS=function(){return i(function(e,t,n){return e.relative&&(t=0,n=0),v_e.ARC===e.type&&a_e(e,t,n),e})},e.CLONE=function(){return function(e){var t={};for(var n in e)t[n]=e[n];return t}},e.CALCULATE_BOUNDS=function(){var e=t(),o=r(),a=n(),s=i(function(t,n,r){var i=a(o(e(function(e){var t={};for(var n in e)t[n]=e[n];return t}(t))));function l(e){e>s.maxX&&(s.maxX=e),e<s.minX&&(s.minX=e)}function c(e){e>s.maxY&&(s.maxY=e),e<s.minY&&(s.minY=e)}if(i.type&v_e.DRAWING_COMMANDS&&(l(n),c(r)),i.type&v_e.HORIZ_LINE_TO&&l(i.x),i.type&v_e.VERT_LINE_TO&&c(i.y),i.type&v_e.LINE_TO&&(l(i.x),c(i.y)),i.type&v_e.CURVE_TO){l(i.x),c(i.y);for(var u=0,h=d_e(n,i.x1,i.x2,i.x);u<h.length;u++)0<($=h[u])&&1>$&&l(p_e(n,i.x1,i.x2,i.x,$));for(var d=0,p=d_e(r,i.y1,i.y2,i.y);d<p.length;d++)0<($=p[d])&&1>$&&c(p_e(r,i.y1,i.y2,i.y,$))}if(i.type&v_e.ARC){l(i.x),c(i.y),a_e(i,n,r);for(var f=i.xRot/180*Math.PI,g=Math.cos(f)*i.rX,m=Math.sin(f)*i.rX,O=-Math.sin(f)*i.rY,A=Math.cos(f)*i.rY,y=i.phi1<i.phi2?[i.phi1,i.phi2]:-180>i.phi2?[i.phi2+360,i.phi1+360]:[i.phi2,i.phi1],v=y[0],b=y[1],x=function(e){var t=e[0],n=e[1],r=180*Math.atan2(n,t)/Math.PI;return r<v?r+360:r},w=0,k=s_e(O,-g,0).map(x);w<k.length;w++)($=k[w])>v&&$<b&&l(h_e(i.cX,g,O,$));for(var S=0,T=s_e(A,-m,0).map(x);S<T.length;S++){var $;($=T[S])>v&&$<b&&c(h_e(i.cY,m,A,$))}}return t});return s.minX=1/0,s.maxX=-1/0,s.minY=1/0,s.maxY=-1/0,s}}(l_e||(l_e={}));var f_e,g_e,m_e=function(){function e(){}return e.prototype.round=function(e){return this.transform(l_e.ROUND(e))},e.prototype.toAbs=function(){return this.transform(l_e.TO_ABS())},e.prototype.toRel=function(){return this.transform(l_e.TO_REL())},e.prototype.normalizeHVZ=function(e,t,n){return this.transform(l_e.NORMALIZE_HVZ(e,t,n))},e.prototype.normalizeST=function(){return this.transform(l_e.NORMALIZE_ST())},e.prototype.qtToC=function(){return this.transform(l_e.QT_TO_C())},e.prototype.aToC=function(){return this.transform(l_e.A_TO_C())},e.prototype.sanitize=function(e){return this.transform(l_e.SANITIZE(e))},e.prototype.translate=function(e,t){return this.transform(l_e.TRANSLATE(e,t))},e.prototype.scale=function(e,t){return this.transform(l_e.SCALE(e,t))},e.prototype.rotate=function(e,t,n){return this.transform(l_e.ROTATE(e,t,n))},e.prototype.matrix=function(e,t,n,r,i,o){return this.transform(l_e.MATRIX(e,t,n,r,i,o))},e.prototype.skewX=function(e){return this.transform(l_e.SKEW_X(e))},e.prototype.skewY=function(e){return this.transform(l_e.SKEW_Y(e))},e.prototype.xSymmetry=function(e){return this.transform(l_e.X_AXIS_SYMMETRY(e))},e.prototype.ySymmetry=function(e){return this.transform(l_e.Y_AXIS_SYMMETRY(e))},e.prototype.annotateArcs=function(){return this.transform(l_e.ANNOTATE_ARCS())},e}(),O_e=function(e){return" "===e||"\t"===e||"\r"===e||"\n"===e},A_e=function(e){return 48<=e.charCodeAt(0)&&e.charCodeAt(0)<=57},y_e=function(e){function t(){var t=e.call(this)||this;return t.curNumber="",t.curCommandType=-1,t.curCommandRelative=!1,t.canParseCommandOrComma=!0,t.curNumberHasExp=!1,t.curNumberHasExpDigits=!1,t.curNumberHasDecimal=!1,t.curArgs=[],t}return n_e(t,e),t.prototype.finish=function(e){if(void 0===e&&(e=[]),this.parse(" ",e),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return e},t.prototype.parse=function(e,t){var n=this;void 0===t&&(t=[]);for(var r=function(e){t.push(e),n.curArgs.length=0,n.canParseCommandOrComma=!0},i=0;i<e.length;i++){var o=e[i],a=!(this.curCommandType!==v_e.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),s=A_e(o)&&("0"===this.curNumber&&"0"===o||a);if(!A_e(o)||s)if("e"!==o&&"E"!==o)if("-"!==o&&"+"!==o||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==o||this.curNumberHasExp||this.curNumberHasDecimal||a){if(this.curNumber&&-1!==this.curCommandType){var l=Number(this.curNumber);if(isNaN(l))throw new SyntaxError("Invalid number ending at "+i);if(this.curCommandType===v_e.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>l)throw new SyntaxError('Expected positive number, got "'+l+'" at index "'+i+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+i+'"');this.curArgs.push(l),this.curArgs.length===b_e[this.curCommandType]&&(v_e.HORIZ_LINE_TO===this.curCommandType?r({type:v_e.HORIZ_LINE_TO,relative:this.curCommandRelative,x:l}):v_e.VERT_LINE_TO===this.curCommandType?r({type:v_e.VERT_LINE_TO,relative:this.curCommandRelative,y:l}):this.curCommandType===v_e.MOVE_TO||this.curCommandType===v_e.LINE_TO||this.curCommandType===v_e.SMOOTH_QUAD_TO?(r({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),v_e.MOVE_TO===this.curCommandType&&(this.curCommandType=v_e.LINE_TO)):this.curCommandType===v_e.CURVE_TO?r({type:v_e.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===v_e.SMOOTH_CURVE_TO?r({type:v_e.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===v_e.QUAD_TO?r({type:v_e.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===v_e.ARC&&r({type:v_e.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!O_e(o))if(","===o&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==o&&"-"!==o&&"."!==o)if(s)this.curNumber=o,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+i+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+o+'" at index '+i+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==o&&"Z"!==o)if("h"===o||"H"===o)this.curCommandType=v_e.HORIZ_LINE_TO,this.curCommandRelative="h"===o;else if("v"===o||"V"===o)this.curCommandType=v_e.VERT_LINE_TO,this.curCommandRelative="v"===o;else if("m"===o||"M"===o)this.curCommandType=v_e.MOVE_TO,this.curCommandRelative="m"===o;else if("l"===o||"L"===o)this.curCommandType=v_e.LINE_TO,this.curCommandRelative="l"===o;else if("c"===o||"C"===o)this.curCommandType=v_e.CURVE_TO,this.curCommandRelative="c"===o;else if("s"===o||"S"===o)this.curCommandType=v_e.SMOOTH_CURVE_TO,this.curCommandRelative="s"===o;else if("q"===o||"Q"===o)this.curCommandType=v_e.QUAD_TO,this.curCommandRelative="q"===o;else if("t"===o||"T"===o)this.curCommandType=v_e.SMOOTH_QUAD_TO,this.curCommandRelative="t"===o;else{if("a"!==o&&"A"!==o)throw new SyntaxError('Unexpected character "'+o+'" at index '+i+".");this.curCommandType=v_e.ARC,this.curCommandRelative="a"===o}else t.push({type:v_e.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=o,this.curNumberHasDecimal="."===o}else this.curNumber+=o,this.curNumberHasDecimal=!0;else this.curNumber+=o;else this.curNumber+=o,this.curNumberHasExp=!0;else this.curNumber+=o,this.curNumberHasExpDigits=this.curNumberHasExp}return t},t.prototype.transform=function(e){return Object.create(this,{parse:{value:function(t,n){void 0===n&&(n=[]);for(var r=0,i=Object.getPrototypeOf(this).parse.call(this,t);r<i.length;r++){var o=i[r],a=e(o);Array.isArray(a)?n.push.apply(n,a):n.push(a)}return n}}})},t}(m_e),v_e=function(e){function t(n){var r=e.call(this)||this;return r.commands="string"==typeof n?t.parse(n):n,r}return n_e(t,e),t.prototype.encode=function(){return t.encode(this.commands)},t.prototype.getBounds=function(){var e=l_e.CALCULATE_BOUNDS();return this.transform(e),e},t.prototype.transform=function(e){for(var t=[],n=0,r=this.commands;n<r.length;n++){var i=e(r[n]);Array.isArray(i)?t.push.apply(t,i):t.push(i)}return this.commands=t,this},t.encode=function(e){return function(e){var t="";Array.isArray(e)||(e=[e]);for(var n=0;n<e.length;n++){var r=e[n];if(r.type===v_e.CLOSE_PATH)t+="z";else if(r.type===v_e.HORIZ_LINE_TO)t+=(r.relative?"h":"H")+r.x;else if(r.type===v_e.VERT_LINE_TO)t+=(r.relative?"v":"V")+r.y;else if(r.type===v_e.MOVE_TO)t+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===v_e.LINE_TO)t+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===v_e.CURVE_TO)t+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===v_e.SMOOTH_CURVE_TO)t+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===v_e.QUAD_TO)t+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===v_e.SMOOTH_QUAD_TO)t+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==v_e.ARC)throw new Error('Unexpected command type "'+r.type+'" at index '+n+".");t+=(r.relative?"a":"A")+r.rX+" "+r.rY+" "+r.xRot+" "+ +r.lArcFlag+" "+ +r.sweepFlag+" "+r.x+" "+r.y}}return t}(e)},t.parse=function(e){var t=new y_e,n=[];return t.parse(e,n),t.finish(n),n},t.CLOSE_PATH=1,t.MOVE_TO=2,t.HORIZ_LINE_TO=4,t.VERT_LINE_TO=8,t.LINE_TO=16,t.CURVE_TO=32,t.SMOOTH_CURVE_TO=64,t.QUAD_TO=128,t.SMOOTH_QUAD_TO=256,t.ARC=512,t.LINE_COMMANDS=t.LINE_TO|t.HORIZ_LINE_TO|t.VERT_LINE_TO,t.DRAWING_COMMANDS=t.HORIZ_LINE_TO|t.VERT_LINE_TO|t.LINE_TO|t.CURVE_TO|t.SMOOTH_CURVE_TO|t.QUAD_TO|t.SMOOTH_QUAD_TO|t.ARC,t}(m_e),b_e=((f_e={})[v_e.MOVE_TO]=2,f_e[v_e.LINE_TO]=2,f_e[v_e.HORIZ_LINE_TO]=1,f_e[v_e.VERT_LINE_TO]=1,f_e[v_e.CLOSE_PATH]=0,f_e[v_e.QUAD_TO]=4,f_e[v_e.SMOOTH_QUAD_TO]=2,f_e[v_e.CURVE_TO]=6,f_e[v_e.SMOOTH_CURVE_TO]=4,f_e[v_e.ARC]=7,f_e),x_e={};function w_e(e){return w_e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w_e(e)}!function(){if(g_e)return x_e;g_e=1;var e=Cxe().PROPER,t=Ixe(),n=uxe(),r=WSe(),i=ave(),o=TTe(),a="toString",s=RegExp.prototype,l=s[a],c=i(function(){return"/a/b"!==l.call({source:"a",flags:"b"})}),u=e&&l.name!==a;(c||u)&&t(s,a,function(){var e=n(this);return"/"+r(e.source)+"/"+r(o(e))},{unsafe:!0})}();var k_e=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],S_e=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function T_e(e,t,n,r,i,o){if(!(isNaN(o)||o<1)){o|=0;var a=function(e,t,n,r,i){if("string"==typeof e&&(e=document.getElementById(e)),!e||"object"!==w_e(e)||!("getContext"in e))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var o=e.getContext("2d");try{return o.getImageData(t,n,r,i)}catch(a){throw new Error("unable to access image data: "+a)}}(e,t,n,r,i);a=function(e,t,n,r,i,o){for(var a,s=e.data,l=2*o+1,c=r-1,u=i-1,h=o+1,d=h*(h+1)/2,p=new $_e,f=p,g=1;g<l;g++)f=f.next=new $_e,g===h&&(a=f);f.next=p;for(var m=null,O=null,A=0,y=0,v=k_e[o],b=S_e[o],x=0;x<i;x++){f=p;for(var w=s[y],k=s[y+1],S=s[y+2],T=s[y+3],$=0;$<h;$++)f.r=w,f.g=k,f.b=S,f.a=T,f=f.next;for(var _=0,C=0,Q=0,P=0,E=h*w,R=h*k,B=h*S,I=h*T,L=d*w,D=d*k,M=d*S,N=d*T,X=1;X<h;X++){var F=y+((c<X?c:X)<<2),U=s[F],z=s[F+1],q=s[F+2],V=s[F+3],W=h-X;L+=(f.r=U)*W,D+=(f.g=z)*W,M+=(f.b=q)*W,N+=(f.a=V)*W,_+=U,C+=z,Q+=q,P+=V,f=f.next}m=p,O=a;for(var j=0;j<r;j++){var Y=N*v>>>b;if(s[y+3]=Y,0!==Y){var Z=255/Y;s[y]=(L*v>>>b)*Z,s[y+1]=(D*v>>>b)*Z,s[y+2]=(M*v>>>b)*Z}else s[y]=s[y+1]=s[y+2]=0;L-=E,D-=R,M-=B,N-=I,E-=m.r,R-=m.g,B-=m.b,I-=m.a;var G=j+o+1;G=A+(G<c?G:c)<<2,L+=_+=m.r=s[G],D+=C+=m.g=s[G+1],M+=Q+=m.b=s[G+2],N+=P+=m.a=s[G+3],m=m.next;var H=O,K=H.r,J=H.g,ee=H.b,te=H.a;E+=K,R+=J,B+=ee,I+=te,_-=K,C-=J,Q-=ee,P-=te,O=O.next,y+=4}A+=r}for(var ne=0;ne<r;ne++){var re=s[y=ne<<2],ie=s[y+1],oe=s[y+2],ae=s[y+3],se=h*re,le=h*ie,ce=h*oe,ue=h*ae,he=d*re,de=d*ie,pe=d*oe,fe=d*ae;f=p;for(var ge=0;ge<h;ge++)f.r=re,f.g=ie,f.b=oe,f.a=ae,f=f.next;for(var me=r,Oe=0,Ae=0,ye=0,ve=0,be=1;be<=o;be++){y=me+ne<<2;var xe=h-be;he+=(f.r=re=s[y])*xe,de+=(f.g=ie=s[y+1])*xe,pe+=(f.b=oe=s[y+2])*xe,fe+=(f.a=ae=s[y+3])*xe,ve+=re,Oe+=ie,Ae+=oe,ye+=ae,f=f.next,be<u&&(me+=r)}y=ne,m=p,O=a;for(var we=0;we<i;we++){var ke=y<<2;s[ke+3]=ae=fe*v>>>b,ae>0?(ae=255/ae,s[ke]=(he*v>>>b)*ae,s[ke+1]=(de*v>>>b)*ae,s[ke+2]=(pe*v>>>b)*ae):s[ke]=s[ke+1]=s[ke+2]=0,he-=se,de-=le,pe-=ce,fe-=ue,se-=m.r,le-=m.g,ce-=m.b,ue-=m.a,ke=ne+((ke=we+h)<u?ke:u)*r<<2,he+=ve+=m.r=s[ke],de+=Oe+=m.g=s[ke+1],pe+=Ae+=m.b=s[ke+2],fe+=ye+=m.a=s[ke+3],m=m.next,se+=re=O.r,le+=ie=O.g,ce+=oe=O.b,ue+=ae=O.a,ve-=re,Oe-=ie,Ae-=oe,ye-=ae,O=O.next,y+=r}}return e}(a,0,0,r,i,o),e.getContext("2d").putImageData(a,t,n)}}var $_e=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};var __e=Object.freeze({__proto__:null,offscreen:function(){var{DOMParser:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,createCanvas:(e,t)=>new OffscreenCanvas(e,t),createImage:e=>DSe(function*(){var t=yield fetch(e),n=yield t.blob();return yield createImageBitmap(n)})()};return(typeof DOMParser<"u"||typeof e>"u")&&Reflect.deleteProperty(t,"DOMParser"),t},node:function(e){var{DOMParser:t,canvas:n,fetch:r}=e;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,fetch:r,createCanvas:n.createCanvas,createImage:n.loadImage}}});function C_e(e){return e.replace(/(?!\u3000)\s+/gm," ")}function Q_e(e){return e.replace(/^[\n \t]+/,"")}function P_e(e){return e.replace(/[\n \t]+$/,"")}function E_e(e){return((e||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var R_e=/^[A-Z-]+$/;function B_e(e){return R_e.test(e)?e.toLowerCase():e}function I_e(e){var t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(e)||[];return t[2]||t[3]||t[4]}function L_e(e){if(!e.startsWith("rgb"))return e;var t=3;return e.replace(/\d+(\.\d+)?/g,(e,n)=>t--&&n?String(Math.round(parseFloat(e))):e)}var D_e=/(\[[^\]]+\])/g,M_e=/(#[^\s+>~.[:]+)/g,N_e=/(\.[^\s+>~.[:]+)/g,X_e=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,F_e=/(:[\w-]+\([^)]*\))/gi,U_e=/(:[^\s+>~.[:]+)/g,z_e=/([^\s+>~.[:]+)/g;function q_e(e,t){var n=t.exec(e);return n?[e.replace(t," "),n.length]:[e,0]}function V_e(e){var t=[0,0,0],n=e.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),r=0;return[n,r]=q_e(n,D_e),t[1]+=r,[n,r]=q_e(n,M_e),t[0]+=r,[n,r]=q_e(n,N_e),t[1]+=r,[n,r]=q_e(n,X_e),t[2]+=r,[n,r]=q_e(n,F_e),t[1]+=r,[n,r]=q_e(n,U_e),t[1]+=r,n=n.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[n,r]=q_e(n,z_e),t[2]+=r,t.join("")}var W_e=1e-8;function j_e(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2))}function Y_e(e,t){return(e[0]*t[0]+e[1]*t[1])/(j_e(e)*j_e(t))}function Z_e(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Y_e(e,t))}function G_e(e){return e*e*e}function H_e(e){return 3*e*e*(1-e)}function K_e(e){return 3*e*(1-e)*(1-e)}function J_e(e){return(1-e)*(1-e)*(1-e)}function eCe(e){return e*e}function tCe(e){return 2*e*(1-e)}function nCe(e){return(1-e)*(1-e)}class rCe{constructor(e,t,n){this.document=e,this.name=t,this.value=n,this.isNormalizedColor=!1}static empty(e){return new rCe(e,"EMPTY","")}split(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",{document:t,name:n}=this;return C_e(this.getString()).trim().split(e).map(e=>new rCe(t,n,e))}hasValue(e){var{value:t}=this;return null!==t&&""!==t&&(e||0!==t)&&typeof t<"u"}isString(e){var{value:t}=this,n="string"==typeof t;return n&&e?e.test(t):n}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return typeof e>"u"||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return typeof e>"u"?0:parseFloat(e);var{value:t}=this,n=parseFloat(t);return this.isString(/%$/)&&(n/=100),n}getString(e){return typeof e>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(e)}getColor(e){var t=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=L_e(t),this.value=t),t}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var[n,r]="boolean"==typeof e?[void 0,e]:[e],{viewPort:i}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(i.computeSize("x"),i.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(i.computeSize("x"),i.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*i.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*i.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&r:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*i.computeSize(n);default:var o=this.getNumber();return t&&o<1?o*i.computeSize(n):o}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var e=this.getString(),t=/#([^)'"]+)/.exec(e);return t&&(t=t[1]),t||(t=e),this.document.definitions[t]}getFillStyleDefinition(e,t){var n=this.getDefinition();if(!n)return null;if("function"==typeof n.createGradient)return n.createGradient(this.document.ctx,e,t);if("function"==typeof n.createPattern){if(n.getHrefAttribute().hasValue()){var r=n.getAttribute("patternTransform");n=n.getHrefAttribute().getDefinition(),r.hasValue()&&n.getAttribute("patternTransform",!0).setValue(r.value)}return n.createPattern(this.document.ctx,e,t)}return null}getTextBaseline(){return this.hasValue()?rCe.textBaselineMapping[this.getString()]:null}addOpacity(e){for(var t=this.getColor(),n=t.length,r=0,i=0;i<n&&(","===t[i]&&r++,3!==r);i++);if(e.hasValue()&&this.isString()&&3!==r){var o=new W$e(t);o.ok&&(o.alpha=e.getNumber(),t=o.toRGBA())}return new rCe(this.document,this.name,t)}}rCe.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};class iCe{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(e,t){this.viewPorts.push({width:e,height:t})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:e}=this;return e[e.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(e){return"number"==typeof e?e:"x"===e?this.width:"y"===e?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class oCe{constructor(e,t){this.x=e,this.y=t}static parse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,[n=t,r=t]=E_e(e);return new oCe(n,r)}static parseScale(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,[n=t,r=n]=E_e(e);return new oCe(n,r)}static parsePath(e){for(var t=E_e(e),n=t.length,r=[],i=0;i<n;i+=2)r.push(new oCe(t[i],t[i+1]));return r}angleTo(e){return Math.atan2(e.y-this.y,e.x-this.x)}applyTransform(e){var{x:t,y:n}=this,r=t*e[0]+n*e[2]+e[4],i=t*e[1]+n*e[3]+e[5];this.x=r,this.y=i}}class aCe{constructor(e){this.screen=e,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:e,onClick:t,onMouseMove:n}=this,r=e.ctx.canvas;r.onclick=t,r.onmousemove=n,this.working=!0}}stop(){if(this.working){var e=this.screen.ctx.canvas;this.working=!1,e.onclick=null,e.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:e,events:t,eventElements:n}=this,{style:r}=e.ctx.canvas;r&&(r.cursor=""),t.forEach((e,t)=>{for(var{run:r}=e,i=n[t];i;)r(i),i=i.parent}),this.events=[],this.eventElements=[]}}checkPath(e,t){if(this.working&&t){var{events:n,eventElements:r}=this;n.forEach((n,i)=>{var{x:o,y:a}=n;!r[i]&&t.isPointInPath&&t.isPointInPath(o,a)&&(r[i]=e)})}}checkBoundingBox(e,t){if(this.working&&t){var{events:n,eventElements:r}=this;n.forEach((n,i)=>{var{x:o,y:a}=n;!r[i]&&t.isPointInBox(o,a)&&(r[i]=e)})}}mapXY(e,t){for(var{window:n,ctx:r}=this.screen,i=new oCe(e,t),o=r.canvas;o;)i.x-=o.offsetLeft,i.y-=o.offsetTop,o=o.offsetParent;return n.scrollX&&(i.x+=n.scrollX),n.scrollY&&(i.y+=n.scrollY),i}onClick(e){var{x:t,y:n}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onclick",x:t,y:n,run(e){e.onClick&&e.onClick()}})}onMouseMove(e){var{x:t,y:n}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onmousemove",x:t,y:n,run(e){e.onMouseMove&&e.onMouseMove()}})}}var sCe=typeof window<"u"?window:null,lCe=typeof fetch<"u"?fetch.bind(void 0):null;class cCe{constructor(e){var{fetch:t=lCe,window:n=sCe}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new iCe,this.mouse=new aCe(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=n,this.fetch=t}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every(e=>e());return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}setViewBox(e){var{document:t,ctx:n,aspectRatio:r,width:i,desiredWidth:o,height:a,desiredHeight:s,minX:l=0,minY:c=0,refX:u,refY:h,clip:d=!1,clipX:p=0,clipY:f=0}=e,g=C_e(r).replace(/^defer\s/,""),[m,O]=g.split(" "),A=m||"xMidYMid",y=O||"meet",v=i/o,b=a/s,x=Math.min(v,b),w=Math.max(v,b),k=o,S=s;"meet"===y&&(k*=x,S*=x),"slice"===y&&(k*=w,S*=w);var T=new rCe(t,"refX",u),$=new rCe(t,"refY",h),_=T.hasValue()&&$.hasValue();if(_&&n.translate(-x*T.getPixels("x"),-x*$.getPixels("y")),d){var C=x*p,Q=x*f;n.beginPath(),n.moveTo(C,Q),n.lineTo(i,Q),n.lineTo(i,a),n.lineTo(C,a),n.closePath(),n.clip()}if(!_){var P="meet"===y&&x===b,E="slice"===y&&w===b,R="meet"===y&&x===v,B="slice"===y&&w===v;A.startsWith("xMid")&&(P||E)&&n.translate(i/2-k/2,0),A.endsWith("YMid")&&(R||B)&&n.translate(0,a/2-S/2),A.startsWith("xMax")&&(P||E)&&n.translate(i-k,0),A.endsWith("YMax")&&(R||B)&&n.translate(0,a-S)}switch(!0){case"none"===A:n.scale(v,b);break;case"meet"===y:n.scale(x,x);break;case"slice"===y:n.scale(w,w)}n.translate(-l,-c)}start(e){var{enableRedraw:t=!1,ignoreMouse:n=!1,ignoreAnimation:r=!1,ignoreDimensions:i=!1,ignoreClear:o=!1,forceRedraw:a,scaleWidth:s,scaleHeight:l,offsetX:c,offsetY:u}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{FRAMERATE:h,mouse:d}=this,p=1e3/h;if(this.frameDuration=p,this.readyPromise=new Promise(e=>{this.resolveReady=e}),this.isReady()&&this.render(e,i,o,s,l,c,u),t){var f=Date.now(),g=f,m=0,O=()=>{f=Date.now(),(m=f-g)>=p&&(g=f-m%p,this.shouldUpdate(r,a)&&(this.render(e,i,o,s,l,c,u),d.runEvents())),this.intervalId=R$e(O)};n||d.start(),this.intervalId=R$e(O)}}stop(){this.intervalId&&(R$e.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,t){if(!e){var{frameDuration:n}=this,r=this.animations.reduce((e,t)=>t.update(n)||e,!1);if(r)return!0}return!!("function"==typeof t&&t()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(e,t,n,r,i,o,a){var{CLIENT_WIDTH:s,CLIENT_HEIGHT:l,viewPort:c,ctx:u,isFirstRender:h}=this,d=u.canvas;c.clear(),d.width&&d.height?c.setCurrent(d.width,d.height):c.setCurrent(s,l);var p=e.getStyle("width"),f=e.getStyle("height");!t&&(h||"number"!=typeof r&&"number"!=typeof i)&&(p.hasValue()&&(d.width=p.getPixels("x"),d.style&&(d.style.width="".concat(d.width,"px"))),f.hasValue()&&(d.height=f.getPixels("y"),d.style&&(d.style.height="".concat(d.height,"px"))));var g=d.clientWidth||d.width,m=d.clientHeight||d.height;if(t&&p.hasValue()&&f.hasValue()&&(g=p.getPixels("x"),m=f.getPixels("y")),c.setCurrent(g,m),"number"==typeof o&&e.getAttribute("x",!0).setValue(o),"number"==typeof a&&e.getAttribute("y",!0).setValue(a),"number"==typeof r||"number"==typeof i){var O=E_e(e.getAttribute("viewBox").getString()),A=0,y=0;if("number"==typeof r){var v=e.getStyle("width");v.hasValue()?A=v.getPixels("x")/r:isNaN(O[2])||(A=O[2]/r)}if("number"==typeof i){var b=e.getStyle("height");b.hasValue()?y=b.getPixels("y")/i:isNaN(O[3])||(y=O[3]/i)}A||(A=y),y||(y=A),e.getAttribute("width",!0).setValue(r),e.getAttribute("height",!0).setValue(i);var x=e.getStyle("transform",!0,!0);x.setValue("".concat(x.getString()," scale(").concat(1/A,", ").concat(1/y,")"))}n||u.clearRect(0,0,g,m),e.render(u),h&&(this.isFirstRender=!1)}}cCe.defaultWindow=sCe,cCe.defaultFetch=lCe;var{defaultFetch:uCe}=cCe,hCe=typeof DOMParser<"u"?DOMParser:null;class dCe{constructor(){var{fetch:e=uCe,DOMParser:t=hCe}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fetch=e,this.DOMParser=t}parse(e){var t=this;return DSe(function*(){return e.startsWith("<")?t.parseFromString(e):t.load(e)})()}parseFromString(e){var t=new this.DOMParser;try{return this.checkDocument(t.parseFromString(e,"image/svg+xml"))}catch{return this.checkDocument(t.parseFromString(e,"text/xml"))}}checkDocument(e){var t=e.getElementsByTagName("parsererror")[0];if(t)throw new Error(t.textContent);return e}load(e){var t=this;return DSe(function*(){var n=yield t.fetch(e),r=yield n.text();return t.parseFromString(r)})()}}class pCe{constructor(e,t){this.type="translate",this.point=null,this.point=oCe.parse(t)}apply(e){var{x:t,y:n}=this.point;e.translate(t||0,n||0)}unapply(e){var{x:t,y:n}=this.point;e.translate(-1*t||0,-1*n||0)}applyToPoint(e){var{x:t,y:n}=this.point;e.applyTransform([1,0,0,1,t||0,n||0])}}class fCe{constructor(e,t,n){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var r=E_e(t);this.angle=new rCe(e,"angle",r[0]),this.originX=n[0],this.originY=n[1],this.cx=r[1]||0,this.cy=r[2]||0}apply(e){var{cx:t,cy:n,originX:r,originY:i,angle:o}=this,a=t+r.getPixels("x"),s=n+i.getPixels("y");e.translate(a,s),e.rotate(o.getRadians()),e.translate(-a,-s)}unapply(e){var{cx:t,cy:n,originX:r,originY:i,angle:o}=this,a=t+r.getPixels("x"),s=n+i.getPixels("y");e.translate(a,s),e.rotate(-1*o.getRadians()),e.translate(-a,-s)}applyToPoint(e){var{cx:t,cy:n,angle:r}=this,i=r.getRadians();e.applyTransform([1,0,0,1,t||0,n||0]),e.applyTransform([Math.cos(i),Math.sin(i),-Math.sin(i),Math.cos(i),0,0]),e.applyTransform([1,0,0,1,-t||0,-n||0])}}class gCe{constructor(e,t,n){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var r=oCe.parseScale(t);(0===r.x||0===r.y)&&(r.x=W_e,r.y=W_e),this.scale=r,this.originX=n[0],this.originY=n[1]}apply(e){var{scale:{x:t,y:n},originX:r,originY:i}=this,o=r.getPixels("x"),a=i.getPixels("y");e.translate(o,a),e.scale(t,n||t),e.translate(-o,-a)}unapply(e){var{scale:{x:t,y:n},originX:r,originY:i}=this,o=r.getPixels("x"),a=i.getPixels("y");e.translate(o,a),e.scale(1/t,1/n||t),e.translate(-o,-a)}applyToPoint(e){var{x:t,y:n}=this.scale;e.applyTransform([t||0,0,0,n||0,0,0])}}class mCe{constructor(e,t,n){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=E_e(t),this.originX=n[0],this.originY=n[1]}apply(e){var{originX:t,originY:n,matrix:r}=this,i=t.getPixels("x"),o=n.getPixels("y");e.translate(i,o),e.transform(r[0],r[1],r[2],r[3],r[4],r[5]),e.translate(-i,-o)}unapply(e){var{originX:t,originY:n,matrix:r}=this,i=r[0],o=r[2],a=r[4],s=r[1],l=r[3],c=r[5],u=1/(i*(1*l-0*c)-o*(1*s-0*c)+a*(0*s-0*l)),h=t.getPixels("x"),d=n.getPixels("y");e.translate(h,d),e.transform(u*(1*l-0*c),u*(0*c-1*s),u*(0*a-1*o),u*(1*i-0*a),u*(o*c-a*l),u*(a*s-i*c)),e.translate(-h,-d)}applyToPoint(e){e.applyTransform(this.matrix)}}class OCe extends mCe{constructor(e,t,n){super(e,t,n),this.type="skew",this.angle=null,this.angle=new rCe(e,"angle",t)}}class ACe extends OCe{constructor(e,t,n){super(e,t,n),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class yCe extends OCe{constructor(e,t,n){super(e,t,n),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}class vCe{constructor(e,t,n){this.document=e,this.transforms=[];var r=function(e){return C_e(e).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(t);r.forEach(e=>{if("none"!==e){var[t,r]=function(e){var[t,n]=e.split("(");return[t.trim(),n.trim().replace(")","")]}(e),i=vCe.transformTypes[t];typeof i<"u"&&this.transforms.push(new i(this.document,r,n))}})}static fromElement(e,t){var n=t.getStyle("transform",!1,!0),[r,i=r]=t.getStyle("transform-origin",!1,!0).split(),o=[r,i];return n.hasValue()?new vCe(e,n.getString(),o):null}apply(e){for(var{transforms:t}=this,n=t.length,r=0;r<n;r++)t[r].apply(e)}unapply(e){for(var{transforms:t}=this,n=t.length-1;n>=0;n--)t[n].unapply(e)}applyToPoint(e){for(var{transforms:t}=this,n=t.length,r=0;r<n;r++)t[r].applyToPoint(e)}}vCe.transformTypes={translate:pCe,rotate:fCe,scale:gCe,matrix:mCe,skewX:ACe,skewY:yCe};let bCe=class e{constructor(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.document=e,this.node=t,this.captureTextNodes=n,this.attributes=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],t&&1===t.nodeType){if(Array.from(t.attributes).forEach(t=>{var n=B_e(t.nodeName);this.attributes[n]=new rCe(e,n,t.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue())this.getAttribute("style").getString().split(";").map(e=>e.trim()).forEach(t=>{if(t){var[n,r]=t.split(":").map(e=>e.trim());this.styles[n]=new rCe(e,n,r)}});var{definitions:r}=e,i=this.getAttribute("id");i.hasValue()&&(r[i.getString()]||(r[i.getString()]=this)),Array.from(t.childNodes).forEach(t=>{if(1===t.nodeType)this.addChild(t);else if(n&&(3===t.nodeType||4===t.nodeType)){var r=e.createTextNode(t);r.getText().length>0&&this.addChild(r)}})}}getAttribute(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.attributes[e];if(!n&&t){var r=new rCe(this.document,e,"");return this.attributes[e]=r,r}return n||rCe.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if("href"===e||e.endsWith(":href"))return this.attributes[e];return rCe.empty(this.document)}getStyle(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.styles[e];if(r)return r;var i=this.getAttribute(e);if(null!=i&&i.hasValue())return this.styles[e]=i,i;if(!n){var{parent:o}=this;if(o){var a=o.getStyle(e);if(null!=a&&a.hasValue())return a}}if(t){var s=new rCe(this.document,e,"");return this.styles[e]=s,s}return r||rCe.empty(this.document)}render(e){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(e.save(),this.getStyle("mask").hasValue()){var t=this.getStyle("mask").getDefinition();t&&(this.applyEffects(e),t.apply(e,this))}else if("none"!==this.getStyle("filter").getValue("none")){var n=this.getStyle("filter").getDefinition();n&&(this.applyEffects(e),n.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var t=vCe.fromElement(this.document,this);t&&t.apply(e);var n=this.getStyle("clip-path",!1,!0);if(n.hasValue()){var r=n.getDefinition();r&&r.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(t=>{t.render(e)})}addChild(t){var n=t instanceof e?t:this.document.createElement(t);n.parent=this,e.ignoreChildTypes.includes(n.type)||this.children.push(n)}matchesSelector(e){var t,{node:n}=this;if("function"==typeof n.matches)return n.matches(e);var r=null===(t=n.getAttribute)||void 0===t?void 0:t.call(n,"class");return!(!r||""===r)&&r.split(" ").some(t=>".".concat(t)===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:t}=this.document;for(var n in e)if(!n.startsWith("@")&&this.matchesSelector(n)){var r=e[n],i=t[n];if(r)for(var o in r){var a=this.stylesSpecificity[o];typeof a>"u"&&(a="000"),i>=a&&(this.styles[o]=r[o],this.stylesSpecificity[o]=i)}}}removeStyles(e,t){var n=t.reduce((t,n)=>{var r=e.getStyle(n);if(!r.hasValue())return t;var i=r.getString();return r.setValue(""),[...t,[n,i]]},[]);return n}restoreStyles(e,t){t.forEach(t=>{var[n,r]=t;e.getStyle(n,!0).setValue(r)})}isFirstChild(){var e;return 0===(null===(e=this.parent)||void 0===e?void 0:e.children.indexOf(this))}};bCe.ignoreChildTypes=["title"];class xCe extends bCe{constructor(e,t,n){super(e,t,n)}}function wCe(e){var t=e.trim();return/^('|")/.test(t)?t:'"'.concat(t,'"')}function kCe(e){return typeof process>"u"?e:e.trim().split(",").map(wCe).join(",")}function SCe(e){if(!e)return"";var t=e.trim().toLowerCase();switch(t){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return t;default:return/^oblique\s+(-|)\d+deg$/.test(t)?t:""}}function TCe(e){if(!e)return"";var t=e.trim().toLowerCase();switch(t){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return t;default:return/^[\d.]+$/.test(t)?t:""}}class $Ce{constructor(e,t,n,r,i,o){var a=o?"string"==typeof o?$Ce.parse(o):o:{};this.fontFamily=i||a.fontFamily,this.fontSize=r||a.fontSize,this.fontStyle=e||a.fontStyle,this.fontWeight=n||a.fontWeight,this.fontVariant=t||a.fontVariant}static parse(){var e=arguments.length>1?arguments[1]:void 0,t="",n="",r="",i="",o="",a=C_e(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().split(" "),s={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return a.forEach(e=>{switch(!0){case!s.fontStyle&&$Ce.styles.includes(e):"inherit"!==e&&(t=e),s.fontStyle=!0;break;case!s.fontVariant&&$Ce.variants.includes(e):"inherit"!==e&&(n=e),s.fontStyle=!0,s.fontVariant=!0;break;case!s.fontWeight&&$Ce.weights.includes(e):"inherit"!==e&&(r=e),s.fontStyle=!0,s.fontVariant=!0,s.fontWeight=!0;break;case!s.fontSize:"inherit"!==e&&([i]=e.split("/")),s.fontStyle=!0,s.fontVariant=!0,s.fontWeight=!0,s.fontSize=!0;break;default:"inherit"!==e&&(o+=e)}}),new $Ce(t,n,r,i,o,e)}toString(){return[SCe(this.fontStyle),this.fontVariant,TCe(this.fontWeight),this.fontSize,kCe(this.fontFamily)].join(" ").trim()}}$Ce.styles="normal|italic|oblique|inherit",$Ce.variants="normal|small-caps|inherit",$Ce.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class _Ce{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;this.x1=e,this.y1=t,this.x2=n,this.y2=r,this.addPoint(e,t),this.addPoint(n,r)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(e,t){typeof e<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),typeof t<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(e){var{x1:t,y1:n,x2:r,y2:i}=e;this.addPoint(t,n),this.addPoint(r,i)}}sumCubic(e,t,n,r,i){return Math.pow(1-e,3)*t+3*Math.pow(1-e,2)*e*n+3*(1-e)*Math.pow(e,2)*r+Math.pow(e,3)*i}bezierCurveAdd(e,t,n,r,i){var o=6*t-12*n+6*r,a=-3*t+9*n-9*r+3*i,s=3*n-3*t;if(0!==a){var l=Math.pow(o,2)-4*s*a;if(!(l<0)){var c=(-o+Math.sqrt(l))/(2*a);0<c&&c<1&&(e?this.addX(this.sumCubic(c,t,n,r,i)):this.addY(this.sumCubic(c,t,n,r,i)));var u=(-o-Math.sqrt(l))/(2*a);0<u&&u<1&&(e?this.addX(this.sumCubic(u,t,n,r,i)):this.addY(this.sumCubic(u,t,n,r,i)))}}else{if(0===o)return;var h=-s/o;0<h&&h<1&&(e?this.addX(this.sumCubic(h,t,n,r,i)):this.addY(this.sumCubic(h,t,n,r,i)))}}addBezierCurve(e,t,n,r,i,o,a,s){this.addPoint(e,t),this.addPoint(a,s),this.bezierCurveAdd(!0,e,n,i,a),this.bezierCurveAdd(!1,t,r,o,s)}addQuadraticCurve(e,t,n,r,i,o){var a=e+.6666666666666666*(n-e),s=t+2/3*(r-t),l=a+1/3*(i-e),c=s+1/3*(o-t);this.addBezierCurve(e,t,a,l,s,c,i,o)}isPointInBox(e,t){var{x1:n,y1:r,x2:i,y2:o}=this;return n<=e&&e<=i&&r<=t&&t<=o}}class CCe extends v_e{constructor(e){super(e.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new oCe(0,0),this.control=new oCe(0,0),this.current=new oCe(0,0),this.points=[],this.angles=[]}isEnd(){var{i:e,commands:t}=this;return e>=t.length-1}next(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}getPoint(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",n=new oCe(this.command[e],this.command[t]);return this.makeAbsolute(n)}getAsControlPoint(e,t){var n=this.getPoint(e,t);return this.control=n,n}getAsCurrentPoint(e,t){var n=this.getPoint(e,t);return this.current=n,n}getReflectedControlPoint(){var e=this.previousCommand.type;if(e!==v_e.CURVE_TO&&e!==v_e.SMOOTH_CURVE_TO&&e!==v_e.QUAD_TO&&e!==v_e.SMOOTH_QUAD_TO)return this.current;var{current:{x:t,y:n},control:{x:r,y:i}}=this;return new oCe(2*t-r,2*n-i)}makeAbsolute(e){if(this.command.relative){var{x:t,y:n}=this.current;e.x+=t,e.y+=n}return e}addMarker(e,t,n){var{points:r,angles:i}=this;n&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=r[r.length-1].angleTo(n)),this.addMarkerAngle(e,t?t.angleTo(e):null)}addMarkerAngle(e,t){this.points.push(e),this.angles.push(t)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,t=e.length,n=0;n<t;n++)if(!e[n])for(var r=n+1;r<t;r++)if(e[r]){e[n]=e[r];break}return e}}class QCe extends bCe{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var e=1,t=this;t;){var n=t.getStyle("opacity",!1,!0);n.hasValue(!0)&&(e*=n.getNumber()),t=t.parent}return e}setContext(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t){var n=this.getStyle("fill"),r=this.getStyle("fill-opacity"),i=this.getStyle("stroke"),o=this.getStyle("stroke-opacity");if(n.isUrlDefinition()){var a=n.getFillStyleDefinition(this,r);a&&(e.fillStyle=a)}else if(n.hasValue()){"currentColor"===n.getString()&&n.setValue(this.getStyle("color").getColor());var s=n.getColor();"inherit"!==s&&(e.fillStyle="none"===s?"rgba(0,0,0,0)":s)}if(r.hasValue()){var l=new rCe(this.document,"fill",e.fillStyle).addOpacity(r).getColor();e.fillStyle=l}if(i.isUrlDefinition()){var c=i.getFillStyleDefinition(this,o);c&&(e.strokeStyle=c)}else if(i.hasValue()){"currentColor"===i.getString()&&i.setValue(this.getStyle("color").getColor());var u=i.getString();"inherit"!==u&&(e.strokeStyle="none"===u?"rgba(0,0,0,0)":u)}if(o.hasValue()){var h=new rCe(this.document,"stroke",e.strokeStyle).addOpacity(o).getString();e.strokeStyle=h}var d=this.getStyle("stroke-width");if(d.hasValue()){var p=d.getPixels();e.lineWidth=p||W_e}var f=this.getStyle("stroke-linecap"),g=this.getStyle("stroke-linejoin"),m=this.getStyle("stroke-miterlimit"),O=this.getStyle("stroke-dasharray"),A=this.getStyle("stroke-dashoffset");if(f.hasValue()&&(e.lineCap=f.getString()),g.hasValue()&&(e.lineJoin=g.getString()),m.hasValue()&&(e.miterLimit=m.getNumber()),O.hasValue()&&"none"!==O.getString()){var y=E_e(O.getString());typeof e.setLineDash<"u"?e.setLineDash(y):typeof e.webkitLineDash<"u"?e.webkitLineDash=y:typeof e.mozDash<"u"&&(1!==y.length||0!==y[0])&&(e.mozDash=y);var v=A.getPixels();typeof e.lineDashOffset<"u"?e.lineDashOffset=v:typeof e.webkitLineDashOffset<"u"?e.webkitLineDashOffset=v:typeof e.mozDashOffset<"u"&&(e.mozDashOffset=v)}}if(this.modifiedEmSizeStack=!1,typeof e.font<"u"){var b=this.getStyle("font"),x=this.getStyle("font-style"),w=this.getStyle("font-variant"),k=this.getStyle("font-weight"),S=this.getStyle("font-size"),T=this.getStyle("font-family"),$=new $Ce(x.getString(),w.getString(),k.getString(),S.hasValue()?"".concat(S.getPixels(!0),"px"):"",T.getString(),$Ce.parse(b.getString(),e.font));x.setValue($.fontStyle),w.setValue($.fontVariant),k.setValue($.fontWeight),S.setValue($.fontSize),T.setValue($.fontFamily),e.font=$.toString(),S.isPixels()&&(this.document.emSize=S.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}}class PCe extends QCe{constructor(e,t,n){super(e,t,n),this.type="path",this.pathParser=null,this.pathParser=new CCe(this.getAttribute("d").getString())}path(e){var{pathParser:t}=this,n=new _Ce;for(t.reset(),e&&e.beginPath();!t.isEnd();)switch(t.next().type){case CCe.MOVE_TO:this.pathM(e,n);break;case CCe.LINE_TO:this.pathL(e,n);break;case CCe.HORIZ_LINE_TO:this.pathH(e,n);break;case CCe.VERT_LINE_TO:this.pathV(e,n);break;case CCe.CURVE_TO:this.pathC(e,n);break;case CCe.SMOOTH_CURVE_TO:this.pathS(e,n);break;case CCe.QUAD_TO:this.pathQ(e,n);break;case CCe.SMOOTH_QUAD_TO:this.pathT(e,n);break;case CCe.ARC:this.pathA(e,n);break;case CCe.CLOSE_PATH:this.pathZ(e,n)}return n}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,t=e.getMarkerPoints(),n=e.getMarkerAngles(),r=t.map((e,t)=>[e,n[t]]);return r}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var t=this.getStyle("fill-rule");""!==e.fillStyle&&("inherit"!==t.getString("inherit")?e.fill(t.getString()):e.fill()),""!==e.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var n=this.getMarkers();if(n){var r=n.length-1,i=this.getStyle("marker-start"),o=this.getStyle("marker-mid"),a=this.getStyle("marker-end");if(i.isUrlDefinition()){var s=i.getDefinition(),[l,c]=n[0];s.render(e,l,c)}if(o.isUrlDefinition())for(var u=o.getDefinition(),h=1;h<r;h++){var[d,p]=n[h];u.render(e,d,p)}if(a.isUrlDefinition()){var f=a.getDefinition(),[g,m]=n[r];f.render(e,g,m)}}}static pathM(e){var t=e.getAsCurrentPoint();return e.start=e.current,{point:t}}pathM(e,t){var{pathParser:n}=this,{point:r}=PCe.pathM(n),{x:i,y:o}=r;n.addMarker(r),t.addPoint(i,o),e&&e.moveTo(i,o)}static pathL(e){var{current:t}=e;return{current:t,point:e.getAsCurrentPoint()}}pathL(e,t){var{pathParser:n}=this,{current:r,point:i}=PCe.pathL(n),{x:o,y:a}=i;n.addMarker(i,r),t.addPoint(o,a),e&&e.lineTo(o,a)}static pathH(e){var{current:t,command:n}=e,r=new oCe((n.relative?t.x:0)+n.x,t.y);return e.current=r,{current:t,point:r}}pathH(e,t){var{pathParser:n}=this,{current:r,point:i}=PCe.pathH(n),{x:o,y:a}=i;n.addMarker(i,r),t.addPoint(o,a),e&&e.lineTo(o,a)}static pathV(e){var{current:t,command:n}=e,r=new oCe(t.x,(n.relative?t.y:0)+n.y);return e.current=r,{current:t,point:r}}pathV(e,t){var{pathParser:n}=this,{current:r,point:i}=PCe.pathV(n),{x:o,y:a}=i;n.addMarker(i,r),t.addPoint(o,a),e&&e.lineTo(o,a)}static pathC(e){var{current:t}=e;return{current:t,point:e.getPoint("x1","y1"),controlPoint:e.getAsControlPoint("x2","y2"),currentPoint:e.getAsCurrentPoint()}}pathC(e,t){var{pathParser:n}=this,{current:r,point:i,controlPoint:o,currentPoint:a}=PCe.pathC(n);n.addMarker(a,o,i),t.addBezierCurve(r.x,r.y,i.x,i.y,o.x,o.y,a.x,a.y),e&&e.bezierCurveTo(i.x,i.y,o.x,o.y,a.x,a.y)}static pathS(e){var{current:t}=e;return{current:t,point:e.getReflectedControlPoint(),controlPoint:e.getAsControlPoint("x2","y2"),currentPoint:e.getAsCurrentPoint()}}pathS(e,t){var{pathParser:n}=this,{current:r,point:i,controlPoint:o,currentPoint:a}=PCe.pathS(n);n.addMarker(a,o,i),t.addBezierCurve(r.x,r.y,i.x,i.y,o.x,o.y,a.x,a.y),e&&e.bezierCurveTo(i.x,i.y,o.x,o.y,a.x,a.y)}static pathQ(e){var{current:t}=e;return{current:t,controlPoint:e.getAsControlPoint("x1","y1"),currentPoint:e.getAsCurrentPoint()}}pathQ(e,t){var{pathParser:n}=this,{current:r,controlPoint:i,currentPoint:o}=PCe.pathQ(n);n.addMarker(o,i,i),t.addQuadraticCurve(r.x,r.y,i.x,i.y,o.x,o.y),e&&e.quadraticCurveTo(i.x,i.y,o.x,o.y)}static pathT(e){var{current:t}=e,n=e.getReflectedControlPoint();return e.control=n,{current:t,controlPoint:n,currentPoint:e.getAsCurrentPoint()}}pathT(e,t){var{pathParser:n}=this,{current:r,controlPoint:i,currentPoint:o}=PCe.pathT(n);n.addMarker(o,i,i),t.addQuadraticCurve(r.x,r.y,i.x,i.y,o.x,o.y),e&&e.quadraticCurveTo(i.x,i.y,o.x,o.y)}static pathA(e){var{current:t,command:n}=e,{rX:r,rY:i,xRot:o,lArcFlag:a,sweepFlag:s}=n,l=o*(Math.PI/180),c=e.getAsCurrentPoint(),u=new oCe(Math.cos(l)*(t.x-c.x)/2+Math.sin(l)*(t.y-c.y)/2,-Math.sin(l)*(t.x-c.x)/2+Math.cos(l)*(t.y-c.y)/2),h=Math.pow(u.x,2)/Math.pow(r,2)+Math.pow(u.y,2)/Math.pow(i,2);h>1&&(r*=Math.sqrt(h),i*=Math.sqrt(h));var d=(a===s?-1:1)*Math.sqrt((Math.pow(r,2)*Math.pow(i,2)-Math.pow(r,2)*Math.pow(u.y,2)-Math.pow(i,2)*Math.pow(u.x,2))/(Math.pow(r,2)*Math.pow(u.y,2)+Math.pow(i,2)*Math.pow(u.x,2)));isNaN(d)&&(d=0);var p=new oCe(d*r*u.y/i,d*-i*u.x/r),f=new oCe((t.x+c.x)/2+Math.cos(l)*p.x-Math.sin(l)*p.y,(t.y+c.y)/2+Math.sin(l)*p.x+Math.cos(l)*p.y),g=Z_e([1,0],[(u.x-p.x)/r,(u.y-p.y)/i]),m=[(u.x-p.x)/r,(u.y-p.y)/i],O=[(-u.x-p.x)/r,(-u.y-p.y)/i],A=Z_e(m,O);return Y_e(m,O)<=-1&&(A=Math.PI),Y_e(m,O)>=1&&(A=0),{currentPoint:c,rX:r,rY:i,sweepFlag:s,xAxisRotation:l,centp:f,a1:g,ad:A}}pathA(e,t){var{pathParser:n}=this,{currentPoint:r,rX:i,rY:o,sweepFlag:a,xAxisRotation:s,centp:l,a1:c,ad:u}=PCe.pathA(n),h=1-a?1:-1,d=c+h*(u/2),p=new oCe(l.x+i*Math.cos(d),l.y+o*Math.sin(d));if(n.addMarkerAngle(p,d-h*Math.PI/2),n.addMarkerAngle(r,d-h*Math.PI),t.addPoint(r.x,r.y),e&&!isNaN(c)&&!isNaN(u)){var f=i>o?i:o,g=i>o?1:i/o,m=i>o?o/i:1;e.translate(l.x,l.y),e.rotate(s),e.scale(g,m),e.arc(0,0,f,c,c+u,!!(1-a)),e.scale(1/g,1/m),e.rotate(-s),e.translate(-l.x,-l.y)}}static pathZ(e){e.current=e.start}pathZ(e,t){PCe.pathZ(this.pathParser),e&&t.x1!==t.x2&&t.y1!==t.y2&&e.closePath()}}class ECe extends PCe{constructor(e,t,n){super(e,t,n),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class RCe extends QCe{constructor(e,t,n){super(e,t,new.target===RCe||n),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.setContext(e,t);var n=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();n&&(e.textBaseline=n)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(e){if("text"!==this.type)return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var t=null;return this.children.forEach((n,r)=>{var i=this.getChildBoundingBox(e,this,this,r);t?t.addBoundingBox(i):t=i}),t}getFontSize(){var{document:e,parent:t}=this,n=$Ce.parse(e.ctx.font).fontSize;return t.getStyle("font-size").getNumber(n)}getTElementBoundingBox(e){var t=this.getFontSize();return new _Ce(this.x,this.y-t,this.x+this.measureText(e),this.y)}getGlyph(e,t,n){var r=t[n],i=null;if(e.isArabic){var o=t.length,a=t[n-1],s=t[n+1],l="isolated";if((0===n||" "===a)&&n<o-1&&" "!==s&&(l="terminal"),n>0&&" "!==a&&n<o-1&&" "!==s&&(l="medial"),n>0&&" "!==a&&(n===o-1||" "===s)&&(l="initial"),typeof e.glyphs[r]<"u"){var c=e.glyphs[r];i=c instanceof ECe?c:c[l]}}else i=e.glyphs[r];return i||(i=e.missingGlyph),i}getText(){return""}getTextFromNode(e){var t=e||this.node,n=Array.from(t.parentNode.childNodes),r=n.indexOf(t),i=n.length-1,o=C_e(t.textContent||"");return 0===r&&(o=Q_e(o)),r===i&&(o=P_e(o)),o}renderChildren(e){if("text"===this.type){this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((t,n)=>{this.renderChild(e,this,this,n)});var{mouse:t}=this.document.screen;t.isWorking()&&t.checkBoundingBox(this,this.getBoundingBox(e))}else this.renderTElementChildren(e)}renderTElementChildren(e){var{document:t,parent:n}=this,r=this.getText(),i=n.getStyle("font-family").getDefinition();if(i)for(var{unitsPerEm:o}=i.fontFace,a=$Ce.parse(t.ctx.font),s=n.getStyle("font-size").getNumber(a.fontSize),l=n.getStyle("font-style").getString(a.fontStyle),c=s/o,u=i.isRTL?r.split("").reverse().join(""):r,h=E_e(n.getAttribute("dx").getString()),d=u.length,p=0;p<d;p++){var f=this.getGlyph(i,u,p);e.translate(this.x,this.y),e.scale(c,-c);var g=e.lineWidth;e.lineWidth=e.lineWidth*o/s,"italic"===l&&e.transform(1,0,.4,1,0,0),f.render(e),"italic"===l&&e.transform(1,0,-.4,1,0,0),e.lineWidth=g,e.scale(1/c,-1/c),e.translate(-this.x,-this.y),this.x+=s*(f.horizAdvX||i.horizAdvX)/o,typeof h[p]<"u"&&!isNaN(h[p])&&(this.x+=h[p])}else{var{x:m,y:O}=this;e.fillStyle&&e.fillText(r,m,O),e.strokeStyle&&e.strokeText(r,m,O)}}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],t=e.getStyle("text-anchor").getString("start"),n=0;n="start"===t?e.x-this.minX:"end"===t?e.x-this.maxX:e.x-(this.minX+this.maxX)/2;for(var r=this.textChunkStart;r<this.leafTexts.length;r++)this.leafTexts[r].x+=n;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(e){this.children.forEach((t,n)=>{this.adjustChildCoordinatesRecursiveCore(e,this,this,n)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,t,n,r){var i=n.children[r];i.children.length>0?i.children.forEach((n,r)=>{t.adjustChildCoordinatesRecursiveCore(e,t,i,r)}):this.adjustChildCoordinates(e,t,n,r)}adjustChildCoordinates(e,t,n,r){var i=n.children[r];if("function"!=typeof i.measureText)return i;e.save(),i.setContext(e,!0);var o=i.getAttribute("x"),a=i.getAttribute("y"),s=i.getAttribute("dx"),l=i.getAttribute("dy"),c=i.getStyle("font-family").getDefinition(),u=!!c&&c.isRTL;0===r&&(o.hasValue()||o.setValue(i.getInheritedAttribute("x")),a.hasValue()||a.setValue(i.getInheritedAttribute("y")),s.hasValue()||s.setValue(i.getInheritedAttribute("dx")),l.hasValue()||l.setValue(i.getInheritedAttribute("dy")));var h=i.measureText(e);return u&&(t.x-=h),o.hasValue()?(t.applyAnchoring(),i.x=o.getPixels("x"),s.hasValue()&&(i.x+=s.getPixels("x"))):(s.hasValue()&&(t.x+=s.getPixels("x")),i.x=t.x),t.x=i.x,u||(t.x+=h),a.hasValue()?(i.y=a.getPixels("y"),l.hasValue()&&(i.y+=l.getPixels("y"))):(l.hasValue()&&(t.y+=l.getPixels("y")),i.y=t.y),t.y=i.y,t.leafTexts.push(i),t.minX=Math.min(t.minX,i.x,i.x+h),t.maxX=Math.max(t.maxX,i.x,i.x+h),i.clearContext(e),e.restore(),i}getChildBoundingBox(e,t,n,r){var i=n.children[r];if("function"!=typeof i.getBoundingBox)return null;var o=i.getBoundingBox(e);return o?(i.children.forEach((n,r)=>{var a=t.getChildBoundingBox(e,t,i,r);o.addBoundingBox(a)}),o):null}renderChild(e,t,n,r){var i=n.children[r];i.render(e),i.children.forEach((n,r)=>{t.renderChild(e,t,i,r)})}measureText(e){var{measureCache:t}=this;if(~t)return t;var n=this.getText(),r=this.measureTargetText(e,n);return this.measureCache=r,r}measureTargetText(e,t){if(!t.length)return 0;var{parent:n}=this,r=n.getStyle("font-family").getDefinition();if(r){for(var i=this.getFontSize(),o=r.isRTL?t.split("").reverse().join(""):t,a=E_e(n.getAttribute("dx").getString()),s=o.length,l=0,c=0;c<s;c++){l+=(this.getGlyph(r,o,c).horizAdvX||r.horizAdvX)*i/r.fontFace.unitsPerEm,typeof a[c]<"u"&&!isNaN(a[c])&&(l+=a[c])}return l}if(!e.measureText)return 10*t.length;e.save(),this.setContext(e,!0);var{width:u}=e.measureText(t);return this.clearContext(e),e.restore(),u}getInheritedAttribute(e){for(var t=this;t instanceof RCe&&t.isFirstChild();){var n=t.parent.getAttribute(e);if(n.hasValue(!0))return n.getValue("0");t=t.parent}return null}}class BCe extends RCe{constructor(e,t,n){super(e,t,new.target===BCe||n),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class ICe extends BCe{constructor(){super(...arguments),this.type="textNode"}}class LCe extends QCe{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(e){var t,{document:n}=this,{screen:r,window:i}=n,o=e.canvas;if(r.setDefaults(e),o.style&&typeof e.font<"u"&&i&&typeof i.getComputedStyle<"u"){e.font=i.getComputedStyle(o).getPropertyValue("font");var a=new rCe(n,"fontSize",$Ce.parse(e.font).fontSize);a.hasValue()&&(n.rootEmSize=a.getPixels("y"),n.emSize=n.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:s,height:l}=r.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var c=this.getAttribute("refX"),u=this.getAttribute("refY"),h=this.getAttribute("viewBox"),d=h.hasValue()?E_e(h.getString()):null,p=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),f=0,g=0,m=0,O=0;d&&(f=d[0],g=d[1]),this.root||(s=this.getStyle("width").getPixels("x"),l=this.getStyle("height").getPixels("y"),"marker"===this.type&&(m=f,O=g,f=0,g=0)),r.viewPort.setCurrent(s,l),this.node&&(!this.parent||"foreignObject"===(null===(t=this.node.parentNode)||void 0===t?void 0:t.nodeName))&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),d&&(s=d[2],l=d[3]),n.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:r.viewPort.width,desiredWidth:s,height:r.viewPort.height,desiredHeight:l,minX:f,minY:g,refX:c.getValue(),refY:u.getValue(),clip:p,clipX:m,clipY:O}),d&&(r.viewPort.removeCurrent(),r.viewPort.setCurrent(s,l))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.getAttribute("width",!0),i=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),a=this.getAttribute("style"),s=r.getNumber(0),l=i.getNumber(0);if(n)if("string"==typeof n)this.getAttribute("preserveAspectRatio",!0).setValue(n);else{var c=this.getAttribute("preserveAspectRatio");c.hasValue()&&c.setValue(c.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(r.setValue(e),i.setValue(t),o.hasValue()||o.setValue("0 0 ".concat(s||e," ").concat(l||t)),a.hasValue()){var u=this.getStyle("width"),h=this.getStyle("height");u.hasValue()&&u.setValue("".concat(e,"px")),h.hasValue()&&h.setValue("".concat(t,"px"))}}}class DCe extends PCe{constructor(){super(...arguments),this.type="rect"}path(e){var t=this.getAttribute("x").getPixels("x"),n=this.getAttribute("y").getPixels("y"),r=this.getStyle("width",!1,!0).getPixels("x"),i=this.getStyle("height",!1,!0).getPixels("y"),o=this.getAttribute("rx"),a=this.getAttribute("ry"),s=o.getPixels("x"),l=a.getPixels("y");if(o.hasValue()&&!a.hasValue()&&(l=s),a.hasValue()&&!o.hasValue()&&(s=l),s=Math.min(s,r/2),l=Math.min(l,i/2),e){var c=(Math.sqrt(2)-1)/3*4;e.beginPath(),i>0&&r>0&&(e.moveTo(t+s,n),e.lineTo(t+r-s,n),e.bezierCurveTo(t+r-s+c*s,n,t+r,n+l-c*l,t+r,n+l),e.lineTo(t+r,n+i-l),e.bezierCurveTo(t+r,n+i-l+c*l,t+r-s+c*s,n+i,t+r-s,n+i),e.lineTo(t+s,n+i),e.bezierCurveTo(t+s-c*s,n+i,t,n+i-l+c*l,t,n+i-l),e.lineTo(t,n+l),e.bezierCurveTo(t,n+l-c*l,t+s-c*s,n,t+s,n),e.closePath())}return new _Ce(t,n,t+r,n+i)}getMarkers(){return null}}class MCe extends PCe{constructor(){super(...arguments),this.type="circle"}path(e){var t=this.getAttribute("cx").getPixels("x"),n=this.getAttribute("cy").getPixels("y"),r=this.getAttribute("r").getPixels();return e&&r>0&&(e.beginPath(),e.arc(t,n,r,0,2*Math.PI,!1),e.closePath()),new _Ce(t-r,n-r,t+r,n+r)}getMarkers(){return null}}class NCe extends PCe{constructor(){super(...arguments),this.type="ellipse"}path(e){var t=(Math.sqrt(2)-1)/3*4,n=this.getAttribute("rx").getPixels("x"),r=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return e&&n>0&&r>0&&(e.beginPath(),e.moveTo(i+n,o),e.bezierCurveTo(i+n,o+t*r,i+t*n,o+r,i,o+r),e.bezierCurveTo(i-t*n,o+r,i-n,o+t*r,i-n,o),e.bezierCurveTo(i-n,o-t*r,i-t*n,o-r,i,o-r),e.bezierCurveTo(i+t*n,o-r,i+n,o-t*r,i+n,o),e.closePath()),new _Ce(i-n,o-r,i+n,o+r)}getMarkers(){return null}}class XCe extends PCe{constructor(){super(...arguments),this.type="line"}getPoints(){return[new oCe(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new oCe(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(e){var[{x:t,y:n},{x:r,y:i}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(t,n),e.lineTo(r,i)),new _Ce(t,n,r,i)}getMarkers(){var[e,t]=this.getPoints(),n=e.angleTo(t);return[[e,n],[t,n]]}}class FCe extends PCe{constructor(e,t,n){super(e,t,n),this.type="polyline",this.points=[],this.points=oCe.parsePath(this.getAttribute("points").getString())}path(e){var{points:t}=this,[{x:n,y:r}]=t,i=new _Ce(n,r);return e&&(e.beginPath(),e.moveTo(n,r)),t.forEach(t=>{var{x:n,y:r}=t;i.addPoint(n,r),e&&e.lineTo(n,r)}),i}getMarkers(){var{points:e}=this,t=e.length-1,n=[];return e.forEach((r,i)=>{i!==t&&n.push([r,r.angleTo(e[i+1])])}),n.length>0&&n.push([e[e.length-1],n[n.length-1][1]]),n}}class UCe extends FCe{constructor(){super(...arguments),this.type="polygon"}path(e){var t=super.path(e),[{x:n,y:r}]=this.points;return e&&(e.lineTo(n,r),e.closePath()),t}}class zCe extends bCe{constructor(){super(...arguments),this.type="pattern"}createPattern(e,t,n){var r=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),o=new LCe(this.document,null);o.attributes.viewBox=new rCe(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new rCe(this.document,"width","".concat(r,"px")),o.attributes.height=new rCe(this.document,"height","".concat(i,"px")),o.attributes.transform=new rCe(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var a=this.document.createCanvas(r,i),s=a.getContext("2d"),l=this.getAttribute("x"),c=this.getAttribute("y");l.hasValue()&&c.hasValue()&&s.translate(l.getPixels("x",!0),c.getPixels("y",!0)),n.hasValue()?this.styles["fill-opacity"]=n:Reflect.deleteProperty(this.styles,"fill-opacity");for(var u=-1;u<=1;u++)for(var h=-1;h<=1;h++)s.save(),o.attributes.x=new rCe(this.document,"x",u*a.width),o.attributes.y=new rCe(this.document,"y",h*a.height),o.render(s),s.restore();return e.createPattern(a,"repeat")}}class qCe extends bCe{constructor(){super(...arguments),this.type="marker"}render(e,t,n){if(t){var{x:r,y:i}=t,o=this.getAttribute("orient").getString("auto"),a=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(r,i),"auto"===o&&e.rotate(n),"strokeWidth"===a&&e.scale(e.lineWidth,e.lineWidth),e.save();var s=new LCe(this.document,null);s.type=this.type,s.attributes.viewBox=new rCe(this.document,"viewBox",this.getAttribute("viewBox").getValue()),s.attributes.refX=new rCe(this.document,"refX",this.getAttribute("refX").getValue()),s.attributes.refY=new rCe(this.document,"refY",this.getAttribute("refY").getValue()),s.attributes.width=new rCe(this.document,"width",this.getAttribute("markerWidth").getValue()),s.attributes.height=new rCe(this.document,"height",this.getAttribute("markerHeight").getValue()),s.attributes.overflow=new rCe(this.document,"overflow",this.getAttribute("overflow").getValue()),s.attributes.fill=new rCe(this.document,"fill",this.getAttribute("fill").getColor("black")),s.attributes.stroke=new rCe(this.document,"stroke",this.getAttribute("stroke").getValue("none")),s.children=this.children,s.render(e),e.restore(),"strokeWidth"===a&&e.scale(1/e.lineWidth,1/e.lineWidth),"auto"===o&&e.rotate(-n),e.translate(-r,-i)}}}class VCe extends bCe{constructor(){super(...arguments),this.type="defs"}render(){}}class WCe extends QCe{constructor(){super(...arguments),this.type="g"}getBoundingBox(e){var t=new _Ce;return this.children.forEach(n=>{t.addBoundingBox(n.getBoundingBox(e))}),t}}class jCe extends bCe{constructor(e,t,n){super(e,t,n),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:r,children:i}=this;i.forEach(e=>{"stop"===e.type&&r.push(e)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(e,t,n){var r=this;this.getHrefAttribute().hasValue()&&(r=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(r));var{stops:i}=r,o=this.getGradient(e,t);if(!o)return this.addParentOpacity(n,i[i.length-1].color);if(i.forEach(e=>{o.addColorStop(e.offset,this.addParentOpacity(n,e.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:a}=this,{MAX_VIRTUAL_PIXELS:s,viewPort:l}=a.screen,[c]=l.viewPorts,u=new DCe(a,null);u.attributes.x=new rCe(a,"x",-s/3),u.attributes.y=new rCe(a,"y",-s/3),u.attributes.width=new rCe(a,"width",s),u.attributes.height=new rCe(a,"height",s);var h=new WCe(a,null);h.attributes.transform=new rCe(a,"transform",this.getAttribute("gradientTransform").getValue()),h.children=[u];var d=new LCe(a,null);d.attributes.x=new rCe(a,"x",0),d.attributes.y=new rCe(a,"y",0),d.attributes.width=new rCe(a,"width",c.width),d.attributes.height=new rCe(a,"height",c.height),d.children=[h];var p=a.createCanvas(c.width,c.height),f=p.getContext("2d");return f.fillStyle=o,d.render(f),f.createPattern(p,"no-repeat")}return o}inheritStopContainer(e){this.attributesToInherit.forEach(t=>{!this.getAttribute(t).hasValue()&&e.getAttribute(t).hasValue()&&this.getAttribute(t,!0).setValue(e.getAttribute(t).getValue())})}addParentOpacity(e,t){return e.hasValue()?new rCe(this.document,"color",t).addOpacity(e).getColor():t}}class YCe extends jCe{constructor(e,t,n){super(e,t,n),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(e,t){var n="objectBoundingBox"===this.getGradientUnits(),r=n?t.getBoundingBox(e):null;if(n&&!r)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var i=n?r.x+r.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),o=n?r.y+r.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),a=n?r.x+r.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),s=n?r.y+r.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===a&&o===s?null:e.createLinearGradient(i,o,a,s)}}class ZCe extends jCe{constructor(e,t,n){super(e,t,n),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(e,t){var n="objectBoundingBox"===this.getGradientUnits(),r=t.getBoundingBox(e);if(n&&!r)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var i=n?r.x+r.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),o=n?r.y+r.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),a=i,s=o;this.getAttribute("fx").hasValue()&&(a=n?r.x+r.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(s=n?r.y+r.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var l=n?(r.width+r.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),c=this.getAttribute("fr").getPixels();return e.createRadialGradient(a,s,c,i,o,l)}}class GCe extends bCe{constructor(e,t,n){super(e,t,n),this.type="stop";var r=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),i=this.getStyle("stop-opacity"),o=this.getStyle("stop-color",!0);""===o.getString()&&o.setValue("#000"),i.hasValue()&&(o=o.addOpacity(i)),this.offset=r,this.color=o.getColor()}}class HCe extends bCe{constructor(e,t,n){super(e,t,n),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,e.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new rCe(e,"values",null);var r=this.getAttribute("values");r.hasValue()&&this.values.setValue(r.getString().split(";"))}getProperty(){var e=this.getAttribute("attributeType").getString(),t=this.getAttribute("attributeName").getString();return"CSS"===e?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)}calcValue(){var{initialUnits:e}=this,{progress:t,from:n,to:r}=this.getProgress(),i=n.getNumber()+(r.getNumber()-n.getNumber())*t;return"%"===e&&(i*=100),"".concat(i).concat(e)}update(e){var{parent:t}=this,n=this.getProperty();if(this.initialValue||(this.initialValue=n.getString(),this.initialUnits=n.getUnits()),this.duration>this.maxDuration){var r=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==r||this.frozen){if("remove"===r&&!this.removed)return this.removed=!0,n.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,t.animationFrozen=!0,t.animationFrozenValue=n.getString();return!1}this.duration+=e;var i=!1;if(this.begin<this.duration){var o=this.calcValue(),a=this.getAttribute("type");if(a.hasValue()){var s=a.getString();o="".concat(s,"(").concat(o,")")}n.setValue(o),i=!0}return i}getProgress(){var{document:e,values:t}=this,n={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(t.hasValue()){var r=n.progress*(t.getValue().length-1),i=Math.floor(r),o=Math.ceil(r);n.from=new rCe(e,"from",parseFloat(t.getValue()[i])),n.to=new rCe(e,"to",parseFloat(t.getValue()[o])),n.progress=(r-i)/(o-i)}else n.from=this.from,n.to=this.to;return n}}class KCe extends HCe{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:e,from:t,to:n}=this.getProgress(),r=new W$e(t.getColor()),i=new W$e(n.getColor());if(r.ok&&i.ok){var o=r.r+(i.r-r.r)*e,a=r.g+(i.g-r.g)*e,s=r.b+(i.b-r.b)*e;return"rgb(".concat(Math.floor(o),", ").concat(Math.floor(a),", ").concat(Math.floor(s),")")}return this.getAttribute("from").getColor()}}class JCe extends HCe{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:e,from:t,to:n}=this.getProgress(),r=E_e(t.getString()),i=E_e(n.getString());return r.map((t,n)=>t+(i[n]-t)*e).join(" ")}}class eQe extends bCe{constructor(e,t,n){super(e,t,n),this.type="font",this.glyphs=Object.create(null),this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:r}=e,{children:i}=this;for(var o of i)switch(o.type){case"font-face":this.fontFace=o;var a=o.getStyle("font-family");a.hasValue()&&(r[a.getString()]=this);break;case"missing-glyph":this.missingGlyph=o;break;case"glyph":var s=o;s.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[s.unicode]>"u"&&(this.glyphs[s.unicode]=Object.create(null)),this.glyphs[s.unicode][s.arabicForm]=s):this.glyphs[s.unicode]=s}}render(){}}class tQe extends bCe{constructor(e,t,n){super(e,t,n),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class nQe extends PCe{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class rQe extends RCe{constructor(){super(...arguments),this.type="tref"}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var t=e.children[0];if(t)return t.getText()}return""}}class iQe extends RCe{constructor(e,t,n){super(e,t,n),this.type="a";var{childNodes:r}=t,i=r[0],o=r.length>0&&Array.from(r).every(e=>3===e.nodeType);this.hasText=o,this.text=o?this.getTextFromNode(i):""}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:t,x:n,y:r}=this,{mouse:i}=t.screen,o=new rCe(t,"fontSize",$Ce.parse(t.ctx.font).fontSize);i.isWorking()&&i.checkBoundingBox(this,new _Ce(n,r-o.getPixels("y"),n+this.measureText(e),r))}else if(this.children.length>0){var a=new WCe(this.document,null);a.children=this.children,a.parent=this,a.render(e)}}onClick(){var{window:e}=this.document;e&&e.open(this.getHrefAttribute().getString())}onMouseMove(){this.document.ctx.canvas.style.cursor="pointer"}}function oQe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function aQe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oQe(Object(n),!0).forEach(function(t){g$e(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oQe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}class sQe extends RCe{constructor(e,t,n){super(e,t,n),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var r=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(r)}getText(){return this.text}path(e){var{dataArray:t}=this;e&&e.beginPath(),t.forEach(t=>{var{type:n,points:r}=t;switch(n){case CCe.LINE_TO:e&&e.lineTo(r[0],r[1]);break;case CCe.MOVE_TO:e&&e.moveTo(r[0],r[1]);break;case CCe.CURVE_TO:e&&e.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);break;case CCe.QUAD_TO:e&&e.quadraticCurveTo(r[0],r[1],r[2],r[3]);break;case CCe.ARC:var[i,o,a,s,l,c,u,h]=r,d=a>s?a:s,p=a>s?1:a/s,f=a>s?s/a:1;e&&(e.translate(i,o),e.rotate(u),e.scale(p,f),e.arc(0,0,d,l,l+c,!!(1-h)),e.scale(1/p,1/f),e.rotate(-u),e.translate(-i,-o));break;case CCe.CLOSE_PATH:e&&e.closePath()}})}renderChildren(e){this.setTextData(e),e.save();var t=this.parent.getStyle("text-decoration").getString(),n=this.getFontSize(),{glyphInfo:r}=this,i=e.fillStyle;"underline"===t&&e.beginPath(),r.forEach((r,i)=>{var{p0:o,p1:a,rotation:s,text:l}=r;e.save(),e.translate(o.x,o.y),e.rotate(s),e.fillStyle&&e.fillText(l,0,0),e.strokeStyle&&e.strokeText(l,0,0),e.restore(),"underline"===t&&(0===i&&e.moveTo(o.x,o.y+n/8),e.lineTo(a.x,a.y+n/5))}),"underline"===t&&(e.lineWidth=n/20,e.strokeStyle=i,e.stroke(),e.closePath()),e.restore()}getLetterSpacingAt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[e]||0}findSegmentToFitChar(e,t,n,r,i,o,a,s,l){var c=o,u=this.measureText(e,s);" "===s&&"justify"===t&&n<r&&(u+=(r-n)/i),l>-1&&(c+=this.getLetterSpacingAt(l));var h=this.textHeight/20,d=this.getEquidistantPointOnPath(c,h,0),p=this.getEquidistantPointOnPath(c+u,h,0),f={p0:d,p1:p},g=d&&p?Math.atan2(p.y-d.y,p.x-d.x):0;if(a){var m=Math.cos(Math.PI/2+g)*a,O=Math.cos(-g)*a;f.p0=aQe(aQe({},d),{},{x:d.x+m,y:d.y+O}),f.p1=aQe(aQe({},p),{},{x:p.x+m,y:p.y+O})}return{offset:c+=u,segment:f,rotation:g}}measureText(e,t){var{measuresCache:n}=this,r=t||this.getText();if(n.has(r))return n.get(r);var i=this.measureTargetText(e,r);return n.set(r,i),i}setTextData(e){if(!this.glyphInfo){var t=this.getText(),n=t.split(""),r=t.split(" ").length-1,i=this.parent.getAttribute("dx").split().map(e=>e.getPixels("x")),o=this.parent.getAttribute("dy").getPixels("y"),a=this.parent.getStyle("text-anchor").getString("start"),s=this.getStyle("letter-spacing"),l=this.parent.getStyle("letter-spacing"),c=0;s.hasValue()&&"inherit"!==s.getValue()?s.hasValue()&&"initial"!==s.getValue()&&"unset"!==s.getValue()&&(c=s.getPixels()):c=l.getPixels();var u=[],h=t.length;this.letterSpacingCache=u;for(var d=0;d<h;d++)u.push(typeof i[d]<"u"?i[d]:c);var p=u.reduce((e,t,n)=>0===n?0:e+t||0,0),f=this.measureText(e),g=Math.max(f+p,0);this.textWidth=f,this.textHeight=this.getFontSize(),this.glyphInfo=[];var m=this.getPathLength(),O=this.getStyle("startOffset").getNumber(0)*m,A=0;("middle"===a||"center"===a)&&(A=-g/2),("end"===a||"right"===a)&&(A=-g),A+=O,n.forEach((t,i)=>{var{offset:s,segment:l,rotation:c}=this.findSegmentToFitChar(e,a,g,m,r,A,o,t,i);A=s,l.p0&&l.p1&&this.glyphInfo.push({text:n[i],p0:l.p0,p1:l.p1,rotation:c})})}}parsePathData(e){if(this.pathLength=-1,!e)return[];var t=[],{pathParser:n}=e;for(n.reset();!n.isEnd();){var{current:r}=n,i=r?r.x:0,o=r?r.y:0,a=n.next(),s=a.type,l=[];switch(a.type){case CCe.MOVE_TO:this.pathM(n,l);break;case CCe.LINE_TO:s=this.pathL(n,l);break;case CCe.HORIZ_LINE_TO:s=this.pathH(n,l);break;case CCe.VERT_LINE_TO:s=this.pathV(n,l);break;case CCe.CURVE_TO:this.pathC(n,l);break;case CCe.SMOOTH_CURVE_TO:s=this.pathS(n,l);break;case CCe.QUAD_TO:this.pathQ(n,l);break;case CCe.SMOOTH_QUAD_TO:s=this.pathT(n,l);break;case CCe.ARC:l=this.pathA(n);break;case CCe.CLOSE_PATH:PCe.pathZ(n)}a.type!==CCe.CLOSE_PATH?t.push({type:s,points:l,start:{x:i,y:o},pathLength:this.calcLength(i,o,s,l)}):t.push({type:CCe.CLOSE_PATH,points:[],pathLength:0})}return t}pathM(e,t){var{x:n,y:r}=PCe.pathM(e).point;t.push(n,r)}pathL(e,t){var{x:n,y:r}=PCe.pathL(e).point;return t.push(n,r),CCe.LINE_TO}pathH(e,t){var{x:n,y:r}=PCe.pathH(e).point;return t.push(n,r),CCe.LINE_TO}pathV(e,t){var{x:n,y:r}=PCe.pathV(e).point;return t.push(n,r),CCe.LINE_TO}pathC(e,t){var{point:n,controlPoint:r,currentPoint:i}=PCe.pathC(e);t.push(n.x,n.y,r.x,r.y,i.x,i.y)}pathS(e,t){var{point:n,controlPoint:r,currentPoint:i}=PCe.pathS(e);return t.push(n.x,n.y,r.x,r.y,i.x,i.y),CCe.CURVE_TO}pathQ(e,t){var{controlPoint:n,currentPoint:r}=PCe.pathQ(e);t.push(n.x,n.y,r.x,r.y)}pathT(e,t){var{controlPoint:n,currentPoint:r}=PCe.pathT(e);return t.push(n.x,n.y,r.x,r.y),CCe.QUAD_TO}pathA(e){var{rX:t,rY:n,sweepFlag:r,xAxisRotation:i,centp:o,a1:a,ad:s}=PCe.pathA(e);return 0===r&&s>0&&(s-=2*Math.PI),1===r&&s<0&&(s+=2*Math.PI),[o.x,o.y,t,n,a,s,i,r]}calcLength(e,t,n,r){var i=0,o=null,a=null,s=0;switch(n){case CCe.LINE_TO:return this.getLineLength(e,t,r[0],r[1]);case CCe.CURVE_TO:for(i=0,o=this.getPointOnCubicBezier(0,e,t,r[0],r[1],r[2],r[3],r[4],r[5]),s=.01;s<=1;s+=.01)a=this.getPointOnCubicBezier(s,e,t,r[0],r[1],r[2],r[3],r[4],r[5]),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;return i;case CCe.QUAD_TO:for(i=0,o=this.getPointOnQuadraticBezier(0,e,t,r[0],r[1],r[2],r[3]),s=.01;s<=1;s+=.01)a=this.getPointOnQuadraticBezier(s,e,t,r[0],r[1],r[2],r[3]),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;return i;case CCe.ARC:i=0;var l=r[4],c=r[5],u=r[4]+c,h=Math.PI/180;if(Math.abs(l-u)<h&&(h=Math.abs(l-u)),o=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],l,0),c<0)for(s=l-h;s>u;s-=h)a=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],s,0),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;else for(s=l+h;s<u;s+=h)a=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],s,0),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;return a=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],u,0),i+=this.getLineLength(o.x,o.y,a.x,a.y)}return 0}getPointOnLine(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:n,s=(i-n)/(r-t+W_e),l=Math.sqrt(e*e/(1+s*s));r<t&&(l*=-1);var c=s*l,u=null;if(r===t)u={x:o,y:a+c};else if((a-n)/(o-t+W_e)===s)u={x:o+l,y:a+c};else{var h,d,p=this.getLineLength(t,n,r,i);if(p<W_e)return null;var f=(o-t)*(r-t)+(a-n)*(i-n);h=t+(f/=p*p)*(r-t),d=n+f*(i-n);var g=this.getLineLength(o,a,h,d),m=Math.sqrt(e*e-g*g);l=Math.sqrt(m*m/(1+s*s)),r<t&&(l*=-1),u={x:h+l,y:d+(c=s*l)}}return u}getPointOnPath(e){var t=this.getPathLength(),n=0,r=null;if(e<-5e-5||e-5e-5>t)return null;var{dataArray:i}=this;for(var o of i){if(!o||!(o.pathLength<5e-5||n+o.pathLength+5e-5<e)){var a=e-n,s=0;switch(o.type){case CCe.LINE_TO:r=this.getPointOnLine(a,o.start.x,o.start.y,o.points[0],o.points[1],o.start.x,o.start.y);break;case CCe.ARC:var l=o.points[4],c=o.points[5],u=o.points[4]+c;if(s=l+a/o.pathLength*c,c<0&&s<u||c>=0&&s>u)break;r=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],s,o.points[6]);break;case CCe.CURVE_TO:(s=a/o.pathLength)>1&&(s=1),r=this.getPointOnCubicBezier(s,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3],o.points[4],o.points[5]);break;case CCe.QUAD_TO:(s=a/o.pathLength)>1&&(s=1),r=this.getPointOnQuadraticBezier(s,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3])}if(r)return r;break}n+=o.pathLength}return null}getLineLength(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))}getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce((e,t)=>t.pathLength>0?e+t.pathLength:e,0)),this.pathLength}getPointOnCubicBezier(e,t,n,r,i,o,a,s,l){return{x:s*G_e(e)+o*H_e(e)+r*K_e(e)+t*J_e(e),y:l*G_e(e)+a*H_e(e)+i*K_e(e)+n*J_e(e)}}getPointOnQuadraticBezier(e,t,n,r,i,o,a){return{x:o*eCe(e)+r*tCe(e)+t*nCe(e),y:a*eCe(e)+i*tCe(e)+n*nCe(e)}}getPointOnEllipticalArc(e,t,n,r,i,o){var a=Math.cos(o),s=Math.sin(o),l=n*Math.cos(i),c=r*Math.sin(i);return{x:e+(l*a-c*s),y:t+(l*s+c*a)}}buildEquidistantCache(e,t){var n=this.getPathLength(),r=t||.25,i=e||n/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==r){this.equidistantCache={step:i,precision:r,points:[]};for(var o=0,a=0;a<=n;a+=r){var s=this.getPointOnPath(a),l=this.getPointOnPath(a+r);!s||!l||(o+=this.getLineLength(s.x,s.y,l.x,l.y))>=i&&(this.equidistantCache.points.push({x:s.x,y:s.y,distance:a}),o-=i)}}}getEquidistantPointOnPath(e,t,n){if(this.buildEquidistantCache(t,n),e<0||e-this.getPathLength()>5e-5)return null;var r=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[r]||null}}var lQe=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class cQe extends QCe{constructor(e,t,n){super(e,t,n),this.type="image",this.loaded=!1;var r=this.getHrefAttribute().getString();if(r){var i=r.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(r);e.images.push(this),i?this.loadSvg(r):this.loadImage(r),this.isSvg=i}}loadImage(e){var t=this;return DSe(function*(){try{var n=yield t.document.createImage(e);t.image=n}catch(r){}t.loaded=!0})()}loadSvg(e){var t=this;return DSe(function*(){var n=lQe.exec(e);if(n){var r=n[5];"base64"===n[4]?t.image=atob(r):t.image=decodeURIComponent(r)}else try{var i=yield t.document.fetch(e),o=yield i.text();t.image=o}catch(a){}t.loaded=!0})()}renderChildren(e){var{document:t,image:n,loaded:r}=this,i=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(r&&n&&a&&s){if(e.save(),e.translate(i,o),this.isSvg){var l=t.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:a,scaleHeight:s});l.document.documentElement.parent=this,l.render()}else{var c=this.image;t.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:a,desiredWidth:c.width,height:s,desiredHeight:c.height}),this.loaded&&(typeof c.complete>"u"||c.complete)&&e.drawImage(c,0,0)}e.restore()}}getBoundingBox(){var e=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),n=this.getStyle("width").getPixels("x"),r=this.getStyle("height").getPixels("y");return new _Ce(e,t,e+n,t+r)}}class uQe extends QCe{constructor(){super(...arguments),this.type="symbol"}render(e){}}class hQe{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,t){var n=this;return DSe(function*(){try{var{document:r}=n,i=(yield r.canvg.parser.load(t)).getElementsByTagName("font");Array.from(i).forEach(t=>{var n=r.createElement(t);r.definitions[e]=n})}catch(o){}n.loaded=!0})()}}class dQe extends bCe{constructor(e,t,n){super(e,t,n),this.type="style";var r=C_e(Array.from(t.childNodes).map(e=>e.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,""));r.split("}").forEach(t=>{var n=t.trim();if(n){var r=n.split("{"),i=r[0].split(","),o=r[1].split(";");i.forEach(t=>{var n=t.trim();if(n){var r=e.styles[n]||{};if(o.forEach(t=>{var n=t.indexOf(":"),i=t.substr(0,n).trim(),o=t.substr(n+1,t.length-n).trim();i&&o&&(r[i]=new rCe(e,i,o))}),e.styles[n]=r,e.stylesSpecificity[n]=V_e(n),"@font-face"===n){var i=r["font-family"].getString().replace(/"|'/g,"");r.src.getString().split(",").forEach(t=>{if(t.indexOf('format("svg")')>0){var n=I_e(t);n&&new hQe(e).load(i,n)}})}}})}})}}dQe.parseExternalUrl=I_e;class pQe extends QCe{constructor(){super(...arguments),this.type="use"}setContext(e){super.setContext(e);var t=this.getAttribute("x"),n=this.getAttribute("y");t.hasValue()&&e.translate(t.getPixels("x"),0),n.hasValue()&&e.translate(0,n.getPixels("y"))}path(e){var{element:t}=this;t&&t.path(e)}renderChildren(e){var{document:t,element:n}=this;if(n){var r=n;if("symbol"===n.type&&((r=new LCe(t,null)).attributes.viewBox=new rCe(t,"viewBox",n.getAttribute("viewBox").getString()),r.attributes.preserveAspectRatio=new rCe(t,"preserveAspectRatio",n.getAttribute("preserveAspectRatio").getString()),r.attributes.overflow=new rCe(t,"overflow",n.getAttribute("overflow").getString()),r.children=n.children,n.styles.opacity=new rCe(t,"opacity",this.calculateOpacity())),"svg"===r.type){var i=this.getStyle("width",!1,!0),o=this.getStyle("height",!1,!0);i.hasValue()&&(r.attributes.width=new rCe(t,"width",i.getString())),o.hasValue()&&(r.attributes.height=new rCe(t,"height",o.getString()))}var a=r.parent;r.parent=this,r.render(e),r.parent=a}}getBoundingBox(e){var{element:t}=this;return t?t.getBoundingBox(e):null}elementTransform(){var{document:e,element:t}=this;return vCe.fromElement(e,t)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function fQe(e,t,n,r,i,o){return e[n*r*4+4*t+o]}function gQe(e,t,n,r,i,o,a){e[n*r*4+4*t+o]=a}function mQe(e,t,n){return e[t]*n}function OQe(e,t,n,r){return t+Math.cos(e)*n+Math.sin(e)*r}class AQe extends bCe{constructor(e,t,n){super(e,t,n),this.type="feColorMatrix";var r=E_e(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":var i=r[0];r=[.213+.787*i,.715-.715*i,.072-.072*i,0,0,.213-.213*i,.715+.285*i,.072-.072*i,0,0,.213-.213*i,.715-.715*i,.072+.928*i,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var o=r[0]*Math.PI/180;r=[OQe(o,.213,.787,-.213),OQe(o,.715,-.715,-.715),OQe(o,.072,-.072,.928),0,0,OQe(o,.213,-.213,.143),OQe(o,.715,.285,.14),OQe(o,.072,-.072,-.283),0,0,OQe(o,.213,-.213,-.787),OQe(o,.715,-.715,.715),OQe(o,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}this.matrix=r,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(e,t,n,r,i){for(var{includeOpacity:o,matrix:a}=this,s=e.getImageData(0,0,r,i),l=0;l<i;l++)for(var c=0;c<r;c++){var u=fQe(s.data,c,l,r,0,0),h=fQe(s.data,c,l,r,0,1),d=fQe(s.data,c,l,r,0,2),p=fQe(s.data,c,l,r,0,3),f=mQe(a,0,u)+mQe(a,1,h)+mQe(a,2,d)+mQe(a,3,p)+mQe(a,4,1),g=mQe(a,5,u)+mQe(a,6,h)+mQe(a,7,d)+mQe(a,8,p)+mQe(a,9,1),m=mQe(a,10,u)+mQe(a,11,h)+mQe(a,12,d)+mQe(a,13,p)+mQe(a,14,1),O=mQe(a,15,u)+mQe(a,16,h)+mQe(a,17,d)+mQe(a,18,p)+mQe(a,19,1);o&&(f=0,g=0,m=0,O*=p/255),gQe(s.data,c,l,r,0,0,f),gQe(s.data,c,l,r,0,1,g),gQe(s.data,c,l,r,0,2,m),gQe(s.data,c,l,r,0,3,O)}e.clearRect(0,0,r,i),e.putImageData(s,0,0)}}class yQe extends bCe{constructor(){super(...arguments),this.type="mask"}apply(e,t){var{document:n}=this,r=this.getAttribute("x").getPixels("x"),i=this.getAttribute("y").getPixels("y"),o=this.getStyle("width").getPixels("x"),a=this.getStyle("height").getPixels("y");if(!o&&!a){var s=new _Ce;this.children.forEach(t=>{s.addBoundingBox(t.getBoundingBox(e))}),r=Math.floor(s.x1),i=Math.floor(s.y1),o=Math.floor(s.width),a=Math.floor(s.height)}var l=this.removeStyles(t,yQe.ignoreStyles),c=n.createCanvas(r+o,i+a),u=c.getContext("2d");n.screen.setDefaults(u),this.renderChildren(u),new AQe(n,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(u,0,0,r+o,i+a);var h=n.createCanvas(r+o,i+a),d=h.getContext("2d");n.screen.setDefaults(d),t.render(d),d.globalCompositeOperation="destination-in",d.fillStyle=u.createPattern(c,"no-repeat"),d.fillRect(0,0,r+o,i+a),e.fillStyle=d.createPattern(h,"no-repeat"),e.fillRect(0,0,r+o,i+a),this.restoreStyles(t,l)}render(e){}}yQe.ignoreStyles=["mask","transform","clip-path"];var vQe=()=>{};class bQe extends bCe{constructor(){super(...arguments),this.type="clipPath"}apply(e){var{document:t}=this,n=Reflect.getPrototypeOf(e),{beginPath:r,closePath:i}=e;n&&(n.beginPath=vQe,n.closePath=vQe),Reflect.apply(r,e,[]),this.children.forEach(r=>{if(!(typeof r.path>"u")){var o=typeof r.elementTransform<"u"?r.elementTransform():null;o||(o=vCe.fromElement(t,r)),o&&o.apply(e),r.path(e),n&&(n.closePath=i),o&&o.unapply(e)}}),Reflect.apply(i,e,[]),e.clip(),n&&(n.beginPath=r,n.closePath=i)}render(e){}}class xQe extends bCe{constructor(){super(...arguments),this.type="filter"}apply(e,t){var{document:n,children:r}=this,i=t.getBoundingBox(e);if(i){var o=0,a=0;r.forEach(e=>{var t=e.extraFilterDistance||0;o=Math.max(o,t),a=Math.max(a,t)});var s=Math.floor(i.width),l=Math.floor(i.height),c=s+2*o,u=l+2*a;if(!(c<1||u<1)){var h=Math.floor(i.x),d=Math.floor(i.y),p=this.removeStyles(t,xQe.ignoreStyles),f=n.createCanvas(c,u),g=f.getContext("2d");n.screen.setDefaults(g),g.translate(-h+o,-d+a),t.render(g),r.forEach(e=>{"function"==typeof e.apply&&e.apply(g,0,0,c,u)}),e.drawImage(f,0,0,c,u,h-o,d-a,c,u),this.restoreStyles(t,p)}}}render(e){}}xQe.ignoreStyles=["filter","transform","clip-path"];class wQe extends bCe{constructor(e,t,n){super(e,t,n),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(e,t,n,r,i){}}class kQe extends bCe{constructor(){super(...arguments),this.type="feMorphology"}apply(e,t,n,r,i){}}class SQe extends bCe{constructor(){super(...arguments),this.type="feComposite"}apply(e,t,n,r,i){}}class TQe extends bCe{constructor(e,t,n){super(e,t,n),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,t,n,r,i){var{document:o,blurRadius:a}=this,s=o.window?o.window.document.body:null,l=e.canvas;l.id=o.getUniqueId(),s&&(l.style.display="none",s.appendChild(l)),T_e(l,t,n,r,i,a),s&&s.removeChild(l)}}class $Qe extends bCe{constructor(){super(...arguments),this.type="title"}}class _Qe extends bCe{constructor(){super(...arguments),this.type="desc"}}var CQe={svg:LCe,rect:DCe,circle:MCe,ellipse:NCe,line:XCe,polyline:FCe,polygon:UCe,path:PCe,pattern:zCe,marker:qCe,defs:VCe,linearGradient:YCe,radialGradient:ZCe,stop:GCe,animate:HCe,animateColor:KCe,animateTransform:JCe,font:eQe,"font-face":tQe,"missing-glyph":nQe,glyph:ECe,text:RCe,tspan:BCe,tref:rQe,a:iQe,textPath:sQe,image:cQe,g:WCe,symbol:uQe,style:dQe,use:pQe,mask:yQe,clipPath:bQe,filter:xQe,feDropShadow:wQe,feMorphology:kQe,feComposite:SQe,feColorMatrix:AQe,feGaussianBlur:TQe,title:$Qe,desc:_Qe};function QQe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function PQe(){return PQe=DSe(function*(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.createElement("img");return t&&(n.crossOrigin="Anonymous"),new Promise((t,r)=>{n.onload=()=>{t(n)},n.onerror=(e,t,n,i,o)=>{r(o)},n.src=e})}),PQe.apply(this,arguments)}class EQe{constructor(e){var{rootEmSize:t=12,emSize:n=12,createCanvas:r=EQe.createCanvas,createImage:i=EQe.createImage,anonymousCrossOrigin:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.canvg=e,this.definitions=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=t,this.emSize=n,this.createCanvas=r,this.createImage=this.bindCreateImage(i,o),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,t){return"boolean"==typeof t?(n,r)=>e(n,"boolean"==typeof r?r:t):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:t}=this;t.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(e=>e.loaded)}isFontsLoaded(){return this.fonts.every(e=>e.loaded)}createDocumentElement(e){var t=this.createElement(e.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}createElement(e){var t=e.nodeName.replace(/^[^:]+:/,""),n=EQe.elementTypes[t];return typeof n<"u"?new n(this,e):new xCe(this,e)}createTextNode(e){return new ICe(this,e)}setViewBox(e){this.screen.setViewBox(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QQe(Object(n),!0).forEach(function(t){g$e(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QQe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({document:this},e))}}function RQe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function BQe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RQe(Object(n),!0).forEach(function(t){g$e(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RQe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}EQe.createCanvas=function(e,t){var n=document.createElement("canvas");return n.width=e,n.height=t,n},EQe.createImage=function(e){return PQe.apply(this,arguments)},EQe.elementTypes=CQe;class IQe{constructor(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.parser=new dCe(n),this.screen=new cCe(e,n),this.options=n;var r=new EQe(this,n),i=r.createDocumentElement(t);this.document=r,this.documentElement=i}static from(e,t){var n=arguments;return DSe(function*(){var r=n.length>2&&void 0!==n[2]?n[2]:{},i=new dCe(r),o=yield i.parse(t);return new IQe(e,o,r)})()}static fromString(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new dCe(n).parseFromString(t);return new IQe(e,r,n)}fork(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return IQe.from(e,t,BQe(BQe({},this.options),n))}forkString(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return IQe.fromString(e,t,BQe(BQe({},this.options),n))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,t=this;return DSe(function*(){var n=e.length>0&&void 0!==e[0]?e[0]:{};t.start(BQe({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},n)),yield t.ready(),t.stop()})()}start(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{documentElement:t,screen:n,options:r}=this;n.start(t,BQe(BQe({enableRedraw:!0},r),e))}stop(){this.screen.stop()}resize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(e,t,n)}}const LQe=Object.freeze(Object.defineProperty({__proto__:null,AElement:iQe,AnimateColorElement:KCe,AnimateElement:HCe,AnimateTransformElement:JCe,BoundingBox:_Ce,CB1:G_e,CB2:H_e,CB3:K_e,CB4:J_e,Canvg:IQe,CircleElement:MCe,ClipPathElement:bQe,DefsElement:VCe,DescElement:_Qe,Document:EQe,Element:bCe,EllipseElement:NCe,FeColorMatrixElement:AQe,FeCompositeElement:SQe,FeDropShadowElement:wQe,FeGaussianBlurElement:TQe,FeMorphologyElement:kQe,FilterElement:xQe,Font:$Ce,FontElement:eQe,FontFaceElement:tQe,GElement:WCe,GlyphElement:ECe,GradientElement:jCe,ImageElement:cQe,LineElement:XCe,LinearGradientElement:YCe,MarkerElement:qCe,MaskElement:yQe,Matrix:mCe,MissingGlyphElement:nQe,Mouse:aCe,PSEUDO_ZERO:W_e,Parser:dCe,PathElement:PCe,PathParser:CCe,PatternElement:zCe,Point:oCe,PolygonElement:UCe,PolylineElement:FCe,Property:rCe,QB1:eCe,QB2:tCe,QB3:nCe,RadialGradientElement:ZCe,RectElement:DCe,RenderedElement:QCe,Rotate:fCe,SVGElement:LCe,SVGFontLoader:hQe,Scale:gCe,Screen:cCe,Skew:OCe,SkewX:ACe,SkewY:yCe,StopElement:GCe,StyleElement:dQe,SymbolElement:uQe,TRefElement:rQe,TSpanElement:BCe,TextElement:RCe,TextPathElement:sQe,TitleElement:$Qe,Transform:vCe,Translate:pCe,UnknownElement:xCe,UseElement:pQe,ViewPort:iCe,compressSpaces:C_e,default:IQe,getSelectorSpecificity:V_e,normalizeAttributeName:B_e,normalizeColor:L_e,parseExternalUrl:I_e,presets:__e,toNumbers:E_e,trimLeft:Q_e,trimRight:P_e,vectorMagnitude:j_e,vectorsAngle:Z_e,vectorsRatio:Y_e},Symbol.toStringTag,{value:"Module"}));var DQe,MQe,NQe,XQe,FQe,UQe,zQe,qQe,VQe,WQe,jQe,YQe,ZQe,GQe,HQe,KQe,JQe,ePe,tPe,nPe,rPe,iPe,oPe,aPe,sPe,lPe,cPe,uPe,hPe,dPe,pPe,fPe,gPe,mPe,OPe,APe,yPe,vPe,bPe,xPe,wPe,kPe,SPe,TPe,$Pe,_Pe,CPe,QPe,PPe,EPe,RPe,BPe,IPe,LPe,DPe,MPe,NPe,XPe,FPe,UPe,zPe,qPe,VPe,WPe,jPe,YPe,ZPe,GPe,HPe,KPe,JPe,eEe,tEe,nEe,rEe,iEe,oEe,aEe,sEe,lEe,cEe,uEe,hEe,dEe,pEe,fEe,gEe,mEe,OEe,AEe,yEe,vEe,bEe,xEe,wEe,kEe,SEe,TEe,$Ee,_Ee,CEe,QEe,PEe,EEe;function REe(){if(MQe)return DQe;MQe=1;var e=Array.isArray;return DQe=e}function BEe(){if(UQe)return FQe;UQe=1;var e=function(){if(XQe)return NQe;XQe=1;var e="object"==typeof nk&&nk&&nk.Object===Object&&nk;return NQe=e}(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return FQe=n}function IEe(){if(qQe)return zQe;qQe=1;var e=BEe().Symbol;return zQe=e}function LEe(){if(GQe)return ZQe;GQe=1;var e=IEe(),t=function(){if(WQe)return VQe;WQe=1;var e=IEe(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;return VQe=function(e){var t=n.call(e,i),o=e[i];try{e[i]=void 0;var a=!0}catch(jk){}var s=r.call(e);return a&&(t?e[i]=o:delete e[i]),s}}(),n=function(){if(YQe)return jQe;YQe=1;var e=Object.prototype.toString;return jQe=function(t){return e.call(t)}}(),r=e?e.toStringTag:void 0;return ZQe=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function DEe(){if(ePe)return JQe;ePe=1;var e=LEe(),t=KQe?HQe:(KQe=1,HQe=function(e){return null!=e&&"object"==typeof e});return JQe=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}}function MEe(){if(iPe)return rPe;return iPe=1,rPe=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}function NEe(){if(uPe)return cPe;uPe=1;var e=function(){if(lPe)return sPe;lPe=1;var e=BEe()["__core-js_shared__"];return sPe=e}(),t=function(){var t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();return cPe=function(e){return!!t&&t in e},cPe}function XEe(){if(fPe)return pPe;fPe=1;var e=function(){if(aPe)return oPe;aPe=1;var e=LEe(),t=MEe();return oPe=function(n){if(!t(n))return!1;var r=e(n);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}}(),t=NEe(),n=MEe(),r=function(){if(dPe)return hPe;dPe=1;var e=Function.prototype.toString;return hPe=function(t){if(null!=t){try{return e.call(t)}catch(jk){}try{return t+""}catch(jk){}}return""},hPe}(),i=/^\[object .+?Constructor\]$/,o=Function.prototype,a=Object.prototype,s=o.toString,l=a.hasOwnProperty,c=RegExp("^"+s.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return pPe=function(o){return!(!n(o)||t(o))&&(e(o)?c:i).test(r(o))}}function FEe(){if(APe)return OPe;APe=1;var e=XEe(),t=mPe?gPe:(mPe=1,gPe=function(e,t){return null==e?void 0:e[t]});return OPe=function(n,r){var i=t(n,r);return e(i)?i:void 0}}function UEe(){if(vPe)return yPe;vPe=1;var e=FEe()(Object,"create");return yPe=e}function zEe(){if(EPe)return PPe;EPe=1;var e=function(){if(xPe)return bPe;xPe=1;var e=UEe();return bPe=function(){this.__data__=e?e(null):{},this.size=0}}(),t=kPe?wPe:(kPe=1,wPe=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}),n=function(){if(TPe)return SPe;TPe=1;var e=UEe(),t=Object.prototype.hasOwnProperty;return SPe=function(n){var r=this.__data__;if(e){var i=r[n];return"__lodash_hash_undefined__"===i?void 0:i}return t.call(r,n)?r[n]:void 0}}(),r=function(){if(_Pe)return $Pe;_Pe=1;var e=UEe(),t=Object.prototype.hasOwnProperty;return $Pe=function(n){var r=this.__data__;return e?void 0!==r[n]:t.call(r,n)}}(),i=function(){if(QPe)return CPe;QPe=1;var e=UEe();return CPe=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=e&&void 0===n?"__lodash_hash_undefined__":n,this}}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,PPe=o}function qEe(){if(MPe)return DPe;MPe=1;var e=LPe?IPe:(LPe=1,IPe=function(e,t){return e===t||e!=e&&t!=t});return DPe=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1}}function VEe(){if(YPe)return jPe;YPe=1;var e=BPe?RPe:(BPe=1,RPe=function(){this.__data__=[],this.size=0}),t=function(){if(XPe)return NPe;XPe=1;var e=qEe(),t=Array.prototype.splice;return NPe=function(n){var r=this.__data__,i=e(r,n);return!(i<0||(i==r.length-1?r.pop():t.call(r,i,1),--this.size,0))}}(),n=function(){if(UPe)return FPe;UPe=1;var e=qEe();return FPe=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]}}(),r=function(){if(qPe)return zPe;qPe=1;var e=qEe();return zPe=function(t){return e(this.__data__,t)>-1}}(),i=function(){if(WPe)return VPe;WPe=1;var e=qEe();return VPe=function(t,n){var r=this.__data__,i=e(r,t);return i<0?(++this.size,r.push([t,n])):r[i][1]=n,this}}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,jPe=o}function WEe(){if(KPe)return HPe;KPe=1;var e=zEe(),t=VEe(),n=function(){if(GPe)return ZPe;GPe=1;var e=FEe()(BEe(),"Map");return ZPe=e}();return HPe=function(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}}function jEe(){if(nEe)return tEe;nEe=1;var e=eEe?JPe:(eEe=1,JPe=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e});return tEe=function(t,n){var r=t.__data__;return e(n)?r["string"==typeof n?"string":"hash"]:r.map}}function YEe(){if(dEe)return hEe;dEe=1;var e=WEe(),t=function(){if(iEe)return rEe;iEe=1;var e=jEe();return rEe=function(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}}(),n=function(){if(aEe)return oEe;aEe=1;var e=jEe();return oEe=function(t){return e(this,t).get(t)}}(),r=function(){if(lEe)return sEe;lEe=1;var e=jEe();return sEe=function(t){return e(this,t).has(t)}}(),i=function(){if(uEe)return cEe;uEe=1;var e=jEe();return cEe=function(t,n){var r=e(this,t),i=r.size;return r.set(t,n),this.size+=r.size==i?0:1,this}}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,hEe=o}function ZEe(){if(mEe)return gEe;mEe=1;var e=function(){if(fEe)return pEe;fEe=1;var e=YEe();function t(n,r){if("function"!=typeof n||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var i=function(){var e=arguments,t=r?r.apply(this,e):e[0],o=i.cache;if(o.has(t))return o.get(t);var a=n.apply(this,e);return i.cache=o.set(t,a)||o,a};return i.cache=new(t.Cache||e),i}return t.Cache=e,pEe=t}();return gEe=function(t){var n=e(t,function(e){return 500===r.size&&r.clear(),e}),r=n.cache;return n},gEe}function GEe(){if(xEe)return bEe;xEe=1;var e=IEe(),t=vEe?yEe:(vEe=1,yEe=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}),n=REe(),r=DEe(),i=e?e.prototype:void 0,o=i?i.toString:void 0;return bEe=function e(i){if("string"==typeof i)return i;if(n(i))return t(i,e)+"";if(r(i))return o?o.call(i):"";var a=i+"";return"0"==a&&1/i==-1/0?"-0":a},bEe}function HEe(){if(TEe)return SEe;TEe=1;var e=REe(),t=function(){if(nPe)return tPe;nPe=1;var e=REe(),t=DEe(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return tPe=function(i,o){if(e(i))return!1;var a=typeof i;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=i&&!t(i))||r.test(i)||!n.test(i)||null!=o&&i in Object(o)}}(),n=function(){if(AEe)return OEe;AEe=1;var e=ZEe(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(t,function(e,t,i,o){r.push(i?o.replace(n,"$1"):t||e)}),r});return OEe=r}(),r=function(){if(kEe)return wEe;kEe=1;var e=GEe();return wEe=function(t){return null==t?"":e(t)}}();return SEe=function(i,o){return e(i)?i:t(i,o)?[i]:n(r(i))}}function KEe(){if(QEe)return CEe;QEe=1;var e=HEe(),t=function(){if(_Ee)return $Ee;_Ee=1;var e=DEe();return $Ee=function(t){if("string"==typeof t||e(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}}();return CEe=function(n,r){for(var i=0,o=(r=e(r,n)).length;null!=n&&i<o;)n=n[t(r[i++])];return i&&i==o?n:void 0}}const JEe=rk(function(){if(EEe)return PEe;EEe=1;var e=KEe();return PEe=function(t,n,r){var i=null==t?void 0:e(t,n);return void 0===i?r:i}}());function eRe(e,t){if(null==e)return;let n=e;for(let r=0;r<t.length;r++){if(void 0===n||void 0===n[t[r]])return;if(null===n||null===n[t[r]])return null;n=n[t[r]]}return n}function tRe(e,t,n){if(0===n.length)return t;const r=n[0];return n.length>1&&(t=tRe("object"==typeof e&&null!==e&&Object.prototype.hasOwnProperty.call(e,r)?e[r]:Number.isInteger(Number(n[1]))?[]:{},t,Array.prototype.slice.call(n,1))),Number.isInteger(Number(r))&&Array.isArray(e)?e.slice()[r]:Object.assign({},e,{[r]:t})}function nRe(e,t){if(null==e||0===t.length)return e;if(1===t.length){if(null==e)return e;if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.slice.call(e,0).splice(t[0],1);const n={};for(const t in e)n[t]=e[t];return delete n[t[0]],n}if(null==e[t[0]]){if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.concat.call([],e);const n={};for(const t in e)n[t]=e[t];return n}return tRe(e,nRe(e[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function rRe(e,t){return t.map(e=>e.split(".")).map(t=>[t,eRe(e,t)]).filter(e=>void 0!==e[1]).reduce((e,t)=>tRe(e,t[1],t[0]),{})}function iRe(e,t){return t.map(e=>e.split(".")).reduce((e,t)=>nRe(e,t),e)}function oRe(e,{storage:t,serializer:n,key:r,debug:i,pick:o,omit:a,beforeHydrate:s,afterHydrate:l},c,u=!0){try{u&&(null==s||s(c));const i=t.getItem(r);if(i){const t=n.deserialize(i),r=o?rRe(t,o):t,s=a?iRe(r,a):r;e.$patch(s)}u&&(null==l||l(c))}catch(h){}}function aRe(e,{storage:t,serializer:n,key:r,debug:i,pick:o,omit:a}){try{const i=o?rRe(e,o):e,s=a?iRe(i,a):i,l=n.serialize(s);t.setItem(r,l)}catch(s){}}var sRe=function(e={}){return function(t){!function(e,t,n){const{pinia:r,store:i,options:{persist:o=n}}=e;if(!o)return;if(!(i.$id in r.state.value)){const e=r._s.get(i.$id.replace("__hot:",""));return void(e&&Promise.resolve().then(()=>e.$persist()))}const a=(Array.isArray(o)?o:!0===o?[{}]:[o]).map(t);i.$hydrate=({runHooks:t=!0}={})=>{a.forEach(n=>{oRe(i,n,e,t)})},i.$persist=()=>{a.forEach(e=>{aRe(i.$state,e)})},a.forEach(t=>{oRe(i,t,e),i.$subscribe((e,n)=>aRe(n,t),{detached:!0})})}(t,n=>{const r=(i=n.key,o=t.store.$id,"function"==typeof i?i(o):"string"==typeof i?i:o);var i,o;return{key:(e.key?e.key:e=>e)(r),debug:n.debug??e.debug??!1,serializer:n.serializer??e.serializer??{serialize:e=>JSON.stringify(e),deserialize:e=>JSON.parse(e)},storage:n.storage??e.storage??window.localStorage,beforeHydrate:n.beforeHydrate??e.beforeHydrate,afterHydrate:n.afterHydrate??e.afterHydrate,pick:n.pick,omit:n.omit}},e.auto??!1)}}();function lRe(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(e){e(n)}),(r=e.get("*"))&&r.slice().map(function(e){e(t,n)})}}}var cRe,uRe=Object.defineProperty,hRe=(e,t)=>uRe(e,"name",{value:t,configurable:!0}),dRe=(e,t)=>{for(var n in t)uRe(e,n,{get:t[n],enumerable:!0})},pRe={exports:{}};var fRe=(cRe||(cRe=1,pRe.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",l="week",c="month",u="quarter",h="year",d="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},O=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},A={s:O,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+O(r,2,"0")+":"+O(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,c),o=n-i<0,a=t.clone().add(r+(o?-1:1),c);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:h,w:l,d:s,D:d,h:a,m:o,s:i,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",v={};v[y]=m;var b="$isDayjsObject",x=function(e){return e instanceof T||!(!e||!e[b])},w=function e(t,n,r){var i;if(!t)return y;if("string"==typeof t){var o=t.toLowerCase();v[o]&&(i=o),n&&(v[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;v[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},k=function(e,t){if(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new T(n)},S=A;S.l=w,S.i=x,S.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function m(e){this.$L=w(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[b]=!0}var O=m.prototype;return O.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},O.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},O.$utils=function(){return S},O.isValid=function(){return!(this.$d.toString()===p)},O.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},O.isAfter=function(e,t){return k(e)<this.startOf(t)},O.isBefore=function(e,t){return this.endOf(t)<k(e)},O.$g=function(e,t,n){return S.u(e)?this[t]:this.set(n,e)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(e,t){var n=this,r=!!S.u(t)||t,u=S.p(e),p=function(e,t){var i=S.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},f=function(e,t){return S.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,m=this.$M,O=this.$D,A="set"+(this.$u?"UTC":"");switch(u){case h:return r?p(1,0):p(31,11);case c:return r?p(1,m):p(0,m+1);case l:var y=this.$locale().weekStart||0,v=(g<y?g+7:g)-y;return p(r?O-v:O+(6-v),m);case s:case d:return f(A+"Hours",0);case a:return f(A+"Minutes",1);case o:return f(A+"Seconds",2);case i:return f(A+"Milliseconds",3);default:return this.clone()}},O.endOf=function(e){return this.startOf(e,!1)},O.$set=function(e,t){var n,l=S.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[s]=u+"Date",n[d]=u+"Date",n[c]=u+"Month",n[h]=u+"FullYear",n[a]=u+"Hours",n[o]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[l],f=l===s?this.$D+(t-this.$W):t;if(l===c||l===h){var g=this.clone().set(d,1);g.$d[p](f),g.init(),this.$d=g.set(d,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},O.set=function(e,t){return this.clone().$set(e,t)},O.get=function(e){return this[S.p(e)]()},O.add=function(r,u){var d,p=this;r=Number(r);var f=S.p(u),g=function(e){var t=k(p);return S.w(t.date(t.date()+Math.round(e*r)),p)};if(f===c)return this.set(c,this.$M+r);if(f===h)return this.set(h,this.$y+r);if(f===s)return g(1);if(f===l)return g(7);var m=(d={},d[o]=t,d[a]=n,d[i]=e,d)[f]||1,O=this.$d.getTime()+r*m;return S.w(O,this)},O.subtract=function(e,t){return this.add(-1*e,t)},O.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=S.z(this),o=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,h=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},d=function(e){return S.s(o%12||12,e,"0")},f=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(g,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return S.s(t.$y,4,"0");case"M":return s+1;case"MM":return S.s(s+1,2,"0");case"MMM":return h(n.monthsShort,s,c,3);case"MMMM":return h(c,s);case"D":return t.$D;case"DD":return S.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return h(n.weekdaysMin,t.$W,l,2);case"ddd":return h(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return S.s(o,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return f(o,a,!0);case"A":return f(o,a,!1);case"m":return String(a);case"mm":return S.s(a,2,"0");case"s":return String(t.$s);case"ss":return S.s(t.$s,2,"0");case"SSS":return S.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(r,d,p){var f,g=this,m=S.p(d),O=k(r),A=(O.utcOffset()-this.utcOffset())*t,y=this-O,v=function(){return S.m(g,O)};switch(m){case h:f=v()/12;break;case c:f=v();break;case u:f=v()/3;break;case l:f=(y-A)/6048e5;break;case s:f=(y-A)/864e5;break;case a:f=y/n;break;case o:f=y/t;break;case i:f=y/e;break;default:f=y}return p?f:S.a(f)},O.daysInMonth=function(){return this.endOf(c).$D},O.$locale=function(){return v[this.$L]},O.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=w(e,t,!0);return r&&(n.$L=r),n},O.clone=function(){return S.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},m}(),$=T.prototype;return k.prototype=$,[["$ms",r],["$s",i],["$m",o],["$H",a],["$W",s],["$M",c],["$y",h],["$D",d]].forEach(function(e){$[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),k.extend=function(e,t){return e.$i||(e(t,T,k),e.$i=!0),k},k.locale=w,k.isDayjs=x,k.unix=function(e){return k(1e3*e)},k.en=v[y],k.Ls=v,k.p={},k}()),pRe.exports);const gRe=rk(fRe);var mRe={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},ORe={trace:hRe((...e)=>{},"trace"),debug:hRe((...e)=>{},"debug"),info:hRe((...e)=>{},"info"),warn:hRe((...e)=>{},"warn"),error:hRe((...e)=>{},"error"),fatal:hRe((...e)=>{},"fatal")},ARe=hRe(function(e="fatal"){let t=mRe.fatal;"string"==typeof e?e.toLowerCase()in mRe&&(t=mRe[e]):"number"==typeof e&&(t=e),ORe.trace=()=>{},ORe.debug=()=>{},ORe.info=()=>{},ORe.warn=()=>{},ORe.error=()=>{},ORe.fatal=()=>{},t<=mRe.fatal&&(ORe.fatal=console.error?(()=>{}).bind(console,yRe("FATAL"),"color: orange"):(()=>{}).bind(console,"[35m",yRe("FATAL"))),t<=mRe.error&&(ORe.error=console.error?(()=>{}).bind(console,yRe("ERROR"),"color: orange"):(()=>{}).bind(console,"[31m",yRe("ERROR"))),t<=mRe.warn&&(ORe.warn=console.warn?(()=>{}).bind(console,yRe("WARN"),"color: orange"):(()=>{}).bind(console,"[33m",yRe("WARN"))),t<=mRe.info&&(ORe.info=console.info?(()=>{}).bind(console,yRe("INFO"),"color: lightblue"):(()=>{}).bind(console,"[34m",yRe("INFO"))),t<=mRe.debug&&(ORe.debug=console.debug?(()=>{}).bind(console,yRe("DEBUG"),"color: lightgreen"):(()=>{}).bind(console,"[32m",yRe("DEBUG"))),t<=mRe.trace&&(ORe.trace=console.debug?(()=>{}).bind(console,yRe("TRACE"),"color: lightgreen"):(()=>{}).bind(console,"[32m",yRe("TRACE")))},"setLogLevel"),yRe=hRe(e=>`%c${gRe().format("ss.SSS")} : ${e} : `,"format");const vRe={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e),hsl2rgb:({h:e,s:t,l:n},r)=>{if(!t)return 2.55*n;e/=360,t/=100;const i=(n/=100)<.5?n*(1+t):n+t-n*t,o=2*n-i;switch(r){case"r":return 255*vRe.hue2rgb(o,i,e+1/3);case"g":return 255*vRe.hue2rgb(o,i,e);case"b":return 255*vRe.hue2rgb(o,i,e-1/3)}},rgb2hsl:({r:e,g:t,b:n},r)=>{e/=255,t/=255,n/=255;const i=Math.max(e,t,n),o=Math.min(e,t,n),a=(i+o)/2;if("l"===r)return 100*a;if(i===o)return 0;const s=i-o;if("s"===r)return 100*(a>.5?s/(2-i-o):s/(i+o));switch(i){case e:return 60*((t-n)/s+(t<n?6:0));case t:return 60*((n-e)/s+2);case n:return 60*((e-t)/s+4);default:return-1}}},bRe={channel:vRe,lang:{clamp:(e,t,n)=>t>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(1e10*e)/1e10},unit:{dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}}},xRe={};for(let c=0;c<=255;c++)xRe[c]=bRe.unit.dec2hex(c);const wRe=0,kRe=1,SRe=2;let TRe=class{constructor(){this.type=wRe}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=wRe}is(e){return this.type===e}};const $Re=new class{constructor(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new TRe}set(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=wRe,this}_ensureHSL(){const e=this.data,{h:t,s:n,l:r}=e;void 0===t&&(e.h=bRe.channel.rgb2hsl(e,"h")),void 0===n&&(e.s=bRe.channel.rgb2hsl(e,"s")),void 0===r&&(e.l=bRe.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:t,g:n,b:r}=e;void 0===t&&(e.r=bRe.channel.hsl2rgb(e,"r")),void 0===n&&(e.g=bRe.channel.hsl2rgb(e,"g")),void 0===r&&(e.b=bRe.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,t=e.r;return this.type.is(SRe)||void 0===t?(this._ensureHSL(),bRe.channel.hsl2rgb(e,"r")):t}get g(){const e=this.data,t=e.g;return this.type.is(SRe)||void 0===t?(this._ensureHSL(),bRe.channel.hsl2rgb(e,"g")):t}get b(){const e=this.data,t=e.b;return this.type.is(SRe)||void 0===t?(this._ensureHSL(),bRe.channel.hsl2rgb(e,"b")):t}get h(){const e=this.data,t=e.h;return this.type.is(kRe)||void 0===t?(this._ensureRGB(),bRe.channel.rgb2hsl(e,"h")):t}get s(){const e=this.data,t=e.s;return this.type.is(kRe)||void 0===t?(this._ensureRGB(),bRe.channel.rgb2hsl(e,"s")):t}get l(){const e=this.data,t=e.l;return this.type.is(kRe)||void 0===t?(this._ensureRGB(),bRe.channel.rgb2hsl(e,"l")):t}get a(){return this.data.a}set r(e){this.type.set(kRe),this.changed=!0,this.data.r=e}set g(e){this.type.set(kRe),this.changed=!0,this.data.g=e}set b(e){this.type.set(kRe),this.changed=!0,this.data.b=e}set h(e){this.type.set(SRe),this.changed=!0,this.data.h=e}set s(e){this.type.set(SRe),this.changed=!0,this.data.s=e}set l(e){this.type.set(SRe),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}({r:0,g:0,b:0,a:0},"transparent"),_Re={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(35!==e.charCodeAt(0))return;const t=e.match(_Re.re);if(!t)return;const n=t[1],r=parseInt(n,16),i=n.length,o=i%4==0,a=i>4,s=a?1:17,l=a?8:4,c=o?0:-1,u=a?255:15;return $Re.set({r:(r>>l*(c+3)&u)*s,g:(r>>l*(c+2)&u)*s,b:(r>>l*(c+1)&u)*s,a:o?(r&u)*s/255:1},e)},stringify:e=>{const{r:t,g:n,b:r,a:i}=e;return i<1?`#${xRe[Math.round(t)]}${xRe[Math.round(n)]}${xRe[Math.round(r)]}${xRe[Math.round(255*i)]}`:`#${xRe[Math.round(t)]}${xRe[Math.round(n)]}${xRe[Math.round(r)]}`}},CRe={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(CRe.hueRe);if(t){const[,e,n]=t;switch(n){case"grad":return bRe.channel.clamp.h(.9*parseFloat(e));case"rad":return bRe.channel.clamp.h(180*parseFloat(e)/Math.PI);case"turn":return bRe.channel.clamp.h(360*parseFloat(e))}}return bRe.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(104!==t&&72!==t)return;const n=e.match(CRe.re);if(!n)return;const[,r,i,o,a,s]=n;return $Re.set({h:CRe._hue2deg(r),s:bRe.channel.clamp.s(parseFloat(i)),l:bRe.channel.clamp.l(parseFloat(o)),a:a?bRe.channel.clamp.a(s?parseFloat(a)/100:parseFloat(a)):1},e)},stringify:e=>{const{h:t,s:n,l:r,a:i}=e;return i<1?`hsla(${bRe.lang.round(t)}, ${bRe.lang.round(n)}%, ${bRe.lang.round(r)}%, ${i})`:`hsl(${bRe.lang.round(t)}, ${bRe.lang.round(n)}%, ${bRe.lang.round(r)}%)`}},QRe={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=QRe.colors[e];if(t)return _Re.parse(t)},stringify:e=>{const t=_Re.stringify(e);for(const n in QRe.colors)if(QRe.colors[n]===t)return n}},PRe={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(114!==t&&82!==t)return;const n=e.match(PRe.re);if(!n)return;const[,r,i,o,a,s,l,c,u]=n;return $Re.set({r:bRe.channel.clamp.r(i?2.55*parseFloat(r):parseFloat(r)),g:bRe.channel.clamp.g(a?2.55*parseFloat(o):parseFloat(o)),b:bRe.channel.clamp.b(l?2.55*parseFloat(s):parseFloat(s)),a:c?bRe.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{const{r:t,g:n,b:r,a:i}=e;return i<1?`rgba(${bRe.lang.round(t)}, ${bRe.lang.round(n)}, ${bRe.lang.round(r)}, ${bRe.lang.round(i)})`:`rgb(${bRe.lang.round(t)}, ${bRe.lang.round(n)}, ${bRe.lang.round(r)})`}},ERe=e=>{if("string"!=typeof e)return e;const t=_Re.parse(e)||PRe.parse(e)||CRe.parse(e)||QRe.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},RRe=e=>!e.changed&&e.color?e.color:e.type.is(SRe)||void 0===e.data.r?CRe.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?PRe.stringify(e):_Re.stringify(e),BRe=(e,t)=>{const n=ERe(e);for(const r in t)n[r]=bRe.channel.clamp[r](t[r]);return RRe(n)},IRe=(e,t,n=0,r=1)=>{if("number"!=typeof e)return BRe(e,{a:t});const i=$Re.set({r:bRe.channel.clamp.r(e),g:bRe.channel.clamp.g(t),b:bRe.channel.clamp.b(n),a:bRe.channel.clamp.a(r)});return RRe(i)},LRe=(e,t)=>bRe.lang.round(ERe(e)[t]),DRe=e=>(e=>{const{r:t,g:n,b:r}=ERe(e),i=.2126*bRe.channel.toLinear(t)+.7152*bRe.channel.toLinear(n)+.0722*bRe.channel.toLinear(r);return bRe.lang.round(i)})(e)>=.5,MRe=e=>!DRe(e),NRe=(e,t,n)=>{const r=ERe(e),i=r[t],o=bRe.channel.clamp[t](i+n);return i!==o&&(r[t]=o),RRe(r)},XRe=(e,t)=>NRe(e,"l",t),FRe=(e,t)=>NRe(e,"l",-t),URe=(e,t)=>NRe(e,"a",-t),zRe=(e,t)=>{const n=ERe(e),r={};for(const i in t)t[i]&&(r[i]=n[i]+t[i]);return BRe(e,r)},qRe=(e,t=100)=>{const n=ERe(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,((e,t,n=50)=>{const{r:r,g:i,b:o,a:a}=ERe(e),{r:s,g:l,b:c,a:u}=ERe(t),h=n/100,d=2*h-1,p=a-u,f=((d*p===-1?d:(d+p)/(1+d*p))+1)/2,g=1-f;return IRe(r*f+s*g,i*f+l*g,o*f+c*g,a*h+u*(1-h))})(n,e,t)};var VRe,WRe=hRe((e,t,{depth:n=2}={})=>{const r={depth:n};if(Array.isArray(t)&&!Array.isArray(e))return t.forEach(t=>WRe(e,t,r)),e;if(Array.isArray(t)&&Array.isArray(e))return t.forEach(t=>{e.includes(t)||e.push(t)}),e;if(null==e||n<=0)return null!=e&&"object"==typeof e&&"object"==typeof t?Object.assign(e,t):t;if(null!=t&&"object"==typeof e&&"object"==typeof t){const r=e;Object.entries(t).forEach(([t,i])=>{if("object"==typeof i){if(null===i)return;Object.hasOwn(e,t)||Object.defineProperty(e,t,{value:void 0,writable:!0,enumerable:!0,configurable:!0}),void 0===r[t]&&(r[t]=Array.isArray(i)?[]:{}),"object"==typeof r[t]&&(r[t]=WRe(r[t],i,{depth:n-1}))}else"object"!=typeof r[t]&&(Object.hasOwn(e,t)?r[t]=i:Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!0,configurable:!0}))})}return e},"assignWithDepth"),jRe=WRe,YRe="#ffffff",ZRe="#f2f2f2",GRe=hRe((e,t)=>zRe(e,t?{s:-40,l:10}:{s:-40,l:-10}),"mkBorder"),HRe=(n=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var e,t,n,r,i,o,a,s,l,c,u,h,d,p,f,g,m,O,A,y,v,b,x,w,k,S,T,$,_,C,Q,P,E,R,B,I,L,D,M,N,X,F,U,z,q,V,W,j,Y,Z;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||zRe(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||zRe(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||GRe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||GRe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||GRe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||GRe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||qRe(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||qRe(this.tertiaryColor),this.lineColor=this.lineColor||qRe(this.background),this.arrowheadColor=this.arrowheadColor||qRe(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?FRe(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||FRe(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||qRe(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||XRe(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||FRe(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||FRe(this.mainBkg,10)):(this.rowOdd=this.rowOdd||XRe(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||XRe(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||zRe(this.primaryColor,{h:30}),this.cScale4=this.cScale4||zRe(this.primaryColor,{h:60}),this.cScale5=this.cScale5||zRe(this.primaryColor,{h:90}),this.cScale6=this.cScale6||zRe(this.primaryColor,{h:120}),this.cScale7=this.cScale7||zRe(this.primaryColor,{h:150}),this.cScale8=this.cScale8||zRe(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||zRe(this.primaryColor,{h:270}),this.cScale10=this.cScale10||zRe(this.primaryColor,{h:300}),this.cScale11=this.cScale11||zRe(this.primaryColor,{h:330}),this.darkMode)for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this["cScale"+H]=FRe(this["cScale"+H],75);else for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this["cScale"+H]=FRe(this["cScale"+H],25);for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this["cScaleInv"+H]=this["cScaleInv"+H]||qRe(this["cScale"+H]);for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this.darkMode?this["cScalePeer"+H]=this["cScalePeer"+H]||XRe(this["cScale"+H],10):this["cScalePeer"+H]=this["cScalePeer"+H]||FRe(this["cScale"+H],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this["cScaleLabel"+H]=this["cScaleLabel"+H]||this.scaleLabelColor;const G=this.darkMode?-4:-1;for(let H=0;H<5;H++)this["surface"+H]=this["surface"+H]||zRe(this.mainBkg,{h:180,s:-15,l:G*(5+3*H)}),this["surfacePeer"+H]=this["surfacePeer"+H]||zRe(this.mainBkg,{h:180,s:-15,l:G*(8+3*H)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||zRe(this.primaryColor,{h:64}),this.fillType3=this.fillType3||zRe(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||zRe(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||zRe(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||zRe(this.primaryColor,{h:128}),this.fillType7=this.fillType7||zRe(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||zRe(this.primaryColor,{l:-10}),this.pie5=this.pie5||zRe(this.secondaryColor,{l:-10}),this.pie6=this.pie6||zRe(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||zRe(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||zRe(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||zRe(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||zRe(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||zRe(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||zRe(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??zRe(this.primaryColor,{l:-30}),this.venn2=this.venn2??zRe(this.secondaryColor,{l:-30}),this.venn3=this.venn3??zRe(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??zRe(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??zRe(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??zRe(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??zRe(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??zRe(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:(null==(e=this.cynefin)?void 0:e.domainFontSize)||16,itemFontSize:(null==(t=this.cynefin)?void 0:t.itemFontSize)||12,boundaryColor:(null==(n=this.cynefin)?void 0:n.boundaryColor)||this.lineColor,boundaryWidth:(null==(r=this.cynefin)?void 0:r.boundaryWidth)||2,cliffColor:(null==(i=this.cynefin)?void 0:i.cliffColor)||"#8B0000",cliffWidth:(null==(o=this.cynefin)?void 0:o.cliffWidth)||4,arrowColor:(null==(a=this.cynefin)?void 0:a.arrowColor)||this.lineColor,arrowWidth:(null==(s=this.cynefin)?void 0:s.arrowWidth)||2,complexBg:(null==(l=this.cynefin)?void 0:l.complexBg)||"#E8F5E9",complicatedBg:(null==(c=this.cynefin)?void 0:c.complicatedBg)||"#E3F2FD",chaoticBg:(null==(u=this.cynefin)?void 0:u.chaoticBg)||"#FBE9E7",clearBg:(null==(h=this.cynefin)?void 0:h.clearBg)||"#FFF8E1",confusionBg:(null==(d=this.cynefin)?void 0:d.confusionBg)||"#F3E5F5",textColor:(null==(p=this.cynefin)?void 0:p.textColor)||this.textColor,labelColor:(null==(f=this.cynefin)?void 0:f.labelColor)||this.primaryTextColor},this.radar={axisColor:(null==(g=this.radar)?void 0:g.axisColor)||this.lineColor,axisStrokeWidth:(null==(m=this.radar)?void 0:m.axisStrokeWidth)||2,axisLabelFontSize:(null==(O=this.radar)?void 0:O.axisLabelFontSize)||12,curveOpacity:(null==(A=this.radar)?void 0:A.curveOpacity)||.5,curveStrokeWidth:(null==(y=this.radar)?void 0:y.curveStrokeWidth)||2,graticuleColor:(null==(v=this.radar)?void 0:v.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:(null==(b=this.radar)?void 0:b.graticuleStrokeWidth)||1,graticuleOpacity:(null==(x=this.radar)?void 0:x.graticuleOpacity)||.3,legendBoxSize:(null==(w=this.radar)?void 0:w.legendBoxSize)||12,legendFontSize:(null==(k=this.radar)?void 0:k.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:(null==(S=this.wardley)?void 0:S.backgroundColor)||this.background,axisColor:(null==(T=this.wardley)?void 0:T.axisColor)||this.lineColor,axisTextColor:(null==($=this.wardley)?void 0:$.axisTextColor)||this.primaryTextColor,gridColor:(null==(_=this.wardley)?void 0:_.gridColor)||this.gridColor,componentFill:(null==(C=this.wardley)?void 0:C.componentFill)||this.background,componentStroke:(null==(Q=this.wardley)?void 0:Q.componentStroke)||this.lineColor,componentLabelColor:(null==(P=this.wardley)?void 0:P.componentLabelColor)||this.primaryTextColor,linkStroke:(null==(E=this.wardley)?void 0:E.linkStroke)||this.lineColor,evolutionStroke:(null==(R=this.wardley)?void 0:R.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:(null==(B=this.wardley)?void 0:B.annotationStroke)||this.lineColor,annotationTextColor:(null==(I=this.wardley)?void 0:I.annotationTextColor)||this.primaryTextColor,annotationFill:(null==(L=this.wardley)?void 0:L.annotationFill)||this.background},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||zRe(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||zRe(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||zRe(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||zRe(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||zRe(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||zRe(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||MRe(this.quadrant1Fill)?XRe(this.quadrant1Fill):FRe(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null==(D=this.xyChart)?void 0:D.backgroundColor)||this.background,titleColor:(null==(M=this.xyChart)?void 0:M.titleColor)||this.primaryTextColor,dataLabelColor:(null==(N=this.xyChart)?void 0:N.dataLabelColor)||this.primaryTextColor,legendTextColor:(null==(X=this.xyChart)?void 0:X.legendTextColor)||this.primaryTextColor,xAxisTitleColor:(null==(F=this.xyChart)?void 0:F.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(U=this.xyChart)?void 0:U.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(z=this.xyChart)?void 0:z.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(q=this.xyChart)?void 0:q.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(V=this.xyChart)?void 0:V.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(W=this.xyChart)?void 0:W.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(j=this.xyChart)?void 0:j.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(Y=this.xyChart)?void 0:Y.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==(Z=this.xyChart)?void 0:Z.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?FRe(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||zRe(this.primaryColor,{h:-30}),this.git4=this.git4||zRe(this.primaryColor,{h:-60}),this.git5=this.git5||zRe(this.primaryColor,{h:-90}),this.git6=this.git6||zRe(this.primaryColor,{h:60}),this.git7=this.git7||zRe(this.primaryColor,{h:120}),this.darkMode?(this.git0=XRe(this.git0,25),this.git1=XRe(this.git1,25),this.git2=XRe(this.git2,25),this.git3=XRe(this.git3,25),this.git4=XRe(this.git4,25),this.git5=XRe(this.git5,25),this.git6=XRe(this.git6,25),this.git7=XRe(this.git7,25)):(this.git0=FRe(this.git0,25),this.git1=FRe(this.git1,25),this.git2=FRe(this.git2,25),this.git3=FRe(this.git3,25),this.git4=FRe(this.git4,25),this.git5=FRe(this.git5,25),this.git6=FRe(this.git6,25),this.git7=FRe(this.git7,25)),this.gitInv0=this.gitInv0||qRe(this.git0),this.gitInv1=this.gitInv1||qRe(this.git1),this.gitInv2=this.gitInv2||qRe(this.git2),this.gitInv3=this.gitInv3||qRe(this.git3),this.gitInv4=this.gitInv4||qRe(this.git4),this.gitInv5=this.gitInv5||qRe(this.git5),this.gitInv6=this.gitInv6||qRe(this.git6),this.gitInv7=this.gitInv7||qRe(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||YRe,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ZRe,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}calculate(e){if("object"!=typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach(t=>{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},hRe(n,"Theme"),n),KRe=hRe(e=>{const t=new HRe;return t.calculate(e),t},"getThemeVariables"),JRe=(r=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=XRe(this.primaryColor,16),this.tertiaryColor=zRe(this.primaryColor,{h:-160}),this.primaryBorderColor=qRe(this.background),this.secondaryBorderColor=GRe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=GRe(this.tertiaryColor,this.darkMode),this.primaryTextColor=qRe(this.primaryColor),this.secondaryTextColor=qRe(this.secondaryColor),this.tertiaryTextColor=qRe(this.tertiaryColor),this.lineColor=qRe(this.background),this.textColor=qRe(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=XRe(qRe("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=IRe(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.clusterBkg="#302F3D",this.sectionBkgColor=FRe("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=FRe(this.sectionBkgColor,10),this.taskBorderColor=IRe(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=IRe(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||XRe(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||FRe(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){var e,t,n,r,i,o,a,s,l,c,u,h,d,p,f,g,m,O,A,y,v,b,x,w,k,S,T,$,_,C,Q,P,E,R,B,I,L,D,M,N,X,F,U,z,q,V,W,j,Y,Z;this.secondBkg=XRe(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=XRe(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.background,this.taskBkgColor=XRe(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=qRe(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=zRe(this.primaryColor,{h:64}),this.fillType3=zRe(this.secondaryColor,{h:64}),this.fillType4=zRe(this.primaryColor,{h:-64}),this.fillType5=zRe(this.secondaryColor,{h:-64}),this.fillType6=zRe(this.primaryColor,{h:128}),this.fillType7=zRe(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||zRe(this.primaryColor,{h:30}),this.cScale4=this.cScale4||zRe(this.primaryColor,{h:60}),this.cScale5=this.cScale5||zRe(this.primaryColor,{h:90}),this.cScale6=this.cScale6||zRe(this.primaryColor,{h:120}),this.cScale7=this.cScale7||zRe(this.primaryColor,{h:150}),this.cScale8=this.cScale8||zRe(this.primaryColor,{h:210}),this.cScale9=this.cScale9||zRe(this.primaryColor,{h:270}),this.cScale10=this.cScale10||zRe(this.primaryColor,{h:300}),this.cScale11=this.cScale11||zRe(this.primaryColor,{h:330});for(let G=0;G<this.THEME_COLOR_LIMIT;G++)this["cScaleInv"+G]=this["cScaleInv"+G]||qRe(this["cScale"+G]);for(let G=0;G<this.THEME_COLOR_LIMIT;G++)this["cScalePeer"+G]=this["cScalePeer"+G]||XRe(this["cScale"+G],10);for(let G=0;G<5;G++)this["surface"+G]=this["surface"+G]||zRe(this.mainBkg,{h:30,s:-30,l:-(4*G-10)}),this["surfacePeer"+G]=this["surfacePeer"+G]||zRe(this.mainBkg,{h:30,s:-30,l:-(4*G-7)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let G=0;G<this.THEME_COLOR_LIMIT;G++)this["cScaleLabel"+G]=this["cScaleLabel"+G]||this.scaleLabelColor;for(let G=0;G<this.THEME_COLOR_LIMIT;G++)this["pie"+G]=this["cScale"+G];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let G=0;G<8;G++)this["venn"+(G+1)]=this["venn"+(G+1)]??XRe(this["cScale"+G],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:(null==(e=this.cynefin)?void 0:e.domainFontSize)||16,itemFontSize:(null==(t=this.cynefin)?void 0:t.itemFontSize)||12,boundaryColor:(null==(n=this.cynefin)?void 0:n.boundaryColor)||this.lineColor,boundaryWidth:(null==(r=this.cynefin)?void 0:r.boundaryWidth)||2,cliffColor:(null==(i=this.cynefin)?void 0:i.cliffColor)||"#FF6B6B",cliffWidth:(null==(o=this.cynefin)?void 0:o.cliffWidth)||4,arrowColor:(null==(a=this.cynefin)?void 0:a.arrowColor)||this.lineColor,arrowWidth:(null==(s=this.cynefin)?void 0:s.arrowWidth)||2,complexBg:(null==(l=this.cynefin)?void 0:l.complexBg)||"#1B5E20",complicatedBg:(null==(c=this.cynefin)?void 0:c.complicatedBg)||"#0D47A1",chaoticBg:(null==(u=this.cynefin)?void 0:u.chaoticBg)||"#BF360C",clearBg:(null==(h=this.cynefin)?void 0:h.clearBg)||"#F57F17",confusionBg:(null==(d=this.cynefin)?void 0:d.confusionBg)||"#4A148C",textColor:(null==(p=this.cynefin)?void 0:p.textColor)||this.textColor,labelColor:(null==(f=this.cynefin)?void 0:f.labelColor)||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||zRe(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||zRe(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||zRe(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||zRe(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||zRe(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||zRe(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||MRe(this.quadrant1Fill)?XRe(this.quadrant1Fill):FRe(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null==(g=this.xyChart)?void 0:g.backgroundColor)||this.background,titleColor:(null==(m=this.xyChart)?void 0:m.titleColor)||this.primaryTextColor,dataLabelColor:(null==(O=this.xyChart)?void 0:O.dataLabelColor)||this.primaryTextColor,legendTextColor:(null==(A=this.xyChart)?void 0:A.legendTextColor)||this.primaryTextColor,xAxisTitleColor:(null==(y=this.xyChart)?void 0:y.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(v=this.xyChart)?void 0:v.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(b=this.xyChart)?void 0:b.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(x=this.xyChart)?void 0:x.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(w=this.xyChart)?void 0:w.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(k=this.xyChart)?void 0:k.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(S=this.xyChart)?void 0:S.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(T=this.xyChart)?void 0:T.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==($=this.xyChart)?void 0:$.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:(null==(_=this.radar)?void 0:_.axisColor)||this.lineColor,axisStrokeWidth:(null==(C=this.radar)?void 0:C.axisStrokeWidth)||2,axisLabelFontSize:(null==(Q=this.radar)?void 0:Q.axisLabelFontSize)||12,curveOpacity:(null==(P=this.radar)?void 0:P.curveOpacity)||.5,curveStrokeWidth:(null==(E=this.radar)?void 0:E.curveStrokeWidth)||2,graticuleColor:(null==(R=this.radar)?void 0:R.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:(null==(B=this.radar)?void 0:B.graticuleStrokeWidth)||1,graticuleOpacity:(null==(I=this.radar)?void 0:I.graticuleOpacity)||.3,legendBoxSize:(null==(L=this.radar)?void 0:L.legendBoxSize)||12,legendFontSize:(null==(D=this.radar)?void 0:D.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#ff6b6b",this.wardley={backgroundColor:(null==(M=this.wardley)?void 0:M.backgroundColor)||this.background,axisColor:(null==(N=this.wardley)?void 0:N.axisColor)||this.lineColor,axisTextColor:(null==(X=this.wardley)?void 0:X.axisTextColor)||this.primaryTextColor,gridColor:(null==(F=this.wardley)?void 0:F.gridColor)||this.gridColor,componentFill:(null==(U=this.wardley)?void 0:U.componentFill)||this.mainBkg,componentStroke:(null==(z=this.wardley)?void 0:z.componentStroke)||this.lineColor,componentLabelColor:(null==(q=this.wardley)?void 0:q.componentLabelColor)||this.primaryTextColor,linkStroke:(null==(V=this.wardley)?void 0:V.linkStroke)||this.lineColor,evolutionStroke:(null==(W=this.wardley)?void 0:W.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:(null==(j=this.wardley)?void 0:j.annotationStroke)||this.lineColor,annotationTextColor:(null==(Y=this.wardley)?void 0:Y.annotationTextColor)||this.primaryTextColor,annotationFill:(null==(Z=this.wardley)?void 0:Z.annotationFill)||this.mainBkg},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?FRe(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=XRe(this.secondaryColor,20),this.git1=XRe(this.pie2||this.secondaryColor,20),this.git2=XRe(this.pie3||this.tertiaryColor,20),this.git3=XRe(this.pie4||zRe(this.primaryColor,{h:-30}),20),this.git4=XRe(this.pie5||zRe(this.primaryColor,{h:-60}),20),this.git5=XRe(this.pie6||zRe(this.primaryColor,{h:-90}),10),this.git6=XRe(this.pie7||zRe(this.primaryColor,{h:60}),10),this.git7=XRe(this.pie8||zRe(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||qRe(this.git0),this.gitInv1=this.gitInv1||qRe(this.git1),this.gitInv2=this.gitInv2||qRe(this.git2),this.gitInv3=this.gitInv3||qRe(this.git3),this.gitInv4=this.gitInv4||qRe(this.git4),this.gitInv5=this.gitInv5||qRe(this.git5),this.gitInv6=this.gitInv6||qRe(this.git6),this.gitInv7=this.gitInv7||qRe(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||qRe(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||qRe(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"#2d2d2d",this.emUiStroke=this.emUiStroke||"#555",this.emProcessorFill=this.emProcessorFill||XRe("#5a3d5c",10),this.emProcessorStroke=this.emProcessorStroke||"#8a6d8c",this.emReadModelFill=this.emReadModelFill||XRe("#3d5a2d",10),this.emReadModelStroke=this.emReadModelStroke||"#6d8c5c",this.emCommandFill=this.emCommandFill||XRe("#2d3d5a",10),this.emCommandStroke=this.emCommandStroke||"#5c6d8c",this.emEventFill=this.emEventFill||XRe("#5a452d",10),this.emEventStroke=this.emEventStroke||"#8c755c",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||XRe(this.background,5),this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||XRe(this.background,12),this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||XRe(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||XRe(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(e){if("object"!=typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach(t=>{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},hRe(r,"Theme"),r),eBe=hRe(e=>{const t=new JRe;return t.calculate(e),t},"getThemeVariables"),tBe=(i=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=zRe(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=zRe(this.primaryColor,{h:-160}),this.primaryBorderColor=GRe(this.primaryColor,this.darkMode),this.secondaryBorderColor=GRe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=GRe(this.tertiaryColor,this.darkMode),this.primaryTextColor=qRe(this.primaryColor),this.secondaryTextColor=qRe(this.secondaryColor),this.tertiaryTextColor=qRe(this.tertiaryColor),this.lineColor=qRe(this.background),this.textColor=qRe(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=GRe(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=IRe(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){var e,t,n,r,i,o,a,s,l,c,u,h,d,p,f,g,m,O,A,y,v,b,x,w,k,S,T,$,_,C,Q,P,E,R,B,I,L,D,M,N,X,F,U,z,q,V,W,j,Y,Z;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||zRe(this.primaryColor,{h:30}),this.cScale4=this.cScale4||zRe(this.primaryColor,{h:60}),this.cScale5=this.cScale5||zRe(this.primaryColor,{h:90}),this.cScale6=this.cScale6||zRe(this.primaryColor,{h:120}),this.cScale7=this.cScale7||zRe(this.primaryColor,{h:150}),this.cScale8=this.cScale8||zRe(this.primaryColor,{h:210}),this.cScale9=this.cScale9||zRe(this.primaryColor,{h:270}),this.cScale10=this.cScale10||zRe(this.primaryColor,{h:300}),this.cScale11=this.cScale11||zRe(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||FRe(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||FRe(this.tertiaryColor,40);for(let G=0;G<this.THEME_COLOR_LIMIT;G++)this["cScale"+G]=FRe(this["cScale"+G],10),this["cScalePeer"+G]=this["cScalePeer"+G]||FRe(this["cScale"+G],25);for(let G=0;G<this.THEME_COLOR_LIMIT;G++)this["cScaleInv"+G]=this["cScaleInv"+G]||zRe(this["cScale"+G],{h:180});for(let G=0;G<5;G++)this["surface"+G]=this["surface"+G]||zRe(this.mainBkg,{h:30,l:-(5+5*G)}),this["surfacePeer"+G]=this["surfacePeer"+G]||zRe(this.mainBkg,{h:30,l:-(7+5*G)});if(this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,"calculated"!==this.labelTextColor){this.cScaleLabel0=this.cScaleLabel0||qRe(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||qRe(this.labelTextColor);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||XRe(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||XRe(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=zRe(this.primaryColor,{h:64}),this.fillType3=zRe(this.secondaryColor,{h:64}),this.fillType4=zRe(this.primaryColor,{h:-64}),this.fillType5=zRe(this.secondaryColor,{h:-64}),this.fillType6=zRe(this.primaryColor,{h:128}),this.fillType7=zRe(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||zRe(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||zRe(this.primaryColor,{l:-10}),this.pie5=this.pie5||zRe(this.secondaryColor,{l:-30}),this.pie6=this.pie6||zRe(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||zRe(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||zRe(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||zRe(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||zRe(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||zRe(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||zRe(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??zRe(this.primaryColor,{l:-30}),this.venn2=this.venn2??zRe(this.secondaryColor,{l:-30}),this.venn3=this.venn3??zRe(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??zRe(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??zRe(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??zRe(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??zRe(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??zRe(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:(null==(e=this.cynefin)?void 0:e.domainFontSize)||16,itemFontSize:(null==(t=this.cynefin)?void 0:t.itemFontSize)||12,boundaryColor:(null==(n=this.cynefin)?void 0:n.boundaryColor)||this.lineColor,boundaryWidth:(null==(r=this.cynefin)?void 0:r.boundaryWidth)||2,cliffColor:(null==(i=this.cynefin)?void 0:i.cliffColor)||"#8B0000",cliffWidth:(null==(o=this.cynefin)?void 0:o.cliffWidth)||4,arrowColor:(null==(a=this.cynefin)?void 0:a.arrowColor)||this.lineColor,arrowWidth:(null==(s=this.cynefin)?void 0:s.arrowWidth)||2,complexBg:(null==(l=this.cynefin)?void 0:l.complexBg)||"#E8F5E9",complicatedBg:(null==(c=this.cynefin)?void 0:c.complicatedBg)||"#E3F2FD",chaoticBg:(null==(u=this.cynefin)?void 0:u.chaoticBg)||"#FBE9E7",clearBg:(null==(h=this.cynefin)?void 0:h.clearBg)||"#FFF8E1",confusionBg:(null==(d=this.cynefin)?void 0:d.confusionBg)||"#F3E5F5",textColor:(null==(p=this.cynefin)?void 0:p.textColor)||this.textColor,labelColor:(null==(f=this.cynefin)?void 0:f.labelColor)||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||zRe(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||zRe(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||zRe(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||zRe(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||zRe(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||zRe(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||MRe(this.quadrant1Fill)?XRe(this.quadrant1Fill):FRe(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:(null==(g=this.radar)?void 0:g.axisColor)||this.lineColor,axisStrokeWidth:(null==(m=this.radar)?void 0:m.axisStrokeWidth)||2,axisLabelFontSize:(null==(O=this.radar)?void 0:O.axisLabelFontSize)||12,curveOpacity:(null==(A=this.radar)?void 0:A.curveOpacity)||.5,curveStrokeWidth:(null==(y=this.radar)?void 0:y.curveStrokeWidth)||2,graticuleColor:(null==(v=this.radar)?void 0:v.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:(null==(b=this.radar)?void 0:b.graticuleStrokeWidth)||1,graticuleOpacity:(null==(x=this.radar)?void 0:x.graticuleOpacity)||.3,legendBoxSize:(null==(w=this.radar)?void 0:w.legendBoxSize)||12,legendFontSize:(null==(k=this.radar)?void 0:k.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:(null==(S=this.wardley)?void 0:S.backgroundColor)||this.background,axisColor:(null==(T=this.wardley)?void 0:T.axisColor)||this.lineColor,axisTextColor:(null==($=this.wardley)?void 0:$.axisTextColor)||this.primaryTextColor,gridColor:(null==(_=this.wardley)?void 0:_.gridColor)||this.gridColor,componentFill:(null==(C=this.wardley)?void 0:C.componentFill)||this.background,componentStroke:(null==(Q=this.wardley)?void 0:Q.componentStroke)||this.lineColor,componentLabelColor:(null==(P=this.wardley)?void 0:P.componentLabelColor)||this.primaryTextColor,linkStroke:(null==(E=this.wardley)?void 0:E.linkStroke)||this.lineColor,evolutionStroke:(null==(R=this.wardley)?void 0:R.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:(null==(B=this.wardley)?void 0:B.annotationStroke)||this.lineColor,annotationTextColor:(null==(I=this.wardley)?void 0:I.annotationTextColor)||this.primaryTextColor,annotationFill:(null==(L=this.wardley)?void 0:L.annotationFill)||this.background},this.xyChart={backgroundColor:(null==(D=this.xyChart)?void 0:D.backgroundColor)||this.background,titleColor:(null==(M=this.xyChart)?void 0:M.titleColor)||this.primaryTextColor,dataLabelColor:(null==(N=this.xyChart)?void 0:N.dataLabelColor)||this.primaryTextColor,legendTextColor:(null==(X=this.xyChart)?void 0:X.legendTextColor)||this.primaryTextColor,xAxisTitleColor:(null==(F=this.xyChart)?void 0:F.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(U=this.xyChart)?void 0:U.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(z=this.xyChart)?void 0:z.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(q=this.xyChart)?void 0:q.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(V=this.xyChart)?void 0:V.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(W=this.xyChart)?void 0:W.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(j=this.xyChart)?void 0:j.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(Y=this.xyChart)?void 0:Y.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==(Z=this.xyChart)?void 0:Z.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||zRe(this.primaryColor,{h:-30}),this.git4=this.git4||zRe(this.primaryColor,{h:-60}),this.git5=this.git5||zRe(this.primaryColor,{h:-90}),this.git6=this.git6||zRe(this.primaryColor,{h:60}),this.git7=this.git7||zRe(this.primaryColor,{h:120}),this.darkMode?(this.git0=XRe(this.git0,25),this.git1=XRe(this.git1,25),this.git2=XRe(this.git2,25),this.git3=XRe(this.git3,25),this.git4=XRe(this.git4,25),this.git5=XRe(this.git5,25),this.git6=XRe(this.git6,25),this.git7=XRe(this.git7,25)):(this.git0=FRe(this.git0,25),this.git1=FRe(this.git1,25),this.git2=FRe(this.git2,25),this.git3=FRe(this.git3,25),this.git4=FRe(this.git4,25),this.git5=FRe(this.git5,25),this.git6=FRe(this.git6,25),this.git7=FRe(this.git7,25)),this.gitInv0=this.gitInv0||FRe(qRe(this.git0),25),this.gitInv1=this.gitInv1||qRe(this.git1),this.gitInv2=this.gitInv2||qRe(this.git2),this.gitInv3=this.gitInv3||qRe(this.git3),this.gitInv4=this.gitInv4||qRe(this.git4),this.gitInv5=this.gitInv5||qRe(this.git5),this.gitInv6=this.gitInv6||qRe(this.git6),this.gitInv7=this.gitInv7||qRe(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||qRe(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||qRe(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||YRe,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ZRe}calculate(e){if(Object.keys(this).forEach(e=>{"calculated"===this[e]&&(this[e]=void 0)}),"object"!=typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach(t=>{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},hRe(i,"Theme"),i),nBe=hRe(e=>{const t=new tBe;return t.calculate(e),t},"getThemeVariables"),rBe=(o=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=XRe("#cde498",10),this.primaryBorderColor=GRe(this.primaryColor,this.darkMode),this.secondaryBorderColor=GRe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=GRe(this.tertiaryColor,this.darkMode),this.primaryTextColor=qRe(this.primaryColor),this.secondaryTextColor=qRe(this.secondaryColor),this.tertiaryTextColor=qRe(this.primaryColor),this.lineColor=qRe(this.background),this.textColor=qRe(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){var e,t,n,r,i,o,a,s,l,c,u,h,d,p,f,g,m,O,A,y,v,b,x,w,k,S,T,$,_,C,Q,P,E,R,B,I,L,D,M,N,X,F,U,z,q,V,W,j,Y,Z;this.actorBorder=FRe(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||zRe(this.primaryColor,{h:30}),this.cScale4=this.cScale4||zRe(this.primaryColor,{h:60}),this.cScale5=this.cScale5||zRe(this.primaryColor,{h:90}),this.cScale6=this.cScale6||zRe(this.primaryColor,{h:120}),this.cScale7=this.cScale7||zRe(this.primaryColor,{h:150}),this.cScale8=this.cScale8||zRe(this.primaryColor,{h:210}),this.cScale9=this.cScale9||zRe(this.primaryColor,{h:270}),this.cScale10=this.cScale10||zRe(this.primaryColor,{h:300}),this.cScale11=this.cScale11||zRe(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||FRe(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||FRe(this.tertiaryColor,40);for(let G=0;G<this.THEME_COLOR_LIMIT;G++)this["cScale"+G]=FRe(this["cScale"+G],10),this["cScalePeer"+G]=this["cScalePeer"+G]||FRe(this["cScale"+G],25);for(let G=0;G<this.THEME_COLOR_LIMIT;G++)this["cScaleInv"+G]=this["cScaleInv"+G]||zRe(this["cScale"+G],{h:180});this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let G=0;G<this.THEME_COLOR_LIMIT;G++)this["cScaleLabel"+G]=this["cScaleLabel"+G]||this.scaleLabelColor;for(let G=0;G<5;G++)this["surface"+G]=this["surface"+G]||zRe(this.mainBkg,{h:30,s:-30,l:-(5+5*G)}),this["surfacePeer"+G]=this["surfacePeer"+G]||zRe(this.mainBkg,{h:30,s:-30,l:-(8+5*G)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||XRe(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||XRe(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=zRe(this.primaryColor,{h:64}),this.fillType3=zRe(this.secondaryColor,{h:64}),this.fillType4=zRe(this.primaryColor,{h:-64}),this.fillType5=zRe(this.secondaryColor,{h:-64}),this.fillType6=zRe(this.primaryColor,{h:128}),this.fillType7=zRe(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||zRe(this.primaryColor,{l:-30}),this.pie5=this.pie5||zRe(this.secondaryColor,{l:-30}),this.pie6=this.pie6||zRe(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||zRe(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||zRe(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||zRe(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||zRe(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||zRe(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||zRe(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??zRe(this.primaryColor,{l:-30}),this.venn2=this.venn2??zRe(this.secondaryColor,{l:-30}),this.venn3=this.venn3??zRe(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??zRe(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??zRe(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??zRe(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??zRe(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??zRe(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:(null==(e=this.cynefin)?void 0:e.domainFontSize)||16,itemFontSize:(null==(t=this.cynefin)?void 0:t.itemFontSize)||12,boundaryColor:(null==(n=this.cynefin)?void 0:n.boundaryColor)||this.lineColor,boundaryWidth:(null==(r=this.cynefin)?void 0:r.boundaryWidth)||2,cliffColor:(null==(i=this.cynefin)?void 0:i.cliffColor)||"#8B4513",cliffWidth:(null==(o=this.cynefin)?void 0:o.cliffWidth)||4,arrowColor:(null==(a=this.cynefin)?void 0:a.arrowColor)||this.lineColor,arrowWidth:(null==(s=this.cynefin)?void 0:s.arrowWidth)||2,complexBg:(null==(l=this.cynefin)?void 0:l.complexBg)||"#C8E6C9",complicatedBg:(null==(c=this.cynefin)?void 0:c.complicatedBg)||"#DCEDC8",chaoticBg:(null==(u=this.cynefin)?void 0:u.chaoticBg)||"#FFE0B2",clearBg:(null==(h=this.cynefin)?void 0:h.clearBg)||"#FFF9C4",confusionBg:(null==(d=this.cynefin)?void 0:d.confusionBg)||"#D7CCC8",textColor:(null==(p=this.cynefin)?void 0:p.textColor)||this.textColor,labelColor:(null==(f=this.cynefin)?void 0:f.labelColor)||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||zRe(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||zRe(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||zRe(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||zRe(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||zRe(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||zRe(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||MRe(this.quadrant1Fill)?XRe(this.quadrant1Fill):FRe(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:(null==(g=this.radar)?void 0:g.axisColor)||this.lineColor,axisStrokeWidth:(null==(m=this.radar)?void 0:m.axisStrokeWidth)||2,axisLabelFontSize:(null==(O=this.radar)?void 0:O.axisLabelFontSize)||12,curveOpacity:(null==(A=this.radar)?void 0:A.curveOpacity)||.5,curveStrokeWidth:(null==(y=this.radar)?void 0:y.curveStrokeWidth)||2,graticuleColor:(null==(v=this.radar)?void 0:v.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:(null==(b=this.radar)?void 0:b.graticuleStrokeWidth)||1,graticuleOpacity:(null==(x=this.radar)?void 0:x.graticuleOpacity)||.3,legendBoxSize:(null==(w=this.radar)?void 0:w.legendBoxSize)||12,legendFontSize:(null==(k=this.radar)?void 0:k.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:(null==(S=this.wardley)?void 0:S.backgroundColor)||this.background,axisColor:(null==(T=this.wardley)?void 0:T.axisColor)||this.lineColor,axisTextColor:(null==($=this.wardley)?void 0:$.axisTextColor)||this.primaryTextColor,gridColor:(null==(_=this.wardley)?void 0:_.gridColor)||this.gridColor,componentFill:(null==(C=this.wardley)?void 0:C.componentFill)||this.background,componentStroke:(null==(Q=this.wardley)?void 0:Q.componentStroke)||this.lineColor,componentLabelColor:(null==(P=this.wardley)?void 0:P.componentLabelColor)||this.primaryTextColor,linkStroke:(null==(E=this.wardley)?void 0:E.linkStroke)||this.lineColor,evolutionStroke:(null==(R=this.wardley)?void 0:R.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:(null==(B=this.wardley)?void 0:B.annotationStroke)||this.lineColor,annotationTextColor:(null==(I=this.wardley)?void 0:I.annotationTextColor)||this.primaryTextColor,annotationFill:(null==(L=this.wardley)?void 0:L.annotationFill)||this.background},this.xyChart={backgroundColor:(null==(D=this.xyChart)?void 0:D.backgroundColor)||this.background,titleColor:(null==(M=this.xyChart)?void 0:M.titleColor)||this.primaryTextColor,dataLabelColor:(null==(N=this.xyChart)?void 0:N.dataLabelColor)||this.primaryTextColor,legendTextColor:(null==(X=this.xyChart)?void 0:X.legendTextColor)||this.primaryTextColor,xAxisTitleColor:(null==(F=this.xyChart)?void 0:F.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(U=this.xyChart)?void 0:U.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(z=this.xyChart)?void 0:z.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(q=this.xyChart)?void 0:q.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(V=this.xyChart)?void 0:V.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(W=this.xyChart)?void 0:W.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(j=this.xyChart)?void 0:j.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(Y=this.xyChart)?void 0:Y.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==(Z=this.xyChart)?void 0:Z.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||zRe(this.primaryColor,{h:-30}),this.git4=this.git4||zRe(this.primaryColor,{h:-60}),this.git5=this.git5||zRe(this.primaryColor,{h:-90}),this.git6=this.git6||zRe(this.primaryColor,{h:60}),this.git7=this.git7||zRe(this.primaryColor,{h:120}),this.darkMode?(this.git0=XRe(this.git0,25),this.git1=XRe(this.git1,25),this.git2=XRe(this.git2,25),this.git3=XRe(this.git3,25),this.git4=XRe(this.git4,25),this.git5=XRe(this.git5,25),this.git6=XRe(this.git6,25),this.git7=XRe(this.git7,25)):(this.git0=FRe(this.git0,25),this.git1=FRe(this.git1,25),this.git2=FRe(this.git2,25),this.git3=FRe(this.git3,25),this.git4=FRe(this.git4,25),this.git5=FRe(this.git5,25),this.git6=FRe(this.git6,25),this.git7=FRe(this.git7,25)),this.gitInv0=this.gitInv0||qRe(this.git0),this.gitInv1=this.gitInv1||qRe(this.git1),this.gitInv2=this.gitInv2||qRe(this.git2),this.gitInv3=this.gitInv3||qRe(this.git3),this.gitInv4=this.gitInv4||qRe(this.git4),this.gitInv5=this.gitInv5||qRe(this.git5),this.gitInv6=this.gitInv6||qRe(this.git6),this.gitInv7=this.gitInv7||qRe(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||qRe(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||qRe(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||YRe,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ZRe}calculate(e){if("object"!=typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach(t=>{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},hRe(o,"Theme"),o),iBe=hRe(e=>{const t=new rBe;return t.calculate(e),t},"getThemeVariables"),oBe=(a=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=XRe(this.contrast,55),this.background="#ffffff",this.tertiaryColor=zRe(this.primaryColor,{h:-160}),this.primaryBorderColor=GRe(this.primaryColor,this.darkMode),this.secondaryBorderColor=GRe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=GRe(this.tertiaryColor,this.darkMode),this.primaryTextColor=qRe(this.primaryColor),this.secondaryTextColor=qRe(this.secondaryColor),this.tertiaryTextColor=qRe(this.tertiaryColor),this.lineColor=qRe(this.background),this.textColor=qRe(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||XRe(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var e,t,n,r,i,o,a,s,l,c,u,h,d,p,f,g,m,O,A,y,v,b,x,w,k,S,T,$,_,C,Q,P,E,R,B,I,L,D,M,N,X,F,U,z,q,V,W,j,Y,Z;this.secondBkg=XRe(this.contrast,55),this.border2=this.contrast,this.actorBorder=XRe(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let G=0;G<this.THEME_COLOR_LIMIT;G++)this["cScaleInv"+G]=this["cScaleInv"+G]||qRe(this["cScale"+G]);for(let G=0;G<this.THEME_COLOR_LIMIT;G++)this.darkMode?this["cScalePeer"+G]=this["cScalePeer"+G]||XRe(this["cScale"+G],10):this["cScalePeer"+G]=this["cScalePeer"+G]||FRe(this["cScale"+G],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let G=0;G<this.THEME_COLOR_LIMIT;G++)this["cScaleLabel"+G]=this["cScaleLabel"+G]||this.scaleLabelColor;for(let G=0;G<5;G++)this["surface"+G]=this["surface"+G]||zRe(this.mainBkg,{l:-(5+5*G)}),this["surfacePeer"+G]=this["surfacePeer"+G]||zRe(this.mainBkg,{l:-(8+5*G)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=XRe(this.contrast,30),this.sectionBkgColor2=XRe(this.contrast,30),this.taskBorderColor=FRe(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=XRe(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=FRe(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=zRe(this.primaryColor,{h:64}),this.fillType3=zRe(this.secondaryColor,{h:64}),this.fillType4=zRe(this.primaryColor,{h:-64}),this.fillType5=zRe(this.secondaryColor,{h:-64}),this.fillType6=zRe(this.primaryColor,{h:128}),this.fillType7=zRe(this.secondaryColor,{h:128});for(let G=0;G<this.THEME_COLOR_LIMIT;G++)this["pie"+G]=this["cScale"+G];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let G=0;G<8;G++)this["venn"+(G+1)]=this["venn"+(G+1)]??this["cScale"+G];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:(null==(e=this.cynefin)?void 0:e.domainFontSize)||16,itemFontSize:(null==(t=this.cynefin)?void 0:t.itemFontSize)||12,boundaryColor:(null==(n=this.cynefin)?void 0:n.boundaryColor)||this.lineColor,boundaryWidth:(null==(r=this.cynefin)?void 0:r.boundaryWidth)||2,cliffColor:(null==(i=this.cynefin)?void 0:i.cliffColor)||"#8B0000",cliffWidth:(null==(o=this.cynefin)?void 0:o.cliffWidth)||4,arrowColor:(null==(a=this.cynefin)?void 0:a.arrowColor)||this.lineColor,arrowWidth:(null==(s=this.cynefin)?void 0:s.arrowWidth)||2,complexBg:(null==(l=this.cynefin)?void 0:l.complexBg)||"#E8F5E9",complicatedBg:(null==(c=this.cynefin)?void 0:c.complicatedBg)||"#E3F2FD",chaoticBg:(null==(u=this.cynefin)?void 0:u.chaoticBg)||"#FBE9E7",clearBg:(null==(h=this.cynefin)?void 0:h.clearBg)||"#FFF8E1",confusionBg:(null==(d=this.cynefin)?void 0:d.confusionBg)||"#F3E5F5",textColor:(null==(p=this.cynefin)?void 0:p.textColor)||this.textColor,labelColor:(null==(f=this.cynefin)?void 0:f.labelColor)||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||zRe(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||zRe(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||zRe(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||zRe(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||zRe(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||zRe(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||MRe(this.quadrant1Fill)?XRe(this.quadrant1Fill):FRe(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null==(g=this.xyChart)?void 0:g.backgroundColor)||this.background,titleColor:(null==(m=this.xyChart)?void 0:m.titleColor)||this.primaryTextColor,dataLabelColor:(null==(O=this.xyChart)?void 0:O.dataLabelColor)||this.primaryTextColor,legendTextColor:(null==(A=this.xyChart)?void 0:A.legendTextColor)||this.primaryTextColor,xAxisTitleColor:(null==(y=this.xyChart)?void 0:y.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(v=this.xyChart)?void 0:v.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(b=this.xyChart)?void 0:b.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(x=this.xyChart)?void 0:x.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(w=this.xyChart)?void 0:w.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(k=this.xyChart)?void 0:k.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(S=this.xyChart)?void 0:S.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(T=this.xyChart)?void 0:T.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==($=this.xyChart)?void 0:$.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:(null==(_=this.radar)?void 0:_.axisColor)||this.lineColor,axisStrokeWidth:(null==(C=this.radar)?void 0:C.axisStrokeWidth)||2,axisLabelFontSize:(null==(Q=this.radar)?void 0:Q.axisLabelFontSize)||12,curveOpacity:(null==(P=this.radar)?void 0:P.curveOpacity)||.5,curveStrokeWidth:(null==(E=this.radar)?void 0:E.curveStrokeWidth)||2,graticuleColor:(null==(R=this.radar)?void 0:R.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:(null==(B=this.radar)?void 0:B.graticuleStrokeWidth)||1,graticuleOpacity:(null==(I=this.radar)?void 0:I.graticuleOpacity)||.3,legendBoxSize:(null==(L=this.radar)?void 0:L.legendBoxSize)||12,legendFontSize:(null==(D=this.radar)?void 0:D.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:(null==(M=this.wardley)?void 0:M.backgroundColor)||this.background,axisColor:(null==(N=this.wardley)?void 0:N.axisColor)||this.lineColor,axisTextColor:(null==(X=this.wardley)?void 0:X.axisTextColor)||this.primaryTextColor,gridColor:(null==(F=this.wardley)?void 0:F.gridColor)||this.gridColor,componentFill:(null==(U=this.wardley)?void 0:U.componentFill)||this.background,componentStroke:(null==(z=this.wardley)?void 0:z.componentStroke)||this.lineColor,componentLabelColor:(null==(q=this.wardley)?void 0:q.componentLabelColor)||this.primaryTextColor,linkStroke:(null==(V=this.wardley)?void 0:V.linkStroke)||this.lineColor,evolutionStroke:(null==(W=this.wardley)?void 0:W.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:(null==(j=this.wardley)?void 0:j.annotationStroke)||this.lineColor,annotationTextColor:(null==(Y=this.wardley)?void 0:Y.annotationTextColor)||this.primaryTextColor,annotationFill:(null==(Z=this.wardley)?void 0:Z.annotationFill)||this.background},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=FRe(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||zRe(this.primaryColor,{h:-30}),this.git4=this.pie5||zRe(this.primaryColor,{h:-60}),this.git5=this.pie6||zRe(this.primaryColor,{h:-90}),this.git6=this.pie7||zRe(this.primaryColor,{h:60}),this.git7=this.pie8||zRe(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||qRe(this.git0),this.gitInv1=this.gitInv1||qRe(this.git1),this.gitInv2=this.gitInv2||qRe(this.git2),this.gitInv3=this.gitInv3||qRe(this.git3),this.gitInv4=this.gitInv4||qRe(this.git4),this.gitInv5=this.gitInv5||qRe(this.git5),this.gitInv6=this.gitInv6||qRe(this.git6),this.gitInv7=this.gitInv7||qRe(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||YRe,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ZRe}calculate(e){if("object"!=typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach(t=>{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},hRe(a,"Theme"),a),aBe=hRe(e=>{const t=new oBe;return t.calculate(e),t},"getThemeVariables"),sBe=(s=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=GRe(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var e,t,n,r,i,o,a,s,l,c,u,h;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||zRe(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||zRe(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||GRe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||GRe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||GRe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||GRe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||qRe(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||qRe(this.tertiaryColor),this.lineColor=this.lineColor||qRe(this.background),this.arrowheadColor=this.arrowheadColor||qRe(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?FRe(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||FRe(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||qRe(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;const d="#ECECFE",p="#E9E9F1",f=zRe(d,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||f,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||p,this.sectionBkgColor2=this.sectionBkgColor2||d,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||d,this.activeTaskBorderColor=this.activeTaskBorderColor||d,this.activeTaskBkgColor=this.activeTaskBkgColor||XRe(d,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||d,this.cScale1=this.cScale1||p,this.cScale2=this.cScale2||f,this.cScale3=this.cScale3||zRe(d,{h:30}),this.cScale4=this.cScale4||zRe(d,{h:60}),this.cScale5=this.cScale5||zRe(d,{h:90}),this.cScale6=this.cScale6||zRe(d,{h:120}),this.cScale7=this.cScale7||zRe(d,{h:150}),this.cScale8=this.cScale8||zRe(d,{h:210,l:150}),this.cScale9=this.cScale9||zRe(d,{h:270}),this.cScale10=this.cScale10||zRe(d,{h:300}),this.cScale11=this.cScale11||zRe(d,{h:330}),this.darkMode)for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScale"+m]=FRe(this["cScale"+m],75);else for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScale"+m]=FRe(this["cScale"+m],25);for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleInv"+m]=this["cScaleInv"+m]||qRe(this["cScale"+m]);for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this.darkMode?this["cScalePeer"+m]=this["cScalePeer"+m]||XRe(this["cScale"+m],10):this["cScalePeer"+m]=this["cScalePeer"+m]||FRe(this["cScale"+m],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleLabel"+m]=this["cScaleLabel"+m]||this.scaleLabelColor;const g=this.darkMode?-4:-1;for(let m=0;m<5;m++)this["surface"+m]=this["surface"+m]||zRe(this.mainBkg,{h:180,s:-15,l:g*(5+3*m)}),this["surfacePeer"+m]=this["surfacePeer"+m]||zRe(this.mainBkg,{h:180,s:-15,l:g*(8+3*m)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||d,this.fillType1=this.fillType1||p,this.fillType2=this.fillType2||zRe(d,{h:64}),this.fillType3=this.fillType3||zRe(p,{h:64}),this.fillType4=this.fillType4||zRe(d,{h:-64}),this.fillType5=this.fillType5||zRe(p,{h:-64}),this.fillType6=this.fillType6||zRe(d,{h:128}),this.fillType7=this.fillType7||zRe(p,{h:128}),this.pie1=this.pie1||d,this.pie2=this.pie2||p,this.pie3=this.pie3||f,this.pie4=this.pie4||zRe(d,{l:-10}),this.pie5=this.pie5||zRe(p,{l:-10}),this.pie6=this.pie6||zRe(f,{l:-10}),this.pie7=this.pie7||zRe(d,{h:60,l:-10}),this.pie8=this.pie8||zRe(d,{h:-60,l:-10}),this.pie9=this.pie9||zRe(d,{h:120,l:0}),this.pie10=this.pie10||zRe(d,{h:60,l:-20}),this.pie11=this.pie11||zRe(d,{h:-60,l:-20}),this.pie12=this.pie12||zRe(d,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||d,this.quadrant2Fill=this.quadrant2Fill||zRe(d,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||zRe(d,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||zRe(d,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||zRe(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||zRe(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||zRe(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||MRe(this.quadrant1Fill)?XRe(this.quadrant1Fill):FRe(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null==(e=this.xyChart)?void 0:e.backgroundColor)||this.background,titleColor:(null==(t=this.xyChart)?void 0:t.titleColor)||this.primaryTextColor,legendTextColor:(null==(n=this.xyChart)?void 0:n.legendTextColor)||this.primaryTextColor,xAxisTitleColor:(null==(r=this.xyChart)?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(i=this.xyChart)?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(o=this.xyChart)?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(a=this.xyChart)?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(s=this.xyChart)?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(l=this.xyChart)?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(c=this.xyChart)?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(u=this.xyChart)?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==(h=this.xyChart)?void 0:h.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||d,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?FRe(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||d,this.git1=this.git1||p,this.git2=this.git2||f,this.git3=this.git3||zRe(d,{h:-30}),this.git4=this.git4||zRe(d,{h:-60}),this.git5=this.git5||zRe(d,{h:-90}),this.git6=this.git6||zRe(d,{h:60}),this.git7=this.git7||zRe(d,{h:120}),this.darkMode?(this.git0=XRe(this.git0,25),this.git1=XRe(this.git1,25),this.git2=XRe(this.git2,25),this.git3=XRe(this.git3,25),this.git4=XRe(this.git4,25),this.git5=XRe(this.git5,25),this.git6=XRe(this.git6,25),this.git7=XRe(this.git7,25)):(this.git0=FRe(this.git0,25),this.git1=FRe(this.git1,25),this.git2=FRe(this.git2,25),this.git3=FRe(this.git3,25),this.git4=FRe(this.git4,25),this.git5=FRe(this.git5,25),this.git6=FRe(this.git6,25),this.git7=FRe(this.git7,25)),this.gitInv0=this.gitInv0||qRe(this.git0),this.gitInv1=this.gitInv1||qRe(this.git1),this.gitInv2=this.gitInv2||qRe(this.git2),this.gitInv3=this.gitInv3||qRe(this.git3),this.gitInv4=this.gitInv4||qRe(this.git4),this.gitInv5=this.gitInv5||qRe(this.git5),this.gitInv6=this.gitInv6||qRe(this.git6),this.gitInv7=this.gitInv7||qRe(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||YRe,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ZRe}calculate(e){if("object"!=typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach(t=>{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},hRe(s,"Theme"),s),lBe=hRe(e=>{const t=new sBe;return t.calculate(e),t},"getThemeVariables"),cBe=(l=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=XRe(this.primaryColor,16),this.tertiaryColor=zRe(this.primaryColor,{h:-160}),this.primaryBorderColor=qRe(this.background),this.secondaryBorderColor=GRe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=GRe(this.tertiaryColor,this.darkMode),this.primaryTextColor=qRe(this.primaryColor),this.secondaryTextColor=qRe(this.secondaryColor),this.tertiaryTextColor=qRe(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=XRe(qRe("#323D47"),10),this.border1="#ccc",this.border2=IRe(255,255,255,.25),this.arrowheadColor=qRe(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var e,t,n,r,i,o,a,s,l,c,u,h;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||zRe(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||zRe(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||GRe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||GRe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||GRe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||GRe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||qRe(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||qRe(this.tertiaryColor),this.lineColor=this.lineColor||qRe(this.background),this.arrowheadColor=this.arrowheadColor||qRe(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?FRe(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||FRe(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||qRe(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||XRe(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||zRe(this.primaryColor,{h:30}),this.cScale4=this.cScale4||zRe(this.primaryColor,{h:60}),this.cScale5=this.cScale5||zRe(this.primaryColor,{h:90}),this.cScale6=this.cScale6||zRe(this.primaryColor,{h:120}),this.cScale7=this.cScale7||zRe(this.primaryColor,{h:150}),this.cScale8=this.cScale8||zRe(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||zRe(this.primaryColor,{h:270}),this.cScale10=this.cScale10||zRe(this.primaryColor,{h:300}),this.cScale11=this.cScale11||zRe(this.primaryColor,{h:330}),this.darkMode)for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScale"+p]=FRe(this["cScale"+p],75);else for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScale"+p]=FRe(this["cScale"+p],25);for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleInv"+p]=this["cScaleInv"+p]||qRe(this["cScale"+p]);for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this.darkMode?this["cScalePeer"+p]=this["cScalePeer"+p]||XRe(this["cScale"+p],10):this["cScalePeer"+p]=this["cScalePeer"+p]||FRe(this["cScale"+p],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleLabel"+p]=this["cScaleLabel"+p]||this.scaleLabelColor;const d=this.darkMode?-4:-1;for(let p=0;p<5;p++)this["surface"+p]=this["surface"+p]||zRe(this.mainBkg,{h:180,s:-15,l:d*(5+3*p)}),this["surfacePeer"+p]=this["surfacePeer"+p]||zRe(this.mainBkg,{h:180,s:-15,l:d*(8+3*p)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||zRe(this.primaryColor,{h:64}),this.fillType3=this.fillType3||zRe(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||zRe(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||zRe(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||zRe(this.primaryColor,{h:128}),this.fillType7=this.fillType7||zRe(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||zRe(this.primaryColor,{l:-10}),this.pie5=this.pie5||zRe(this.secondaryColor,{l:-10}),this.pie6=this.pie6||zRe(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||zRe(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||zRe(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||zRe(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||zRe(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||zRe(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||zRe(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||zRe(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||zRe(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||zRe(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||zRe(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||zRe(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||zRe(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||MRe(this.quadrant1Fill)?XRe(this.quadrant1Fill):FRe(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null==(e=this.xyChart)?void 0:e.backgroundColor)||this.background,titleColor:(null==(t=this.xyChart)?void 0:t.titleColor)||this.primaryTextColor,legendTextColor:(null==(n=this.xyChart)?void 0:n.legendTextColor)||this.primaryTextColor,xAxisTitleColor:(null==(r=this.xyChart)?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(i=this.xyChart)?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(o=this.xyChart)?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(a=this.xyChart)?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(s=this.xyChart)?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(l=this.xyChart)?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(c=this.xyChart)?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(u=this.xyChart)?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==(h=this.xyChart)?void 0:h.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?FRe(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||"#0b0000",this.git1=this.git1||"#4d1037",this.git2=this.git2||"#3f5258",this.git3=this.git3||"#4f2f1b",this.git4=this.git4||"#6e0a0a",this.git5=this.git5||"#3b0048",this.git6=this.git6||"#995a01",this.git7=this.git7||"#154706",this.gitDarkMode=!0,this.gitDarkMode?(this.git0=XRe(this.git0,25),this.git1=XRe(this.git1,25),this.git2=XRe(this.git2,25),this.git3=XRe(this.git3,25),this.git4=XRe(this.git4,25),this.git5=XRe(this.git5,25),this.git6=XRe(this.git6,25),this.git7=XRe(this.git7,25)):(this.git0=FRe(this.git0,25),this.git1=FRe(this.git1,25),this.git2=FRe(this.git2,25),this.git3=FRe(this.git3,25),this.git4=FRe(this.git4,25),this.git5=FRe(this.git5,25),this.git6=FRe(this.git6,25),this.git7=FRe(this.git7,25)),this.gitInv0=this.gitInv0||qRe(this.git0),this.gitInv1=this.gitInv1||qRe(this.git1),this.gitInv2=this.gitInv2||qRe(this.git2),this.gitInv3=this.gitInv3||qRe(this.git3),this.gitInv4=this.gitInv4||qRe(this.git4),this.gitInv5=this.gitInv5||qRe(this.git5),this.gitInv6=this.gitInv6||qRe(this.git6),this.gitInv7=this.gitInv7||qRe(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||YRe,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ZRe}calculate(e){if("object"!=typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach(t=>{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},hRe(l,"Theme"),l),uBe=hRe(e=>{const t=new cBe;return t.calculate(e),t},"getThemeVariables"),hBe=(u=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=GRe("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){var e,t,n,r,i,o,a,s,l,c,u,h;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||zRe(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||zRe(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||GRe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||GRe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||GRe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||GRe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||qRe(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||qRe(this.tertiaryColor),this.lineColor=this.lineColor||qRe(this.background),this.arrowheadColor=this.arrowheadColor||qRe(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?FRe(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||FRe(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||qRe(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;const d="#ECECFE",p="#E9E9F1",f=zRe(d,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||f,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||p,this.sectionBkgColor2=this.sectionBkgColor2||d,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||d,this.activeTaskBorderColor=this.activeTaskBorderColor||d,this.activeTaskBkgColor=this.activeTaskBkgColor||XRe(d,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScale"+m]=this.mainBkg;if(this.darkMode)for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScale"+m]=FRe(this["cScale"+m],75);else for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScale"+m]=FRe(this["cScale"+m],25);for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleInv"+m]=this["cScaleInv"+m]||qRe(this["cScale"+m]);for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this.darkMode?this["cScalePeer"+m]=this["cScalePeer"+m]||XRe(this["cScale"+m],10):this["cScalePeer"+m]=this["cScalePeer"+m]||FRe(this["cScale"+m],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleLabel"+m]=this["cScaleLabel"+m]||this.scaleLabelColor;const g=this.darkMode?-4:-1;for(let m=0;m<5;m++)this["surface"+m]=this["surface"+m]||zRe(this.mainBkg,{h:180,s:-15,l:g*(5+3*m)}),this["surfacePeer"+m]=this["surfacePeer"+m]||zRe(this.mainBkg,{h:180,s:-15,l:g*(8+3*m)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||d,this.fillType1=this.fillType1||p,this.fillType2=this.fillType2||zRe(d,{h:64}),this.fillType3=this.fillType3||zRe(p,{h:64}),this.fillType4=this.fillType4||zRe(d,{h:-64}),this.fillType5=this.fillType5||zRe(p,{h:-64}),this.fillType6=this.fillType6||zRe(d,{h:128}),this.fillType7=this.fillType7||zRe(p,{h:128}),this.pie1=this.pie1||d,this.pie2=this.pie2||p,this.pie3=this.pie3||f,this.pie4=this.pie4||zRe(d,{l:-10}),this.pie5=this.pie5||zRe(p,{l:-10}),this.pie6=this.pie6||zRe(f,{l:-10}),this.pie7=this.pie7||zRe(d,{h:60,l:-10}),this.pie8=this.pie8||zRe(d,{h:-60,l:-10}),this.pie9=this.pie9||zRe(d,{h:120,l:0}),this.pie10=this.pie10||zRe(d,{h:60,l:-20}),this.pie11=this.pie11||zRe(d,{h:-60,l:-20}),this.pie12=this.pie12||zRe(d,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||d,this.quadrant2Fill=this.quadrant2Fill||zRe(d,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||zRe(d,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||zRe(d,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||zRe(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||zRe(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||zRe(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||MRe(this.quadrant1Fill)?XRe(this.quadrant1Fill):FRe(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null==(e=this.xyChart)?void 0:e.backgroundColor)||this.background,titleColor:(null==(t=this.xyChart)?void 0:t.titleColor)||this.primaryTextColor,legendTextColor:(null==(n=this.xyChart)?void 0:n.legendTextColor)||this.primaryTextColor,xAxisTitleColor:(null==(r=this.xyChart)?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(i=this.xyChart)?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(o=this.xyChart)?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(a=this.xyChart)?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(s=this.xyChart)?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(l=this.xyChart)?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(c=this.xyChart)?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(u=this.xyChart)?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==(h=this.xyChart)?void 0:h.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||d,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?FRe(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||d,this.git1=this.git1||p,this.git2=this.git2||f,this.git3=this.git3||zRe(d,{h:-30}),this.git4=this.git4||zRe(d,{h:-60}),this.git5=this.git5||zRe(d,{h:-90}),this.git6=this.git6||zRe(d,{h:60}),this.git7=this.git7||zRe(d,{h:120}),this.darkMode?(this.git0=XRe(this.git0,25),this.git1=XRe(this.git1,25),this.git2=XRe(this.git2,25),this.git3=XRe(this.git3,25),this.git4=XRe(this.git4,25),this.git5=XRe(this.git5,25),this.git6=XRe(this.git6,25),this.git7=XRe(this.git7,25)):(this.git0=FRe(this.git0,25),this.git1=FRe(this.git1,25),this.git2=FRe(this.git2,25),this.git3=FRe(this.git3,25),this.git4=FRe(this.git4,25),this.git5=FRe(this.git5,25),this.git6=FRe(this.git6,25),this.git7=FRe(this.git7,25)),this.gitInv0=this.gitInv0||qRe(this.git0),this.gitInv1=this.gitInv1||qRe(this.git1),this.gitInv2=this.gitInv2||qRe(this.git2),this.gitInv3=this.gitInv3||qRe(this.git3),this.gitInv4=this.gitInv4||qRe(this.git4),this.gitInv5=this.gitInv5||qRe(this.git5),this.gitInv6=this.gitInv6||qRe(this.git6),this.gitInv7=this.gitInv7||qRe(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||YRe,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ZRe}calculate(e){if("object"!=typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach(t=>{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},hRe(u,"Theme"),u),dBe=hRe(e=>{const t=new hBe;return t.calculate(e),t},"getThemeVariables"),pBe=(h=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=XRe(this.primaryColor,16),this.tertiaryColor=zRe(this.primaryColor,{h:-160}),this.primaryBorderColor=qRe(this.background),this.secondaryBorderColor=GRe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=GRe(this.tertiaryColor,this.darkMode),this.primaryTextColor=qRe(this.primaryColor),this.secondaryTextColor=qRe(this.secondaryColor),this.tertiaryTextColor=qRe(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=XRe(qRe("#323D47"),10),this.border1="#ccc",this.border2=IRe(255,255,255,.25),this.arrowheadColor=qRe(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){var e,t,n,r,i,o,a,s,l,c,u,h;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||zRe(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||zRe(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||GRe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||GRe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||GRe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||GRe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||qRe(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||qRe(this.tertiaryColor),this.lineColor=this.lineColor||qRe(this.background),this.arrowheadColor=this.arrowheadColor||qRe(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?FRe(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||FRe(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||qRe(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||XRe(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||zRe(this.primaryColor,{h:30}),this.cScale4=this.cScale4||zRe(this.primaryColor,{h:60}),this.cScale5=this.cScale5||zRe(this.primaryColor,{h:90}),this.cScale6=this.cScale6||zRe(this.primaryColor,{h:120}),this.cScale7=this.cScale7||zRe(this.primaryColor,{h:150}),this.cScale8=this.cScale8||zRe(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||zRe(this.primaryColor,{h:270}),this.cScale10=this.cScale10||zRe(this.primaryColor,{h:300}),this.cScale11=this.cScale11||zRe(this.primaryColor,{h:330}),this.darkMode)for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScale"+p]=FRe(this["cScale"+p],75);else for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScale"+p]=FRe(this["cScale"+p],25);for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleInv"+p]=this["cScaleInv"+p]||qRe(this["cScale"+p]);for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this.darkMode?this["cScalePeer"+p]=this["cScalePeer"+p]||XRe(this["cScale"+p],10):this["cScalePeer"+p]=this["cScalePeer"+p]||FRe(this["cScale"+p],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleLabel"+p]=this["cScaleLabel"+p]||this.scaleLabelColor;const d=this.darkMode?-4:-1;for(let p=0;p<5;p++)this["surface"+p]=this["surface"+p]||zRe(this.mainBkg,{h:180,s:-15,l:d*(5+3*p)}),this["surfacePeer"+p]=this["surfacePeer"+p]||zRe(this.mainBkg,{h:180,s:-15,l:d*(8+3*p)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||zRe(this.primaryColor,{h:64}),this.fillType3=this.fillType3||zRe(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||zRe(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||zRe(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||zRe(this.primaryColor,{h:128}),this.fillType7=this.fillType7||zRe(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||zRe(this.primaryColor,{l:-10}),this.pie5=this.pie5||zRe(this.secondaryColor,{l:-10}),this.pie6=this.pie6||zRe(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||zRe(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||zRe(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||zRe(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||zRe(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||zRe(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||zRe(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||zRe(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||zRe(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||zRe(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||zRe(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||zRe(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||zRe(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||MRe(this.quadrant1Fill)?XRe(this.quadrant1Fill):FRe(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null==(e=this.xyChart)?void 0:e.backgroundColor)||this.background,titleColor:(null==(t=this.xyChart)?void 0:t.titleColor)||this.primaryTextColor,legendTextColor:(null==(n=this.xyChart)?void 0:n.legendTextColor)||this.primaryTextColor,xAxisTitleColor:(null==(r=this.xyChart)?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(i=this.xyChart)?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(o=this.xyChart)?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(a=this.xyChart)?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(s=this.xyChart)?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(l=this.xyChart)?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(c=this.xyChart)?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(u=this.xyChart)?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==(h=this.xyChart)?void 0:h.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?FRe(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||zRe(this.primaryColor,{h:-30}),this.git4=this.git4||zRe(this.primaryColor,{h:-60}),this.git5=this.git5||zRe(this.primaryColor,{h:-90}),this.git6=this.git6||zRe(this.primaryColor,{h:60}),this.git7=this.git7||zRe(this.primaryColor,{h:120}),this.darkMode?(this.git0=XRe(this.git0,25),this.git1=XRe(this.git1,25),this.git2=XRe(this.git2,25),this.git3=XRe(this.git3,25),this.git4=XRe(this.git4,25),this.git5=XRe(this.git5,25),this.git6=XRe(this.git6,25),this.git7=XRe(this.git7,25)):(this.git0=FRe(this.git0,25),this.git1=FRe(this.git1,25),this.git2=FRe(this.git2,25),this.git3=FRe(this.git3,25),this.git4=FRe(this.git4,25),this.git5=FRe(this.git5,25),this.git6=FRe(this.git6,25),this.git7=FRe(this.git7,25)),this.gitInv0=this.gitInv0||qRe(this.git0),this.gitInv1=this.gitInv1||qRe(this.git1),this.gitInv2=this.gitInv2||qRe(this.git2),this.gitInv3=this.gitInv3||qRe(this.git3),this.gitInv4=this.gitInv4||qRe(this.git4),this.gitInv5=this.gitInv5||qRe(this.git5),this.gitInv6=this.gitInv6||qRe(this.git6),this.gitInv7=this.gitInv7||qRe(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||YRe,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ZRe}calculate(e){if("object"!=typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach(t=>{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},hRe(h,"Theme"),h),fBe=hRe(e=>{const t=new pBe;return t.calculate(e),t},"getThemeVariables"),gBe=(d=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=GRe(this.primaryColor,this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.filterColor="#000000"}updateColors(){var e,t,n,r,i,o,a,s,l,c,u,h;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||zRe(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||zRe(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||GRe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||GRe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||GRe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||GRe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||qRe(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||qRe(this.tertiaryColor),this.lineColor=this.lineColor||qRe(this.background),this.arrowheadColor=this.arrowheadColor||qRe(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?FRe(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||FRe(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||qRe(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;const d="#ECECFE",p="#E9E9F1",f=zRe(d,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||f,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||p,this.sectionBkgColor2=this.sectionBkgColor2||d,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||d,this.activeTaskBorderColor=this.activeTaskBorderColor||d,this.activeTaskBkgColor=this.activeTaskBkgColor||XRe(d,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleInv"+m]=this["cScaleInv"+m]||qRe(this["cScale"+m]);for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this.darkMode?this["cScalePeer"+m]=this["cScalePeer"+m]||XRe(this["cScale"+m],10):this["cScalePeer"+m]=this["cScalePeer"+m]||FRe(this["cScale"+m],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleLabel"+m]=this["cScaleLabel"+m]||this.scaleLabelColor;const g=this.darkMode?-4:-1;for(let m=0;m<5;m++)this["surface"+m]=this["surface"+m]||zRe(this.mainBkg,{h:180,s:-15,l:g*(5+3*m)}),this["surfacePeer"+m]=this["surfacePeer"+m]||zRe(this.mainBkg,{h:180,s:-15,l:g*(8+3*m)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||d,this.fillType1=this.fillType1||p,this.fillType2=this.fillType2||zRe(d,{h:64}),this.fillType3=this.fillType3||zRe(p,{h:64}),this.fillType4=this.fillType4||zRe(d,{h:-64}),this.fillType5=this.fillType5||zRe(p,{h:-64}),this.fillType6=this.fillType6||zRe(d,{h:128}),this.fillType7=this.fillType7||zRe(p,{h:128}),this.pie1=this.pie1||d,this.pie2=this.pie2||p,this.pie3=this.pie3||f,this.pie4=this.pie4||zRe(d,{l:-10}),this.pie5=this.pie5||zRe(p,{l:-10}),this.pie6=this.pie6||zRe(f,{l:-10}),this.pie7=this.pie7||zRe(d,{h:60,l:-10}),this.pie8=this.pie8||zRe(d,{h:-60,l:-10}),this.pie9=this.pie9||zRe(d,{h:120,l:0}),this.pie10=this.pie10||zRe(d,{h:60,l:-20}),this.pie11=this.pie11||zRe(d,{h:-60,l:-20}),this.pie12=this.pie12||zRe(d,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||d,this.quadrant2Fill=this.quadrant2Fill||zRe(d,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||zRe(d,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||zRe(d,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||zRe(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||zRe(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||zRe(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||MRe(this.quadrant1Fill)?XRe(this.quadrant1Fill):FRe(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null==(e=this.xyChart)?void 0:e.backgroundColor)||this.background,titleColor:(null==(t=this.xyChart)?void 0:t.titleColor)||this.primaryTextColor,legendTextColor:(null==(n=this.xyChart)?void 0:n.legendTextColor)||this.primaryTextColor,xAxisTitleColor:(null==(r=this.xyChart)?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(i=this.xyChart)?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(o=this.xyChart)?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(a=this.xyChart)?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(s=this.xyChart)?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(l=this.xyChart)?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(c=this.xyChart)?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(u=this.xyChart)?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==(h=this.xyChart)?void 0:h.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||d,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?FRe(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||d,this.git1=this.git1||p,this.git2=this.git2||f,this.git3=this.git3||zRe(d,{h:-30}),this.git4=this.git4||zRe(d,{h:-60}),this.git5=this.git5||zRe(d,{h:-90}),this.git6=this.git6||zRe(d,{h:60}),this.git7=this.git7||zRe(d,{h:120}),this.darkMode?(this.git0=XRe(this.git0,25),this.git1=XRe(this.git1,25),this.git2=XRe(this.git2,25),this.git3=XRe(this.git3,25),this.git4=XRe(this.git4,25),this.git5=XRe(this.git5,25),this.git6=XRe(this.git6,25),this.git7=XRe(this.git7,25)):(this.git0=FRe(this.git0,25),this.git1=FRe(this.git1,25),this.git2=FRe(this.git2,25),this.git3=FRe(this.git3,25),this.git4=FRe(this.git4,25),this.git5=FRe(this.git5,25),this.git6=FRe(this.git6,25),this.git7=FRe(this.git7,25)),this.gitInv0=this.gitInv0||qRe(this.git0),this.gitInv1=this.gitInv1||qRe(this.git1),this.gitInv2=this.gitInv2||qRe(this.git2),this.gitInv3=this.gitInv3||qRe(this.git3),this.gitInv4=this.gitInv4||qRe(this.git4),this.gitInv5=this.gitInv5||qRe(this.git5),this.gitInv6=this.gitInv6||qRe(this.git6),this.gitInv7=this.gitInv7||qRe(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLineColor=this.commitLineColor??"#BDBCCC",this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.fontWeight=600,this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||YRe,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ZRe}calculate(e){if("object"!=typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach(t=>{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},hRe(d,"Theme"),d),mBe=hRe(e=>{const t=new gBe;return t.calculate(e),t},"getThemeVariables"),OBe=(p=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=XRe(this.primaryColor,16),this.tertiaryColor=zRe(this.primaryColor,{h:-160}),this.primaryBorderColor=qRe(this.background),this.secondaryBorderColor=GRe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=GRe(this.tertiaryColor,this.darkMode),this.primaryTextColor=qRe(this.primaryColor),this.secondaryTextColor=qRe(this.secondaryColor),this.tertiaryTextColor=qRe(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=XRe(qRe("#323D47"),10),this.border1="#ccc",this.border2=IRe(255,255,255,.25),this.arrowheadColor=qRe(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.filterColor="#FFFFFF"}updateColors(){var e,t,n,r,i,o,a,s,l,c,u,h;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||zRe(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||zRe(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||GRe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||GRe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||GRe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||GRe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||qRe(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||qRe(this.tertiaryColor),this.lineColor=this.lineColor||qRe(this.background),this.arrowheadColor=this.arrowheadColor||qRe(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?FRe(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||FRe(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||qRe(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.rootLabelColor="#FFFFFF",this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||XRe(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleInv"+p]=this["cScaleInv"+p]||qRe(this["cScale"+p]);for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this.darkMode?this["cScalePeer"+p]=this["cScalePeer"+p]||XRe(this["cScale"+p],10):this["cScalePeer"+p]=this["cScalePeer"+p]||FRe(this["cScale"+p],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleLabel"+p]=FRe(this["cScale"+p],75);const d=this.darkMode?-4:-1;for(let p=0;p<5;p++)this["surface"+p]=this["surface"+p]||zRe(this.mainBkg,{h:180,s:-15,l:d*(5+3*p)}),this["surfacePeer"+p]=this["surfacePeer"+p]||zRe(this.mainBkg,{h:180,s:-15,l:d*(8+3*p)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||zRe(this.primaryColor,{h:64}),this.fillType3=this.fillType3||zRe(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||zRe(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||zRe(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||zRe(this.primaryColor,{h:128}),this.fillType7=this.fillType7||zRe(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||zRe(this.primaryColor,{l:-10}),this.pie5=this.pie5||zRe(this.secondaryColor,{l:-10}),this.pie6=this.pie6||zRe(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||zRe(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||zRe(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||zRe(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||zRe(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||zRe(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||zRe(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||zRe(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||zRe(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||zRe(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||zRe(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||zRe(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||zRe(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||MRe(this.quadrant1Fill)?XRe(this.quadrant1Fill):FRe(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null==(e=this.xyChart)?void 0:e.backgroundColor)||this.background,titleColor:(null==(t=this.xyChart)?void 0:t.titleColor)||this.primaryTextColor,legendTextColor:(null==(n=this.xyChart)?void 0:n.legendTextColor)||this.primaryTextColor,xAxisTitleColor:(null==(r=this.xyChart)?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(i=this.xyChart)?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(o=this.xyChart)?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(a=this.xyChart)?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(s=this.xyChart)?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(l=this.xyChart)?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(c=this.xyChart)?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(u=this.xyChart)?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==(h=this.xyChart)?void 0:h.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?FRe(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||zRe(this.primaryColor,{h:-30}),this.git4=this.git4||zRe(this.primaryColor,{h:-60}),this.git5=this.git5||zRe(this.primaryColor,{h:-90}),this.git6=this.git6||zRe(this.primaryColor,{h:60}),this.git7=this.git7||zRe(this.primaryColor,{h:120}),this.darkMode?(this.git0=XRe(this.git0,25),this.git1=XRe(this.git1,25),this.git2=XRe(this.git2,25),this.git3=XRe(this.git3,25),this.git4=XRe(this.git4,25),this.git5=XRe(this.git5,25),this.git6=XRe(this.git6,25),this.git7=XRe(this.git7,25)):(this.git0=FRe(this.git0,25),this.git1=FRe(this.git1,25),this.git2=FRe(this.git2,25),this.git3=FRe(this.git3,25),this.git4=FRe(this.git4,25),this.git5=FRe(this.git5,25),this.git6=FRe(this.git6,25),this.git7=FRe(this.git7,25)),this.gitInv0=this.gitInv0||qRe(this.git0),this.gitInv1=this.gitInv1||qRe(this.git1),this.gitInv2=this.gitInv2||qRe(this.git2),this.gitInv3=this.gitInv3||qRe(this.git3),this.gitInv4=this.gitInv4||qRe(this.git4),this.gitInv5=this.gitInv5||qRe(this.git5),this.gitInv6=this.gitInv6||qRe(this.git6),this.gitInv7=this.gitInv7||qRe(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.fontWeight=600,this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||YRe,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ZRe}calculate(e){if("object"!=typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach(t=>{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},hRe(p,"Theme"),p),ABe={base:{getThemeVariables:KRe},dark:{getThemeVariables:eBe},default:{getThemeVariables:nBe},forest:{getThemeVariables:iBe},neutral:{getThemeVariables:aBe},neo:{getThemeVariables:lBe},"neo-dark":{getThemeVariables:uBe},redux:{getThemeVariables:dBe},"redux-dark":{getThemeVariables:fBe},"redux-color":{getThemeVariables:mBe},"redux-dark-color":{getThemeVariables:hRe(e=>{const t=new OBe;return t.calculate(e),t},"getThemeVariables")}},yBe={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},swimlane:{useMaxWidth:!0,lineHops:"arc",ignoreCrossLaneEdges:!0,optimizeRanksByCrossings:!0,automaticLaneOrdering:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75,donutHole:0,legendPosition:"right",highlightSlice:""},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,showLegend:!0,legendFontSize:14,legendPadding:10,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1,showIcons:!1,defaultIconPack:"",filenameIcons:{},extensionIcons:{}},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500,seed:1},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},cynefin:{useMaxWidth:!0,width:800,height:600,padding:40,showDomainDescriptions:!0,boundaryAmplitude:8,seed:0},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},vBe={...yBe,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",nodePlacementAlignment:"NONE",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES",keepEntryNodeOnTop:!1},themeCSS:void 0,themeVariables:ABe.default.getThemeVariables(),sequence:{...yBe.sequence,messageFont:hRe(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:hRe(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:hRe(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{defaultRenderer:"dagre-wrapper",hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...yBe.gantt,tickInterval:void 0,useWidth:void 0},c4:{...yBe.c4,useWidth:void 0,personFont:hRe(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...yBe.flowchart,inheritDir:!1},external_personFont:hRe(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:hRe(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:hRe(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:hRe(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:hRe(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:hRe(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:hRe(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:hRe(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:hRe(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:hRe(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:hRe(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:hRe(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:hRe(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:hRe(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:hRe(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:hRe(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:hRe(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:hRe(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:hRe(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:hRe(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:hRe(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...yBe.pie,useWidth:984},xyChart:{...yBe.xyChart,useWidth:void 0},requirement:{...yBe.requirement,useWidth:void 0},packet:{...yBe.packet},eventmodeling:{...yBe.eventmodeling},treeView:{...yBe.treeView,useWidth:void 0},radar:{...yBe.radar},railroad:{...yBe.railroad,fontSize:void 0,fontFamily:void 0,terminalFill:void 0,terminalStroke:void 0,terminalTextColor:void 0,nonTerminalFill:void 0,nonTerminalStroke:void 0,nonTerminalTextColor:void 0,lineColor:void 0,markerFill:void 0,commentFill:void 0,commentStroke:void 0,commentTextColor:void 0,specialFill:void 0,specialStroke:void 0,ruleNameColor:void 0},ishikawa:{...yBe.ishikawa},sankey:{...yBe.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...yBe.venn},cynefin:{...yBe.cynefin}},bBe=hRe((e,t="")=>Object.keys(e).reduce((n,r)=>Array.isArray(e[r])?n:"object"==typeof e[r]&&null!==e[r]?[...n,t+r,...bBe(e[r],"")]:[...n,t+r],[]),"keyify"),xBe=new Set(bBe(vBe,"")),wBe=vBe,kBe={nodeColors:/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,filenameIcons:/^[\w-]+(?::[\w-]+)?$/,extensionIcons:/^[\w-]+(?::[\w-]+)?$/},SBe=hRe((e,t)=>{for(const n of Object.keys(e)){const r=e[n];(n.startsWith("__")||n.includes("proto")||n.includes("constr")||"string"!=typeof r||!t.test(r))&&(ORe.debug("sanitize deleting dictionary entry:",n,r),delete e[n])}},"sanitizeDictionaryConfig"),TBe=hRe(e=>{if(ORe.debug("sanitizeDirective called with",e),"object"==typeof e&&null!=e)if(Array.isArray(e))e.forEach(e=>TBe(e));else{for(const t of Object.keys(e)){if(ORe.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!xBe.has(t)||null==e[t]){ORe.debug("sanitize deleting key: ",t),delete e[t];continue}if("object"==typeof e[t]){const n=kBe[t];n?SBe(e[t],n):(ORe.debug("sanitizing object",t),TBe(e[t]));continue}const n=["themeCSS","fontFamily","altFontFamily"];for(const r of n)t.includes(r)&&(ORe.debug("sanitizing css option",t),e[t]=$Be(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const n=e.themeVariables[t];(null==n?void 0:n.match)&&!n.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}ORe.debug("After sanitization",e)}},"sanitizeDirective"),$Be=hRe(e=>{let t=0,n=0;for(const r of e){if(t<n)return"{ /* ERROR: Unbalanced CSS */ }";"{"===r?t++:"}"===r&&n++}return t!==n?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss"),_Be=Object.freeze(wBe),CBe=hRe(e=>!1!==e&&!["false","null","0"].includes(String(e).trim().toLowerCase()),"evaluate"),QBe=jRe({},_Be),PBe=[],EBe=jRe({},_Be),RBe=hRe((e,t)=>{let n=jRe({},e),r={};for(const i of t)XBe(i),r=jRe(r,i);if(n=jRe(n,r),r.theme&&r.theme in ABe){const e=jRe({},VRe),t=jRe(e.themeVariables||{},r.themeVariables);n.theme&&n.theme in ABe&&(n.themeVariables=ABe[n.theme].getThemeVariables(t))}return WBe(EBe=n),EBe},"updateCurrentConfig"),BBe=hRe(e=>(QBe=jRe({},_Be),QBe=jRe(QBe,e),e.theme&&ABe[e.theme]&&(QBe.themeVariables=ABe[e.theme].getThemeVariables(e.themeVariables)),RBe(QBe,PBe),QBe),"setSiteConfig"),IBe=hRe(e=>{VRe=jRe({},e)},"saveConfigFromInitialize"),LBe=hRe(e=>(QBe=jRe(QBe,e),RBe(QBe,PBe),QBe),"updateSiteConfig"),DBe=hRe(()=>jRe({},QBe),"getSiteConfig"),MBe=hRe(e=>(RBe(EBe,[e]),NBe()),"setConfig"),NBe=hRe(()=>jRe({},EBe),"getConfig"),XBe=hRe(e=>{e&&(["secure",...QBe.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(ORe.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{"string"==typeof e[t]&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],"object"==typeof e[t]&&XBe(e[t])}))},"sanitize"),FBe=hRe(e=>{var t;TBe(e),e.fontFamily&&!(null==(t=e.themeVariables)?void 0:t.fontFamily)&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),PBe.push(e),RBe(QBe,PBe)},"addDirective"),UBe=hRe((e=QBe)=>{RBe(e,PBe=[])},"reset"),zBe={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},qBe={},VBe=hRe(e=>{qBe[e]||(ORe.warn(zBe[e]),qBe[e]=!0)},"issueWarning"),WBe=hRe(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&VBe("LAZY_LOAD_DEPRECATED")},"checkConfig"),jBe=hRe(()=>{let e={};VRe&&(e=jRe(e,VRe));for(const t of PBe)e=jRe(e,t);return e},"getUserDefinedConfig"),YBe=hRe(e=>{var t,n;return null!=(null==(t=e.flowchart)?void 0:t.htmlLabels)&&VBe("FLOWCHART_HTML_LABELS_DEPRECATED"),CBe(e.htmlLabels??(null==(n=e.flowchart)?void 0:n.htmlLabels)??!0)},"getEffectiveHtmlLabels"),ZBe=/^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s,GBe=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,HBe=/\s*%%.*\n/gm,KBe=(f=class extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}},hRe(f,"UnknownDiagramError"),f),JBe={},eIe=hRe(function(e,t){e=e.replace(ZBe,"").replace(GBe,"").replace(HBe,"\n");for(const[n,{detector:r}]of Object.entries(JBe)){if(r(e,t))return n}throw new KBe(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),tIe=hRe((...e)=>{for(const{id:t,detector:n,loader:r}of e)nIe(t,n,r)},"registerLazyLoadedDiagrams"),nIe=hRe((e,t,n)=>{JBe[e]&&ORe.warn(`Detector with key ${e} already exists. Overwriting.`),JBe[e]={detector:t,loader:n},ORe.debug(`Detector with key ${e} added${n?" with loader":""}`)},"addDetector"),rIe=hRe(e=>JBe[e].loader,"getDiagramLoader"),iIe=/<br\s*\/?>/gi,oIe=hRe(e=>{if(!e)return[""];return gIe(e).replace(/\\n/g,"#br#").split("#br#")},"getRows"),aIe=(()=>{let e=!1;return()=>{e||(sIe(),e=!0)}})();function sIe(){const e="data-temp-href-target";XL.addHook("beforeSanitizeAttributes",t=>{"A"===t.tagName&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),XL.addHook("afterSanitizeAttributes",t=>{"A"===t.tagName&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),"_blank"===t.getAttribute("target")&&t.setAttribute("rel","noopener"))})}hRe(sIe,"setupDompurifyHooks");var lIe=hRe(e=>{aIe();return XL.sanitize(e)},"removeScript"),cIe=hRe((e,t)=>{if(YBe(t)){const n=t.securityLevel;"antiscript"===n||"strict"===n||"sandbox"===n?e=lIe(e):"loose"!==n&&(e=(e=(e=gIe(e)).replace(/</g,"<").replace(/>/g,">")).replace(/=/g,"="),e=fIe(e))}return e},"sanitizeMore"),uIe=hRe((e,t)=>e?e=t.dompurifyConfig?XL.sanitize(cIe(e,t),t.dompurifyConfig).toString():XL.sanitize(cIe(e,t),{FORBID_TAGS:["style"]}).toString():e,"sanitizeText"),hIe=hRe((e,t)=>"string"==typeof e?uIe(e,t):e.flat().map(e=>uIe(e,t)),"sanitizeTextOrArray"),dIe=hRe(e=>iIe.test(e),"hasBreaks"),pIe=hRe(e=>e.split(iIe),"splitBreaks"),fIe=hRe(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),gIe=hRe(e=>e.replace(iIe,"#br#"),"breakToPlaceholder"),mIe=hRe(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),OIe=hRe(function(...e){const t=e.filter(e=>!isNaN(e));return Math.max(...t)},"getMax"),AIe=hRe(function(...e){const t=e.filter(e=>!isNaN(e));return Math.min(...t)},"getMin"),yIe=hRe(function(e){const t=e.split(/(,)/),n=[];for(let r=0;r<t.length;r++){let e=t[r];if(","===e&&r>0&&r+1<t.length){const i=t[r-1],o=t[r+1];bIe(i,o)&&(e=i+","+o,r++,n.pop())}n.push(xIe(e))}return n.join("")},"parseGenericTypes"),vIe=hRe((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),bIe=hRe((e,t)=>{const n=vIe(e,"~"),r=vIe(t,"~");return 1===n&&1===r},"shouldCombineSets"),xIe=hRe(e=>{const t=vIe(e,"~");let n=!1;if(t<=1)return e;t%2!=0&&e.startsWith("~")&&(e=e.substring(1),n=!0);const r=[...e];let i=r.indexOf("~"),o=r.lastIndexOf("~");for(;-1!==i&&-1!==o&&i!==o;)r[i]="<",r[o]=">",i=r.indexOf("~"),o=r.lastIndexOf("~");return n&&r.unshift("~"),r.join("")},"processSet"),wIe=hRe(()=>void 0!==window.MathMLElement,"isMathMLSupported"),kIe=/\$\$(.*?)\$\$/g,SIe=hRe(e=>{var t;return((null==(t=e.match(kIe))?void 0:t.length)??0)>0},"hasKatex"),TIe=hRe(async(e,t)=>{const n=document.createElement("div");n.innerHTML=await _Ie(e,t),n.id="katex-temp",n.style.visibility="hidden",n.style.position="absolute",n.style.top="0";const r=document.querySelector("body");null==r||r.insertAdjacentElement("beforeend",n);const i={width:n.clientWidth,height:n.clientHeight};return n.remove(),i},"calculateMathMLDimensions"),$Ie=hRe(async(e,t)=>{if(!SIe(e))return e;if(!(wIe()||t.legacyMathML||t.forceLegacyMathML))return e.replace(kIe,"MathML is unsupported in this environment.");{const{default:n}=await Pf(async()=>{const{default:e}=await Promise.resolve().then(()=>Pbt);return{default:e}},void 0,import.meta.url),r=t.forceLegacyMathML||!wIe()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(iIe).map(e=>SIe(e)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>`:`<div>${e}</div>`).join("").replace(kIe,(e,t)=>n.renderToString(t,{throwOnError:!0,displayMode:!0,output:r}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),_Ie=hRe(async(e,t)=>uIe(await $Ie(e,t),t),"renderKatexSanitized"),CIe={getRows:oIe,sanitizeText:uIe,sanitizeTextOrArray:hIe,hasBreaks:dIe,splitBreaks:pIe,lineBreakRegex:iIe,removeScript:lIe,getUrl:mIe,evaluate:CBe,getMax:OIe,getMin:AIe},QIe=hRe(function(e,t){for(let n of t)e.attr(n[0],n[1])},"d3Attrs"),PIe=hRe(function(e,t,n){let r=new Map;return n?(r.set("width","100%"),r.set("style",`max-width: ${t}px;`)):(r.set("height",e),r.set("width",t)),r},"calculateSvgSizeAttrs"),EIe=hRe(function(e,t,n,r){const i=PIe(t,n,r);QIe(e,i)},"configureSvgSize"),RIe=hRe(function(e,t,n,r){const i=t.node().getBBox(),o=i.width,a=i.height;ORe.info(`SVG bounds: ${o}x${a}`,i);let s=0,l=0;ORe.info(`Graph bounds: ${s}x${l}`,e),s=o+2*n,l=a+2*n,ORe.info(`Calculated bounds: ${s}x${l}`),EIe(t,l,s,r);const c=`${i.x-n} ${i.y-n} ${i.width+2*n} ${i.height+2*n}`;t.attr("viewBox",c)},"setupGraphViewbox"),BIe={};function IIe(e){return[...e.cssRules].map(e=>e.cssText).join("\n")}hRe(IIe,"cssStyleSheetToString");var LIe=hRe((e,t,n,r)=>{let i="";return e in BIe&&BIe[e]?i=BIe[e]({...n,svgId:r}):ORe.warn(`No theme found for ${e}`),`& {\n font-family: ${n.fontFamily};\n font-size: ${n.fontSize};\n fill: ${n.textColor}\n }\n @keyframes edge-animation-frame {\n from {\n stroke-dashoffset: 0;\n }\n }\n @keyframes dash {\n to {\n stroke-dashoffset: 0;\n }\n }\n & .edge-animation-slow {\n stroke-dasharray: 9,5 !important;\n stroke-dashoffset: 900;\n animation: dash 50s linear infinite;\n stroke-linecap: round;\n }\n & .edge-animation-fast {\n stroke-dasharray: 9,5 !important;\n stroke-dashoffset: 900;\n animation: dash 20s linear infinite;\n stroke-linecap: round;\n }\n /* Classes common for multiple diagrams */\n\n & .error-icon {\n fill: ${n.errorBkgColor};\n }\n & .error-text {\n fill: ${n.errorTextColor};\n stroke: ${n.errorTextColor};\n }\n\n & .edge-thickness-normal {\n stroke-width: ${n.strokeWidth??1}px;\n }\n & .edge-thickness-thick {\n stroke-width: 3.5px\n }\n & .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n & .edge-thickness-invisible {\n stroke-width: 0;\n fill: none;\n }\n & .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n & .marker {\n fill: ${n.lineColor};\n stroke: ${n.lineColor};\n }\n & .marker.cross {\n stroke: ${n.lineColor};\n }\n\n & svg {\n font-family: ${n.fontFamily};\n font-size: ${n.fontSize};\n }\n & p {\n margin: 0\n }\n\n ${i}\n .node .neo-node {\n stroke: ${n.nodeBorder};\n }\n\n [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {\n stroke: ${n.useGradient?"url("+r+"-gradient)":n.nodeBorder};\n filter: ${n.dropShadow?n.dropShadow.replace("url(#drop-shadow)",`url(${r}-drop-shadow)`):"none"};\n }\n [data-look="neo"].swimlane.cluster rect {\n filter: none;\n }\n\n\n [data-look="neo"].node path {\n stroke: ${n.useGradient?"url("+r+"-gradient)":n.nodeBorder};\n stroke-width: ${n.strokeWidth??1}px;\n }\n\n [data-look="neo"].node .outer-path {\n filter: ${n.dropShadow?n.dropShadow.replace("url(#drop-shadow)",`url(${r}-drop-shadow)`):"none"};\n }\n\n [data-look="neo"].node .neo-line path {\n stroke: ${n.nodeBorder};\n filter: none;\n }\n\n [data-look="neo"].node circle{\n stroke: ${n.useGradient?"url("+r+"-gradient)":n.nodeBorder};\n filter: ${n.dropShadow?n.dropShadow.replace("url(#drop-shadow)",`url(${r}-drop-shadow)`):"none"};\n }\n\n [data-look="neo"].node circle .state-start{\n fill: #000000;\n }\n\n [data-look="neo"].icon-shape .icon {\n fill: ${n.useGradient?"url("+r+"-gradient)":n.nodeBorder};\n filter: ${n.dropShadow?n.dropShadow.replace("url(#drop-shadow)",`url(${r}-drop-shadow)`):"none"};\n }\n\n [data-look="neo"].icon-shape .icon-neo path {\n stroke: ${n.useGradient?"url("+r+"-gradient)":n.nodeBorder};\n filter: ${n.dropShadow?n.dropShadow.replace("url(#drop-shadow)",`url(${r}-drop-shadow)`):"none"};\n }\n\n ${t}\n`},"getStyles"),DIe=hRe((e,t)=>{void 0!==t&&(BIe[e]=t)},"addStylesForDiagram"),MIe=LIe,NIe={};dRe(NIe,{clear:()=>qIe,getAccDescription:()=>YIe,getAccTitle:()=>WIe,getDiagramTitle:()=>GIe,setAccDescription:()=>jIe,setAccTitle:()=>VIe,setDiagramTitle:()=>ZIe});var XIe="",FIe="",UIe="",zIe=hRe(e=>uIe(e,NBe()),"sanitizeText"),qIe=hRe(()=>{XIe="",UIe="",FIe=""},"clear"),VIe=hRe(e=>{XIe=zIe(e).replace(/^\s+/g,"")},"setAccTitle"),WIe=hRe(()=>XIe,"getAccTitle"),jIe=hRe(e=>{UIe=zIe(e).replace(/\n\s+/g,"\n")},"setAccDescription"),YIe=hRe(()=>UIe,"getAccDescription"),ZIe=hRe(e=>{FIe=zIe(e)},"setDiagramTitle"),GIe=hRe(()=>FIe,"getDiagramTitle"),HIe=ORe,KIe=ARe,JIe=NBe,eLe=MBe,tLe=_Be,nLe=hRe(e=>uIe(e,JIe()),"sanitizeText"),rLe=RIe,iLe=hRe(()=>NIe,"getCommonDb"),oLe={},aLe=hRe((e,t,n)=>{var r;oLe[e]&&HIe.warn(`Diagram with id ${e} already registered. Overwriting.`),oLe[e]=t,n&&nIe(e,n),DIe(e,t.styles),null==(r=t.injectUtils)||r.call(t,HIe,KIe,JIe,nLe,rLe,iLe(),()=>{})},"registerDiagram"),sLe=hRe(e=>{if(e in oLe)return oLe[e];throw new lLe(e)},"getDiagram"),lLe=(g=class extends Error{constructor(e){super(`Diagram ${e} not found.`)}},hRe(g,"DiagramNotFoundError"),g);function cLe(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function uLe(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function hLe(e){let t,n,r;function i(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<0?i=t+1:o=t}while(i<o)}return i}return 2!==e.length?(t=cLe,n=(t,n)=>cLe(e(t),n),r=(t,n)=>e(t)-n):(t=e===cLe||e===uLe?e:dLe,n=e,r=e),{left:i,center:function(e,t,n=0,o=e.length){const a=i(e,t,n,o-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<=0?i=t+1:o=t}while(i<o)}return i}}}function dLe(){return 0}const pLe=hLe(cLe).right;hLe(function(e){return null===e?NaN:+e}).center;class fLe extends Map{constructor(e,t=mLe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[n,r]of e)this.set(n,r)}get(e){return super.get(gLe(this,e))}has(e){return super.has(gLe(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);e.has(r)&&(n=e.get(r),e.delete(r));return n}(this,e))}}function gLe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function mLe(e){return null!==e&&"object"==typeof e?e.valueOf():e}const OLe=Math.sqrt(50),ALe=Math.sqrt(10),yLe=Math.sqrt(2);function vLe(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=OLe?10:o>=ALe?5:o>=yLe?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/a,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*a,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?vLe(e,t,2*n):[s,l,c]}function bLe(e,t,n){return vLe(e=+e,t=+t,n=+n)[2]}function xLe(e,t,n){n=+n;const r=(t=+t)<(e=+e),i=r?bLe(t,e,n):bLe(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function wLe(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function kLe(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function SLe(e){return e}var TLe=1e-6;function $Le(e){return"translate("+e+",0)"}function _Le(e){return"translate(0,"+e+")"}function CLe(e){return t=>+e(t)}function QLe(e,t){return t=Math.max(0,e.bandwidth()-2*t)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function PLe(){return!this.__axis}function ELe(e,t){var n=[],r=null,i=null,o=6,a=6,s=3,l="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,c=1===e||4===e?-1:1,u=4===e||2===e?"x":"y",h=1===e||3===e?$Le:_Le;function d(d){var p=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,f=null==i?t.tickFormat?t.tickFormat.apply(t,n):SLe:i,g=Math.max(o,0)+s,m=t.range(),O=+m[0]+l,A=+m[m.length-1]+l,y=(t.bandwidth?QLe:CLe)(t.copy(),l),v=d.selection?d.selection():d,b=v.selectAll(".domain").data([null]),x=v.selectAll(".tick").data(p,t).order(),w=x.exit(),k=x.enter().append("g").attr("class","tick"),S=x.select("line"),T=x.select("text");b=b.merge(b.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(k),S=S.merge(k.append("line").attr("stroke","currentColor").attr(u+"2",c*o)),T=T.merge(k.append("text").attr("fill","currentColor").attr(u,c*g).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),d!==v&&(b=b.transition(d),x=x.transition(d),S=S.transition(d),T=T.transition(d),w=w.transition(d).attr("opacity",TLe).attr("transform",function(e){return isFinite(e=y(e))?h(e+l):this.getAttribute("transform")}),k.attr("opacity",TLe).attr("transform",function(e){var t=this.parentNode.__axis;return h((t&&isFinite(t=t(e))?t:y(e))+l)})),w.remove(),b.attr("d",4===e||2===e?a?"M"+c*a+","+O+"H"+l+"V"+A+"H"+c*a:"M"+l+","+O+"V"+A:a?"M"+O+","+c*a+"V"+l+"H"+A+"V"+c*a:"M"+O+","+l+"H"+A),x.attr("opacity",1).attr("transform",function(e){return h(y(e)+l)}),S.attr(u+"2",c*o),T.attr(u,c*g).text(f),v.filter(PLe).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),v.each(function(){this.__axis=y})}return d.scale=function(e){return arguments.length?(t=e,d):t},d.ticks=function(){return n=Array.from(arguments),d},d.tickArguments=function(e){return arguments.length?(n=null==e?[]:Array.from(e),d):n.slice()},d.tickValues=function(e){return arguments.length?(r=null==e?null:Array.from(e),d):r&&r.slice()},d.tickFormat=function(e){return arguments.length?(i=e,d):i},d.tickSize=function(e){return arguments.length?(o=a=+e,d):o},d.tickSizeInner=function(e){return arguments.length?(o=+e,d):o},d.tickSizeOuter=function(e){return arguments.length?(a=+e,d):a},d.tickPadding=function(e){return arguments.length?(s=+e,d):s},d.offset=function(e){return arguments.length?(l=+e,d):l},d}var RLe={value:()=>{}};function BLe(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new ILe(r)}function ILe(e){this._=e}function LLe(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function DLe(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=RLe,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}ILe.prototype=BLe.prototype={constructor:ILe,on:function(e,t){var n,r,i=this._,o=(r=i,(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}})),a=-1,s=o.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++a<s;)if(n=(e=o[a]).type)i[n]=DLe(i[n],e.name,t);else if(null==t)for(n in i)i[n]=DLe(i[n],e.name,null);return this}for(;++a<s;)if((n=(e=o[a]).type)&&(n=LLe(i[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new ILe(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=0,n=(r=this._[e]).length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};var MLe="http://www.w3.org/1999/xhtml";const NLe={svg:"http://www.w3.org/2000/svg",xhtml:MLe,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function XLe(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),NLe.hasOwnProperty(t)?{space:NLe[t],local:e}:e}function FLe(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===MLe&&t.documentElement.namespaceURI===MLe?t.createElement(e):t.createElementNS(n,e)}}function ULe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function zLe(e){var t=XLe(e);return(t.local?ULe:FLe)(t)}function qLe(){}function VLe(e){return null==e?qLe:function(){return this.querySelector(e)}}function WLe(){return[]}function jLe(e){return null==e?WLe:function(){return this.querySelectorAll(e)}}function YLe(e){return function(){return null==(t=e.apply(this,arguments))?[]:Array.isArray(t)?t:Array.from(t);var t}}function ZLe(e){return function(){return this.matches(e)}}function GLe(e){return function(t){return t.matches(e)}}var HLe=Array.prototype.find;function KLe(){return this.firstElementChild}var JLe=Array.prototype.filter;function eDe(){return Array.from(this.children)}function tDe(e){return new Array(e.length)}function nDe(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function rDe(e,t,n,r,i,o){for(var a,s=0,l=t.length,c=o.length;s<c;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new nDe(e,o[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function iDe(e,t,n,r,i,o,a){var s,l,c,u=new Map,h=t.length,d=o.length,p=new Array(h);for(s=0;s<h;++s)(l=t[s])&&(p[s]=c=a.call(l,l.__data__,s,t)+"",u.has(c)?i[s]=l:u.set(c,l));for(s=0;s<d;++s)c=a.call(e,o[s],s,o)+"",(l=u.get(c))?(r[s]=l,l.__data__=o[s],u.delete(c)):n[s]=new nDe(e,o[s]);for(s=0;s<h;++s)(l=t[s])&&u.get(p[s])===l&&(i[s]=l)}function oDe(e){return e.__data__}function aDe(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function sDe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function lDe(e){return function(){this.removeAttribute(e)}}function cDe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function uDe(e,t){return function(){this.setAttribute(e,t)}}function hDe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function dDe(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function pDe(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function fDe(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function gDe(e){return function(){this.style.removeProperty(e)}}function mDe(e,t,n){return function(){this.style.setProperty(e,t,n)}}function ODe(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function ADe(e,t){return e.style.getPropertyValue(t)||fDe(e).getComputedStyle(e,null).getPropertyValue(t)}function yDe(e){return function(){delete this[e]}}function vDe(e,t){return function(){this[e]=t}}function bDe(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function xDe(e){return e.trim().split(/^|\s+/)}function wDe(e){return e.classList||new kDe(e)}function kDe(e){this._node=e,this._names=xDe(e.getAttribute("class")||"")}function SDe(e,t){for(var n=wDe(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function TDe(e,t){for(var n=wDe(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function $De(e){return function(){SDe(this,e)}}function _De(e){return function(){TDe(this,e)}}function CDe(e,t){return function(){(t.apply(this,arguments)?SDe:TDe)(this,e)}}function QDe(){this.textContent=""}function PDe(e){return function(){this.textContent=e}}function EDe(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function RDe(){this.innerHTML=""}function BDe(e){return function(){this.innerHTML=e}}function IDe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function LDe(){this.nextSibling&&this.parentNode.appendChild(this)}function DDe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function MDe(){return null}function NDe(){var e=this.parentNode;e&&e.removeChild(this)}function XDe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function FDe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function UDe(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function zDe(e,t,n){return function(){var r,i=this.__on,o=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(i)for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=t);this.addEventListener(e.type,o,n),r={type:e.type,name:e.name,value:t,listener:o,options:n},i?i.push(r):this.__on=[r]}}function qDe(e,t,n){var r=fDe(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function VDe(e,t){return function(){return qDe(this,e,t)}}function WDe(e,t){return function(){return qDe(this,e,t.apply(this,arguments))}}nDe.prototype={constructor:nDe,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},kDe.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var jDe=[null];function YDe(e,t){this._groups=e,this._parents=t}function ZDe(){return new YDe([[document.documentElement]],jDe)}function GDe(e){return"string"==typeof e?new YDe([[document.querySelector(e)]],[document.documentElement]):new YDe([[e]],jDe)}function HDe(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function KDe(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function JDe(){}YDe.prototype=ZDe.prototype={constructor:YDe,select:function(e){"function"!=typeof e&&(e=VLe(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=t[i],l=s.length,c=r[i]=new Array(l),u=0;u<l;++u)(o=s[u])&&(a=e.call(o,o.__data__,u,s))&&("__data__"in o&&(a.__data__=o.__data__),c[u]=a);return new YDe(r,this._parents)},selectAll:function(e){e="function"==typeof e?YLe(e):jLe(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a,s=t[o],l=s.length,c=0;c<l;++c)(a=s[c])&&(r.push(e.call(a,a.__data__,c,s)),i.push(a));return new YDe(r,i)},selectChild:function(e){return this.select(null==e?KLe:function(e){return function(){return HLe.call(this.children,e)}}("function"==typeof e?e:GLe(e)))},selectChildren:function(e){return this.selectAll(null==e?eDe:function(e){return function(){return JLe.call(this.children,e)}}("function"==typeof e?e:GLe(e)))},filter:function(e){"function"!=typeof e&&(e=ZLe(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,l=r[i]=[],c=0;c<s;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&l.push(o);return new YDe(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,oDe);var n,r=t?iDe:rDe,i=this._parents,o=this._groups;"function"!=typeof e&&(n=e,e=function(){return n});for(var a=o.length,s=new Array(a),l=new Array(a),c=new Array(a),u=0;u<a;++u){var h=i[u],d=o[u],p=d.length,f=aDe(e.call(h,h&&h.__data__,u,i)),g=f.length,m=l[u]=new Array(g),O=s[u]=new Array(g);r(h,d,m,O,c[u]=new Array(p),f,t);for(var A,y,v=0,b=0;v<g;++v)if(A=m[v]){for(v>=b&&(b=v+1);!(y=O[b])&&++b<g;);A._next=y||null}}return(s=new YDe(s,i))._enter=l,s._exit=c,s},enter:function(){return new YDe(this._enter||this._groups.map(tDe),this._parents)},exit:function(){return new YDe(this._exit||this._groups.map(tDe),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(i=t(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var c,u=n[l],h=r[l],d=u.length,p=s[l]=new Array(d),f=0;f<d;++f)(c=u[f]||h[f])&&(p[f]=c);for(;l<i;++l)s[l]=n[l];return new YDe(s,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=sDe);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],l=s.length,c=i[o]=new Array(l),u=0;u<l;++u)(a=s[u])&&(c[u]=a);c.sort(t)}return new YDe(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let e=0;for(const t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=XLe(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?cDe:lDe:"function"==typeof t?n.local?pDe:dDe:n.local?hDe:uDe)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?gDe:"function"==typeof t?ODe:mDe)(e,t,null==n?"":n)):ADe(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?yDe:"function"==typeof t?bDe:vDe)(e,t)):this.node()[e]},classed:function(e,t){var n=xDe(e+"");if(arguments.length<2){for(var r=wDe(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?CDe:t?$De:_De)(n,t))},text:function(e){return arguments.length?this.each(null==e?QDe:("function"==typeof e?EDe:PDe)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?RDe:("function"==typeof e?IDe:BDe)(e)):this.node().innerHTML},raise:function(){return this.each(LDe)},lower:function(){return this.each(DDe)},append:function(e){var t="function"==typeof e?e:zLe(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:zLe(e),r=null==t?MDe:"function"==typeof t?t:VLe(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(NDe)},clone:function(e){return this.select(e?FDe:XDe)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=function(e){return e.trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?zDe:UDe,r=0;r<a;++r)this.each(s(o[r],t,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(r=0,l=s[c];r<a;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?WDe:VDe)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,i=e[t],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};var eMe=.7,tMe=1/eMe,nMe="\\s*([+-]?\\d+)\\s*",rMe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",iMe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",oMe=/^#([0-9a-f]{3,8})$/,aMe=new RegExp(`^rgb\\(${nMe},${nMe},${nMe}\\)$`),sMe=new RegExp(`^rgb\\(${iMe},${iMe},${iMe}\\)$`),lMe=new RegExp(`^rgba\\(${nMe},${nMe},${nMe},${rMe}\\)$`),cMe=new RegExp(`^rgba\\(${iMe},${iMe},${iMe},${rMe}\\)$`),uMe=new RegExp(`^hsl\\(${rMe},${iMe},${iMe}\\)$`),hMe=new RegExp(`^hsla\\(${rMe},${iMe},${iMe},${rMe}\\)$`),dMe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function pMe(){return this.rgb().formatHex()}function fMe(){return this.rgb().formatRgb()}function gMe(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=oMe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?mMe(t):3===n?new vMe(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?OMe(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?OMe(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=aMe.exec(e))?new vMe(t[1],t[2],t[3],1):(t=sMe.exec(e))?new vMe(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=lMe.exec(e))?OMe(t[1],t[2],t[3],t[4]):(t=cMe.exec(e))?OMe(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=uMe.exec(e))?TMe(t[1],t[2]/100,t[3]/100,1):(t=hMe.exec(e))?TMe(t[1],t[2]/100,t[3]/100,t[4]):dMe.hasOwnProperty(e)?mMe(dMe[e]):"transparent"===e?new vMe(NaN,NaN,NaN,0):null}function mMe(e){return new vMe(e>>16&255,e>>8&255,255&e,1)}function OMe(e,t,n,r){return r<=0&&(e=t=n=NaN),new vMe(e,t,n,r)}function AMe(e){return e instanceof JDe||(e=gMe(e)),e?new vMe((e=e.rgb()).r,e.g,e.b,e.opacity):new vMe}function yMe(e,t,n,r){return 1===arguments.length?AMe(e):new vMe(e,t,n,null==r?1:r)}function vMe(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function bMe(){return`#${SMe(this.r)}${SMe(this.g)}${SMe(this.b)}`}function xMe(){const e=wMe(this.opacity);return`${1===e?"rgb(":"rgba("}${kMe(this.r)}, ${kMe(this.g)}, ${kMe(this.b)}${1===e?")":`, ${e})`}`}function wMe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function kMe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function SMe(e){return((e=kMe(e))<16?"0":"")+e.toString(16)}function TMe(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new _Me(e,t,n,r)}function $Me(e){if(e instanceof _Me)return new _Me(e.h,e.s,e.l,e.opacity);if(e instanceof JDe||(e=gMe(e)),!e)return new _Me;if(e instanceof _Me)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new _Me(a,s,l,e.opacity)}function _Me(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function CMe(e){return(e=(e||0)%360)<0?e+360:e}function QMe(e){return Math.max(0,Math.min(1,e||0))}function PMe(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}HDe(JDe,gMe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:pMe,formatHex:pMe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return $Me(this).formatHsl()},formatRgb:fMe,toString:fMe}),HDe(vMe,yMe,KDe(JDe,{brighter(e){return e=null==e?tMe:Math.pow(tMe,e),new vMe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?eMe:Math.pow(eMe,e),new vMe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new vMe(kMe(this.r),kMe(this.g),kMe(this.b),wMe(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:bMe,formatHex:bMe,formatHex8:function(){return`#${SMe(this.r)}${SMe(this.g)}${SMe(this.b)}${SMe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:xMe,toString:xMe})),HDe(_Me,function(e,t,n,r){return 1===arguments.length?$Me(e):new _Me(e,t,n,null==r?1:r)},KDe(JDe,{brighter(e){return e=null==e?tMe:Math.pow(tMe,e),new _Me(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?eMe:Math.pow(eMe,e),new _Me(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new vMe(PMe(e>=240?e-240:e+120,i,r),PMe(e,i,r),PMe(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new _Me(CMe(this.h),QMe(this.s),QMe(this.l),wMe(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=wMe(this.opacity);return`${1===e?"hsl(":"hsla("}${CMe(this.h)}, ${100*QMe(this.s)}%, ${100*QMe(this.l)}%${1===e?")":`, ${e})`}`}}));const EMe=Math.PI/180,RMe=180/Math.PI,BMe=.96422,IMe=.82521,LMe=4/29,DMe=6/29,MMe=3*DMe*DMe,NMe=DMe*DMe*DMe;function XMe(e){if(e instanceof FMe)return new FMe(e.l,e.a,e.b,e.opacity);if(e instanceof jMe)return YMe(e);e instanceof vMe||(e=AMe(e));var t,n,r=VMe(e.r),i=VMe(e.g),o=VMe(e.b),a=UMe((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=UMe((.4360747*r+.3850649*i+.1430804*o)/BMe),n=UMe((.0139322*r+.0971045*i+.7141733*o)/IMe)),new FMe(116*a-16,500*(t-a),200*(a-n),e.opacity)}function FMe(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function UMe(e){return e>NMe?Math.pow(e,1/3):e/MMe+LMe}function zMe(e){return e>DMe?e*e*e:MMe*(e-LMe)}function qMe(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function VMe(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function WMe(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof jMe)return new jMe(e.h,e.c,e.l,e.opacity);if(e instanceof FMe||(e=XMe(e)),0===e.a&&0===e.b)return new jMe(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*RMe;return new jMe(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new jMe(e,t,n,null==r?1:r)}function jMe(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function YMe(e){if(isNaN(e.h))return new FMe(e.l,0,0,e.opacity);var t=e.h*EMe;return new FMe(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}HDe(FMe,function(e,t,n,r){return 1===arguments.length?XMe(e):new FMe(e,t,n,null==r?1:r)},KDe(JDe,{brighter(e){return new FMe(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new FMe(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new vMe(qMe(3.1338561*(t=BMe*zMe(t))-1.6168667*(e=1*zMe(e))-.4906146*(n=IMe*zMe(n))),qMe(-.9787684*t+1.9161415*e+.033454*n),qMe(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),HDe(jMe,WMe,KDe(JDe,{brighter(e){return new jMe(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new jMe(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return YMe(this).rgb()}}));const ZMe=e=>()=>e;function GMe(e,t){return function(n){return e+n*t}}function HMe(e){return 1===(e=+e)?KMe:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):ZMe(isNaN(t)?n:t)}}function KMe(e,t){var n=t-e;return n?GMe(e,n):ZMe(isNaN(e)?t:e)}const JMe=function e(t){var n=HMe(t);function r(e,t){var r=n((e=yMe(e)).r,(t=yMe(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=KMe(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function eNe(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}}function tNe(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=lNe(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}function nNe(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function rNe(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function iNe(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=lNe(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var oNe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,aNe=new RegExp(oNe.source,"g");function sNe(e,t){var n,r,i,o=oNe.lastIndex=aNe.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=oNe.exec(e))&&(r=aNe.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:rNe(n,r)})),o=aNe.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function lNe(e,t){var n,r,i=typeof t;return null==t||"boolean"===i?ZMe(t):("number"===i?rNe:"string"===i?(n=gMe(t))?(t=n,JMe):sNe:t instanceof gMe?JMe:t instanceof Date?nNe:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?tNe:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?iNe:rNe:eNe))(e,t)}function cNe(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var uNe,hNe=180/Math.PI,dNe={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function pNe(e,t,n,r,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*hNe,skewX:Math.atan(l)*hNe,scaleX:a,scaleY:s}}function fNe(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(o,a){var s=[],l=[];return o=e(o),a=e(a),function(e,r,i,o,a,s){if(e!==i||r!==o){var l=a.push("translate(",null,t,null,n);s.push({i:l-4,x:rNe(e,i)},{i:l-2,x:rNe(r,o)})}else(i||o)&&a.push("translate("+i+t+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,s,l),function(e,t,n,o){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:rNe(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(o.rotate,a.rotate,s,l),function(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:rNe(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(o.skewX,a.skewX,s,l),function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:rNe(e,n)},{i:s-2,x:rNe(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,l),o=a=null,function(e){for(var t,n=-1,r=l.length;++n<r;)s[(t=l[n]).i]=t.x(e);return s.join("")}}}var gNe=fNe(function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?dNe:pNe(t.a,t.b,t.c,t.d,t.e,t.f)},"px, ","px)","deg)"),mNe=fNe(function(e){return null==e?dNe:(uNe||(uNe=document.createElementNS("http://www.w3.org/2000/svg","g")),uNe.setAttribute("transform",e),(e=uNe.transform.baseVal.consolidate())?pNe((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):dNe)},", ",")",")");const ONe=(ANe=function(e,t){var n=t-e;return n?GMe(e,n>180||n<-180?n-360*Math.round(n/360):n):ZMe(isNaN(e)?t:e)},function(e,t){var n=ANe((e=WMe(e)).h,(t=WMe(t)).h),r=KMe(e.c,t.c),i=KMe(e.l,t.l),o=KMe(e.opacity,t.opacity);return function(t){return e.h=n(t),e.c=r(t),e.l=i(t),e.opacity=o(t),e+""}});var ANe,yNe,vNe,bNe=0,xNe=0,wNe=0,kNe=0,SNe=0,TNe=0,$Ne="object"==typeof performance&&performance.now?performance:Date,_Ne="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function CNe(){return SNe||(_Ne(QNe),SNe=$Ne.now()+TNe)}function QNe(){SNe=0}function PNe(){this._call=this._time=this._next=null}function ENe(e,t,n){var r=new PNe;return r.restart(e,t,n),r}function RNe(){SNe=(kNe=$Ne.now())+TNe,bNe=xNe=0;try{!function(){CNe(),++bNe;for(var e,t=yNe;t;)(e=SNe-t._time)>=0&&t._call.call(void 0,e),t=t._next;--bNe}()}finally{bNe=0,function(){var e,t,n=yNe,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:yNe=t);vNe=e,INe(r)}(),SNe=0}}function BNe(){var e=$Ne.now(),t=e-kNe;t>1e3&&(TNe-=t,kNe=e)}function INe(e){bNe||(xNe&&(xNe=clearTimeout(xNe)),e-SNe>24?(e<1/0&&(xNe=setTimeout(RNe,e-$Ne.now()-TNe)),wNe&&(wNe=clearInterval(wNe))):(wNe||(kNe=$Ne.now(),wNe=setInterval(BNe,1e3)),bNe=1,_Ne(RNe)))}function LNe(e,t,n){var r=new PNe;return t=null==t?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}PNe.prototype=ENe.prototype={constructor:PNe,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?CNe():+n)+(null==t?0:+t),this._next||vNe===this||(vNe?vNe._next=this:yNe=this,vNe=this),this._call=e,this._time=n,INe()},stop:function(){this._call&&(this._call=null,this._time=1/0,INe())}};var DNe=BLe("start","end","cancel","interrupt"),MNe=[];function NNe(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(e){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)}function a(o){var c,u,h,d;if(1!==n.state)return l();for(c in i)if((d=i[c]).name===n.name){if(3===d.state)return LNe(a);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete i[c]):+c<t&&(d.state=6,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete i[c])}if(LNe(function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(o))}),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(h=n.tween.length),c=0,u=-1;c<h;++c)(d=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(r[++u]=d);r.length=u+1}}function s(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=ENe(o,0,n.time)}(e,n,{name:t,index:r,group:i,on:DNe,tween:MNe,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function XNe(e,t){var n=UNe(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function FNe(e,t){var n=UNe(e,t);if(n.state>3)throw new Error("too late; already running");return n}function UNe(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function zNe(e,t){var n,r;return function(){var i=FNe(this,e),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a<s;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}i.tween=r}}function qNe(e,t,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=FNe(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===t){i[l]=s;break}l===c&&i.push(s)}o.tween=i}}function VNe(e,t,n){var r=e._id;return e.each(function(){var e=FNe(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return UNe(e,r).value[t]}}function WNe(e,t){var n;return("number"==typeof t?rNe:t instanceof gMe?JMe:(n=gMe(t))?(t=n,JMe):sNe)(e,t)}function jNe(e){return function(){this.removeAttribute(e)}}function YNe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ZNe(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttribute(e);return a===o?null:a===r?i:i=t(r=a,n)}}function GNe(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?i:i=t(r=a,n)}}function HNe(e,t,n){var r,i,o;return function(){var a,s,l=n(this);if(null!=l)return(a=this.getAttribute(e))===(s=l+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,l));this.removeAttribute(e)}}function KNe(e,t,n){var r,i,o;return function(){var a,s,l=n(this);if(null!=l)return(a=this.getAttributeNS(e.space,e.local))===(s=l+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,l));this.removeAttributeNS(e.space,e.local)}}function JNe(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,i)),n}return i._value=t,i}function eXe(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,i)),n}return i._value=t,i}function tXe(e,t){return function(){XNe(this,e).delay=+t.apply(this,arguments)}}function nXe(e,t){return t=+t,function(){XNe(this,e).delay=t}}function rXe(e,t){return function(){FNe(this,e).duration=+t.apply(this,arguments)}}function iXe(e,t){return t=+t,function(){FNe(this,e).duration=t}}var oXe=ZDe.prototype.constructor;function aXe(e){return function(){this.style.removeProperty(e)}}var sXe=0;function lXe(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function cXe(){return++sXe}var uXe=ZDe.prototype;lXe.prototype={constructor:lXe,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=VLe(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,l,c=r[a],u=c.length,h=o[a]=new Array(u),d=0;d<u;++d)(s=c[d])&&(l=e.call(s,s.__data__,d,c))&&("__data__"in s&&(l.__data__=s.__data__),h[d]=l,NNe(h[d],t,n,d,h,UNe(s,n)));return new lXe(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=jLe(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var l,c=r[s],u=c.length,h=0;h<u;++h)if(l=c[h]){for(var d,p=e.call(l,l.__data__,h,c),f=UNe(l,n),g=0,m=p.length;g<m;++g)(d=p[g])&&NNe(d,t,n,g,p,f);o.push(p),a.push(l)}return new lXe(o,a,t,n)},selectChild:uXe.selectChild,selectChildren:uXe.selectChildren,filter:function(e){"function"!=typeof e&&(e=ZLe(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,l=r[i]=[],c=0;c<s;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&l.push(o);return new lXe(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var l,c=t[s],u=n[s],h=c.length,d=a[s]=new Array(h),p=0;p<h;++p)(l=c[p]||u[p])&&(d[p]=l);for(;s<r;++s)a[s]=t[s];return new lXe(a,this._parents,this._name,this._id)},selection:function(){return new oXe(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=cXe(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],l=s.length,c=0;c<l;++c)if(a=s[c]){var u=UNe(a,t);NNe(a,e,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new lXe(r,this._parents,e,n)},call:uXe.call,nodes:uXe.nodes,node:uXe.node,size:uXe.size,empty:uXe.empty,each:uXe.each,on:function(e,t){var n=this._id;return arguments.length<2?UNe(this.node(),n).on.on(e):this.each(function(e,t,n){var r,i,o=function(e){return(e+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})}(t)?XNe:FNe;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}(n,e,t))},attr:function(e,t){var n=XLe(e),r="transform"===n?mNe:WNe;return this.attrTween(e,"function"==typeof t?(n.local?KNe:HNe)(n,r,VNe(this,"attr."+e,t)):null==t?(n.local?YNe:jNe)(n):(n.local?GNe:ZNe)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=XLe(e);return this.tween(n,(r.local?JNe:eXe)(r,t))},style:function(e,t,n){var r="transform"==(e+="")?gNe:WNe;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var o=ADe(this,e),a=(this.style.removeProperty(e),ADe(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}(e,r)).on("end.style."+e,aXe(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var r,i,o;return function(){var a=ADe(this,e),s=n(this),l=s+"";return null==s&&(this.style.removeProperty(e),l=s=ADe(this,e)),a===l?null:a===r&&l===i?o:(i=l,o=t(r=a,s))}}(e,r,VNe(this,"style."+e,t))).each(function(e,t){var n,r,i,o,a="style."+t,s="end."+a;return function(){var l=FNe(this,e),c=l.on,u=null==l.value[a]?o||(o=aXe(t)):void 0;c===n&&i===u||(r=(n=c).copy()).on(s,i=u),l.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,i,o=n+"";return function(){var a=ADe(this,e);return a===o?null:a===r?i:i=t(r=a,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&function(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}(e,o,n)),r}return o._value=t,o}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(VNe(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw new Error;return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}(e))},remove:function(){return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}));var e},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=UNe(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?zNe:qNe)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?tXe:nXe)(t,e)):UNe(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?rXe:iXe)(t,e)):UNe(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error;return function(){FNe(this,e).ease=t}}(t,e)):UNe(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error;return this.each(function(e,t){return function(){var n=t.apply(this,arguments);if("function"!=typeof n)throw new Error;FNe(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,a){var s={value:a},l={value:function(){0===--i&&o()}};n.each(function(){var n=FNe(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),n.on=t}),0===i&&o()})},[Symbol.iterator]:uXe[Symbol.iterator]};var hXe={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};function dXe(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}ZDe.prototype.interrupt=function(e){return this.each(function(){!function(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete e.__transition}}(this,e)})},ZDe.prototype.transition=function(e){var t,n;e instanceof lXe?(t=e._id,e=e._name):(t=cXe(),(n=hXe).time=CNe(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],l=s.length,c=0;c<l;++c)(a=s[c])&&NNe(a,e,t,c,s,n||dXe(a,t));return new lXe(r,this._parents,e,t)};const pXe=Math.PI,fXe=2*pXe,gXe=1e-6,mXe=fXe-gXe;function OXe(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}let AXe=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?OXe:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return OXe;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,o){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+o}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,a=this._y1,s=n-e,l=r-t,c=o-e,u=a-t,h=c*c+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(h>gXe)if(Math.abs(u*s-l*c)>gXe&&i){let d=n-o,p=r-a,f=s*s+l*l,g=d*d+p*p,m=Math.sqrt(f),O=Math.sqrt(h),A=i*Math.tan((pXe-Math.acos((f+h-g)/(2*m*O)))/2),y=A/O,v=A/m;Math.abs(y-1)>gXe&&this._append`L${e+y*c},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*d>c*p)},${this._x1=e+v*s},${this._y1=t+v*l}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,n,r,i,o){if(e=+e,t=+t,o=!!o,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),s=n*Math.sin(r),l=e+a,c=t+s,u=1^o,h=o?r-i:i-r;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>gXe||Math.abs(this._y1-c)>gXe)&&this._append`L${l},${c}`,n&&(h<0&&(h=h%fXe+fXe),h>mXe?this._append`A${n},${n},0,1,${u},${e-a},${t-s}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:h>gXe&&this._append`A${n},${n},0,${+(h>=pXe)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function yXe(e,t){if(!isFinite(e)||0===e)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function vXe(e){return(e=yXe(Math.abs(e)))?e[1]:NaN}var bXe,xXe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function wXe(e){if(!(t=xXe.exec(e)))throw new Error("invalid format: "+e);var t;return new kXe({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function kXe(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function SXe(e,t){var n=yXe(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}wXe.prototype=kXe.prototype,kXe.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const TXe={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>SXe(100*e,t),r:SXe,s:function(e,t){var n=yXe(e,t);if(!n)return bXe=void 0,e.toPrecision(t);var r=n[0],i=n[1],o=i-(bXe=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+yXe(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function $Xe(e){return e}var _Xe,CXe,QXe,PXe=Array.prototype.map,EXe=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function RXe(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?$Xe:(t=PXe.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?$Xe:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(PXe.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function h(e,t){var n=(e=wXe(e)).fill,h=e.align,d=e.sign,p=e.symbol,f=e.zero,g=e.width,m=e.comma,O=e.precision,A=e.trim,y=e.type;"n"===y?(m=!0,y="g"):TXe[y]||(void 0===O&&(O=12),A=!0,y="g"),(f||"0"===n&&"="===h)&&(f=!0,n="0",h="=");var v=(t&&void 0!==t.prefix?t.prefix:"")+("$"===p?i:"#"===p&&/[boxX]/.test(y)?"0"+y.toLowerCase():""),b=("$"===p?o:/[%p]/.test(y)?l:"")+(t&&void 0!==t.suffix?t.suffix:""),x=TXe[y],w=/[defgprs%]/.test(y);function k(e){var t,i,o,l=v,p=b;if("c"===y)p=x(e)+p,e="";else{var k=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:x(Math.abs(e),O),A&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),k&&0===+e&&"+"!==d&&(k=!1),l=(k?"("===d?d:c:"-"===d||"("===d?"":d)+l,p=("s"!==y||isNaN(e)||void 0===bXe?"":EXe[8+bXe/3])+p+(k&&"("===d?")":""),w)for(t=-1,i=e.length;++t<i;)if(48>(o=e.charCodeAt(t))||o>57){p=(46===o?a+e.slice(t+1):e.slice(t))+p,e=e.slice(0,t);break}}m&&!f&&(e=r(e,1/0));var S=l.length+e.length+p.length,T=S<g?new Array(g-S+1).join(n):"";switch(m&&f&&(e=r(T+e,T.length?g-p.length:1/0),T=""),h){case"<":e=l+e+p+T;break;case"=":e=l+T+e+p;break;case"^":e=T.slice(0,S=T.length>>1)+l+e+p+T.slice(S);break;default:e=T+l+e+p}return s(e)}return O=void 0===O?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O)),k.toString=function(){return e+""},k}return{format:h,formatPrefix:function(e,t){var n=3*Math.max(-8,Math.min(8,Math.floor(vXe(t)/3))),r=Math.pow(10,-n),i=h(((e=wXe(e)).type="f",e),{suffix:EXe[8+n/3]});return function(e){return i(r*e)}}}}function BXe(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function IXe(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=DXe)):void 0===t&&(t=LXe);for(var n,r,i,o,a,s=new XXe(e),l=[s];n=l.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)l.push(r=i[o]=new XXe(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(NXe)}function LXe(e){return e.children}function DXe(e){return Array.isArray(e)?e[1]:null}function MXe(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function NXe(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function XXe(e){this.data=e,this.depth=this.height=0,this.parent=null}function FXe(){return 0}function UXe(e){return function(){return e}}function zXe(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function qXe(e,t,n,r,i){for(var o,a=e.children,s=-1,l=a.length,c=e.value&&(r-t)/e.value;++s<l;)(o=a[s]).y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*c}function VXe(e,t,n,r,i){for(var o,a=e.children,s=-1,l=a.length,c=e.value&&(i-n)/e.value;++s<l;)(o=a[s]).x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*c}_Xe=RXe({thousands:",",grouping:[3],currency:["$",""]}),CXe=_Xe.format,QXe=_Xe.formatPrefix,XXe.prototype=IXe.prototype={constructor:XXe,count:function(){return this.eachAfter(BXe)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],s=[],l=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=s.pop();)e.call(t,o,++l,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();for(;e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return IXe(this).eachBefore(MXe)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n])}while(o.length)}};const WXe=function e(t){function n(e,n,r,i,o){!function(e,t,n,r,i,o){for(var a,s,l,c,u,h,d,p,f,g,m,O=[],A=t.children,y=0,v=0,b=A.length,x=t.value;y<b;){l=i-n,c=o-r;do{u=A[v++].value}while(!u&&v<b);for(h=d=u,m=u*u*(g=Math.max(c/l,l/c)/(x*e)),f=Math.max(d/m,m/h);v<b;++v){if(u+=s=A[v].value,s<h&&(h=s),s>d&&(d=s),m=u*u*g,(p=Math.max(d/m,m/h))>f){u-=s;break}f=p}O.push(a={value:u,dice:l<c,children:A.slice(y,v)}),a.dice?qXe(a,n,r,i,x?r+=c*u/x:o):VXe(a,n,r,x?n+=l*u/x:i,o),x-=u,y=v}}(t,e,n,r,i,o)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}((1+Math.sqrt(5))/2);function jXe(){var e=WXe,t=!1,n=1,r=1,i=[0],o=FXe,a=FXe,s=FXe,l=FXe,c=FXe;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(h),i=[0],t&&e.eachBefore(zXe),e}function h(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,h=t.x1-n,d=t.y1-n;h<r&&(r=h=(r+h)/2),d<u&&(u=d=(u+d)/2),t.x0=r,t.y0=u,t.x1=h,t.y1=d,t.children&&(n=i[t.depth+1]=o(t)/2,r+=c(t)-n,u+=a(t)-n,(h-=s(t)-n)<r&&(r=h=(r+h)/2),(d-=l(t)-n)<u&&(u=d=(u+d)/2),e(t,r,u,h,d))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=function(e){if("function"!=typeof e)throw new Error;return e}(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(o="function"==typeof e?e:UXe(+e),u):o},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(a="function"==typeof e?e:UXe(+e),u):a},u.paddingRight=function(e){return arguments.length?(s="function"==typeof e?e:UXe(+e),u):s},u.paddingBottom=function(e){return arguments.length?(l="function"==typeof e?e:UXe(+e),u):l},u.paddingLeft=function(e){return arguments.length?(c="function"==typeof e?e:UXe(+e),u):c},u}function YXe(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}const ZXe=Symbol("implicit");function GXe(){var e=new fLe,t=[],n=[],r=ZXe;function i(i){let o=e.get(i);if(void 0===o){if(r!==ZXe)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new fLe;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return GXe(t,n).unknown(r)},YXe.apply(i,arguments),i}function HXe(){var e,t,n=GXe().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,s=!1,l=0,c=0,u=.5;function h(){var n=r().length,h=a<o,d=h?a:o,p=h?o:a;e=(p-d)/Math.max(1,n-l+2*c),s&&(e=Math.floor(e)),d+=(p-d-e*(n-l))*u,t=e*(1-l),s&&(d=Math.round(d),t=Math.round(t));var f=function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o}(n).map(function(t){return d+e*t});return i(h?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),h()):r()},n.range=function(e){return arguments.length?([o,a]=e,o=+o,a=+a,h()):[o,a]},n.rangeRound=function(e){return[o,a]=e,o=+o,a=+a,s=!0,h()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,h()):s},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),h()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),h()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,h()):c},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),h()):u},n.copy=function(){return HXe(r(),[o,a]).round(s).paddingInner(l).paddingOuter(c).align(u)},YXe.apply(h(),arguments)}function KXe(e){return+e}var JXe=[0,1];function eFe(e){return e}function tFe(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function nFe(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=tFe(i,r),o=n(a,o)):(r=tFe(r,i),o=n(o,a)),function(e){return o(r(e))}}function rFe(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=tFe(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=pLe(e,t,1,r)-1;return o[n](i[n](t))}}function iFe(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function oFe(){var e,t,n,r,i,o,a=JXe,s=JXe,l=lNe,c=eFe;function u(){var e=Math.min(a.length,s.length);return c!==eFe&&(c=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?rFe:nFe,i=o=null,h}function h(t){return null==t||isNaN(t=+t)?n:(i||(i=r(a.map(e),s,l)))(e(c(t)))}return h.invert=function(n){return c(t((o||(o=r(s,a.map(e),rNe)))(n)))},h.domain=function(e){return arguments.length?(a=Array.from(e,KXe),u()):a.slice()},h.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},h.rangeRound=function(e){return s=Array.from(e),l=cNe,u()},h.clamp=function(e){return arguments.length?(c=!!e||eFe,u()):c!==eFe},h.interpolate=function(e){return arguments.length?(l=e,u()):l},h.unknown=function(e){return arguments.length?(n=e,h):n},function(n,r){return e=n,t=r,u()}}function aFe(){return oFe()(eFe,eFe)}function sFe(e,t,n,r){var i,o=xLe(e,t,n);switch((r=wXe(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(vXe(t)/3)))-vXe(Math.abs(e)))}(o,a))||(r.precision=i),QXe(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,vXe(t)-vXe(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-vXe(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return CXe(r)}function lFe(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[i,o,a]=r?vLe(t,e,n):vLe(e,t,n);if(!(o>=i))return[];const s=o-i+1,l=new Array(s);if(r)if(a<0)for(let c=0;c<s;++c)l[c]=(o-c)/-a;else for(let c=0;c<s;++c)l[c]=(o-c)*a;else if(a<0)for(let c=0;c<s;++c)l[c]=(i+c)/-a;else for(let c=0;c<s;++c)l[c]=(i+c)*a;return l}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return sFe(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i,o=t(),a=0,s=o.length-1,l=o[a],c=o[s],u=10;for(c<l&&(i=l,l=c,c=i,i=a,a=s,s=i);u-- >0;){if((i=bLe(l,c,n))===r)return o[a]=l,o[s]=c,t(o);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i}r=i}return e},e}function cFe(){var e=aFe();return e.copy=function(){return iFe(e,cFe())},YXe.apply(e,arguments),lFe(e)}const uFe=new Date,hFe=new Date;function dFe(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{const t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,o)=>{const a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;let s;do{a.push(s=new Date(+n)),t(n,o),e(n)}while(s<n&&n<r);return a},i.filter=n=>dFe(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(i.count=(t,r)=>(uFe.setTime(+t),hFe.setTime(+r),e(uFe),e(hFe),Math.floor(n(uFe,hFe))),i.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i:null)),i}const pFe=dFe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);pFe.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?dFe(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):pFe:null),pFe.range;const fFe=1e3,gFe=6e4,mFe=36e5,OFe=864e5,AFe=6048e5,yFe=2592e6,vFe=31536e6,bFe=dFe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*fFe)},(e,t)=>(t-e)/fFe,e=>e.getUTCSeconds());bFe.range;const xFe=dFe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*fFe)},(e,t)=>{e.setTime(+e+t*gFe)},(e,t)=>(t-e)/gFe,e=>e.getMinutes());xFe.range;dFe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*gFe)},(e,t)=>(t-e)/gFe,e=>e.getUTCMinutes()).range;const wFe=dFe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*fFe-e.getMinutes()*gFe)},(e,t)=>{e.setTime(+e+t*mFe)},(e,t)=>(t-e)/mFe,e=>e.getHours());wFe.range;dFe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*mFe)},(e,t)=>(t-e)/mFe,e=>e.getUTCHours()).range;const kFe=dFe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*gFe)/OFe,e=>e.getDate()-1);kFe.range;const SFe=dFe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/OFe,e=>e.getUTCDate()-1);SFe.range;function TFe(e){return dFe(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*gFe)/AFe)}dFe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/OFe,e=>Math.floor(e/OFe)).range;const $Fe=TFe(0),_Fe=TFe(1),CFe=TFe(2),QFe=TFe(3),PFe=TFe(4),EFe=TFe(5),RFe=TFe(6);function BFe(e){return dFe(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/AFe)}$Fe.range,_Fe.range,CFe.range,QFe.range,PFe.range,EFe.range,RFe.range;const IFe=BFe(0),LFe=BFe(1),DFe=BFe(2),MFe=BFe(3),NFe=BFe(4),XFe=BFe(5),FFe=BFe(6);IFe.range,LFe.range,DFe.range,MFe.range,NFe.range,XFe.range,FFe.range;const UFe=dFe(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear()),e=>e.getMonth());UFe.range;dFe(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear()),e=>e.getUTCMonth()).range;const zFe=dFe(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());zFe.every=e=>isFinite(e=Math.floor(e))&&e>0?dFe(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null,zFe.range;const qFe=dFe(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());qFe.every=e=>isFinite(e=Math.floor(e))&&e>0?dFe(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null,qFe.range;const[VFe,WFe]=function(e,t,n,r,i,o){const a=[[bFe,1,fFe],[bFe,5,5e3],[bFe,15,15e3],[bFe,30,3e4],[o,1,gFe],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,mFe],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,OFe],[r,2,1728e5],[n,1,AFe],[t,1,yFe],[t,3,7776e6],[e,1,vFe]];function s(t,n,r){const i=Math.abs(n-t)/r,o=hLe(([,,e])=>e).right(a,i);if(o===a.length)return e.every(xLe(t/vFe,n/vFe,r));if(0===o)return pFe.every(Math.max(xLe(t,n,r),1));const[s,l]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return s.every(l)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const i=n&&"function"==typeof n.range?n:s(e,t,n),o=i?i.range(e,+t+1):[];return r?o.reverse():o},s]}(zFe,UFe,$Fe,kFe,wFe,xFe);function jFe(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function YFe(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ZFe(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var GFe,HFe,KFe={"-":"",_:" ",0:"0"},JFe=/^\s*\d+/,eUe=/^%/,tUe=/[\\^$*+?|[\]().{}]/g;function nUe(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function rUe(e){return e.replace(tUe,"\\$&")}function iUe(e){return new RegExp("^(?:"+e.map(rUe).join("|")+")","i")}function oUe(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function aUe(e,t,n){var r=JFe.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function sUe(e,t,n){var r=JFe.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function lUe(e,t,n){var r=JFe.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function cUe(e,t,n){var r=JFe.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function uUe(e,t,n){var r=JFe.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function hUe(e,t,n){var r=JFe.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function dUe(e,t,n){var r=JFe.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function pUe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function fUe(e,t,n){var r=JFe.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function gUe(e,t,n){var r=JFe.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function mUe(e,t,n){var r=JFe.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function OUe(e,t,n){var r=JFe.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function AUe(e,t,n){var r=JFe.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function yUe(e,t,n){var r=JFe.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function vUe(e,t,n){var r=JFe.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function bUe(e,t,n){var r=JFe.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function xUe(e,t,n){var r=JFe.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function wUe(e,t,n){var r=eUe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function kUe(e,t,n){var r=JFe.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function SUe(e,t,n){var r=JFe.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function TUe(e,t){return nUe(e.getDate(),t,2)}function $Ue(e,t){return nUe(e.getHours(),t,2)}function _Ue(e,t){return nUe(e.getHours()%12||12,t,2)}function CUe(e,t){return nUe(1+kFe.count(zFe(e),e),t,3)}function QUe(e,t){return nUe(e.getMilliseconds(),t,3)}function PUe(e,t){return QUe(e,t)+"000"}function EUe(e,t){return nUe(e.getMonth()+1,t,2)}function RUe(e,t){return nUe(e.getMinutes(),t,2)}function BUe(e,t){return nUe(e.getSeconds(),t,2)}function IUe(e){var t=e.getDay();return 0===t?7:t}function LUe(e,t){return nUe($Fe.count(zFe(e)-1,e),t,2)}function DUe(e){var t=e.getDay();return t>=4||0===t?PFe(e):PFe.ceil(e)}function MUe(e,t){return e=DUe(e),nUe(PFe.count(zFe(e),e)+(4===zFe(e).getDay()),t,2)}function NUe(e){return e.getDay()}function XUe(e,t){return nUe(_Fe.count(zFe(e)-1,e),t,2)}function FUe(e,t){return nUe(e.getFullYear()%100,t,2)}function UUe(e,t){return nUe((e=DUe(e)).getFullYear()%100,t,2)}function zUe(e,t){return nUe(e.getFullYear()%1e4,t,4)}function qUe(e,t){var n=e.getDay();return nUe((e=n>=4||0===n?PFe(e):PFe.ceil(e)).getFullYear()%1e4,t,4)}function VUe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+nUe(t/60|0,"0",2)+nUe(t%60,"0",2)}function WUe(e,t){return nUe(e.getUTCDate(),t,2)}function jUe(e,t){return nUe(e.getUTCHours(),t,2)}function YUe(e,t){return nUe(e.getUTCHours()%12||12,t,2)}function ZUe(e,t){return nUe(1+SFe.count(qFe(e),e),t,3)}function GUe(e,t){return nUe(e.getUTCMilliseconds(),t,3)}function HUe(e,t){return GUe(e,t)+"000"}function KUe(e,t){return nUe(e.getUTCMonth()+1,t,2)}function JUe(e,t){return nUe(e.getUTCMinutes(),t,2)}function eze(e,t){return nUe(e.getUTCSeconds(),t,2)}function tze(e){var t=e.getUTCDay();return 0===t?7:t}function nze(e,t){return nUe(IFe.count(qFe(e)-1,e),t,2)}function rze(e){var t=e.getUTCDay();return t>=4||0===t?NFe(e):NFe.ceil(e)}function ize(e,t){return e=rze(e),nUe(NFe.count(qFe(e),e)+(4===qFe(e).getUTCDay()),t,2)}function oze(e){return e.getUTCDay()}function aze(e,t){return nUe(LFe.count(qFe(e)-1,e),t,2)}function sze(e,t){return nUe(e.getUTCFullYear()%100,t,2)}function lze(e,t){return nUe((e=rze(e)).getUTCFullYear()%100,t,2)}function cze(e,t){return nUe(e.getUTCFullYear()%1e4,t,4)}function uze(e,t){var n=e.getUTCDay();return nUe((e=n>=4||0===n?NFe(e):NFe.ceil(e)).getUTCFullYear()%1e4,t,4)}function hze(){return"+0000"}function dze(){return"%"}function pze(e){return+e}function fze(e){return Math.floor(+e/1e3)}function gze(e){return new Date(e)}function mze(e){return e instanceof Date?+e:+new Date(+e)}function Oze(e,t,n,r,i,o,a,s,l,c){var u=aFe(),h=u.invert,d=u.domain,p=c(".%L"),f=c(":%S"),g=c("%I:%M"),m=c("%I %p"),O=c("%a %d"),A=c("%b %d"),y=c("%B"),v=c("%Y");function b(e){return(l(e)<e?p:s(e)<e?f:a(e)<e?g:o(e)<e?m:r(e)<e?i(e)<e?O:A:n(e)<e?y:v)(e)}return u.invert=function(e){return new Date(h(e))},u.domain=function(e){return arguments.length?d(Array.from(e,mze)):d().map(gze)},u.ticks=function(t){var n=d();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?b:c(t)},u.nice=function(e){var n=d();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?d(function(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}(n,e)):u},u.copy=function(){return iFe(u,Oze(e,t,n,r,i,o,a,s,l,c))},u}function Aze(){return YXe.apply(Oze(VFe,WFe,zFe,UFe,$Fe,kFe,wFe,xFe,bFe,HFe).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}!function(e){GFe=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=iUe(i),u=oUe(i),h=iUe(o),d=oUe(o),p=iUe(a),f=oUe(a),g=iUe(s),m=oUe(s),O=iUe(l),A=oUe(l),y={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:TUe,e:TUe,f:PUe,g:UUe,G:qUe,H:$Ue,I:_Ue,j:CUe,L:QUe,m:EUe,M:RUe,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:pze,s:fze,S:BUe,u:IUe,U:LUe,V:MUe,w:NUe,W:XUe,x:null,X:null,y:FUe,Y:zUe,Z:VUe,"%":dze},v={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:WUe,e:WUe,f:HUe,g:lze,G:uze,H:jUe,I:YUe,j:ZUe,L:GUe,m:KUe,M:JUe,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:pze,s:fze,S:eze,u:tze,U:nze,V:ize,w:oze,W:aze,x:null,X:null,y:sze,Y:cze,Z:hze,"%":dze},b={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=O.exec(t.slice(n));return r?(e.m=A.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:mUe,e:mUe,f:xUe,g:dUe,G:hUe,H:AUe,I:AUe,j:OUe,L:bUe,m:gUe,M:yUe,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:fUe,Q:kUe,s:SUe,S:vUe,u:sUe,U:lUe,V:cUe,w:aUe,W:uUe,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:dUe,Y:hUe,Z:pUe,"%":wUe};function x(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=KFe[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function w(e,t){return function(n){var r,i,o=ZFe(1900,void 0,1);if(k(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=YFe(ZFe(o.y,0,1))).getUTCDay(),r=i>4||0===i?LFe.ceil(r):LFe(r),r=SFe.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=jFe(ZFe(o.y,0,1))).getDay(),r=i>4||0===i?_Fe.ceil(r):_Fe(r),r=kFe.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?YFe(ZFe(o.y,0,1)).getUTCDay():jFe(ZFe(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,YFe(o)):jFe(o)}}function k(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=b[i in KFe?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return y.x=x(n,y),y.X=x(r,y),y.c=x(t,y),v.x=x(n,v),v.X=x(r,v),v.c=x(t,v),{format:function(e){var t=x(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=w(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=x(e+="",v);return t.toString=function(){return e},t},utcParse:function(e){var t=w(e+="",!0);return t.toString=function(){return e},t}}}(e),HFe=GFe.format,GFe.parse,GFe.utcFormat,GFe.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const yze=function(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(6*r,6*++r);return n}("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function vze(e){return function(){return e}}const bze=Math.abs,xze=Math.atan2,wze=Math.cos,kze=Math.max,Sze=Math.min,Tze=Math.sin,$ze=Math.sqrt,_ze=1e-12,Cze=Math.PI,Qze=Cze/2,Pze=2*Cze;function Eze(e){return e>=1?Qze:e<=-1?-Qze:Math.asin(e)}function Rze(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new AXe(t)}function Bze(e){return e.innerRadius}function Ize(e){return e.outerRadius}function Lze(e){return e.startAngle}function Dze(e){return e.endAngle}function Mze(e){return e&&e.padAngle}function Nze(e,t,n,r,i,o,a){var s=e-n,l=t-r,c=(a?o:-o)/$ze(s*s+l*l),u=c*l,h=-c*s,d=e+u,p=t+h,f=n+u,g=r+h,m=(d+f)/2,O=(p+g)/2,A=f-d,y=g-p,v=A*A+y*y,b=i-o,x=d*g-f*p,w=(y<0?-1:1)*$ze(kze(0,b*b*v-x*x)),k=(x*y-A*w)/v,S=(-x*A-y*w)/v,T=(x*y+A*w)/v,$=(-x*A+y*w)/v,_=k-m,C=S-O,Q=T-m,P=$-O;return _*_+C*C>Q*Q+P*P&&(k=T,S=$),{cx:k,cy:S,x01:-u,y01:-h,x11:k*(i/b-1),y11:S*(i/b-1)}}function Xze(){var e=Bze,t=Ize,n=vze(0),r=null,i=Lze,o=Dze,a=Mze,s=null,l=Rze(c);function c(){var c,u,h,d=+e.apply(this,arguments),p=+t.apply(this,arguments),f=i.apply(this,arguments)-Qze,g=o.apply(this,arguments)-Qze,m=bze(g-f),O=g>f;if(s||(s=c=l()),p<d&&(u=p,p=d,d=u),p>_ze)if(m>Pze-_ze)s.moveTo(p*wze(f),p*Tze(f)),s.arc(0,0,p,f,g,!O),d>_ze&&(s.moveTo(d*wze(g),d*Tze(g)),s.arc(0,0,d,g,f,O));else{var A,y,v=f,b=g,x=f,w=g,k=m,S=m,T=a.apply(this,arguments)/2,$=T>_ze&&(r?+r.apply(this,arguments):$ze(d*d+p*p)),_=Sze(bze(p-d)/2,+n.apply(this,arguments)),C=_,Q=_;if($>_ze){var P=Eze($/d*Tze(T)),E=Eze($/p*Tze(T));(k-=2*P)>_ze?(x+=P*=O?1:-1,w-=P):(k=0,x=w=(f+g)/2),(S-=2*E)>_ze?(v+=E*=O?1:-1,b-=E):(S=0,v=b=(f+g)/2)}var R=p*wze(v),B=p*Tze(v),I=d*wze(w),L=d*Tze(w);if(_>_ze){var D,M=p*wze(b),N=p*Tze(b),X=d*wze(x),F=d*Tze(x);if(m<Cze)if(D=function(e,t,n,r,i,o,a,s){var l=n-e,c=r-t,u=a-i,h=s-o,d=h*l-u*c;if(!(d*d<_ze))return[e+(d=(u*(t-o)-h*(e-i))/d)*l,t+d*c]}(R,B,X,F,M,N,I,L)){var U=R-D[0],z=B-D[1],q=M-D[0],V=N-D[1],W=1/Tze(((h=(U*q+z*V)/($ze(U*U+z*z)*$ze(q*q+V*V)))>1?0:h<-1?Cze:Math.acos(h))/2),j=$ze(D[0]*D[0]+D[1]*D[1]);C=Sze(_,(d-j)/(W-1)),Q=Sze(_,(p-j)/(W+1))}else C=Q=0}S>_ze?Q>_ze?(A=Nze(X,F,R,B,p,Q,O),y=Nze(M,N,I,L,p,Q,O),s.moveTo(A.cx+A.x01,A.cy+A.y01),Q<_?s.arc(A.cx,A.cy,Q,xze(A.y01,A.x01),xze(y.y01,y.x01),!O):(s.arc(A.cx,A.cy,Q,xze(A.y01,A.x01),xze(A.y11,A.x11),!O),s.arc(0,0,p,xze(A.cy+A.y11,A.cx+A.x11),xze(y.cy+y.y11,y.cx+y.x11),!O),s.arc(y.cx,y.cy,Q,xze(y.y11,y.x11),xze(y.y01,y.x01),!O))):(s.moveTo(R,B),s.arc(0,0,p,v,b,!O)):s.moveTo(R,B),d>_ze&&k>_ze?C>_ze?(A=Nze(I,L,M,N,d,-C,O),y=Nze(R,B,X,F,d,-C,O),s.lineTo(A.cx+A.x01,A.cy+A.y01),C<_?s.arc(A.cx,A.cy,C,xze(A.y01,A.x01),xze(y.y01,y.x01),!O):(s.arc(A.cx,A.cy,C,xze(A.y01,A.x01),xze(A.y11,A.x11),!O),s.arc(0,0,d,xze(A.cy+A.y11,A.cx+A.x11),xze(y.cy+y.y11,y.cx+y.x11),O),s.arc(y.cx,y.cy,C,xze(y.y11,y.x11),xze(y.y01,y.x01),!O))):s.arc(0,0,d,w,x,O):s.lineTo(I,L)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Cze/2;return[wze(r)*n,Tze(r)*n]},c.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:vze(+t),c):e},c.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:vze(+e),c):t},c.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:vze(+e),c):n},c.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:vze(+e),c):r},c.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:vze(+e),c):i},c.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:vze(+e),c):o},c.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:vze(+e),c):a},c.context=function(e){return arguments.length?(s=null==e?null:e,c):s},c}function Fze(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function Uze(e){this._context=e}function zze(e){return new Uze(e)}function qze(e){return e[0]}function Vze(e){return e[1]}function Wze(e,t){var n=vze(!0),r=null,i=zze,o=null,a=Rze(s);function s(s){var l,c,u,h=(s=Fze(s)).length,d=!1;for(null==r&&(o=i(u=a())),l=0;l<=h;++l)!(l<h&&n(c=s[l],l,s))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+e(c,l,s),+t(c,l,s));if(u)return o=null,u+""||null}return e="function"==typeof e?e:void 0===e?qze:vze(e),t="function"==typeof t?t:void 0===t?Vze:vze(t),s.x=function(t){return arguments.length?(e="function"==typeof t?t:vze(+t),s):e},s.y=function(e){return arguments.length?(t="function"==typeof e?e:vze(+e),s):t},s.defined=function(e){return arguments.length?(n="function"==typeof e?e:vze(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,null!=r&&(o=i(r)),s):i},s.context=function(e){return arguments.length?(null==e?r=o=null:o=i(r=e),s):r},s}function jze(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Yze(e){return e}Uze.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};class Zze{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function Gze(e){return new Zze(e,!0)}function Hze(e){return new Zze(e,!1)}function Kze(){}function Jze(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function eqe(e){this._context=e}function tqe(e){return new eqe(e)}function nqe(e){this._context=e}function rqe(e){this._context=e}function iqe(e,t){this._basis=new eqe(e),this._beta=t}eqe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Jze(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Jze(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},nqe.prototype={areaStart:Kze,areaEnd:Kze,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Jze(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},rqe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Jze(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},iqe.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],a=e[n]-i,s=t[n]-o,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*a),this._beta*t[l]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const oqe=function e(t){function n(e){return 1===t?new eqe(e):new iqe(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function aqe(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function sqe(e,t){this._context=e,this._k=(1-t)/6}sqe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:aqe(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:aqe(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const lqe=function e(t){function n(e){return new sqe(e,t)}return n.tension=function(t){return e(+t)},n}(0);function cqe(e,t){this._context=e,this._k=(1-t)/6}cqe.prototype={areaStart:Kze,areaEnd:Kze,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:aqe(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const uqe=function e(t){function n(e){return new cqe(e,t)}return n.tension=function(t){return e(+t)},n}(0);function hqe(e,t){this._context=e,this._k=(1-t)/6}hqe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:aqe(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const dqe=function e(t){function n(e){return new hqe(e,t)}return n.tension=function(t){return e(+t)},n}(0);function pqe(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>_ze){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>_ze){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function fqe(e,t){this._context=e,this._alpha=t}fqe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:pqe(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const gqe=function e(t){function n(e){return t?new fqe(e,t):new sqe(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function mqe(e,t){this._context=e,this._alpha=t}mqe.prototype={areaStart:Kze,areaEnd:Kze,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:pqe(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Oqe=function e(t){function n(e){return t?new mqe(e,t):new cqe(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Aqe(e,t){this._context=e,this._alpha=t}Aqe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:pqe(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const yqe=function e(t){function n(e){return t?new Aqe(e,t):new hqe(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function vqe(e){this._context=e}function bqe(e){return e<0?-1:1}function xqe(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(bqe(o)+bqe(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function wqe(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function kqe(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function Sqe(e){this._context=e}function Tqe(e){this._context=new $qe(e)}function $qe(e){this._context=e}function _qe(e){return new Sqe(e)}function Cqe(e){return new Tqe(e)}function Qqe(e){this._context=e}function Pqe(e){var t,n,r=e.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,a[t]-=n*a[t-1];for(i[r-1]=a[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function Eqe(e){return new Qqe(e)}function Rqe(e,t){this._context=e,this._t=t}function Bqe(e){return new Rqe(e,.5)}function Iqe(e){return new Rqe(e,0)}function Lqe(e){return new Rqe(e,1)}function Dqe(e,t,n){this.k=e,this.x=t,this.y=n}vqe.prototype={areaStart:Kze,areaEnd:Kze,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},Sqe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:kqe(this,this._t0,wqe(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,kqe(this,wqe(this,n=xqe(this,e,t)),n);break;default:kqe(this,this._t0,n=xqe(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Tqe.prototype=Object.create(Sqe.prototype)).point=function(e,t){Sqe.prototype.point.call(this,t,e)},$qe.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}},Qqe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=Pqe(e),i=Pqe(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},Rqe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}},Dqe.prototype={constructor:Dqe,scale:function(e){return 1===e?this:new Dqe(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new Dqe(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},Dqe.prototype;var Mqe=hRe(e=>{var t;const{securityLevel:n}=JIe();let r=GDe("body");if("sandbox"===n){const n=GDe(`#i${e}`);r=GDe(((null==(t=n.node())?void 0:t.contentDocument)??document).body)}return r.select(`#${e}`)},"selectSvgElement"),Nqe=hRe(e=>{const{handDrawnSeed:t}=JIe();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),Xqe=hRe(e=>Array.isArray(e)?e:e?e.split(";").map(e=>e.trim()).filter(Boolean):[],"normalizeStyleList"),Fqe=hRe(e=>{const t=Uqe([...e.cssCompiledStyles||[],...e.cssStyles||[],...Xqe(e.labelStyle)]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),Uqe=hRe(e=>{const t=new Map;return e.forEach(e=>{const[n,r]=e.split(":");t.set(n.trim(),null==r?void 0:r.trim())}),t},"styles2Map"),zqe=hRe(e=>"color"===e||"font-size"===e||"font-family"===e||"font-weight"===e||"font-style"===e||"text-decoration"===e||"text-align"===e||"text-transform"===e||"line-height"===e||"letter-spacing"===e||"word-spacing"===e||"text-shadow"===e||"text-overflow"===e||"white-space"===e||"word-wrap"===e||"word-break"===e||"overflow-wrap"===e||"hyphens"===e,"isLabelStyle"),qqe=hRe(e=>{const{stylesArray:t}=Fqe(e),n=[],r=[],i=[],o=[];return t.forEach(e=>{const t=e[0];zqe(t)?n.push(e.join(":")+" !important"):(r.push(e.join(":")+" !important"),t.includes("stroke")&&i.push(e.join(":")+" !important"),"fill"===t&&o.push(e.join(":")+" !important"))}),{labelStyles:n.join(";"),nodeStyles:r.join(";"),stylesArray:t,borderStyles:i,backgroundStyles:o}},"styles2String"),Vqe=hRe((e,t)=>{var n;const{themeVariables:r,handDrawnSeed:i}=JIe(),{nodeBorder:o,mainBkg:a}=r,{stylesMap:s}=Fqe(e);return Object.assign({roughness:.7,fill:s.get("fill")||a,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:s.get("stroke")||o,seed:i,strokeWidth:(null==(n=s.get("stroke-width"))?void 0:n.replace("px",""))||1.3,fillLineDash:[0,0],strokeLineDash:Wqe(s.get("stroke-dasharray"))},t)},"userNodeOverrides"),Wqe=hRe(e=>{if(!e)return[0,0];const t=e.trim().split(/\s+/).map(Number);if(1===t.length){const e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},"getStrokeDashArray");const jqe=Object.freeze({left:0,top:0,width:16,height:16}),Yqe=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Zqe=Object.freeze({...jqe,...Yqe}),Gqe=Object.freeze({...Zqe,body:"",hidden:!1}),Hqe=Object.freeze({width:null,height:null}),Kqe=Object.freeze({...Hqe,...Yqe}),Jqe=(e,t)=>!!e&&!(!(t&&""===e.prefix||e.prefix)||!e.name);function eVe(e,t){const n=function(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}(e,t);for(const r in Gqe)r in Yqe?r in e&&!(r in n)&&(n[r]=Yqe[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function tVe(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let o={};function a(e){o=eVe(r[e]||i[e],o)}return a(t),n.forEach(a),eVe(e,o)}function nVe(e,t){if(e.icons[t])return tVe(e,t,[]);const n=function(e,t){const n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);return(t||Object.keys(n).concat(Object.keys(r))).forEach(function e(t){if(n[t])return i[t]=[];if(!(t in i)){i[t]=null;const n=r[t]&&r[t].parent,o=n&&e(n);o&&(i[t]=[n].concat(o))}return i[t]}),i}(e,[t])[t];return n?tVe(e,t,n):null}const rVe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,iVe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function oVe(e,t,n){if(1===t)return e;if(n=n||100,"number"==typeof e)return Math.ceil(e*t*n)/n;if("string"!=typeof e)return e;const r=e.split(rVe);if(null===r||!r.length)return e;const i=[];let o=r.shift(),a=iVe.test(o);for(;;){if(a){const e=parseFloat(o);isNaN(e)?i.push(o):i.push(Math.ceil(e*t*n)/n)}else i.push(o);if(o=r.shift(),void 0===o)return i.join("");a=!a}}const aVe=/\sid="(\S+)"/g,sVe=new Map;function lVe(e){const t=[];let n;for(;n=aVe.exec(e);)t.push(n[1]);if(!t.length)return e;const r="suffix"+(16777216*Math.random()|Date.now()).toString(16);return t.forEach(t=>{const n=function(e){e=e.replace(/[0-9]+$/,"")||"a";const t=sVe.get(e)||0;return sVe.set(e,t+1),t?`${e}${t}`:e}(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+n+r+"$3")}),e=e.replace(new RegExp(r,"g"),"")}var cVe,uVe,hVe={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},dVe=new Map,pVe=new Map,fVe=hRe(e=>{for(const t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(ORe.debug("Registering icon pack:",t.name),"loader"in t)pVe.set(t.name,t.loader);else{if(!("icons"in t))throw ORe.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.');dVe.set(t.name,t.icons)}}},"registerIconPacks"),gVe=hRe(async(e,t)=>{const n=((e,t,n,r="")=>{const i=e.split(":");if("@"===e.slice(0,1)){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const e=i.pop(),t=i.pop(),n={provider:i.length>0?i[0]:r,prefix:t,name:e};return Jqe(n)?n:null}const o=i[0],a=o.split("-");if(a.length>1){const e={provider:r,prefix:a.shift(),name:a.join("-")};return Jqe(e)?e:null}if(n&&""===r){const e={provider:r,prefix:"",name:o};return Jqe(e,n)?e:null}return null})(e,0,void 0!==t);if(!n)throw new Error(`Invalid icon name: ${e}`);const r=n.prefix||t;if(!r)throw new Error(`Icon name must contain a prefix: ${e}`);let i=dVe.get(r);if(!i){const e=pVe.get(r);if(!e)throw new Error(`Icon set not found: ${n.prefix}`);try{i={...await e(),prefix:r},dVe.set(r,i)}catch(jk){throw ORe.error(jk),new Error(`Failed to load icon set: ${n.prefix}`)}}const o=nVe(i,n.name);if(!o)throw new Error(`Icon not found: ${e}`);return o},"getRegisteredIconData"),mVe=hRe(async e=>{try{return await gVe(e),!0}catch{return!1}},"isIconAvailable"),OVe=hRe(async(e,t,n)=>{let r;try{r=await gVe(e,null==t?void 0:t.fallbackPrefix)}catch(jk){ORe.error(jk),r=hVe}const i=function(e,t){const n={...Zqe,...e},r={...Kqe,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,r].forEach(e=>{const t=[],n=e.hFlip,r=e.vFlip;let a,s=e.rotate;switch(n?r?s+=2:(t.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),t.push("scale(-1 1)"),i.top=i.left=0):r&&(t.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),t.push("scale(1 -1)"),i.top=i.left=0),s<0&&(s-=4*Math.floor(s/4)),s%=4,s){case 1:a=i.height/2+i.top,t.unshift("rotate(90 "+a.toString()+" "+a.toString()+")");break;case 2:t.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:a=i.width/2+i.left,t.unshift("rotate(-90 "+a.toString()+" "+a.toString()+")")}s%2==1&&(i.left!==i.top&&(a=i.left,i.left=i.top,i.top=a),i.width!==i.height&&(a=i.width,i.width=i.height,i.height=a)),t.length&&(o=function(e,t,n){const r=function(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const i=e.indexOf(">",r),o=e.indexOf("</"+t);if(-1===i||-1===o)break;const a=e.indexOf(">",o);if(-1===a)break;n+=e.slice(i+1,o).trim(),e=e.slice(0,r).trim()+e.slice(a+1)}return{defs:n,content:e}}(e);return i=r.defs,o=t+r.content+n,i?"<defs>"+i+"</defs>"+o:o;var i,o}(o,'<g transform="'+t.join(" ")+'">',"</g>"))});const a=r.width,s=r.height,l=i.width,c=i.height;let u,h;null===a?(h=null===s?"1em":"auto"===s?c:s,u=oVe(h,l/c)):(u="auto"===a?l:a,h=null===s?oVe(u,c/l):"auto"===s?c:s);const d={},p=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(d[e]=t.toString())};p("width",u),p("height",h);const f=[i.left,i.top,l,c];return d.viewBox=f.join(" "),{attributes:d,viewBox:f,body:o}}(r,t),o=function(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}(lVe(i.body),{...i.attributes,...n});return uIe(o,NBe())},"getIconSVG"),AVe={},yVe={};var vVe=function(){if(uVe)return AVe;uVe=1,Object.defineProperty(AVe,"__esModule",{value:!0}),AVe.sanitizeUrl=function(r){if(!r)return e.BLANK_URL;var i,o=n(r.trim());do{i=(o=n(o=t(o).replace(e.htmlCtrlEntityRegex,"").replace(e.ctrlCharactersRegex,"").replace(e.whitespaceEscapeCharsRegex,"").trim())).match(e.ctrlCharactersRegex)||o.match(e.htmlEntitiesRegex)||o.match(e.htmlCtrlEntityRegex)||o.match(e.whitespaceEscapeCharsRegex)}while(i&&i.length>0);var a=o;if(!a)return e.BLANK_URL;if(function(t){return e.relativeFirstCharacters.indexOf(t[0])>-1}(a))return a;var s=a.trimStart(),l=s.match(e.urlSchemeRegex);if(!l)return a;var c=l[0].toLowerCase().trim();if(e.invalidProtocolRegex.test(c))return e.BLANK_URL;var u=s.replace(/\\/g,"/");if("mailto:"===c||c.includes("://"))return u;if("http:"===c||"https:"===c){if(!function(e){return URL.canParse(e)}(u))return e.BLANK_URL;var h=new URL(u);return h.protocol=h.protocol.toLowerCase(),h.hostname=h.hostname.toLowerCase(),h.toString()}return u};var e=(cVe||(cVe=1,Object.defineProperty(yVe,"__esModule",{value:!0}),yVe.BLANK_URL=yVe.relativeFirstCharacters=yVe.whitespaceEscapeCharsRegex=yVe.urlSchemeRegex=yVe.ctrlCharactersRegex=yVe.htmlCtrlEntityRegex=yVe.htmlEntitiesRegex=yVe.invalidProtocolRegex=void 0,yVe.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,yVe.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,yVe.htmlCtrlEntityRegex=/&(newline|tab);/gi,yVe.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,yVe.urlSchemeRegex=/^.+(:|:)/gim,yVe.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,yVe.relativeFirstCharacters=[".","/"],yVe.BLANK_URL="about:blank"),yVe);function t(t){return t.replace(e.ctrlCharactersRegex,"").replace(e.htmlEntitiesRegex,function(e,t){return String.fromCharCode(t)})}function n(e){try{return decodeURIComponent(e)}catch(jk){return e}}return AVe}();function bVe(e){var t;if("object"!=typeof e)return!1;if(null==e)return!1;if(null===Object.getPrototypeOf(e))return!0;if("[object Object]"!==Object.prototype.toString.call(e)){const n=e[Symbol.toStringTag];return null!=n&&(!!(null==(t=Object.getOwnPropertyDescriptor(e,Symbol.toStringTag))?void 0:t.writable)&&e.toString()===`[object ${n}]`)}let n=e;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}function xVe(){}function wVe(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function kVe(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const SVe="[object RegExp]",TVe="[object String]",$Ve="[object Number]",_Ve="[object Boolean]",CVe="[object Arguments]",QVe="[object Symbol]",PVe="[object Date]",EVe="[object Map]",RVe="[object Set]",BVe="[object Array]",IVe="[object ArrayBuffer]",LVe="[object Object]",DVe="[object DataView]",MVe="[object Uint8Array]",NVe="[object Uint8ClampedArray]",XVe="[object Uint16Array]",FVe="[object Uint32Array]",UVe="[object Int8Array]",zVe="[object Int16Array]",qVe="[object Int32Array]",VVe="[object Float32Array]",WVe="[object Float64Array]",jVe="object"==typeof globalThis&&globalThis||"object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||function(){return this}();function YVe(e){return void 0!==jVe.Buffer&&jVe.Buffer.isBuffer(e)}function ZVe(e){return null!=e&&"function"!=typeof e&&function(e){return Number.isSafeInteger(e)&&e>=0}(e.length)}function GVe(e){return"__proto__"===e}function HVe(e){return null==e||"object"!=typeof e&&"function"!=typeof e}function KVe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function JVe(e,t,n,r=new Map,i=void 0){const o=null==i?void 0:i(e,t,n,r);if(void 0!==o)return o;if(HVe(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){const t=new Array(e.length);r.set(e,t);for(let o=0;o<e.length;o++)t[o]=JVe(e[o],o,n,r,i);return Object.hasOwn(e,"index")&&(t.index=e.index),Object.hasOwn(e,"input")&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){const t=new Map;r.set(e,t);for(const[o,a]of e)t.set(o,JVe(a,o,n,r,i));return t}if(e instanceof Set){const t=new Set;r.set(e,t);for(const o of e)t.add(JVe(o,void 0,n,r,i));return t}if(YVe(e))return e.subarray();if(KVe(e)){const t=new(Object.getPrototypeOf(e).constructor)(e.length);r.set(e,t);for(let o=0;o<e.length;o++)t[o]=JVe(e[o],o,n,r,i);return t}if(e instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),eWe(t,e,n,r,i),t}if("undefined"!=typeof File&&e instanceof File){const t=new File([e],e.name,{type:e.type});return r.set(e,t),eWe(t,e,n,r,i),t}if("undefined"!=typeof Blob&&e instanceof Blob){const t=new Blob([e],{type:e.type});return r.set(e,t),eWe(t,e,n,r,i),t}if(e instanceof Error){const t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,eWe(t,e,n,r,i),t}if(e instanceof Boolean){const t=new Boolean(e.valueOf());return r.set(e,t),eWe(t,e,n,r,i),t}if(e instanceof Number){const t=new Number(e.valueOf());return r.set(e,t),eWe(t,e,n,r,i),t}if(e instanceof String){const t=new String(e.valueOf());return r.set(e,t),eWe(t,e,n,r,i),t}if("object"==typeof e&&function(e){switch(kVe(e)){case CVe:case BVe:case IVe:case DVe:case _Ve:case PVe:case VVe:case WVe:case UVe:case zVe:case qVe:case EVe:case $Ve:case LVe:case SVe:case RVe:case TVe:case QVe:case MVe:case NVe:case XVe:case FVe:return!0;default:return!1}}(e)){const t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),eWe(t,e,n,r,i),t}return e}function eWe(e,t,n=e,r,i){const o=[...Object.keys(t),...wVe(t)];for(let a=0;a<o.length;a++){const s=o[a],l=Object.getOwnPropertyDescriptor(e,s);(null==l||l.writable)&&(e[s]=JVe(t[s],s,n,r,i))}}function tWe(e,t){return function(e,t){return JVe(e,void 0,e,new Map,t)}(e,(t,n,r,i)=>{if("object"==typeof e){if("[object Object]"===kVe(e)&&"function"!=typeof e.constructor){const t={};return i.set(e,t),eWe(t,e,r,i),t}switch(Object.prototype.toString.call(e)){case $Ve:case TVe:case _Ve:{const t=new e.constructor(null==e?void 0:e.valueOf());return eWe(t,e),t}case CVe:{const t={};return eWe(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function nWe(e){return tWe(e)}function rWe(e){return null!==e&&"object"==typeof e&&"[object Arguments]"===kVe(e)}function iWe(e){return"object"==typeof e&&null!==e}function oWe(e){return iWe(e)&&ZVe(e)}function aWe(e){return KVe(e)}function sWe(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");const n=function(...r){const i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);const a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(sWe.Cache||Map),n}function lWe(e){if(HVe(e))return e;const t=kVe(e);if(!function(e){switch(kVe(e)){case CVe:case BVe:case IVe:case DVe:case _Ve:case PVe:case VVe:case WVe:case UVe:case zVe:case qVe:case EVe:case $Ve:case LVe:case SVe:case RVe:case TVe:case QVe:case MVe:case NVe:case XVe:case FVe:return!0;default:return!1}}(e))return{};if(n=e,Array.isArray(n)){const t=Array.from(e);return e.length>0&&"string"==typeof e[0]&&Object.hasOwn(e,"index")&&(t.index=e.index,t.input=e.input),t}var n;if(aWe(e)){const t=e;return new(0,t.constructor)(t.buffer,t.byteOffset,t.length)}if("[object ArrayBuffer]"===t)return new ArrayBuffer(e.byteLength);if("[object DataView]"===t){const t=e,n=t.buffer,r=t.byteOffset,i=t.byteLength,o=new ArrayBuffer(i),a=new Uint8Array(n,r,i);return new Uint8Array(o).set(a),new DataView(o)}if("[object Boolean]"===t||"[object Number]"===t||"[object String]"===t){const n=new(0,e.constructor)(e.valueOf());return"[object String]"===t?function(e,t){const n=t.valueOf().length;for(const r in t)Object.hasOwn(t,r)&&(Number.isNaN(Number(r))||Number(r)>=n)&&(e[r]=t[r])}(n,e):cWe(n,e),n}if("[object Date]"===t)return new Date(Number(e));if("[object RegExp]"===t){const t=e,n=new RegExp(t.source,t.flags);return n.lastIndex=t.lastIndex,n}if("[object Symbol]"===t)return Object(Symbol.prototype.valueOf.call(e));if("[object Map]"===t){const t=e,n=new Map;return t.forEach((e,t)=>{n.set(t,e)}),n}if("[object Set]"===t){const t=e,n=new Set;return t.forEach(e=>{n.add(e)}),n}if("[object Arguments]"===t){const t=e,n={};return cWe(n,t),n.length=t.length,n[Symbol.iterator]=t[Symbol.iterator],n}const r={};return function(e,t){const n=Object.getPrototypeOf(t);null!==n&&"function"==typeof t.constructor&&Object.setPrototypeOf(e,n)}(r,e),cWe(r,e),function(e,t){const n=Object.getOwnPropertySymbols(t);for(let r=0;r<n.length;r++){const i=n[r];Object.prototype.propertyIsEnumerable.call(t,i)&&(e[i]=t[i])}}(r,e),r}function cWe(e,t){for(const n in t)Object.hasOwn(t,n)&&(e[n]=t[n])}function uWe(e,t,n,r){if(HVe(e)&&(e=Object(e)),null==t||"object"!=typeof t)return e;if(r.has(t))return function(e){if(HVe(e))return e;if(Array.isArray(e)||KVe(e)||e instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);const t=Object.getPrototypeOf(e);if(null==t)return Object.assign(Object.create(t),e);const n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){const t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return t=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause}),t.stack=e.stack,Object.assign(t,e),t}return"undefined"!=typeof File&&e instanceof File?new n([e],e.name,{type:e.type,lastModified:e.lastModified}):"object"==typeof e?Object.assign(Object.create(t),e):e}(r.get(t));if(r.set(t,e),Array.isArray(t)){t=t.slice();for(let e=0;e<t.length;e++)e in t||(t[e]=void 0)}const i=[...Object.keys(t),...wVe(t)];for(let o=0;o<i.length;o++){const a=i[o];if(GVe(a))continue;let s=t[a],l=e[a];if(rWe(s)&&(s={...s}),rWe(l)&&(l={...l}),YVe(s)&&(s=nWe(s)),Array.isArray(s))if(Array.isArray(l)){const e=[],t=Reflect.ownKeys(l);for(let n=0;n<t.length;n++){const r=t[n];e[r]=l[r]}l=e}else if(oWe(l)){const e=[];for(let t=0;t<l.length;t++)e[t]=l[t];l=e}else l=[];const c=n(l,s,a,e,t,r);void 0!==c?e[a]=c:Array.isArray(s)||iWe(l)&&iWe(s)&&(bVe(l)||bVe(s)||aWe(l)||aWe(s))?e[a]=uWe(l,s,n,r):null==l&&bVe(s)?e[a]=uWe({},s,n,r):null==l&&aWe(s)?e[a]=nWe(s):void 0!==l&&void 0===s||(e[a]=s)}return e}function hWe(e,...t){return function(e,...t){const n=t.slice(0,-1),r=t[t.length-1];let i=e;for(let o=0;o<n.length;o++)i=uWe(i,n[o],r,new Map);return i}(e,...t,xVe)}function dWe(e){if(null==e)return!0;if(ZVe(e))return!!("function"==typeof e.splice||"string"==typeof e||YVe(e)||aWe(e)||rWe(e))&&0===e.length;if("object"==typeof e||"function"==typeof e){if(e instanceof Map||e instanceof Set)return 0===e.size;const t=Object.keys(e);return function(e){const t=null==e?void 0:e.constructor;return e===("function"==typeof t?t.prototype:Object.prototype)}(e)?0===t.filter(e=>"constructor"!==e).length:0===t.length}return!0}sWe.Cache=Map;var pWe={curveBasis:tqe,curveBasisClosed:function(e){return new nqe(e)},curveBasisOpen:function(e){return new rqe(e)},curveBumpX:Gze,curveBumpY:Hze,curveBundle:oqe,curveCardinalClosed:uqe,curveCardinalOpen:dqe,curveCardinal:lqe,curveCatmullRomClosed:Oqe,curveCatmullRomOpen:yqe,curveCatmullRom:gqe,curveLinear:zze,curveLinearClosed:function(e){return new vqe(e)},curveMonotoneX:_qe,curveMonotoneY:Cqe,curveNatural:Eqe,curveStep:Bqe,curveStepAfter:Lqe,curveStepBefore:Iqe},fWe=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,gWe=hRe(function(e,t){const n=mWe(e,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(n)){const e=n.map(e=>e.args);TBe(e),r=jRe(r,[...e])}else r=n.args;if(!r)return;let i=eIe(e,t);const o="config";return void 0!==r[o]&&("flowchart-v2"===i&&(i="flowchart"),r[i]=r[o],delete r[o]),r},"detectInit"),mWe=hRe(function(e,t=null){var n,r;try{const i=new RegExp(`[%]{2}(?![{]${fWe.source})(?=[}][%]{2}).*\n`,"ig");let o;e=e.trim().replace(i,"").replace(/'/gm,'"'),ORe.debug(`Detecting diagram directive${null!==t?" type:"+t:""} based on the text:${e}`);const a=[];for(;null!==(o=GBe.exec(e));)if(o.index===GBe.lastIndex&&GBe.lastIndex++,o&&!t||t&&(null==(n=o[1])?void 0:n.match(t))||t&&(null==(r=o[2])?void 0:r.match(t))){const e=o[1]?o[1]:o[2],t=o[3]?o[3].trim():o[4]?JSON.parse(o[4].trim()):null;a.push({type:e,args:t})}return 0===a.length?{type:e,args:null}:1===a.length?a[0]:a}catch(i){return ORe.error(`ERROR: ${i.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),OWe=hRe(function(e){return e.replace(GBe,"")},"removeDirectives"),AWe=hRe(function(e,t){for(const[n,r]of t.entries())if(r.match(e))return n;return-1},"isSubstringInArray");function yWe(e,t){if(!e)return t;const n=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return pWe[n]??t}function vWe(e,t){const n=e.trim();if(n)return"loose"!==t.securityLevel?vVe.sanitizeUrl(n):n}hRe(yWe,"interpolateToCurve"),hRe(vWe,"formatUrl");var bWe=hRe((e,...t)=>{const n=e.split("."),r=n.length-1,i=n[r];let o=window;for(let a=0;a<r;a++)if(o=o[n[a]],!o)return void ORe.error(`Function name: ${e} not found in window`);o[i](...t)},"runFunc");function xWe(e,t){return e&&t?Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function wWe(e){let t,n=0;e.forEach(e=>{n+=xWe(e,t),t=e});return TWe(e,n/2)}function kWe(e){return 1===e.length?e[0]:wWe(e)}hRe(xWe,"distance"),hRe(wWe,"traverseEdge"),hRe(kWe,"calcLabelPosition");var SWe=hRe((e,t=2)=>{const n=Math.pow(10,t);return Math.round(e*n)/n},"roundNumber"),TWe=hRe((e,t)=>{let n,r=t;for(const i of e){if(n){const e=xWe(i,n);if(0===e)return n;if(e<r)r-=e;else{const t=r/e;if(t<=0)return n;if(t>=1)return{x:i.x,y:i.y};if(t>0&&t<1)return{x:SWe((1-t)*n.x+t*i.x,5),y:SWe((1-t)*n.y+t*i.y,5)}}}n=i}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),$We=hRe((e,t,n)=>{ORe.info(`our points ${JSON.stringify(t)}`),t[0]!==n&&(t=t.reverse());const r=TWe(t,25),i=e?10:5,o=Math.atan2(t[0].y-r.y,t[0].x-r.x),a={x:0,y:0};return a.x=Math.sin(o)*i+(t[0].x+r.x)/2,a.y=-Math.cos(o)*i+(t[0].y+r.y)/2,a},"calcCardinalityPosition");function _We(e,t,n){const r=structuredClone(n);ORe.info("our points",r),"start_left"!==t&&"start_right"!==t&&r.reverse();const i=TWe(r,25+e),o=10+.5*e,a=Math.atan2(r[0].y-i.y,r[0].x-i.x),s={x:0,y:0};return"start_left"===t?(s.x=Math.sin(a+Math.PI)*o+(r[0].x+i.x)/2,s.y=-Math.cos(a+Math.PI)*o+(r[0].y+i.y)/2):"end_right"===t?(s.x=Math.sin(a-Math.PI)*o+(r[0].x+i.x)/2-5,s.y=-Math.cos(a-Math.PI)*o+(r[0].y+i.y)/2-5):"end_left"===t?(s.x=Math.sin(a)*o+(r[0].x+i.x)/2-5,s.y=-Math.cos(a)*o+(r[0].y+i.y)/2-5):(s.x=Math.sin(a)*o+(r[0].x+i.x)/2,s.y=-Math.cos(a)*o+(r[0].y+i.y)/2),s}function CWe(e){let t="",n="";for(const r of e)void 0!==r&&(r.startsWith("color:")||r.startsWith("text-align:")?n=n+r+";":t=t+r+";");return{style:t,labelStyle:n}}hRe(_We,"calcTerminalLabelPosition"),hRe(CWe,"getStylesFromArray");var QWe=0,PWe=hRe(()=>(QWe++,"id-"+Math.random().toString(36).substr(2,12)+"-"+QWe),"generateId");function EWe(e){let t="";const n="0123456789abcdef";for(let r=0;r<e;r++)t+=n.charAt(Math.floor(16*Math.random()));return t}hRe(EWe,"makeRandomHex");var RWe=hRe(e=>EWe(e.length),"random"),BWe=hRe(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),IWe=hRe(function(e,t){const n=t.text.replace(CIe.lineBreakRegex," "),[,r]=WWe(t.fontSize),i=e.append("text");i.attr("x",t.x),i.attr("y",t.y),i.style("text-anchor",t.anchor),i.style("font-family",t.fontFamily),i.style("font-size",r),i.style("font-weight",t.fontWeight),i.attr("fill",t.fill),void 0!==t.class&&i.attr("class",t.class);const o=i.append("tspan");return o.attr("x",t.x+2*t.textMargin),o.attr("fill",t.fill),o.text(n),i},"drawSimpleText"),LWe=sWe((e,t,n)=>{if(!e)return e;if(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),CIe.lineBreakRegex.test(e))return e;const r=e.split(" ").filter(Boolean),i=[];let o="";return r.forEach((e,a)=>{const s=NWe(`${e} `,n),l=NWe(o,n);if(s>t){const{hyphenatedStrings:r,remainingWord:a}=DWe(e,t,"-",n);i.push(o,...r),o=a}else l+s>=t?(i.push(o),o=e):o=[o,e].filter(Boolean).join(" ");a+1===r.length&&i.push(o)}),i.filter(e=>""!==e).join(n.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),DWe=sWe((e,t,n="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const i=[...e],o=[];let a="";return i.forEach((e,s)=>{const l=`${a}${e}`;if(NWe(l,r)>=t){const e=s+1,t=i.length===e,r=`${l}${n}`;o.push(t?l:r),a=""}else a=l}),{hyphenatedStrings:o,remainingWord:a}},(e,t,n="-",r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function MWe(e,t){return FWe(e,t).height}function NWe(e,t){return FWe(e,t).width}hRe(MWe,"calculateTextHeight"),hRe(NWe,"calculateTextWidth");var XWe,FWe=sWe((e,t)=>{const{fontSize:n=12,fontFamily:r="Arial",fontWeight:i=400}=t;if(!e)return{width:0,height:0};const[,o]=WWe(n),a=["sans-serif",r],s=e.split(CIe.lineBreakRegex),l=[],c=GDe("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const h of a){let e=0;const t={width:0,height:0,lineHeight:0};for(const n of s){const r=BWe();r.text=n||"";const a=IWe(u,r).style("font-size",o).style("font-weight",i).style("font-family",h),s=(a._groups||a)[0][0].getBBox();if(0===s.width&&0===s.height)throw new Error("svg element not in render tree");t.width=Math.round(Math.max(t.width,s.width)),e=Math.round(s.height),t.height+=e,t.lineHeight=Math.round(Math.max(t.lineHeight,e))}l.push(t)}u.remove();return l[isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),UWe=(hRe(m=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}},"InitIDGenerator"),m),zWe=hRe(function(e){return XWe=XWe||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),XWe.innerHTML=e,unescape(XWe.textContent)},"entityDecode");function qWe(e){return"str"in e}hRe(qWe,"isDetailedError");var VWe=hRe((e,t,n,r)=>{var i;if(!r)return;const o=null==(i=e.node())?void 0:i.getBBox();o&&e.append("text").text(r).attr("text-anchor","middle").attr("x",o.x+o.width/2).attr("y",-n).attr("class",t)},"insertTitle"),WWe=hRe(e=>{if("number"==typeof e)return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function jWe(e,t){return hWe({},e,t)}hRe(jWe,"cleanAndMerge");var YWe={assignWithDepth:jRe,wrapLabel:LWe,calculateTextHeight:MWe,calculateTextWidth:NWe,calculateTextDimensions:FWe,cleanAndMerge:jWe,detectInit:gWe,detectDirective:mWe,isSubstringInArray:AWe,interpolateToCurve:yWe,calcLabelPosition:kWe,calcCardinalityPosition:$We,calcTerminalLabelPosition:_We,formatUrl:vWe,getStylesFromArray:CWe,generateId:PWe,random:RWe,runFunc:bWe,entityDecode:zWe,insertTitle:VWe,isLabelCoordinateInPath:JWe,parseFontSize:WWe,InitIDGenerator:UWe},ZWe=hRe(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/#\w+;/g,function(e){const t=e.substring(1,e.length-1);return/^\+?\d+$/.test(t)?"fl°°"+t+"¶ß":"fl°"+t+"¶ß"}),t},"encodeEntities"),GWe=hRe(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),HWe=hRe((e,t,{counter:n=0,prefix:r,suffix:i},o)=>o||`${r?`${r}_`:""}${e}_${t}_${n}${i?`_${i}`:""}`,"getEdgeId");function KWe(e){return e??null}function JWe(e,t){const n=Math.round(e.x),r=Math.round(e.y),i=t.replace(/(\d+\.\d+)/g,e=>Math.round(parseFloat(e)).toString());return i.includes(n.toString())||i.includes(r.toString())}hRe(KWe,"handleUndefinedAttr"),hRe(JWe,"isLabelCoordinateInPath");var eje,tje={exports:{}},nje=tje.exports;var rje=(eje||(eje=1,function(e){!function(t){var n=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(e){return setTimeout(e,16)};function r(){var e=this;e.reads=[],e.writes=[],e.raf=n.bind(t)}function i(e){e.scheduled||(e.scheduled=!0,e.raf(o.bind(null,e)))}function o(e){var t,n=e.writes,r=e.reads;try{r.length,e.runTasks(r),n.length,e.runTasks(n)}catch(jk){t=jk}if(e.scheduled=!1,(r.length||n.length)&&i(e),t){if(t.message,!e.catch)throw t;e.catch(t)}}function a(e,t){var n=e.indexOf(t);return!!~n&&!!e.splice(n,1)}r.prototype={constructor:r,runTasks:function(e){for(var t;t=e.shift();)t()},measure:function(e,t){var n=t?e.bind(t):e;return this.reads.push(n),i(this),n},mutate:function(e,t){var n=t?e.bind(t):e;return this.writes.push(n),i(this),n},clear:function(e){return a(this.reads,e)||a(this.writes,e)},extend:function(e){if("object"!=typeof e)throw new Error("expected object");var t=Object.create(this);return function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}(t,e),t.fastdom=this,t.initialize&&t.initialize(),t},catch:null};var s=t.fastdom=t.fastdom||new r;e.exports=s}("undefined"!=typeof window?window:void 0!==nje?nje:globalThis)}(tje)),tje.exports);const ije=rk(rje);var oje,aje={exports:{}};var sje=(oje||(oje=1,function(e){!function(){var t={initialize:function(){this._tasks=new Map},mutate:function(e,t){return n(this,"mutate",e,t)},measure:function(e,t){return n(this,"measure",e,t)},clear:function(e){var t=this._tasks,n=t.get(e);this.fastdom.clear(n),t.delete(e)}};function n(e,t,n,r){var i,o=e._tasks,a=e.fastdom,s=new Promise(function(e,l){i=a[t](function(){o.delete(s);try{e(r?n.call(r):n())}catch(jk){l(jk)}},r)});return o.set(s,i),s}"f"=="undefined"[0]?(void 0)(function(){return t}):"o"=="object"[0]?e.exports=t:window.fastdomPromised=t}()}(aje)),aje.exports);const lje=rk(sje);function cje(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var uje={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function hje(e){uje=e}var dje={exec:()=>null};function pje(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(gje.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var fje=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),gje={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},mje=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Oje=/(?:[*+-]|\d{1,9}[.)])/,Aje=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,yje=pje(Aje).replace(/bull/g,Oje).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),vje=pje(Aje).replace(/bull/g,Oje).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),bje=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,xje=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,wje=pje(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",xje).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),kje=pje(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Oje).getRegex(),Sje="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Tje=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,$je=pje("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",Tje).replace("tag",Sje).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),_je=pje(bje).replace("hr",mje).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Sje).getRegex(),Cje={blockquote:pje(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",_je).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:wje,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:mje,html:$je,lheading:yje,list:kje,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:_je,table:dje,text:/^[^\n]+/},Qje=pje("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",mje).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Sje).getRegex(),Pje={...Cje,lheading:vje,table:Qje,paragraph:pje(bje).replace("hr",mje).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Qje).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Sje).getRegex()},Eje={...Cje,html:pje("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Tje).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:dje,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:pje(bje).replace("hr",mje).replace("heading"," *#{1,6} *[^\n]").replace("lheading",yje).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Rje=/^( {2,}|\\)\n(?!\s*$)/,Bje=/[\p{P}\p{S}]/u,Ije=/[\s\p{P}\p{S}]/u,Lje=/[^\s\p{P}\p{S}]/u,Dje=pje(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Ije).getRegex(),Mje=/(?!~)[\p{P}\p{S}]/u,Nje=pje(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",fje?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Xje=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Fje=pje(Xje,"u").replace(/punct/g,Bje).getRegex(),Uje=pje(Xje,"u").replace(/punct/g,Mje).getRegex(),zje="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",qje=pje(zje,"gu").replace(/notPunctSpace/g,Lje).replace(/punctSpace/g,Ije).replace(/punct/g,Bje).getRegex(),Vje=pje(zje,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,Mje).getRegex(),Wje=pje("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Lje).replace(/punctSpace/g,Ije).replace(/punct/g,Bje).getRegex(),jje=pje(/\\(punct)/,"gu").replace(/punct/g,Bje).getRegex(),Yje=pje(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Zje=pje(Tje).replace("(?:--\x3e|$)","--\x3e").getRegex(),Gje=pje("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Zje).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Hje=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Kje=pje(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Hje).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Jje=pje(/^!?\[(label)\]\[(ref)\]/).replace("label",Hje).replace("ref",xje).getRegex(),eYe=pje(/^!?\[(ref)\](?:\[\])?/).replace("ref",xje).getRegex(),tYe=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,nYe={_backpedal:dje,anyPunctuation:jje,autolink:Yje,blockSkip:Nje,br:Rje,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:dje,emStrongLDelim:Fje,emStrongRDelimAst:qje,emStrongRDelimUnd:Wje,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:Kje,nolink:eYe,punctuation:Dje,reflink:Jje,reflinkSearch:pje("reflink|nolink(?!\\()","g").replace("reflink",Jje).replace("nolink",eYe).getRegex(),tag:Gje,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:dje},rYe={...nYe,link:pje(/^!?\[(label)\]\((.*?)\)/).replace("label",Hje).getRegex(),reflink:pje(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Hje).getRegex()},iYe={...nYe,emStrongRDelimAst:Vje,emStrongLDelim:Uje,url:pje(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",tYe).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:pje(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",tYe).getRegex()},oYe={...iYe,br:pje(Rje).replace("{2,}","*").getRegex(),text:pje(iYe.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},aYe={normal:Cje,gfm:Pje,pedantic:Eje},sYe={normal:nYe,gfm:iYe,breaks:oYe,pedantic:rYe},lYe={"&":"&","<":"<",">":">",'"':""","'":"'"},cYe=e=>lYe[e];function uYe(e,t){if(t){if(gje.escapeTest.test(e))return e.replace(gje.escapeReplace,cYe)}else if(gje.escapeTestNoEncode.test(e))return e.replace(gje.escapeReplaceNoEncode,cYe);return e}function hYe(e){try{e=encodeURI(e).replace(gje.percentDecode,"%")}catch{return null}return e}function dYe(e,t){var n;let r=e.replace(gje.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(gje.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!(null==(n=r.at(-1))?void 0:n.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(gje.slashPipe,"|");return r}function pYe(e,t,n){let r=e.length;if(0===r)return"";let i=0;for(;i<r;){if(e.charAt(r-i-1)!==t)break;i++}return e.slice(0,r-i)}function fYe(e,t,n,r,i){let o=t.href,a=t.title||null,s=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:o,title:a,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,l}var gYe=class{constructor(e){Jn(this,"options"),Jn(this,"rules"),Jn(this,"lexer"),this.options=e||uje}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:pYe(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let i=r[1];return t.split("\n").map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=pYe(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:pYe(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=pYe(t[0],"\n").split("\n"),n="",r="",i=[];for(;e.length>0;){let t,o=!1,a=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))a.push(e[t]),o=!0;else{if(o)break;a.push(e[t])}e=e.slice(t);let s=a.join("\n"),l=s.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${s}`:s,r=r?`${r}\n${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=c,0===e.length)break;let u=i.at(-1);if("code"===(null==u?void 0:u.type))break;if("blockquote"===(null==u?void 0:u.type)){let t=u,o=t.raw+"\n"+e.join("\n"),a=this.blockquote(o);i[i.length-1]=a,n=n.substring(0,n.length-t.raw.length)+a.raw,r=r.substring(0,r.length-t.text.length)+a.text;break}if("list"===(null==u?void 0:u.type)){let t=u,o=t.raw+"\n"+e.join("\n"),a=this.list(o);i[i.length-1]=a,n=n.substring(0,n.length-u.raw.length)+a.raw,r=r.substring(0,r.length-t.raw.length)+a.raw,e=o.substring(i.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let o=this.rules.other.listItemRegex(n),a=!1;for(;e;){let n=!1,r="",s="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let l=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),c=e.split("\n",1)[0],u=!l.trim(),h=0;if(this.options.pedantic?(h=2,s=l.trimStart()):u?h=t[1].length+1:(h=t[2].search(this.rules.other.nonSpaceChar),h=h>4?1:h,s=l.slice(h),h+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(r+=c+"\n",e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(h),n=this.rules.other.hrRegex(h),i=this.rules.other.fencesBeginRegex(h),o=this.rules.other.headingBeginRegex(h),a=this.rules.other.htmlBeginRegex(h);for(;e;){let d,p=e.split("\n",1)[0];if(c=p,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),d=c):d=c.replace(this.rules.other.tabCharGlobal," "),i.test(c)||o.test(c)||a.test(c)||t.test(c)||n.test(c))break;if(d.search(this.rules.other.nonSpaceChar)>=h||!c.trim())s+="\n"+d.slice(h);else{if(u||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(l)||o.test(l)||n.test(l))break;s+="\n"+c}!u&&!c.trim()&&(u=!0),r+=p+"\n",e=e.substring(p.length+1),l=d.slice(h)}}i.loose||(a?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(a=!0));let d,p=null;this.options.gfm&&(p=this.rules.other.listIsTask.exec(s),p&&(d="[ ] "!==p[0],s=s.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:r,task:!!p,checked:d,loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(!s)return;s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter(e=>"space"===e.type),n=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));i.loose=n}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){var t;let n=this.rules.block.table.exec(e);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let r=dYe(n[1]),i=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(null==(t=n[3])?void 0:t.trim())?n[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],a={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===i.length){for(let e of i)this.rules.other.tableAlignRight.test(e)?a.align.push("right"):this.rules.other.tableAlignCenter.test(e)?a.align.push("center"):this.rules.other.tableAlignLeft.test(e)?a.align.push("left"):a.align.push(null);for(let e=0;e<r.length;e++)a.header.push({text:r[e],tokens:this.lexer.inline(r[e]),header:!0,align:a.align[e]});for(let e of o)a.rows.push(dYe(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=pYe(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),fYe(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return fYe(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!r[1]&&!r[2]||!n||this.rules.inline.punctuation.exec(n))){let n,i,o=[...r[0]].length-1,a=o,s=0,l="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+o);null!=(r=l.exec(t));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n)continue;if(i=[...n].length,r[3]||r[4]){a+=i;continue}if((r[5]||r[6])&&o%3&&!((o+i)%3)){s+=i;continue}if(a-=i,a>0)continue;i=Math.min(i,i+a+s);let t=[...r[0]][0].length,l=e.slice(0,o+r.index+t+i);if(Math.min(o,i)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=t[1],n="mailto:"+e):(e=t[1],n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){var t;let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=n[0],r="mailto:"+e;else{let i;do{i=n[0],n[0]=(null==(t=this.rules.inline._backpedal.exec(n[0]))?void 0:t[0])??""}while(i!==n[0]);e=n[0],r="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},mYe=class e{constructor(e){Jn(this,"tokens"),Jn(this,"options"),Jn(this,"state"),Jn(this,"tokenizer"),Jn(this,"inlineQueue"),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||uje,this.options.tokenizer=this.options.tokenizer||new gYe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:gje,block:aYe.normal,inline:sYe.normal};this.options.pedantic?(t.block=aYe.pedantic,t.inline=sYe.pedantic):this.options.gfm&&(t.block=aYe.gfm,this.options.breaks?t.inline=sYe.breaks:t.inline=sYe.gfm),this.tokenizer.rules=t}static get rules(){return{block:aYe,inline:sYe}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(gje.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){var r,i,o;for(this.options.pedantic&&(e=e.replace(gje.tabCharGlobal," ").replace(gje.spaceLine,""));e;){let a;if(null==(i=null==(r=this.options.extensions)?void 0:r.block)?void 0:i.some(n=>!!(a=n.call({lexer:this},e,t))&&(e=e.substring(a.raw.length),t.push(a),!0)))continue;if(a=this.tokenizer.space(e)){e=e.substring(a.raw.length);let n=t.at(-1);1===a.raw.length&&void 0!==n?n.raw+="\n":t.push(a);continue}if(a=this.tokenizer.code(e)){e=e.substring(a.raw.length);let n=t.at(-1);"paragraph"===(null==n?void 0:n.type)||"text"===(null==n?void 0:n.type)?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+a.raw,n.text+="\n"+a.text,this.inlineQueue.at(-1).src=n.text):t.push(a);continue}if(a=this.tokenizer.fences(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.heading(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.hr(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.blockquote(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.list(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.html(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.def(e)){e=e.substring(a.raw.length);let n=t.at(-1);"paragraph"===(null==n?void 0:n.type)||"text"===(null==n?void 0:n.type)?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+a.raw,n.text+="\n"+a.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title},t.push(a));continue}if(a=this.tokenizer.table(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.lheading(e)){e=e.substring(a.raw.length),t.push(a);continue}let s=e;if(null==(o=this.options.extensions)?void 0:o.startBlock){let t,n=1/0,r=e.slice(1);this.options.extensions.startBlock.forEach(e=>{t=e.call({lexer:this},r),"number"==typeof t&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(s=e.substring(0,n+1))}if(this.state.top&&(a=this.tokenizer.paragraph(s))){let r=t.at(-1);n&&"paragraph"===(null==r?void 0:r.type)?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+a.raw,r.text+="\n"+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(a),n=s.length!==e.length,e=e.substring(a.raw.length);continue}if(a=this.tokenizer.text(e)){e=e.substring(a.raw.length);let n=t.at(-1);"text"===(null==n?void 0:n.type)?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+a.raw,n.text+="\n"+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(a);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){var n,r,i,o,a;let s,l=e,c=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(c=this.tokenizer.rules.inline.reflinkSearch.exec(l));)e.includes(c[0].slice(c[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,c.index)+"["+"a".repeat(c[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(c=this.tokenizer.rules.inline.anyPunctuation.exec(l));)l=l.slice(0,c.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(c=this.tokenizer.rules.inline.blockSkip.exec(l));)s=c[2]?c[2].length:0,l=l.slice(0,c.index+s)+"["+"a".repeat(c[0].length-s-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);l=(null==(r=null==(n=this.options.hooks)?void 0:n.emStrongMask)?void 0:r.call({lexer:this},l))??l;let u=!1,h="";for(;e;){let n;if(u||(h=""),u=!1,null==(o=null==(i=this.options.extensions)?void 0:i.inline)?void 0:o.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let r=t.at(-1);"text"===n.type&&"text"===(null==r?void 0:r.type)?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,l,h)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let r=e;if(null==(a=this.options.extensions)?void 0:a.startInline){let t,n=1/0,i=e.slice(1);this.options.extensions.startInline.forEach(e=>{t=e.call({lexer:this},i),"number"==typeof t&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(r=e.substring(0,n+1))}if(n=this.tokenizer.inlineText(r)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(h=n.raw.slice(-1)),u=!0;let r=t.at(-1);"text"===(null==r?void 0:r.type)?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(t)}}return t}},OYe=class{constructor(e){Jn(this,"options"),Jn(this,"parser"),this.options=e||uje}space(e){return""}code({text:e,lang:t,escaped:n}){var r;let i=null==(r=(t||"").match(gje.notSpaceStart))?void 0:r[0],o=e.replace(gje.endingNewline,"")+"\n";return i?'<pre><code class="language-'+uYe(i)+'">'+(n?o:uYe(o,!0))+"</code></pre>\n":"<pre><code>"+(n?o:uYe(o,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,n=e.start,r="";for(let o=0;o<e.items.length;o++){let t=e.items[o];r+=this.listitem(t)}let i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+i+">\n"}listitem(e){var t;let n="";if(e.task){let r=this.checkbox({checked:!!e.checked});e.loose?"paragraph"===(null==(t=e.tokens[0])?void 0:t.type)?(e.tokens[0].text=r+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=r+" "+uYe(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):n+=r+" "}return n+=this.parser.parse(e.tokens,!!e.loose),`<li>${n}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let i=0;i<e.header.length;i++)n+=this.tablecell(e.header[i]);t+=this.tablerow({text:n});let r="";for(let i=0;i<e.rows.length;i++){let t=e.rows[i];n="";for(let e=0;e<t.length;e++)n+=this.tablecell(t[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+r+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${uYe(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=hYe(e);if(null===i)return r;let o='<a href="'+(e=i)+'"';return t&&(o+=' title="'+uYe(t)+'"'),o+=">"+r+"</a>",o}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=hYe(e);if(null===i)return uYe(n);let o=`<img src="${e=i}" alt="${n}"`;return t&&(o+=` title="${uYe(t)}"`),o+=">",o}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:uYe(e.text)}},AYe=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},yYe=class e{constructor(e){Jn(this,"options"),Jn(this,"renderer"),Jn(this,"textRenderer"),this.options=e||uje,this.options.renderer=this.options.renderer||new OYe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new AYe}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){var n,r;let i="";for(let o=0;o<e.length;o++){let a=e[o];if(null==(r=null==(n=this.options.extensions)?void 0:n.renderers)?void 0:r[a.type]){let e=a,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(e.type)){i+=t||"";continue}}let s=a;switch(s.type){case"space":i+=this.renderer.space(s);continue;case"hr":i+=this.renderer.hr(s);continue;case"heading":i+=this.renderer.heading(s);continue;case"code":i+=this.renderer.code(s);continue;case"table":i+=this.renderer.table(s);continue;case"blockquote":i+=this.renderer.blockquote(s);continue;case"list":i+=this.renderer.list(s);continue;case"html":i+=this.renderer.html(s);continue;case"def":i+=this.renderer.def(s);continue;case"paragraph":i+=this.renderer.paragraph(s);continue;case"text":{let n=s,r=this.renderer.text(n);for(;o+1<e.length&&"text"===e[o+1].type;)n=e[++o],r+="\n"+this.renderer.text(n);i+=t?this.renderer.paragraph({type:"paragraph",raw:r,text:r,tokens:[{type:"text",raw:r,text:r,escaped:!0}]}):r;continue}default:{let e='Token with "'+s.type+'" type was not found.';if(this.options.silent)return"";throw new Error(e)}}}return i}parseInline(e,t=this.renderer){var n,r;let i="";for(let o=0;o<e.length;o++){let a=e[o];if(null==(r=null==(n=this.options.extensions)?void 0:n.renderers)?void 0:r[a.type]){let e=this.options.extensions.renderers[a.type].call({parser:this},a);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){i+=e||"";continue}}let s=a;switch(s.type){case"escape":case"text":i+=t.text(s);break;case"html":i+=t.html(s);break;case"link":i+=t.link(s);break;case"image":i+=t.image(s);break;case"strong":i+=t.strong(s);break;case"em":i+=t.em(s);break;case"codespan":i+=t.codespan(s);break;case"br":i+=t.br(s);break;case"del":i+=t.del(s);break;default:{let e='Token with "'+s.type+'" type was not found.';if(this.options.silent)return"";throw new Error(e)}}}return i}},vYe=(O=class{constructor(e){Jn(this,"options"),Jn(this,"block"),this.options=e||uje}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?mYe.lex:mYe.lexInline}provideParser(){return this.block?yYe.parse:yYe.parseInline}},Jn(O,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Jn(O,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),O),bYe=new class{constructor(...e){Jn(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),Jn(this,"options",this.setOptions),Jn(this,"parse",this.parseMarkdown(!0)),Jn(this,"parseInline",this.parseMarkdown(!1)),Jn(this,"Parser",yYe),Jn(this,"Renderer",OYe),Jn(this,"TextRenderer",AYe),Jn(this,"Lexer",mYe),Jn(this,"Tokenizer",gYe),Jn(this,"Hooks",vYe),this.use(...e)}walkTokens(e,t){var n,r;let i=[];for(let o of e)switch(i=i.concat(t.call(this,o)),o.type){case"table":{let e=o;for(let n of e.header)i=i.concat(this.walkTokens(n.tokens,t));for(let n of e.rows)for(let e of n)i=i.concat(this.walkTokens(e.tokens,t));break}case"list":{let e=o;i=i.concat(this.walkTokens(e.items,t));break}default:{let e=o;(null==(r=null==(n=this.defaults.extensions)?void 0:n.childTokens)?void 0:r[e.type])?this.defaults.extensions.childTokens[e.type].forEach(n=>{let r=e[n].flat(1/0);i=i.concat(this.walkTokens(r,t))}):e.tokens&&(i=i.concat(this.walkTokens(e.tokens,t)))}}return i}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new OYe(this.defaults);for(let n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=n,i=e.renderer[r],o=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=o.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new gYe(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=n,i=e.tokenizer[r],o=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=o.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new vYe;for(let n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=n,i=e.hooks[r],o=t[r];vYe.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&vYe.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return o.call(t,n)})();let r=i.call(t,e);return o.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return!1===n&&(n=await o.apply(t,e)),n})();let n=i.apply(t,e);return!1===n&&(n=o.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return mYe.lex(e,t??this.defaults)}parser(e,t){return yYe.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},o=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return o(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer():e?mYe.lex:mYe.lexInline)(n,i),o=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(o,i.walkTokens));let a=await(i.hooks?await i.hooks.provideParser():e?yYe.parse:yYe.parseInline)(o,i);return i.hooks?await i.hooks.postprocess(a):a})().catch(o);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer():e?mYe.lex:mYe.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser():e?yYe.parse:yYe.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(a){return o(a)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+uYe(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function xYe(e,t){return bYe.parse(e,t)}function wYe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.from("string"==typeof e?[e]:e);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var i=r.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){var t,n;return null!==(n=null===(t=e.match(/[\t ]/g))||void 0===t?void 0:t.length)&&void 0!==n?n:0})):e},[]);if(i.length){var o=new RegExp("\n[\t ]{".concat(Math.min.apply(Math,i),"}"),"g");r=r.map(function(e){return e.replace(o,"\n")})}r[0]=r[0].replace(/^\r?\n/,"");var a=r[0];return t.forEach(function(e,t){var n=a.match(/(?:^|\n)( *)$/),i=n?n[1]:"",o=e;"string"==typeof e&&e.includes("\n")&&(o=String(e).split("\n").map(function(e,t){return 0===t?e:"".concat(i).concat(e)}).join("\n")),a+=o+r[t+1]}),a}xYe.options=xYe.setOptions=function(e){return bYe.setOptions(e),xYe.defaults=bYe.defaults,hje(xYe.defaults),xYe},xYe.getDefaults=cje,xYe.defaults=uje,xYe.use=function(...e){return bYe.use(...e),xYe.defaults=bYe.defaults,hje(xYe.defaults),xYe},xYe.walkTokens=function(e,t){return bYe.walkTokens(e,t)},xYe.parseInline=bYe.parseInline,xYe.Parser=yYe,xYe.parser=yYe.parse,xYe.Renderer=OYe,xYe.TextRenderer=AYe,xYe.Lexer=mYe,xYe.lexer=mYe.lex,xYe.Tokenizer=gYe,xYe.Hooks=vYe,xYe.parse=xYe,xYe.options,xYe.setOptions,xYe.use,xYe.walkTokens,xYe.parseInline,yYe.parse,mYe.lex;var kYe="undefined"!=typeof performance&&"function"==typeof performance.now,SYe=hRe(()=>kYe?performance.now():0,"now"),TYe={parse:"tertiary",prepare:"secondary",measure:"primary",layout:"primary-dark",layoutCore:"error",draw:"primary-light",paint:"secondary-dark",serialize:"tertiary-dark",render:"primary-light"};A=class{constructor(){this.enabled=!1,this.autoPrint=!0,this.records=[],this.maxRecords=200,this.roots=[],this.stack=[],this.buckets={}}enable(){return this.enabled=!0,this}disable(){return this.enabled=!1,this}start(e){this.enabled&&(this.roots=[],this.stack=[],this.buckets={},this.begin(e))}tickSync(e,t){if(!this.enabled)return t();const n=SYe();try{return t()}finally{this.buckets[e]=(this.buckets[e]??0)+(SYe()-n)}}async tick(e,t){if(!this.enabled)return t();const n=SYe();try{return await t()}finally{this.buckets[e]=(this.buckets[e]??0)+(SYe()-n)}}stop(){if(!this.enabled)return;for(;this.stack.length>0;)this.end();const e=this.roots.at(-1),t=this.runLabel??(null==e?void 0:e.name);return e&&(this.records.push({label:t??e.name,tree:e,buckets:{...this.buckets}}),this.records.length>this.maxRecords&&this.records.splice(0,this.records.length-this.maxRecords),this.autoPrint&&this.printSummary(e,t)),this.runLabel=void 0,e}begin(e){if(!this.enabled)return;const t={name:e,start:SYe(),duration:-1,children:[]},n=this.stack.at(-1);if(n?n.children.push(t):this.roots.push(t),this.stack.push(t),kYe&&"function"==typeof performance.mark)try{performance.mark(`🧜 ${e} ▶`)}catch{}}end(){if(!this.enabled)return;const e=this.stack.pop();if(!e)return;const t=SYe();if(e.duration=t-e.start,kYe&&"function"==typeof performance.measure)try{performance.measure(`🧜 ${e.name}`,{start:e.start,end:t,detail:{devtools:{dataType:"track-entry",track:"Mermaid render",trackGroup:"Mermaid",color:TYe[e.name]??"primary",tooltipText:`${e.name} — ${e.duration.toFixed(1)} ms`}}})}catch{}}async span(e,t){if(!this.enabled)return t();this.begin(e);try{return await t()}finally{this.end()}}report(){var e;return(null==(e=this.records.at(-1))?void 0:e.tree)??this.roots.at(-1)}clear(){this.records.length=0,this.roots=[],this.stack=[],this.runLabel=void 0}reset(){this.roots=[],this.stack=[]}printSummary(e=this.report(),t){if(!e)return;const n=e.duration,r=(t&&t!==e.name?e.name:e.name,["ms % phase"]),i=hRe((e,t)=>{const o=" ".repeat(t),a=e.duration.toFixed(1).padStart(8),s=n>0?`${(e.duration/n*100).toFixed(0).padStart(3)}%`:" -";r.push(`${a} ${s} ${o}${e.name}`);for(const n of e.children)i(n,t+1);if(e.children.length>0){const t=e.children.reduce((e,t)=>e+t.duration,0),n=e.duration-t;if(n>.5){const e=n.toFixed(1).padStart(8);r.push(`${e} ${o} (self)`)}}},"walk");i(e,0);const o=Object.keys(this.buckets);if(o.length>0){r.push("—— buckets (summed) ——");for(const e of o)r.push(`${this.buckets[e].toFixed(1).padStart(8)} ${e}`)}}},hRe(A,"Profiler"),globalThis.injected??(globalThis.injected={includeLargeFeatures:!0,profiling:!1,version:"0.0.0"});var $Ye=ije.extend({raf(e){"function"==typeof queueMicrotask?queueMicrotask(e):setTimeout(e,0)}}).extend(lje);function _Ye(e,{markdownAutoWrap:t}){return wYe(e.replace(/<br\/>/g,"\n").replace(/\n{2,}/g,"\n"))}function CYe(e){return e.split(/\\n|\n|<br\s*\/?>/gi).map(e=>{var t;return(null==(t=e.trim().match(/<[^>]+>|[^\s<>]+/g))?void 0:t.map(e=>({content:e,type:"normal"})))??[]})}function QYe(e,t={}){const n=_Ye(e,t),r=xYe.lexer(n),i=[[]];let o=0;function a(e,t="normal"){if("text"===e.type){e.text.split("\n").forEach((e,n)=>{0!==n&&(o++,i.push([])),e.split(" ").forEach(e=>{(e=e.replace(/'/g,"'"))&&i[o].push({content:e,type:t})})})}else"strong"===e.type||"em"===e.type?e.tokens.forEach(t=>{a(t,e.type)}):"html"===e.type&&i[o].push({content:e.text,type:"normal"})}return hRe(a,"processNode"),r.forEach(e=>{var t;"paragraph"===e.type?null==(t=e.tokens)||t.forEach(e=>{a(e)}):"html"===e.type?i[o].push({content:e.text,type:"normal"}):i[o].push({content:e.raw,type:"normal"})}),i}function PYe(e){return e?`<p>${e.replace(/\\n|\n/g,"<br />")}</p>`:""}function EYe(e,{markdownAutoWrap:t}={}){const n=xYe.lexer(e);function r(e){var n,i,o;return"text"===e.type?!1===t?e.text.replace(/\n */g,"<br/>").replace(/ /g," "):e.text.replace(/\n */g,"<br/>"):"strong"===e.type?`<strong>${null==(n=e.tokens)?void 0:n.map(r).join("")}</strong>`:"em"===e.type?`<em>${null==(i=e.tokens)?void 0:i.map(r).join("")}</em>`:"paragraph"===e.type?`<p>${null==(o=e.tokens)?void 0:o.map(r).join("")}</p>`:"space"===e.type?"":"html"===e.type?`${e.text}`:"escape"===e.type?e.text:(ORe.warn(`Unsupported markdown: ${e.type}`),e.raw)}return hRe(r,"output"),n.map(r).join("")}function RYe(e){return Intl.Segmenter?[...(new Intl.Segmenter).segment(e)].map(e=>e.segment):[...e]}function BYe(e,t){return IYe(e,[],RYe(t.content),t.type)}function IYe(e,t,n,r){if(0===n.length)return[{content:t.join(""),type:r},{content:"",type:r}];const[i,...o]=n,a=[...t,i];return e([{content:a.join(""),type:r}])?IYe(e,a,o,r):(0===t.length&&i&&(t.push(i),n.shift()),[{content:t.join(""),type:r},{content:n.join(""),type:r}])}function LYe(e,t){if(e.some(({content:e})=>e.includes("\n")))throw new Error("splitLineToFitWidth does not support newlines in the line");return DYe(e,t)}function DYe(e,t,n=[],r=[]){if(0===e.length)return r.length>0&&n.push(r),n.length>0?n:[];let i="";" "===e[0].content&&(i=" ",e.shift());const o=e.shift()??{content:" ",type:"normal"},a=[...r];if(""!==i&&a.push({content:i,type:"normal"}),a.push(o),t(a))return DYe(e,t,n,a);if(r.length>0)n.push(r),e.unshift(o);else if(o.content){const[r,i]=BYe(t,o);n.push([r]),i.content&&e.unshift(i)}return DYe(e,t,n)}function MYe(e,t){t&&e.attr("style",t)}hRe(_Ye,"preprocessMarkdown"),hRe(CYe,"nonMarkdownToLines"),hRe(QYe,"markdownToLines"),hRe(PYe,"nonMarkdownToHTML"),hRe(EYe,"markdownToHTML"),hRe(RYe,"splitTextToChars"),hRe(BYe,"splitWordToFitWidth"),hRe(IYe,"splitWordToFitWidthRecursion"),hRe(LYe,"splitLineToFitWidth"),hRe(DYe,"splitLineToFitWidthRecursion"),hRe(MYe,"applyStyle");async function NYe(e,t,n,r,i=!1,o=NBe()){const a=e.append("foreignObject");a.attr("width",`${Math.min(10*n,16384)}px`),a.attr("height",`${Math.min(10*n,16384)}px`);const s=a.append("xhtml:div"),l=SIe(t.label)?await _Ie(t.label.replace(CIe.lineBreakRegex,"\n"),o):uIe(t.label,o),c=t.isNode?"nodeLabel":"edgeLabel",u=s.append("span");u.html(l),MYe(u,t.labelStyle),u.attr("class",`${c} ${r}`),MYe(s,t.labelStyle),s.style("display","table-cell"),s.style("white-space","nowrap"),s.style("line-height","1.5"),n!==Number.POSITIVE_INFINITY&&(s.style("max-width",n+"px"),s.style("text-align","center")),s.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&s.attr("class","labelBkg");return(await $Ye.measure(()=>s.node().getBoundingClientRect())).width===n&&(s.style("display","table"),s.style("white-space","break-spaces"),s.style("width",n+"px")),a.node()}function XYe(e,t,n,r=!1){const i=e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*n-.1+"em").attr("dy",n+"em");return r&&i.attr("text-anchor","middle"),i}function FYe(e,t,n){const r=e.append("text"),i=XYe(r,1,t);VYe(i,n);const o=i.node().getComputedTextLength();return r.remove(),o}function UYe(e,t,n){var r;const i=e.append("text"),o=XYe(i,1,t);VYe(o,[{content:n,type:"normal"}]);const a=null==(r=o.node())?void 0:r.getBoundingClientRect();return a&&i.remove(),a}function zYe(e,t,n,r=!1,i=!1){const o=t.append("g"),a=o.insert("rect").attr("class","background").attr("style","stroke: none"),s=o.append("text").attr("y","-10.1");i&&s.attr("text-anchor","middle");let l=0;for(const c of n){const t=hRe(t=>FYe(o,1.1,t)<=e,"checkWidth"),n=t(c)?[c]:LYe(c,t);for(const e of n){VYe(XYe(s,l,1.1,i),e),l++}}if(r){const e=s.node().getBBox(),t=2;return a.attr("x",e.x-t).attr("y",e.y-t).attr("width",e.width+2*t).attr("height",e.height+2*t),o.node()}return s.node()}function qYe(e){return e.replace(/&(amp|lt|gt);/g,(e,t)=>{switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return e}})}function VYe(e,t){e.text(""),t.forEach((t,n)=>{const r=e.append("tspan").attr("font-style","em"===t.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===t.type?"bold":"normal");0===n?r.text(qYe(t.content)):r.text(" "+qYe(t.content))})}async function WYe(e,t={}){const n=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(e,r,i)=>(n.push((async()=>{const n=`${r}:${i}`;return await mVe(n)?await OVe(n,void 0,{class:"label-icon"}):`<i class='${uIe(e,t).replace(":"," ")}'></i>`})()),e));const r=await Promise.all(n);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>r.shift()??"")}hRe(NYe,"addHtmlSpan"),hRe(XYe,"createTspan"),hRe(FYe,"computeWidthOfText"),hRe(UYe,"computeDimensionOfText"),hRe(zYe,"createFormattedText"),hRe(qYe,"decodeHTMLEntities"),hRe(VYe,"updateTextContentAndStyles"),hRe(WYe,"replaceIconSubstring");var jYe=hRe(async(e,t="",{style:n="",isTitle:r=!1,classes:i="",useHtmlLabels:o=!0,markdown:a=!0,isNode:s=!0,width:l=200,addSvgBackground:c=!1}={},u)=>{if(ORe.debug("XYZ createText",t,n,r,i,o,s,"addSvgBackground: ",c),o){const r=a?EYe(t,u):PYe(t),o=await WYe(GWe(r),u),h=t.replace(/\\\\/g,"\\"),d={isNode:s,label:SIe(t)?h:o,labelStyle:n.replace("fill:","color:")};return await NYe(e,d,l,i,c,u)}{const i=GWe(t.replace(/<br\s*\/?>/g,"<br/>")),o=zYe(l,e,a?QYe(i.replace("<br>","<br/>"),u):CYe(i),!!t&&c,!s);if(s){/stroke:/.exec(n)&&(n=n.replace("stroke:","lineColor:"));const e=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");GDe(o).attr("style",e)}else{const e=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");GDe(o).select("rect").attr("style",e.replace(/background:/g,"fill:"));const t=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");GDe(o).select("text").attr("style",t)}return r?GDe(o).selectAll("tspan.text-outer-tspan").classed("title-row",!0):GDe(o).selectAll("tspan.text-outer-tspan").classed("row",!0),o}},"createText");function YYe(e,t,n){if(e&&e.length){const[r,i]=t,o=Math.PI/180*n,a=Math.cos(o),s=Math.sin(o);for(const t of e){const[e,n]=t;t[0]=(e-r)*a-(n-i)*s+r,t[1]=(e-r)*s+(n-i)*a+i}}}function ZYe(e,t){return e[0]===t[0]&&e[1]===t[1]}function GYe(e,t){var n;const r=t.hachureAngle+90;let i=t.hachureGap;i<0&&(i=4*t.strokeWidth),i=Math.round(Math.max(i,.1));let o=1;return t.roughness>=1&&((null===(n=t.randomizer)||void 0===n?void 0:n.next())||Math.random())>.7&&(o=i),function(e,t,n,r=1){const i=n,o=Math.max(t,.1),a=e[0]&&e[0][0]&&"number"==typeof e[0][0]?[e]:e,s=[0,0];if(i)for(const c of a)YYe(c,s,i);const l=function(e,t,n){const r=[];for(const c of e){const e=[...c];ZYe(e[0],e[e.length-1])||e.push([e[0][0],e[0][1]]),e.length>2&&r.push(e)}const i=[];t=Math.max(t,.1);const o=[];for(const c of r)for(let e=0;e<c.length-1;e++){const t=c[e],n=c[e+1];if(t[1]!==n[1]){const e=Math.min(t[1],n[1]);o.push({ymin:e,ymax:Math.max(t[1],n[1]),x:e===t[1]?t[0]:n[0],islope:(n[0]-t[0])/(n[1]-t[1])})}}if(o.sort((e,t)=>e.ymin<t.ymin?-1:e.ymin>t.ymin?1:e.x<t.x?-1:e.x>t.x?1:e.ymax===t.ymax?0:(e.ymax-t.ymax)/Math.abs(e.ymax-t.ymax)),!o.length)return i;let a=[],s=o[0].ymin,l=0;for(;a.length||o.length;){if(o.length){let e=-1;for(let t=0;t<o.length&&!(o[t].ymin>s);t++)e=t;o.splice(0,e+1).forEach(e=>{a.push({s:s,edge:e})})}if(a=a.filter(e=>!(e.edge.ymax<=s)),a.sort((e,t)=>e.edge.x===t.edge.x?0:(e.edge.x-t.edge.x)/Math.abs(e.edge.x-t.edge.x)),(1!==n||l%t==0)&&a.length>1)for(let e=0;e<a.length;e+=2){const t=e+1;if(t>=a.length)break;const n=a[e].edge,r=a[t].edge;i.push([[Math.round(n.x),s],[Math.round(r.x),s]])}s+=n,a.forEach(e=>{e.edge.x=e.edge.x+n*e.edge.islope}),l++}return i}(a,o,r);if(i){for(const e of a)YYe(e,s,-i);!function(e,t,n){const r=[];e.forEach(e=>r.push(...e)),YYe(r,t,n)}(l,s,-i)}return l}(e,i,r,o||1)}let HYe=class{constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){const n=GYe(e,t);return{type:"fillSketch",ops:this.renderLines(n,t)}}renderLines(e,t){const n=[];for(const r of e)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],t));return n}};function KYe(e){const t=e[0],n=e[1];return Math.sqrt(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2))}let JYe=class extends HYe{fillPolygons(e,t){let n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.max(n,.1);const r=GYe(e,Object.assign({},t,{hachureGap:n})),i=Math.PI/180*t.hachureAngle,o=[],a=.5*n*Math.cos(i),s=.5*n*Math.sin(i);for(const[l,c]of r)KYe([l,c])&&o.push([[l[0]-a,l[1]+s],[...c]],[[l[0]+a,l[1]-s],[...c]]);return{type:"fillSketch",ops:this.renderLines(o,t)}}},eZe=class extends HYe{fillPolygons(e,t){const n=this._fillPolygons(e,t),r=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),i=this._fillPolygons(e,r);return n.ops=n.ops.concat(i.ops),n}},tZe=class{constructor(e){this.helper=e}fillPolygons(e,t){const n=GYe(e,t=Object.assign({},t,{hachureAngle:0}));return this.dotsOnLines(n,t)}dotsOnLines(e,t){const n=[];let r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.max(r,.1);let i=t.fillWeight;i<0&&(i=t.strokeWidth/2);const o=r/4;for(const a of e){const e=KYe(a),s=e/r,l=Math.ceil(s)-1,c=e-l*r,u=(a[0][0]+a[1][0])/2-r/4,h=Math.min(a[0][1],a[1][1]);for(let a=0;a<l;a++){const e=h+c+a*r,s=u-o+2*Math.random()*o,l=e-o+2*Math.random()*o,d=this.helper.ellipse(s,l,i,i,t);n.push(...d.ops)}}return{type:"fillSketch",ops:n}}},nZe=class{constructor(e){this.helper=e}fillPolygons(e,t){const n=GYe(e,t);return{type:"fillSketch",ops:this.dashedLine(n,t)}}dashedLine(e,t){const n=t.dashOffset<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashOffset,r=t.dashGap<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashGap,i=[];return e.forEach(e=>{const o=KYe(e),a=Math.floor(o/(n+r)),s=(o+r-a*(n+r))/2;let l=e[0],c=e[1];l[0]>c[0]&&(l=e[1],c=e[0]);const u=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let h=0;h<a;h++){const e=h*(n+r),o=e+n,a=[l[0]+e*Math.cos(u)+s*Math.cos(u),l[1]+e*Math.sin(u)+s*Math.sin(u)],c=[l[0]+o*Math.cos(u)+s*Math.cos(u),l[1]+o*Math.sin(u)+s*Math.sin(u)];i.push(...this.helper.doubleLineOps(a[0],a[1],c[0],c[1],t))}}),i}};class rZe{constructor(e){this.helper=e}fillPolygons(e,t){const n=t.hachureGap<0?4*t.strokeWidth:t.hachureGap,r=t.zigzagOffset<0?n:t.zigzagOffset,i=GYe(e,t=Object.assign({},t,{hachureGap:n+r}));return{type:"fillSketch",ops:this.zigzagLines(i,r,t)}}zigzagLines(e,t,n){const r=[];return e.forEach(e=>{const i=KYe(e),o=Math.round(i/(2*t));let a=e[0],s=e[1];a[0]>s[0]&&(a=e[1],s=e[0]);const l=Math.atan((s[1]-a[1])/(s[0]-a[0]));for(let c=0;c<o;c++){const e=2*c*t,i=2*(c+1)*t,o=Math.sqrt(2*Math.pow(t,2)),s=[a[0]+e*Math.cos(l),a[1]+e*Math.sin(l)],u=[a[0]+i*Math.cos(l),a[1]+i*Math.sin(l)],h=[s[0]+o*Math.cos(l+Math.PI/4),s[1]+o*Math.sin(l+Math.PI/4)];r.push(...this.helper.doubleLineOps(s[0],s[1],h[0],h[1],n),...this.helper.doubleLineOps(h[0],h[1],u[0],u[1],n))}}),r}}const iZe={};let oZe=class{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}};const aZe={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function sZe(e,t){return e.type===t}function lZe(e){const t=[],n=function(e){const t=new Array;for(;""!==e;)if(e.match(/^([ \t\r\n,]+)/))e=e.substr(RegExp.$1.length);else if(e.match(/^([aAcChHlLmMqQsStTvVzZ])/))t[t.length]={type:0,text:RegExp.$1},e=e.substr(RegExp.$1.length);else{if(!e.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];t[t.length]={type:1,text:`${parseFloat(RegExp.$1)}`},e=e.substr(RegExp.$1.length)}return t[t.length]={type:2,text:""},t}(e);let r="BOD",i=0,o=n[i];for(;!sZe(o,2);){let a=0;const s=[];if("BOD"===r){if("M"!==o.text&&"m"!==o.text)return lZe("M0,0"+e);i++,a=aZe[o.text],r=o.text}else sZe(o,1)?a=aZe[r]:(i++,a=aZe[o.text],r=o.text);if(!(i+a<n.length))throw new Error("Path data ended short");for(let e=i;e<i+a;e++){const t=n[e];if(!sZe(t,1))throw new Error("Param not a number: "+r+","+t.text);s[s.length]=+t.text}if("number"!=typeof aZe[r])throw new Error("Bad segment: "+r);{const e={key:r,data:s};t.push(e),i+=a,o=n[i],"M"===r&&(r="L"),"m"===r&&(r="l")}}return t}function cZe(e){let t=0,n=0,r=0,i=0;const o=[];for(const{key:a,data:s}of e)switch(a){case"M":o.push({key:"M",data:[...s]}),[t,n]=s,[r,i]=s;break;case"m":t+=s[0],n+=s[1],o.push({key:"M",data:[t,n]}),r=t,i=n;break;case"L":o.push({key:"L",data:[...s]}),[t,n]=s;break;case"l":t+=s[0],n+=s[1],o.push({key:"L",data:[t,n]});break;case"C":o.push({key:"C",data:[...s]}),t=s[4],n=s[5];break;case"c":{const e=s.map((e,r)=>r%2?e+n:e+t);o.push({key:"C",data:e}),t=e[4],n=e[5];break}case"Q":o.push({key:"Q",data:[...s]}),t=s[2],n=s[3];break;case"q":{const e=s.map((e,r)=>r%2?e+n:e+t);o.push({key:"Q",data:e}),t=e[2],n=e[3];break}case"A":o.push({key:"A",data:[...s]}),t=s[5],n=s[6];break;case"a":t+=s[5],n+=s[6],o.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],t,n]});break;case"H":o.push({key:"H",data:[...s]}),t=s[0];break;case"h":t+=s[0],o.push({key:"H",data:[t]});break;case"V":o.push({key:"V",data:[...s]}),n=s[0];break;case"v":n+=s[0],o.push({key:"V",data:[n]});break;case"S":o.push({key:"S",data:[...s]}),t=s[2],n=s[3];break;case"s":{const e=s.map((e,r)=>r%2?e+n:e+t);o.push({key:"S",data:e}),t=e[2],n=e[3];break}case"T":o.push({key:"T",data:[...s]}),t=s[0],n=s[1];break;case"t":t+=s[0],n+=s[1],o.push({key:"T",data:[t,n]});break;case"Z":case"z":o.push({key:"Z",data:[]}),t=r,n=i}return o}function uZe(e){const t=[];let n="",r=0,i=0,o=0,a=0,s=0,l=0;for(const{key:c,data:u}of e){switch(c){case"M":t.push({key:"M",data:[...u]}),[r,i]=u,[o,a]=u;break;case"C":t.push({key:"C",data:[...u]}),r=u[4],i=u[5],s=u[2],l=u[3];break;case"L":t.push({key:"L",data:[...u]}),[r,i]=u;break;case"H":r=u[0],t.push({key:"L",data:[r,i]});break;case"V":i=u[0],t.push({key:"L",data:[r,i]});break;case"S":{let e=0,o=0;"C"===n||"S"===n?(e=r+(r-s),o=i+(i-l)):(e=r,o=i),t.push({key:"C",data:[e,o,...u]}),s=u[0],l=u[1],r=u[2],i=u[3];break}case"T":{const[e,o]=u;let a=0,c=0;"Q"===n||"T"===n?(a=r+(r-s),c=i+(i-l)):(a=r,c=i);const h=r+2*(a-r)/3,d=i+2*(c-i)/3,p=e+2*(a-e)/3,f=o+2*(c-o)/3;t.push({key:"C",data:[h,d,p,f,e,o]}),s=a,l=c,r=e,i=o;break}case"Q":{const[e,n,o,a]=u,c=r+2*(e-r)/3,h=i+2*(n-i)/3,d=o+2*(e-o)/3,p=a+2*(n-a)/3;t.push({key:"C",data:[c,h,d,p,o,a]}),s=e,l=n,r=o,i=a;break}case"A":{const e=Math.abs(u[0]),n=Math.abs(u[1]),o=u[2],a=u[3],s=u[4],l=u[5],c=u[6];0===e||0===n?(t.push({key:"C",data:[r,i,l,c,l,c]}),r=l,i=c):r===l&&i===c||(dZe(r,i,l,c,e,n,o,a,s).forEach(function(e){t.push({key:"C",data:e})}),r=l,i=c);break}case"Z":t.push({key:"Z",data:[]}),r=o,i=a}n=c}return t}function hZe(e,t,n){return[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)]}function dZe(e,t,n,r,i,o,a,s,l,c){const u=(h=a,Math.PI*h/180);var h;let d=[],p=0,f=0,g=0,m=0;if(c)[p,f,g,m]=c;else{[e,t]=hZe(e,t,-u),[n,r]=hZe(n,r,-u);const a=(e-n)/2,c=(t-r)/2;let h=a*a/(i*i)+c*c/(o*o);h>1&&(h=Math.sqrt(h),i*=h,o*=h);const d=i*i,O=o*o,A=d*O-d*c*c-O*a*a,y=d*c*c+O*a*a,v=(s===l?-1:1)*Math.sqrt(Math.abs(A/y));g=v*i*c/o+(e+n)/2,m=v*-o*a/i+(t+r)/2,p=Math.asin(parseFloat(((t-m)/o).toFixed(9))),f=Math.asin(parseFloat(((r-m)/o).toFixed(9))),e<g&&(p=Math.PI-p),n<g&&(f=Math.PI-f),p<0&&(p=2*Math.PI+p),f<0&&(f=2*Math.PI+f),l&&p>f&&(p-=2*Math.PI),!l&&f>p&&(f-=2*Math.PI)}let O=f-p;if(Math.abs(O)>120*Math.PI/180){const e=f,t=n,s=r;f=l&&f>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,d=dZe(n=g+i*Math.cos(f),r=m+o*Math.sin(f),t,s,i,o,a,0,l,[f,e,g,m])}O=f-p;const A=Math.cos(p),y=Math.sin(p),v=Math.cos(f),b=Math.sin(f),x=Math.tan(O/4),w=4/3*i*x,k=4/3*o*x,S=[e,t],T=[e+w*y,t-k*A],$=[n+w*b,r-k*v],_=[n,r];if(T[0]=2*S[0]-T[0],T[1]=2*S[1]-T[1],c)return[T,$,_].concat(d);{d=[T,$,_].concat(d);const e=[];for(let t=0;t<d.length;t+=3){const n=hZe(d[t][0],d[t][1],u),r=hZe(d[t+1][0],d[t+1][1],u),i=hZe(d[t+2][0],d[t+2][1],u);e.push([n[0],n[1],r[0],r[1],i[0],i[1]])}return e}}const pZe={randOffset:function(e,t){return TZe(e,t)},randOffsetWithRange:function(e,t,n){return SZe(e,t,n)},ellipse:function(e,t,n,r,i){return AZe(e,t,i,OZe(n,r,i)).opset},doubleLineOps:function(e,t,n,r,i){return $Ze(e,t,n,r,i,!0)}};function fZe(e,t,n,r,i){return{type:"path",ops:$Ze(e,t,n,r,i)}}function gZe(e,t,n){const r=(e||[]).length;if(r>2){const i=[];for(let t=0;t<r-1;t++)i.push(...$Ze(e[t][0],e[t][1],e[t+1][0],e[t+1][1],n));return t&&i.push(...$Ze(e[r-1][0],e[r-1][1],e[0][0],e[0][1],n)),{type:"path",ops:i}}return 2===r?fZe(e[0][0],e[0][1],e[1][0],e[1][1],n):{type:"path",ops:[]}}function mZe(e,t){if(e.length){const n="number"==typeof e[0][0]?[e]:e,r=CZe(n[0],1*(1+.2*t.roughness),t),i=t.disableMultiStroke?[]:CZe(n[0],1.5*(1+.22*t.roughness),wZe(t));for(let e=1;e<n.length;e++){const o=n[e];if(o.length){const e=CZe(o,1*(1+.2*t.roughness),t),n=t.disableMultiStroke?[]:CZe(o,1.5*(1+.22*t.roughness),wZe(t));for(const t of e)"move"!==t.op&&r.push(t);for(const t of n)"move"!==t.op&&i.push(t)}}return{type:"path",ops:r.concat(i)}}return{type:"path",ops:[]}}function OZe(e,t,n){const r=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),i=Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*r)),o=2*Math.PI/i;let a=Math.abs(e/2),s=Math.abs(t/2);const l=1-n.curveFitting;return a+=TZe(a*l,n),s+=TZe(s*l,n),{increment:o,rx:a,ry:s}}function AZe(e,t,n,r){const[i,o]=PZe(r.increment,e,t,r.rx,r.ry,1,r.increment*SZe(.1,SZe(.4,1,n),n),n);let a=QZe(i,null,n);if(!n.disableMultiStroke&&0!==n.roughness){const[i]=PZe(r.increment,e,t,r.rx,r.ry,1.5,0,n),o=QZe(i,null,n);a=a.concat(o)}return{estimatedPoints:o,opset:{type:"path",ops:a}}}function yZe(e,t,n,r,i,o,a,s,l){const c=e,u=t;let h=Math.abs(n/2),d=Math.abs(r/2);h+=TZe(.01*h,l),d+=TZe(.01*d,l);let p=i,f=o;for(;p<0;)p+=2*Math.PI,f+=2*Math.PI;f-p>2*Math.PI&&(p=0,f=2*Math.PI);const g=2*Math.PI/l.curveStepCount,m=Math.min(g/2,(f-p)/2),O=EZe(m,c,u,h,d,p,f,1,l);if(!l.disableMultiStroke){const e=EZe(m,c,u,h,d,p,f,1.5,l);O.push(...e)}return a&&(s?O.push(...$Ze(c,u,c+h*Math.cos(p),u+d*Math.sin(p),l),...$Ze(c,u,c+h*Math.cos(f),u+d*Math.sin(f),l)):O.push({op:"lineTo",data:[c,u]},{op:"lineTo",data:[c+h*Math.cos(p),u+d*Math.sin(p)]})),{type:"path",ops:O}}function vZe(e,t){const n=uZe(cZe(lZe(e))),r=[];let i=[0,0],o=[0,0];for(const{key:a,data:s}of n)switch(a){case"M":o=[s[0],s[1]],i=[s[0],s[1]];break;case"L":r.push(...$Ze(o[0],o[1],s[0],s[1],t)),o=[s[0],s[1]];break;case"C":{const[e,n,i,a,l,c]=s;r.push(...RZe(e,n,i,a,l,c,o,t)),o=[l,c];break}case"Z":r.push(...$Ze(o[0],o[1],i[0],i[1],t)),o=[i[0],i[1]]}return{type:"path",ops:r}}function bZe(e,t){const n=[];for(const r of e)if(r.length){const e=t.maxRandomnessOffset||0,i=r.length;if(i>2){n.push({op:"move",data:[r[0][0]+TZe(e,t),r[0][1]+TZe(e,t)]});for(let o=1;o<i;o++)n.push({op:"lineTo",data:[r[o][0]+TZe(e,t),r[o][1]+TZe(e,t)]})}}return{type:"fillPath",ops:n}}function xZe(e,t){return function(e,t){let n=e.fillStyle||"hachure";if(!iZe[n])switch(n){case"zigzag":iZe[n]||(iZe[n]=new JYe(t));break;case"cross-hatch":iZe[n]||(iZe[n]=new eZe(t));break;case"dots":iZe[n]||(iZe[n]=new tZe(t));break;case"dashed":iZe[n]||(iZe[n]=new nZe(t));break;case"zigzag-line":iZe[n]||(iZe[n]=new rZe(t));break;default:n="hachure",iZe[n]||(iZe[n]=new HYe(t))}return iZe[n]}(t,pZe).fillPolygons(e,t)}function wZe(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function kZe(e){return e.randomizer||(e.randomizer=new oZe(e.seed||0)),e.randomizer.next()}function SZe(e,t,n,r=1){return n.roughness*r*(kZe(n)*(t-e)+e)}function TZe(e,t,n=1){return SZe(-e,e,t,n)}function $Ze(e,t,n,r,i,o=!1){const a=o?i.disableMultiStrokeFill:i.disableMultiStroke,s=_Ze(e,t,n,r,i,!0,!1);if(a)return s;const l=_Ze(e,t,n,r,i,!0,!0);return s.concat(l)}function _Ze(e,t,n,r,i,o,a){const s=Math.pow(e-n,2)+Math.pow(t-r,2),l=Math.sqrt(s);let c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let u=i.maxRandomnessOffset||0;u*u*100>s&&(u=l/10);const h=u/2,d=.2+.2*kZe(i);let p=i.bowing*i.maxRandomnessOffset*(r-t)/200,f=i.bowing*i.maxRandomnessOffset*(e-n)/200;p=TZe(p,i,c),f=TZe(f,i,c);const g=[],m=()=>TZe(h,i,c),O=()=>TZe(u,i,c),A=i.preserveVertices;return a?g.push({op:"move",data:[e+(A?0:m()),t+(A?0:m())]}):g.push({op:"move",data:[e+(A?0:TZe(u,i,c)),t+(A?0:TZe(u,i,c))]}),a?g.push({op:"bcurveTo",data:[p+e+(n-e)*d+m(),f+t+(r-t)*d+m(),p+e+2*(n-e)*d+m(),f+t+2*(r-t)*d+m(),n+(A?0:m()),r+(A?0:m())]}):g.push({op:"bcurveTo",data:[p+e+(n-e)*d+O(),f+t+(r-t)*d+O(),p+e+2*(n-e)*d+O(),f+t+2*(r-t)*d+O(),n+(A?0:O()),r+(A?0:O())]}),g}function CZe(e,t,n){if(!e.length)return[];const r=[];r.push([e[0][0]+TZe(t,n),e[0][1]+TZe(t,n)]),r.push([e[0][0]+TZe(t,n),e[0][1]+TZe(t,n)]);for(let i=1;i<e.length;i++)r.push([e[i][0]+TZe(t,n),e[i][1]+TZe(t,n)]),i===e.length-1&&r.push([e[i][0]+TZe(t,n),e[i][1]+TZe(t,n)]);return QZe(r,null,n)}function QZe(e,t,n){const r=e.length,i=[];if(r>3){const t=[],o=1-n.curveTightness;i.push({op:"move",data:[e[1][0],e[1][1]]});for(let n=1;n+2<r;n++){const r=e[n];t[0]=[r[0],r[1]],t[1]=[r[0]+(o*e[n+1][0]-o*e[n-1][0])/6,r[1]+(o*e[n+1][1]-o*e[n-1][1])/6],t[2]=[e[n+1][0]+(o*e[n][0]-o*e[n+2][0])/6,e[n+1][1]+(o*e[n][1]-o*e[n+2][1])/6],t[3]=[e[n+1][0],e[n+1][1]],i.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[3][0],t[3][1]]})}}else 3===r?(i.push({op:"move",data:[e[1][0],e[1][1]]}),i.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):2===r&&i.push(..._Ze(e[0][0],e[0][1],e[1][0],e[1][1],n,0,!0));return i}function PZe(e,t,n,r,i,o,a,s){const l=[],c=[];if(0===s.roughness){e/=4,c.push([t+r*Math.cos(-e),n+i*Math.sin(-e)]);for(let o=0;o<=2*Math.PI;o+=e){const e=[t+r*Math.cos(o),n+i*Math.sin(o)];l.push(e),c.push(e)}c.push([t+r*Math.cos(0),n+i*Math.sin(0)]),c.push([t+r*Math.cos(e),n+i*Math.sin(e)])}else{const u=TZe(.5,s)-Math.PI/2;c.push([TZe(o,s)+t+.9*r*Math.cos(u-e),TZe(o,s)+n+.9*i*Math.sin(u-e)]);const h=2*Math.PI+u-.01;for(let a=u;a<h;a+=e){const e=[TZe(o,s)+t+r*Math.cos(a),TZe(o,s)+n+i*Math.sin(a)];l.push(e),c.push(e)}c.push([TZe(o,s)+t+r*Math.cos(u+2*Math.PI+.5*a),TZe(o,s)+n+i*Math.sin(u+2*Math.PI+.5*a)]),c.push([TZe(o,s)+t+.98*r*Math.cos(u+a),TZe(o,s)+n+.98*i*Math.sin(u+a)]),c.push([TZe(o,s)+t+.9*r*Math.cos(u+.5*a),TZe(o,s)+n+.9*i*Math.sin(u+.5*a)])}return[c,l]}function EZe(e,t,n,r,i,o,a,s,l){const c=o+TZe(.1,l),u=[];u.push([TZe(s,l)+t+.9*r*Math.cos(c-e),TZe(s,l)+n+.9*i*Math.sin(c-e)]);for(let h=c;h<=a;h+=e)u.push([TZe(s,l)+t+r*Math.cos(h),TZe(s,l)+n+i*Math.sin(h)]);return u.push([t+r*Math.cos(a),n+i*Math.sin(a)]),u.push([t+r*Math.cos(a),n+i*Math.sin(a)]),QZe(u,0,l)}function RZe(e,t,n,r,i,o,a,s){const l=[],c=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3];let u=[0,0];const h=s.disableMultiStroke?1:2,d=s.preserveVertices;for(let p=0;p<h;p++)0===p?l.push({op:"move",data:[a[0],a[1]]}):l.push({op:"move",data:[a[0]+(d?0:TZe(c[0],s)),a[1]+(d?0:TZe(c[0],s))]}),u=d?[i,o]:[i+TZe(c[p],s),o+TZe(c[p],s)],l.push({op:"bcurveTo",data:[e+TZe(c[p],s),t+TZe(c[p],s),n+TZe(c[p],s),r+TZe(c[p],s),u[0],u[1]]});return l}function BZe(e){return[...e]}function IZe(e,t=0){const n=e.length;if(n<3)throw new Error("A curve must have at least three points.");const r=[];if(3===n)r.push(BZe(e[0]),BZe(e[1]),BZe(e[2]),BZe(e[2]));else{const n=[];n.push(e[0],e[0]);for(let t=1;t<e.length;t++)n.push(e[t]),t===e.length-1&&n.push(e[t]);const i=[],o=1-t;r.push(BZe(n[0]));for(let e=1;e+2<n.length;e++){const t=n[e];i[0]=[t[0],t[1]],i[1]=[t[0]+(o*n[e+1][0]-o*n[e-1][0])/6,t[1]+(o*n[e+1][1]-o*n[e-1][1])/6],i[2]=[n[e+1][0]+(o*n[e][0]-o*n[e+2][0])/6,n[e+1][1]+(o*n[e][1]-o*n[e+2][1])/6],i[3]=[n[e+1][0],n[e+1][1]],r.push(i[1],i[2],i[3])}}return r}function LZe(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function DZe(e,t,n){const r=LZe(t,n);if(0===r)return LZe(e,t);let i=((e[0]-t[0])*(n[0]-t[0])+(e[1]-t[1])*(n[1]-t[1]))/r;return i=Math.max(0,Math.min(1,i)),LZe(e,MZe(t,n,i))}function MZe(e,t,n){return[e[0]+(t[0]-e[0])*n,e[1]+(t[1]-e[1])*n]}function NZe(e,t,n,r){const i=r||[];if(function(e,t){const n=e[t+0],r=e[t+1],i=e[t+2],o=e[t+3];let a=3*r[0]-2*n[0]-o[0];a*=a;let s=3*r[1]-2*n[1]-o[1];s*=s;let l=3*i[0]-2*o[0]-n[0];l*=l;let c=3*i[1]-2*o[1]-n[1];return c*=c,a<l&&(a=l),s<c&&(s=c),a+s}(e,t)<n){const n=e[t+0];i.length?(o=i[i.length-1],a=n,Math.sqrt(LZe(o,a))>1&&i.push(n)):i.push(n),i.push(e[t+3])}else{const r=.5,o=e[t+0],a=e[t+1],s=e[t+2],l=e[t+3],c=MZe(o,a,r),u=MZe(a,s,r),h=MZe(s,l,r),d=MZe(c,u,r),p=MZe(u,h,r),f=MZe(d,p,r);NZe([o,c,d,f],0,n,i),NZe([f,p,h,l],0,n,i)}var o,a;return i}function XZe(e,t){return FZe(e,0,e.length,t)}function FZe(e,t,n,r,i){const o=i||[],a=e[t],s=e[n-1];let l=0,c=1;for(let u=t+1;u<n-1;++u){const t=DZe(e[u],a,s);t>l&&(l=t,c=u)}return Math.sqrt(l)>r?(FZe(e,t,c+1,r,o),FZe(e,c,n,r,o)):(o.length||o.push(a),o.push(s)),o}function UZe(e,t=.15,n){const r=[],i=(e.length-1)/3;for(let o=0;o<i;o++)NZe(e,3*o,t,r);return n&&n>0?FZe(r,0,r.length,n):r}const zZe="none";let qZe=class{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,t,n){return{shape:e,sets:t||[],options:n||this.defaultOptions}}line(e,t,n,r,i){const o=this._o(i);return this._d("line",[fZe(e,t,n,r,o)],o)}rectangle(e,t,n,r,i){const o=this._o(i),a=[],s=function(e,t,n,r,i){return gZe([[e,t],[e+n,t],[e+n,t+r],[e,t+r]],!0,i)}(e,t,n,r,o);if(o.fill){const i=[[e,t],[e+n,t],[e+n,t+r],[e,t+r]];"solid"===o.fillStyle?a.push(bZe([i],o)):a.push(xZe([i],o))}return o.stroke!==zZe&&a.push(s),this._d("rectangle",a,o)}ellipse(e,t,n,r,i){const o=this._o(i),a=[],s=OZe(n,r,o),l=AZe(e,t,o,s);if(o.fill)if("solid"===o.fillStyle){const n=AZe(e,t,o,s).opset;n.type="fillPath",a.push(n)}else a.push(xZe([l.estimatedPoints],o));return o.stroke!==zZe&&a.push(l.opset),this._d("ellipse",a,o)}circle(e,t,n,r){const i=this.ellipse(e,t,n,n,r);return i.shape="circle",i}linearPath(e,t){const n=this._o(t);return this._d("linearPath",[gZe(e,!1,n)],n)}arc(e,t,n,r,i,o,a=!1,s){const l=this._o(s),c=[],u=yZe(e,t,n,r,i,o,a,!0,l);if(a&&l.fill)if("solid"===l.fillStyle){const a=Object.assign({},l);a.disableMultiStroke=!0;const s=yZe(e,t,n,r,i,o,!0,!1,a);s.type="fillPath",c.push(s)}else c.push(function(e,t,n,r,i,o,a){const s=e,l=t;let c=Math.abs(n/2),u=Math.abs(r/2);c+=TZe(.01*c,a),u+=TZe(.01*u,a);let h=i,d=o;for(;h<0;)h+=2*Math.PI,d+=2*Math.PI;d-h>2*Math.PI&&(h=0,d=2*Math.PI);const p=(d-h)/a.curveStepCount,f=[];for(let g=h;g<=d;g+=p)f.push([s+c*Math.cos(g),l+u*Math.sin(g)]);return f.push([s+c*Math.cos(d),l+u*Math.sin(d)]),f.push([s,l]),xZe([f],a)}(e,t,n,r,i,o,l));return l.stroke!==zZe&&c.push(u),this._d("arc",c,l)}curve(e,t){const n=this._o(t),r=[],i=mZe(e,n);if(n.fill&&n.fill!==zZe)if("solid"===n.fillStyle){const t=mZe(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(t.ops)})}else{const t=[],i=e;if(i.length){const e="number"==typeof i[0][0]?[i]:i;for(const r of e)r.length<3?t.push(...r):3===r.length?t.push(...UZe(IZe([r[0],r[0],r[1],r[2]]),10,(1+n.roughness)/2)):t.push(...UZe(IZe(r),10,(1+n.roughness)/2))}t.length&&r.push(xZe([t],n))}return n.stroke!==zZe&&r.push(i),this._d("curve",r,n)}polygon(e,t){const n=this._o(t),r=[],i=gZe(e,!0,n);return n.fill&&("solid"===n.fillStyle?r.push(bZe([e],n)):r.push(xZe([e],n))),n.stroke!==zZe&&r.push(i),this._d("polygon",r,n)}path(e,t){const n=this._o(t),r=[];if(!e)return this._d("path",r,n);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const i=n.fill&&"transparent"!==n.fill&&n.fill!==zZe,o=n.stroke!==zZe,a=!!(n.simplification&&n.simplification<1),s=function(e,t,n){const r=uZe(cZe(lZe(e))),i=[];let o=[],a=[0,0],s=[];const l=()=>{s.length>=4&&o.push(...UZe(s,1)),s=[]},c=()=>{l(),o.length&&(i.push(o),o=[])};for(const{key:h,data:d}of r)switch(h){case"M":c(),a=[d[0],d[1]],o.push(a);break;case"L":l(),o.push([d[0],d[1]]);break;case"C":if(!s.length){const e=o.length?o[o.length-1]:a;s.push([e[0],e[1]])}s.push([d[0],d[1]]),s.push([d[2],d[3]]),s.push([d[4],d[5]]);break;case"Z":l(),o.push([a[0],a[1]])}if(c(),!n)return i;const u=[];for(const h of i){const e=XZe(h,n);e.length&&u.push(e)}return u}(e,0,a?4-4*(n.simplification||1):(1+n.roughness)/2),l=vZe(e,n);if(i)if("solid"===n.fillStyle)if(1===s.length){const t=vZe(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(t.ops)})}else r.push(bZe(s,n));else r.push(xZe(s,n));return o&&(a?s.forEach(e=>{r.push(gZe(e,!1,n))}):r.push(l)),this._d("path",r,n)}opsToPath(e,t){let n="";for(const r of e.ops){const e="number"==typeof t&&t>=0?r.data.map(e=>+e.toFixed(t)):r.data;switch(r.op){case"move":n+=`M${e[0]} ${e[1]} `;break;case"bcurveTo":n+=`C${e[0]} ${e[1]}, ${e[2]} ${e[3]}, ${e[4]} ${e[5]} `;break;case"lineTo":n+=`L${e[0]} ${e[1]} `}}return n.trim()}toPaths(e){const t=e.sets||[],n=e.options||this.defaultOptions,r=[];for(const i of t){let e=null;switch(i.type){case"path":e={d:this.opsToPath(i),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:zZe};break;case"fillPath":e={d:this.opsToPath(i),stroke:zZe,strokeWidth:0,fill:n.fill||zZe};break;case"fillSketch":e=this.fillSketch(i,n)}e&&r.push(e)}return r}fillSketch(e,t){let n=t.fillWeight;return n<0&&(n=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||zZe,strokeWidth:n,fill:zZe}}_mergedShape(e){return e.filter((e,t)=>0===t||"move"!==e.op)}};const VZe="http://www.w3.org/2000/svg";let WZe=class{constructor(e,t){this.svg=e,this.gen=new qZe(t)}draw(e){const t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.svg.ownerDocument||window.document,i=r.createElementNS(VZe,"g"),o=e.options.fixedDecimalPlaceDigits;for(const a of t){let t=null;switch(a.type){case"path":t=r.createElementNS(VZe,"path"),t.setAttribute("d",this.opsToPath(a,o)),t.setAttribute("stroke",n.stroke),t.setAttribute("stroke-width",n.strokeWidth+""),t.setAttribute("fill","none"),n.strokeLineDash&&t.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&t.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":t=r.createElementNS(VZe,"path"),t.setAttribute("d",this.opsToPath(a,o)),t.setAttribute("stroke","none"),t.setAttribute("stroke-width","0"),t.setAttribute("fill",n.fill||""),"curve"!==e.shape&&"polygon"!==e.shape||t.setAttribute("fill-rule","evenodd");break;case"fillSketch":t=this.fillSketch(r,a,n)}t&&i.appendChild(t)}return i}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2);const i=e.createElementNS(VZe,"path");return i.setAttribute("d",this.opsToPath(t,n.fixedDecimalPlaceDigits)),i.setAttribute("stroke",n.fill||""),i.setAttribute("stroke-width",r+""),i.setAttribute("fill","none"),n.fillLineDash&&i.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&i.setAttribute("stroke-dashoffset",`${n.fillLineDashOffset}`),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,t){return this.gen.opsToPath(e,t)}line(e,t,n,r,i){const o=this.gen.line(e,t,n,r,i);return this.draw(o)}rectangle(e,t,n,r,i){const o=this.gen.rectangle(e,t,n,r,i);return this.draw(o)}ellipse(e,t,n,r,i){const o=this.gen.ellipse(e,t,n,r,i);return this.draw(o)}circle(e,t,n,r){const i=this.gen.circle(e,t,n,r);return this.draw(i)}linearPath(e,t){const n=this.gen.linearPath(e,t);return this.draw(n)}polygon(e,t){const n=this.gen.polygon(e,t);return this.draw(n)}arc(e,t,n,r,i,o,a=!1,s){const l=this.gen.arc(e,t,n,r,i,o,a,s);return this.draw(l)}curve(e,t){const n=this.gen.curve(e,t);return this.draw(n)}path(e,t){const n=this.gen.path(e,t);return this.draw(n)}};var jZe=(e,t)=>new WZe(e,t);async function YZe(e){const t=e.getElementsByTagName("img");if(!t||0===t.length)return;const n=!ZZe(e);await Promise.all([...t].map(e=>new Promise(t=>{function r(){if(e.style.display="flex",e.style.flexDirection="column",n){const t=JIe().fontSize?JIe().fontSize:window.getComputedStyle(document.body).fontSize,n=5,[r=wBe.fontSize]=WWe(t),i=r*n+"px";e.style.minWidth=i,e.style.maxWidth=i}else e.style.width="100%";t(e)}hRe(r,"setupImage"),setTimeout(()=>{e.complete&&r()}),e.addEventListener("error",r),e.addEventListener("load",r)})))}function ZZe(e){var t;if(3===e.nodeType)return""!==(null==(t=e.textContent)?void 0:t.trim());if(1!==e.nodeType)return!1;return"img"!==e.tagName.toLowerCase()&&[...e.childNodes].some(ZZe)}hRe(YZe,"configureLabelImages"),hRe(ZZe,"hasTextBesidesImages");var GZe=hRe(async(e,t,n)=>{var r,i,o;const a=JIe(),s=e.insert("g").attr("class",n??"node default").attr("id",t.domId||t.id),l=s.insert("g").attr("class","label").attr("style",KWe(t.labelStyle)),c=[{text:"string"==typeof t.label?t.label:(null==(r=t.label)?void 0:r[0])??"",cssClass:"c4-name"},{text:t.stereotype,cssClass:"c4-type"},...(t.description??[]).map(e=>({text:e,cssClass:"c4-descr"}))].filter(e=>e.text),u=t.width?Math.max(t.width-2*(t.padding??0),32):(null==(i=JIe().flowchart)?void 0:i.wrappingWidth)??200,h=(null==(o=a.c4)?void 0:o.wrap)??!0?u:Number.POSITIVE_INFINITY,d=await Promise.all(c.map(async e=>{const n=l.append("g").attr("class",e.cssClass),r=await jYe(n,uIe(GWe(e.text??""),a),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:h,style:t.labelStyle},a);return GDe(r).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),GDe(r).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:n,box:n.node().getBBox()}})),p=Math.max(...d.map(({box:e})=>e.width),0);let f=0;for(const{el:m,box:O}of d)m.attr("transform",`translate(${p/2-O.x-O.width/2}, ${f-O.y})`),f+=O.height+3;const g=d.length>0?f-3:0;l.insert("rect",":first-child"),l.attr("transform",`translate(${-p/2}, ${-g/2})`);return{shapeSvg:s,bbox:l.node().getBBox(),halfPadding:(t.padding??0)/2,label:l}},"c4LabelHelper"),HZe=hRe(async(e,t,n)=>{var r,i;if(void 0!==t.stereotype)return GZe(e,t,n);let o;const a=t.useHtmlLabels||CBe(null==(r=JIe())?void 0:r.htmlLabels);o=n||"node default";const s=e.insert("g").attr("class",o).attr("id",t.domId||t.id),l=s.insert("g").attr("class","label").attr("style",KWe(t.labelStyle));let c;c=void 0===t.label?"":"string"==typeof t.label?t.label:t.label[0];const u=!!t.icon||!!t.img,h="markdown"===t.labelType,d=await jYe(l,uIe(GWe(c),JIe()),{useHtmlLabels:a,width:t.width||t.wrappingWidth||(null==(i=JIe().flowchart)?void 0:i.wrappingWidth),classes:h?"markdown-node-label":"",style:t.labelStyle,addSvgBackground:u,markdown:h},JIe()),p=((null==t?void 0:t.padding)??0)/2;let f;if(a){const e=d.children[0],t=GDe(d);await YZe(e),f=await $Ye.measure(()=>e.getBoundingClientRect()),t.attr("width",f.width),t.attr("height",f.height)}else f=await $Ye.measure(()=>d.getBBox());return a?l.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"):l.attr("transform","translate(0, "+-f.height/2+")"),t.centerLabel&&l.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),l.insert("rect",":first-child"),{shapeSvg:s,bbox:f,halfPadding:p,label:l}},"labelHelper"),KZe=hRe(async(e,t,n)=>{var r,i;const o=n.useHtmlLabels??YBe(JIe()),a=e.insert("g").attr("class","label").attr("style",n.labelStyle||""),s=await jYe(a,uIe(GWe(t),JIe()),{useHtmlLabels:o,width:n.width||(null==(i=null==(r=JIe())?void 0:r.flowchart)?void 0:i.wrappingWidth),style:n.labelStyle,addSvgBackground:!!n.icon||!!n.img}),l=n.padding/2;let c;if(YBe(JIe())){const e=s.children[0],t=GDe(s);c=await $Ye.measure(()=>e.getBoundingClientRect()),t.attr("width",c.width),t.attr("height",c.height)}else c=await $Ye.measure(()=>s.getBBox());return o?a.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"):a.attr("transform","translate(0, "+-c.height/2+")"),n.centerLabel&&a.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),a.insert("rect",":first-child"),{shapeSvg:e,bbox:c,halfPadding:l,label:a}},"insertLabel"),JZe=hRe((e,t,n)=>{if(n)return e.width=n.width,void(e.height=n.height);const r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds"),eGe=hRe((e,t)=>("handDrawn"===e.look?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function tGe(e){const t=e.map((e,t)=>`${0===t?"M":"L"}${e.x},${e.y}`);return t.push("Z"),t.join(" ")}function nGe(e,t,n,r,i,o){const a=[],s=n-e,l=r-t,c=s/o,u=2*Math.PI/c,h=t+l/2;for(let d=0;d<=50;d++){const t=e+d/50*s,n=h+i*Math.sin(u*(t-e));a.push({x:t,y:n})}return a}function rGe(e,t,n,r,i,o){const a=[],s=i*Math.PI/180,l=(o*Math.PI/180-s)/(r-1);for(let c=0;c<r;c++){const r=s+c*l,i=e+n*Math.cos(r),o=t+n*Math.sin(r);a.push({x:-i,y:-o})}return a}function iGe(e){const t=Array.from(e.childNodes).filter(e=>"path"===e.tagName),n=document.createElementNS("http://www.w3.org/2000/svg","path"),r=t.map(e=>e.getAttribute("d")).filter(e=>null!==e).join(" ");n.setAttribute("d",r);const i=t.find(e=>"none"!==e.getAttribute("fill")),o=t.find(e=>"none"!==e.getAttribute("stroke")),a=hRe((e,t)=>(null==e?void 0:e.getAttribute(t))??void 0,"getAttr");if(i){const e={fill:a(i,"fill"),"fill-opacity":a(i,"fill-opacity")??"1"};Object.entries(e).forEach(([e,t])=>{t&&n.setAttribute(e,t)})}if(o){const e={stroke:a(o,"stroke"),"stroke-width":a(o,"stroke-width")??"1","stroke-opacity":a(o,"stroke-opacity")??"1"};Object.entries(e).forEach(([e,t])=>{t&&n.setAttribute(e,t)})}const s=document.createElementNS("http://www.w3.org/2000/svg","g");return s.appendChild(n),s}hRe(tGe,"createPathFromPoints"),hRe(nGe,"generateFullSineWavePoints"),hRe(rGe,"generateCirclePoints"),hRe(iGe,"mergePaths");var oGe=hRe((e,t)=>{var n,r,i=e.x,o=e.y,a=t.x-i,s=t.y-o,l=e.width/2,c=e.height/2;return Math.abs(s)*l>Math.abs(a)*c?(s<0&&(c=-c),n=0===s?0:c*a/s,r=c):(a<0&&(l=-l),n=l,r=0===a?0:l*s/a),{x:i+n,y:o+r}},"intersectRect"),aGe=oGe,sGe=hRe((e,t,n,r,i)=>["M",e+i,t,"H",e+n-i,"A",i,i,0,0,1,e+n,t+i,"V",t+r-i,"A",i,i,0,0,1,e+n-i,t+r,"H",e+i,"A",i,i,0,0,1,e,t+r-i,"V",t+i,"A",i,i,0,0,1,e+i,t,"Z"].join(" "),"createRoundedRectPathD"),lGe=hRe(async(e,t,n,r=!1,i=!1)=>{let o=t||"";"object"==typeof o&&(o=o[0]);const a=JIe(),s=YBe(a);return await jYe(e,o,{style:n,isTitle:r,useHtmlLabels:s,markdown:!1,isNode:i,width:Number.POSITIVE_INFINITY},a)},"createLabel");function cGe(e,t){return e.intersect(t)}hRe(cGe,"intersectNode");var uGe=cGe;function hGe(e,t,n,r){var i=e.x,o=e.y,a=i-r.x,s=o-r.y,l=Math.sqrt(t*t*s*s+n*n*a*a),c=Math.abs(t*n*a/l);r.x<i&&(c=-c);var u=Math.abs(t*n*s/l);return r.y<o&&(u=-u),{x:i+c,y:o+u}}hRe(hGe,"intersectEllipse");var dGe=hGe;function pGe(e,t,n){return dGe(e,t,t,n)}hRe(pGe,"intersectCircle");var fGe=pGe;function gGe(e,t,n,r){{const i=t.y-e.y,o=e.x-t.x,a=t.x*e.y-e.x*t.y,s=i*n.x+o*n.y+a,l=i*r.x+o*r.y+a,c=1e-6;if(0!==s&&0!==l&&mGe(s,l))return;const u=r.y-n.y,h=n.x-r.x,d=r.x*n.y-n.x*r.y,p=u*e.x+h*e.y+d,f=u*t.x+h*t.y+d;if(Math.abs(p)<c&&Math.abs(f)<c&&mGe(p,f))return;const g=i*h-u*o;if(0===g)return;const m=Math.abs(g/2);let O=o*d-h*a;const A=O<0?(O-m)/g:(O+m)/g;O=u*a-i*d;return{x:A,y:O<0?(O-m)/g:(O+m)/g}}}function mGe(e,t){return e*t>0}hRe(gGe,"intersectLine"),hRe(mGe,"sameSign");var OGe=gGe;function AGe(e,t,n){let r=e.x,i=e.y,o=[],a=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;"function"==typeof t.forEach?t.forEach(function(e){a=Math.min(a,e.x),s=Math.min(s,e.y)}):(a=Math.min(a,t.x),s=Math.min(s,t.y));let l=r-e.width/2-a,c=i-e.height/2-s;for(let u=0;u<t.length;u++){let r=t[u],i=t[u<t.length-1?u+1:0],a=OGe(e,n,{x:l+r.x,y:c+r.y},{x:l+i.x,y:c+i.y});a&&o.push(a)}return o.length?(o.length>1&&o.sort(function(e,t){let r=e.x-n.x,i=e.y-n.y,o=Math.sqrt(r*r+i*i),a=t.x-n.x,s=t.y-n.y,l=Math.sqrt(a*a+s*s);return o<l?-1:o===l?0:1}),o[0]):e}hRe(AGe,"intersectPolygon");var yGe={node:uGe,circle:fGe,ellipse:dGe,polygon:AGe,rect:aGe};function vGe(e,t){const{labelStyles:n}=qqe(t);t.labelStyle=n;const r=eGe(t);let i=r;r||(i="anchor");const o=e.insert("g").attr("class",i).attr("id",t.domId||t.id),{cssStyles:a}=t,s=jZe(o),l=Vqe(t,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==t.look&&(l.roughness=0);const c=s.circle(0,0,2,l),u=o.insert(()=>c,":first-child");return u.attr("class","anchor").attr("style",KWe(a)),JZe(t,u),t.intersect=function(e){return ORe.info("Circle intersect",t,1,e),yGe.circle(t,1,e)},o}function bGe(e,t,n,r,i,o,a){const s=(e+n)/2,l=(t+r)/2,c=Math.atan2(r-t,n-e),u=(n-e)/2/i,h=(r-t)/2/o,d=Math.sqrt(u**2+h**2);if(d>1)throw new Error("The given radii are too small to create an arc between the points.");const p=Math.sqrt(1-d**2),f=s+p*o*Math.sin(c)*(a?-1:1),g=l-p*i*Math.cos(c)*(a?-1:1),m=Math.atan2((t-g)/o,(e-f)/i);let O=Math.atan2((r-g)/o,(n-f)/i)-m;a&&O<0&&(O+=2*Math.PI),!a&&O>0&&(O-=2*Math.PI);const A=[];for(let y=0;y<20;y++){const e=m+y/19*O,t=f+i*Math.cos(e),n=g+o*Math.sin(e);A.push({x:t,y:n})}return A}function xGe(e,t,n){const[r,i]=[t,n].sort((e,t)=>t-e);return i*(1-Math.sqrt(1-(e/r/2)**2))}async function wGe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const i=t.padding??0,o="neo"===t.look?16:i,a="neo"===t.look?12:i,s=hRe(e=>e+a,"calcTotalHeight"),l=hRe(e=>{const t=e/2;return[t/(2.5+e/50),t]},"calcEllipseRadius"),{shapeSvg:c,bbox:u}=await HZe(e,t,eGe(t)),h=s((null==t?void 0:t.height)?null==t?void 0:t.height:u.height),[d,p]=l(h),f=xGe(h,d,p),g=((null==t?void 0:t.width)?null==t?void 0:t.width:u.width)+2*o+f-f,m=h,{cssStyles:O}=t,A=[{x:g/2,y:-m/2},{x:-g/2,y:-m/2},...bGe(-g/2,-m/2,-g/2,m/2,d,p,!1),{x:g/2,y:m/2},...bGe(g/2,m/2,g/2,-m/2,d,p,!0)],y=jZe(c),v=Vqe(t,{});"handDrawn"!==t.look&&(v.roughness=0,v.fillStyle="solid");const b=tGe(A),x=y.path(b,v),w=c.insert(()=>x,":first-child");return w.attr("class","basic label-container outer-path"),O&&"handDrawn"!==t.look&&w.selectAll("path").attr("style",O),r&&"handDrawn"!==t.look&&w.selectAll("path").attr("style",r),w.attr("transform",`translate(${d/2}, 0)`),JZe(t,w),t.intersect=function(e){return yGe.polygon(t,A,e)},c}async function kGe(e,t,{config:{themeVariables:n}}){var r;const{labelStyles:i,nodeStyles:o}=qqe(t);t.labelStyle=i;const{shapeSvg:a,bbox:s,label:l}=await HZe(e,t,eGe(t)),c=(null==n?void 0:n.nodeBorder)??(null==n?void 0:n.lineColor)??"currentColor",u=t.padding??12,h=Math.max(s.width+2*u,t.width??0,80),d=Math.max(Math.min(.08*h,12),5),p=Math.max(s.height+2*u+d,t.height??0),f=-p/2+d,g=p/2,m=.72*h,O=[`M${-h/2},${f}`,`L${-m/2},${g}`,`A${m/2},${d} 0 0 0 ${m/2},${g}`,`L${h/2},${f}`,`A${h/2},${d} 0 0 0 ${-h/2},${f}`,"Z"].join(" "),{cssStyles:A}=t,y=a.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===t.look){const e=jZe(a).path(O,Vqe(t,{}));null==(r=y.node())||r.appendChild(e),A&&y.attr("style",A)}else y.append("path").attr("d",O).attr("style",o);y.append("ellipse").attr("cx",0).attr("cy",f).attr("rx",h/2).attr("ry",d).attr("style",`fill:none;stroke:${c};stroke-width:1px`),JZe(t,y);const v=f+(g-f)/2;l.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${v-s.height/2-(s.y-(s.top??0))})`);const b=hRe((e,t,n)=>Array.from({length:13},(r,i)=>{const o=Math.PI-i*Math.PI/12;return{x:e*Math.cos(o),y:t+n*d*Math.sin(o)}}),"arc"),x=[...b(h/2,f,-1),...b(m/2,g,1).reverse()];return t.intersect=function(e){return yGe.polygon(t,x,e)},a}hRe(vGe,"anchor"),hRe(bGe,"generateArcPoints"),hRe(xGe,"calculateArcSagitta"),hRe(wGe,"bowTieRect"),hRe(kGe,"bucket");async function SGe(e,t){const{themeVariables:n}=JIe(),r=n.clusterBkg,i=n.clusterBorder,{nodeStyles:o}=qqe(t),{shapeSvg:a,bbox:s}=await HZe(e,t,eGe(t)),l=t.padding??8,c=s.height,u=Math.max(s.width+2*l,80,(null==t?void 0:t.width)??0),h=Math.max(c+8+20+2*l,(null==t?void 0:t.height)??0),d=-u/2,p=-h/2,f=a.select(".label");if(f){t.useHtmlLabels??YBe(JIe())?f.attr("transform",`translate(${-s.width/2}, ${-s.height/2-14})`):f.attr("transform",`translate(0, ${-s.height/2-14})`)}let g;if("handDrawn"===t.look){const e=jZe(a),n=Vqe(t,{fill:r,stroke:i,fillStyle:"solid"}),o=e.path(sGe(d,p,u,h,8),n);g=a.insert(()=>o,":first-child"),g.attr("class","basic label-container collapsed-group").attr("style",KWe(t.cssStyles))}else g=a.insert("rect",":first-child"),g.attr("class","basic label-container collapsed-group").attr("style",o).attr("rx",8).attr("ry",8).attr("x",d).attr("y",p).attr("width",u).attr("height",h).attr("fill",r).attr("stroke",i);const m=p+l+c+8;a.append("line").attr("class","collapsed-separator").attr("x1",d+8).attr("y1",m).attr("x2",d+u-8).attr("y2",m).attr("stroke",i).attr("stroke-dasharray","3, 3");const O=m+10;for(let A=-1;A<=1;A++)a.append("circle").attr("class","collapsed-indicator").attr("cx",10*A).attr("cy",O).attr("r",2.5).attr("fill",i);return JZe(t,g),t.calcIntersect=function(e,t){return yGe.rect(e,t)},t.intersect=function(e){return yGe.rect(t,e)},a}function TGe(e,t,n,r){return e.insert("polygon",":first-child").attr("points",r.map(function(e){return e.x+","+e.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+n/2+")")}hRe(SGe,"collapsedGroup"),hRe(TGe,"insertPolygonShape");var $Ge=["right","left","up","down"],_Ge="point",CGe=hRe(e=>{const t=new Set;for(const n of e)switch(n){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(n)}return t},"expandAndDeduplicateDirections"),QGe=hRe(e=>$Ge.filter(t=>e.has(t)).join("|")||_Ge,"getDirectionKey"),PGe={"right|left|up|down":hRe(({height:e,midpoint:t,padding:n,width:r})=>[{x:0,y:0},{x:t,y:0},{x:r/2,y:2*n},{x:r-t,y:0},{x:r,y:0},{x:r,y:-e/3},{x:r+2*n,y:-e/2},{x:r,y:-2*e/3},{x:r,y:-e},{x:r-t,y:-e},{x:r/2,y:-e-2*n},{x:t,y:-e},{x:0,y:-e},{x:0,y:-2*e/3},{x:-2*n,y:-e/2},{x:0,y:-e/3}],"right|left|up|down"),"right|left|up":hRe(({height:e,midpoint:t,width:n})=>[{x:t,y:0},{x:n-t,y:0},{x:n,y:-e/2},{x:n-t,y:-e},{x:t,y:-e},{x:0,y:-e/2}],"right|left|up"),"right|left|down":hRe(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:t,y:-e},{x:n-t,y:-e},{x:n,y:0}],"right|left|down"),"right|up|down":hRe(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:n,y:-t},{x:n,y:-e+t},{x:0,y:-e}],"right|up|down"),"left|up|down":hRe(({height:e,midpoint:t,width:n})=>[{x:n,y:0},{x:0,y:-t},{x:0,y:-e+t},{x:n,y:-e}],"left|up|down"),"right|left":hRe(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:0},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:0},{x:r,y:-e/2},{x:r-t,y:-e},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e},{x:0,y:-e/2}],"right|left"),"up|down":hRe(({height:e,midpoint:t,padding:n,width:r})=>[{x:r/2,y:0},{x:0,y:-n},{x:t,y:-n},{x:t,y:-e+n},{x:0,y:-e+n},{x:r/2,y:-e},{x:r,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n},{x:r,y:-n}],"up|down"),"right|up":hRe(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:n,y:-t},{x:0,y:-e}],"right|up"),"right|down":hRe(({height:e,width:t})=>[{x:0,y:0},{x:t,y:0},{x:0,y:-e}],"right|down"),"left|up":hRe(({height:e,midpoint:t,width:n})=>[{x:n,y:0},{x:0,y:-t},{x:n,y:-e}],"left|up"),"left|down":hRe(({height:e,width:t})=>[{x:t,y:0},{x:0,y:0},{x:t,y:-e}],"left|down"),right:hRe(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:-n},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:0},{x:r,y:-e/2},{x:r-t,y:-e},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e+n}],"right"),left:hRe(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:0},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e},{x:0,y:-e/2}],"left"),up:hRe(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:-n},{x:t,y:-e+n},{x:0,y:-e+n},{x:r/2,y:-e},{x:r,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n}],"up"),down:hRe(({height:e,midpoint:t,padding:n,width:r})=>[{x:r/2,y:0},{x:0,y:-n},{x:t,y:-n},{x:t,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n},{x:r,y:-n}],"down"),[_Ge]:()=>[{x:0,y:0}]},EGe=hRe((e,t,n,r)=>{const i=CGe(e),o=(n.padding??0)/2,a=t.height+4*o,s=a/2,l=r??t.width+2*s+2*o,c=QGe(i);return(PGe[c]??PGe[_Ge])({height:a,midpoint:s,padding:o,width:l})},"getArrowPoints");async function RGe(e,t){const n=t,{shapeSvg:r,bbox:i}=await HZe(e,n,eGe(n)),o=n.padding??0,a=i.height+2*o,s=a/2,l=i.width+2*s+o,c=n.width??0,u=n.positioned&&(n.widthInColumns??1)>1&&c>l?c:l,h=EGe(n.directions??[],i,n,u),d=TGe(r,u,a,h);return d.attr("style",n.style??null),JZe(n,d),n.intersect=function(e){return yGe.polygon(n,h,e)},r}async function BGe(e,t,{config:{themeVariables:n}}){var r;const{labelStyles:i,nodeStyles:o}=qqe(t);t.labelStyle=i;const{shapeSvg:a,bbox:s,label:l}=await HZe(e,t,eGe(t)),c=(null==n?void 0:n.nodeBorder)??(null==n?void 0:n.lineColor)??"currentColor",u=t.padding??12,h=18,d=Math.max(s.width+2*u,t.width??0,90),p=Math.max(s.height+2*u+h,t.height??0),f=-p/2,{cssStyles:g}=t,m=a.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===t.look){const e=jZe(a).path(sGe(-d/2,f,d,p,12),Vqe(t,{}));null==(r=m.node())||r.appendChild(e),g&&m.attr("style",g)}else m.append("rect").attr("x",-d/2).attr("y",f).attr("width",d).attr("height",p).attr("rx",12).attr("ry",12).attr("style",o);m.append("line").attr("x1",-d/2).attr("y1",f+h).attr("x2",d/2).attr("y2",f+h).attr("style",`stroke:${c};stroke-width:1px`);for(let A=0;A<3;A++)m.append("circle").attr("cx",-d/2+12+9*A).attr("cy",f+9).attr("r",2.5).attr("style",`fill:${c};stroke:none`);m.append("rect").attr("class","browser-address-bar").attr("x",-d/2+44).attr("y",f+4).attr("width",Math.max(d-56,10)).attr("height",10).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${c};stroke-width:1px;opacity:0.6`),JZe(t,m);const O=f+h+(p-h)/2;return l.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${O-s.height/2-(s.y-(s.top??0))})`),t.intersect=function(e){return yGe.rect(t,e)},a}hRe(RGe,"block_arrow"),hRe(BGe,"browser");async function IGe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const i=t.padding??0,o="neo"===t.look?28:i,a="neo"===t.look?24:i,{shapeSvg:s,bbox:l}=await HZe(e,t,eGe(t)),c=((null==t?void 0:t.width)??l.width)+("neo"===t.look?2*o:o+12),u=((null==t?void 0:t.height)??l.height)+("neo"===t.look?2*a:a),h=-u,d=[{x:12,y:h},{x:c,y:h},{x:c,y:0},{x:0,y:0},{x:0,y:h+12},{x:12,y:h}];let p;const{cssStyles:f}=t;if("handDrawn"===t.look){const e=jZe(s),n=Vqe(t,{}),r=tGe(d),i=e.path(r,n);p=s.insert(()=>i,":first-child").attr("transform",`translate(${-c/2}, ${u/2})`),f&&p.attr("style",f)}else p=TGe(s,c,u,d);return r&&p.attr("style",r),JZe(t,p),t.intersect=function(e){return yGe.polygon(t,d,e)},s}function LGe(e,t){const{nodeStyles:n}=qqe(t);t.label="";const r=e.insert("g").attr("class",eGe(t)).attr("id",t.domId??t.id),{cssStyles:i}=t,o=Math.max(28,t.width??0),a=[{x:0,y:o/2},{x:o/2,y:0},{x:0,y:-o/2},{x:-o/2,y:0}],s=jZe(r),l=Vqe(t,{});"handDrawn"!==t.look&&(l.roughness=0,l.fillStyle="solid");const c=tGe(a),u=s.path(c,l),h=r.insert(()=>u,":first-child");return i&&"handDrawn"!==t.look&&h.selectAll("path").attr("style",i),n&&"handDrawn"!==t.look&&h.selectAll("path").attr("style",n),t.width=28,t.height=28,t.intersect=function(e){return yGe.polygon(t,a,e)},r}async function DGe(e,t,n){const{labelStyles:r,nodeStyles:i}=qqe(t);t.labelStyle=r;const{shapeSvg:o,bbox:a,halfPadding:s}=await HZe(e,t,eGe(t)),l=(null==n?void 0:n.padding)??s,c="neo"===t.look?a.width/2+32:a.width/2+l;let u;const{cssStyles:h}=t;if("handDrawn"===t.look){const e=jZe(o),n=Vqe(t,{}),r=e.circle(0,0,2*c,n);u=o.insert(()=>r,":first-child"),u.attr("class","basic label-container").attr("style",KWe(h))}else u=o.insert("circle",":first-child").attr("class","basic label-container").attr("style",i).attr("r",c).attr("cx",0).attr("cy",0);return JZe(t,u),t.calcIntersect=function(e,t){const n=e.width/2;return yGe.circle(e,n,t)},t.intersect=function(e){return ORe.info("Circle intersect",t,c,e),yGe.circle(t,c,e)},o}async function MGe(e,t){const n=t,r=["node",n.cssClasses,n.class].filter(Boolean).join(" "),{shapeSvg:i,bbox:o,halfPadding:a}=await HZe(e,n,r),s=i.insert("rect",":first-child"),l=n.padding??0,c=n.positioned?n.width??0:o.width+l,u=n.positioned?n.height??0:o.height+l,h=n.positioned?-c/2:-o.width/2-a,d=n.positioned?-u/2:-o.height/2-a;return s.attr("class","basic cluster composite label-container").attr("style",n.style??null).attr("rx",n.rx??null).attr("ry",n.ry??null).attr("x",h).attr("y",d).attr("width",c).attr("height",u),JZe(n,s),n.intersect=function(e){return yGe.rect(n,e)},i}async function NGe(e,t,{config:{themeVariables:n}}){var r;const{labelStyles:i,nodeStyles:o}=qqe(t);t.labelStyle=i;const{shapeSvg:a,bbox:s,label:l}=await HZe(e,t,eGe(t)),c=(null==n?void 0:n.nodeBorder)??(null==n?void 0:n.lineColor)??"currentColor",u=t.padding??12,h=Math.max(s.width+2*u,t.width??0,90),d=Math.max(s.height+2*u+20,t.height??0),p=-d/2,{cssStyles:f}=t,g=a.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===t.look){const e=jZe(a).path(sGe(-h/2,p,h,d,12),Vqe(t,{}));null==(r=g.node())||r.appendChild(e),f&&g.attr("style",f)}else g.append("rect").attr("x",-h/2).attr("y",p).attr("width",h).attr("height",d).attr("rx",12).attr("ry",12).attr("style",o);g.append("text").attr("x",-h/2+12).attr("y",p+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${c}`).text(">_"),JZe(t,g);const m=p+20+(d-20)/2;return l.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${m-s.height/2-(s.y-(s.top??0))})`),t.intersect=function(e){return yGe.rect(t,e)},a}function XGe(e){const t=Math.cos(Math.PI/4),n=Math.sin(Math.PI/4),r=2*e;return`M ${-r/2*t},${r/2*n} L ${r/2*t},${-r/2*n}\n M ${r/2*t},${r/2*n} L ${-r/2*t},${-r/2*n}`}function FGe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n,t.label="";const i=e.insert("g").attr("class",eGe(t)).attr("id",t.domId??t.id),o=Math.max(30,(null==t?void 0:t.width)??0),{cssStyles:a}=t,s=jZe(i),l=Vqe(t,{});"handDrawn"!==t.look&&(l.roughness=0,l.fillStyle="solid");const c=s.circle(0,0,2*o,l),u=XGe(o),h=s.path(u,l),d=i.insert(()=>c,":first-child");return d.insert(()=>h),d.attr("class","outer-path"),a&&"handDrawn"!==t.look&&d.selectAll("path").attr("style",a),r&&"handDrawn"!==t.look&&d.selectAll("path").attr("style",r),JZe(t,d),t.intersect=function(e){ORe.info("crossedCircle intersect",t,{radius:o,point:e});return yGe.circle(t,o,e)},i}function UGe(e,t,n,r=100,i=0,o=180){const a=[],s=i*Math.PI/180,l=(o*Math.PI/180-s)/(r-1);for(let c=0;c<r;c++){const r=s+c*l,i=e+n*Math.cos(r),o=t+n*Math.sin(r);a.push({x:-i,y:-o})}return a}async function zGe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const{shapeSvg:i,bbox:o,label:a}=await HZe(e,t,eGe(t)),s="neo"===t.look?18:t.padding??0,l="neo"===t.look?12:t.padding??0,c=o.width+s,u=o.height+l,h=Math.max(5,.1*u),{cssStyles:d}=t,p=[...UGe(c/2,-u/2,h,30,-90,0),{x:-c/2-h,y:h},...UGe(c/2+2*h,-h,h,20,-180,-270),...UGe(c/2+2*h,h,h,20,-90,-180),{x:-c/2-h,y:-u/2},...UGe(c/2,u/2,h,20,0,90)],f=[{x:c/2,y:-u/2-h},{x:-c/2,y:-u/2-h},...UGe(c/2,-u/2,h,20,-90,0),{x:-c/2-h,y:-h},...UGe(c/2+.1*c,-h,h,20,-180,-270),...UGe(c/2+.1*c,h,h,20,-90,-180),{x:-c/2-h,y:u/2},...UGe(c/2,u/2,h,20,0,90),{x:-c/2,y:u/2+h},{x:c/2,y:u/2+h}],g=jZe(i),m=Vqe(t,{fill:"none"});"handDrawn"!==t.look&&(m.roughness=0,m.fillStyle="solid");const O=tGe(p).replace("Z",""),A=g.path(O,m),y=tGe(f),v=g.path(y,{...m}),b=i.insert("g",":first-child");return b.insert(()=>v,":first-child").attr("stroke-opacity",0),b.insert(()=>A,":first-child"),b.attr("class","text"),d&&"handDrawn"!==t.look&&b.selectAll("path").attr("style",d),r&&"handDrawn"!==t.look&&b.selectAll("path").attr("style",r),b.attr("transform",`translate(${h}, 0)`),a.attr("transform",`translate(${-c/2+h-(o.x-(o.left??0))},${-u/2+(t.padding??0)/2-(o.y-(o.top??0))})`),JZe(t,b),t.intersect=function(e){return yGe.polygon(t,f,e)},i}function qGe(e,t,n,r=100,i=0,o=180){const a=[],s=i*Math.PI/180,l=(o*Math.PI/180-s)/(r-1);for(let c=0;c<r;c++){const r=s+c*l,i=e+n*Math.cos(r),o=t+n*Math.sin(r);a.push({x:i,y:o})}return a}async function VGe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const{shapeSvg:i,bbox:o,label:a}=await HZe(e,t,eGe(t)),s="neo"===t.look?18:t.padding??0,l="neo"===t.look?12:t.padding??0,c=o.width+("neo"===t.look?2*s:s),u=o.height+("neo"===t.look?2*l:l),h=Math.max(5,.1*u),{cssStyles:d}=t,p=[...qGe(c/2,-u/2,h,20,-90,0),{x:c/2+h,y:-h},...qGe(c/2+2*h,-h,h,20,-180,-270),...qGe(c/2+2*h,h,h,20,-90,-180),{x:c/2+h,y:u/2},...qGe(c/2,u/2,h,20,0,90)],f=[{x:-c/2,y:-u/2-h},{x:c/2,y:-u/2-h},...qGe(c/2,-u/2,h,20,-90,0),{x:c/2+h,y:-h},...qGe(c/2+2*h,-h,h,20,-180,-270),...qGe(c/2+2*h,h,h,20,-90,-180),{x:c/2+h,y:u/2},...qGe(c/2,u/2,h,20,0,90),{x:c/2,y:u/2+h},{x:-c/2,y:u/2+h}],g=jZe(i),m=Vqe(t,{fill:"none"});"handDrawn"!==t.look&&(m.roughness=0,m.fillStyle="solid");const O=tGe(p).replace("Z",""),A=g.path(O,m),y=tGe(f),v=g.path(y,{...m}),b=i.insert("g",":first-child");return b.insert(()=>v,":first-child").attr("stroke-opacity",0),b.insert(()=>A,":first-child"),b.attr("class","text"),d&&"handDrawn"!==t.look&&b.selectAll("path").attr("style",d),r&&"handDrawn"!==t.look&&b.selectAll("path").attr("style",r),b.attr("transform",`translate(${-h}, 0)`),a.attr("transform",`translate(${-c/2+(t.padding??0)/2-(o.x-(o.left??0))},${-u/2+(t.padding??0)/2-(o.y-(o.top??0))})`),JZe(t,b),t.intersect=function(e){return yGe.polygon(t,f,e)},i}function WGe(e,t,n,r=100,i=0,o=180){const a=[],s=i*Math.PI/180,l=(o*Math.PI/180-s)/(r-1);for(let c=0;c<r;c++){const r=s+c*l,i=e+n*Math.cos(r),o=t+n*Math.sin(r);a.push({x:-i,y:-o})}return a}async function jGe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const{shapeSvg:i,bbox:o,label:a}=await HZe(e,t,eGe(t)),s="neo"===t.look?18:t.padding??0,l="neo"===t.look?12:t.padding??0,c=o.width+("neo"===t.look?2*s:s),u=o.height+("neo"===t.look?2*l:l),h=Math.max(5,.1*u),{cssStyles:d}=t,p=[...WGe(c/2,-u/2,h,30,-90,0),{x:-c/2-h,y:h},...WGe(c/2+2*h,-h,h,20,-180,-270),...WGe(c/2+2*h,h,h,20,-90,-180),{x:-c/2-h,y:-u/2},...WGe(c/2,u/2,h,20,0,90)],f=[...WGe(-c/2+h+h/2,-u/2,h,20,-90,-180),{x:c/2-h/2,y:h},...WGe(-c/2-h/2,-h,h,20,0,90),...WGe(-c/2-h/2,h,h,20,-90,0),{x:c/2-h/2,y:-h},...WGe(-c/2+h+h/2,u/2,h,30,-180,-270)],g=[{x:c/2,y:-u/2-h},{x:-c/2,y:-u/2-h},...WGe(c/2,-u/2,h,20,-90,0),{x:-c/2-h,y:-h},...WGe(c/2+2*h,-h,h,20,-180,-270),...WGe(c/2+2*h,h,h,20,-90,-180),{x:-c/2-h,y:u/2},...WGe(c/2,u/2,h,20,0,90),{x:-c/2,y:u/2+h},{x:c/2-h-h/2,y:u/2+h},...WGe(-c/2+h+h/2,-u/2,h,20,-90,-180),{x:c/2-h/2,y:h},...WGe(-c/2-h/2,-h,h,20,0,90),...WGe(-c/2-h/2,h,h,20,-90,0),{x:c/2-h/2,y:-h},...WGe(-c/2+h+h/2,u/2,h,30,-180,-270)],m=jZe(i),O=Vqe(t,{fill:"none"});"handDrawn"!==t.look&&(O.roughness=0,O.fillStyle="solid");const A=tGe(p).replace("Z",""),y=m.path(A,O),v=tGe(f).replace("Z",""),b=m.path(v,O),x=tGe(g),w=m.path(x,{...O}),k=i.insert("g",":first-child");return k.insert(()=>w,":first-child").attr("stroke-opacity",0),k.insert(()=>y,":first-child"),k.insert(()=>b,":first-child"),k.attr("class","text"),d&&"handDrawn"!==t.look&&k.selectAll("path").attr("style",d),r&&"handDrawn"!==t.look&&k.selectAll("path").attr("style",r),k.attr("transform",`translate(${h-h/4}, 0)`),a.attr("transform",`translate(${-c/2+(t.padding??0)/2-(o.x-(o.left??0))},${-u/2+(t.padding??0)/2-(o.y-(o.top??0))})`),JZe(t,k),t.intersect=function(e){return yGe.polygon(t,g,e)},i}async function YGe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const i=t.padding??0,o="neo"===t.look?16:i,a="neo"===t.look?12:i,{shapeSvg:s,bbox:l}=await HZe(e,t,eGe(t)),c=Math.max(20,1.25*(l.width+2*o),(null==t?void 0:t.width)??0),u=Math.max(5,l.height+2*a,(null==t?void 0:t.height)??0),h=u/2,{cssStyles:d}=t,p=jZe(s),f=Vqe(t,{});"handDrawn"!==t.look&&(f.roughness=0,f.fillStyle="solid");const g=c-h,m=u/4,O=[{x:g,y:0},{x:m,y:0},{x:0,y:u/2},{x:m,y:u},{x:g,y:u},...rGe(-g,-u/2,h,50,270,90)],A=tGe(O),y=p.path(A,f),v=s.insert(()=>y,":first-child");return v.attr("class","basic label-container outer-path"),d&&"handDrawn"!==t.look&&v.selectChildren("path").attr("style",d),r&&"handDrawn"!==t.look&&v.selectChildren("path").attr("style",r),v.attr("transform",`translate(${-c/2}, ${-u/2})`),JZe(t,v),t.intersect=function(e){return yGe.polygon(t,O,e)},s}async function ZGe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const{shapeSvg:i,bbox:o,label:a}=await HZe(e,t,eGe(t)),s=t.padding??20,l=Math.max(o.width+2*s,t.width??0,100),c=Math.min(Math.max(.23*l,16),56),u=.27*c,h=Math.max(o.height+2*s,t.height?t.height-(2*c-u):0),d=Math.min(.177*l,.45*h),p=h+2*c-u,f=-p/2,g=f+2*c-u,m=i.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:O}=t;if("handDrawn"===t.look){const e=jZe(i),n=Vqe(t,{}),r=e.path(sGe(-l/2,g,l,h,d),n),o=e.circle(0,f+c,2*c,n);m.insert(()=>o,":first-child"),m.insert(()=>r,":first-child"),O&&m.attr("style",O)}else m.append("rect").attr("x",-l/2).attr("y",g).attr("width",l).attr("height",h).attr("rx",d).attr("ry",d).attr("style",r),m.append("circle").attr("cx",0).attr("cy",f+c).attr("r",c).attr("style",r);JZe(t,m);const A=g+h/2;a.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${A-o.height/2-(o.y-(o.top??0))})`);const y=f+c,v=180*Math.asin(Math.min(1,(g-y)/c))/Math.PI,b=[...rGe(0,-y,c,24,180+v,-v),...rGe(-(-l/2+d),-(g+d),d,12,90,0),...rGe(-(-l/2+d),-(p/2-d),d,12,360,270),...rGe(-(l/2-d),-(p/2-d),d,12,270,180),...rGe(-(l/2-d),-(g+d),d,12,180,90)];return t.intersect=function(e){return yGe.polygon(t,b,e)},i}hRe(IGe,"card"),hRe(LGe,"choice"),hRe(DGe,"circle"),hRe(MGe,"composite"),hRe(NGe,"consoleWindow"),hRe(XGe,"createLine"),hRe(FGe,"crossedCircle"),hRe(UGe,"generateCirclePoints"),hRe(zGe,"curlyBraceLeft"),hRe(qGe,"generateCirclePoints"),hRe(VGe,"curlyBraceRight"),hRe(WGe,"generateCirclePoints"),hRe(jGe,"curlyBraces"),hRe(YGe,"curvedTrapezoid"),hRe(ZGe,"person");var GGe=hRe((e,t,n,r,i,o)=>[`M${e},${t+o}`,`a${i},${o} 0,0,0 ${n},0`,`a${i},${o} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${o} 0,0,0 ${n},0`,"l0,"+-r].join(" "),"createCylinderPathD"),HGe=hRe((e,t,n,r,i,o)=>[`M${e},${t+o}`,`M${e+n},${t+o}`,`a${i},${o} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${o} 0,0,0 ${n},0`,"l0,"+-r].join(" "),"createOuterCylinderPathD"),KGe=hRe((e,t,n,r,i,o)=>[`M${e-n/2},${-r/2}`,`a${i},${o} 0,0,0 ${n},0`].join(" "),"createInnerCylinderPathD");async function JGe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const i=t.padding??0,o="neo"===t.look?24:i,a="neo"===t.look?24:i,s=t.width??0;if(t.width&&(t.width=t.width-a,t.width<8&&(t.width=8)),t.height){const e=s/2/(2.5+s/50);t.height=t.height-o-3*e,t.height<8&&(t.height=8)}const{shapeSvg:l,bbox:c,label:u}=await HZe(e,t,eGe(t)),h=Math.max(t.width??0,c.width)+a,d=h/2,p=d/(2.5+h/50),f=Math.max(t.height??0,c.height)+o+p;let g;const{cssStyles:m}=t;if("handDrawn"===t.look){const e=jZe(l),n=HGe(0,0,h,f,d,p),r=KGe(0,p,h,f,d,p),i=Vqe(t,{}),o=e.path(n,i),a=e.path(r,Vqe(t,{fill:"none"}));g=l.insert(()=>a,":first-child"),g=l.insert(()=>o,":first-child"),g.attr("class","basic label-container"),m&&g.attr("style",m)}else{const e=GGe(0,0,h,f,d,p);g=l.insert("path",":first-child").attr("d",e).attr("class","basic label-container outer-path").attr("style",KWe(m)).attr("style",r)}return g.attr("label-offset-y",p),g.attr("transform",`translate(${-h/2}, ${-(f/2+p)})`),JZe(t,g),u.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))}, ${-c.height/2+(t.padding??0)/1.5-(c.y-(c.top??0))})`),t.intersect=function(e){const n=yGe.rect(t,e),r=n.x-(t.x??0);if(0!=d&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-p)){let i=p*p*(1-r*r/(d*d));i>0&&(i=Math.sqrt(i)),i=p-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},l}async function eHe(e,t,n){const{labelStyles:r,nodeStyles:i}=qqe(t);t.labelStyle=r;const{shapeSvg:o,bbox:a}=await HZe(e,t,eGe(t)),s=Math.max(a.width+2*n.labelPaddingX,(null==t?void 0:t.width)||0),l=Math.max(a.height+2*n.labelPaddingY,(null==t?void 0:t.height)||0),c=-s/2,u=-l/2;let h,{rx:d,ry:p}=t;const{cssStyles:f}=t;if((null==n?void 0:n.rx)&&n.ry&&(d=n.rx,p=n.ry),"handDrawn"===t.look){const e=jZe(o),n=Vqe(t,{}),r=d||p?e.path(sGe(c,u,s,l,d||0),n):e.rectangle(c,u,s,l,n);h=o.insert(()=>r,":first-child"),h.attr("class","basic label-container").attr("style",KWe(f))}else h=o.insert("rect",":first-child"),h.attr("class","basic label-container").attr("style",i).attr("rx",KWe(d)).attr("ry",KWe(p)).attr("x",c).attr("y",u).attr("width",s).attr("height",l);return JZe(t,h,"handDrawn"===t.look?void 0:{width:s,height:l}),t.calcIntersect=function(e,t){return yGe.rect(e,t)},t.intersect=function(e){return yGe.rect(t,e)},o}async function tHe(e,t){const{cssClasses:n,labelPaddingX:r,labelPaddingY:i,padding:o,width:a,height:s}=t,l={rx:0,ry:0,labelPaddingX:r??2*(o??0),labelPaddingY:i??o??0},c=await eHe(e,t,l);if("handDrawn"===t.look){const e=jZe(c),n=Vqe(t,{}),r=c.select(".basic.label-container > path:nth-child(2)"),i=r.node();if(!i)return c;let o=null;return i instanceof SVGGraphicsElement?(o=i.getBBox(),c.insert(()=>e.line(o.x,o.y,o.x+o.width,o.y,n),".basic.label-container g.label"),c.insert(()=>e.line(o.x,o.y+o.height,o.x+o.width,o.y+o.height,n),".basic.label-container g.label"),r.remove(),c):c}const u=c.select(".basic.label-container"),h=(Number(u.attr("width"))||a)??0,d=(Number(u.attr("height"))||s)??0;return h>0&&d>0&&u.attr("stroke-dasharray",`${h} ${d}`),c}async function nHe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const i="neo"===t.look?16:t.padding??0,o="neo"===t.look?16:t.padding??0,{shapeSvg:a,bbox:s,label:l}=await HZe(e,t,eGe(t)),c=s.width+i,u=s.height+o,h=.2*u,d=-c/2,p=-u/2-h/2,{cssStyles:f}=t,g=jZe(a),m=Vqe(t,{});"handDrawn"!==t.look&&(m.roughness=0,m.fillStyle="solid");const O=[{x:d,y:p+h},{x:-d,y:p+h},{x:-d,y:-p},{x:d,y:-p},{x:d,y:p},{x:-d,y:p},{x:-d,y:p+h}],A=g.polygon(O.map(e=>[e.x,e.y]),m),y=a.insert(()=>A,":first-child");return y.attr("class","basic label-container outer-path"),f&&"handDrawn"!==t.look&&y.selectAll("path").attr("style",f),r&&"handDrawn"!==t.look&&y.selectAll("path").attr("style",r),l.attr("transform",`translate(${d+(t.padding??0)/2-(s.x-(s.left??0))}, ${p+h+(t.padding??0)/2-(s.y-(s.top??0))})`),JZe(t,y),t.intersect=function(e){return yGe.rect(t,e)},a}async function rHe(e,t){var n,r;const{labelStyles:i,nodeStyles:o}=qqe(t),a="neo"===t.look?12:5;t.labelStyle=i;const s=t.padding??0,l="neo"===t.look?16:s,{shapeSvg:c,bbox:u}=await HZe(e,t,eGe(t)),h=((null==t?void 0:t.width)?(null==t?void 0:t.width)/2:u.width/2)+(l??0),d=h-a;let p;const{cssStyles:f}=t;if("handDrawn"===t.look){const e=jZe(c),i=Vqe(t,{roughness:.2,strokeWidth:2.5}),o=Vqe(t,{roughness:.2,strokeWidth:1.5}),a=e.circle(0,0,2*h,i),s=e.circle(0,0,2*d,o);p=c.insert("g",":first-child"),p.attr("class",KWe(t.cssClasses)).attr("style",KWe(f)),null==(n=p.node())||n.appendChild(a),null==(r=p.node())||r.appendChild(s)}else{p=c.insert("g",":first-child");const e=p.insert("circle",":first-child"),t=p.insert("circle");p.attr("class","basic label-container").attr("style",o),e.attr("class","outer-circle").attr("style",o).attr("r",h).attr("cx",0).attr("cy",0),t.attr("class","inner-circle").attr("style",o).attr("r",d).attr("cx",0).attr("cy",0)}return JZe(t,p),t.intersect=function(e){return ORe.info("DoubleCircle intersect",t,h,e),yGe.circle(t,h,e)},c}function iHe(e,t,{config:{themeVariables:n}}){const{labelStyles:r,nodeStyles:i}=qqe(t);t.label="",t.labelStyle=r;const o=e.insert("g").attr("class",eGe(t)).attr("id",t.domId??t.id),{cssStyles:a}=t,s=jZe(o),{nodeBorder:l}=n,c=Vqe(t,{fillStyle:"solid"});"handDrawn"!==t.look&&(c.roughness=0);const u=s.circle(0,0,14,c),h=o.insert(()=>u,":first-child");return h.selectAll("path").attr("style",`fill: ${l} !important;`),a&&a.length>0&&"handDrawn"!==t.look&&h.selectAll("path").attr("style",a),i&&"handDrawn"!==t.look&&h.selectAll("path").attr("style",i),JZe(t,h),t.intersect=function(e){ORe.info("filledCircle intersect",t,{radius:7,point:e});return yGe.circle(t,7,e)},o}hRe(JGe,"cylinder"),hRe(eHe,"drawRect"),hRe(tHe,"datastore"),hRe(nHe,"dividedRectangle"),hRe(rHe,"doublecircle"),hRe(iHe,"filledCircle");async function oHe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const i=t.padding??0,o="neo"===t.look?2*i:i;(t.width||t.height)&&(t.height=(null==t?void 0:t.height)??0,t.height<10&&(t.height=10),t.width=((null==t?void 0:t.width)??0)-o-o/2,t.width<10&&(t.width=10));const{shapeSvg:a,bbox:s,label:l}=await HZe(e,t,eGe(t)),c=((null==t?void 0:t.width)?null==t?void 0:t.width:s.width)+(o??0),u=(null==t?void 0:t.height)?null==t?void 0:t.height:c+s.height,h=[{x:0,y:-u},{x:u,y:-u},{x:u/2,y:0}],{cssStyles:d}=t,p=jZe(a),f=Vqe(t,{});"handDrawn"!==t.look&&(f.roughness=0,f.fillStyle="solid");const g=tGe(h),m=p.path(g,f),O=a.insert(()=>m,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`).attr("class","outer-path");return d&&"handDrawn"!==t.look&&O.selectChildren("path").attr("style",d),r&&"handDrawn"!==t.look&&O.selectChildren("path").attr("style",r),t.width=c,t.height=u,JZe(t,O),l.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${-u/2+(t.padding??0)/2+(s.y-(s.top??0))})`),t.intersect=function(e){return ORe.info("Triangle intersect",t,h,e),yGe.polygon(t,h,e)},a}async function aHe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const{shapeSvg:i,bbox:o,label:a}=await HZe(e,t,eGe(t)),s=t.padding??12,l=Math.max(o.width+2*s,t.width??0,90),c=o.height+2*s,u=Math.max(Math.min(.16*c,14),8),h=Math.max(c+u,t.height??0),d=h-u,p=Math.max(.38*l,28),f=-h/2,g=[{x:-l/2,y:f},{x:-l/2+p,y:f},{x:-l/2+p,y:f+u},{x:l/2,y:f+u},{x:l/2,y:h/2},{x:-l/2,y:h/2}],m=[`M${g[0].x},${g[0].y}`,...g.slice(1).map(e=>`L${e.x},${e.y}`),"Z"].join(" "),{cssStyles:O}=t;let A;if("handDrawn"===t.look){const e=jZe(i).path(m,Vqe(t,{}));A=i.insert(()=>e,":first-child").attr("class","basic label-container"),O&&A.attr("style",O)}else A=i.insert("path",":first-child").attr("d",m).attr("class","basic label-container").attr("style",r);"handDrawn"===t.look?JZe(t,A):JZe(t,A,{width:l,height:h});const y=f+u+d/2;return a.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${y-o.height/2-(o.y-(o.top??0))})`),t.intersect=function(e){return yGe.polygon(t,g,e)},i}function sHe(e,t,{dir:n,config:{state:r,themeVariables:i}}){const{nodeStyles:o}=qqe(t);t.label="";const a=e.insert("g").attr("class",eGe(t)).attr("id",t.domId??t.id),{cssStyles:s}=t;let l=Math.max(70,(null==t?void 0:t.width)??0),c=Math.max(10,(null==t?void 0:t.height)??0);"LR"===n&&(l=Math.max(10,(null==t?void 0:t.width)??0),c=Math.max(70,(null==t?void 0:t.height)??0));const u=-1*l/2,h=-1*c/2,d=jZe(a),p=Vqe(t,{stroke:i.lineColor,fill:i.lineColor});"handDrawn"!==t.look&&(p.roughness=0,p.fillStyle="solid");const f=d.rectangle(u,h,l,c,p),g=a.insert(()=>f,":first-child");s&&"handDrawn"!==t.look&&g.selectAll("path").attr("style",s),o&&"handDrawn"!==t.look&&g.selectAll("path").attr("style",o),JZe(t,g);const m=(null==r?void 0:r.padding)??0;return t.width&&t.height&&(t.width+=m/2||0,t.height+=m/2||0),t.intersect=function(e){return yGe.rect(t,e)},a}async function lHe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const i="neo"===t.look?16:t.padding??0,o="neo"===t.look?12:t.padding??0;(t.width||t.height)&&(t.height=((null==t?void 0:t.height)??0)-2*o,t.height<10&&(t.height=10),t.width=((null==t?void 0:t.width)??0)-2*i,t.width<15&&(t.width=15));const{shapeSvg:a,bbox:s}=await HZe(e,t,eGe(t)),l=((null==t?void 0:t.width)?null==t?void 0:t.width:Math.max(15,s.width))+2*i,c=((null==t?void 0:t.height)?null==t?void 0:t.height:Math.max(10,s.height))+2*o,u=c/2,{cssStyles:h}=t,d=jZe(a),p=Vqe(t,{});"handDrawn"!==t.look&&(p.roughness=0,p.fillStyle="solid");const f=[{x:-l/2,y:-c/2},{x:l/2-u,y:-c/2},...rGe(-l/2+u,0,u,50,90,270),{x:l/2-u,y:c/2},{x:-l/2,y:c/2}],g=tGe(f),m=d.path(g,p),O=a.insert(()=>m,":first-child");return O.attr("class","basic label-container outer-path"),h&&"handDrawn"!==t.look&&O.selectChildren("path").attr("style",h),r&&"handDrawn"!==t.look&&O.selectChildren("path").attr("style",r),JZe(t,O),t.intersect=function(e){ORe.info("Pill intersect",t,{radius:u,point:e});return yGe.polygon(t,f,e)},a}hRe(oHe,"flippedTriangle"),hRe(aHe,"folder"),hRe(sHe,"forkJoin"),hRe(lHe,"halfRoundedRectangle");var cHe=hRe((e,t,n,r,i)=>[`M${e+i},${t}`,`L${e+n-i},${t}`,`L${e+n},${t-r/2}`,`L${e+n-i},${t-r}`,`L${e+i},${t-r}`,`L${e},${t-r/2}`,"Z"].join(" "),"createHexagonPathD");async function uHe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t),i="neo"===t.look?3.5:4;t.labelStyle=n;const o=t.padding??0,a="neo"===t.look?70:o,s="neo"===t.look?32:o;if(t.width||t.height){const e=(t.height??0)/i;t.width=((null==t?void 0:t.width)??0)-2*e-s,t.height=(t.height??0)-a}const{shapeSvg:l,bbox:c}=await HZe(e,t,eGe(t)),u=((null==t?void 0:t.height)?null==t?void 0:t.height:c.height)+a,h=u/i,d=((null==t?void 0:t.width)?null==t?void 0:t.width:c.width)+2*h+s,p=[{x:h,y:0},{x:d-h,y:0},{x:d,y:-u/2},{x:d-h,y:-u},{x:h,y:-u},{x:0,y:-u/2}];let f;const{cssStyles:g}=t;if("handDrawn"===t.look){const e=jZe(l),n=Vqe(t,{}),r=cHe(0,0,d,u,h),i=e.path(r,n);f=l.insert(()=>i,":first-child").attr("transform",`translate(${-d/2}, ${u/2})`),g&&f.attr("style",g)}else f=TGe(l,d,u,p);return r&&f.attr("style",r),t.width=d,t.height=u,JZe(t,f),t.intersect=function(e){return yGe.polygon(t,p,e)},l}async function hHe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.label="",t.labelStyle=n;const{shapeSvg:i}=await HZe(e,t,eGe(t)),o=Math.max(30,(null==t?void 0:t.width)??0),a=Math.max(30,(null==t?void 0:t.height)??0),{cssStyles:s}=t,l=jZe(i),c=Vqe(t,{});"handDrawn"!==t.look&&(c.roughness=0,c.fillStyle="solid");const u=[{x:0,y:0},{x:o,y:0},{x:0,y:a},{x:o,y:a}],h=tGe(u),d=l.path(h,c),p=i.insert(()=>d,":first-child");return p.attr("class","basic label-container outer-path"),s&&"handDrawn"!==t.look&&p.selectChildren("path").attr("style",s),r&&"handDrawn"!==t.look&&p.selectChildren("path").attr("style",r),p.attr("transform",`translate(${-o/2}, ${-a/2})`),JZe(t,p),t.intersect=function(e){ORe.info("Pill intersect",t,{points:u});return yGe.polygon(t,u,e)},i}async function dHe(e,t,{config:{themeVariables:n,flowchart:r}}){const{labelStyles:i}=qqe(t);t.labelStyle=i;const o=t.assetHeight??48,a=t.assetWidth??48,s=Math.max(o,a),l=null==r?void 0:r.wrappingWidth;t.width=Math.max(s,l??0);const{shapeSvg:c,bbox:u,label:h}=await HZe(e,t,"icon-shape default"),d="t"===t.pos,p=s,f=s,{nodeBorder:g}=n,{stylesMap:m}=Fqe(t),O=-f/2,A=-p/2,y=t.label?8:0,v=jZe(c),b=Vqe(t,{stroke:"none",fill:"none"});"handDrawn"!==t.look&&(b.roughness=0,b.fillStyle="solid");const x=v.rectangle(O,A,f,p,b),w=Math.max(f,u.width),k=p+u.height+y,S=v.rectangle(-w/2,-k/2,w,k,{...b,fill:"transparent",stroke:"none"}),T=c.insert(()=>x,":first-child"),$=c.insert(()=>S);if(t.icon){const e=c.append("g");e.html(`<g>${await OVe(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const n=e.node().getBBox(),r=n.width,i=n.height,o=n.x,a=n.y;e.attr("transform",`translate(${-r/2-o},${d?u.height/2+y/2-i/2-a:-u.height/2-y/2-i/2-a})`),e.attr("style",`color: ${m.get("stroke")??g};`)}return h.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${d?-k/2:k/2-u.height})`),T.attr("transform",`translate(0,${d?u.height/2+y/2:-u.height/2-y/2})`),JZe(t,$),t.intersect=function(e){if(ORe.info("iconSquare intersect",t,e),!t.label)return yGe.rect(t,e);const n=t.x??0,r=t.y??0,i=t.height??0;let o=[];o=d?[{x:n-u.width/2,y:r-i/2},{x:n+u.width/2,y:r-i/2},{x:n+u.width/2,y:r-i/2+u.height+y},{x:n+f/2,y:r-i/2+u.height+y},{x:n+f/2,y:r+i/2},{x:n-f/2,y:r+i/2},{x:n-f/2,y:r-i/2+u.height+y},{x:n-u.width/2,y:r-i/2+u.height+y}]:[{x:n-f/2,y:r-i/2},{x:n+f/2,y:r-i/2},{x:n+f/2,y:r-i/2+p},{x:n+u.width/2,y:r-i/2+p},{x:n+u.width/2/2,y:r+i/2},{x:n-u.width/2,y:r+i/2},{x:n-u.width/2,y:r-i/2+p},{x:n-f/2,y:r-i/2+p}];return yGe.polygon(t,o,e)},c}async function pHe(e,t,{config:{themeVariables:n,flowchart:r}}){const{labelStyles:i}=qqe(t);t.labelStyle=i;const o=t.assetHeight??48,a=t.assetWidth??48,s=Math.max(o,a),l=null==r?void 0:r.wrappingWidth;t.width=Math.max(s,l??0);const{shapeSvg:c,bbox:u,label:h}=await HZe(e,t,"icon-shape default"),d=t.label?8:0,p="t"===t.pos,{nodeBorder:f,mainBkg:g}=n,{stylesMap:m}=Fqe(t),O=jZe(c),A=Vqe(t,{});"handDrawn"!==t.look&&(A.roughness=0,A.fillStyle="solid");const y=m.get("fill");A.stroke=y??g;const v=c.append("g");t.icon&&v.html(`<g>${await OVe(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const b=v.node().getBBox(),x=b.width,w=b.height,k=b.x,S=b.y,T=Math.max(x,w)*Math.SQRT2+40,$=O.circle(0,0,T,A),_=Math.max(T,u.width),C=T+u.height+d,Q=O.rectangle(-_/2,-C/2,_,C,{...A,fill:"transparent",stroke:"none"}),P=c.insert(()=>$,":first-child"),E=c.insert(()=>Q);return v.attr("transform",`translate(${-x/2-k},${p?u.height/2+d/2-w/2-S:-u.height/2-d/2-w/2-S})`),v.attr("style",`color: ${m.get("stroke")??f};`),h.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${p?-C/2:C/2-u.height})`),P.attr("transform",`translate(0,${p?u.height/2+d/2:-u.height/2-d/2})`),JZe(t,E),t.intersect=function(e){ORe.info("iconSquare intersect",t,e);return yGe.rect(t,e)},c}async function fHe(e,t,{config:{themeVariables:n,flowchart:r}}){const{labelStyles:i}=qqe(t);t.labelStyle=i;const o=t.assetHeight??48,a=t.assetWidth??48,s=Math.max(o,a),l=null==r?void 0:r.wrappingWidth;t.width=Math.max(s,l??0);const{shapeSvg:c,bbox:u,halfPadding:h,label:d}=await HZe(e,t,"icon-shape default"),p="t"===t.pos,f=s+2*h,g=s+2*h,{nodeBorder:m,mainBkg:O}=n,{stylesMap:A}=Fqe(t),y=-g/2,v=-f/2,b=t.label?8:0,x=jZe(c),w=Vqe(t,{});"handDrawn"!==t.look&&(w.roughness=0,w.fillStyle="solid");const k=A.get("fill");w.stroke=k??O;const S=x.path(sGe(y,v,g,f,5),w),T=Math.max(g,u.width),$=f+u.height+b,_=x.rectangle(-T/2,-$/2,T,$,{...w,fill:"transparent",stroke:"none"}),C=c.insert(()=>S,":first-child").attr("class","icon-shape2"),Q=c.insert(()=>_);if(t.icon){const e=c.append("g");e.html(`<g>${await OVe(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const n=e.node().getBBox(),r=n.width,i=n.height,o=n.x,a=n.y;e.attr("transform",`translate(${-r/2-o},${p?u.height/2+b/2-i/2-a:-u.height/2-b/2-i/2-a})`),e.attr("style",`color: ${A.get("stroke")??m};`)}return d.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${p?-$/2:$/2-u.height})`),C.attr("transform",`translate(0,${p?u.height/2+b/2:-u.height/2-b/2})`),JZe(t,Q),t.intersect=function(e){if(ORe.info("iconSquare intersect",t,e),!t.label)return yGe.rect(t,e);const n=t.x??0,r=t.y??0,i=t.height??0;let o=[];o=p?[{x:n-u.width/2,y:r-i/2},{x:n+u.width/2,y:r-i/2},{x:n+u.width/2,y:r-i/2+u.height+b},{x:n+g/2,y:r-i/2+u.height+b},{x:n+g/2,y:r+i/2},{x:n-g/2,y:r+i/2},{x:n-g/2,y:r-i/2+u.height+b},{x:n-u.width/2,y:r-i/2+u.height+b}]:[{x:n-g/2,y:r-i/2},{x:n+g/2,y:r-i/2},{x:n+g/2,y:r-i/2+f},{x:n+u.width/2,y:r-i/2+f},{x:n+u.width/2/2,y:r+i/2},{x:n-u.width/2,y:r+i/2},{x:n-u.width/2,y:r-i/2+f},{x:n-g/2,y:r-i/2+f}];return yGe.polygon(t,o,e)},c}async function gHe(e,t,{config:{themeVariables:n,flowchart:r}}){const{labelStyles:i}=qqe(t);t.labelStyle=i;const o=t.assetHeight??48,a=t.assetWidth??48,s=Math.max(o,a),l=null==r?void 0:r.wrappingWidth;t.width=Math.max(s,l??0);const{shapeSvg:c,bbox:u,halfPadding:h,label:d}=await HZe(e,t,"icon-shape default"),p="t"===t.pos,f=s+2*h,g=s+2*h,{nodeBorder:m,mainBkg:O}=n,{stylesMap:A}=Fqe(t),y=-g/2,v=-f/2,b=t.label?8:0,x=jZe(c),w=Vqe(t,{});"handDrawn"!==t.look&&(w.roughness=0,w.fillStyle="solid");const k=A.get("fill");w.stroke=k??O;const S=x.path(sGe(y,v,g,f,.1),w),T=Math.max(g,u.width),$=f+u.height+b,_=x.rectangle(-T/2,-$/2,T,$,{...w,fill:"transparent",stroke:"none"}),C=c.insert(()=>S,":first-child"),Q=c.insert(()=>_);if(t.icon){const e=c.append("g");e.html(`<g>${await OVe(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const n=e.node().getBBox(),r=n.width,i=n.height,o=n.x,a=n.y;e.attr("transform",`translate(${-r/2-o},${p?u.height/2+b/2-i/2-a:-u.height/2-b/2-i/2-a})`),e.attr("style",`color: ${A.get("stroke")??m};`)}return d.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${p?-$/2:$/2-u.height})`),C.attr("transform",`translate(0,${p?u.height/2+b/2:-u.height/2-b/2})`),JZe(t,Q),t.intersect=function(e){if(ORe.info("iconSquare intersect",t,e),!t.label)return yGe.rect(t,e);const n=t.x??0,r=t.y??0,i=t.height??0;let o=[];o=p?[{x:n-u.width/2,y:r-i/2},{x:n+u.width/2,y:r-i/2},{x:n+u.width/2,y:r-i/2+u.height+b},{x:n+g/2,y:r-i/2+u.height+b},{x:n+g/2,y:r+i/2},{x:n-g/2,y:r+i/2},{x:n-g/2,y:r-i/2+u.height+b},{x:n-u.width/2,y:r-i/2+u.height+b}]:[{x:n-g/2,y:r-i/2},{x:n+g/2,y:r-i/2},{x:n+g/2,y:r-i/2+f},{x:n+u.width/2,y:r-i/2+f},{x:n+u.width/2/2,y:r+i/2},{x:n-u.width/2,y:r+i/2},{x:n-u.width/2,y:r-i/2+f},{x:n-g/2,y:r-i/2+f}];return yGe.polygon(t,o,e)},c}async function mHe(e,t,{config:{flowchart:n}}){const r=new Image;r.src=(null==t?void 0:t.img)??"",await r.decode();const i=Number(r.naturalWidth.toString().replace("px","")),o=Number(r.naturalHeight.toString().replace("px",""));t.imageAspectRatio=i/o;const{labelStyles:a}=qqe(t);t.labelStyle=a;const s=null==n?void 0:n.wrappingWidth;t.defaultWidth=null==n?void 0:n.wrappingWidth;const l=Math.max(t.label?s??0:0,(null==t?void 0:t.assetWidth)??i),c="on"===t.constraint&&(null==t?void 0:t.assetHeight)?t.assetHeight*t.imageAspectRatio:l,u="on"===t.constraint?c/t.imageAspectRatio:(null==t?void 0:t.assetHeight)??o;t.width=Math.max(c,s??0);const{shapeSvg:h,bbox:d,label:p}=await HZe(e,t,"image-shape default"),f="t"===t.pos,g=-c/2,m=-u/2,O=t.label?8:0,A=jZe(h),y=Vqe(t,{});"handDrawn"!==t.look&&(y.roughness=0,y.fillStyle="solid");const v=A.rectangle(g,m,c,u,y),b=Math.max(c,d.width),x=u+d.height+O,w=A.rectangle(-b/2,-x/2,b,x,{...y,fill:"none",stroke:"none"}),k=h.insert(()=>v,":first-child"),S=h.insert(()=>w);if(t.img){const e=h.append("image");e.attr("href",t.img),e.attr("width",c),e.attr("height",u),e.attr("preserveAspectRatio","none"),e.attr("transform",`translate(${-c/2},${f?x/2-u:-x/2})`)}return p.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${f?-u/2-d.height/2-O/2:u/2-d.height/2+O/2})`),k.attr("transform",`translate(0,${f?d.height/2+O/2:-d.height/2-O/2})`),JZe(t,S),t.intersect=function(e){if(ORe.info("iconSquare intersect",t,e),!t.label)return yGe.rect(t,e);const n=t.x??0,r=t.y??0,i=t.height??0;let o=[];o=f?[{x:n-d.width/2,y:r-i/2},{x:n+d.width/2,y:r-i/2},{x:n+d.width/2,y:r-i/2+d.height+O},{x:n+c/2,y:r-i/2+d.height+O},{x:n+c/2,y:r+i/2},{x:n-c/2,y:r+i/2},{x:n-c/2,y:r-i/2+d.height+O},{x:n-d.width/2,y:r-i/2+d.height+O}]:[{x:n-c/2,y:r-i/2},{x:n+c/2,y:r-i/2},{x:n+c/2,y:r-i/2+u},{x:n+d.width/2,y:r-i/2+u},{x:n+d.width/2/2,y:r+i/2},{x:n-d.width/2,y:r+i/2},{x:n-d.width/2,y:r-i/2+u},{x:n-c/2,y:r-i/2+u}];return yGe.polygon(t,o,e)},h}async function OHe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const i=t.padding??0,o=i,a="neo"===t.look?2*i:i,{shapeSvg:s,bbox:l}=await HZe(e,t,eGe(t)),c=Math.max(l.height+2*o,t.height??0),u=Math.max(l.width+2*a,(t.width??0)-c),h=[{x:0,y:0},{x:u,y:0},{x:u+3*c/6,y:-c},{x:-3*c/6,y:-c}];let d;const{cssStyles:p}=t;if("handDrawn"===t.look){const e=jZe(s),n=Vqe(t,{}),r=tGe(h),i=e.path(r,n);d=s.insert(()=>i,":first-child").attr("transform",`translate(${-u/2}, ${c/2})`),p&&d.attr("style",p)}else d=TGe(s,u,c,h);return r&&d.attr("style",r),t.width=u,t.height=c,JZe(t,d),t.intersect=function(e){return yGe.polygon(t,h,e)},s}async function AHe(e,t){const{shapeSvg:n,bbox:r,label:i}=await HZe(e,t,"label"),o=n.insert("rect",":first-child");return o.attr("width",.1).attr("height",.1),n.attr("class","label edgeLabel"),i.attr("transform",`translate(${-r.width/2-(r.x-(r.left??0))}, ${-r.height/2-(r.y-(r.top??0))})`),JZe(t,o),t.intersect=function(e){return yGe.rect(t,e)},n}async function yHe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const i=t.padding??0,o=i,a="neo"===t.look?2*i:i,{shapeSvg:s,bbox:l}=await HZe(e,t,eGe(t)),c=Math.max(l.height+o,t.height??0),u=Math.max(l.width+a,(t.width??0)-c),h=[{x:0,y:0},{x:u+3*c/6,y:0},{x:u,y:-c},{x:-3*c/6,y:-c}];let d;const{cssStyles:p}=t;if("handDrawn"===t.look){const e=jZe(s),n=Vqe(t,{}),r=tGe(h),i=e.path(r,n);d=s.insert(()=>i,":first-child").attr("transform",`translate(${-u/2}, ${c/2})`),p&&d.attr("style",p)}else d=TGe(s,u,c,h);return r&&d.attr("style",r),t.width=u,t.height=c,JZe(t,d),t.intersect=function(e){return yGe.polygon(t,h,e)},s}async function vHe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const i=t.padding??0,o=i,a="neo"===t.look?2*i:i,{shapeSvg:s,bbox:l}=await HZe(e,t,eGe(t)),c=Math.max(l.height+o,t.height??0),u=Math.max(l.width+a,(t.width??0)-c),h=[{x:-3*c/6,y:0},{x:u,y:0},{x:u+3*c/6,y:-c},{x:0,y:-c}];let d;const{cssStyles:p}=t;if("handDrawn"===t.look){const e=jZe(s),n=Vqe(t,{}),r=tGe(h),i=e.path(r,n);d=s.insert(()=>i,":first-child").attr("transform",`translate(${-u/2}, ${c/2})`),p&&d.attr("style",p)}else d=TGe(s,u,c,h);return r&&d.attr("style",r),t.width=u,t.height=c,JZe(t,d),t.intersect=function(e){return yGe.polygon(t,h,e)},s}function bHe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.label="",t.labelStyle=n;const i=e.insert("g").attr("class",eGe(t)).attr("id",t.domId??t.id),{cssStyles:o}=t,a=Math.max(35,(null==t?void 0:t.width)??0),s=Math.max(35,(null==t?void 0:t.height)??0),l=[{x:a,y:0},{x:0,y:s+3.5},{x:a-14,y:s+3.5},{x:0,y:2*s},{x:a,y:s-3.5},{x:14,y:s-3.5}],c=jZe(i),u=Vqe(t,{});"handDrawn"!==t.look&&(u.roughness=0,u.fillStyle="solid");const h=tGe(l),d=c.path(h,u),p=i.insert(()=>d,":first-child");return p.attr("class","outer-path"),o&&"handDrawn"!==t.look&&p.selectAll("path").attr("style",o),r&&"handDrawn"!==t.look&&p.selectAll("path").attr("style",r),p.attr("transform",`translate(-${a/2},${-s})`),JZe(t,p),t.intersect=function(e){ORe.info("lightningBolt intersect",t,e);return yGe.polygon(t,l,e)},i}hRe(uHe,"hexagon"),hRe(hHe,"hourglass"),hRe(dHe,"icon"),hRe(pHe,"iconCircle"),hRe(fHe,"iconRounded"),hRe(gHe,"iconSquare"),hRe(mHe,"imageSquare"),hRe(OHe,"inv_trapezoid"),hRe(AHe,"labelRect"),hRe(yHe,"lean_left"),hRe(vHe,"lean_right"),hRe(bHe,"lightningBolt");var xHe=hRe((e,t,n,r,i,o,a)=>[`M${e},${t+o}`,`a${i},${o} 0,0,0 ${n},0`,`a${i},${o} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${o} 0,0,0 ${n},0`,"l0,"+-r,`M${e},${t+o+a}`,`a${i},${o} 0,0,0 ${n},0`].join(" "),"createCylinderPathD"),wHe=hRe((e,t,n,r,i,o,a)=>[`M${e},${t+o}`,`M${e+n},${t+o}`,`a${i},${o} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${o} 0,0,0 ${n},0`,"l0,"+-r,`M${e},${t+o+a}`,`a${i},${o} 0,0,0 ${n},0`].join(" "),"createOuterCylinderPathD"),kHe=hRe((e,t,n,r,i,o)=>[`M${e-n/2},${-r/2}`,`a${i},${o} 0,0,0 ${n},0`].join(" "),"createInnerCylinderPathD");async function SHe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const i=t.padding??0,o="neo"===t.look?16:i,a="neo"===t.look?24:i;if(t.width||t.height){const e=t.width??0;t.width=(t.width??0)-o,t.width<10&&(t.width=10);const n=e/2/(2.5+e/50);t.height=(t.height??0)-a-3*n,t.height<10&&(t.height=10)}const{shapeSvg:s,bbox:l,label:c}=await HZe(e,t,eGe(t)),u=((null==t?void 0:t.width)?null==t?void 0:t.width:l.width)+2*o,h=u/2,d=h/(2.5+u/50),p=((null==t?void 0:t.height)?null==t?void 0:t.height:l.height)+d+2*a,f=.1*p;let g;const{cssStyles:m}=t;if("handDrawn"===t.look){const e=jZe(s),n=wHe(0,0,u,p,h,d,f),r=kHe(0,d,u,p,h,d),i=Vqe(t,{}),o=e.path(n,i),a=e.path(r,i);s.insert(()=>a,":first-child").attr("class","line"),g=s.insert(()=>o,":first-child"),g.attr("class","basic label-container"),m&&g.attr("style",m)}else{const e=xHe(0,0,u,p,h,d,f);g=s.insert("path",":first-child").attr("d",e).attr("class","basic label-container outer-path").attr("style",KWe(m)).attr("style",r)}return g.attr("label-offset-y",d),g.attr("transform",`translate(${-u/2}, ${-(p/2+d)})`),JZe(t,g),c.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-l.height/2+d-(l.y-(l.top??0))})`),t.intersect=function(e){const n=yGe.rect(t,e),r=n.x-(t.x??0);if(0!=h&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-d)){let i=d*d*(1-r*r/(h*h));i>0&&(i=Math.sqrt(i)),i=d-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},s}async function THe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const i=t.padding??0,o="neo"===t.look?16:i,a="neo"===t.look?12:i;if(t.width||t.height){const e=t.width;t.width=10*(e??0)/11-2*o,t.width<10&&(t.width=10),t.height=((null==t?void 0:t.height)??0)-2*a,t.height<10&&(t.height=10)}const{shapeSvg:s,bbox:l,label:c}=await HZe(e,t,eGe(t)),u=((null==t?void 0:t.width)?null==t?void 0:t.width:l.width)+2*(o??0),h=((null==t?void 0:t.height)?null==t?void 0:t.height:l.height)+2*(a??0),d="neo"===t.look?h/4:h/8,p=h+d,{cssStyles:f}=t,g=jZe(s),m=Vqe(t,{});"handDrawn"!==t.look&&(m.roughness=0,m.fillStyle="solid");const O=[{x:-u/2-u/2*.1,y:-p/2},{x:-u/2-u/2*.1,y:p/2},...nGe(-u/2-u/2*.1,p/2,u/2+u/2*.1,p/2,d,.8),{x:u/2+u/2*.1,y:-p/2},{x:-u/2-u/2*.1,y:-p/2},{x:-u/2,y:-p/2},{x:-u/2,y:p/2*1.1},{x:-u/2,y:-p/2}],A=g.polygon(O.map(e=>[e.x,e.y]),m),y=s.insert(()=>A,":first-child");return y.attr("class","basic label-container outer-path"),f&&"handDrawn"!==t.look&&y.selectAll("path").attr("style",f),r&&"handDrawn"!==t.look&&y.selectAll("path").attr("style",r),y.attr("transform",`translate(0,${-d/2})`),c.attr("transform",`translate(${-u/2+(t.padding??0)+u/2*.1/2-(l.x-(l.left??0))},${-h/2+(t.padding??0)-d/2-(l.y-(l.top??0))})`),JZe(t,y),t.intersect=function(e){return yGe.polygon(t,O,e)},s}async function $He(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const i=t.padding??0,o="neo"===t.look?16:i,a="neo"===t.look?12:i,s="neo"===t.look?10:5;(t.width||t.height)&&(t.width=Math.max(((null==t?void 0:t.width)??0)-2*o-2*s,10),t.height=Math.max(((null==t?void 0:t.height)??0)-2*a-2*s,10));const{shapeSvg:l,bbox:c,label:u}=await HZe(e,t,eGe(t)),h=((null==t?void 0:t.width)?null==t?void 0:t.width:c.width)+2*o+2*s-2*s,d=((null==t?void 0:t.height)?null==t?void 0:t.height:c.height)+2*a+2*s-2*s,p=-h/2,f=-d/2,{cssStyles:g}=t,m=jZe(l),O=Vqe(t,{}),A=[{x:p-s,y:f+s},{x:p-s,y:f+d+s},{x:p+h-s,y:f+d+s},{x:p+h-s,y:f+d},{x:p+h,y:f+d},{x:p+h,y:f+d-s},{x:p+h+s,y:f+d-s},{x:p+h+s,y:f-s},{x:p+s,y:f-s},{x:p+s,y:f},{x:p,y:f},{x:p,y:f+s}],y=[{x:p,y:f+s},{x:p+h-s,y:f+s},{x:p+h-s,y:f+d},{x:p+h,y:f+d},{x:p+h,y:f},{x:p,y:f}];"handDrawn"!==t.look&&(O.roughness=0,O.fillStyle="solid");const v=tGe(A);let b=m.path(v,O);const x=tGe(y);let w=m.path(x,O);"handDrawn"!==t.look&&(b=iGe(b),w=iGe(w));const k=l.insert("g",":first-child");return k.insert(()=>b),k.insert(()=>w),k.attr("class","basic label-container outer-path"),g&&"handDrawn"!==t.look&&k.selectAll("path").attr("style",g),r&&"handDrawn"!==t.look&&k.selectAll("path").attr("style",r),u.attr("transform",`translate(${-c.width/2-s-(c.x-(c.left??0))}, ${-c.height/2+s-(c.y-(c.top??0))})`),JZe(t,k),t.intersect=function(e){return yGe.polygon(t,A,e)},l}async function _He(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const{shapeSvg:i,bbox:o,label:a}=await HZe(e,t,eGe(t)),s=t.padding??0,l="neo"===t.look?16:s,c="neo"===t.look?12:s;let u=!0;(t.width||t.height)&&(u=!1,t.width=((null==t?void 0:t.width)??0)-2*l,t.height=((null==t?void 0:t.height)??0)-3*c);const h=Math.max(o.width,(null==t?void 0:t.width)??0)+2*l,d=Math.max(o.height,(null==t?void 0:t.height)??0)+3*c,p="neo"===t.look?d/4:d/8,f=d+(u?p/2:-p/2),g=-h/2,m=-f/2,O=10,{cssStyles:A}=t,y=nGe(g-O,m+f+O,g+h-O,m+f+O,p,.8),v=null==y?void 0:y[y.length-1],b=[{x:g-O,y:m+O},{x:g-O,y:m+f+O},...y,{x:g+h-O,y:v.y-O},{x:g+h,y:v.y-O},{x:g+h,y:v.y-20},{x:g+h+O,y:v.y-20},{x:g+h+O,y:m-O},{x:g+O,y:m-O},{x:g+O,y:m},{x:g,y:m},{x:g,y:m+O}],x=[{x:g,y:m+O},{x:g+h-O,y:m+O},{x:g+h-O,y:v.y-O},{x:g+h,y:v.y-O},{x:g+h,y:m},{x:g,y:m}],w=jZe(i),k=Vqe(t,{});"handDrawn"!==t.look&&(k.roughness=0,k.fillStyle="solid");const S=tGe(b),T=w.path(S,k),$=tGe(x),_=w.path($,k),C=i.insert(()=>T,":first-child");return C.insert(()=>_),C.attr("class","basic label-container outer-path"),A&&"handDrawn"!==t.look&&C.selectAll("path").attr("style",A),r&&"handDrawn"!==t.look&&C.selectAll("path").attr("style",r),C.attr("transform",`translate(0,${-p/2})`),a.attr("transform",`translate(${-o.width/2-O-(o.x-(o.left??0))}, ${-o.height/2+O-p/2-(o.y-(o.top??0))})`),JZe(t,C),t.intersect=function(e){return yGe.polygon(t,b,e)},i}async function CHe(e,t,{config:{themeVariables:n}}){const{labelStyles:r,nodeStyles:i}=qqe(t);t.labelStyle=r;t.useHtmlLabels||YBe(NBe())||(t.centerLabel=!0);const{shapeSvg:o,bbox:a,label:s}=await HZe(e,t,eGe(t)),l=Math.max(a.width+2*(t.padding??0),(null==t?void 0:t.width)??0),c=Math.max(a.height+2*(t.padding??0),(null==t?void 0:t.height)??0),u=-l/2,h=-c/2,{cssStyles:d}=t,p=jZe(o),f=Vqe(t,{fill:n.noteBkgColor,stroke:n.noteBorderColor});"handDrawn"!==t.look&&(f.roughness=0,f.fillStyle="solid");const g=p.rectangle(u,h,l,c,f),m=o.insert(()=>g,":first-child");return m.attr("class","basic label-container outer-path"),s.attr("class","label noteLabel"),d&&"handDrawn"!==t.look&&m.selectAll("path").attr("style",d),i&&"handDrawn"!==t.look&&m.selectAll("path").attr("style",i),s.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${-a.height/2-(a.y-(a.top??0))})`),JZe(t,m),t.intersect=function(e){return yGe.rect(t,e)},o}hRe(SHe,"linedCylinder"),hRe(THe,"linedWaveEdgedRect"),hRe($He,"multiRect"),hRe(_He,"multiWaveEdgedRectangle"),hRe(CHe,"note");var QHe=hRe((e,t,n)=>[`M${e+n/2},${t}`,`L${e+n},${t-n/2}`,`L${e+n/2},${t-n}`,`L${e},${t-n/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function PHe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const{shapeSvg:i,bbox:o}=await HZe(e,t,eGe(t)),a=o.width+(t.padding??0)+(o.height+(t.padding??0)),s=[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}];let l;const{cssStyles:c}=t;if("handDrawn"===t.look){const e=jZe(i),n=Vqe(t,{}),r=QHe(0,0,a),o=e.path(r,n);l=i.insert(()=>o,":first-child").attr("transform",`translate(${-a/2+.5}, ${a/2})`),c&&l.attr("style",c)}else l=TGe(i,a,a,s),l.attr("transform",`translate(${-a/2+.5}, ${a/2})`);return r&&l.attr("style",r),JZe(t,l),t.calcIntersect=function(e,t){const n=e.width,r=[{x:n/2,y:0},{x:n,y:-n/2},{x:n/2,y:-n},{x:0,y:-n/2}],i=yGe.polygon(e,r,t);return{x:i.x-.5,y:i.y-.5}},t.intersect=function(e){return this.calcIntersect(t,e)},i}async function EHe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const i=t.padding??0,o="neo"===t.look?21:i??0,a="neo"===t.look?12:i??0,{shapeSvg:s,bbox:l,label:c}=await HZe(e,t,eGe(t)),u=l.width+("neo"===t.look?2*o:o),h=Math.max(l.height+("neo"===t.look?2*a:a),t.height??0),d=h/4,p=-Math.max(u,(t.width??0)-d)/2,f=-h/2,g=f/2,m=[{x:p+g,y:f},{x:p,y:0},{x:p+g,y:-f},{x:-p,y:-f},{x:-p,y:f}],{cssStyles:O}=t,A=jZe(s),y=Vqe(t,{});"handDrawn"!==t.look&&(y.roughness=0,y.fillStyle="solid");const v=tGe(m),b=A.path(v,y),x=s.insert(()=>b,":first-child");return x.attr("class","basic label-container outer-path"),O&&"handDrawn"!==t.look&&x.selectAll("path").attr("style",O),r&&"handDrawn"!==t.look&&x.selectAll("path").attr("style",r),x.attr("transform",`translate(${-g/2},0)`),c.attr("transform",`translate(${-g/2-l.width/2-(l.x-(l.left??0))}, ${-l.height/2-(l.y-(l.top??0))})`),JZe(t,x),t.intersect=function(e){return yGe.polygon(t,m,e)},s}async function RHe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);let i;t.labelStyle=n,i=t.cssClasses?"node "+t.cssClasses:"node default";const o=e.insert("g").attr("class",i).attr("id",t.domId||t.id),a=o.insert("g"),s=o.insert("g").attr("class","label").attr("style",r),l=t.description,c=t.label,u=await lGe(s,c,t.labelStyle,!0,!0);let h={width:0,height:0};if(YBe(JIe())){const e=u.children[0],t=GDe(u);h=e.getBoundingClientRect(),t.attr("width",h.width),t.attr("height",h.height)}ORe.info("Text 2",l);const d=l||[],p=u.getBBox(),f=await lGe(s,Array.isArray(d)?d.join("<br/>"):d,t.labelStyle,!0,!0),g=f.children[0],m=GDe(f);h=g.getBoundingClientRect(),m.attr("width",h.width),m.attr("height",h.height);const O=(t.padding||0)/2;GDe(f).attr("transform","translate( "+(h.width>p.width?0:(p.width-h.width)/2)+", "+(p.height+O+5)+")"),GDe(u).attr("transform","translate( "+(h.width<p.width?0:-(p.width-h.width)/2)+", 0)"),h=s.node().getBBox(),s.attr("transform","translate("+-h.width/2+", "+(-h.height/2-O+3)+")");const A=h.width+(t.padding||0),y=h.height+(t.padding||0),v=-h.width/2-O,b=-h.height/2-O;let x,w;if("handDrawn"===t.look){const e=jZe(o),n=Vqe(t,{}),r=e.path(sGe(v,b,A,y,t.rx||0),n),i=e.line(-h.width/2-O,-h.height/2-O+p.height+O,h.width/2+O,-h.height/2-O+p.height+O,n);w=o.insert(()=>(ORe.debug("Rough node insert CXC",r),i),":first-child"),x=o.insert(()=>(ORe.debug("Rough node insert CXC",r),r),":first-child")}else x=a.insert("rect",":first-child"),w=a.insert("line"),x.attr("class","outer title-state").attr("style",r).attr("x",-h.width/2-O).attr("y",-h.height/2-O).attr("width",h.width+(t.padding||0)).attr("height",h.height+(t.padding||0)),w.attr("class","divider").attr("x1",-h.width/2-O).attr("x2",h.width/2+O).attr("y1",-h.height/2-O+p.height+O).attr("y2",-h.height/2-O+p.height+O);return JZe(t,x),t.intersect=function(e){return yGe.rect(t,e)},o}async function BHe(e,t,{config:{themeVariables:n}}){const r=(null==n?void 0:n.radius)??5;return eHe(e,t,{rx:r,ry:r,labelPaddingX:1*((null==t?void 0:t.padding)??0),labelPaddingY:1*((null==t?void 0:t.padding)??0)})}hRe(PHe,"question"),hRe(EHe,"rect_left_inv_arrow"),hRe(RHe,"rectWithTitle"),hRe(BHe,"roundedRect");async function IHe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const i="neo"===t.look?16:t.padding??0,o="neo"===t.look?12:t.padding??0,{shapeSvg:a,bbox:s,label:l}=await HZe(e,t,eGe(t)),c=((null==t?void 0:t.width)??s.width)+2*i+("neo"===t.look?8:16),u=((null==t?void 0:t.height)??s.height)+2*o,h=c-8,d=u,p=8-c/2,f=-u/2,{cssStyles:g}=t,m=jZe(a),O=Vqe(t,{});"handDrawn"!==t.look&&(O.roughness=0,O.fillStyle="solid");const A=[{x:p,y:f},{x:p+h,y:f},{x:p+h,y:f+d},{x:p-8,y:f+d},{x:p-8,y:f},{x:p,y:f},{x:p,y:f+d}],y=m.polygon(A.map(e=>[e.x,e.y]),O),v=a.insert(()=>y,":first-child");return v.attr("class","basic label-container outer-path").attr("style",KWe(g)),r&&"handDrawn"!==t.look&&v.selectAll("path").attr("style",r),g&&"handDrawn"!==t.look&&v.selectAll("path").attr("style",r),l.attr("transform",`translate(${4-s.width/2-(s.x-(s.left??0))}, ${-s.height/2-(s.y-(s.top??0))})`),JZe(t,v),t.intersect=function(e){return yGe.rect(t,e)},a}async function LHe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const i=t.padding??0,o="neo"===t.look?16:i,a="neo"===t.look?12:i;(t.width||t.height)&&(t.width=Math.max(((null==t?void 0:t.width)??0)-2*o,10),t.height=Math.max(((null==t?void 0:t.height)??0)/1.5-2*a,10));const{shapeSvg:s,bbox:l,label:c}=await HZe(e,t,eGe(t)),u=((null==t?void 0:t.width)?null==t?void 0:t.width:l.width)+2*o,h=1.5*(((null==t?void 0:t.height)?null==t?void 0:t.height:l.height)+2*a)/1.5,d=-u/2,p=-h/2,{cssStyles:f}=t,g=jZe(s),m=Vqe(t,{});"handDrawn"!==t.look&&(m.roughness=0,m.fillStyle="solid");const O=[{x:d,y:p},{x:d,y:p+h},{x:d+u,y:p+h},{x:d+u,y:p-h/2}],A=tGe(O),y=g.path(A,m),v=s.insert(()=>y,":first-child");return v.attr("class","basic label-container outer-path"),f&&"handDrawn"!==t.look&&v.selectChildren("path").attr("style",f),r&&"handDrawn"!==t.look&&v.selectChildren("path").attr("style",r),v.attr("transform",`translate(0, ${h/4})`),c.attr("transform",`translate(${-u/2+(t.padding??0)-(l.x-(l.left??0))}, ${-h/4+(t.padding??0)-(l.y-(l.top??0))})`),JZe(t,v),t.intersect=function(e){return yGe.polygon(t,O,e)},s}async function DHe(e,t){const n=t.padding??0,r="neo"===t.look?16:2*n,i="neo"===t.look?12:n;return eHe(e,t,{rx:0,ry:0,labelPaddingX:t.labelPaddingX??r,labelPaddingY:i})}async function MHe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const i=t.padding??0,o="neo"===t.look?20:i,a="neo"===t.look?12:i,{shapeSvg:s,bbox:l}=await HZe(e,t,eGe(t)),c=l.height+("neo"===t.look?2*a:a),u=l.width+c/4+("neo"===t.look?2*o:o),h=c/2,{cssStyles:d}=t,p=jZe(s),f=Vqe(t,{});"handDrawn"!==t.look&&(f.roughness=0,f.fillStyle="solid");const g=[{x:-u/2+h,y:-c/2},{x:u/2-h,y:-c/2},...rGe(-u/2+h,0,h,50,90,270),{x:u/2-h,y:c/2},...rGe(u/2-h,0,h,50,270,450)],m=tGe(g),O=p.path(m,f),A=s.insert(()=>O,":first-child");return A.attr("class","basic label-container outer-path"),d&&"handDrawn"!==t.look&&A.selectChildren("path").attr("style",d),r&&"handDrawn"!==t.look&&A.selectChildren("path").attr("style",r),JZe(t,A),t.intersect=function(e){return yGe.polygon(t,g,e)},s}async function NHe(e,t){return eHe(e,t,{rx:"neo"===t.look?3:5,ry:"neo"===t.look?3:5})}function XHe(e,t,{config:{themeVariables:n}}){var r,i;const{labelStyles:o,nodeStyles:a}=qqe(t);t.labelStyle=o;const{cssStyles:s}=t,{lineColor:l,stateBorder:c,nodeBorder:u,nodeShadow:h}=n;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);const d=e.insert("g").attr("class","node default").attr("id",t.domId??t.id),p=jZe(d),f=Vqe(t,{});"handDrawn"!==t.look&&(f.roughness=0,f.fillStyle="solid");const g=p.circle(0,0,t.width,{...f,stroke:l,strokeWidth:2}),m=c??u,O=5*(t.width??0)/14,A=p.circle(0,0,O,{...f,fill:m,stroke:m,strokeWidth:2,fillStyle:"solid"}),y=d.insert(()=>g,":first-child");if(y.insert(()=>A),"handDrawn"!==t.look&&y.attr("class","outer-path"),s&&y.selectAll("path").attr("style",s),a&&y.selectAll("path").attr("style",a),t.width<25&&h&&"handDrawn"!==t.look){const t=(null==(i=null==(r=e.node())?void 0:r.ownerSVGElement)?void 0:i.id)??"",n=t?`${t}-drop-shadow-small`:"drop-shadow-small";y.attr("style",`filter:url(#${n})`)}return JZe(t,y),t.intersect=function(e){return yGe.circle(t,(t.width??0)/2,e)},d}function FHe(e,t,{config:{themeVariables:n}}){var r,i;const{lineColor:o,nodeShadow:a}=n;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);const s=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let l;if("handDrawn"===t.look){const e=jZe(s).circle(0,0,t.width,Nqe(o));l=s.insert(()=>e),l.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14)}else l=s.insert("circle",":first-child"),l.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14);if(t.width<25&&a&&"handDrawn"!==t.look){const t=(null==(i=null==(r=e.node())?void 0:r.ownerSVGElement)?void 0:i.id)??"",n=t?`${t}-drop-shadow-small`:"drop-shadow-small";l.attr("style",`filter:url(#${n})`)}return JZe(t,l),t.intersect=function(e){return yGe.circle(t,(t.width??7)/2,e)},s}hRe(IHe,"shadedProcess"),hRe(LHe,"slopedRect"),hRe(DHe,"squareRect"),hRe(MHe,"stadium"),hRe(NHe,"state"),hRe(XHe,"stateEnd"),hRe(FHe,"stateStart");async function UHe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const i=(null==t?void 0:t.padding)??8,o="neo"===t.look?28:i,a="neo"===t.look?12:i,{shapeSvg:s,bbox:l}=await HZe(e,t,eGe(t)),c=Math.max(l.width+16+o,t.width??0),u=Math.max(l.height+a,t.height??0),h=c-16,d=u,p=-c/2,f=-u/2,g=[{x:0,y:0},{x:h,y:0},{x:h,y:-d},{x:0,y:-d},{x:0,y:0},{x:-8,y:0},{x:h+8,y:0},{x:h+8,y:-d},{x:-8,y:-d},{x:-8,y:0}];if("handDrawn"===t.look){const e=jZe(s),n=Vqe(t,{}),r=e.rectangle(p,f,h+16,d,n),i=e.line(p+8,f,p+8,f+d,n),o=e.line(p+8+h,f,p+8+h,f+d,n);s.insert(()=>i,":first-child"),s.insert(()=>o,":first-child");const a=s.insert(()=>r,":first-child"),{cssStyles:l}=t;a.attr("class","basic label-container").attr("style",KWe(l)),JZe(t,a)}else{const e=TGe(s,h,d,g);r&&e.attr("style",r),JZe(t,e)}return t.intersect=function(e){return yGe.polygon(t,g,e)},s}hRe(UHe,"subroutine");async function zHe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const i=t.padding??0,o="neo"===t.look?16:i,a="neo"===t.look?12:i;(t.width||t.height)&&(t.height=Math.max(((null==t?void 0:t.height)??0)-2*a,10),t.width=Math.max(((null==t?void 0:t.width)??0)-2*o-.2*(t.height+2*a),10));const{shapeSvg:s,bbox:l}=await HZe(e,t,eGe(t)),c=((null==t?void 0:t.height)?null==t?void 0:t.height:l.height)+2*a,u=.2*c,h=.2*c,d=((null==t?void 0:t.width)?null==t?void 0:t.width:l.width)+2*o+u-u,p=c,f=-d/2,g=-p/2,{cssStyles:m}=t,O=jZe(s),A=Vqe(t,{}),y=[{x:f-u/2,y:g},{x:f+d+u/2,y:g},{x:f+d+u/2,y:g+p},{x:f-u/2,y:g+p}],v=[{x:f+d-u/2,y:g+p},{x:f+d+u/2,y:g+p},{x:f+d+u/2,y:g+p-h}];"handDrawn"!==t.look&&(A.roughness=0,A.fillStyle="solid");const b=tGe(y),x=O.path(b,A),w=tGe(v),k=O.path(w,{...A,fillStyle:"solid"}),S=s.insert(()=>k,":first-child");return S.insert(()=>x,":first-child"),S.attr("class","basic label-container outer-path"),m&&"handDrawn"!==t.look&&S.selectAll("path").attr("style",m),r&&"handDrawn"!==t.look&&S.selectAll("path").attr("style",r),JZe(t,S),t.intersect=function(e){return yGe.polygon(t,y,e)},s}async function qHe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const{shapeSvg:i,bbox:o,label:a}=await HZe(e,t,eGe(t)),s=Math.max(o.width+2*(t.padding??0),(null==t?void 0:t.width)??0),l=Math.max(o.height+2*(t.padding??0),(null==t?void 0:t.height)??0),c=l/8,u=.2*s,h=.2*l,d=l+c,{cssStyles:p}=t,f=jZe(i),g=Vqe(t,{});"handDrawn"!==t.look&&(g.roughness=0,g.fillStyle="solid");const m=[{x:-s/2-s/2*.1,y:d/2},...nGe(-s/2-s/2*.1,d/2,s/2+s/2*.1,d/2,c,.8),{x:s/2+s/2*.1,y:-d/2},{x:-s/2-s/2*.1,y:-d/2}],O=-s/2+s/2*.1,A=-d/2-.4*h,y=[{x:O+s-u,y:1.3*(A+l)},{x:O+s,y:A+l-h},{x:O+s,y:.9*(A+l)},...nGe(O+s,1.25*(A+l),O+s-u,1.3*(A+l),.02*-l,.5)],v=tGe(m),b=f.path(v,g),x=tGe(y),w=f.path(x,{...g,fillStyle:"solid"}),k=i.insert(()=>w,":first-child");return k.insert(()=>b,":first-child"),k.attr("class","basic label-container outer-path"),p&&"handDrawn"!==t.look&&k.selectAll("path").attr("style",p),r&&"handDrawn"!==t.look&&k.selectAll("path").attr("style",r),k.attr("transform",`translate(0,${-c/2})`),a.attr("transform",`translate(${-s/2+(t.padding??0)-(o.x-(o.left??0))},${-l/2+(t.padding??0)-c/2-(o.y-(o.top??0))})`),JZe(t,k),t.intersect=function(e){return yGe.polygon(t,m,e)},i}async function VHe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const{shapeSvg:i,bbox:o}=await HZe(e,t,eGe(t)),a=Math.max(o.width+(t.padding??0),(null==t?void 0:t.width)||0),s=Math.max(o.height+(t.padding??0),(null==t?void 0:t.height)||0),l=-a/2,c=-s/2,u=i.insert("rect",":first-child");return u.attr("class","text").attr("style",r).attr("rx",0).attr("ry",0).attr("x",l).attr("y",c).attr("width",a).attr("height",s),JZe(t,u),t.intersect=function(e){return yGe.rect(t,e)},i}hRe(zHe,"taggedRect"),hRe(qHe,"taggedWaveEdgedRectangle"),hRe(VHe,"text");var WHe=hRe((e,t,n,r,i,o)=>`M${e},${t}\n a${i},${o} 0,0,1 0,${-r}\n l${n},0\n a${i},${o} 0,0,1 0,${r}\n M${n},${-r}\n a${i},${o} 0,0,0 0,${r}\n l${-n},0`,"createCylinderPathD"),jHe=hRe((e,t,n,r,i,o)=>[`M${e},${t}`,`M${e+n},${t}`,`a${i},${o} 0,0,0 0,${-r}`,`l${-n},0`,`a${i},${o} 0,0,0 0,${r}`,`l${n},0`].join(" "),"createOuterCylinderPathD"),YHe=hRe((e,t,n,r,i,o)=>[`M${e+n/2},${-r/2}`,`a${i},${o} 0,0,0 0,${r}`].join(" "),"createInnerCylinderPathD");async function ZHe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const i=t.padding??0,o="neo"===t.look?12:i/2,a=t.height??0;if(t.height&&(t.height=t.height-o,t.height<5&&(t.height=5)),t.width){const e=a/2/(2.5+a/50);t.width=t.width-o-3*e,t.width<10&&(t.width=10)}const{shapeSvg:s,bbox:l,label:c}=await HZe(e,t,eGe(t)),u=Math.max(t.height??0,l.height)+o,h=u/2,d=h/(2.5+u/50),p=Math.max(t.width??0,l.width)+d+o,{cssStyles:f}=t;let g;if("handDrawn"===t.look){const e=jZe(s),n=jHe(0,0,p,u,d,h),r=YHe(0,0,p,u,d,h),i=e.path(n,Vqe(t,{})),o=e.path(r,Vqe(t,{fill:"none"}));g=s.insert(()=>o,":first-child"),g=s.insert(()=>i,":first-child"),g.attr("class","basic label-container"),f&&g.attr("style",f)}else{const e=WHe(0,0,p,u,d,h);g=s.insert("path",":first-child").attr("d",e).attr("class","basic label-container").attr("style",KWe(f)).attr("style",r),g.attr("class","basic label-container outer-path"),f&&g.selectAll("path").attr("style",f),r&&g.selectAll("path").attr("style",r)}return g.attr("label-offset-x",d),g.attr("transform",`translate(${-p/2}, ${u/2} )`),c.attr("transform",`translate(${-l.width/2-d-(l.x-(l.left??0))}, ${-l.height/2-(l.y-(l.top??0))})`),JZe(t,g),t.intersect=function(e){const n=yGe.rect(t,e),r=n.y-(t.y??0);if(0!=h&&(Math.abs(r)<(t.height??0)/2||Math.abs(r)==(t.height??0)/2&&Math.abs(n.x-(t.x??0))>(t.width??0)/2-d)){let i=d*d*(1-r*r/(h*h));0!=i&&(i=Math.sqrt(Math.abs(i))),i=d-i,e.x-(t.x??0)>0&&(i=-i),n.x+=i}return n},s}async function GHe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const i=t.padding??0,o=(t.look,i),a="neo"===t.look?2*i:i,{shapeSvg:s,bbox:l}=await HZe(e,t,eGe(t)),c=Math.max(l.height+o,t.height??0),u=Math.max(l.width+a,(t.width??0)-c),h=[{x:-3*c/6,y:0},{x:u+3*c/6,y:0},{x:u,y:-c},{x:0,y:-c}];let d;const{cssStyles:p}=t;if("handDrawn"===t.look){const e=jZe(s),n=Vqe(t,{}),r=tGe(h),i=e.path(r,n);d=s.insert(()=>i,":first-child").attr("transform",`translate(${-u/2}, ${c/2})`),p&&d.attr("style",p)}else d=TGe(s,u,c,h);return r&&d.attr("style",r),t.width=u,t.height=c,JZe(t,d),t.intersect=function(e){return yGe.polygon(t,h,e)},s}async function HHe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const i=t.padding??0,o="neo"===t.look?16:i,a="neo"===t.look?12:i;(t.width||t.height)&&(t.height=(t.height??0)-2*a,t.height<5&&(t.height=5),t.width=(t.width??0)-2*o,t.width<15&&(t.width=15));const{shapeSvg:s,bbox:l}=await HZe(e,t,eGe(t)),c=((null==t?void 0:t.width)?null==t?void 0:t.width:l.width)+2*o,u=((null==t?void 0:t.height)?null==t?void 0:t.height:l.height)+2*a,{cssStyles:h}=t,d=jZe(s),p=Vqe(t,{});"handDrawn"!==t.look&&(p.roughness=0,p.fillStyle="solid");const f=[{x:-c/2*.8,y:-u/2},{x:c/2*.8,y:-u/2},{x:c/2,y:-u/2*.6},{x:c/2,y:u/2},{x:-c/2,y:u/2},{x:-c/2,y:-u/2*.6}],g=tGe(f),m=d.path(g,p),O=s.insert(()=>m,":first-child");return O.attr("class","basic label-container outer-path"),h&&"handDrawn"!==t.look&&O.selectChildren("path").attr("style",h),r&&"handDrawn"!==t.look&&O.selectChildren("path").attr("style",r),JZe(t,O),t.intersect=function(e){return yGe.polygon(t,f,e)},s}hRe(ZHe,"tiltedCylinder"),hRe(GHe,"trapezoid"),hRe(HHe,"trapezoidalPentagon");async function KHe(e,t){var n;const{labelStyles:r,nodeStyles:i}=qqe(t);t.labelStyle=r;const o=t.padding??0,a="neo"===t.look?2*o:o;(t.width||t.height)&&(t.width=(((null==t?void 0:t.width)??0)-a)/2,t.width<10&&(t.width=10),t.height=(null==t?void 0:t.height)??0,t.height<10&&(t.height=10));const{shapeSvg:s,bbox:l,label:c}=await HZe(e,t,eGe(t)),u=CBe(null==(n=JIe().flowchart)?void 0:n.htmlLabels),h=((null==t?void 0:t.width)?null==t?void 0:t.width:l.width)+a,d=(null==t?void 0:t.height)?null==t?void 0:t.height:h+l.height,p=[{x:0,y:0},{x:d,y:0},{x:d/2,y:-d}],{cssStyles:f}=t,g=jZe(s),m=Vqe(t,{});"handDrawn"!==t.look&&(m.roughness=0,m.fillStyle="solid");const O=tGe(p),A=g.path(O,m),y=s.insert(()=>A,":first-child").attr("transform",`translate(${-d/2}, ${d/2})`).attr("class","outer-path");return f&&"handDrawn"!==t.look&&y.selectChildren("path").attr("style",f),i&&"handDrawn"!==t.look&&y.selectChildren("path").attr("style",i),t.width=h,t.height=d,JZe(t,y),c.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${d/2-(l.height+(t.padding??0)/(u?2:1)-(l.y-(l.top??0)))})`),t.intersect=function(e){return ORe.info("Triangle intersect",t,p,e),yGe.polygon(t,p,e)},s}async function JHe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const i=t.padding??0,o="neo"===t.look?16:i,a="neo"===t.look?12:i;let s=!0;(t.width||t.height)&&(s=!1,t.width=((null==t?void 0:t.width)??0)-2*o,t.width<10&&(t.width=10),t.height=((null==t?void 0:t.height)??0)-2*a,t.height<10&&(t.height=10));const{shapeSvg:l,bbox:c,label:u}=await HZe(e,t,eGe(t)),h=((null==t?void 0:t.width)?null==t?void 0:t.width:c.width)+2*(o??0),d=((null==t?void 0:t.height)?null==t?void 0:t.height:c.height)+2*(a??0),p="neo"===t.look?d/4:d/8,f=d+(s?p:-p),{cssStyles:g}=t,m=14-h,O=m>0?m/2:0,A=jZe(l),y=Vqe(t,{});"handDrawn"!==t.look&&(y.roughness=0,y.fillStyle="solid");const v=[{x:-h/2-O,y:f/2},...nGe(-h/2-O,f/2,h/2+O,f/2,p,.8),{x:h/2+O,y:-f/2},{x:-h/2-O,y:-f/2}],b=tGe(v),x=A.path(b,y),w=l.insert(()=>x,":first-child");return w.attr("class","basic label-container outer-path"),g&&"handDrawn"!==t.look&&w.selectAll("path").attr("style",g),r&&"handDrawn"!==t.look&&w.selectAll("path").attr("style",r),w.attr("transform",`translate(0,${-p/2})`),u.attr("transform",`translate(${-h/2+(t.padding??0)-(c.x-(c.left??0))},${-d/2+(t.padding??0)-p-(c.y-(c.top??0))})`),JZe(t,w),t.intersect=function(e){return yGe.polygon(t,v,e)},l}async function eKe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const i=t.padding??0,o="neo"===t.look?16:i,a="neo"===t.look?20:i;if(t.width||t.height){t.width=(null==t?void 0:t.width)??0,t.width<20&&(t.width=20),t.height=(null==t?void 0:t.height)??0,t.height<10&&(t.height=10);const e=Math.min(.2*t.height,t.height/4);t.height=Math.ceil(t.height-a-e*(20/9)),t.width=t.width-2*o}const{shapeSvg:s,bbox:l}=await HZe(e,t,eGe(t)),c=((null==t?void 0:t.width)?null==t?void 0:t.width:l.width)+2*o,u=((null==t?void 0:t.height)?null==t?void 0:t.height:l.height)+a,h=u/8,d=u+2*h,{cssStyles:p}=t,f=jZe(s),g=Vqe(t,{});"handDrawn"!==t.look&&(g.roughness=0,g.fillStyle="solid");const m=[{x:-c/2,y:d/2},...nGe(-c/2,d/2,c/2,d/2,h,1),{x:c/2,y:-d/2},...nGe(c/2,-d/2,-c/2,-d/2,h,-1)],O=tGe(m),A=f.path(O,g),y=s.insert(()=>A,":first-child");return y.attr("class","basic label-container"),p&&"handDrawn"!==t.look&&y.selectAll("path").attr("style",p),r&&"handDrawn"!==t.look&&y.selectAll("path").attr("style",r),JZe(t,y),t.intersect=function(e){return yGe.polygon(t,m,e)},s}hRe(KHe,"triangle"),hRe(JHe,"waveEdgedRectangle"),hRe(eKe,"waveRectangle");var tKe=10;async function nKe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const i="neo"===t.look?16:t.padding??0,o="neo"===t.look?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max(((null==t?void 0:t.width)??0)-2*i-tKe,10),t.height=Math.max(((null==t?void 0:t.height)??0)-2*o-tKe,10));const{shapeSvg:a,bbox:s,label:l}=await HZe(e,t,eGe(t)),c=((null==t?void 0:t.width)?null==t?void 0:t.width:s.width)+2*i+tKe,u=((null==t?void 0:t.height)?null==t?void 0:t.height:s.height)+2*o+tKe,h=c-tKe,d=u-tKe,p=-h/2,f=-d/2,{cssStyles:g}=t,m=jZe(a),O=Vqe(t,{}),A=[{x:p-tKe,y:f-tKe},{x:p-tKe,y:f+d},{x:p+h,y:f+d},{x:p+h,y:f-tKe}],y=`M${p-tKe},${f-tKe} L${p+h},${f-tKe} L${p+h},${f+d} L${p-tKe},${f+d} L${p-tKe},${f-tKe}\n M${p-tKe},${f} L${p+h},${f}\n M${p},${f-tKe} L${p},${f+d}`;"handDrawn"!==t.look&&(O.roughness=0,O.fillStyle="solid");const v=m.path(y,O),b=a.insert(()=>v,":first-child");return b.attr("transform","translate(5, 5)"),b.attr("class","basic label-container outer-path"),g&&"handDrawn"!==t.look&&b.selectAll("path").attr("style",g),r&&"handDrawn"!==t.look&&b.selectAll("path").attr("style",r),l.attr("transform",`translate(${-s.width/2+5-(s.x-(s.left??0))}, ${-s.height/2+5-(s.y-(s.top??0))})`),JZe(t,b),t.intersect=function(e){return yGe.polygon(t,A,e)},a}hRe(nKe,"windowPane");var rKe=new Set(["redux-color","redux-dark-color"]),iKe=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function oKe(e,t){var n,r,i,o;const a=t;a.alias&&(t.label=a.alias);const{theme:s,themeVariables:l}=NBe(),{rowEven:c,rowOdd:u,nodeBorder:h,borderColorArray:d}=l;if("handDrawn"===t.look){const{themeVariables:n}=NBe(),{background:r}=n,i={...t,id:t.id+"-background",domId:(t.domId||t.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${r}`]};await oKe(e,i)}const p=NBe();t.useHtmlLabels=p.htmlLabels;let f=(null==(n=p.er)?void 0:n.diagramPadding)??10,g=(null==(r=p.er)?void 0:r.entityPadding)??6;const{cssStyles:m}=t,{labelStyles:O,nodeStyles:A}=qqe(t);if(0===a.attributes.length&&t.label){const n={rx:0,ry:0,labelPaddingX:f,labelPaddingY:1.5*f};NWe(t.label,p)+2*n.labelPaddingX<p.er.minEntityWidth&&(t.width=p.er.minEntityWidth);const r=await eHe(e,t,n);if(null!=s&&rKe.has(s)){const e=a.colorIndex??0;r.attr("data-color-id","color-"+e%d.length)}if(!CBe(p.htmlLabels)){const e=r.select("text"),t=null==(i=e.node())?void 0:i.getBBox();e.attr("transform",`translate(${-t.width/2}, 0)`)}return r}p.htmlLabels||(f*=1.25,g*=1.25);let y=eGe(t);y||(y="node default");const v=e.insert("g").attr("class",y).attr("id",t.domId||t.id),b=await aKe(v,t.label??"",p,0,0,["name"],O);b.height+=g;let x=0;const w=[],k=[];let S=0,T=0,$=0,_=0,C=!0,Q=!0;for(const W of a.attributes){const e=await aKe(v,W.type,p,0,x,["attribute-type"],O);S=Math.max(S,e.width+f);const t=await aKe(v,W.name,p,0,x,["attribute-name"],O);T=Math.max(T,t.width+f);const n=await aKe(v,W.keys.join(),p,0,x,["attribute-keys"],O);$=Math.max($,n.width+f);const r=await aKe(v,W.comment,p,0,x,["attribute-comment"],O);_=Math.max(_,r.width+f);const i=Math.max(e.height,t.height,n.height,r.height)+g;k.push({yOffset:x,rowHeight:i}),x+=i}let P=4;$<=f&&(C=!1,$=0,P--),_<=f&&(Q=!1,_=0,P--);const E=v.node().getBBox();if(b.width+2*f-(S+T+$+_)>0){const e=b.width+2*f-(S+T+$+_);S+=e/P,T+=e/P,$>0&&($+=e/P),_>0&&(_+=e/P)}const R=S+T+$+_,B=jZe(v),I=Vqe(t,{});"handDrawn"!==t.look&&(I.roughness=0,I.fillStyle="solid");let L=0;k.length>0&&(L=k.reduce((e,t)=>e+((null==t?void 0:t.rowHeight)??0),0));const D=Math.max(E.width+2*f,(null==t?void 0:t.width)||0,R),M=Math.max((L??0)+b.height,(null==t?void 0:t.height)||0),N=-D/2,X=-M/2;if(v.selectAll("g:not(:first-child)").each((e,t,n)=>{const r=GDe(n[t]),i=r.attr("transform");let o=0,a=0;if(i){const e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i);e&&(o=parseFloat(e[1]),a=parseFloat(e[2]),r.attr("class").includes("attribute-name")?o+=S:r.attr("class").includes("attribute-keys")?o+=S+T:r.attr("class").includes("attribute-comment")&&(o+=S+T+$))}r.attr("transform",`translate(${N+f/2+o}, ${a+X+b.height+g/2})`)}),v.select(".name").attr("transform","translate("+-b.width/2+", "+(X+g/2)+")"),null!=s&&rKe.has(s)){const e=a.colorIndex??0;v.attr("data-color-id","color-"+e%d.length)}const F=B.rectangle(N,X,D,M,I),U=v.insert(()=>F,":first-child").attr("class","outer-path").attr("style",m.join(""));w.push(0);for(const[W,j]of k.entries()){const e=(W+1)%2==0&&0!==j.yOffset,t=B.rectangle(N,b.height+X+(null==j?void 0:j.yOffset),D,null==j?void 0:j.rowHeight,{...I,fill:e?c:u,stroke:h});v.insert(()=>t,"g.label").attr("style",m.join("")).attr("class","row-rect-"+(e?"even":"odd"))}const z=1e-4;let q=sKe(N,b.height+X,D+N,b.height+X,z),V=B.polygon(q.map(e=>[e.x,e.y]),I);if(v.insert(()=>V).attr("class","divider"),q=sKe(S+N,b.height+X,S+N,M+X,z),V=B.polygon(q.map(e=>[e.x,e.y]),I),v.insert(()=>V).attr("class","divider"),C){const e=S+T+N;q=sKe(e,b.height+X,e,M+X,z),V=B.polygon(q.map(e=>[e.x,e.y]),I),v.insert(()=>V).attr("class","divider")}if(Q){const e=S+T+$+N;q=sKe(e,b.height+X,e,M+X,z),V=B.polygon(q.map(e=>[e.x,e.y]),I),v.insert(()=>V).attr("class","divider")}for(const W of w){const e=b.height+X+W;q=sKe(N,e,D+N,e,z),V=B.polygon(q.map(e=>[e.x,e.y]),I),v.insert(()=>V).attr("class","divider")}if(JZe(t,U),A&&"handDrawn"!==t.look)if(null!=s&&iKe.has(s))v.selectAll("path").attr("style",A);else{const e=A.split(";"),t=null==(o=null==e?void 0:e.filter(e=>e.includes("stroke")))?void 0:o.map(e=>`${e}`).join("; ");v.selectAll("path").attr("style",t??""),v.selectAll(".row-rect-even path").attr("style",A)}return t.intersect=function(e){return yGe.rect(t,e)},v}async function aKe(e,t,n,r=0,i=0,o=[],a=""){const s=e.insert("g").attr("class",`label ${o.join(" ")}`).attr("transform",`translate(${r}, ${i})`).attr("style",a);t!==yIe(t)&&(t=(t=yIe(t)).replaceAll("<","<").replaceAll(">",">"));const l=s.node().appendChild(await jYe(s,t,{width:NWe(t,n)+100,style:a,useHtmlLabels:n.htmlLabels},n));if(t.includes("<")||t.includes(">")){let e=l.children[0];for(e.textContent=e.textContent.replaceAll("<","<").replaceAll(">",">");e.childNodes[0];)e=e.childNodes[0],e.textContent=e.textContent.replaceAll("<","<").replaceAll(">",">")}let c=l.getBBox();if(CBe(n.htmlLabels)){const e=l.children[0];e.style.textAlign="start";const t=GDe(l);c=e.getBoundingClientRect(),t.attr("width",c.width),t.attr("height",c.height)}return c}function sKe(e,t,n,r,i){return e===n?[{x:e-i/2,y:t},{x:e+i/2,y:t},{x:n+i/2,y:r},{x:n-i/2,y:r}]:[{x:e,y:t-i/2},{x:e,y:t+i/2},{x:n,y:r+i/2},{x:n,y:r-i/2}]}async function lKe(e,t,n,r,i=n.class.padding??12){const o=r?0:3,a=e.insert("g").attr("class",eGe(t)).attr("id",t.domId||t.id);let s=null,l=null,c=null,u=null,h=0,d=0,p=0;if(s=a.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const e=t.annotations[0];await cKe(s,{text:`«${e}»`},0);h=s.node().getBBox().height}l=a.insert("g").attr("class","label-group text"),await cKe(l,t,0,["font-weight: bolder"]);const f=l.node().getBBox();d=f.height,c=a.insert("g").attr("class","members-group text");let g=0;for(const A of t.members){g+=await cKe(c,A,g,[A.parseClassifier()])+o}p=c.node().getBBox().height,p<=0&&(p=i/2),u=a.insert("g").attr("class","methods-group text");let m=0;for(const A of t.methods){m+=await cKe(u,A,m,[A.parseClassifier()])+o}let O=a.node().getBBox();if(null!==s){const e=s.node().getBBox();s.attr("transform",`translate(${-e.width/2})`)}return l.attr("transform",`translate(${-f.width/2}, ${h})`),O=a.node().getBBox(),c.attr("transform",`translate(0, ${h+d+2*i})`),O=a.node().getBBox(),u.attr("transform",`translate(0, ${h+d+(p?p+4*i:2*i)})`),O=a.node().getBBox(),{shapeSvg:a,bbox:O}}async function cKe(e,t,n,r=[]){const i=e.insert("g").attr("class","label").attr("style",r.join("; ")),o=NBe();let a="useHtmlLabels"in t?t.useHtmlLabels:CBe(o.htmlLabels)??!0,s="";s="text"in t?t.text:t.label,!a&&s.startsWith("\\")&&(s=s.substring(1)),SIe(s)&&(a=!0);const l=await jYe(i,nLe(GWe(s)),{width:NWe(s,o)+50,classes:"markdown-node-label",useHtmlLabels:a},o);let c,u=1;if(a){const e=l.children[0],t=GDe(l);u=e.innerHTML.split("<br>").length,e.innerHTML.includes("</math>")&&(u+=e.innerHTML.split("<mrow>").length-1),await YZe(e),c=e.getBoundingClientRect(),t.attr("width",c.width),t.attr("height",c.height)}else{r.includes("font-weight: bolder")&&GDe(l).selectAll("tspan").attr("font-weight",""),u=l.children.length;const e=l.children[0];if(""===l.textContent||l.textContent.includes(">")){e.textContent=s[0]+s.substring(1).replaceAll(">",">").replaceAll("<","<").trim();" "===s[1]&&(e.textContent=e.textContent[0]+" "+e.textContent.substring(1))}"undefined"===e.textContent&&(e.textContent=""),c=l.getBBox()}return i.attr("transform","translate(0,"+(-c.height/(2*u)+n)+")"),c.height}async function uKe(e,t){var n,r;const i=JIe(),{themeVariables:o}=i,{useGradient:a}=o,s=i.class.padding??12,l=s,c=t.useHtmlLabels??CBe(i.htmlLabels)??!0,u=t;u.annotations=u.annotations??[],u.members=u.members??[],u.methods=u.methods??[];const{shapeSvg:h,bbox:d}=await lKe(e,t,i,c,l),{labelStyles:p,nodeStyles:f}=qqe(t);t.labelStyle=p,t.cssStyles=u.styles||"";const g=(null==(n=u.styles)?void 0:n.join(";"))||f||"";t.cssStyles||(t.cssStyles=g.replaceAll("!important","").split(";"));const m=0===u.members.length&&0===u.methods.length&&!(null==(r=i.class)?void 0:r.hideEmptyMembersBox),O=jZe(h),A=Vqe(t,{});"handDrawn"!==t.look&&(A.roughness=0,A.fillStyle="solid");const y=Math.max(t.width??0,d.width);let v=Math.max(t.height??0,d.height);const b=(t.height??0)>d.height;0===u.members.length&&0===u.methods.length?v+=l:u.members.length>0&&0===u.methods.length&&(v+=2*l);const x=-y/2,w=-v/2;let k=m?2*s:0===u.members.length&&0===u.methods.length?-s:0;b&&(k=2*s);const S=O.rectangle(x-s,w-s-(m?s:0===u.members.length&&0===u.methods.length?-s/2:0),y+2*s,v+2*s+k,A),T=h.insert(()=>S,":first-child");T.attr("class","basic label-container outer-path");const $=T.node().getBBox(),_=h.select(".annotation-group").node().getBBox().height-(m?s/2:0)||0,C=h.select(".label-group").node().getBBox().height-(m?s/2:0)||0,Q=h.select(".members-group").node().getBBox().height-(m?s/2:0)||0,P=(_+C+w+s-(w-s-(m?s:0===u.members.length&&0===u.methods.length?-s/2:0)))/2;if(h.selectAll(".text").each((e,t,n)=>{var r,o;const a=GDe(n[t]),d=a.attr("transform");let p=0;if(d){const e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(d);e&&(p=parseFloat(e[2]))}let f=p+w+s-(m?s:0===u.members.length&&0===u.methods.length?-s/2:0);if(a.attr("class").includes("methods-group")){const e=Math.max(Q,l/2);f=b?Math.max(P,_+C+e+w+2*l+s)+2*l:_+C+e+w+4*l+s}0===u.members.length&&0===u.methods.length&&(null==(r=i.class)?void 0:r.hideEmptyMembersBox)&&(f=u.annotations.length>0?p-l:p),c||(f-=4);let g=x;(a.attr("class").includes("label-group")||a.attr("class").includes("annotation-group"))&&(g=-(null==(o=a.node())?void 0:o.getBBox().width)/2||0,h.selectAll("text").each(function(e,t,n){"middle"===window.getComputedStyle(n[t]).textAnchor&&(g=0)})),a.attr("transform",`translate(${g}, ${f})`)}),u.members.length>0||u.methods.length>0||m){const e=_+C+w+s,n=O.line($.x,e,$.x+$.width,e+.001,A);h.insert(()=>n).attr("class","divider"+("neo"!==t.look||a?"":" neo-line")).attr("style",g)}if(m||u.members.length>0||u.methods.length>0){const e=_+C+Q+w+2*l+s,n=O.line($.x,b?Math.max(P,e):e,$.x+$.width,(b?Math.max(P,e):e)+.001,A);h.insert(()=>n).attr("class","divider"+("neo"!==t.look||a?"":" neo-line")).attr("style",g)}if("handDrawn"!==u.look&&h.selectAll("path").attr("style",g),T.select(":nth-child(2)").attr("style",g),h.selectAll(".divider").select("path").attr("style",g),t.labelStyle?h.selectAll("span").attr("style",t.labelStyle):h.selectAll("span").attr("style",g),!c){const e=RegExp(/color\s*:\s*([^;]*)/),t=e.exec(g);if(t){const e=t[0].replace("color","fill");h.selectAll("tspan").attr("style",e)}else if(p){const t=e.exec(p);if(t){const e=t[0].replace("color","fill");h.selectAll("tspan").attr("style",e)}}}return JZe(t,T),t.intersect=function(e){return yGe.rect(t,e)},h}async function hKe(e,t){var n,r;const{labelStyles:i,nodeStyles:o}=qqe(t);t.labelStyle=i;const a=t,s=t,l="verifyMethod"in t,c=eGe(t),u=JIe(),{themeVariables:h}=u,{borderColorArray:d,requirementEdgeLabelBackground:p}=h,f="elk"===u.layout?"start":"center",g=e.insert("g").attr("class",c).attr("id",t.domId??t.id);let m;m=l?await dKe(g,`<<${a.type}>>`,0,t.labelStyle):await dKe(g,"<<Element>>",0,t.labelStyle);let O=m;const A=await dKe(g,a.name,O,t.labelStyle+"; font-weight: bold;");if(O+=A+20,l){O+=await dKe(g,""+(a.requirementId?`ID: ${a.requirementId}`:""),O,t.labelStyle,f);O+=await dKe(g,""+(a.text?`Text: ${a.text}`:""),O,t.labelStyle,f);O+=await dKe(g,""+(a.risk?`Risk: ${a.risk}`:""),O,t.labelStyle,f),await dKe(g,""+(a.verifyMethod?`Verification: ${a.verifyMethod}`:""),O,t.labelStyle,f)}else{O+=await dKe(g,""+(s.type?`Type: ${s.type}`:""),O,t.labelStyle,f),await dKe(g,""+(s.docRef?`Doc Ref: ${s.docRef}`:""),O,t.labelStyle,f)}const y=((null==(n=g.node())?void 0:n.getBBox().width)??200)+20,v=((null==(r=g.node())?void 0:r.getBBox().height)??200)+20,b=-y/2,x=-v/2,w=jZe(g),k=Vqe(t,{});"handDrawn"!==t.look&&(k.roughness=0,k.fillStyle="solid");const S=w.rectangle(b,x,y,v,k),T=g.insert(()=>S,":first-child");if(T.attr("class","basic label-container outer-path").attr("style",o),null==d?void 0:d.length){const e=t.colorIndex??0;g.attr("data-color-id","color-"+e%d.length)}if(g.selectAll(".label").each((e,t,n)=>{const r=GDe(n[t]),i=r.attr("transform");let o=0,a=0;if(i){const e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i);e&&(o=parseFloat(e[1]),a=parseFloat(e[2]))}const s=a-v/2;let l=b+10;0!==t&&1!==t||(l=o),r.attr("transform",`translate(${l}, ${s+20})`)}),O>m+A+20){const e=x+m+A+20;let n;if("neo"===t.look){const t=.001,r=[[b,e],[b+y,e],[b+y,e+t],[b,e+t]];n=w.polygon(r,k)}else n=w.line(b,e,b+y,e,k);g.insert(()=>n).attr("class","divider")}return JZe(t,T),t.intersect=function(e){return yGe.rect(t,e)},o&&"handDrawn"!==t.look&&(p||(null==d?void 0:d.length))&&g.selectAll("path").attr("style",o),g}async function dKe(e,t,n,r="",i="center"){if(""===t)return 0;const o=e.insert("g").attr("class","label").attr("style",r),a=JIe(),s=a.htmlLabels??!0,l=await jYe(o,nLe(GWe(t)),{width:NWe(t,a)+50,classes:"markdown-node-label",useHtmlLabels:s,style:r},a);let c;if(s){const e=l.children[0],t=GDe(l);"start"===i&&GDe(e).style("text-align","left"),c=e.getBoundingClientRect(),t.attr("width",c.width),t.attr("height",c.height)}else{const e=l.children[0];for(const t of e.children)r&&t.setAttribute("style",r);if("start"===i){e.setAttribute("text-anchor","start");for(const t of e.children)t.setAttribute("text-anchor","start")}c=l.getBBox(),c.height+=6}return o.attr("transform",`translate(${-c.width/2},${-c.height/2+n})`),c.height}hRe(oKe,"erBox"),hRe(aKe,"addText"),hRe(sKe,"lineToPolygon"),hRe(lKe,"textHelper"),hRe(cKe,"addText"),hRe(uKe,"classBox"),hRe(hKe,"requirementBox"),hRe(dKe,"addText");var pKe=hRe(e=>{switch(e){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function fKe(e,t,{config:n}){var r,i;const{labelStyles:o,nodeStyles:a}=qqe(t);t.labelStyle=o||"";const s=t.width;t.width=(t.width??200)-10;const{shapeSvg:l,bbox:c,label:u}=await HZe(e,t,eGe(t)),h=t.padding||10;let d,p="";"ticket"in t&&t.ticket&&(null==(r=null==n?void 0:n.kanban)?void 0:r.ticketBaseUrl)&&(p=null==(i=null==n?void 0:n.kanban)?void 0:i.ticketBaseUrl.replace("#TICKET#",t.ticket),d=l.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",p).attr("target","_blank"));const f={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let g,m;({label:g,bbox:m}=d?await KZe(d,"ticket"in t&&t.ticket||"",f):await KZe(l,"ticket"in t&&t.ticket||"",f));const{label:O,bbox:A}=await KZe(l,"assigned"in t&&t.assigned||"",f);t.width=s;const y=(null==t?void 0:t.width)||0,v=Math.max(m.height,A.height)/2,b=Math.max(c.height+20,(null==t?void 0:t.height)||0)+v,x=-y/2,w=-b/2;let k;u.attr("transform","translate("+(h-y/2)+", "+(-v-c.height/2)+")"),g.attr("transform","translate("+(h-y/2)+", "+(-v+c.height/2)+")"),O.attr("transform","translate("+(h+y/2-A.width-20)+", "+(-v+c.height/2)+")");const{rx:S,ry:T}=t,{cssStyles:$}=t;if("handDrawn"===t.look){const e=jZe(l),n=Vqe(t,{}),r=S||T?e.path(sGe(x,w,y,b,S||0),n):e.rectangle(x,w,y,b,n);k=l.insert(()=>r,":first-child"),k.attr("class","basic label-container").attr("style",$||null)}else{k=l.insert("rect",":first-child"),k.attr("class","basic label-container __APA__").attr("style",a).attr("rx",S??5).attr("ry",T??5).attr("x",x).attr("y",w).attr("width",y).attr("height",b);const e="priority"in t&&t.priority;if(e){const t=l.append("line"),n=x+2,r=w+Math.floor((S??0)/2),i=w+b-Math.floor((S??0)/2);t.attr("x1",n).attr("y1",r).attr("x2",n).attr("y2",i).attr("stroke-width","4").attr("stroke",pKe(e))}}return JZe(t,k),t.height=b,t.intersect=function(e){return yGe.rect(t,e)},l}async function gKe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const{shapeSvg:i,bbox:o,halfPadding:a,label:s}=await HZe(e,t,eGe(t)),l=o.width+10*a,c=o.height+8*a,u=.15*l,{cssStyles:h}=t,d=o.width+20,p=o.height+20,f=Math.max(l,d),g=Math.max(c,p);let m;s.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`);const O=`M0 0 \n a${u},${u} 1 0,0 ${.25*f},${-1*g*.1}\n a${u},${u} 1 0,0 ${.25*f},0\n a${u},${u} 1 0,0 ${.25*f},0\n a${u},${u} 1 0,0 ${.25*f},${.1*g}\n\n a${u},${u} 1 0,0 ${.15*f},${.33*g}\n a${.8*u},${.8*u} 1 0,0 0,${.34*g}\n a${u},${u} 1 0,0 ${-1*f*.15},${.33*g}\n\n a${u},${u} 1 0,0 ${-1*f*.25},${.15*g}\n a${u},${u} 1 0,0 ${-1*f*.25},0\n a${u},${u} 1 0,0 ${-1*f*.25},0\n a${u},${u} 1 0,0 ${-1*f*.25},${-1*g*.15}\n\n a${u},${u} 1 0,0 ${-1*f*.1},${-1*g*.33}\n a${.8*u},${.8*u} 1 0,0 0,${-1*g*.34}\n a${u},${u} 1 0,0 ${.1*f},${-1*g*.33}\n H0 V0 Z`;if("handDrawn"===t.look){const e=jZe(i),n=Vqe(t,{}),r=e.path(O,n);m=i.insert(()=>r,":first-child"),m.attr("class","basic label-container").attr("style",KWe(h))}else m=i.insert("path",":first-child").attr("class","basic label-container").attr("style",r).attr("d",O);return m.attr("transform",`translate(${-f/2}, ${-g/2})`),JZe(t,m),t.calcIntersect=function(e,t){return yGe.rect(e,t)},t.intersect=function(e){return ORe.info("Bang intersect",t,e),yGe.rect(t,e)},i}async function mKe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const{shapeSvg:i,bbox:o,halfPadding:a,label:s}=await HZe(e,t,eGe(t)),l=o.width+2*a,c=o.height+2*a,u=.15*l,h=.25*l,d=.35*l,p=.2*l,{cssStyles:f}=t;let g;const m=`M0 0 \n a${u},${u} 0 0,1 ${.25*l},${-1*l*.1}\n a${d},${d} 1 0,1 ${.4*l},${-1*l*.1}\n a${h},${h} 1 0,1 ${.35*l},${.2*l}\n\n a${u},${u} 1 0,1 ${.15*l},${.35*c}\n a${p},${p} 1 0,1 ${-1*l*.15},${.65*c}\n\n a${h},${u} 1 0,1 ${-1*l*.25},${.15*l}\n a${d},${d} 1 0,1 ${-1*l*.5},0\n a${u},${u} 1 0,1 ${-1*l*.25},${-1*l*.15}\n\n a${u},${u} 1 0,1 ${-1*l*.1},${-1*c*.35}\n a${p},${p} 1 0,1 ${.1*l},${-1*c*.65}\n H0 V0 Z`;if("handDrawn"===t.look){const e=jZe(i),n=Vqe(t,{}),r=e.path(m,n);g=i.insert(()=>r,":first-child"),g.attr("class","basic label-container").attr("style",KWe(f))}else g=i.insert("path",":first-child").attr("class","basic label-container").attr("style",r).attr("d",m);return s.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),g.attr("transform",`translate(${-l/2}, ${-c/2})`),JZe(t,g),t.calcIntersect=function(e,t){return yGe.rect(e,t)},t.intersect=function(e){return ORe.info("Cloud intersect",t,e),yGe.rect(t,e)},i}async function OKe(e,t){const{labelStyles:n,nodeStyles:r}=qqe(t);t.labelStyle=n;const{shapeSvg:i,bbox:o,halfPadding:a,label:s}=await HZe(e,t,eGe(t)),l=o.width+8*a,c=o.height+2*a,u="neo"===t.look?`\n M${-l/2} ${c/2-5}\n v${10-c}\n q0,-5 5,-5\n h${l-10}\n q5,0 5,5\n v${c-5}\n H${-l/2}\n Z\n `:`\n M${-l/2} ${c/2-5}\n v${10-c}\n q0,-5 5,-5\n h${l-10}\n q5,0 5,5\n v${c-10}\n q0,5 -5,5\n h${-(l-10)}\n q-5,0 -5,-5\n Z\n `;if(!t.domId)throw new Error(`defaultMindmapNode: node "${t.id}" is missing a domId — was render.ts domId prefixing skipped?`);const h=i.append("path").attr("id",t.domId).attr("class","node-bkg node-"+t.type).attr("style",r).attr("d",u);return i.append("line").attr("class","node-line-").attr("x1",-l/2).attr("y1",c/2).attr("x2",l/2).attr("y2",c/2),s.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),i.append(()=>s.node()),JZe(t,h),t.calcIntersect=function(e,t){return yGe.rect(e,t)},t.intersect=function(e){return yGe.rect(t,e)},i}async function AKe(e,t){return DGe(e,t,{padding:t.padding??0})}hRe(fKe,"kanbanItem"),hRe(gKe,"bang"),hRe(mKe,"cloud"),hRe(OKe,"defaultMindmapNode"),hRe(AKe,"mindmapCircle");var yKe=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:DHe},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:BHe},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:MHe},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:UHe},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:JGe},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:tHe},{semanticName:"Folder",name:"Folder",shortName:"folder",description:"Folder or directory",aliases:["directory"],handler:aHe},{semanticName:"Bucket",name:"Bucket",shortName:"bucket",description:"Object storage bucket",handler:kGe},{semanticName:"Console",name:"Console (terminal window)",shortName:"console",description:"Terminal or console window",handler:NGe},{semanticName:"Browser",name:"Browser",shortName:"browser",description:"Browser window",handler:BGe},{semanticName:"Person",name:"Person",shortName:"person",description:"Person (circular head above a rounded body)",handler:ZGe},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:DGe},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:gKe},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:mKe},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:PHe},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:uHe},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:vHe},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:yHe},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:GHe},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:OHe},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:rHe},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:VHe},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:IGe},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:IHe},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:FHe},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:XHe},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:sHe},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:hHe},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:zGe},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:VGe},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:jGe},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:bHe},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:JHe},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:lHe},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:ZHe},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:SHe},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:YGe},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:nHe},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:KHe},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:nKe},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:iHe},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:HHe},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:oHe},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:LHe},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:_He},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:$He},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:wGe},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:FGe},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:qHe},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:zHe},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:eKe},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:EHe},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:THe}],vKe=hRe(()=>{const e={state:NHe,choice:LGe,note:CHe,composite:MGe,rectWithTitle:RHe,labelRect:AHe,block_arrow:RGe,collapsedGroup:SGe,iconSquare:gHe,iconCircle:pHe,icon:dHe,iconRounded:fHe,imageSquare:mHe,anchor:vGe,kanbanItem:fKe,mindmapCircle:AKe,defaultMindmapNode:OKe,classBox:uKe,erBox:oKe,requirementBox:hKe},t=[...Object.entries(e),...yKe.flatMap(e=>[e.shortName,..."aliases"in e?e.aliases:[],..."internalAliases"in e?e.internalAliases:[]].map(t=>[t,e.handler]))];return Object.fromEntries(t)},"generateShapeMap")();function bKe(e){return e in vKe}hRe(bKe,"isValidShape");var xKe=hRe(({flowchart:e})=>{var t,n;const r=(null==(t=null==e?void 0:e.subGraphTitleMargin)?void 0:t.top)??0,i=(null==(n=null==e?void 0:e.subGraphTitleMargin)?void 0:n.bottom)??0;return{subGraphTitleTopMargin:r,subGraphTitleBottomMargin:i,subGraphTitleTotalMargin:r+i}},"getSubGraphTitleMargins"),wKe=new Map;async function kKe(e,t,n){let r,i;"rect"===t.shape&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const o=t.shape?vKe[t.shape]:void 0;if(!o)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let a;"sandbox"===n.config.securityLevel?a="_top":t.linkTarget&&(a=t.linkTarget||"_blank"),r=e.insert("svg:a").attr("xlink:href",t.link).attr("target",a??null),i=await o(r,t,n)}else i=await o(e,t,n),r=i;return r.attr("data-look",KWe(t.look)),t.tooltip&&i.attr("title",t.tooltip),wKe.set(t.id,r),t.haveCallback&&r.attr("class",r.attr("class")+" clickable"),r}hRe(kKe,"insertNode");var SKe=hRe((e,t)=>{wKe.set(t.id,e)},"setNodeElem"),TKe=hRe(()=>{wKe.clear()},"clear"),$Ke=hRe(e=>{const t=wKe.get(e.id);ORe.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const n=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+n-e.width/2)+", "+(e.y-e.height/2-8)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),n},"positionNode"),_Ke=hRe(async(e,t)=>{const n=JIe(),{themeVariables:r,handDrawnSeed:i}=n,{clusterBkg:o,clusterBorder:a}=r,s=a,{labelStyles:l,nodeStyles:c,borderStyles:u,backgroundStyles:h}=qqe(t),d=e.insert("g").attr("class","cluster swimlane "+(t.cssClasses||"")).attr("id",t.id).attr("data-id",t.id).attr("data-et","cluster").attr("data-look",t.look),p=CBe(n.flowchart.htmlLabels),f="LR"===t.direction,g=d.insert("g").attr("class","cluster-label swimlane-label"),m=await jYe(g,t.label,{style:t.labelStyle,useHtmlLabels:p,isNode:!0,width:t.width});let O=m.getBBox();if(p){const e=m.children[0],t=GDe(m);O=e.getBoundingClientRect(),t.attr("width",O.width),t.attr("height",O.height)}const A=t.padding??0,y=t.width<=O.width+A?O.width+A:t.width;t.width<=O.width+A?t.diff=(y-t.width)/2-A:t.diff=-A;const v=t.height,b=t.y-v/2,x=t.y+v/2,w=t.x-y/2,k=void 0!==t.swimlaneContentTop?t.swimlaneContentTop:b+v/3,S=f?4:0,T=O.height+2*S;let $,_;if(f){const e=Math.max(T,O.height+2*S),n=w+e,r=Math.max(0,y-e);if("handDrawn"===t.look){const a=jZe(d),l=Vqe(t,{roughness:.7,fill:o,stroke:s,fillWeight:3,seed:i}),c=Vqe(t,{roughness:.7,fill:"none",stroke:s,seed:i}),p=a.rectangle(w,b,e,v,l);$=d.insert(()=>p,":first-child");const f=a.rectangle(n,b,r,v,c);_=d.insert(()=>f,":first-child"),$.select("path:nth-child(2)").attr("style",u.join(";")),$.select("path").attr("style",h.join(";").replace("fill","stroke"))}else $=d.insert("rect",":first-child"),_=d.insert("rect",":first-child"),$.attr("class","swimlane-title").attr("style",c).attr("x",w).attr("y",b).attr("width",e).attr("height",v).attr("fill",o).attr("stroke",s),_.attr("class","swimlane-body").attr("style",c).attr("x",n).attr("y",b).attr("width",r).attr("height",v).attr("fill","none").attr("stroke",s);const a=w+e/2,l=t.y;g.attr("transform",`translate(${a}, ${l}) rotate(-90) translate(${-O.width/2}, ${-O.height/2})`)}else{const e=Math.max(0,k-b),n=Math.min(T,e),r=b+n,a=Math.max(0,x-r),l=t.x-y/2;if("handDrawn"===t.look){const e=jZe(d),c=Vqe(t,{roughness:.7,fill:o,stroke:s,fillWeight:3,seed:i}),p=Vqe(t,{roughness:.7,fill:"none",stroke:s,seed:i}),f=e.rectangle(l,b,y,n,c);$=d.insert(()=>f,":first-child");const g=e.rectangle(l,r,y,a,p);_=d.insert(()=>g,":first-child"),$.select("path:nth-child(2)").attr("style",u.join(";")),$.select("path").attr("style",h.join(";").replace("fill","stroke"))}else $=d.insert("rect",":first-child"),_=d.insert("rect",":first-child"),$.attr("class","swimlane-title").attr("style",c).attr("x",l).attr("y",b).attr("width",y).attr("height",n).attr("fill",o).attr("stroke",s),_.attr("class","swimlane-body").attr("style",c).attr("x",l).attr("y",r).attr("width",y).attr("height",a).attr("fill","none").attr("stroke",s);const p=t.x-O.width/2,f=b+(n-O.height)/2;g.attr("transform",`translate(${p}, ${f})`)}if(ORe.trace("Swimlane data ",t,JSON.stringify(t)),l){const e=g.select("span");e&&e.attr("style",l)}return t.offsetX=0,t.width=y,t.height=v,t.offsetY=O.height-A/2,t.intersect=function(e){return aGe(t,e)},{cluster:d,labelBBox:O}},"swimlane"),CKe=hRe(async(e,t)=>{ORe.info("Creating subgraph rect for ",t.id,t);const n=JIe(),{themeVariables:r,handDrawnSeed:i}=n,{clusterBkg:o,clusterBorder:a}=r,{labelStyles:s,nodeStyles:l,borderStyles:c,backgroundStyles:u}=qqe(t),h=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),d=YBe(n),p=h.insert("g").attr("class","cluster-label ");let f;f="markdown"===t.labelType?await jYe(p,t.label,{style:t.labelStyle,useHtmlLabels:d,isNode:!0,width:t.width}):await lGe(p,t.label,t.labelStyle||"",!1,!0);let g=f.getBBox();if(YBe(n)){const e=f.children[0],t=GDe(f);g=e.getBoundingClientRect(),t.attr("width",g.width),t.attr("height",g.height)}const m=t.width<=g.width+t.padding?g.width+t.padding:t.width;t.width<=g.width+t.padding?t.diff=(m-t.width)/2-t.padding:t.diff=-t.padding;const O=t.height,A=t.x-m/2,y=t.y-O/2;let v;if(ORe.trace("Data ",t,JSON.stringify(t)),"handDrawn"===t.look){const e=jZe(h),n=Vqe(t,{roughness:.7,fill:o,stroke:a,fillWeight:3,seed:i}),r=e.path(sGe(A,y,m,O,0),n);v=h.insert(()=>(ORe.debug("Rough node insert CXC",r),r),":first-child"),v.select("path:nth-child(2)").attr("style",c.join(";")),v.select("path").attr("style",u.join(";").replace("fill","stroke"))}else v=h.insert("rect",":first-child"),v.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",A).attr("y",y).attr("width",m).attr("height",O);const{subGraphTitleTopMargin:b}=xKe(n);if(p.attr("transform",`translate(${t.x-g.width/2}, ${t.y-t.height/2+b})`),s){const e=p.select("span");e&&e.attr("style",s)}const x=v.node().getBBox();return t.offsetX=0,t.width=x.width,t.height=x.height,t.offsetY=g.height-t.padding/2,t.intersect=function(e){return aGe(t,e)},{cluster:h,labelBBox:g}},"rect"),QKe=hRe((e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.domId),r=n.insert("rect",":first-child"),i=0*t.padding,o=i/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2-o).attr("width",t.width+i).attr("height",t.height+i).attr("fill","none");const a=r.node().getBBox();return t.width=a.width,t.height=a.height,t.intersect=function(e){return aGe(t,e)},{cluster:n,labelBBox:{width:0,height:0}}},"noteGroup"),PKe=hRe(async(e,t)=>{const n=JIe(),{themeVariables:r,handDrawnSeed:i}=n,{altBackground:o,compositeBackground:a,compositeTitleBackground:s,nodeBorder:l}=r,c=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-id",t.id).attr("data-look",t.look),u=c.insert("g",":first-child"),h=c.insert("g").attr("class","cluster-label");let d=c.append("rect");const p=await lGe(h,t.label,t.labelStyle,void 0,!0);let f=p.getBBox();if(YBe(n)){const e=p.children[0],t=GDe(p);f=e.getBoundingClientRect(),t.attr("width",f.width),t.attr("height",f.height)}const g=0*t.padding,m=g/2,O=(t.width<=f.width+t.padding?f.width+t.padding:t.width)+g;t.width<=f.width+t.padding?t.diff=(O-t.width)/2-t.padding:t.diff=-t.padding;const A=t.height+g,y=t.height+g-f.height-6,v=t.x-O/2,b=t.y-A/2;t.width=O;const x=t.y-t.height/2-m+f.height+2;let w;if("handDrawn"===t.look){const e=t.cssClasses.includes("statediagram-cluster-alt"),n=jZe(c),r=t.rx||t.ry?n.path(sGe(v,b,O,A,10),{roughness:.7,fill:s,fillStyle:"solid",stroke:l,seed:i}):n.rectangle(v,b,O,A,{seed:i});w=c.insert(()=>r,":first-child");const u=n.rectangle(v,x,O,y,{fill:e?o:a,fillStyle:e?"hachure":"solid",stroke:l,seed:i});w=c.insert(()=>r,":first-child"),d=c.insert(()=>u)}else{w=u.insert("rect",":first-child");const e="outer";w.attr("class",e).attr("x",v).attr("y",b).attr("width",O).attr("height",A).attr("data-look",t.look),d.attr("class","inner").attr("x",v).attr("y",x).attr("width",O).attr("height",y)}h.attr("transform",`translate(${t.x-f.width/2}, ${b+1-(YBe(n)?0:3)})`);const k=w.node().getBBox();return t.height=k.height,t.offsetX=0,t.offsetY=f.height-t.padding/2,t.labelBBox=f,t.intersect=function(e){return aGe(t,e)},{cluster:c,labelBBox:f}},"roundedWithTitle"),EKe=hRe(async(e,t)=>{ORe.info("Creating subgraph rect for ",t.id,t);const n=JIe(),{themeVariables:r,handDrawnSeed:i}=n,{clusterBkg:o,clusterBorder:a}=r,{labelStyles:s,nodeStyles:l,borderStyles:c,backgroundStyles:u}=qqe(t),h=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),d=YBe(n),p=h.insert("g").attr("class","cluster-label "),f=await jYe(p,t.label,{style:t.labelStyle,useHtmlLabels:d,isNode:!0,width:t.width});let g=f.getBBox();if(YBe(n)){const e=f.children[0],t=GDe(f);g=e.getBoundingClientRect(),t.attr("width",g.width),t.attr("height",g.height)}const m=t.width<=g.width+t.padding?g.width+t.padding:t.width;t.width<=g.width+t.padding?t.diff=(m-t.width)/2-t.padding:t.diff=-t.padding;const O=t.height,A=t.x-m/2,y=t.y-O/2;let v;if(ORe.trace("Data ",t,JSON.stringify(t)),"handDrawn"===t.look){const e=jZe(h),n=Vqe(t,{roughness:.7,fill:o,stroke:a,fillWeight:4,seed:i}),r=e.path(sGe(A,y,m,O,t.rx),n);v=h.insert(()=>(ORe.debug("Rough node insert CXC",r),r),":first-child"),v.select("path:nth-child(2)").attr("style",c.join(";")),v.select("path").attr("style",u.join(";").replace("fill","stroke"))}else v=h.insert("rect",":first-child"),v.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",A).attr("y",y).attr("width",m).attr("height",O);const{subGraphTitleTopMargin:b}=xKe(n);if(p.attr("transform",`translate(${t.x-g.width/2}, ${t.y-t.height/2+b})`),s){const e=p.select("span");e&&e.attr("style",s)}const x=v.node().getBBox();return t.offsetX=0,t.width=x.width,t.height=x.height,t.offsetY=g.height-t.padding/2,t.intersect=function(e){return aGe(t,e)},{cluster:h,labelBBox:g}},"kanbanSection"),RKe={rect:CKe,squareRect:CKe,roundedWithTitle:PKe,noteGroup:QKe,divider:hRe((e,t)=>{const n=JIe(),{themeVariables:r,handDrawnSeed:i}=n,{nodeBorder:o}=r,a=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-look",t.look),s=a.insert("g",":first-child"),l=0*t.padding,c=t.width+l;t.diff=-t.padding;const u=t.height+l,h=t.x-c/2,d=t.y-u/2;let p;if(t.width=c,"handDrawn"===t.look){const e=jZe(a).rectangle(h,d,c,u,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:o,seed:i});p=a.insert(()=>e,":first-child")}else{p=s.insert("rect",":first-child");let e="outer";e=(t.look,"divider"),p.attr("class",e).attr("x",h).attr("y",d).attr("width",c).attr("height",u).attr("data-look",t.look)}const f=p.node().getBBox();return t.height=f.height,t.offsetX=0,t.offsetY=0,t.intersect=function(e){return aGe(t,e)},{cluster:a,labelBBox:{}}},"divider"),kanbanSection:EKe,swimlane:_Ke},BKe=new Map,IKe=hRe(async(e,t)=>{const n=t.shape||"rect",r=await RKe[n](e,t);return BKe.set(t.id,r),r},"insertCluster"),LKe=hRe(()=>{BKe=new Map},"clear"),DKe=hRe((e,t)=>{if(t)return"translate("+-e.width/2+", "+-e.height/2+")";const n=e.x??0,r=e.y??0;return"translate("+-(n+e.width/2)+", "+-(r+e.height/2)+")"},"computeLabelTransform"),MKe={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},NKe={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function XKe(e,t){if(void 0===e||void 0===t)return{angle:0,deltaX:0,deltaY:0};e=FKe(e),t=FKe(t);const[n,r]=[e.x,e.y],[i,o]=[t.x,t.y],a=i-n,s=o-r;return{angle:Math.atan(s/a),deltaX:a,deltaY:s}}hRe(XKe,"calculateDeltaAndAngle");var FKe=hRe(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),UKe=hRe(e=>({x:hRe(function(t,n,r){let i=0;const o=FKe(r[0]).x<FKe(r[r.length-1]).x?"left":"right";if(0===n&&Object.hasOwn(MKe,e.arrowTypeStart)){const{angle:t,deltaX:n}=XKe(r[0],r[1]);i=MKe[e.arrowTypeStart]*Math.cos(t)*(n>=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(MKe,e.arrowTypeEnd)){const{angle:t,deltaX:n}=XKe(r[r.length-1],r[r.length-2]);i=MKe[e.arrowTypeEnd]*Math.cos(t)*(n>=0?1:-1)}const a=Math.abs(FKe(t).x-FKe(r[r.length-1]).x),s=Math.abs(FKe(t).y-FKe(r[r.length-1]).y),l=Math.abs(FKe(t).x-FKe(r[0]).x),c=Math.abs(FKe(t).y-FKe(r[0]).y),u=MKe[e.arrowTypeStart],h=MKe[e.arrowTypeEnd];if(a<h&&a>0&&s<h){let e=h+1-a;e*="right"===o?-1:1,i-=e}if(l<u&&l>0&&c<u){let e=u+1-l;e*="right"===o?-1:1,i+=e}return FKe(t).x+i},"x"),y:hRe(function(t,n,r){let i=0;const o=FKe(r[0]).y<FKe(r[r.length-1]).y?"down":"up";if(0===n&&Object.hasOwn(MKe,e.arrowTypeStart)){const{angle:t,deltaY:n}=XKe(r[0],r[1]);i=MKe[e.arrowTypeStart]*Math.abs(Math.sin(t))*(n>=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(MKe,e.arrowTypeEnd)){const{angle:t,deltaY:n}=XKe(r[r.length-1],r[r.length-2]);i=MKe[e.arrowTypeEnd]*Math.abs(Math.sin(t))*(n>=0?1:-1)}const a=Math.abs(FKe(t).y-FKe(r[r.length-1]).y),s=Math.abs(FKe(t).x-FKe(r[r.length-1]).x),l=Math.abs(FKe(t).y-FKe(r[0]).y),c=Math.abs(FKe(t).x-FKe(r[0]).x),u=MKe[e.arrowTypeStart],h=MKe[e.arrowTypeEnd];if(a<h&&a>0&&s<h){let e=h+1-a;e*="up"===o?-1:1,i-=e}if(l<u&&l>0&&c<u){let e=u+1-l;e*="up"===o?-1:1,i+=e}return FKe(t).y+i},"y")}),"getLineFunctionsWithOffset"),zKe=hRe((e,t,n,r,i,o=!1,a)=>{t.arrowTypeStart&&WKe(e,"start",t.arrowTypeStart,n,r,i,o,a),t.arrowTypeEnd&&WKe(e,"end",t.arrowTypeEnd,n,r,i,o,a)},"addEdgeMarkers"),qKe={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},VKe=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],WKe=hRe((e,t,n,r,i,o,a=!1,s)=>{var l;if(!n||"none"===n)return;const c=qKe[n],u=c&&VKe.includes(c.type);if(!c)return void ORe.warn(`Unknown arrow type: ${n}`);const h=`${i}_${o}-${c.type}${"start"===t?"Start":"End"}${a&&u?"-margin":""}`;if(s&&""!==s.trim()){const n=`${h}_${s.replace(/[^\dA-Za-z]/g,"_")}`;if(!document.getElementById(n)){const e=document.getElementById(h);if(e){const t=e.cloneNode(!0);t.id=n;t.querySelectorAll("path, circle, line").forEach(e=>{e.setAttribute("stroke",s),c.fill&&e.setAttribute("fill",s)}),null==(l=e.parentNode)||l.appendChild(t)}}e.attr(`marker-${t}`,`url(${r}#${n})`)}else e.attr(`marker-${t}`,`url(${r}#${h})`)},"addEdgeMarker"),jKe=hRe(e=>{var t,n;return"string"==typeof e?e:null==(n=null==(t=JIe())?void 0:t.flowchart)?void 0:n.curve},"resolveEdgeCurveType"),YKe=new Map,ZKe=new Map,GKe=hRe(()=>{YKe.clear(),ZKe.clear()},"clear"),HKe=hRe(e=>Boolean(e.label||e.startLabelLeft||e.startLabelRight||e.endLabelLeft||e.endLabelRight),"hasEdgeLabel"),KKe=hRe(e=>e?"string"==typeof e?e:e.reduce((e,t)=>e+";"+t,""):"","getLabelStyles"),JKe=hRe(async(e,t)=>{const n=JIe();let r=YBe(n);const{labelStyles:i}=qqe(t);t.labelStyle=i;const o=e.insert("g").attr("class","edgeLabel"),a=o.insert("g").attr("class","label").attr("data-id",t.id),s="markdown"===t.labelType,l=await jYe(e,t.label,{style:KKe(t.labelStyle),useHtmlLabels:r,addSvgBackground:!0,isNode:!1,markdown:s,width:void 0},n);let c,u,h;if(a.node().appendChild(l),ORe.info("abc82",t,t.labelType),r){const e=l.children[0],t=GDe(l);c=await $Ye.measure(()=>e.getBoundingClientRect()),u=c,t.attr("width",c.width),t.attr("height",c.height)}else{const e=GDe(l).select("text").node();await $Ye.measure(()=>{c=l.getBBox(),u=e&&"function"==typeof e.getBBox?e.getBBox():c})}if(a.attr("transform",DKe(u,r)),YKe.set(t.id,o),t.width=c.width,t.height=c.height,t.startLabelLeft){const n=e.insert("g").attr("class","edgeTerminals"),i=n.insert("g").attr("class","inner"),o=await lGe(i,t.startLabelLeft,KKe(t.labelStyle)||"",!1,!1);h=o;let a=o.getBBox();if(r){const e=o.children[0],t=GDe(o);a=e.getBoundingClientRect(),t.attr("width",a.width),t.attr("height",a.height)}i.attr("transform",DKe(a,r)),ZKe.get(t.id)||ZKe.set(t.id,{}),ZKe.get(t.id).startLeft=n,eJe(h,t.startLabelLeft)}if(t.startLabelRight){const n=e.insert("g").attr("class","edgeTerminals"),i=n.insert("g").attr("class","inner"),o=await lGe(i,t.startLabelRight,KKe(t.labelStyle)||"",!1,!1);h=o;let a=o.getBBox();if(r){const e=o.children[0],t=GDe(o);a=e.getBoundingClientRect(),t.attr("width",a.width),t.attr("height",a.height)}i.attr("transform",DKe(a,r)),ZKe.get(t.id)||ZKe.set(t.id,{}),ZKe.get(t.id).startRight=n,eJe(h,t.startLabelRight)}if(t.endLabelLeft){const n=e.insert("g").attr("class","edgeTerminals"),i=n.insert("g").attr("class","inner"),o=await lGe(n,t.endLabelLeft,KKe(t.labelStyle)||"",!1,!1);h=o;let a=o.getBBox();if(r){const e=o.children[0],t=GDe(o);a=e.getBoundingClientRect(),t.attr("width",a.width),t.attr("height",a.height)}i.attr("transform",DKe(a,r)),ZKe.get(t.id)||ZKe.set(t.id,{}),ZKe.get(t.id).endLeft=n,eJe(h,t.endLabelLeft)}if(t.endLabelRight){const n=e.insert("g").attr("class","edgeTerminals"),i=n.insert("g").attr("class","inner"),o=await lGe(n,t.endLabelRight,KKe(t.labelStyle)||"",!1,!1);h=o;let a=o.getBBox();if(r){const e=o.children[0],t=GDe(o);a=e.getBoundingClientRect(),t.attr("width",a.width),t.attr("height",a.height)}i.attr("transform",DKe(a,r)),ZKe.get(t.id)||ZKe.set(t.id,{}),ZKe.get(t.id).endRight=n,eJe(h,t.endLabelRight)}return l},"insertEdgeLabel");function eJe(e,t){YBe(JIe())&&e&&(e.style.width=9*t.length+"px",e.style.height="12px")}hRe(eJe,"setTerminalWidth");var tJe=hRe((e,t)=>{ORe.debug("Moving label abc88 ",e.id,e.label,YKe.get(e.id),t);let n=t.updatedPath?t.updatedPath:t.originalPath;const r=JIe(),{subGraphTitleTotalMargin:i}=xKe(r);if(e.label){const r=YKe.get(e.id);let o=e.x,a=e.y;if(n){const r=YWe.calcLabelPosition(n);ORe.debug("Moving label "+e.label+" from (",o,",",a,") to (",r.x,",",r.y,") abc88"),t.updatedPath&&(o=r.x,a=r.y)}r.attr("transform",`translate(${o}, ${a+i/2})`)}if(e.startLabelLeft){const t=ZKe.get(e.id).startLeft;let r=e.x,i=e.y;if(n){const t=YWe.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",n);r=t.x,i=t.y}t.attr("transform",`translate(${r}, ${i})`)}if(e.startLabelRight){const t=ZKe.get(e.id).startRight;let r=e.x,i=e.y;if(n){const t=YWe.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",n);r=t.x,i=t.y}t.attr("transform",`translate(${r}, ${i})`)}if(e.endLabelLeft){const t=ZKe.get(e.id).endLeft;let r=e.x,i=e.y;if(n){const t=YWe.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",n);r=t.x,i=t.y}t.attr("transform",`translate(${r}, ${i})`)}if(e.endLabelRight){const t=ZKe.get(e.id).endRight;let r=e.x,i=e.y;if(n){const t=YWe.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",n);r=t.x,i=t.y}t.attr("transform",`translate(${r}, ${i})`)}},"positionEdgeLabel"),nJe=hRe((e,t)=>{var n;if(!(null==e?void 0:e.isLabelEdge)||!(null==(n=null==e?void 0:e.id)?void 0:n.endsWith("-to-label"))||!Array.isArray(t))return t;if(2!==t.length)return t;const[r,i]=t,o=Math.abs(i.x-r.x),a=Math.abs(i.y-r.y);return o<.001||a<.001?t:a>=o?[r,{x:r.x,y:i.y},i]:[r,{x:i.x,y:r.y},i]},"orthogonalizeToLabelClippedPoints"),rJe=hRe((e,t)=>{const n=e.x,r=e.y,i=Math.abs(t.x-n),o=Math.abs(t.y-r),a=e.width/2,s=e.height/2;return i>=a||o>=s},"outsideNode"),iJe=hRe((e,t,n)=>{ORe.debug(`intersection calc abc89:\n outsidePoint: ${JSON.stringify(t)}\n insidePoint : ${JSON.stringify(n)}\n node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const r=e.x,i=e.y,o=Math.abs(r-n.x),a=e.width/2;let s=n.x<t.x?a-o:a+o;const l=e.height/2,c=Math.abs(t.y-n.y),u=Math.abs(t.x-n.x);if(Math.abs(i-t.y)*a>Math.abs(r-t.x)*l){let e=n.y<t.y?t.y-l-i:i-l-t.y;s=u*e/c;const r={x:n.x<t.x?n.x+s:n.x-u+s,y:n.y<t.y?n.y+c-e:n.y-c+e};return 0===s&&(r.x=t.x,r.y=t.y),0===u&&(r.x=t.x),0===c&&(r.y=t.y),ORe.debug(`abc89 top/bottom calc, Q ${c}, q ${e}, R ${u}, r ${s}`,r),r}{s=n.x<t.x?t.x-a-r:r-a-t.x;let e=c*s/u,i=n.x<t.x?n.x+u-s:n.x-u+s,o=n.y<t.y?n.y+e:n.y-e;return ORe.debug(`sides calc abc89, Q ${c}, q ${e}, R ${u}, r ${s}`,{_x:i,_y:o}),0===s&&(i=t.x,o=t.y),0===u&&(i=t.x),0===c&&(o=t.y),{x:i,y:o}}},"intersection"),oJe=hRe((e,t)=>{ORe.warn("abc88 cutPathAtIntersect",e,t);let n=[],r=e[0],i=!1;return e.forEach(e=>{if(ORe.info("abc88 checking point",e,t),rJe(t,e)||i)ORe.warn("abc88 outside",e,r),r=e,i||n.push(e);else{const o=iJe(t,r,e);ORe.debug("abc88 inside",e,r,o),ORe.debug("abc88 intersection",o,t);let a=!1;n.forEach(e=>{a=a||e.x===o.x&&e.y===o.y}),n.some(e=>e.x===o.x&&e.y===o.y)?ORe.warn("abc88 no intersect",o,n):n.push(o),i=!0}}),ORe.debug("returning points",n),n},"cutPathAtIntersect");function aJe(e){const t=[],n=[];for(let r=1;r<e.length-1;r++){const i=e[r-1],o=e[r],a=e[r+1];(i.x===o.x&&o.y===a.y&&Math.abs(o.x-a.x)>5&&Math.abs(o.y-i.y)>5||i.y===o.y&&o.x===a.x&&Math.abs(o.x-i.x)>5&&Math.abs(o.y-a.y)>5)&&(t.push(o),n.push(r))}return{cornerPoints:t,cornerPointPositions:n}}hRe(aJe,"extractCornerPoints");var sJe=hRe(function(e,t,n){const r=t.x-e.x,i=t.y-e.y,o=n/Math.sqrt(r*r+i*i);return{x:t.x-o*r,y:t.y-o*i}},"findAdjacentPoint"),lJe=hRe(function(e){const{cornerPointPositions:t}=aJe(e),n=[];for(let r=0;r<e.length;r++)if(t.includes(r)){const t=e[r-1],i=e[r+1],o=e[r],a=sJe(t,o,5),s=sJe(i,o,5),l=s.x-a.x,c=s.y-a.y;n.push(a);const u=2*Math.sqrt(2);let h={x:o.x,y:o.y};if(Math.abs(i.x-t.x)>10&&Math.abs(i.y-t.y)>=10){ORe.debug("Corner point fixing",Math.abs(i.x-t.x),Math.abs(i.y-t.y));const e=5;h=o.x===a.x?{x:l<0?a.x-e+u:a.x+e-u,y:c<0?a.y-u:a.y+u}:{x:l<0?a.x-u:a.x+u,y:c<0?a.y-e+u:a.y+e-u}}else ORe.debug("Corner point skipping fixing",Math.abs(i.x-t.x),Math.abs(i.y-t.y));n.push(h,s)}else n.push(e[r]);return n},"fixCorners"),cJe=hRe((e,t,n)=>{const r=e-t-n,i=Math.floor(r/4),o=Number.isFinite(i)?Math.max(0,i):0;return`0 ${t} ${Array(o).fill("2 2").join(" ")} ${n}`},"generateDashArray"),uJe=hRe(function(e,t,n,r,i,o,a,s=!1){var l;if(!a)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" — edge IDs require a diagram prefix for uniqueness`);const{handDrawnSeed:c,layout:u}=JIe();let h=t.points,d=!1;const p=i;var f=o;const g=[];for(const B in t.cssCompiledStyles)zqe(B)||g.push(t.cssCompiledStyles[B]);if("swimlane"===u){if(f.intersect&&p.intersect&&Array.isArray(h)&&h.length>=2)if(2===h.length)h=[p.intersect(h[0]),f.intersect(h[1])];else{const e=h.slice(1,-1),t=e[0],n=e[e.length-1],r=.5,i=Math.abs(h[h.length-1].x-n.x)<r&&Math.abs(h[h.length-1].y-n.y)<r,o=p.intersect(t),a=i?n:f.intersect(n),s=Math.abs(a.x-n.x)<r&&Math.abs(a.y-n.y)<r?[]:[a];h=[...Math.abs(o.x-t.x)<r&&Math.abs(o.y-t.y)<r?[]:[o],...e,...s]}h=nJe(t,h)}else f.intersect&&p.intersect&&!s&&(h=h.slice(1,t.points.length-1),h.unshift(p.intersect(h[0])),h.push(f.intersect(h[h.length-1])));const m=btoa(JSON.stringify(h));t.toCluster&&(ORe.info("to cluster abc88",n.get(t.toCluster)),h=oJe(t.points,n.get(t.toCluster).node),d=!0),t.fromCluster&&(ORe.debug("from cluster abc88",n.get(t.fromCluster),JSON.stringify(h,null,2)),h=oJe(h.reverse(),n.get(t.fromCluster).node).reverse(),d=!0);let O=h.filter(e=>!Number.isNaN(e.y));const A=jKe(t.curve);"rounded"!==A&&(O=lJe(O));let y=zze;switch(A){case"linear":case"rounded":y=zze;break;case"basis":default:y=tqe;break;case"cardinal":y=lqe;break;case"bumpX":y=Gze;break;case"bumpY":y=Hze;break;case"catmullRom":y=gqe;break;case"monotoneX":y=_qe;break;case"monotoneY":y=Cqe;break;case"natural":y=Eqe;break;case"step":y=Bqe;break;case"stepAfter":y=Lqe;break;case"stepBefore":y=Iqe}const{x:v,y:b}=UKe(t),x=Wze().x(v).y(b).curve(y);let w,k;switch(t.thickness){case"normal":default:w="edge-thickness-normal";break;case"thick":w="edge-thickness-thick";break;case"invisible":w="edge-thickness-invisible"}switch(t.pattern){case"solid":default:w+=" edge-pattern-solid";break;case"dotted":w+=" edge-pattern-dotted";break;case"dashed":w+=" edge-pattern-dashed"}let S="rounded"===A?hJe(pJe(O,t),5):x(O);const T=Array.isArray(t.style)?t.style:[t.style];let $=T.find(e=>null==e?void 0:e.startsWith("stroke:")),_="";t.animate&&(_="edge-animation-fast"),t.animation&&(_="edge-animation-"+t.animation);let C=!1;if("handDrawn"===t.look){const n=jZe(e);Object.assign([],O);w+=" transition",k=GDe(n.path(S,{roughness:.3,seed:c})).select("path").attr("id",`${a}-${t.id}`).attr("class"," "+w+(t.classes?" "+t.classes:"")+(_?" "+_:"")).attr("style",T?T.reduce((e,t)=>e+";"+t,""):"");let r=k.attr("d");k.attr("d",r),e.node().appendChild(k.node())}else{const n=g.join(";"),r=T?T.reduce((e,t)=>e+t+";",""):"",i=(n?n+";"+r+";":r)+";"+(T?T.reduce((e,t)=>e+";"+t,""):"");k=e.append("path").attr("d",S).attr("id",`${a}-${t.id}`).attr("class"," "+w+(t.classes?" "+t.classes:"")+(_?" "+_:"")).attr("style",i),$=null==(l=i.match(/stroke:([^;]+)/))?void 0:l[1],C=!0===t.animate||!!t.animation||n.includes("animation");const o=k.node(),s="function"==typeof o.getTotalLength?o.getTotalLength():0,c=NKe[t.arrowTypeStart]||0,u=NKe[t.arrowTypeEnd]||0;if("neo"===t.look&&!C){const e=`stroke-dasharray: ${"dotted"===t.pattern||"dashed"===t.pattern?cJe(s,c,u):`0 ${c} ${s-c-u} ${u}`}; stroke-dashoffset: 0;`;k.attr("style",e+k.attr("style"))}}k.attr("data-edge",!0),k.attr("data-et","edge"),k.attr("data-id",t.id),k.attr("data-points",m),k.attr("data-look",KWe(t.look)),t.showPoints&&O.forEach(t=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",t.x).attr("cy",t.y)});let Q="";(JIe().flowchart.arrowMarkerAbsolute||JIe().state.arrowMarkerAbsolute)&&(Q=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,Q=Q.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),ORe.info("arrowTypeStart",t.arrowTypeStart),ORe.info("arrowTypeEnd",t.arrowTypeEnd);const P=!C&&"neo"===(null==t?void 0:t.look);zKe(k,t,Q,a,r,P,$);const E=h[Math.floor(h.length/2)];YWe.isLabelCoordinateInPath(E,k.attr("d"))||(d=!0);let R={};return d&&(R.updatedPath=h),R.originalPath=t.points,R},"insertEdge");function hJe(e,t){if(e.length<2)return"";let n="";const r=e.length,i=1e-5;for(let o=0;o<r;o++){const a=e[o],s=e[o-1],l=e[o+1];if(0===o)n+=`M${a.x},${a.y}`;else if(o===r-1)n+=`L${a.x},${a.y}`;else{const e=a.x-s.x,r=a.y-s.y,o=l.x-a.x,c=l.y-a.y,u=Math.hypot(e,r),h=Math.hypot(o,c);if(u<i||h<i){n+=`L${a.x},${a.y}`;continue}const d=e/u,p=r/u,f=o/h,g=c/h,m=d*f+p*g,O=Math.max(-1,Math.min(1,m)),A=Math.acos(O);if(A<i||Math.abs(Math.PI-A)<i){n+=`L${a.x},${a.y}`;continue}const y=Math.min(t/Math.sin(A/2),u/2,h/2),v=a.x-d*y,b=a.y-p*y,x=a.x+f*y,w=a.y+g*y;n+=`L${v},${b}`,n+=`Q${a.x},${a.y} ${x},${w}`}}return n}function dJe(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};const n=t.x-e.x,r=t.y-e.y;return{angle:Math.atan2(r,n),deltaX:n,deltaY:r}}function pJe(e,t){const n=e.map(e=>({...e}));if(e.length>=2&&MKe[t.arrowTypeStart]){const r=MKe[t.arrowTypeStart],i=e[0],o=e[1],{angle:a}=dJe(i,o),s=r*Math.cos(a),l=r*Math.sin(a);n[0].x=i.x+s,n[0].y=i.y+l}const r=e.length;if(r>=2&&MKe[t.arrowTypeEnd]){const i=MKe[t.arrowTypeEnd],o=e[r-1],a=e[r-2],{angle:s}=dJe(a,o),l=i*Math.cos(s),c=i*Math.sin(s);n[r-1].x=o.x-l,n[r-1].y=o.y-c}return n}hRe(hJe,"generateRoundedPath"),hRe(dJe,"calculateDeltaAndAngle"),hRe(pJe,"applyMarkerOffsetsToPoints");var fJe=hRe((e,t,n,r)=>{t.forEach(t=>{IJe[t](e,n,r)})},"insertMarkers"),gJe=hRe((e,t,n)=>{ORe.trace("Making markers for ",n),e.append("defs").append("marker").attr("id",n+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,1 V 13 L18,7 Z"),e.append("marker").attr("id",n+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),e.append("defs").append("marker").attr("id",n+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),mJe=hRe((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),OJe=hRe((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),AJe=hRe((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),yJe=hRe((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",n+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",n+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),e.append("defs").append("marker").attr("id",n+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),vJe=hRe((e,t,n)=>{e.append("marker").attr("id",n+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),bJe=hRe((e,t,n)=>{e.append("marker").attr("id",n+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),xJe=hRe((e,t,n)=>{e.append("marker").attr("id",n+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),e.append("marker").attr("id",n+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),wJe=hRe((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),kJe=hRe((e,t,n)=>{const r=NBe(),{themeVariables:i}=r,{transitionColor:o}=i;e.append("defs").append("marker").attr("id",n+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${o}`)},"barbNeo"),SJe=hRe((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",n+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),TJe=hRe((e,t,n)=>{const r=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");r.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),r.append("path").attr("d","M9,0 L9,18");const i=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),i.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),$Je=hRe((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",n+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),_Je=hRe((e,t,n)=>{const r=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");r.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),r.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const i=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),i.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),CJe=hRe((e,t,n)=>{const r=NBe(),{themeVariables:i}=r,{strokeWidth:o}=i;e.append("defs").append("marker").attr("id",n+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${o}`),e.append("defs").append("marker").attr("id",n+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${o}`)},"only_one_neo"),QJe=hRe((e,t,n)=>{const r=NBe(),{themeVariables:i}=r,{strokeWidth:o,mainBkg:a}=i,s=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");s.append("circle").attr("fill",a??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${o}`).attr("r",6),s.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${o}`);const l=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");l.append("circle").attr("fill",a??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${o}`).attr("r",6),l.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${o}`)},"zero_or_one_neo"),PJe=hRe((e,t,n)=>{const r=NBe(),{themeVariables:i}=r,{strokeWidth:o}=i;e.append("defs").append("marker").attr("id",n+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${o}`),e.append("defs").append("marker").attr("id",n+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${o}`)},"one_or_more_neo"),EJe=hRe((e,t,n)=>{const r=NBe(),{themeVariables:i}=r,{strokeWidth:o,mainBkg:a}=i,s=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");s.append("circle").attr("fill",a??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${o}`),s.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${o}`);const l=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");l.append("circle").attr("fill",a??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${o}`),l.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${o}`)},"zero_or_more_neo"),RJe=hRe((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d","M0,0\n L20,10\n M20,10\n L0,20")},"requirement_arrow"),BJe=hRe((e,t,n)=>{const r=NBe(),{themeVariables:i}=r,{strokeWidth:o}=i;e.append("defs").append("marker").attr("id",n+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${o}`).attr("viewBox","0 0 25 20").append("path").attr("d","M0,0\n L20,10\n M20,10\n L0,20").attr("stroke-linejoin","miter")},"requirement_arrow_neo"),IJe={extension:gJe,composition:mJe,aggregation:OJe,dependency:AJe,lollipop:yJe,point:vJe,circle:bJe,cross:xJe,barb:wJe,barbNeo:kJe,only_one:SJe,zero_or_one:TJe,one_or_more:$Je,zero_or_more:_Je,only_one_neo:CJe,zero_or_one_neo:QJe,one_or_more_neo:PJe,zero_or_more_neo:EJe,requirement_arrow:RJe,requirement_contains:hRe((e,t,n)=>{const r=e.append("defs").append("marker").attr("id",n+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");r.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),r.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),r.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),requirement_arrow_neo:BJe,requirement_contains_neo:hRe((e,t,n)=>{const r=NBe(),{themeVariables:i}=r,{strokeWidth:o}=i,a=e.append("defs").append("marker").attr("id",n+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");a.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),a.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),a.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),a.selectAll("*").attr("stroke-width",`${o}`)},"requirement_contains_neo")},LJe=fJe,DJe="\0";class MJe{constructor(e={}){this._isDirected=!Object.prototype.hasOwnProperty.call(e,"directed")||e.directed,this._isMultigraph=!!Object.prototype.hasOwnProperty.call(e,"multigraph")&&e.multigraph,this._isCompound=!!Object.prototype.hasOwnProperty.call(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=$g(void 0),this._defaultEdgeLabelFn=$g(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[DJe]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return lg(e)||(e=$g(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return xm(this._nodes)}sources(){var e=this;return jA(this.nodes(),function(t){return hy(e._in[t])})}sinks(){var e=this;return jA(this.nodes(),function(t){return hy(e._out[t])})}setNodes(e,t){var n=arguments,r=this;return VA(e,function(e){n.length>1?r.setNode(e,t):r.setNode(e)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=DJe,this._children[e]={},this._children[DJe][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=e=>this.removeEdge(this._edgeObjs[e]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],VA(this.children(e),e=>{this.setParent(e)}),delete this._children[e]),VA(xm(this._in[e]),t),delete this._in[e],delete this._preds[e],VA(xm(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(gy(t))t=DJe;else{for(var n=t+="";!gy(n);n=this.parent(n))if(n===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==DJe)return t}}children(e){if(gy(e)&&(e=DJe),this._isCompound){var t=this._children[e];if(t)return xm(t)}else{if(e===DJe)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var t=this._preds[e];if(t)return xm(t)}successors(e){var t=this._sucs[e];if(t)return xm(t)}neighbors(e){var t=this.predecessors(e);if(t)return Uy(t,this.successors(e))}isLeaf(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;VA(this._nodes,function(n,r){e(r)&&t.setNode(r,n)}),VA(this._edgeObjs,function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))});var r={};function i(e){var o=n.parent(e);return void 0===o||t.hasNode(o)?(r[e]=o,o):o in r?r[o]:i(o)}return this._isCompound&&VA(t.nodes(),function(e){t.setParent(e,i(e))}),t}setDefaultEdgeLabel(e){return lg(e)||(e=$g(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return ly(this._edgeObjs)}setPath(e,t){var n=this,r=arguments;return Dy(e,function(e,i){return r.length>1?n.setEdge(e,i,t):n.setEdge(e,i),i}),this}setEdge(){var e,t,n,r,i=!1,o=arguments[0];"object"==typeof o&&null!==o&&"v"in o?(e=o.v,t=o.w,n=o.name,2===arguments.length&&(r=arguments[1],i=!0)):(e=o,t=arguments[1],n=arguments[3],arguments.length>2&&(r=arguments[2],i=!0)),e=""+e,t=""+t,gy(n)||(n=""+n);var a=FJe(this._isDirected,e,t,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,a))return i&&(this._edgeLabels[a]=r),this;if(!gy(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[a]=i?r:this._defaultEdgeLabelFn(e,t,n);var s=function(e,t,n,r){var i=""+t,o=""+n;if(!e&&i>o){var a=i;i=o,o=a}var s={v:i,w:o};r&&(s.name=r);return s}(this._isDirected,e,t,n);return e=s.v,t=s.w,Object.freeze(s),this._edgeObjs[a]=s,NJe(this._preds[t],e),NJe(this._sucs[e],t),this._in[t][a]=s,this._out[e][a]=s,this._edgeCount++,this}edge(e,t,n){var r=1===arguments.length?UJe(this._isDirected,arguments[0]):FJe(this._isDirected,e,t,n);return this._edgeLabels[r]}hasEdge(e,t,n){var r=1===arguments.length?UJe(this._isDirected,arguments[0]):FJe(this._isDirected,e,t,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,r)}removeEdge(e,t,n){var r=1===arguments.length?UJe(this._isDirected,arguments[0]):FJe(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],XJe(this._preds[t],e),XJe(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this}inEdges(e,t){var n=this._in[e];if(n){var r=ly(n);return t?jA(r,function(e){return e.v===t}):r}}outEdges(e,t){var n=this._out[e];if(n){var r=ly(n);return t?jA(r,function(e){return e.w===t}):r}}nodeEdges(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}}function NJe(e,t){e[t]?e[t]++:e[t]=1}function XJe(e,t){--e[t]||delete e[t]}function FJe(e,t,n,r){var i=""+t,o=""+n;if(!e&&i>o){var a=i;i=o,o=a}return i+""+o+""+(gy(r)?"\0":r)}function UJe(e,t){return FJe(e,t.v,t.w,t.name)}function zJe(e,{edgePathsClass:t="edges edgePaths"}={}){const n=e.insert("g").attr("class","root");return{clusters:n.insert("g").attr("class","clusters"),edgePaths:n.insert("g").attr("class",t),edgeLabels:n.insert("g").attr("class","edgeLabels"),nodes:n.insert("g").attr("class","nodes"),rootGroups:n}}async function qJe(e,t){if(t.label){const{shapeSvg:n,bbox:r}=await HZe(e,t);t.labelBBox={width:r.width,height:r.height},n.remove()}else t.labelBBox={width:0,height:0}}async function VJe(e,t,n){var r;const i=await kKe(e,t,n),o=(null==(r=i.node())?void 0:r.getBBox())??{width:0,height:0};return t.width=o.width,t.height=o.height,i}async function WJe(e,t){const n=new MJe({multigraph:!0,compound:!0}),r=[...t.edges],i=JIe(),o=zJe(e),{edgeLabels:a,nodes:s}=o,l=new Map,c=null!=e.node();await Promise.all(t.nodes.map(async e=>{if(e.isGroup)c&&await qJe(s,e),n.setNode(e.id,{...e});else{if(c){const t=await VJe(s,e,{config:i,dir:e.dir});l.set(e.id,t)}n.setNode(e.id,{...e})}}));for(const u of r){c&&HKe(u)&&await JKe(a,u),n.setEdge(u.start,u.end,{...u},u.id);t.edges.some(e=>e.id===u.id)||t.edges.push(u)}if(globalThis.mermaidCaptureSizes){const{captureNodeSizes:n}=await Pf(async()=>{const{captureNodeSizes:e}=await Promise.resolve().then(()=>Dbt);return{captureNodeSizes:e}},void 0,import.meta.url);n(e,t)}return{graph:n,groups:o,nodeElements:l}}MJe.prototype._nodeCount=0,MJe.prototype._edgeCount=0,hRe(zJe,"createLayoutElementGroups"),hRe(qJe,"measureGroupLabel"),hRe(VJe,"insertMeasuredNode"),hRe(WJe,"createGraphWithElements");var jJe=new Map,YJe=new Map,ZJe=new Map,GJe=hRe(()=>{YJe.clear(),ZJe.clear(),jJe.clear()},"clear"),HJe=hRe((e,t)=>{const n=YJe.get(t)||[];return ORe.trace("In isDescendant",t," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),KJe=hRe((e,t)=>{const n=YJe.get(t)||[];return ORe.info("Descendants of ",t," is ",n),ORe.info("Edge is ",e),e.v!==t&&e.w!==t&&(n?n.includes(e.v)||HJe(e.v,t)||HJe(e.w,t)||n.includes(e.w):(ORe.debug("Tilt, ",t,",not in descendants"),!1))},"edgeInCluster"),JJe=hRe((e,t,n,r)=>{ORe.debug("Copying children of ",e,"root",r,"data",t.node(e),r);const i=t.children(e)||[];e!==r&&i.push(e),ORe.debug("Copying (nodes) clusterId",e,"nodes",i),i.forEach(i=>{if(t.children(i).length>0)JJe(i,t,n,r);else{const o=t.node(i);ORe.info("cp ",i," to ",r," with parent ",e),n.setNode(i,o),r!==t.parent(i)&&(ORe.debug("Setting parent",i,t.parent(i)),n.setParent(i,t.parent(i))),e!==r&&i!==e?(ORe.debug("Setting parent",i,e),n.setParent(i,e)):(ORe.info("In copy ",e,"root",r,"data",t.node(e),r),ORe.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==r,"node!==clusterId",i!==e));const a=t.edges(i);ORe.debug("Copying Edges",a),a.forEach(i=>{ORe.info("Edge",i);const o=t.edge(i.v,i.w,i.name);ORe.info("Edge data",o,r);try{KJe(i,r)?(ORe.info("Copying as ",i.v,i.w,o,i.name),n.setEdge(i.v,i.w,o,i.name),ORe.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):ORe.info("Skipping copy of edge ",i.v,"--\x3e",i.w," rootId: ",r," clusterId:",e)}catch(jk){ORe.error(jk)}})}ORe.debug("Removing node",i),t.removeNode(i)})},"copy"),e0e=hRe((e,t)=>{const n=t.children(e);let r=[...n];for(const i of n)ZJe.set(i,e),r=[...r,...e0e(i,t)];return r},"extractDescendants"),t0e=hRe((e,t,n)=>{const r=e.edges().filter(e=>e.v===t||e.w===t),i=e.edges().filter(e=>e.v===n||e.w===n),o=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),a=i.map(e=>({v:e.v,w:e.w}));return o.filter(e=>a.some(t=>e.v===t.v&&e.w===t.w))},"findCommonEdges"),n0e=hRe((e,t,n)=>{const r=t.children(e);if(ORe.trace("Searching children of id ",e,r),r.length<1)return e;let i;for(const o of r){const e=n0e(o,t,n),r=t0e(t,n,e);if(e){if(!(r.length>0))return e;i=e}}return i},"findNonClusterChild"),r0e=hRe(e=>jJe.has(e)&&jJe.get(e).externalConnections&&jJe.has(e)?jJe.get(e).id:e,"getAnchorId"),i0e=hRe((e,t)=>{var n;if(!e||t>10)ORe.debug("Opting out, no graph ");else{ORe.debug("Opting in, graph "),e.nodes().forEach(function(t){e.children(t).length>0&&(ORe.debug("Cluster identified",t," Replacement id in edges: ",n0e(t,e,t)),YJe.set(t,e0e(t,e)),jJe.set(t,{id:n0e(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){const n=e.children(t),r=e.edges();n.length>0?(ORe.debug("Cluster identified",t,YJe),r.forEach(e=>{HJe(e.v,t)^HJe(e.w,t)&&(ORe.debug("Edge: ",e," leaves cluster ",t),ORe.debug("Descendants of XXX ",t,": ",YJe.get(t)),jJe.get(t).externalConnections=!0)})):ORe.debug("Not a cluster ",t,YJe)});for(let t of jJe.keys()){const r=jJe.get(t).id,i=e.parent(r);i!==t&&jJe.has(i)&&!jJe.get(i).externalConnections&&(jJe.get(t).id=i);const o=e.edges().some(e=>e.v===t);if(r&&(null==(n=jJe.get(t))?void 0:n.externalConnections)&&o&&l0e(e,r,t)){const n=c0e(e,t,e.parent(r));n&&(jJe.get(t).id=n)}}e.edges().forEach(function(t){const n=e.edge(t);ORe.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),ORe.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let r=t.v,i=t.w;if(ORe.debug("Fix XXX",jJe,"ids:",t.v,t.w,"Translating: ",jJe.get(t.v)," --- ",jJe.get(t.w)),jJe.get(t.v)||jJe.get(t.w)){if(ORe.debug("Fixing and trying - removing XXX",t.v,t.w,t.name),r=r0e(t.v),i=r0e(t.w),e.removeEdge(t.v,t.w,t.name),r!==t.v){const i=e.parent(r);jJe.get(i).externalConnections=!0,n.fromCluster=t.v}if(i!==t.w){const r=e.parent(i);jJe.get(r).externalConnections=!0,n.toCluster=t.w}ORe.debug("Fix Replacing with XXX",r,i,t.name),e.setEdge(r,i,n,t.name)}}),o0e(e,0),ORe.trace(jJe)}},"adjustClustersAndEdges"),o0e=hRe((e,t)=>{var n,r;if(t>10)return void ORe.error("Bailing out");let i=e.nodes(),o=!1;for(const a of i){const t=e.children(a);o=o||t.length>0}if(o){ORe.debug("Nodes = ",i,t);for(const o of i)if(ORe.debug("Extracting node",o,jJe,jJe.has(o)&&!jJe.get(o).externalConnections,!e.parent(o),e.node(o),e.children("D")," Depth ",t),jJe.has(o))if(!jJe.get(o).externalConnections&&e.children(o)&&e.children(o).length>0){ORe.debug("Cluster without external connections, without a parent and with children",o,t);let i="TB"===e.graph().rankdir?"LR":"TB";(null==(r=null==(n=jJe.get(o))?void 0:n.clusterData)?void 0:r.dir)&&(i=jJe.get(o).clusterData.dir,ORe.debug("Fixing dir",jJe.get(o).clusterData.dir,i));const a=new MJe({multigraph:!0,compound:!0}).setGraph({rankdir:i,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});JJe(o,e,a,o),e.setNode(o,{clusterNode:!0,id:o,clusterData:jJe.get(o).clusterData,label:jJe.get(o).label,graph:a})}else ORe.debug("Cluster ** ",o," **not meeting the criteria !externalConnections:",!jJe.get(o).externalConnections," no parent: ",!e.parent(o)," children ",e.children(o)&&e.children(o).length>0,e.children("D"),t),ORe.debug(jJe);else ORe.debug("Not a cluster",o,t);i=e.nodes(),ORe.debug("New list of nodes",i);for(const n of i){const r=e.node(n);ORe.debug(" Now next level",n,r),(null==r?void 0:r.clusterNode)&&o0e(r.graph,t+1)}}else ORe.debug("Done, no node has children",e.nodes())},"extractor"),a0e=hRe((e,t)=>{if(0===t.length)return[];let n=Object.assign([],t);return t.forEach(t=>{const r=e.children(t),i=a0e(e,r);n=[...n,...i]}),n},"sorter"),s0e=hRe(e=>a0e(e,e.children()),"sortNodesByHierarchy"),l0e=hRe((e,t,n)=>{let r=e.parent(t);for(;r&&r!==n;){const t=jJe.get(r);if(t&&!t.externalConnections)return!0;r=e.parent(r)}return!1},"isNodeInExtractableCluster"),c0e=hRe((e,t,n)=>{const r=e.children(t)??[];for(const i of r){if(i===n||HJe(i,n))continue;const r=n0e(i,e,t);if(r&&!l0e(e,r,t))return r}return null},"findSafeAnchorNode");function u0e({prepareLayout:e,measureLayout:t,runLayoutCore:n,paintLayout:r,afterPaint:i,paintOptions:o}){const a=t??d0e;return hRe(async function(t,s,l,c){const u=s.select("g");((null==l?void 0:l.insertMarkers)??LJe)(u,t.markers,t.type,t.diagramId),h0e();const h={element:u,helpers:l,options:c};h.preparedLayout=await(null==e?void 0:e(t,h));const d=await a(t,h),p=await n(t,h),f={...h,measure:d};r?await r(t,f,p):await p0e(t,f,o),await(null==i?void 0:i(t,f,p))},"render")}function h0e(){TKe(),GKe(),LKe(),GJe()}async function d0e(e,{element:t}){return await WJe(t,e)}async function p0e(e,t,n={}){var r,i;const{measure:o}=t,{groups:a}=o;for(const l of(null==(r=n.getNodes)?void 0:r.call(n,e,t))??e.nodes)(null==(i=n.skipNode)?void 0:i.call(n,l,t))||await f0e(a,l,t,n);const s=m0e(e.nodes);for(const l of e.edges)O0e(l,n)||await A0e(a,l,s,e,n,t)}async function f0e(e,t,n,r){t.clusterNode?$Ke(t):g0e(t,n,r)?await IKe(e.clusters,t):$Ke(t)}function g0e(e,t,n){var r;return!0===e.isGroup&&((null==(r=n.isCluster)?void 0:r.call(n,e,t))??!0)}function m0e(e){const t=new Map;for(const n of e)(null==n?void 0:n.id)&&t.set(n.id,n);return t}function O0e(e,t){var n;return e.isLayoutOnly||Boolean(null==(n=t.skipEdge)?void 0:n.call(t,e))}async function A0e(e,t,n,r,i,o){const a=uJe(e.edgePaths,{...t},i.clusterDb??new Map,r.type,y0e(t.start,t,n,o,i),y0e(t.end,t,n,o,i),r.diagramId,v0e(t,i));HKe(t)&&(YKe.has(t.id)||await JKe(e.edgeLabels,t),b0e(t,a))}function y0e(e,t,n,r,i){var o;return(null==(o=i.getEdgeNode)?void 0:o.call(i,e,t,r))??(e?n.get(e)??{}:{})}function v0e(e,t){return"function"==typeof t.skipIntersect?t.skipIntersect(e):t.skipIntersect??!1}function b0e(e,t){const n=(null==t?void 0:t.updatedPath)??(null==t?void 0:t.originalPath),r=NBe(),{subGraphTitleTotalMargin:i}=xKe({flowchart:r.flowchart??{}});if(e.label){const r=YKe.get(e.id);let o=e.x,a=e.y;if(n){const r=YWe.calcLabelPosition(n);ORe.debug("Moving label "+e.label+" from (",o,",",a,") to (",r.x,",",r.y,") abc88"),(null==t?void 0:t.updatedPath)&&(o=r.x,a=r.y)}r.attr("transform",`translate(${o}, ${a+i/2})`)}if(null==e?void 0:e.startLabelLeft){const t=ZKe.get(e.id).startLeft;let r=null==e?void 0:e.x,i=null==e?void 0:e.y;if(n){const t=YWe.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",n);r=t.x,i=t.y}t.attr("transform",`translate(${r}, ${i})`)}if(e.startLabelRight){const t=ZKe.get(e.id).startRight;let r=e.x,i=e.y;if(n){const t=YWe.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",n);r=t.x,i=t.y}t.attr("transform",`translate(${r}, ${i})`)}if(e.endLabelLeft){const t=ZKe.get(e.id).endLeft;let r=e.x,i=e.y;if(n){const t=YWe.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",n);r=t.x,i=t.y}t.attr("transform",`translate(${r}, ${i})`)}if(e.endLabelRight){const t=ZKe.get(e.id).endRight;let r=e.x,i=e.y;if(n){const t=YWe.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",n);r=t.x,i=t.y}t.attr("transform",`translate(${r}, ${i})`)}}function x0e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}hRe(u0e,"createCommonLayoutRenderer"),hRe(h0e,"clearLayoutRenderState"),hRe(d0e,"defaultMeasureLayout"),hRe(p0e,"paintLayoutData"),hRe(f0e,"paintLayoutNode"),hRe(g0e,"shouldPaintAsCluster"),hRe(m0e,"buildNodeLookup"),hRe(O0e,"shouldSkipPaintEdge"),hRe(A0e,"paintLayoutEdge"),hRe(y0e,"getRenderedNode"),hRe(v0e,"shouldSkipIntersect"),hRe(b0e,"positionRenderedEdgeLabel"),hRe(x0e,"getDefaultExportFromCjs");var w0e,k0e,S0e,T0e,$0e,_0e,C0e,Q0e,P0e,E0e,R0e,B0e,I0e,L0e,D0e,M0e,N0e,X0e,F0e,U0e,z0e,q0e,V0e,W0e,j0e,Y0e,Z0e,G0e,H0e,K0e,J0e,e1e,t1e,n1e,r1e,i1e,o1e,a1e,s1e,l1e,c1e,u1e,h1e,d1e,p1e={},f1e={},g1e={};function m1e(){if(w0e)return g1e;function e(e){return null==e}function t(e){return"object"==typeof e&&null!==e}function n(t){return Array.isArray(t)?t:e(t)?[]:[t]}function r(e,t){if(t){const n=Object.keys(t);for(let r=0,i=n.length;r<i;r+=1){const i=n[r];e[i]=t[i]}}return e}function i(e,t){let n="";for(let r=0;r<t;r+=1)n+=e;return n}function o(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e}return w0e=1,hRe(e,"isNothing"),hRe(t,"isObject"),hRe(n,"toArray"),hRe(r,"extend"),hRe(i,"repeat"),hRe(o,"isNegativeZero"),g1e.isNothing=e,g1e.isObject=t,g1e.toArray=n,g1e.repeat=i,g1e.isNegativeZero=o,g1e.extend=r,g1e}function O1e(){if(S0e)return k0e;function e(e,t){let n="";const r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),r+" "+n):r}function t(t,n){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=n,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}return S0e=1,hRe(e,"formatError"),hRe(t,"YAMLException2"),t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=hRe(function(t){return this.name+": "+e(this,t)},"toString"),k0e=t}function A1e(){if($0e)return T0e;$0e=1;const e=m1e();function t(e,t,n,r,i){let o="",a="";const s=Math.floor(i/2)-1;return r-t>s&&(o=" ... ",t=r-s+o.length),n-r>s&&(a=" ...",n=r+s-a.length),{str:o+e.slice(t,n).replace(/\t/g,"→")+a,pos:r-t+o.length}}function n(t,n){return e.repeat(" ",n-t.length)+t}function r(r,i){if(i=Object.create(i||null),!r.buffer)return null;i.maxLength||(i.maxLength=79),"number"!=typeof i.indent&&(i.indent=1),"number"!=typeof i.linesBefore&&(i.linesBefore=3),"number"!=typeof i.linesAfter&&(i.linesAfter=2);const o=/\r?\n|\r|\0/g,a=[0],s=[];let l,c=-1;for(;l=o.exec(r.buffer);)s.push(l.index),a.push(l.index+l[0].length),r.position<=l.index&&c<0&&(c=a.length-2);c<0&&(c=a.length-1);let u="";const h=Math.min(r.line+i.linesAfter,s.length).toString().length,d=i.maxLength-(i.indent+h+3);for(let f=1;f<=i.linesBefore&&!(c-f<0);f++){const o=t(r.buffer,a[c-f],s[c-f],r.position-(a[c]-a[c-f]),d);u=e.repeat(" ",i.indent)+n((r.line-f+1).toString(),h)+" | "+o.str+"\n"+u}const p=t(r.buffer,a[c],s[c],r.position,d);u+=e.repeat(" ",i.indent)+n((r.line+1).toString(),h)+" | "+p.str+"\n",u+=e.repeat("-",i.indent+h+3+p.pos)+"^\n";for(let f=1;f<=i.linesAfter&&!(c+f>=s.length);f++){const o=t(r.buffer,a[c+f],s[c+f],r.position-(a[c]-a[c+f]),d);u+=e.repeat(" ",i.indent)+n((r.line+f+1).toString(),h)+" | "+o.str+"\n"}return u.replace(/\n$/,"")}return hRe(t,"getLine"),hRe(n,"padStart"),hRe(r,"makeSnippet"),T0e=r}function y1e(){if(C0e)return _0e;C0e=1;const e=O1e(),t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],n=["scalar","sequence","mapping"];function r(e){const t={};return null!==e&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}function i(i,o){if(o=o||{},Object.keys(o).forEach(function(n){if(-1===t.indexOf(n))throw new e('Unknown option "'+n+'" is met in definition of "'+i+'" YAML type.')}),this.options=o,this.tag=i,this.kind=o.kind||null,this.resolve=o.resolve||function(){return!0},this.construct=o.construct||function(e){return e},this.instanceOf=o.instanceOf||null,this.predicate=o.predicate||null,this.represent=o.represent||null,this.representName=o.representName||null,this.defaultStyle=o.defaultStyle||null,this.multi=o.multi||!1,this.styleAliases=r(o.styleAliases||null),-1===n.indexOf(this.kind))throw new e('Unknown kind "'+this.kind+'" is specified for "'+i+'" YAML type.')}return hRe(r,"compileStyleAliases"),hRe(i,"Type2"),_0e=i}function v1e(){if(P0e)return Q0e;P0e=1;const e=O1e(),t=y1e();function n(e,t){const n=[];return e[t].forEach(function(e){let t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function r(){const e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function t(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}hRe(t,"collectType");for(let n=0,r=arguments.length;n<r;n+=1)arguments[n].forEach(t);return e}function i(e){return this.extend(e)}return hRe(n,"compileList"),hRe(r,"compileMap"),hRe(i,"Schema2"),i.prototype.extend=hRe(function(o){let a=[],s=[];if(o instanceof t)s.push(o);else if(Array.isArray(o))s=s.concat(o);else{if(!o||!Array.isArray(o.implicit)&&!Array.isArray(o.explicit))throw new e("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");o.implicit&&(a=a.concat(o.implicit)),o.explicit&&(s=s.concat(o.explicit))}a.forEach(function(n){if(!(n instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(n.loadKind&&"scalar"!==n.loadKind)throw new e("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(n.multi)throw new e("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),s.forEach(function(n){if(!(n instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.")});const l=Object.create(i.prototype);return l.implicit=(this.implicit||[]).concat(a),l.explicit=(this.explicit||[]).concat(s),l.compiledImplicit=n(l,"implicit"),l.compiledExplicit=n(l,"explicit"),l.compiledTypeMap=r(l.compiledImplicit,l.compiledExplicit),l},"extend"),Q0e=i}function b1e(){if(R0e)return E0e;R0e=1;const e=y1e();return E0e=new e("tag:yaml.org,2002:str",{kind:"scalar",construct:hRe(function(e){return null!==e?e:""},"construct")})}function x1e(){if(I0e)return B0e;I0e=1;const e=y1e();return B0e=new e("tag:yaml.org,2002:seq",{kind:"sequence",construct:hRe(function(e){return null!==e?e:[]},"construct")})}function w1e(){if(D0e)return L0e;D0e=1;const e=y1e();return L0e=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:hRe(function(e){return null!==e?e:{}},"construct")})}function k1e(){if(N0e)return M0e;N0e=1;const e=v1e();return M0e=new e({explicit:[b1e(),x1e(),w1e()]})}function S1e(){if(F0e)return X0e;F0e=1;const e=y1e();function t(e){if(null===e)return!0;const t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)}function n(){return null}function r(e){return null===e}return hRe(t,"resolveYamlNull"),hRe(n,"constructYamlNull"),hRe(r,"isNull"),X0e=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:t,construct:n,predicate:r,represent:{canonical:hRe(function(){return"~"},"canonical"),lowercase:hRe(function(){return"null"},"lowercase"),uppercase:hRe(function(){return"NULL"},"uppercase"),camelcase:hRe(function(){return"Null"},"camelcase"),empty:hRe(function(){return""},"empty")},defaultStyle:"lowercase"})}function T1e(){if(z0e)return U0e;z0e=1;const e=y1e();function t(e){if(null===e)return!1;const t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)}function n(e){return"true"===e||"True"===e||"TRUE"===e}function r(e){return"[object Boolean]"===Object.prototype.toString.call(e)}return hRe(t,"resolveYamlBoolean"),hRe(n,"constructYamlBoolean"),hRe(r,"isBoolean"),U0e=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:t,construct:n,predicate:r,represent:{lowercase:hRe(function(e){return e?"true":"false"},"lowercase"),uppercase:hRe(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:hRe(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"})}function $1e(){if(V0e)return q0e;V0e=1;const e=m1e(),t=y1e();function n(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function r(e){return e>=48&&e<=55}function i(e){return e>=48&&e<=57}function o(e){if(null===e)return!1;const t=e.length;let o=0,s=!1;if(!t)return!1;let l=e[o];if("-"!==l&&"+"!==l||(l=e[++o]),"0"===l){if(o+1===t)return!0;if(l=e[++o],"b"===l){for(o++;o<t;o++){if(l=e[o],"0"!==l&&"1"!==l)return!1;s=!0}return s&&isFinite(a(e))}if("x"===l){for(o++;o<t;o++){if(!n(e.charCodeAt(o)))return!1;s=!0}return s&&isFinite(a(e))}if("o"===l){for(o++;o<t;o++){if(!r(e.charCodeAt(o)))return!1;s=!0}return s&&isFinite(a(e))}}for(;o<t;o++){if(!i(e.charCodeAt(o)))return!1;s=!0}return!!s&&isFinite(a(e))}function a(e){let t=e,n=1,r=t[0];if("-"!==r&&"+"!==r||("-"===r&&(n=-1),t=t.slice(1),r=t[0]),"0"===t)return 0;if("0"===r){if("b"===t[1])return n*parseInt(t.slice(2),2);if("x"===t[1])return n*parseInt(t.slice(2),16);if("o"===t[1])return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function s(e){return a(e)}function l(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!e.isNegativeZero(t)}return hRe(n,"isHexCode"),hRe(r,"isOctCode"),hRe(i,"isDecCode"),hRe(o,"resolveYamlInteger"),hRe(a,"parseYamlInteger"),hRe(s,"constructYamlInteger"),hRe(l,"isInteger"),q0e=new t("tag:yaml.org,2002:int",{kind:"scalar",resolve:o,construct:s,predicate:l,represent:{binary:hRe(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:hRe(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:hRe(function(e){return e.toString(10)},"decimal"),hexadecimal:hRe(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})}function _1e(){if(j0e)return W0e;j0e=1;const e=m1e(),t=y1e(),n=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),r=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function i(e){return null!==e&&(!!n.test(e)&&(!!isFinite(parseFloat(e,10))||r.test(e)))}function o(e){let t=e.toLowerCase();const n="-"===t[0]?-1:1;return"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)}hRe(i,"resolveYamlFloat"),hRe(o,"constructYamlFloat");const a=/^[-+]?[0-9]+e/;function s(t,n){if(isNaN(t))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(t))return"-0.0";const r=t.toString(10);return a.test(r)?r.replace("e",".e"):r}function l(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||e.isNegativeZero(t))}return hRe(s,"representYamlFloat"),hRe(l,"isFloat"),W0e=new t("tag:yaml.org,2002:float",{kind:"scalar",resolve:i,construct:o,predicate:l,represent:s,defaultStyle:"lowercase"})}function C1e(){return Z0e?Y0e:(Z0e=1,Y0e=k1e().extend({implicit:[S1e(),T1e(),$1e(),_1e()]}))}function Q1e(){return H0e?G0e:(H0e=1,G0e=C1e())}function P1e(){if(J0e)return K0e;J0e=1;const e=y1e(),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),n=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function r(e){return null!==e&&(null!==t.exec(e)||null!==n.exec(e))}function i(e){let r=0,i=null,o=t.exec(e);if(null===o&&(o=n.exec(e)),null===o)throw new Error("Date resolve error");const a=+o[1],s=+o[2]-1,l=+o[3];if(!o[4])return new Date(Date.UTC(a,s,l));const c=+o[4],u=+o[5],h=+o[6];if(o[7]){for(r=o[7].slice(0,3);r.length<3;)r+="0";r=+r}if(o[9]){i=6e4*(60*+o[10]+ +(o[11]||0)),"-"===o[9]&&(i=-i)}const d=new Date(Date.UTC(a,s,l,c,u,h,r));return i&&d.setTime(d.getTime()-i),d}function o(e){return e.toISOString()}return hRe(r,"resolveYamlTimestamp"),hRe(i,"constructYamlTimestamp"),hRe(o,"representYamlTimestamp"),K0e=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:r,construct:i,instanceOf:Date,represent:o})}function E1e(){if(t1e)return e1e;t1e=1;const e=y1e();function t(e){return"<<"===e||null===e}return hRe(t,"resolveYamlMerge"),e1e=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:t})}function R1e(){if(r1e)return n1e;r1e=1;const e=y1e(),t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function n(e){if(null===e)return!1;let n=0;const r=e.length,i=t;for(let t=0;t<r;t++){const r=i.indexOf(e.charAt(t));if(!(r>64)){if(r<0)return!1;n+=6}}return n%8==0}function r(e){const n=e.replace(/[\r\n=]/g,""),r=n.length,i=t;let o=0;const a=[];for(let t=0;t<r;t++)t%4==0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)),o=o<<6|i.indexOf(n.charAt(t));const s=r%4*6;return 0===s?(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)):18===s?(a.push(o>>10&255),a.push(o>>2&255)):12===s&&a.push(o>>4&255),new Uint8Array(a)}function i(e){let n="",r=0;const i=e.length,o=t;for(let t=0;t<i;t++)t%3==0&&t&&(n+=o[r>>18&63],n+=o[r>>12&63],n+=o[r>>6&63],n+=o[63&r]),r=(r<<8)+e[t];const a=i%3;return 0===a?(n+=o[r>>18&63],n+=o[r>>12&63],n+=o[r>>6&63],n+=o[63&r]):2===a?(n+=o[r>>10&63],n+=o[r>>4&63],n+=o[r<<2&63],n+=o[64]):1===a&&(n+=o[r>>2&63],n+=o[r<<4&63],n+=o[64],n+=o[64]),n}function o(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)}return hRe(n,"resolveYamlBinary"),hRe(r,"constructYamlBinary"),hRe(i,"representYamlBinary"),hRe(o,"isBinary"),n1e=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:n,construct:r,predicate:o,represent:i})}function B1e(){if(o1e)return i1e;o1e=1;const e=y1e(),t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;function r(e){if(null===e)return!0;const r=[],i=e;for(let o=0,a=i.length;o<a;o+=1){const e=i[o];let a,s=!1;if("[object Object]"!==n.call(e))return!1;for(a in e)if(t.call(e,a)){if(s)return!1;s=!0}if(!s)return!1;if(-1!==r.indexOf(a))return!1;r.push(a)}return!0}function i(e){return null!==e?e:[]}return hRe(r,"resolveYamlOmap"),hRe(i,"constructYamlOmap"),i1e=new e("tag:yaml.org,2002:omap",{kind:"sequence",resolve:r,construct:i})}function I1e(){if(s1e)return a1e;s1e=1;const e=y1e(),t=Object.prototype.toString;function n(e){if(null===e)return!0;const n=e,r=new Array(n.length);for(let i=0,o=n.length;i<o;i+=1){const e=n[i];if("[object Object]"!==t.call(e))return!1;const o=Object.keys(e);if(1!==o.length)return!1;r[i]=[o[0],e[o[0]]]}return!0}function r(e){if(null===e)return[];const t=e,n=new Array(t.length);for(let r=0,i=t.length;r<i;r+=1){const e=t[r],i=Object.keys(e);n[r]=[i[0],e[i[0]]]}return n}return hRe(n,"resolveYamlPairs"),hRe(r,"constructYamlPairs"),a1e=new e("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:n,construct:r})}function L1e(){if(c1e)return l1e;c1e=1;const e=y1e(),t=Object.prototype.hasOwnProperty;function n(e){if(null===e)return!0;const n=e;for(const r in n)if(t.call(n,r)&&null!==n[r])return!1;return!0}function r(e){return null!==e?e:{}}return hRe(n,"resolveYamlSet"),hRe(r,"constructYamlSet"),l1e=new e("tag:yaml.org,2002:set",{kind:"mapping",resolve:n,construct:r})}function D1e(){return h1e?u1e:(h1e=1,u1e=Q1e().extend({implicit:[P1e(),E1e()],explicit:[R1e(),B1e(),I1e(),L1e()]}))}function M1e(){if(d1e)return f1e;d1e=1;const e=m1e(),t=O1e(),n=A1e(),r=D1e(),i=Object.prototype.hasOwnProperty,o=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,a=/[\x85\u2028\u2029]/,s=/[,\[\]{}]/,l=/^(?:!|!!|![0-9A-Za-z-]+!)$/,c=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function u(e){return Object.prototype.toString.call(e)}function h(e){return 10===e||13===e}function d(e){return 9===e||32===e}function p(e){return 9===e||32===e||10===e||13===e}function f(e){return 44===e||91===e||93===e||123===e||125===e}function g(e){if(e>=48&&e<=57)return e-48;const t=32|e;return t>=97&&t<=102?t-97+10:-1}function m(e){return 120===e?2:117===e?4:85===e?8:0}function O(e){return e>=48&&e<=57?e-48:-1}function A(e){switch(e){case 48:return"\0";case 97:return"";case 98:return"\b";case 116:case 9:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"
";case 95:return" ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function y(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}function v(e,t,n){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}hRe(u,"_class"),hRe(h,"isEol"),hRe(d,"isWhiteSpace"),hRe(p,"isWsOrEol"),hRe(f,"isFlowIndicator"),hRe(g,"fromHexCode"),hRe(m,"escapedHexLen"),hRe(O,"fromDecimalCode"),hRe(A,"simpleEscapeSequence"),hRe(y,"charFromCodepoint"),hRe(v,"setProperty");const b=new Array(256),x=new Array(256);for(let re=0;re<256;re++)b[re]=A(re)?1:0,x[re]=A(re);function w(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||r,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.maxDepth="number"==typeof t.maxDepth?t.maxDepth:100,this.maxTotalMergeKeys="number"==typeof t.maxTotalMergeKeys?t.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function k(e,r){const i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=n(i),new t(r,i)}function S(e,t){throw k(e,t)}function T(e,t){e.onWarning&&e.onWarning.call(null,k(e,t))}function $(e,t,n){const r=e.anchorMapTransactions;if(0!==r.length){const n=r[r.length-1];i.call(n,t)||(n[t]={existed:i.call(e.anchorMap,t),value:e.anchorMap[t]})}e.anchorMap[t]=n}function _(e){e.anchorMapTransactions.push(Object.create(null))}function C(e){const t=e.anchorMapTransactions.pop(),n=e.anchorMapTransactions;if(0===n.length)return;const r=n[n.length-1],o=Object.keys(t);for(let a=0,s=o.length;a<s;a+=1){const e=o[a];i.call(r,e)||(r[e]=t[e])}}function Q(e){const t=e.anchorMapTransactions.pop(),n=Object.keys(t);for(let r=n.length-1;r>=0;r-=1){const i=t[n[r]];i.existed?e.anchorMap[n[r]]=i.value:delete e.anchorMap[n[r]]}}function P(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}function E(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.tag=t.tag,e.anchor=t.anchor,e.kind=t.kind,e.result=t.result}hRe(w,"State"),hRe(k,"generateError"),hRe(S,"throwError"),hRe(T,"throwWarning"),hRe($,"storeAnchor"),hRe(_,"beginAnchorTransaction"),hRe(C,"commitAnchorTransaction"),hRe(Q,"rollbackAnchorTransaction"),hRe(P,"snapshotState"),hRe(E,"restoreState");const R={YAML:hRe(function(e,t,n){null!==e.version&&S(e,"duplication of %YAML directive"),1!==n.length&&S(e,"YAML directive accepts exactly one argument");const r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);null===r&&S(e,"ill-formed argument of the YAML directive");const i=parseInt(r[1],10),o=parseInt(r[2],10);1!==i&&S(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&T(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:hRe(function(e,t,n){let r;2!==n.length&&S(e,"TAG directive accepts exactly two arguments");const o=n[0];r=n[1],l.test(o)||S(e,"ill-formed tag handle (first argument) of the TAG directive"),i.call(e.tagMap,o)&&S(e,'there is a previously declared suffix for "'+o+'" tag handle'),c.test(r)||S(e,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch(a){S(e,"tag prefix is malformed: "+r)}e.tagMap[o]=r},"handleTagDirective")};function B(e,t,n,r){if(t<n){const i=e.input.slice(t,n);if(r)for(let t=0,n=i.length;t<n;t+=1){const n=i.charCodeAt(t);9===n||n>=32&&n<=1114111||S(e,"expected valid JSON character")}else o.test(i)&&S(e,"the stream contains non-printable characters");e.result+=i}}function I(t,n,r,o){e.isObject(r)||S(t,"cannot merge mappings; the provided source object is unacceptable");const a=Object.keys(r);for(let e=0,s=a.length;e<s;e+=1){const s=a[e];-1!==t.maxTotalMergeKeys&&++t.totalMergeKeys>t.maxTotalMergeKeys&&S(t,"merge keys exceeded maxTotalMergeKeys ("+t.maxTotalMergeKeys+")"),i.call(n,s)||(v(n,s,r[s]),o[s]=!0)}}function L(e,t,n,r,o,a,s,l,c){if(Array.isArray(o))for(let i=0,h=(o=Array.prototype.slice.call(o)).length;i<h;i+=1)Array.isArray(o[i])&&S(e,"nested arrays are not supported inside keys"),"object"==typeof o&&"[object Object]"===u(o[i])&&(o[i]="[object Object]");if("object"==typeof o&&"[object Object]"===u(o)&&(o="[object Object]"),o=String(o),null===t&&(t={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(a))for(let i=0,u=a.length;i<u;i+=1)I(e,t,a[i],n);else I(e,t,a,n);else e.json||i.call(n,o)||!i.call(t,o)||(e.line=s||e.line,e.lineStart=l||e.lineStart,e.position=c||e.position,S(e,"duplicated mapping key")),v(t,o,a),delete n[o];return t}function D(e){const t=e.input.charCodeAt(e.position);10===t?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):S(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function M(e,t,n){let r=0,i=e.input.charCodeAt(e.position);for(;0!==i;){for(;d(i);)9===i&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&35===i)do{i=e.input.charCodeAt(++e.position)}while(10!==i&&13!==i&&0!==i);if(!h(i))break;for(D(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position)}return-1!==n&&0!==r&&e.lineIndent<n&&T(e,"deficient indentation"),r}function N(e){let t=e.position,n=e.input.charCodeAt(t);return!(45!==n&&46!==n||n!==e.input.charCodeAt(t+1)||n!==e.input.charCodeAt(t+2)||(t+=3,n=e.input.charCodeAt(t),0!==n&&!p(n)))}function X(t,n){1===n?t.result+=" ":n>1&&(t.result+=e.repeat("\n",n-1))}function F(e,t,n){let r,i,o,a,s,l;const c=e.kind,u=e.result;let g=e.input.charCodeAt(e.position);if(p(g)||f(g)||35===g||38===g||42===g||33===g||124===g||62===g||39===g||34===g||37===g||64===g||96===g)return!1;if(63===g||45===g){const t=e.input.charCodeAt(e.position+1);if(p(t)||n&&f(t))return!1}for(e.kind="scalar",e.result="",r=i=e.position,o=!1;0!==g;){if(58===g){const t=e.input.charCodeAt(e.position+1);if(p(t)||n&&f(t))break}else if(35===g){if(p(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&N(e)||n&&f(g))break;if(h(g)){if(a=e.line,s=e.lineStart,l=e.lineIndent,M(e,!1,-1),e.lineIndent>=t){o=!0,g=e.input.charCodeAt(e.position);continue}e.position=i,e.line=a,e.lineStart=s,e.lineIndent=l;break}}o&&(B(e,r,i,!1),X(e,e.line-a),r=i=e.position,o=!1),d(g)||(i=e.position+1),g=e.input.charCodeAt(++e.position)}return B(e,r,i,!1),!!e.result||(e.kind=c,e.result=u,!1)}function U(e,t){let n,r,i=e.input.charCodeAt(e.position);if(39!==i)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(i=e.input.charCodeAt(e.position));)if(39===i){if(B(e,n,e.position,!0),i=e.input.charCodeAt(++e.position),39!==i)return!0;n=e.position,e.position++,r=e.position}else h(i)?(B(e,n,r,!0),X(e,M(e,!1,t)),n=r=e.position):e.position===e.lineStart&&N(e)?S(e,"unexpected end of the document within a single quoted scalar"):(e.position++,d(i)||(r=e.position));S(e,"unexpected end of the stream within a single quoted scalar")}function z(e,t){let n,r,i,o=e.input.charCodeAt(e.position);if(34!==o)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(o=e.input.charCodeAt(e.position));){if(34===o)return B(e,n,e.position,!0),e.position++,!0;if(92===o){if(B(e,n,e.position,!0),o=e.input.charCodeAt(++e.position),h(o))M(e,!1,t);else if(o<256&&b[o])e.result+=x[o],e.position++;else if((i=m(o))>0){let t=i,n=0;for(;t>0;t--)o=e.input.charCodeAt(++e.position),(i=g(o))>=0?n=(n<<4)+i:S(e,"expected hexadecimal character");e.result+=y(n),e.position++}else S(e,"unknown escape sequence");n=r=e.position}else h(o)?(B(e,n,r,!0),X(e,M(e,!1,t)),n=r=e.position):e.position===e.lineStart&&N(e)?S(e,"unexpected end of the document within a double quoted scalar"):(e.position++,d(o)||(r=e.position))}S(e,"unexpected end of the stream within a double quoted scalar")}function q(e,t){let n,r,i,o=!0;const a=e.tag;let s;const l=e.anchor;let c,u,h,d;const f=Object.create(null);let g,m,O,A=e.input.charCodeAt(e.position);if(91===A)c=93,d=!1,s=[];else{if(123!==A)return!1;c=125,d=!0,s={}}for(null!==e.anchor&&$(e,e.anchor,s),A=e.input.charCodeAt(++e.position);0!==A;){if(M(e,!0,t),A=e.input.charCodeAt(e.position),A===c)return e.position++,e.tag=a,e.anchor=l,e.kind=d?"mapping":"sequence",e.result=s,!0;if(o?44===A&&S(e,"expected the node content, but found ','"):S(e,"missed comma between flow collection entries"),m=g=O=null,u=h=!1,63===A){p(e.input.charCodeAt(e.position+1))&&(u=h=!0,e.position++,M(e,!0,t))}n=e.line,r=e.lineStart,i=e.position,K(e,t,1,!1,!0),m=e.tag,g=e.result,M(e,!0,t),A=e.input.charCodeAt(e.position),!h&&e.line!==n||58!==A||(u=!0,A=e.input.charCodeAt(++e.position),M(e,!0,t),K(e,t,1,!1,!0),O=e.result),d?L(e,s,f,m,g,O,n,r,i):u?s.push(L(e,null,f,m,g,O,n,r,i)):s.push(g),M(e,!0,t),A=e.input.charCodeAt(e.position),44===A?(o=!0,A=e.input.charCodeAt(++e.position)):o=!1}S(e,"unexpected end of the stream within a flow collection")}function V(t,n){let r,i,o=1,a=!1,s=!1,l=n,c=0,u=!1,p=t.input.charCodeAt(t.position);if(124===p)r=!1;else{if(62!==p)return!1;r=!0}for(t.kind="scalar",t.result="";0!==p;)if(p=t.input.charCodeAt(++t.position),43===p||45===p)1===o?o=43===p?3:2:S(t,"repeat of a chomping mode identifier");else{if(!((i=O(p))>=0))break;0===i?S(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?S(t,"repeat of an indentation width identifier"):(l=n+i-1,s=!0)}if(d(p)){do{p=t.input.charCodeAt(++t.position)}while(d(p));if(35===p)do{p=t.input.charCodeAt(++t.position)}while(!h(p)&&0!==p)}for(;0!==p;){for(D(t),t.lineIndent=0,p=t.input.charCodeAt(t.position);(!s||t.lineIndent<l)&&32===p;)t.lineIndent++,p=t.input.charCodeAt(++t.position);if(!s&&t.lineIndent>l&&(l=t.lineIndent),h(p)){c++;continue}if(s||0!==l||S(t,"missing indentation for block scalar"),t.lineIndent<l){3===o?t.result+=e.repeat("\n",a?1+c:c):1===o&&a&&(t.result+="\n");break}r?d(p)?(u=!0,t.result+=e.repeat("\n",a?1+c:c)):u?(u=!1,t.result+=e.repeat("\n",c+1)):0===c?a&&(t.result+=" "):t.result+=e.repeat("\n",c):t.result+=e.repeat("\n",a?1+c:c),a=!0,s=!0,c=0;const n=t.position;for(;!h(p)&&0!==p;)p=t.input.charCodeAt(++t.position);B(t,n,t.position,!1)}return!0}function W(e,t){const n=e.tag,r=e.anchor,i=[];let o=!1;if(-1!==e.firstTabInLine)return!1;null!==e.anchor&&$(e,e.anchor,i);let a=e.input.charCodeAt(e.position);for(;0!==a&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,S(e,"tab characters must not be used in indentation")),45===a);){if(!p(e.input.charCodeAt(e.position+1)))break;if(o=!0,e.position++,M(e,!0,-1)&&e.lineIndent<=t){i.push(null),a=e.input.charCodeAt(e.position);continue}const n=e.line;if(K(e,t,3,!1,!0),i.push(e.result),M(e,!0,-1),a=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==a)S(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return!!o&&(e.tag=n,e.anchor=r,e.kind="sequence",e.result=i,!0)}function j(e,t,n){let r,i,o,a;const s=e.tag,l=e.anchor,c={},u=Object.create(null);let h=null,f=null,g=null,m=!1,O=!1;if(-1!==e.firstTabInLine)return!1;null!==e.anchor&&$(e,e.anchor,c);let A=e.input.charCodeAt(e.position);for(;0!==A;){m||-1===e.firstTabInLine||(e.position=e.firstTabInLine,S(e,"tab characters must not be used in indentation"));const y=e.input.charCodeAt(e.position+1),v=e.line;if(63!==A&&58!==A||!p(y)){if(i=e.line,o=e.lineStart,a=e.position,!K(e,n,2,!1,!0))break;if(e.line===v){for(A=e.input.charCodeAt(e.position);d(A);)A=e.input.charCodeAt(++e.position);if(58===A)A=e.input.charCodeAt(++e.position),p(A)||S(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(L(e,c,u,h,f,null,i,o,a),h=f=g=null),O=!0,m=!1,r=!1,h=e.tag,f=e.result;else{if(!O)return e.tag=s,e.anchor=l,!0;S(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!O)return e.tag=s,e.anchor=l,!0;S(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===A?(m&&(L(e,c,u,h,f,null,i,o,a),h=f=g=null),O=!0,m=!0,r=!0):m?(m=!1,r=!0):S(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,A=y;if((e.line===v||e.lineIndent>t)&&(m&&(i=e.line,o=e.lineStart,a=e.position),K(e,t,4,!0,r)&&(m?f=e.result:g=e.result),m||(L(e,c,u,h,f,g,i,o,a),h=f=g=null),M(e,!0,-1),A=e.input.charCodeAt(e.position)),(e.line===v||e.lineIndent>t)&&0!==A)S(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&L(e,c,u,h,f,null,i,o,a),O&&(e.tag=s,e.anchor=l,e.kind="mapping",e.result=c),O}function Y(e){let t,n,r=!1,o=!1,a=e.input.charCodeAt(e.position);if(33!==a)return!1;null!==e.tag&&S(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),60===a?(r=!0,a=e.input.charCodeAt(++e.position)):33===a?(o=!0,t="!!",a=e.input.charCodeAt(++e.position)):t="!";let u=e.position;if(r){do{a=e.input.charCodeAt(++e.position)}while(0!==a&&62!==a);e.position<e.length?(n=e.input.slice(u,e.position),a=e.input.charCodeAt(++e.position)):S(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==a&&!p(a);)33===a&&(o?S(e,"tag suffix cannot contain exclamation marks"):(t=e.input.slice(u-1,e.position+1),l.test(t)||S(e,"named tag handle cannot contain such characters"),o=!0,u=e.position+1)),a=e.input.charCodeAt(++e.position);n=e.input.slice(u,e.position),s.test(n)&&S(e,"tag suffix cannot contain flow indicator characters")}n&&!c.test(n)&&S(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(h){S(e,"tag name is malformed: "+n)}return r?e.tag=n:i.call(e.tagMap,t)?e.tag=e.tagMap[t]+n:"!"===t?e.tag="!"+n:"!!"===t?e.tag="tag:yaml.org,2002:"+n:S(e,'undeclared tag handle "'+t+'"'),!0}function Z(e){let t=e.input.charCodeAt(e.position);if(38!==t)return!1;null!==e.anchor&&S(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position);const n=e.position;for(;0!==t&&!p(t)&&!f(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&S(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(n,e.position),!0}function G(e){let t=e.input.charCodeAt(e.position);if(42!==t)return!1;t=e.input.charCodeAt(++e.position);const n=e.position;for(;0!==t&&!p(t)&&!f(t);)t=e.input.charCodeAt(++e.position);e.position===n&&S(e,"name of an alias node must contain at least one character");const r=e.input.slice(n,e.position);return i.call(e.anchorMap,r)||S(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],M(e,!0,-1),!0}function H(e,t,n,r){const i=P(e);return _(e),E(e,t),e.tag=null,e.anchor=null,e.kind=null,e.result=null,j(e,n,r)&&"mapping"===e.kind?(C(e),!0):(Q(e),E(e,i),!1)}function K(e,t,n,r,o){let a,s,l,c,u,h=1,d=!1,p=!1,f=null;e.depth>=e.maxDepth&&S(e,"nesting exceeded maxDepth ("+e.maxDepth+")"),e.depth+=1,null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;const g=a=s=4===n||3===n;if(r&&M(e,!0,-1)&&(d=!0,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)),1===h)for(;;){const n=e.input.charCodeAt(e.position),r=P(e);if(d&&(33===n&&null!==e.tag||38===n&&null!==e.anchor))break;if(!Y(e)&&!Z(e))break;null===f&&(f=r),M(e,!0,-1)?(d=!0,s=g,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)):s=!1}if(s&&(s=d||o),1===h||4===n)if(c=1===n||2===n?t:t+1,u=e.position-e.lineStart,1===h)if(s&&(W(e,u)||j(e,u,c))||q(e,c))p=!0;else{const t=e.input.charCodeAt(e.position);null!==f&&g&&!s&&124!==t&&62!==t&&H(e,f,f.position-f.lineStart,c)||a&&V(e,c)||U(e,c)||z(e,c)?p=!0:G(e)?(p=!0,null===e.tag&&null===e.anchor||S(e,"alias node should not have any properties")):F(e,c,1===n)&&(p=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&$(e,e.anchor,e.result)}else 0===h&&(p=s&&W(e,u));if(null===e.tag)null!==e.anchor&&$(e,e.anchor,e.result);else if("?"===e.tag){null!==e.result&&"scalar"!==e.kind&&S(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"');for(let t=0,n=e.implicitTypes.length;t<n;t+=1)if(l=e.implicitTypes[t],l.resolve(e.result)){e.result=l.construct(e.result),e.tag=l.tag,null!==e.anchor&&$(e,e.anchor,e.result);break}}else if("!"!==e.tag){if(i.call(e.typeMap[e.kind||"fallback"],e.tag))l=e.typeMap[e.kind||"fallback"][e.tag];else{l=null;const t=e.typeMap.multi[e.kind||"fallback"];for(let n=0,r=t.length;n<r;n+=1)if(e.tag.slice(0,t[n].tag.length)===t[n].tag){l=t[n];break}}l||S(e,"unknown tag !<"+e.tag+">"),null!==e.result&&l.kind!==e.kind&&S(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+l.kind+'", not "'+e.kind+'"'),l.resolve(e.result,e.tag)?(e.result=l.construct(e.result,e.tag),null!==e.anchor&&$(e,e.anchor,e.result)):S(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),e.depth-=1,null!==e.tag||null!==e.anchor||p}function J(e){const t=e.position;let n,r=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(n=e.input.charCodeAt(e.position))&&(M(e,!0,-1),n=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==n));){r=!0,n=e.input.charCodeAt(++e.position);let t=e.position;for(;0!==n&&!p(n);)n=e.input.charCodeAt(++e.position);const o=e.input.slice(t,e.position),a=[];for(o.length<1&&S(e,"directive name must not be less than one character in length");0!==n;){for(;d(n);)n=e.input.charCodeAt(++e.position);if(35===n){do{n=e.input.charCodeAt(++e.position)}while(0!==n&&!h(n));break}if(h(n))break;for(t=e.position;0!==n&&!p(n);)n=e.input.charCodeAt(++e.position);a.push(e.input.slice(t,e.position))}0!==n&&D(e),i.call(R,o)?R[o](e,o,a):T(e,'unknown document directive "'+o+'"')}M(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,M(e,!0,-1)):r&&S(e,"directives end mark is expected"),K(e,e.lineIndent-1,4,!1,!0),M(e,!0,-1),e.checkLineBreaks&&a.test(e.input.slice(t,e.position))&&T(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&N(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,M(e,!0,-1)):e.position<e.length-1&&S(e,"end of the stream or a document separator is expected")}function ee(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));const n=new w(e,t),r=e.indexOf("\0");for(-1!==r&&(n.position=r,S(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)J(n);return n.documents}function te(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);const r=ee(e,n);if("function"!=typeof t)return r;for(let i=0,o=r.length;i<o;i+=1)t(r[i])}function ne(e,n){const r=ee(e,n);if(0!==r.length){if(1===r.length)return r[0];throw new t("expected a single document in the stream, but found more")}}return hRe(B,"captureSegment"),hRe(I,"mergeMappings"),hRe(L,"storeMappingPair"),hRe(D,"readLineBreak"),hRe(M,"skipSeparationSpace"),hRe(N,"testDocumentSeparator"),hRe(X,"writeFoldedLines"),hRe(F,"readPlainScalar"),hRe(U,"readSingleQuotedScalar"),hRe(z,"readDoubleQuotedScalar"),hRe(q,"readFlowCollection"),hRe(V,"readBlockScalar"),hRe(W,"readBlockSequence"),hRe(j,"readBlockMapping"),hRe(Y,"readTagProperty"),hRe(Z,"readAnchorProperty"),hRe(G,"readAlias"),hRe(H,"tryReadBlockMappingFromProperty"),hRe(K,"composeNode"),hRe(J,"readDocument"),hRe(ee,"loadDocuments"),hRe(te,"loadAll2"),hRe(ne,"load2"),f1e.loadAll=te,f1e.load=ne,f1e}hRe(m1e,"requireCommon"),hRe(O1e,"requireException"),hRe(A1e,"requireSnippet"),hRe(y1e,"requireType"),hRe(v1e,"requireSchema"),hRe(b1e,"requireStr"),hRe(x1e,"requireSeq"),hRe(w1e,"requireMap"),hRe(k1e,"requireFailsafe"),hRe(S1e,"require_null"),hRe(T1e,"requireBool"),hRe($1e,"requireInt"),hRe(_1e,"requireFloat"),hRe(C1e,"requireJson"),hRe(Q1e,"requireCore"),hRe(P1e,"requireTimestamp"),hRe(E1e,"requireMerge"),hRe(R1e,"requireBinary"),hRe(B1e,"requireOmap"),hRe(I1e,"requirePairs"),hRe(L1e,"requireSet"),hRe(D1e,"require_default"),hRe(M1e,"requireLoader");var N1e,X1e,F1e={};function U1e(){if(N1e)return F1e;N1e=1;const e=m1e(),t=O1e(),n=D1e(),r=Object.prototype.toString,i=Object.prototype.hasOwnProperty,o=65279,a={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},s=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],l=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function c(e,t){if(null===t)return{};const n={},r=Object.keys(t);for(let o=0,a=r.length;o<a;o+=1){let a=r[o],s=String(t[a]);"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2));const l=e.compiledTypeMap.fallback[a];l&&i.call(l.styleAliases,s)&&(s=l.styleAliases[s]),n[a]=s}return n}function u(n){let r,i;const o=n.toString(16).toUpperCase();if(n<=255)r="x",i=2;else if(n<=65535)r="u",i=4;else{if(!(n<=4294967295))throw new t("code point within a string may not be greater than 0xFFFFFFFF");r="U",i=8}return"\\"+r+e.repeat("0",i-o.length)+o}hRe(c,"compileStyleMap"),hRe(u,"encodeHex");function h(t){this.schema=t.schema||n,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=e.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=c(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType='"'===t.quotingType?2:1,this.forceQuotes=t.forceQuotes||!1,this.replacer="function"==typeof t.replacer?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function d(t,n){const r=e.repeat(" ",n);let i=0,o="";const a=t.length;for(;i<a;){let e;const n=t.indexOf("\n",i);-1===n?(e=t.slice(i),i=a):(e=t.slice(i,n+1),i=n+1),e.length&&"\n"!==e&&(o+=r),o+=e}return o}function p(t,n){return"\n"+e.repeat(" ",t.indent*n)}function f(e,t){for(let n=0,r=e.implicitTypes.length;n<r;n+=1){if(e.implicitTypes[n].resolve(t))return!0}return!1}function g(e){return 32===e||9===e}function m(e){return e>=32&&e<=126||e>=161&&e<=55295&&8232!==e&&8233!==e||e>=57344&&e<=65533&&e!==o||e>=65536&&e<=1114111}function O(e){return m(e)&&e!==o&&13!==e&&10!==e}function A(e,t,n){const r=O(e),i=r&&!g(e);return(n?r:r&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!i)||O(t)&&!g(t)&&35===e||58===t&&i}function y(e){return m(e)&&e!==o&&!g(e)&&45!==e&&63!==e&&58!==e&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e&&35!==e&&38!==e&&42!==e&&33!==e&&124!==e&&61!==e&&62!==e&&39!==e&&34!==e&&37!==e&&64!==e&&96!==e}function v(e){return!g(e)&&58!==e}function b(e,t){const n=e.charCodeAt(t);let r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?1024*(n-55296)+r-56320+65536:n}function x(e){return/^\n* /.test(e)}hRe(h,"State"),hRe(d,"indentString"),hRe(p,"generateNextLine"),hRe(f,"testImplicitResolving"),hRe(g,"isWhitespace"),hRe(m,"isPrintable"),hRe(O,"isNsCharOrWhitespace"),hRe(A,"isPlainSafe"),hRe(y,"isPlainSafeFirst"),hRe(v,"isPlainSafeLast"),hRe(b,"codePointAt"),hRe(x,"needIndentIndicator");function w(e,t,n,r,i,o,a,s){let l,c=0,u=null,h=!1,d=!1;const p=-1!==r;let f=-1,g=y(b(e,0))&&v(b(e,e.length-1));if(t||a)for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=b(e,l),!m(c))return 5;g=g&&A(c,u,s),u=c}else{for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=b(e,l),10===c)h=!0,p&&(d=d||l-f-1>r&&" "!==e[f+1],f=l);else if(!m(c))return 5;g=g&&A(c,u,s),u=c}d=d||p&&l-f-1>r&&" "!==e[f+1]}return h||d?n>9&&x(e)?5:a?2===o?5:2:d?4:3:!g||a||i(e)?2===o?5:2:1}function k(e,n,r,i,o){e.dump=function(){if(0===n.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==s.indexOf(n)||l.test(n)))return 2===e.quotingType?'"'+n+'"':"'"+n+"'";const a=e.indent*Math.max(1,r),c=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),u=i||e.flowLevel>-1&&r>=e.flowLevel;function h(t){return f(e,t)}switch(hRe(h,"testAmbiguity"),w(n,u,e.indent,c,h,e.quotingType,e.forceQuotes&&!i,o)){case 1:return n;case 2:return"'"+n.replace(/'/g,"''")+"'";case 3:return"|"+S(n,e.indent)+T(d(n,a));case 4:return">"+S(n,e.indent)+T(d($(n,c),a));case 5:return'"'+C(n)+'"';default:throw new t("impossible error: invalid scalar style")}}()}function S(e,t){const n=x(e)?String(t):"",r="\n"===e[e.length-1];return n+(r&&("\n"===e[e.length-2]||"\n"===e)?"+":r?"":"-")+"\n"}function T(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function $(e,t){const n=/(\n+)([^\n]*)/g;let r,i,o=function(){let r=e.indexOf("\n");return r=-1!==r?r:e.length,n.lastIndex=r,_(e.slice(0,r),t)}(),a="\n"===e[0]||" "===e[0];for(;i=n.exec(e);){const e=i[1],n=i[2];r=" "===n[0],o+=e+(a||r||""===n?"":"\n")+_(n,t),a=r}return o}function _(e,t){if(""===e||" "===e[0])return e;const n=/ [^ ]/g;let r,i,o=0,a=0,s=0,l="";for(;r=n.exec(e);)s=r.index,s-o>t&&(i=a>o?a:s,l+="\n"+e.slice(o,i),o=i+1),a=s;return l+="\n",e.length-o>t&&a>o?l+=e.slice(o,a)+"\n"+e.slice(a+1):l+=e.slice(o),l.slice(1)}function C(e){let t="",n=0;for(let r=0;r<e.length;n>=65536?r+=2:r++){n=b(e,r);const i=a[n];!i&&m(n)?(t+=e[r],n>=65536&&(t+=e[r+1])):t+=i||u(n)}return t}function Q(e,t,n){let r="";const i=e.tag;for(let o=0,a=n.length;o<a;o+=1){let i=n[o];e.replacer&&(i=e.replacer.call(n,String(o),i)),(I(e,t,i,!1,!1)||void 0===i&&I(e,t,null,!1,!1))&&(""!==r&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump)}e.tag=i,e.dump="["+r+"]"}function P(e,t,n,r){let i="";const o=e.tag;for(let a=0,s=n.length;a<s;a+=1){let o=n[a];e.replacer&&(o=e.replacer.call(n,String(a),o)),(I(e,t+1,o,!0,!0,!1,!0)||void 0===o&&I(e,t+1,null,!0,!0,!1,!0))&&(r&&""===i||(i+=p(e,t)),e.dump&&10===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump)}e.tag=o,e.dump=i||"[]"}function E(e,t,n){let r="";const i=e.tag,o=Object.keys(n);for(let a=0,s=o.length;a<s;a+=1){let i="";""!==r&&(i+=", "),e.condenseFlow&&(i+='"');const s=o[a];let l=n[s];e.replacer&&(l=e.replacer.call(n,s,l)),I(e,t,s,!1,!1)&&(e.dump.length>1024&&(i+="? "),i+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),I(e,t,l,!1,!1)&&(i+=e.dump,r+=i))}e.tag=i,e.dump="{"+r+"}"}function R(e,n,r,i){let o="";const a=e.tag,s=Object.keys(r);if(!0===e.sortKeys)s.sort();else if("function"==typeof e.sortKeys)s.sort(e.sortKeys);else if(e.sortKeys)throw new t("sortKeys must be a boolean or a function");for(let t=0,l=s.length;t<l;t+=1){let a="";i&&""===o||(a+=p(e,n));const l=s[t];let c=r[l];if(e.replacer&&(c=e.replacer.call(r,l,c)),!I(e,n+1,l,!0,!0,!0))continue;const u=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024;u&&(e.dump&&10===e.dump.charCodeAt(0)?a+="?":a+="? "),a+=e.dump,u&&(a+=p(e,n)),I(e,n+1,c,!0,u)&&(e.dump&&10===e.dump.charCodeAt(0)?a+=":":a+=": ",a+=e.dump,o+=a)}e.tag=a,e.dump=o||"{}"}function B(e,n,o){const a=o?e.explicitTypes:e.implicitTypes;for(let s=0,l=a.length;s<l;s+=1){const l=a[s];if((l.instanceOf||l.predicate)&&(!l.instanceOf||"object"==typeof n&&n instanceof l.instanceOf)&&(!l.predicate||l.predicate(n))){if(o?l.multi&&l.representName?e.tag=l.representName(n):e.tag=l.tag:e.tag="?",l.represent){const o=e.styleMap[l.tag]||l.defaultStyle;let a;if("[object Function]"===r.call(l.represent))a=l.represent(n,o);else{if(!i.call(l.represent,o))throw new t("!<"+l.tag+'> tag resolver accepts not "'+o+'" style');a=l.represent[o](n,o)}e.dump=a}return!0}}return!1}function I(e,n,i,o,a,s,l){e.tag=null,e.dump=i,B(e,i,!1)||B(e,i,!0);const c=r.call(e.dump),u=o;o&&(o=e.flowLevel<0||e.flowLevel>n);const h="[object Object]"===c||"[object Array]"===c;let d,p;if(h&&(d=e.duplicates.indexOf(i),p=-1!==d),(null!==e.tag&&"?"!==e.tag||p||2!==e.indent&&n>0)&&(a=!1),p&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(h&&p&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),"[object Object]"===c)o&&0!==Object.keys(e.dump).length?(R(e,n,e.dump,a),p&&(e.dump="&ref_"+d+e.dump)):(E(e,n,e.dump),p&&(e.dump="&ref_"+d+" "+e.dump));else if("[object Array]"===c)o&&0!==e.dump.length?(e.noArrayIndent&&!l&&n>0?P(e,n-1,e.dump,a):P(e,n,e.dump,a),p&&(e.dump="&ref_"+d+e.dump)):(Q(e,n,e.dump),p&&(e.dump="&ref_"+d+" "+e.dump));else{if("[object String]"!==c){if("[object Undefined]"===c)return!1;if(e.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+c)}"?"!==e.tag&&k(e,e.dump,n,s,u)}if(null!==e.tag&&"?"!==e.tag){let t=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21");t="!"===e.tag[0]?"!"+t:"tag:yaml.org,2002:"===t.slice(0,18)?"!!"+t.slice(18):"!<"+t+">",e.dump=t+" "+e.dump}}return!0}function L(e,t){const n=[],r=[];D(e,n,r);const i=r.length;for(let o=0;o<i;o+=1)t.duplicates.push(n[r[o]]);t.usedDuplicates=new Array(i)}function D(e,t,n){if(null!==e&&"object"==typeof e){const r=t.indexOf(e);if(-1!==r)-1===n.indexOf(r)&&n.push(r);else if(t.push(e),Array.isArray(e))for(let i=0,o=e.length;i<o;i+=1)D(e[i],t,n);else{const r=Object.keys(e);for(let i=0,o=r.length;i<o;i+=1)D(e[r[i]],t,n)}}}function M(e,t){const n=new h(t=t||{});n.noRefs||L(e,n);let r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),I(n,0,r,!0,!0)?n.dump+"\n":""}return hRe(w,"chooseScalarStyle"),hRe(k,"writeScalar"),hRe(S,"blockHeader"),hRe(T,"dropEndingNewline"),hRe($,"foldString"),hRe(_,"foldLine"),hRe(C,"escapeString"),hRe(Q,"writeFlowSequence"),hRe(P,"writeBlockSequence"),hRe(E,"writeFlowMapping"),hRe(R,"writeBlockMapping"),hRe(B,"detectType"),hRe(I,"writeNode"),hRe(L,"getDuplicateReferences"),hRe(D,"inspectNode"),hRe(M,"dump2"),F1e.dump=M,F1e}function z1e(){if(X1e)return p1e;X1e=1;const e=M1e(),t=U1e();function n(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}return hRe(n,"renamed"),p1e.Type=y1e(),p1e.Schema=v1e(),p1e.FAILSAFE_SCHEMA=k1e(),p1e.JSON_SCHEMA=C1e(),p1e.CORE_SCHEMA=Q1e(),p1e.DEFAULT_SCHEMA=D1e(),p1e.load=e.load,p1e.loadAll=e.loadAll,p1e.dump=t.dump,p1e.YAMLException=O1e(),p1e.types={binary:R1e(),float:_1e(),map:w1e(),null:S1e(),pairs:I1e(),set:L1e(),timestamp:P1e(),bool:T1e(),int:$1e(),merge:E1e(),omap:B1e(),seq:x1e(),str:b1e()},p1e.safeLoad=n("safeLoad","load"),p1e.safeLoadAll=n("safeLoadAll","loadAll"),p1e.safeDump=n("safeDump","dump"),p1e}hRe(U1e,"requireDumper"),hRe(z1e,"requireJsYaml");var q1e=x0e(z1e()),{Type:V1e,Schema:W1e,FAILSAFE_SCHEMA:j1e,JSON_SCHEMA:Y1e,CORE_SCHEMA:Z1e,DEFAULT_SCHEMA:G1e,load:H1e,loadAll:K1e,dump:J1e,YAMLException:e2e,types:t2e,safeLoad:n2e,safeLoadAll:r2e,safeDump:i2e}=q1e,o2e={common:CIe,getConfig:NBe,insertCluster:IKe,insertEdge:uJe,insertEdgeLabel:JKe,insertMarkers:LJe,insertNode:kKe,interpolateToCurve:yWe,labelHelper:HZe,log:ORe,positionEdgeLabel:tJe},a2e={},s2e=hRe(e=>{for(const t of e)a2e[t.name]=t},"registerLayoutLoaders");hRe(()=>{s2e([{name:"dagre",loader:hRe(async()=>await Pf(()=>Promise.resolve().then(()=>kwt),void 0,import.meta.url),"loader")},{name:"swimlane",loader:hRe(async()=>await Pf(()=>Promise.resolve().then(()=>h$t),void 0,import.meta.url),"loader")},{name:"cose-bilkent",loader:hRe(async()=>await Pf(()=>Promise.resolve().then(()=>vFt),void 0,import.meta.url),"loader")}])},"registerDefaultLayoutLoaders")();var l2e=hRe(async(e,t)=>{if(!(e.layoutAlgorithm in a2e))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const u of e.nodes){const t=u.domId||u.id;u.domId=`${e.diagramId}-${t}`}const n=a2e[e.layoutAlgorithm],r=await n.loader(),{theme:i,themeVariables:o}=e.config,{useGradient:a,gradientStart:s,gradientStop:l}=o,c=t.attr("id");if(t.append("defs").append("filter").attr("id",`${c}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",""+((null==i?void 0:i.includes("dark"))?"#FFFFFF":"#000000")),t.append("defs").append("filter").attr("id",`${c}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",""+((null==i?void 0:i.includes("dark"))?"#FFFFFF":"#000000")),a){const e=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");e.append("svg:stop").attr("offset","0%").attr("stop-color",s).attr("stop-opacity",1),e.append("svg:stop").attr("offset","100%").attr("stop-color",l).attr("stop-opacity",1)}return r.render(e,t,o2e,{algorithm:n.algorithm})},"render"),c2e=hRe((e="",{fallback:t="dagre"}={})=>{if(e in a2e)return e;if(t in a2e)return ORe.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm"),u2e="comm",h2e="rule",d2e="decl",p2e="@keyframes",f2e="@layer",g2e=Math.abs,m2e=String.fromCharCode;function O2e(e){return e.trim()}function A2e(e,t,n){return e.replace(t,n)}function y2e(e,t){return 0|e.charCodeAt(t)}function v2e(e,t,n){return e.slice(t,n)}function b2e(e){return e.length}function x2e(e){return e.length}function w2e(e,t){return t.push(e),e}var k2e=1,S2e=1,T2e=0,$2e=0,_2e=0,C2e="";function Q2e(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:k2e,column:S2e,length:a,return:"",siblings:s}}function P2e(){return _2e=$2e>0?y2e(C2e,--$2e):0,S2e--,10===_2e&&(S2e=1,k2e--),_2e}function E2e(){return _2e=$2e<T2e?y2e(C2e,$2e++):0,S2e++,10===_2e&&(S2e=1,k2e++),_2e}function R2e(){return y2e(C2e,$2e)}function B2e(){return $2e}function I2e(e,t){return v2e(C2e,e,t)}function L2e(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function D2e(e){return O2e(I2e($2e-1,X2e(91===e?e+2:40===e?e+1:e)))}function M2e(e){for(;(_2e=R2e())&&_2e<33;)E2e();return L2e(e)>2||L2e(_2e)>3?"":" "}function N2e(e,t){for(;--t&&E2e()&&!(_2e<48||_2e>102||_2e>57&&_2e<65||_2e>70&&_2e<97););return I2e(e,B2e()+(t<6&&32==R2e()&&32==E2e()))}function X2e(e){for(;E2e();)switch(_2e){case e:return $2e;case 34:case 39:34!==e&&39!==e&&X2e(_2e);break;case 40:41===e&&X2e(e);break;case 92:E2e()}return $2e}function F2e(e,t){for(;E2e()&&e+_2e!==57&&(e+_2e!==84||47!==R2e()););return"/*"+I2e(t,$2e-1)+"*"+m2e(47===e?e:E2e())}function U2e(e){for(;!L2e(R2e());)E2e();return I2e(e,$2e)}function z2e(e){return function(e){return C2e="",e}(q2e("",null,null,null,[""],e=function(e){return k2e=S2e=1,T2e=b2e(C2e=e),$2e=0,[]}(e),0,[0],e))}function q2e(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,h=a,d=0,p=0,f=0,g=1,m=1,O=1,A=0,y=0,v="",b=i,x=o,w=r,k=v;m;)switch(f=y,y=E2e()){case 40:108!=f&&58==y2e(k,h-1)?(A++,k+="("):k+=D2e(y);break;case 41:A--,k+=")";break;case 34:case 39:case 91:k+=D2e(y);break;case 9:case 10:case 13:case 32:if(A>0){k+=m2e(y);break}k+=M2e(f);break;case 92:k+=N2e(B2e()-1,7);continue;case 47:switch(R2e()){case 42:case 47:w2e(W2e(F2e(E2e(),B2e()),t,n,l),l),5!=L2e(f||1)&&5!=L2e(R2e()||1)||!b2e(k)||" "===v2e(k,-1,void 0)||(k+=" ");break;default:k+="/"}break;case 123*g:s[c++]=b2e(k)*O;case 125*g:case 59:case 0:if(A>0&&y){k+=m2e(y);break}switch(y){case 0:case 125:m=0;case 59+u:-1==O&&(k=A2e(k,/\f/g,"")),p>0&&(b2e(k)-h||0===g)&&w2e(p>32?j2e(k+";",r,n,h-1,l):j2e(A2e(k," ","")+";",r,n,h-2,l),l);break;case 59:k+=";";default:if(w2e(w=V2e(k,t,n,c,u,i,s,v,b=[],x=[],h,o),o),123===y)if(0===u)q2e(k,t,w,w,b,o,h,s,x);else{switch(d){case 99:if(110===y2e(k,3))break;case 108:if(97===y2e(k,2))break;default:u=0;case 100:case 109:case 115:}u?q2e(e,w,w,r&&w2e(V2e(e,w,w,0,0,i,s,v,i,b=[],h,x),x),i,x,h,s,r?b:x):q2e(k,w,w,w,[""],x,0,s,x)}}c=u=p=0,g=O=1,v=k="",h=a;break;case 58:h=1+b2e(k),p=f;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==P2e())continue;switch(k+=m2e(y),y*g){case 38:O=u>0?1:(k+="\f",-1);break;case 44:if(A>0)break;s[c++]=(b2e(k)-1)*O,O=1;break;case 64:45===R2e()&&(k+=D2e(E2e())),d=R2e(),u=h=b2e(v=k+=U2e(B2e())),y++;break;case 45:45===f&&2==b2e(k)&&(g=0)}}return o}function V2e(e,t,n,r,i,o,a,s,l,c,u,h){for(var d=i-1,p=0===i?o:[""],f=x2e(p),g=0,m=0,O=0;g<r;++g)for(var A=0,y=v2e(e,d+1,d=g2e(m=a[g])),v=e;A<f;++A)(v=O2e(m>0?p[A]+" "+y:A2e(y,/&\f/g,p[A])))&&(l[O++]=v);return Q2e(e,t,n,0===i?h2e:s,l,c,u,h)}function W2e(e,t,n,r){return Q2e(e,t,n,u2e,m2e(_2e),v2e(e,2,-2),0,r)}function j2e(e,t,n,r,i){return Q2e(e,t,n,d2e,v2e(e,0,r),v2e(e,r+1,-1),r,i)}function Y2e(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Z2e(e,t,n,r){switch(e.type){case f2e:if(e.children.length)break;case"@import":case"@namespace":case d2e:return e.return=e.return||e.value;case u2e:return"";case p2e:return e.return=e.value+"{"+Y2e(e.children,r)+"}";case h2e:if(!b2e(e.value=e.props.join(",")))return""}return b2e(n=Y2e(e.children,r))?e.return=e.value+"{"+n+"}":""}var G2e={id:"c4",detector:hRe(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>pzt);return{diagram:e}},void 0,import.meta.url);return{id:"c4",diagram:e}},"loader")},H2e="flowchart",K2e={id:H2e,detector:hRe((e,t)=>{var n,r;return"dagre-wrapper"!==(null==(n=null==t?void 0:t.flowchart)?void 0:n.defaultRenderer)&&"elk"!==(null==(r=null==t?void 0:t.flowchart)?void 0:r.defaultRenderer)&&/^\s*graph/.test(e)},"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>Czt);return{diagram:e}},void 0,import.meta.url);return{id:H2e,diagram:e}},"loader")},J2e="flowchart-v2",e5e={id:J2e,detector:hRe((e,t)=>{var n,r,i;return"dagre-d3"!==(null==(n=null==t?void 0:t.flowchart)?void 0:n.defaultRenderer)&&("elk"===(null==(r=null==t?void 0:t.flowchart)?void 0:r.defaultRenderer)&&(t.layout="elk"),!(!/^\s*graph/.test(e)||"dagre-wrapper"!==(null==(i=null==t?void 0:t.flowchart)?void 0:i.defaultRenderer))||/^\s*flowchart/.test(e))},"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>Czt);return{diagram:e}},void 0,import.meta.url);return{id:J2e,diagram:e}},"loader")},t5e="swimlane",n5e={id:t5e,detector:hRe(e=>/^\s*swimlane-beta\b/.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>Pzt);return{diagram:e}},void 0,import.meta.url);return{id:t5e,diagram:e}},"loader")},r5e={id:"er",detector:hRe(e=>/^\s*erDiagram/.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>Uzt);return{diagram:e}},void 0,import.meta.url);return{id:"er",diagram:e}},"loader")},i5e="gitGraph",o5e={id:i5e,detector:hRe(e=>/^\s*gitGraph/.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>Mxn);return{diagram:e}},void 0,import.meta.url);return{id:i5e,diagram:e}},"loader")},a5e="gantt",s5e={id:a5e,detector:hRe(e=>/^\s*gantt/.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>Qkn);return{diagram:e}},void 0,import.meta.url);return{id:a5e,diagram:e}},"loader")},l5e="info",c5e={id:l5e,detector:hRe(e=>/^\s*info/.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>Rkn);return{diagram:e}},void 0,import.meta.url);return{id:l5e,diagram:e}},"loader")},u5e={id:"pie",detector:hRe(e=>/^\s*pie/.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>Vkn);return{diagram:e}},void 0,import.meta.url);return{id:"pie",diagram:e}},"loader")},h5e="quadrantChart",d5e={id:h5e,detector:hRe(e=>/^\s*quadrantChart/.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>OSn);return{diagram:e}},void 0,import.meta.url);return{id:h5e,diagram:e}},"loader")},p5e="xychart",f5e={id:p5e,detector:hRe(e=>/^\s*xychart(-beta)?/.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>mTn);return{diagram:e}},void 0,import.meta.url);return{id:p5e,diagram:e}},"loader")},g5e="requirement",m5e={id:g5e,detector:hRe(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>STn);return{diagram:e}},void 0,import.meta.url);return{id:g5e,diagram:e}},"loader")},O5e="sequence",A5e={id:O5e,detector:hRe(e=>/^\s*sequenceDiagram/.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>r_n);return{diagram:e}},void 0,import.meta.url);return{id:O5e,diagram:e}},"loader")},y5e="class",v5e={id:y5e,detector:hRe((e,t)=>{var n;return"dagre-wrapper"!==(null==(n=null==t?void 0:t.class)?void 0:n.defaultRenderer)&&/^\s*classDiagram/.test(e)},"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>m_n);return{diagram:e}},void 0,import.meta.url);return{id:y5e,diagram:e}},"loader")},b5e="classDiagram",x5e={id:b5e,detector:hRe((e,t)=>{var n;return!(!/^\s*classDiagram/.test(e)||"dagre-wrapper"!==(null==(n=null==t?void 0:t.class)?void 0:n.defaultRenderer))||/^\s*classDiagram-v2/.test(e)},"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>A_n);return{diagram:e}},void 0,import.meta.url);return{id:b5e,diagram:e}},"loader")},w5e="state",k5e={id:w5e,detector:hRe((e,t)=>{var n;return"dagre-wrapper"!==(null==(n=null==t?void 0:t.state)?void 0:n.defaultRenderer)&&/^\s*stateDiagram/.test(e)},"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>MCn);return{diagram:e}},void 0,import.meta.url);return{id:w5e,diagram:e}},"loader")},S5e="stateDiagram",T5e={id:S5e,detector:hRe((e,t)=>{var n;return!!/^\s*stateDiagram-v2/.test(e)||!(!/^\s*stateDiagram/.test(e)||"dagre-wrapper"!==(null==(n=null==t?void 0:t.state)?void 0:n.defaultRenderer))},"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>XCn);return{diagram:e}},void 0,import.meta.url);return{id:S5e,diagram:e}},"loader")},$5e="journey",_5e={id:$5e,detector:hRe(e=>/^\s*journey/.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>_Qn);return{diagram:e}},void 0,import.meta.url);return{id:$5e,diagram:e}},"loader")},C5e={draw:hRe((e,t,n)=>{ORe.debug("rendering svg for syntax error\n");const r=Mqe(t),i=r.append("g");r.attr("viewBox","0 0 2412 512"),EIe(r,100,512,!0),i.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),i.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),i.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),i.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),i.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),i.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),i.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)},"draw")},Q5e=C5e,P5e={db:{},renderer:C5e,parser:{parse:hRe(()=>{},"parse")}},E5e="flowchart-elk",R5e={id:E5e,detector:hRe((e,t={})=>{var n;return!!(/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&"elk"===(null==(n=null==t?void 0:t.flowchart)?void 0:n.defaultRenderer))&&(t.layout="elk",!0)},"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>Czt);return{diagram:e}},void 0,import.meta.url);return{id:E5e,diagram:e}},"loader")},B5e="timeline",I5e={id:B5e,detector:hRe(e=>/^\s*timeline/.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>CPn);return{diagram:e}},void 0,import.meta.url);return{id:B5e,diagram:e}},"loader")},L5e="mindmap",D5e={id:L5e,detector:hRe(e=>/^\s*mindmap/.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>UPn);return{diagram:e}},void 0,import.meta.url);return{id:L5e,diagram:e}},"loader")},M5e="kanban",N5e={id:M5e,detector:hRe(e=>/^\s*kanban/.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>aEn);return{diagram:e}},void 0,import.meta.url);return{id:M5e,diagram:e}},"loader")},X5e="sankey",F5e={id:X5e,detector:hRe(e=>/^\s*sankey(-beta)?/.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>sRn);return{diagram:e}},void 0,import.meta.url);return{id:X5e,diagram:e}},"loader")},U5e="packet",z5e={id:U5e,detector:hRe(e=>/^\s*packet(-beta)?/.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>yRn);return{diagram:e}},void 0,import.meta.url);return{id:U5e,diagram:e}},"loader")},q5e="radar",V5e={id:q5e,detector:hRe(e=>/^\s*radar-beta/.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>WRn);return{diagram:e}},void 0,import.meta.url);return{id:q5e,diagram:e}},"loader")},W5e="block",j5e={id:W5e,detector:hRe(e=>/^\s*block(-beta)?/.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>jBn);return{diagram:e}},void 0,import.meta.url);return{id:W5e,diagram:e}},"loader")},Y5e="treeView",Z5e={id:Y5e,detector:hRe(e=>/^\s*treeView-beta/.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>wIn);return{diagram:e}},void 0,import.meta.url);return{id:Y5e,diagram:e}},"loader")},G5e="architecture",H5e={id:G5e,detector:hRe(e=>/^\s*architecture/.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>bLn);return{diagram:e}},void 0,import.meta.url);return{id:G5e,diagram:e}},"loader")},K5e="eventmodeling",J5e={id:K5e,detector:hRe(e=>/^\s*eventmodeling/.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>mDn);return{diagram:e}},void 0,import.meta.url);return{id:K5e,diagram:e}},"loader")},e4e="ishikawa",t4e={id:e4e,detector:hRe(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>XDn);return{diagram:e}},void 0,import.meta.url);return{id:e4e,diagram:e}},"loader")},n4e="venn",r4e={id:n4e,detector:hRe(e=>/^\s*venn-beta/.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>eNn);return{diagram:e}},void 0,import.meta.url);return{id:n4e,diagram:e}},"loader")},i4e="treemap",o4e={id:i4e,detector:hRe(e=>/^\s*treemap/.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>dNn);return{diagram:e}},void 0,import.meta.url);return{id:i4e,diagram:e}},"loader")},a4e="wardley",s4e={id:a4e,detector:hRe(e=>/^\s*wardley-beta/i.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>VNn);return{diagram:e}},void 0,import.meta.url);return{id:a4e,diagram:e}},"loader")},l4e="cynefin",c4e={id:l4e,detector:hRe(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>mXn);return{diagram:e}},void 0,import.meta.url);return{id:l4e,diagram:e}},"loader")},u4e="railroad",h4e={id:u4e,detector:hRe(e=>/^\s*railroad-beta/i.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>HXn);return{diagram:e}},void 0,import.meta.url);return{id:u4e,diagram:e}},"loader")},d4e="railroadEbnf",p4e={id:d4e,detector:hRe(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>sFn);return{diagram:e}},void 0,import.meta.url);return{id:d4e,diagram:e}},"loader")},f4e="railroadAbnf",g4e={id:f4e,detector:hRe(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>OFn);return{diagram:e}},void 0,import.meta.url);return{id:f4e,diagram:e}},"loader")},m4e="railroadPeg",O4e={id:m4e,detector:hRe(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),loader:hRe(async()=>{const{diagram:e}=await Pf(async()=>{const{diagram:e}=await Promise.resolve().then(()=>_Fn);return{diagram:e}},void 0,import.meta.url);return{id:m4e,diagram:e}},"loader")},A4e=!1,y4e=hRe(()=>{A4e||(A4e=!0,aLe("error",P5e,e=>"error"===e.toLowerCase().trim()),aLe("---",{db:{clear:hRe(()=>{},"clear")},styles:{},renderer:{draw:hRe(()=>{},"draw")},parser:{parse:hRe(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:hRe(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),tIe(R5e,D5e,H5e),tIe(G2e,N5e,x5e,v5e,r5e,s5e,c5e,u5e,m5e,A5e,n5e,e5e,K2e,I5e,o5e,T5e,k5e,_5e,d5e,F5e,z5e,f5e,j5e,J5e,Z5e,V5e,t4e,o4e,h4e,p4e,g4e,O4e,r4e,s4e,c4e))},"addDiagrams"),v4e=hRe(async()=>{ORe.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(JBe).map(async([e,{detector:t,loader:n}])=>{if(n)try{sLe(e)}catch{try{const{diagram:e,id:r}=await n();aLe(r,e,t)}catch(r){throw ORe.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete JBe[e],r}}}))).filter(e=>"rejected"===e.status);if(e.length>0){ORe.error(`Failed to load ${e.length} external diagrams`);for(const t of e)ORe.error(t);throw new Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams");function b4e(e,t){e.attr("role","graphics-document document"),""!==t&&e.attr("aria-roledescription",t)}function x4e(e,t,n,r){if(void 0!==e.insert){if(n){const t=`chart-desc-${r}`;e.attr("aria-describedby",t),e.insert("desc",":first-child").attr("id",t).text(n)}if(t){const n=`chart-title-${r}`;e.attr("aria-labelledby",n),e.insert("title",":first-child").attr("id",n).text(t)}}}hRe(b4e,"setA11yDiagramInfo"),hRe(x4e,"addSVGa11yTitleDescription");var w4e=(hRe(y=class{constructor(e,t,n,r,i){this.type=e,this.text=t,this.db=n,this.parser=r,this.renderer=i}static async fromText(e,t={}){var n,r;const i=NBe(),o=eIe(e,i);e=ZWe(e)+"\n";try{sLe(o)}catch{const e=rIe(o);if(!e)throw new KBe(`Diagram ${o} not found.`);const{id:t,diagram:n}=await e();aLe(t,n)}const{db:a,parser:s,renderer:l,init:c}=sLe(o);return s.parser&&(s.parser.yy=a),null==(n=a.clear)||n.call(a),null==c||c(i),t.title&&(null==(r=a.setDiagramTitle)||r.call(a,t.title)),await s.parse(e),new y(o,e,a,s,l)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},"Diagram"),y),k4e=[],S4e=hRe(()=>{k4e.forEach(e=>{e()}),k4e=[]},"attachFunctions"),T4e=hRe(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function $4e(e){const t=e.match(ZBe);if(!t)return{text:e,metadata:{}};const n=t[1],r=n?t[2].split("\n").map(e=>e.startsWith(n)?e.slice(n.length):e).join("\n"):t[2];let i=H1e(r,{schema:Y1e})??{};i="object"!=typeof i||Array.isArray(i)?{}:i;const o={};return i.displayMode&&(o.displayMode=i.displayMode.toString()),i.title&&(o.title=i.title.toString()),i.config&&(o.config=i.config),{text:e.slice(t[0].length),metadata:o}}hRe($4e,"extractFrontMatter");var _4e=hRe(e=>e.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(e,t,n)=>"<"+t+n.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),C4e=hRe(e=>{const{text:t,metadata:n}=$4e(e),{displayMode:r,title:i,config:o={}}=n;return r&&(o.gantt||(o.gantt={}),o.gantt.displayMode=r),{title:i,config:o,text:t}},"processFrontmatter"),Q4e=hRe(e=>{const t=YWe.detectInit(e)??{},n=YWe.detectDirective(e,"wrap");return Array.isArray(n)?t.wrap=n.some(({type:e})=>"wrap"===e):"wrap"===(null==n?void 0:n.type)&&(t.wrap=!0),{text:OWe(e),directive:t}},"processDirectives");function P4e(e){const t=_4e(e),n=C4e(t),r=Q4e(n.text),i=jWe(n.config,r.directive);return{code:e=T4e(r.text),title:n.title,config:i}}function E4e(e){const t=(new TextEncoder).encode(e),n=Array.from(t,e=>String.fromCodePoint(e)).join("");return btoa(n)}hRe(P4e,"preprocessDiagram"),hRe(E4e,"toBase64");var R4e=["foreignobject"],B4e=["dominant-baseline"];function I4e(e){const t=P4e(e);return UBe(),FBe(t.config??{}),t}async function L4e(e,t){y4e();try{const{code:t,config:n}=I4e(e);return{diagramType:(await Y4e(t)).type,config:n}}catch(n){if(null==t?void 0:t.suppressErrors)return!1;throw n}}hRe(I4e,"processAndSetConfigs"),hRe(L4e,"parse");var D4e=hRe((e,t,n=[])=>`.${e} ${t} ${$Be(`{ ${n.join(" !important; ")} !important; }`)}`,"cssImportantStyles"),M4e=hRe((e,t=new Map)=>{const n=new CSSStyleSheet;if(void 0!==e.fontFamily&&n.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,n.cssRules.length),void 0!==e.altFontFamily&&n.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,n.cssRules.length),t instanceof Map){const r=YBe(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(e=>{dWe(e.styles)||r.forEach(t=>{n.insertRule(D4e(e.id,t,e.styles),n.cssRules.length)}),dWe(e.textStyles)||n.insertRule(D4e(e.id,"tspan",((null==e?void 0:e.textStyles)||[]).map(e=>e.replace("color","fill"))),n.cssRules.length)})}let r="";if(void 0!==e.themeCSS)if("function"==typeof n.replaceSync){const t=new CSSStyleSheet;t.replaceSync(e.themeCSS),r=IIe(t)+"\n"}else r+=`${e.themeCSS}\n`;return r+IIe(n)},"createCssStyles"),N4e=hRe((e,t)=>{return Y2e(z2e(`${e}{${t}}`),(r=x2e(n=[hRe(function(t,n,r,i){if("rule"===t.type&&Array.isArray(t.props)){if(t.parent&&t.parent.type===p2e)return;t.props=t.props.map(n=>n===e&&Array.isArray(t.children)&&t.children.every(e=>"decl"===e.type&&new Set(["font-family","font-size","fill"]).has(e.props))?n:!n.startsWith(`${e} `)&&!n.startsWith(`${e}>`)||n.startsWith(`${e} ||`)?`${e} ${n}`:n)}else t.type.startsWith("@")&&(["@media","@supports",f2e,"@scope","@container","@starting-style",p2e].includes(t.type)||(ORe.warn(`Removing unsupported at-rule ${t.type} from CSS`),t.type=u2e))},"addNamespace"),Z2e]),function(e,t,i,o){for(var a="",s=0;s<r;s++)a+=n[s](e,t,i,o)||"";return a}));var n,r},"compileCSS"),X4e=hRe((e,t,n,r)=>{const i=M4e(e,n),o=MIe(t,i,{...e.themeVariables,theme:e.theme,look:e.look},r);return N4e(r,o)},"createUserStyles"),F4e=hRe((e="",t,n)=>{let r=e;return n||t||(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=GWe(r),r=r.replace(/<br>/g,"<br/>"),r},"cleanUpSvgCode"),U4e=hRe((e="",t)=>{var n,r;return`<iframe style="width:100%;height:${(null==(r=null==(n=null==t?void 0:t.viewBox)?void 0:n.baseVal)?void 0:r.height)?t.viewBox.baseVal.height+"px":"100%"};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${E4e(`<body style="margin:0">${e}</body>`)}" sandbox="allow-top-navigation-by-user-activation allow-popups">\n The "iframe" tag is not supported by your browser.\n</iframe>`},"putIntoIFrame"),z4e=hRe((e,t,n,r,i)=>{const o=e.append("div");o.attr("id",n),r&&o.attr("style",r);const a=o.append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return i&&a.attr("xmlns:xlink",i),a.append("g"),e},"appendDivSvgG");function q4e(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}hRe(q4e,"sandboxedIframe");var V4e=hRe((e,t,n,r)=>{var i,o,a;null==(i=e.getElementById(t))||i.remove(),null==(o=e.getElementById(n))||o.remove(),null==(a=e.getElementById(r))||a.remove()},"removeExistingElements"),W4e=hRe(async function(e,t,n){var r,i,o,a,s,l;y4e();const c=I4e(t);t=c.code;const u=NBe();ORe.debug(u),t.length>((null==u?void 0:u.maxTextSize)??5e4)&&(t="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");const h=`#${e}`,d="i"+e,p="#"+d,f="d"+e,g="#"+f,m=hRe(()=>{const e=GDe(A?p:g).node();e&&"remove"in e&&e.remove()},"removeTempElements");let O=GDe(document.body);const A="sandbox"===u.securityLevel,y="loose"===u.securityLevel,v=u.fontFamily;if(void 0!==n){if(n&&(n.innerHTML=""),A){const e=q4e(GDe(n),d);O=GDe(e.nodes()[0].contentDocument.body),O.node().style.margin="0"}else O=GDe(n);z4e(O,e,f,`font-family: ${v}`,"http://www.w3.org/1999/xlink")}else{if(V4e(document,e,f,d),A){const e=q4e(GDe(document.body),d);O=GDe(e.nodes()[0].contentDocument.body),O.node().style.margin="0"}else O=GDe("body");z4e(O,e,f)}let b,x;try{b=await w4e.fromText(t,{title:c.title})}catch(P){if(u.suppressErrorRendering)throw m(),P;b=await w4e.fromText("error"),x=P}const w=O.select(g).node(),k=b.type,S=w.firstChild,T=S.firstChild,$=null==(i=(r=b.renderer).getClasses)?void 0:i.call(r,t,b),_=X4e(u,k,$,h),C=document.createElement("style");C.innerHTML=_,S.insertBefore(C,T);try{await b.renderer.draw(t,e,"11.17.2",b)}catch(jk){throw u.suppressErrorRendering?m():Q5e.draw(t,e,"11.17.2"),jk}Z4e(k,O.select(`${g} svg`),null==(a=(o=b.db).getAccTitle)?void 0:a.call(o),null==(l=(s=b.db).getAccDescription)?void 0:l.call(s));const Q=hRe(()=>{O.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let t=O.select(g).node().innerHTML;if(ORe.debug("config.arrowMarkerAbsolute",u.arrowMarkerAbsolute),t=F4e(t,A,CBe(u.arrowMarkerAbsolute)),A){const e=O.select(g+" svg").node();t=U4e(t,e)}else y||(t=XL.sanitize(t,{ADD_TAGS:R4e,ADD_ATTR:B4e,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));return S4e(),t},"serializeSvg")();if(x)throw x;return m(),{diagramType:k,svg:Q,bindFunctions:b.db.bindFunctions}},"render");function j4e(e={}){var t;const n=jRe({},e);(null==n?void 0:n.fontFamily)&&!(null==(t=n.themeVariables)?void 0:t.fontFamily)&&(n.themeVariables||(n.themeVariables={}),n.themeVariables.fontFamily=n.fontFamily),IBe(n),(null==n?void 0:n.theme)&&n.theme in ABe?n.themeVariables=ABe[n.theme].getThemeVariables(n.themeVariables):n&&(n.themeVariables=ABe.default.getThemeVariables(n.themeVariables));const r="object"==typeof n?BBe(n):DBe();ARe(r.logLevel),y4e()}hRe(j4e,"initialize");var Y4e=hRe((e,t={})=>{const{code:n}=P4e(e);return w4e.fromText(n,t)},"getDiagramFromText");function Z4e(e,t,n,r){b4e(t,e),x4e(t,n,r,t.attr("id"))}hRe(Z4e,"addA11yInfo");var G4e=Object.freeze({render:W4e,parse:L4e,getDiagramFromText:Y4e,initialize:j4e,getConfig:NBe,setConfig:MBe,getSiteConfig:DBe,updateSiteConfig:LBe,reset:hRe(()=>{UBe()},"reset"),globalReset:hRe(()=>{UBe(_Be)},"globalReset"),defaultConfig:_Be});ARe(NBe().logLevel),UBe(NBe());var H4e=hRe((e,t,n)=>{ORe.warn(e),qWe(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),K4e=hRe(async function(e={querySelector:".mermaid"}){try{await J4e(e)}catch(jk){if(qWe(jk)&&ORe.error(jk.str),u3e.parseError&&u3e.parseError(jk),!e.suppressErrors)throw ORe.error("Use the suppressErrors option to suppress these errors"),jk}},"run"),J4e=hRe(async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:".mermaid"}){const r=G4e.getConfig();let i;if(ORe.debug((e?"":"No ")+"Callback function found"),n)i=n;else{if(!t)throw new Error("Nodes and querySelector are both undefined");i=document.querySelectorAll(t)}ORe.debug(`Found ${i.length} diagrams`),void 0!==(null==r?void 0:r.startOnLoad)&&(ORe.debug("Start On Load: "+(null==r?void 0:r.startOnLoad)),G4e.updateSiteConfig({startOnLoad:null==r?void 0:r.startOnLoad}));const o=new YWe.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed);let a;const s=[];for(const c of Array.from(i)){if(ORe.info("Rendering diagram: "+c.id),c.getAttribute("data-processed"))continue;c.setAttribute("data-processed","true");const t=`mermaid-${o.next()}`;a=c.innerHTML,a=wYe(YWe.entityDecode(a)).trim().replace(/<br\s*\/?>/gi,"<br/>");const n=YWe.detectInit(a);n&&ORe.debug("Detected early reinit: ",n);try{const{svg:n,bindFunctions:r}=await c3e(t,a,c);c.innerHTML=n,e&&await e(t),r&&r(c)}catch(l){H4e(l,s,u3e.parseError)}}if(s.length>0)throw s[0]},"runThrowsErrors"),e3e=hRe(function(e){G4e.initialize(e)},"initialize"),t3e=hRe(async function(e,t,n){ORe.warn("mermaid.init is deprecated. Please use run instead."),e&&e3e(e);const r={postRenderCallback:n,querySelector:".mermaid"};"string"==typeof t?r.querySelector=t:t&&(t instanceof HTMLElement?r.nodes=[t]:r.nodes=t),await K4e(r)},"init"),n3e=hRe(async(e,{lazyLoad:t=!0}={})=>{y4e(),tIe(...e),!1===t&&await v4e()},"registerExternalDiagrams"),r3e=hRe(function(){if(u3e.startOnLoad){const{startOnLoad:e}=G4e.getConfig();e&&u3e.run().catch(e=>ORe.error("Mermaid failed to initialize",e))}},"contentLoaded");"undefined"!=typeof document&&window.addEventListener("load",r3e,!1);var i3e=hRe(function(e){u3e.parseError=e},"setParseErrorHandler"),o3e=[],a3e=!1,s3e=hRe(async()=>{if(!a3e){for(a3e=!0;o3e.length>0;){const e=o3e.shift();if(e)try{await e()}catch(jk){ORe.error("Error executing queue",jk)}}a3e=!1}},"executeQueue"),l3e=hRe(async(e,t)=>new Promise((n,r)=>{const i=hRe(()=>new Promise((i,o)=>{G4e.parse(e,t).then(e=>{i(e),n(e)},e=>{var t;ORe.error("Error parsing",e),null==(t=u3e.parseError)||t.call(u3e,e),o(e),r(e)})}),"performCall");o3e.push(i),s3e().catch(r)}),"parse"),c3e=hRe((e,t,n)=>new Promise((r,i)=>{const o=hRe(()=>new Promise((o,a)=>{G4e.render(e,t,n).then(e=>{o(e),r(e)},e=>{var t;ORe.error("Error parsing",e),null==(t=u3e.parseError)||t.call(u3e,e),a(e),i(e)})}),"performCall");o3e.push(o),s3e().catch(i)}),"render"),u3e={startOnLoad:!0,mermaidAPI:G4e,parse:l3e,render:c3e,init:t3e,run:K4e,registerExternalDiagrams:n3e,registerLayoutLoaders:s2e,initialize:e3e,parseError:void 0,contentLoaded:r3e,setParseErrorHandler:i3e,detectType:eIe,registerIconPacks:fVe,getRegisteredDiagramsMetadata:hRe(()=>Object.keys(JBe).map(e=>({id:e})),"getRegisteredDiagramsMetadata")},h3e=u3e;const d3e=Object.freeze(Object.defineProperty({__proto__:null,clearLayoutRenderState:h0e,createCommonLayoutRenderer:u0e,default:h3e,defaultMeasureLayout:d0e,paintLayoutData:p0e},Symbol.toStringTag,{value:"Module"}));let p3e=[],f3e=[];function g3e(e){if(e<768)return!1;for(let t=0,n=p3e.length;;){let r=t+n>>1;if(e<p3e[r])n=r;else{if(!(e>=f3e[r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,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let t=0,n=0;t<e.length;t++)(t%2?f3e:p3e).push(n+=e[t])})();function O3e(e,t,n=!0,r=!0){return(n?A3e:y3e)(e,t,r)}function A3e(e,t,n){if(t==e.length)return t;t&&b3e(e.charCodeAt(t))&&x3e(e.charCodeAt(t-1))&&t--;let r=v3e(e,t);for(t+=w3e(r);t<e.length;){let i=v3e(e,t);if(8205==r||8205==i||n&&g3e(i))t+=w3e(i),r=i;else{if(!m3e(i))break;{let n=0,r=t-2;for(;r>=0&&m3e(v3e(e,r));)n++,r-=2;if(n%2==0)break;t+=2}}}return t}function y3e(e,t,n){for(;t>0;){let r=A3e(e,t-2,n);if(r<t)return r;t--}return 0}function v3e(e,t){let n=e.charCodeAt(t);if(!x3e(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return b3e(r)?r-56320+(n-55296<<10)+65536:n}function b3e(e){return e>=56320&&e<57344}function x3e(e){return e>=55296&&e<56320}function w3e(e){return e<65536?1:2}let k3e=class e{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=R3e(this,e,t);let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),T3e.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=R3e(this,e,t);let n=[];return this.decompose(e,t,n,0),T3e.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new C3e(this),i=new C3e(e);for(let o=t,a=t;;){if(r.next(o),i.next(o),o=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(a+=r.value.length,r.done||a>=n)return!0}}iter(e=1){return new C3e(this,e)}iterRange(e,t=this.length){return new Q3e(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new P3e(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(t){if(0==t.length)throw new RangeError("A document must have at least one line");return 1!=t.length||t[0]?t.length<=32?new S3e(t):T3e.from(S3e.split(t,[])):e.empty}};class S3e extends k3e{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.text[i],a=r+o.length;if((t?n:a)>=e)return new E3e(r,a,n,o);r=a+1,n++}}decompose(e,t,n,r){let i=e<=0&&t>=this.length?this:new S3e(_3e(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&r){let e=n.pop(),t=$3e(i.text,e.text.slice(),0,i.length);if(t.length<=32)n.push(new S3e(t,e.length+i.length));else{let e=t.length>>1;n.push(new S3e(t.slice(0,e)),new S3e(t.slice(e)))}}else n.push(i)}replace(e,t,n){if(!(n instanceof S3e))return super.replace(e,t,n);[e,t]=R3e(this,e,t);let r=$3e(this.text,$3e(n.text,_3e(this.text,0,e)),t),i=this.length+n.length-(t-e);return r.length<=32?new S3e(r,i):T3e.from(S3e.split(r,[]),i)}sliceString(e,t=this.length,n="\n"){[e,t]=R3e(this,e,t);let r="";for(let i=0,o=0;i<=t&&o<this.text.length;o++){let a=this.text[o],s=i+a.length;i>e&&o&&(r+=n),e<s&&t>i&&(r+=a.slice(Math.max(0,e-i),t-i)),i=s+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],r=-1;for(let i of e)n.push(i),r+=i.length+1,32==n.length&&(t.push(new S3e(n,r)),n=[],r=-1);return r>-1&&t.push(new S3e(n,r)),t}}let T3e=class e extends k3e{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.children[i],a=r+o.length,s=n+o.lines-1;if((t?s:a)>=e)return o.lineInner(e,t,n,r);r=a+1,n=s+1}}decompose(e,t,n,r){for(let i=0,o=0;o<=t&&i<this.children.length;i++){let a=this.children[i],s=o+a.length;if(e<=s&&t>=o){let i=r&((o<=e?1:0)|(s>=t?2:0));o>=e&&s<=t&&!i?n.push(a):a.decompose(e-o,t-o,n,i)}o=s+1}}replace(t,n,r){if([t,n]=R3e(this,t,n),r.lines<this.lines)for(let i=0,o=0;i<this.children.length;i++){let a=this.children[i],s=o+a.length;if(t>=o&&n<=s){let l=a.replace(t-o,n-o,r),c=this.lines-a.lines+l.lines;if(l.lines<c>>4&&l.lines>c>>6){let o=this.children.slice();return o[i]=l,new e(o,this.length-(n-t)+r.length)}return super.replace(o,s,l)}o=s+1}return super.replace(t,n,r)}sliceString(e,t=this.length,n="\n"){[e,t]=R3e(this,e,t);let r="";for(let i=0,o=0;i<this.children.length&&o<=t;i++){let a=this.children[i],s=o+a.length;o>e&&i&&(r+=n),e<s&&t>o&&(r+=a.sliceString(e-o,t-o,n)),o=s+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(t,n){if(!(t instanceof e))return 0;let r=0,[i,o,a,s]=n>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=n,o+=n){if(i==a||o==s)return r;let e=this.children[i],l=t.children[o];if(e!=l)return r+e.scanIdentical(l,n);r+=e.length+1}}static from(t,n=t.reduce((e,t)=>e+t.length+1,-1)){let r=0;for(let e of t)r+=e.lines;if(r<32){let e=[];for(let n of t)n.flatten(e);return new S3e(e,n)}let i=Math.max(32,r>>5),o=i<<1,a=i>>1,s=[],l=0,c=-1,u=[];function h(t){let n;if(t.lines>o&&t instanceof e)for(let e of t.children)h(e);else t.lines>a&&(l>a||!l)?(d(),s.push(t)):t instanceof S3e&&l&&(n=u[u.length-1])instanceof S3e&&t.lines+n.lines<=32?(l+=t.lines,c+=t.length+1,u[u.length-1]=new S3e(n.text.concat(t.text),n.length+1+t.length)):(l+t.lines>i&&d(),l+=t.lines,c+=t.length+1,u.push(t))}function d(){0!=l&&(s.push(1==u.length?u[0]:e.from(u,c)),c=-1,l=u.length=0)}for(let e of t)h(e);return d(),1==s.length?s[0]:new e(s,n)}};function $3e(e,t,n=0,r=1e9){for(let i=0,o=0,a=!0;o<e.length&&i<=r;o++){let s=e[o],l=i+s.length;l>=n&&(l>r&&(s=s.slice(0,r-i)),i<n&&(s=s.slice(n-i)),a?(t[t.length-1]+=s,a=!1):t.push(s)),i=l+1}return t}function _3e(e,t,n){return $3e(e,[""],t,n)}k3e.empty=new S3e([""],0);class C3e{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof S3e?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],o=i>>1,a=r instanceof S3e?r.text.length:r.children.length;if(o==(t>0?a:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&i)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(r instanceof S3e){let i=r.text[o+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=0==e?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let i=r.children[o+(t<0?-1:0)];e>i.length?(e-=i.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(i),this.offsets.push(t>0?1:(i instanceof S3e?i.text.length:i.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class Q3e{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new C3e(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class P3e{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(k3e.prototype[Symbol.iterator]=function(){return this.iter()},C3e.prototype[Symbol.iterator]=Q3e.prototype[Symbol.iterator]=P3e.prototype[Symbol.iterator]=function(){return this});let E3e=class{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}};function R3e(e,t,n){return[t=Math.max(0,Math.min(e.length,t)),Math.max(t,Math.min(e.length,n))]}function B3e(e,t,n=!0,r=!0){return O3e(e,t,n,r)}function I3e(e,t){let n=e.charCodeAt(t);if(!(r=n,r>=55296&&r<56320&&t+1!=e.length))return n;var r;let i=e.charCodeAt(t+1);return function(e){return e>=56320&&e<57344}(i)?i-56320+(n-55296<<10)+65536:n}function L3e(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function D3e(e){return e<65536?1:2}const M3e=/\r\n?|\n/;var N3e=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(N3e||(N3e={}));class X3e{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,r=0;t<this.sections.length;){let i=this.sections[t++],o=this.sections[t++];o<0?(e(n,r,i),r+=i):r+=o,n+=i}}iterChangedRanges(e,t=!1){q3e(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];r<0?e.push(n,r):e.push(r,n)}return new X3e(e)}composeDesc(e){return this.empty?e:e.empty?this:W3e(this,e)}mapDesc(e,t=!1){return e.empty?this:V3e(this,e,t)}mapPos(e,t=-1,n=N3e.Simple){let r=0,i=0;for(let o=0;o<this.sections.length;){let a=this.sections[o++],s=this.sections[o++],l=r+a;if(s<0){if(l>e)return i+(e-r);i+=a}else{if(n!=N3e.Simple&&l>=e&&(n==N3e.TrackDel&&r<e&&l>e||n==N3e.TrackBefore&&r<e||n==N3e.TrackAfter&&l>e))return null;if(l>e||l==e&&t<0&&!a)return e==r||t<0?i:i+s;i+=s}r=l}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return i}touchesRange(e,t=e){for(let n=0,r=0;n<this.sections.length&&r<=t;){let i=r+this.sections[n++];if(this.sections[n++]>=0&&r<=t&&i>=e)return!(r<e&&i>t)||"cover";r=i}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+n+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(e=>"number"!=typeof e))throw new RangeError("Invalid JSON representation of ChangeDesc");return new X3e(e)}static create(e){return new X3e(e)}}class F3e extends X3e{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return q3e(this,(t,n,r,i,o)=>e=e.replace(r,r+(n-t),o),!1),e}mapDesc(e,t=!1){return V3e(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let r=0,i=0;r<t.length;r+=2){let o=t[r],a=t[r+1];if(a>=0){t[r]=a,t[r+1]=o;let s=r>>1;for(;n.length<s;)n.push(k3e.empty);n.push(o?e.slice(i,i+o):k3e.empty)}i+=o}return new F3e(t,n)}compose(e){return this.empty?e:e.empty?this:W3e(this,e,!0)}map(e,t=!1){return e.empty?this:V3e(this,e,t,!0)}iterChanges(e,t=!1){q3e(this,e,t)}get desc(){return X3e.create(this.sections)}filter(e){let t=[],n=[],r=[],i=new j3e(this);e:for(let o=0,a=0;;){let s=o==e.length?1e9:e[o++];for(;a<s||a==s&&0==i.len;){if(i.done)break e;let e=Math.min(i.len,s-a);U3e(r,e,-1);let o=-1==i.ins?-1:0==i.off?i.ins:0;U3e(t,e,o),o>0&&z3e(n,t,i.text),i.forward(e),a+=e}let l=e[o++];for(;a<l;){if(i.done)break e;let e=Math.min(i.len,l-a);U3e(t,e,-1),U3e(r,e,-1==i.ins?-1:0==i.off?i.ins:0),i.forward(e),a+=e}}return{changes:new F3e(t,n),filtered:X3e.create(r)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t],r=this.sections[t+1];r<0?e.push(n):0==r?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,n){let r=[],i=[],o=0,a=null;function s(e=!1){if(!e&&!r.length)return;o<t&&U3e(r,t-o,-1);let n=new F3e(r,i);a=a?a.compose(n.map(a)):n,r=[],i=[],o=0}return function e(l){if(Array.isArray(l))for(let t of l)e(t);else if(l instanceof F3e){if(l.length!=t)throw new RangeError(`Mismatched change set length (got ${l.length}, expected ${t})`);s(),a=a?a.compose(l.map(a)):l}else{let{from:e,to:a=e,insert:c}=l;if(e>a||e<0||a>t)throw new RangeError(`Invalid change range ${e} to ${a} (in doc of length ${t})`);let u=c?"string"==typeof c?k3e.of(c.split(n||M3e)):c:k3e.empty,h=u.length;if(e==a&&0==h)return;e<o&&s(),e>o&&U3e(r,e-o,-1),U3e(r,a-e,h),z3e(i,r,u),o=a}}(e),s(!a),a}static empty(e){return new F3e(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let r=0;r<e.length;r++){let i=e[r];if("number"==typeof i)t.push(i,-1);else{if(!Array.isArray(i)||"number"!=typeof i[0]||i.some((e,t)=>t&&"string"!=typeof e))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==i.length)t.push(i[0],0);else{for(;n.length<r;)n.push(k3e.empty);n[r]=k3e.of(i.slice(1)),t.push(i[0],n[r].length)}}}return new F3e(t,n)}static createSet(e,t){return new F3e(e,t)}}function U3e(e,t,n,r=!1){if(0==t&&n<=0)return;let i=e.length-2;i>=0&&n<=0&&n==e[i+1]?e[i]+=t:i>=0&&0==t&&0==e[i]?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function z3e(e,t,n){if(0==n.length)return;let r=t.length-2>>1;if(r<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<r;)e.push(k3e.empty);e.push(n)}}function q3e(e,t,n){let r=e.inserted;for(let i=0,o=0,a=0;a<e.sections.length;){let s=e.sections[a++],l=e.sections[a++];if(l<0)i+=s,o+=s;else{let c=i,u=o,h=k3e.empty;for(;c+=s,u+=l,l&&r&&(h=h.append(r[a-2>>1])),!(n||a==e.sections.length||e.sections[a+1]<0);)s=e.sections[a++],l=e.sections[a++];t(i,c,o,u,h),i=c,o=u}}}function V3e(e,t,n,r=!1){let i=[],o=r?[]:null,a=new j3e(e),s=new j3e(t);for(let l=-1;;){if(a.done&&s.len||s.done&&a.len)throw new Error("Mismatched change set lengths");if(-1==a.ins&&-1==s.ins){let e=Math.min(a.len,s.len);U3e(i,e,-1),a.forward(e),s.forward(e)}else if(s.ins>=0&&(a.ins<0||l==a.i||0==a.off&&(s.len<a.len||s.len==a.len&&!n))){let e=s.len;for(U3e(i,s.ins,-1);e;){let t=Math.min(a.len,e);a.ins>=0&&l<a.i&&a.len<=t&&(U3e(i,0,a.ins),o&&z3e(o,i,a.text),l=a.i),a.forward(t),e-=t}s.next()}else{if(!(a.ins>=0)){if(a.done&&s.done)return o?F3e.createSet(i,o):X3e.create(i);throw new Error("Mismatched change set lengths")}{let e=0,t=a.len;for(;t;)if(-1==s.ins){let n=Math.min(t,s.len);e+=n,t-=n,s.forward(n)}else{if(!(0==s.ins&&s.len<t))break;t-=s.len,s.next()}U3e(i,e,l<a.i?a.ins:0),o&&l<a.i&&z3e(o,i,a.text),l=a.i,a.forward(a.len-t)}}}}function W3e(e,t,n=!1){let r=[],i=n?[]:null,o=new j3e(e),a=new j3e(t);for(let s=!1;;){if(o.done&&a.done)return i?F3e.createSet(r,i):X3e.create(r);if(0==o.ins)U3e(r,o.len,0,s),o.next();else if(0!=a.len||a.done){if(o.done||a.done)throw new Error("Mismatched change set lengths");{let e=Math.min(o.len2,a.len),t=r.length;if(-1==o.ins){let t=-1==a.ins?-1:a.off?0:a.ins;U3e(r,e,t,s),i&&t&&z3e(i,r,a.text)}else-1==a.ins?(U3e(r,o.off?0:o.len,e,s),i&&z3e(i,r,o.textBit(e))):(U3e(r,o.off?0:o.len,a.off?0:a.ins,s),i&&!a.off&&z3e(i,r,a.text));s=(o.ins>e||a.ins>=0&&a.len>e)&&(s||r.length>t),o.forward2(e),a.forward(e)}}else U3e(r,0,a.ins,s),i&&z3e(i,r,a.text),a.next()}}class j3e{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return-2==this.ins}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?k3e.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?k3e.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}let Y3e=class e{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}get goalColumn(){let e=this.flags>>6;return 16777215==e?void 0:e}map(t,n=-1){let r,i;return this.empty?r=i=t.mapPos(this.from,n):(r=t.mapPos(this.from,1),i=t.mapPos(this.to,-1)),r==this.from&&i==this.to?this:new e(r,i,this.flags)}extend(e,t=e,n=0){if(e<=this.anchor&&t>=this.anchor)return Z3e.range(e,t,void 0,void 0,n);let r=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return Z3e.range(this.anchor,r,void 0,void 0,n)}eq(e,t=!1){return!(this.anchor!=e.anchor||this.head!=e.head||this.goalColumn!=e.goalColumn||t&&this.empty&&this.assoc!=e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return Z3e.range(e.anchor,e.head)}static create(t,n,r){return new e(t,n,r)}};class Z3e{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:Z3e.create(this.ranges.map(n=>n.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(e.ranges[n],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new Z3e([this.main],0)}addRange(e,t=!0){return Z3e.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let n=this.ranges.slice();return n[t]=e,Z3e.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Z3e(e.ranges.map(e=>Y3e.fromJSON(e)),e.main)}static single(e,t=e){return new Z3e([Z3e.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let n=0,r=0;r<e.length;r++){let i=e[r];if(i.empty?i.from<=n:i.from<n)return Z3e.normalized(e.slice(),t);n=i.to}return new Z3e(e,t)}static cursor(e,t=0,n,r){return Y3e.create(e,e,(0==t?0:t<0?8:16)|(null==n?7:Math.min(6,n))|(null!=r?r:16777215)<<6)}static range(e,t,n,r,i){let o=(null!=n?n:16777215)<<6|(null==r?7:Math.min(6,r));return i||e==t||(i=t<e?1:-1),t<e?Y3e.create(t,e,48|o):Y3e.create(e,t,(i?i<0?8:16:0)|o)}static normalized(e,t=0){let n=e[t];e.sort((e,t)=>e.from-t.from),t=e.indexOf(n);for(let r=1;r<e.length;r++){let n=e[r],i=e[r-1];if(n.empty?n.from<=i.to:n.from<i.to){let o=i.from,a=Math.max(n.to,i.to);r<=t&&t--,e.splice(--r,2,n.anchor>n.head?Z3e.range(a,o):Z3e.range(o,a))}}return new Z3e(e,t)}}function G3e(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let H3e=0;class K3e{constructor(e,t,n,r,i){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.id=H3e++,this.default=e([]),this.extensions="function"==typeof i?i(this):i}get reader(){return this}static define(e={}){return new K3e(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:J3e),!!e.static,e.enables)}of(e){return new e6e([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new e6e(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new e6e(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],n=>t(n.field(e)))}}function J3e(e,t){return e==t||e.length==t.length&&e.every((e,n)=>e===t[n])}class e6e{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=H3e++}dynamicSlot(e){var t;let n=this.value,r=this.facet.compareInput,i=this.id,o=e[i]>>1,a=2==this.type,s=!1,l=!1,c=[];for(let u of this.dependencies)"doc"==u?s=!0:"selection"==u?l=!0:1&(null!==(t=e[u.id])&&void 0!==t?t:1)||c.push(e[u.id]);return{create:e=>(e.values[o]=n(e),1),update(e,t){if(s&&t.docChanged||l&&(t.docChanged||t.selection)||n6e(e,c)){let t=n(e);if(a?!t6e(t,e.values[o],r):!r(t,e.values[o]))return e.values[o]=t,1}return 0},reconfigure:(e,t)=>{let s,l=t.config.address[i];if(null!=l){let i=O6e(t,l);if(this.dependencies.every(n=>n instanceof K3e?t.facet(n)===e.facet(n):!(n instanceof o6e)||t.field(n,!1)==e.field(n,!1))||(a?t6e(s=n(e),i,r):r(s=n(e),i)))return e.values[o]=i,0}else s=n(e);return e.values[o]=s,1}}}}function t6e(e,t,n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function n6e(e,t){let n=!1;for(let r of t)1&m6e(e,r)&&(n=!0);return n}function r6e(e,t,n){let r=n.map(t=>e[t.id]),i=n.map(e=>e.type),o=r.filter(e=>!(1&e)),a=e[t.id]>>1;function s(e){let n=[];for(let t=0;t<r.length;t++){let o=O6e(e,r[t]);if(2==i[t])for(let e of o)n.push(e);else n.push(o)}return t.combine(n)}return{create(e){for(let t of r)m6e(e,t);return e.values[a]=s(e),1},update(e,n){if(!n6e(e,o))return 0;let r=s(e);return t.compare(r,e.values[a])?0:(e.values[a]=r,1)},reconfigure(e,i){let o=n6e(e,r),l=i.config.facets[t.id],c=i.facet(t);if(l&&!o&&J3e(n,l))return e.values[a]=c,0;let u=s(e);return t.compare(u,c)?(e.values[a]=c,0):(e.values[a]=u,1)}}}const i6e=K3e.define({static:!0});class o6e{constructor(e,t,n,r,i){this.id=e,this.createF=t,this.updateF=n,this.compareF=r,this.spec=i,this.provides=void 0}static define(e){let t=new o6e(H3e++,e.create,e.update,e.compare||((e,t)=>e===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(i6e).find(e=>e.field==this);return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let r=e.values[t],i=this.updateF(r,n);return this.compareF(r,i)?0:(e.values[t]=i,1)},reconfigure:(e,n)=>{let r,i=e.facet(i6e),o=n.facet(i6e);return(r=i.find(e=>e.field==this))&&r!=o.find(e=>e.field==this)?(e.values[t]=r.create(e),1):null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}}init(e){return[this,i6e.of({field:this,create:e})]}get extension(){return this}}const a6e=4,s6e=3,l6e=2,c6e=1;function u6e(e){return t=>new d6e(t,e)}const h6e={highest:u6e(0),high:u6e(c6e),default:u6e(l6e),low:u6e(s6e),lowest:u6e(a6e)};class d6e{constructor(e,t){this.inner=e,this.prec=t}}class p6e{of(e){return new f6e(this,e)}reconfigure(e){return p6e.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class f6e{constructor(e,t){this.compartment=e,this.inner=t}}class g6e{constructor(e,t,n,r,i,o){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return null==t?e.default:this.staticValues[t>>1]}static resolve(e,t,n){let r=[],i=Object.create(null),o=new Map;for(let h of function(e,t,n){let r=[[],[],[],[],[]],i=new Map;function o(e,a){let s=i.get(e);if(null!=s){if(s<=a)return;let t=r[s].indexOf(e);t>-1&&r[s].splice(t,1),e instanceof f6e&&n.delete(e.compartment)}if(i.set(e,a),Array.isArray(e))for(let t of e)o(t,a);else if(e instanceof f6e){if(n.has(e.compartment))throw new RangeError("Duplicate use of compartment in extensions");let r=t.get(e.compartment)||e.inner;n.set(e.compartment,r),o(r,a)}else if(e instanceof d6e)o(e.inner,e.prec);else if(e instanceof o6e)r[a].push(e),e.provides&&o(e.provides,a);else if(e instanceof e6e)r[a].push(e),e.facet.extensions&&o(e.facet.extensions,l6e);else{let t=e.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${e}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(t,a)}}return o(e,l6e),r.reduce((e,t)=>e.concat(t))}(e,t,o))h instanceof o6e?r.push(h):(i[h.facet.id]||(i[h.facet.id]=[])).push(h);let a=Object.create(null),s=[],l=[];for(let h of r)a[h.id]=l.length<<1,l.push(e=>h.slot(e));let c=null==n?void 0:n.config.facets;for(let h in i){let e=i[h],t=e[0].facet,r=c&&c[h]||[];if(e.every(e=>0==e.type))if(a[t.id]=s.length<<1|1,J3e(r,e))s.push(n.facet(t));else{let r=t.combine(e.map(e=>e.value));s.push(n&&t.compare(r,n.facet(t))?n.facet(t):r)}else{for(let t of e)0==t.type?(a[t.id]=s.length<<1|1,s.push(t.value)):(a[t.id]=l.length<<1,l.push(e=>t.dynamicSlot(e)));a[t.id]=l.length<<1,l.push(n=>r6e(n,t,e))}}let u=l.map(e=>e(a));return new g6e(e,o,u,a,s,i)}}function m6e(e,t){if(1&t)return 2;let n=t>>1,r=e.status[n];if(4==r)throw new Error("Cyclic dependency between fields and/or facets");if(2&r)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function O6e(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const A6e=K3e.define(),y6e=K3e.define({combine:e=>e.some(e=>e),static:!0}),v6e=K3e.define({combine:e=>e.length?e[0]:void 0,static:!0}),b6e=K3e.define(),x6e=K3e.define(),w6e=K3e.define(),k6e=K3e.define({combine:e=>!!e.length&&e[0]});let S6e=class{constructor(e,t){this.type=e,this.value=t}static define(){return new T6e}};class T6e{of(e){return new S6e(this,e)}}class $6e{constructor(e){this.map=e}of(e){return new _6e(this,e)}}class _6e{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new _6e(this.type,t)}is(e){return this.type==e}static define(e={}){return new $6e(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let e=r.map(t);e&&n.push(e)}return n}}_6e.reconfigure=_6e.define(),_6e.appendConfig=_6e.define();class C6e{constructor(e,t,n,r,i,o){this.startState=e,this.changes=t,this.selection=n,this.effects=r,this.annotations=i,this.scrollIntoView=o,this._doc=null,this._state=null,n&&G3e(n,t.newLength),i.some(e=>e.type==C6e.time)||(this.annotations=i.concat(C6e.time.of(Date.now())))}static create(e,t,n,r,i,o){return new C6e(e,t,n,r,i,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(C6e.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function Q6e(e,t){let n=[];for(let r=0,i=0;;){let o,a;if(r<e.length&&(i==t.length||t[i]>=e[r]))o=e[r++],a=e[r++];else{if(!(i<t.length))return n;o=t[i++],a=t[i++]}!n.length||n[n.length-1]<o?n.push(o,a):n[n.length-1]<a&&(n[n.length-1]=a)}}function P6e(e,t,n){var r;let i,o,a;return n?(i=t.changes,o=F3e.empty(t.changes.length),a=e.changes.compose(t.changes)):(i=t.changes.map(e.changes),o=e.changes.mapDesc(t.changes,!0),a=e.changes.compose(i)),{changes:a,selection:t.selection?t.selection.map(o):null===(r=e.selection)||void 0===r?void 0:r.map(i),effects:_6e.mapEffects(e.effects,i).concat(_6e.mapEffects(t.effects,o)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function E6e(e,t,n){let r=t.selection,i=I6e(t.annotations);return t.userEvent&&(i=i.concat(C6e.userEvent.of(t.userEvent))),{changes:t.changes instanceof F3e?t.changes:F3e.of(t.changes||[],n,e.facet(v6e)),selection:r&&(r instanceof Z3e?r:Z3e.single(r.anchor,r.head)),effects:I6e(t.effects),annotations:i,scrollIntoView:!!t.scrollIntoView}}function R6e(e,t,n){let r=E6e(e,t.length?t[0]:{},e.doc.length);t.length&&!1===t[0].filter&&(n=!1);for(let o=1;o<t.length;o++){!1===t[o].filter&&(n=!1);let i=!!t[o].sequential;r=P6e(r,E6e(e,t[o],i?r.changes.newLength:e.doc.length),i)}let i=C6e.create(e,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return function(e){let t=e.startState,n=t.facet(w6e),r=e;for(let i=n.length-1;i>=0;i--){let o=n[i](e);o&&Object.keys(o).length&&(r=P6e(r,E6e(t,o,e.changes.newLength),!0))}return r==e?e:C6e.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}(n?function(e){let t=e.startState,n=!0;for(let i of t.facet(b6e)){let t=i(e);if(!1===t){n=!1;break}Array.isArray(t)&&(n=!0===n?t:Q6e(n,t))}if(!0!==n){let r,i;if(!1===n)i=e.changes.invertedDesc,r=F3e.empty(t.doc.length);else{let t=e.changes.filter(n);r=t.changes,i=t.filtered.mapDesc(t.changes).invertedDesc}e=C6e.create(t,r,e.selection&&e.selection.map(i),_6e.mapEffects(e.effects,i),e.annotations,e.scrollIntoView)}let r=t.facet(x6e);for(let i=r.length-1;i>=0;i--){let n=r[i](e);e=n instanceof C6e?n:Array.isArray(n)&&1==n.length&&n[0]instanceof C6e?n[0]:R6e(t,I6e(n),!1)}return e}(i):i)}C6e.time=S6e.define(),C6e.userEvent=S6e.define(),C6e.addToHistory=S6e.define(),C6e.remote=S6e.define();const B6e=[];function I6e(e){return null==e?B6e:Array.isArray(e)?e:[e]}var L6e=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(L6e||(L6e={}));const D6e=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let M6e;try{M6e=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(sdr){}function N6e(e){return t=>{if(!/\S/.test(t))return L6e.Space;if(function(e){if(M6e)return M6e.test(e);for(let t=0;t<e.length;t++){let n=e[t];if(/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||D6e.test(n)))return!0}return!1}(t))return L6e.Word;for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return L6e.Word;return L6e.Other}}class X6e{constructor(e,t,n,r,i,o){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=i,o&&(o._state=this);for(let a=0;a<this.config.dynamicSlots.length;a++)m6e(this,a<<1);this.computeSlot=null}field(e,t=!0){let n=this.config.address[e.id];if(null!=n)return m6e(this,n),O6e(this,n);if(t)throw new RangeError("Field is not present in this state")}update(...e){return R6e(this,e,!0)}applyTransaction(e){let t,n=this.config,{base:r,compartments:i}=n;for(let a of e.effects)a.is(p6e.reconfigure)?(n&&(i=new Map,n.compartments.forEach((e,t)=>i.set(t,e)),n=null),i.set(a.value.compartment,a.value.extension)):a.is(_6e.reconfigure)?(n=null,r=a.value):a.is(_6e.appendConfig)&&(n=null,r=I6e(r).concat(a.value));if(n)t=e.startState.values.slice();else{n=g6e.resolve(r,i,this),t=new X6e(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(e,t)=>t.reconfigure(e,this),null).values}let o=e.startState.facet(y6e)?e.newSelection:e.newSelection.asSingle();new X6e(n,e.newDoc,o,t,(t,n)=>n.update(t,e),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:Z3e.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),i=[n.range],o=I6e(n.effects);for(let a=1;a<t.ranges.length;a++){let n=e(t.ranges[a]),s=this.changes(n.changes),l=s.map(r);for(let e=0;e<a;e++)i[e]=i[e].map(l);let c=r.mapDesc(s,!0);i.push(n.range.map(c)),r=r.compose(l),o=_6e.mapEffects(o,l).concat(_6e.mapEffects(I6e(n.effects),c))}return{changes:r,selection:Z3e.create(i,t.mainIndex),effects:o}}changes(e=[]){return e instanceof F3e?e:F3e.of(e,this.doc.length,this.facet(X6e.lineSeparator))}toText(e){return k3e.of(e.split(this.facet(X6e.lineSeparator)||M3e))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return null==t?e.default:(m6e(this,t),O6e(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let r=e[n];r instanceof o6e&&null!=this.config.address[r.id]&&(t[n]=r.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(e,t={},n){if(!e||"string"!=typeof e.doc)throw new RangeError("Invalid JSON representation for EditorState");let r=[];if(n)for(let i in n)if(Object.prototype.hasOwnProperty.call(e,i)){let t=n[i],o=e[i];r.push(t.init(e=>t.spec.fromJSON(o,e)))}return X6e.create({doc:e.doc,selection:Z3e.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(e={}){let t=g6e.resolve(e.extensions||[],new Map),n=e.doc instanceof k3e?e.doc:k3e.of((e.doc||"").split(t.staticFacet(X6e.lineSeparator)||M3e)),r=e.selection?e.selection instanceof Z3e?e.selection:Z3e.single(e.selection.anchor,e.selection.head):Z3e.single(0);return G3e(r,n.length),t.staticFacet(y6e)||(r=r.asSingle()),new X6e(t,n,r,t.dynamicSlots.map(()=>null),(e,t)=>t.create(e),null)}get tabSize(){return this.facet(X6e.tabSize)}get lineBreak(){return this.facet(X6e.lineSeparator)||"\n"}get readOnly(){return this.facet(k6e)}phrase(e,...t){for(let n of this.facet(X6e.phrases))if(Object.prototype.hasOwnProperty.call(n,e)){e=n[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(e,n)=>{if("$"==n)return"$";let r=+(n||1);return!r||r>t.length?e:t[r-1]})),e}languageDataAt(e,t,n=-1){let r=[];for(let i of this.facet(A6e))for(let o of i(this,t,n))Object.prototype.hasOwnProperty.call(o,e)&&r.push(o[e]);return r}charCategorizer(e){let t=this.languageDataAt("wordChars",e);return N6e(t.length?t[0]:"")}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),i=this.charCategorizer(e),o=e-n,a=e-n;for(;o>0;){let e=B3e(t,o,!1);if(i(t.slice(e,o))!=L6e.Word)break;o=e}for(;a<r;){let e=B3e(t,a);if(i(t.slice(a,e))!=L6e.Word)break;a=e}return o==a?null:Z3e.range(o+n,a+n)}}function F6e(e,t,n={}){let r={};for(let i of e)for(let e of Object.keys(i)){let t=i[e],o=r[e];if(void 0===o)r[e]=t;else if(o===t||void 0===t);else{if(!Object.hasOwnProperty.call(n,e))throw new Error("Config merge conflict for field "+e);r[e]=n[e](o,t)}}for(let i in t)void 0===r[i]&&(r[i]=t[i]);return r}X6e.allowMultipleSelections=y6e,X6e.tabSize=K3e.define({combine:e=>e.length?e[0]:4}),X6e.lineSeparator=v6e,X6e.readOnly=k6e,X6e.phrases=K3e.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(n=>e[n]==t[n])}}),X6e.languageData=A6e,X6e.changeFilter=b6e,X6e.transactionFilter=x6e,X6e.transactionExtender=w6e,p6e.reconfigure=_6e.define();class U6e{eq(e){return this==e}range(e,t=e){return q6e.create(e,t,this)}}function z6e(e,t){return e==t||e.constructor==t.constructor&&e.eq(t)}U6e.prototype.startSide=U6e.prototype.endSide=0,U6e.prototype.point=!1,U6e.prototype.mapMode=N3e.TrackDel;let q6e=class e{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(t,n,r){return new e(t,n,r)}};function V6e(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class W6e{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,r=0){let i=n?this.to:this.from;for(let o=r,a=i.length;;){if(o==a)return o;let r=o+a>>1,s=i[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t;if(r==o)return s>=0?o:a;s>=0?a=r:o=r+1}}between(e,t,n,r){for(let i=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,i);i<o;i++)if(!1===r(this.from[i]+e,this.to[i]+e,this.value[i]))return!1}map(e,t){let n=[],r=[],i=[],o=-1,a=-1;for(let s=0;s<this.value.length;s++){let l,c,u=this.value[s],h=this.from[s]+e,d=this.to[s]+e;if(h==d){let e=t.mapPos(h,u.startSide,u.mapMode);if(null==e)continue;if(l=c=e,u.startSide!=u.endSide&&(c=t.mapPos(h,u.endSide),c<l))continue}else if(l=t.mapPos(h,u.startSide),c=t.mapPos(d,u.endSide),l>c||l==c&&u.startSide>0&&u.endSide<=0)continue;(c-l||u.endSide-u.startSide)<0||(o<0&&(o=l),u.point&&(a=Math.max(a,c-l)),n.push(u),r.push(l-o),i.push(c-o))}return{mapped:n.length?new W6e(r,i,n,a):null,pos:o}}}class j6e{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}static create(e,t,n,r){return new j6e(e,t,n,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:r=0,filterTo:i=this.length}=e,o=e.filter;if(0==t.length&&!o)return this;if(n&&(t=t.slice().sort(V6e)),this.isEmpty)return t.length?j6e.of(t):this;let a=new G6e(this,null,-1).goto(0),s=0,l=[],c=new Y6e;for(;a.value||s<t.length;)if(s<t.length&&(a.from-t[s].from||a.startSide-t[s].value.startSide)>=0){let e=t[s++];c.addInner(e.from,e.to,e.value)||l.push(e)}else 1==a.rangeIndex&&a.chunkIndex<this.chunk.length&&(s==t.length||this.chunkEnd(a.chunkIndex)<t[s].from)&&(!o||r>this.chunkEnd(a.chunkIndex)||i<this.chunkPos[a.chunkIndex])&&c.addChunk(this.chunkPos[a.chunkIndex],this.chunk[a.chunkIndex])?a.nextChunk():((!o||r>a.to||i<a.from||o(a.from,a.to,a.value))&&(c.addInner(a.from,a.to,a.value)||l.push(q6e.create(a.from,a.to,a.value))),a.next());return c.finishInner(this.nextLayer.isEmpty&&!l.length?j6e.empty:this.nextLayer.update({add:l,filter:o,filterFrom:r,filterTo:i}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],n=[],r=-1;for(let o=0;o<this.chunk.length;o++){let i=this.chunkPos[o],a=this.chunk[o],s=e.touchesRange(i,i+a.length);if(!1===s)r=Math.max(r,a.maxPoint),t.push(a),n.push(e.mapPos(i));else if(!0===s){let{mapped:o,pos:s}=a.map(i,e);o&&(r=Math.max(r,o.maxPoint),t.push(o),n.push(s))}}let i=this.nextLayer.map(e);return 0==t.length?i:new j6e(n,t,i||j6e.empty,r)}between(e,t,n){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let i=this.chunkPos[r],o=this.chunk[r];if(t>=i&&e<=i+o.length&&!1===o.between(i,e-i,t-i,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return H6e.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return H6e.from(e).goto(t)}static compare(e,t,n,r,i=-1){let o=e.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i),a=t.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i),s=Z6e(o,a,n),l=new J6e(o,s,i),c=new J6e(a,s,i);n.iterGaps((e,t,n)=>e7e(l,e,c,t,n,r)),n.empty&&0==n.length&&e7e(l,0,c,0,0,r)}static eq(e,t,n=0,r){null==r&&(r=999999999);let i=e.filter(e=>!e.isEmpty&&t.indexOf(e)<0),o=t.filter(t=>!t.isEmpty&&e.indexOf(t)<0);if(i.length!=o.length)return!1;if(!i.length)return!0;let a=Z6e(i,o),s=new J6e(i,a,0).goto(n),l=new J6e(o,a,0).goto(n);for(;;){if(s.to!=l.to||!t7e(s.active,l.active)||s.point&&(!l.point||!z6e(s.point,l.point)))return!1;if(s.to>r)return!0;s.next(),l.next()}}static spans(e,t,n,r,i=-1){let o=new J6e(e,null,i).goto(t),a=t,s=o.openStart;for(;;){let e=Math.min(o.to,n);if(o.point){let n=o.activeForPoint(o.to),i=o.pointFrom<t?n.length+1:o.point.startSide<0?n.length:Math.min(n.length,s);r.point(a,e,o.point,n,i,o.pointRank),s=Math.min(o.openEnd(e),n.length)}else e>a&&(r.span(a,e,o.active,s),s=o.openEnd(e));if(o.to>n)return s+(o.point&&o.to>n?1:0);a=o.to,o.next()}}static of(e,t=!1){let n=new Y6e;for(let r of e instanceof q6e?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n<e.length;n++){let r=e[n];if(V6e(t,r)>0)return e.slice().sort(V6e);t=r}return e}(e):e)n.add(r.from,r.to,r.value);return n.finish()}static join(e){if(!e.length)return j6e.empty;let t=e[e.length-1];for(let n=e.length-2;n>=0;n--)for(let r=e[n];r!=j6e.empty;r=r.nextLayer)t=new j6e(r.chunkPos,r.chunk,t,Math.max(r.maxPoint,t.maxPoint));return t}}j6e.empty=new j6e([],[],null,-1),j6e.empty.nextLayer=j6e.empty;class Y6e{finishChunk(e){this.chunks.push(new W6e(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new Y6e)).add(e,t,n)}addInner(e,t,n){let r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(j6e.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=j6e.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function Z6e(e,t,n){let r=new Map;for(let o of e)for(let e=0;e<o.chunk.length;e++)o.chunk[e].maxPoint<=0&&r.set(o.chunk[e],o.chunkPos[e]);let i=new Set;for(let o of t)for(let e=0;e<o.chunk.length;e++){let t=r.get(o.chunk[e]);null==t||(n?n.mapPos(t):t)!=o.chunkPos[e]||(null==n?void 0:n.touchesRange(t,t+o.chunk[e].length))||i.add(o.chunk[e])}return i}class G6e{constructor(e,t,n,r=0){this.layer=e,this.skip=t,this.minPoint=n,this.rank=r}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,n){for(;this.chunkIndex<this.layer.chunk.length;){let t=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(t)||this.layer.chunkEnd(this.chunkIndex)<e||t.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let r=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!n||this.rangeIndex<r)&&this.setRangeIndex(r)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],n=e+t.from[this.rangeIndex];if(this.from=n,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class H6e{constructor(e){this.heap=e}static from(e,t=null,n=-1){let r=[];for(let i=0;i<e.length;i++)for(let o=e[i];!o.isEmpty;o=o.nextLayer)o.maxPoint>=n&&r.push(new G6e(o,t,n,i));return 1==r.length?r[0]:new H6e(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let n=this.heap.length>>1;n>=0;n--)K6e(this.heap,n);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let n=this.heap.length>>1;n>=0;n--)K6e(this.heap,n);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),K6e(this.heap,0)}}}function K6e(e,t){for(let n=e[t];;){let r=1+(t<<1);if(r>=e.length)break;let i=e[r];if(r+1<e.length&&i.compare(e[r+1])>=0&&(i=e[r+1],r++),n.compare(i)<0)break;e[r]=n,e[t]=i,t=r}}class J6e{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=H6e.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){n7e(this.active,e),n7e(this.activeTo,e),n7e(this.activeRank,e),this.minActive=i7e(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:r,rank:i}=this.cursor;for(;t<this.activeRank.length&&(i-this.activeRank[t]||r-this.activeTo[t])>0;)t++;r7e(this.active,t,n),r7e(this.activeTo,t,r),r7e(this.activeRank,t,i),e&&r7e(e,t,this.cursor.from),this.minActive=i7e(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&n7e(n,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)){this.point=e,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=e.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}this.cursor.next()}else this.addActive(n),this.cursor.next()}}}if(n){this.openStart=0;for(let t=n.length-1;t>=0&&n[t]<e;t--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function e7e(e,t,n,r,i,o){e.goto(t),n.goto(r);let a=r+i,s=r,l=r-t,c=!!o.boundChange;for(let u=!1;;){let t=e.to+l-n.to,r=t||e.endSide-n.endSide,i=r<0?e.to+l:n.to,h=Math.min(i,a);if(e.point||n.point?(e.point&&n.point&&z6e(e.point,n.point)&&t7e(e.activeForPoint(e.to),n.activeForPoint(n.to))||o.comparePoint(s,h,e.point,n.point),u=!1):(u&&o.boundChange(s),h>s&&!t7e(e.active,n.active)&&o.compareRange(s,h,e.active,n.active),c&&h<a&&(t||e.openEnd(i)!=n.openEnd(i))&&(u=!0)),i>a)break;s=i,r<=0&&e.next(),r>=0&&n.next()}}function t7e(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n]&&!z6e(e[n],t[n]))return!1;return!0}function n7e(e,t){for(let n=t,r=e.length-1;n<r;n++)e[n]=e[n+1];e.pop()}function r7e(e,t,n){for(let r=e.length-1;r>=t;r--)e[r+1]=e[r];e[t]=n}function i7e(e,t){let n=-1,r=1e9;for(let i=0;i<t.length;i++)(t[i]-r||e[i].endSide-e[n].endSide)<0&&(n=i,r=t[i]);return n}function o7e(e,t,n=e.length){let r=0;for(let i=0;i<n&&i<e.length;)9==e.charCodeAt(i)?(r+=t-r%t,i++):(r++,i=B3e(e,i));return r}function a7e(e,t,n,r){for(let i=0,o=0;;){if(o>=t)return i;if(i==e.length)break;o+=9==e.charCodeAt(i)?n-o%n:1,i=B3e(e,i)}return!0===r?-1:e.length}const s7e="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),l7e="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),c7e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class u7e{constructor(e,t){this.rules=[];let{finish:n}=t||{};function r(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function i(e,t,o,a){let s=[],l=/^@(\w+)\b/.exec(e[0]),c=l&&"keyframes"==l[1];if(l&&null==t)return o.push(e[0]+";");for(let n in t){let a=t[n];if(/&/.test(n))i(n.split(/,\s*/).map(t=>e.map(e=>t.replace(/&/,e))).reduce((e,t)=>e.concat(t)),a,o);else if(a&&"object"==typeof a){if(!l)throw new RangeError("The value of a property ("+n+") should be a primitive value.");i(r(n),a,s,c)}else null!=a&&s.push(n.replace(/_.*/,"").replace(/[A-Z]/g,e=>"-"+e.toLowerCase())+": "+a+";")}(s.length||c)&&o.push((!n||l||a?e:e.map(n)).join(", ")+" {"+s.join(" ")+"}")}for(let o in e)i(r(o),e[o],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=c7e[s7e]||1;return c7e[s7e]=e+1,"ͼ"+e.toString(36)}static mount(e,t,n){let r=e[l7e],i=n&&n.nonce;r?i&&r.setNonce(i):r=new d7e(e,i),r.mount(Array.isArray(t)?t:[t],e)}}let h7e=new Map;class d7e{constructor(e,t){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let t=h7e.get(n);if(t)return e[l7e]=t;this.sheet=new r.CSSStyleSheet,h7e.set(n,this)}else this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[l7e]=this}mount(e,t){let n=this.sheet,r=0,i=0;for(let o=0;o<e.length;o++){let t=e[o],a=this.modules.indexOf(t);if(a<i&&a>-1&&(this.modules.splice(a,1),i--,a=-1),-1==a){if(this.modules.splice(i++,0,t),n)for(let e=0;e<t.rules.length;e++)n.insertRule(t.rules[e],r++)}else{for(;i<a;)r+=this.modules[i++].rules.length;r+=t.rules.length,i++}}if(n)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let e="";for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+"\n";this.styleTag.textContent=e;let n=t.head||t;this.styleTag.parentNode!=n&&n.insertBefore(this.styleTag,n.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}function p7e(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];"string"==typeof i?e.setAttribute(r,i):null!=i&&(e[r]=i)}t++}for(;t<arguments.length;t++)f7e(e,arguments[t]);return e}function f7e(e,t){if("string"==typeof t)e.appendChild(document.createTextNode(t));else if(null==t);else if(null!=t.nodeType)e.appendChild(t);else{if(!Array.isArray(t))throw new RangeError("Unsupported child node: "+t);for(var n=0;n<t.length;n++)f7e(e,t[n])}}let g7e="undefined"!=typeof navigator?navigator:{userAgent:"",vendor:"",platform:""},m7e="undefined"!=typeof document?document:{documentElement:{style:{}}};const O7e=/Edge\/(\d+)/.exec(g7e.userAgent),A7e=/MSIE \d/.test(g7e.userAgent),y7e=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(g7e.userAgent),v7e=!!(A7e||y7e||O7e),b7e=!v7e&&/gecko\/(\d+)/i.test(g7e.userAgent),x7e=!v7e&&/Chrome\/(\d+)/.exec(g7e.userAgent),w7e="webkitFontSmoothing"in m7e.documentElement.style,k7e=!v7e&&/Apple Computer/.test(g7e.vendor),S7e=k7e&&(/Mobile\/\w+/.test(g7e.userAgent)||g7e.maxTouchPoints>2);var T7e={mac:S7e||/Mac/.test(g7e.platform),windows:/Win/.test(g7e.platform),linux:/Linux|X11/.test(g7e.platform),ie:v7e,ie_version:A7e?m7e.documentMode||6:y7e?+y7e[1]:O7e?+O7e[1]:0,gecko:b7e,gecko_version:b7e?+(/Firefox\/(\d+)/.exec(g7e.userAgent)||[0,0])[1]:0,chrome:!!x7e,chrome_version:x7e?+x7e[1]:0,ios:S7e,android:/Android\b/.test(g7e.userAgent),webkit:w7e,webkit_version:w7e?+(/\bAppleWebKit\/(\d+)/.exec(g7e.userAgent)||[0,0])[1]:0,safari:k7e,safari_version:k7e?+(/\bVersion\/(\d+(\.\d+)?)/.exec(g7e.userAgent)||[0,0])[1]:0,tabSize:null!=m7e.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};function $7e(e,t){for(let n in e)"class"==n&&t.class?t.class+=" "+e.class:"style"==n&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}const _7e=Object.create(null);function C7e(e,t,n){if(e==t)return!0;e||(e=_7e),t||(t=_7e);let r=Object.keys(e),i=Object.keys(t);if(r.length-0!=i.length-0)return!1;for(let o of r)if(o!=n&&(-1==i.indexOf(o)||e[o]!==t[o]))return!1;return!0}function Q7e(e,t,n){let r=!1;if(t)for(let i in t)n&&i in n||(r=!0,"style"==i?e.style.cssText="":e.removeAttribute(i));if(n)for(let i in n)t&&t[i]==n[i]||(r=!0,"style"==i?e.style.cssText=n[i]:e.setAttribute(i,n[i]));return r}function P7e(e){let t=Object.create(null);for(let n=0;n<e.attributes.length;n++){let r=e.attributes[n];t[r.name]=r.value}return t}class E7e{eq(e){return!1}updateDOM(e,t,n){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,n){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var R7e=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(R7e||(R7e={}));class B7e extends U6e{constructor(e,t,n,r){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=r}get heightRelevant(){return!1}static mark(e){return new I7e(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),n=!!e.block;return t+=n&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new D7e(e,t,t,n,e.widget||null,!1)}static replace(e){let t,n,r=!!e.block;if(e.isBlockGap)t=-5e8,n=4e8;else{let{start:i,end:o}=M7e(e,r);t=(i?r?-3e8:-1:5e8)-1,n=1+(o?r?2e8:1:-6e8)}return new D7e(e,t,n,r,e.widget||null,!0)}static line(e){return new L7e(e)}static set(e,t=!1){return j6e.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}B7e.none=j6e.empty;class I7e extends B7e{constructor(e){let{start:t,end:n}=M7e(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.attrs=e.class&&e.attributes?$7e(e.attributes,{class:e.class}):e.class?{class:e.class}:e.attributes||_7e}eq(e){return this==e||e instanceof I7e&&this.tagName==e.tagName&&C7e(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}I7e.prototype.point=!1;class L7e extends B7e{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof L7e&&this.spec.class==e.spec.class&&C7e(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}L7e.prototype.mapMode=N3e.TrackBefore,L7e.prototype.point=!0;class D7e extends B7e{constructor(e,t,n,r,i,o){super(t,n,i,e),this.block=r,this.isReplace=o,this.mapMode=r?t<=0?N3e.TrackBefore:N3e.TrackAfter:N3e.TrackDel}get type(){return this.startSide!=this.endSide?R7e.WidgetRange:this.startSide<=0?R7e.WidgetBefore:R7e.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof D7e&&(t=this.widget,n=e.widget,t==n||!!(t&&n&&t.compare(n)))&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide;var t,n}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function M7e(e,t=!1){let{inclusiveStart:n,inclusiveEnd:r}=e;return null==n&&(n=e.inclusive),null==r&&(r=e.inclusive),{start:null!=n?n:t,end:null!=r?r:t}}function N7e(e,t,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=e?n[i]=Math.max(n[i],t):n.push(e,t)}D7e.prototype.point=!0;class X7e extends U6e{constructor(e,t,n){super(),this.tagName=e,this.attributes=t,this.rank=n}eq(e){return e==this||e instanceof X7e&&this.tagName==e.tagName&&C7e(this.attributes,e.attributes)}static create(e){return new X7e(e.tagName,e.attributes||_7e,null==e.rank?50:Math.max(0,Math.min(e.rank,100)))}static set(e,t=!1){return j6e.of(e,t)}}function F7e(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function U7e(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function z7e(e,t){if(!t.anchorNode)return!1;try{return U7e(e,t.anchorNode)}catch(sdr){return!1}}function q7e(e){return 3==e.nodeType?i8e(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function V7e(e,t,n,r){return!!n&&(Y7e(e,t,n,r,-1)||Y7e(e,t,n,r,1))}function W7e(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function j7e(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}function Y7e(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:Z7e(e))){if("DIV"==e.nodeName)return!1;let n=e.parentNode;if(!n||1!=n.nodeType)return!1;t=W7e(e)+(i<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(i<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=i<0?Z7e(e):0}}}function Z7e(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function G7e(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function H7e(e){let t=e.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function K7e(e,t){let n=t.width/e.offsetWidth,r=t.height/e.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.width-e.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(t.height-e.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}function J7e(e,t=!0){let n=e.ownerDocument,r=null,i=null;for(let o=e.parentNode;o&&(o!=n.body&&(t&&!r||!i));)if(1==o.nodeType)!i&&o.scrollHeight>o.clientHeight&&(i=o),t&&!r&&o.scrollWidth>o.clientWidth&&(r=o),o=o.assignedSlot||o.parentNode;else{if(11!=o.nodeType)break;o=o.host}return{x:r,y:i}}X7e.prototype.startSide=X7e.prototype.endSide=-1;class e8e{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?Z7e(t):0),n,Math.min(e.focusOffset,n?Z7e(n):0))}set(e,t,n,r){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=r}}let t8e,n8e=null;function r8e(e){if(e.setActive)return e.setActive();if(n8e)return e.focus(n8e);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(null==n8e?{get preventScroll(){return n8e={preventScroll:!0},!0}}:void 0),!n8e){n8e=!1;for(let e=0;e<t.length;){let n=t[e++],r=t[e++],i=t[e++];n.scrollTop!=r&&(n.scrollTop=r),n.scrollLeft!=i&&(n.scrollLeft=i)}}}function i8e(e,t,n=t){let r=t8e||(t8e=document.createRange());return r.setEnd(e,n),r.setStart(e,t),r}function o8e(e,t,n,r){let i={key:t,code:t,keyCode:n,which:n,cancelable:!0};r&&({altKey:i.altKey,ctrlKey:i.ctrlKey,shiftKey:i.shiftKey,metaKey:i.metaKey}=r);let o=new KeyboardEvent("keydown",i);o.synthetic=!0,e.dispatchEvent(o);let a=new KeyboardEvent("keyup",i);return a.synthetic=!0,e.dispatchEvent(a),o.defaultPrevented||a.defaultPrevented}function a8e(e){return e instanceof Window?e.pageYOffset>Math.max(0,e.document.documentElement.scrollHeight-e.innerHeight-4):e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}function s8e(e,t){for(let n=e,r=t;;){if(3==n.nodeType&&r>0)return{node:n,offset:r};if(1==n.nodeType&&r>0){if("false"==n.contentEditable)return null;n=n.childNodes[r-1],r=Z7e(n)}else{if(!n.parentNode||j7e(n))return null;r=W7e(n),n=n.parentNode}}}function l8e(e,t){for(let n=e,r=t;;){if(3==n.nodeType&&r<n.nodeValue.length)return{node:n,offset:r};if(1==n.nodeType&&r<n.childNodes.length){if("false"==n.contentEditable)return null;n=n.childNodes[r],r=0}else{if(!n.parentNode||j7e(n))return null;r=W7e(n)+1,n=n.parentNode}}}T7e.safari&&T7e.safari_version>=26&&(n8e=!1);class c8e{constructor(e,t,n=!0){this.node=e,this.offset=t,this.precise=n}static before(e,t){return new c8e(e.parentNode,W7e(e),t)}static after(e,t){return new c8e(e.parentNode,W7e(e)+1,t)}}var u8e=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(u8e||(u8e={}));const h8e=u8e.LTR,d8e=u8e.RTL;function p8e(e){let t=[];for(let n=0;n<e.length;n++)t.push(1<<+e[n]);return t}const f8e=p8e("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),g8e=p8e("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),m8e=Object.create(null),O8e=[];for(let c of["()","[]","{}"]){let e=c.charCodeAt(0),t=c.charCodeAt(1);m8e[e]=t,m8e[t]=-e}function A8e(e){return e<=247?f8e[e]:1424<=e&&e<=1524?2:1536<=e&&e<=1785?g8e[e-1536]:1774<=e&&e<=2220?4:8192<=e&&e<=8204?256:64336<=e&&e<=65023?4:1}const y8e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class v8e{get dir(){return this.level%2?d8e:h8e}constructor(e,t,n){this.from=e,this.to=t,this.level=n}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,n,r){let i=-1;for(let o=0;o<e.length;o++){let a=e[o];if(a.from<=t&&a.to>=t){if(a.level==n)return o;(i<0||(0!=r?r<0?a.from<t:a.to>t:e[i].level>a.level))&&(i=o)}}if(i<0)throw new RangeError("Index out of range");return i}}function b8e(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=t[n];if(r.from!=i.from||r.to!=i.to||r.direction!=i.direction||!b8e(r.inner,i.inner))return!1}return!0}const x8e=[];function w8e(e,t,n,r,i,o,a){let s=r%2?2:1;if(r%2==i%2)for(let l=t,c=0;l<n;){let t=!0,u=!1;if(c==o.length||l<o[c].from){let e=x8e[l];e!=s&&(t=!1,u=16==e)}let h=t||1!=s?null:[],d=t?r:r+1,p=l;e:for(;;)if(c<o.length&&p==o[c].from){if(u)break e;let f=o[c];if(!t)for(let e=f.to,t=c+1;;){if(e==n)break e;if(!(t<o.length&&o[t].from==e)){if(x8e[e]==s)break e;break}e=o[t++].to}if(c++,h)h.push(f);else{f.from>l&&a.push(new v8e(l,f.from,d)),k8e(e,f.direction==h8e!=!(d%2)?r+1:r,i,f.inner,f.from,f.to,a),l=f.to}p=f.to}else{if(p==n||(t?x8e[p]!=s:x8e[p]==s))break;p++}h?w8e(e,l,p,r+1,i,h,a):l<p&&a.push(new v8e(l,p,d)),l=p}else for(let l=n,c=o.length;l>t;){let n=!0,u=!1;if(!c||l>o[c-1].to){let e=x8e[l-1];e!=s&&(n=!1,u=16==e)}let h=n||1!=s?null:[],d=n?r:r+1,p=l;e:for(;;)if(c&&p==o[c-1].to){if(u)break e;let f=o[--c];if(!n)for(let e=f.from,n=c;;){if(e==t)break e;if(!n||o[n-1].to!=e){if(x8e[e-1]==s)break e;break}e=o[--n].from}if(h)h.push(f);else{f.to<l&&a.push(new v8e(f.to,l,d)),k8e(e,f.direction==h8e!=!(d%2)?r+1:r,i,f.inner,f.from,f.to,a),l=f.from}p=f.from}else{if(p==t||(n?x8e[p-1]!=s:x8e[p-1]==s))break;p--}h?w8e(e,p,l,r+1,i,h,a):p<l&&a.push(new v8e(p,l,d)),l=p}}function k8e(e,t,n,r,i,o,a){let s=t%2?2:1;!function(e,t,n,r,i){for(let o=0;o<=r.length;o++){let a=o?r[o-1].to:t,s=o<r.length?r[o].from:n,l=o?256:i;for(let t=a,n=l,r=l;t<s;t++){let i=A8e(e.charCodeAt(t));512==i?i=n:8==i&&4==r&&(i=16),x8e[t]=4==i?2:i,7&i&&(r=i),n=i}for(let e=a,t=l,r=l;e<s;e++){let i=x8e[e];if(128==i)e<s-1&&t==x8e[e+1]&&24&t?i=x8e[e]=t:x8e[e]=256;else if(64==i){let i=e+1;for(;i<s&&64==x8e[i];)i++;let o=e&&8==t||i<n&&8==x8e[i]?1==r?1:8:256;for(let t=e;t<i;t++)x8e[t]=o;e=i-1}else 8==i&&1==r&&(x8e[e]=1);t=i,7&i&&(r=i)}}}(e,i,o,r,s),function(e,t,n,r,i){let o=1==i?2:1;for(let a=0,s=0,l=0;a<=r.length;a++){let c=a?r[a-1].to:t,u=a<r.length?r[a].from:n;for(let t,n,r,a=c;a<u;a++)if(n=m8e[t=e.charCodeAt(a)])if(n<0){for(let e=s-3;e>=0;e-=3)if(O8e[e+1]==-n){let t=O8e[e+2],n=2&t?i:4&t?1&t?o:i:0;n&&(x8e[a]=x8e[O8e[e]]=n),s=e;break}}else{if(189==O8e.length)break;O8e[s++]=a,O8e[s++]=t,O8e[s++]=l}else if(2==(r=x8e[a])||1==r){let e=r==i;l=e?0:1;for(let t=s-3;t>=0;t-=3){let n=O8e[t+2];if(2&n)break;if(e)O8e[t+2]|=2;else{if(4&n)break;O8e[t+2]|=4}}}}}(e,i,o,r,s),function(e,t,n,r){for(let i=0,o=r;i<=n.length;i++){let a=i?n[i-1].to:e,s=i<n.length?n[i].from:t;for(let l=a;l<s;){let a=x8e[l];if(256==a){let a=l+1;for(;;)if(a==s){if(i==n.length)break;a=n[i++].to,s=i<n.length?n[i].from:t}else{if(256!=x8e[a])break;a++}let c=1==o,u=c==(1==(a<t?x8e[a]:r))?c?1:2:r;for(let t=a,r=i,o=r?n[r-1].to:e;t>l;)t==o&&(t=n[--r].from,o=r?n[r-1].to:e),x8e[--t]=u;l=a}else o=a,l++}}}(i,o,r,s),w8e(e,i,o,t,n,r,a)}function S8e(e){return[new v8e(0,e,0)]}let T8e="";function $8e(e,t,n,r,i){var o;let a=r.head-e.from,s=v8e.find(t,a,null!==(o=r.bidiLevel)&&void 0!==o?o:-1,r.assoc),l=t[s],c=l.side(i,n);if(a==c){let e=s+=i?1:-1;if(e<0||e>=t.length)return null;l=t[s=e],a=l.side(!i,n),c=l.side(i,n)}let u=B3e(e.text,a,l.forward(i,n));(u<l.from||u>l.to)&&(u=c),T8e=e.text.slice(Math.min(a,u),Math.max(a,u));let h=s==(i?t.length-1:0)?null:t[s+(i?1:-1)];return h&&u==c&&h.level+(i?0:1)<l.level?Z3e.cursor(h.side(!i,n)+e.from,h.forward(i,n)?1:-1,h.level):Z3e.cursor(u+e.from,l.forward(i,n)?-1:1,l.level)}function _8e(e,t,n){for(let r=t;r<n;r++){let t=A8e(e.charCodeAt(r));if(1==t)return h8e;if(2==t||4==t)return d8e}return h8e}const C8e=K3e.define(),Q8e=K3e.define(),P8e=K3e.define(),E8e=K3e.define(),R8e=K3e.define(),B8e=K3e.define(),I8e=K3e.define(),L8e=K3e.define(),D8e=K3e.define(),M8e=K3e.define({combine:e=>e.some(e=>e)}),N8e=K3e.define({combine:e=>e.some(e=>e)}),X8e=K3e.define();class F8e{constructor(e,t,n,r,i,o=!1){this.range=e,this.y=t,this.x=n,this.yMargin=r,this.xMargin=i,this.isSnapshot=o}map(e){return e.empty?this:new F8e(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new F8e(Z3e.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const U8e=_6e.define({map:(e,t)=>e.map(t)}),z8e=_6e.define();function q8e(e,t,n){let r=e.facet(E8e);r.length?r[0](t):window.onerror&&window.onerror(String(t),n,void 0,void 0,t)}const V8e=K3e.define({combine:e=>!e.length||e[0]});let W8e=0;const j8e=K3e.define({combine:e=>e.filter((t,n)=>{for(let r=0;r<n;r++)if(e[r].plugin==t.plugin)return!1;return!0})});class Y8e{constructor(e,t,n,r,i){this.id=e,this.create=t,this.domEventHandlers=n,this.domEventObservers=r,this.baseExtensions=i(this),this.extension=this.baseExtensions.concat(j8e.of({plugin:this,arg:void 0}))}of(e){return this.baseExtensions.concat(j8e.of({plugin:this,arg:e}))}static define(e,t){const{eventHandlers:n,eventObservers:r,provide:i,decorations:o}=t||{};return new Y8e(W8e++,e,n,r,e=>{let t=[];return o&&t.push(K8e.of(t=>{let n=t.plugin(e);return n?o(n):B7e.none})),i&&t.push(i(e)),t})}static fromClass(e,t){return Y8e.define((t,n)=>new e(t,n),t)}}class Z8e{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(jk){if(q8e(e.state,jk,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(sdr){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg)}catch(jk){q8e(e.state,jk,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(jk){q8e(e.state,jk,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const G8e=K3e.define(),H8e=K3e.define(),K8e=K3e.define(),J8e=K3e.define(),e9e=K3e.define(),t9e=K3e.define(),n9e=K3e.define();function r9e(e,t){let n=e.state.facet(n9e);if(!n.length)return n;let r=n.map(t=>t instanceof Function?t(e):t),i=[];return j6e.spans(r,t.from,t.to,{point(){},span(e,n,r,o){let a=e-t.from,s=n-t.from,l=i;for(let i=r.length-1;i>=0;i--,o--){let e,n=r[i].spec.bidiIsolate;if(null==n&&(n=_8e(t.text,a,s)),o>0&&l.length&&(e=l[l.length-1]).to==a&&e.direction==n)e.to=s,l=e.inner;else{let e={from:a,to:s,direction:n,inner:[]};l.push(e),l=e.inner}}}}),i}const i9e=K3e.define();function o9e(e){let t=0,n=0,r=0,i=0;for(let o of e.state.facet(i9e)){let a=o(e);a&&(null!=a.left&&(t=Math.max(t,a.left)),null!=a.right&&(n=Math.max(n,a.right)),null!=a.top&&(r=Math.max(r,a.top)),null!=a.bottom&&(i=Math.max(i,a.bottom)))}return{left:t,right:n,top:r,bottom:i}}const a9e=K3e.define();class s9e{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}join(e){return new s9e(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let r=e[t-1];if(!(r.fromA>n.toA)){if(r.toA<n.fromA)break;n=n.join(r),e.splice(t-1,1)}}return e.splice(t,0,n),e}static extendWithRanges(e,t){if(0==t.length)return e;let n=[];for(let r=0,i=0,o=0;;){let a=r<e.length?e[r].fromB:1e9,s=i<t.length?t[i]:1e9,l=Math.min(a,s);if(1e9==l)break;let c=l+o,u=l,h=c;for(;;)if(i<t.length&&t[i]<=u){let n=t[i+1];i+=2,u=Math.max(u,n);for(let t=r;t<e.length&&e[t].fromB<=u;t++)o=e[t].toA-e[t].toB;h=Math.max(h,n+o)}else{if(!(r<e.length&&e[r].fromB<=u))break;{let t=e[r++];u=Math.max(u,t.toB),h=Math.max(h,t.toA),o=t.toA-t.toB}}n.push(new s9e(c,h,l,u))}return n}}class l9e{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=F3e.empty(this.startState.doc.length);for(let i of n)this.changes=this.changes.compose(i.changes);let r=[];this.changes.iterChangedRanges((e,t,n,i)=>r.push(new s9e(e,t,n,i))),this.changedRanges=r}static create(e,t,n){return new l9e(e,t,n)}get viewportChanged(){return(4&this.flags)>0}get viewportMoved(){return(8&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(18&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return 0==this.flags&&0==this.transactions.length}}const c9e=[];class u9e{constructor(e,t,n=0){this.dom=e,this.length=t,this.flags=n,this.parent=null,e.cmTile=this}get breakAfter(){return 1&this.flags}get children(){return c9e}isWidget(){return!1}get isHidden(){return!1}isComposite(){return!1}isLine(){return!1}isText(){return!1}isBlock(){return!1}get domAttrs(){return null}sync(e){if(this.flags|=2,4&this.flags){this.flags&=-5;let e=this.domAttrs;e&&function(e,t){for(let n=e.attributes.length-1;n>=0;n--){let r=e.attributes[n].name;null==t[r]&&e.removeAttribute(r)}for(let n in t){let r=t[n];"style"==n?e.style.cssText=r:e.getAttribute(n)!=r&&e.setAttribute(n,r)}}(this.dom,e)}}toString(){return this.constructor.name+(this.children.length?`(${this.children})`:"")+(this.breakAfter?"#":"")}destroy(){this.parent=null}setDOM(e){this.dom=e,e.cmTile=this}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e,t=this.posAtStart){let n=t;for(let r of this.children){if(r==e)return n;n+=r.length+r.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}covers(e){return!0}coordsIn(e,t){return null}domPosFor(e,t){let n=W7e(this.dom),r=this.length?e>0:t>0;return new c8e(this.parent.dom,n+(r?1:0),0==e||e==this.length)}markDirty(e){this.flags&=-3,e&&(this.flags|=4),this.parent&&2&this.parent.flags&&this.parent.markDirty(!1)}get overrideDOMText(){return null}get root(){for(let e=this;e;e=e.parent)if(e instanceof p9e)return e;return null}static get(e){return e.cmTile}}class h9e extends u9e{constructor(e){super(e,0),this._children=[]}isComposite(){return!0}get children(){return this._children}get lastChild(){return this.children.length?this.children[this.children.length-1]:null}append(e){this.children.push(e),e.parent=this}sync(e){if(2&this.flags)return;super.sync(e);let t,n=this.dom,r=null,i=(null==e?void 0:e.node)==n?e:null,o=0;for(let a of this.children){if(a.sync(e),o+=a.length+a.breakAfter,t=r?r.nextSibling:n.firstChild,i&&t!=a.dom&&(i.written=!0),a.dom.parentNode==n)for(;t&&t!=a.dom;)t=d9e(t);else n.insertBefore(a.dom,t);r=a.dom}for(t=r?r.nextSibling:n.firstChild,i&&t&&(i.written=!0);t;)t=d9e(t);this.length=o}}function d9e(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class p9e extends h9e{constructor(e,t){super(t),this.view=e}owns(e){for(;e;e=e.parent)if(e==this)return!0;return!1}isBlock(){return!0}nearest(e){for(;;){if(!e)return null;let t=u9e.get(e);if(t&&this.owns(t))return t;e=e.parentNode}}blockTiles(e){for(let t=[],n=this,r=0,i=0;;)if(r==n.children.length){if(!t.length)return;n=n.parent,n.breakAfter&&i++,r=t.pop()}else{let o=n.children[r++];if(o instanceof f9e)t.push(r),n=o,r=0;else{let t=i+o.length,n=e(o,i);if(void 0!==n)return n;i=t+o.breakAfter}}}resolveBlock(e,t){let n,r,i=-1,o=-1;if(this.blockTiles((a,s)=>{let l=s+a.length;if(e>=s&&e<=l){if(a.isWidget()&&t>=-1&&t<=1){if(32&a.flags)return!0;16&a.flags&&(n=void 0)}(s<e||e==l&&(t<-1?a.length:a.covers(1)))&&(!n||!a.isWidget()&&n.isWidget())&&(n=a,i=e-s),(l>e||e==s&&(t>1?a.length:a.covers(-1)))&&(!r||!a.isWidget()&&r.isWidget())&&(r=a,o=e-s)}}),!n&&!r)throw new Error("No tile at position "+e);return n&&t<0||!r?{tile:n,offset:i}:{tile:r,offset:o}}}class f9e extends h9e{constructor(e,t){super(e),this.wrapper=t}isBlock(){return!0}covers(e){return!!this.children.length&&(e<0?this.children[0].covers(-1):this.lastChild.covers(1))}get domAttrs(){return this.wrapper.attributes}static of(e,t){let n=new f9e(t||document.createElement(e.tagName),e);return t||(n.flags|=4),n}}class g9e extends h9e{constructor(e,t){super(e),this.attrs=t}isLine(){return!0}static start(e,t,n){let r=new g9e(t||document.createElement("div"),e);return t&&n||(r.flags|=4),r}get domAttrs(){return this.attrs}resolveInline(e,t,n){let r=null,i=-1,o=null,a=-1;!function e(s,l){for(let c=0,u=0;c<s.children.length&&u<=l;c++){let h=s.children[c],d=u+h.length;d>=l&&(h.isComposite()?e(h,l-u):(!o||o.isHidden&&(t>0||n&&m9e(o,h)))&&(d>l||32&h.flags)?(o=h,a=l-u):(u<l||16&h.flags&&!h.isHidden)&&(r=h,i=l-u)),u=d}}(this,e);let s=(t<0?r:o)||r||o;return s?{tile:s,offset:s==r?i:a}:null}coordsIn(e,t){let n=this.resolveInline(e,t,!0);return n?n.tile.coordsIn(Math.max(0,n.offset),t):function(e){let t=e.dom.lastChild;if(!t)return e.dom.getBoundingClientRect();let n=q7e(t);return n[n.length-1]||null}(this)}domIn(e,t){let n=this.resolveInline(e,t);if(n){let{tile:e,offset:r}=n;if(this.dom.contains(e.dom))return e.isText()?new c8e(e.dom,Math.min(e.dom.nodeValue.length,r)):e.domPosFor(r,16&e.flags?1:32&e.flags?-1:t);let i=n.tile.parent,o=!1;for(let t of i.children){if(o)return new c8e(t.dom,0);t==n.tile&&(o=!0)}}return new c8e(this.dom,0)}}function m9e(e,t){let n=e.coordsIn(0,1),r=t.coordsIn(0,1);return n&&r&&r.top<n.bottom}class O9e extends h9e{constructor(e,t){super(e),this.mark=t}get domAttrs(){return this.mark.attrs}static of(e,t){let n=new O9e(t||document.createElement(e.tagName),e);return t||(n.flags|=4),n}}class A9e extends u9e{constructor(e,t){super(e,t.length),this.text=t}sync(e){2&this.flags||(super.sync(e),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text))}isText(){return!0}toString(){return JSON.stringify(this.text)}coordsIn(e,t){let n=this.dom.nodeValue.length;e>n&&(e=n);let r=e,i=e,o=0;0==e&&t<0||e==n&&t>=0?T7e.chrome||T7e.gecko||(e?(r--,o=1):i<n&&(i++,o=-1)):t<0?r--:i<n&&i++;let a=i8e(this.dom,r,i).getClientRects();if(!a.length)return null;let s=a[(o?o<0:t>=0)?0:a.length-1];return T7e.safari&&!o&&0==s.width&&(s=Array.prototype.find.call(a,e=>e.width)||s),o?G7e(s,o<0):s||null}static of(e,t){let n=new A9e(t||document.createTextNode(e),e);return t||(n.flags|=2),n}}class y9e extends u9e{constructor(e,t,n,r){super(e,t,r),this.widget=n}isWidget(){return!0}get isHidden(){return this.widget.isHidden}covers(e){return!(48&this.flags)&&(this.flags&(e<0?64:128))>0}coordsIn(e,t){return this.coordsInWidget(e,t,!1)}coordsInWidget(e,t,n){let r=this.widget.coordsAt(this.dom,e,t);if(r)return r;if(n)return G7e(this.dom.getBoundingClientRect(),this.length?0==e:t<=0);{let t=this.dom.getClientRects(),n=null;if(!t.length)return null;let r=!!(16&this.flags)||!(32&this.flags)&&e>0;for(let i=r?t.length-1:0;n=t[i],!(e>0?0==i:i==t.length-1||n.top<n.bottom);i+=r?-1:1);return G7e(n,!r)}}get overrideDOMText(){if(!this.length)return k3e.empty;let{root:e}=this;if(!e)return k3e.empty;let t=this.posAtStart;return e.view.state.doc.slice(t,t+this.length)}destroy(){super.destroy(),this.widget.destroy(this.dom)}static of(e,t,n,r,i){return i||(i=e.toDOM(t),e.editable||(i.contentEditable="false")),new y9e(i,n,e,r)}}class v9e extends u9e{constructor(e){let t=document.createElement("img");t.className="cm-widgetBuffer",t.setAttribute("aria-hidden","true"),super(t,0,e)}get isHidden(){return!0}get overrideDOMText(){return k3e.empty}coordsIn(e){return this.dom.getBoundingClientRect()}}class b9e{constructor(e){this.index=0,this.beforeBreak=!1,this.parents=[],this.tile=e}advance(e,t,n){let{tile:r,index:i,beforeBreak:o,parents:a}=this;for(;e||t>0;)if(r.isComposite())if(o){if(!e)break;n&&n.break(),e--,o=!1}else if(i==r.children.length){if(!e&&!a.length)break;n&&n.leave(r),o=!!r.breakAfter,({tile:r,index:i}=a.pop()),i++}else{let s=r.children[i],l=s.breakAfter;!(t>0?s.length<=e:s.length<e)||n&&!1===n.skip(s,0,s.length)&&s.isComposite?(a.push({tile:r,index:i}),r=s,i=0,n&&s.isComposite()&&n.enter(s)):(o=!!l,i++,e-=s.length)}else if(i==r.length)o=!!r.breakAfter,({tile:r,index:i}=a.pop()),i++;else{if(!e)break;{let t=Math.min(e,r.length-i);n&&n.skip(r,i,i+t),e-=t,i+=t}}return this.tile=r,this.index=i,this.beforeBreak=o,this}get root(){return this.parents.length?this.parents[0].tile:this.tile}}class x9e{constructor(e,t,n,r){this.from=e,this.to=t,this.wrapper=n,this.rank=r}}class w9e{constructor(e,t,n){this.cache=e,this.root=t,this.blockWrappers=n,this.curLine=null,this.lastBlock=null,this.afterWidget=null,this.pos=0,this.wrappers=[],this.wrapperPos=0}addText(e,t,n,r){var i;this.flushBuffer();let o=this.ensureMarks(t,n),a=o.lastChild;if(a&&a.isText()&&!(8&a.flags)&&a.length+e.length<512){this.cache.reused.set(a,2),(o.children[o.children.length-1]=new A9e(a.dom,a.text+e)).parent=o}else o.append(r||A9e.of(e,null===(i=this.cache.find(A9e))||void 0===i?void 0:i.dom));this.pos+=e.length,this.afterWidget=null}addComposition(e,t){let n=this.curLine;n.dom!=t.line.dom&&(n.setDOM(this.cache.reused.has(t.line)?Q9e(t.line.dom):t.line.dom),this.cache.reused.set(t.line,2));let r=n;for(let a=t.marks.length-1;a>=0;a--){let e=t.marks[a],n=r.lastChild;if(n instanceof O9e&&n.mark.eq(e.mark))n.dom!=e.dom&&n.setDOM(Q9e(e.dom)),r=n;else{if(this.cache.reused.get(e)){let t=u9e.get(e.dom);t&&t.setDOM(Q9e(e.dom))}let t=O9e.of(e.mark,e.dom);r.append(t),r=t}this.cache.reused.set(e,2)}let i=u9e.get(e.text);i&&this.cache.reused.set(i,2);let o=new A9e(e.text,e.text.nodeValue);o.flags|=8,this.pos=e.range.toB,r.append(o)}addInlineWidget(e,t,n){let r=this.afterWidget&&48&e.flags&&(48&this.afterWidget.flags)==(48&e.flags);r||this.flushBuffer();let i=this.ensureMarks(t,n);r||16&e.flags||i.append(this.getBuffer(1)),i.append(e),this.pos+=e.length,this.afterWidget=e}addMark(e,t,n){this.flushBuffer(),this.ensureMarks(t,n).append(e),this.pos+=e.length,this.afterWidget=null}addBlockWidget(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}continueWidget(e){(this.afterWidget||this.lastBlock).length+=e,this.pos+=e}addLineStart(e,t){var n;e||(e=C9e);let r=g9e.start(e,t||(null===(n=this.cache.find(g9e))||void 0===n?void 0:n.dom),!!t);this.getBlockPos().append(this.lastBlock=this.curLine=r)}addLine(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}addBreak(){this.lastBlock.flags|=1,this.endLine(),this.pos++}addLineStartIfNotCovered(e){this.blockPosCovered()||this.addLineStart(e)}ensureLine(e){this.curLine||this.addLineStart(e)}ensureMarks(e,t){var n;let r=this.curLine;for(let i=e.length-1;i>=0;i--){let o,a=e[i];if(t>0&&(o=r.lastChild)&&o instanceof O9e&&o.mark.eq(a))r=o,t--;else{let e=O9e.of(a,null===(n=this.cache.find(O9e,e=>e.mark.eq(a)))||void 0===n?void 0:n.dom);r.append(e),r=e,t=0}}return r}endLine(){if(this.curLine){this.flushBuffer();let e=this.curLine.lastChild;e&&_9e(this.curLine,!1)&&("BR"==e.dom.nodeName||!e.isWidget()||T7e.ios&&_9e(this.curLine,!0))||this.curLine.append(this.cache.findWidget(E9e,0,32)||new y9e(E9e.toDOM(),0,E9e,32)),this.curLine=this.afterWidget=null}}updateBlockWrappers(){this.wrapperPos>this.pos+1e4&&(this.blockWrappers.goto(this.pos),this.wrappers.length=0);for(let e=this.wrappers.length-1;e>=0;e--)this.wrappers[e].to<this.pos&&this.wrappers.splice(e,1);for(let e=this.blockWrappers;e.value&&e.from<=this.pos;e.next())if(e.to>=this.pos){let t=102*e.rank+e.value.rank,n=new x9e(e.from,e.to,e.value,t),r=this.wrappers.length;for(;r>0&&(this.wrappers[r-1].rank-n.rank||this.wrappers[r-1].to-n.to)<0;)r--;this.wrappers.splice(r,0,n)}this.wrapperPos=this.pos}getBlockPos(){var e;this.updateBlockWrappers();let t=this.root;for(let n of this.wrappers){let r=t.lastChild;if(n.from<this.pos&&r instanceof f9e&&r.wrapper.eq(n.wrapper))t=r;else{let r=f9e.of(n.wrapper,null===(e=this.cache.find(f9e,e=>e.wrapper.eq(n.wrapper)))||void 0===e?void 0:e.dom);t.append(r),t=r}}return t}blockPosCovered(){let e=this.lastBlock;return null!=e&&!e.breakAfter&&(!e.isWidget()||(160&e.flags)>0)}getBuffer(e){let t=2|(e<0?16:32),n=this.cache.find(v9e,void 0,1);return n&&(n.flags=t),n||new v9e(t)}flushBuffer(){!this.afterWidget||32&this.afterWidget.flags||(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null)}}class k9e{constructor(e){this.skipCount=0,this.text="",this.textOff=0,this.cursor=e.iter()}skip(e){this.textOff+e<=this.text.length?this.textOff+=e:(this.skipCount+=e-(this.text.length-this.textOff),this.text="",this.textOff=0)}next(e){if(this.textOff==this.text.length){let{value:t,lineBreak:n,done:r}=this.cursor.next(this.skipCount);if(this.skipCount=0,r)throw new Error("Ran out of text content when drawing inline views");this.text=t;let i=this.textOff=Math.min(e,t.length);return n?null:t.slice(0,i)}let t=Math.min(this.text.length,this.textOff+e),n=this.text.slice(this.textOff,t);return this.textOff=t,n}}const S9e=[y9e,g9e,A9e,O9e,v9e,f9e,p9e];for(let c=0;c<S9e.length;c++)S9e[c].bucket=c;class T9e{constructor(e){this.view=e,this.buckets=S9e.map(()=>[]),this.index=S9e.map(()=>0),this.reused=new Map}add(e){let t=e.constructor.bucket,n=this.buckets[t];n.length<6?n.push(e):n[this.index[t]=(this.index[t]+1)%6]=e}find(e,t,n=2){let r=e.bucket,i=this.buckets[r],o=this.index[r];for(let a=i.length-1;a>=0;a--){let e=(a+o)%i.length,s=i[e];if((!t||t(s))&&!this.reused.has(s))return i.splice(e,1),e<o&&this.index[r]--,this.reused.set(s,n),s}return null}findWidget(e,t,n){let r=this.buckets[0];if(r.length)for(let i=0,o=0;;i++){if(i==r.length){if(o)return null;o=1,i=0}let a=r[i];if(!this.reused.has(a)&&(0==o?a.widget.compare(e):a.widget.constructor==e.constructor&&e.updateDOM(a.dom,this.view,a.widget)))return r.splice(i,1),i<this.index[0]&&this.index[0]--,a.widget==e&&a.length==t&&(497&a.flags)==n?(this.reused.set(a,1),a):(this.reused.set(a,2),new y9e(a.dom,t,e,-498&a.flags|n))}}reuse(e){return this.reused.set(e,1),e}maybeReuse(e,t=2){if(!this.reused.has(e))return this.reused.set(e,t),e.dom}clear(){for(let e=0;e<this.buckets.length;e++)this.buckets[e].length=this.index[e]=0}}class $9e{constructor(e,t,n,r,i){this.view=e,this.decorations=r,this.disallowBlockEffectsFor=i,this.openWidget=!1,this.openMarks=0,this.cache=new T9e(e),this.text=new k9e(e.state.doc),this.builder=new w9e(this.cache,new p9e(e,e.contentDOM),j6e.iter(n)),this.cache.reused.set(t,2),this.old=new b9e(t),this.reuseWalker={skip:(e,t,n)=>{if(this.cache.add(e),e.isComposite())return!1},enter:e=>this.cache.add(e),leave:()=>{},break:()=>{}}}run(e,t){let n=t&&this.getCompositionContext(t.text);for(let r=0,i=0,o=0;;){let a=o<e.length?e[o++]:null,s=a?a.fromA:this.old.root.length;if(s>r){let e=s-r;this.preserve(e,!o,!a),r=s,i+=e}if(!a)break;t&&a.fromA<=t.range.fromA&&a.toA>=t.range.toA?(this.forward(a.fromA,t.range.fromA,t.range.fromA<t.range.toA?1:-1),this.emit(i,t.range.fromB),this.builder.flushBuffer(),this.cache.clear(),this.builder.addComposition(t,n),this.text.skip(t.range.toB-t.range.fromB),this.forward(t.range.fromA,a.toA),this.emit(t.range.toB,a.toB)):(this.forward(a.fromA,a.toA),this.emit(i,a.toB)),i=a.toB,r=a.toA}return this.builder.curLine&&this.builder.endLine(),this.builder.root}preserve(e,t,n){let r=function(e){let t=[];for(let n=e.parents.length;n>1;n--){let r=n==e.parents.length?e.tile:e.parents[n].tile;r instanceof O9e&&t.push(r.mark)}return t}(this.old),i=this.openMarks;this.old.advance(e,n?1:-1,{skip:(e,t,n)=>{if(e.isWidget())if(this.openWidget)this.builder.continueWidget(n-t);else{let o=n>0||t<e.length?y9e.of(e.widget,this.view,n-t,496&e.flags,this.cache.maybeReuse(e)):this.cache.reuse(e);256&o.flags?(o.flags&=-2,this.builder.addBlockWidget(o)):(this.builder.ensureLine(null),this.builder.addInlineWidget(o,r,i),i=r.length)}else if(e.isText())this.builder.ensureLine(null),t||n!=e.length||this.cache.reused.has(e)?(this.cache.add(e),this.builder.addText(e.text.slice(t,n),r,i)):this.builder.addText(e.text,r,i,this.cache.reuse(e)),i=r.length;else if(e.isLine())e.flags&=-2,this.cache.reused.set(e,1),this.builder.addLine(e);else if(e instanceof v9e)this.cache.add(e);else{if(!(e instanceof O9e))return!1;this.builder.ensureLine(null),this.builder.addMark(e,r,i),this.cache.reused.set(e,1),i=r.length}this.openWidget=!1},enter:e=>{e.isLine()?this.builder.addLineStart(e.attrs,this.cache.maybeReuse(e)):(this.cache.add(e),e instanceof O9e&&r.unshift(e.mark)),this.openWidget=!1},leave:e=>{e.isLine()?r.length&&(r.length=i=0):e instanceof O9e&&(r.shift(),i=Math.min(i,r.length))},break:()=>{this.builder.addBreak(),this.openWidget=!1}}),this.text.skip(e)}emit(e,t){let n=null,r=this.builder,i=0,o=j6e.spans(this.decorations,e,t,{point:(e,t,o,a,s,l)=>{if(o instanceof D7e){if(this.disallowBlockEffectsFor[l]){if(o.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.view.state.doc.lineAt(e).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}if(i=a.length,s>a.length)r.continueWidget(t-e);else{let i=o.widget||(o.block?P9e.block:P9e.inline),l=function(e){let t=e.isReplace?(e.startSide<0?64:0)|(e.endSide>0?128:0):e.startSide>0?32:16;e.block&&(t|=256);return t}(o),c=this.cache.findWidget(i,t-e,l)||y9e.of(i,this.view,t-e,l);o.block?(o.startSide>0&&r.addLineStartIfNotCovered(n),r.addBlockWidget(c)):(r.ensureLine(n),r.addInlineWidget(c,a,s))}n=null}else n=function(e,t){let n=t.spec.attributes,r=t.spec.class;if(!n&&!r)return e;e||(e={class:"cm-line"});n&&$7e(n,e);r&&(e.class+=" "+r);return e}(n,o);t>e&&this.text.skip(t-e)},span:(e,t,i,o)=>{for(let a=e;a<t;){let s=this.text.next(Math.min(512,t-a));null==s?(r.addLineStartIfNotCovered(n),r.addBreak(),a++):(r.ensureLine(n),r.addText(s,i,a==e?o:i.length),a+=s.length),n=null}}});r.addLineStartIfNotCovered(n),this.openWidget=o>i,this.openMarks=o}forward(e,t,n=1){t-e<=10?this.old.advance(t-e,n,this.reuseWalker):(this.old.advance(5,-1,this.reuseWalker),this.old.advance(t-e-10,-1),this.old.advance(5,n,this.reuseWalker))}getCompositionContext(e){let t=[],n=null;for(let r=e.parentNode;;r=r.parentNode){let e=u9e.get(r);if(r==this.view.contentDOM)break;e instanceof O9e?t.push(e):(null==e?void 0:e.isLine())?n=e:e instanceof f9e||("DIV"!=r.nodeName||n||r==this.view.contentDOM?n||t.push(O9e.of(new I7e({tagName:r.nodeName.toLowerCase(),attributes:P7e(r)}),r)):n=new g9e(r,C9e))}return{line:n,marks:t}}}function _9e(e,t){let n=e=>{for(let r of e.children)if((t?r.isText():r.length)||n(r))return!0;return!1};return n(e)}const C9e={class:"cm-line"};function Q9e(e){let t=u9e.get(e);return t&&t.setDOM(e.cloneNode()),e}class P9e extends E7e{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}P9e.inline=new P9e("span"),P9e.block=new P9e("div");const E9e=new class extends E7e{toDOM(){return document.createElement("br")}get isHidden(){return!0}get editable(){return!0}};class R9e{constructor(e){this.view=e,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=B7e.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.updateDeco(),this.tile=new p9e(e,e.contentDOM),this.updateInner([new s9e(0,0,0,e.state.doc.length)],null)}update(e){var t;let n=e.changedRanges;this.minWidth>0&&n.length&&(n.every(({fromA:e,toA:t})=>t<this.minWidthFrom||e>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let r=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&((null===(t=this.domChanged)||void 0===t?void 0:t.newSel)?r=this.domChanged.newSel.head:function(e,t){let n=!1;t&&e.iterChangedRanges((e,r)=>{e<t.to&&r>t.from&&(n=!0)});return n}(e.changes,this.hasComposition)||e.selectionSet||(r=e.state.selection.main.head));let i=r>-1?function(e,t,n){let r=I9e(e,n);if(!r)return null;let{node:i,from:o,to:a}=r,s=i.nodeValue;if(/[\n\r]/.test(s))return null;if(e.state.doc.sliceString(r.from,r.to)!=s)return null;let l=t.invertedDesc;return{range:new s9e(l.mapPos(o),l.mapPos(a),o,a),text:i}}(this.view,e.changes,r):null;if(this.domChanged=null,this.hasComposition){let{from:t,to:r}=this.hasComposition;n=new s9e(t,r,e.changes.mapPos(t,-1),e.changes.mapPos(r,1)).addToSet(n.slice())}this.hasComposition=i?{from:i.range.fromB,to:i.range.toB}:null,(T7e.ie||T7e.chrome)&&!i&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,a=this.blockWrappers;this.updateDeco();let s=function(e,t,n){let r=new L9e;return j6e.compare(e,t,n,r),r.changes}(o,this.decorations,e.changes);s.length&&(n=s9e.extendWithRanges(n,s));let l=function(e,t,n){let r=new D9e;return j6e.compare(e,t,n,r),r.changes}(a,this.blockWrappers,e.changes);return l.length&&(n=s9e.extendWithRanges(n,l)),i&&!n.some(e=>e.fromA<=i.range.fromA&&e.toA>=i.range.toA)&&(n=i.range.addToSet(n.slice())),!(2&this.tile.flags&&0==n.length)&&(this.updateInner(n,i),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t){this.view.viewState.mustMeasureContent=!0;let{observer:n}=this.view;n.ignore(()=>{if(t||e.length){let n=this.tile,r=new $9e(this.view,n,this.blockWrappers,this.decorations,this.dynamicDecorationMap);t&&u9e.get(t.text)&&r.cache.reused.set(u9e.get(t.text),2),this.tile=r.run(e,t),B9e(n,r.cache.reused)}this.tile.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.tile.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let r=T7e.chrome||T7e.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.tile.sync(r),!r||!r.written&&n.selectionRange.focusNode==r.node&&this.tile.dom.contains(r.node)||(this.forceSelection=!0),this.tile.dom.style.height=""});let r=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let i of this.tile.children)i.isWidget()&&i.widget instanceof M9e&&r.push(i.dom);n.updateGaps(r)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let t of e.transactions)for(let e of t.effects)e.is(z8e)&&(this.editContextFormatting=e.value)}updateSelection(e=!1,t=!1){!e&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();let{dom:n}=this.tile,r=this.view.root.activeElement,i=r==n,o=!i&&!(this.view.state.facet(V8e)||n.tabIndex>-1)&&z7e(n,this.view.observer.selectionRange)&&!(r&&n.contains(r));if(!(i||t||o))return;let a=this.forceSelection;this.forceSelection=!1;let s,l,c=this.view.state.selection.main;if(c.empty?l=s=this.inlineDOMNearPos(c.anchor,c.assoc||1):(l=this.inlineDOMNearPos(c.head,c.head==c.from?1:-1),s=this.inlineDOMNearPos(c.anchor,c.anchor==c.from?1:-1)),T7e.gecko&&c.empty&&!this.hasComposition&&(1==(u=s).node.nodeType&&u.node.firstChild&&(0==u.offset||"false"==u.node.childNodes[u.offset-1].contentEditable)&&(u.offset==u.node.childNodes.length||"false"==u.node.childNodes[u.offset].contentEditable))){let e=document.createTextNode("");this.view.observer.ignore(()=>s.node.insertBefore(e,s.node.childNodes[s.offset]||null)),s=l=new c8e(e,0),a=!0}var u;let h=this.view.observer.selectionRange;!a&&h.focusNode&&(V7e(s.node,s.offset,h.anchorNode,h.anchorOffset)&&V7e(l.node,l.offset,h.focusNode,h.focusOffset)||this.suppressWidgetCursorChange(h,c))||(this.view.observer.ignore(()=>{T7e.android&&T7e.chrome&&n.contains(h.focusNode)&&function(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}(h.focusNode,n)&&(n.blur(),n.focus({preventScroll:!0}));let e=F7e(this.view.root);if(e)if(c.empty){if(T7e.gecko){let e=(t=s.node,i=s.offset,1!=t.nodeType?0:(i&&"false"==t.childNodes[i-1].contentEditable?1:0)|(i<t.childNodes.length&&"false"==t.childNodes[i].contentEditable?2:0));if(e&&3!=e){let t=(1==e?s8e:l8e)(s.node,s.offset);t&&(s=new c8e(t.node,t.offset))}}e.collapse(s.node,s.offset),null!=c.bidiLevel&&void 0!==e.caretBidiLevel&&(e.caretBidiLevel=c.bidiLevel)}else if(e.extend){e.collapse(s.node,s.offset);try{e.extend(l.node,l.offset)}catch(sdr){}}else{let t=document.createRange();c.anchor>c.head&&([s,l]=[l,s]),t.setEnd(l.node,l.offset),t.setStart(s.node,s.offset),e.removeAllRanges(),e.addRange(t)}else;var t,i;o&&this.view.root.activeElement==n&&(n.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(s,l)),this.impreciseAnchor=s.precise?null:new c8e(h.anchorNode,h.anchorOffset),this.impreciseHead=l.precise?null:new c8e(h.focusNode,h.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&V7e(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=F7e(e.root),{anchorNode:r,anchorOffset:i}=e.observer.selectionRange;if(!(n&&t.empty&&t.assoc&&n.modify))return;let o=this.lineAt(t.head,t.assoc);if(!o)return;let a=o.posAtStart;if(t.head==a||t.head==a+o.length)return;let s=this.coordsAt(t.head,-1),l=this.coordsAt(t.head,1);if(!s||!l||s.bottom>l.top)return;let c=this.domAtPos(t.head+t.assoc,t.assoc);n.collapse(c.node,c.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let u=e.observer.selectionRange;e.docView.posFromDOM(u.anchorNode,u.anchorOffset)!=t.from&&n.collapse(r,i)}posFromDOM(e,t){let n=this.tile.nearest(e);if(!n)return 2&this.tile.dom.compareDocumentPosition(e)?0:this.view.state.doc.length;let r=n.posAtStart;if(!n.isComposite())return n.isText()?e==n.dom?r+t:r+(t?n.length:0):r;{let i;if(e==n.dom)i=n.dom.childNodes[t];else{let r=0==Z7e(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==n.dom)break;0==r&&t.firstChild!=t.lastChild&&(r=e==t.firstChild?-1:1),e=t}i=r<0?e:e.nextSibling}if(i==n.dom.firstChild)return r;for(;i&&!u9e.get(i);)i=i.nextSibling;if(!i)return r+n.length;for(let e=0,t=r;;e++){let r=n.children[e];if(r.dom==i)return t;t+=r.length+r.breakAfter}}}domAtPos(e,t){let{tile:n,offset:r}=this.tile.resolveBlock(e,t);return n.isWidget()?n.domPosFor(e,t):n.domIn(r,t)}inlineDOMNearPos(e,t){let n,r,i=-1,o=!1,a=-1,s=!1;return this.tile.blockTiles((t,l)=>{if(t.isWidget()){if(32&t.flags&&l>=e)return!0;16&t.flags&&(o=!0)}else{let c=l+t.length;if(l<=e&&(n=t,i=e-l,o=c<e),c>=e&&!r&&(r=t,a=e-l,s=l>e),l>e&&r)return!0}}),n||r?(o&&r?n=null:s&&n&&(r=null),n&&t<0||!r?n.domIn(i,t):r.domIn(a,t)):this.domAtPos(e,t)}coordsAt(e,t){let{tile:n,offset:r}=this.tile.resolveBlock(e,t);return n.isWidget()?n.widget instanceof M9e?null:n.coordsInWidget(r,t,!0):n.coordsIn(r,t)}lineAt(e,t){let{tile:n}=this.tile.resolveBlock(e,t);return n.isLine()?n:null}coordsForChar(e){let{tile:t,offset:n}=this.tile.resolveBlock(e,1);if(!t.isLine())return null;return function e(t,n){if(t.isComposite())for(let r of t.children){if(r.length>=n){let t=e(r,n);if(t)return t}if((n-=r.length)<0)break}else if(t.isText()&&n<t.length){let e=B3e(t.text,n);if(e==n)return null;let r=i8e(t.dom,n,e).getClientRects();for(let t=0;t<r.length;t++){let e=r[t];if(t==r.length-1||e.top<e.bottom&&e.left<e.right)return e}}return null}(t,n)}measureVisibleLineHeights(e){let t=[],{from:n,to:r}=e,i=this.view.contentDOM.clientWidth,o=i>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,s=this.view.textDirection==u8e.LTR,l=0,c=(e,u,h)=>{for(let d=0;d<e.children.length&&!(u>r);d++){let r=e.children[d],p=u+r.length,f=r.dom.getBoundingClientRect(),{height:g}=f;if(h&&!d&&(l+=f.top-h.top),r instanceof f9e)p>n&&c(r,u,f);else if(u>=n&&(l>0&&t.push(-l),t.push(g+l),l=0,o)){let e=r.dom.lastChild,t=e?q7e(e):[];if(t.length){let e=t[t.length-1],n=s?e.right-f.left:f.right-e.left;n>a&&(a=n,this.minWidth=i,this.minWidthFrom=u,this.minWidthTo=p)}}h&&d==e.children.length-1&&(l+=h.bottom-f.bottom),u=p+r.breakAfter}};return c(this.tile,0,null),t}textDirectionAt(e){let{tile:t}=this.tile.resolveBlock(e,1);return"rtl"==getComputedStyle(t.dom).direction?u8e.RTL:u8e.LTR}measureTextSize(){let e=this.tile.blockTiles(e=>{if(e.isLine()&&e.children.length&&e.length<=20){let t,n=0;for(let r of e.children){if(!r.isText()||/[^ -~]/.test(r.text))return;let e=q7e(r.dom);if(1!=e.length)return;n+=e[0].width,t=e[0].height}if(n)return{lineHeight:e.dom.getBoundingClientRect().height,charWidth:n/e.length,textHeight:t}}});if(e)return e;let t,n,r,i=document.createElement("div");return i.className="cm-line",i.style.width="99999px",i.style.position="absolute",i.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.tile.dom.appendChild(i);let e=q7e(i.firstChild)[0];t=i.getBoundingClientRect().height,n=e&&e.width?e.width/27:7,r=e&&e.height?e.height:t,i.remove()}),{lineHeight:t,charWidth:n,textHeight:r}}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,r=0;;r++){let i=r==t.viewports.length?null:t.viewports[r],o=i?i.from-1:this.view.state.doc.length;if(o>n){let r=(t.lineBlockAt(o).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push(B7e.replace({widget:new M9e(r),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!i)break;n=i.to+1}return B7e.set(e)}updateDeco(){let e=1,t=this.view.state.facet(K8e).map(t=>(this.dynamicDecorationMap[e++]="function"==typeof t)?t(this.view):t),n=!1,r=this.view.state.facet(e9e).map((e,t)=>{let r="function"==typeof e;return r&&(n=!0),r?e(this.view):e});for(r.length&&(this.dynamicDecorationMap[e++]=n,t.push(j6e.join(r))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;this.blockWrappers=this.view.state.facet(J8e).map(e=>"function"==typeof e?e(this.view):e)}scrollIntoView(e){var t;if(e.isSnapshot){let t=this.view.viewState.lineBlockAt(e.range.head);return this.view.scrollDOM.scrollTop=t.top-e.yMargin,void(this.view.scrollDOM.scrollLeft=e.xMargin)}for(let c of this.view.state.facet(X8e))try{if(c(this.view,e.range,e))return!0}catch(jk){q8e(this.view.state,jk,"scroll handler")}let n,{range:r}=e,i=this.coordsAt(r.head,null!==(t=r.assoc)&&void 0!==t?t:r.empty?0:r.head>r.anchor?-1:1);if(!i)return;!r.empty&&(n=this.coordsAt(r.anchor,r.anchor>r.head?-1:1))&&(i={left:Math.min(i.left,n.left),top:Math.min(i.top,n.top),right:Math.max(i.right,n.right),bottom:Math.max(i.bottom,n.bottom)});let o=o9e(this.view),a={left:i.left-o.left,top:i.top-o.top,right:i.right+o.right,bottom:i.bottom+o.bottom},{offsetWidth:s,offsetHeight:l}=this.view.scrollDOM;if(function(e,t,n,r,i,o,a,s){let l=e.ownerDocument,c=l.defaultView||window;for(let u=e,h=!1;u&&!h;)if(1==u.nodeType){let e,d=u==l.body,p=1,f=1;if(d)e=H7e(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(h=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let t=u.getBoundingClientRect();({scaleX:p,scaleY:f}=K7e(u,t)),e={left:t.left,right:t.left+u.clientWidth*p,top:t.top,bottom:t.top+u.clientHeight*f}}let g=0,m=0;if("nearest"==i)t.top<e.top+a?(m=t.top-(e.top+a),n>0&&t.bottom>e.bottom+m&&(m=t.bottom-e.bottom+a)):t.bottom>e.bottom-a&&(m=t.bottom-e.bottom+a,n<0&&t.top-m<e.top&&(m=t.top-(e.top+a)));else{let r=t.bottom-t.top,o=e.bottom-e.top;m=("center"==i&&r<=o?t.top+r/2-o/2:"start"==i||"center"==i&&n<0?t.top-a:t.bottom-o+a)-e.top}if("nearest"==r?t.left<e.left+o?(g=t.left-(e.left+o),n>0&&t.right>e.right+g&&(g=t.right-e.right+o)):t.right>e.right-o&&(g=t.right-e.right+o,n<0&&t.left<e.left+g&&(g=t.left-(e.left+o))):g=("center"==r?t.left+(t.right-t.left)/2-(e.right-e.left)/2:"start"==r==s?t.left-o:t.right-(e.right-e.left)+o)-e.left,g||m)if(d)c.scrollBy(g,m);else{let e=0,n=0;if(m){let e=u.scrollTop;u.scrollTop+=m/f,n=(u.scrollTop-e)*f}if(g){let t=u.scrollLeft;u.scrollLeft+=g/p,e=(u.scrollLeft-t)*p}t={left:t.left-e,top:t.top-n,right:t.right-e,bottom:t.bottom-n},e&&Math.abs(e-g)<1&&(r="nearest"),n&&Math.abs(n-m)<1&&(i="nearest")}if(d)break;(t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)&&(t={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)}),u=u.assignedSlot||u.parentNode}else{if(11!=u.nodeType)break;u=u.host}}(this.view.scrollDOM,a,r.head<r.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,s),-s),Math.max(Math.min(e.yMargin,l),-l),this.view.textDirection==u8e.LTR),window.visualViewport&&window.innerHeight-window.visualViewport.height>1&&(i.top>window.pageYOffset+window.visualViewport.offsetTop+window.visualViewport.height||i.bottom<window.pageYOffset+window.visualViewport.offsetTop)){let e=this.view.docView.lineAt(r.head,1);e&&e.dom.scrollIntoView({block:"nearest"})}}lineHasWidget(e){let t=e=>e.isWidget()||e.children.some(t);return t(this.tile.resolveBlock(e,1).tile)}destroy(){B9e(this.tile)}}function B9e(e,t){let n=null==t?void 0:t.get(e);if(1!=n){null==n&&e.destroy();for(let n of e.children)B9e(n,t)}}function I9e(e,t){let n=e.observer.selectionRange;if(!n.focusNode)return null;let r=s8e(n.focusNode,n.focusOffset),i=l8e(n.focusNode,n.focusOffset),o=r||i;if(i&&r&&i.node!=r.node){let t=u9e.get(i.node);if(!t||t.isText()&&t.text!=i.node.nodeValue)o=i;else if(e.docView.lastCompositionAfterCursor){let e=u9e.get(r.node);!e||e.isText()&&e.text!=r.node.nodeValue||(o=i)}}if(e.docView.lastCompositionAfterCursor=o!=r,!o)return null;let a=t-o.offset;return{from:a,to:a+o.node.nodeValue.length,node:o.node}}let L9e=class{constructor(){this.changes=[]}compareRange(e,t){N7e(e,t,this.changes)}comparePoint(e,t){N7e(e,t,this.changes)}boundChange(e){N7e(e,e,this.changes)}};class D9e{constructor(){this.changes=[]}compareRange(e,t){N7e(e,t,this.changes)}comparePoint(){}boundChange(e){N7e(e,e,this.changes)}}class M9e extends E7e{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function N9e(e,t,n){let r=e.lineBlockAt(t);if(Array.isArray(r.type)){let e;for(let i of r.type){if(i.from>t)break;if(!(i.to<t)){if(i.from<t&&i.to>t)return i;e&&(i.type!=R7e.Text||e.type==i.type&&!(n<0?i.from<t:i.to>t))||(e=i)}}return e||r}return r}function X9e(e,t,n,r){let i=e.state.doc.lineAt(t.head),o=e.bidiSpans(i),a=e.textDirectionAt(i.from);for(let s=t,l=null;;){let t=$8e(i,o,a,s,n),c=T8e;if(!t){if(i.number==(n?e.state.doc.lines:1))return s;c="\n",i=e.state.doc.line(i.number+(n?1:-1)),o=e.bidiSpans(i),t=e.visualLineSide(i,!n)}if(l){if(!l(c))return s}else{if(!r)return t;l=r(c)}s=t}}function F9e(e,t,n){for(;;){let r=0;for(let i of e)i.between(t-1,t+1,(e,i,o)=>{if(t>e&&t<i){let o=r||n||(t-e<i-t?-1:1);t=o<0?e:i,r=o}});if(!r)return t}}function U9e(e,t){let n=null;for(let r=0;r<t.ranges.length;r++){let i=t.ranges[r],o=null;if(i.empty){let t=F9e(e,i.from,0);t!=i.from&&(o=Z3e.cursor(t,-1))}else{let t=F9e(e,i.from,-1),n=F9e(e,i.to,1);t==i.from&&n==i.to||(o=Z3e.range(i.from==i.anchor?t:n,i.from==i.head?t:n))}o&&(n||(n=t.ranges.slice()),n[r]=o)}return n?Z3e.create(n,t.mainIndex):t}function z9e(e,t,n){let r=F9e(e.state.facet(t9e).map(t=>t(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:Z3e.cursor(r,r<n.from?1:-1)}class q9e{constructor(e,t){this.pos=e,this.assoc=t}}function V9e(e,t,n,r){let i,o=e.contentDOM.getBoundingClientRect(),a=o.top+e.viewState.paddingTop,{x:s,y:l}=t,c=l-a;for(;;){if(c<0)return new q9e(0,1);if(c>e.viewState.docHeight)return new q9e(e.state.doc.length,-1);if(i=e.elementAtHeight(c),null==r)break;if(i.type==R7e.Text){if(r<0?i.to<e.viewport.from:i.from>e.viewport.to)break;let t=e.docView.coordsAt(r<0?i.from:i.to,r>0?-1:1);if(t&&(r<0?t.top<=c+a:t.bottom>=c+a))break}let t=e.viewState.heightOracle.textHeight/2;c=r>0?i.bottom+t:i.top-t}if(e.viewport.from>=i.to||e.viewport.to<=i.from){if(n)return null;if(i.type==R7e.Text){let t=function(e,t,n,r,i){let o=Math.round((r-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&n.height>1.5*e.defaultLineHeight){let t=e.viewState.heightOracle.textHeight;o+=Math.floor((i-n.top-.5*(e.defaultLineHeight-t))/t)*e.viewState.heightOracle.lineLength}let a=e.state.sliceDoc(n.from,n.to);return n.from+a7e(a,o,e.state.tabSize)}(e,o,i,s,l);return new q9e(t,t==i.from?1:-1)}}if(i.type!=R7e.Text)return c<(i.top+i.bottom)/2?new q9e(i.from,1):new q9e(i.to,-1);let u=e.docView.lineAt(i.from,2);return u&&u.length==i.length||(u=e.docView.lineAt(i.from,-2)),new W9e(e,s,l,e.textDirectionAt(i.from)).scanTile(u,i.from)}class W9e{constructor(e,t,n,r){this.view=e,this.x=t,this.y=n,this.baseDir=r,this.line=null,this.spans=null}bidiSpansAt(e){return(!this.line||this.line.from>e||this.line.to<e)&&(this.line=this.view.state.doc.lineAt(e),this.spans=this.view.bidiSpans(this.line)),this}baseDirAt(e,t){let{line:n,spans:r}=this.bidiSpansAt(e);return r[v8e.find(r,e-n.from,-1,t)].level==this.baseDir}dirAt(e,t){let{line:n,spans:r}=this.bidiSpansAt(e);return r[v8e.find(r,e-n.from,-1,t)].dir}bidiIn(e,t){let{spans:n,line:r}=this.bidiSpansAt(e);return n.length>1||n.length&&(n[0].level!=this.baseDir||n[0].to+r.from<t)}scan(e,t,n=!1){let r,i,o,a=0,s=e.length-1,l=new Set,c=this.bidiIn(e[0],e[s]),u=-1,h=1e9;e:for(;a<s;){let n=s-a,d=a+s>>1;t:if(l.has(d)){let e=a+Math.floor(Math.random()*n);for(let t=0;t<n;t++){if(!l.has(e)){d=e;break t}e++,e==s&&(e=a)}break e}l.add(d);let p=t(d);if(p)for(let t=0;t<p.length;t++){let n=p[t],l=0;if(!(0==n.width&&p.length>1)){if(n.bottom<this.y)(!r||r.bottom<n.bottom)&&(r=n),l=1;else if(n.top>this.y)(!i||i.top>n.top)&&(i=n),l=-1;else{let e=n.left>this.x?this.x-n.left:n.right<this.x?this.x-n.right:0,t=Math.abs(e);t<h&&(u=d,h=t,o=n),e&&(l=e<0==(this.baseDir==u8e.LTR)?-1:1)}-1!=l||c&&!this.baseDirAt(e[d],1)?1!=l||c&&!this.baseDirAt(e[d+1],-1)||(a=d+1):s=d}}}if(!o){if(!i&&!r)return{i:e[0],after:!1};let n=r&&(!i||this.y-r.bottom<i.top-this.y)?r:i;return this.y=(n.top+n.bottom)/2,this.scan(e,t,!0)}if(h&&!n){let{top:n,bottom:a}=o;if(r&&r.bottom>(n+n+a)/3)return this.y=r.bottom-1,this.scan(e,t,!0);if(i&&i.top<(n+a+a)/3)return this.y=i.top+1,this.scan(e,t,!0)}let d=(c?this.dirAt(e[u],1):this.baseDir)==u8e.LTR;return{i:u,after:this.x>(o.left+o.right)/2==d}}scanText(e,t){let n=[];for(let i=0;i<e.length;i=B3e(e.text,i))n.push(t+i);n.push(t+e.length);let r=this.scan(n,r=>{let i=n[r]-t,o=n[r+1]-t;return i8e(e.dom,i,o).getClientRects()});return r.after?new q9e(n[r.i+1],-1):new q9e(n[r.i],1)}scanTile(e,t){if(!e.length)return new q9e(t,1);if(1==e.children.length){let n=e.children[0];if(n.isText())return this.scanText(n,t);if(n.isComposite())return this.scanTile(n,t)}let n=[t];for(let a=0,s=t;a<e.children.length;a++)n.push(s+=e.children[a].length);let r=this.scan(n,t=>{let n=e.children[t];return 48&n.flags?null:(1==n.dom.nodeType?n.dom:i8e(n.dom,0,n.length)).getClientRects()}),i=e.children[r.i],o=n[r.i];return i.isText()?this.scanText(i,o):i.isComposite()?this.scanTile(i,o):r.after?new q9e(n[r.i+1],-1):new q9e(o,1)}}const j9e="";class Y9e{constructor(e,t){this.points=e,this.view=t,this.text="",this.lineSeparator=t.state.facet(X6e.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=j9e}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let r=e;;){this.findPointBefore(n,r);let e=this.text.length;this.readNode(r);let i=u9e.get(r),o=r.nextSibling;if(o==t){(null==i?void 0:i.breakAfter)&&!o&&n!=this.view.contentDOM&&this.lineBreak();break}let a=u9e.get(o);(i&&a?i.breakAfter:(i?i.breakAfter:j7e(r))||j7e(o)&&("BR"!=r.nodeName||(null==i?void 0:i.isWidget()))&&this.text.length>e)&&!G9e(o,t)&&this.lineBreak(),r=o}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let i,o=-1,a=1;if(this.lineSeparator?(o=t.indexOf(this.lineSeparator,n),a=this.lineSeparator.length):(i=r.exec(t))&&(o=i.index,a=i[0].length),this.append(t.slice(n,o<0?t.length:o)),o<0)break;if(this.lineBreak(),a>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=a-1);n=o+a}}readNode(e){let t=u9e.get(e),n=t&&t.overrideDOMText;if(null!=n){this.findPointInside(e,n.length);for(let e=n.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(3==e.nodeType?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(Z9e(e,n.node,n.offset)?t:0))}}function Z9e(e,t,n){for(;;){if(!t||n<Z7e(t))return!1;if(t==e)return!0;n=W7e(t)+1,t=t.parentNode}}function G9e(e,t){let n;for(;e!=t&&e;e=e.nextSibling){let t=u9e.get(e);if(!(null==t?void 0:t.isWidget()))return!1;t&&(n||(n=[])).push(t)}if(n)for(let r of n){let e=r.overrideDOMText;if(null==e?void 0:e.length)return!1}return!0}class H9e{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class K9e{constructor(e,t,n,r){this.typeOver=r,this.bounds=null,this.text="",this.domChanged=t>-1;let{impreciseHead:i,impreciseAnchor:o}=e.docView,a=e.state.selection;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=J9e(e.docView.tile,t,n,0))){let t=i||o?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}=e.observer.selectionRange;n&&(t.push(new H9e(n,r)),i==n&&o==r||t.push(new H9e(i,o)));return t}(e),n=new Y9e(t,e);n.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=n.text,this.newSel=function(e,t){if(0==e.length)return null;let n=e[0].pos,r=2==e.length?e[1].pos:n;return n>-1&&r>-1?Z3e.single(n+t,r+t):null}(t,this.bounds.from)}else{let t=e.observer.selectionRange,n=i&&i.node==t.focusNode&&i.offset==t.focusOffset||!U7e(e.contentDOM,t.focusNode)?a.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),r=o&&o.node==t.anchorNode&&o.offset==t.anchorOffset||!U7e(e.contentDOM,t.anchorNode)?a.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset),s=e.viewport;if((T7e.ios||T7e.chrome)&&a.main.empty&&n!=r&&(s.from>0||s.to<e.state.doc.length)){let t=Math.min(n,r),i=Math.max(n,r),o=s.from-t,a=s.to-i;0!=o&&1!=o&&0!=t||0!=a&&-1!=a&&i!=e.state.doc.length||(n=0,r=e.state.doc.length)}if(e.inputState.composing>-1&&a.ranges.length>1)this.newSel=a.replaceRange(Z3e.range(r,n));else if(e.lineWrapping&&r==n&&(!a.main.empty||a.main.head!=n)&&e.inputState.lastTouchTime>Date.now()-100){let t=e.coordsAtPos(n,-1),r=0;t&&(r=e.inputState.lastTouchY<=t.bottom?-1:1),this.newSel=Z3e.create([Z3e.cursor(n,r)])}else this.newSel=Z3e.single(r,n)}}}function J9e(e,t,n,r){if(e.isComposite()){let i=-1,o=-1,a=-1,s=-1;for(let l=0,c=r,u=r;l<e.children.length;l++){let r=e.children[l],h=c+r.length;if(c<t&&h>n)return J9e(r,t,n,c);if(h>=t&&-1==i&&(i=l,o=c),c>n&&r.dom.parentNode==e.dom){a=l,s=u;break}u=h,c=h+r.breakAfter}return{from:o,to:s<0?r+e.length:s,startDOM:(i?e.children[i-1].dom.nextSibling:null)||e.dom.firstChild,endDOM:a<e.children.length&&a>=0?e.children[a].dom:null}}return e.isText()?{from:r,to:r+e.length,startDOM:e.dom,endDOM:e.dom.nextSibling}:null}function eet(e,t){let n,{newSel:r}=t,{state:i}=e,o=i.selection.main,a=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:e,to:r}=t.bounds,s=o.from,l=null;(8===a||T7e.android&&t.text.length<r-e)&&(s=o.to,l="end");let c,u,h=i.doc.sliceString(e,r,j9e);!o.empty&&o.from>=e&&o.to<=r&&(t.typeOver||h!=t.text)&&h.slice(0,o.from-e)==t.text.slice(0,o.from-e)&&h.slice(o.to-e)==t.text.slice(c=t.text.length-(h.length-(o.to-e)))?n={from:o.from,to:o.to,insert:k3e.of(t.text.slice(o.from-e,c).split(j9e))}:(u=net(h,t.text,s-e,l))&&(T7e.chrome&&13==a&&u.toB==u.from+2&&t.text.slice(u.from,u.toB)==j9e+j9e&&u.toB--,n={from:e+u.from,to:e+u.toA,insert:k3e.of(t.text.slice(u.from,u.toB).split(j9e))})}else r&&(!e.hasFocus&&i.facet(V8e)||ret(r,o))&&(r=null);if(!n&&!r)return!1;if((T7e.mac||T7e.android)&&n&&n.from==n.to&&n.from==o.head-1&&/^\. ?$/.test(n.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(r&&2==n.insert.length&&(r=Z3e.single(r.main.anchor-1,r.main.head-1)),n={from:n.from,to:n.to,insert:k3e.of([n.insert.toString().replace("."," ")])}):i.doc.lineAt(o.from).to<o.to&&e.docView.lineHasWidget(o.to)&&e.inputState.insertingTextAt>Date.now()-50?n={from:o.from,to:o.to,insert:i.toText(e.inputState.insertingText)}:T7e.chrome&&n&&n.from==n.to&&n.from==o.head&&"\n "==n.insert.toString()&&e.lineWrapping&&(r&&(r=Z3e.single(r.main.anchor-1,r.main.head-1)),n={from:o.from,to:o.to,insert:k3e.of([" "])}),n)return tet(e,n,r,a);if(r&&!ret(r,o)){let t=!1,n="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),n=e.inputState.lastSelectionOrigin,"select.pointer"==n&&(r=U9e(i.facet(t9e).map(t=>t(e)),r))),e.dispatch({selection:r,scrollIntoView:t,userEvent:n}),!0}return!1}function tet(e,t,n,r=-1){if(T7e.ios&&e.inputState.flushIOSKey(t))return!0;let i=e.state.selection.main;if(T7e.android&&(t.to==i.to&&(t.from==i.from||t.from==i.from-1&&" "==e.state.sliceDoc(t.from,i.from))&&1==t.insert.length&&2==t.insert.lines&&o8e(e.contentDOM,"Enter",13)||(t.from==i.from-1&&t.to==i.to&&0==t.insert.length||8==r&&t.insert.length<t.to-t.from&&t.to>i.head)&&o8e(e.contentDOM,"Backspace",8)||t.from==i.from&&t.to==i.to+1&&0==t.insert.length&&o8e(e.contentDOM,"Delete",46)))return!0;let o,a=t.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let s=()=>o||(o=function(e,t,n){let r,i=e.state,o=i.selection.main,a=-1;if(t.from==t.to&&t.from<o.from||t.from>o.to){let n=t.from<o.from?-1:1,r=n<0?o.from:o.to,s=F9e(i.facet(t9e).map(t=>t(e)),r,n);t.from==s&&(a=s)}if(a>-1)r={changes:t,selection:Z3e.cursor(t.from+t.insert.length,-1)};else if(t.from>=o.from&&t.to<=o.to&&t.to-t.from>=(o.to-o.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let n=o.from<t.from?i.sliceDoc(o.from,t.from):"",a=o.to>t.to?i.sliceDoc(t.to,o.to):"";r=i.replaceSelection(e.state.toText(n+t.insert.sliceString(0,void 0,e.state.lineBreak)+a))}else{let a=i.changes(t),s=n&&n.main.to<=a.newLength?n.main:void 0;if(i.selection.ranges.length>1&&(e.inputState.composing>=0||e.inputState.compositionPendingChange)&&t.to<=o.to+10&&t.to>=o.to-10){let l,c=e.state.sliceDoc(t.from,t.to),u=n&&I9e(e,n.main.head);if(u){let e=t.insert.length-(t.to-t.from);l={from:u.from,to:u.to-e}}else l=e.state.doc.lineAt(o.head);let h=o.to-t.to;r=i.changeByRange(n=>{if(n.from==o.from&&n.to==o.to)return{changes:a,range:s||n.map(a)};let r=n.to-h,u=r-c.length;if(e.state.sliceDoc(u,r)!=c||r>=l.from&&u<=l.to)return{range:n};let d=i.changes({from:u,to:r,insert:t.insert}),p=n.to-o.to;return{changes:d,range:s?Z3e.range(Math.max(0,s.anchor+p),Math.max(0,s.head+p)):n.map(d)}})}else r={changes:a,selection:s&&i.selection.replaceRange(s)}}let s="input.type";(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,s+=".compose",e.inputState.compositionFirstChange&&(s+=".start",e.inputState.compositionFirstChange=!1));return i.update(r,{userEvent:s,scrollIntoView:!0})}(e,t,n));return e.state.facet(B8e).some(n=>n(e,t.from,t.to,a,s))||e.dispatch(s()),!0}function net(e,t,n,r){let i=Math.min(e.length,t.length),o=0;for(;o<i&&e.charCodeAt(o)==t.charCodeAt(o);)o++;if(o==i&&e.length==t.length)return null;let a=e.length,s=t.length;for(;a>0&&s>0&&e.charCodeAt(a-1)==t.charCodeAt(s-1);)a--,s--;if("end"==r){n-=a+Math.max(0,o-Math.min(a,s))-o}if(a<o&&e.length<t.length){o-=n<=o&&n>=a?o-n:0,s=o+(s-a),a=o}else if(s<o){o-=n<=o&&n>=s?o-n:0,a=o+(a-s),s=o}return{from:o,toA:a,toB:s}}function ret(e,t){return t.head==e.main.head&&t.anchor==e.main.anchor}class iet{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){var t;this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastTouchX=0,this.lastTouchY=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,T7e.safari&&e.contentDOM.addEventListener("input",()=>null),T7e.gecko&&(t=e.contentDOM.ownerDocument,Cet.has(t)||(Cet.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{})))}handleEvent(e){(function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n,r=t.target;r!=e.contentDOM;r=r.parentNode)if(!r||11==r.nodeType||(n=u9e.get(r))&&n.isWidget()&&!n.isHidden&&n.widget.ignoreEvent(t))return!1;return!0})(this.view,e)&&!this.ignoreDuringComposition(e)&&("keydown"==e.type&&this.keydown(e)||(0!=this.view.updateState?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e)))}runHandlers(e,t){let n=this.handlers[e];if(n){for(let e of n.observers)e(this.view,t);for(let e of n.handlers){if(t.defaultPrevented)break;if(e(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=function(e){let t=Object.create(null);function n(e){return t[e]||(t[e]={observers:[],handlers:[]})}for(let r of e){let e=r.spec,t=e&&e.plugin.domEventHandlers,i=e&&e.plugin.domEventObservers;if(t)for(let o in t){let e=t[o];e&&n(o).handlers.push(oet(r.value,e))}if(i)for(let o in i){let e=i[o];e&&n(o).observers.push(oet(r.value,e))}}for(let r in det)n(r).handlers.push(det[r]);for(let r in pet)n(r).observers.push(pet[r]);return t}(e),n=this.handlers,r=this.view.contentDOM;for(let i in t)if("scroll"!=i){let e=!t[i].handlers.length,o=n[i];o&&e!=!o.handlers.length&&(r.removeEventListener(i,this.handleEvent),o=null),o||r.addEventListener(i,this.handleEvent,{passive:e})}for(let i in n)"scroll"==i||t[i]||r.removeEventListener(i,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&27!=e.keyCode&&cet.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),T7e.android&&T7e.chrome&&!e.synthetic&&(13==e.keyCode||8==e.keyCode))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return!T7e.ios||e.synthetic||e.altKey||e.metaKey||e.shiftKey||!((t=aet.find(t=>t.keyCode==e.keyCode))&&!e.ctrlKey||set.indexOf(e.key)>-1&&e.ctrlKey)?(229!=e.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0)}flushIOSKey(e){let t=this.pendingIOSKey;return!!t&&(!("Enter"==t.key&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString()))&&(this.pendingIOSKey=void 0,o8e(this.view.contentDOM,t.key,t.keyCode,t instanceof KeyboardEvent?t:void 0)))}ignoreDuringComposition(e){return!(!/^key/.test(e.type)||e.synthetic)&&(this.composing>0||!!(T7e.safari&&!T7e.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function oet(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(jk){q8e(n.state,jk)}}}const aet=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],set="dthko",cet=[16,17,18,20,91,92,224,225];function uet(e){return.7*Math.max(0,e)+8}class het{constructor(e,t,n,r){this.view=e,this.startEvent=t,this.style=n,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=J7e(e.contentDOM),this.atoms=e.state.facet(t9e).map(t=>t(e));let i=e.contentDOM.ownerDocument;i.addEventListener("mousemove",this.move=this.move.bind(this)),i.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(X6e.allowMultipleSelections)&&function(e,t){let n=e.state.facet(C8e);return n.length?n[0](t):T7e.mac?t.metaKey:t.ctrlKey}(e,t),this.dragging=!(!function(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=F7e(e.root);if(!r||0==r.rangeCount)return!0;let i=r.getRangeAt(0).getClientRects();for(let o=0;o<i.length;o++){let e=i[o];if(e.left<=t.clientX&&e.right>=t.clientX&&e.top<=t.clientY&&e.bottom>=t.clientY)return!0}return!1}(e,t)||1!=xet(t))&&null}start(e){!1===this.dragging&&this.select(e)}move(e){if(0==e.buttons)return this.destroy();if(this.dragging||null==this.dragging&&(t=this.startEvent,n=e,Math.max(Math.abs(t.clientX-n.clientX),Math.abs(t.clientY-n.clientY))<10))return;var t,n;this.select(this.lastEvent=e);let r=0,i=0,o=0,a=0,s=this.view.win.innerWidth,l=this.view.win.innerHeight;this.scrollParents.x&&({left:o,right:s}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:a,bottom:l}=this.scrollParents.y.getBoundingClientRect());let c=o9e(this.view);e.clientX-c.left<=o+6?r=-uet(o-e.clientX):e.clientX+c.right>=s-6&&(r=uet(e.clientX-s)),e.clientY-c.top<=a+6?i=-uet(a-e.clientY):e.clientY+c.bottom>=l-6&&(i=uet(e.clientY-l)),this.setScrollSpeed(r,i)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),!1===this.dragging&&this.select(this.lastEvent)}select(e){let{view:t}=this,n=U9e(this.atoms,this.style.get(e,this.extend,this.multiple));!this.mustSelect&&n.eq(t.state.selection,!1===this.dragging)||this.view.dispatch({selection:n,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(e=>e.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}const det=Object.create(null),pet=Object.create(null),fet=T7e.ie&&T7e.ie_version<15||T7e.ios&&T7e.webkit_version<604;function get(e,t,n){for(let r of e.facet(t))n=r(n,e);return n}function met(e,t){t=get(e.state,L8e,t);let n,{state:r}=e,i=1,o=r.toText(t),a=o.lines==r.selection.ranges.length;if(null!=ket&&r.selection.ranges.every(e=>e.empty)&&ket==o.toString()){let e=-1;n=r.changeByRange(n=>{let s=r.doc.lineAt(n.from);if(s.from==e)return{range:n};e=s.from;let l=r.toText((a?o.line(i++).text:t)+r.lineBreak);return{changes:{from:s.from,insert:l},range:Z3e.cursor(n.from+l.length)}})}else n=a?r.changeByRange(e=>{let t=o.line(i++);return{changes:{from:e.from,to:e.to,insert:t.text},range:Z3e.cursor(e.from+t.length)}}):r.replaceSelection(o);e.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function Oet(e,t,n,r){if(1==r)return Z3e.cursor(t,n);if(2==r)return function(e,t,n=1){let r=e.charCategorizer(t),i=e.doc.lineAt(t),o=t-i.from;if(0==i.length)return Z3e.cursor(t);0==o?n=1:o==i.length&&(n=-1);let a=o,s=o;n<0?a=B3e(i.text,o,!1):s=B3e(i.text,o);let l=r(i.text.slice(a,s));for(;a>0;){let e=B3e(i.text,a,!1);if(r(i.text.slice(e,a))!=l)break;a=e}for(;s<i.length;){let e=B3e(i.text,s);if(r(i.text.slice(s,e))!=l)break;s=e}return Z3e.range(a+i.from,s+i.from)}(e.state,t,n);{let r=e.docView.lineAt(t,n),i=e.state.doc.lineAt(r?r.posAtEnd:t),o=r?r.posAtStart:i.from,a=r?r.posAtEnd:i.to;return a<e.state.doc.length&&a==i.to&&a++,Z3e.range(o,a)}}pet.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft},pet.wheel=pet.mousewheel=e=>{e.inputState.lastWheelEvent=Date.now()},det.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),27==t.keyCode&&0!=e.inputState.tabFocusMode&&(e.inputState.tabFocusMode=Date.now()+2e3),!1),pet.touchstart=(e,t)=>{let n=e.inputState,r=t.targetTouches[0];n.lastTouchTime=Date.now(),r&&(n.lastTouchX=r.clientX,n.lastTouchY=r.clientY),n.setSelectionOrigin("select.pointer")},pet.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},det.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of e.state.facet(P8e))if(n=r(e,t),n)break;if(n||0!=t.button||(n=function(e,t){let n=e.posAndSideAtCoords({x:t.clientX,y:t.clientY},!1),r=xet(t),i=e.state.selection;return{update(e){e.docChanged&&(n.pos=e.changes.mapPos(n.pos),i=i.map(e.changes))},get(t,o,a){let s,l=e.posAndSideAtCoords({x:t.clientX,y:t.clientY},!1),c=Oet(e,l.pos,l.assoc,r);if(n.pos!=l.pos&&!o){let t=Oet(e,n.pos,n.assoc,r),i=Math.min(t.from,c.from),o=Math.max(t.to,c.to);c=i<c.from?Z3e.range(i,o,c.assoc):Z3e.range(o,i,c.assoc)}return o?i.replaceRange(i.main.extend(c.from,c.to,c.assoc)):a&&1==r&&i.ranges.length>1&&(s=function(e,t){for(let n=0;n<e.ranges.length;n++){let{from:r,to:i}=e.ranges[n];if(r<=t&&i>=t)return Z3e.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}(i,l.pos))?s:a?i.addRange(c):Z3e.create([c])}}}(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new het(e,t,n,r)),r&&e.observer.ignore(()=>{r8e(e.contentDOM);let t=e.root.activeElement;t&&!t.contains(e.contentDOM)&&t.blur()});let i=e.inputState.mouseSelection;if(i)return i.start(t),!1===i.dragging}else e.inputState.setSelectionOrigin("select.pointer");return!1};const Aet=T7e.ie&&T7e.ie_version<=11;let yet=null,vet=0,bet=0;function xet(e){if(!Aet)return e.detail;let t=yet,n=bet;return yet=e,bet=Date.now(),vet=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(vet+1)%3:1}function wet(e,t,n,r){if(!(n=get(e.state,L8e,n)))return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:o}=e.inputState,a=r&&o&&function(e,t){let n=e.state.facet(Q8e);return n.length?n[0](t):T7e.mac?!t.altKey:!t.ctrlKey}(e,t)?{from:o.from,to:o.to}:null,s={from:i,insert:n},l=e.state.changes(a?[a,s]:s);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:a?"move.drop":"input.drop"}),e.inputState.draggedContent=null}det.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let r=e.docView.tile.nearest(t.target);if(r&&r.isWidget()){let e=r.posAtStart,t=e+r.length;(e>=n.to||t<=n.from)&&(n=Z3e.range(e,t))}}let{inputState:r}=e;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",get(e.state,D8e,e.state.sliceDoc(n.from,n.to))),t.dataTransfer.effectAllowed="copyMove"),!1},det.dragend=e=>(e.inputState.draggedContent=null,!1),det.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,o=()=>{++i==n.length&&wet(e,t,r.filter(e=>null!=e).join(e.state.lineBreak),!1)};for(let e=0;e<n.length;e++){let t=new FileReader;t.onerror=o,t.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(r[e]=t.result),o()},t.readAsText(n[e])}return!0}{let n=t.dataTransfer.getData("Text");if(n)return wet(e,t,n,!0),!0}return!1},det.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=fet?null:t.clipboardData;return n?(met(e,n.getData("text/plain")||n.getData("text/uri-list")),!0):(function(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{e.focus(),n.remove(),met(e,n.value)},50)}(e),!1)};let ket=null;det.copy=det.cut=(e,t)=>{if(!z7e(e.contentDOM,e.observer.selectionRange))return!1;let{text:n,ranges:r,linewise:i}=function(e){let t=[],n=[],r=!1;for(let i of e.selection.ranges)i.empty||(t.push(e.sliceDoc(i.from,i.to)),n.push(i));if(!t.length){let i=-1;for(let{from:r}of e.selection.ranges){let o=e.doc.lineAt(r);o.number>i&&(t.push(o.text),n.push({from:o.from,to:Math.min(e.doc.length,o.to+1)})),i=o.number}r=!0}return{text:get(e,D8e,t.join(e.lineBreak)),ranges:n,linewise:r}}(e.state);if(!n&&!i)return!1;ket=i?n:null,"cut"!=t.type||e.state.readOnly||e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let o=fet?null:t.clipboardData;return o?(o.clearData(),o.setData("text/plain",n),!0):(function(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout(()=>{r.remove(),e.focus()},50)}(e,n),!1)};const Tet=S6e.define();function $et(e,t){let n=[];for(let r of e.facet(I8e)){let i=r(e,t);i&&n.push(i)}return n.length?e.update({effects:n,annotations:Tet.of(!0)}):null}function _et(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=$et(e.state,t);n?e.dispatch(n):e.update([])}},10)}pet.focus=e=>{e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),_et(e)},pet.blur=e=>{e.observer.clearSelectionRange(),_et(e)},pet.compositionstart=pet.compositionupdate=e=>{e.observer.editContext||(null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0))},pet.compositionend=e=>{e.observer.editContext||(e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,T7e.chrome&&T7e.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50))},pet.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},det.beforeinput=(e,t)=>{var n,r;if("insertText"!=t.inputType&&"insertCompositionText"!=t.inputType||(e.inputState.insertingText=t.data,e.inputState.insertingTextAt=Date.now()),"insertReplacementText"==t.inputType&&e.observer.editContext){let r=null===(n=t.dataTransfer)||void 0===n?void 0:n.getData("text/plain"),i=t.getTargetRanges();if(r&&i.length){let t=i[0],n=e.posAtDOM(t.startContainer,t.startOffset),o=e.posAtDOM(t.endContainer,t.endOffset);return tet(e,{from:n,to:o,insert:e.state.toText(r)},null),!0}}let i;if(T7e.chrome&&T7e.android&&(i=aet.find(e=>e.inputType==t.inputType))&&(e.observer.delayAndroidKey(i.key,i.keyCode),"Backspace"==i.key||"Delete"==i.key)){let t=(null===(r=window.visualViewport)||void 0===r?void 0:r.height)||0;setTimeout(()=>{var n;((null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return T7e.ios&&"deleteContentForward"==t.inputType&&e.observer.flushSoon(),T7e.safari&&"insertText"==t.inputType&&e.inputState.composing>=0&&setTimeout(()=>pet.compositionend(e,t),20),!1};const Cet=new Set;const Qet=["pre-wrap","normal","pre-line","break-spaces"];let Pet=!1;function Eet(){Pet=!1}class Ret{constructor(e){this.lineWrapping=e,this.doc=k3e.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){if(!this.lineWrapping)return this.lineHeight;return(1+Math.max(0,Math.ceil((e-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return Qet.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];r<0?n++:this.heightSamples[Math.floor(10*r)]||(t=!0,this.heightSamples[Math.floor(10*r)]=!0)}return t}refresh(e,t,n,r,i,o){let a=Qet.indexOf(e)>-1,s=Math.abs(t-this.lineHeight)>.3||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=t,this.charWidth=n,this.textHeight=r,this.lineLength=i,s){this.heightSamples={};for(let e=0;e<o.length;e++){let t=o[e];t<0?e++:this.heightSamples[Math.floor(10*t)]=!0}}return s}}class Bet{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class Iet{constructor(e,t,n,r,i){this.from=e,this.length=t,this.top=n,this.height=r,this._content=i}get type(){return"number"==typeof this._content?R7e.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof D7e?this._content.widget:null}get widgetLineBreaks(){return"number"==typeof this._content?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new Iet(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var Let=function(e){return e[e.ByPos=0]="ByPos",e[e.ByHeight=1]="ByHeight",e[e.ByPosNoHeight=2]="ByPosNoHeight",e}(Let||(Let={}));const Det=.001;class Met{constructor(e,t,n=2){this.length=e,this.height=t,this.flags=n}get outdated(){return(2&this.flags)>0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>Det&&(Pet=!0),this.height=e)}replace(e,t,n){return Met.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,r){let i=this,o=n.doc;for(let a=r.length-1;a>=0;a--){let{fromA:s,toA:l,fromB:c,toB:u}=r[a],h=i.lineAt(s,Let.ByPosNoHeight,n.setDoc(t),0,0),d=h.to>=l?h:i.lineAt(l,Let.ByPosNoHeight,n,0,0);for(u+=d.to-l,l=d.to;a>0&&h.from<=r[a-1].toA;)s=r[a-1].fromA,c=r[a-1].fromB,a--,s<h.from&&(h=i.lineAt(s,Let.ByPosNoHeight,n,0,0));c+=h.from-s,s=h.from;let p=Wet.build(n.setDoc(o),e,c,u);i=Net(i,i.replace(s,l,p))}return i.updateHeight(n,0)}static empty(){return new Uet(0,0,0)}static of(e){if(1==e.length)return e[0];let t=0,n=e.length,r=0,i=0;for(;;)if(t==n)if(r>2*i){let i=e[t-1];i.break?e.splice(--t,1,i.left,null,i.right):e.splice(--t,1,i.left,i.right),n+=1+i.break,r-=i.size}else{if(!(i>2*r))break;{let t=e[n];t.break?e.splice(n,1,t.left,null,t.right):e.splice(n,1,t.left,t.right),n+=2+t.break,i-=t.size}}else if(r<i){let n=e[t++];n&&(r+=n.size)}else{let t=e[--n];t&&(i+=t.size)}let o=0;return null==e[t-1]?(o=1,t--):null==e[t]&&(o=1,n++),new qet(Met.of(e.slice(0,t)),o,Met.of(e.slice(n)))}}function Net(e,t){return e==t?e:(e.constructor!=t.constructor&&(Pet=!0),t)}Met.prototype.size=1;const Xet=B7e.replace({});class Fet extends Met{constructor(e,t,n){super(e,t),this.deco=n,this.spaceAbove=0}mainBlock(e,t){return new Iet(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.deco||0)}blockAt(e,t,n,r){return this.spaceAbove&&e<n+this.spaceAbove?new Iet(r,0,n,this.spaceAbove,Xet):this.mainBlock(n,r)}lineAt(e,t,n,r,i){let o=this.mainBlock(r,i);return this.spaceAbove?this.blockAt(0,n,r,i).join(o):o}forEachLine(e,t,n,r,i,o){e<=i+this.length&&t>=i&&o(this.lineAt(0,Let.ByPos,n,r,i))}setMeasuredHeight(e){let t=e.heights[e.index++];t<0?(this.spaceAbove=-t,t=e.heights[e.index++]):this.spaceAbove=0,this.setHeight(t)}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more&&this.setMeasuredHeight(r),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Uet extends Fet{constructor(e,t,n){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0,this.spaceAbove=n}mainBlock(e,t){return new Iet(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(e,t,n){let r=n[0];return 1==n.length&&(r instanceof Uet||r instanceof zet&&4&r.flags)&&Math.abs(this.length-r.length)<10?(r instanceof zet?r=new Uet(r.length,this.height,this.spaceAbove):r.height=this.height,this.outdated||(r.outdated=!1),r):Met.of(n)}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more?this.setMeasuredHeight(r):(n||this.outdated)&&(this.spaceAbove=0,this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight)),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class zet extends Met{constructor(e){super(e,0)}heightMetrics(e,t){let n,r=e.doc.lineAt(t).number,i=e.doc.lineAt(t+this.length).number,o=i-r+1,a=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*o);n=t/o,this.length>o+1&&(a=(this.height-t)/(this.length-o-1))}else n=this.height/o;return{firstLine:r,lastLine:i,perLine:n,perChar:a}}blockAt(e,t,n,r){let{firstLine:i,lastLine:o,perLine:a,perChar:s}=this.heightMetrics(t,r);if(t.lineWrapping){let i=r+(e<t.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length)),o=t.doc.lineAt(i),l=a+o.length*s,c=Math.max(n,e-l/2);return new Iet(o.from,o.length,c,l,0)}{let r=Math.max(0,Math.min(o-i,Math.floor((e-n)/a))),{from:s,length:l}=t.doc.line(i+r);return new Iet(s,l,n+a*r,a,0)}}lineAt(e,t,n,r,i){if(t==Let.ByHeight)return this.blockAt(e,n,r,i);if(t==Let.ByPosNoHeight){let{from:t,to:r}=n.doc.lineAt(e);return new Iet(t,r-t,0,0,0)}let{firstLine:o,perLine:a,perChar:s}=this.heightMetrics(n,i),l=n.doc.lineAt(e),c=a+l.length*s,u=l.number-o,h=r+a*u+s*(l.from-i-u);return new Iet(l.from,l.length,Math.max(r,Math.min(h,r+this.height-c)),c,0)}forEachLine(e,t,n,r,i,o){e=Math.max(e,i),t=Math.min(t,i+this.length);let{firstLine:a,perLine:s,perChar:l}=this.heightMetrics(n,i);for(let c=e,u=r;c<=t;){let t=n.doc.lineAt(c);if(c==e){let n=t.number-a;u+=s*n+l*(e-i-n)}let r=s+l*t.length;o(new Iet(t.from,t.length,u,r,0)),u+=r,c=t.to+1}}replace(e,t,n){let r=this.length-t;if(r>0){let e=n[n.length-1];e instanceof zet?n[n.length-1]=new zet(e.length+r):n.push(null,new zet(r-1))}if(e>0){let t=n[0];t instanceof zet?n[0]=new zet(e+t.length):n.unshift(new zet(e-1),null)}return Met.of(n)}decomposeLeft(e,t){t.push(new zet(e-1),null)}decomposeRight(e,t){t.push(null,new zet(this.length-e-1))}updateHeight(e,t=0,n=!1,r){let i=t+this.length;if(r&&r.from<=t+this.length&&r.more){let n=[],o=Math.max(t,r.from),a=-1;for(r.from>t&&n.push(new zet(r.from-t-1).updateHeight(e,t));o<=i&&r.more;){let t=e.doc.lineAt(o).length;n.length&&n.push(null);let i=r.heights[r.index++],s=0;i<0&&(s=-i,i=r.heights[r.index++]),-1==a?a=i:Math.abs(i-a)>=Det&&(a=-2);let l=new Uet(t,i,s);l.outdated=!1,n.push(l),o+=t+1}o<=i&&n.push(null,new zet(i-o).updateHeight(e,o));let s=Met.of(n);return(a<0||Math.abs(s.height-this.height)>=Det||Math.abs(a-this.heightMetrics(e,t).perLine)>=Det)&&(Pet=!0),Net(this,s)}return(n||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class qet extends Met{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return 1&this.flags}blockAt(e,t,n,r){let i=n+this.left.height;return e<i?this.left.blockAt(e,t,n,r):this.right.blockAt(e,t,i,r+this.left.length+this.break)}lineAt(e,t,n,r,i){let o=r+this.left.height,a=i+this.left.length+this.break,s=t==Let.ByHeight?e<o:e<a,l=s?this.left.lineAt(e,t,n,r,i):this.right.lineAt(e,t,n,o,a);if(this.break||(s?l.to<a:l.from>a))return l;let c=t==Let.ByPosNoHeight?Let.ByPosNoHeight:Let.ByPos;return s?l.join(this.right.lineAt(a,c,n,o,a)):this.left.lineAt(a,c,n,r,i).join(l)}forEachLine(e,t,n,r,i,o){let a=r+this.left.height,s=i+this.left.length+this.break;if(this.break)e<s&&this.left.forEachLine(e,t,n,r,i,o),t>=s&&this.right.forEachLine(e,t,n,a,s,o);else{let l=this.lineAt(s,Let.ByPos,n,r,i);e<l.from&&this.left.forEachLine(e,l.from-1,n,r,i,o),l.to>=e&&l.from<=t&&o(l),t>l.to&&this.right.forEachLine(l.to+1,t,n,a,s,o)}}replace(e,t,n){let r=this.left.length+this.break;if(t<r)return this.balanced(this.left.replace(e,t,n),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,n));let i=[];e>0&&this.decomposeLeft(e,i);let o=i.length;for(let a of n)i.push(a);if(e>0&&Vet(i,o-1),t<this.length){let e=i.length;this.decomposeRight(t,i),Vet(i,e)}return Met.of(i)}decomposeLeft(e,t){let n=this.left.length;if(e<=n)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(n++,e>=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e<n&&this.left.decomposeRight(e,t),this.break&&e<r&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?Met.of(this.break?[e,null,t]:[e,t]):(this.left=Net(this.left,e),this.right=Net(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,r){let{left:i,right:o}=this,a=t+i.length+this.break,s=null;return r&&r.from<=t+i.length&&r.more?s=i=i.updateHeight(e,t,n,r):i.updateHeight(e,t,n),r&&r.from<=a+o.length&&r.more?s=o=o.updateHeight(e,a,n,r):o.updateHeight(e,a,n),s?this.balanced(i,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Vet(e,t){let n,r;null==e[t]&&(n=e[t-1])instanceof zet&&(r=e[t+1])instanceof zet&&e.splice(t-1,3,new zet(n.length+1+r.length))}class Wet{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof Uet?n.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new Uet(e-this.pos,-1,0)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e<t||n.heightRelevant){let r=n.widget?n.widget.estimatedHeight:0,i=n.widget?n.widget.lineBreaks:0;r<0&&(r=this.oracle.lineHeight);let o=t-e;n.block?this.addBlock(new Fet(o,r,n)):(o||i||r>=5)&&this.addLineDeco(r,i,o)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||null==this.nodes[this.nodes.length-1])&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new Uet(this.pos-e,-1,0)),this.writtenTo=this.pos}blankContent(e,t){let n=new zet(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Uet)return e;let t=new Uet(0,-1,0);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,n){let r=this.ensureLine();r.length+=n,r.collapsed+=n,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=t,this.writtenTo=this.pos=this.pos+n}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof Uet||this.isCovered?(this.writtenTo<this.pos||null==t)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new Uet(0,-1,0));let n=e;for(let r of this.nodes)r instanceof Uet&&r.updateHeight(this.oracle,n),n+=r?r.length:1;return this.nodes}static build(e,t,n,r){let i=new Wet(n,e);return j6e.spans(t,n,r,i,0),i.finish(n)}}class jet{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,n,r){(e<t||n&&n.heightRelevant||r&&r.heightRelevant)&&N7e(e,t,this.changes,5)}}function Yet(e,t){let n=e.getBoundingClientRect(),r=e.ownerDocument,i=r.defaultView||window,o=Math.max(0,n.left),a=Math.min(i.innerWidth,n.right),s=Math.max(0,n.top),l=Math.min(i.innerHeight,n.bottom);for(let c=e.parentNode;c&&c!=r.body;)if(1==c.nodeType){let t=c,n=window.getComputedStyle(t);if((t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth)&&"visible"!=n.overflow){let n=t.getBoundingClientRect();o=Math.max(o,n.left),a=Math.min(a,n.right),s=Math.max(s,n.top),l=Math.min(c==e.parentNode?i.innerHeight:l,n.bottom)}c="absolute"==n.position||"fixed"==n.position?t.offsetParent:t.parentNode}else{if(11!=c.nodeType)break;c=c.host}return{left:o-n.left,right:Math.max(o,a)-n.left,top:s-(n.top+t),bottom:Math.max(s,l)-(n.top+t)}}function Zet(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class Get{constructor(e,t,n,r){this.from=e,this.to=t,this.size=n,this.displaySize=r}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=t[n];if(r.from!=i.from||r.to!=i.to||r.size!=i.size)return!1}return!0}draw(e,t){return B7e.replace({widget:new Het(this.displaySize*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}}class Het extends E7e{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class Ket{constructor(e,t){this.view=e,this.state=t,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scaleX=1,this.scaleY=1,this.scrollOffset=0,this.scrolledToBottom=!1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=ntt,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=u8e.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let n=t.facet(H8e).some(e=>"function"!=typeof e&&"cm-lineWrapping"==e.class);this.heightOracle=new Ret(n),this.stateDeco=rtt(t),this.heightMap=Met.empty().applyChanges(this.stateDeco,k3e.empty,this.heightOracle.setDoc(t.doc),[new s9e(0,0,0,t.doc.length)]);for(let r=0;r<2&&(this.viewport=this.getViewport(0,null),this.updateForViewport());r++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=B7e.set(this.lineGaps.map(e=>e.draw(this,!1))),this.scrollParent=e.scrollDOM,this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let r=n?t.head:t.anchor;if(!e.some(({from:e,to:t})=>r>=e&&r<=t)){let{from:t,to:n}=this.lineBlockAt(r);e.push(new Jet(t,n))}}return this.viewports=e.sort((e,t)=>e.from-t.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?ntt:new itt(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(ott(e,this.scaler))})}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=rtt(this.state);let r=e.changedRanges,i=s9e.extendWithRanges(r,function(e,t,n){let r=new jet;return j6e.compare(e,t,n,r,0),r.changes}(n,this.stateDeco,e?e.changes:F3e.empty(this.state.doc.length))),o=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollOffset);Eet(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),i),(this.heightMap.height!=o||Pet)&&(e.flags|=2),a?(this.scrollAnchorPos=e.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=o);let s=i.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<s.from||t.range.head>s.to)||!this.viewportIsAppropriate(s))&&(s=this.getViewport(0,t));let l=s.from!=this.viewport.from||s.to!=this.viewport.to;this.viewport=s,e.flags|=this.updateForViewport(),(l||!e.changes.empty||2&e.flags)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&(e.selectionSet||e.focusChanged)&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(N8e)&&(this.mustEnforceCursorAssoc=!0)}measure(){let{view:e}=this,t=e.contentDOM,n=window.getComputedStyle(t),r=this.heightOracle,i=n.whiteSpace;this.defaultTextDirection="rtl"==n.direction?u8e.RTL:u8e.LTR;let o=this.heightOracle.mustRefreshForWrapping(i)||"refresh"===this.mustMeasureContent,a=t.getBoundingClientRect(),s=o||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let l=0,c=0;if(a.width&&a.height){let{scaleX:e,scaleY:n}=K7e(t,a);(e>.005&&Math.abs(this.scaleX-e)>.005||n>.005&&Math.abs(this.scaleY-n)>.005)&&(this.scaleX=e,this.scaleY=n,l|=16,o=s=!0)}let u=(parseInt(n.paddingTop)||0)*this.scaleY,h=(parseInt(n.paddingBottom)||0)*this.scaleY;this.paddingTop==u&&this.paddingBottom==h||(this.paddingTop=u,this.paddingBottom=h,l|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(s=!0),this.editorWidth=e.scrollDOM.clientWidth,l|=16);let d=J7e(this.view.contentDOM,!1).y;d!=this.scrollParent&&(this.scrollParent=d,this.scrollAnchorHeight=-1,this.scrollOffset=0);let p=this.getScrollOffset();this.scrollOffset!=p&&(this.scrollAnchorHeight=-1,this.scrollOffset=p),this.scrolledToBottom=a8e(this.scrollParent||e.win);let f=(this.printing?Zet:Yet)(t,this.paddingTop),g=f.top-this.pixelViewport.top,m=f.bottom-this.pixelViewport.bottom;this.pixelViewport=f;let O=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(O!=this.inView&&(this.inView=O,O&&(s=!0)),!this.inView&&!this.scrollTarget&&!function(e){let t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView||window;return t.left<n.innerWidth&&t.right>0&&t.top<n.innerHeight&&t.bottom>0}(e.dom))return 0;let A=a.width;if(this.contentDOMWidth==A&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=a.width,this.editorHeight=e.scrollDOM.clientHeight,l|=16),s){let t=e.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(t)&&(o=!0),o||r.lineWrapping&&Math.abs(A-this.contentDOMWidth)>r.charWidth){let{lineHeight:n,charWidth:a,textHeight:s}=e.docView.measureTextSize();o=n>0&&r.refresh(i,n,a,s,Math.max(5,A/a),t),o&&(e.docView.minWidth=0,l|=16)}g>0&&m>0?c=Math.max(g,m):g<0&&m<0&&(c=Math.min(g,m)),Eet();for(let n of this.viewports){let i=n.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(n);this.heightMap=(o?Met.empty().applyChanges(this.stateDeco,k3e.empty,this.heightOracle,[new s9e(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(r,0,o,new Bet(n.from,i))}Pet&&(l|=2)}let y=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return y&&(2&l&&(l|=this.updateScaler()),this.viewport=this.getViewport(c,this.scrollTarget),l|=this.updateForViewport()),(2&l||y)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),l|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),l}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,i=this.heightOracle,{visibleTop:o,visibleBottom:a}=this,s=new Jet(r.lineAt(o-1e3*n,Let.ByHeight,i,0,0).from,r.lineAt(a+1e3*(1-n),Let.ByHeight,i,0,0).to);if(t){let{head:e}=t.range;if(e<s.from||e>s.to){let n,o=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),a=r.lineAt(e,Let.ByPos,i,0,0);n="center"==t.y?(a.top+a.bottom)/2-o/2:"start"==t.y||"nearest"==t.y&&e<s.from?a.top:a.bottom-o,s=new Jet(r.lineAt(n-500,Let.ByHeight,i,0,0).from,r.lineAt(n+o+500,Let.ByHeight,i,0,0).to)}}return s}mapViewport(e,t){let n=t.mapPos(e.from,-1),r=t.mapPos(e.to,1);return new Jet(this.heightMap.lineAt(n,Let.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(r,Let.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},n=0){if(!this.inView)return!0;let{top:r}=this.heightMap.lineAt(e,Let.ByPos,this.heightOracle,0,0),{bottom:i}=this.heightMap.lineAt(t,Let.ByPos,this.heightOracle,0,0),{visibleTop:o,visibleBottom:a}=this;return(0==e||r<=o-Math.max(10,Math.min(-n,250)))&&(t==this.state.doc.length||i>=a+Math.max(10,Math.min(n,250)))&&r>o-2e3&&i<a+2e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let n=[];for(let r of e)t.touchesRange(r.from,r.to)||n.push(new Get(t.mapPos(r.from),t.mapPos(r.to),r.size,r.displaySize));return n}ensureLineGaps(e,t){let n=this.heightOracle.lineWrapping,r=n?1e4:2e3,i=r>>1,o=r<<1;if(this.defaultTextDirection!=u8e.LTR&&!n)return[];let a=[],s=(r,o,l,c)=>{if(o-r<i)return;let u=this.state.selection.main,h=[u.from];u.empty||h.push(u.to);for(let e of h)if(e>r&&e<o)return s(r,e-10,l,c),void s(e+10,o,l,c);let d=function(e,t){for(let n of e)if(t(n))return n;return}(e,e=>e.from>=l.from&&e.to<=l.to&&Math.abs(e.from-r)<i&&Math.abs(e.to-o)<i&&!h.some(t=>e.from<t&&e.to>t));if(!d){if(o<l.to&&t&&n&&t.visibleRanges.some(e=>e.from<=o&&e.to>=o)){let e=t.moveToLineBoundary(Z3e.cursor(o),!1,!0).head;e>r&&(o=e)}let e=this.gapSize(l,r,o,c);d=new Get(r,o,e,n||e<2e6?e:2e6)}a.push(d)},l=t=>{if(t.length<o||t.type!=R7e.Text)return;let i=function(e,t,n){let r=[],i=e,o=0;j6e.spans(n,e,t,{span(){},point(e,t){e>i&&(r.push({from:i,to:e}),o+=e-i),i=t}},20),i<t&&(r.push({from:i,to:t}),o+=t-i);return{total:o,ranges:r}}(t.from,t.to,this.stateDeco);if(i.total<o)return;let a,l,c=this.scrollTarget?this.scrollTarget.range.head:null;if(n){let e,n,o=r/this.heightOracle.lineLength*this.heightOracle.lineHeight;if(null!=c){let r=ttt(i,c),a=((this.visibleBottom-this.visibleTop)/2+o)/t.height;e=r-a,n=r+a}else e=(this.visibleTop-t.top-o)/t.height,n=(this.visibleBottom-t.top+o)/t.height;a=ett(i,e),l=ett(i,n)}else{let n=i.total*this.heightOracle.charWidth,o=r*this.heightOracle.charWidth,s=0;if(n>2e6)for(let r of e)r.from>=t.from&&r.from<t.to&&r.size!=r.displaySize&&r.from*this.heightOracle.charWidth+s<this.pixelViewport.left&&(s=r.size-r.displaySize);let u,h,d=this.pixelViewport.left+s,p=this.pixelViewport.right+s;if(null!=c){let e=ttt(i,c),t=((p-d)/2+o)/n;u=e-t,h=e+t}else u=(d-o)/n,h=(p+o)/n;a=ett(i,u),l=ett(i,h)}a>t.from&&s(t.from,a,t,i),l<t.to&&s(l,t.to,t,i)};for(let c of this.viewportLines)Array.isArray(c.type)?c.type.forEach(l):l(c);return a}gapSize(e,t,n,r){let i=ttt(r,n)-ttt(r,t);return this.heightOracle.lineWrapping?e.height*i:r.total*this.heightOracle.charWidth*i}updateLineGaps(e){Get.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=B7e.set(e.map(e=>e.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];j6e.spans(t,this.viewport.from,this.viewport.to,{span(e,t){n.push({from:e,to:t})},point(){}},20);let r=0;if(n.length!=this.visibleRanges.length)r=12;else for(let i=0;i<n.length&&!(8&r);i++){let t=this.visibleRanges[i],o=n[i];t.from==o.from&&t.to==o.to||(r|=4,e&&e.mapPos(t.from,-1)==o.from&&e.mapPos(t.to,1)==o.to||(r|=8))}return this.visibleRanges=n,r}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||ott(this.heightMap.lineAt(e,Let.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||ott(this.heightMap.lineAt(this.scaler.fromDOM(e),Let.ByHeight,this.heightOracle,0,0),this.scaler)}getScrollOffset(){return(this.scrollParent==this.view.scrollDOM?this.scrollParent.scrollTop:(this.scrollParent?this.scrollParent.getBoundingClientRect().top:0)-this.view.contentDOM.getBoundingClientRect().top)*this.scaleY}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return ott(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Jet{constructor(e,t){this.from=e,this.to=t}}function ett({total:e,ranges:t},n){if(n<=0)return t[0].from;if(n>=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let i=0;;i++){let{from:e,to:n}=t[i],o=n-e;if(r<=o)return e+r;r-=o}}function ttt(e,t){let n=0;for(let{from:r,to:i}of e.ranges){if(t<=i){n+=t-r;break}n+=i-r}return n/e.total}const ntt={toDOM:e=>e,fromDOM:e=>e,scale:1,eq(e){return e==this}};function rtt(e){let t=e.facet(K8e).filter(e=>"function"!=typeof e),n=e.facet(e9e).filter(e=>"function"!=typeof e);return n.length&&t.push(j6e.join(n)),t}class itt{constructor(e,t,n){let r=0,i=0,o=0;this.viewports=n.map(({from:n,to:i})=>{let o=t.lineAt(n,Let.ByPos,e,0,0).top,a=t.lineAt(i,Let.ByPos,e,0,0).bottom;return r+=a-o,{from:n,to:i,top:o,bottom:a,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(t.height-r);for(let a of this.viewports)a.domTop=o+(a.top-i)*this.scale,o=a.domBottom=a.domTop+(a.bottom-a.top),i=a.bottom}toDOM(e){for(let t=0,n=0,r=0;;t++){let i=t<this.viewports.length?this.viewports[t]:null;if(!i||e<i.top)return r+(e-n)*this.scale;if(e<=i.bottom)return i.domTop+(e-i.top);n=i.bottom,r=i.domBottom}}fromDOM(e){for(let t=0,n=0,r=0;;t++){let i=t<this.viewports.length?this.viewports[t]:null;if(!i||e<i.domTop)return n+(e-r)/this.scale;if(e<=i.domBottom)return i.top+(e-i.domTop);n=i.bottom,r=i.domBottom}}eq(e){return e instanceof itt&&(this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((t,n)=>t.from==e.viewports[n].from&&t.to==e.viewports[n].to))}}function ott(e,t){if(1==t.scale)return e;let n=t.toDOM(e.top),r=t.toDOM(e.bottom);return new Iet(e.from,e.length,n,r-n,Array.isArray(e._content)?e._content.map(e=>ott(e,t)):e._content)}const att=K3e.define({combine:e=>e.join(" ")}),stt=K3e.define({combine:e=>e.indexOf(!0)>-1}),ltt=u7e.newName(),ctt=u7e.newName(),utt=u7e.newName(),htt={"&light":"."+ctt,"&dark":"."+utt};function dtt(e,t,n){return new u7e(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,t=>{if("&"==t)return e;if(!n||!n[t])throw new RangeError(`Unsupported selector: ${t}`);return n[t]}):e+" "+t})}const ptt=dtt("."+ltt,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{userSelect:"none",position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-selectionHandle":{backgroundColor:"currentColor",width:"1.5px"},".cm-selectionHandle-start::before, .cm-selectionHandle-end::before":{content:'""',backgroundColor:"inherit",borderRadius:"50%",width:"8px",height:"8px",position:"absolute",left:"-3.25px"},".cm-selectionHandle-start::before":{top:"-8px"},".cm-selectionHandle-end::before":{bottom:"-8px"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},htt),ftt={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},gtt=T7e.ie&&T7e.ie_version<=11;class mtt{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new e8e,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let e of t)this.queue.push(e);(T7e.ie&&T7e.ie_version<=11||T7e.ios&&e.composing)&&t.some(e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():this.flush()}),!window.EditContext||!T7e.android||!1===e.constructor.EDIT_CONTEXT||T7e.chrome&&T7e.chrome_version<126||(this.editContext=new ytt(e),e.state.facet(V8e)&&(e.contentDOM.editContext=this.editContext.editContext)),gtt&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(()=>{var e;(null===(e=this.view.docView)||void 0===e?void 0:e.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver(e=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){("change"!=e.type&&e.type||e.matches)&&(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,n)=>t!=e[n]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,r=this.selectionRange;if(n.state.facet(V8e)?n.root.activeElement!=this.dom:!z7e(this.dom,r))return;let i=r.anchorNode&&n.docView.tile.nearest(r.anchorNode);i&&i.isWidget()&&i.widget.ignoreEvent(e)?t||(this.selectionChanged=!1):(T7e.ie&&T7e.ie_version<=11||T7e.android&&T7e.chrome)&&!n.state.selection.main.empty&&r.focusNode&&V7e(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=F7e(e.root);if(!t)return!1;let n=T7e.safari&&11==e.root.nodeType&&e.root.activeElement==this.dom&&function(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return Att(e,n)}let n=null;function r(e){e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0]}return e.contentDOM.addEventListener("beforeinput",r,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",r,!0),n?Att(e,n):null}(this.view,t)||t;if(!n||this.selectionRange.eq(n))return!1;let r=z7e(this.dom,n);return r&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&function(e,t){let n=t.focusNode,r=t.focusOffset;if(!n||t.anchorNode!=n||t.anchorOffset!=r)return!1;for(r=Math.min(r,Z7e(n));;)if(r){if(1!=n.nodeType)return!1;let e=n.childNodes[r-1];"false"==e.contentEditable?r--:(n=e,r=Z7e(n))}else{if(n==e)return!0;r=W7e(n),n=n.parentNode}}(this.dom,n)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(n),r&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let n=this.dom;n;)if(1==n.nodeType)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==n?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(n),n=n.assignedSlot||n.parentNode;else{if(11!=n.nodeType)break;n=n.host}if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);for(let e of this.scrollTargets=t)e.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,ftt),gtt&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),gtt&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var n;if(!this.delayedAndroidKey){let e=()=>{let e=this.delayedAndroidKey;if(e){this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&e.force&&o8e(this.dom,e.key,e.keyCode)}};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(null===(n=this.delayedAndroidKey)||void 0===n?void 0:n.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,r=!1;for(let i of e){let e=this.readMutation(i);e&&(e.typeOver&&(r=!0),-1==t?({from:t,to:n}=e):(t=Math.min(e.from,t),n=Math.max(e.to,n)))}return{from:t,to:n,typeOver:r}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),r=this.selectionChanged&&z7e(this.dom,this.selectionRange);if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let i=new K9e(this.view,e,t,n);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let n=this.view.state,r=eet(this.view,t);return this.view.state==n&&(t.domChanged||t.newSel&&!ret(this.view.state.selection,t.newSel.main))&&this.view.update([]),r}readMutation(e){let t=this.view.docView.tile.nearest(e.target);if(!t||t.isWidget())return null;if(t.markDirty("attributes"==e.type),"childList"==e.type){let n=Ott(t,e.previousSibling||e.target.previousSibling,-1),r=Ott(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(V8e)!=e.state.facet(V8e)&&(e.view.contentDOM.editContext=e.state.facet(V8e)?this.editContext.editContext:null))}destroy(){var e,t,n;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(n=this.resizeScroll)||void 0===n||n.disconnect();for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function Ott(e,t,n){for(;t;){let r=u9e.get(t);if(r&&r.parent==e)return r;let i=t.parentNode;t=i!=e.dom?i:n>0?t.nextSibling:t.previousSibling}return null}function Att(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,o=t.endOffset,a=e.docView.domAtPos(e.state.selection.main.anchor,1);return V7e(a.node,a.offset,i,o)&&([n,r,i,o]=[i,o,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}}class ytt{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=n=>{let r=e.state.selection.main,{anchor:i,head:o}=r,a=this.toEditorPos(n.updateRangeStart),s=this.toEditorPos(n.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:n.updateRangeStart,editorBase:a,drifted:!1});let l=s-a>n.text.length;a==this.from&&i<this.from?a=i:s==this.to&&i>this.to&&(s=i);let c=net(e.state.sliceDoc(a,s),n.text,(l?r.from:r.to)-a,l?"end":null);if(!c){let t=Z3e.single(this.toEditorPos(n.selectionStart),this.toEditorPos(n.selectionEnd));return void(ret(t,r)||e.dispatch({selection:t,userEvent:"select"}))}let u={from:c.from+a,to:c.toA+a,insert:k3e.of(n.text.slice(c.from,c.toB).split("\n"))};if((T7e.mac||T7e.android)&&u.from==o-1&&/^\. ?$/.test(n.text)&&"off"==e.contentDOM.getAttribute("autocorrect")&&(u={from:a,to:s,insert:k3e.of([n.text.replace("."," ")])}),this.pendingContextChange=u,!e.state.readOnly){let t=this.to-this.from+(u.to-u.from+u.insert.length);tet(e,u,Z3e.single(this.toEditorPos(n.selectionStart,t),this.toEditorPos(n.selectionEnd,t)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),u.from<u.to&&!u.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,n.updateRangeStart-1),Math.min(t.text.length,n.updateRangeStart+1)))&&this.handlers.compositionend(n)},this.handlers.characterboundsupdate=n=>{let r=[],i=null;for(let t=this.toEditorPos(n.rangeStart),o=this.toEditorPos(n.rangeEnd);t<o;t++){let n=e.coordsForChar(t);i=n&&new DOMRect(n.left,n.top,n.right-n.left,n.bottom-n.top)||i||new DOMRect,r.push(i)}t.updateCharacterBounds(n.rangeStart,r)},this.handlers.textformatupdate=t=>{let n=[];for(let e of t.getTextFormats()){let t=e.underlineStyle,r=e.underlineThickness;if(!/none/i.test(t)&&!/none/i.test(r)){let i=this.toEditorPos(e.rangeStart),o=this.toEditorPos(e.rangeEnd);if(i<o){let e=`text-decoration: underline ${/^[a-z]/.test(t)?t+" ":"Dashed"==t?"dashed ":"Squiggle"==t?"wavy ":""}${/thin/i.test(r)?1:2}px`;n.push(B7e.mark({attributes:{style:e}}).range(i,o))}}}e.dispatch({effects:z8e.of(B7e.set(n))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:t}=this.composing;this.composing=null,t&&this.reset(e.state)}};for(let n in this.handlers)t.addEventListener(n,this.handlers[n]);this.measureReq={read:e=>{this.editContext.updateControlBounds(e.contentDOM.getBoundingClientRect());let t=F7e(e.root);t&&t.rangeCount&&this.editContext.updateSelectionBounds(t.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,n=!1,r=this.pendingContextChange;return e.changes.iterChanges((i,o,a,s,l)=>{if(n)return;let c=l.length-(o-i);if(r&&o>=r.to){if(r.from==i&&r.to==o&&r.insert.eq(l))return r=this.pendingContextChange=null,t+=c,void(this.to+=c);r=null,this.revertPending(e.state)}if(i+=t,(o+=t)<=this.from)this.from+=c,this.to+=c;else if(i<this.to){if(i<this.from||o>this.to||this.to-this.from+l.length>3e4)return void(n=!0);this.editContext.updateText(this.toContextPos(i),this.toContextPos(o),l.toString()),this.to+=c}t+=c}),r&&!n&&this.revertPending(e.state),!n}update(e){let t=this.pendingContextChange,n=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(n.from,n.to)&&e.transactions.some(e=>!e.isUserEvent("input.type")&&e.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):this.applyEdits(e)&&this.rangeIsValid(e.state)?(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state):(this.pendingContextChange=null,this.reset(e.state)),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,n=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),r=this.toContextPos(t.head);this.editContext.selectionStart==n&&this.editContext.selectionEnd==r||this.editContext.updateSelection(n,r)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>3e4)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let n=this.composing;return n&&n.drifted?n.editorBase+(e-n.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class vtt{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:n}=e;this.dispatchTransactions=e.dispatchTransactions||n&&(e=>e.forEach(e=>n(e,this)))||(e=>this.update(e)),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new Ket(this,e.state||X6e.create(e)),e.scrollTo&&e.scrollTo.is(U8e)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(j8e).map(e=>new Z8e(e));for(let r of this.plugins)r.update(this);this.observer=new mtt(this),this.inputState=new iet(this),this.inputState.ensureHandlers(this.plugins),this.docView=new R9e(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),(null===(t=document.fonts)||void 0===t?void 0:t.ready)&&document.fonts.ready.then(()=>{this.viewState.mustMeasureContent="refresh",this.requestMeasure()})}dispatch(...e){let t=1==e.length&&e[0]instanceof C6e?e:1==e.length&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t,n=!1,r=!1,i=this.state;for(let h of e){if(h.startState!=i)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");i=h.state}if(this.destroyed)return void(this.viewState.state=i);let o=this.hasFocus,a=0,s=null;e.some(e=>e.annotation(Tet))?(this.inputState.notifiedFocused=o,a=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,s=$et(i,o),s||(a=1));let l=this.observer.delayedAndroidKey,c=null;if(l?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(i.doc)||!this.state.selection.eq(i.selection))&&(c=null)):this.observer.clear(),i.facet(X6e.phrases)!=this.state.facet(X6e.phrases))return this.setState(i);t=l9e.create(this,i,e),t.flags|=a;let u=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(u&&(u=u.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection,{x:n,y:r}=this.state.facet(vtt.cursorScrollMargin);u=new F8e(e.empty?e:Z3e.cursor(e.head,e.head>e.anchor?-1:1),"nearest","nearest",r,n)}for(let e of t.effects)e.is(U8e)&&(u=e.value.clip(this.state))}this.viewState.update(t,u),this.bidiCache=wtt.update(this.bidiCache,t.changes),t.empty||(this.updatePlugins(t),this.inputState.update(t)),n=this.docView.update(t),this.state.facet(a9e)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some(e=>e.isUserEvent("select.pointer")))}finally{this.updateState=0}if(t.startState.facet(att)!=t.state.facet(att)&&(this.viewState.mustMeasureContent=!0),(n||r||u||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),n&&this.docViewUpdate(),!t.empty)for(let h of this.state.facet(R8e))try{h(t)}catch(jk){q8e(this.state,jk,"update listener")}(s||c)&&Promise.resolve().then(()=>{s&&this.state==s.startState&&this.dispatch(s),c&&!eet(this,c)&&l.force&&o8e(this.contentDOM,l.key,l.keyCode)})}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new Ket(this,e),this.plugins=e.facet(j8e).map(e=>new Z8e(e)),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView.destroy(),this.docView=new R9e(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(j8e),n=e.state.facet(j8e);if(t!=n){let r=[];for(let i of n){let n=t.indexOf(i);if(n<0)r.push(new Z8e(i));else{let t=this.plugins[n];t.mustUpdate=e,r.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let r of this.plugins)r.mustUpdate=e;for(let r=0;r<this.plugins.length;r++)this.plugins[r].update(this);t!=n&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let t=e.value;if(t&&t.docViewUpdate)try{t.docViewUpdate(this)}catch(jk){q8e(this.state,jk,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.viewState.scrollParent,r=this.viewState.getScrollOffset(),{scrollAnchorPos:i,scrollAnchorHeight:o}=this.viewState;Math.abs(r-this.viewState.scrollOffset)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let e=0;;e++){if(o<0)if(a8e(n||this.win))i=-1,o=this.viewState.heightMap.height;else{let e=this.viewState.scrollAnchorAt(r);i=e.from,o=e.top}this.updateState=1;let a=this.viewState.measure();if(!a&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5)break;let s=[];4&a||([this.measureRequests,s]=[s,this.measureRequests]);let l=s.map(e=>{try{return e.read(this)}catch(jk){return q8e(this.state,jk),xtt}}),c=l9e.create(this,this.state,[]),u=!1;c.flags|=a,t?t.flags|=a:t=c,this.updateState=2,c.empty||(this.updatePlugins(c),this.inputState.update(c),this.updateAttrs(),u=this.docView.update(c),u&&this.docViewUpdate());for(let e=0;e<s.length;e++)if(l[e]!=xtt)try{let t=s[e];t.write&&t.write(l[e],this)}catch(jk){q8e(this.state,jk)}if(u&&this.docView.updateSelection(!0),!c.viewportChanged&&0==this.measureRequests.length){if(this.viewState.editorHeight){if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,o=-1;continue}{let e=((i<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(i).top)-o)/this.scaleY;if((e>1||e<-1)&&(n==this.scrollDOM||this.hasFocus||Math.max(this.inputState.lastWheelEvent,this.inputState.lastTouchTime)>Date.now()-100)){r+=e,n?n.scrollTop+=e:this.win.scrollBy(0,e),o=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let a of this.state.facet(R8e))a(t)}get themeClasses(){return ltt+" "+(this.state.facet(stt)?utt:ctt)+" "+this.state.facet(att)}updateAttrs(){let e=ktt(this,G8e,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(V8e)?"true":"false",class:"cm-content",style:`${T7e.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),ktt(this,H8e,t);let n=this.observer.ignore(()=>{let n=Q7e(this.contentDOM,this.contentAttrs,t),r=Q7e(this.dom,this.editorAttrs,e);return n||r});return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let e of n.effects)if(e.is(vtt.announce)){t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value}}mountStyles(){this.styleModules=this.state.facet(a9e);let e=this.state.facet(vtt.cspNonce);u7e.mount(this.root,this.styleModules.concat(ptt).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(null!=e.key)for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key)return void(this.measureRequests[t]=e);this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(void 0===t||t&&t.plugin!=e)&&this.pluginMap.set(e,t=this.plugins.find(t=>t.plugin==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return z9e(this,e,X9e(this,e,t,n))}moveByGroup(e,t){return z9e(this,e,X9e(this,e,t,t=>function(e,t,n){let r=e.state.charCategorizer(t),i=r(n);return e=>{let t=r(e);return i==L6e.Space&&(i=t),i==t}}(this,e.head,t)))}visualLineSide(e,t){let n=this.bidiSpans(e),r=this.textDirectionAt(e.from),i=n[t?n.length-1:0];return Z3e.cursor(i.side(t,r)+e.from,i.forward(!t,r)?1:-1)}moveToLineBoundary(e,t,n=!0){return function(e,t,n,r){let i=N9e(e,t.head,t.assoc||-1),o=r&&i.type==R7e.Text&&(e.lineWrapping||i.widgetLineBreaks)?e.coordsAtPos(t.assoc<0&&t.head>i.from?t.head-1:t.head):null;if(o){let t=e.dom.getBoundingClientRect(),r=e.textDirectionAt(i.from),a=e.posAtCoords({x:n==(r==u8e.LTR)?t.right-1:t.left+1,y:(o.top+o.bottom)/2});if(null!=a)return Z3e.cursor(a,n?-1:1)}return Z3e.cursor(n?i.to:i.from,n?-1:1)}(this,e,t,n)}moveVertically(e,t,n){return z9e(this,e,function(e,t,n,r){let i=t.head,o=n?1:-1;if(i==(n?e.state.doc.length:0))return Z3e.cursor(i,t.assoc);let a,s=t.goalColumn,l=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(i,t.assoc||((t.empty?n:t.head==t.from)?1:-1)),u=e.documentTop;if(c)null==s&&(s=c.left-l.left),a=o<0?c.top:c.bottom;else{let t=e.viewState.lineBlockAt(i);null==s&&(s=Math.min(l.right-l.left,e.defaultCharacterWidth*(i-t.from))),a=(o<0?t.top:t.bottom)+u}let h=l.left+s,d=e.viewState.heightOracle.textHeight>>1,p=null!=r?r:d;for(let f=0;;f+=d){let t=a+(p+f)*o,r=V9e(e,{x:h,y:t},!1,o);if(n?t>l.bottom:t<l.top)return Z3e.cursor(r.pos,r.assoc);let i=e.coordsAtPos(r.pos,r.assoc),c=i?(i.top+i.bottom)/2:0;if(!i||(n?c>a:c<a))return Z3e.cursor(r.pos,r.assoc,void 0,s)}}(this,e,t,n))}domAtPos(e,t=1){return this.docView.domAtPos(e,t)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){this.readMeasured();let n=V9e(this,e,t);return n&&n.pos}posAndSideAtCoords(e,t=!0){return this.readMeasured(),V9e(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;let r=this.state.doc.lineAt(e),i=this.bidiSpans(r);return G7e(n,i[v8e.find(i,e-r.from,-1,t)].dir==u8e.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(M8e)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>btt)return S8e(e.length);let t,n=this.textDirectionAt(e.from);for(let i of this.bidiCache)if(i.from==e.from&&i.dir==n&&(i.fresh||b8e(i.isolates,t=r9e(this,e))))return i.order;t||(t=r9e(this,e));let r=function(e,t,n){if(!e)return[new v8e(0,0,t==d8e?1:0)];if(t==h8e&&!n.length&&!y8e.test(e))return S8e(e.length);if(n.length)for(;e.length>x8e.length;)x8e[x8e.length]=256;let r=[],i=t==h8e?0:1;return k8e(e,i,i,n,0,e.length,r),r}(e.text,n,t);return this.bidiCache.push(new wtt(e.from,e.to,n,t,!0,r)),r}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||T7e.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{r8e(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){var n,r,i,o;return U8e.of(new F8e("number"==typeof e?Z3e.cursor(e):e,null!==(n=t.y)&&void 0!==n?n:"nearest",null!==(r=t.x)&&void 0!==r?r:"nearest",null!==(i=t.yMargin)&&void 0!==i?i:5,null!==(o=t.xMargin)&&void 0!==o?o:5))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,n=this.viewState.scrollAnchorAt(e);return U8e.of(new F8e(Z3e.cursor(n.from),"start","start",n.top-e,t,!0))}setTabFocusMode(e){null==e?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:"boolean"==typeof e?this.inputState.tabFocusMode=e?0:-1:0!=this.inputState.tabFocusMode&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return Y8e.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return Y8e.define(()=>({}),{eventObservers:e})}static theme(e,t){let n=u7e.newName(),r=[att.of(n),a9e.of(dtt(`.${n}`,e))];return t&&t.dark&&r.push(stt.of(!0)),r}static baseTheme(e){return h6e.lowest(a9e.of(dtt("."+ltt,e,htt)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),r=n&&u9e.get(n)||u9e.get(e);return(null===(t=null==r?void 0:r.root)||void 0===t?void 0:t.view)||null}}vtt.styleModule=a9e,vtt.inputHandler=B8e,vtt.clipboardInputFilter=L8e,vtt.clipboardOutputFilter=D8e,vtt.scrollHandler=X8e,vtt.focusChangeEffect=I8e,vtt.perLineTextDirection=M8e,vtt.exceptionSink=E8e,vtt.updateListener=R8e,vtt.editable=V8e,vtt.mouseSelectionStyle=P8e,vtt.dragMovesSelection=Q8e,vtt.clickAddsSelectionRange=C8e,vtt.decorations=K8e,vtt.blockWrappers=J8e,vtt.outerDecorations=e9e,vtt.atomicRanges=t9e,vtt.bidiIsolatedRanges=n9e,vtt.cursorScrollMargin=K3e.define({combine:e=>{let t=5,n=5;for(let r of e)"number"==typeof r?t=n=r:({x:t,y:n}=r);return{x:t,y:n}}}),vtt.scrollMargins=i9e,vtt.darkTheme=stt,vtt.cspNonce=K3e.define({combine:e=>e.length?e[0]:""}),vtt.contentAttributes=H8e,vtt.editorAttributes=G8e,vtt.lineWrapping=vtt.contentAttributes.of({class:"cm-lineWrapping"}),vtt.announce=_6e.define();const btt=4096,xtt={};class wtt{constructor(e,t,n,r,i,o){this.from=e,this.to=t,this.dir=n,this.isolates=r,this.fresh=i,this.order=o}static update(e,t){if(t.empty&&!e.some(e=>e.fresh))return e;let n=[],r=e.length?e[e.length-1].dir:u8e.LTR;for(let i=Math.max(0,e.length-10);i<e.length;i++){let o=e[i];o.dir!=r||t.touchesRange(o.from,o.to)||n.push(new wtt(t.mapPos(o.from,1),t.mapPos(o.to,-1),o.dir,o.isolates,!1,o.order))}return n}}function ktt(e,t,n){for(let r=e.state.facet(t),i=r.length-1;i>=0;i--){let t=r[i],o="function"==typeof t?t(e):t;o&&$7e(o,n)}return n}const Stt=T7e.mac?"mac":T7e.windows?"win":T7e.linux?"linux":"key";function Ttt(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}const $tt=h6e.default(vtt.domEventHandlers({keydown:(e,t)=>Btt(Qtt(t.state),e,t,"editor")})),_tt=K3e.define({enables:$tt}),Ctt=new WeakMap;function Qtt(e){let t=e.facet(_tt),n=Ctt.get(t);return n||Ctt.set(t,n=function(e,t=Stt){let n=Object.create(null),r=Object.create(null),i=(e,t)=>{let n=r[e];if(null==n)r[e]=t;else if(n!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},o=(e,r,o,a,s)=>{var l,c;let u=n[e]||(n[e]=Object.create(null)),h=r.split(/ (?!$)/).map(e=>function(e,t){const n=e.split(/-(?!$)/);let r,i,o,a,s=n[n.length-1];"Space"==s&&(s=" ");for(let l=0;l<n.length-1;++l){const e=n[l];if(/^(cmd|meta|m)$/i.test(e))a=!0;else if(/^a(lt)?$/i.test(e))r=!0;else if(/^(c|ctrl|control)$/i.test(e))i=!0;else if(/^s(hift)?$/i.test(e))o=!0;else{if(!/^mod$/i.test(e))throw new Error("Unrecognized modifier name: "+e);"mac"==t?a=!0:i=!0}}return r&&(s="Alt-"+s),i&&(s="Ctrl-"+s),a&&(s="Meta-"+s),o&&(s="Shift-"+s),s}(e,t));for(let t=1;t<h.length;t++){let n=h.slice(0,t).join(" ");i(n,!0),u[n]||(u[n]={preventDefault:!0,stopPropagation:!1,run:[t=>{let r=Ptt={view:t,prefix:n,scope:e};return setTimeout(()=>{Ptt==r&&(Ptt=null)},Ett),!0}]})}let d=h.join(" ");i(d,!1);let p=u[d]||(u[d]={preventDefault:!1,stopPropagation:!1,run:(null===(c=null===(l=u._any)||void 0===l?void 0:l.run)||void 0===c?void 0:c.slice())||[]});o&&p.run.push(o),a&&(p.preventDefault=!0),s&&(p.stopPropagation=!0)};for(let a of e){let e=a.scope?a.scope.split(" "):["editor"];if(a.any)for(let t of e){let e=n[t]||(n[t]=Object.create(null));e._any||(e._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:r}=a;for(let t in e)e[t].run.push(e=>r(e,Rtt))}let r=a[t]||a.key;if(r)for(let t of e)o(t,r,a.run,a.preventDefault,a.stopPropagation),a.shift&&o(t,"Shift-"+r,a.shift,a.preventDefault,a.stopPropagation)}return n}(t.reduce((e,t)=>e.concat(t),[]))),n}let Ptt=null;const Ett=4e3;let Rtt=null;function Btt(e,t,n,r){Rtt=t;let i=_V(t),o=D3e(I3e(i,0))==i.length&&" "!=i,a="",s=!1,l=!1,c=!1;Ptt&&Ptt.view==n&&Ptt.scope==r&&(a=Ptt.prefix+" ",cet.indexOf(t.keyCode)<0&&(l=!0,Ptt=null));let u,h,d=new Set,p=e=>{if(e){for(let t of e.run)if(!d.has(t)&&(d.add(t),t(n)))return e.stopPropagation&&(c=!0),!0;e.preventDefault&&(e.stopPropagation&&(c=!0),l=!0)}return!1},f=e[r];return f&&(p(f[a+Ttt(i,t,!o)])?s=!0:!o||!(t.altKey||t.metaKey||t.ctrlKey)||T7e.windows&&t.ctrlKey&&t.altKey||T7e.mac&&t.altKey&&!t.ctrlKey&&!t.metaKey||!(u=xV[t.keyCode])||u==i?o&&t.shiftKey&&p(f[a+Ttt(i,t,!0)])&&(s=!0):(p(f[a+Ttt(u,t,!0)])||t.shiftKey&&(h=wV[t.keyCode])!=i&&h!=u&&p(f[a+Ttt(h,t,!1)]))&&(s=!0),!s&&p(f._any)&&(s=!0)),l&&(s=!0),s&&c&&t.stopPropagation(),Rtt=null,s}class Itt{constructor(e,t,n,r,i){this.className=e,this.left=t,this.top=n,this.width=r,this.height=i}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className==this.className&&(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",null!=this.width&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,n){if(n.empty){let r=e.coordsAtPos(n.head,n.assoc||1);if(!r)return[];let i=Ltt(e);return[new Itt(t,r.left-i.left,r.top-i.top,null,r.bottom-r.top)]}return function(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),i=Math.min(n.to,e.viewport.to),o=e.textDirection==u8e.LTR,a=e.contentDOM,s=a.getBoundingClientRect(),l=Ltt(e),c=a.querySelector(".cm-line"),u=c&&window.getComputedStyle(c),h=s.left+(u?parseInt(u.paddingLeft)+Math.min(0,parseInt(u.textIndent)):0),d=s.right-(u?parseInt(u.paddingRight):0),p=N9e(e,r,1),f=N9e(e,i,-1),g=p.type==R7e.Text?p:null,m=f.type==R7e.Text?f:null;g&&(e.lineWrapping||p.widgetLineBreaks)&&(g=Dtt(e,r,1,g));m&&(e.lineWrapping||f.widgetLineBreaks)&&(m=Dtt(e,i,-1,m));if(g&&m&&g.from==m.from&&g.to==m.to)return A(y(n.from,n.to,g));{let t=g?y(n.from,null,g):v(p,!1),r=m?y(null,n.to,m):v(f,!0),i=[];return(g||p).to<(m||f).from-(g&&m?1:0)||p.widgetLineBreaks>1&&t.bottom+e.defaultLineHeight/2<r.top?i.push(O(h,t.bottom,d,r.top)):t.bottom<r.top&&e.elementAtHeight((t.bottom+r.top)/2).type==R7e.Text&&(t.bottom=r.top=(t.bottom+r.top)/2),A(t).concat(i).concat(A(r))}function O(e,n,r,i){return new Itt(t,e-l.left,n-l.top,Math.max(0,r-e),i-n)}function A({top:e,bottom:t,horizontal:n}){let r=[];for(let i=0;i<n.length;i+=2)r.push(O(n[i],e,n[i+1],t));return r}function y(t,n,r){let i=1e9,a=-1e9,s=[];function l(t,n,l,c,u){let p=e.coordsAtPos(t,t==r.to?-2:2),f=e.coordsAtPos(l,l==r.from?2:-2);p&&f&&(i=Math.min(p.top,f.top,i),a=Math.max(p.bottom,f.bottom,a),u==u8e.LTR?s.push(o&&n?h:p.left,o&&c?d:f.right):s.push(!o&&c?h:f.left,!o&&n?d:p.right))}let c=null!=t?t:r.from,u=null!=n?n:r.to;for(let o of e.visibleRanges)if(o.to>c&&o.from<u)for(let r=Math.max(o.from,c),i=Math.min(o.to,u);;){let o=e.state.doc.lineAt(r);for(let a of e.bidiSpans(o)){let e=a.from+o.from,s=a.to+o.from;if(e>=i)break;s>r&&l(Math.max(e,r),null==t&&e<=c,Math.min(s,i),null==n&&s>=u,a.dir)}if(r=o.to+1,r>=i)break}return 0==s.length&&l(c,null==t,u,null==n,e.textDirection),{top:i,bottom:a,horizontal:s}}function v(e,t){let n=s.top+(t?e.top:e.bottom);return{top:n,bottom:n,horizontal:[]}}}(e,t,n)}}function Ltt(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==u8e.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function Dtt(e,t,n,r){let i=e.coordsAtPos(t,2*n);if(!i)return r;let o=e.dom.getBoundingClientRect(),a=(i.top+i.bottom)/2,s=e.posAtCoords({x:o.left+1,y:a}),l=e.posAtCoords({x:o.right-1,y:a});return null==s||null==l?r:{from:Math.max(r.from,Math.min(s,l)),to:Math.min(r.to,Math.max(s,l))}}class Mtt{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(Ntt)!=e.state.facet(Ntt)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){!1!==this.layer.updateOnDocViewUpdate&&e.requestMeasure(this.measureReq)}setOrder(e){let t=0,n=e.facet(Ntt);for(;t<n.length&&n[t]!=this.layer;)t++;this.dom.style.zIndex=String((this.layer.above?150:-1)-t)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:t}=this.view;e==this.scaleX&&t==this.scaleY||(this.scaleX=e,this.scaleY=t,this.dom.style.transform=`scale(${1/e}, ${1/t})`)}draw(e){if(e.length!=this.drawn.length||e.some((e,t)=>{return n=e,r=this.drawn[t],!(n.constructor==r.constructor&&n.eq(r));var n,r})){let t=this.dom.firstChild,n=0;for(let r of e)r.update&&t&&r.constructor&&this.drawn[n].constructor&&r.update(t,this.drawn[n])?(t=t.nextSibling,n++):this.dom.insertBefore(r.draw(),t);for(;t;){let e=t.nextSibling;t.remove(),t=e}this.drawn=e,T7e.webkit&&(this.dom.style.display=this.dom.firstChild?"":"none")}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const Ntt=K3e.define();function Xtt(e){return[Y8e.define(t=>new Mtt(t,e)),Ntt.of(e)]}const Ftt=K3e.define({combine:e=>F6e(e,{cursorBlinkRate:1200,drawRangeCursor:!0,iosSelectionHandles:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})});function Utt(e={}){return[Ftt.of(e),qtt,Wtt,jtt,N8e.of(!0)]}function ztt(e){return e.startState.facet(Ftt)!=e.state.facet(Ftt)}const qtt=Xtt({above:!0,markers(e){let{state:t}=e,n=t.facet(Ftt),r=[];for(let i of t.selection.ranges){let o=i==t.selection.main;if(i.empty||n.drawRangeCursor&&!(o&&T7e.ios&&n.iosSelectionHandles)){let t=o?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",n=i.empty?i:Z3e.cursor(i.head,i.assoc);for(let i of Itt.forRange(e,t,n))r.push(i)}}return r},update(e,t){e.transactions.some(e=>e.selection)&&(t.style.animationName="cm-blink"==t.style.animationName?"cm-blink2":"cm-blink");let n=ztt(e);return n&&Vtt(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){Vtt(t.state,e)},class:"cm-cursorLayer"});function Vtt(e,t){t.style.animationDuration=e.facet(Ftt).cursorBlinkRate+"ms"}const Wtt=Xtt({above:!1,markers(e){let t=[],{main:n,ranges:r}=e.state.selection;for(let i of r)if(!i.empty)for(let n of Itt.forRange(e,"cm-selectionBackground",i))t.push(n);if(T7e.ios&&!n.empty&&e.state.facet(Ftt).iosSelectionHandles){for(let r of Itt.forRange(e,"cm-selectionHandle cm-selectionHandle-start",Z3e.cursor(n.from,1)))t.push(r);for(let r of Itt.forRange(e,"cm-selectionHandle cm-selectionHandle-end",Z3e.cursor(n.to,1)))t.push(r)}return t},update:(e,t)=>e.docChanged||e.selectionSet||e.viewportChanged||ztt(e),class:"cm-selectionLayer"}),jtt=h6e.highest(vtt.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}})),Ytt=_6e.define({map:(e,t)=>null==e?null:t.mapPos(e)}),Ztt=o6e.define({create:()=>null,update:(e,t)=>(null!=e&&(e=t.changes.mapPos(e)),t.effects.reduce((e,t)=>t.is(Ytt)?t.value:e,e))}),Gtt=Y8e.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let n=e.state.field(Ztt);null==n?null!=this.cursor&&(null===(t=this.cursor)||void 0===t||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(Ztt)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(Ztt),n=null!=t&&e.coordsAtPos(t);if(!n)return null;let r=e.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+e.scrollDOM.scrollLeft*e.scaleX,top:n.top-r.top+e.scrollDOM.scrollTop*e.scaleY,height:n.bottom-n.top}}drawCursor(e){if(this.cursor){let{scaleX:t,scaleY:n}=this.view;e?(this.cursor.style.left=e.left/t+"px",this.cursor.style.top=e.top/n+"px",this.cursor.style.height=e.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(Ztt)!=e&&this.view.dispatch({effects:Ytt.of(e)})}},{eventObservers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){e.target!=this.view.contentDOM&&this.view.contentDOM.contains(e.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function Htt(e,t,n,r,i){t.lastIndex=0;for(let o,a=e.iterRange(n,r),s=n;!a.next().done;s+=a.value.length)if(!a.lineBreak)for(;o=t.exec(a.value);)i(s+o.index,o)}class Ktt{constructor(e){const{regexp:t,decoration:n,decorate:r,boundary:i,maxLength:o=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,r)this.addMatch=(e,t,n,i)=>r(i,n,n+e[0].length,e,t);else if("function"==typeof n)this.addMatch=(e,t,r,i)=>{let o=n(e,t,r);o&&i(r,r+e[0].length,o)};else{if(!n)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(e,t,r,i)=>i(r,r+e[0].length,n)}this.boundary=i,this.maxLength=o}createDeco(e){let t=new Y6e,n=t.add.bind(t);for(let{from:r,to:i}of function(e,t){let n=e.visibleRanges;if(1==n.length&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:i,to:o}of n)i=Math.max(e.state.doc.lineAt(i).from,i-t),o=Math.min(e.state.doc.lineAt(o).to,o+t),r.length&&r[r.length-1].to>=i?r[r.length-1].to=o:r.push({from:i,to:o});return r}(e,this.maxLength))Htt(e.state.doc,this.regexp,r,i,(t,r)=>this.addMatch(r,e,t,n));return t.finish()}updateDeco(e,t){let n=1e9,r=-1;return e.docChanged&&e.changes.iterChanges((t,i,o,a)=>{a>=e.view.viewport.from&&o<=e.view.viewport.to&&(n=Math.min(o,n),r=Math.max(a,r))}),e.viewportMoved||r-n>1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,t.map(e.changes),n,r):t}updateRange(e,t,n,r){for(let i of e.visibleRanges){let o=Math.max(i.from,n),a=Math.min(i.to,r);if(a>=o){let n=e.state.doc.lineAt(o),r=n.to<a?e.state.doc.lineAt(a):n,s=Math.max(i.from,n.from),l=Math.min(i.to,r.to);if(this.boundary){for(;o>n.from;o--)if(this.boundary.test(n.text[o-1-n.from])){s=o;break}for(;a<r.to;a++)if(this.boundary.test(r.text[a-r.from])){l=a;break}}let c,u=[],h=(e,t,n)=>u.push(n.range(e,t));if(n==r)for(this.regexp.lastIndex=s-n.from;(c=this.regexp.exec(n.text))&&c.index<l-n.from;)this.addMatch(c,e,c.index+n.from,h);else Htt(e.state.doc,this.regexp,s,l,(t,n)=>this.addMatch(n,e,t,h));t=t.update({filterFrom:s,filterTo:l,filter:(e,t)=>e<s||t>l,add:u})}}return t}}const Jtt=null!=/x/.unicode?"gu":"g",ent=new RegExp("[\0-\b\n--\u2028\u2029\ufeff-]",Jtt),tnt={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let nnt=null;const rnt=K3e.define({combine(e){let t=F6e(e,{render:null,specialChars:ent,addSpecialChars:null});return(t.replaceTabs=!function(){var e;if(null==nnt&&"undefined"!=typeof document&&document.body){let t=document.body.style;nnt=null!=(null!==(e=t.tabSize)&&void 0!==e?e:t.MozTabSize)}return nnt||!1}())&&(t.specialChars=new RegExp("\t|"+t.specialChars.source,Jtt)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,Jtt)),t}});function int(e={}){return[rnt.of(e),ont||(ont=Y8e.fromClass(class{constructor(e){this.view=e,this.decorations=B7e.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(rnt)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new Ktt({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:i}=n.state,o=I3e(t[0],0);if(9==o){let e=i.lineAt(r),t=n.state.tabSize,o=o7e(e.text,t,r-e.from);return B7e.replace({widget:new snt((t-o%t)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=B7e.replace({widget:new ant(e,o)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(rnt);e.startState.facet(rnt)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))]}let ont=null;class ant extends E7e{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=(n=this.code)>=32?"•":10==n?"":String.fromCharCode(9216+n);var n;let r=e.state.phrase("Control character")+" "+(tnt[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,t);if(i)return i;let o=document.createElement("span");return o.textContent=t,o.title=r,o.setAttribute("aria-label",r),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class snt extends E7e{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="\t",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}const lnt=B7e.line({class:"cm-activeLine"}),cnt=Y8e.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let r of e.state.selection.ranges){let i=e.lineBlockAt(r.head);i.from>t&&(n.push(lnt.range(i.from)),t=i.from)}return B7e.set(n)}},{decorations:e=>e.decorations}),unt=2e3;function hnt(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),r=e.state.doc.lineAt(n),i=n-r.from,o=i>unt?-1:i==r.length?function(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}(e,t.clientX):o7e(r.text,e.state.tabSize,n-r.from);return{line:r.number,col:o,off:i}}function dnt(e,t){let n=hnt(e,t),r=e.state.selection;return n?{update(e){if(e.docChanged){let t=e.changes.mapPos(e.startState.doc.line(n.line).from),i=e.state.doc.lineAt(t);n={line:i.number,col:n.col,off:Math.min(n.off,i.length)},r=r.map(e.changes)}},get(t,i,o){let a=hnt(e,t);if(!a)return r;let s=function(e,t,n){let r=Math.min(t.line,n.line),i=Math.max(t.line,n.line),o=[];if(t.off>unt||n.off>unt||t.col<0||n.col<0){let a=Math.min(t.off,n.off),s=Math.max(t.off,n.off);for(let t=r;t<=i;t++){let n=e.doc.line(t);n.length<=s&&o.push(Z3e.range(n.from+a,n.to+s))}}else{let a=Math.min(t.col,n.col),s=Math.max(t.col,n.col);for(let t=r;t<=i;t++){let n=e.doc.line(t),r=a7e(n.text,a,e.tabSize,!0);if(r<0)o.push(Z3e.cursor(n.to));else{let t=a7e(n.text,s,e.tabSize);o.push(Z3e.range(n.from+r,n.from+t))}}}return o}(e.state,n,a);return s.length?o?Z3e.create(s.concat(r.ranges)):Z3e.create(s):r}}:null}const pnt={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},fnt={style:"cursor: crosshair"};function gnt(e={}){let[t,n]=pnt[e.key||"Alt"],r=Y8e.fromClass(class{constructor(e){this.view=e,this.isDown=!1}set(e){this.isDown!=e&&(this.isDown=e,this.view.update([]))}},{eventObservers:{keydown(e){this.set(e.keyCode==t||n(e))},keyup(e){e.keyCode!=t&&n(e)||this.set(!1)},mousemove(e){this.set(n(e))}}});return[r,vtt.contentAttributes.of(e=>{var t;return(null===(t=e.plugin(r))||void 0===t?void 0:t.isDown)?fnt:null})]}const mnt="-10000px";class Ont{constructor(e,t,n,r){this.facet=t,this.createTooltipView=n,this.removeTooltipView=r,this.input=e.state.facet(t),this.tooltips=this.input.filter(e=>e);let i=null;this.tooltipViews=this.tooltips.map(e=>i=n(e,i))}update(e,t){var n;let r=e.state.facet(this.facet),i=r.filter(e=>e);if(r===this.input){for(let t of this.tooltipViews)t.update&&t.update(e);return!1}let o=[],a=t?[]:null;for(let s=0;s<i.length;s++){let n=i[s],r=-1;if(n){for(let e=0;e<this.tooltips.length;e++){let t=this.tooltips[e];t&&t.create==n.create&&(r=e)}if(r<0)o[s]=this.createTooltipView(n,s?o[s-1]:null),a&&(a[s]=!!n.above);else{let n=o[s]=this.tooltipViews[r];a&&(a[s]=t[r]),n.update&&n.update(e)}}}for(let s of this.tooltipViews)o.indexOf(s)<0&&(this.removeTooltipView(s),null===(n=s.destroy)||void 0===n||n.call(s));return t&&(a.forEach((e,n)=>t[n]=e),t.length=a.length),this.input=r,this.tooltips=i,this.tooltipViews=o,!0}}function Ant(e){let t=e.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:t.clientHeight,right:t.clientWidth}}const ynt=K3e.define({combine:e=>{var t,n,r;return{position:T7e.ios?"absolute":(null===(t=e.find(e=>e.position))||void 0===t?void 0:t.position)||"fixed",parent:(null===(n=e.find(e=>e.parent))||void 0===n?void 0:n.parent)||null,tooltipSpace:(null===(r=e.find(e=>e.tooltipSpace))||void 0===r?void 0:r.tooltipSpace)||Ant}}}),vnt=new WeakMap,bnt=Y8e.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(ynt);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver="function"==typeof ResizeObserver?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new Ont(e,Snt,(e,t)=>this.createTooltip(e,t),e=>{this.resizeObserver&&this.resizeObserver.unobserve(e.dom),e.dom.remove()}),this.above=this.manager.tooltips.map(e=>!!e.above),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver(e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(ynt);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let e of this.manager.tooltipViews)e.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let e of this.manager.tooltipViews)this.container.appendChild(e.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e,t){let n=e.create(this.view),r=t?t.dom:null;if(n.dom.classList.add("cm-tooltip"),e.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",n.dom.appendChild(e)}return n.dom.style.position=this.position,n.dom.style.top=mnt,n.dom.style.left="0px",this.container.insertBefore(n.dom,r),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var e,t,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let r of this.manager.tooltipViews)r.dom.remove(),null===(e=r.destroy)||void 0===e||e.call(r);this.parent&&this.container.remove(),null===(t=this.resizeObserver)||void 0===t||t.disconnect(),null===(n=this.intersectionObserver)||void 0===n||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=1,t=1,n=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:e}=this.manager.tooltipViews[0];if(T7e.safari){let t=e.getBoundingClientRect();n=Math.abs(t.top+1e4)>1||Math.abs(t.left)>1}else n=!!e.offsetParent&&e.offsetParent!=this.container.ownerDocument.body}if(n||"absolute"==this.position)if(this.parent){let n=this.parent.getBoundingClientRect();n.width&&n.height&&(e=n.width/this.parent.offsetWidth,t=n.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:t}=this.view.viewState);let r=this.view.scrollDOM.getBoundingClientRect(),i=o9e(this.view);return{visible:{left:r.left+i.left,top:r.top+i.top,right:r.right-i.right,bottom:r.bottom-i.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((e,t)=>{let n=this.manager.tooltipViews[t];return n.getCoords?n.getCoords(e.pos):this.view.coordsAtPos(e.pos)}),size:this.manager.tooltipViews.map(({dom:e})=>e.getBoundingClientRect()),space:this.view.state.facet(ynt).tooltipSpace(this.view),scaleX:e,scaleY:t,makeAbsolute:n}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let e of this.manager.tooltipViews)e.dom.style.position="absolute"}let{visible:n,space:r,scaleX:i,scaleY:o}=e,a=[];for(let s=0;s<this.manager.tooltips.length;s++){let l=this.manager.tooltips[s],c=this.manager.tooltipViews[s],{dom:u}=c,h=e.pos[s],d=e.size[s];if(!h||!1!==l.clip&&(h.bottom<=Math.max(n.top,r.top)||h.top>=Math.min(n.bottom,r.bottom)||h.right<Math.max(n.left,r.left)-.1||h.left>Math.min(n.right,r.right)+.1)){u.style.top=mnt;continue}let p=l.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,f=p?7:0,g=d.right-d.left,m=null!==(t=vnt.get(c))&&void 0!==t?t:d.bottom-d.top,O=c.offset||knt,A=this.view.textDirection==u8e.LTR,y=d.width>r.right-r.left?A?r.left:r.right-d.width:A?Math.max(r.left,Math.min(h.left-(p?14:0)+O.x,r.right-g)):Math.min(Math.max(r.left,h.left-g+(p?14:0)-O.x),r.right-g),v=this.above[s];!l.strictSide&&(v?h.top-m-f-O.y<r.top:h.bottom+m+f+O.y>r.bottom)&&v==r.bottom-h.bottom>h.top-r.top&&(v=this.above[s]=!v);let b=(v?h.top-r.top:r.bottom-h.bottom)-f;if(b<m&&!1!==c.resize){if(b<this.view.defaultLineHeight){u.style.top=mnt;continue}vnt.set(c,m),u.style.height=(m=b)/o+"px"}else u.style.height&&(u.style.height="");let x=v?h.top-m-f-O.y:h.bottom+f+O.y,w=y+g;if(!0!==c.overlap)for(let e of a)e.left<w&&e.right>y&&e.top<x+m&&e.bottom>x&&(x=v?e.top-m-2-f:e.bottom+f+2);if("absolute"==this.position?(u.style.top=(x-e.parent.top)/o+"px",xnt(u,(y-e.parent.left)/i)):(u.style.top=x/o+"px",xnt(u,y/i)),p){let e=h.left+(A?O.x:-O.x)-(y+14-7);p.style.left=e/i+"px"}!0!==c.overlap&&a.push({left:y,top:x,right:w,bottom:x+m}),u.classList.toggle("cm-tooltip-above",v),u.classList.toggle("cm-tooltip-below",!v),c.positioned&&c.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=mnt}},{eventObservers:{scroll(){this.maybeMeasure()}}});function xnt(e,t){let n=parseInt(e.style.left,10);(isNaN(n)||Math.abs(t-n)>1)&&(e.style.left=t+"px")}const wnt=vtt.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),knt={x:0,y:0},Snt=K3e.define({enables:[bnt,wnt]}),Tnt=K3e.define({combine:e=>e.reduce((e,t)=>e.concat(t),[])});class $nt{static create(e){return new $nt(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Ont(e,Tnt,(e,t)=>this.createHostedView(e,t),e=>e.dom.remove())}createHostedView(e,t){let n=e.create(this.view);return n.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(n.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&n.mount&&n.mount(this.view),n}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)null===(e=t.destroy)||void 0===e||e.call(t)}passProp(e){let t;for(let n of this.manager.tooltipViews){let r=n[e];if(void 0!==r)if(void 0===t)t=r;else if(t!==r)return}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const _nt=Snt.compute([Tnt],e=>{let t=e.facet(Tnt);return 0===t.length?null:{pos:Math.min(...t.map(e=>e.pos)),end:Math.max(...t.map(e=>{var t;return null!==(t=e.end)&&void 0!==t?t:e.pos})),create:$nt.create,above:t[0].above,arrow:t.some(e=>e.arrow)}}),Cnt=K3e.define();class Qnt{constructor(e,t,n,r,i,o){this.view=e,this.source=t,this.field=n,this.locked=r,this.setHover=i,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(e){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:t}=this,n=e.docView.tile.nearest(t.target);if(!n)return;let r,i=1;if(n.isWidget())r=n.posAtStart;else{if(r=e.posAtCoords(t),null==r)return;let n=e.coordsAtPos(r);if(!n||t.y<n.top||t.y>n.bottom||t.x<n.left-e.defaultCharacterWidth||t.x>n.right+e.defaultCharacterWidth)return;let o=e.bidiSpans(e.state.doc.lineAt(r)).find(e=>e.from<=r&&e.to>=r),a=o&&o.dir==u8e.RTL?-1:1;i=t.x<n.left?-a:a}this.activateHover(e,r,i)}activateHover(e,t,n,r){let i=this.source(e,t,n),o=t=>{if(t&&(!Array.isArray(t)||t.length)){let n=Array.isArray(t)?t:[t];r&&this.locked.set(n,r),e.dispatch({effects:this.setHover.of(n)})}};if(i&&"then"in i){let n=this.pending={pos:t};i.then(e=>{this.pending==n&&(this.pending=null,o(e))},t=>q8e(e.state,t,"hover tooltip"))}else o(i)}get tooltip(){let e=this.view.plugin(bnt),t=e?e.manager.tooltips.findIndex(e=>e.create==$nt.create):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,n;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:r,tooltip:i}=this;if(r.length&&!this.locked.has(r)&&i&&!function(e,t){let n,{left:r,right:i,top:o,bottom:a}=e.getBoundingClientRect();if(n=e.querySelector(".cm-tooltip-arrow")){let e=n.getBoundingClientRect();o=Math.min(e.top,o),a=Math.max(e.bottom,a)}return t.clientX>=r-Pnt&&t.clientX<=i+Pnt&&t.clientY>=o-Pnt&&t.clientY<=a+Pnt}(i.dom,e)||this.pending){let{pos:i}=r[0]||this.pending,o=null!==(n=null===(t=r[0])||void 0===t?void 0:t.end)&&void 0!==n?n:i;(i==o?this.view.posAtCoords(this.lastMove)==i:function(e,t,n,r,i){let o=e.scrollDOM.getBoundingClientRect(),a=e.documentTop+e.documentPadding.top+e.contentHeight;if(o.left>r||o.right<r||o.top>i||Math.min(o.bottom,a)<i)return!1;let s=e.posAtCoords({x:r,y:i},!1);return s>=t&&s<=n}(this.view,i,o,e.clientX,e.clientY))||(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length&&!this.locked.has(t)){let{tooltip:t}=this;t&&t.dom.contains(e.relatedTarget)?this.watchTooltipLeave(t.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=n=>{e.removeEventListener("mouseleave",t);let{active:r}=this;!r.length||this.locked.has(r)||this.view.dom.contains(n.relatedTarget)||this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),clearTimeout(this.restartTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const Pnt=4;function Ent(e,t={}){let n=_6e.define(),r=new WeakMap,i=o6e.define({create:()=>[],update(e,o){let a=r.get(e);if(e.length&&(t.hideOnChange&&(o.docChanged||o.selection)||a&&a(o)?e=[]:t.hideOn&&(e=e.filter(e=>!t.hideOn(o,e)))),o.docChanged&&e.length){let t=[];for(let n of e){let e=o.changes.mapPos(n.pos,-1,N3e.TrackDel);if(null!=e){let r=Object.assign(Object.create(null),n);r.pos=e,null!=r.end&&(r.end=o.changes.mapPos(r.end)),t.push(r)}}e=t}for(let t of o.effects)t.is(n)&&(e=t.value,a=void 0),(t.is(Bnt)&&!t.value||t.value==i)&&(e=[]);return e.length&&a&&r.set(e,a),e},provide:e=>Tnt.from(e)});const o=Y8e.define(o=>new Qnt(o,e,i,r,n,t.hoverTime||300));return{active:i,extension:[i,o,Cnt.of(o),_nt]}}function Rnt(e,t){let n=e.plugin(bnt);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}const Bnt=_6e.define(),Int=K3e.define({combine(e){let t,n;for(let r of e)t=t||r.topContainer,n=n||r.bottomContainer;return{topContainer:t,bottomContainer:n}}});function Lnt(e,t){let n=e.plugin(Dnt),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const Dnt=Y8e.fromClass(class{constructor(e){this.input=e.state.facet(Xnt),this.specs=this.input.filter(e=>e),this.panels=this.specs.map(t=>t(e));let t=e.state.facet(Int);this.top=new Mnt(e,!0,t.topContainer),this.bottom=new Mnt(e,!1,t.bottomContainer),this.top.sync(this.panels.filter(e=>e.top)),this.bottom.sync(this.panels.filter(e=>!e.top));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(e){let t=e.state.facet(Int);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new Mnt(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new Mnt(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(Xnt);if(n!=this.input){let t=n.filter(e=>e),r=[],i=[],o=[],a=[];for(let n of t){let t,s=this.specs.indexOf(n);s<0?(t=n(e.view),a.push(t)):(t=this.panels[s],t.update&&t.update(e)),r.push(t),(t.top?i:o).push(t)}this.specs=t,this.panels=r,this.top.sync(i),this.bottom.sync(o);for(let e of a)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}else for(let r of this.panels)r.update&&r.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>vtt.scrollMargins.of(t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class Mnt{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=Nnt(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=Nnt(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function Nnt(e){let t=e.nextSibling;return e.remove(),t}const Xnt=K3e.define({enables:Dnt});function Fnt(e,t){let n,r=new Promise(e=>n=e),i=e=>function(e,t,n){let r=t.content?t.content(e,()=>a(null)):null;if(!r){if(r=p7e("form"),t.input){let e=p7e("input",t.input);/^(text|password|number|email|tel|url)$/.test(e.type)&&e.classList.add("cm-textfield"),e.name||(e.name="input"),r.appendChild(p7e("label",(t.label||"")+": ",e))}else r.appendChild(document.createTextNode(t.label||""));r.appendChild(document.createTextNode(" ")),r.appendChild(p7e("button",{class:"cm-button",type:"submit"},t.submitLabel||"OK"))}let i="FORM"==r.nodeName?[r]:r.querySelectorAll("form");for(let s=0;s<i.length;s++){let e=i[s];e.addEventListener("keydown",t=>{27==t.keyCode?(t.preventDefault(),a(null)):13==t.keyCode&&(t.preventDefault(),a(e))}),e.addEventListener("submit",t=>{t.preventDefault(),a(e)})}let o=p7e("div",r,p7e("button",{onclick:()=>a(null),"aria-label":e.state.phrase("close"),class:"cm-dialog-close",type:"button"},["×"]));t.class&&(o.className=t.class);function a(t){o.contains(o.ownerDocument.activeElement)&&e.focus(),n(t)}return o.classList.add("cm-dialog"),{dom:o,top:t.top,mount:()=>{if(t.focus){let e;e="string"==typeof t.focus?r.querySelector(t.focus):r.querySelector("input")||r.querySelector("button"),e&&"select"in e?e.select():e&&"focus"in e&&e.focus()}}}}(e,t,n);e.state.field(Unt,!1)?e.dispatch({effects:znt.of(i)}):e.dispatch({effects:_6e.appendConfig.of(Unt.init(()=>[i]))});let o=qnt.of(i);return{close:o,result:r.then(t=>((e.win.queueMicrotask||(t=>e.win.setTimeout(t,10)))(()=>{e.state.field(Unt).indexOf(i)>-1&&e.dispatch({effects:o})}),t))}}const Unt=o6e.define({create:()=>[],update(e,t){for(let n of t.effects)n.is(znt)?e=[n.value].concat(e):n.is(qnt)&&(e=e.filter(e=>e!=n.value));return e},provide:e=>Xnt.computeN([e],t=>t.field(e))}),znt=_6e.define(),qnt=_6e.define();class Vnt extends U6e{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}Vnt.prototype.elementClass="",Vnt.prototype.toDOM=void 0,Vnt.prototype.mapMode=N3e.TrackBefore,Vnt.prototype.startSide=Vnt.prototype.endSide=-1,Vnt.prototype.point=!0;const Wnt=K3e.define(),jnt=K3e.define(),Ynt={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>j6e.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"},Znt=K3e.define();function Gnt(e){return[Knt(),Znt.of({...Ynt,...e})]}const Hnt=K3e.define({combine:e=>e.some(e=>e)});function Knt(e){return[Jnt]}const Jnt=Y8e.fromClass(class{constructor(e){this.view=e,this.domAfter=null,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters cm-gutters-before",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(Znt).map(t=>new rrt(e,t)),this.fixed=!e.state.facet(Hnt);for(let t of this.gutters)"after"==t.config.side?this.getDOMAfter().appendChild(t.dom):this.dom.appendChild(t.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement("div"),this.domAfter.className="cm-gutters cm-gutters-after",this.domAfter.setAttribute("aria-hidden","true"),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.domAfter.style.position=this.fixed?"sticky":"",this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<.8*(n.to-n.from))}if(e.geometryChanged){let e=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=e,this.domAfter&&(this.domAfter.style.minHeight=e)}this.view.state.facet(Hnt)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let n=j6e.iter(this.view.state.facet(Wnt),this.view.viewport.from),r=[],i=this.gutters.map(e=>new nrt(e,this.view.viewport,-this.view.documentPadding.top));for(let o of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(o.type)){let e=!0;for(let t of o.type)if(t.type==R7e.Text&&e){trt(n,r,t.from);for(let e of i)e.line(this.view,t,r);e=!1}else if(t.widget)for(let e of i)e.widget(this.view,t)}else if(o.type==R7e.Text){trt(n,r,o.from);for(let e of i)e.line(this.view,o,r)}else if(o.widget)for(let e of i)e.widget(this.view,o);for(let o of i)o.finish();e&&(this.view.scrollDOM.insertBefore(this.dom,t),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(e){let t=e.startState.facet(Znt),n=e.state.facet(Znt),r=e.docChanged||e.heightChanged||e.viewportChanged||!j6e.eq(e.startState.facet(Wnt),e.state.facet(Wnt),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let i of this.gutters)i.update(e)&&(r=!0);else{r=!0;let i=[];for(let r of n){let n=t.indexOf(r);n<0?i.push(new rrt(this.view,r)):(this.gutters[n].update(e),i.push(this.gutters[n]))}for(let e of this.gutters)e.dom.remove(),i.indexOf(e)<0&&e.destroy();for(let e of i)"after"==e.config.side?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.gutters=i}return r}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:e=>vtt.scrollMargins.of(t=>{let n=t.plugin(e);if(!n||0==n.gutters.length||!n.fixed)return null;let r=n.dom.offsetWidth*t.scaleX,i=n.domAfter?n.domAfter.offsetWidth*t.scaleX:0;return t.textDirection==u8e.LTR?{left:r,right:i}:{right:r,left:i}})});function ert(e){return Array.isArray(e)?e:[e]}function trt(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class nrt{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=j6e.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:r}=this,i=(t.top-this.height)/e.scaleY,o=t.height/e.scaleY;if(this.i==r.elements.length){let t=new irt(e,o,i,n);r.elements.push(t),r.dom.appendChild(t.dom)}else r.elements[this.i].update(e,o,i,n);this.height=t.bottom,this.i++}line(e,t,n){let r=[];trt(this.cursor,r,t.from),n.length&&(r=r.concat(n));let i=this.gutter.config.lineMarker(e,t,r);i&&r.unshift(i);let o=this.gutter;(0!=r.length||o.config.renderEmptyElements)&&this.addElement(e,t,r)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t),r=n?[n]:null;for(let i of e.state.facet(jnt)){let n=i(e,t.widget,t);n&&(r||(r=[])).push(n)}r&&this.addElement(e,t,r)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class rrt{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,r=>{let i,o=r.target;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let e=o.getBoundingClientRect();i=(e.top+e.bottom)/2}else i=r.clientY;let a=e.lineBlockAtHeight(i-e.documentTop);t.domEventHandlers[n](e,a,r)&&r.preventDefault()});this.markers=ert(t.markers(e)),t.initialSpacer&&(this.spacer=new irt(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=ert(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let n=e.view.viewport;return!j6e.eq(this.markers,t,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class irt{constructor(e,t,n,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,r)}update(e,t,n,r){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),function(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].compare(t[n]))return!1;return!0}(this.markers,r)||this.setMarkers(e,r)}setMarkers(e,t){let n="cm-gutterElement",r=this.dom.firstChild;for(let i=0,o=0;;){let a=o,s=i<t.length?t[i++]:null,l=!1;if(s){let e=s.elementClass;e&&(n+=" "+e);for(let t=o;t<this.markers.length;t++)if(this.markers[t].compare(s)){a=t,l=!0;break}}else a=this.markers.length;for(;o<a;){let e=this.markers[o++];if(e.toDOM){e.destroy(r);let t=r.nextSibling;r.remove(),r=t}}if(!s)break;s.toDOM&&(l?r=r.nextSibling:this.dom.insertBefore(s.toDOM(e),r)),l&&o++}this.dom.className=n,this.markers=t}destroy(){this.setMarkers(null,[])}}const ort=K3e.define(),art=K3e.define(),srt=K3e.define({combine:e=>F6e(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let r in t){let e=n[r],i=t[r];n[r]=e?(t,n,r)=>e(t,n,r)||i(t,n,r):i}return n}})});class lrt extends Vnt{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function crt(e,t){return e.state.facet(srt).formatNumber(t,e.state)}const urt=Znt.compute([srt],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(ort),lineMarker:(e,t,n)=>n.some(e=>e.toDOM)?null:new lrt(crt(e,e.state.doc.lineAt(t.from).number)),widgetMarker:(e,t,n)=>{for(let r of e.state.facet(art)){let i=r(e,t,n);if(i)return i}return null},lineMarkerChange:e=>e.startState.facet(srt)!=e.state.facet(srt),initialSpacer:e=>new lrt(crt(e,drt(e.state.doc.lines))),updateSpacer(e,t){let n=crt(t.view,drt(t.view.state.doc.lines));return n==e.number?e:new lrt(n)},domEventHandlers:e.facet(srt).domEventHandlers,side:"before"}));function hrt(e={}){return[srt.of(e),Knt(),urt]}function drt(e){let t=9;for(;t<e;)t=10*t+9;return t}const prt=new class extends Vnt{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},frt=Wnt.compute(["selection"],e=>{let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.head).from;i>n&&(n=i,t.push(prt.range(i)))}return j6e.of(t)});var grt=Object.defineProperty,mrt=Object.getOwnPropertySymbols,Ort=Object.prototype.hasOwnProperty,Art=Object.prototype.propertyIsEnumerable,yrt=(e,t,n)=>t in e?grt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vrt=(e,t)=>{for(var n in t||(t={}))Ort.call(t,n)&&yrt(e,n,t[n]);if(mrt)for(var n of mrt(t))Art.call(t,n)&&yrt(e,n,t[n]);return e};function brt(e,t){return Object.assign(e,{meta:vrt({package:"@milkdown/components"},t)}),e}const xrt=CG({extensions:[],languages:[],expandIcon:()=>"⬇",searchIcon:()=>"🔍",clearSearchIcon:()=>"⌫",searchPlaceholder:"Search language",noResultText:"No result",renderLanguage:e=>l4`${e}`},"codeBlockConfigCtx");brt(xrt,{displayName:"Config<code-block>",group:"CodeBlock"});var wrt=Object.getOwnPropertySymbols,krt=Object.prototype.hasOwnProperty,Srt=Object.prototype.propertyIsEnumerable;class Trt{constructor(e,t,n,r,i){this.node=e,this.view=t,this.getPos=n,this.loader=r,this.config=i,this.updating=!1,this.languageName="",this.forwardUpdate=e=>{var t;if(this.updating||!this.cm.hasFocus)return;let n=(null!=(t=this.getPos())?t:0)+1;const{main:r}=e.state.selection,i=n+r.from,o=n+r.to,a=this.view.state.selection;if(e.docChanged||a.from!==i||a.to!==o){const t=this.view.state.tr;e.changes.iterChanges((e,r,i,o,a)=>{a.length?t.replaceWith(n+e,n+r,this.view.state.schema.text(a.toString())):t.delete(n+e,n+r),n+=o-i-(r-e)}),t.setSelection(jz.create(t.doc,i,o)),this.view.dispatch(t)}},this.codeMirrorKeymap=()=>{const e=this.view;return[{key:"ArrowUp",run:()=>this.maybeEscape("line",-1)},{key:"ArrowLeft",run:()=>this.maybeEscape("char",-1)},{key:"ArrowDown",run:()=>this.maybeEscape("line",1)},{key:"ArrowRight",run:()=>this.maybeEscape("char",1)},{key:"Mod-Enter",run:()=>!!sV(e.state,e.dispatch)&&(e.focus(),!0)},{key:"Mod-z",run:()=>V2(e.state,e.dispatch)},{key:"Shift-Mod-z",run:()=>W2(e.state,e.dispatch)},{key:"Mod-y",run:()=>W2(e.state,e.dispatch)},{key:"Backspace",run:()=>{var e;const t=this.cm.state.selection.ranges;if(t.length>1)return!1;const n=t[0];if(n&&(!n.empty||n.anchor>0))return!1;if(this.cm.state.doc.lines>=2)return!1;const r=this.view.state,i=null!=(e=this.getPos())?e:0,o=r.tr.replaceWith(i,i+this.node.nodeSize,r.schema.nodes.paragraph.createChecked({},this.node.content));return o.setSelection(jz.near(o.doc.resolve(i))),this.view.dispatch(o),this.view.focus(),!0}}]},this.maybeEscape=(e,t)=>{var n;const{state:r}=this.cm;let i=r.selection.main;if(!i.empty)return!1;if("line"===e&&(i=r.doc.lineAt(i.head)),t<0?i.from>0:i.to<r.doc.length)return!1;const o=(null!=(n=this.getPos())?n:0)+(t<0?0:this.node.nodeSize),a=jz.near(this.view.state.doc.resolve(o),t),s=this.view.state.tr.setSelection(a).scrollIntoView();return this.view.dispatch(s),this.view.focus(),!0},this.setLanguage=e=>{var t;this.view.dispatch(this.view.state.tr.setNodeAttribute(null!=(t=this.getPos())?t:0,"language",e))},this.getAllLanguages=()=>this.loader.getAll(),this.languageConf=new p6e,this.readOnlyConf=new p6e,this.cm=new vtt({doc:this.node.textContent,root:this.view.root,extensions:[this.readOnlyConf.of(X6e.readOnly.of(!this.view.editable)),_tt.of(this.codeMirrorKeymap()),this.languageConf.of([]),...i.extensions,vtt.updateListener.of(this.forwardUpdate)]}),this.dom=this.createDom(),this.updateLanguage()}createDom(){const e=document.createElement("milkdown-code-block");e.codemirror=this.cm,e.getAllLanguages=this.getAllLanguages,e.setLanguage=this.setLanguage,e.isEditorReadonly=()=>!this.view.editable;const t=((e,t)=>{var n={};for(var r in e)krt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&wrt)for(var r of wrt(e))t.indexOf(r)<0&&Srt.call(e,r)&&(n[r]=e[r]);return n})(this.config,["languages","extensions"]);return e.config=t,e}updateLanguage(){const e=this.node.attrs.language;if(e===this.languageName)return;this.dom.language=e;this.loader.load(null!=e?e:"").then(t=>{t&&(this.cm.dispatch({effects:this.languageConf.reconfigure(t)}),this.languageName=e)})}setSelection(e,t){this.cm.dom.isConnected&&(this.cm.focus(),this.updating=!0,this.cm.dispatch({selection:{anchor:e,head:t}}),this.updating=!1)}update(e){if(e.type!==this.node.type)return!1;if(this.updating)return!0;this.node=e,this.updateLanguage(),this.view.editable===this.cm.state.readOnly&&this.cm.dispatch({effects:this.readOnlyConf.reconfigure(X6e.readOnly.of(!this.view.editable))});const t=function(e,t){if(e===t)return null;let n=0,r=e.length,i=t.length;for(;n<r&&e.charCodeAt(n)===t.charCodeAt(n);)++n;for(;r>n&&i>n&&e.charCodeAt(r-1)===t.charCodeAt(i-1);)r--,i--;return{from:n,to:r,text:t.slice(n,i)}}(this.cm.state.doc.toString(),e.textContent);return t&&(this.updating=!0,this.cm.dispatch({changes:{from:t.from,to:t.to,insert:t.text}}),this.updating=!1),!0}selectNode(){this.dom.selected=!0,this.cm.focus()}deselectNode(){this.dom.selected=!1}stopEvent(){return!0}destroy(){this.cm.destroy()}}class $rt{constructor(e){this.languages=e,this.map={},e.forEach(e=>{e.alias.forEach(t=>{this.map[t]=e})})}getAll(){return this.languages.map(e=>({name:e.name,alias:e.alias}))}load(e){const t=this.map[e.toLowerCase()];return t?t.support?Promise.resolve(t.support):t.load():Promise.resolve(void 0)}}const _rt=({selected:e=!1,codemirror:t,getAllLanguages:n,setLanguage:r,language:i,config:o,isEditorReadonly:a})=>{var s,l,c;const u=u5(),h=c5(),d=c5(),p=c5(),[f,g]=M5(""),[m,O]=M5(!1),A=N5(()=>u.current.getRootNode(),[u]);I5(()=>{var e;const t=null==(e=null==n?void 0:n())?void 0:e.find(e=>e.alias.some(e=>e.toLowerCase()===(null==i?void 0:i.toLowerCase())));t&&t.name!==i&&(null==r||r(t.name))},[i]),I5(()=>{O(!1)},[i]),I5(()=>{const e=e=>{const t=e.target;if(h.current&&h.current.contains(t))return;const n=d.current;n&&"true"===n.dataset.expanded&&(n.contains(t)||O(!1))};return A.addEventListener("click",e),()=>{A.removeEventListener("click",e)}},[]),B5(()=>{g("");const e=h.current,t=d.current;e&&t&&cw(e,t,{placement:"bottom-start"}).then(({x:e,y:n})=>{Object.assign(t.style,{left:`${e}px`,top:`${n}px`})})},[m]);const y=N5(()=>{var e;if(!m)return[];const t=null!=(e=null==n?void 0:n())?e:[],r=t.find(e=>e.name.toLowerCase()===(null==i?void 0:i.toLowerCase())),o=t.filter(e=>(e.name.toLowerCase().includes(f.toLowerCase())||e.alias.some(e=>e.toLowerCase().includes(f.toLowerCase())))&&e!==r);return 0===o.length?[]:r?[r,...o]:o},[f,m,i]),v=N5(()=>(null==y?void 0:y.length)?y.map(e=>{var t;return l4`<li |
| 1073 |
`};Fgt.props={getPos:Function,view:Object,ctx:Object,node:Object,config:Object};const Ugt=E5(Fgt);var zgt,qgt,Vgt=e=>{throw TypeError(e)},Wgt=(e,t,n)=>(((e,t,n)=>{t.has(e)||Vgt("Cannot "+n)})(e,t,"access private method"),n);class jgt{constructor(e,t,n,r){var i,o,a;this.ctx=e,this.node=t,this.view=n,this.getPos=r,i=this,(o=zgt).has(i)?Vgt("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(i):o.set(i,a);const s=document.createElement("milkdown-table-block");this.dom=s,s.view=n,s.ctx=e,s.getPos=r,s.node=t,s.config=e.get(Pgt.key);const l=document.createElement("tbody");this.contentDOM=l,l.setAttribute("data-content-dom","true"),l.classList.add("content-dom"),s.appendChild(l)}update(e){return e.type===this.node.type&&((!e.sameMarkup(this.node)||!e.content.eq(this.node.content))&&(this.node=e,this.dom.node=e,!0))}stopEvent(e){if("drop"===e.type||e.type.startsWith("drag"))return!0;if("mousedown"===e.type){if(e.target instanceof HTMLButtonElement)return!0;const t=e.target;if(t instanceof HTMLElement&&(t.closest("th")||t.closest("td"))){const t=e;return Wgt(this,zgt,qgt).call(this,t)}}return!1}ignoreMutation(e){return!this.dom||!this.contentDOM||"selection"!==e.type&&(this.contentDOM===e.target&&"attributes"===e.type||!this.contentDOM.contains(e.target))}}zgt=new WeakSet,qgt=function(e){const t=this.view;if(!t.editable)return!1;const{state:n,dispatch:r}=t,i=t.posAtCoords({left:e.clientX,top:e.clientY});if(!i)return!1;const o=n.doc.resolve(i.inside),a=Gq(e=>"table_cell"===e.type.name||"table_header"===e.type.name)(o);if(!a)return!1;const{from:s}=a,l=Zz.create(n.doc,s+1);return!n.selection.eq(l)&&(n.selection instanceof ZK?setTimeout(()=>{r(n.tr.setSelection(l).scrollIntoView())},20):requestAnimationFrame(()=>{r(n.tr.setSelection(l).scrollIntoView())}),!0)},function(e,t){const n=customElements.get(e);null!=n||customElements.define(e,t)}("milkdown-table-block",Ugt);const Ygt=_G(T1.node,e=>(t,n,r)=>new jgt(e,t,n,r));Sgt(Ygt,{displayName:"NodeView<table-block>",group:"TableBlock"});const Zgt=[Pgt,Ygt],Ggt=Object.freeze(Object.defineProperty({__proto__:null,defineFeature:(e,t)=>{e.config(e=>{e.update(Pgt.key,e=>({...e,renderButton:e=>{var n,r,i,o,a,s,l,c,u,h,d,p,f,g,m,O,A,y;switch(e){case"add_row":return null!=(r=null==(n=null==t?void 0:t.addRowIcon)?void 0:n.call(t))?r:qht;case"add_col":return null!=(o=null==(i=null==t?void 0:t.addColIcon)?void 0:i.call(t))?o:qht;case"delete_row":return null!=(s=null==(a=null==t?void 0:t.deleteRowIcon)?void 0:a.call(t))?s:Wht;case"delete_col":return null!=(c=null==(l=null==t?void 0:t.deleteColIcon)?void 0:l.call(t))?c:Wht;case"align_col_left":return null!=(h=null==(u=null==t?void 0:t.alignLeftIcon)?void 0:u.call(t))?h:Oht;case"align_col_center":return null!=(p=null==(d=null==t?void 0:t.alignCenterIcon)?void 0:d.call(t))?p:mht;case"align_col_right":return null!=(g=null==(f=null==t?void 0:t.alignRightIcon)?void 0:f.call(t))?g:Aht;case"col_drag_handle":return null!=(O=null==(m=null==t?void 0:t.colDragHandleIcon)?void 0:m.call(t))?O:Pht;case"row_drag_handle":return null!=(y=null==(A=null==t?void 0:t.rowDragHandleIcon)?void 0:A.call(t))?y:Pht}}}))}).use(Zgt)}},Symbol.toStringTag,{value:"Module"}));var Hgt=function(e,t){return(Hgt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function Kgt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Hgt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}class Jgt extends Error{constructor(e,t){var n,r,i="KaTeX parse error: "+e,o=t&&t.loc;if(o&&o.start<=o.end){var a=o.lexer.input;n=o.start,r=o.end,n===a.length?i+=" at end of input: ":i+=" at position "+(n+1)+": ";var s=a.slice(n,r).replace(/[^]/g,"$&̲");i+=(n>15?"…"+a.slice(n-15,n):a.slice(0,n))+s+(r+15<a.length?a.slice(r,r+15)+"…":a.slice(r))}super(i),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,Jgt.prototype),this.position=n,null!=n&&null!=r&&(this.length=r-n),this.rawMessage=e}}var emt=/([A-Z])/g,tmt=e=>e.replace(emt,"-$1").toLowerCase(),nmt={"&":"&",">":">","<":"<",'"':""","'":"'"},rmt=/[&><"']/g,imt=e=>String(e).replace(rmt,e=>nmt[e]),omt=e=>"ordgroup"===e.type||"color"===e.type?1===e.body.length?omt(e.body[0]):e:"font"===e.type?omt(e.body):e,amt=new Set(["mathord","textord","atom"]),smt=e=>amt.has(omt(e).type),lmt={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function cmt(e){return void 0!==e.default?e.default:function(e){if("string"!=typeof e)return e.enum[0];switch(e){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}(Array.isArray(e.type)?e.type[0]:e.type)}function umt(e,t,n,r){var i=n[t];e[t]=void 0!==i?r.processor?r.processor(i):i:cmt(r)}class hmt{constructor(e){for(var t of(void 0===e&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},Object.keys(lmt))){var n=lmt[t];n&&umt(this,t,e,n)}}reportNonstrict(e,t,n){var r=this.strict;if("function"==typeof r&&(r=r(e,t,n)),r&&"ignore"!==r&&(!0===r||"error"===r))throw new Jgt("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",n)}useStrictBehavior(e,t,n){var r=this.strict;if("function"==typeof r)try{r=r(e,t,n)}catch(i){r="error"}return!(!r||"ignore"===r)&&(!0===r||"error"===r)}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var t=(e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?":"!==t[2]?null:/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?t[1].toLowerCase():null:"_relative"})(e.url);if(null==t)return!1;e.protocol=t}var n="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(n)}}class dmt{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return pmt[fmt[this.id]]}sub(){return pmt[gmt[this.id]]}fracNum(){return pmt[mmt[this.id]]}fracDen(){return pmt[Omt[this.id]]}cramp(){return pmt[Amt[this.id]]}text(){return pmt[ymt[this.id]]}isTight(){return this.size>=2}}var pmt=[new dmt(0,0,!1),new dmt(1,0,!0),new dmt(2,1,!1),new dmt(3,1,!0),new dmt(4,2,!1),new dmt(5,2,!0),new dmt(6,3,!1),new dmt(7,3,!0)],fmt=[4,5,4,5,6,7,6,7],gmt=[5,5,5,5,7,7,7,7],mmt=[2,3,4,5,6,7,6,7],Omt=[3,3,5,5,7,7,7,7],Amt=[1,1,3,3,5,5,7,7],ymt=[0,1,2,3,2,3,2,3],vmt={DISPLAY:pmt[0],TEXT:pmt[2],SCRIPT:pmt[4],SCRIPTSCRIPT:pmt[6]},bmt=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];var xmt=[];function wmt(e){for(var t=0;t<xmt.length;t+=2)if(e>=xmt[t]&&e<=xmt[t+1])return!0;return!1}bmt.forEach(e=>e.blocks.forEach(e=>xmt.push(...e)));var kmt=e=>e+" "+e,Smt=80,Tmt={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:kmt("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:kmt("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:kmt("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:kmt("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:kmt("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:kmt("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:kmt("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:kmt("M399995 440 h-120 V150 H0 v-120 H399995z"),rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};class $mt{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>{if("toText"in e)return e.toText();throw new Error("Expected MathDomNode with toText, got "+e.constructor.name)}).join("")}}var _mt={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},Cmt={ex:!0,em:!0,mu:!0},Qmt=function(e){return"string"!=typeof e&&(e=e.unit),e in _mt||e in Cmt||"ex"===e},Pmt=function(e,t){var n;if(e.unit in _mt)n=_mt[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)n=t.fontMetrics().cssEmPerMu;else{var r;if(r=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)n=r.fontMetrics().xHeight;else{if("em"!==e.unit)throw new Jgt("Invalid unit: '"+e.unit+"'");n=r.fontMetrics().quad}r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},Emt=function(e){return+e.toFixed(4)+"em"},Rmt=function(e){return e.filter(e=>e).join(" ")},Bmt=function(e){var t="";for(var n of Object.keys(e)){var r=e[n];void 0!==r&&(t+=tmt(n)+":"+r+";")}return t},Imt=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push("mtight");var r=t.getColor();r&&(this.style.color=r)}},Lmt=function(e){var t=document.createElement(e);for(var n of(t.className=Rmt(this.classes),Object.assign(t.style,this.style),Object.keys(this.attributes)))t.setAttribute(n,this.attributes[n]);for(var r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t},Dmt=/[\s"'>/=\x00-\x1f]/,Mmt=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+imt(Rmt(this.classes))+'"');var n=Bmt(this.style);for(var r of(n&&(t+=' style="'+imt(n)+'"'),Object.keys(this.attributes))){if(Dmt.test(r))throw new Jgt("Invalid attribute name '"+r+"'");t+=" "+r+'="'+imt(this.attributes[r])+'"'}t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</"+e+">"};let Nmt=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,Imt.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Lmt.call(this,"span")}toMarkup(){return Mmt.call(this,"span")}},Xmt=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Imt.call(this,t,r),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Lmt.call(this,"a")}toMarkup(){return Mmt.call(this,"a")}};class Fmt{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");return e.src=this.src,e.alt=this.alt,e.className="mord",Object.assign(e.style,this.style),e}toMarkup(){var e='<img src="'+imt(this.src)+'" alt="'+imt(this.alt)+'"',t=Bmt(this.style);return t&&(e+=' style="'+imt(t)+'"'),e+="'/>"}}var Umt={"î":"ı̂","ï":"ı̈","í":"ı́","ì":"ı̀"};class zmt{constructor(e,t,n,r,i,o,a,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=o||0,this.classes=a||[],this.style=s||{},this.maxFontSize=0;var l=function(e){for(var t=0;t<bmt.length;t++)for(var n=bmt[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Umt[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;return this.italic>0&&((t=document.createElement("span")).style.marginRight=Emt(this.italic)),this.classes.length>0&&((t=t||document.createElement("span")).className=Rmt(this.classes)),Object.keys(this.style).length>0&&(t=t||document.createElement("span"),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=imt(Rmt(this.classes)),t+='"');var n="";this.italic>0&&(n+="margin-right:"+Emt(this.italic)+";"),(n+=Bmt(this.style))&&(e=!0,t+=' style="'+imt(n)+'"');var r=imt(this.text);return e?(t+=">",t+=r,t+="</span>"):r}}class qmt{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t of Object.keys(this.attributes))e+=" "+t+'="'+imt(this.attributes[t])+'"';e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</svg>"}}class Vmt{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",Tmt[this.pathName]),e}toMarkup(){return this.alternate?'<path d="'+imt(this.alternate)+'"/>':'<path d="'+imt(Tmt[this.pathName])+'"/>'}}class Wmt{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e="<line";for(var t of Object.keys(this.attributes))e+=" "+t+'="'+imt(this.attributes[t])+'"';return e+="/>"}}var jmt={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Ymt={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Zmt={"Å":"A","Ð":"D","Þ":"o","å":"a","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"};function Gmt(e,t){jmt[e]=t}function Hmt(e,t,n){if(!jmt[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=jmt[t][r];if(!i&&e[0]in Zmt&&(r=Zmt[e[0]].charCodeAt(0),i=jmt[t][r]),i||"text"!==n||wmt(r)&&(i=jmt[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Kmt={};var Jmt={math:{},text:{}};function eOt(e,t,n,r,i,o){Jmt[e][i]={font:t,group:n,replace:r},o&&r&&(Jmt[e][r]=Jmt[e][i])}var tOt="math",nOt="text",rOt="main",iOt="ams",oOt="accent-token",aOt="bin",sOt="close",lOt="inner",cOt="mathord",uOt="op-token",hOt="open",dOt="punct",pOt="rel",fOt="spacing",gOt="textord";eOt(tOt,rOt,pOt,"≡","\\equiv",!0),eOt(tOt,rOt,pOt,"≺","\\prec",!0),eOt(tOt,rOt,pOt,"≻","\\succ",!0),eOt(tOt,rOt,pOt,"∼","\\sim",!0),eOt(tOt,rOt,pOt,"⊥","\\perp"),eOt(tOt,rOt,pOt,"⪯","\\preceq",!0),eOt(tOt,rOt,pOt,"⪰","\\succeq",!0),eOt(tOt,rOt,pOt,"≃","\\simeq",!0),eOt(tOt,rOt,pOt,"∣","\\mid",!0),eOt(tOt,rOt,pOt,"≪","\\ll",!0),eOt(tOt,rOt,pOt,"≫","\\gg",!0),eOt(tOt,rOt,pOt,"≍","\\asymp",!0),eOt(tOt,rOt,pOt,"∥","\\parallel"),eOt(tOt,rOt,pOt,"⋈","\\bowtie",!0),eOt(tOt,rOt,pOt,"⌣","\\smile",!0),eOt(tOt,rOt,pOt,"⊑","\\sqsubseteq",!0),eOt(tOt,rOt,pOt,"⊒","\\sqsupseteq",!0),eOt(tOt,rOt,pOt,"≐","\\doteq",!0),eOt(tOt,rOt,pOt,"⌢","\\frown",!0),eOt(tOt,rOt,pOt,"∋","\\ni",!0),eOt(tOt,rOt,pOt,"∝","\\propto",!0),eOt(tOt,rOt,pOt,"⊢","\\vdash",!0),eOt(tOt,rOt,pOt,"⊣","\\dashv",!0),eOt(tOt,rOt,pOt,"∋","\\owns"),eOt(tOt,rOt,dOt,".","\\ldotp"),eOt(tOt,rOt,dOt,"⋅","\\cdotp"),eOt(tOt,rOt,dOt,"⋅","·"),eOt(nOt,rOt,gOt,"⋅","·"),eOt(tOt,rOt,gOt,"#","\\#"),eOt(nOt,rOt,gOt,"#","\\#"),eOt(tOt,rOt,gOt,"&","\\&"),eOt(nOt,rOt,gOt,"&","\\&"),eOt(tOt,rOt,gOt,"ℵ","\\aleph",!0),eOt(tOt,rOt,gOt,"∀","\\forall",!0),eOt(tOt,rOt,gOt,"ℏ","\\hbar",!0),eOt(tOt,rOt,gOt,"∃","\\exists",!0),eOt(tOt,rOt,gOt,"∇","\\nabla",!0),eOt(tOt,rOt,gOt,"♭","\\flat",!0),eOt(tOt,rOt,gOt,"ℓ","\\ell",!0),eOt(tOt,rOt,gOt,"♮","\\natural",!0),eOt(tOt,rOt,gOt,"♣","\\clubsuit",!0),eOt(tOt,rOt,gOt,"℘","\\wp",!0),eOt(tOt,rOt,gOt,"♯","\\sharp",!0),eOt(tOt,rOt,gOt,"♢","\\diamondsuit",!0),eOt(tOt,rOt,gOt,"ℜ","\\Re",!0),eOt(tOt,rOt,gOt,"♡","\\heartsuit",!0),eOt(tOt,rOt,gOt,"ℑ","\\Im",!0),eOt(tOt,rOt,gOt,"♠","\\spadesuit",!0),eOt(tOt,rOt,gOt,"§","\\S",!0),eOt(nOt,rOt,gOt,"§","\\S"),eOt(tOt,rOt,gOt,"¶","\\P",!0),eOt(nOt,rOt,gOt,"¶","\\P"),eOt(tOt,rOt,gOt,"†","\\dag"),eOt(nOt,rOt,gOt,"†","\\dag"),eOt(nOt,rOt,gOt,"†","\\textdagger"),eOt(tOt,rOt,gOt,"‡","\\ddag"),eOt(nOt,rOt,gOt,"‡","\\ddag"),eOt(nOt,rOt,gOt,"‡","\\textdaggerdbl"),eOt(tOt,rOt,sOt,"⎱","\\rmoustache",!0),eOt(tOt,rOt,hOt,"⎰","\\lmoustache",!0),eOt(tOt,rOt,sOt,"⟯","\\rgroup",!0),eOt(tOt,rOt,hOt,"⟮","\\lgroup",!0),eOt(tOt,rOt,aOt,"∓","\\mp",!0),eOt(tOt,rOt,aOt,"⊖","\\ominus",!0),eOt(tOt,rOt,aOt,"⊎","\\uplus",!0),eOt(tOt,rOt,aOt,"⊓","\\sqcap",!0),eOt(tOt,rOt,aOt,"∗","\\ast"),eOt(tOt,rOt,aOt,"⊔","\\sqcup",!0),eOt(tOt,rOt,aOt,"◯","\\bigcirc",!0),eOt(tOt,rOt,aOt,"∙","\\bullet",!0),eOt(tOt,rOt,aOt,"‡","\\ddagger"),eOt(tOt,rOt,aOt,"≀","\\wr",!0),eOt(tOt,rOt,aOt,"⨿","\\amalg"),eOt(tOt,rOt,aOt,"&","\\And"),eOt(tOt,rOt,pOt,"⟵","\\longleftarrow",!0),eOt(tOt,rOt,pOt,"⇐","\\Leftarrow",!0),eOt(tOt,rOt,pOt,"⟸","\\Longleftarrow",!0),eOt(tOt,rOt,pOt,"⟶","\\longrightarrow",!0),eOt(tOt,rOt,pOt,"⇒","\\Rightarrow",!0),eOt(tOt,rOt,pOt,"⟹","\\Longrightarrow",!0),eOt(tOt,rOt,pOt,"↔","\\leftrightarrow",!0),eOt(tOt,rOt,pOt,"⟷","\\longleftrightarrow",!0),eOt(tOt,rOt,pOt,"⇔","\\Leftrightarrow",!0),eOt(tOt,rOt,pOt,"⟺","\\Longleftrightarrow",!0),eOt(tOt,rOt,pOt,"↦","\\mapsto",!0),eOt(tOt,rOt,pOt,"⟼","\\longmapsto",!0),eOt(tOt,rOt,pOt,"↗","\\nearrow",!0),eOt(tOt,rOt,pOt,"↩","\\hookleftarrow",!0),eOt(tOt,rOt,pOt,"↪","\\hookrightarrow",!0),eOt(tOt,rOt,pOt,"↘","\\searrow",!0),eOt(tOt,rOt,pOt,"↼","\\leftharpoonup",!0),eOt(tOt,rOt,pOt,"⇀","\\rightharpoonup",!0),eOt(tOt,rOt,pOt,"↙","\\swarrow",!0),eOt(tOt,rOt,pOt,"↽","\\leftharpoondown",!0),eOt(tOt,rOt,pOt,"⇁","\\rightharpoondown",!0),eOt(tOt,rOt,pOt,"↖","\\nwarrow",!0),eOt(tOt,rOt,pOt,"⇌","\\rightleftharpoons",!0),eOt(tOt,iOt,pOt,"≮","\\nless",!0),eOt(tOt,iOt,pOt,"","\\@nleqslant"),eOt(tOt,iOt,pOt,"","\\@nleqq"),eOt(tOt,iOt,pOt,"⪇","\\lneq",!0),eOt(tOt,iOt,pOt,"≨","\\lneqq",!0),eOt(tOt,iOt,pOt,"","\\@lvertneqq"),eOt(tOt,iOt,pOt,"⋦","\\lnsim",!0),eOt(tOt,iOt,pOt,"⪉","\\lnapprox",!0),eOt(tOt,iOt,pOt,"⊀","\\nprec",!0),eOt(tOt,iOt,pOt,"⋠","\\npreceq",!0),eOt(tOt,iOt,pOt,"⋨","\\precnsim",!0),eOt(tOt,iOt,pOt,"⪹","\\precnapprox",!0),eOt(tOt,iOt,pOt,"≁","\\nsim",!0),eOt(tOt,iOt,pOt,"","\\@nshortmid"),eOt(tOt,iOt,pOt,"∤","\\nmid",!0),eOt(tOt,iOt,pOt,"⊬","\\nvdash",!0),eOt(tOt,iOt,pOt,"⊭","\\nvDash",!0),eOt(tOt,iOt,pOt,"⋪","\\ntriangleleft"),eOt(tOt,iOt,pOt,"⋬","\\ntrianglelefteq",!0),eOt(tOt,iOt,pOt,"⊊","\\subsetneq",!0),eOt(tOt,iOt,pOt,"","\\@varsubsetneq"),eOt(tOt,iOt,pOt,"⫋","\\subsetneqq",!0),eOt(tOt,iOt,pOt,"","\\@varsubsetneqq"),eOt(tOt,iOt,pOt,"≯","\\ngtr",!0),eOt(tOt,iOt,pOt,"","\\@ngeqslant"),eOt(tOt,iOt,pOt,"","\\@ngeqq"),eOt(tOt,iOt,pOt,"⪈","\\gneq",!0),eOt(tOt,iOt,pOt,"≩","\\gneqq",!0),eOt(tOt,iOt,pOt,"","\\@gvertneqq"),eOt(tOt,iOt,pOt,"⋧","\\gnsim",!0),eOt(tOt,iOt,pOt,"⪊","\\gnapprox",!0),eOt(tOt,iOt,pOt,"⊁","\\nsucc",!0),eOt(tOt,iOt,pOt,"⋡","\\nsucceq",!0),eOt(tOt,iOt,pOt,"⋩","\\succnsim",!0),eOt(tOt,iOt,pOt,"⪺","\\succnapprox",!0),eOt(tOt,iOt,pOt,"≆","\\ncong",!0),eOt(tOt,iOt,pOt,"","\\@nshortparallel"),eOt(tOt,iOt,pOt,"∦","\\nparallel",!0),eOt(tOt,iOt,pOt,"⊯","\\nVDash",!0),eOt(tOt,iOt,pOt,"⋫","\\ntriangleright"),eOt(tOt,iOt,pOt,"⋭","\\ntrianglerighteq",!0),eOt(tOt,iOt,pOt,"","\\@nsupseteqq"),eOt(tOt,iOt,pOt,"⊋","\\supsetneq",!0),eOt(tOt,iOt,pOt,"","\\@varsupsetneq"),eOt(tOt,iOt,pOt,"⫌","\\supsetneqq",!0),eOt(tOt,iOt,pOt,"","\\@varsupsetneqq"),eOt(tOt,iOt,pOt,"⊮","\\nVdash",!0),eOt(tOt,iOt,pOt,"⪵","\\precneqq",!0),eOt(tOt,iOt,pOt,"⪶","\\succneqq",!0),eOt(tOt,iOt,pOt,"","\\@nsubseteqq"),eOt(tOt,iOt,aOt,"⊴","\\unlhd"),eOt(tOt,iOt,aOt,"⊵","\\unrhd"),eOt(tOt,iOt,pOt,"↚","\\nleftarrow",!0),eOt(tOt,iOt,pOt,"↛","\\nrightarrow",!0),eOt(tOt,iOt,pOt,"⇍","\\nLeftarrow",!0),eOt(tOt,iOt,pOt,"⇏","\\nRightarrow",!0),eOt(tOt,iOt,pOt,"↮","\\nleftrightarrow",!0),eOt(tOt,iOt,pOt,"⇎","\\nLeftrightarrow",!0),eOt(tOt,iOt,pOt,"△","\\vartriangle"),eOt(tOt,iOt,gOt,"ℏ","\\hslash"),eOt(tOt,iOt,gOt,"▽","\\triangledown"),eOt(tOt,iOt,gOt,"◊","\\lozenge"),eOt(tOt,iOt,gOt,"Ⓢ","\\circledS"),eOt(tOt,iOt,gOt,"®","\\circledR"),eOt(nOt,iOt,gOt,"®","\\circledR"),eOt(tOt,iOt,gOt,"∡","\\measuredangle",!0),eOt(tOt,iOt,gOt,"∄","\\nexists"),eOt(tOt,iOt,gOt,"℧","\\mho"),eOt(tOt,iOt,gOt,"Ⅎ","\\Finv",!0),eOt(tOt,iOt,gOt,"⅁","\\Game",!0),eOt(tOt,iOt,gOt,"‵","\\backprime"),eOt(tOt,iOt,gOt,"▲","\\blacktriangle"),eOt(tOt,iOt,gOt,"▼","\\blacktriangledown"),eOt(tOt,iOt,gOt,"■","\\blacksquare"),eOt(tOt,iOt,gOt,"⧫","\\blacklozenge"),eOt(tOt,iOt,gOt,"★","\\bigstar"),eOt(tOt,iOt,gOt,"∢","\\sphericalangle",!0),eOt(tOt,iOt,gOt,"∁","\\complement",!0),eOt(tOt,iOt,gOt,"ð","\\eth",!0),eOt(nOt,rOt,gOt,"ð","ð"),eOt(tOt,iOt,gOt,"╱","\\diagup"),eOt(tOt,iOt,gOt,"╲","\\diagdown"),eOt(tOt,iOt,gOt,"□","\\square"),eOt(tOt,iOt,gOt,"□","\\Box"),eOt(tOt,iOt,gOt,"◊","\\Diamond"),eOt(tOt,iOt,gOt,"¥","\\yen",!0),eOt(nOt,iOt,gOt,"¥","\\yen",!0),eOt(tOt,iOt,gOt,"✓","\\checkmark",!0),eOt(nOt,iOt,gOt,"✓","\\checkmark"),eOt(tOt,iOt,gOt,"ℶ","\\beth",!0),eOt(tOt,iOt,gOt,"ℸ","\\daleth",!0),eOt(tOt,iOt,gOt,"ℷ","\\gimel",!0),eOt(tOt,iOt,gOt,"ϝ","\\digamma",!0),eOt(tOt,iOt,gOt,"ϰ","\\varkappa"),eOt(tOt,iOt,hOt,"┌","\\@ulcorner",!0),eOt(tOt,iOt,sOt,"┐","\\@urcorner",!0),eOt(tOt,iOt,hOt,"└","\\@llcorner",!0),eOt(tOt,iOt,sOt,"┘","\\@lrcorner",!0),eOt(tOt,iOt,pOt,"≦","\\leqq",!0),eOt(tOt,iOt,pOt,"⩽","\\leqslant",!0),eOt(tOt,iOt,pOt,"⪕","\\eqslantless",!0),eOt(tOt,iOt,pOt,"≲","\\lesssim",!0),eOt(tOt,iOt,pOt,"⪅","\\lessapprox",!0),eOt(tOt,iOt,pOt,"≊","\\approxeq",!0),eOt(tOt,iOt,aOt,"⋖","\\lessdot"),eOt(tOt,iOt,pOt,"⋘","\\lll",!0),eOt(tOt,iOt,pOt,"≶","\\lessgtr",!0),eOt(tOt,iOt,pOt,"⋚","\\lesseqgtr",!0),eOt(tOt,iOt,pOt,"⪋","\\lesseqqgtr",!0),eOt(tOt,iOt,pOt,"≑","\\doteqdot"),eOt(tOt,iOt,pOt,"≓","\\risingdotseq",!0),eOt(tOt,iOt,pOt,"≒","\\fallingdotseq",!0),eOt(tOt,iOt,pOt,"∽","\\backsim",!0),eOt(tOt,iOt,pOt,"⋍","\\backsimeq",!0),eOt(tOt,iOt,pOt,"⫅","\\subseteqq",!0),eOt(tOt,iOt,pOt,"⋐","\\Subset",!0),eOt(tOt,iOt,pOt,"⊏","\\sqsubset",!0),eOt(tOt,iOt,pOt,"≼","\\preccurlyeq",!0),eOt(tOt,iOt,pOt,"⋞","\\curlyeqprec",!0),eOt(tOt,iOt,pOt,"≾","\\precsim",!0),eOt(tOt,iOt,pOt,"⪷","\\precapprox",!0),eOt(tOt,iOt,pOt,"⊲","\\vartriangleleft"),eOt(tOt,iOt,pOt,"⊴","\\trianglelefteq"),eOt(tOt,iOt,pOt,"⊨","\\vDash",!0),eOt(tOt,iOt,pOt,"⊪","\\Vvdash",!0),eOt(tOt,iOt,pOt,"⌣","\\smallsmile"),eOt(tOt,iOt,pOt,"⌢","\\smallfrown"),eOt(tOt,iOt,pOt,"≏","\\bumpeq",!0),eOt(tOt,iOt,pOt,"≎","\\Bumpeq",!0),eOt(tOt,iOt,pOt,"≧","\\geqq",!0),eOt(tOt,iOt,pOt,"⩾","\\geqslant",!0),eOt(tOt,iOt,pOt,"⪖","\\eqslantgtr",!0),eOt(tOt,iOt,pOt,"≳","\\gtrsim",!0),eOt(tOt,iOt,pOt,"⪆","\\gtrapprox",!0),eOt(tOt,iOt,aOt,"⋗","\\gtrdot"),eOt(tOt,iOt,pOt,"⋙","\\ggg",!0),eOt(tOt,iOt,pOt,"≷","\\gtrless",!0),eOt(tOt,iOt,pOt,"⋛","\\gtreqless",!0),eOt(tOt,iOt,pOt,"⪌","\\gtreqqless",!0),eOt(tOt,iOt,pOt,"≖","\\eqcirc",!0),eOt(tOt,iOt,pOt,"≗","\\circeq",!0),eOt(tOt,iOt,pOt,"≜","\\triangleq",!0),eOt(tOt,iOt,pOt,"∼","\\thicksim"),eOt(tOt,iOt,pOt,"≈","\\thickapprox"),eOt(tOt,iOt,pOt,"⫆","\\supseteqq",!0),eOt(tOt,iOt,pOt,"⋑","\\Supset",!0),eOt(tOt,iOt,pOt,"⊐","\\sqsupset",!0),eOt(tOt,iOt,pOt,"≽","\\succcurlyeq",!0),eOt(tOt,iOt,pOt,"⋟","\\curlyeqsucc",!0),eOt(tOt,iOt,pOt,"≿","\\succsim",!0),eOt(tOt,iOt,pOt,"⪸","\\succapprox",!0),eOt(tOt,iOt,pOt,"⊳","\\vartriangleright"),eOt(tOt,iOt,pOt,"⊵","\\trianglerighteq"),eOt(tOt,iOt,pOt,"⊩","\\Vdash",!0),eOt(tOt,iOt,pOt,"∣","\\shortmid"),eOt(tOt,iOt,pOt,"∥","\\shortparallel"),eOt(tOt,iOt,pOt,"≬","\\between",!0),eOt(tOt,iOt,pOt,"⋔","\\pitchfork",!0),eOt(tOt,iOt,pOt,"∝","\\varpropto"),eOt(tOt,iOt,pOt,"◀","\\blacktriangleleft"),eOt(tOt,iOt,pOt,"∴","\\therefore",!0),eOt(tOt,iOt,pOt,"∍","\\backepsilon"),eOt(tOt,iOt,pOt,"▶","\\blacktriangleright"),eOt(tOt,iOt,pOt,"∵","\\because",!0),eOt(tOt,iOt,pOt,"⋘","\\llless"),eOt(tOt,iOt,pOt,"⋙","\\gggtr"),eOt(tOt,iOt,aOt,"⊲","\\lhd"),eOt(tOt,iOt,aOt,"⊳","\\rhd"),eOt(tOt,iOt,pOt,"≂","\\eqsim",!0),eOt(tOt,rOt,pOt,"⋈","\\Join"),eOt(tOt,iOt,pOt,"≑","\\Doteq",!0),eOt(tOt,iOt,aOt,"∔","\\dotplus",!0),eOt(tOt,iOt,aOt,"∖","\\smallsetminus"),eOt(tOt,iOt,aOt,"⋒","\\Cap",!0),eOt(tOt,iOt,aOt,"⋓","\\Cup",!0),eOt(tOt,iOt,aOt,"⩞","\\doublebarwedge",!0),eOt(tOt,iOt,aOt,"⊟","\\boxminus",!0),eOt(tOt,iOt,aOt,"⊞","\\boxplus",!0),eOt(tOt,iOt,aOt,"⋇","\\divideontimes",!0),eOt(tOt,iOt,aOt,"⋉","\\ltimes",!0),eOt(tOt,iOt,aOt,"⋊","\\rtimes",!0),eOt(tOt,iOt,aOt,"⋋","\\leftthreetimes",!0),eOt(tOt,iOt,aOt,"⋌","\\rightthreetimes",!0),eOt(tOt,iOt,aOt,"⋏","\\curlywedge",!0),eOt(tOt,iOt,aOt,"⋎","\\curlyvee",!0),eOt(tOt,iOt,aOt,"⊝","\\circleddash",!0),eOt(tOt,iOt,aOt,"⊛","\\circledast",!0),eOt(tOt,iOt,aOt,"⋅","\\centerdot"),eOt(tOt,iOt,aOt,"⊺","\\intercal",!0),eOt(tOt,iOt,aOt,"⋒","\\doublecap"),eOt(tOt,iOt,aOt,"⋓","\\doublecup"),eOt(tOt,iOt,aOt,"⊠","\\boxtimes",!0),eOt(tOt,iOt,pOt,"⇢","\\dashrightarrow",!0),eOt(tOt,iOt,pOt,"⇠","\\dashleftarrow",!0),eOt(tOt,iOt,pOt,"⇇","\\leftleftarrows",!0),eOt(tOt,iOt,pOt,"⇆","\\leftrightarrows",!0),eOt(tOt,iOt,pOt,"⇚","\\Lleftarrow",!0),eOt(tOt,iOt,pOt,"↞","\\twoheadleftarrow",!0),eOt(tOt,iOt,pOt,"↢","\\leftarrowtail",!0),eOt(tOt,iOt,pOt,"↫","\\looparrowleft",!0),eOt(tOt,iOt,pOt,"⇋","\\leftrightharpoons",!0),eOt(tOt,iOt,pOt,"↶","\\curvearrowleft",!0),eOt(tOt,iOt,pOt,"↺","\\circlearrowleft",!0),eOt(tOt,iOt,pOt,"↰","\\Lsh",!0),eOt(tOt,iOt,pOt,"⇈","\\upuparrows",!0),eOt(tOt,iOt,pOt,"↿","\\upharpoonleft",!0),eOt(tOt,iOt,pOt,"⇃","\\downharpoonleft",!0),eOt(tOt,rOt,pOt,"⊶","\\origof",!0),eOt(tOt,rOt,pOt,"⊷","\\imageof",!0),eOt(tOt,iOt,pOt,"⊸","\\multimap",!0),eOt(tOt,iOt,pOt,"↭","\\leftrightsquigarrow",!0),eOt(tOt,iOt,pOt,"⇉","\\rightrightarrows",!0),eOt(tOt,iOt,pOt,"⇄","\\rightleftarrows",!0),eOt(tOt,iOt,pOt,"↠","\\twoheadrightarrow",!0),eOt(tOt,iOt,pOt,"↣","\\rightarrowtail",!0),eOt(tOt,iOt,pOt,"↬","\\looparrowright",!0),eOt(tOt,iOt,pOt,"↷","\\curvearrowright",!0),eOt(tOt,iOt,pOt,"↻","\\circlearrowright",!0),eOt(tOt,iOt,pOt,"↱","\\Rsh",!0),eOt(tOt,iOt,pOt,"⇊","\\downdownarrows",!0),eOt(tOt,iOt,pOt,"↾","\\upharpoonright",!0),eOt(tOt,iOt,pOt,"⇂","\\downharpoonright",!0),eOt(tOt,iOt,pOt,"⇝","\\rightsquigarrow",!0),eOt(tOt,iOt,pOt,"⇝","\\leadsto"),eOt(tOt,iOt,pOt,"⇛","\\Rrightarrow",!0),eOt(tOt,iOt,pOt,"↾","\\restriction"),eOt(tOt,rOt,gOt,"‘","`"),eOt(tOt,rOt,gOt,"$","\\$"),eOt(nOt,rOt,gOt,"$","\\$"),eOt(nOt,rOt,gOt,"$","\\textdollar"),eOt(tOt,rOt,gOt,"%","\\%"),eOt(nOt,rOt,gOt,"%","\\%"),eOt(tOt,rOt,gOt,"_","\\_"),eOt(nOt,rOt,gOt,"_","\\_"),eOt(nOt,rOt,gOt,"_","\\textunderscore"),eOt(tOt,rOt,gOt,"∠","\\angle",!0),eOt(tOt,rOt,gOt,"∞","\\infty",!0),eOt(tOt,rOt,gOt,"′","\\prime"),eOt(tOt,rOt,gOt,"△","\\triangle"),eOt(tOt,rOt,gOt,"Γ","\\Gamma",!0),eOt(tOt,rOt,gOt,"Δ","\\Delta",!0),eOt(tOt,rOt,gOt,"Θ","\\Theta",!0),eOt(tOt,rOt,gOt,"Λ","\\Lambda",!0),eOt(tOt,rOt,gOt,"Ξ","\\Xi",!0),eOt(tOt,rOt,gOt,"Π","\\Pi",!0),eOt(tOt,rOt,gOt,"Σ","\\Sigma",!0),eOt(tOt,rOt,gOt,"Υ","\\Upsilon",!0),eOt(tOt,rOt,gOt,"Φ","\\Phi",!0),eOt(tOt,rOt,gOt,"Ψ","\\Psi",!0),eOt(tOt,rOt,gOt,"Ω","\\Omega",!0),eOt(tOt,rOt,gOt,"A","Α"),eOt(tOt,rOt,gOt,"B","Β"),eOt(tOt,rOt,gOt,"E","Ε"),eOt(tOt,rOt,gOt,"Z","Ζ"),eOt(tOt,rOt,gOt,"H","Η"),eOt(tOt,rOt,gOt,"I","Ι"),eOt(tOt,rOt,gOt,"K","Κ"),eOt(tOt,rOt,gOt,"M","Μ"),eOt(tOt,rOt,gOt,"N","Ν"),eOt(tOt,rOt,gOt,"O","Ο"),eOt(tOt,rOt,gOt,"P","Ρ"),eOt(tOt,rOt,gOt,"T","Τ"),eOt(tOt,rOt,gOt,"X","Χ"),eOt(tOt,rOt,gOt,"¬","\\neg",!0),eOt(tOt,rOt,gOt,"¬","\\lnot"),eOt(tOt,rOt,gOt,"⊤","\\top"),eOt(tOt,rOt,gOt,"⊥","\\bot"),eOt(tOt,rOt,gOt,"∅","\\emptyset"),eOt(tOt,iOt,gOt,"∅","\\varnothing"),eOt(tOt,rOt,cOt,"α","\\alpha",!0),eOt(tOt,rOt,cOt,"β","\\beta",!0),eOt(tOt,rOt,cOt,"γ","\\gamma",!0),eOt(tOt,rOt,cOt,"δ","\\delta",!0),eOt(tOt,rOt,cOt,"ϵ","\\epsilon",!0),eOt(tOt,rOt,cOt,"ζ","\\zeta",!0),eOt(tOt,rOt,cOt,"η","\\eta",!0),eOt(tOt,rOt,cOt,"θ","\\theta",!0),eOt(tOt,rOt,cOt,"ι","\\iota",!0),eOt(tOt,rOt,cOt,"κ","\\kappa",!0),eOt(tOt,rOt,cOt,"λ","\\lambda",!0),eOt(tOt,rOt,cOt,"μ","\\mu",!0),eOt(tOt,rOt,cOt,"ν","\\nu",!0),eOt(tOt,rOt,cOt,"ξ","\\xi",!0),eOt(tOt,rOt,cOt,"ο","\\omicron",!0),eOt(tOt,rOt,cOt,"π","\\pi",!0),eOt(tOt,rOt,cOt,"ρ","\\rho",!0),eOt(tOt,rOt,cOt,"σ","\\sigma",!0),eOt(tOt,rOt,cOt,"τ","\\tau",!0),eOt(tOt,rOt,cOt,"υ","\\upsilon",!0),eOt(tOt,rOt,cOt,"ϕ","\\phi",!0),eOt(tOt,rOt,cOt,"χ","\\chi",!0),eOt(tOt,rOt,cOt,"ψ","\\psi",!0),eOt(tOt,rOt,cOt,"ω","\\omega",!0),eOt(tOt,rOt,cOt,"ε","\\varepsilon",!0),eOt(tOt,rOt,cOt,"ϑ","\\vartheta",!0),eOt(tOt,rOt,cOt,"ϖ","\\varpi",!0),eOt(tOt,rOt,cOt,"ϱ","\\varrho",!0),eOt(tOt,rOt,cOt,"ς","\\varsigma",!0),eOt(tOt,rOt,cOt,"φ","\\varphi",!0),eOt(tOt,rOt,aOt,"∗","*",!0),eOt(tOt,rOt,aOt,"+","+"),eOt(tOt,rOt,aOt,"−","-",!0),eOt(tOt,rOt,aOt,"⋅","\\cdot",!0),eOt(tOt,rOt,aOt,"∘","\\circ",!0),eOt(tOt,rOt,aOt,"÷","\\div",!0),eOt(tOt,rOt,aOt,"±","\\pm",!0),eOt(tOt,rOt,aOt,"×","\\times",!0),eOt(tOt,rOt,aOt,"∩","\\cap",!0),eOt(tOt,rOt,aOt,"∪","\\cup",!0),eOt(tOt,rOt,aOt,"∖","\\setminus",!0),eOt(tOt,rOt,aOt,"∧","\\land"),eOt(tOt,rOt,aOt,"∨","\\lor"),eOt(tOt,rOt,aOt,"∧","\\wedge",!0),eOt(tOt,rOt,aOt,"∨","\\vee",!0),eOt(tOt,rOt,gOt,"√","\\surd"),eOt(tOt,rOt,hOt,"⟨","\\langle",!0),eOt(tOt,rOt,hOt,"∣","\\lvert"),eOt(tOt,rOt,hOt,"∥","\\lVert"),eOt(tOt,rOt,sOt,"?","?"),eOt(tOt,rOt,sOt,"!","!"),eOt(tOt,rOt,sOt,"⟩","\\rangle",!0),eOt(tOt,rOt,sOt,"∣","\\rvert"),eOt(tOt,rOt,sOt,"∥","\\rVert"),eOt(tOt,rOt,pOt,"=","="),eOt(tOt,rOt,pOt,":",":"),eOt(tOt,rOt,pOt,"≈","\\approx",!0),eOt(tOt,rOt,pOt,"≅","\\cong",!0),eOt(tOt,rOt,pOt,"≥","\\ge"),eOt(tOt,rOt,pOt,"≥","\\geq",!0),eOt(tOt,rOt,pOt,"←","\\gets"),eOt(tOt,rOt,pOt,">","\\gt",!0),eOt(tOt,rOt,pOt,"∈","\\in",!0),eOt(tOt,rOt,pOt,"","\\@not"),eOt(tOt,rOt,pOt,"⊂","\\subset",!0),eOt(tOt,rOt,pOt,"⊃","\\supset",!0),eOt(tOt,rOt,pOt,"⊆","\\subseteq",!0),eOt(tOt,rOt,pOt,"⊇","\\supseteq",!0),eOt(tOt,iOt,pOt,"⊈","\\nsubseteq",!0),eOt(tOt,iOt,pOt,"⊉","\\nsupseteq",!0),eOt(tOt,rOt,pOt,"⊨","\\models"),eOt(tOt,rOt,pOt,"←","\\leftarrow",!0),eOt(tOt,rOt,pOt,"≤","\\le"),eOt(tOt,rOt,pOt,"≤","\\leq",!0),eOt(tOt,rOt,pOt,"<","\\lt",!0),eOt(tOt,rOt,pOt,"→","\\rightarrow",!0),eOt(tOt,rOt,pOt,"→","\\to"),eOt(tOt,iOt,pOt,"≱","\\ngeq",!0),eOt(tOt,iOt,pOt,"≰","\\nleq",!0),eOt(tOt,rOt,fOt," ","\\ "),eOt(tOt,rOt,fOt," ","\\space"),eOt(tOt,rOt,fOt," ","\\nobreakspace"),eOt(nOt,rOt,fOt," ","\\ "),eOt(nOt,rOt,fOt," "," "),eOt(nOt,rOt,fOt," ","\\space"),eOt(nOt,rOt,fOt," ","\\nobreakspace"),eOt(tOt,rOt,fOt,"","\\nobreak"),eOt(tOt,rOt,fOt,"","\\allowbreak"),eOt(tOt,rOt,dOt,",",","),eOt(tOt,rOt,dOt,";",";"),eOt(tOt,iOt,aOt,"⊼","\\barwedge",!0),eOt(tOt,iOt,aOt,"⊻","\\veebar",!0),eOt(tOt,rOt,aOt,"⊙","\\odot",!0),eOt(tOt,rOt,aOt,"⊕","\\oplus",!0),eOt(tOt,rOt,aOt,"⊗","\\otimes",!0),eOt(tOt,rOt,gOt,"∂","\\partial",!0),eOt(tOt,rOt,aOt,"⊘","\\oslash",!0),eOt(tOt,iOt,aOt,"⊚","\\circledcirc",!0),eOt(tOt,iOt,aOt,"⊡","\\boxdot",!0),eOt(tOt,rOt,aOt,"△","\\bigtriangleup"),eOt(tOt,rOt,aOt,"▽","\\bigtriangledown"),eOt(tOt,rOt,aOt,"†","\\dagger"),eOt(tOt,rOt,aOt,"⋄","\\diamond"),eOt(tOt,rOt,aOt,"⋆","\\star"),eOt(tOt,rOt,aOt,"◃","\\triangleleft"),eOt(tOt,rOt,aOt,"▹","\\triangleright"),eOt(tOt,rOt,hOt,"{","\\{"),eOt(nOt,rOt,gOt,"{","\\{"),eOt(nOt,rOt,gOt,"{","\\textbraceleft"),eOt(tOt,rOt,sOt,"}","\\}"),eOt(nOt,rOt,gOt,"}","\\}"),eOt(nOt,rOt,gOt,"}","\\textbraceright"),eOt(tOt,rOt,hOt,"{","\\lbrace"),eOt(tOt,rOt,sOt,"}","\\rbrace"),eOt(tOt,rOt,hOt,"[","\\lbrack",!0),eOt(nOt,rOt,gOt,"[","\\lbrack",!0),eOt(tOt,rOt,sOt,"]","\\rbrack",!0),eOt(nOt,rOt,gOt,"]","\\rbrack",!0),eOt(tOt,rOt,hOt,"(","\\lparen",!0),eOt(tOt,rOt,sOt,")","\\rparen",!0),eOt(nOt,rOt,gOt,"<","\\textless",!0),eOt(nOt,rOt,gOt,">","\\textgreater",!0),eOt(tOt,rOt,hOt,"⌊","\\lfloor",!0),eOt(tOt,rOt,sOt,"⌋","\\rfloor",!0),eOt(tOt,rOt,hOt,"⌈","\\lceil",!0),eOt(tOt,rOt,sOt,"⌉","\\rceil",!0),eOt(tOt,rOt,gOt,"\\","\\backslash"),eOt(tOt,rOt,gOt,"∣","|"),eOt(tOt,rOt,gOt,"∣","\\vert"),eOt(nOt,rOt,gOt,"|","\\textbar",!0),eOt(tOt,rOt,gOt,"∥","\\|"),eOt(tOt,rOt,gOt,"∥","\\Vert"),eOt(nOt,rOt,gOt,"∥","\\textbardbl"),eOt(nOt,rOt,gOt,"~","\\textasciitilde"),eOt(nOt,rOt,gOt,"\\","\\textbackslash"),eOt(nOt,rOt,gOt,"^","\\textasciicircum"),eOt(tOt,rOt,pOt,"↑","\\uparrow",!0),eOt(tOt,rOt,pOt,"⇑","\\Uparrow",!0),eOt(tOt,rOt,pOt,"↓","\\downarrow",!0),eOt(tOt,rOt,pOt,"⇓","\\Downarrow",!0),eOt(tOt,rOt,pOt,"↕","\\updownarrow",!0),eOt(tOt,rOt,pOt,"⇕","\\Updownarrow",!0),eOt(tOt,rOt,uOt,"∐","\\coprod"),eOt(tOt,rOt,uOt,"⋁","\\bigvee"),eOt(tOt,rOt,uOt,"⋀","\\bigwedge"),eOt(tOt,rOt,uOt,"⨄","\\biguplus"),eOt(tOt,rOt,uOt,"⋂","\\bigcap"),eOt(tOt,rOt,uOt,"⋃","\\bigcup"),eOt(tOt,rOt,uOt,"∫","\\int"),eOt(tOt,rOt,uOt,"∫","\\intop"),eOt(tOt,rOt,uOt,"∬","\\iint"),eOt(tOt,rOt,uOt,"∭","\\iiint"),eOt(tOt,rOt,uOt,"∏","\\prod"),eOt(tOt,rOt,uOt,"∑","\\sum"),eOt(tOt,rOt,uOt,"⨂","\\bigotimes"),eOt(tOt,rOt,uOt,"⨁","\\bigoplus"),eOt(tOt,rOt,uOt,"⨀","\\bigodot"),eOt(tOt,rOt,uOt,"∮","\\oint"),eOt(tOt,rOt,uOt,"∯","\\oiint"),eOt(tOt,rOt,uOt,"∰","\\oiiint"),eOt(tOt,rOt,uOt,"⨆","\\bigsqcup"),eOt(tOt,rOt,uOt,"∫","\\smallint"),eOt(nOt,rOt,lOt,"…","\\textellipsis"),eOt(tOt,rOt,lOt,"…","\\mathellipsis"),eOt(nOt,rOt,lOt,"…","\\ldots",!0),eOt(tOt,rOt,lOt,"…","\\ldots",!0),eOt(tOt,rOt,lOt,"⋯","\\@cdots",!0),eOt(tOt,rOt,lOt,"⋱","\\ddots",!0),eOt(tOt,rOt,gOt,"⋮","\\varvdots"),eOt(nOt,rOt,gOt,"⋮","\\varvdots"),eOt(tOt,rOt,oOt,"ˊ","\\acute"),eOt(tOt,rOt,oOt,"ˋ","\\grave"),eOt(tOt,rOt,oOt,"¨","\\ddot"),eOt(tOt,rOt,oOt,"~","\\tilde"),eOt(tOt,rOt,oOt,"ˉ","\\bar"),eOt(tOt,rOt,oOt,"˘","\\breve"),eOt(tOt,rOt,oOt,"ˇ","\\check"),eOt(tOt,rOt,oOt,"^","\\hat"),eOt(tOt,rOt,oOt,"⃗","\\vec"),eOt(tOt,rOt,oOt,"˙","\\dot"),eOt(tOt,rOt,oOt,"˚","\\mathring"),eOt(tOt,rOt,cOt,"","\\@imath"),eOt(tOt,rOt,cOt,"","\\@jmath"),eOt(tOt,rOt,gOt,"ı","ı"),eOt(tOt,rOt,gOt,"ȷ","ȷ"),eOt(nOt,rOt,gOt,"ı","\\i",!0),eOt(nOt,rOt,gOt,"ȷ","\\j",!0),eOt(nOt,rOt,gOt,"ß","\\ss",!0),eOt(nOt,rOt,gOt,"æ","\\ae",!0),eOt(nOt,rOt,gOt,"œ","\\oe",!0),eOt(nOt,rOt,gOt,"ø","\\o",!0),eOt(nOt,rOt,gOt,"Æ","\\AE",!0),eOt(nOt,rOt,gOt,"Œ","\\OE",!0),eOt(nOt,rOt,gOt,"Ø","\\O",!0),eOt(nOt,rOt,oOt,"ˊ","\\'"),eOt(nOt,rOt,oOt,"ˋ","\\`"),eOt(nOt,rOt,oOt,"ˆ","\\^"),eOt(nOt,rOt,oOt,"˜","\\~"),eOt(nOt,rOt,oOt,"ˉ","\\="),eOt(nOt,rOt,oOt,"˘","\\u"),eOt(nOt,rOt,oOt,"˙","\\."),eOt(nOt,rOt,oOt,"¸","\\c"),eOt(nOt,rOt,oOt,"˚","\\r"),eOt(nOt,rOt,oOt,"ˇ","\\v"),eOt(nOt,rOt,oOt,"¨",'\\"'),eOt(nOt,rOt,oOt,"˝","\\H"),eOt(nOt,rOt,oOt,"◯","\\textcircled");var mOt={"--":!0,"---":!0,"``":!0,"''":!0};eOt(nOt,rOt,gOt,"–","--",!0),eOt(nOt,rOt,gOt,"–","\\textendash"),eOt(nOt,rOt,gOt,"—","---",!0),eOt(nOt,rOt,gOt,"—","\\textemdash"),eOt(nOt,rOt,gOt,"‘","`",!0),eOt(nOt,rOt,gOt,"‘","\\textquoteleft"),eOt(nOt,rOt,gOt,"’","'",!0),eOt(nOt,rOt,gOt,"’","\\textquoteright"),eOt(nOt,rOt,gOt,"“","``",!0),eOt(nOt,rOt,gOt,"“","\\textquotedblleft"),eOt(nOt,rOt,gOt,"”","''",!0),eOt(nOt,rOt,gOt,"”","\\textquotedblright"),eOt(tOt,rOt,gOt,"°","\\degree",!0),eOt(nOt,rOt,gOt,"°","\\degree"),eOt(nOt,rOt,gOt,"°","\\textdegree",!0),eOt(tOt,rOt,gOt,"£","\\pounds"),eOt(tOt,rOt,gOt,"£","\\mathsterling",!0),eOt(nOt,rOt,gOt,"£","\\pounds"),eOt(nOt,rOt,gOt,"£","\\textsterling",!0),eOt(tOt,iOt,gOt,"✠","\\maltese"),eOt(nOt,iOt,gOt,"✠","\\maltese");for(var OOt='0123456789/@."',AOt=0;AOt<14;AOt++){var yOt=OOt.charAt(AOt);eOt(tOt,rOt,gOt,yOt,yOt)}for(var vOt='0123456789!@*()-=+";:?/.,',bOt=0;bOt<25;bOt++){var xOt=vOt.charAt(bOt);eOt(nOt,rOt,gOt,xOt,xOt)}var wOt,kOt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(bOt=0;bOt<52;bOt++){var SOt=kOt.charAt(bOt);eOt(tOt,rOt,cOt,SOt,SOt),eOt(nOt,rOt,gOt,SOt,SOt)}eOt(tOt,iOt,gOt,"C","ℂ"),eOt(nOt,iOt,gOt,"C","ℂ"),eOt(tOt,iOt,gOt,"H","ℍ"),eOt(nOt,iOt,gOt,"H","ℍ"),eOt(tOt,iOt,gOt,"N","ℕ"),eOt(nOt,iOt,gOt,"N","ℕ"),eOt(tOt,iOt,gOt,"P","ℙ"),eOt(nOt,iOt,gOt,"P","ℙ"),eOt(tOt,iOt,gOt,"Q","ℚ"),eOt(nOt,iOt,gOt,"Q","ℚ"),eOt(tOt,iOt,gOt,"R","ℝ"),eOt(nOt,iOt,gOt,"R","ℝ"),eOt(tOt,iOt,gOt,"Z","ℤ"),eOt(nOt,iOt,gOt,"Z","ℤ"),eOt(tOt,rOt,cOt,"h","ℎ"),eOt(nOt,rOt,cOt,"h","ℎ");for(var TOt=0;TOt<52;TOt++){var $Ot=kOt.charAt(TOt);eOt(tOt,rOt,cOt,$Ot,wOt=String.fromCharCode(55349,56320+TOt)),eOt(nOt,rOt,gOt,$Ot,wOt),eOt(tOt,rOt,cOt,$Ot,wOt=String.fromCharCode(55349,56372+TOt)),eOt(nOt,rOt,gOt,$Ot,wOt),eOt(tOt,rOt,cOt,$Ot,wOt=String.fromCharCode(55349,56424+TOt)),eOt(nOt,rOt,gOt,$Ot,wOt),eOt(tOt,rOt,cOt,$Ot,wOt=String.fromCharCode(55349,56580+TOt)),eOt(nOt,rOt,gOt,$Ot,wOt),eOt(tOt,rOt,cOt,$Ot,wOt=String.fromCharCode(55349,56684+TOt)),eOt(nOt,rOt,gOt,$Ot,wOt),eOt(tOt,rOt,cOt,$Ot,wOt=String.fromCharCode(55349,56736+TOt)),eOt(nOt,rOt,gOt,$Ot,wOt),eOt(tOt,rOt,cOt,$Ot,wOt=String.fromCharCode(55349,56788+TOt)),eOt(nOt,rOt,gOt,$Ot,wOt),eOt(tOt,rOt,cOt,$Ot,wOt=String.fromCharCode(55349,56840+TOt)),eOt(nOt,rOt,gOt,$Ot,wOt),eOt(tOt,rOt,cOt,$Ot,wOt=String.fromCharCode(55349,56944+TOt)),eOt(nOt,rOt,gOt,$Ot,wOt),TOt<26&&(eOt(tOt,rOt,cOt,$Ot,wOt=String.fromCharCode(55349,56632+TOt)),eOt(nOt,rOt,gOt,$Ot,wOt),eOt(tOt,rOt,cOt,$Ot,wOt=String.fromCharCode(55349,56476+TOt)),eOt(nOt,rOt,gOt,$Ot,wOt))}eOt(tOt,rOt,cOt,"k",wOt=String.fromCharCode(55349,56668)),eOt(nOt,rOt,gOt,"k",wOt);for(var _Ot=0;_Ot<10;_Ot++){var COt=_Ot.toString();eOt(tOt,rOt,cOt,COt,wOt=String.fromCharCode(55349,57294+_Ot)),eOt(nOt,rOt,gOt,COt,wOt),eOt(tOt,rOt,cOt,COt,wOt=String.fromCharCode(55349,57314+_Ot)),eOt(nOt,rOt,gOt,COt,wOt),eOt(tOt,rOt,cOt,COt,wOt=String.fromCharCode(55349,57324+_Ot)),eOt(nOt,rOt,gOt,COt,wOt),eOt(tOt,rOt,cOt,COt,wOt=String.fromCharCode(55349,57334+_Ot)),eOt(nOt,rOt,gOt,COt,wOt)}for(var QOt="ÐÞþ",POt=0;POt<3;POt++){var EOt=QOt.charAt(POt);eOt(tOt,rOt,cOt,EOt,EOt),eOt(nOt,rOt,gOt,EOt,EOt)}var ROt={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},BOt={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},IOt={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},LOt={mathClass:"",textClass:"",font:""},DOt={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},MOt={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},NOt={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},XOt={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},FOt={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},UOt={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},zOt={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},qOt=[ROt,ROt,BOt,BOt,IOt,IOt,{mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},LOt,LOt,LOt,DOt,DOt,MOt,MOt,NOt,NOt,XOt,XOt,FOt,FOt,UOt,UOt,LOt,LOt,zOt,zOt],VOt=[ROt,LOt,XOt,FOt,zOt],WOt=function(e,t,n){if(Jmt[n][e]){var r=Jmt[n][e].replace;r&&(e=r)}return{value:e,metrics:Hmt(e,t,n)}},jOt=function(e,t,n,r,i){var o,a=WOt(e,t,n),s=a.metrics;if(e=a.value,s){var l=s.italic;("text"===n||r&&"mathit"===r.font)&&(l=0),o=new zmt(e,s.height,s.depth,l,s.skew,s.width,i)}else o=new zmt(e,0,0,0,0,0,i);if(r){o.maxFontSize=r.sizeMultiplier,r.style.isTight()&&o.classes.push("mtight");var c=r.getColor();c&&(o.style.color=c)}return o},YOt=function(e,t,n,r){return void 0===r&&(r=[]),"boldsymbol"===n.font&&WOt(e,"Main-Bold",t).metrics?jOt(e,"Main-Bold",t,n,r.concat(["mathbf"])):"\\"===e||"main"===Jmt[t][e].font?jOt(e,"Main-Regular",t,n,r):jOt(e,"AMS-Regular",t,n,r.concat(["amsrm"]))},ZOt=function(e,t,n){var r=e.mode,i=e.text,o=["mord"],{font:a,fontFamily:s,fontWeight:l,fontShape:c}=t,u="math"===r||"text"===r&&!!a,h=u?a:s,d="",p="";if(55349===i.charCodeAt(0)){var f=(e=>{var t=1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536;if(119808<=t&&t<120484){var n=Math.floor((t-119808)/26);return qOt[n]}if(120782<=t&&t<=120831){var r=Math.floor((t-120782)/10);return VOt[r]}if(120485===t||120486===t)return qOt[0];if(120486<t&&t<120782)return LOt;throw new Jgt("Unsupported character: "+e)})(i);d=f.font,p=f[r+"Class"]}if(d)return jOt(i,d,r,t,o.concat(p));if(h){var g,m;if("boldsymbol"===h){var O=function(e,t,n){return"textord"!==n&&WOt(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}}(i,r,n);g=O.fontName,m=[O.fontClass]}else u?(g=sAt[a].fontName,m=[a]):(g=aAt(s,l,c),m=[s,l,c]);if(WOt(i,g,r).metrics)return jOt(i,g,r,t,o.concat(m));if(mOt.hasOwnProperty(i)&&"Typewriter"===g.slice(0,10)){for(var A=[],y=0;y<i.length;y++)A.push(jOt(i[y],g,r,t,o.concat(m)));return nAt(A)}}if("mathord"===n)return jOt(i,"Math-Italic",r,t,o.concat(["mathnormal"]));if("textord"===n){var v=Jmt[r][i]&&Jmt[r][i].font;if("ams"===v){var b=aAt("amsrm",l,c);return jOt(i,b,r,t,o.concat("amsrm",l,c))}if("main"!==v&&v){var x=aAt(v,l,c);return jOt(i,x,r,t,o.concat(x,l,c))}var w=aAt("textrm",l,c);return jOt(i,w,r,t,o.concat(l,c))}throw new Error("unexpected type: "+n+" in makeOrd")},GOt=(e,t)=>{if(Rmt(e.classes)!==Rmt(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||0!==e.italic&&e.hasClass("mathnormal"))return!1;if(1===e.classes.length){var n=e.classes[0];if("mbin"===n||"mord"===n)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},HOt=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof zmt&&r instanceof zmt&&GOt(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},KOt=function(e){for(var t=0,n=0,r=0,i=0;i<e.children.length;i++){var o=e.children[i];o.height>t&&(t=o.height),o.depth>n&&(n=o.depth),o.maxFontSize>r&&(r=o.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},JOt=function(e,t,n,r){var i=new Nmt(e,t,n,r);return KOt(i),i},eAt=(e,t,n,r)=>new Nmt(e,t,n,r),tAt=function(e,t,n){var r=JOt([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=Emt(r.height),r.maxFontSize=1,r},nAt=function(e){var t=new $mt(e);return KOt(t),t},rAt=function(e,t){return e instanceof $mt?JOt([],[e],t):e},iAt=function(e,t){for(var{children:n,depth:r}=function(e){if("individualShift"===e.positionType){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,o=1;o<t.length;o++){var a=-t[o].shift-i-t[o].elem.depth,s=a-(t[o-1].elem.height+t[o-1].elem.depth);i+=a,n.push({type:"kern",size:s}),n.push(t[o])}return{children:n,depth:r}}var l;if("top"===e.positionType){for(var c=e.positionData,u=0;u<e.children.length;u++){var h=e.children[u];c-="kern"===h.type?h.size:h.elem.height+h.elem.depth}l=c}else if("bottom"===e.positionType)l=-e.positionData;else{var d=e.children[0];if("elem"!==d.type)throw new Error('First child must have type "elem".');if("shift"===e.positionType)l=-d.elem.depth-e.positionData;else{if("firstBaseline"!==e.positionType)throw new Error("Invalid positionType "+e.positionType+".");l=-d.elem.depth}}return{children:e.children,depth:l}}(e),i=0,o=0;o<n.length;o++){var a=n[o];if("elem"===a.type){var s=a.elem;i=Math.max(i,s.maxFontSize,s.height)}}i+=2;var l=JOt(["pstrut"],[]);l.style.height=Emt(i);for(var c=[],u=r,h=r,d=r,p=0;p<n.length;p++){var f=n[p];if("kern"===f.type)d+=f.size;else{var g=f.elem,m=f.wrapperClasses||[],O=f.wrapperStyle||{},A=JOt(m,[l,g],void 0,O);A.style.top=Emt(-i-d-g.depth),f.marginLeft&&(A.style.marginLeft=f.marginLeft),f.marginRight&&(A.style.marginRight=f.marginRight),c.push(A),d+=g.height+g.depth}u=Math.min(u,d),h=Math.max(h,d)}var y,v=JOt(["vlist"],c);if(v.style.height=Emt(h),u<0){var b=JOt([],[]),x=JOt(["vlist"],[b]);x.style.height=Emt(-u);var w=JOt(["vlist-s"],[new zmt("")]);y=[JOt(["vlist-r"],[v,w]),JOt(["vlist-r"],[x])]}else y=[JOt(["vlist-r"],[v])];var k=JOt(["vlist-t"],y);return 2===y.length&&k.classes.push("vlist-t2"),k.height=h,k.depth=-u,k},oAt=(e,t)=>{var n=JOt(["mspace"],[],t),r=Pmt(e,t);return n.style.marginRight=Emt(r),n},aAt=(e,t,n)=>{var r;switch(e){case"amsrm":r="AMS";break;case"textrm":r="Main";break;case"textsf":r="SansSerif";break;case"texttt":r="Typewriter";break;default:r=e}return r+"-"+("textbf"===t&&"textit"===n?"BoldItalic":"textbf"===t?"Bold":"textit"===n?"Italic":"Regular")},sAt={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},lAt={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},cAt=function(e,t){var[n,r,i]=lAt[e],o=new Vmt(n),a=new qmt([o],{width:Emt(r),height:Emt(i),style:"width:"+Emt(r),viewBox:"0 0 "+1e3*r+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),s=eAt(["overlay"],[a],t);return s.height=i,s.style.height=Emt(i),s.style.width=Emt(r),s},uAt={number:3,unit:"mu"},hAt={number:4,unit:"mu"},dAt={number:5,unit:"mu"},pAt={mord:{mop:uAt,mbin:hAt,mrel:dAt,minner:uAt},mop:{mord:uAt,mop:uAt,mrel:dAt,minner:uAt},mbin:{mord:hAt,mop:hAt,mopen:hAt,minner:hAt},mrel:{mord:dAt,mop:dAt,mopen:dAt,minner:dAt},mopen:{},mclose:{mop:uAt,mbin:hAt,mrel:dAt,minner:uAt},mpunct:{mord:uAt,mop:uAt,mrel:dAt,mopen:uAt,mclose:uAt,mpunct:uAt,minner:uAt},minner:{mord:uAt,mop:uAt,mbin:hAt,mrel:dAt,mopen:uAt,mpunct:uAt,minner:uAt}},fAt={mord:{mop:uAt},mop:{mord:uAt,mop:uAt},mbin:{},mrel:{},mopen:{},mclose:{mop:uAt},mpunct:{},minner:{mop:uAt}},gAt={},mAt={},OAt={};function AAt(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:o,mathmlBuilder:a}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:void 0===r.allowedInMath||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},l=0;l<n.length;++l)gAt[n[l]]=s;t&&(o&&(mAt[t]=o),a&&(OAt[t]=a))}function yAt(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;AAt({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:r})}var vAt=function(e){return"ordgroup"===e.type&&1===e.body.length?e.body[0]:e},bAt=function(e){return"ordgroup"===e.type?e.body:[e]},xAt=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),wAt=new Set(["rightmost","mrel","mclose","mpunct"]),kAt={display:vmt.DISPLAY,text:vmt.TEXT,script:vmt.SCRIPT,scriptscript:vmt.SCRIPTSCRIPT},SAt={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},TAt=function(e,t,n,r){void 0===r&&(r=[null,null]);for(var i=[],o=0;o<e.length;o++){var a=EAt(e[o],t);if(a instanceof $mt){var s=a.children;i.push(...s)}else i.push(a)}if(HOt(i),!n)return i;var l=t;if(1===e.length){var c=e[0];"sizing"===c.type?l=t.havingSize(c.size):"styling"===c.type&&(l=t.havingStyle(kAt[c.style]))}var u=JOt([r[0]||"leftmost"],[],t),h=JOt([r[1]||"rightmost"],[],t),d="root"===n;return $At(i,(e,t)=>{var n=t.classes[0],r=e.classes[0];"mbin"===n&&wAt.has(r)?t.classes[0]="mord":"mbin"===r&&xAt.has(n)&&(e.classes[0]="mord")},{node:u},h,d),$At(i,(e,t)=>{var n,r,i=QAt(t),o=QAt(e),a=i&&o?e.hasClass("mtight")?null==(n=fAt[i])?void 0:n[o]:null==(r=pAt[i])?void 0:r[o]:null;if(a)return oAt(a,l)},{node:u},h,d),i},$At=function(e,t,n,r,i){r&&e.push(r);for(var o=0;o<e.length;o++){var a=e[o],s=_At(a);if(s)$At(s.children,t,n,null,i);else{var l=!a.hasClass("mspace");if(l){var c=t(a,n.node);c&&(n.insertAfter?n.insertAfter(c):(e.unshift(c),o++))}l?n.node=a:i&&a.hasClass("newline")&&(n.node=JOt(["leftmost"])),n.insertAfter=(t=>n=>{e.splice(t+1,0,n),o++})(o)}}r&&e.pop()},_At=function(e){return e instanceof $mt||e instanceof Xmt||e instanceof Nmt&&e.hasClass("enclosing")?e:null},CAt=function(e,t){var n=_At(e);if(n){var r=n.children;if(r.length){if("right"===t)return CAt(r[r.length-1],"right");if("left"===t)return CAt(r[0],"left")}}return e},QAt=function(e,t){if(!e)return null;t&&(e=CAt(e,t));var n=e.classes[0];return SAt[n]||null},PAt=function(e,t){var n=["nulldelimiter"].concat(e.baseSizingClasses());return JOt(t.concat(n))},EAt=function(e,t,n){if(!e)return JOt();if(mAt[e.type]){var r=mAt[e.type](e,t);if(n&&t.size!==n.size){r=JOt(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}throw new Jgt("Got group of unknown type: '"+e.type+"'")};function RAt(e,t){var n=JOt(["base"],e,t),r=JOt(["strut"]);return r.style.height=Emt(n.height+n.depth),n.depth&&(r.style.verticalAlign=Emt(-n.depth)),n.children.unshift(r),n}function BAt(e,t){var n=null;1===e.length&&"tag"===e[0].type&&(n=e[0].tag,e=e[0].body);var r,i=TAt(e,t,"root");2===i.length&&i[1].hasClass("tag")&&(r=i.pop());for(var o,a=[],s=[],l=0;l<i.length;l++)if(s.push(i[l]),i[l].hasClass("mbin")||i[l].hasClass("mrel")||i[l].hasClass("allowbreak")){for(var c=!1;l<i.length-1&&i[l+1].hasClass("mspace")&&!i[l+1].hasClass("newline");)l++,s.push(i[l]),i[l].hasClass("nobreak")&&(c=!0);c||(a.push(RAt(s,t)),s=[])}else i[l].hasClass("newline")&&(s.pop(),s.length>0&&(a.push(RAt(s,t)),s=[]),a.push(i[l]));s.length>0&&a.push(RAt(s,t)),n?((o=RAt(TAt(n,t,!0),t)).classes=["tag"],a.push(o)):r&&a.push(r);var u=JOt(["katex-html"],a);if(u.setAttribute("aria-hidden","true"),o){var h=o.children[0];h.style.height=Emt(u.height+u.depth),u.depth&&(h.style.verticalAlign=Emt(-u.depth))}return u}function IAt(e){return new $mt(e)}class LAt{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=Rmt(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof DAt&&this.children[n+1]instanceof DAt){for(var r=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof DAt;)r+=this.children[++n].toText();e.appendChild(new DAt(r).toNode())}else e.appendChild(this.children[n].toNode());return e}toMarkup(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=imt(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+imt(Rmt(this.classes))+'"'),e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</"+this.type+">"}toText(){return this.children.map(e=>e.toText()).join("")}}class DAt{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return imt(this.toText())}toText(){return this.text}}class MAt{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?" ":e>=.1666&&e<=.1667?" ":e>=.2222&&e<=.2223?" ":e>=.2777&&e<=.2778?" ":e>=-.05556&&e<=-.05555?" ":e>=-.1667&&e<=-.1666?" ":e>=-.2223&&e<=-.2222?" ":e>=-.2778&&e<=-.2777?" ":null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",Emt(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Emt(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var NAt=new Set(["\\imath","\\jmath"]),XAt=new Set(["mrow","mtable"]),FAt=function(e,t,n){return!Jmt[t][e]||!Jmt[t][e].replace||55349===e.charCodeAt(0)||mOt.hasOwnProperty(e)&&n&&(n.fontFamily&&"tt"===n.fontFamily.slice(4,6)||n.font&&"tt"===n.font.slice(4,6))||(e=Jmt[t][e].replace),new DAt(e)},UAt=function(e){return 1===e.length?e[0]:new LAt("mrow",e)},zAt={mathit:"italic",boldsymbol:e=>"textord"===e.type?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},qAt=(e,t)=>{if("text"===e.mode){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold"}var n=t.font;if(!n||"mathnormal"===n)return null;var r=e.mode,i=zAt[n];if(i)return"function"==typeof i?i(e):i;var o=e.text;if(NAt.has(o))return null;if(Jmt[r][o]){var a=Jmt[r][o].replace;a&&(o=a)}return Hmt(o,sAt[n].fontName,r)?sAt[n].variant:null};function VAt(e){if(!e)return!1;if("mi"===e.type&&1===e.children.length){var t=e.children[0];return t instanceof DAt&&"."===t.text}if("mo"===e.type&&1===e.children.length&&"true"===e.getAttribute("separator")&&"0em"===e.getAttribute("lspace")&&"0em"===e.getAttribute("rspace")){var n=e.children[0];return n instanceof DAt&&","===n.text}return!1}var WAt=function(e,t,n){if(1===e.length){var r=YAt(e[0],t);return n&&r instanceof LAt&&"mo"===r.type&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r]}for(var i,o=[],a=0;a<e.length;a++){var s=YAt(e[a],t);if(s instanceof LAt&&i instanceof LAt){if("mtext"===s.type&&"mtext"===i.type&&s.getAttribute("mathvariant")===i.getAttribute("mathvariant")){i.children.push(...s.children);continue}if("mn"===s.type&&"mn"===i.type){i.children.push(...s.children);continue}if(VAt(s)&&"mn"===i.type){i.children.push(...s.children);continue}if("mn"===s.type&&VAt(i))s.children=[...i.children,...s.children],o.pop();else if(("msup"===s.type||"msub"===s.type)&&s.children.length>=1&&("mn"===i.type||VAt(i))){var l=s.children[0];l instanceof LAt&&"mn"===l.type&&(l.children=[...i.children,...l.children],o.pop())}else if("mi"===i.type&&1===i.children.length){var c=i.children[0];if(c instanceof DAt&&"̸"===c.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){var u=s.children[0];u instanceof DAt&&u.text.length>0&&(u.text=u.text.slice(0,1)+"̸"+u.text.slice(1),o.pop())}}}o.push(s),i=s}return o},jAt=function(e,t,n){return UAt(WAt(e,t,n))},YAt=function(e,t){if(!e)return new LAt("mrow");if(OAt[e.type])return OAt[e.type](e,t);throw new Jgt("Got group of unknown type: '"+e.type+"'")};function ZAt(e,t,n,r,i){var o,a=WAt(e,n);o=1===a.length&&a[0]instanceof LAt&&XAt.has(a[0].type)?a[0]:new LAt("mrow",a);var s=new LAt("annotation",[new DAt(t)]);s.setAttribute("encoding","application/x-tex");var l=new LAt("semantics",[o,s]),c=new LAt("math",[l]);return c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&c.setAttribute("display","block"),JOt([i?"katex":"katex-mathml"],[c])}var GAt=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],HAt=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],KAt=function(e,t){return t.size<2?e:GAt[e-1][t.size-1]};class JAt{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||JAt.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=HAt[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(t,e),new JAt(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:KAt(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:HAt[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=KAt(JAt.BASESIZE,e);return this.size===t&&this.textSize===JAt.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==JAt.BASESIZE?["sizing","reset-size"+this.size,"size"+JAt.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!Kmt[t=e>=5?0:e>=3?1:2]){var n=Kmt[t]={cssEmPerMu:Ymt.quad[t]/18};for(var r in Ymt)Ymt.hasOwnProperty(r)&&(n[r]=Ymt[r][t])}return Kmt[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}JAt.BASESIZE=6;var eyt=function(e){return new JAt({style:e.displayMode?vmt.DISPLAY:vmt.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},tyt=function(e,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=JOt(n,[e])}return e},nyt={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},ryt=function(e){var t=new LAt("mo",[new DAt(nyt[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},iyt={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},oyt=new Set(["widehat","widecheck","widetilde","utilde"]),ayt=function(e,t){var{span:n,minWidth:r,height:i}=function(){var n=4e5,r=e.label.slice(1);if(oyt.has(r)&&"base"in e){var i,o,a,s="ordgroup"===e.base.type?e.base.body.length:1;if(s>5)"widehat"===r||"widecheck"===r?(i=420,n=2364,a=.42,o=r+"4"):(i=312,n=2340,a=.34,o="tilde4");else{var l=[1,1,2,2,3,3][s];"widehat"===r||"widecheck"===r?(n=[0,1062,2364,2364,2364][l],i=[0,239,300,360,420][l],a=[0,.24,.3,.3,.36,.42][l],o=r+l):(n=[0,600,1033,2339,2340][l],i=[0,260,286,306,312][l],a=[0,.26,.286,.3,.306,.34][l],o="tilde"+l)}var c=new Vmt(o),u=new qmt([c],{width:"100%",height:Emt(a),viewBox:"0 0 "+n+" "+i,preserveAspectRatio:"none"});return{span:eAt([],[u],t),minWidth:0,height:a}}var h=[],d=iyt[r];if(!d)throw new Error('No SVG data for "'+r+'".');var p,f,[g,m,O]=d,A=O/1e3,y=g.length;if(1===y){if(4!==d.length)throw new Error('Expected 4-tuple for single-path SVG data "'+r+'".');p=["hide-tail"],f=[d[3]]}else if(2===y)p=["halfarrow-left","halfarrow-right"],f=["xMinYMin","xMaxYMin"];else{if(3!==y)throw new Error("Correct katexImagesData or update code here to support\n "+y+" children.");p=["brace-left","brace-center","brace-right"],f=["xMinYMin","xMidYMin","xMaxYMin"]}for(var v=0;v<y;v++){var b=new Vmt(g[v]),x=new qmt([b],{width:"400em",height:Emt(A),viewBox:"0 0 "+n+" "+O,preserveAspectRatio:f[v]+" slice"}),w=eAt([p[v]],[x],t);if(1===y)return{span:w,minWidth:m,height:A};w.style.height=Emt(A),h.push(w)}return{span:JOt(["stretchy"],h,t),minWidth:m,height:A}}();return n.height=i,n.style.height=Emt(i),r>0&&(n.style.minWidth=Emt(r)),n},syt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},lyt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function cyt(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function uyt(e){var t=hyt(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function hyt(e){return e&&("atom"===e.type||lyt.hasOwnProperty(e.type))?e:null}var dyt=e=>{return e instanceof zmt?e:((t=e)instanceof Nmt||t instanceof Xmt||t instanceof $mt)&&1===e.children.length?dyt(e.children[0]):void 0;var t},pyt=(e,t)=>{var n,r,i;e&&"supsub"===e.type?(n=(r=cyt(e.base,"accent")).base,e.base=n,i=function(e){if(e instanceof Nmt)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}(EAt(e,t)),e.base=r):n=(r=cyt(e,"accent")).base;var o,a,s=EAt(n,t.havingCrampedStyle()),l=0;r.isShifty&&smt(n)&&(l=null!=(o=null==(a=dyt(s))?void 0:a.skew)?o:0);var c,u="\\c"===r.label,h=u?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight);if(r.isStretchy)c=ayt(r,t),c=iAt({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:c,wrapperClasses:["svg-align"],wrapperStyle:l>0?{width:"calc(100% - "+Emt(2*l)+")",marginLeft:Emt(2*l)}:void 0}]});else{var d,p;"\\vec"===r.label?(d=cAt("vec",t),p=lAt.vec[1]):(d=function(e){if(e instanceof zmt)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}(d=ZOt({mode:r.mode,text:r.label},t,"textord")),d.italic=0,p=d.width,u&&(h+=d.depth)),c=JOt(["accent-body"],[d]);var f="\\textcircled"===r.label;f&&(c.classes.push("accent-full"),h=s.height);var g=l;f||(g-=p/2),c.style.left=Emt(g),"\\textcircled"===r.label&&(c.style.top=".2em"),c=iAt({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-h},{type:"elem",elem:c}]})}var m=JOt(["mord","accent"],[c],t);return i?(i.children[0]=m,i.height=Math.max(m.height,i.height),i.classes[0]="mord",i):m},fyt=(e,t)=>{var n=e.isStretchy?ryt(e.label):new LAt("mo",[FAt(e.label,e.mode)]),r=new LAt("mover",[YAt(e.base,t),n]);return r.setAttribute("accent","true"),r},gyt=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));AAt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=vAt(t[0]),r=!gyt.test(e.funcName),i=!r||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:pyt,mathmlBuilder:fyt}),AAt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return"math"===r&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:pyt,mathmlBuilder:fyt}),AAt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=EAt(e.base,t),r=ayt(e,t),i="\\utilde"===e.label?.12:0,o=iAt({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]});return JOt(["mord","accentunder"],[o],t)},mathmlBuilder:(e,t)=>{var n=ryt(e.label),r=new LAt("munder",[YAt(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var myt=e=>{var t=new LAt("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};function Oyt(e,t){var n=TAt(e.body,t,!0);return JOt([e.mclass],n,t)}function Ayt(e,t){var n,r=WAt(e.body,t);return"minner"===e.mclass?n=new LAt("mpadded",r):"mord"===e.mclass?e.isCharacterBox?(n=r[0]).type="mi":n=new LAt("mi",r):(e.isCharacterBox?(n=r[0]).type="mo":n=new LAt("mo",r),"mbin"===e.mclass?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):"mpunct"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0em"):"minner"===e.mclass&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}AAt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n,r=t.style,i=t.havingStyle(r.sup()),o=rAt(EAt(e.body,i,t),t),a="\\x"===e.label.slice(0,2)?"x":"cd";o.classes.push(a+"-arrow-pad"),e.below&&(i=t.havingStyle(r.sub()),(n=rAt(EAt(e.below,i,t),t)).classes.push(a+"-arrow-pad"));var s,l=ayt(e,t),c=-t.fontMetrics().axisHeight+.5*l.height,u=-t.fontMetrics().axisHeight-.5*l.height-.111;if((o.depth>.25||"\\xleftequilibrium"===e.label)&&(u-=o.depth),n){var h=-t.fontMetrics().axisHeight+n.height+.5*l.height+.111;s=iAt({positionType:"individualShift",children:[{type:"elem",elem:o,shift:u},{type:"elem",elem:l,shift:c,wrapperClasses:["svg-align"]},{type:"elem",elem:n,shift:h}]})}else s=iAt({positionType:"individualShift",children:[{type:"elem",elem:o,shift:u},{type:"elem",elem:l,shift:c,wrapperClasses:["svg-align"]}]});return JOt(["mrel","x-arrow"],[s],t)},mathmlBuilder(e,t){var n,r=ryt(e.label);if(r.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var i=myt(YAt(e.body,t));if(e.below){var o=myt(YAt(e.below,t));n=new LAt("munderover",[r,o,i])}else n=new LAt("mover",[r,i])}else if(e.below){var a=myt(YAt(e.below,t));n=new LAt("munder",[r,a])}else n=myt(),n=new LAt("mover",[r,n]);return n}}),AAt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:bAt(i),isCharacterBox:smt(i)}},htmlBuilder:Oyt,mathmlBuilder:Ayt});var yyt=e=>{var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};AAt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:yyt(t[0]),body:bAt(t[1]),isCharacterBox:smt(t[1])}}}),AAt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var n,{parser:r,funcName:i}=e,o=t[1],a=t[0];n="\\stackrel"!==i?yyt(o):"mrel";var s={type:"op",mode:o.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==i,body:bAt(o)},l={type:"supsub",mode:a.mode,base:s,sup:"\\underset"===i?null:a,sub:"\\underset"===i?a:null};return{type:"mclass",mode:r.mode,mclass:n,body:[l],isCharacterBox:smt(l)}},htmlBuilder:Oyt,mathmlBuilder:Ayt}),AAt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:yyt(t[0]),body:bAt(t[0])}},htmlBuilder(e,t){var n=TAt(e.body,t,!0),r=JOt([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=WAt(e.body,t),r=new LAt("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var vyt={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},byt=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),xyt=e=>"textord"===e.type&&"@"===e.text,wyt=(e,t)=>("mathord"===e.type||"atom"===e.type)&&e.text===t;function kyt(e,t,n){var r=vyt[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var i={type:"atom",text:r,mode:"math",family:"rel"},o={type:"ordgroup",mode:"math",body:[n.callFunction("\\\\cdleft",[t[0]],[]),n.callFunction("\\Big",[i],[]),n.callFunction("\\\\cdright",[t[1]],[])]};return n.callFunction("\\\\cdparent",[o],[]);case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return n.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}AAt({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=rAt(EAt(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=Emt(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new LAt("mrow",[YAt(e.label,t)]);return(n=new LAt("mpadded",[n])).setAttribute("width","0"),"left"===e.side&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),(n=new LAt("mstyle",[n])).setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}}),AAt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=rAt(EAt(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder:(e,t)=>new LAt("mrow",[YAt(e.fragment,t)])}),AAt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=cyt(t[0],"ordgroup").body,i="",o=0;o<r.length;o++){i+=cyt(r[o],"textord").text}var a,s=parseInt(i);if(isNaN(s))throw new Jgt("\\@char has non-numeric argument "+i);if(s<0||s>=1114111)throw new Jgt("\\@char with invalid code point "+i);return s<=65535?a=String.fromCharCode(s):(s-=65536,a=String.fromCharCode(55296+(s>>10),56320+(1023&s))),{type:"textord",mode:n.mode,text:a}}});var Syt=(e,t)=>{var n=TAt(e.body,t.withColor(e.color),!1);return nAt(n)},Tyt=(e,t)=>{var n=WAt(e.body,t.withColor(e.color)),r=new LAt("mstyle",n);return r.setAttribute("mathcolor",e.color),r};AAt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=cyt(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:bAt(i)}},htmlBuilder:Syt,mathmlBuilder:Tyt}),AAt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=cyt(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var o=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:o}},htmlBuilder:Syt,mathmlBuilder:Tyt}),AAt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i="["===r.gullet.future().text?r.parseSizeGroup(!0):null,o=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:o,size:i&&cyt(i,"size").value}},htmlBuilder(e,t){var n=JOt(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=Emt(Pmt(e.size,t)))),n},mathmlBuilder(e,t){var n=new LAt("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",Emt(Pmt(e.size,t)))),n}});var $yt={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},_yt=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Jgt("Expected a control sequence",e);return t},Cyt=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);null==i&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};AAt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if($yt[r.text])return"\\global"!==n&&"\\\\globallong"!==n||(r.text=$yt[r.text]),cyt(t.parseFunction(),"internal");throw new Jgt("Invalid token after macro prefix",r)}}),AAt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new Jgt("Expected a control sequence",r);for(var o,a=0,s=[[]];"{"!==t.gullet.future().text;)if("#"===(r=t.gullet.popToken()).text){if("{"===t.gullet.future().text){o=t.gullet.future(),s[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new Jgt('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new Jgt('Argument number "'+r.text+'" out of order');a++,s.push([])}else{if("EOF"===r.text)throw new Jgt("Expected a macro definition");s[a].push(r.text)}var{tokens:l}=t.gullet.consumeArg();return o&&l.unshift(o),"\\edef"!==n&&"\\xdef"!==n||(l=t.gullet.expandTokens(l)).reverse(),t.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:s},n===$yt[n]),{type:"internal",mode:t.mode}}}),AAt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=_yt(t.gullet.popToken());t.gullet.consumeSpaces();var i=(e=>{var t=e.gullet.popToken();return"="===t.text&&" "===(t=e.gullet.popToken()).text&&(t=e.gullet.popToken()),t})(t);return Cyt(t,r,i,"\\\\globallet"===n),{type:"internal",mode:t.mode}}}),AAt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=_yt(t.gullet.popToken()),i=t.gullet.popToken(),o=t.gullet.popToken();return Cyt(t,r,o,"\\\\globalfuture"===n),t.gullet.pushToken(o),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var Qyt=function(e,t,n){var r=Hmt(Jmt.math[e]&&Jmt.math[e].replace||e,t,n);if(!r)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return r},Pyt=function(e,t,n,r){var i=n.havingBaseStyle(t),o=JOt(r.concat(i.sizingClasses(n)),[e],n),a=i.sizeMultiplier/n.sizeMultiplier;return o.height*=a,o.depth*=a,o.maxFontSize=i.sizeMultiplier,o},Eyt=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=Emt(i),e.height-=i,e.depth+=i},Ryt=function(e,t,n,r,i,o){var a=function(e,t,n,r){return jOt(e,"Size"+t+"-Regular",n,r)}(e,t,i,r),s=Pyt(JOt(["delimsizing","size"+t],[a],r),vmt.TEXT,r,o);return n&&Eyt(s,r,vmt.TEXT),s},Byt=function(e,t,n){return{type:"elem",elem:JOt(["delimsizinginner","Size1-Regular"===t?"delim-size1":"delim-size4"],[JOt([],[jOt(e,t,n)])])}},Iyt=function(e,t,n){var r=jmt["Size4-Regular"][e.charCodeAt(0)]?jmt["Size4-Regular"][e.charCodeAt(0)][4]:jmt["Size1-Regular"][e.charCodeAt(0)][4],i=new Vmt("inner",function(e,t){switch(e){case"⎜":return kmt("M291 0 H417 V"+t+" H291z");case"∣":return kmt("M145 0 H188 V"+t+" H145z");case"∥":return kmt("M145 0 H188 V"+t+" H145z")+kmt("M367 0 H410 V"+t+" H367z");case"⎟":return kmt("M457 0 H583 V"+t+" H457z");case"⎢":return kmt("M319 0 H403 V"+t+" H319z");case"⎥":return kmt("M263 0 H347 V"+t+" H263z");case"⎪":return kmt("M384 0 H504 V"+t+" H384z");case"⏐":return kmt("M312 0 H355 V"+t+" H312z");case"‖":return kmt("M257 0 H300 V"+t+" H257z")+kmt("M478 0 H521 V"+t+" H478z");default:return""}}(e,Math.round(1e3*t))),o=new qmt([i],{width:Emt(r),height:Emt(t),style:"width:"+Emt(r),viewBox:"0 0 "+1e3*r+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),a=eAt([],[o],n);return a.height=t,a.style.height=Emt(t),a.style.width=Emt(r),{type:"elem",elem:a}},Lyt={type:"kern",size:-.008},Dyt=new Set(["|","\\lvert","\\rvert","\\vert"]),Myt=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Nyt=function(e,t,n,r,i,o){var a,s,l,c,u="",h=0;a=l=c=e,s=null;var d="Size1-Regular";"\\uparrow"===e?l=c="⏐":"\\Uparrow"===e?l=c="‖":"\\downarrow"===e?a=l="⏐":"\\Downarrow"===e?a=l="‖":"\\updownarrow"===e?(a="\\uparrow",l="⏐",c="\\downarrow"):"\\Updownarrow"===e?(a="\\Uparrow",l="‖",c="\\Downarrow"):Dyt.has(e)?(l="∣",u="vert",h=333):Myt.has(e)?(l="∥",u="doublevert",h=556):"["===e||"\\lbrack"===e?(a="⎡",l="⎢",c="⎣",d="Size4-Regular",u="lbrack",h=667):"]"===e||"\\rbrack"===e?(a="⎤",l="⎥",c="⎦",d="Size4-Regular",u="rbrack",h=667):"\\lfloor"===e||"⌊"===e?(l=a="⎢",c="⎣",d="Size4-Regular",u="lfloor",h=667):"\\lceil"===e||"⌈"===e?(a="⎡",l=c="⎢",d="Size4-Regular",u="lceil",h=667):"\\rfloor"===e||"⌋"===e?(l=a="⎥",c="⎦",d="Size4-Regular",u="rfloor",h=667):"\\rceil"===e||"⌉"===e?(a="⎤",l=c="⎥",d="Size4-Regular",u="rceil",h=667):"("===e||"\\lparen"===e?(a="⎛",l="⎜",c="⎝",d="Size4-Regular",u="lparen",h=875):")"===e||"\\rparen"===e?(a="⎞",l="⎟",c="⎠",d="Size4-Regular",u="rparen",h=875):"\\{"===e||"\\lbrace"===e?(a="⎧",s="⎨",c="⎩",l="⎪",d="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(a="⎫",s="⎬",c="⎭",l="⎪",d="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(a="⎧",c="⎩",l="⎪",d="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(a="⎫",c="⎭",l="⎪",d="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(a="⎧",c="⎭",l="⎪",d="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(a="⎫",c="⎩",l="⎪",d="Size4-Regular");var p=Qyt(a,d,i),f=p.height+p.depth,g=Qyt(l,d,i),m=g.height+g.depth,O=Qyt(c,d,i),A=O.height+O.depth,y=0,v=1;if(null!==s){var b=Qyt(s,d,i);y=b.height+b.depth,v=2}var x=f+A+y,w=x+Math.max(0,Math.ceil((t-x)/(v*m)))*v*m,k=r.fontMetrics().axisHeight;n&&(k*=r.sizeMultiplier);var S=w/2-k,T=[];if(u.length>0){var $=w-f-A,_=Math.round(1e3*w),C=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 v84 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 v84 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw new Error("Unknown stretchy delimiter.")}}(u,Math.round(1e3*$)),Q=new Vmt(u,C),P=Emt(h/1e3),E=Emt(_/1e3),R=new qmt([Q],{width:P,height:E,viewBox:"0 0 "+h+" "+_}),B=eAt([],[R],r);B.height=_/1e3,B.style.width=P,B.style.height=E,T.push({type:"elem",elem:B})}else{if(T.push(Byt(c,d,i)),T.push(Lyt),null===s){var I=w-f-A+.016;T.push(Iyt(l,I,r))}else{var L=(w-f-A-y)/2+.016;T.push(Iyt(l,L,r)),T.push(Lyt),T.push(Byt(s,d,i)),T.push(Lyt),T.push(Iyt(l,L,r))}T.push(Lyt),T.push(Byt(a,d,i))}var D=r.havingBaseStyle(vmt.TEXT),M=iAt({positionType:"bottom",positionData:S,children:T});return Pyt(JOt(["delimsizing","mult"],[M],D),vmt.TEXT,r,o)},Xyt=.08,Fyt=function(e,t,n,r,i){var o=function(e,t,n){t*=1e3;var r="";switch(e){case"sqrtMain":r=function(e){return"M95,"+(622+e+Smt)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" "+Smt+"h400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize1":r=function(e){return"M263,"+(601+e+Smt)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" "+Smt+"h400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize2":r=function(e){return"M983 "+(10+e+Smt)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" "+Smt+"h400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize3":r=function(e){return"M424,"+(2398+e+Smt)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" "+Smt+"\nh400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize4":r=function(e){return"M473,"+(2713+e+Smt)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" "+Smt+"h400000v"+(40+e)+"H1017.7z"}(t);break;case"sqrtTall":r=function(e,t,n){return"M702 "+(e+Smt)+"H400000"+(40+e)+"\nH742v"+(n-54-Smt-e)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+Smt+"H400000v"+(40+e)+"H742z"}(t,0,n)}return r}(e,r,n),a=new Vmt(e,o),s=new qmt([a],{width:"400em",height:Emt(t),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return eAt(["hide-tail"],[s],i)},Uyt=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),zyt=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),qyt=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Vyt=[0,1.2,1.8,2.4,3],Wyt=function(e,t,n,r,i){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),Uyt.has(e)||qyt.has(e))return Ryt(e,t,!1,n,r,i);if(zyt.has(e))return Nyt(e,Vyt[t],!1,n,r,i);throw new Jgt("Illegal delimiter: '"+e+"'")},jyt=[{type:"small",style:vmt.SCRIPTSCRIPT},{type:"small",style:vmt.SCRIPT},{type:"small",style:vmt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Yyt=[{type:"small",style:vmt.SCRIPTSCRIPT},{type:"small",style:vmt.SCRIPT},{type:"small",style:vmt.TEXT},{type:"stack"}],Zyt=[{type:"small",style:vmt.SCRIPTSCRIPT},{type:"small",style:vmt.SCRIPT},{type:"small",style:vmt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Gyt=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";var t=e.type;throw new Error("Add support for delim type '"+t+"' here.")},Hyt=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);i<n.length;i++){var o=n[i];if("stack"===o.type)break;var a=Qyt(e,Gyt(o),"math"),s=a.height+a.depth;if("small"===o.type)s*=r.havingBaseStyle(o.style).sizeMultiplier;if(s>t)return o}return n[n.length-1]},Kyt=function(e,t,n,r,i,o){var a;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),a=qyt.has(e)?jyt:Uyt.has(e)?Zyt:Yyt;var s=Hyt(e,t,a,r);return"small"===s.type?function(e,t,n,r,i,o){var a=jOt(e,"Main-Regular",i,r),s=Pyt(a,t,r,o);return Eyt(s,r,t),s}(e,s.style,0,r,i,o):"large"===s.type?Ryt(e,s.size,n,r,i,o):Nyt(e,t,n,r,i,o)},Jyt=function(e,t,n,r,i,o){var a=r.fontMetrics().axisHeight*r.sizeMultiplier,s=5/r.fontMetrics().ptPerEm,l=Math.max(t-a,n+a),c=Math.max(l/500*901,2*l-s);return Kyt(e,c,!0,r,i,o)},evt={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},tvt=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function nvt(e){return"isMiddle"in e}function rvt(e,t){var n=hyt(e);if(n&&tvt.has(n.text))return n;throw new Jgt(n?"Invalid delimiter '"+n.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function ivt(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}AAt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=rvt(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:evt[e.funcName].size,mclass:evt[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>"."===e.delim?JOt([e.mclass]):Wyt(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];"."!==e.delim&&t.push(FAt(e.delim,e.mode));var n=new LAt("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=Emt(Vyt[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}}),AAt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&"string"!=typeof n)throw new Jgt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:rvt(t[0],e).text,color:n}}}),AAt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=rvt(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var o=cyt(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:o.delim,rightColor:o.color}},htmlBuilder:(e,t)=>{ivt(e);for(var n,r,i=TAt(e.body,t,!0,["mopen","mclose"]),o=0,a=0,s=!1,l=0;l<i.length;l++){nvt(i[l])?s=!0:(o=Math.max(i[l].height,o),a=Math.max(i[l].depth,a))}if(o*=t.sizeMultiplier,a*=t.sizeMultiplier,n="."===e.left?PAt(t,["mopen"]):Jyt(e.left,o,a,t,e.mode,["mopen"]),i.unshift(n),s)for(var c=1;c<i.length;c++){var u=i[c];if(nvt(u)){var h=u.isMiddle;i[c]=Jyt(h.delim,o,a,h.options,e.mode,[])}}if("."===e.right)r=PAt(t,["mclose"]);else{var d=e.rightColor?t.withColor(e.rightColor):t;r=Jyt(e.right,o,a,d,e.mode,["mclose"])}return i.push(r),JOt(["minner"],i,t)},mathmlBuilder:(e,t)=>{ivt(e);var n=WAt(e.body,t);if("."!==e.left){var r=new LAt("mo",[FAt(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if("."!==e.right){var i=new LAt("mo",[FAt(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return UAt(n)}}),AAt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=rvt(t[0],e);if(!e.parser.leftrightDepth)throw new Jgt("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return"."===e.delim?n=PAt(t,[]):(n=Wyt(e.delim,1,t,e.mode,[])).isMiddle={delim:e.delim,options:t},n},mathmlBuilder:(e,t)=>{var n="\\vert"===e.delim||"|"===e.delim?FAt("|","text"):FAt(e.delim,e.mode),r=new LAt("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var ovt=(e,t)=>{var n,r,i,o,a=rAt(EAt(e.body,t),t),s=e.label.slice(1),l=t.sizeMultiplier,c=smt(e.body);if("sout"===s)(n=JOt(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/l,r=-.5*t.fontMetrics().xHeight;else if("phase"===s){var u=Pmt({number:.6,unit:"pt"},t),h=Pmt({number:.35,unit:"ex"},t);l/=t.havingBaseSizing().sizeMultiplier;var d=a.height+a.depth+u+h;a.style.paddingLeft=Emt(d/2+u);var p=Math.floor(1e3*d*l),f="M400000 "+(i=p)+" H0 L"+i/2+" 0 l65 45 L145 "+(i-80)+" H400000z",g=new qmt([new Vmt("phase",f)],{width:"400em",height:Emt(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});(n=eAt(["hide-tail"],[g],t)).style.height=Emt(d),r=a.depth+u+h}else{var m,O;/cancel/.test(s)?c||a.classes.push("cancel-pad"):"angl"===s?a.classes.push("anglpad"):a.classes.push("boxpad");var A=0;/box/.test(s)?(A=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),O=m=t.fontMetrics().fboxsep+("colorbox"===s?0:A)):"angl"===s?(m=4*(A=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),O=Math.max(0,.25-a.depth)):O=m=c?.2:0,n=function(e,t,n,r,i){var o,a=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(o=JOt(["stretchy",t],[],i),"fbox"===t){var s=i.color&&i.getColor();s&&(o.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new Wmt({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new Wmt({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new qmt(l,{width:"100%",height:Emt(a)});o=eAt([],[c],i)}return o.height=a,o.style.height=Emt(a),o}(a,s,m,O,t),/fbox|boxed|fcolorbox/.test(s)?(n.style.borderStyle="solid",n.style.borderWidth=Emt(A)):"angl"===s&&.049!==A&&(n.style.borderTopWidth=Emt(A),n.style.borderRightWidth=Emt(A)),r=a.depth+O,e.backgroundColor&&(n.style.backgroundColor=e.backgroundColor,e.borderColor&&(n.style.borderColor=e.borderColor))}if(e.backgroundColor)o=iAt({positionType:"individualShift",children:[{type:"elem",elem:n,shift:r},{type:"elem",elem:a,shift:0}]});else{var y=/cancel|phase/.test(s)?["svg-align"]:[];o=iAt({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:n,shift:r,wrapperClasses:y}]})}return/cancel/.test(s)&&(o.height=a.height,o.depth=a.depth),/cancel/.test(s)&&!c?JOt(["mord","cancel-lap"],[o],t):JOt(["mord"],[o],t)},avt=(e,t)=>{var n,r=new LAt(e.label.includes("colorbox")?"mpadded":"menclose",[YAt(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),"\\fcolorbox"===e.label){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+Emt(i)+" solid "+e.borderColor)}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};AAt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","hbox"]},handler(e,t,n){var{parser:r,funcName:i}=e,o=cyt(t[0],"color-token").color,a=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:o,body:a}},htmlBuilder:ovt,mathmlBuilder:avt}),AAt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"]},handler(e,t,n){var{parser:r,funcName:i}=e,o=cyt(t[0],"color-token").color,a=cyt(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,borderColor:o,body:s}},htmlBuilder:ovt,mathmlBuilder:avt}),AAt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}}),AAt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:ovt,mathmlBuilder:avt}),AAt({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e;"math"===n.mode&&n.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:ovt,mathmlBuilder:avt}),AAt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var svt={};function lvt(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:o,mathmlBuilder:a}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l<n.length;++l)svt[n[l]]=s;o&&(mAt[t]=o),a&&(OAt[t]=a)}var cvt={};function uvt(e,t){cvt[e]=t}class hvt{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(e,t){return t?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?new hvt(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}}let dvt=class e{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(t,n){return new e(n,hvt.range(this,t))}};function pvt(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for("\\relax"===n&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);"\\hline"===n||"\\hdashline"===n;)e.consume(),t.push("\\hdashline"===n),e.consumeSpaces(),n=e.fetch().text;return t}var fvt=e=>{if(!e.parser.settings.displayMode)throw new Jgt("{"+e.envName+"} can be used only in display mode.")},gvt=new Set(["gather","gather*"]);function mvt(e){if(!e.includes("ed"))return!e.includes("*")}function Ovt(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:o,arraystretch:a,colSeparationType:s,autoTag:l,singleRow:c,emptySingleRow:u,maxNumCols:h,leqno:d}=t;if(e.gullet.beginGroup(),c||e.gullet.macros.set("\\cr","\\\\\\relax"),!a){var p=e.gullet.expandMacroAsText("\\arraystretch");if(null==p)a=1;else if(!(a=parseFloat(p))||a<0)throw new Jgt("Invalid \\arraystretch: "+p)}e.gullet.beginGroup();var f=[],g=[f],m=[],O=[],A=null!=l?[]:void 0;function y(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function v(){A&&(e.gullet.macros.get("\\df@tag")?(A.push(e.subparse([new dvt("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):A.push(Boolean(l)&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(y(),O.push(pvt(e));;){var b=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var x={type:"ordgroup",mode:e.mode,body:b};n&&(x={type:"styling",mode:e.mode,style:n,resetFont:!0,body:[x]}),f.push(x);var w=e.fetch().text;if("&"===w){if(h&&f.length===h){if(c||s)throw new Jgt("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else{if("\\end"===w){v(),1===f.length&&"styling"===x.type&&1===x.body.length&&"ordgroup"===x.body[0].type&&0===x.body[0].body.length&&(g.length>1||!u)&&g.pop(),O.length<g.length+1&&O.push([]);break}if("\\\\"!==w)throw new Jgt("Expected & or \\\\ or \\cr or \\end",e.nextToken);e.consume();var k=void 0;" "!==e.gullet.future().text&&(k=e.parseSizeGroup(!0)),m.push(k?k.value:null),v(),O.push(pvt(e)),f=[],g.push(f),y()}}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:a,body:g,cols:o,rowGaps:m,hskipBeforeAndAfter:r,hLinesBeforeRow:O,colSeparationType:s,tags:A,leqno:d}}function Avt(e){return"d"===e.slice(0,1)?"display":"text"}var yvt=function(e,t){var n,r,i=e.body.length,o=e.hLinesBeforeRow,a=0,s=new Array(i),l=[],c=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),u=1/t.fontMetrics().ptPerEm,h=5*u;e.colSeparationType&&"small"===e.colSeparationType&&(h=t.havingStyle(vmt.SCRIPT).sizeMultiplier/t.sizeMultiplier*.2778);var d="CD"===e.colSeparationType?Pmt({number:3,unit:"ex"},t):12*u,p=3*u,f=e.arraystretch*d,g=.7*f,m=.3*f,O=0;function A(e){for(var t=0;t<e.length;++t)t>0&&(O+=.25),l.push({pos:O,isDashed:e[t]})}for(A(o[0]),n=0;n<e.body.length;++n){var y=e.body[n],v=g,b=m;a<y.length&&(a=y.length);var x={cells:new Array(y.length),height:0,depth:0,pos:0};for(r=0;r<y.length;++r){var w=EAt(y[r],t);b<w.depth&&(b=w.depth),v<w.height&&(v=w.height),x.cells[r]=w}var k=e.rowGaps[n],S=0;k&&(S=Pmt(k,t))>0&&(b<(S+=m)&&(b=S),S=0),e.addJot&&n<e.body.length-1&&(b+=p),x.height=v,x.depth=b,O+=v,x.pos=O,O+=b+S,s[n]=x,A(o[n+1])}var T,$,_=O/2+t.fontMetrics().axisHeight,C=e.cols||[],Q=[],P=[];if(e.tags&&e.tags.some(e=>e))for(n=0;n<i;++n){var E=s[n],R=E.pos-_,B=e.tags[n],I=void 0;(I=!0===B?JOt(["eqn-num"],[],t):JOt([],!1===B?[]:TAt(B,t,!0),t)).depth=E.depth,I.height=E.height,P.push({type:"elem",elem:I,shift:R})}for(r=0,$=0;r<a||$<C.length;++r,++$){for(var L,D=C[$],M=!0;"separator"===(null==(N=D)?void 0:N.type);){var N;if(M||((T=JOt(["arraycolsep"],[])).style.width=Emt(t.fontMetrics().doubleRuleSep),Q.push(T)),"|"!==D.separator&&":"!==D.separator)throw new Jgt("Invalid separator type: "+D.separator);var X="|"===D.separator?"solid":"dashed",F=JOt(["vertical-separator"],[],t);F.style.height=Emt(O),F.style.borderRightWidth=Emt(c),F.style.borderRightStyle=X,F.style.margin="0 "+Emt(-c/2);var U=O-_;U&&(F.style.verticalAlign=Emt(-U)),Q.push(F),D=C[++$],M=!1}if(!(r>=a)){var z,q,V=void 0;if(r>0||e.hskipBeforeAndAfter)0!==(V=null!=(z=null==(q=D)?void 0:q.pregap)?z:h)&&((T=JOt(["arraycolsep"],[])).style.width=Emt(V),Q.push(T));var W=[];for(n=0;n<i;++n){var j=s[n],Y=j.cells[r];if(Y){var Z=j.pos-_;Y.depth=j.depth,Y.height=j.height,W.push({type:"elem",elem:Y,shift:Z})}}var G,H,K=iAt({positionType:"individualShift",children:W}),J=JOt(["col-align-"+((null==(L=D)?void 0:L.align)||"c")],[K]);if(Q.push(J),r<a-1||e.hskipBeforeAndAfter)0!==(V=null!=(G=null==(H=D)?void 0:H.postgap)?G:h)&&((T=JOt(["arraycolsep"],[])).style.width=Emt(V),Q.push(T))}}var ee=JOt(["mtable"],Q);if(l.length>0){for(var te=tAt("hline",t,c),ne=tAt("hdashline",t,c),re=[{type:"elem",elem:ee,shift:0}];l.length>0;){var ie=l.pop(),oe=ie.pos-_;ie.isDashed?re.push({type:"elem",elem:ne,shift:oe}):re.push({type:"elem",elem:te,shift:oe})}ee=iAt({positionType:"individualShift",children:re})}if(0===P.length)return JOt(["mord"],[ee],t);var ae=iAt({positionType:"individualShift",children:P}),se=JOt(["tag"],[ae],t);return nAt([ee,se])},vvt={c:"center ",l:"left ",r:"right "},bvt=function(e,t){for(var n=[],r=new LAt("mtd",[],["mtr-glue"]),i=new LAt("mtd",[],["mml-eqn-num"]),o=0;o<e.body.length;o++){for(var a=e.body[o],s=[],l=0;l<a.length;l++)s.push(new LAt("mtd",[YAt(a[l],t)]));e.tags&&e.tags[o]&&(s.unshift(r),s.push(r),e.leqno?s.unshift(i):s.push(i)),n.push(new LAt("mtr",s))}var c=new LAt("mtable",n),u=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);c.setAttribute("rowspacing",Emt(u));var h="",d="";if(e.cols&&e.cols.length>0){var p=e.cols,f="",g=!1,m=0,O=p.length;"separator"===p[0].type&&(h+="top ",m=1),"separator"===p[p.length-1].type&&(h+="bottom ",O-=1);for(var A=m;A<O;A++){var y=p[A];"align"===y.type?(d+=vvt[y.align],g&&(f+="none "),g=!0):"separator"===y.type&&g&&(f+="|"===y.separator?"solid ":"dashed ",g=!1)}c.setAttribute("columnalign",d.trim()),/[sd]/.test(f)&&c.setAttribute("columnlines",f.trim())}if("align"===e.colSeparationType){for(var v=e.cols||[],b="",x=1;x<v.length;x++)b+=x%2?"0em ":"1em ";c.setAttribute("columnspacing",b.trim())}else"alignat"===e.colSeparationType||"gather"===e.colSeparationType?c.setAttribute("columnspacing","0em"):"small"===e.colSeparationType?c.setAttribute("columnspacing","0.2778em"):"CD"===e.colSeparationType?c.setAttribute("columnspacing","0.5em"):c.setAttribute("columnspacing","1em");var w="",k=e.hLinesBeforeRow;h+=k[0].length>0?"left ":"",h+=k[k.length-1].length>0?"right ":"";for(var S=1;S<k.length-1;S++)w+=0===k[S].length?"none ":k[S][0]?"dashed ":"solid ";return/[sd]/.test(w)&&c.setAttribute("rowlines",w.trim()),""!==h&&(c=new LAt("menclose",[c])).setAttribute("notation",h.trim()),e.arraystretch&&e.arraystretch<1&&(c=new LAt("mstyle",[c])).setAttribute("scriptlevel","1"),c},xvt=function(e,t){e.envName.includes("ed")||fvt(e);var n=[],r=e.envName.includes("at")?"alignat":"align",i="split"===e.envName,o=Ovt(e.parser,{cols:n,addJot:!0,autoTag:i?void 0:mvt(e.envName),emptySingleRow:!0,colSeparationType:r,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},"display"),a=0,s=0,l={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var c="",u=0;u<t[0].body.length;u++){c+=cyt(t[0].body[u],"textord").text}a=Number(c),s=2*a}var h=!s;o.body.forEach(function(e){for(var t=1;t<e.length;t+=2){var n=cyt(e[t],"styling");cyt(n.body[0],"ordgroup").body.unshift(l)}if(h)s<e.length&&(s=e.length);else{var r=e.length/2;if(a<r)throw new Jgt("Too many math in a row: expected "+a+", but got "+r,e[0])}});for(var d=0;d<s;++d){var p="r",f=0;d%2==1?p="l":d>0&&h&&(f=1),n[d]={type:"align",align:p,pregap:f,postgap:0}}return o.colSeparationType=h?"align":"alignat",o};lvt({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=(hyt(t[0])?[t[0]]:cyt(t[0],"ordgroup").body).map(function(e){var t=uyt(e).text;if("lcr".includes(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new Jgt("Unknown column alignment: "+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return Ovt(e.parser,r,Avt(e.envName))},htmlBuilder:yvt,mathmlBuilder:bvt}),lvt({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if("*"===e.envName.charAt(e.envName.length-1)){var i=e.parser;if(i.consumeSpaces(),"["===i.fetch().text){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!"lcr".includes(n))throw new Jgt("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var o=Ovt(e.parser,r,Avt(e.envName)),a=Math.max(0,...o.body.map(e=>e.length));return o.cols=new Array(a).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[o],left:t[0],right:t[1],rightColor:void 0}:o},htmlBuilder:yvt,mathmlBuilder:bvt}),lvt({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t=Ovt(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:yvt,mathmlBuilder:bvt}),lvt({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=(hyt(t[0])?[t[0]]:cyt(t[0],"ordgroup").body).map(function(e){var t=uyt(e).text;if("lc".includes(t))return{type:"align",align:t};throw new Jgt("Unknown column alignment: "+t,e)});if(n.length>1)throw new Jgt("{subarray} can contain only one column");var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=Ovt(e.parser,r,"script");if(i.body.length>0&&i.body[0].length>1)throw new Jgt("{subarray} can contain only one column");return i},htmlBuilder:yvt,mathmlBuilder:bvt}),lvt({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t=Ovt(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Avt(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:yvt,mathmlBuilder:bvt}),lvt({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:xvt,htmlBuilder:yvt,mathmlBuilder:bvt}),lvt({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){gvt.has(e.envName)&&fvt(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:mvt(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Ovt(e.parser,t,"display")},htmlBuilder:yvt,mathmlBuilder:bvt}),lvt({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:xvt,htmlBuilder:yvt,mathmlBuilder:bvt}),lvt({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){fvt(e);var t={autoTag:mvt(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Ovt(e.parser,t,"display")},htmlBuilder:yvt,mathmlBuilder:bvt}),lvt({type:"array",names:["CD"],props:{numArgs:0},handler:e=>(fvt(e),function(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if("&"!==n&&"\\\\"!==n){if("\\end"===n){0===t[t.length-1].length&&t.pop();break}throw new Jgt("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}for(var r=[],i=[r],o=0;o<t.length;o++){for(var a=t[o],s=byt(),l=0;l<a.length;l++)if(xyt(a[l])){r.push(s);var c=uyt(a[l+=1]).text,u=new Array(2);if(u[0]={type:"ordgroup",mode:"math",body:[]},u[1]={type:"ordgroup",mode:"math",body:[]},"=|.".includes(c));else{if(!"<>AV".includes(c))throw new Jgt('Expected one of "<>AV=|." after @',a[l]);for(var h=0;h<2;h++){for(var d=!0,p=l+1;p<a.length;p++){if(wyt(a[p],c)){d=!1,l=p;break}if(xyt(a[p]))throw new Jgt("Missing a "+c+" character to complete a CD arrow.",a[p]);u[h].body.push(a[p])}if(d)throw new Jgt("Missing a "+c+" character to complete a CD arrow.",a[l])}}var f={type:"styling",body:[kyt(c,u,e)],mode:"math",style:"display",resetFont:!0};r.push(f),s=byt()}else s.body.push(a[l]);o%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25}),colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}(e.parser)),htmlBuilder:yvt,mathmlBuilder:bvt}),uvt("\\nonumber","\\gdef\\@eqnsw{0}"),uvt("\\notag","\\nonumber"),AAt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Jgt(e.funcName+" valid only within array environment")}});var wvt=svt;AAt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if("ordgroup"!==i.type)throw new Jgt("Invalid environment name",i);for(var o="",a=0;a<i.body.length;++a)o+=cyt(i.body[a],"textord").text;if("\\begin"===r){if(!wvt.hasOwnProperty(o))throw new Jgt("No such environment: "+o,i);var s=wvt[o],{args:l,optArgs:c}=n.parseArguments("\\begin{"+o+"}",s),u={mode:n.mode,envName:o,parser:n},h=s.handler(u,l,c);n.expect("\\end",!1);var d=n.nextToken,p=cyt(n.parseFunction(),"environment");if(p.name!==o)throw new Jgt("Mismatch: \\begin{"+o+"} matched by \\end{"+p.name+"}",d);return h}return{type:"environment",mode:n.mode,name:o,nameGroup:i}}});var kvt=(e,t)=>{var n=e.font,r=t.withFont(n);return EAt(e.body,r)},Svt=(e,t)=>{var n=e.font,r=t.withFont(n);return YAt(e.body,r)},Tvt={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};AAt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=vAt(t[0]),o=r;return o in Tvt&&(o=Tvt[o]),{type:"font",mode:n.mode,font:o.slice(1),body:i}},htmlBuilder:kvt,mathmlBuilder:Svt}),AAt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"mclass",mode:n.mode,mclass:yyt(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:smt(r)}}}),AAt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:o}=n,a=n.parseExpression(!0,i);return{type:"font",mode:o,font:"math"+r.slice(1),body:{type:"ordgroup",mode:n.mode,body:a}}},htmlBuilder:kvt,mathmlBuilder:Svt});var $vt=(e,t)=>t?{type:"styling",mode:e.mode,style:t,body:[e]}:e;AAt({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var n,{parser:r,funcName:i}=e,o=t[0],a=t[1],s=null,l=null;switch(i){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":n=!0;break;case"\\\\atopfrac":n=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":n=!1,s="(",l=")";break;case"\\\\bracefrac":n=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":n=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}var c="\\cfrac"===i,u=null;return c||i.startsWith("\\d")?u="display":i.startsWith("\\t")&&(u="text"),$vt({type:"genfrac",mode:r.mode,numer:o,denom:a,continued:c,hasBarLine:n,leftDelim:s,rightDelim:l,barSize:null},u)},htmlBuilder:(e,t)=>{var n,r=t.style,i=r.fracNum(),o=r.fracDen();n=t.havingStyle(i);var a=EAt(e.numer,n,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;a.height=a.height<s?s:a.height,a.depth=a.depth<l?l:a.depth}n=t.havingStyle(o);var c,u,h,d,p,f,g,m,O,A,y=EAt(e.denom,n,t);if(e.hasBarLine?(e.barSize?(u=Pmt(e.barSize,t),c=tAt("frac-line",t,u)):c=tAt("frac-line",t),u=c.height,h=c.height):(c=null,u=0,h=t.fontMetrics().defaultRuleThickness),r.size===vmt.DISPLAY.size?(d=t.fontMetrics().num1,p=u>0?3*h:7*h,f=t.fontMetrics().denom1):(u>0?(d=t.fontMetrics().num2,p=h):(d=t.fontMetrics().num3,p=3*h),f=t.fontMetrics().denom2),c){var v=t.fontMetrics().axisHeight;d-a.depth-(v+.5*u)<p&&(d+=p-(d-a.depth-(v+.5*u))),v-.5*u-(y.height-f)<p&&(f+=p-(v-.5*u-(y.height-f))),g=iAt({positionType:"individualShift",children:[{type:"elem",elem:y,shift:f},{type:"elem",elem:c,shift:-(v-.5*u)},{type:"elem",elem:a,shift:-d}]})}else{var b=d-a.depth-(y.height-f);b<p&&(d+=.5*(p-b),f+=.5*(p-b)),g=iAt({positionType:"individualShift",children:[{type:"elem",elem:y,shift:f},{type:"elem",elem:a,shift:-d}]})}return n=t.havingStyle(r),g.height*=n.sizeMultiplier/t.sizeMultiplier,g.depth*=n.sizeMultiplier/t.sizeMultiplier,m=r.size===vmt.DISPLAY.size?t.fontMetrics().delim1:r.size===vmt.SCRIPTSCRIPT.size?t.havingStyle(vmt.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,O=null==e.leftDelim?PAt(t,["mopen"]):Kyt(e.leftDelim,m,!0,t.havingStyle(r),e.mode,["mopen"]),A=e.continued?JOt([]):null==e.rightDelim?PAt(t,["mclose"]):Kyt(e.rightDelim,m,!0,t.havingStyle(r),e.mode,["mclose"]),JOt(["mord"].concat(n.sizingClasses(t)),[O,JOt(["mfrac"],[g]),A],t)},mathmlBuilder:(e,t)=>{var n=new LAt("mfrac",[YAt(e.numer,t),YAt(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var r=Pmt(e.barSize,t);n.setAttribute("linethickness",Emt(r))}}else n.setAttribute("linethickness","0px");if(null!=e.leftDelim||null!=e.rightDelim){var i=[];if(null!=e.leftDelim){var o=new LAt("mo",[new DAt(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),i.push(o)}if(i.push(n),null!=e.rightDelim){var a=new LAt("mo",[new DAt(e.rightDelim.replace("\\",""))]);a.setAttribute("fence","true"),i.push(a)}return UAt(i)}return n}}),AAt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var t,{parser:n,funcName:r,token:i}=e;switch(r){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:n.mode,replaceWith:t,token:i}}});var _vt=["display","text","script","scriptscript"],Cvt=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};AAt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var n,{parser:r}=e,i=t[4],o=t[5],a=vAt(t[0]),s="atom"===a.type&&"open"===a.family?Cvt(a.text):null,l=vAt(t[1]),c="atom"===l.type&&"close"===l.family?Cvt(l.text):null,u=cyt(t[2],"size"),h=null;n=!!u.isBlank||(h=u.value).number>0;var d=null,p=t[3];if("ordgroup"===p.type){if(p.body.length>0){var f=cyt(p.body[0],"textord");d=_vt[Number(f.text)]}}else p=cyt(p,"textord"),d=_vt[Number(p.text)];return $vt({type:"genfrac",mode:r.mode,numer:i,denom:o,continued:!1,hasBarLine:n,barSize:h,leftDelim:s,rightDelim:c},d)}}),AAt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:cyt(t[0],"size").value,token:i}}}),AAt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],o=cyt(t[1],"infix").size;if(!o)throw new Error("\\\\abovefrac expected size, but got "+String(o));var a=t[2],s=o.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:a,continued:!1,hasBarLine:s,barSize:o,leftDelim:null,rightDelim:null}}});var Qvt=(e,t)=>{var n,r,i=t.style;"supsub"===e.type?(n=e.sup?EAt(e.sup,t.havingStyle(i.sup()),t):EAt(e.sub,t.havingStyle(i.sub()),t),r=cyt(e.base,"horizBrace")):r=cyt(e,"horizBrace");var o,a=EAt(r.base,t.havingBaseStyle(vmt.DISPLAY)),s=ayt(r,t);if(o=r.isOver?iAt({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s,wrapperClasses:["svg-align"]}]}):iAt({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:a}]}),n){var l=JOt(["minner",r.isOver?"mover":"munder"],[o],t);o=r.isOver?iAt({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]}):iAt({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]})}return JOt(["minner",r.isOver?"mover":"munder"],[o],t)};AAt({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:r.includes("\\over"),base:t[0]}},htmlBuilder:Qvt,mathmlBuilder:(e,t)=>{var n=ryt(e.label);return new LAt(e.isOver?"mover":"munder",[YAt(e.base,t),n])}}),AAt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=cyt(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:bAt(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=TAt(e.body,t,!1);return function(e,t,n,r){var i=new Xmt(e,t,n,r);return KOt(i),i}(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=jAt(e.body,t);return n instanceof LAt||(n=new LAt("mrow",[n])),n.setAttribute("href",e.href),n}}),AAt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=cyt(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],o=0;o<r.length;o++){var a=r[o];"~"===a&&(a="\\textasciitilde"),i.push({type:"textord",mode:"text",text:a})}var s={type:"text",mode:n.mode,font:"\\texttt",body:i};return{type:"href",mode:n.mode,href:r,body:bAt(s)}}}),AAt({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:"hbox",mode:n.mode,body:bAt(t[0])}},htmlBuilder(e,t){var n=TAt(e.body,t.withFont(""),!1);return nAt(n)},mathmlBuilder:(e,t)=>new LAt("mrow",WAt(e.body,t.withFont("")))}),AAt({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var n,{parser:r,funcName:i,token:o}=e,a=cyt(t[0],"raw").string,s=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l={};switch(i){case"\\htmlClass":l.class=a,n={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,n={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,n={command:"\\htmlStyle",style:a};break;case"\\htmlData":for(var c=a.split(","),u=0;u<c.length;u++){var h=c[u],d=h.indexOf("=");if(d<0)throw new Jgt("\\htmlData key/value '"+h+"' missing equals sign");var p=h.slice(0,d),f=h.slice(d+1);l["data-"+p.trim()]=f}n={command:"\\htmlData",attributes:l};break;default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(n)?{type:"html",mode:r.mode,attributes:l,body:bAt(s)}:r.formatUnsupportedCmd(i)},htmlBuilder:(e,t)=>{var n=TAt(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=JOt(r,n,t);for(var o in e.attributes)"class"!==o&&e.attributes.hasOwnProperty(o)&&i.setAttribute(o,e.attributes[o]);return i},mathmlBuilder:(e,t)=>jAt(e.body,t)}),AAt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:bAt(t[0]),mathml:bAt(t[1])}},htmlBuilder:(e,t)=>{var n=TAt(e.html,t,!1);return nAt(n)},mathmlBuilder:(e,t)=>jAt(e.mathml,t)});var Pvt=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new Jgt("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(t[1]+t[2]),unit:t[3]};if(!Qmt(n))throw new Jgt("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};AAt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},o={number:.9,unit:"em"},a={number:0,unit:"em"},s="";if(n[0])for(var l=cyt(n[0],"raw").string.split(","),c=0;c<l.length;c++){var u=l[c].split("=");if(2===u.length){var h=u[1].trim();switch(u[0].trim()){case"alt":s=h;break;case"width":i=Pvt(h);break;case"height":o=Pvt(h);break;case"totalheight":a=Pvt(h);break;default:throw new Jgt("Invalid key: '"+u[0]+"' in \\includegraphics.")}}}var d=cyt(t[0],"url").url;return""===s&&(s=(s=(s=d).replace(/^.*[\\/]/,"")).substring(0,s.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:d})?{type:"includegraphics",mode:r.mode,alt:s,width:i,height:o,totalheight:a,src:d}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=Pmt(e.height,t),r=0;e.totalheight.number>0&&(r=Pmt(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=Pmt(e.width,t));var o={height:Emt(n+r)};i>0&&(o.width=Emt(i)),r>0&&(o.verticalAlign=Emt(-r));var a=new Fmt(e.src,e.alt,o);return a.height=n,a.depth=r,a},mathmlBuilder:(e,t)=>{var n=new LAt("mglyph",[]);n.setAttribute("alt",e.alt);var r=Pmt(e.height,t),i=0;if(e.totalheight.number>0&&(i=Pmt(e.totalheight,t)-r,n.setAttribute("valign",Emt(-i))),n.setAttribute("height",Emt(r+i)),e.width.number>0){var o=Pmt(e.width,t);n.setAttribute("width",Emt(o))}return n.setAttribute("src",e.src),n}}),AAt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=cyt(t[0],"size");if(n.settings.strict){var o="m"===r[1],a="mu"===i.value.unit;o?(a||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, not "+i.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):a&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder:(e,t)=>oAt(e.dimension,t),mathmlBuilder(e,t){var n=Pmt(e.dimension,t);return new MAt(n)}}),AAt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;"clap"===e.alignment?(n=JOt([],[EAt(e.body,t)]),n=JOt(["inner"],[n],t)):n=JOt(["inner"],[EAt(e.body,t)]);var r=JOt(["fix"],[]),i=JOt([e.alignment],[n,r],t),o=JOt(["strut"]);return o.style.height=Emt(i.height+i.depth),i.depth&&(o.style.verticalAlign=Emt(-i.depth)),i.children.unshift(o),i=JOt(["thinbox"],[i],t),JOt(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new LAt("mpadded",[YAt(e.body,t)]);if("rlap"!==e.alignment){var r="llap"===e.alignment?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}}),AAt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var o="\\("===n?"\\)":"$",a=r.parseExpression(!1,o);return r.expect(o),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",resetFont:!0,body:a}}}),AAt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Jgt("Mismatched "+e.funcName)}});var Evt=(e,t)=>{switch(t.style.size){case vmt.DISPLAY.size:return e.display;case vmt.TEXT.size:return e.text;case vmt.SCRIPT.size:return e.script;case vmt.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};AAt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:bAt(t[0]),text:bAt(t[1]),script:bAt(t[2]),scriptscript:bAt(t[3])}},htmlBuilder:(e,t)=>{var n=Evt(e,t),r=TAt(n,t,!1);return nAt(r)},mathmlBuilder:(e,t)=>{var n=Evt(e,t);return jAt(n,t)}});var Rvt=(e,t,n,r,i,o,a)=>{e=JOt([],[e]);var s,l,c,u=n&&smt(n);if(t){var h=EAt(t,r.havingStyle(i.sup()),r);l={elem:h,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-h.depth)}}if(n){var d=EAt(n,r.havingStyle(i.sub()),r);s={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}if(l&&s){var p=r.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+a;c=iAt({positionType:"bottom",positionData:p,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:Emt(-o)},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:Emt(o)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]})}else if(s){var f=e.height-a;c=iAt({positionType:"top",positionData:f,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:Emt(-o)},{type:"kern",size:s.kern},{type:"elem",elem:e}]})}else{if(!l)return e;var g=e.depth+a;c=iAt({positionType:"bottom",positionData:g,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:Emt(o)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]})}var m=[c];if(s&&0!==o&&!u){var O=JOt(["mspace"],[],r);O.style.marginRight=Emt(o),m.unshift(O)}return JOt(["mop","op-limits"],m,r)},Bvt=new Set(["\\smallint"]),Ivt=(e,t)=>{var n,r,i,o=!1;"supsub"===e.type?(n=e.sup,r=e.sub,i=cyt(e.base,"op"),o=!0):i=cyt(e,"op");var a,s,l=t.style,c=!1;if(l.size===vmt.DISPLAY.size&&i.symbol&&!Bvt.has(i.name)&&(c=!0),i.symbol){var u=c?"Size2-Regular":"Size1-Regular",h="";if("\\oiint"!==i.name&&"\\oiiint"!==i.name||(h=i.name.slice(1),i.name="oiint"===h?"\\iint":"\\iiint"),s=(a=jOt(i.name,u,"math",t,["mop","op-symbol",c?"large-op":"small-op"])).italic,h.length>0){var d=cAt(h+"Size"+(c?"2":"1"),t);a=iAt({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:d,shift:c?.08:0}]}),i.name="\\"+h,a.classes.unshift("mop"),a.italic=s}}else if(i.body){var p=TAt(i.body,t,!0);1===p.length&&p[0]instanceof zmt?(a=p[0]).classes[0]="mop":a=JOt(["mop"],p,t)}else{for(var f=[],g=1;g<i.name.length;g++)f.push(YOt(i.name[g],i.mode,t));a=JOt(["mop"],f,t)}var m,O=0,A=0;(a instanceof zmt||"\\oiint"===i.name||"\\oiiint"===i.name)&&!i.suppressBaseShift&&(O=(a.height-a.depth)/2-t.fontMetrics().axisHeight,A=null!=(m=a.italic)?m:0);return o?Rvt(a,n,r,t,l,A,O):(O&&(a.style.position="relative",a.style.top=Emt(O)),a)},Lvt=(e,t)=>{var n;if(e.symbol)n=new LAt("mo",[FAt(e.name,e.mode)]),Bvt.has(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new LAt("mo",WAt(e.body,t));else{n=new LAt("mi",[new DAt(e.name.slice(1))]);var r=new LAt("mo",[FAt("","text")]);n=e.parentIsSupSub?new LAt("mrow",[n,r]):IAt([n,r])}return n},Dvt={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};AAt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return 1===i.length&&(i=Dvt[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Ivt,mathmlBuilder:Lvt}),AAt({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:bAt(r)}},htmlBuilder:Ivt,mathmlBuilder:Lvt});var Mvt={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};AAt({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Ivt,mathmlBuilder:Lvt}),AAt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Ivt,mathmlBuilder:Lvt}),AAt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,r=n;return 1===r.length&&(r=Mvt[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Ivt,mathmlBuilder:Lvt});var Nvt=(e,t)=>{var n,r,i,o,a=!1;if("supsub"===e.type?(n=e.sup,r=e.sub,i=cyt(e.base,"operatorname"),a=!0):i=cyt(e,"operatorname"),i.body.length>0){for(var s=(i.body.map(e=>{var t="text"in e?e.text:void 0;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e})),l=TAt(s,t.withFont("mathrm"),!0),c=0;c<l.length;c++){var u=l[c];u instanceof zmt&&(u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}o=JOt(["mop"],l,t)}else o=JOt(["mop"],[],t);return a?Rvt(o,n,r,t,t.style,0,0):o};function Xvt(e,t,n){for(var r=TAt(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,o=0;o<r.length;o++){var a=r[o].classes.indexOf("sizing");a<0?Array.prototype.push.apply(r[o].classes,t.sizingClasses(n)):r[o].classes[a+1]==="reset-size"+t.size&&(r[o].classes[a+1]="reset-size"+n.size),r[o].height*=i,r[o].depth*=i}return nAt(r)}AAt({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:bAt(i),alwaysHandleSupSub:"\\operatornamewithlimits"===r,limits:!1,parentIsSupSub:!1}},htmlBuilder:Nvt,mathmlBuilder:(e,t)=>{for(var n=WAt(e.body,t.withFont("mathrm")),r=!0,i=0;i<n.length;i++){var o=n[i];if(o instanceof MAt);else if(o instanceof LAt)switch(o.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":var a=o.children[0];1===o.children.length&&a instanceof DAt?a.text=a.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break;default:r=!1}else r=!1}if(r){var s=n.map(e=>e.toText()).join("");n=[new DAt(s)]}var l=new LAt("mi",n);l.setAttribute("mathvariant","normal");var c=new LAt("mo",[FAt("","text")]);return e.parentIsSupSub?new LAt("mrow",[l,c]):IAt([l,c])}}),uvt("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),yAt({type:"ordgroup",htmlBuilder:(e,t)=>e.semisimple?nAt(TAt(e.body,t,!1)):JOt(["mord"],TAt(e.body,t,!0),t),mathmlBuilder:(e,t)=>jAt(e.body,t,!0)}),AAt({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=EAt(e.body,t.havingCrampedStyle()),r=tAt("overline-line",t),i=t.fontMetrics().defaultRuleThickness,o=iAt({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]});return JOt(["mord","overline"],[o],t)},mathmlBuilder(e,t){var n=new LAt("mo",[new DAt("‾")]);n.setAttribute("stretchy","true");var r=new LAt("mover",[YAt(e.body,t),n]);return r.setAttribute("accent","true"),r}}),AAt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:bAt(r)}},htmlBuilder:(e,t)=>{var n=TAt(e.body,t.withPhantom(),!1);return nAt(n)},mathmlBuilder:(e,t)=>{var n=WAt(e.body,t);return new LAt("mphantom",n)}}),uvt("\\hphantom","\\smash{\\phantom{#1}}"),AAt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=JOt(["inner"],[EAt(e.body,t.withPhantom())]),r=JOt(["fix"],[]);return JOt(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=WAt(bAt(e.body),t),r=new LAt("mphantom",n),i=new LAt("mpadded",[r]);return i.setAttribute("width","0px"),i}}),AAt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=cyt(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=EAt(e.body,t),r=Pmt(e.dy,t);return iAt({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new LAt("mpadded",[YAt(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}}),AAt({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),AAt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],o=cyt(t[0],"size"),a=cyt(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&cyt(i,"size").value,width:o.value,height:a.value}},htmlBuilder(e,t){var n=JOt(["mord","rule"],[],t),r=Pmt(e.width,t),i=Pmt(e.height,t),o=e.shift?Pmt(e.shift,t):0;return n.style.borderRightWidth=Emt(r),n.style.borderTopWidth=Emt(i),n.style.bottom=Emt(o),n.width=r,n.height=i+o,n.depth=-o,n.maxFontSize=1.125*i*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Pmt(e.width,t),r=Pmt(e.height,t),i=e.shift?Pmt(e.shift,t):0,o=t.color&&t.getColor()||"black",a=new LAt("mspace");a.setAttribute("mathbackground",o),a.setAttribute("width",Emt(n)),a.setAttribute("height",Emt(r));var s=new LAt("mpadded",[a]);return i>=0?s.setAttribute("height",Emt(i)):(s.setAttribute("height",Emt(i)),s.setAttribute("depth",Emt(-i))),s.setAttribute("voffset",Emt(i)),s}});var Fvt=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];AAt({type:"sizing",names:Fvt,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,o=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:Fvt.indexOf(r)+1,body:o}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return Xvt(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=WAt(e.body,n),i=new LAt("mstyle",r);return i.setAttribute("mathsize",Emt(n.sizeMultiplier)),i}}),AAt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,o=!1,a=n[0]&&cyt(n[0],"ordgroup");if(a)for(var s,l=0;l<a.body.length;++l){if("t"===(s=uyt(a.body[l]).text))i=!0;else{if("b"!==s){i=!1,o=!1;break}o=!0}}else i=!0,o=!0;var c=t[0];return{type:"smash",mode:r.mode,body:c,smashHeight:i,smashDepth:o}},htmlBuilder:(e,t)=>{var n=JOt([],[EAt(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return JOt(["mord","smash"],[n],t);if(n.children)for(var r=0;r<n.children.length;r++)e.smashHeight&&(n.children[r].height=0),e.smashDepth&&(n.children[r].depth=0);var i=iAt({positionType:"firstBaseline",children:[{type:"elem",elem:n}]});return JOt(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var n=new LAt("mpadded",[YAt(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}}),AAt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],o=t[0];return{type:"sqrt",mode:r.mode,body:o,index:i}},htmlBuilder(e,t){var n=EAt(e.body,t.havingCrampedStyle());0===n.height&&(n.height=t.fontMetrics().xHeight),n=rAt(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.id<vmt.TEXT.id&&(i=t.fontMetrics().xHeight);var o=r+i/4,a=n.height+n.depth+o+r,{span:s,ruleWidth:l,advanceWidth:c}=function(e,t){var n,r,i,o,a,s=t.havingBaseSizing(),l=Hyt("\\surd",e*s.sizeMultiplier,Zyt,s),c=s.sizeMultiplier,u=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness);return"small"===l.type?(e<1?c=1:e<1.4&&(c=.7),i=(1+u)/c,(n=Fyt("sqrtMain",r=(1+u+Xyt)/c,o=1e3+1e3*u+80,u,t)).style.minWidth="0.853em",a=.833/c):"large"===l.type?(o=1080*Vyt[l.size],i=(Vyt[l.size]+u)/c,r=(Vyt[l.size]+u+Xyt)/c,(n=Fyt("sqrtSize"+l.size,r,o,u,t)).style.minWidth="1.02em",a=1/c):(r=e+u+Xyt,i=e+u,o=Math.floor(1e3*e+u)+80,(n=Fyt("sqrtTall",r,o,u,t)).style.minWidth="0.742em",a=1.056),n.height=i,n.style.height=Emt(r),{span:n,advanceWidth:a,ruleWidth:(t.fontMetrics().sqrtRuleThickness+u)*c}}(a,t),u=s.height-l;u>n.height+n.depth+o&&(o=(o+u-n.height-n.depth)/2);var h=s.height-n.height-o-l;n.style.paddingLeft=Emt(c);var d=iAt({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+h)},{type:"elem",elem:s},{type:"kern",size:l}]});if(e.index){var p=t.havingStyle(vmt.SCRIPTSCRIPT),f=EAt(e.index,p,t),g=.6*(d.height-d.depth),m=iAt({positionType:"shift",positionData:-g,children:[{type:"elem",elem:f}]}),O=JOt(["root"],[m]);return JOt(["mord","sqrt"],[O,d],t)}return JOt(["mord","sqrt"],[d],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new LAt("mroot",[YAt(n,t),YAt(r,t)]):new LAt("msqrt",[YAt(n,t)])}});var Uvt={display:vmt.DISPLAY,text:vmt.TEXT,script:vmt.SCRIPT,scriptscript:vmt.SCRIPTSCRIPT};AAt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,o=i.parseExpression(!0,n),a=r.slice(1,r.length-5);if(!(a in Uvt))throw new Error("Unknown style: "+a);return{type:"styling",mode:i.mode,style:a,body:o}},htmlBuilder(e,t){var n=Uvt[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont("")),Xvt(e.body,r,t)},mathmlBuilder(e,t){var n=Uvt[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(""));var i=WAt(e.body,r),o=new LAt("mstyle",i),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return o.setAttribute("scriptlevel",a[0]),o.setAttribute("displaystyle",a[1]),o}});yAt({type:"supsub",htmlBuilder(e,t){var n=function(e,t){var n=e.base;return n?"op"===n.type?n.limits&&(t.style.size===vmt.DISPLAY.size||n.alwaysHandleSupSub)?Ivt:null:"operatorname"===n.type?n.alwaysHandleSupSub&&(t.style.size===vmt.DISPLAY.size||n.limits)?Nvt:null:"accent"===n.type?smt(n.base)?pyt:null:"horizBrace"===n.type&&!e.sub===n.isOver?Qvt:null:null}(e,t);if(n)return n(e,t);var r,i,o,{base:a,sup:s,sub:l}=e,c=EAt(a,t),u=t.fontMetrics(),h=0,d=0,p=a&&smt(a);if(s){var f=t.havingStyle(t.style.sup());r=EAt(s,f,t),p||(h=c.height-f.fontMetrics().supDrop*f.sizeMultiplier/t.sizeMultiplier)}if(l){var g=t.havingStyle(t.style.sub());i=EAt(l,g,t),p||(d=c.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}o=t.style===vmt.DISPLAY?u.sup1:t.style.cramped?u.sup3:u.sup2;var m,O=t.sizeMultiplier,A=Emt(.5/u.ptPerEm/O),y=null;if(i){var v,b=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);if(c instanceof zmt||b)y=Emt(-(null!=(v=c.italic)?v:0))}if(r&&i){h=Math.max(h,o,r.depth+.25*u.xHeight),d=Math.max(d,u.sub2);var x=4*u.defaultRuleThickness;if(h-r.depth-(i.height-d)<x){d=x-(h-r.depth)+i.height;var w=.8*u.xHeight-(h-r.depth);w>0&&(h+=w,d-=w)}m=iAt({positionType:"individualShift",children:[{type:"elem",elem:i,shift:d,marginRight:A,marginLeft:y},{type:"elem",elem:r,shift:-h,marginRight:A}]})}else if(i){d=Math.max(d,u.sub1,i.height-.8*u.xHeight),m=iAt({positionType:"shift",positionData:d,children:[{type:"elem",elem:i,marginLeft:y,marginRight:A}]})}else{if(!r)throw new Error("supsub must have either sup or sub.");h=Math.max(h,o,r.depth+.25*u.xHeight),m=iAt({positionType:"shift",positionData:-h,children:[{type:"elem",elem:r,marginRight:A}]})}var k=QAt(c,"right")||"mord";return JOt([k],[c,JOt(["msupsub"],[m])],t)},mathmlBuilder(e,t){var n,r=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(r=!0,n=e.base.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var i,o=[YAt(e.base,t)];if(e.sub&&o.push(YAt(e.sub,t)),e.sup&&o.push(YAt(e.sup,t)),r)i=n?"mover":"munder";else if(e.sub)if(e.sup){var a=e.base;i=a&&"op"===a.type&&a.limits&&t.style===vmt.DISPLAY||a&&"operatorname"===a.type&&a.alwaysHandleSupSub&&(t.style===vmt.DISPLAY||a.limits)?"munderover":"msubsup"}else{var s=e.base;i=s&&"op"===s.type&&s.limits&&(t.style===vmt.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===vmt.DISPLAY)?"munder":"msub"}else{var l=e.base;i=l&&"op"===l.type&&l.limits&&(t.style===vmt.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===vmt.DISPLAY)?"mover":"msup"}return new LAt(i,o)}}),yAt({type:"atom",htmlBuilder:(e,t)=>YOt(e.text,e.mode,t,["m"+e.family]),mathmlBuilder(e,t){var n=new LAt("mo",[FAt(e.text,e.mode)]);if("bin"===e.family){var r=qAt(e,t);"bold-italic"===r&&n.setAttribute("mathvariant",r)}else"punct"===e.family?n.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||n.setAttribute("stretchy","false");return n}});var zvt={mi:"italic",mn:"normal",mtext:"normal"};yAt({type:"mathord",htmlBuilder:(e,t)=>ZOt(e,t,"mathord"),mathmlBuilder(e,t){var n=new LAt("mi",[FAt(e.text,e.mode,t)]),r=qAt(e,t)||"italic";return r!==zvt[n.type]&&n.setAttribute("mathvariant",r),n}}),yAt({type:"textord",htmlBuilder:(e,t)=>ZOt(e,t,"textord"),mathmlBuilder(e,t){var n,r=FAt(e.text,e.mode,t),i=qAt(e,t)||"normal";return n="text"===e.mode?new LAt("mtext",[r]):/[0-9]/.test(e.text)?new LAt("mn",[r]):"\\prime"===e.text?new LAt("mo",[r]):new LAt("mi",[r]),i!==zvt[n.type]&&n.setAttribute("mathvariant",i),n}});var qvt={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Vvt={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};yAt({type:"spacing",htmlBuilder(e,t){if(Vvt.hasOwnProperty(e.text)){var n=Vvt[e.text].className||"";if("text"===e.mode){var r=ZOt(e,t,"textord");return r.classes.push(n),r}return JOt(["mspace",n],[YOt(e.text,e.mode,t)],t)}if(qvt.hasOwnProperty(e.text))return JOt(["mspace",qvt[e.text]],[],t);throw new Jgt('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){if(!Vvt.hasOwnProperty(e.text)){if(qvt.hasOwnProperty(e.text))return new LAt("mspace");throw new Jgt('Unknown type of space "'+e.text+'"')}return new LAt("mtext",[new DAt(" ")])}});var Wvt=()=>{var e=new LAt("mtd",[]);return e.setAttribute("width","50%"),e};yAt({type:"tag",mathmlBuilder(e,t){var n=new LAt("mtable",[new LAt("mtr",[Wvt(),new LAt("mtd",[jAt(e.body,t)]),Wvt(),new LAt("mtd",[jAt(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var jvt={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Yvt={"\\textbf":"textbf","\\textmd":"textmd"},Zvt={"\\textit":"textit","\\textup":"textup"},Gvt=(e,t)=>{var n=e.font;return n?jvt[n]?t.withTextFontFamily(jvt[n]):Yvt[n]?t.withTextFontWeight(Yvt[n]):"\\emph"===n?"textit"===t.fontShape?t.withTextFontShape("textup"):t.withTextFontShape("textit"):t.withTextFontShape(Zvt[n]):t};AAt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:bAt(i),font:r}},htmlBuilder(e,t){var n=Gvt(e,t),r=TAt(e.body,n,!0);return JOt(["mord","text"],r,n)},mathmlBuilder(e,t){var n=Gvt(e,t);return jAt(e.body,n)}}),AAt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=EAt(e.body,t),r=tAt("underline-line",t),i=t.fontMetrics().defaultRuleThickness,o=iAt({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]});return JOt(["mord","underline"],[o],t)},mathmlBuilder(e,t){var n=new LAt("mo",[new DAt("‾")]);n.setAttribute("stretchy","true");var r=new LAt("munder",[YAt(e.body,t),n]);return r.setAttribute("accentunder","true"),r}}),AAt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=EAt(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return iAt({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new LAt("mpadded",[YAt(e.body,t)],["vcenter"]);return new LAt("mrow",[n])}}),AAt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new Jgt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=Hvt(e),r=[],i=t.havingStyle(t.style.text()),o=0;o<n.length;o++){var a=n[o];"~"===a&&(a="\\textasciitilde"),r.push(jOt(a,"Typewriter-Regular",e.mode,i,["mord","texttt"]))}return JOt(["mord","text"].concat(i.sizingClasses(t)),HOt(r),i)},mathmlBuilder(e,t){var n=new DAt(Hvt(e)),r=new LAt("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var Hvt=e=>e.body.replace(/ /g,e.star?"␣":" "),Kvt=gAt,Jvt="[ \r\n\t]",ebt="(\\\\[a-zA-Z@]+)"+Jvt+"*",tbt="[̀-ͯ]",nbt=new RegExp(tbt+"+$"),rbt="("+Jvt+"+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-‧-豈-]"+tbt+"*|[\ud800-\udbff][\udc00-\udfff]"+tbt+"*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|"+ebt+"|\\\\[^\ud800-\udfff])";let ibt=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(rbt,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new dvt("EOF",new hvt(this,t,t));var n=this.tokenRegex.exec(e);if(null===n||n.index!==t)throw new Jgt("Unexpected character: '"+e[t]+"'",new dvt(e[t],new hvt(this,t,t+1)));var r=n[6]||n[3]||(n[2]?"\\ ":" ");if(14===this.catcodes[r]){var i=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===i?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=i+1,this.lex()}return new dvt(r,new hvt(this,t,this.tokenRegex.lastIndex))}};class obt{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new Jgt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,n){if(void 0===n&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t}}var abt=cvt;uvt("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),uvt("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),uvt("\\@firstoftwo",function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),uvt("\\@secondoftwo",function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),uvt("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),uvt("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),uvt("\\TextOrMath",function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var sbt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};uvt("\\char",function(e){var t,n=e.popToken(),r=0;if("'"===n.text)t=8,n=e.popToken();else if('"'===n.text)t=16,n=e.popToken();else if("`"===n.text)if("\\"===(n=e.popToken()).text[0])r=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new Jgt("\\char` missing argument");r=n.text.charCodeAt(0)}else t=10;if(t){if(null==(r=sbt[n.text])||r>=t)throw new Jgt("Invalid base-"+t+" digit "+n.text);for(var i;null!=(i=sbt[e.future().text])&&i<t;)r*=t,r+=i,e.popToken()}return"\\@char{"+r+"}"});var lbt=(e,t,n,r)=>{var i=e.consumeArg().tokens;if(1!==i.length)throw new Jgt("\\newcommand's first argument must be a macro name");var o=i[0].text,a=e.isDefined(o);if(a&&!t)throw new Jgt("\\newcommand{"+o+"} attempting to redefine "+o+"; use \\renewcommand");if(!a&&!n)throw new Jgt("\\renewcommand{"+o+"} when command "+o+" does not yet exist; use \\newcommand");var s=0;if(1===(i=e.consumeArg().tokens).length&&"["===i[0].text){for(var l="",c=e.expandNextToken();"]"!==c.text&&"EOF"!==c.text;)l+=c.text,c=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new Jgt("Invalid number of arguments: "+l);s=parseInt(l),i=e.consumeArg().tokens}return a&&r||e.macros.set(o,{tokens:i,numArgs:s}),""};uvt("\\newcommand",e=>lbt(e,!1,!0,!1)),uvt("\\renewcommand",e=>lbt(e,!0,!1,!1)),uvt("\\providecommand",e=>lbt(e,!0,!0,!0)),uvt("\\message",e=>{e.consumeArgs(1)[0];return""}),uvt("\\errmessage",e=>{e.consumeArgs(1)[0];return""}),uvt("\\show",e=>{e.popToken().text;return""}),uvt("\\bgroup","{"),uvt("\\egroup","}"),uvt("~","\\nobreakspace"),uvt("\\lq","`"),uvt("\\rq","'"),uvt("\\aa","\\r a"),uvt("\\AA","\\r A"),uvt("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),uvt("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),uvt("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),uvt("ℬ","\\mathscr{B}"),uvt("ℰ","\\mathscr{E}"),uvt("ℱ","\\mathscr{F}"),uvt("ℋ","\\mathscr{H}"),uvt("ℐ","\\mathscr{I}"),uvt("ℒ","\\mathscr{L}"),uvt("ℳ","\\mathscr{M}"),uvt("ℛ","\\mathscr{R}"),uvt("ℭ","\\mathfrak{C}"),uvt("ℌ","\\mathfrak{H}"),uvt("ℨ","\\mathfrak{Z}"),uvt("\\Bbbk","\\Bbb{k}"),uvt("\\llap","\\mathllap{\\textrm{#1}}"),uvt("\\rlap","\\mathrlap{\\textrm{#1}}"),uvt("\\clap","\\mathclap{\\textrm{#1}}"),uvt("\\mathstrut","\\vphantom{(}"),uvt("\\underbar","\\underline{\\text{#1}}"),uvt("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}'),uvt("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),uvt("\\ne","\\neq"),uvt("≠","\\neq"),uvt("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),uvt("∉","\\notin"),uvt("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),uvt("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),uvt("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),uvt("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),uvt("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),uvt("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),uvt("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),uvt("⟂","\\perp"),uvt("‼","\\mathclose{!\\mkern-0.8mu!}"),uvt("∌","\\notni"),uvt("⌜","\\ulcorner"),uvt("⌝","\\urcorner"),uvt("⌞","\\llcorner"),uvt("⌟","\\lrcorner"),uvt("©","\\copyright"),uvt("®","\\textregistered"),uvt("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),uvt("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),uvt("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),uvt("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),uvt("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),uvt("⋮","\\vdots"),uvt("\\varGamma","\\mathit{\\Gamma}"),uvt("\\varDelta","\\mathit{\\Delta}"),uvt("\\varTheta","\\mathit{\\Theta}"),uvt("\\varLambda","\\mathit{\\Lambda}"),uvt("\\varXi","\\mathit{\\Xi}"),uvt("\\varPi","\\mathit{\\Pi}"),uvt("\\varSigma","\\mathit{\\Sigma}"),uvt("\\varUpsilon","\\mathit{\\Upsilon}"),uvt("\\varPhi","\\mathit{\\Phi}"),uvt("\\varPsi","\\mathit{\\Psi}"),uvt("\\varOmega","\\mathit{\\Omega}"),uvt("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),uvt("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),uvt("\\boxed","\\fbox{$\\displaystyle{#1}$}"),uvt("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),uvt("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),uvt("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),uvt("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),uvt("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var cbt={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},ubt=new Set(["bin","rel"]);uvt("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in cbt?t=cbt[n]:("\\not"===n.slice(0,4)||n in Jmt.math&&ubt.has(Jmt.math[n].group))&&(t="\\dotsb"),t});var hbt={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};uvt("\\dotso",function(e){return e.future().text in hbt?"\\ldots\\,":"\\ldots"}),uvt("\\dotsc",function(e){var t=e.future().text;return t in hbt&&","!==t?"\\ldots\\,":"\\ldots"}),uvt("\\cdots",function(e){return e.future().text in hbt?"\\@cdots\\,":"\\@cdots"}),uvt("\\dotsb","\\cdots"),uvt("\\dotsm","\\cdots"),uvt("\\dotsi","\\!\\cdots"),uvt("\\dotsx","\\ldots\\,"),uvt("\\DOTSI","\\relax"),uvt("\\DOTSB","\\relax"),uvt("\\DOTSX","\\relax"),uvt("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),uvt("\\,","\\tmspace+{3mu}{.1667em}"),uvt("\\thinspace","\\,"),uvt("\\>","\\mskip{4mu}"),uvt("\\:","\\tmspace+{4mu}{.2222em}"),uvt("\\medspace","\\:"),uvt("\\;","\\tmspace+{5mu}{.2777em}"),uvt("\\thickspace","\\;"),uvt("\\!","\\tmspace-{3mu}{.1667em}"),uvt("\\negthinspace","\\!"),uvt("\\negmedspace","\\tmspace-{4mu}{.2222em}"),uvt("\\negthickspace","\\tmspace-{5mu}{.277em}"),uvt("\\enspace","\\kern.5em "),uvt("\\enskip","\\hskip.5em\\relax"),uvt("\\quad","\\hskip1em\\relax"),uvt("\\qquad","\\hskip2em\\relax"),uvt("\\tag","\\@ifstar\\tag@literal\\tag@paren"),uvt("\\tag@paren","\\tag@literal{({#1})}"),uvt("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Jgt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),uvt("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),uvt("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),uvt("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),uvt("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),uvt("\\newline","\\\\\\relax"),uvt("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var dbt=Emt(jmt["Main-Regular"]["T".charCodeAt(0)][1]-.7*jmt["Main-Regular"]["A".charCodeAt(0)][1]);uvt("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+dbt+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),uvt("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+dbt+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),uvt("\\hspace","\\@ifstar\\@hspacer\\@hspace"),uvt("\\@hspace","\\hskip #1\\relax"),uvt("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),uvt("\\ordinarycolon",":"),uvt("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),uvt("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),uvt("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),uvt("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),uvt("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),uvt("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),uvt("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),uvt("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),uvt("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),uvt("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),uvt("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),uvt("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),uvt("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),uvt("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),uvt("∷","\\dblcolon"),uvt("∹","\\eqcolon"),uvt("≔","\\coloneqq"),uvt("≕","\\eqqcolon"),uvt("⩴","\\Coloneqq"),uvt("\\ratio","\\vcentcolon"),uvt("\\coloncolon","\\dblcolon"),uvt("\\colonequals","\\coloneqq"),uvt("\\coloncolonequals","\\Coloneqq"),uvt("\\equalscolon","\\eqqcolon"),uvt("\\equalscoloncolon","\\Eqqcolon"),uvt("\\colonminus","\\coloneq"),uvt("\\coloncolonminus","\\Coloneq"),uvt("\\minuscolon","\\eqcolon"),uvt("\\minuscoloncolon","\\Eqcolon"),uvt("\\coloncolonapprox","\\Colonapprox"),uvt("\\coloncolonsim","\\Colonsim"),uvt("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),uvt("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),uvt("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),uvt("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),uvt("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),uvt("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),uvt("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),uvt("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),uvt("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),uvt("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),uvt("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),uvt("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),uvt("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),uvt("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),uvt("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),uvt("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),uvt("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),uvt("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),uvt("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),uvt("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),uvt("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),uvt("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),uvt("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),uvt("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),uvt("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),uvt("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),uvt("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),uvt("\\imath","\\html@mathml{\\@imath}{ı}"),uvt("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),uvt("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),uvt("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),uvt("⟦","\\llbracket"),uvt("⟧","\\rrbracket"),uvt("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),uvt("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),uvt("⦃","\\lBrace"),uvt("⦄","\\rBrace"),uvt("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),uvt("⦵","\\minuso"),uvt("\\darr","\\downarrow"),uvt("\\dArr","\\Downarrow"),uvt("\\Darr","\\Downarrow"),uvt("\\lang","\\langle"),uvt("\\rang","\\rangle"),uvt("\\uarr","\\uparrow"),uvt("\\uArr","\\Uparrow"),uvt("\\Uarr","\\Uparrow"),uvt("\\N","\\mathbb{N}"),uvt("\\R","\\mathbb{R}"),uvt("\\Z","\\mathbb{Z}"),uvt("\\alef","\\aleph"),uvt("\\alefsym","\\aleph"),uvt("\\Alpha","\\mathrm{A}"),uvt("\\Beta","\\mathrm{B}"),uvt("\\bull","\\bullet"),uvt("\\Chi","\\mathrm{X}"),uvt("\\clubs","\\clubsuit"),uvt("\\cnums","\\mathbb{C}"),uvt("\\Complex","\\mathbb{C}"),uvt("\\Dagger","\\ddagger"),uvt("\\diamonds","\\diamondsuit"),uvt("\\empty","\\emptyset"),uvt("\\Epsilon","\\mathrm{E}"),uvt("\\Eta","\\mathrm{H}"),uvt("\\exist","\\exists"),uvt("\\harr","\\leftrightarrow"),uvt("\\hArr","\\Leftrightarrow"),uvt("\\Harr","\\Leftrightarrow"),uvt("\\hearts","\\heartsuit"),uvt("\\image","\\Im"),uvt("\\infin","\\infty"),uvt("\\Iota","\\mathrm{I}"),uvt("\\isin","\\in"),uvt("\\Kappa","\\mathrm{K}"),uvt("\\larr","\\leftarrow"),uvt("\\lArr","\\Leftarrow"),uvt("\\Larr","\\Leftarrow"),uvt("\\lrarr","\\leftrightarrow"),uvt("\\lrArr","\\Leftrightarrow"),uvt("\\Lrarr","\\Leftrightarrow"),uvt("\\Mu","\\mathrm{M}"),uvt("\\natnums","\\mathbb{N}"),uvt("\\Nu","\\mathrm{N}"),uvt("\\Omicron","\\mathrm{O}"),uvt("\\plusmn","\\pm"),uvt("\\rarr","\\rightarrow"),uvt("\\rArr","\\Rightarrow"),uvt("\\Rarr","\\Rightarrow"),uvt("\\real","\\Re"),uvt("\\reals","\\mathbb{R}"),uvt("\\Reals","\\mathbb{R}"),uvt("\\Rho","\\mathrm{P}"),uvt("\\sdot","\\cdot"),uvt("\\sect","\\S"),uvt("\\spades","\\spadesuit"),uvt("\\sub","\\subset"),uvt("\\sube","\\subseteq"),uvt("\\supe","\\supseteq"),uvt("\\Tau","\\mathrm{T}"),uvt("\\thetasym","\\vartheta"),uvt("\\weierp","\\wp"),uvt("\\Zeta","\\mathrm{Z}"),uvt("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),uvt("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),uvt("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),uvt("\\bra","\\mathinner{\\langle{#1}|}"),uvt("\\ket","\\mathinner{|{#1}\\rangle}"),uvt("\\braket","\\mathinner{\\langle{#1}\\rangle}"),uvt("\\Bra","\\left\\langle#1\\right|"),uvt("\\Ket","\\left|#1\\right\\rangle");var pbt=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,o=t.consumeArg().tokens,a=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var l=t=>n=>{e&&(n.macros.set("|",a),i.length&&n.macros.set("\\|",s));var o=t;!t&&i.length&&("|"===n.future().text&&(n.popToken(),o=!0));return{tokens:o?i:r,numArgs:0}};t.macros.set("|",l(!1)),i.length&&t.macros.set("\\|",l(!0));var c=t.consumeArg().tokens,u=t.expandTokens([...o,...c,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};uvt("\\bra@ket",pbt(!1)),uvt("\\bra@set",pbt(!0)),uvt("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),uvt("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),uvt("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),uvt("\\angln","{\\angl n}"),uvt("\\blue","\\textcolor{##6495ed}{#1}"),uvt("\\orange","\\textcolor{##ffa500}{#1}"),uvt("\\pink","\\textcolor{##ff00af}{#1}"),uvt("\\red","\\textcolor{##df0030}{#1}"),uvt("\\green","\\textcolor{##28ae7b}{#1}"),uvt("\\gray","\\textcolor{gray}{#1}"),uvt("\\purple","\\textcolor{##9d38bd}{#1}"),uvt("\\blueA","\\textcolor{##ccfaff}{#1}"),uvt("\\blueB","\\textcolor{##80f6ff}{#1}"),uvt("\\blueC","\\textcolor{##63d9ea}{#1}"),uvt("\\blueD","\\textcolor{##11accd}{#1}"),uvt("\\blueE","\\textcolor{##0c7f99}{#1}"),uvt("\\tealA","\\textcolor{##94fff5}{#1}"),uvt("\\tealB","\\textcolor{##26edd5}{#1}"),uvt("\\tealC","\\textcolor{##01d1c1}{#1}"),uvt("\\tealD","\\textcolor{##01a995}{#1}"),uvt("\\tealE","\\textcolor{##208170}{#1}"),uvt("\\greenA","\\textcolor{##b6ffb0}{#1}"),uvt("\\greenB","\\textcolor{##8af281}{#1}"),uvt("\\greenC","\\textcolor{##74cf70}{#1}"),uvt("\\greenD","\\textcolor{##1fab54}{#1}"),uvt("\\greenE","\\textcolor{##0d923f}{#1}"),uvt("\\goldA","\\textcolor{##ffd0a9}{#1}"),uvt("\\goldB","\\textcolor{##ffbb71}{#1}"),uvt("\\goldC","\\textcolor{##ff9c39}{#1}"),uvt("\\goldD","\\textcolor{##e07d10}{#1}"),uvt("\\goldE","\\textcolor{##a75a05}{#1}"),uvt("\\redA","\\textcolor{##fca9a9}{#1}"),uvt("\\redB","\\textcolor{##ff8482}{#1}"),uvt("\\redC","\\textcolor{##f9685d}{#1}"),uvt("\\redD","\\textcolor{##e84d39}{#1}"),uvt("\\redE","\\textcolor{##bc2612}{#1}"),uvt("\\maroonA","\\textcolor{##ffbde0}{#1}"),uvt("\\maroonB","\\textcolor{##ff92c6}{#1}"),uvt("\\maroonC","\\textcolor{##ed5fa6}{#1}"),uvt("\\maroonD","\\textcolor{##ca337c}{#1}"),uvt("\\maroonE","\\textcolor{##9e034e}{#1}"),uvt("\\purpleA","\\textcolor{##ddd7ff}{#1}"),uvt("\\purpleB","\\textcolor{##c6b9fc}{#1}"),uvt("\\purpleC","\\textcolor{##aa87ff}{#1}"),uvt("\\purpleD","\\textcolor{##7854ab}{#1}"),uvt("\\purpleE","\\textcolor{##543b78}{#1}"),uvt("\\mintA","\\textcolor{##f5f9e8}{#1}"),uvt("\\mintB","\\textcolor{##edf2df}{#1}"),uvt("\\mintC","\\textcolor{##e0e5cc}{#1}"),uvt("\\grayA","\\textcolor{##f6f7f7}{#1}"),uvt("\\grayB","\\textcolor{##f0f1f2}{#1}"),uvt("\\grayC","\\textcolor{##e3e5e6}{#1}"),uvt("\\grayD","\\textcolor{##d6d8da}{#1}"),uvt("\\grayE","\\textcolor{##babec2}{#1}"),uvt("\\grayF","\\textcolor{##888d93}{#1}"),uvt("\\grayG","\\textcolor{##626569}{#1}"),uvt("\\grayH","\\textcolor{##3b3e40}{#1}"),uvt("\\grayI","\\textcolor{##21242c}{#1}"),uvt("\\kaBlue","\\textcolor{##314453}{#1}"),uvt("\\kaGreen","\\textcolor{##71B307}{#1}");var fbt={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class gbt{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new obt(abt,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new ibt(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),({tokens:r,end:n}=this.consumeArg(["]"]))}else({tokens:r,start:t,end:n}=this.consumeArg());return this.pushToken(new dvt("EOF",n.loc)),this.pushTokens(r),new dvt("",hvt.range(t,n))}consumeSpaces(){for(;;){if(" "!==this.future().text)break;this.stack.pop()}}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r,i=this.future(),o=0,a=0;do{if(r=this.popToken(),t.push(r),"{"===r.text)++o;else if("}"===r.text){if(-1===--o)throw new Jgt("Extra }",r)}else if("EOF"===r.text)throw new Jgt("Unexpected end of input in a macro argument, expected '"+(e&&n?e[a]:"}")+"'",r);if(e&&n)if((0===o||1===o&&"{"===e[a])&&r.text===e[a]){if(++a===e.length){t.splice(-a,a);break}}else a=0}while(0!==o||n);return"{"===i.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:i,end:r}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new Jgt("The length of delimiters doesn't match the number of args!");for(var n=t[0],r=0;r<n.length;r++){var i=this.popToken();if(n[r]!==i.text)throw new Jgt("Use of the macro doesn't match its definition",i)}}for(var o=[],a=0;a<e;a++)o.push(this.consumeArg(t&&t[a+1]).tokens);return o}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new Jgt("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(null==r||e&&r.unexpandable){if(e&&null==r&&"\\"===n[0]&&!this.isDefined(n))throw new Jgt("Undefined control sequence: "+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,o=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs)for(var a=(i=i.slice()).length-1;a>=0;--a){var s=i[a];if("#"===s.text){if(0===a)throw new Jgt("Incomplete placeholder at end of macro body",s);if("#"===(s=i[--a]).text)i.splice(a+1,1);else{if(!/^[1-9]$/.test(s.text))throw new Jgt("Not a valid argument number",s);i.splice(a,2,...o[+s.text-1])}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new dvt(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(!1===this.expandOnce(!0)){var r=this.stack.pop();r.treatAsRelax&&(r.noexpand=!1,r.treatAsRelax=!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t?t.map(e=>e.text).join(""):t}_getExpansion(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var n=this.lexer.catcodes[e];if(null!=n&&13!==n)return}var r="function"==typeof t?t(this):t;if("string"==typeof r){var i=0;if(r.includes("#"))for(var o=r.replace(/##/g,"");o.includes("#"+(i+1));)++i;for(var a=new ibt(r,this.settings),s=[],l=a.lex();"EOF"!==l.text;)s.push(l),l=a.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||Kvt.hasOwnProperty(e)||Jmt.math.hasOwnProperty(e)||Jmt.text.hasOwnProperty(e)||fbt.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:Kvt.hasOwnProperty(e)&&!Kvt[e].primitive}}var mbt=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Obt=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g","ʰ":"h","ⁱ":"i","ʲ":"j","ᵏ":"k","ˡ":"l","ᵐ":"m","ⁿ":"n","ᵒ":"o","ᵖ":"p","ʳ":"r","ˢ":"s","ᵗ":"t","ᵘ":"u","ᵛ":"v","ʷ":"w","ˣ":"x","ʸ":"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Abt={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},ybt={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"};let vbt=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new gbt(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new Jgt("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new dvt("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.has(i.text))break;if(n&&i.text===n)break;if(t&&Kvt[i.text]&&Kvt[i.text].infix)break;var o=this.parseAtom(n);if(!o)break;"internal"!==o.type&&r.push(o)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t,n=-1,r=0;r<e.length;r++){var i=e[r];if("infix"===i.type){if(-1!==n)throw new Jgt("only one infix operator per group",i.token);n=r,t=i.replaceWith}}if(-1!==n&&t){var o,a,s=e.slice(0,n),l=e.slice(n+1);return o=1===s.length&&"ordgroup"===s[0].type?s[0]:{type:"ordgroup",mode:this.mode,body:s},a=1===l.length&&"ordgroup"===l[0].type?l[0]:{type:"ordgroup",mode:this.mode,body:l},["\\\\abovefrac"===t?this.callFunction(t,[o,e[n],a],[]):this.callFunction(t,[o,a],[])]}return e}handleSupSubscript(e){var t,n=this.fetch(),r=n.text;this.consume(),this.consumeSpaces();do{var i;t=this.parseGroup(e)}while("internal"===(null==(i=t)?void 0:i.type));if(!t)throw new Jgt("Expected group after '"+r+"'",n);return t}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:"textord",mode:"text",text:e[n]});var r={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[r]}}parseAtom(e){var t,n,r=this.parseGroup("atom",e);if("internal"===(null==r?void 0:r.type))return r;if("text"===this.mode)return r;for(;;){this.consumeSpaces();var i=this.fetch();if("\\limits"===i.text||"\\nolimits"===i.text){if(r&&"op"===r.type){var o="\\limits"===i.text;r.limits=o,r.alwaysHandleSupSub=!0}else{if(!r||"operatorname"!==r.type)throw new Jgt("Limit controls must follow a math operator",i);r.alwaysHandleSupSub&&(r.limits="\\limits"===i.text)}this.consume()}else if("^"===i.text){if(t)throw new Jgt("Double superscript",i);t=this.handleSupSubscript("superscript")}else if("_"===i.text){if(n)throw new Jgt("Double subscript",i);n=this.handleSupSubscript("subscript")}else if("'"===i.text){if(t)throw new Jgt("Double superscript",i);var a={type:"textord",mode:this.mode,text:"\\prime"},s=[a];for(this.consume();"'"===this.fetch().text;)s.push(a),this.consume();"^"===this.fetch().text&&s.push(this.handleSupSubscript("superscript")),t={type:"ordgroup",mode:this.mode,body:s}}else{if(!Obt[i.text])break;var l=mbt.test(i.text),c=[];for(c.push(new dvt(Obt[i.text])),this.consume();;){var u=this.fetch().text;if(!Obt[u])break;if(mbt.test(u)!==l)break;c.unshift(new dvt(Obt[u])),this.consume()}var h=this.subparse(c);l?n={type:"ordgroup",mode:"math",body:h}:t={type:"ordgroup",mode:"math",body:h}}}return t||n?{type:"supsub",mode:this.mode,base:r,sup:t,sub:n}:r}parseFunction(e,t){var n=this.fetch(),r=n.text,i=Kvt[r];if(!i)return null;if(this.consume(),t&&"atom"!==t&&!i.allowedInArgument)throw new Jgt("Got function '"+r+"' with no arguments"+(t?" as "+t:""),n);if("text"===this.mode&&!i.allowedInText)throw new Jgt("Can't use function '"+r+"' in text mode",n);if("math"===this.mode&&!1===i.allowedInMath)throw new Jgt("Can't use function '"+r+"' in math mode",n);var{args:o,optArgs:a}=this.parseArguments(r,i);return this.callFunction(r,o,a,n,e)}callFunction(e,t,n,r,i){var o={funcName:e,parser:this,token:r,breakOnTokenText:i},a=Kvt[e];if(a&&a.handler)return a.handler(o,t,n);throw new Jgt("No function handler for "+e)}parseArguments(e,t){var n=t.numArgs+t.numOptionalArgs;if(0===n)return{args:[],optArgs:[]};for(var r=[],i=[],o=0;o<n;o++){var a=t.argTypes&&t.argTypes[o],s=o<t.numOptionalArgs;("primitive"in t&&t.primitive&&null==a||"sqrt"===t.type&&1===o&&null==i[0])&&(a="primitive");var l=this.parseGroupOfType("argument to '"+e+"'",a,s);if(s)i.push(l);else{if(null==l)throw new Jgt("Null argument, please report this as a bug");r.push(l)}}return{args:r,optArgs:i}}parseGroupOfType(e,t,n){switch(t){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,t);case"hbox":var r=this.parseArgumentGroup(n,"text");return null!=r?{type:"styling",mode:r.mode,body:[r],style:"text",resetFont:!0}:null;case"raw":var i=this.parseStringGroup("raw",n);return null!=i?{type:"raw",mode:"text",string:i.text}:null;case"primitive":if(n)throw new Jgt("A primitive argument cannot be optional");var o=this.parseGroup(e);if(null==o)throw new Jgt("Expected group as "+e,this.fetch());return o;case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new Jgt("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;" "===this.fetch().text;)this.consume()}parseStringGroup(e,t){var n=this.gullet.scanArgument(t);if(null==n)return null;for(var r,i="";"EOF"!==(r=this.fetch()).text;)i+=r.text,this.consume();return this.consume(),n.text=i,n}parseRegexGroup(e,t){for(var n,r=this.fetch(),i=r,o="";"EOF"!==(n=this.fetch()).text&&e.test(o+n.text);)o+=(i=n).text,this.consume();if(""===o)throw new Jgt("Invalid "+t+": '"+r.text+"'",r);return r.range(i,o)}parseColorGroup(e){var t=this.parseStringGroup("color",e);if(null==t)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new Jgt("Invalid color: '"+t.text+"'",t);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r="#"+r),{type:"color-token",mode:this.mode,color:r}}parseSizeGroup(e){var t,n=!1;if(this.gullet.consumeSpaces(),!(t=e||"{"===this.gullet.future().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new Jgt("Invalid size: '"+t.text+"'",t);var i={number:+(r[1]+r[2]),unit:r[3]};if(!Qmt(i))throw new Jgt("Invalid unit: '"+i.unit+"'",t);return{type:"size",mode:this.mode,value:i,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),null==t)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(e,t){var n=this.gullet.scanArgument(e);if(null==n)return null;var r=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var i=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var o={type:"ordgroup",mode:this.mode,loc:n.loc,body:i};return t&&this.switchMode(r),o}parseGroup(e,t){var n,r=this.fetch(),i=r.text;if("{"===i||"\\begingroup"===i){this.consume();var o="{"===i?"}":"\\endgroup";this.gullet.beginGroup();var a=this.parseExpression(!1,o),s=this.fetch();this.expect(o),this.gullet.endGroup(),n={type:"ordgroup",mode:this.mode,loc:hvt.range(r,s),body:a,semisimple:"\\begingroup"===i||void 0}}else if(null==(n=this.parseFunction(t,e)||this.parseSymbol())&&"\\"===i[0]&&!fbt.hasOwnProperty(i)){if(this.settings.throwOnError)throw new Jgt("Undefined control sequence: "+i,r);n=this.formatUnsupportedCmd(i),this.consume()}return n}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n];if("textord"===r.type){var i=r.text,o=e[n+1];if(o&&"textord"===o.type){if("-"===i&&"-"===o.text){var a=e[n+2];n+1<t&&a&&"textord"===a.type&&"-"===a.text?(e.splice(n,3,{type:"textord",mode:"text",loc:hvt.range(r,a),text:"---"}),t-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:hvt.range(r,o),text:"--"}),t-=1)}"'"!==i&&"`"!==i||o.text!==i||(e.splice(n,2,{type:"textord",mode:"text",loc:hvt.range(r,o),text:i+i}),t-=1)}}}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),r="*"===n.charAt(0);if(r&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new Jgt("\\verb assertion failed --\n please report what input caused this bug");return{type:"verb",mode:"text",body:n=n.slice(1,-1),star:r}}ybt.hasOwnProperty(t[0])&&!Jmt[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=ybt[t[0]]+t.slice(1));var i,o=nbt.exec(t);if(o&&("i"===(t=t.substring(0,o.index))?t="ı":"j"===t&&(t="ȷ")),Jmt[this.mode][t]){this.settings.strict&&"math"===this.mode&&QOt.includes(t)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var a=Jmt[this.mode][t].group,s=hvt.range(e);i=a in syt?{type:"atom",mode:this.mode,family:a,loc:s,text:t}:{type:a,mode:this.mode,loc:s,text:t}}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(wmt(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),i={type:"textord",mode:"text",loc:hvt.range(e),text:t}}if(this.consume(),o)for(var l=0;l<o[0].length;l++){var c=o[0][l];if(!Abt[c])throw new Jgt("Unknown accent ' "+c+"'",e);var u=Abt[c][this.mode]||Abt[c].text;if(!u)throw new Jgt("Accent "+c+" unsupported in "+this.mode+" mode",e);i={type:"accent",mode:this.mode,loc:hvt.range(e),label:u,isStretchy:!1,isShifty:!0,base:i}}return i}};vbt.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var bbt=function(e,t){if(!("string"==typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new vbt(e,t);delete n.gullet.macros.current["\\df@tag"];var r=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new Jgt("\\tag works only in display equations");r=[{type:"tag",mode:"text",body:r,tag:n.subparse([new dvt("\\df@tag")])}]}return r},xbt=function(e,t,n){t.textContent="";var r=Tbt(e,n).toNode();t.appendChild(r)};"undefined"!=typeof document&&"CSS1Compat"!==document.compatMode&&(xbt=function(){throw new Jgt("KaTeX doesn't work in quirks mode.")});var wbt=function(e,t){return Tbt(e,t).toMarkup()},kbt=function(e,t){var n=new hmt(t);return bbt(e,n)},Sbt=function(e,t,n){if(n.throwOnError||!(e instanceof Jgt))throw e;var r=JOt(["katex-error"],[new zmt(t)]);return r.setAttribute("title",e.toString()),r.setAttribute("style","color:"+n.errorColor),r},Tbt=function(e,t){var n=new hmt(t);try{return function(e,t,n){var r,i=eyt(n);if("mathml"===n.output)return ZAt(e,t,i,n.displayMode,!0);if("html"===n.output){var o=BAt(e,i);r=JOt(["katex"],[o])}else{var a=ZAt(e,t,i,n.displayMode,!1),s=BAt(e,i);r=JOt(["katex"],[a,s])}return tyt(r,n)}(bbt(e,n),e,n)}catch(r){return Sbt(r,e,n)}},$bt=function(e,t){var n=new hmt(t);try{return function(e,t,n){var r=BAt(e,eyt(n)),i=JOt(["katex"],[r]);return tyt(i,n)}(bbt(e,n),0,n)}catch(r){return Sbt(r,e,n)}},_bt="0.16.47",Cbt={Span:Nmt,Anchor:Xmt,SymbolNode:zmt,SvgNode:qmt,PathNode:Vmt,LineNode:Wmt},Qbt={version:_bt,render:xbt,renderToString:wbt,ParseError:Jgt,SETTINGS_SCHEMA:lmt,__parse:kbt,__renderToDomTree:Tbt,__renderToHTMLTree:$bt,__setFontMetrics:Gmt,__defineSymbol:eOt,__defineFunction:AAt,__defineMacro:uvt,__domTree:Cbt};const Pbt=Object.freeze(Object.defineProperty({__proto__:null,ParseError:Jgt,SETTINGS_SCHEMA:lmt,__defineFunction:AAt,__defineMacro:uvt,__defineSymbol:eOt,__domTree:Cbt,__parse:kbt,__renderToDomTree:Tbt,__renderToHTMLTree:$bt,__setFontMetrics:Gmt,default:Qbt,get render(){return xbt},renderToString:wbt,version:_bt},Symbol.toStringTag,{value:"Module"}));function Ebt(){if("undefined"!=typeof globalThis)return globalThis}function Rbt(){var e;return Boolean(null==(e=Ebt())?void 0:e.mermaidCaptureSizes)}function Bbt(){return"undefined"==typeof location?"browser-dev":`${location.pathname}${location.search}`}function Ibt(e,t){const n=Ebt();if(!n)return;const r=t.node(),i=(r&&"ownerSVGElement"in r?r.ownerSVGElement:null)??r,o=(null==i?void 0:i.id)??"(unknown)";n.mermaidCapturedSizes??(n.mermaidCapturedSizes=[]);const a={svgId:o,sizes:e};n.mermaidCapturedSizes.push(a),n.mermaidLastCapturedSizes=a}function Lbt(e,t){const n=[];for(const r of t.nodes)r.isGroup||n.push({id:r.id,width:r.width??0,height:r.height??0});0!==n.length&&Ibt({metadata:{captureVersion:1,capturedAt:(new Date).toISOString(),capturedFrom:Bbt()},nodes:n},e)}hRe(Ebt,"getCaptureGlobal"),hRe(Rbt,"shouldCaptureSizes"),hRe(Bbt,"capturedFromLocation"),hRe(Ibt,"emitCapturedSizes"),hRe(Lbt,"captureNodeSizes");const Dbt=Object.freeze(Object.defineProperty({__proto__:null,captureNodeSizes:Lbt,shouldCaptureSizes:Rbt},Symbol.toStringTag,{value:"Module"}));class Mbt{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,t=e._prev;if(t!==e)return Nbt(t),t}enqueue(e){var t=this._sentinel;e._prev&&e._next&&Nbt(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t}toString(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,Xbt)),n=n._prev;return"["+e.join(", ")+"]"}}function Nbt(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Xbt(e,t){if("_next"!==e&&"_prev"!==e)return t}var Fbt=$g(1);function Ubt(e,t){if(e.nodeCount()<=1)return[];var n=function(e,t){var n=new MJe,r=0,i=0;VA(e.nodes(),function(e){n.setNode(e,{v:e,in:0,out:0})}),VA(e.edges(),function(e){var o=n.edge(e.v,e.w)||0,a=t(e),s=o+a;n.setEdge(e.v,e.w,s),i=Math.max(i,n.node(e.v).out+=a),r=Math.max(r,n.node(e.w).in+=a)});var o=Iy(i+r+3).map(function(){return new Mbt}),a=r+1;return VA(n.nodes(),function(e){qbt(o,a,n.node(e))}),{graph:n,buckets:o,zeroIdx:a}}(e,t||Fbt),r=function(e,t,n){var r,i=[],o=t[t.length-1],a=t[0];for(;e.nodeCount();){for(;r=a.dequeue();)zbt(e,t,n,r);for(;r=o.dequeue();)zbt(e,t,n,r);if(e.nodeCount())for(var s=t.length-2;s>0;--s)if(r=t[s].dequeue()){i=i.concat(zbt(e,t,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return Km(JA(r,function(t){return e.outEdges(t.v,t.w)}))}function zbt(e,t,n,r,i){var o=i?[]:void 0;return VA(e.inEdges(r.v),function(r){var a=e.edge(r),s=e.node(r.v);i&&o.push({v:r.v,w:r.w}),s.out-=a,qbt(t,n,s)}),VA(e.outEdges(r.v),function(r){var i=e.edge(r),o=r.w,a=e.node(o);a.in-=i,qbt(t,n,a)}),e.removeNode(r.v),o}function qbt(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}function Vbt(e){var t,n="greedy"===e.graph().acyclicer?Ubt(e,(t=e,function(e){return t.edge(e).weight})):function(e){var t=[],n={},r={};function i(o){Object.prototype.hasOwnProperty.call(r,o)||(r[o]=!0,n[o]=!0,VA(e.outEdges(o),function(e){Object.prototype.hasOwnProperty.call(n,e.w)?t.push(e):i(e.w)}),delete n[o])}return VA(e.nodes(),i),t}(e);VA(n,function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,qy("rev"))})}function Wbt(e,t,n,r){var i;do{i=qy(r)}while(e.hasNode(i));return n.dummy=t,e.setNode(i,n),i}function jbt(e){var t=new MJe({multigraph:e.isMultigraph()}).setGraph(e.graph());return VA(e.nodes(),function(n){e.children(n).length||t.setNode(n,e.node(n))}),VA(e.edges(),function(n){t.setEdge(n,e.edge(n))}),t}function Ybt(e,t){var n,r,i=e.x,o=e.y,a=t.x-i,s=t.y-o,l=e.width/2,c=e.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*l>Math.abs(a)*c?(s<0&&(c=-c),n=c*a/s,r=c):(a<0&&(l=-l),n=l,r=l*s/a),{x:i+n,y:o+r}}function Zbt(e){var t=JA(Iy(Hbt(e)+1),function(){return[]});return VA(e.nodes(),function(n){var r=e.node(n),i=r.rank;gy(i)||(t[i][r.order]=n)}),t}function Gbt(e,t,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),Wbt(e,"border",i,t)}function Hbt(e){return yy(JA(e.nodes(),function(t){var n=e.node(t).rank;if(!gy(n))return n}))}function Kbt(e,t){return t()}function Jbt(e,t,n,r,i,o){var a={width:0,height:0,rank:o,borderType:t},s=i[t][o-1],l=Wbt(e,"border",a,n);i[t][o]=l,e.setParent(l,r),s&&e.setEdge(s,l,{weight:1})}function ext(e){var t=e.graph().rankdir.toLowerCase();"bt"!==t&&"rl"!==t||function(e){VA(e.nodes(),function(t){rxt(e.node(t))}),VA(e.edges(),function(t){var n=e.edge(t);VA(n.points,rxt),Object.prototype.hasOwnProperty.call(n,"y")&&rxt(n)})}(e),"lr"!==t&&"rl"!==t||(!function(e){VA(e.nodes(),function(t){ixt(e.node(t))}),VA(e.edges(),function(t){var n=e.edge(t);VA(n.points,ixt),Object.prototype.hasOwnProperty.call(n,"x")&&ixt(n)})}(e),txt(e))}function txt(e){VA(e.nodes(),function(t){nxt(e.node(t))}),VA(e.edges(),function(t){nxt(e.edge(t))})}function nxt(e){var t=e.width;e.width=e.height,e.height=t}function rxt(e){e.y=-e.y}function ixt(e){var t=e.x;e.x=e.y,e.y=t}function oxt(e){e.graph().dummyChains=[],VA(e.edges(),function(t){!function(e,t){var n=t.v,r=e.node(n).rank,i=t.w,o=e.node(i).rank,a=t.name,s=e.edge(t),l=s.labelRank;if(o===r+1)return;e.removeEdge(t);var c,u,h=void 0;for(u=0,++r;r<o;++u,++r)s.points=[],c=Wbt(e,"edge",h={width:0,height:0,edgeLabel:s,edgeObj:t,rank:r},"_d"),r===l&&(h.width=s.width,h.height=s.height,h.dummy="edge-label",h.labelpos=s.labelpos),e.setEdge(n,c,{weight:s.weight},a),0===u&&e.graph().dummyChains.push(c),n=c;e.setEdge(n,i,{weight:s.weight},a)}(e,t)})}function axt(e){var t={};VA(e.sources(),function n(r){var i=e.node(r);if(Object.prototype.hasOwnProperty.call(t,r))return i.rank;t[r]=!0;var o=xy(JA(e.outEdges(r),function(t){return n(t.w)-e.edge(t).minlen}));return o!==Number.POSITIVE_INFINITY&&null!=o||(o=0),i.rank=o})}function sxt(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}function lxt(e){var t,n,r=new MJe({directed:!1}),i=e.nodes()[0],o=e.nodeCount();for(r.setNode(i,{});cxt(r,e)<o;)t=uxt(r,e),n=r.hasNode(t.v)?sxt(e,t):-sxt(e,t),hxt(r,e,n);return r}function cxt(e,t){return VA(e.nodes(),function n(r){VA(t.nodeEdges(r),function(i){var o=i.v,a=r===o?i.w:o;e.hasNode(a)||sxt(t,i)||(e.setNode(a,{}),e.setEdge(r,a,{}),n(a))})}),e.nodeCount()}function uxt(e,t){return wy(t.edges(),function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return sxt(t,n)})}function hxt(e,t,n){VA(e.nodes(),function(e){t.node(e).rank+=n})}function dxt(e,t,n){Wf(t)||(t=[t]);var r=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],o={};return VA(t,function(t){if(!e.hasNode(t))throw new Error("Graph does not have node: "+t);pxt(e,t,"post"===n,o,r,i)}),i}function pxt(e,t,n,r,i,o){Object.prototype.hasOwnProperty.call(r,t)||(r[t]=!0,n||o.push(t),VA(i(t),function(t){pxt(e,t,n,r,i,o)}),n&&o.push(t))}function fxt(e){e=function(e){var t=(new MJe).setGraph(e.graph());return VA(e.nodes(),function(n){t.setNode(n,e.node(n))}),VA(e.edges(),function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),t}(e),axt(e);var t,n=lxt(e);for(Oxt(n),gxt(n,e);t=yxt(n);)bxt(n,e,t,vxt(n,e,t))}function gxt(e,t){var n=function(e,t){return dxt(e,t,"post")}(e,e.nodes());VA(n=n.slice(0,n.length-1),function(n){!function(e,t,n){var r=e.node(n),i=r.parent;e.edge(n,i).cutvalue=mxt(e,t,n)}(e,t,n)})}function mxt(e,t,n){var r=e.node(n).parent,i=!0,o=t.edge(n,r),a=0;return o||(i=!1,o=t.edge(r,n)),a=o.weight,VA(t.nodeEdges(n),function(o){var s,l,c=o.v===n,u=c?o.w:o.v;if(u!==r){var h=c===i,d=t.edge(o).weight;if(a+=h?d:-d,s=n,l=u,e.hasEdge(s,l)){var p=e.edge(n,u).cutvalue;a+=h?-p:p}}}),a}function Oxt(e,t){arguments.length<2&&(t=e.nodes()[0]),Axt(e,{},1,t)}function Axt(e,t,n,r,i){var o=n,a=e.node(r);return t[r]=!0,VA(e.neighbors(r),function(i){Object.prototype.hasOwnProperty.call(t,i)||(n=Axt(e,t,n,i,r))}),a.low=o,a.lim=n++,i?a.parent=i:delete a.parent,n}function yxt(e){return GA(e.edges(),function(t){return e.edge(t).cutvalue<0})}function vxt(e,t,n){var r=n.v,i=n.w;t.hasEdge(r,i)||(r=n.w,i=n.v);var o=e.node(r),a=e.node(i),s=o,l=!1;return o.lim>a.lim&&(s=a,l=!0),wy(jA(t.edges(),function(t){return l===xxt(e,e.node(t.v),s)&&l!==xxt(e,e.node(t.w),s)}),function(e){return sxt(t,e)})}function bxt(e,t,n,r){var i=n.v,o=n.w;e.removeEdge(i,o),e.setEdge(r.v,r.w,{}),Oxt(e),gxt(e,t),function(e,t){var n=GA(e.nodes(),function(e){return!t.node(e).parent}),r=function(e,t){return dxt(e,t,"pre")}(e,n);VA(r=r.slice(1),function(n){var r=e.node(n).parent,i=t.edge(n,r),o=!1;i||(i=t.edge(r,n),o=!0),t.node(n).rank=t.node(r).rank+(o?i.minlen:-i.minlen)})}(e,t)}function xxt(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}function wxt(e){switch(e.graph().ranker){case"network-simplex":default:Sxt(e);break;case"tight-tree":!function(e){axt(e),lxt(e)}(e);break;case"longest-path":kxt(e)}}new Error,fxt.initLowLimValues=Oxt,fxt.initCutValues=gxt,fxt.calcCutValue=mxt,fxt.leaveEdge=yxt,fxt.enterEdge=vxt,fxt.exchangeEdges=bxt;var kxt=axt;function Sxt(e){fxt(e)}function Txt(e){var t=Wbt(e,"root",{},"_root"),n=function(e){var t={};function n(r,i){var o=e.children(r);o&&o.length&&VA(o,function(e){n(e,i+1)}),t[r]=i}return VA(e.children(),function(e){n(e,1)}),t}(e),r=yy(ly(n))-1,i=2*r+1;e.graph().nestingRoot=t,VA(e.edges(),function(t){e.edge(t).minlen*=i});var o=function(e){return Dy(e.edges(),function(t,n){return t+e.edge(n).weight},0)}(e)+1;VA(e.children(),function(a){$xt(e,t,i,o,r,n,a)}),e.graph().nodeRankFactor=i}function $xt(e,t,n,r,i,o,a){var s=e.children(a);if(s.length){var l=Gbt(e,"_bt"),c=Gbt(e,"_bb"),u=e.node(a);e.setParent(l,a),u.borderTop=l,e.setParent(c,a),u.borderBottom=c,VA(s,function(s){$xt(e,t,n,r,i,o,s);var u=e.node(s),h=u.borderTop?u.borderTop:s,d=u.borderBottom?u.borderBottom:s,p=u.borderTop?r:2*r,f=h!==d?1:i-o[a]+1;e.setEdge(l,h,{weight:p,minlen:f,nestingEdge:!0}),e.setEdge(d,c,{weight:p,minlen:f,nestingEdge:!0})}),e.parent(a)||e.setEdge(t,l,{weight:0,minlen:i+o[a]})}else a!==t&&e.setEdge(t,a,{weight:0,minlen:n})}function _xt(e,t,n){var r=function(e){var t;for(;e.hasNode(t=qy("_root")););return t}(e),i=new MJe({compound:!0}).setGraph({root:r}).setDefaultNodeLabel(function(t){return e.node(t)});return VA(e.nodes(),function(o){var a=e.node(o),s=e.parent(o);(a.rank===t||a.minRank<=t&&t<=a.maxRank)&&(i.setNode(o),i.setParent(o,s||r),VA(e[n](o),function(t){var n=t.v===o?t.w:t.v,r=i.edge(n,o),a=gy(r)?0:r.weight;i.setEdge(n,o,{weight:e.edge(t).weight+a})}),Object.prototype.hasOwnProperty.call(a,"minRank")&&i.setNode(o,{borderLeft:a.borderLeft[t],borderRight:a.borderRight[t]}))}),i}function Cxt(e,t){for(var n=0,r=1;r<t.length;++r)n+=Qxt(e,t[r-1],t[r]);return n}function Qxt(e,t,n){for(var r,i,o=(r=n,i=JA(n,function(e,t){return t}),function(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var s=r<o?t[r]:void 0;n(a,e[r],s)}return a}(r||[],i||[],zg)),a=Km(JA(t,function(t){return Ny(JA(e.outEdges(t),function(t){return{pos:o[t.w],weight:e.edge(t).weight}}),"pos")})),s=1;s<n.length;)s<<=1;var l=2*s-1;s-=1;var c=JA(new Array(l),function(){return 0}),u=0;return VA(a.forEach(function(e){var t=e.pos+s;c[t]+=e.weight;for(var n=0;t>0;)t%2&&(n+=c[t+1]),c[t=t-1>>1]+=e.weight;u+=e.weight*n})),u}function Pxt(e,t){var n={};return VA(e,function(e,t){var r=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};gy(e.barycenter)||(r.barycenter=e.barycenter,r.weight=e.weight)}),VA(t.edges(),function(e){var t=n[e.v],r=n[e.w];gy(t)||gy(r)||(r.indegree++,t.out.push(n[e.w]))}),function(e){var t=[];function n(e){return function(t){t.merged||(gy(t.barycenter)||gy(e.barycenter)||t.barycenter>=e.barycenter)&&function(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight);t.weight&&(n+=t.barycenter*t.weight,r+=t.weight);e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}function r(t){return function(n){n.in.push(t),0===--n.indegree&&e.push(n)}}for(;e.length;){var i=e.pop();t.push(i),VA(i.in.reverse(),n(i)),VA(i.out,r(i))}return JA(jA(t,function(e){return!e.merged}),function(e){return Ey(e,["vs","i","barycenter","weight"])})}(jA(n,function(e){return!e.indegree}))}function Ext(e,t){var n,r=function(e,t){var n={lhs:[],rhs:[]};return VA(e,function(e){t(e)?n.lhs.push(e):n.rhs.push(e)}),n}(e,function(e){return Object.prototype.hasOwnProperty.call(e,"barycenter")}),i=r.lhs,o=Ny(r.rhs,function(e){return-e.i}),a=[],s=0,l=0,c=0;i.sort((n=!!t,function(e,t){return e.barycenter<t.barycenter?-1:e.barycenter>t.barycenter?1:n?t.i-e.i:e.i-t.i})),c=Rxt(a,o,c),VA(i,function(e){c+=e.vs.length,a.push(e.vs),s+=e.barycenter*e.weight,l+=e.weight,c=Rxt(a,o,c)});var u={vs:Km(a)};return l&&(u.barycenter=s/l,u.weight=l),u}function Rxt(e,t,n){for(var r;t.length&&(r=zA(t)).i<=n;)t.pop(),e.push(r.vs),n++;return n}function Bxt(e,t,n,r){var i=e.children(t),o=e.node(t),a=o?o.borderLeft:void 0,s=o?o.borderRight:void 0,l={};a&&(i=jA(i,function(e){return e!==a&&e!==s}));var c=function(e,t){return JA(t,function(t){var n=e.inEdges(t);if(n.length){var r=Dy(n,function(t,n){var r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}},{sum:0,weight:0});return{v:t,barycenter:r.sum/r.weight,weight:r.weight}}return{v:t}})}(e,i);VA(c,function(t){if(e.children(t.v).length){var i=Bxt(e,t.v,n,r);l[t.v]=i,Object.prototype.hasOwnProperty.call(i,"barycenter")&&(a=i,gy((o=t).barycenter)?(o.barycenter=a.barycenter,o.weight=a.weight):(o.barycenter=(o.barycenter*o.weight+a.barycenter*a.weight)/(o.weight+a.weight),o.weight+=a.weight))}var o,a});var u=Pxt(c,n);!function(e,t){VA(e,function(e){e.vs=Km(e.vs.map(function(e){return t[e]?t[e].vs:e}))})}(u,l);var h=Ext(u,r);if(a&&(h.vs=Km([a,h.vs,s]),e.predecessors(a).length)){var d=e.node(e.predecessors(a)[0]),p=e.node(e.predecessors(s)[0]);Object.prototype.hasOwnProperty.call(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+d.order+p.order)/(h.weight+2),h.weight+=2}return h}function Ixt(e){var t=Hbt(e),n=Lxt(e,Iy(1,t+1),"inEdges"),r=Lxt(e,Iy(t-1,-1,-1),"outEdges"),i=function(e){var t={},n=jA(e.nodes(),function(t){return!e.children(t).length}),r=yy(JA(n,function(t){return e.node(t).rank})),i=JA(Iy(r+1),function(){return[]});return VA(Ny(n,function(t){return e.node(t).rank}),function n(r){if(!sy(t,r)){t[r]=!0;var o=e.node(r);i[o.rank].push(r),VA(e.successors(r),n)}}),i}(e);Mxt(e,i);for(var o,a=Number.POSITIVE_INFINITY,s=0,l=0;l<4;++s,++l){Dxt(s%2?n:r,s%4>=2);var c=Cxt(e,i=Zbt(e));c<a&&(l=0,o=rA(i),a=c)}Mxt(e,o)}function Lxt(e,t,n){return JA(t,function(t){return _xt(e,t,n)})}function Dxt(e,t){var n=new MJe;VA(e,function(e){var r=e.graph().root,i=Bxt(e,r,n,t);VA(i.vs,function(t,n){e.node(t).order=n}),function(e,t,n){var r,i={};VA(n,function(n){for(var o,a,s=e.parent(n);s;){if((o=e.parent(s))?(a=i[o],i[o]=s):(a=r,r=s),a&&a!==s)return void t.setEdge(a,s);s=o}})}(e,n,i.vs)})}function Mxt(e,t){VA(t,function(t){VA(t,function(t,n){e.node(t).order=n})})}function Nxt(e){var t=function(e){var t={},n=0;function r(i){var o=n;VA(e.children(i),r),t[i]={low:o,lim:n++}}return VA(e.children(),r),t}(e);VA(e.graph().dummyChains,function(n){for(var r=e.node(n),i=r.edgeObj,o=function(e,t,n,r){var i,o,a=[],s=[],l=Math.min(t[n].low,t[r].low),c=Math.max(t[n].lim,t[r].lim);i=n;do{i=e.parent(i),a.push(i)}while(i&&(t[i].low>l||c>t[i].lim));o=i,i=r;for(;(i=e.parent(i))!==o;)s.push(i);return{path:a.concat(s.reverse()),lca:o}}(e,t,i.v,i.w),a=o.path,s=o.lca,l=0,c=a[l],u=!0;n!==i.w;){if(r=e.node(n),u){for(;(c=a[l])!==s&&e.node(c).maxRank<r.rank;)l++;c===s&&(u=!1)}if(!u){for(;l<a.length-1&&e.node(c=a[l+1]).minRank<=r.rank;)l++;c=a[l]}e.setParent(n,c),n=e.successors(n)[0]}})}function Xxt(e,t){var n={};return Dy(t,function(t,r){var i=0,o=0,a=t.length,s=zA(r);return VA(r,function(t,l){var c=function(e,t){if(e.node(t).dummy)return GA(e.predecessors(t),function(t){return e.node(t).dummy})}(e,t),u=c?e.node(c).order:a;(c||t===s)&&(VA(r.slice(o,l+1),function(t){VA(e.predecessors(t),function(r){var o=e.node(r),a=o.order;!(a<i||u<a)||o.dummy&&e.node(t).dummy||Fxt(n,r,t)})}),o=l+1,i=u)}),r}),n}function Fxt(e,t,n){if(t>n){var r=t;t=n,n=r}Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,configurable:!0,value:{},writable:!0});var i=e[t];Object.defineProperty(i,n,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function Uxt(e,t,n){if(t>n){var r=t;t=n,n=r}return!!e[t]&&Object.prototype.hasOwnProperty.call(e[t],n)}function zxt(e,t,n,r,i){var o={},a=function(e,t,n,r){var i=new MJe,o=e.graph(),a=function(e,t,n){return function(r,i,o){var a,s=r.node(i),l=r.node(o),c=0;if(c+=s.width/2,Object.prototype.hasOwnProperty.call(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":a=-s.width/2;break;case"r":a=s.width/2}if(a&&(c+=n?a:-a),a=0,c+=(s.dummy?t:e)/2,c+=(l.dummy?t:e)/2,c+=l.width/2,Object.prototype.hasOwnProperty.call(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":a=l.width/2;break;case"r":a=-l.width/2}return a&&(c+=n?a:-a),a=0,c}}(o.nodesep,o.edgesep,r);return VA(t,function(t){var r;VA(t,function(t){var o=n[t];if(i.setNode(o),r){var s=n[r],l=i.edge(s,o);i.setEdge(s,o,Math.max(a(e,t,r),l||0))}r=t})}),i}(e,t,n,i),s=i?"borderLeft":"borderRight";function l(e,t){for(var n=a.nodes(),r=n.pop(),i={};r;)i[r]?e(r):(i[r]=!0,n.push(r),n=n.concat(t(r))),r=n.pop()}return l(function(e){o[e]=a.inEdges(e).reduce(function(e,t){return Math.max(e,o[t.v]+a.edge(t))},0)},a.predecessors.bind(a)),l(function(t){var n=a.outEdges(t).reduce(function(e,t){return Math.min(e,o[t.w]-a.edge(t))},Number.POSITIVE_INFINITY),r=e.node(t);n!==Number.POSITIVE_INFINITY&&r.borderType!==s&&(o[t]=Math.max(o[t],n))},a.successors.bind(a)),VA(r,function(e){o[e]=o[n[e]]}),o}function qxt(e,t){return wy(ly(t),function(t){var n,r,i=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;return r=function(t,n){var r=function(e,t){return e.node(t).width}(e,n)/2;i=Math.max(t+r,i),o=Math.min(t-r,o)},null==(n=t)||$A(n,qA(r),Sm),i-o})}function Vxt(e){var t,n=Zbt(e),r=by(Xxt(e,n),function(e,t){var n={};function r(t,r,i,o,a){var s;VA(Iy(r,i),function(r){s=t[r],e.node(s).dummy&&VA(e.predecessors(s),function(t){var r=e.node(t);r.dummy&&(r.order<o||r.order>a)&&Fxt(n,t,s)})})}return Dy(t,function(t,n){var i,o=-1,a=0;return VA(n,function(s,l){if("border"===e.node(s).dummy){var c=e.predecessors(s);c.length&&(i=e.node(c[0]).order,r(n,a,l,o,i),a=l,o=i)}r(n,a,n.length,i,t.length)}),n}),n}(e,n)),i={};VA(["u","d"],function(o){t="u"===o?n:ly(n).reverse(),VA(["l","r"],function(n){"r"===n&&(t=JA(t,function(e){return ly(e).reverse()}));var a=("u"===o?e.predecessors:e.successors).bind(e),s=function(e,t,n,r){var i={},o={},a={};return VA(t,function(e){VA(e,function(e,t){i[e]=e,o[e]=e,a[e]=t})}),VA(t,function(e){var t=-1;VA(e,function(e){var s=r(e);if(s.length)for(var l=((s=Ny(s,function(e){return a[e]})).length-1)/2,c=Math.floor(l),u=Math.ceil(l);c<=u;++c){var h=s[c];o[e]===e&&t<a[h]&&!Uxt(n,e,h)&&(o[h]=e,o[e]=i[e]=i[h],t=a[h])}})}),{root:i,align:o}}(0,t,r,a),l=zxt(e,t,s.root,s.align,"r"===n);"r"===n&&(l=Oy(l,function(e){return-e})),i[o+n]=l})});var o=qxt(e,i);return function(e,t){var n=ly(t),r=xy(n),i=yy(n);VA(["u","d"],function(n){VA(["l","r"],function(o){var a,s=n+o,l=e[s];if(l!==t){var c=ly(l);(a="l"===o?r-xy(c):i-yy(c))&&(e[s]=Oy(l,function(e){return e+a}))}})})}(i,o),function(e,t){return Oy(e.ul,function(n,r){if(t)return e[t.toLowerCase()][r];var i=Ny(JA(e,r));return(i[1]+i[2])/2})}(i,e.graph().align)}function Wxt(e){var t,n;(function(e){var t=Zbt(e),n=e.graph().ranksep,r=0;VA(t,function(t){var i=yy(JA(t,function(t){return e.node(t).height}));VA(t,function(t){e.node(t).y=r+i/2}),r+=i+n})})(e=jbt(e)),t=Vxt(e),n=function(t,n){e.node(n).x=t},t&&_A(t,qA(n))}function jxt(e,t){var n=Kbt;n("layout",()=>{var t=n(" buildLayoutGraph",()=>function(e){var t=new MJe({multigraph:!0,compound:!0}),n=rwt(e.graph());return t.setGraph(by({},Zxt,nwt(n,Yxt),Ey(n,Gxt))),VA(e.nodes(),function(n){var r=rwt(e.node(n));t.setNode(n,DA(nwt(r,Hxt),Kxt)),t.setParent(n,e.parent(n))}),VA(e.edges(),function(n){var r=rwt(e.edge(n));t.setEdge(n,by({},ewt,nwt(r,Jxt),Ey(r,twt)))}),t}(e));n(" runLayout",()=>function(e,t){t(" makeSpaceForEdgeLabels",()=>function(e){var t=e.graph();t.ranksep/=2,VA(e.edges(),function(n){var r=e.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===t.rankdir||"BT"===t.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}(e)),t(" removeSelfEdges",()=>function(e){VA(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}(e)),t(" acyclic",()=>Vbt(e)),t(" nestingGraph.run",()=>Txt(e)),t(" rank",()=>wxt(jbt(e))),t(" injectEdgeLabelProxies",()=>function(e){VA(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v),i={rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t};Wbt(e,"edge-proxy",i,"_ep")}})}(e)),t(" removeEmptyRanks",()=>function(e){var t=xy(JA(e.nodes(),function(t){return e.node(t).rank})),n=[];VA(e.nodes(),function(r){var i=e.node(r).rank-t;n[i]||(n[i]=[]),n[i].push(r)});var r=0,i=e.graph().nodeRankFactor;VA(n,function(t,n){gy(t)&&n%i!==0?--r:r&&VA(t,function(t){e.node(t).rank+=r})})}(e)),t(" nestingGraph.cleanup",()=>function(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,VA(e.edges(),function(t){e.edge(t).nestingEdge&&e.removeEdge(t)})}(e)),t(" normalizeRanks",()=>function(e){var t=xy(JA(e.nodes(),function(t){return e.node(t).rank}));VA(e.nodes(),function(n){var r=e.node(n);sy(r,"rank")&&(r.rank-=t)})}(e)),t(" assignRankMinMax",()=>function(e){var t=0;VA(e.nodes(),function(n){var r=e.node(n);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,t=yy(t,r.maxRank))}),e.graph().maxRank=t}(e)),t(" removeEdgeLabelProxies",()=>function(e){VA(e.nodes(),function(t){var n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}(e)),t(" normalize.run",()=>oxt(e)),t(" parentDummyChains",()=>Nxt(e)),t(" addBorderSegments",()=>function(e){VA(e.children(),function t(n){var r=e.children(n),i=e.node(n);if(r.length&&VA(r,t),Object.prototype.hasOwnProperty.call(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var o=i.minRank,a=i.maxRank+1;o<a;++o)Jbt(e,"borderLeft","_bl",n,i,o),Jbt(e,"borderRight","_br",n,i,o)}})}(e)),t(" order",()=>Ixt(e)),t(" insertSelfEdges",()=>function(e){var t=Zbt(e);VA(t,function(t){var n=0;VA(t,function(t,r){var i=e.node(t);i.order=r+n,VA(i.selfEdges,function(t){Wbt(e,"selfedge",{width:t.label.width,height:t.label.height,rank:i.rank,order:r+ ++n,e:t.e,label:t.label},"_se")}),delete i.selfEdges})})}(e)),t(" adjustCoordinateSystem",()=>function(e){var t=e.graph().rankdir.toLowerCase();"lr"!==t&&"rl"!==t||txt(e)}(e)),t(" position",()=>Wxt(e)),t(" positionSelfEdges",()=>function(e){VA(e.nodes(),function(t){var n=e.node(t);if("selfedge"===n.dummy){var r=e.node(n.e.v),i=r.x+r.width/2,o=r.y,a=n.x-i,s=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*a/3,y:o-s},{x:i+5*a/6,y:o-s},{x:i+a,y:o},{x:i+5*a/6,y:o+s},{x:i+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y}})}(e)),t(" removeBorderNodes",()=>function(e){VA(e.nodes(),function(t){if(e.children(t).length){var n=e.node(t),r=e.node(n.borderTop),i=e.node(n.borderBottom),o=e.node(zA(n.borderLeft)),a=e.node(zA(n.borderRight));n.width=Math.abs(a.x-o.x),n.height=Math.abs(i.y-r.y),n.x=o.x+n.width/2,n.y=r.y+n.height/2}}),VA(e.nodes(),function(t){"border"===e.node(t).dummy&&e.removeNode(t)})}(e)),t(" normalize.undo",()=>function(e){VA(e.graph().dummyChains,function(t){var n,r=e.node(t),i=r.edgeLabel;for(e.setEdge(r.edgeObj,i);r.dummy;)n=e.successors(t)[0],e.removeNode(t),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),t=n,r=e.node(t)})}(e)),t(" fixupEdgeLabelCoords",()=>function(e){VA(e.edges(),function(t){var n=e.edge(t);if(Object.prototype.hasOwnProperty.call(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}(e)),t(" undoCoordinateSystem",()=>ext(e)),t(" translateGraph",()=>function(e){var t=Number.POSITIVE_INFINITY,n=0,r=Number.POSITIVE_INFINITY,i=0,o=e.graph(),a=o.marginx||0,s=o.marginy||0;function l(e){var o=e.x,a=e.y,s=e.width,l=e.height;t=Math.min(t,o-s/2),n=Math.max(n,o+s/2),r=Math.min(r,a-l/2),i=Math.max(i,a+l/2)}VA(e.nodes(),function(t){l(e.node(t))}),VA(e.edges(),function(t){var n=e.edge(t);Object.prototype.hasOwnProperty.call(n,"x")&&l(n)}),t-=a,r-=s,VA(e.nodes(),function(n){var i=e.node(n);i.x-=t,i.y-=r}),VA(e.edges(),function(n){var i=e.edge(n);VA(i.points,function(e){e.x-=t,e.y-=r}),Object.prototype.hasOwnProperty.call(i,"x")&&(i.x-=t),Object.prototype.hasOwnProperty.call(i,"y")&&(i.y-=r)}),o.width=n-t+a,o.height=i-r+s}(e)),t(" assignNodeIntersects",()=>function(e){VA(e.edges(),function(t){var n,r,i=e.edge(t),o=e.node(t.v),a=e.node(t.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift(Ybt(o,n)),i.points.push(Ybt(a,r))})}(e)),t(" reversePoints",()=>function(e){VA(e.edges(),function(t){var n=e.edge(t);n.reversed&&n.points.reverse()})}(e)),t(" acyclic.undo",()=>function(e){VA(e.edges(),function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}(e))}(t,n)),n(" updateInputGraph",()=>function(e,t){VA(e.nodes(),function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))}),VA(e.edges(),function(n){var r=e.edge(n),i=t.edge(n);r.points=i.points,Object.prototype.hasOwnProperty.call(i,"x")&&(r.x=i.x,r.y=i.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}(e,t))})}var Yxt=["nodesep","edgesep","ranksep","marginx","marginy"],Zxt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Gxt=["acyclicer","ranker","rankdir","align"],Hxt=["width","height"],Kxt={width:0,height:0},Jxt=["minlen","weight","width","height","labeloffset"],ewt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},twt=["labelpos"];function nwt(e,t){return Oy(Ey(e,t),Number)}function rwt(e){var t={};return VA(e,function(e,n){t[n.toLowerCase()]=e}),t}var iwt=hRe((e,t,n)=>Math.max(t,Math.min(n,e)),"clamp"),owt=hRe((e="TB")=>{switch(e){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";default:return"top"}},"getDefaultSelfLoopSide"),awt=hRe(e=>"flowchart"===e||"flowchart-v2"===e||"stateDiagram"===e||"er"===e||"classDiagram"===e,"shouldMergeSelfLoopSegments"),swt=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],lwt=hRe((e,t,n,r,i)=>{const o=[],a=new Set;if(n.forEach(({start:e,end:t})=>{e!==r&&a.add(e),t!==r&&a.add(t)}),a.forEach(t=>{const n=e.node(t);"number"==typeof(null==n?void 0:n.x)&&"number"==typeof(null==n?void 0:n.y)&&o.push(n)}),0===o.length&&n.forEach(({edge:e})=>{(e.points??[]).forEach(e=>{"number"==typeof(null==e?void 0:e.x)&&"number"==typeof(null==e?void 0:e.y)&&o.push(e)})}),0===o.length)return owt(i);const s=o.reduce((e,t)=>({x:e.x+t.x/o.length,y:e.y+t.y/o.length}),{x:0,y:0}),l=s.x-t.x,c=s.y-t.y;return Math.abs(l)>Math.abs(c)?l>0?"right":"left":Math.abs(c)>0?c>0?"bottom":"top":owt(i)},"getSelfLoopSide"),cwt=hRe((e,t="top",n=0,r=0)=>{const i=e.x,o=e.y-n,a=e.width/2,s=e.height/2,l=Math.max(36,Math.min(100,.8*e.width)),c=iwt(Math.max(r,.35*e.width),36,l),u=iwt(.45*Math.min(e.width,e.height),24,48);switch(t){case"bottom":{const e=o+s;return[{x:i-c/2,y:e},{x:i-c/2,y:e+u},{x:i+c/2,y:e+u},{x:i+c/2,y:e}]}case"right":{const e=i+a;return[{x:e,y:o-c/2},{x:e+u,y:o-c/2},{x:e+u,y:o+c/2},{x:e,y:o+c/2}]}case"left":{const e=i-a;return[{x:e,y:o-c/2},{x:e-u,y:o-c/2},{x:e-u,y:o+c/2},{x:e,y:o+c/2}]}default:{const e=o-s;return[{x:i-c/2,y:e},{x:i-c/2,y:e-u},{x:i+c/2,y:e-u},{x:i+c/2,y:e}]}}},"getSelfLoopPoints"),uwt=hRe((e,t,n="top",r=0,i={})=>{const o=e.x,a=e.y-r,s=i.width??0,l=i.height??0;switch(n){case"bottom":return{x:o,y:Math.max(...t.map(e=>e.y))+l/2+4};case"right":return{x:Math.max(...t.map(e=>e.x))+s/2+4,y:a};case"left":return{x:Math.min(...t.map(e=>e.x))-s/2-4,y:a};default:return{x:o,y:Math.min(...t.map(e=>e.y))-l/2-4}}},"getSelfLoopLabelPosition"),hwt=hRe((e,t=0,{mergeSelfLoops:n=!0}={})=>{var r;const i=new Map,o=[],a=null==(r=e.graph())?void 0:r.rankdir;return e.edges().forEach(t=>{const r=e.edge(t);if(n&&r.selfLoop){const e=r.selfLoop.id;i.has(e)||i.set(e,[]),i.get(e).push({edge:r,start:t.v,end:t.w})}else o.push({edge:r,start:t.v,end:t.w})}),i.forEach(n=>{if(3!==n.length)return void n.forEach(e=>o.push(e));n.sort((e,t)=>e.edge.selfLoop.order-t.edge.selfLoop.order);const[r,i,s]=n,l=r.edge.originalEdge??i.edge.originalEdge??s.edge.originalEdge??i.edge,c=e.node(l.start);if(!c)return void n.forEach(e=>o.push(e));const u={width:i.edge.width,height:i.edge.height},h=lwt(e,c,n,l.start,a),d=cwt(c,h,t,u.width??0),p=uwt(c,d,h,t,u),f={...i.edge,...l,id:l.id,points:d,start:l.start,end:l.end,x:p.x,y:p.y,width:u.width,height:u.height,labelStyle:i.edge.labelStyle,fromCluster:r.edge.fromCluster??i.edge.fromCluster??s.edge.fromCluster,toCluster:r.edge.toCluster??i.edge.toCluster??s.edge.toCluster};delete f.selfLoop,delete f.originalEdge,o.push({edge:f,start:f.start,end:f.end})}),o},"getEdgesToRender"),dwt=hRe(async({element:e,graph:t,diagramType:n,id:r,parentCluster:i,siteConfig:o})=>{const a=t.graph().rankdir;ORe.trace("Dir in recursive render - dir:",a);const{clusters:s,edgePaths:l,edgeLabels:c,nodes:u,rootGroups:h}=zJe(e,{edgePathsClass:"edgePaths"});t.nodes()?ORe.info("Recursive render XXX",t.nodes()):ORe.info("No nodes found for",t),t.edges().length>0&&ORe.info("Recursive edges",t.edge(t.edges()[0]));const d=awt(n);await Promise.all(t.nodes().map(async function(e){const s=t.node(e);if(void 0!==i){const n=JSON.parse(JSON.stringify(i.clusterData));ORe.trace("Setting data for parent cluster XXX\n Node.id = ",e,"\n data=",n.height,"\nParent cluster",i.height),t.setNode(i.id,n),t.parent(e)||(ORe.trace("Setting parent",e,i.id),t.setParent(e,i.id,n))}if(ORe.info("(Insert) Node XXX"+e+": "+JSON.stringify(t.node(e))),null==s?void 0:s.clusterNode){ORe.info("Cluster identified XBX",e,s.width,t.node(e));const{ranksep:i,nodesep:a}=t.graph();s.graph.setGraph({...s.graph.graph(),ranksep:i+25,nodesep:a});const l=await ywt({element:u,graph:s.graph,diagramType:n,id:r,parentCluster:t.node(e),siteConfig:o}),c=l.elem;JZe(s,c),s.diff=l.diff||0,ORe.info("New compound node after recursive render XAX",e,"width",s.width,"height",s.height),SKe(c,s)}else t.children(e).length>0?(ORe.trace("Cluster - the non recursive path XBX",e,s.id,s,s.width,"Graph:",t),ORe.trace(n0e(s.id,t)),jJe.set(s.id,{id:n0e(s.id,t),node:s})):(ORe.trace("Node - the non recursive path XAX",e,u,t.node(e),a),await VJe(u,t.node(e),{config:o,dir:a}))}));const p=hRe(async()=>{const e=t.edges().map(async function(e){var n,r,i,o;const a=t.edge(e.v,e.w,e.name);if(ORe.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),ORe.info("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(t.edge(e))),ORe.info("Fix",jJe,"ids:",e.v,e.w,"Translating: ",jJe.get(e.v),jJe.get(e.w)),d&&a.selfLoop){if(1!==a.selfLoop.order)return;const e={...a.originalEdge,...a,id:a.selfLoop.id,startLabelLeft:(null==(n=a.originalEdge)?void 0:n.startLabelLeft)??a.startLabelLeft,startLabelRight:(null==(r=a.originalEdge)?void 0:r.startLabelRight)??a.startLabelRight,endLabelLeft:(null==(i=a.originalEdge)?void 0:i.endLabelLeft)??a.endLabelLeft,endLabelRight:(null==(o=a.originalEdge)?void 0:o.endLabelRight)??a.endLabelRight};return await JKe(c,e),a.width=e.width,a.height=e.height,void(a.labelStyle=e.labelStyle)}await JKe(c,a)});await Promise.all(e)},"processEdges");await p();const{subGraphTitleTotalMargin:f}=xKe(o);return{elem:h,graph:t,groups:{clusters:s,edgePaths:l,edgeLabels:c,nodes:u,rootGroups:h},diagramType:n,id:r,mergeSelfLoops:d,subGraphTitleTotalMargin:f}},"measureDagreGraph"),pwt=hRe(e=>{ORe.info("############################################# XXX"),ORe.info("### Layout ### XXX"),ORe.info("############################################# XXX"),jxt(e)},"runDagreGraphLayout"),fwt=hRe((e,t,n)=>{const r=e.node(t);if(!r)return;const i={...r};return(null==r?void 0:r.clusterNode)?i.y=(r.y??0)+n:e.children(t).length>0?i.height=(r.height??0)+n:i.y=(r.y??0)+n/2,i},"normalizeDagreNode"),gwt=hRe((e,t)=>{swt.forEach(n=>{void 0!==t[n]&&(e[n]=t[n])})},"applyDagreNodeLayout"),mwt=hRe((e,t,n,r)=>({...e,start:e.start??t,end:e.end??n,points:(e.points??[]).map(e=>({...e,y:"number"==typeof e.y?e.y+r:e.y}))}),"normalizeDagreEdge"),Owt=hRe((e,t)=>{const{graph:n,mergeSelfLoops:r,subGraphTitleTotalMargin:i=0}=t,o=new Map(e.nodes.map(e=>[e.id,e]));s0e(n).forEach(e=>{const t=fwt(n,e,i);if(!t)return;gwt(n.node(e),t);const r=o.get(e);r&&gwt(r,t)});const a=i/2;return e.edges=hwt(n,a,{mergeSelfLoops:r}).map(({edge:e,start:t,end:n})=>mwt(e,t,n,a)),e},"applyDagreLayoutResult"),Awt=hRe(async({elem:e,graph:t,groups:{clusters:n,edgePaths:r},diagramType:i,id:o,mergeSelfLoops:a,subGraphTitleTotalMargin:s})=>{let l=0;await Promise.all(s0e(t).map(async function(e){var r;const i=t.node(e);if(ORe.info("Position XBX => "+e+": ("+i.x,","+i.y,") width: ",i.width," height: ",i.height),null==i?void 0:i.clusterNode)i.y+=s,ORe.info("A tainted cluster node XBX1",e,i.id,i.width,i.height,i.x,i.y,t.parent(e)),jJe.get(i.id).node=i,$Ke(i);else if(t.children(e).length>0){ORe.info("A pure cluster node XBX1",e,i.id,i.x,i.y,i.width,i.height,t.parent(e)),i.height+=s,t.node(i.parentId);const o=(null==i?void 0:i.padding)/2||0,a=(null==(r=null==i?void 0:i.labelBBox)?void 0:r.height)||0,l=a-o||0;ORe.debug("OffsetY",l,"labelHeight",a,"halfPadding",o),await IKe(n,i),jJe.get(i.id).node=i}else{const e=t.node(i.parentId);i.y+=s/2,ORe.info("A regular node XBX1 - using the padding",i.id,"parent",i.parentId,i.width,i.height,i.x,i.y,"offsetY",i.offsetY,"parent",e,null==e?void 0:e.offsetY,i),$Ke(i)}}));const c=s/2;return hwt(t,c,{mergeSelfLoops:a}).forEach(function({edge:e,start:n,end:a}){ORe.info("Edge "+n+" -> "+a+": "+JSON.stringify(e),e),e.points.forEach(e=>e.y+=c);const s=t.node(n),l=t.node(a),u=uJe(r,e,jJe,i,s,l,o);tJe(e,u)}),t.nodes().forEach(function(e){const n=t.node(e);ORe.info(e,n.type,n.diff),n.isGroup&&(l=n.diff)}),ORe.warn("Returning from recursive render XAX",e,l),{elem:e,diff:l}},"paintDagreLayoutCore"),ywt=hRe(async e=>{const t=await dwt(e);return pwt(t.graph),await Awt(t)},"renderDagreSubgraph"),vwt=hRe(e=>{var t,n,r,i,o,a;const s=new MJe({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:(null==(t=e.config)?void 0:t.nodeSpacing)||e.nodeSpacing||(null==(r=null==(n=e.config)?void 0:n.flowchart)?void 0:r.nodeSpacing),ranksep:(null==(i=e.config)?void 0:i.rankSpacing)||e.rankSpacing||(null==(a=null==(o=e.config)?void 0:o.flowchart)?void 0:a.rankSpacing),marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});return e.nodes.forEach(e=>{s.setNode(e.id,{...e}),e.parentId&&s.setParent(e.id,e.parentId)}),ORe.debug("Edges:",e.edges),e.edges.forEach(e=>{if(e.start===e.end){const t=e.start,n=t+"---"+t+"---1",r=t+"---"+t+"---2",i=s.node(t);s.setNode(n,{domId:n,id:n,parentId:i.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),s.setParent(n,i.parentId),s.setNode(r,{domId:r,id:r,parentId:i.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),s.setParent(r,i.parentId);const o=structuredClone(e),a=structuredClone(e),l=structuredClone(e),c=structuredClone(e);a.originalEdge=o,a.selfLoop={id:o.id,order:0},l.originalEdge=o,l.selfLoop={id:o.id,order:1},c.originalEdge=o,c.selfLoop={id:o.id,order:2},a.label="",a.arrowTypeEnd="none",a.endLabelLeft="",a.endLabelRight="",a.startLabelLeft="",a.id=t+"-cyclic-special-1",l.startLabelRight="",l.startLabelLeft="",l.endLabelLeft="",l.endLabelRight="",l.arrowTypeStart="none",l.arrowTypeEnd="none",l.id=t+"-cyclic-special-mid",c.label="",c.startLabelRight="",c.startLabelLeft="",c.arrowTypeStart="none",i.isGroup&&(a.fromCluster=t,c.toCluster=t),c.id=t+"-cyclic-special-2",c.arrowTypeStart="none",s.setEdge(t,n,a,t+"-cyclic-special-0"),s.setEdge(n,r,l,t+"-cyclic-special-1"),s.setEdge(r,t,c,t+"-cyclic-special-2")}else s.setEdge(e.start,e.end,{...e},e.id)}),i0e(s),{graph:s}},"prepareLayoutForDagre"),bwt=hRe(async(e,{element:t,preparedLayout:n})=>{const r=n??vwt(e),i=JIe(),o=await dwt({element:t,graph:r.graph,diagramType:e.type,id:e.diagramId,parentCluster:void 0,siteConfig:i});return r.measuredLayout=o,o},"measureDagreLayout"),xwt=hRe((e,t)=>{var n;const r=null==(n=t.preparedLayout)?void 0:n.measuredLayout;if(!r)throw new Error("runDagreLayoutCore requires measureDagreLayout to run first");return pwt(r.graph),Owt(e,r),r},"runDagreLayoutCore"),wwt=u0e({prepareLayout:vwt,measureLayout:bwt,runLayoutCore:xwt,paintOptions:{clusterDb:jJe,getNodes:hRe((e,{measure:t})=>s0e(t.graph).map(e=>t.graph.node(e)).filter(Boolean),"getDagrePaintNodes"),getEdgeNode:hRe((e,t,{measure:n})=>e?n.graph.node(e):void 0,"getDagreEdgeNode"),skipNode:hRe((e,{measure:t})=>!t.graph.hasNode(e.id),"skipNode"),isCluster:hRe((e,{measure:t})=>t.graph.hasNode(e.id)&&(t.graph.children(e.id)??[]).length>0,"isCluster")}});const kwt=Object.freeze(Object.defineProperty({__proto__:null,applyDagreLayoutResult:Owt,getEdgesToRender:hwt,measureDagreLayout:bwt,prepareLayoutForDagre:vwt,render:wwt,runDagreLayoutCore:xwt},Symbol.toStringTag,{value:"Module"}));var Swt=1e-5,Twt=1e-6;function $wt(e){const t=[];for(let n=0;n<e.length-1;n++)t.push({a:e[n],b:e[n+1]});return t}function _wt(e,t,n,r){const i=t.x-e.x,o=t.y-e.y,a=r.x-n.x,s=r.y-n.y,l=i*s-o*a;if(0===l)return null;const c=n.x-e.x,u=n.y-e.y,h=(c*s-u*a)/l,d=(c*o-u*i)/l;return h<=Twt||h>=.999999||d<=Twt||d>=.999999?null:{point:{x:e.x+h*i,y:e.y+h*o},tA:h,tB:d}}function Cwt(e){return Math.abs(e.b.x-e.a.x)>=Math.abs(e.b.y-e.a.y)}function Qwt(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],i=$wt(r.points);for(let o=n+1;o<e.length;o++){const n=e[o],a=$wt(n.points);for(const[e,o]of i.entries())for(const[i,s]of a.entries()){const a=_wt(o.a,o.b,s.a,s.b);if(!a)continue;const l=Cwt(o);!!(l!==Cwt(s))&&l?t.push({jumpEdgeId:r.id,otherEdgeId:n.id,segIndex:e,t:a.tA,point:a.point}):t.push({jumpEdgeId:n.id,otherEdgeId:r.id,segIndex:i,t:a.tB,point:a.point})}}}return t}function Pwt(e){const t=Math.round(1e3*e)/1e3;return Number.isInteger(t),`${t}`}function Ewt(e){return`${Pwt(e.x)},${Pwt(e.y)}`}function Rwt(e){const t=e.b.x-e.a.x,n=e.b.y-e.a.y;return Math.abs(t)>=Math.abs(n)?t>=0?1:0:n>=0?1:0}hRe($wt,"buildSegmentList"),hRe(_wt,"segmentIntersection"),hRe(Cwt,"isHorizontalSeg"),hRe(Qwt,"findEdgeIntersections"),hRe(Pwt,"fmt"),hRe(Ewt,"pointToString"),hRe(Rwt,"getArcSweepFlag");function Bwt(e,t){if(e.length<2)return e.map(e=>({...e}));const n=e.map(e=>({...e})),r=t.arrowTypeStart&&MKe[t.arrowTypeStart];if(r){const t=e[0],i=e[1],o=Math.atan2(i.y-t.y,i.x-t.x);n[0].x=t.x+r*Math.cos(o),n[0].y=t.y+r*Math.sin(o)}const i=t.arrowTypeEnd&&MKe[t.arrowTypeEnd];if(i){const t=e.length,r=e[t-2],o=e[t-1],a=Math.atan2(o.y-r.y,o.x-r.x);n[t-1].x=o.x-i*Math.cos(a),n[t-1].y=o.y-i*Math.sin(a)}return n}function Iwt(e,t,n,r,i){const o=e.point.x,a=e.point.y,s={x:o-t*e.r,y:a-n*e.r},l={x:o+t*e.r,y:a+n*e.r},c=[`L${Ewt(s)}`];return"arc"===i?c.push(`A${Pwt(e.r)},${Pwt(e.r)} 0 0 ${r} ${Ewt(l)}`):c.push(`M${Ewt(l)}`),c}function Lwt(e,t,n,r){const i=t.x-e.x,o=t.y-e.y,a=n.x-t.x,s=n.y-t.y,l=Math.hypot(i,o),c=Math.hypot(a,s);if(l<Swt||c<Swt)return null;const u=i/l,h=o/l,d=a/c,p=s/c,f=u*d+h*p,g=Math.max(-1,Math.min(1,f)),m=Math.acos(g);if(m<Swt||Math.abs(Math.PI-m)<Swt)return null;const O=Math.min(r/Math.sin(m/2),l/2,c/2);return{startX:t.x-u*O,startY:t.y-h*O,endX:t.x+d*O,endY:t.y+p*O,ctrlX:t.x,ctrlY:t.y,cutLen:O}}function Dwt(e,t,n){const r=e.points;if(r.length<2)return"";const i=Bwt(r,e),o="rounded"===e.curve,a=$wt(i),s=new Map;for(const c of t){const e=a[c.segIndex];if(!e)continue;const t=Math.hypot(e.b.x-e.a.x,e.b.y-e.a.y),r=s.get(c.segIndex)??[];r.push({t:c.t,point:c.point,d:c.t*t,r:n.jumpRadius}),s.set(c.segIndex,r)}const l=[`M${Ewt(i[0])}`];for(let c=0;c<a.length;c++){const e=a[c],t=Math.hypot(e.b.x-e.a.x,e.b.y-e.a.y),r=0===t?0:(e.b.x-e.a.x)/t,u=0===t?0:(e.b.y-e.a.y)/t,h=Rwt(e);let d=0;if(o&&c>0){const e=Lwt(i[c-1],i[c],i[c+1]??i[c],5);e&&(d=e.cutLen)}let p=t,f=null;o&&c<a.length-1&&(f=Lwt(i[c],i[c+1],i[c+2]??i[c+1],5),f&&(p=t-f.cutLen));const g=[...s.get(c)??[]].sort((e,t)=>e.t-t.t);for(const n of g)n.r=Math.min(n.r,n.d-d,p-n.d);for(let n=0;n<g.length-1;n++){const e=g[n+1].d-g[n].d;if(g[n].r+g[n+1].r>e){const t=e/2;g[n].r=Math.min(g[n].r,t),g[n+1].r=Math.min(g[n+1].r,t)}}for(const i of g)i.r<.001||l.push(...Iwt(i,r,u,h,n.jumpStyle));o&&f?(l.push(`L${Pwt(f.startX)},${Pwt(f.startY)}`),l.push(`Q${Pwt(f.ctrlX)},${Pwt(f.ctrlY)} ${Pwt(f.endX)},${Pwt(f.endY)}`)):l.push(`L${Ewt(e.b)}`)}return l.join(" ")}function Mwt(e){return/^[\d\s+,.LMelm-]*$/.test(e)}function Nwt(e){return!e||("linear"===e||"rounded"===e||"step"===e||"stepBefore"===e||"stepAfter"===e)}function Xwt(e){if(!e)return null;try{const t="function"==typeof atob?atob(e):Buffer.from(e,"base64").toString(),n=JSON.parse(t);if(!Array.isArray(n))return null;const r=[];for(const e of n)e&&"number"==typeof e.x&&"number"==typeof e.y&&r.push({x:e.x,y:e.y});return r.length>=2?r:null}catch{return null}}function Fwt(e,t,n){if(!n.enabled)return;const r=e.node();if(!r)return;const i=new Map;for(const c of t)i.set(c.id,c);const o=[],a=new Map;for(const c of t){const e="undefined"!=typeof CSS&&CSS.escape?CSS.escape(c.id):c.id,t=r.querySelector(`path[data-id="${e}"]`);if(!t)continue;a.set(c.id,t);const n=Xwt(t.getAttribute("data-points"))??c.points;o.push({...c,points:n})}const s=Qwt(o);if(0===s.length)return;const l=new Map;for(const c of s){const e=l.get(c.jumpEdgeId)??[];e.push(c),l.set(c.jumpEdgeId,e)}for(const c of o){const e=l.get(c.id);if(!e||0===e.length)continue;const t=i.get(c.id),r=null==t?void 0:t.curve;if(void 0!==r&&!Nwt(r))continue;const o=a.get(c.id);if(!o)continue;if(void 0===r){if(!Mwt(o.getAttribute("d")??""))continue}const s=o.getAttribute("style")??"",u=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(s),h=u?Number.parseFloat(u[1]):null,d=u?Number.parseFloat(u[2]):null,p=Dwt(c,e,n);if(o.setAttribute("d",p),null!==h&&null!==d&&"function"==typeof o.getTotalLength){const e=o.getTotalLength(),t=`0 ${h} ${Math.max(0,e-h-d)} ${d}`,n=s.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${t};`).replace(/;\s*;+/g,";");o.setAttribute("style",n)}}}function Uwt(e,{measure:t}){var n,r;const i=null==(r=null==(n=e.config)?void 0:n.swimlane)?void 0:r.lineHops;if(!1===i)return;const o="gap"===i?"gap":"arc",a=e.edges.filter(e=>Array.isArray(e.points)&&e.points.length>=2).map(e=>({id:e.id,points:e.points,curve:e.curve,arrowTypeStart:e.arrowTypeStart,arrowTypeEnd:e.arrowTypeEnd}));Fwt(t.groups.edgePaths,a,{enabled:!0,jumpRadius:6,jumpStyle:o})}hRe(Bwt,"applyMarkerOffsets"),hRe(Iwt,"emitJump"),hRe(Lwt,"computeRoundedCorner"),hRe(Dwt,"rewriteEdgePath"),hRe(Mwt,"isStraightPath"),hRe(Nwt,"curveSupportsLineHops"),hRe(Xwt,"decodeDataPoints"),hRe(Fwt,"applyLineJumpsToSvg"),hRe(Uwt,"applySwimlaneLineJumps");var zwt="__swimlane_default__";function qwt(e){return Math.max(e.padding??20,20)}function Vwt(e){const{x:t,y:n,width:r,height:i}=e,o=e.swimlaneContentTop;if("number"!=typeof t||"number"!=typeof n||"number"!=typeof r||"number"!=typeof i||"number"!=typeof o||!Number.isFinite(t)||!Number.isFinite(n)||!Number.isFinite(r)||!Number.isFinite(i)||!Number.isFinite(o)||r<=0||i<=0)return void delete e.groupTitleRect;const a=n-i/2,s=Math.min(o,n+i/2),l=a+Math.min(21,Math.max(0,s-a));l<=a?delete e.groupTitleRect:e.groupTitleRect={left:t-r/2,right:t+r/2,top:a,bottom:l}}function Wwt(e){const t=e.direction,n=e.nodes??(e.nodes=[]);for(const o of e.nodes??[])o.isGroup&&!o.parentId&&(o.shape="swimlane",t&&(o.direction=t));const r=n.filter(e=>!e.isGroup&&!e.parentId);if(0===r.length)return;let i=n.find(e=>e.id===zwt);i?i.isGroup&&(i.shape="swimlane",t&&(i.direction=t)):(i={id:zwt,label:"",isGroup:!0,shape:"swimlane",padding:20,...t?{direction:t}:{}},n.push(i));for(const o of r)o.parentId=zwt}function jwt(e){const t=new Map;for(const s of e.nodes??[])t.set(s.id,s);const n=[];for(const s of e.edges??[]){const e="string"==typeof s.start?s.start:void 0,t="string"==typeof s.end?s.end:void 0;e&&t&&(s.labelNodeId||n.push({id:s.id,src:e,dst:t,ref:s}))}const r=e.nodes??[],i=r.filter(e=>e.isGroup),o=r.filter(e=>!e.isGroup),a=[...[...i].reverse(),...o].map(e=>e.id);return{nodes:a,edges:n,layout:e,nodeById:t}}function Ywt(e,t,n,r){const{layout:i}=e,o=e.nodeById,a=(null==r?void 0:r.layerGap)??100,s=(null==r?void 0:r.nodeGap)??40;let l=0;for(const d of t.layers){let e=0;for(const t of d){const r=o.get(t);if(!r){e++;continue}r.layer=l,r.order=e;const i=n.x[t]??e*s,c=n.y[t]??l*a;r.x=i,r.y=c,e++}l++}const c=i.nodes??[],u=new Map,h=[];for(const d of c){if(!(null==d?void 0:d.isGroup))continue;d.parentId||h.push(d);const e=c.filter(e=>e.parentId===d.id);let t=1/0,r=-1/0,i=1/0,o=-1/0;for(const a of e){const e=a.x??n.x[a.id],s=a.y??n.y[a.id],l=a.width??0,c=a.height??0;null!=e&&null!=s&&(t=Math.min(t,e-l/2),r=Math.max(r,e+l/2),i=Math.min(i,s-c/2),o=Math.max(o,s+c/2))}if(t===1/0||i===1/0)d.x=d.x??0,d.y=d.y??0,d.width=d.width??0,d.height=d.height??0;else{const e=d.padding??20,n=d.parentId?e:2*qwt(d),a=e,s=Math.max(0,r-t)+n,l=Math.max(0,o-i)+a,c=(t+r)/2,h=(i+o)/2;d.x=c,d.y=h,d.width=s,d.height=l,u.set(d.id,{minX:t,maxX:r,minY:i,maxY:o})}}if(h.length>0&&u.size>0){let e=1/0,t=-1/0,n=0;for(const r of h){const i=r.padding??20;i>n&&(n=i);const o=u.get(r.id);o&&(e=Math.min(e,o.minY),t=Math.max(t,o.maxY))}if(e!==1/0&&t!==-1/0){const r=36,i=Math.max(0,t-e)+2*Math.max(n,r),o=(e+t)/2;for(const t of h)t.y=o,t.height=i,t.swimlaneContentTop=e;const a=[...h].sort((e,t)=>(e.x??0)-(t.x??0)),s=[],l=[],c=[];for(const e of a){const t=u.get(e.id);if(!t)continue;const n=Math.max(0,t.maxX-t.minX)+2*qwt(e),r=(t.minX+t.maxX)/2;s.push(e.id),l.push(r),c.push(n)}const d=s.length;if(d>0){const e=new Map;if(1===d)e.set(s[0],c[0]);else{const t=[];for(let e=0;e<d-1;e++)t.push(l[e+1]-l[e]);const n=new Array(d);n[0]=0;for(let e=0;e<d-1;e++)n[e+1]=2*t[e]-n[e];let r=0,i=Number.POSITIVE_INFINITY;for(let e=0;e<d;e++){const t=c[e];e%2==0?r=Math.max(r,t-n[e]):i=Math.min(i,n[e]-t)}let o=r;o=r<=i?(r+i)/2:r;for(let a=0;a<d;a++){const t=n[a]+(a%2==0?o:-o),r=Math.max(c[a],t);e.set(s[a],r)}}for(const t of h){const n=e.get(t.id);null!=n&&(t.width=n),Vwt(t)}}}}}hRe(qwt,"topLaneHorizontalPadding"),hRe(Vwt,"assignTopLaneTitleRect"),hRe(Wwt,"prepareLayoutForSwimlanes"),hRe(jwt,"toGraphView"),hRe(Ywt,"writeBackToLayoutData");function Zwt(e){const t=[],n=[],r=new Map;for(const a of e.nodes)r.set(a.id,a);for(const a of e.edges){if(!a.label||0===a.label.length)continue;if(a.isLayoutOnly)continue;if(a.labelNodeId)continue;const e=a.start?r.get(a.start):void 0,i=a.end?r.get(a.end):void 0;if(!e||!i){ORe.warn("[EdgeLabelNodes]",`Edge ${a.id} has missing source or target node`);continue}const o=`edge-label-${a.start}-${a.end}-${a.id}`,s=e.parentId!==i.parentId?i.parentId:e.parentId,l={id:o,label:a.label,edgeStart:a.start??"",edgeEnd:a.end??"",shape:"labelRect",width:0,height:0,isEdgeLabel:!0,isDummy:!0,parentId:s,isGroup:!1,labelStyle:Array.isArray(a.labelStyle)?a.labelStyle[0]:a.labelStyle??"",...e.dir?{dir:e.dir}:{}};t.push(l),a.labelNodeId=o,a.label=void 0,a.text=void 0;const c={id:`${a.id}-to-label`,start:a.start,end:o,type:"normal",isLayoutOnly:!0},u={id:`${a.id}-from-label`,start:o,end:a.end,type:"normal",isLayoutOnly:!0};n.push(c,u)}const i=[...e.nodes,...t],o=[...e.edges,...n];return{...e,nodes:i,edges:o}}hRe(Zwt,"createEdgeLabelNodes");var Gwt=.001;function Hwt(e){const t=e.x??0,n=e.y??0,r=e.width??0,i=e.height??0;return r>0&&i>0?{cx:t,cy:n,rect:gkt(t,n,r,i)}:void 0}function Kwt(e){if(e.isGroup)return;const t=Hwt(e);if(!t)return;return{id:String(e.id??""),cx:t.cx,cy:t.cy,rect:t.rect}}function Jwt(e,t,n=Gwt){return Math.abs(e.x-t.x)<n&&Math.abs(e.y-t.y)<n}function ekt(e,t,n=Gwt){return Math.abs(e.x-t.x)<n}function tkt(e,t,n=Gwt){return Math.abs(e.y-t.y)<n}function nkt(e,t,n=Gwt){return tkt(e,t,n)&&Math.abs(e.x-t.x)>n}function rkt(e,t,n=Gwt){return ekt(e,t,n)&&Math.abs(e.y-t.y)>n}function ikt(e,t,n,r){return Math.max(0,Math.min(Math.max(e,t),Math.max(n,r))-Math.max(Math.min(e,t),Math.min(n,r)))}function okt(e,t,n=Gwt){return e.horizontal&&t.horizontal&&tkt(e.a,t.a,n)?ikt(e.a.x,e.b.x,t.a.x,t.b.x):e.vertical&&t.vertical&&ekt(e.a,t.a,n)?ikt(e.a.y,e.b.y,t.a.y,t.b.y):0}function akt(e,t=Gwt){const n=[];for(let r=0;r<e.length-1;r++){const i=e[r],o=e[r+1],a=nkt(i,o,t),s=rkt(i,o,t);(a||s)&&n.push({index:r,a:i,b:o,horizontal:a,vertical:s})}return n}function skt(e,t=Gwt){const n=akt(e,t);let r=0;for(let i=1;i<n.length;i++)n[i-1].horizontal!==n[i].horizontal&&r++;return r}function lkt(e,t=Gwt){const n=[];for(const r of e){const e=n.length>0?n[n.length-1]:void 0;e&&Jwt(e,r,t)||n.push({x:r.x,y:r.y})}return n}function ckt(e,t=Gwt){if(!e||4!==e.length)return;const[n,r,i,o]=e;if(nkt(n,r,t)&&rkt(r,i,t)&&nkt(i,o,t))return{kind:"HVH",p0:n,p1:r,p2:i,p3:o};return rkt(n,r,t)&&nkt(r,i,t)&&rkt(i,o,t)?{kind:"VHV",p0:n,p1:r,p2:i,p3:o}:void 0}function ukt(e,t,n,r=0){const i=Math.min(e.x,t.x),o=Math.max(e.x,t.x),a=Math.min(e.y,t.y),s=Math.max(e.y,t.y);return o>n.left-r&&i<n.right+r&&s>n.top-r&&a<n.bottom+r}function hkt(e,t,n=0){return e.x>t.left+n&&e.x<t.right-n&&e.y>t.top+n&&e.y<t.bottom-n}function dkt(e,t){return e.left<=t.left&&e.right>=t.right&&e.top<=t.top&&e.bottom>=t.bottom}function pkt(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}function fkt(e,t){return{left:e.left-t,right:e.right+t,top:e.top-t,bottom:e.bottom+t}}function gkt(e,t,n,r){return{left:e-n/2,right:e+n/2,top:t-r/2,bottom:t+r/2}}function mkt(e){var t;return null==(t=Hwt(e))?void 0:t.rect}function Okt(e,t){switch(t){case"top":return{x:e.cx,y:e.rect.top};case"bottom":return{x:e.cx,y:e.rect.bottom};case"left":return{x:e.rect.left,y:e.cy};case"right":return{x:e.rect.right,y:e.cy}}}function Akt(e,t,n,r,i,o=Gwt){const a="left"===t||"right"===t,s="left"===r||"right"===r;if(a&&s){if("right"===t&&"left"===r&&e.x<n.x||"left"===t&&"right"===r&&e.x>n.x){if(tkt(e,n,o))return[e,n];const t=(e.x+n.x)/2;return[e,{x:t,y:e.y},{x:t,y:n.y},n]}if(t===r){if(tkt(e,n,o))return;const r="left"===t?Math.min(e.x,n.x)-i:Math.max(e.x,n.x)+i;return[e,{x:r,y:e.y},{x:r,y:n.y},n]}return}if(!a&&!s){if(t===r){if(ekt(e,n,o))return;const r="top"===t?Math.min(e.y,n.y)-i:Math.max(e.y,n.y)+i;return[e,{x:e.x,y:r},{x:n.x,y:r},n]}if(!("bottom"===t&&"top"===r&&e.y<n.y||"top"===t&&"bottom"===r&&e.y>n.y))return;if(ekt(e,n,o))return[e,n];const a=(e.y+n.y)/2;return[e,{x:e.x,y:a},{x:n.x,y:a},n]}if(a&&!s){const i="right"===t&&n.x>e.x||"left"===t&&n.x<e.x,o="top"===r&&e.y<n.y||"bottom"===r&&e.y>n.y;return i&&o?[e,{x:n.x,y:e.y},n]:void 0}const l="bottom"===t&&n.y>e.y||"top"===t&&n.y<e.y,c="left"===r&&e.x<n.x||"right"===r&&e.x>n.x;return l&&c?[e,{x:e.x,y:n.y},n]:void 0}function ykt(e,t,n,r){return"left"===t||"right"===t?[e,{x:r,y:e.y},{x:r,y:n.y},n]:[e,{x:e.x,y:r},{x:n.x,y:r},n]}function vkt(e){const t=new Map,n=[];for(const r of e){if(r.isEdgeLabel)continue;const e=Kwt(r);e&&(t.set(e.id,e),n.push({id:e.id,rect:e.rect}))}return{nodeInfoById:t,realNodeRects:n}}function bkt(e){const t=[],n=[];for(const r of e){const e=Kwt(r);if(!e)continue;const i={id:e.id,rect:e.rect};r.isEdgeLabel?n.push(i):t.push(i)}return{realNodeRects:t,labelNodeRects:n}}function xkt(e,{includeEdgeLabels:t=!0}={}){const n=[];for(const r of e){if(r.isGroup||!t&&r.isEdgeLabel)continue;const e=r.x??0,i=r.y??0,o=r.width??0,a=r.height??0;n.push({nodeId:r.id,...gkt(e,i,o,a)})}return n}function wkt(e,t,n=Gwt){const r=e.start,i=e.end;if(!r||!i)return;const o=t.get(r),a=t.get(i);return o&&a?{srcId:r,dstId:i,srcInfo:o,dstInfo:a,collinearX:Math.abs(o.cx-a.cx)<n,collinearY:Math.abs(o.cy-a.cy)<n}:void 0}function kkt(e,t,n,r=[],i=0){for(const o of n)if(!r.includes(o.id)&&ukt(e,t,o.rect,-i))return!0;return!1}function Skt(e,t,n,r,i=Gwt,o=1e-6){const a=tkt(e,t,i),s=ekt(e,t,i),l=tkt(n,r,i),c=ekt(n,r,i);if(a&&l||s&&c)return!1;if(!a&&!s||!l&&!c)return!1;const u=a?{a:e,b:t}:{a:n,b:r},h=s?{a:e,b:t}:{a:n,b:r},d=u.a.y,p=Math.min(u.a.x,u.b.x),f=Math.max(u.a.x,u.b.x),g=h.a.x,m=Math.min(h.a.y,h.b.y),O=Math.max(h.a.y,h.b.y);if(g<p||g>f||d<m||d>O)return!1;const A=Math.abs(g-u.a.x)<o&&Math.abs(d-u.a.y)<o||Math.abs(g-u.b.x)<o&&Math.abs(d-u.b.y)<o,y=Math.abs(g-h.a.x)<o&&Math.abs(d-h.a.y)<o||Math.abs(g-h.b.x)<o&&Math.abs(d-h.b.y)<o;return!(A&&y)}function Tkt(e,t,n,r,i=Gwt){const o=tkt(e,t,i),a=ekt(e,t,i),s=tkt(n,r,i),l=ekt(n,r,i);return a&&l&&ekt(e,n,i)?ikt(e.y,t.y,n.y,r.y)>i:!!(o&&s&&tkt(e,n,i))&&ikt(e.x,t.x,n.x,r.x)>i}function $kt(e,t,n,r,{epsilon:i=Gwt,skipDegenerateOther:o=!1}={}){for(const a of n){if(a===r||a.isLayoutOnly)continue;const n=a.points;if(n&&!(n.length<2))for(let r=0;r<n.length-1;r++){const a=n[r],s=n[r+1];if((!o||!Jwt(a,s,i))&&(Skt(e,t,a,s,i)||Tkt(e,t,a,s,i)))return!0}}return!1}function _kt(e,t,n,r,i=Gwt){const o=tkt(e,t,i),a=ekt(e,t,i),s=tkt(n,r,i),l=ekt(n,r,i);if(!(o&&l||a&&s))return!1;const c=o?{a:e,b:t}:{a:n,b:r},u=o?{a:n,b:r}:{a:e,b:t},h=c.a.y,d=Math.min(c.a.x,c.b.x),p=Math.max(c.a.x,c.b.x),f=u.a.x,g=Math.min(u.a.y,u.b.y),m=Math.max(u.a.y,u.b.y);return f>d+i&&f<p-i&&h>g+i&&h<m-i}function Ckt(e,t,n){const r=Math.min(t,n),i=Math.max(t,n);return e>r+Gwt&&e<i-Gwt}function Qkt(e,t,n){return ekt(e,t)&&ekt(t,n)?Ckt(t.y,e.y,n.y):!(!tkt(e,t)||!tkt(t,n))&&Ckt(t.x,e.x,n.x)}function Pkt(e){let t=!1;const n=[];for(let r=0;r<e.length;r++){const i=n[n.length-1],o=e[r],a=r+1<e.length?e[r+1]:void 0;if(i&&a){if(Jwt(i,a)){r++,t=!0;continue}if(Qkt(i,o,a)){t=!0;continue}}n.push(o)}return{points:n,changed:t}}function Ekt(e){const t=[e[0]];for(let r=1;r<e.length;r++){const n=t[t.length-1],i=e[r];if(!ekt(n,i)&&!tkt(n,i)){const e=t.length>=2?t[t.length-2]:void 0,r=!!e&&ekt(e,n)?{x:n.x,y:i.y}:{x:i.x,y:n.y};t.push(r)}t.push(i)}const n=[];for(const r of t){const e=n[n.length-1];e&&Jwt(e,r)||n.push(r)}return n}function Rkt(e){if(e.length<3)return e;let t=[...e];for(let n=0;n<32;n++){const e=Pkt(t);if(t=e.points,!e.changed)break}return t}hRe(Hwt,"measuredNodeRect"),hRe(Kwt,"nodeBoundsInfoFor"),hRe(Jwt,"samePoint"),hRe(ekt,"sameX"),hRe(tkt,"sameY"),hRe(nkt,"isHorizontalSegment"),hRe(rkt,"isVerticalSegment"),hRe(ikt,"overlapLength"),hRe(okt,"sameAxisSegmentOverlapLength"),hRe(akt,"orthogonalSegmentsForPoints"),hRe(skt,"countOrthogonalBends"),hRe(lkt,"dedupeConsecutivePoints"),hRe(ckt,"classifyThreeSegmentRoute"),hRe(ukt,"segmentBoundsOverlapRect"),hRe(hkt,"pointInsideRect"),hRe(dkt,"rectContainsRect"),hRe(pkt,"rectsOverlap"),hRe(fkt,"inflateRect"),hRe(gkt,"rectFromCenterSize"),hRe(mkt,"rectOfNodeBounds"),hRe(Okt,"portForRectSide"),hRe(Akt,"buildOrthogonalPortPath"),hRe(ykt,"buildSameSideTrackPath"),hRe(vkt,"collectRealNodeBounds"),hRe(bkt,"collectNodeRectEntries"),hRe(xkt,"collectLayoutNodeRects"),hRe(wkt,"getNodePairGeometry"),hRe(kkt,"segmentHitsAnyRect"),hRe(Skt,"orthogonalSegmentsCross"),hRe(Tkt,"sameAxisSegmentsOverlap"),hRe($kt,"segmentConflictsWithAnyEdge"),hRe(_kt,"orthogonalSegmentsStrictlyCross"),hRe(Ckt,"strictlyBetween"),hRe(Qkt,"isCollinearIntermediate"),hRe(Pkt,"simplifyPolylineOnce"),hRe(Ekt,"orthogonalizePolyline"),hRe(Rkt,"simplifyPolyline");var Bkt=.001;function Ikt(e,t,n){const r=e;if(r.isLayoutOnly||!r.points||r.points.length<n)return;const i=r.start?t.get(r.start):void 0,o=r.end?t.get(r.end):void 0;return{edge:r,points:r.points,srcRect:i?mkt(i):void 0,dstRect:o?mkt(o):void 0}}function Lkt(e,t,n){if(tkt(e,t,Bkt)){return{x:e.x<n.left?n.left:n.right,y:e.y}}if(ekt(e,t,Bkt)){const t=e.y<n.top?n.top:n.bottom;return{x:e.x,y:t}}return{x:Math.min(n.right,Math.max(n.left,e.x)),y:Math.min(n.bottom,Math.max(n.top,e.y))}}function Dkt(e,t,n){const r=n?1:-1;let i=n?0:e.length-1;for(;i>=0&&i<e.length&&hkt(e[i],t,.5);)i+=r;if(i<0||i>=e.length)return e;const o=i-r;if(o<0||o>=e.length)return e;const a=Lkt(e[i],e[o],t);return n?[a,...e.slice(i)]:[...e.slice(0,i+1),a]}function Mkt(e,t){for(const n of e){const e=Ikt(n,t,2);if(!e)continue;let r=[...e.points];e.srcRect&&(r=Dkt(r,e.srcRect,!0)),e.dstRect&&(r=Dkt(r,e.dstRect,!1)),r=Rkt(Ekt(r)),r=Zkt(r,e.srcRect,e.dstRect),e.edge.points=Rkt(Ekt(r))}}function Nkt(e,t,n,r=!1){if(tkt(e,t,Bkt)){if(t.y<n.top-Bkt||t.y>n.bottom+Bkt)return t;if(r){if(e.x<n.left-Bkt)return{x:n.left,y:e.y};if(e.x>n.right+Bkt)return{x:n.right,y:e.y}}return{x:Math.abs(t.x-n.left)<=Math.abs(t.x-n.right)?n.left:n.right,y:e.y}}if(ekt(e,t,Bkt)){if(t.x<n.left-Bkt||t.x>n.right+Bkt)return t;if(r){if(e.y<n.top-Bkt)return{x:e.x,y:n.top};if(e.y>n.bottom+Bkt)return{x:e.x,y:n.bottom}}const i=Math.abs(t.y-n.top)<=Math.abs(t.y-n.bottom);return{x:e.x,y:i?n.top:n.bottom}}return t}function Xkt(e,t,n){const r=e[t];for(let i=t+n;i>=0&&i<e.length;i+=n){const t=e[i];if(!Jwt(t,r,Bkt))return t}return e[t+n]}function Fkt(e,t){const n=e+4,r=t-4;return n<=r?{lo:n,hi:r}:{lo:(e+t)/2,hi:(e+t)/2}}function Ukt(e,t,n){const{lo:r,hi:i}=Fkt(t,n);return Math.min(i,Math.max(r,e))}function zkt(e){const t=Math.max(...e.map(e=>e.lo)),n=Math.min(...e.map(e=>e.hi));if(!(t>n))return{lo:t,hi:n}}function qkt(e,t){return"left"===t||"right"===t?Fkt(e.top,e.bottom):Fkt(e.left,e.right)}function Vkt(e,t,n){const r=e.y>=n.top-Bkt&&e.y<=n.bottom+Bkt,i=e.x>=n.left-Bkt&&e.x<=n.right+Bkt;if(tkt(e,t,Bkt)&&r){if(Math.abs(e.x-n.left)<Bkt)return"left";if(Math.abs(e.x-n.right)<Bkt)return"right"}if(ekt(e,t,Bkt)&&i){if(Math.abs(e.y-n.top)<Bkt)return"top";if(Math.abs(e.y-n.bottom)<Bkt)return"bottom"}}function Wkt(e){return"left"===e||"right"===e}function jkt(e,t,n,r,i){const o=[],a=n?Vkt(e,t,n):void 0,s=r?Vkt(t,e,r):void 0;return n&&a&&Wkt(a)===i&&o.push(qkt(n,a)),r&&s&&Wkt(s)===i&&o.push(qkt(r,s)),o.length>0?zkt(o):void 0}function Ykt(e,t,n,r,i){const o=jkt(e,t,n,r,i);if(!o)return;const a=i?e.y:e.x,s=Math.min(o.hi,Math.max(o.lo,a));return Math.abs(s-a)<Bkt?void 0:i?[{x:e.x,y:s},{x:t.x,y:s}]:[{x:s,y:e.y},{x:s,y:t.y}]}function Zkt(e,t,n){if(2!==e.length)return e;const[r,i]=e;return tkt(r,i,Bkt)?Ykt(r,i,t,n,!0)??e:ekt(r,i,Bkt)?Ykt(r,i,t,n,!1)??e:e}function Gkt(e,t,n){return Wkt(n)?{x:e.x,y:Ukt(e.y,t.top,t.bottom)}:{x:Ukt(e.x,t.left,t.right),y:e.y}}function Hkt(e,t,n,r,i,o){const a=e.map(e=>({...e}));for(let s=t;s>=0&&s<e.length;s+=n){const t=e[s];if(o&&!tkt(t,r,Bkt))break;if(!o&&!ekt(t,r,Bkt))break;o?a[s].y=i.y:a[s].x=i.x}return a}function Kkt(e,t,n){if(e.length<2)return e;const r=n?0:e.length-1,i=n?1:-1,o=e[r],a=Xkt(e,r,i);if(!a)return e;const s=Vkt(o,a,t);if(!s)return e;const l=Wkt(s),c=Gkt(o,t,s);return Jwt(o,c,Bkt)?e:Hkt(e,r,i,o,c,l)}function Jkt(e,t,n){const r=Math.min(e.x,t.x)>=n.left-Bkt&&Math.max(e.x,t.x)<=n.right+Bkt,i=Math.min(e.y,t.y)>=n.top-Bkt&&Math.max(e.y,t.y)<=n.bottom+Bkt;return Math.abs(e.y-n.top)<Bkt&&Math.abs(t.y-n.top)<Bkt&&r?"top":Math.abs(e.y-n.bottom)<Bkt&&Math.abs(t.y-n.bottom)<Bkt&&r?"bottom":Math.abs(e.x-n.left)<Bkt&&Math.abs(t.x-n.left)<Bkt&&i?"left":Math.abs(e.x-n.right)<Bkt&&Math.abs(t.x-n.right)<Bkt&&i?"right":void 0}function eSt(e,t,n,r){switch(e){case"top":return ekt(t,n,Bkt)&&n.y<r.top-Bkt;case"bottom":return ekt(t,n,Bkt)&&n.y>r.bottom+Bkt;case"left":return tkt(t,n,Bkt)&&n.x<r.left-Bkt;case"right":return tkt(t,n,Bkt)&&n.x>r.right+Bkt}}function tSt(e,t,n){if(e.length<3)return e;if(n){const n=Jkt(e[0],e[1],t);return n&&eSt(n,e[1],e[2],t)?e.slice(1):e}const r=e.length-1,i=Jkt(e[r-1],e[r],t);return i&&eSt(i,e[r-1],e[r-2],t)?e.slice(0,r):e}function nSt(e,t,n){let r=e;if(t){const e=Xkt(r,0,1);if(e){const n=Nkt(e,r[0],t);n!==r[0]&&(r=[n,...r.slice(1)])}r=tSt(r,t,!0)}if(n){const e=r.length-1,t=Xkt(r,e,-1);if(t){const i=Nkt(t,r[e],n,!0);i!==r[e]&&(r=[...r.slice(0,e),i])}r=tSt(r,n,!1)}const i=Zkt(r,t,n);return i!==r||2===r.length?i:(t&&(r=Kkt(r,t,!0)),n&&(r=Kkt(r,n,!1)),r)}function rSt(e,t){for(const n of e){const e=Ikt(n,t,2);if(!e)continue;const r=nSt(lkt(e.points,Bkt),e.srcRect,e.dstRect);if(r.length<3){e.edge.points=r;continue}const i=[r[0],{...r[0]},...r.slice(1,-1),r[r.length-1],{...r[r.length-1]}];e.edge.points=i}}function iSt(e){return new Map(e.map(e=>[e.id,e]))}function oSt(e,t){let n=e.parentId,r=null;for(;n;){const e=t.get(n);if(!(null==e?void 0:e.isGroup))break;r=e.id,n=e.parentId}return r}function aSt(e,t){let n=0,r=e.parentId;for(;r;){const e=t.get(r);if(!(null==e?void 0:e.isGroup))break;n++,r=e.parentId}return n}function sSt(e){let t=1/0,n=-1/0,r=1/0,i=-1/0;for(const o of e){const e=o.x,a=o.y;if("number"!=typeof e||"number"!=typeof a)continue;const s=o.width??0,l=o.height??0;t=Math.min(t,e-s/2),n=Math.max(n,e+s/2),r=Math.min(r,a-l/2),i=Math.max(i,a+l/2)}return t===1/0||r===1/0?null:{minX:t,maxX:n,minY:r,maxY:i}}function lSt(e,t){const n=e.padding??20;e.x=(t.minX+t.maxX)/2,e.y=(t.minY+t.maxY)/2,e.width=Math.max(0,t.maxX-t.minX)+n,e.height=Math.max(0,t.maxY-t.minY)+n}function cSt(e){const t=iSt(e),n=e.filter(e=>e.isGroup&&e.parentId).sort((e,n)=>aSt(n,t)-aSt(e,t));for(const r of n){const t=sSt(e.filter(e=>e.parentId===r.id));t&&lSt(r,t)}}function uSt(e,t){const n=e.nodes??[],r=e.edges??[],i=n.filter(e=>!e.isGroup);let o=1/0,a=-1/0;for(const l of i){const e=l[t];"number"==typeof e&&(o=Math.min(o,e),a=Math.max(a,e))}if(!Number.isFinite(o)||!Number.isFinite(a))return!1;const s=hRe(e=>o+a-e,"mirror");for(const l of n){const e=l[t];"number"==typeof e&&(l[t]=s(e));const n=l.groupTitleRect;n&&(l.groupTitleRect="x"===t?{...n,left:s(n.right),right:s(n.left)}:{...n,top:s(n.bottom),bottom:s(n.top)})}for(const l of r)for(const e of l.points??[])e[t]=s(e[t]);return!0}function hSt(e){return!(e.nodes??[]).some(e=>!e.isGroup)||uSt(e,"y")}function dSt(e,t="LR"){const n=e.nodes??[],r=e.edges??[],i=n.filter(e=>!e.isGroup);let o=1/0,a=1/0;for(const S of i){const e=S.x??0,t=S.y??0;e<o&&(o=e),t<a&&(a=t)}if(!Number.isFinite(o)||!Number.isFinite(a))return!1;const s=36;let l=0,c=0;for(const S of i)l+=S.width??0,c+=S.height??0;const u=l/i.length,h=c/i.length,d=h>0?Math.max(1,u/h):1;for(const S of i){const e=S.x??0,t=((S.y??0)-a)*d+s,n=e-o;S.x=t,S.y=n}for(const S of r)if(S.points)for(const e of S.points){const t=e.x,n=(e.y-a)*d+s,r=t-o;e.x=n,e.y=r}cSt(n);const p=n.filter(e=>e.isGroup&&!e.parentId);if(0===p.length)return"RL"===t&&uSt(e,"x"),!0;const f=iSt(n),g=new Map;for(const S of n){if(S.isGroup)continue;const e=oSt(S,f);if(!e)continue;const t=g.get(e)??[];t.push(S),g.set(e,t)}let m=0;for(const S of p){const e=S.padding??0;e>m&&(m=e)}const O=[];let A=1/0,y=-1/0;for(const S of p){const e=sSt(g.get(S.id)??[]);e&&(A=Math.min(A,e.minX),y=Math.max(y,e.maxX),O.push({lane:S,contentTop:e.minY,contentBottom:e.maxY,centerY:(e.minY+e.maxY)/2}))}if(A===1/0||y===-1/0)return!0;const v=Math.max(0,y-A)+2*Math.max(m,10),b=s+v,x=(A+y)/2-v/2-s,w=x+b/2,k=Math.max(m,s);O.sort((e,t)=>e.centerY-t.centerY);for(let S=0;S<O.length;S++){const e=O[S];let t,n;if(0===S)t=e.contentTop-k;else{t=(O[S-1].contentBottom+e.contentTop)/2}if(S===O.length-1)n=e.contentBottom+k;else{const t=O[S+1];n=(e.contentBottom+t.contentTop)/2}const r=Math.max(0,n-t),i=(t+n)/2;e.lane.x=w,e.lane.y=i,e.lane.width=b,e.lane.height=r,e.lane.swimlaneContentTop=e.contentTop,e.lane.groupTitleRect={left:x,right:x+s,top:t,bottom:n}}return"RL"===t&&uSt(e,"x"),!0}hRe(Ikt,"endpointContextFor"),hRe(Lkt,"segmentEnterPoint"),hRe(Dkt,"clipEndpoint"),hRe(Mkt,"clipEdgeEndpointsToNodeBoundaries"),hRe(Nkt,"snapEndpointToBoundary"),hRe(Xkt,"firstDistinctAdjacent"),hRe(Fkt,"cornerClearanceRange"),hRe(Ukt,"clampToCornerClearance"),hRe(zkt,"intersectRanges"),hRe(qkt,"clearanceRangeForSide"),hRe(Vkt,"terminalSideForSegment"),hRe(Wkt,"isHorizontalSide"),hRe(jkt,"straightClearanceRange"),hRe(Ykt,"clearStraightEndpointCornerAxis"),hRe(Zkt,"clearStraightEndpointCornerConnections"),hRe(Gkt,"cornerClearedEndpoint"),hRe(Hkt,"moveCollinearEndpointRun"),hRe(Kkt,"clearEndpointCornerConnection"),hRe(Jkt,"borderSideForSegment"),hRe(eSt,"leavesOutward"),hRe(tSt,"collapseOwnBorderStub"),hRe(nSt,"snapAndCollapseEndpoints"),hRe(rSt,"prepareEdgeEndpointsForRenderer"),hRe(iSt,"buildNodeMap"),hRe(oSt,"resolveTopLevelGroupId"),hRe(aSt,"groupDepth"),hRe(sSt,"boundsForChildren"),hRe(lSt,"applyGroupBounds"),hRe(cSt,"recomputeNestedGroupBounds"),hRe(uSt,"mirrorAxis"),hRe(hSt,"applyBtDirectionTransform"),hRe(dSt,"applyLrDirectionTransform");var pSt=1e-6,fSt=[0,8,-8,16,-16];function gSt(e,t){const{nodeInfoById:n,realNodeRects:r}=vkt(t);for(const i of e){if(i.isLayoutOnly)continue;const t=i.points;if(!t||t.length<4)continue;const o=ckt(lkt(t,pSt),pSt);if(!o)continue;const{p3:a}=o,s="HVH"===o.kind,l=wkt(i,n,pSt);if(!l)continue;const{srcId:c,dstId:u,srcInfo:h,dstInfo:d,collinearX:p,collinearY:f}=l;if(p||f)continue;let g;const m=h.rect;for(const n of fSt){let t,o,l;if(s){const e=d.cy>h.cy?m.bottom:m.top,r=h.cx+n;if(r<=m.left+pSt||r>=m.right-pSt)continue;t={x:r,y:e},o={x:r,y:a.y},l={x:a.x,y:a.y}}else{const e=d.cx>h.cx?m.right:m.left,r=h.cy+n;if(r<=m.top+pSt||r>=m.bottom-pSt)continue;t={x:e,y:r},o={x:a.x,y:r},l={x:a.x,y:a.y}}const p=Jwt(t,o,pSt),f=Jwt(o,l,pSt);if(p&&f)continue;if(!p&&kkt(t,o,r,[c],1))continue;if(!f&&kkt(o,l,r,[u],1))continue;const O=!p&&$kt(t,o,e,i,{epsilon:pSt,skipDegenerateOther:!0}),A=!f&&$kt(o,l,e,i,{epsilon:pSt,skipDegenerateOther:!0});if(!O&&!A){g=p?[o,l]:f?[t,o]:[t,o,l];break}}g&&(i.points=g)}}function mSt(e,t){const n=.001,{realNodeRects:r,labelNodeRects:i}=bkt(t.values());for(const o of e){if(o.isLayoutOnly)continue;const a=o.points;if(!a||a.length<4)continue;const s=lkt(a,n);if(s.length<4)continue;const l=s.length-1,c=s[l],u=s[l-1],h=s[l-2],d=c.x-u.x,p=c.y-u.y,f=Math.hypot(d,p);if(f>=10||f<n)continue;const g=u.x-h.x,m=u.y-h.y;if(Math.hypot(g,m)<n)continue;const O=nkt(u,c,n),A=rkt(u,c,n),y=nkt(h,u,n),v=rkt(h,u,n);if(!(O&&v||A&&y))continue;const b=o.end,x=o.start,w=b?t.get(b):void 0;if(!w)continue;const k=w.x??0,S=w.y??0,T=mkt(w);if(!T)continue;let $,_;if(v){const e=m<0;$={x:k,y:h.y},_={x:k,y:e?T.bottom:T.top}}else{const e=g>0;$={x:h.x,y:S},_={x:e?T.right:T.left,y:S}}if(kkt($,_,r,b?[b]:[],-2))continue;if(kkt($,_,i,[],-2))continue;if(x){const e=t.get(x),n=e?mkt(e):void 0;if(n&&hkt($,n,2))continue}const C=hRe((e,t)=>`${e.x.toFixed(3)},${e.y.toFixed(3)}|${t.x.toFixed(3)},${t.y.toFixed(3)}`,"ownSegmentKey"),Q=new Set;for(let e=0;e<s.length-1;e++)Q.add(C(s[e],s[e+1]));const P=hRe((t,r)=>{for(const i of e){if(i===o)continue;if(i.isLayoutOnly)continue;const e=i.points;if(e&&!(e.length<2))for(let i=0;i<e.length-1;i++){const o=e[i],a=e[i+1];if(!Q.has(C(o,a))&&_kt(t,r,o,a,n))return!0}}return!1},"segmentCrossesOtherEdge");if(P($,_))continue;if(l-3>=0){const e=s[l-3];if(kkt(e,$,r,[x,b].filter(e=>Boolean(e)),-2))continue;if(P(e,$))continue}const E=[...s.slice(0,l-2),$,_];o.points=E;const R=o.labelNodeId;if(R){const e=t.get(R);if(e){const t=e.width??0,r=e.height??0;if(t>0&&r>0){let i,o,a=-1;for(let e=0;e<E.length-1;e++){const s=E[e],l=E[e+1],c=Math.hypot(l.x-s.x,l.y-s.y),u=tkt(s,l,n),h=ekt(s,l,n);(u&&c>=t+2||h&&c>=r+2)&&(c>a&&(a=c,i=(s.x+l.x)/2,o=(s.y+l.y)/2))}void 0!==i&&void 0!==o&&(e.x=i,e.y=o)}}}}}hRe(gSt,"portSwapToLShape"),hRe(mSt,"collapseShortTerminalStub");var OSt=.001,ASt=akt,ySt=hRe((e,t)=>ekt(e,t,OSt)||tkt(e,t,OSt),"orthogonallyAligned");function vSt(e,t){const n=hRe((e,t)=>{const n=e.x??0,r=e.y??0,i=t.x-n,o=t.y-r;let a=(e.width??0)/2,s=(e.height??0)/2;return Math.abs(o)*a>Math.abs(i)*s?(o<0&&(s=-s),{x:n+(0===o?0:s*i/o),y:r+s}):(i<0&&(a=-a),{x:n+a,y:r+(0===i?0:a*o/i)})},"rectIntersect"),r=hRe((e,r)=>{const i=lkt(e.points??[]);if(i.length<2)return;const o=r?e.start:e.end,a=o?t.get(o):void 0,s=a?mkt(a):void 0;if(!a||!o||!s)return;const l=r?i[0]:i[i.length-1],c=r?i[1]:i[i.length-2],u=n(a,l);let h=l;return ySt(c,u)&&(h=c),ekt(u,h,OSt)?{edge:e,edgeId:String(e.id??""),nodeId:o,atStart:r,orientation:"V",coord:u.x,min:Math.min(u.y,h.y),max:Math.max(u.y,h.y),boundary:u,railEnd:h,rect:s}:tkt(u,h,OSt)?{edge:e,edgeId:String(e.id??""),nodeId:o,atStart:r,orientation:"H",coord:u.y,min:Math.min(u.x,h.x),max:Math.max(u.x,h.x),boundary:u,railEnd:h,rect:s}:void 0},"terminalLaneFor"),i=hRe((e,t)=>Math.max(0,Math.min(e.max,t.max)-Math.max(e.min,t.min)),"projectedOverlapLength"),o=hRe((e,t)=>{if(e.nodeId!==t.nodeId||e.orientation!==t.orientation)return!1;if("H"===e.orientation){return(Math.abs(e.boundary.x-e.rect.left)<1||Math.abs(e.boundary.x-e.rect.right)<1)&&ekt(e.boundary,t.boundary,1)}return(Math.abs(e.boundary.y-e.rect.top)<1||Math.abs(e.boundary.y-e.rect.bottom)<1)&&tkt(e.boundary,t.boundary,1)},"sameTerminalFace"),a=hRe((e,t)=>{if(e.nodeId!==t.nodeId||e.orientation!==t.orientation)return!1;return i(e,t)>=8&&Math.abs(e.coord-t.coord)<.5},"exactTerminalLaneConflict"),s=hRe((e,t)=>{if(e.nodeId!==t.nodeId||e.orientation!==t.orientation||"H"!==e.orientation||e.atStart===t.atStart)return!1;const n=i(e,t);if(n<8)return!1;const r=e.rect.bottom-e.rect.top;return!(n<r||n>2*r)&&(o(e,t)&&Math.abs(e.coord-t.coord)<16)},"nearTerminalLaneConflict"),l=hRe((e,t)=>{const n=lkt(e.edge.points??[]);if(n.length<2)return;const r="V"===e.orientation?{x:e.boundary.x+t,y:e.boundary.y}:{x:e.boundary.x,y:e.boundary.y+t},i="V"===e.orientation?{x:e.railEnd.x+t,y:e.railEnd.y}:{x:e.railEnd.x,y:e.railEnd.y+t};if(!hRe(()=>Math.abs(e.boundary.y-e.rect.top)<1||Math.abs(e.boundary.y-e.rect.bottom)<1?tkt(r,e.boundary,OSt)&&r.x>=e.rect.left+1&&r.x<=e.rect.right-1:(Math.abs(e.boundary.x-e.rect.left)<1||Math.abs(e.boundary.x-e.rect.right)<1)&&(ekt(r,e.boundary,OSt)&&r.y>=e.rect.top+1&&r.y<=e.rect.bottom-1),"boundaryStaysOnSameFace")())return;if(e.atStart){const t=n.length>1&&Jwt(n[1],e.railEnd,OSt),o=n.slice(t?2:1),a=o[0];if(a&&!ySt(a,i))return;return[r,i,...o]}const o=n.length>1&&Jwt(n[n.length-2],e.railEnd,OSt),a=n.slice(0,o?-2:-1),s=a[a.length-1];return!s||ySt(s,i)?[...a,i,r]:void 0},"shiftedCandidate"),c=hRe(e=>{const n=e.edge,r=lkt(n.points??[]);if(2!==r.length)return!1;const i=n.start,o=n.end,a=i?t.get(i):void 0,s=o?t.get(o):void 0;if(!a||!s)return!1;const l=a.x??0,c=a.y??0,u=s.x??0,h=s.y??0,[d,p]=r;return tkt(d,p,OSt)&&Math.abs(c-h)<1&&Math.abs(l-u)>1||ekt(d,p,OSt)&&Math.abs(l-u)<1&&Math.abs(c-h)>1},"laneIsStraightCollinearConnector"),u=[-7,7,-14,14,-21,21];for(let h=0;h<8;h++){const t=e.filter(e=>!e.isLayoutOnly).flatMap(e=>[r(e,!0),r(e,!1)]).filter(e=>Boolean(e));let n=!1;for(let e=0;e<t.length&&!n;e++)for(let i=e+1;i<t.length&&!n;i++){const o=t[e],h=t[i];if(o.edge===h.edge||!a(o,h)&&!s(o,h))continue;const d=!a(o,h),p=[o,h].sort((e,t)=>{const n=c(e),r=c(t);return n!==r?Number(n)-Number(r):Number(!t.atStart)-Number(!e.atStart)});for(const e of p){for(const i of u){const o=l(e,i);if(!o)continue;const c=r({...e.edge,points:o},e.atStart);if(c&&!t.some(t=>t.edge!==e.edge&&(a(c,t)||d&&s(c,t)))){e.edge.points=o,n=!0;break}}if(n)break}}if(!n)return}}function bSt(e,t){const{realNodeRects:n,labelNodeRects:r}=bkt(t.values()),i=hRe((t,i)=>{const o=t.start,a=t.end,s=ASt(i);if(s.length!==i.length-1)return!1;const l=[o,a].filter(e=>Boolean(e));for(const e of s){if(kkt(e.a,e.b,n,l,-2))return!1;if(kkt(e.a,e.b,r,[],-2))return!1}for(const n of e){if(n===t||n.isLayoutOnly)continue;const e=n.points;if(e&&!(e.length<2))for(const t of s)for(const n of ASt(lkt(e))){if(okt(t,n,.5)>=8)return!1;if(_kt(t.a,t.b,n.a,n.b,OSt))return!1}}return!0},"candidateIsSafe"),o=hRe((e,t)=>{if(t+4>=e.length)return;const n=e[t],r=e[t+1],i=e[t+2],o=e[t+3],a=e[t+4],s=nkt(n,r)&&rkt(r,i)&&nkt(i,o)&&rkt(o,a)&&ekt(n,o,OSt)&&ekt(n,a,OSt)&&ekt(r,i,OSt)&&(r.x-n.x)*(o.x-i.x)<0,l=rkt(n,r)&&nkt(r,i)&&rkt(i,o)&&nkt(o,a)&&tkt(n,o,OSt)&&tkt(n,a,OSt)&&tkt(r,i,OSt)&&(r.y-n.y)*(o.y-i.y)<0;if(s||l)return lkt([...e.slice(0,t+1),a,...e.slice(t+5)]);if(t+5>=e.length)return;const c=e[t+5],u=rkt(n,r)&&nkt(r,i)&&rkt(i,o)&&nkt(o,a)&&rkt(a,c)&&ekt(n,a,OSt)&&ekt(n,c,OSt)&&ekt(i,o,OSt)&&(i.x-r.x)*(a.x-o.x)<0,h=nkt(n,r)&&rkt(r,i)&&nkt(i,o)&&rkt(o,a)&&nkt(a,c)&&tkt(n,a,OSt)&&tkt(n,c,OSt)&&tkt(i,o,OSt)&&(i.y-r.y)*(a.y-o.y)<0;return u||h?lkt([...e.slice(0,t+1),c,...e.slice(t+6)]):void 0},"withoutDogleg");for(let a=0;a<8;a++){let t=!1;for(const n of e){if(n.isLayoutOnly)continue;const e=lkt(n.points??[]);for(let r=0;r<=e.length-5;r++){const a=o(e,r);if(a&&i(n,a)){n.points=a,t=!0;break}}if(t)break}if(!t)return}}function xSt(e,t){const{realNodeRects:n,labelNodeRects:r}=bkt(t.values()),i=e.filter(e=>!e.isLayoutOnly),o=hRe((e,t,n)=>lkt(e===t?n??[]:e.points??[]),"pointsFor"),a=hRe((e,t)=>{let n=0;for(let r=0;r<i.length;r++){const a=ASt(o(i[r],e,t));for(let s=r+1;s<i.length;s++){const r=ASt(o(i[s],e,t));for(const e of a)for(const t of r)_kt(e.a,e.b,t.a,t.b,OSt)&&n++}}return n},"strictCrossingCount"),s=hRe(e=>{const t=ASt(e);if(3!==t.length)return;const n=t[1];return t[0].horizontal!==n.horizontal&&t[2].horizontal!==n.horizontal?{index:n.index,horizontal:n.horizontal,vertical:n.vertical,segment:n}:void 0},"middleRail"),l=hRe((e,t)=>{const r=[e.start,e.end].filter(e=>Boolean(e));return n.filter(e=>{if(r.includes(e.id))return!1;const n=e.rect;if(t.horizontal){return ikt(t.a.x,t.b.x,n.left,n.right)>=8&&t.a.y>=n.top-2&&t.a.y<=n.bottom+2}return ikt(t.a.y,t.b.y,n.top,n.bottom)>=8&&t.a.x>=n.left-2&&t.a.x<=n.right+2})},"blockingRectsFor"),c=hRe((e,t,n)=>{const r=e.map(e=>({...e}));if(t.horizontal)r[t.index].y=n,r[t.index+1].y=n;else{if(!t.vertical)return;r[t.index].x=n,r[t.index+1].x=n}const i=Rkt(lkt(r));return ASt(i).length===i.length-1?i:void 0},"candidateByMovingRail"),u=hRe((e,t,s)=>{const l=[e.start,e.end].filter(e=>Boolean(e)),c=ASt(t);if(c.length!==t.length-1)return!1;for(const i of c){if(kkt(i.a,i.b,n,l,-2))return!1;if(kkt(i.a,i.b,r,[],-2))return!1}for(const n of i)if(n!==e)for(const e of c)for(const t of ASt(o(n)))if(okt(e,t,.5)>=8)return!1;return a(e,t)<=s},"candidateIsSafe");for(let h=0;h<8;h++){const e=a();let t=!1;for(const n of i){const r=o(n),i=s(r);if(!i)continue;const a=l(n,i.segment);if(0===a.length)continue;const h=i.horizontal?[Math.min(...a.map(e=>e.rect.top))-20,Math.max(...a.map(e=>e.rect.bottom))+20]:[Math.min(...a.map(e=>e.rect.left))-20,Math.max(...a.map(e=>e.rect.right))+20];for(const o of h){const a=c(r,i.segment,o);if(a&&u(n,a,e)){n.points=a,t=!0;break}}if(t)break}if(!t)return}}function wSt(e,t){const n=hRe(e=>{const t=e.groupTitleRect;if(t&&"number"==typeof t.left&&"number"==typeof t.right&&"number"==typeof t.top&&"number"==typeof t.bottom&&Number.isFinite(t.left)&&Number.isFinite(t.right)&&Number.isFinite(t.top)&&Number.isFinite(t.bottom)&&!(t.right<=t.left)&&!(t.bottom<=t.top))return{left:t.left,right:t.right,top:t.top,bottom:t.bottom}},"validTitleRect"),r=hRe(e=>{if(!e.isGroup||e.parentId)return;const t=e.direction,r="string"==typeof t?t.toUpperCase():"";if("LR"===r||"RL"===r||"BT"===r)return;const i=n(e),o=e.y,a=e.height;if(!i||"number"!=typeof o||"number"!=typeof a||!Number.isFinite(o)||!Number.isFinite(a)||a<=0)return;const s=i.right-i.left,l=i.bottom-i.top;return l<=0||s<l?void 0:{node:e,rect:i}},"topLaneTitleFor"),i=hRe((e,t)=>{if(!e.horizontal)return!1;const n=e.a.y;return!(n<=t.top+OSt||n>=t.bottom-OSt)&&ikt(e.a.x,e.b.x,t.left,t.right)>=8},"horizontalSegmentIntersectsTitle"),o=[...t.values()].map(r).filter(e=>Boolean(e));if(0===o.length)return;let a=0;for(const s of e){if(s.isLayoutOnly)continue;const e=lkt(s.points??[]);for(const t of ASt(e))for(const e of o)i(t,e.rect)&&(a=Math.max(a,e.rect.bottom-t.a.y+4))}if(!(a<=OSt))for(const s of o){const e=s.node.y,t=s.node.height;"number"!=typeof e||"number"!=typeof t||!Number.isFinite(e)||!Number.isFinite(t)||t<=0||(s.node.y=e-a/2,s.node.height=t+a,s.node.groupTitleRect={...s.rect,top:s.rect.top-a,bottom:s.rect.bottom-a})}}function kSt(e,t){const n=hRe(e=>{const t=e.groupTitleRect;if(t&&"number"==typeof t.left&&"number"==typeof t.right&&"number"==typeof t.top&&"number"==typeof t.bottom&&Number.isFinite(t.left)&&Number.isFinite(t.right)&&Number.isFinite(t.top)&&Number.isFinite(t.bottom)&&!(t.right<=t.left)&&!(t.bottom<=t.top))return{left:t.left,right:t.right,top:t.top,bottom:t.bottom}},"validTitleRect"),r=hRe(e=>{if(!e.isGroup||e.parentId)return;if("LR"!==e.direction)return;const t=n(e),r=e.x,i=e.width;if(!t||"number"!=typeof r||"number"!=typeof i||!Number.isFinite(r)||!Number.isFinite(i)||i<=0)return;const o=t.right-t.left,a=t.bottom-t.top;return o<=0||a<o?void 0:{node:e,rect:t}},"leftLaneTitleFor"),i=hRe((e,t)=>{if(!e.vertical)return!1;const n=e.a.x;return!(n<=t.left+OSt||n>=t.right-OSt)&&ikt(e.a.y,e.b.y,t.top,t.bottom)>=8},"verticalSegmentIntersectsTitle"),o=hRe((e,t)=>{if(!e.horizontal)return!1;const n=e.a.y;return!(n<=t.top+OSt||n>=t.bottom-OSt)&&ikt(e.a.x,e.b.x,t.left,t.right)>=8},"horizontalSegmentIntersectsTitle"),a=[...t.values()].map(r).filter(e=>Boolean(e));if(0===a.length)return;let s=0;for(const l of e){if(l.isLayoutOnly)continue;const e=lkt(l.points??[]);for(const t of ASt(e))for(const e of a)if(i(t,e.rect))s=Math.max(s,e.rect.right-t.a.x+4);else if(o(t,e.rect)){const n=Math.min(t.a.x,t.b.x);s=Math.max(s,e.rect.right-n+4)}}if(!(s<=OSt))for(const l of a){const e=l.node.x,t=l.node.width;"number"!=typeof e||"number"!=typeof t||!Number.isFinite(e)||!Number.isFinite(t)||t<=0||(l.node.x=e-s/2,l.node.width=t+s,l.node.groupTitleRect={...l.rect,left:l.rect.left-s,right:l.rect.right-s})}}function SSt(e,t){const{realNodeRects:n}=bkt(t.values()),r=e.filter(e=>!e.isLayoutOnly),i=hRe((e,t=new Map)=>lkt(t.get(e)??e.points??[]),"replacementPointsFor"),o=hRe((e=new Map)=>{let t=0;for(let n=0;n<r.length;n++){const o=ASt(i(r[n],e));for(let a=n+1;a<r.length;a++){const n=ASt(i(r[a],e));for(const e of o)for(const r of n)_kt(e.a,e.b,r.a,r.b,OSt)&&t++}}return t},"crossingCount"),a=hRe((e=new Map)=>r.reduce((t,n)=>t+skt(i(n,e)),0),"totalBends"),s=hRe(e=>{const t=i(e);if(t.length<4)return;const n=t[t.length-2],r=t[t.length-1];return nkt(n,r,OSt)||rkt(n,r,OSt)?{tailStart:n,terminal:r}:void 0},"terminalTailFor"),l=hRe((e,t)=>{const n=i(e);if(n.length<3)return;const r=n[0],o=n[1];let a;if(nkt(r,o,OSt))a={x:o.x,y:t.tailStart.y};else{if(!rkt(r,o,OSt))return;a={x:t.tailStart.x,y:o.y}}const s=Rkt(lkt([r,o,a,t.tailStart,t.terminal]));return ASt(s).length===s.length-1?s:void 0},"candidateWithDestinationTail"),c=hRe((e,t)=>{const r=[e.start,e.end].filter(e=>Boolean(e));for(const i of ASt(t))if(kkt(i.a,i.b,n,r,-2))return!0;return!1},"pathHasNodeHit"),u=hRe((e,t,n)=>{for(const o of r)if(o!==e)for(const e of ASt(t))for(const t of ASt(i(o,n)))if(okt(e,t,.5)>=8)return!0;return!1},"pathHasSharedTrack"),h=hRe((e,t,n)=>!c(e,t)&&!u(e,t,n),"candidateIsSafe"),d=hRe(()=>{const e=new Map;for(const n of r){const r=n.end;if(!r||!t.has(r))continue;if(i(n).length<4)continue;const o=e.get(r)??[];o.push(n),e.set(r,o)}return e},"edgesByDestination");for(let p=0;p<4;p++){const e=o();if(0===e)return;let t,n=e,r=a();for(const i of d().values())for(let c=0;c<i.length;c++)for(let u=c+1;u<i.length;u++){const d=i[c],p=i[u],f=s(d),g=s(p);if(!f||!g)continue;const m=l(d,g),O=l(p,f);if(!m||!O)continue;const A=new Map([[d,m],[p,O]]);if(!h(d,m,A)||!h(p,O,A))continue;const y=o(A),v=a(A);y>=e||(y>n||y===n&&v>=r||(t=A,n=y,r=v))}if(!t)return;for(const[i,o]of t)i.points=o}}function TSt(e,t){const{realNodeRects:n,labelNodeRects:r}=bkt(t.values()),i=e.filter(e=>!e.isLayoutOnly),o=hRe((e,t=new Map)=>lkt(t.get(e)??e.points??[]),"replacementPointsFor"),a=hRe((e=new Map)=>{let t=0;for(let n=0;n<i.length;n++){const r=ASt(o(i[n],e));for(let a=n+1;a<i.length;a++){const n=ASt(o(i[a],e));for(const e of r)for(const r of n)_kt(e.a,e.b,r.a,r.b,OSt)&&t++}}return t},"strictCrossingCount"),s=hRe((e=new Map)=>i.reduce((t,n)=>t+skt(o(n,e)),0),"totalBends"),l=hRe(e=>{const n=e.start,r=e.end,i=n?t.get(n):void 0,o=r?t.get(r):void 0,a=i?mkt(i):void 0,s=o?mkt(o):void 0;return a&&s?{src:a,dst:s}:void 0},"endpointRectsFor"),c=hRe((e,t,n)=>{if(n.index<=0||n.index+1>=t.length-1)return;const r=l(e);if(r){if(n.vertical){const i=n.a.x,o=Math.min(r.src.left,r.dst.left),a=Math.max(r.src.right,r.dst.right),s=i<o-OSt?"left":i>a+OSt?"right":void 0;if(!s)return;return{edge:e,points:t,segmentIndex:n.index,axis:"vertical",side:s,coord:i,min:Math.min(n.a.y,n.b.y),max:Math.max(n.a.y,n.b.y)}}if(n.horizontal){const i=n.a.y,o=Math.min(r.src.top,r.dst.top),a=Math.max(r.src.bottom,r.dst.bottom),s=i<o-OSt?"top":i>a+OSt?"bottom":void 0;if(!s)return;return{edge:e,points:t,segmentIndex:n.index,axis:"horizontal",side:s,coord:i,min:Math.min(n.a.x,n.b.x),max:Math.max(n.a.x,n.b.x)}}}},"externalRailForSegment"),u=hRe(()=>{const e=[];for(const t of i){const n=o(t);for(const r of ASt(n)){const i=c(t,n,r);i&&e.push(i)}}return e},"collectExternalRails"),h=hRe((e,t)=>e.edge!==t.edge&&e.axis===t.axis&&e.side===t.side&&ikt(e.min,e.max,t.min,t.max)>=8,"railsInteract"),d=hRe(e=>{const t=[],n=new Set;for(const r of e){if(n.has(r))continue;const i=[r],o=[];for(n.add(r);i.length>0;){const t=i.pop();o.push(t);for(const r of e)!n.has(r)&&h(t,r)&&(n.add(r),i.push(r))}o.length>1&&t.push(o)}return t},"connectedComponents"),p=hRe(e=>{const t=[];for(const n of e)t.some(e=>Math.abs(e-n.coord)<OSt)||t.push(n.coord);for(;t.length<e.length;){const n=Math.min(...t),r=Math.max(...t),i=e[0].side;t.push("left"===i||"top"===i?n-12*(e.length-t.length):r+12*(e.length-t.length))}return t},"uniqueCoordsFor"),f=hRe(e=>{const t=e.map(e=>e.coord),n=p(e),r=[];if(e.length<=6){const i=new Array(n.length).fill(!1),o=[],a=hRe(()=>{if(o.length!==e.length)for(const[e,t]of n.entries())i[e]||(i[e]=!0,o.push(t),a(),o.pop(),i[e]=!1);else o.some((e,n)=>Math.abs(e-t[n])>=OSt)&&r.push([...o])},"visit");return a(),r}for(let i=0;i<t.length;i++)for(let e=i+1;e<t.length;e++){const n=[...t];[n[i],n[e]]=[n[e],n[i]],r.push(n)}return r},"coordinateAssignmentsFor"),g=hRe((e,t)=>{const n=new Map;for(const[i,o]of e.entries()){const e=t[i],r=n.get(o.edge)??o.points.map(e=>({x:e.x,y:e.y}));"vertical"===o.axis?(r[o.segmentIndex].x=e,r[o.segmentIndex+1].x=e):(r[o.segmentIndex].y=e,r[o.segmentIndex+1].y=e),n.set(o.edge,r)}const r=new Map;for(const[i,o]of n){const e=Rkt(lkt(o));if(ASt(e).length!==e.length-1)return;r.set(i,e)}return r},"replacementsForAssignment"),m=hRe(e=>{for(const[t,i]of e){const e=[t.start,t.end].filter(e=>Boolean(e));for(const t of ASt(i)){if(kkt(t.a,t.b,n,e,-2))return!1;if(kkt(t.a,t.b,r,[],-2))return!1}}for(let t=0;t<i.length;t++){const n=i[t],r=e.has(n),a=ASt(o(n,e));for(let s=t+1;s<i.length;s++){const t=i[s];if(!r&&!e.has(t))continue;const n=ASt(o(t,e));for(const e of a)for(const t of n)if(okt(e,t,.5)>=8)return!1}}return!0},"candidateIsSafe");for(let O=0;O<4;O++){const e=a();if(0===e)return;let t,n=e,r=s(),i=Number.POSITIVE_INFINITY;for(const o of d(u()))for(const l of f(o)){const c=g(o,l);if(!c||!m(c))continue;const u=a(c);if(u>=e)continue;const h=s(c),d=o.reduce((e,t,n)=>e+Math.abs(l[n]-t.coord),0);u>n||u===n&&(h>r||h===r&&d>=i)||(t=c,n=u,r=h,i=d)}if(!t)return;for(const[o,a]of t)o.points=a}}function $St(e,t){const{realNodeRects:n,labelNodeRects:r}=bkt(t.values()),i=e.filter(e=>!e.isLayoutOnly),o=hRe((e,t,n)=>lkt(e===t?n??[]:e.points??[]),"pointsFor"),a=hRe(e=>ASt(e).reduce((e,t)=>{const n=t.a.x-t.b.x,r=t.a.y-t.b.y;return e+Math.hypot(n,r)},0),"pathLength"),s=hRe((e,t)=>{let n=0;for(let r=0;r<i.length;r++){const a=ASt(o(i[r],e,t));for(let s=r+1;s<i.length;s++){const r=ASt(o(i[s],e,t));for(const e of a)for(const t of r)_kt(e.a,e.b,t.a,t.b,OSt)&&n++}}return n},"strictCrossingCount"),l=hRe((e,t)=>{if(e.horizontal){const n=e.a.y;return(Math.abs(n-t.top)<1||Math.abs(n-t.bottom)<1)&&ikt(e.a.x,e.b.x,t.left,t.right)>=8}if(e.vertical){const n=e.a.x;return(Math.abs(n-t.left)<1||Math.abs(n-t.right)<1)&&ikt(e.a.y,e.b.y,t.top,t.bottom)>=8}return!1},"segmentRunsAlongRectBorder"),c=hRe(e=>{const n=[e.start,e.end].filter(e=>Boolean(e)),r=[];for(const i of n){const e=t.get(i),n=e?mkt(e):void 0;n&&r.push(n)}return r},"endpointRectsFor"),u=hRe((e,t)=>{if(t+3>=e.length)return[];const n=e[t],r=e[t+1],i=e[t+2],o=e[t+3],a=nkt(n,r,OSt)&&rkt(r,i,OSt)&&nkt(i,o,OSt),s=rkt(n,r,OSt)&&nkt(r,i,OSt)&&rkt(i,o,OSt);if(!a&&!s)return[];if(!(a?Math.sign(r.x-n.x)!==Math.sign(o.x-i.x):Math.sign(r.y-n.y)!==Math.sign(o.y-i.y)))return[];const l=ekt(n,o,OSt)||tkt(n,o,OSt)?[]:[{x:n.x,y:o.y},{x:o.x,y:n.y}],c=0===l.length?[[...e.slice(0,t+1),...e.slice(t+3)]]:l.map(n=>[...e.slice(0,t+1),n,...e.slice(t+3)]),u=new Set;return c.map(e=>Rkt(lkt(e))).filter(e=>{if(ASt(e).length!==e.length-1)return!1;if(!e.some(e=>Jwt(e,o,OSt)))return!1;const t=e.map(e=>`${e.x.toFixed(3)},${e.y.toFixed(3)}`).join("|");return!u.has(t)&&(u.add(t),!0)})},"shortcutCandidatesAt"),h=hRe((e,t,a)=>{const u=[e.start,e.end].filter(e=>Boolean(e)),h=c(e);for(const i of ASt(t)){if(kkt(i.a,i.b,n,u,-2))return!1;if(kkt(i.a,i.b,r,[],-2))return!1;if(h.some(e=>l(i,e)))return!1}for(const n of i)if(n!==e)for(const e of ASt(t))for(const t of ASt(o(n)))if(okt(e,t,.5)>=8)return!1;return s(e,t)<=a},"candidateIsSafe");for(let d=0;d<8;d++){const e=s();let t,n,r=e,l=Number.POSITIVE_INFINITY,c=Number.POSITIVE_INFINITY;for(const d of i){const i=o(d),p=skt(i,OSt),f=a(i);for(let o=0;o<=i.length-4;o++)for(const g of u(i,o)){const i=skt(g,OSt),o=a(g);if(!(i<p||i===p&&o<f-OSt)||!h(d,g,e))continue;const u=s(d,g);u>r||u===r&&(i>l||i===l&&o>=c)||(t=d,n=g,r=u,l=i,c=o)}}if(!t||!n)return;t.points=n}}function _St(e,t){const n=20,r=[];for(const H of t.values()){if(H.isGroup||H.isEdgeLabel)continue;const e=H.x??0,t=H.y??0,n=mkt(H);n&&r.push({id:String(H.id??""),cx:e,cy:t,rect:n})}if(0===r.length)return;const i=new Map(r.map(e=>[e.id,e])),o=r.map(e=>({id:e.id,rect:e.rect})),a=["top","bottom","left","right"],s={top:Math.min(...r.map(e=>e.rect.top))-n,bottom:Math.max(...r.map(e=>e.rect.bottom))+n,left:Math.min(...r.map(e=>e.rect.left))-n,right:Math.max(...r.map(e=>e.rect.right))+n},l=e.filter(e=>!e.isLayoutOnly),c=new Map(l.map((e,t)=>[e,t])),u=hRe(e=>{const t="left"===e||"top"===e?-1:1,r=[];for(let i=0;i<=2;i++)r.push(s[e]+t*n*i);return r},"outwardTracksForSide"),h=hRe((e,t=new Map)=>lkt(t.get(e)??e.points??[]),"replacementPointsFor"),d=hRe((e,t)=>{let n=0;for(const r of e)for(const e of t)_kt(r.a,r.b,e.a,e.b,OSt)&&n++;return n},"crossingCountBetweenSegments"),p=hRe((e,t)=>d(ASt(e),ASt(t)),"crossingCountBetweenPaths"),f=hRe((e=new Map)=>{let t=0;const n=[],r=new Set,i=[],o=hRe(e=>{r.has(e)||(r.add(e),i.push(e))},"addEdge");for(let a=0;a<l.length;a++){const r=l[a],i=h(r,e);for(let s=a+1;s<l.length;s++){const a=l[s],c=p(i,h(a,e));c>0&&(t+=c,n.push({first:r,second:a,count:c}),o(r),o(a))}}return i.sort((e,t)=>(c.get(e)??0)-(c.get(t)??0)),{count:t,pairs:n,edgeSet:r,edges:i}},"crossingSnapshot"),g=hRe((e,t)=>{const n=new Set(t.keys());if(0===n.size)return e.count;let r=0;for(const o of e.pairs)(n.has(o.first)||n.has(o.second))&&(r+=o.count);let i=0;for(let o=0;o<l.length;o++){const e=l[o],r=n.has(e),a=h(e,t);for(let s=o+1;s<l.length;s++){const e=l[s];(r||n.has(e))&&(i+=p(a,h(e,t)))}}return e.count-r+i},"crossingCountWithReplacements"),m=hRe(e=>{const t=new Map;for(const i of e.pairs){const e=t.get(i.first)??new Set;e.add(i.second),t.set(i.first,e);const n=t.get(i.second)??new Set;n.add(i.first),t.set(i.second,n)}const n=[],r=new Set;for(const i of e.edges){if(r.has(i))continue;const e=[i],o=[];for(r.add(i);e.length>0;){const n=e.pop();o.push(n);for(const i of t.get(n)??[])r.has(i)||(r.add(i),e.push(i))}o.sort((e,t)=>(c.get(e)??0)-(c.get(t)??0)),o.length>1&&n.push(o)}return n},"crossingComponents"),O=hRe(e=>[e.start,e.end].filter(e=>Boolean(e)),"endpointIdsFor"),A=hRe(e=>{const t=[];for(const n of m(e)){const e=new Set(n),r=new Set(n.flatMap(e=>O(e))),i=[...n];for(const t of l)e.has(t)||O(t).some(e=>r.has(e))&&i.push(t);i.sort((e,t)=>(c.get(e)??0)-(c.get(t)??0)),t.push(i)}return t},"pairSearchGroups"),y=hRe((e,t,n)=>g(e,new Map([[t,n]])),"crossingCountWithSingleReplacement"),v=hRe(e=>{const t=new Map;for(const n of e.pairs)t.set(n.first,(t.get(n.first)??0)+n.count),t.set(n.second,(t.get(n.second)??0)+n.count);return t},"currentCrossingsByEdge"),b=hRe(e=>e.slice(1).reduce((t,n,r)=>{const i=e[r];return t+Math.abs(n.x-i.x)+Math.abs(n.y-i.y)},0),"pathLength"),x=hRe((e=new Map)=>l.reduce((t,n)=>t+skt(h(n,e)),0),"totalBends"),w=hRe((e=new Map)=>l.reduce((t,n)=>t+b(h(n,e)),0),"totalLength"),k=hRe((e,t,n=new Map)=>{const r=ASt(t);for(const i of l)if(i!==e)for(const e of r)for(const t of ASt(h(i,n)))if(okt(e,t,.5)>=8)return!0;return!1},"pathHasSegmentConflict"),S=hRe((e,t)=>{const n=[e.start,e.end].filter(e=>Boolean(e));for(const r of ASt(t))if(kkt(r.a,r.b,o,n,-2))return!0;return!1},"pathHitsNode"),T=hRe((e,t)=>{const n=Rkt(lkt(t));ASt(n).length===n.length-1&&e.push(n)},"pushOrthogonalCandidate"),$=hRe(e=>"left"===e||"right"===e,"sideIsHorizontal"),_=hRe((e,t,r)=>{switch(t){case"left":return Math.min(e.x,r.x)-n;case"right":return Math.max(e.x,r.x)+n;case"top":return Math.min(e.y,r.y)-n;case"bottom":return Math.max(e.y,r.y)+n}},"localTrackForSameSide"),C=hRe((e,t,r,i)=>{const o="left"===r||"top"===r?-1:1,a=[_(t,r,i),s[r]];for(const s of a)for(let a=0;a<=2;a++)T(e,ykt(t,r,i,s+o*n*a))},"addSameSideCandidates"),Q=hRe((e,t,n,r,i)=>{for(const o of u(n))for(const n of u(i))T(e,[t,{x:o,y:t.y},{x:o,y:n},{x:r.x,y:n},r])},"addHorizontalToVerticalCandidates"),P=hRe((e,t,n,r,i)=>{for(const o of u(n))for(const n of u(i))T(e,[t,{x:t.x,y:o},{x:n,y:o},{x:n,y:r.y},r])},"addVerticalToHorizontalCandidates"),E=hRe((e,t,n,r,i)=>{const o=[...u("top"),...u("bottom")];for(const a of u(n))for(const n of u(i))for(const i of o)T(e,[t,{x:a,y:t.y},{x:a,y:i},{x:n,y:i},{x:n,y:r.y},r])},"addHorizontalPairCandidates"),R=hRe((e,t,n,r,i)=>{const o=[...u("left"),...u("right")];for(const a of u(n))for(const n of u(i))for(const i of o)T(e,[t,{x:t.x,y:a},{x:i,y:a},{x:i,y:n},{x:r.x,y:n},r])},"addVerticalPairCandidates"),B=hRe(e=>{const t=new Set;return e.map(e=>lkt(e)).filter(e=>{const n=e.map(e=>`${e.x.toFixed(3)},${e.y.toFixed(3)}`).join("|");return!(t.has(n)||e.length<2)&&(t.add(n),!0)})},"dedupeCandidatePaths"),I=hRe((e,t,r,i)=>{const o=[],a=Akt(e,t,r,i,n,OSt);a&&T(o,a),t===i&&C(o,e,t,r);const s=$(t),l=$(i);return s&&!l?Q(o,e,t,r,i):!s&&l?P(o,e,t,r,i):s?E(o,e,t,r,i):R(o,e,t,r,i),B(o)},"buildCandidatesForSides"),L=hRe((e,t,n,r)=>{const i=[...u("left"),...u("right")],o=[...u("top"),...u("bottom")];for(const s of a){const a=Okt(r,s),l="top"===s||"bottom"===s?u(s):o;for(const r of i){T(e,[t,n,{x:r,y:n.y},{x:r,y:a.y},a]);for(const i of l)T(e,[t,n,{x:r,y:n.y},{x:r,y:i},{x:a.x,y:i},a])}}},"addVerticalDepartureOuterTrackCandidates"),D=hRe((e,t,n,r)=>{const i=[...u("left"),...u("right")],o=[...u("top"),...u("bottom")];for(const s of a){const a=Okt(r,s),l="left"===s||"right"===s?u(s):i;for(const r of o){T(e,[t,n,{x:n.x,y:r},{x:a.x,y:r},a]);for(const i of l)T(e,[t,n,{x:n.x,y:r},{x:i,y:r},{x:i,y:a.y},a])}}},"addHorizontalDepartureOuterTrackCandidates"),M=hRe(e=>{const t=e.start,n=e.end,r=n?i.get(n):void 0;if(!t||!r)return[];const o=lkt(e.points??[]);if(o.length<4)return[];const a=o[0],s=o[1],l=[];return rkt(a,s,OSt)?L(l,a,s,r):nkt(a,s,OSt)&&D(l,a,s,r),l},"terminalPreservingOuterTrackCandidates"),N=hRe(e=>{const t=e.start,n=e.end,r=t?i.get(t):void 0,o=n?i.get(n):void 0;if(!r||!o)return[];const s=[];for(const i of a){const e=Okt(r,i);for(const t of a)s.push(...I(e,i,Okt(o,t),t))}return s.push(...M(e)),s},"candidatePathsFor"),X=hRe(()=>new Map(l.map(e=>[e,ASt(h(e))])),"currentSegmentsByEdge"),F=hRe((e,t,n)=>{const r=new Set;for(const i of l){if(i===e)continue;const o=n.get(i)??ASt(h(i));t.some(e=>o.some(t=>okt(e,t,.5)>=8))&&r.add(i)}return r},"sharedTrackConflictsFor"),U=hRe((e,t,n,r)=>{const i=new Set;return N(e).map(e=>Rkt(lkt(e))).filter(t=>{if(S(e,t))return!1;const n=t.map(e=>`${e.x.toFixed(3)},${e.y.toFixed(3)}`).join("|");return!(i.has(n)||t.length<2)&&(i.add(n),!0)}).map(i=>{const o=ASt(i);let a=0;for(const t of l)t!==e&&(a+=d(o,n.get(t)??ASt(h(t))));return{candidate:i,candidateSegments:o,crossings:t.count-(r.get(e)??0)+a,bends:skt(i,OSt),totalBends:skt(i),length:b(i)}}).filter(({crossings:e})=>e<=t.count).sort((e,t)=>e.crossings-t.crossings||e.bends-t.bends||e.length-t.length).slice(0,48).map(t=>({path:t.candidate,segments:t.candidateSegments,sharedTrackConflicts:F(e,t.candidateSegments,n),totalBends:t.totalBends,length:t.length}))},"pairCandidatesFor"),z=hRe((e,t,n,r,i,o)=>{let a=0;for(const l of e.pairs)l.first!==t&&l.second!==t&&l.first!==r&&l.second!==r||(a+=l.count);let s=d(n.segments,i.segments);for(const c of l){if(c===t||c===r)continue;const e=o.get(c)??ASt(h(c));s+=d(n.segments,e)+d(i.segments,e)}return e.count-a+s},"pairCrossingCount"),q=hRe((e,t)=>{for(const n of e.sharedTrackConflicts)if(n!==t)return!1;return!0},"conflictsOnlyWith"),V=hRe((e,t)=>e.segments.some(e=>t.segments.some(t=>okt(e,t,.5)>=8)),"candidatesShareTrack"),W=hRe((e,t,n,r)=>q(t,n.edge)&&q(r,e.edge)&&!V(t,r),"pairCandidatesAreCompatible"),j=hRe((e,t,n,r,i)=>{const o=z(e.current,t.edge,n,r.edge,i,e.baseSegments);if(!(o>=e.current.count))return{replacements:new Map([[t.edge,n.path],[r.edge,i.path]]),crossings:o,bends:e.currentBends-(e.baseBendsByEdge.get(t.edge)??0)-(e.baseBendsByEdge.get(r.edge)??0)+n.totalBends+i.totalBends,length:e.currentLength-(e.baseLengthByEdge.get(t.edge)??0)-(e.baseLengthByEdge.get(r.edge)??0)+n.length+i.length}},"scorePairReplacement"),Y=hRe((e,t)=>e.crossings<t.crossings||e.crossings===t.crossings&&(e.bends<t.bends||e.bends===t.bends&&e.length<t.length),"pairScoreIsBetter"),Z=hRe((e,t,n,r)=>{let i=r;for(const o of t.candidates)for(const r of n.candidates){if(!W(t,o,n,r))continue;const a=j(e,t,o,n,r);a&&Y(a,i)&&(i=a)}return i},"bestScoreForOptionPair"),G=hRe(e=>{const t=x(),n=w(),r=X(),i=v(e),o=new Map(l.map(e=>[e,skt(h(e))])),a=new Map(l.map(e=>[e,b(h(e))])),s=new Map,c=A(e);for(const l of c)for(const t of l){if(s.has(t))continue;const n=U(t,e,r,i);n.length>0&&s.set(t,{edge:t,candidates:n})}let u={replacements:new Map,crossings:e.count,bends:t,length:n};const d={current:e,currentBends:t,currentLength:n,baseBendsByEdge:o,baseLengthByEdge:a,baseSegments:r};for(const l of c){const t=new Set(l.filter(t=>e.edgeSet.has(t))),n=l.map(e=>s.get(e)).filter(e=>Boolean(e));for(let e=0;e<n.length;e++){const r=n[e];for(let i=e+1;i<n.length;i++){const e=n[i];(t.has(r.edge)||t.has(e.edge))&&(u=Z(d,r,e,u))}}}return u.replacements.size>0?u.replacements:void 0},"bestPairedReplacement");for(let H=0;H<4;H++){const e=f(),t=e.count;if(0===t)return;let n,r,i=t,o=Number.POSITIVE_INFINITY;for(const s of e.edges){const a=skt(h(s),OSt);for(const l of N(s)){const c=S(s,l),u=!c&&k(s,l),h=y(e,s,l),d=skt(l,OSt);if(c||u)continue;(h<t||h===t&&d<a)&&(h>i||h===i&&d>=o||(n=s,r=l,i=h,o=d))}}if(n&&r){n.points=r;continue}const a=G(e);if(!a)return;for(const[s,l]of a)s.points=l}}hRe(vSt,"separateSharedRenderedTerminalLanes"),hRe(bSt,"collapseRedundantRectangularDoglegs"),hRe(xSt,"liftObstacleHuggingSameSideRails"),hRe(wSt,"liftTopLaneTitleBandsAboveRails"),hRe(kSt,"shiftLeftLaneTitleBandsLeftOfRails"),hRe(SSt,"swapDestinationTerminalTailsToReduceCrossings"),hRe(TSt,"reassignCrossingExternalRailChannels"),hRe($St,"shortcutRedundantOrthogonalJogs"),hRe(_St,"resolveRenderedOrthogonalCrossings");var CSt=.001;function QSt(e,t){const{nodeInfoById:n,realNodeRects:r}=vkt(t),i=["top","bottom","left","right"],o={top:Math.min(...r.map(e=>e.rect.top))-20,bottom:Math.max(...r.map(e=>e.rect.bottom))+20,left:Math.min(...r.map(e=>e.rect.left))-20,right:Math.max(...r.map(e=>e.rect.right))+20},a=hRe((e,t,n,r)=>{const i=[],a=Akt(e,t,n,r,20,CSt);return a&&i.push(a),t===r&&i.push(ykt(e,t,n,o[t])),i},"buildOrthogonalPathCandidates"),s=hRe((e,t)=>{for(let n=0;n<e.length-1;n++){if(kkt(e[n],e[n+1],r,t,1))return!0}return!1},"pathHitsNode"),l=hRe((t,n,r=!1)=>{let i=0;const o=akt(t,CSt),a=n.start,s=n.end;for(const l of e){if(l===n||l.isLayoutOnly)continue;const e=l.start,t=l.end;if(!r&&a&&s&&(e===a||e===s||t===a||t===s))continue;const c=l.points;if(c&&!(c.length<2))for(const n of o)for(const e of akt(c,CSt))(Skt(n.a,n.b,e.a,e.b,CSt,CSt)||okt(n,e,CSt)>=8)&&i++}return i},"pathConflictCount"),c=hRe((e,t)=>{const n=Math.abs(e.y-t.rect.top),r=Math.abs(e.y-t.rect.bottom),i=Math.abs(e.x-t.rect.left),o=Math.abs(e.x-t.rect.right);let a="top",s=n;return r<s&&(a="bottom",s=r),i<s&&(a="left",s=i),o<s&&(a="right",s=o),a},"nearestSideOfRect"),u=new Map,h=hRe((e,t,n)=>{const r=u.get(e)??[];r.push({side:t,edgeId:n}),u.set(e,r)},"addFaceClaim");for(const p of e){if(p.isLayoutOnly)continue;const e=p.points??[];if(e.length<1)continue;const t=p.id??"",r=p.start,i=p.end;if(r){const i=n.get(r);i&&h(r,c(e[0],i),t)}if(i){const r=n.get(i);r&&h(i,c(e[e.length-1],r),t)}}const d=hRe((e,t,n)=>{var r;return(null==(r=u.get(e))?void 0:r.some(e=>e.edgeId!==n&&e.side===t))??!1},"faceIsClaimed");for(const p of e){if(p.isLayoutOnly)continue;const e=p.points;if(!e||e.length<2)continue;const t=skt(e,CSt);if(t<4)continue;const r=p.start,o=p.end;if(!r||!o)continue;const f=n.get(r),g=n.get(o);if(!f||!g)continue;const m=p.id??"",O=l(e,p,!0),A=l(e,p);let y,v=O,b=t;for(const n of i){if(d(r,n,m))continue;const e=Okt(f,n);for(const t of i){if(d(o,t,m))continue;const i=Okt(g,t);for(const c of a(e,n,i,t)){if(s(c,[r,o]))continue;const e=skt(c,CSt);if(O>0){const t=l(c,p,!0);if(t>v||t===v&&e>=b)continue;v=t,b=e,y=c;continue}l(c,p)>A||e<b&&(b=e,y=c)}}}if(y){p.points=y;const e=u.get(r);e&&u.set(r,e.filter(e=>e.edgeId!==m));const t=u.get(o);t&&u.set(o,t.filter(e=>e.edgeId!==m)),h(r,c(y[0],f),m),h(o,c(y[y.length-1],g),m)}}}hRe(QSt,"simplifyDetouredEdges");var PSt=.001;function ESt(e,t){const n=t?0:e.length-1,r=t?1:-1,i=e[n],o=e[n+r];if(!i||!o)return;const a=o.x-i.x,s=o.y-i.y;if(!(Math.abs(a)+Math.abs(s)<PSt)){if(Math.abs(s)<=PSt){const e=i.x+10*Math.sign(a);return{left:Math.min(i.x,e),right:Math.max(i.x,e),top:i.y-7,bottom:i.y+7}}if(Math.abs(a)<=PSt){const e=i.y+10*Math.sign(s);return{left:i.x-7,right:i.x+7,top:Math.min(i.y,e),bottom:Math.max(i.y,e)}}return{left:Math.min(i.x,o.x),right:Math.max(i.x,o.x),top:Math.min(i.y,o.y),bottom:Math.max(i.y,o.y)}}}function RSt(e){return{left:Math.min(e.left,e.right),right:Math.max(e.left,e.right),top:Math.min(e.top,e.bottom),bottom:Math.max(e.top,e.bottom)}}function BSt(e,t){const n=lkt(t);return[ESt(n,!0),ESt(n,!1)].some(t=>t&&pkt(e,RSt(t)))}function ISt(e,t){const n=[];for(const h of e){if(h.isLayoutOnly)continue;const e=h.points;if(e&&!(e.length<2))for(let t=0;t<e.length-1;t++)n.push({edgeId:h.id,p1:e[t],p2:e[t+1]})}const r=[],i=[];for(const h of t.values()){const e=h.isGroup,t=h.parentId;if(e&&!t){const e=mkt(h);e&&i.push({id:h.id,rect:e});continue}if(e)continue;if(h.isEdgeLabel)continue;const n=mkt(h);n&&r.push({nodeId:h.id,rect:n})}const o=hRe((e,t)=>{const n=fkt(t,3);for(const{nodeId:i,rect:o}of r)if(i!==e&&pkt(n,o))return!0;return!1},"labelOverlapsForeignNode"),a=hRe((e,t)=>{const r=fkt(t,3);for(const i of n)if(i.edgeId!==e&&ukt(i.p1,i.p2,r))return!0;return!1},"labelOverlapsForeignEdge"),s=hRe((e,t,n)=>o(e,n)||a(t,n),"labelOverlapsAnything"),l=[],c=hRe(e=>{for(const{id:t,rect:n}of i)if(dkt(n,e))return t},"findContainingLane"),u=hRe((e,t)=>l.some(n=>n.labelId!==e&&pkt(t,n.rect)),"overlapsPlacedLabel");for(const h of e){if(h.isLayoutOnly)continue;const e=h.labelNodeId;if(!e)continue;const n=t.get(e);if(!n)continue;const r=h.points;if(!r||r.length<2)continue;const d=n.width??0,p=n.height??0;if(d<=0||p<=0)continue;const f=[];for(let t=0;t<r.length-1;t++){const e=r[t],n=r[t+1],i=Math.abs(e.x-n.x),o=Math.abs(e.y-n.y);i<PSt&&o<PSt||(i>=PSt&&o>=PSt||f.push({idx:t,length:i+o,orientation:i>=PSt?"horizontal":"vertical",midX:(e.x+n.x)/2,midY:(e.y+n.y)/2}))}if(0===f.length)continue;const g=f.length>=3?f.filter(e=>e.idx>0&&e.idx<f.length-1):f,m=g.length>0?g:f,O=d>=p?"horizontal":"vertical",A=hRe(e=>[...e].sort((e,t)=>{const n=e.orientation===O;if(n!==(t.orientation===O))return n?-1:1;const r=e.length>=("horizontal"===e.orientation?d:p)+2;return r!==t.length>=("horizontal"===t.orientation?d:p)+2?r?-1:1:t.length-e.length}),"rankSegments"),y=f[0],v=f[f.length-1],b=[.5,.25,.75,.05,.95,.15,.85,.1,.9],x=hRe((e,t)=>{const n=r[e.idx],i=r[e.idx+1];return{midX:n.x+(i.x-n.x)*t,midY:n.y+(i.y-n.y)*t}},"anchorAtT"),w=hRe((e,t,n)=>Math.min(n,Math.max(t,e)),"clamp"),k=hRe((e,t)=>e.midX>=t.left-PSt&&e.midX<=t.right+PSt&&e.midY>=t.top-PSt&&e.midY<=t.bottom+PSt,"pointInsideRectInclusive"),S=hRe(e=>{const t=gkt(e.midX,e.midY,d,p),n=c(t);if(n)return{laneId:n,anchor:e,rect:t};const r=i.find(({rect:t})=>k(e,t));if(!r)return;const o=r.rect.left+d/2+1,a=r.rect.right-d/2-1,s=r.rect.top+p/2+1,l=r.rect.bottom-p/2-1;if(o>a||s>l)return;const u={midX:w(e.midX,o,a),midY:w(e.midY,s,l)},h=gkt(u.midX,u.midY,d,p);return k(e,h)?{laneId:r.id,anchor:u,rect:h}:void 0},"placementForAnchor"),T=hRe((e,t,n)=>"horizontal"===e.orientation?Math.abs(t.midX-n.x):Math.abs(t.midY-n.y),"distanceAlongSegment"),$=hRe((e,t)=>{const n=("horizontal"===e.orientation?d/2:p/2)+12;if(e===y){const i=r[e.idx];if(T(e,t,i)+PSt<n)return!1}if(e===v){const i=r[e.idx+1];if(T(e,t,i)+PSt<n)return!1}return!0},"labelClearsTerminalEndpoints"),_=hRe(t=>{const n=A(t);for(const i of n)for(const t of b){const n=x(i,t);if(!$(i,n))continue;const o=S(n);if(o&&(!BSt(o.rect,r)&&!u(e,o.rect)&&!s(e,h.id,o.rect)))return{laneId:o.laneId,anchor:o.anchor}}},"tryPool"),C=hRe((t,n,i=!1)=>{const s=A(t);for(const l of s){const t={midX:l.midX,midY:l.midY};if(n&&!$(l,t))continue;const s=S(t);if(s&&!BSt(s.rect,r)&&!u(e,s.rect)&&!o(e,s.rect)&&(i||!a(h.id,s.rect)))return{laneId:s.laneId,anchor:s.anchor}}},"findLaneContainingFallback"),Q=_(m)??(m.length<f.length?_(f):void 0)??C(f,!0)??C(f,!1)??C(f,!1,!0);if(Q){n.x=Q.anchor.midX,n.y=Q.anchor.midY,n.parentId=Q.laneId;const t=gkt(Q.anchor.midX,Q.anchor.midY,d,p),r=l.findIndex(t=>t.labelId===e);r>=0?l[r]={labelId:e,rect:t}:l.push({labelId:e,rect:t})}}}hRe(ESt,"markerClearanceRectFor"),hRe(RSt,"normalizeRect"),hRe(BSt,"labelOverlapsOwnMarker"),hRe(ISt,"anchorLabelsToPolyline");var LSt=1e-6;function DSt(e,t){return e<t?`${e}::${t}`:`${t}::${e}`}function MSt(e,t){const{nodeInfoById:n,realNodeRects:r}=vkt(t),i=new Map;for(const a of t){const e=a.id;a.isGroup||a.isEdgeLabel&&i.set(e,{w:a.width??0,h:a.height??0})}const o=hRe((t,n,r,o)=>{const a=DSt(n,r);let s=0;const l=hRe(e=>{if(!e)return;const t=i.get(e);if(!t)return;const n="x"===o?t.w/2:t.h/2;n>s&&(s=n)},"consider");l(t.labelNodeId);for(const i of e){if(i===t)continue;if(i.isLayoutOnly)continue;const e=i.start,n=i.end;e&&n&&(DSt(e,n)===a&&l(i.labelNodeId))}return s>0?s+3:0},"labelClearanceFor");for(const a of e){if(a.isLayoutOnly)continue;if(!ckt(a.points,LSt))continue;const t=wkt(a,n,LSt);if(!t)continue;const{srcId:i,dstId:s,srcInfo:l,dstInfo:c,collinearX:u,collinearY:h}=t;if(u===h)continue;let d,p;if(u){const e=c.cy>l.cy;d={x:l.cx,y:e?l.rect.bottom:l.rect.top},p={x:c.cx,y:e?c.rect.top:c.rect.bottom}}else{const e=c.cx>l.cx;d={x:e?l.rect.right:l.rect.left,y:l.cy},p={x:e?c.rect.left:c.rect.right,y:c.cy}}if(kkt(d,p,r,[i,s],1))continue;const f=o(a,i,s,u?"x":"y"),g=f>4?f:4,m=[0,g,-g];for(const n of m){const t={...d},o={...p};if(u){if(t.x+=n,o.x+=n,t.x<=l.rect.left||t.x>=l.rect.right)continue;if(o.x<=c.rect.left||o.x>=c.rect.right)continue}else{if(t.y+=n,o.y+=n,t.y<=l.rect.top||t.y>=l.rect.bottom)continue;if(o.y<=c.rect.top||o.y>=c.rect.bottom)continue}if(!kkt(t,o,r,[i,s],1)&&!$kt(t,o,e,a,{epsilon:LSt})){a.points=[t,o];break}}}}function NSt(e,t){const n=.001,{realNodeRects:r,labelNodeRects:i}=bkt(t.values()),o=hRe((e,t)=>akt(t,n).map(n=>({...n,edge:e,interior:n.index>=1&&n.index<=t.length-3})),"segmentsFor"),a=hRe(()=>{const t=[];for(const n of e){if(n.isLayoutOnly)continue;const e=n.points;!e||e.length<2||t.push(...o(n,lkt(e)))}return t},"allSegments"),s=hRe((e,t)=>e.horizontal&&t.horizontal?ikt(e.a.x,e.b.x,t.a.x,t.b.x)>=8&&Math.abs(e.a.y-t.a.y)<7:!(!e.vertical||!t.vertical)&&(ikt(e.a.y,e.b.y,t.a.y,t.b.y)>=8&&Math.abs(e.a.x-t.a.x)<7),"hasCrowdedParallelTrack"),l=hRe((t,a)=>{const l=t.start,c=t.end,u=o(t,a);if(u.length!==a.length-1)return!1;const h=[l,c].filter(e=>Boolean(e)),d=t.labelNodeId?[t.labelNodeId]:[];for(const e of u){if(kkt(e.a,e.b,r,h,-2))return!1;if(kkt(e.a,e.b,i,d,-2))return!1}for(const r of e){if(r===t||r.isLayoutOnly)continue;const e=r.points;if(e&&!(e.length<2))for(const t of u)for(const i of o(r,lkt(e))){if(s(t,i))return!1;if(_kt(t.a,t.b,i.a,i.b,n))return!1}}return!0},"candidateIsSafe"),c=hRe((e,t)=>{const n=lkt(e.edge.points??[]);if(n.length<4||e.index>=n.length-1)return;const r=n.map(e=>({...e}));if(e.horizontal)r[e.index].y+=t,r[e.index+1].y+=t;else{if(!e.vertical)return;r[e.index].x+=t,r[e.index+1].x+=t}return o(e.edge,r).length===r.length-1?r:void 0},"shiftedCandidate"),u=hRe((e,t)=>({x:e.x??(t.left+t.right)/2,y:e.y??(t.top+t.bottom)/2}),"nodeCenter"),h=hRe(e=>{const n=e.edge,r=lkt(n.points??[]);if(4!==r.length||1!==e.index)return;const i=n.start?t.get(n.start):void 0,o=n.end?t.get(n.end):void 0,a=i?mkt(i):void 0,s=o?mkt(o):void 0,l=r.slice(e.index+2);return i&&o&&a&&s&&0!==l.length?{sourceCenter:u(i,a),targetCenter:u(o,s),sourceRect:a,tail:l}:void 0},"sourceDetourContextFor"),d=hRe((e,t,r,i,o,a)=>{const s=i.y>=r.y,l=s?o.bottom:o.top,c=l+(s?20:-20);if(s&&e.b.y<=c+n||!s&&e.b.y>=c-n)return;const u=e.a.x+t;return lkt([{x:r.x,y:l},{x:r.x,y:c},{x:u,y:c},{x:u,y:e.b.y},...a],n)},"verticalSourceDetour"),p=hRe((e,t,r,i,o,a)=>{const s=i.x>=r.x,l=s?o.right:o.left,c=l+(s?20:-20);if(s&&e.b.x<=c+n||!s&&e.b.x>=c-n)return;const u=e.a.y+t;return lkt([{x:l,y:r.y},{x:c,y:r.y},{x:c,y:u},{x:e.b.x,y:u},...a],n)},"horizontalSourceDetour"),f=hRe((e,t)=>{const n=h(e);if(n)return e.vertical?d(e,t,n.sourceCenter,n.targetCenter,n.sourceRect,n.tail):e.horizontal?p(e,t,n.sourceCenter,n.targetCenter,n.sourceRect,n.tail):void 0},"sourceDetourCandidate"),g=[-7,7,-14,14,-21,21];for(let m=0;m<12;m++){const e=a();let t=!1;for(let n=0;n<e.length&&!t;n++)for(let r=n+1;r<e.length&&!t;r++){const i=e[n],o=e[r];if(i.edge===o.edge||!s(i,o))continue;const a=[i,o].filter(e=>e.interior);for(const e of a){for(const n of g){const r=c(e,n);if(r&&l(e.edge,r)){e.edge.points=r,t=!0;break}const i=f(e,n);if(i&&l(e.edge,i)){e.edge.points=i,t=!0;break}}if(t)break}}if(!t)return}}function XSt(e,t,n,r){const i=t.x-e.x,o=t.y-e.y,a=r.x-n.x,s=r.y-n.y,l=i*s-o*a;if(Math.abs(l)<1e-10)return!1;const c=n.x-e.x,u=n.y-e.y,h=(c*s-u*a)/l,d=(c*o-u*i)/l,p=.01;return h>p&&h<.99&&d>p&&d<.99}function FSt(e){const t=e.nodes??[],n=e.edges??[],r=[];if(!n.length||!t.length)return r;const i=xkt(t),o=[];for(const s of n){if(s.isLayoutOnly)continue;const e=s.points;if(!e||e.length<2)continue;const t=s.start,n=s.end,a=s.labelNodeId,l=s.id??`${t}->${n}`;for(const o of i)if(o.nodeId!==t&&o.nodeId!==n&&(!a||o.nodeId!==a))for(let t=0;t<e.length-1;t++)if(ukt(e[t],e[t+1],o,-1)){r.push({type:"edge-node-overlap",edgeId:l,targetId:o.nodeId,detail:`segment ${t} passes through node "${o.nodeId}"`});break}for(let r=0;r<e.length-1;r++)o.push({edgeId:l,start:t,end:n,p1:e[r],p2:e[r+1]})}const a=new Set;for(let s=0;s<o.length;s++)for(let e=s+1;e<o.length;e++){const t=o[s],n=o[e];if(t.edgeId!==n.edgeId&&(t.start!==n.start&&t.start!==n.end&&t.end!==n.start&&t.end!==n.end&&XSt(t.p1,t.p2,n.p1,n.p2))){const e=t.edgeId<n.edgeId?`${t.edgeId}|${n.edgeId}`:`${n.edgeId}|${t.edgeId}`;a.has(e)||(a.add(e),r.push({type:"edge-edge-crossing",edgeId:t.edgeId,targetId:n.edgeId,detail:`edges "${t.edgeId}" and "${n.edgeId}" cross`}))}}if(r.length>0){const e=r.filter(e=>"edge-node-overlap"===e.type).length,t=r.filter(e=>"edge-edge-crossing"===e.type).length;ORe.warn(`[SWIMLANE_VALIDATE] ${r.length} issue(s) detected: ${e} edge-node overlap(s), ${t} edge crossing(s)`);for(const n of r)ORe.warn(`[SWIMLANE_VALIDATE] ${n.type}: ${n.detail}`)}return r}function USt(e,t){const n=e.nodes??[],r=e.edges??[],i=n.filter(e=>!e.isGroup);if(("LR"===t||"RL"===t)&&i.length>0&&!dSt(e,t))return;if("BT"===t&&i.length>0&&!hSt(e))return;for(const s of r){if(s.isLayoutOnly)continue;const e=s.points;!e||e.length<2||(s.points=Rkt(Ekt(e)))}QSt(r,n),MSt(r,n),gSt(r,n);const o=new Map;for(const s of n)o.set(String(s.id),s);ISt(r,o),Mkt(r,o),mSt(r,o),NSt(r,o),vSt(r,o),bSt(r,o),xSt(r,o),SSt(r,o);const a=hRe(()=>{_St(r,o),TSt(r,o),$St(r,o),ISt(r,o),rSt(r,o),xSt(r,o),ISt(r,o),rSt(r,o)},"finalizeRenderedEdges");a(),NSt(r,o),a(),wSt(r,o),kSt(r,o),wSt(r,o),kSt(r,o)}function zSt(e){const t=new Map(e.nodeById),n=new Set,r=[];for(const i of e.edges){if(!t.has(i.src)||!t.has(i.dst))continue;const e=`${i.id}:${i.src}->${i.dst}`;n.has(e)||(n.add(e),r.push(i))}return{nodes:[...t.keys()],edges:r,layout:e.layout,nodeById:t}}function qSt(e,t){return e.edges.filter(e=>e.dst===t)}function VSt(e){const t=new Map;for(const n of e.nodes)t.set(n,[]);for(const n of e.edges)t.get(n.src).push(n.dst);return t}function WSt(e){const t=VSt(e);for(const n of t.values())n.sort((e,t)=>e.localeCompare(t));return t}function jSt(e){const t=new Map;for(const n of e.nodes)t.set(n,0);for(const n of e.edges)t.set(n.dst,(t.get(n.dst)??0)+1);return t}function YSt(e){return[...e.entries()].filter(([,e])=>0===e).map(([e])=>e).sort((e,t)=>e.localeCompare(t))}function ZSt(e,t=()=>!0){const n=new Map,r=new Map;for(const i of e.nodes)n.set(i,[]),r.set(i,[]);for(const i of e.edges)t(i)&&(r.get(i.src).push(i.dst),n.get(i.dst).push(i.src));return{preds:n,succs:r}}function GSt(e,t,n,r){var i,o;let a=0;for(const l of e.nodes)(null==r?void 0:r.skipGroups)&&(null==(i=e.nodeById.get(l))?void 0:i.isGroup)||(a=Math.max(a,n[l]??0));const s=Array.from({length:a+1},()=>[]);for(const l of t)(null==r?void 0:r.skipGroups)&&(null==(o=e.nodeById.get(l))?void 0:o.isGroup)||s[Math.max(0,n[l]??0)].push(l);return s}function HSt(e){const t=jSt(e),n=YSt(t),r=[],i=WSt(e);for(;n.length;){const e=n.shift();r.push(e);for(const r of i.get(e)??[])if(t.set(r,(t.get(r)??0)-1),0===(t.get(r)??0)){let e=0;for(;e<n.length&&n[e]<r;)e++;n.splice(e,0,r)}}return r.length===e.nodes.length?r:null}function KSt(e){const t=new Map;let n=0;for(const r of e)t.set(r,n),n++;return t}function JSt(e){const t=new Array(e.length),n=hRe((r,i)=>{if(i-r<=1)return 0;const o=r+i>>1;let a=n(r,o)+n(o,i),s=r,l=o,c=r;for(;s<o||l<i;)l>=i||s<o&&e[s]<=e[l]?t[c++]=e[s++]:(t[c++]=e[l++],a+=o-s);for(let n=r;n<i;n++)e[n]=t[n];return a},"count");return n(0,e.length)}function eTt(e){const t=zSt(e),n=new Map;for(const c of t.nodes)n.set(c,[]);for(const c of t.edges)n.get(c.src).push(c);for(const c of n.values())c.sort((e,t)=>e.dst===t.dst?e.id.localeCompare(t.id):e.dst.localeCompare(t.dst));const r=Object.create(null);for(const c of t.nodes)r[c]=0;const i=[],o=hRe(e=>{r[e]=1;for(const t of n.get(e)??[]){const e=t.dst;0===r[e]?o(e):1===r[e]&&i.push(t)}r[e]=2},"dfs"),a=[...t.nodes].sort((e,t)=>e.localeCompare(t));for(const c of a)0===r[c]&&o(c);const s=new Set(i.map(e=>`${e.id}:${e.src}->${e.dst}`)),l=t.edges.map(e=>s.has(`${e.id}:${e.src}->${e.dst}`)?{id:e.id,src:e.dst,dst:e.src,weight:e.weight,ref:e.ref}:e);return{acyclic:{nodes:[...t.nodes],edges:l,layout:t.layout,nodeById:new Map(t.nodeById)},reversed:i}}function tTt(e){const t=new Map,n=hRe(r=>{if(t.has(r))return t.get(r);const i=e.nodeById.get(r);if(!i)return t.set(r,null),null;const o=i.parentId;if(!o)return t.set(r,null),null;const a=n(o)??o;return t.set(r,a),a},"resolve");for(const r of e.nodes)n(r);return t}function nTt(e){const t=tTt(e);return e=>t.get(e)??null}function rTt(e){const t=[];for(const n of e.layout.nodes??[])n.isGroup&&!n.parentId&&t.push(n.id);return[...new Set(t)].reverse()}function iTt(e,t){const n=rTt(e);if(!t||0===t.length)return n;const r=new Set(n),i=new Set,o=[];for(const a of t)r.has(a)&&!i.has(a)&&(i.add(a),o.push(a));for(const a of n)i.has(a)||o.push(a);return o}hRe(DSt,"pairKey"),hRe(MSt,"straightenCollinearSiblingDetours"),hRe(NSt,"nudgeSharedInteriorSubpaths"),hRe(XSt,"segmentsIntersect"),hRe(FSt,"validateSwimlanesLayout"),hRe(USt,"postProcessSwimlaneLayout"),hRe(zSt,"normalizeGraph"),hRe(qSt,"incoming"),hRe(VSt,"buildSuccessorMap"),hRe(WSt,"buildSortedSuccessorMap"),hRe(jSt,"buildInDegreeMap"),hRe(YSt,"sortedZeroInDegreeNodes"),hRe(ZSt,"buildPredecessorSuccessorMaps"),hRe(GSt,"buildLayersFromRanks"),hRe(HSt,"topoSortIfAcyclic"),hRe(KSt,"buildLayerIndex"),hRe(JSt,"countInversions"),hRe(eTt,"removeCycles_DFS"),hRe(tTt,"buildTopLaneMap"),hRe(nTt,"createTopLaneResolver"),hRe(rTt,"buildTopLaneOrder"),hRe(iTt,"resolveTopLaneOrder");var oTt=8,aTt=4,sTt=!0,lTt=100,cTt=40;function uTt(e,t){const n=zSt(e),r=(null==t?void 0:t.laneOf)??(()=>null),i=null==t?void 0:t.rankHint,{preds:o}=ZSt(n);for(const b of o.values())b.sort((e,t)=>e.localeCompare(t));const a=HSt(n)??[...n.nodes].sort((e,t)=>e.localeCompare(t)),s=new Map;for(const[b,x]of a.entries())s.set(x,b);const l=new Map,c=new Map;for(const b of n.nodes)c.set(b,[]);for(const b of a){const e=(o.get(b)??[]).filter(e=>l.has(e));if(e.length>0){const t=hTt(b,e,{laneOf:r,rankHint:i,topoIndex:s});l.set(b,t),c.get(t).push(b)}else l.has(b)||l.set(b,null)}for(const b of n.nodes)l.has(b)||l.set(b,null);const u=new Set;for(const b of n.nodes)null===(l.get(b)??null)&&u.add(b);const h=[...u].sort((e,t)=>{const n=s.get(e)??0,r=s.get(t)??0;return n===r?e.localeCompare(t):n-r}),d=dTt(n),p=new Map;for(const[b,x]of d.entries())p.set(b,[...x].sort((e,t)=>e.localeCompare(t)));const f=pTt(p),g=fTt(p),m=new Map;for(const b of n.nodes)m.set(b,[]);for(const b of g)for(const e of b.nodes){const t=m.get(e);t?t.push(b.id):m.set(e,[b.id])}const O=[],A=[],y=new Set,v=hRe(e=>{if(!y.has(e)){y.add(e),O.push(e);for(const t of c.get(e)??[])v(t);A.push(e)}},"walk");for(const b of h)v(b);for(const b of a)v(b);return{parent:l,children:c,roots:h,componentOf:f,blocks:g,nodeBlocks:m,adjacency:p,preorder:O,postorder:A,topologicalOrder:a}}function hTt(e,t,n){const r=n.laneOf(e);return[...t].sort((e,t)=>{var i,o;const a=n.laneOf(e),s=n.laneOf(t),l=null!=a&&a===r;if(l!==(null!=s&&s===r))return l?-1:1;const c=null==(i=n.rankHint)?void 0:i[e],u=null==(o=n.rankHint)?void 0:o[t];if(null!=c&&null!=u&&c!==u)return u-c;const h=n.topoIndex.get(e)??0,d=n.topoIndex.get(t)??0;return h!==d?h-d:e.localeCompare(t)})[0]}function dTt(e){const t=new Map;for(const n of e.nodes)t.set(n,new Set);for(const n of e.edges)t.get(n.src).add(n.dst),t.get(n.dst).add(n.src);return t}function pTt(e){const t=new Map;let n=0;for(const r of e.keys()){if(t.has(r))continue;const i=[r];for(;i.length>0;){const r=i.pop();if(!t.has(r)){t.set(r,n);for(const n of e.get(r)??[])t.has(n)||i.push(n)}}n++}return t}function fTt(e){const t=new Map,n=new Map,r=[],i=[];let o=0;const a=hRe((s,l)=>{t.set(s,++o),n.set(s,o);for(const c of e.get(s)??[])c!==l&&(t.has(c)?(t.get(c)??0)<(t.get(s)??0)&&(r.push([s,c]),n.set(s,Math.min(n.get(s)??o,t.get(c)??o))):(r.push([s,c]),a(c,s),n.set(s,Math.min(n.get(s)??o,n.get(c)??o)),(n.get(c)??0)>=(t.get(s)??0)&&i.push(gTt(s,c,r,i.length))))},"visit");for(const s of e.keys())t.has(s)||a(s,null);return i}function gTt(e,t,n,r){const i=[],o=new Set;for(;n.length>0;){const r=n.pop();if(i.push(r),o.add(r[0]),o.add(r[1]),r[0]===e&&r[1]===t||r[0]===t&&r[1]===e)break}return{id:r,edges:i,nodes:[...o]}}function mTt(e,t,n){const r=[...e.nodes],i=new Map;for(const[A,y]of r.entries())i.set(y,A);const o=r.length,a=new Array(o).fill(-1),s=new Array(o).fill(0),l=[],c=new Set;for(const A of r){const e=n.parent.get(A)??null,t=i.get(A);null!=t&&(null==e&&(a[t]=-1,s[t]=0,c.has(A)||(c.add(A),l.push(A))))}for(;l.length>0;){const e=l.shift(),t=i.get(e);if(null==t)continue;const r=n.children.get(e)??[];for(const n of r){if(c.has(n))continue;const e=i.get(n);null!=e&&(a[e]=t,s[e]=s[t]+1,c.add(n),l.push(n))}}for(const A of r){if(c.has(A))continue;const e=i.get(A);null!=e&&(a[e]=-1,s[e]=0,c.add(A))}const u=Math.max(1,Math.ceil(Math.log2(Math.max(1,o)))+1),h=Array.from({length:u},()=>new Array(o).fill(-1));for(let A=0;A<o;A++)h[0][A]=a[A];for(let A=1;A<u;A++)for(let e=0;e<o;e++){const t=h[A-1][e];h[A][e]=-1===t?-1:h[A-1][t]}const d=hRe((e,t)=>{if(-1===e||-1===t)return-1;s[e]<s[t]&&([e,t]=[t,e]);const n=s[e]-s[t];for(let r=0;r<u;r++)if(n>>r&1&&-1===(e=h[r][e]))return-1;if(e===t)return e;for(let r=u-1;r>=0;r--){const n=h[r][e],i=h[r][t];-1!==n&&-1!==i&&(n!==i&&(e=n,t=i))}return h[0][e]},"lcaIndex"),p=Array.from({length:o},()=>new Map);for(const A of e.edges){let e=A.src,n=A.dst,r=t[e],o=t[n];if(null==r||null==o)continue;if(r>o&&([e,n]=[n,e],[r,o]=[o,r]),null==r||null==o||r===o)continue;const a=i.get(e),s=i.get(n);if(null==a||null==s)continue;const l=d(a,s);if(-1===l)continue;const c=p[l];for(let t=r;t<o;t++)c.set(t,(c.get(t)??0)+1)}const f=new Map,g=hRe((e,t)=>{if(0!==t.size)for(const[n,r]of t)e.set(n,(e.get(n)??0)+r)},"mergeInto"),m=new Set,O=hRe(e=>{const r=i.get(e);m.add(e);const o=null==r?void 0:p[r],a=o?new Map(o):new Map,s=n.children.get(e)??[];for(const n of s){const r=O(n),i=t[e];if(null!=i){let o=f.get(e);o||(o=new Map,f.set(e,o));let a=r.get(i)??0;const s=t[n];null!=s&&s>i&&(a+=1),o.set(n,a)}g(a,r)}return a},"dfs");for(const A of n.roots)m.has(A)||O(A);for(const A of r)m.has(A)||O(A);return f}function OTt(e,t,n){const r=new Map,i=hRe(e=>{let o=n[e]??0;const a=[...t.get(e)??[]];a.sort(ATt(n));for(const t of a){i(t);const e=r.get(t);null!=e&&(o=Math.min(o,e))}r.set(e,o)},"annotate");for(const o of e)i(o);return r}function ATt(e){return(t,n)=>{const r=e[t]??0,i=e[n]??0;return r===i?t.localeCompare(n):r-i}}function yTt(e,t,n,r){let i=0;for(const l of t){const e=n[l]??0;e>i&&(i=e)}const o=Array.from({length:i+1},()=>[]),a=new Set,s=hRe(e=>{if(a.has(e))return;a.add(e);const t=n[e]??0;o[t]||(o[t]=[]),o[t].push(e);for(const n of r(e))s(n)},"emit");for(const l of e)s(l);for(const l of t)if(!a.has(l)){const e=n[l]??0;o[e]||(o[e]=[]),o[e].push(l),a.add(l)}return o}function vTt(e){const t=[];for(const n of e){const e=new Set,r=[];for(const t of n)e.has(t)||(e.add(t),r.push(t));t.push(r)}return t}function bTt(e,t,n,r){return i=>{const o=e.get(i)??[];if(0===o.length)return[];const a=t[i]??0,s=[],l=[],c=n.get(i);for(const e of o){const t=r.get(e)??a;t>a?s.push({child:e,min:t}):l.push(e)}return s.sort((e,t)=>e.min===t.min?e.child.localeCompare(t.child):e.min-t.min),l.sort((e,t)=>{const n=(null==c?void 0:c.get(e))??0,i=(null==c?void 0:c.get(t))??0;if(n!==i)return n-i;const o=r.get(e)??a,s=r.get(t)??a;return o!==s?o-s:e.localeCompare(t)}),[...s.map(e=>e.child),...l]}}function xTt(e,t,n){const r=uTt(e,{rankHint:t,laneOf:n}),{children:i,roots:o}=r;for(const u of e.nodes)i.has(u)||i.set(u,[]);const a=mTt(e,t,r),s=[...o].sort(ATt(t)),l=bTt(i,t,a,OTt(s,i,t));let c=yTt(s,e.nodes,t,l);return c=vTt(c),c}function wTt(e,t,n){const r=new Set(e),i=new Set(t),o=KSt(t),a=[];for(const s of n)r.has(s.src)&&i.has(s.dst)&&a.push(o.get(s.dst));return JSt(a)}function kTt(e,t,n){const r=[];for(const o of t){const e=n[o.src],t=n[o.dst];if(null==e||null==t||e===t)continue;let i=o.src,a=o.dst,s=e,l=t;e>t&&(i=o.dst,a=o.src,s=t,l=e);for(let n=s;n<l;n++)r.push({id:`${o.id}@${n}`,src:i,dst:a,ref:o.ref})}let i=0;for(let o=0;o+1<e.length;o++)i+=wTt(e[o],e[o+1],r);return i}function STt(e,t){const n={...t},{preds:r}=ZSt(e),i=nTt(e);let o=kTt(xTt(e,n,i),e.edges,n);const a=aTt;for(let s=0;s<a;s++){let t=!1;const a=[...e.nodes].sort((e,t)=>(n[t]??0)-(n[e]??0));for(const s of a){const a=n[s]??0;if(0===a)continue;let l=0;for(const e of r.get(s)??[])l=Math.max(l,(n[e]??0)+1);if(l>=a)continue;const c=a;n[s]=l;const u=kTt(xTt(e,n,i),e.edges,n);u<o?(o=u,t=!0):n[s]=c}if(!t)break}return n}function TTt(e,t){const n=nTt(e),r=[...e.nodes].sort((e,n)=>(t[e]??0)-(t[n]??0)||e.localeCompare(n));for(const i of r){const r=n(i);if(!r)continue;const o=e.edges.filter(e=>e.src===i);if(0===o.length)continue;let a=!1,s=0;for(const e of o){const t=n(e.dst);null==t||t===r?a=!0:s++}if(0===s||a)continue;let l=0,c=!1;for(const t of e.edges){if(t.dst!==i)continue;const e=n(t.src);e&&(e===r?c=!0:l++)}if(l>0||!c)continue;const u=t[i]??0,h=u+s;let d=0;for(const n of e.edges)n.dst===i&&(d=Math.max(d,(t[n.src]??0)+1));const p=Math.max(u,d,h);p!==u&&(t[i]=p)}}function $Tt(e,t){const n=zSt(e),r=HSt(n)??[...n.nodes].sort(),i=(null==t?void 0:t.compactSingleInput)??!1,o=nTt(n);let a=Object.create(null);for(const s of r){const e=qSt(n,s),r=(null==t?void 0:t.ignoreCrossLaneEdges)?e.filter(e=>{const t=o(e.src),n=o(s);return!t||!n||t===n}):e;if(0===r.length)a[s]=0;else if(i&&1===r.length){const e=r[0].src,t=o(e),n=o(s);a[s]=t!==n?a[e]??0:(a[e]??0)+1}else{let e=-1/0;for(const t of r)e=Math.max(e,(a[t.src]??0)+1);a[s]=e===-1/0?0:e}}(null==t?void 0:t.optimizeRanksByCrossings)&&(a=STt(n,a)),(null==t?void 0:t.ignoreCrossLaneEdges)&&TTt(n,a);return{layers:xTt(n,a,o),rankOf:a,dummy:new Set}}function _Tt(e,t){const n=zSt(e),r={...$Tt(n,{compactSingleInput:null==t?void 0:t.compactSingleInput,ignoreCrossLaneEdges:null==t?void 0:t.ignoreCrossLaneEdges,optimizeRanksByCrossings:null==t?void 0:t.optimizeRanksByCrossings}).rankOf},i=nTt(n),{preds:o,succs:a}=ZSt(n,e=>{if(null==t?void 0:t.ignoreCrossLaneEdges){const t=i(e.src),n=i(e.dst);if(t&&n&&t!==n)return!1}return!0}),s=HSt(n)??[...n.nodes],l=[...s].reverse(),c=hRe((e,t)=>{let n=0;for(const a of o.get(e)??[])n=Math.max(n,(r[a]??0)+1);let i=Number.POSITIVE_INFINITY;const s=a.get(e)??[];return s.length>0&&(i=Math.min(...s.map(e=>(r[e]??0)-1))),Number.isFinite(i)||(i=Math.max(n,t)),Math.min(Math.max(t,n),i)},"clampFeasible"),u=oTt,h=hRe(e=>{let t=!1;for(const n of e){const e=o.get(n)??[],i=a.get(n)??[];if(0===e.length&&0===i.length)continue;const s=e.length>0?e.reduce((e,t)=>e+(r[t]??0)+1,0)/e.length:r[n]??0,l=i.length>0?i.reduce((e,t)=>e+(r[t]??0)-1,0)/i.length:r[n]??0,u=Math.round((s+l)/2),h=c(n,u);h!==r[n]&&(r[n]=h,t=!0)}return t},"relaxOrder");for(let d=0;d<u;d++){const e=h(s),t=h(l);if(!e&&!t)break}for(const d of s){let e=0;for(const t of o.get(d)??[])e=Math.max(e,(r[t]??0)+1);(r[d]??0)<e&&(r[d]=e)}for(const d of l){const e=a.get(d)??[];if(e.length>0){const t=Math.min(...e.map(e=>(r[e]??0)-1));(r[d]??0)>t&&(r[d]=t)}}return{layers:GSt(n,s,r),rankOf:r,dummy:new Set}}function CTt(e){const t=jSt(e),n=WSt(e);let r=YSt(t);const i=[];for(;r.length>0;){const e=[];for(const o of r){i.push(o);for(const r of n.get(o)??[])t.set(r,(t.get(r)??0)-1),0===(t.get(r)??0)&&e.push(r)}r=e.sort((e,t)=>e.localeCompare(t))}return i.length===e.nodes.length?i:null}function QTt(e,t){const n=zSt(e),r="LR"===(null==t?void 0:t.direction)?CTt(n)??[...n.nodes].sort():HSt(n)??[...n.nodes].sort(),i=nTt(n),o=hRe(e=>i(e)??e,"laneOf"),a=Object.create(null),s=new Map,l=hRe((e,n)=>(null==t?void 0:t.ignoreCrossLaneEdges)??!0?o(e)===o(n)?1:0:1,"edgeWeight");for(const c of r){const e=n.nodeById.get(c);if(null==e?void 0:e.isGroup)continue;const t=qSt(n,c);let r=0;if(t.length>0)for(const n of t){const e=n.src,t=a[e]??0;r=Math.max(r,t+l(e,c))}const i=o(c),u=s.get(i)??0,h=Math.max(r,u);a[c]=h,s.set(i,h+1)}return{layers:GSt(n,r,a,{skipGroups:!0}),rankOf:a,dummy:new Set}}function PTt(e,t){const n=zSt(t),{rankOf:r}=e,i=e.layers.map(e=>[...e]),o=new Set(e.dummy?[...e.dummy]:[]);let a=0;const s=new Map(n.nodeById),l=hRe(e=>{const t="placeholder-"+a++,n={id:t,isGroup:!1,isDummy:!0,width:0,height:0};for(s.set(t,n),o.add(t);i.length<=e;)i.push([]);return i[e].push(t),r[t]=e,t},"addDummyAt"),c=[...n.edges].sort((e,t)=>e.id===t.id?e.src===t.src?e.dst.localeCompare(t.dst):e.src.localeCompare(t.src):e.id.localeCompare(t.id)),u=[];for(const d of c){const e=r[d.src]??0,t=r[d.dst]??0;if(t-e<=1){u.push(d);continue}let n=d.src;for(let r=e+1,o=0;r<t;r++,o++){const e=l(r);u.push({id:`${d.id}#${o}`,src:n,dst:e,weight:d.weight,ref:d.ref}),n=e}const i=t-e-2;u.push({id:`${d.id}#${Math.max(i+1,0)}`,src:n,dst:d.dst,weight:d.weight,ref:d.ref})}const h={nodes:[...n.nodes,...[...o].filter(e=>!n.nodes.includes(e))],edges:u,layout:n.layout,nodeById:s};return{layering:{layers:i,rankOf:r,dummy:o},graphWithDummies:h}}function ETt(e){const t=e.length;if(0===t)return Number.POSITIVE_INFINITY;const n=[...e].sort((e,t)=>e-t);return t%2==1?n[(t-1)/2]:.5*(n[t/2-1]+n[t/2])}function RTt(e){if(0===e.length)return Number.POSITIVE_INFINITY;return e.reduce((e,t)=>e+t,0)/e.length}function BTt(e,t,n,r){const i=new Map;for(const o of e)i.set(o,[]);for(const o of n)"down"===r?t.has(o.src)&&i.has(o.dst)&&i.get(o.dst).push(t.get(o.src)):t.has(o.dst)&&i.has(o.src)&&i.get(o.src).push(t.get(o.dst));return i}function ITt(e,t,n){const r=n.get(e)??0,i=n.get(t)??0;return r!==i?r-i:e.localeCompare(t)}function LTt(e,t,n){const r=new Set(e),i=new Set(t),o=KSt(e),a=KSt(t),s=[];for(const l of n)r.has(l.src)&&i.has(l.dst)&&s.push({u:o.get(l.src),v:a.get(l.dst)});s.sort((e,t)=>e.u===t.u?e.v-t.v:e.u-t.u);return JSt(s.map(e=>e.v))}function DTt(e,t,n){return[...e].sort((e,r)=>{const i=ETt(t.get(e)??[]),o=ETt(t.get(r)??[]);return i===o?ITt(e,r,n):isFinite(i)?isFinite(o)?i-o:-1:1})}function MTt(e,t,n,r,i,o){const a=KSt(e),s=KSt(t),l=BTt(t,a,n,r);if(!i||!o||0===o.length)return DTt(t,l,s);const c=new Map;for(const d of t){const e=i(d),t=c.get(e)??[];t.push(d),c.set(e,t)}const u=[];for(const d of o){const e=c.get(d);if(!e||0===e.length)continue;const t=DTt(e,l,s);u.push(...t)}const h=c.get(null);if(h&&h.length>0){const e=DTt(h,l,s);for(const t of e){const e=RTt(l.get(t)??[]);let n=u.length;if(isFinite(e))for(const[t,r]of u.entries()){if(e<RTt(l.get(r)??[])){n=t;break}}u.splice(n,0,t)}}return u}function NTt(e,t,n,r,i){const o=[...t],a=new Set(e),s=new Set(t),l=r?new Set(r):null,c=n.filter(e=>a.has(e.src)&&s.has(e.dst)),u=l?n.filter(e=>s.has(e.src)&&l.has(e.dst)):void 0,h=hRe(t=>{let n=LTt(e,t,c);return u&&r&&(n+=LTt(t,r,u)),n},"crossingScore"),d=i?new Map:null;if(i&&d)for(const g of t)d.set(g,i(g));let p=!0,f=h(o);for(;p;){p=!1;for(let e=0;e+1<o.length;e++){if(d){if(d.get(o[e])!==d.get(o[e+1]))continue}const t=f;[o[e],o[e+1]]=[o[e+1],o[e]];const n=h(o);n<t?(f=n,p=!0):[o[e],o[e+1]]=[o[e+1],o[e]]}}return o}function XTt(e,t,n){const r=e.layers.map(e=>[...e]),i=t.edges,o=nTt(t),a=iTt(t,null==n?void 0:n.laneOrder);for(let s=0;s<3;s++){for(let e=1;e<r.length;e++)r[e]=MTt(r[e-1],r[e],i,"down",o,a),r[e]=NTt(r[e-1],r[e],i,r[e+1],o);for(let e=r.length-2;e>=0;e--)r[e]=MTt(r[e+1],r[e],i,"up",o,a),r[e]=NTt(r[e+1],r[e],i,r[e-1],o)}return{layers:r}}function FTt(e,t,n){const r=(null==n?void 0:n.layerGap)??lTt,i=(null==n?void 0:n.nodeGap)??cTt,o=(null==n?void 0:n.laneGap)??2*i,a=(null==n?void 0:n.direction)??"TB",s="LR"===a||"RL"===a,l=e.layers,c=Object.create(null),u=Object.create(null),h=hRe(e=>t.nodeById.get(e),"getNode"),d=hRe(e=>{var t;return(null==(t=h(e))?void 0:t.width)??0},"getWidth"),p=hRe(e=>{var t;return(null==(t=h(e))?void 0:t.height)??0},"getHeight"),f=nTt(t),g=iTt(t,null==n?void 0:n.laneOrder),m=l.map(e=>e.reduce((e,t)=>Math.max(e,p(t)),0)),O=[];if(s)for(let T=0;T+1<l.length;T++){const e=l[T].reduce((e,t)=>Math.max(e,d(t)),0),t=l[T+1].reduce((e,t)=>Math.max(e,d(t)),0),n=m[T]/2+m[T+1]/2,i=(e+t)/2,o=Math.max(0,i-n-r);O.push(o)}const A=new Set;for(const T of l)for(const e of T)A.add(f(e));const y=A.has(null),v=g.filter(e=>A.has(e)),b=[...y?[null]:[],...v],x=Object.create(null);for(const T of v)x[T]=0;y&&(x.null=0);for(const T of l){const e=Object.create(null),t=[];for(const n of T){const r=f(n);null===r?t.push(n):(e[r]||(e[r]=[])).push(n)}for(const[n,r]of Object.entries(e)){const e=r.reduce((e,t)=>e+d(t),0)+i*Math.max(0,r.length-1);x[n]=Math.max(x[n]??0,e)}if(y&&t.length){const e=t.reduce((e,t)=>e+d(t),0)+i*Math.max(0,t.length-1);x.null=Math.max(x.null??0,e)}}const w=new Map;{const e=b.map(e=>(null===e?x.null:x[e])??0);let t=-(e.reduce((e,t)=>e+t,0)+o*Math.max(0,b.length-1))/2;for(let n=0;n<b.length;n++){const r=b[n],i=e[n]??0,a=t+i/2;w.set(r,a),t+=i,n<b.length-1&&(t+=o)}}let k=0;for(const[T,$]of l.entries()){const e=m[T]??0,t=new Map;for(const n of $){const e=f(n),r=t.get(e)??[];r.push(n),t.set(e,r)}for(const n of b){const r=t.get(n)??[];if(0===r.length)continue;const o=w.get(n);if(1===r.length){const t=r[0];c[t]=o,u[t]=k+e/2}else{const t=r.map(e=>d(e));let n=o-(t.reduce((e,t)=>e+t,0)+i*(r.length-1))/2;for(const[o,a]of r.entries()){const r=t[o];c[a]=n+r/2,u[a]=k+e/2,n+=r+i}}}k+=e+r+(O[T]??0)}const S=new Map;for(const T of t.edges){const e=T.ref.id;S.has(e)||S.set(e,[]),S.get(e).push(T)}for(const[,T]of S){if(0===T.length)continue;const e=T[0].ref,n=e.start,r=e.end;if(null==n||null==r)continue;const i=Math.round(((c[n]??0)+(c[r]??0))/2),o=new Set;for(const t of T)o.add(t.src),o.add(t.dst);for(const a of o){if(a===n||a===r)continue;const e=t.nodeById.get(a);(null==e?void 0:e.isDummy)&&(c[a]=i)}}return{x:c,y:u}}hRe(uTt,"buildDrivingTree"),hRe(hTt,"chooseParent"),hRe(dTt,"buildAdjacency"),hRe(pTt,"assignComponents"),hRe(fTt,"computeBlocks"),hRe(gTt,"popBlock"),hRe(mTt,"computeSubtreeCrossCounts"),hRe(OTt,"annotateMinimumLayers"),hRe(ATt,"compareByRankThenId"),hRe(yTt,"emitNodesInTreeOrder"),hRe(vTt,"deduplicateLayers"),hRe(bTt,"createChildOrderer"),hRe(xTt,"buildMultitreeLayerOrder"),hRe(wTt,"countCrossingsBetweenAdjacent"),hRe(kTt,"totalCrossings"),hRe(STt,"optimizeRanksByCrossings"),hRe(TTt,"adjustCrossLaneSources"),hRe($Tt,"assignLayers_LongestPath"),hRe(_Tt,"assignLayers_Gravity"),hRe(CTt,"topoSortByGenerationIfAcyclic"),hRe(QTt,"assignLayers_LaneAwareCompact"),hRe(PTt,"makeProperLayering"),hRe(ETt,"median"),hRe(RTt,"barycenter"),hRe(BTt,"neighborPositionsFor"),hRe(ITt,"currentOrderTieBreak"),hRe(LTt,"countCrossingsBetweenAdjacent"),hRe(DTt,"sortByHeuristic"),hRe(MTt,"reorderLayer"),hRe(NTt,"transposeImprove"),hRe(XTt,"orderLayers"),hRe(FTt,"assignCoordinates");function UTt(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return t>>>0}function zTt(e){let t=e>>>0;return()=>{t+=1831565813;let e=t;return e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296}}function qTt(e,t){const n=[...e],r=zTt(t);for(let i=n.length-1;i>0;i--){const e=Math.floor(r()*(i+1));[n[i],n[e]]=[n[e],n[i]]}return n}function VTt(e,t){let n=0;for(const[r,i]of e.entries())n+=Math.abs(r-(t.get(i)??r));return n}function WTt(e,t){const n=new Map;for(const[i,o]of e.entries())n.set(o,i);let r=0;for(const{a:i,b:o,weight:a}of t){const e=n.get(i),t=n.get(o);null!=e&&null!=t&&(r+=a*Math.abs(e-t))}return r}function jTt(e){const t=rTt(e);if(t.length<2)return[];const n=new Map(t.map((e,t)=>[e,t])),r=nTt(e),i=new Map;for(const o of e.layout.edges??[]){if(o.isLayoutOnly)continue;const t="string"==typeof o.start?o.start:void 0,a="string"==typeof o.end?o.end:void 0;if(!(t&&a&&e.nodeById.has(t)&&e.nodeById.has(a)))continue;const s=r(t),l=r(a);if(!s||!l||s===l)continue;const c=n.get(s),u=n.get(l);if(null==c||null==u)continue;const[h,d]=c<=u?[s,l]:[l,s],p=`${h}\0${d}`,f=i.get(p);f?f.weight++:i.set(p,{a:h,b:d,weight:1})}return[...i.values()]}function YTt(e,t,n){const r=[...e];let i=WTt(r,t),o=!0,a=0;const s=Math.max(1,r.length);for(;o&&a<s;){o=!1,a++;for(let e=0;e+1<r.length;e++){[r[e],r[e+1]]=[r[e+1],r[e]];const n=WTt(r,t);n<i?(i=n,o=!0):[r[e],r[e+1]]=[r[e+1],r[e]]}}return{order:r,cost:i,sourceDistance:VTt(r,n)}}function ZTt(e,t){return e.cost!==t.cost?e.cost<t.cost:e.sourceDistance<t.sourceDistance}function GTt(e,t,n){const r=[...t].sort((e,t)=>e.a===t.a?e.b.localeCompare(t.b):e.a.localeCompare(t.a)).map(({a:e,b:t,weight:n})=>`${e}:${t}:${n}`).join("|");return UTt(`${e.join("|")}#${r}#${n}`)}function HTt(e,t={}){const n=rTt(e);if(n.length<2)return n;const r=jTt(e);if(0===r.length)return n;const i=new Map(n.map((e,t)=>[e,t]));let o=YTt(n,r,i);const a=Math.max(0,t.restarts??8);for(let s=0;s<a;s++){const e=YTt(qTt(n,GTt(n,r,s)),r,i);ZTt(e,o)&&(o=e)}return o.order}function KTt(e,t){const n=(null==t?void 0:t.ignoreCrossLaneEdges)??!0,r=(null==t?void 0:t.optimizeRanksByCrossings)??!0,i=zSt(e),o=(null==t?void 0:t.automaticLaneOrdering)?HTt(i,{restarts:8}):void 0,a=eTt(i),s=a.acyclic,l=n?QTt(s,{compactSingleInput:(null==t?void 0:t.compactSingleInput)??sTt,ignoreCrossLaneEdges:!0,direction:null==t?void 0:t.direction}):_Tt(s,{compactSingleInput:(null==t?void 0:t.compactSingleInput)??sTt,ignoreCrossLaneEdges:!1,optimizeRanksByCrossings:r}),{layering:c,graphWithDummies:u}=PTt(l,s),h=XTt(c,u,{laneOrder:o}),d=FTt(h,u,{layerGap:null==t?void 0:t.layerGap,nodeGap:null==t?void 0:t.nodeGap,direction:null==t?void 0:t.direction,laneOrder:o});return{acyclic:s,reversed:a.reversed,layering:c,ordered:h,coordinates:d}}hRe(UTt,"hashString"),hRe(zTt,"mulberry32"),hRe(qTt,"deterministicShuffle"),hRe(VTt,"sourceDistance"),hRe(WTt,"laneArrangementCost"),hRe(jTt,"buildWeightedLaneEdges"),hRe(YTt,"greedySwitch"),hRe(ZTt,"isBetterCandidate"),hRe(GTt,"seedForRestart"),hRe(HTt,"optimizeTopLaneOrder"),hRe(KTt,"sugiyamaLayout");var JTt=1e-6,e$t=15,t$t=15,n$t=20;function r$t(e,t,n){const r=e.x??0,i=e.y??0,o=t.x-r,a=t.y-i,s=Math.abs(o),l=Math.abs(a);if(s<JTt&&l<JTt)return n;return l>JTt&&3*l>=s?a>0?"bottom":"top":s>JTt?o>0?"right":"left":n}function i$t(e,t){return Math.abs(e.to-t.from)<JTt||Math.abs(e.to-t.to)<JTt?e.to:e.from}function o$t(e,t){return"vertical"===e.orient?{x:e.coord,y:t}:{x:t,y:e.coord}}function a$t(e,t){var n,r,i,o;const a=e.nodes??[],s=e.edges??[],l=[];for(const oe of s)oe.isLayoutOnly||l.push({...oe,__originalEdge:oe});const c=new Map,u=new Map,h=[],d="LR"===t;for(const oe of a)c.set(oe.id,oe);const p=a.filter(e=>e.isGroup&&!e.parentId);for(const oe of p){const e={id:oe.id},t=hRe(n=>{u.set(n.id,e),a.filter(e=>e.parentId===n.id).forEach(t)},"assignLane");t(oe)}const f=a.filter(e=>!e.isGroup&&!e.isEdgeLabel).map(e=>{const t=e.width??10,n=e.height??10,r=e.x??0,i=e.y??0;return{nodeId:e.id,minX:r-t/2-8,maxX:r+t/2+8,minY:i-n/2-8,maxY:i+n/2+8,visualXHalfExtent:d?n/2+8:t/2+8}}),g=hRe((e,t,n,r)=>{let i=h.find(n=>n.orientation===e&&Math.abs(n.coord-t)<1);return i||(i={id:`pipe-${e}-${t.toFixed(0)}`,orientation:e,coord:t,spanMin:n,spanMax:r,tracks:[]},h.push(i)),i.spanMin=Math.min(i.spanMin,n),i.spanMax=Math.max(i.spanMax,r),i},"getOrAddPipe"),m=hRe((e,t)=>{const n=e.width??10,r=e.height??10,i=e.x??0,o=e.y??0;switch(t){case"top":return{x:i,y:o-r/2};case"bottom":return{x:i,y:o+r/2};case"left":return{x:i-n/2,y:o};case"right":return{x:i+n/2,y:o}}},"portForSide"),O=hRe((e,t,n)=>m(e,r$t(e,t,n?"bottom":"top")),"getOrthogonalPort"),A=[],y=[],v=new Set,b=hRe((e,t,n)=>{if(0===A.length)return 0;const r=Math.abs(t.y-n.y)<JTt,i=Math.abs(t.x-n.x)<JTt;if(!r&&!i)return 0;let o=0;if(r){const r=t.y,i=Math.min(t.x,n.x)-JTt,a=Math.max(t.x,n.x)+JTt;if(a<=i)return 0;for(const t of A)t.edgeIndex!==e&&"vertical"===t.orientation&&(t.pipe.coord<i||t.pipe.coord>a||t.from-JTt<=r&&t.to+JTt>=r&&(o+=1e3))}else if(i){const r=t.x,i=Math.min(t.y,n.y)-JTt,a=Math.max(t.y,n.y)+JTt;if(a<=i)return 0;for(const t of A)t.edgeIndex!==e&&"horizontal"===t.orientation&&(t.pipe.coord<i||t.pipe.coord>a||t.from-JTt<=r&&t.to+JTt>=r&&(o+=1e3))}return o},"crossingPenalty"),x=l.map((e,t)=>{if(!e.start||!e.end)return{idx:t,crossLane:0,dx:0,dy:0};const n=c.get(e.start),r=c.get(e.end),i=u.get(e.start),o=u.get(e.end);return{idx:t,crossLane:i&&o&&i.id!==o.id?1:0,dx:n&&r?Math.abs((r.x??0)-(n.x??0)):0,dy:n&&r?Math.abs((r.y??0)-(n.y??0)):0}}).sort((e,t)=>{if(e.crossLane!==t.crossLane)return t.crossLane-e.crossLane;const n=e.dx+e.dy,r=t.dx+t.dy;return Math.abs(n-r)>1?n-r:e.idx-t.idx}).map(e=>e.idx),w=hRe((e,t,n,r)=>{const i=Math.min(e.x,t.x),o=Math.max(e.x,t.x),a=Math.min(e.y,t.y),s=Math.max(e.y,t.y);return!!f.find(l=>(!n||l.nodeId!==n)&&((!r||l.nodeId!==r)&&(Math.abs(e.x-t.x)>JTt?l.minY<e.y&&l.maxY>e.y&&l.maxX>i&&l.minX<o:l.minX<e.x&&l.maxX>e.x&&l.maxY>a&&l.minY<s)))},"isSegmentBlocked"),k=new Map,S=new Map;for(const oe of l)oe.start&&oe.end&&oe.start!==oe.end&&(S.set(oe.start,(S.get(oe.start)??0)+1),S.set(oe.end,(S.get(oe.end)??0)+1));const T=hRe((e,t)=>r$t(e,t,"bottom"),"determineSide"),$=new Map;for(const[oe,ae]of l.entries()){if(!ae.start||!ae.end||ae.start===ae.end)continue;if(ae.points&&ae.points.length>0)continue;const e=c.get(ae.start),t=c.get(ae.end);if(!e||!t)continue;const n=(t.x??0)-(e.x??0),r=(t.y??0)-(e.y??0);$.set(oe,{edgeIdx:oe,srcId:ae.start,dstId:ae.end,srcSide:T(e,{x:t.x??0,y:t.y??0}),dstSide:T(t,{x:e.x??0,y:e.y??0}),absDx:Math.abs(n),absDy:Math.abs(r),dxSign:Math.sign(n),dySign:Math.sign(r)})}const _=hRe(e=>"top"===e.srcSide||"bottom"===e.srcSide?0===e.absDx?1/0:e.absDy/e.absDx:0===e.absDy?1/0:e.absDx/e.absDy,"preferenceStrength"),C=hRe(e=>"top"===e.srcSide||"bottom"===e.srcSide?e.dxSign>=0?"right":"left":e.dySign>=0?"bottom":"top","secondarySide"),Q=new Map;for(const oe of $.values()){const e=`${oe.srcId}:${oe.srcSide}`;Q.has(e)||Q.set(e,[]),Q.get(e).push(oe)}const P=new Map,E=hRe((e,t)=>`${e}:${t}`,"loadKey");for(const oe of $.values())P.set(E(oe.srcId,oe.srcSide),(P.get(E(oe.srcId,oe.srcSide))??0)+1),P.set(E(oe.dstId,oe.dstSide),(P.get(E(oe.dstId,oe.dstSide))??0)+1);for(const oe of Q.values())if(!(oe.length<2)){oe.sort((e,t)=>{const n=_(e),r=_(t);return Math.abs(n-r)>1e-9?r-n:e.edgeIdx-t.edgeIdx});for(let e=1;e<oe.length;e++){const t=oe[e],n=C(t),r=P.get(E(t.srcId,t.srcSide))??0,i=P.get(E(t.srcId,n))??0;i>=r||(P.set(E(t.srcId,t.srcSide),r-1),P.set(E(t.srcId,n),i+1),t.srcSide=n)}}const R=hRe(e=>{const t=null==e?void 0:e.shape;return"question"===t||"diamond"===t},"isDiamondNode"),B=new Map;for(const oe of $.values())B.has(oe.dstId)||B.set(oe.dstId,new Set),B.get(oe.dstId).add(oe.dstSide);for(const oe of $.values()){if(!R(c.get(oe.srcId)))continue;const e=B.get(oe.srcId);if(!(null==e?void 0:e.has(oe.srcSide)))continue;const t=C(oe);if(e.has(t)||(P.get(E(oe.srcId,t))??0)>0)continue;const n=P.get(E(oe.srcId,oe.srcSide))??0;P.set(E(oe.srcId,oe.srcSide),Math.max(0,n-1)),P.set(E(oe.srcId,t),1),oe.srcSide=t}for(const oe of $.values()){const{edgeIdx:e,srcId:t,dstId:n,srcSide:r,dstSide:i}=oe,o=c.get(t),a=c.get(n),s=`${t}:${r}:src`,l="top"===r||"bottom"===r?a.x??0:a.y??0;k.has(s)||k.set(s,[]),k.get(s).push({edgeIdx:e,oppositeCoord:l});const u=`${n}:${i}:dst`,h="top"===i||"bottom"===i?o.x??0:o.y??0;k.has(u)||k.set(u,[]),k.get(u).push({edgeIdx:e,oppositeCoord:h})}const I=new Map;for(const[oe,ae]of k){if(ae.length<2)continue;ae.sort((e,t)=>e.oppositeCoord-t.oppositeCoord);const e=oe.split(":"),t=e.slice(0,-2).join(":"),n=e[e.length-2],r=e[e.length-1],i=c.get(t);if(!i)continue;const o="left"===n||"right"===n?i.height??10:i.width??10,a=i.shape,s="question"===a||"diamond"===a?.3*o:o,l=20,u=Math.min(l,Math.max(8,s/(ae.length+1))),h=-(u*(ae.length-1))/2;for(const[c,d]of ae.entries()){const e=h+c*u,t=`${d.edgeIdx}:${r}`;I.set(t,e)}}const L=hRe(e=>{var t;return Boolean(null==(t=l[e])?void 0:t.labelNodeId)},"edgeHasLabelNode"),D=hRe((e,t)=>!!e&&((k.get(`${e}:${t}:src`)??[]).some(({edgeIdx:e})=>L(e))||(k.get(`${e}:${t}:dst`)??[]).some(({edgeIdx:e})=>L(e))),"faceHasLabelNode"),M=hRe((e,t,n)=>"top"===t||"bottom"===t?{x:e.x+n,y:e.y}:{x:e.x,y:e.y+n},"applyPortOffset"),N=hRe((e,t,n)=>{const r=$.get(e),i={x:n.x??0,y:n.y??0},o={x:t.x??0,y:t.y??0},a=(null==r?void 0:r.srcSide)??T(t,i),s=(null==r?void 0:r.dstSide)??T(n,o);let l=r?m(t,r.srcSide):O(t,i,!0),c=r?m(n,r.dstSide):O(n,o,!1);const u=I.get(`${e}:src`),h=I.get(`${e}:dst`);return void 0!==u&&(l=M(l,a,u)),void 0!==h&&(c=M(c,s,h)),{pSrcPort:l,pDstPort:c,srcSide:a,dstSide:s}},"portsForEdge");for(const oe of x){const e=l[oe];if(y[oe]=[],!e.start||!e.end)continue;if(e.points&&e.points.length>0)continue;if(e.start===e.end)continue;const t=c.get(e.start),a=c.get(e.end);if(!t||!a)continue;const{pSrcPort:s,pDstPort:u,srcSide:p,dstSide:m}=N(oe,t,a),O={...s},x={...u},T="top"===p||"bottom"===p,$="top"===m||"bottom"===m;if(T){const e=s.y>(t.y??0);O.y=e?s.y+n$t:s.y-n$t}else{const e=s.x>(t.x??0);O.x=e?s.x+n$t:s.x-n$t}if($){const e=u.y>(a.y??0);x.y=e?u.y+n$t:u.y-n$t}else{const e=u.x>(a.x??0);x.x=e?u.x+n$t:u.x-n$t}const _=hRe((e,t)=>{for(const n of f)if(!t.includes(n.nodeId)&&e.x>n.minX&&e.x<n.maxX&&e.y>n.minY&&e.y<n.maxY)return{inside:!0,obstacle:n};return{inside:!1}},"isPointInObstacle"),C=hRe((e,t,n,r,i)=>{if(i){const i=e.y>(t.y??0);return{x:(n.x??0)>=e.x?r.maxX+e$t:r.minX-e$t,y:i?r.maxY+t$t:r.minY-t$t,leavesPositiveSide:i}}const o=e.x>(t.x??0),a=(n.y??0)>=e.y;return{x:o?r.maxX+e$t:r.minX-e$t,y:a?r.maxY+t$t:r.minY-t$t,leavesPositiveSide:o}},"obstacleDetour");let Q=[];const P=[e.start,e.end],E=_(O,P);if(E.inside&&E.obstacle){const e=E.obstacle;if(T){const n=C(s,t,a,e,!0);O.x=n.x,O.y=n.y;const r=n.leavesPositiveSide?Math.min(e.minY-2,s.y+n$t):Math.max(e.maxY+2,s.y-n$t);Q=[{x:s.x,y:r},{x:n.x,y:r},{x:n.x,y:n.y}]}else{const n=C(s,t,a,e,!1),r=n.leavesPositiveSide?Math.min(e.minX-2,s.x+n$t):Math.max(e.maxX+2,s.x-n$t);O.x=n.x,O.y=n.y,Q=[{x:r,y:s.y},{x:r,y:n.y},{x:n.x,y:n.y}]}}let R=[];const B=_(x,P);if(B.inside&&B.obstacle){const e=B.obstacle;if($){const n=C(u,a,t,e,!0);x.x=n.x,x.y=n.y,R=[{x:n.x,y:n.y},{x:u.x,y:n.y}]}else{const n=C(u,a,t,e,!1);x.x=n.x,x.y=n.y,R=[{x:n.x,y:n.y},{x:n.x,y:u.y}]}}if(0===Q.length&&0===R.length){const t=e$t,a=Math.abs(O.x-x.x)<t,l=Math.abs(O.y-x.y)<t,c=void 0!==I.get(`${oe}:src`)||void 0!==I.get(`${oe}:dst`),h=((null==(n=k.get(`${e.start??""}:${p}:src`))?void 0:n.length)??0)+((null==(r=k.get(`${e.start??""}:${p}:dst`))?void 0:r.length)??0),d=((null==(i=k.get(`${e.end??""}:${m}:src`))?void 0:i.length)??0)+((null==(o=k.get(`${e.end??""}:${m}:dst`))?void 0:o.length)??0),f=h>1||d>1,g=S.get(e.start??"")??0,y=S.get(e.end??"")??0,b=h>1&&D(e.start,p)||d>1&&D(e.end,m);if((a||l)&&!c&&(!f||f&&!b&&(h<=1||g<=2)&&(d<=1||y<=2))){if(!w(s,u,e.start,e.end)){e.points=[{...s},{...O},{...x},{...u}],v.add(oe);const t=l?"horizontal":"vertical",n=l?s.y:s.x,r=l?Math.min(s.x,u.x):Math.min(s.y,u.y),i=l?Math.max(s.x,u.x):Math.max(s.y,u.y),o={id:`fast-path-${t}-${n.toFixed(0)}-${oe}`,orientation:t,coord:n,spanMin:r,spanMax:i,tracks:[]};A.push({edgeIndex:oe,segmentIndex:0,orientation:t,pipe:o,trackIndex:0,from:r,to:i});continue}}}const L=g("vertical",O.x,O.y,O.y);O.x=L.coord;const M=g("vertical",x.x,x.y,x.y);x.x=M.coord;let X=Math.min(O.x,x.x)-50,F=Math.max(O.x,x.x)+50,U=Math.min(O.y,x.y)-50,z=Math.max(O.y,x.y)+50;for(const n of f){const e=Math.min(O.x,x.x),t=Math.max(O.x,x.x),r=Math.min(O.y,x.y),i=Math.max(O.y,x.y);n.minX<t&&n.maxX>e&&n.minY<i&&n.maxY>r&&(X=Math.min(X,n.minX-25),F=Math.max(F,n.maxX+25),U=Math.min(U,n.minY-25),z=Math.max(z,n.maxY+25))}for(const n of f){if(n.maxX<X||n.minX>F||n.maxY<U||n.minY>z)continue;const e=e$t;g("horizontal",n.minY-e,X,F),g("horizontal",n.maxY+e,X,F);const t=t$t;g("vertical",n.minX-t,U,z),g("vertical",n.maxX+t,U,z)}g("horizontal",O.y,X,F),g("horizontal",x.y,X,F);const q=h.filter(e=>"horizontal"===e.orientation&&e.coord>=U&&e.coord<=z),V=h.filter(e=>"vertical"===e.orientation&&e.coord>=X&&e.coord<=F),W=hRe((e,t)=>`${e.toFixed(1)},${t.toFixed(1)}`,"getKey"),j=W(O.x,O.y),Y=W(x.x,x.y),Z=new Map,G=new Map,H=new Map,K=new Set,J=[];Z.set(j,0),H.set(j,"n"),J.push({key:j,f:Math.hypot(x.x-O.x,x.y-O.y),pt:O}),K.add(j);let ee=[];const te=hRe((t,n)=>w(t,n,e.start,e.end),"checkSegmentBlocked"),ne={x:x.x,y:O.y},re=te(O,ne),ie=te(ne,x),ae=re||ie,se={x:O.x,y:x.y},le=te(O,se),ce=te(se,x);if(ae?le||ce||(ee=Math.abs(O.x-x.x)<JTt?[O,x]:[O,se,x]):ee=Math.abs(O.y-x.y)<JTt||Math.abs(O.x-x.x)<JTt?[O,x]:[O,ne,x],0===ee.length)for(;J.length>0;){J.sort((e,t)=>e.f-t.f);const t=J.shift();if(K.delete(t.key),t.key===Y){let e=Y,t=x;for(ee=[t];G.has(e);){const n=G.get(e);ee.unshift(n),t=n,e=W(n.x,n.y)}break}const n=t.pt.x,r=t.pt.y,i=V.sort((e,t)=>e.coord-t.coord),o=i.findIndex(e=>Math.abs(e.coord-n)<1),a=q.sort((e,t)=>e.coord-t.coord),s=a.findIndex(e=>Math.abs(e.coord-r)<1),l=[];o>0&&l.push({x:i[o-1].coord,y:r}),o>=0&&o<i.length-1&&l.push({x:i[o+1].coord,y:r}),s>0&&l.push({x:n,y:a[s-1].coord}),s>=0&&s<a.length-1&&l.push({x:n,y:a[s+1].coord});for(const c of l){const i=Math.min(n,c.x),o=Math.max(n,c.x),a=Math.min(r,c.y),s=Math.max(r,c.y);if(f.some(t=>t.nodeId!==e.start&&t.nodeId!==e.end&&(i!==o?t.minY<r&&t.maxY>r&&t.maxX>i&&t.minX<o:t.minX<n&&t.maxX>n&&t.maxY>a&&t.minY<s)))continue;const l=W(c.x,c.y),u=Math.abs(c.x-n)+Math.abs(c.y-r),h=b(oe,t.pt,c);let d=0;const p=x.x-O.x,g=x.y-O.y,m=c.x-n,A=c.y-r;(g>10&&A<-5||g<-10&&A>5)&&(d=100*Math.abs(A)),(p>10&&m<-5||p<-10&&m>5)&&(d+=50*Math.abs(m));let y=0;const v=H.get(t.key)??"n",w=Math.abs(m)>JTt?"h":"v";"n"!==v&&v!==w&&(y=50);const k=u+h+d+y,S=(Z.get(t.key)??1/0)+k,T=Math.abs(x.x-c.x)+Math.abs(x.y-c.y);if(S<(Z.get(l)??1/0))if(G.set(l,t.pt),Z.set(l,S),H.set(l,w),K.has(l)){const e=J.findIndex(e=>e.key===l);-1!==e&&(J[e].f=S+T)}else J.push({key:l,f:S+T,pt:c}),K.add(l)}}if(0===ee.length&&(ee=[O,{x:O.x,y:x.y},x]),ee.length>4){const e=ee[0],t=ee[ee.length-1];let n=Math.min(e.x,t.x),r=Math.max(e.x,t.x),i=Math.min(e.y,t.y),o=Math.max(e.y,t.y);for(const h of ee)n=Math.min(n,h.x),r=Math.max(r,h.x),i=Math.min(i,h.y),o=Math.max(o,h.y);const a=r>Math.max(e.x,t.x),s=n<Math.min(e.x,t.x);if(d){const i=t$t;if(a){const n=Math.max(e.x,t.x),o=Math.min(e.y,t.y),a=Math.max(e.y,t.y),s=f.filter(e=>e.minX<n&&e.maxX>n&&e.minY<a&&e.maxY>o);if(s.length>0){let n=Math.max(e.x,t.x);for(const e of s){const t=(e.minX+e.maxX)/2;if(void 0===e.visualXHalfExtent||isNaN(e.visualXHalfExtent))continue;const r=t+e.visualXHalfExtent+i;n=Math.max(n,r)}isNaN(n)||(r=n)}}if(s){const r=f.filter(n=>n.minX<Math.min(e.x,t.x)+i&&n.minY<Math.max(e.y,t.y)&&n.maxY>Math.min(e.y,t.y));if(r.length>0){let o=Math.min(e.x,t.x);for(const e of r){const t=(e.minX+e.maxX)/2-e.visualXHalfExtent-i;o=Math.min(o,t)}n=o}}}const l=hRe(n=>{const r=t.y>e.y,i=f.filter(n=>{const r=Math.min(e.x,t.x)<n.maxX&&Math.max(e.x,t.x)>n.minX,i=Math.min(e.y,t.y)<n.maxY&&Math.max(e.y,t.y)>n.minY;return r&&i});let o=i;if(d&&i.length>0){const e=i.filter(e=>e.minX<n&&e.maxX>n);e.length>0&&(o=e)}if(0===o.length)return t.y;if(r){const e=Math.max(...o.map(e=>e.maxY))+15;if(e<t.y-JTt)return e}else{const e=Math.min(...o.map(e=>e.minY))-15;if(e>t.y+JTt)return e}return t.y},"findBestReturnY"),c=hRe(n=>{const r=l(n),i={x:n,y:e.y},o={x:n,y:r},a={x:t.x,y:r},s=te(e,i),c=te(i,o),u=te(o,a),h=r!==t.y&&te(a,t);return s||c||u||h?null:Math.abs(r-t.y)<JTt?[e,i,o,t]:[e,i,o,a,t]},"trySimplifyWithDetourX"),u=a&&!s?c(r):s&&!a?c(n):null;u&&(ee=u)}const ue=[s,...Q,...ee,...R.reverse(),u];if(ue.length>=3){const e=ue[ue.length-1],t=ue[ue.length-2],n=ue[ue.length-3],r=Math.abs(n.y-t.y)<JTt&&Math.abs(t.y-e.y)<JTt,i=Math.abs(n.x-t.x)<JTt&&Math.abs(t.x-e.x)<JTt;if(r){const r=Math.sign(t.x-n.x),i=Math.sign(e.x-n.x);0!==r&&r===i&&Math.abs(t.x-n.x)>Math.abs(e.x-n.x)&&ue.splice(-2,1)}else if(i){const r=Math.sign(t.y-n.y),i=Math.sign(e.y-n.y);0!==r&&r===i&&Math.abs(t.y-n.y)>Math.abs(e.y-n.y)&&ue.splice(-2,1)}}const he=[ue[0]];for(let n=1;n<ue.length-1;n++){if(1===n){he.push(ue[n]);continue}const e=he[he.length-1],t=ue[n],r=ue[n+1];if(Math.abs(e.y-t.y)<JTt&&Math.abs(t.y-r.y)<JTt){if(t.x>e.x!==r.x>t.x){he.push(t);continue}continue}if(Math.abs(e.x-t.x)<JTt&&Math.abs(t.x-r.x)<JTt){if(t.y>e.y!==r.y>t.y){he.push(t);continue}continue}he.push(t)}he.push(ue[ue.length-1]);for(let n=0;n<he.length-1;n++){const e=he[n],t=he[n+1],r=Math.abs(e.x-t.x)<JTt?"vertical":"horizontal",i="vertical"===r?e.x:e.y,o="vertical"===r?Math.min(e.y,t.y):Math.min(e.x,t.x),a="vertical"===r?Math.max(e.y,t.y):Math.max(e.x,t.x),s=g(r,i,o,a),l={edgeIndex:oe,segmentIndex:n,orientation:r,pipe:s,trackIndex:0,from:o,to:a};A.push(l),y[oe].push(A.length-1),s.tracks[0]||(s.tracks[0]={index:0,coord:s.coord,segments:[]}),s.tracks[0].segments.push({edgeIndex:oe,segmentIndex:n,from:o,to:a})}}const X=hRe((e,t)=>e.from<t.to&&t.from<e.to,"segmentsOverlap"),F=hRe((e,t,n,r)=>{const i=!r.segments.some(n=>(n.edgeIndex!==t.edgeIndex||n.segmentIndex!==t.segmentIndex)&&X(n,e)),o=!n.segments.some(n=>(n.edgeIndex!==e.edgeIndex||n.segmentIndex!==e.segmentIndex)&&X(n,t));return!(!i||!o)&&(e.trackIndex=r.index,t.trackIndex=n.index,n.segments=[...n.segments.filter(t=>t.edgeIndex!==e.edgeIndex||t.segmentIndex!==e.segmentIndex),{edgeIndex:t.edgeIndex,segmentIndex:t.segmentIndex,from:t.from,to:t.to}],r.segments=[...r.segments.filter(e=>e.edgeIndex!==t.edgeIndex||e.segmentIndex!==t.segmentIndex),{edgeIndex:e.edgeIndex,segmentIndex:e.segmentIndex,from:e.from,to:e.to}],!0)},"trySwapSegmentsAcrossTracks"),U=hRe(e=>{const t=e.tracks.length;return e.tracks[t]={index:t,coord:e.coord,segments:[]},t},"createNewTrack"),z=hRe((e,t)=>{const n=e.pipe.tracks[e.trackIndex];n.segments=n.segments.filter(t=>t.edgeIndex!==e.edgeIndex||t.segmentIndex!==e.segmentIndex),e.trackIndex=t;e.pipe.tracks[t].segments.push({edgeIndex:e.edgeIndex,segmentIndex:e.segmentIndex,from:e.from,to:e.to})},"moveSegmentToTrack"),q=hRe((e,t)=>{const n=y[e.edgeIndex];for(const r of n){const n=A[r];n.pipe===e.pipe&&z(n,t)}},"moveSegmentChainToTrack"),V=hRe(e=>{const t=y[e.edgeIndex],n=t.indexOf(A.indexOf(e)),r=[];return n>0&&r.push(A[t[n-1]]),n<t.length-1&&r.push(A[t[n+1]]),r},"getAdjacentSegmentsAlongEdge"),W=hRe((e,t)=>{if(e.orientation===t.orientation)return!1;const n="horizontal"===e.orientation?e:t,r="horizontal"===e.orientation?t:e;return r.pipe.coord>n.from&&r.pipe.coord<n.to&&n.pipe.coord>r.from&&n.pipe.coord<r.to},"haveAnyCrossing"),j=hRe((e,t)=>{for(const n of e.tracks){if(!n.segments.some(e=>(e.edgeIndex!==t.edgeIndex||e.segmentIndex!==t.segmentIndex)&&X(e,t)))return n.index}return-1},"findAvailableTrack"),Y=hRe((e,t)=>{if(e.trackIndex===t.trackIndex)return X(e,t);const n=V(e),r=V(t);return n.some(e=>r.some(t=>W(e,t)))},"segmentsConflict"),Z=hRe((e,t,n)=>{if(F(e,t,e.pipe.tracks[e.trackIndex],t.pipe.tracks[t.trackIndex]))return;const r=j(e.pipe,t);n(t,-1!==r?r:U(e.pipe))},"resolveTrackConflict"),G=hRe(e=>{let t=0;for(let n=0;n<e.length;n++)for(let r=n+1;r<e.length;r++){const i=e[n],o=e[r];i.pipe===o.pipe&&(Y(i,o)&&(t++,Z(i,o,q)))}return t},"resolveHandleConflicts"),H=new Map,K=hRe(e=>{if(H.has(e))return H.get(e);const t=y[e];if(0===t.length){const t={dest:0,deviation:0,base:0,delta:0};return H.set(e,t),t}const n=A[t[0]].pipe.coord;let r=n;for(let o=1;o<t.length;o++){const e=A[t[o]];if("horizontal"===e.orientation){const t=e.from,i=e.to;r=Math.abs(t-n)>Math.abs(i-n)?t:i;break}}const i={dest:r,deviation:Math.abs(r-n),base:n,delta:r-n};return H.set(e,i),i},"getDestInfo"),J=hRe(()=>{let e=0;const t=new Map;for(const[r,i]of l.entries())0!==y[r].length&&i.start&&(t.has(i.start)||t.set(i.start,[]),t.get(i.start).push(r));const n=hRe(e=>{const t=l[e];if(!t.start||!t.end)return 0;const n=c.get(t.start),r=c.get(t.end);if(!n||!r)return 0;const i=(r.x??0)-(n.x??0),o=(r.y??0)-(n.y??0);return Math.abs(i)+Math.abs(o)},"getEdgeDistance");for(const r of t.values()){r.sort((e,t)=>{const r=K(e),i=K(t);if(Math.abs(r.deviation-i.deviation)>1)return r.deviation-i.deviation;if(Math.abs(r.dest-i.dest)>1)return r.dest-i.dest;const o=n(e),a=n(t);if(Math.abs(o-a)>1)return a-o;const s=y[e].length,l=y[t].length;if(s!==l)return s-l;if(1===s){const n=y[e][0],r=y[t][0];if(A[n]&&A[r]){const e=A[n],t=A[r],i=Math.abs(e.to-e.from),o=Math.abs(t.to-t.from);if(Math.abs(i-o)>1)return i-o}}return 0});const t=r.map(e=>A[y[e][0]]);e+=G(t)}return e},"fixSourceHandleCrossings"),ee=hRe(()=>{let e=0;const t=new Map;for(const[n,r]of l.entries()){0!==y[n].length&&(r.end&&(t.has(r.end)||t.set(r.end,[]),t.get(r.end).push(n)))}for(const n of t.values()){n.sort((e,t)=>{const n=hRe(e=>{const t=y[e];if(t.length<2)return 0;const n=A[t[t.length-2]];return Math.abs(n.to-n.from)},"getDist"),r=n(e),i=n(t);return Math.abs(r-i)>.1?r-i:e-t});const t=n.map(e=>A[y[e][y[e].length-1]]);e+=G(t)}return e},"fixTargetHandleCrossings"),te=hRe(()=>{let e=0;for(const t of h){const n=[];for(const e of t.tracks)for(const t of e.segments){const e=y[t.edgeIndex].find(e=>A[e].segmentIndex===t.segmentIndex);void 0!==e&&n.push(A[e])}n.sort((e,t)=>e.edgeIndex-t.edgeIndex||e.segmentIndex-t.segmentIndex);for(let t=0;t<n.length;t++)for(let r=t+1;r<n.length;r++){const i=n[t],o=n[r];Y(i,o)&&(e++,Z(i,o,z))}}return e},"fixPipeCrossings");let ne=0;for(;ne<10;){let e=0;if(e+=J(),e+=ee(),e+=te(),0===e)break;ne++}const re=new Map;for(const oe of h){const e=[];oe.tracks.forEach(t=>{t.segments.forEach(n=>{e.push({edgeIndex:n.edgeIndex,segmentIndex:n.segmentIndex,trackIndex:t.index,from:n.from,to:n.to})})}),e.sort((e,t)=>e.from-t.from);const t=[];if(e.length>0){let n=[e[0]],r=e[0].to;for(let i=1;i<e.length;i++){const o=e[i];o.from<r?(n.push(o),r=Math.max(r,o.to)):(t.push(n),n=[o],r=o.to)}t.push(n)}for(const n of t){const e=new Set;n.forEach(t=>e.add(t.trackIndex));const t=new Map;n.forEach(e=>{const n=K(e.edgeIndex);t.set(e.trackIndex,(t.get(e.trackIndex)??0)+n.delta)});const r=[...e].filter(e=>(t.get(e)??0)<-1),i=[...e].filter(e=>(t.get(e)??0)>1),o=[...e].filter(e=>Math.abs(t.get(e)??0)<=1);r.sort((e,n)=>(t.get(n)??0)-(t.get(e)??0)),i.sort((e,n)=>(t.get(e)??0)-(t.get(n)??0));const a=hRe((e,t)=>{n.filter(t=>t.trackIndex===e).forEach(e=>{const n=v.has(e.edgeIndex)?oe.coord:t;re.set(`${e.edgeIndex}-${e.segmentIndex}`,n)})},"assignCoord");let s=0;for(const n of r)s++,a(n,oe.coord-10*s);if(0===o.length&&e.size>0){const n=[...e].sort((e,n)=>Math.abs(t.get(e)??0)-Math.abs(t.get(n)??0))[0],a=r.indexOf(n);-1!==a&&r.splice(a,1);const s=i.indexOf(n);-1!==s&&i.splice(s,1),o.push(n)}let l=0;for(const n of o){if(0===l)a(n,oe.coord);else{const e=l%2==1?1:-1,t=Math.ceil(l/2);a(n,oe.coord+e*t*10*.5)}l++}let c=0;for(const n of i)c++,a(n,oe.coord+10*c)}}for(const[oe,ae]of l.entries()){const e=y[oe]??[];if(0===e.length)continue;const t=[],n=c.get(ae.start),r=c.get(ae.end),{pSrcPort:i,pDstPort:o}=N(oe,n,r),a=e.map(e=>{const t=A[e],n=re.get(`${t.edgeIndex}-${t.segmentIndex}`)??t.pipe.coord;return{orient:t.orientation,coord:n,from:t.from,to:t.to}});t.push(i);for(let c=0;c<a.length;c++){const e=a[c],n=t[t.length-1],r="vertical"===e.orient?n.y:n.x,i="vertical"===e.orient?n.x:n.y,o=a[c+1],s=c<a.length-1;if(Math.abs(i-e.coord)>JTt&&t.push(o$t(e,r)),s&&o.orient===e.orient)if(Math.abs(e.coord-o.coord)>JTt){const n="vertical"===e.orient?(r+o.from)/2:i$t(e,o);t.push(o$t(e,n),o$t(o,n))}else 0!==c&&c!==a.length-2||t.push(o$t(e,i$t(e,o)));else if(s)t.push(o$t(e,o.coord));else{const n=Math.abs(e.from-r)<Math.abs(e.to-r)?e.to:e.from;t.push(o$t(e,n))}}const s=t[t.length-1];(Math.abs(s.x-o.x)>JTt||Math.abs(s.y-o.y)>JTt)&&t.push(o);const l=[];t.length>0&&l.push(t[0]);for(let c=1;c<t.length;c++){const e=t[c],n=l[l.length-1];(Math.abs(e.x-n.x)>JTt||Math.abs(e.y-n.y)>JTt)&&l.push(e)}ae.points=l}for(const oe of l){const e=oe.__originalEdge;e&&oe.points&&(e.points=oe.points)}e.edges=(e.edges??[]).filter(e=>!e.isLayoutOnly);const ie=hRe((e,t)=>{const n=t.x??0,r=t.y??0,i=t.width??0,o=t.height??0;if(i<=0||o<=0)return e;const a=n-i/2,s=n+i/2,l=r-o/2,c=r+o/2;if(e.x<a||e.x>s||e.y<l||e.y>c)return e;const u=e.x-a,h=s-e.x,d=e.y-l,p=c-e.y,f=Math.min(u,h,d,p);return f===u?{x:a,y:e.y}:f===h?{x:s,y:e.y}:f===d?{x:e.x,y:l}:{x:e.x,y:c}},"nodeBoundaryClamp");for(const oe of e.edges){const e=oe.points;if(!e||e.length<2)continue;const t=oe.start,n=oe.end,r=t?c.get(t):void 0,i=n?c.get(n):void 0;r&&(e[0]=ie(e[0],r)),i&&(e[e.length-1]=ie(e[e.length-1],i))}return e}function s$t(e){return e.direction??"TB"}function l$t(e){var t,n,r,i,o;const a=jwt(e),s=(null==(t=e.config.flowchart)?void 0:t.nodeSpacing)??40,l=(null==(n=e.config.flowchart)?void 0:n.rankSpacing)??100,c=(null==(r=e.config.swimlane)?void 0:r.ignoreCrossLaneEdges)??!0,u=(null==(i=e.config.swimlane)?void 0:i.optimizeRanksByCrossings)??!0,h=(null==(o=e.config.swimlane)?void 0:o.automaticLaneOrdering)??!1,d=s$t(e),{ordered:p,coordinates:f}=KTt(a,{nodeGap:s,layerGap:l,ignoreCrossLaneEdges:c,optimizeRanksByCrossings:u,automaticLaneOrdering:h,direction:d});Ywt(a,p,f,{nodeGap:s,layerGap:l});for(const g of e.edges??[])delete g.points;a$t(e,d);for(const g of e.edges??[])g.curve&&"basis"!==g.curve||(g.curve="rounded");return USt(e,d),FSt(e),d}function c$t(e){Wwt(e);const t=Zwt(e);e.nodes=t.nodes,e.edges=t.edges}hRe(r$t,"chooseOrthogonalSide"),hRe(i$t,"sharedLineEndpointCoord"),hRe(o$t,"pointOnLine"),hRe(a$t,"routeEdgesOrthogonal"),hRe(s$t,"getSwimlaneDirection"),hRe(l$t,"runSwimlaneLayoutCore"),hRe(c$t,"prepareSwimlaneLayout");var u$t=u0e({prepareLayout:c$t,runLayoutCore:l$t,afterPaint:Uwt});const h$t=Object.freeze(Object.defineProperty({__proto__:null,render:u$t},Symbol.toStringTag,{value:"Module"}));function d$t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p$t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f$t(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y$t(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function g$t(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=b$t(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function m$t(e,t,n){return(t=y$t(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O$t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||b$t(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A$t(e){return function(e){if(Array.isArray(e))return d$t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b$t(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y$t(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}function v$t(e){return(v$t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b$t(e,t){if(e){if("string"==typeof e)return d$t(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d$t(e,t):void 0}}var x$t="undefined"==typeof window?null:window,w$t=x$t?x$t.navigator:null;x$t&&x$t.document;var k$t,S$t,T$t,$$t,_$t,C$t,Q$t,P$t,E$t,R$t,B$t,I$t,L$t,D$t,M$t,N$t,X$t,F$t,U$t,z$t,q$t,V$t,W$t,j$t,Y$t,Z$t,G$t,H$t,K$t=v$t(""),J$t=v$t({}),e_t=v$t(function(){}),t_t="undefined"==typeof HTMLElement?"undefined":v$t(HTMLElement),n_t=function(e){return e&&e.instanceString&&i_t(e.instanceString)?e.instanceString():null},r_t=function(e){return null!=e&&v$t(e)==K$t},i_t=function(e){return null!=e&&v$t(e)===e_t},o_t=function(e){return!u_t(e)&&(Array.isArray?Array.isArray(e):null!=e&&e instanceof Array)},a_t=function(e){return null!=e&&v$t(e)===J$t&&!o_t(e)&&e.constructor===Object},s_t=function(e){return null!=e&&v$t(e)===v$t(1)&&!isNaN(e)},l_t=function(e){return s_t(e)&&Math.floor(e)===e},c_t=function(e){return"undefined"===t_t?void 0:null!=e&&e instanceof HTMLElement},u_t=function(e){return h_t(e)||d_t(e)},h_t=function(e){return"collection"===n_t(e)&&e._private.single},d_t=function(e){return"collection"===n_t(e)&&!e._private.single},p_t=function(e){return"core"===n_t(e)},f_t=function(e){return"stylesheet"===n_t(e)},g_t=function(e){return null==e||!(""!==e&&!e.match(/^\s+$/))},m_t=function(e){return function(e){return null!=e&&v$t(e)===J$t}(e)&&i_t(e.then)},O_t=function(e,t){t||(t=function(){if(1===arguments.length)return arguments[0];if(0===arguments.length)return"undefined";for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);return e.join("$")});var n=function(){var r,i=arguments,o=t.apply(this,i),a=n.cache;return(r=a[o])||(r=a[o]=e.apply(this,i)),r};return n.cache={},n},A_t=O_t(function(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}),y_t=O_t(function(e){return e.replace(/(-\w)/g,function(e){return e[1].toUpperCase()})}),v_t=O_t(function(e,t){return e+t[0].toUpperCase()+t.substring(1)},function(e,t){return e+"$"+t}),b_t=function(e){return g_t(e)?e:e.charAt(0).toUpperCase()+e.substring(1)},x_t=function(e,t){return e.slice(-1*t.length)===t},w_t="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",k_t="rgb[a]?\\(("+w_t+"[%]?)\\s*,\\s*("+w_t+"[%]?)\\s*,\\s*("+w_t+"[%]?)(?:\\s*,\\s*("+w_t+"))?\\)",S_t="rgb[a]?\\((?:"+w_t+"[%]?)\\s*,\\s*(?:"+w_t+"[%]?)\\s*,\\s*(?:"+w_t+"[%]?)(?:\\s*,\\s*(?:"+w_t+"))?\\)",T_t="hsl[a]?\\(("+w_t+")\\s*,\\s*("+w_t+"[%])\\s*,\\s*("+w_t+"[%])(?:\\s*,\\s*("+w_t+"))?\\)",$_t="hsl[a]?\\((?:"+w_t+")\\s*,\\s*(?:"+w_t+"[%])\\s*,\\s*(?:"+w_t+"[%])(?:\\s*,\\s*(?:"+w_t+"))?\\)",__t=function(e,t){return e<t?-1:e>t?1:0},C_t=null!=Object.assign?Object.assign.bind(Object):function(e){for(var t=arguments,n=1;n<t.length;n++){var r=t[n];if(null!=r)for(var i=Object.keys(r),o=0;o<i.length;o++){var a=i[o];e[a]=r[a]}}return e},Q_t=function(e){return(o_t(e)?e:null)||function(e){return P_t[e.toLowerCase()]}(e)||function(e){if((4===e.length||7===e.length)&&"#"===e[0]){var t,n,r,i=16;return 4===e.length?(t=parseInt(e[1]+e[1],i),n=parseInt(e[2]+e[2],i),r=parseInt(e[3]+e[3],i)):(t=parseInt(e[1]+e[2],i),n=parseInt(e[3]+e[4],i),r=parseInt(e[5]+e[6],i)),[t,n,r]}}(e)||function(e){var t,n=new RegExp("^"+k_t+"$").exec(e);if(n){t=[];for(var r=[],i=1;i<=3;i++){var o=n[i];if("%"===o[o.length-1]&&(r[i]=!0),o=parseFloat(o),r[i]&&(o=o/100*255),o<0||o>255)return;t.push(Math.floor(o))}var a=r[1]||r[2]||r[3],s=r[1]&&r[2]&&r[3];if(a&&!s)return;var l=n[4];if(void 0!==l){if((l=parseFloat(l))<0||l>1)return;t.push(l)}}return t}(e)||function(e){var t,n,r,i,o,a,s,l;function c(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var u=new RegExp("^"+T_t+"$").exec(e);if(u){if((n=parseInt(u[1]))<0?n=(360- -1*n%360)%360:n>360&&(n%=360),n/=360,(r=parseFloat(u[2]))<0||r>100)return;if(r/=100,(i=parseFloat(u[3]))<0||i>100)return;if(i/=100,void 0!==(o=u[4])&&((o=parseFloat(o))<0||o>1))return;if(0===r)a=s=l=Math.round(255*i);else{var h=i<.5?i*(1+r):i+r-i*r,d=2*i-h;a=Math.round(255*c(d,h,n+1/3)),s=Math.round(255*c(d,h,n)),l=Math.round(255*c(d,h,n-1/3))}t=[a,s,l,o]}return t}(e)},P_t={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},E_t=function(e){for(var t=e.map,n=e.keys,r=n.length,i=0;i<r;i++){var o=n[i];if(a_t(o))throw Error("Tried to set map with object key");i<n.length-1?(null==t[o]&&(t[o]={}),t=t[o]):t[o]=e.value}},R_t=function(e){for(var t=e.map,n=e.keys,r=n.length,i=0;i<r;i++){var o=n[i];if(a_t(o))throw Error("Tried to get map with object key");if(null==(t=t[o]))return t}return t},B_t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function I_t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function L_t(){if(S$t)return k$t;return S$t=1,k$t=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}function D_t(){if(C$t)return _$t;C$t=1;var e=function(){if($$t)return T$t;$$t=1;var e="object"==typeof B_t&&B_t&&B_t.Object===Object&&B_t;return T$t=e}(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return _$t=n}function M_t(){if(I$t)return B$t;I$t=1;var e=function(){if(R$t)return E$t;R$t=1;var e=/\s/;return E$t=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}}(),t=/^\s+/;return B$t=function(n){return n?n.slice(0,e(n)+1).replace(t,""):n}}function N_t(){if(D$t)return L$t;D$t=1;var e=D_t().Symbol;return L$t=e}function X_t(){if(z$t)return U$t;z$t=1;var e=N_t(),t=function(){if(N$t)return M$t;N$t=1;var e=N_t(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;return M$t=function(e){var t=n.call(e,i),o=e[i];try{e[i]=void 0;var a=!0}catch(jk){}var s=r.call(e);return a&&(t?e[i]=o:delete e[i]),s}}(),n=function(){if(F$t)return X$t;F$t=1;var e=Object.prototype.toString;return X$t=function(t){return e.call(t)}}(),r=e?e.toStringTag:void 0;return U$t=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function F_t(){if(j$t)return W$t;j$t=1;var e=X_t(),t=V$t?q$t:(V$t=1,q$t=function(e){return null!=e&&"object"==typeof e});return W$t=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}}var U_t=function(){if(H$t)return G$t;H$t=1;var e=L_t(),t=function(){if(P$t)return Q$t;P$t=1;var e=D_t();return Q$t=function(){return e.Date.now()}}(),n=function(){if(Z$t)return Y$t;Z$t=1;var e=M_t(),t=L_t(),n=F_t(),r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt;return Y$t=function(s){if("number"==typeof s)return s;if(n(s))return NaN;if(t(s)){var l="function"==typeof s.valueOf?s.valueOf():s;s=t(l)?l+"":l}if("string"!=typeof s)return 0===s?s:+s;s=e(s);var c=i.test(s);return c||o.test(s)?a(s.slice(2),c?2:8):r.test(s)?NaN:+s}}(),r=Math.max,i=Math.min;return G$t=function(o,a,s){var l,c,u,h,d,p,f=0,g=!1,m=!1,O=!0;if("function"!=typeof o)throw new TypeError("Expected a function");function A(e){var t=l,n=c;return l=c=void 0,f=e,h=o.apply(n,t)}function y(e){var t=e-p;return void 0===p||t>=a||t<0||m&&e-f>=u}function v(){var e=t();if(y(e))return b(e);d=setTimeout(v,function(e){var t=a-(e-p);return m?i(t,u-(e-f)):t}(e))}function b(e){return d=void 0,O&&l?A(e):(l=c=void 0,h)}function x(){var e=t(),n=y(e);if(l=arguments,c=this,p=e,n){if(void 0===d)return function(e){return f=e,d=setTimeout(v,a),g?A(e):h}(p);if(m)return clearTimeout(d),d=setTimeout(v,a),A(p)}return void 0===d&&(d=setTimeout(v,a)),h}return a=n(a)||0,e(s)&&(g=!!s.leading,u=(m="maxWait"in s)?r(n(s.maxWait)||0,a):u,O="trailing"in s?!!s.trailing:O),x.cancel=function(){void 0!==d&&clearTimeout(d),f=0,l=p=c=d=void 0},x.flush=function(){return void 0===d?h:b(t())},x},G$t}(),z_t=I_t(U_t),q_t=x$t?x$t.performance:null,V_t=q_t&&q_t.now?function(){return q_t.now()}:function(){return Date.now()},W_t=function(){if(x$t){if(x$t.requestAnimationFrame)return function(e){x$t.requestAnimationFrame(e)};if(x$t.mozRequestAnimationFrame)return function(e){x$t.mozRequestAnimationFrame(e)};if(x$t.webkitRequestAnimationFrame)return function(e){x$t.webkitRequestAnimationFrame(e)};if(x$t.msRequestAnimationFrame)return function(e){x$t.msRequestAnimationFrame(e)}}return function(e){e&&setTimeout(function(){e(V_t())},1e3/60)}}(),j_t=function(e){return W_t(e)},Y_t=V_t,Z_t=9261,G_t=5381,H_t=function(e){for(var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Z_t;!(t=e.next()).done;)n=65599*n+t.value|0;return n},K_t=function(e){return 65599*(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Z_t)+e|0},J_t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G_t;return(t<<5)+t+e|0},eCt=function(e){return 2097152*e[0]+e[1]},tCt=function(e,t){return[K_t(e[0],t[0]),J_t(e[1],t[1])]},nCt=function(e,t){var n={value:0,done:!1},r=0,i=e.length;return H_t({next:function(){return r<i?n.value=e[r++]:n.done=!0,n}},t)},rCt=function(e,t){var n={value:0,done:!1},r=0,i=e.length;return H_t({next:function(){return r<i?n.value=e.charCodeAt(r++):n.done=!0,n}},t)},iCt=function(){return oCt(arguments)},oCt=function(e){for(var t,n=0;n<e.length;n++){var r=e[n];t=0===n?rCt(r):rCt(r,t)}return t};function aCt(e,t,n){if(0===n)return e;var r=(t.x1+t.x2)/2,i=(t.y1+t.y2)/2,o=t.w/t.h,a=1/o,s=function(e,t,n,r,i){var o=i*Math.PI/180;return{x:Math.cos(o)*(e-n)-Math.sin(o)*(t-r)+n,y:Math.sin(o)*(e-n)+Math.cos(o)*(t-r)+r}}(e.x,e.y,r,i,n),l=function(e,t,n,r,i,o){return{x:(e-n)*i+n,y:(t-r)*o+r}}(s.x,s.y,r,i,o,a);return{x:l.x,y:l.y}}var sCt=!0,lCt=(console.warn,console.trace,Number.MAX_SAFE_INTEGER||9007199254740991),cCt=function(){return!0},uCt=function(){return!1},hCt=function(){return 0},dCt=function(){},pCt=function(e){throw new Error(e)},fCt=function(e){if(void 0===e)return sCt;sCt=!!e},gCt=function(e){fCt()},mCt=function(e){return null==e?e:o_t(e)?e.slice():a_t(e)?function(e){return C_t({},e)}(e):e},OCt=function(e,t){for(t=e="";e++<36;t+=51*e&52?(15^e?8^Math.random()*(20^e?16:4):4).toString(16):"-");return t},ACt={},yCt=function(){return ACt},vCt=function(e){var t=Object.keys(e);return function(n){for(var r={},i=0;i<t.length;i++){var o=t[i],a=null==n?void 0:n[o];r[o]=void 0===a?e[o]:a}return r}},bCt=function(e,t,n){for(var r=e.length-1;r>=0;r--)e[r]===t&&e.splice(r,1)},xCt=function(e){e.splice(0,e.length)},wCt=function(e,t,n){return n&&(t=v_t(n,t)),e[t]},kCt=function(e,t,n,r){n&&(t=v_t(n,t)),e[t]=r},SCt="undefined"!=typeof Map?Map:function(){return f$t(function e(){p$t(this,e),this._obj={}},[{key:"set",value:function(e,t){return this._obj[e]=t,this}},{key:"delete",value:function(e){return this._obj[e]=void 0,this}},{key:"clear",value:function(){this._obj={}}},{key:"has",value:function(e){return void 0!==this._obj[e]}},{key:"get",value:function(e){return this._obj[e]}}])}(),TCt=function(){return f$t(function e(t){if(p$t(this,e),this._obj=Object.create(null),this.size=0,null!=t){var n;n=null!=t.instanceString&&t.instanceString()===this.instanceString()?t.toArray():t;for(var r=0;r<n.length;r++)this.add(n[r])}},[{key:"instanceString",value:function(){return"set"}},{key:"add",value:function(e){var t=this._obj;1!==t[e]&&(t[e]=1,this.size++)}},{key:"delete",value:function(e){var t=this._obj;1===t[e]&&(t[e]=0,this.size--)}},{key:"clear",value:function(){this._obj=Object.create(null)}},{key:"has",value:function(e){return 1===this._obj[e]}},{key:"toArray",value:function(){var e=this;return Object.keys(this._obj).filter(function(t){return e.has(t)})}},{key:"forEach",value:function(e,t){return this.toArray().forEach(e,t)}}])}(),$Ct="undefined"!==("undefined"==typeof Set?"undefined":v$t(Set))?Set:TCt,_Ct=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0!==e&&void 0!==t&&p_t(e)){var r=t.group;if(null==r&&(r=t.data&&null!=t.data.source&&null!=t.data.target?"edges":"nodes"),"nodes"===r||"edges"===r){this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:t.data||{},position:t.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:r,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!t.selected,selectable:void 0===t.selectable||!!t.selectable,locked:!!t.locked,grabbed:!1,grabbable:void 0===t.grabbable||!!t.grabbable,pannable:void 0===t.pannable?"edges"===r:!!t.pannable,active:!1,classes:new $Ct,animation:{current:[],queue:[]},rscratch:{},scratch:t.scratch||{},edges:[],children:[],parent:t.parent&&t.parent.isNode()?t.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(null==i.position.x&&(i.position.x=0),null==i.position.y&&(i.position.y=0),t.renderedPosition){var o=t.renderedPosition,a=e.pan(),s=e.zoom();i.position={x:(o.x-a.x)/s,y:(o.y-a.y)/s}}var l=[];o_t(t.classes)?l=t.classes:r_t(t.classes)&&(l=t.classes.split(/\s+/));for(var c=0,u=l.length;c<u;c++){var h=l[c];h&&""!==h&&i.classes.add(h)}this.createEmitter(),(void 0===n||n)&&this.restore();var d=t.style||t.css;d&&(gCt(),this.style(d))}else pCt("An element must be of type `nodes` or `edges`; you specified `"+r+"`")}else pCt("An element must have a core reference and parameters set")},CCt=function(e){return e={bfs:e.bfs||!e.dfs,dfs:e.dfs||!e.bfs},function(t,n,r){var i;a_t(t)&&!u_t(t)&&(t=(i=t).roots||i.root,n=i.visit,r=i.directed),r=2!==arguments.length||i_t(n)?r:n,n=i_t(n)?n:function(){};for(var o,a=this._private.cy,s=t=r_t(t)?this.filter(t):t,l=[],c=[],u={},h={},d={},p=0,f=this.byGroup(),g=f.nodes,m=f.edges,O=0;O<s.length;O++){var A=s[O],y=A.id();A.isNode()&&(l.unshift(A),e.bfs&&(d[y]=!0,c.push(A)),h[y]=0)}for(var v,b=function(){var t=e.bfs?l.shift():l.pop(),i=t.id();if(e.dfs){if(d[i])return 0;d[i]=!0,c.push(t)}var a,s=h[i],f=u[i],O=null!=f?f.source():null,A=null!=f?f.target():null,y=null==f?void 0:t.same(O)?A[0]:O[0];if(!0===(a=n(t,f,y,p++,s)))return o=t,1;if(!1===a)return 1;for(var v=t.connectedEdges().filter(function(e){return(!r||e.source().same(t))&&m.has(e)}),b=0;b<v.length;b++){var x=v[b],w=x.connectedNodes().filter(function(e){return!e.same(t)&&g.has(e)}),k=w.id();0===w.length||d[k]||(w=w[0],l.push(w),e.bfs&&(d[k]=!0,c.push(w)),u[k]=x,h[k]=h[i]+1)}};0!==l.length&&(0===(v=b())||1!==v););for(var x=a.collection(),w=0;w<c.length;w++){var k=c[w],S=u[k.id()];null!=S&&x.push(S),x.push(k)}return{path:a.collection(x),found:a.collection(o)}}},QCt={breadthFirstSearch:CCt({bfs:!0}),depthFirstSearch:CCt({dfs:!0})};QCt.bfs=QCt.breadthFirstSearch,QCt.dfs=QCt.depthFirstSearch;var PCt,ECt,RCt,BCt={exports:{}},ICt=BCt.exports;function LCt(){return PCt||(PCt=1,function(e){(function(){var t,n,r,i,o,a,s,l,c,u,h,d,p,f,g;r=Math.floor,u=Math.min,n=function(e,t){return e<t?-1:e>t?1:0},c=function(e,t,i,o,a){var s;if(null==i&&(i=0),null==a&&(a=n),i<0)throw new Error("lo must be non-negative");for(null==o&&(o=e.length);i<o;)a(t,e[s=r((i+o)/2)])<0?o=s:i=s+1;return[].splice.apply(e,[i,i-i].concat(t)),t},a=function(e,t,r){return null==r&&(r=n),e.push(t),f(e,0,e.length-1,r)},o=function(e,t){var r,i;return null==t&&(t=n),r=e.pop(),e.length?(i=e[0],e[0]=r,g(e,0,t)):i=r,i},l=function(e,t,r){var i;return null==r&&(r=n),i=e[0],e[0]=t,g(e,0,r),i},s=function(e,t,r){var i;return null==r&&(r=n),e.length&&r(e[0],t)<0&&(t=(i=[e[0],t])[0],e[0]=i[1],g(e,0,r)),t},i=function(e,t){var i,o,a,s,l,c;for(null==t&&(t=n),l=[],o=0,a=(s=function(){c=[];for(var t=0,n=r(e.length/2);0<=n?t<n:t>n;0<=n?t++:t--)c.push(t);return c}.apply(this).reverse()).length;o<a;o++)i=s[o],l.push(g(e,i,t));return l},p=function(e,t,r){var i;if(null==r&&(r=n),-1!==(i=e.indexOf(t)))return f(e,0,i,r),g(e,i,r)},h=function(e,t,r){var o,a,l,c,u;if(null==r&&(r=n),!(a=e.slice(0,t)).length)return a;for(i(a,r),l=0,c=(u=e.slice(t)).length;l<c;l++)o=u[l],s(a,o,r);return a.sort(r).reverse()},d=function(e,t,r){var a,s,l,h,d,p,f,g,m;if(null==r&&(r=n),10*t<=e.length){if(!(l=e.slice(0,t).sort(r)).length)return l;for(s=l[l.length-1],h=0,p=(f=e.slice(t)).length;h<p;h++)r(a=f[h],s)<0&&(c(l,a,0,null,r),l.pop(),s=l[l.length-1]);return l}for(i(e,r),m=[],d=0,g=u(t,e.length);0<=g?d<g:d>g;0<=g?++d:--d)m.push(o(e,r));return m},f=function(e,t,r,i){var o,a,s;for(null==i&&(i=n),o=e[r];r>t&&i(o,a=e[s=r-1>>1])<0;)e[r]=a,r=s;return e[r]=o},g=function(e,t,r){var i,o,a,s,l;for(null==r&&(r=n),o=e.length,l=t,a=e[t],i=2*t+1;i<o;)(s=i+1)<o&&!(r(e[i],e[s])<0)&&(i=s),e[t]=e[i],i=2*(t=i)+1;return e[t]=a,f(e,l,t,r)},t=function(){function e(e){this.cmp=null!=e?e:n,this.nodes=[]}return e.push=a,e.pop=o,e.replace=l,e.pushpop=s,e.heapify=i,e.updateItem=p,e.nlargest=h,e.nsmallest=d,e.prototype.push=function(e){return a(this.nodes,e,this.cmp)},e.prototype.pop=function(){return o(this.nodes,this.cmp)},e.prototype.peek=function(){return this.nodes[0]},e.prototype.contains=function(e){return-1!==this.nodes.indexOf(e)},e.prototype.replace=function(e){return l(this.nodes,e,this.cmp)},e.prototype.pushpop=function(e){return s(this.nodes,e,this.cmp)},e.prototype.heapify=function(){return i(this.nodes,this.cmp)},e.prototype.updateItem=function(e){return p(this.nodes,e,this.cmp)},e.prototype.clear=function(){return this.nodes=[]},e.prototype.empty=function(){return 0===this.nodes.length},e.prototype.size=function(){return this.nodes.length},e.prototype.clone=function(){var t;return(t=new e).nodes=this.nodes.slice(0),t},e.prototype.toArray=function(){return this.nodes.slice(0)},e.prototype.insert=e.prototype.push,e.prototype.top=e.prototype.peek,e.prototype.front=e.prototype.peek,e.prototype.has=e.prototype.contains,e.prototype.copy=e.prototype.clone,e}(),e.exports=t}).call(ICt)}(BCt)),BCt.exports}var DCt,MCt=I_t(RCt?ECt:(RCt=1,ECt=LCt())),NCt=vCt({root:null,weight:function(e){return 1},directed:!1}),XCt={dijkstra:function(e){if(!a_t(e)){var t=arguments;e={root:t[0],weight:t[1],directed:t[2]}}var n=NCt(e),r=n.root,i=n.weight,o=n.directed,a=this,s=i,l=r_t(r)?this.filter(r)[0]:r[0],c={},u={},h={},d=this.byGroup(),p=d.nodes,f=d.edges;f.unmergeBy(function(e){return e.isLoop()});for(var g=function(e){return c[e.id()]},m=function(e,t){c[e.id()]=t,O.updateItem(e)},O=new MCt(function(e,t){return g(e)-g(t)}),A=0;A<p.length;A++){var y=p[A];c[y.id()]=y.same(l)?0:1/0,O.push(y)}for(var v=function(e,t){for(var n,r=(o?e.edgesTo(t):e.edgesWith(t)).intersect(f),i=1/0,a=0;a<r.length;a++){var l=r[a],c=s(l);(c<i||!n)&&(i=c,n=l)}return{edge:n,dist:i}};O.size()>0;){var b=O.pop(),x=g(b),w=b.id();if(h[w]=x,x!==1/0)for(var k=b.neighborhood().intersect(p),S=0;S<k.length;S++){var T=k[S],$=T.id(),_=v(b,T),C=x+_.dist;C<g(T)&&(m(T,C),u[$]={node:b,edge:_.edge})}}return{distanceTo:function(e){var t=r_t(e)?p.filter(e)[0]:e[0];return h[t.id()]},pathTo:function(e){var t=r_t(e)?p.filter(e)[0]:e[0],n=[],r=t,i=r.id();if(t.length>0)for(n.unshift(t);u[i];){var o=u[i];n.unshift(o.edge),n.unshift(o.node),i=(r=o.node).id()}return a.spawn(n)}}}},FCt={kruskal:function(e){e=e||function(e){return 1};for(var t=this.byGroup(),n=t.nodes,r=t.edges,i=n.length,o=new Array(i),a=n,s=function(e){for(var t=0;t<o.length;t++){if(o[t].has(e))return t}},l=0;l<i;l++)o[l]=this.spawn(n[l]);for(var c=r.sort(function(t,n){return e(t)-e(n)}),u=0;u<c.length;u++){var h=c[u],d=h.source()[0],p=h.target()[0],f=s(d),g=s(p),m=o[f],O=o[g];f!==g&&(a.merge(h),m.merge(O),o.splice(g,1))}return a}},UCt=vCt({root:null,goal:null,weight:function(e){return 1},heuristic:function(e){return 0},directed:!1}),zCt={aStar:function(e){var t=this.cy(),n=UCt(e),r=n.root,i=n.goal,o=n.heuristic,a=n.directed,s=n.weight;r=t.collection(r)[0],i=t.collection(i)[0];var l,c,u=r.id(),h=i.id(),d={},p={},f={},g=new MCt(function(e,t){return p[e.id()]-p[t.id()]}),m=new $Ct,O={},A={},y=function(e,t){g.push(e),m.add(t)},v=function(){l=g.pop(),c=l.id(),m.delete(c)},b=function(e){return m.has(e)};y(r,u),d[u]=0,p[u]=o(r);for(var x=0;g.size()>0;){if(v(),x++,c===h){for(var w=[],k=i,S=h,T=A[S];w.unshift(k),null!=T&&w.unshift(T),null!=(k=O[S]);)T=A[S=k.id()];return{found:!0,distance:d[c],path:this.spawn(w),steps:x}}f[c]=!0;for(var $=l._private.edges,_=0;_<$.length;_++){var C=$[_];if(this.hasElementWithId(C.id())&&(!a||C.data("source")===c)){var Q=C.source(),P=C.target(),E=Q.id()!==c?Q:P,R=E.id();if(this.hasElementWithId(R)&&!f[R]){var B=d[c]+s(C);b(R)?B<d[R]&&(d[R]=B,p[R]=B+o(E),g.updateItem(E),O[R]=l,A[R]=C):(d[R]=B,p[R]=B+o(E),y(E,R),O[R]=l,A[R]=C)}}}}return{found:!1,distance:void 0,path:void 0,steps:x}}},qCt=vCt({weight:function(e){return 1},directed:!1}),VCt={floydWarshall:function(e){for(var t=this.cy(),n=qCt(e),r=n.weight,i=n.directed,o=r,a=this.byGroup(),s=a.nodes,l=a.edges,c=s.length,u=c*c,h=function(e){return s.indexOf(e)},d=function(e){return s[e]},p=new Array(u),f=0;f<u;f++){var g=f%c,m=(f-g)/c;p[f]=m===g?0:1/0}for(var O=new Array(u),A=new Array(u),y=0;y<l.length;y++){var v=l[y],b=v.source()[0],x=v.target()[0];if(b!==x){var w=h(b),k=h(x),S=w*c+k,T=o(v);if(p[S]>T&&(p[S]=T,O[S]=k,A[S]=v),!i){var $=k*c+w;!i&&p[$]>T&&(p[$]=T,O[$]=w,A[$]=v)}}}for(var _=0;_<c;_++)for(var C=0;C<c;C++)for(var Q=C*c+_,P=0;P<c;P++){var E=C*c+P,R=_*c+P;p[Q]+p[R]<p[E]&&(p[E]=p[Q]+p[R],O[E]=O[Q])}var B=function(e){return h(function(e){return(r_t(e)?t.filter(e):e)[0]}(e))};return{distance:function(e,t){var n=B(e),r=B(t);return p[n*c+r]},path:function(e,n){var r=B(e),i=B(n),o=d(r);if(r===i)return o.collection();if(null==O[r*c+i])return t.collection();var a,s=t.collection(),l=r;for(s.merge(o);r!==i;)l=r,r=O[r*c+i],a=A[l*c+r],s.merge(a),s.merge(d(r));return s}}}},WCt=vCt({weight:function(e){return 1},directed:!1,root:null}),jCt={bellmanFord:function(e){var t=this,n=WCt(e),r=n.weight,i=n.directed,o=n.root,a=r,s=this,l=this.cy(),c=this.byGroup(),u=c.edges,h=c.nodes,d=h.length,p=new SCt,f=!1,g=[];o=l.collection(o)[0],u.unmergeBy(function(e){return e.isLoop()});for(var m=u.length,O=function(e){var t=p.get(e.id());return t||(t={},p.set(e.id(),t)),t},A=function(e){return(r_t(e)?l.$(e):e)[0]},y=0;y<d;y++){var v=h[y],b=O(v);v.same(o)?b.dist=0:b.dist=1/0,b.pred=null,b.edge=null}for(var x=!1,w=function(e,t,n,r,i,o){var a=r.dist+o;a<i.dist&&!n.same(r.edge)&&(i.dist=a,i.pred=e,i.edge=n,x=!0)},k=1;k<d;k++){x=!1;for(var S=0;S<m;S++){var T=u[S],$=T.source(),_=T.target(),C=a(T),Q=O($),P=O(_);w($,0,T,Q,P,C),i||w(_,0,T,P,Q,C)}if(!x)break}if(x)for(var E=[],R=0;R<m;R++){var B=u[R],I=B.source(),L=B.target(),D=a(B),M=O(I).dist,N=O(L).dist;if(M+D<N||!i&&N+D<M){if(f||(gCt(),f=!0),!1===e.findNegativeWeightCycles)break;var X=[];M+D<N&&X.push(I),!i&&N+D<M&&X.push(L);for(var F=X.length,U=0;U<F;U++){var z=X[U],q=[z];q.push(O(z).edge);for(var V=O(z).pred;-1===q.indexOf(V);)q.push(V),q.push(O(V).edge),V=O(V).pred;for(var W=(q=q.slice(q.indexOf(V)))[0].id(),j=0,Y=2;Y<q.length;Y+=2)q[Y].id()<W&&(W=q[Y].id(),j=Y);(q=q.slice(j).concat(q.slice(0,j))).push(q[0]);var Z=q.map(function(e){return e.id()}).join(",");-1===E.indexOf(Z)&&(g.push(s.spawn(q)),E.push(Z))}}}return{distanceTo:function(e){return O(A(e)).dist},pathTo:function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,r=[],i=A(e);;){if(null==i)return t.spawn();var a=O(i),l=a.edge,c=a.pred;if(r.unshift(i[0]),i.same(n)&&r.length>0)break;null!=l&&r.unshift(l),i=c}return s.spawn(r)},hasNegativeWeightCycle:f,negativeWeightCycles:g}}},YCt=Math.sqrt(2),ZCt=function(e,t,n){0===n.length&&pCt("Karger-Stein must be run on a connected (sub)graph");for(var r=n[e],i=r[1],o=r[2],a=t[i],s=t[o],l=n,c=l.length-1;c>=0;c--){var u=l[c],h=u[1],d=u[2];(t[h]===a&&t[d]===s||t[h]===s&&t[d]===a)&&l.splice(c,1)}for(var p=0;p<l.length;p++){var f=l[p];f[1]===s?(l[p]=f.slice(),l[p][1]=a):f[2]===s&&(l[p]=f.slice(),l[p][2]=a)}for(var g=0;g<t.length;g++)t[g]===s&&(t[g]=a);return l},GCt=function(e,t,n,r){for(;n>r;){var i=Math.floor(Math.random()*t.length);t=ZCt(i,e,t),n--}return t},HCt={kargerStein:function(){var e=this,t=this.byGroup(),n=t.nodes,r=t.edges;r.unmergeBy(function(e){return e.isLoop()});var i=n.length,o=r.length,a=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),s=Math.floor(i/YCt);if(!(i<2)){for(var l=[],c=0;c<o;c++){var u=r[c];l.push([c,n.indexOf(u.source()),n.indexOf(u.target())])}for(var h=1/0,d=[],p=new Array(i),f=new Array(i),g=new Array(i),m=function(e,t){for(var n=0;n<i;n++)t[n]=e[n]},O=0;O<=a;O++){for(var A=0;A<i;A++)f[A]=A;var y=GCt(f,l.slice(),i,s),v=y.slice();m(f,g);var b=GCt(f,y,s,2),x=GCt(g,v,s,2);b.length<=x.length&&b.length<h?(h=b.length,d=b,m(f,p)):x.length<=b.length&&x.length<h&&(h=x.length,d=x,m(g,p))}for(var w=this.spawn(d.map(function(e){return r[e[0]]})),k=this.spawn(),S=this.spawn(),T=p[0],$=0;$<p.length;$++){var _=p[$],C=n[$];_===T?k.merge(C):S.merge(C)}var Q=function(t){var n=e.spawn();return t.forEach(function(t){n.merge(t),t.connectedEdges().forEach(function(t){e.contains(t)&&!w.contains(t)&&n.merge(t)})}),n},P=[Q(k),Q(S)];return{cut:w,components:P,partition1:k,partition2:S}}pCt("At least 2 nodes are required for Karger-Stein algorithm")}},KCt=function(e,t,n){return{x:e.x*t+n.x,y:e.y*t+n.y}},JCt=function(e,t,n){return{x:(e.x-n.x)/t,y:(e.y-n.y)/t}},eQt=function(e){return{x:e[0],y:e[1]}},tQt=function(e,t){return 0===t?e:tQt(t,e%t)},nQt=function(e,t){return Math.atan2(t,e)-Math.PI/2},rQt=Math.log2||function(e){return Math.log(e)/Math.log(2)},iQt=function(e){return e>0?1:e<0?-1:0},oQt=function(e,t){return Math.sqrt(aQt(e,t))},aQt=function(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r},sQt=function(e){for(var t=e.length,n=0,r=0;r<t;r++)n+=e[r];for(var i=0;i<t;i++)e[i]=e[i]/n;return e},lQt=function(e,t,n,r){return(1-r)*(1-r)*e+2*(1-r)*r*t+r*r*n},cQt=function(e,t,n,r){return{x:lQt(e.x,t.x,n.x,r),y:lQt(e.y,t.y,n.y,r)}},uQt=function(e,t,n){return Math.max(e,Math.min(n,t))},hQt=function(e){if(null==e)return{x1:1/0,y1:1/0,x2:-1/0,y2:-1/0,w:0,h:0};if(null!=e.x1&&null!=e.y1){if(null!=e.x2&&null!=e.y2&&e.x2>=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(null!=e.w&&null!=e.h&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},dQt=function(e,t){e.x1=Math.min(e.x1,t.x1),e.x2=Math.max(e.x2,t.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,t.y1),e.y2=Math.max(e.y2,t.y2),e.h=e.y2-e.y1},pQt=function(e,t,n){e.x1=Math.min(e.x1,t),e.x2=Math.max(e.x2,t),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,n),e.y2=Math.max(e.y2,n),e.h=e.y2-e.y1},fQt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.x1-=t,e.x2+=t,e.y1-=t,e.y2+=t,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},gQt=function(e){var t,n,r,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0];if(1===o.length)t=n=r=i=o[0];else if(2===o.length)t=r=o[0],i=n=o[1];else if(4===o.length){var a=O$t(o,4);t=a[0],n=a[1],r=a[2],i=a[3]}return e.x1-=i,e.x2+=n,e.y1-=t,e.y2+=r,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},mQt=function(e,t){e.x1=t.x1,e.y1=t.y1,e.x2=t.x2,e.y2=t.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},OQt=function(e,t){return!(e.x1>t.x2)&&(!(t.x1>e.x2)&&(!(e.x2<t.x1)&&(!(t.x2<e.x1)&&(!(e.y2<t.y1)&&(!(t.y2<e.y1)&&(!(e.y1>t.y2)&&!(t.y1>e.y2)))))))},AQt=function(e,t,n){return e.x1<=t&&t<=e.x2&&e.y1<=n&&n<=e.y2},yQt=function(e,t){return AQt(e,t.x,t.y)},vQt=function(e,t){return AQt(e,t.x1,t.y1)&&AQt(e,t.x2,t.y2)},bQt=null!==(DCt=Math.hypot)&&void 0!==DCt?DCt:function(e,t){return Math.sqrt(e*e+t*t)};function xQt(e,t,n,r,i,o){var a=function(e,t){if(e.length<3)throw new Error("Need at least 3 vertices");var n=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},r=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},i=function(e,t){return{x:e.x*t,y:e.y*t}},o=function(e,t){return e.x*t.y-e.y*t.x},a=function(e){var t=bQt(e.x,e.y);return 0===t?{x:0,y:0}:{x:e.x/t,y:e.y/t}},s=function(e,t,a,s){var l=r(t,e),c=r(s,a),u=o(l,c);if(Math.abs(u)<1e-9)return n(e,i(l,.5));var h=o(r(a,e),c)/u;return n(e,i(l,h))},l=e.map(function(e){return{x:e.x,y:e.y}});(function(e){for(var t=0,n=0;n<e.length;n++){var r=e[n],i=e[(n+1)%e.length];t+=r.x*i.y-i.x*r.y}return t/2})(l)<0&&l.reverse();for(var c=l.length,u=[],h=0;h<c;h++){var d=l[h],p=l[(h+1)%c],f=r(p,d),g=a({x:f.y,y:-f.x});u.push(g)}for(var m=u.map(function(e,r){return{p1:n(l[r],i(e,t)),p2:n(l[(r+1)%c],i(e,t))}}),O=[],A=0;A<c;A++){var y=m[(A-1+c)%c],v=m[A],b=s(y.p1,y.p2,v.p1,v.p2);O.push(b)}return O}(LQt(e,t,n,r,i),o),s=hQt();return a.forEach(function(e){return pQt(s,e.x,e.y)}),s}var wQt=function(e,t,n,r,i,o,a){var s,l,c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"auto",u="auto"===c?UQt(i,o):c,h=i/2,d=o/2,p=(u=Math.min(u,h,d))!==h,f=u!==d;if(p){var g=r-d-a;if((s=IQt(e,t,n,r,n-h+u-a,g,n+h-u+a,g,!1)).length>0)return s}if(f){var m=n+h+a;if((s=IQt(e,t,n,r,m,r-d+u-a,m,r+d-u+a,!1)).length>0)return s}if(p){var O=r+d+a;if((s=IQt(e,t,n,r,n-h+u-a,O,n+h-u+a,O,!1)).length>0)return s}if(f){var A=n-h-a;if((s=IQt(e,t,n,r,A,r-d+u-a,A,r+d-u+a,!1)).length>0)return s}var y=n-h+u,v=r-d+u;if((l=RQt(e,t,n,r,y,v,u+a)).length>0&&l[0]<=y&&l[1]<=v)return[l[0],l[1]];var b=n+h-u,x=r-d+u;if((l=RQt(e,t,n,r,b,x,u+a)).length>0&&l[0]>=b&&l[1]<=x)return[l[0],l[1]];var w=n+h-u,k=r+d-u;if((l=RQt(e,t,n,r,w,k,u+a)).length>0&&l[0]>=w&&l[1]>=k)return[l[0],l[1]];var S=n-h+u,T=r+d-u;return(l=RQt(e,t,n,r,S,T,u+a)).length>0&&l[0]<=S&&l[1]>=T?[l[0],l[1]]:[]},kQt=function(e,t,n,r,i,o,a){var s=a,l=Math.min(n,i),c=Math.max(n,i),u=Math.min(r,o),h=Math.max(r,o);return l-s<=e&&e<=c+s&&u-s<=t&&t<=h+s},SQt=function(e,t,n,r,i,o,a,s,l){var c=Math.min(n,a,i)-l,u=Math.max(n,a,i)+l,h=Math.min(r,s,o)-l,d=Math.max(r,s,o)+l;return!(e<c||e>u||t<h||t>d)},TQt=function(e,t,n,r,i,o,a,s){var l=[];!function(e,t,n,r,i){var o,a,s,l,c,u,h,d;0===e&&(e=1e-5),s=-27*(r/=e)+(t/=e)*(9*(n/=e)-t*t*2),o=(a=(3*n-t*t)/9)*a*a+(s/=54)*s,i[1]=0,h=t/3,o>0?(c=(c=s+Math.sqrt(o))<0?-Math.pow(-c,1/3):Math.pow(c,1/3),u=(u=s-Math.sqrt(o))<0?-Math.pow(-u,1/3):Math.pow(u,1/3),i[0]=-h+c+u,h+=(c+u)/2,i[4]=i[2]=-h,h=Math.sqrt(3)*(-u+c)/2,i[3]=h,i[5]=-h):(i[5]=i[3]=0,0===o?(d=s<0?-Math.pow(-s,1/3):Math.pow(s,1/3),i[0]=2*d-h,i[4]=i[2]=-(d+h)):(l=(a=-a)*a*a,l=Math.acos(s/Math.sqrt(l)),d=2*Math.sqrt(a),i[0]=-h+d*Math.cos(l/3),i[2]=-h+d*Math.cos((l+2*Math.PI)/3),i[4]=-h+d*Math.cos((l+4*Math.PI)/3)))}(1*n*n-4*n*i+2*n*a+4*i*i-4*i*a+a*a+r*r-4*r*o+2*r*s+4*o*o-4*o*s+s*s,9*n*i-3*n*n-3*n*a-6*i*i+3*i*a+9*r*o-3*r*r-3*r*s-6*o*o+3*o*s,3*n*n-6*n*i+n*a-n*e+2*i*i+2*i*e-a*e+3*r*r-6*r*o+r*s-r*t+2*o*o+2*o*t-s*t,1*n*i-n*n+n*e-i*e+r*o-r*r+r*t-o*t,l);for(var c=[],u=0;u<6;u+=2)Math.abs(l[u+1])<1e-7&&l[u]>=0&&l[u]<=1&&c.push(l[u]);c.push(1),c.push(0);for(var h,d,p,f=-1,g=0;g<c.length;g++)h=Math.pow(1-c[g],2)*n+2*(1-c[g])*c[g]*i+c[g]*c[g]*a,d=Math.pow(1-c[g],2)*r+2*(1-c[g])*c[g]*o+c[g]*c[g]*s,p=Math.pow(h-e,2)+Math.pow(d-t,2),f>=0?p<f&&(f=p):f=p;return f},$Qt=function(e,t,n,r,i,o){var a=[e-n,t-r],s=[i-n,o-r],l=s[0]*s[0]+s[1]*s[1],c=a[0]*a[0]+a[1]*a[1],u=a[0]*s[0]+a[1]*s[1],h=u*u/l;return u<0?c:h>l?(e-i)*(e-i)+(t-o)*(t-o):c-h},_Qt=function(e,t,n){for(var r,i,o,a,s=0,l=0;l<n.length/2;l++)if(r=n[2*l],i=n[2*l+1],l+1<n.length/2?(o=n[2*(l+1)],a=n[2*(l+1)+1]):(o=n[2*(l+1-n.length/2)],a=n[2*(l+1-n.length/2)+1]),r==e&&o==e);else{if(!(r>=e&&e>=o||r<=e&&e<=o))continue;(e-r)/(o-r)*(a-i)+i>t&&s++}return s%2!=0},CQt=function(e,t,n,r,i,o,a,s,l){var c,u=new Array(n.length);null!=s[0]?(c=Math.atan(s[1]/s[0]),s[0]<0?c+=Math.PI/2:c=-c-Math.PI/2):c=s;for(var h,d=Math.cos(-c),p=Math.sin(-c),f=0;f<u.length/2;f++)u[2*f]=o/2*(n[2*f]*d-n[2*f+1]*p),u[2*f+1]=a/2*(n[2*f+1]*d+n[2*f]*p),u[2*f]+=r,u[2*f+1]+=i;if(l>0){var g=PQt(u,-l);h=QQt(g)}else h=u;return _Qt(e,t,h)},QQt=function(e){for(var t,n,r,i,o,a,s,l,c=new Array(e.length/2),u=0;u<e.length/4;u++){t=e[4*u],n=e[4*u+1],r=e[4*u+2],i=e[4*u+3],u<e.length/4-1?(o=e[4*(u+1)],a=e[4*(u+1)+1],s=e[4*(u+1)+2],l=e[4*(u+1)+3]):(o=e[0],a=e[1],s=e[2],l=e[3]);var h=IQt(t,n,r,i,o,a,s,l,!0);c[2*u]=h[0],c[2*u+1]=h[1]}return c},PQt=function(e,t){for(var n,r,i,o,a=new Array(2*e.length),s=0;s<e.length/2;s++){n=e[2*s],r=e[2*s+1],s<e.length/2-1?(i=e[2*(s+1)],o=e[2*(s+1)+1]):(i=e[0],o=e[1]);var l=o-r,c=-(i-n),u=Math.sqrt(l*l+c*c),h=l/u,d=c/u;a[4*s]=n+h*t,a[4*s+1]=r+d*t,a[4*s+2]=i+h*t,a[4*s+3]=o+d*t}return a},EQt=function(e,t,n,r,i,o,a){return e-=i,t-=o,(e/=n/2+a)*e+(t/=r/2+a)*t<=1},RQt=function(e,t,n,r,i,o,a){var s=[n-e,r-t],l=[e-i,t-o],c=s[0]*s[0]+s[1]*s[1],u=2*(l[0]*s[0]+l[1]*s[1]),h=u*u-4*c*(l[0]*l[0]+l[1]*l[1]-a*a);if(h<0)return[];var d=(-u+Math.sqrt(h))/(2*c),p=(-u-Math.sqrt(h))/(2*c),f=Math.min(d,p),g=Math.max(d,p),m=[];if(f>=0&&f<=1&&m.push(f),g>=0&&g<=1&&m.push(g),0===m.length)return[];var O=m[0]*s[0]+e,A=m[0]*s[1]+t;return m.length>1?m[0]==m[1]?[O,A]:[O,A,m[1]*s[0]+e,m[1]*s[1]+t]:[O,A]},BQt=function(e,t,n){return t<=e&&e<=n||n<=e&&e<=t?e:e<=t&&t<=n||n<=t&&t<=e?t:n},IQt=function(e,t,n,r,i,o,a,s,l){var c=e-i,u=n-e,h=a-i,d=t-o,p=r-t,f=s-o,g=h*d-f*c,m=u*d-p*c,O=f*u-h*p;if(0!==O){var A=g/O,y=m/O,v=-.001;return v<=A&&A<=1.001&&v<=y&&y<=1.001||l?[e+A*u,t+A*p]:[]}return 0===g||0===m?BQt(e,n,a)===a?[a,s]:BQt(e,n,i)===i?[i,o]:BQt(i,a,n)===n?[n,r]:[]:[]},LQt=function(e,t,n,r,i){var o=[],a=r/2,s=i/2,l=t,c=n;o.push({x:l+a*e[0],y:c+s*e[1]});for(var u=1;u<e.length/2;u++)o.push({x:l+a*e[2*u],y:c+s*e[2*u+1]});return o},DQt=function(e,t,n,r,i,o,a,s){var l,c,u,h,d,p,f=[],g=new Array(n.length),m=!0;if(null==o&&(m=!1),m){for(var O=0;O<g.length/2;O++)g[2*O]=n[2*O]*o+r,g[2*O+1]=n[2*O+1]*a+i;if(s>0){var A=PQt(g,-s);c=QQt(A)}else c=g}else c=n;for(var y=0;y<c.length/2;y++)u=c[2*y],h=c[2*y+1],y<c.length/2-1?(d=c[2*(y+1)],p=c[2*(y+1)+1]):(d=c[0],p=c[1]),0!==(l=IQt(e,t,r,i,u,h,d,p)).length&&f.push(l[0],l[1]);return f},MQt=function(e,t,n){var r=[e[0]-t[0],e[1]-t[1]],i=Math.sqrt(r[0]*r[0]+r[1]*r[1]),o=(i-n)/i;return o<0&&(o=1e-5),[t[0]+o*r[0],t[1]+o*r[1]]},NQt=function(e,t){var n=FQt(e,t);return n=XQt(n)},XQt=function(e){for(var t,n,r=e.length/2,i=1/0,o=1/0,a=-1/0,s=-1/0,l=0;l<r;l++)t=e[2*l],n=e[2*l+1],i=Math.min(i,t),a=Math.max(a,t),o=Math.min(o,n),s=Math.max(s,n);for(var c=2/(a-i),u=2/(s-o),h=0;h<r;h++)t=e[2*h]=e[2*h]*c,n=e[2*h+1]=e[2*h+1]*u,i=Math.min(i,t),a=Math.max(a,t),o=Math.min(o,n),s=Math.max(s,n);if(o<-1)for(var d=0;d<r;d++)n=e[2*d+1]=e[2*d+1]+(-1-o);return e},FQt=function(e,t){var n=1/e*2*Math.PI,r=e%2==0?Math.PI/2+n/2:Math.PI/2;r+=t;for(var i,o=new Array(2*e),a=0;a<e;a++)i=a*n+r,o[2*a]=Math.cos(i),o[2*a+1]=Math.sin(-i);return o},UQt=function(e,t){return Math.min(e/4,t/4,8)},zQt=function(e,t){return Math.min(e/10,t/10,8)},qQt=function(e,t){return{heightOffset:Math.min(15,.05*t),widthOffset:Math.min(100,.25*e),ctrlPtOffsetPct:.05}};function VQt(e,t){function n(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],i=e[(n+1)%e.length],o={x:i.x-r.x,y:i.y-r.y},a={x:-o.y,y:o.x},s=Math.sqrt(a.x*a.x+a.y*a.y);t.push({x:a.x/s,y:a.y/s})}return t}function r(e,t){var n,r=1/0,i=-1/0,o=g$t(e);try{for(o.s();!(n=o.n()).done;){var a=n.value,s=a.x*t.x+a.y*t.y;r=Math.min(r,s),i=Math.max(i,s)}}catch(l){o.e(l)}finally{o.f()}return{min:r,max:i}}function i(e,t){return!(e.max<t.min||t.max<e.min)}var o,a=g$t([].concat(A$t(n(e)),A$t(n(t))));try{for(a.s();!(o=a.n()).done;){var s=o.value;if(!i(r(e,s),r(t,s)))return!1}}catch(l){a.e(l)}finally{a.f()}return!0}var WQt=vCt({dampingFactor:.8,precision:1e-6,iterations:200,weight:function(e){return 1}}),jQt={pageRank:function(e){for(var t=WQt(e),n=t.dampingFactor,r=t.precision,i=t.iterations,o=t.weight,a=this._private.cy,s=this.byGroup(),l=s.nodes,c=s.edges,u=l.length,h=u*u,d=c.length,p=new Array(h),f=new Array(u),g=(1-n)/u,m=0;m<u;m++){for(var O=0;O<u;O++){p[m*u+O]=0}f[m]=0}for(var A=0;A<d;A++){var y=c[A],v=y.data("source"),b=y.data("target");if(v!==b){var x=l.indexOfId(v),w=l.indexOfId(b),k=o(y);p[w*u+x]+=k,f[x]+=k}}for(var S=1/u+g,T=0;T<u;T++)if(0===f[T])for(var $=0;$<u;$++){p[$*u+T]=S}else for(var _=0;_<u;_++){var C=_*u+T;p[C]=p[C]/f[T]+g}for(var Q,P=new Array(u),E=new Array(u),R=0;R<u;R++)P[R]=1;for(var B=0;B<i;B++){for(var I=0;I<u;I++)E[I]=0;for(var L=0;L<u;L++)for(var D=0;D<u;D++){var M=L*u+D;E[L]+=p[M]*P[D]}sQt(E),Q=P,P=E,E=Q;for(var N=0,X=0;X<u;X++){var F=Q[X]-P[X];N+=F*F}if(N<r)break}return{rank:function(e){return e=a.collection(e)[0],P[l.indexOf(e)]}}}},YQt=vCt({root:null,weight:function(e){return 1},directed:!1,alpha:0}),ZQt={degreeCentralityNormalized:function(e){e=YQt(e);var t=this.cy(),n=this.nodes(),r=n.length;if(e.directed){for(var i={},o={},a=0,s=0,l=0;l<r;l++){var c=n[l],u=c.id();e.root=c;var h=this.degreeCentrality(e);a<h.indegree&&(a=h.indegree),s<h.outdegree&&(s=h.outdegree),i[u]=h.indegree,o[u]=h.outdegree}return{indegree:function(e){return 0==a?0:(r_t(e)&&(e=t.filter(e)),i[e.id()]/a)},outdegree:function(e){return 0===s?0:(r_t(e)&&(e=t.filter(e)),o[e.id()]/s)}}}for(var d={},p=0,f=0;f<r;f++){var g=n[f];e.root=g;var m=this.degreeCentrality(e);p<m.degree&&(p=m.degree),d[g.id()]=m.degree}return{degree:function(e){return 0===p?0:(r_t(e)&&(e=t.filter(e)),d[e.id()]/p)}}},degreeCentrality:function(e){e=YQt(e);var t=this.cy(),n=this,r=e,i=r.root,o=r.weight,a=r.directed,s=r.alpha;if(i=t.collection(i)[0],a){for(var l=i.connectedEdges(),c=l.filter(function(e){return e.target().same(i)&&n.has(e)}),u=l.filter(function(e){return e.source().same(i)&&n.has(e)}),h=c.length,d=u.length,p=0,f=0,g=0;g<c.length;g++)p+=o(c[g]);for(var m=0;m<u.length;m++)f+=o(u[m]);return{indegree:Math.pow(h,1-s)*Math.pow(p,s),outdegree:Math.pow(d,1-s)*Math.pow(f,s)}}for(var O=i.connectedEdges().intersection(n),A=O.length,y=0,v=0;v<O.length;v++)y+=o(O[v]);return{degree:Math.pow(A,1-s)*Math.pow(y,s)}}};ZQt.dc=ZQt.degreeCentrality,ZQt.dcn=ZQt.degreeCentralityNormalised=ZQt.degreeCentralityNormalized;var GQt=vCt({harmonic:!0,weight:function(){return 1},directed:!1,root:null}),HQt={closenessCentralityNormalized:function(e){for(var t=GQt(e),n=t.harmonic,r=t.weight,i=t.directed,o=this.cy(),a={},s=0,l=this.nodes(),c=this.floydWarshall({weight:r,directed:i}),u=0;u<l.length;u++){for(var h=0,d=l[u],p=0;p<l.length;p++)if(u!==p){var f=c.distance(d,l[p]);h+=n?1/f:f}n||(h=1/h),s<h&&(s=h),a[d.id()]=h}return{closeness:function(e){return 0==s?0:(e=r_t(e)?o.filter(e)[0].id():e.id(),a[e]/s)}}},closenessCentrality:function(e){var t=GQt(e),n=t.root,r=t.weight,i=t.directed,o=t.harmonic;n=this.filter(n)[0];for(var a=this.dijkstra({root:n,weight:r,directed:i}),s=0,l=this.nodes(),c=0;c<l.length;c++){var u=l[c];if(!u.same(n)){var h=a.distanceTo(u);s+=o?1/h:h}}return o?s:1/s}};HQt.cc=HQt.closenessCentrality,HQt.ccn=HQt.closenessCentralityNormalised=HQt.closenessCentralityNormalized;var KQt=vCt({weight:null,directed:!1}),JQt={betweennessCentrality:function(e){for(var t=KQt(e),n=t.directed,r=t.weight,i=null!=r,o=this.cy(),a=this.nodes(),s={},l={},c=0,u=function(e,t){l[e]=t,t>c&&(c=t)},h=function(e){return l[e]},d=0;d<a.length;d++){var p=a[d],f=p.id();s[f]=n?p.outgoers().nodes():p.openNeighborhood().nodes(),u(f,0)}for(var g=function(){for(var e=a[m].id(),t=[],n={},l={},c={},d=new MCt(function(e,t){return c[e]-c[t]}),p=0;p<a.length;p++){var f=a[p].id();n[f]=[],l[f]=0,c[f]=1/0}for(l[e]=1,c[e]=0,d.push(e);!d.empty();){var g=d.pop();if(t.push(g),i)for(var O=0;O<s[g].length;O++){var A=s[g][O],y=o.getElementById(g),v=void 0;v=y.edgesTo(A).length>0?y.edgesTo(A)[0]:A.edgesTo(y)[0];var b=r(v);A=A.id(),c[A]>c[g]+b&&(c[A]=c[g]+b,d.nodes.indexOf(A)<0?d.push(A):d.updateItem(A),l[A]=0,n[A]=[]),c[A]==c[g]+b&&(l[A]=l[A]+l[g],n[A].push(g))}else for(var x=0;x<s[g].length;x++){var w=s[g][x].id();c[w]==1/0&&(d.push(w),c[w]=c[g]+1),c[w]==c[g]+1&&(l[w]=l[w]+l[g],n[w].push(g))}}for(var k={},S=0;S<a.length;S++)k[a[S].id()]=0;for(;t.length>0;){for(var T=t.pop(),$=0;$<n[T].length;$++){var _=n[T][$];k[_]=k[_]+l[_]/l[T]*(1+k[T])}T!=a[m].id()&&u(T,h(T)+k[T])}},m=0;m<a.length;m++)g();var O={betweenness:function(e){var t=o.collection(e).id();return h(t)},betweennessNormalized:function(e){if(0==c)return 0;var t=o.collection(e).id();return h(t)/c}};return O.betweennessNormalised=O.betweennessNormalized,O}};JQt.bc=JQt.betweennessCentrality;var ePt=vCt({expandFactor:2,inflateFactor:2,multFactor:1,maxIterations:20,attributes:[function(e){return 1}]}),tPt=function(e,t){for(var n=0,r=0;r<t.length;r++)n+=t[r](e);return n},nPt=function(e,t){for(var n,r=0;r<t;r++){n=0;for(var i=0;i<t;i++)n+=e[i*t+r];for(var o=0;o<t;o++)e[o*t+r]=e[o*t+r]/n}},rPt=function(e,t,n){for(var r=new Array(n*n),i=0;i<n;i++){for(var o=0;o<n;o++)r[i*n+o]=0;for(var a=0;a<n;a++)for(var s=0;s<n;s++)r[i*n+s]+=e[i*n+a]*t[a*n+s]}return r},iPt=function(e,t,n){for(var r=e.slice(0),i=1;i<n;i++)e=rPt(e,r,t);return e},oPt=function(e,t,n){for(var r=new Array(t*t),i=0;i<t*t;i++)r[i]=Math.pow(e[i],n);return nPt(r,t),r},aPt=function(e,t,n,r){for(var i=0;i<n;i++){if(Math.round(e[i]*Math.pow(10,r))/Math.pow(10,r)!==Math.round(t[i]*Math.pow(10,r))/Math.pow(10,r))return!1}return!0},sPt=function(e,t){for(var n=0;n<e.length;n++)if(!t[n]||e[n].id()!==t[n].id())return!1;return!0},lPt=function(e){for(var t=this.nodes(),n=this.edges(),r=this.cy(),i=function(e){return ePt(e)}(e),o={},a=0;a<t.length;a++)o[t[a].id()]=a;for(var s,l=t.length,c=l*l,u=new Array(c),h=0;h<c;h++)u[h]=0;for(var d=0;d<n.length;d++){var p=n[d],f=o[p.source().id()],g=o[p.target().id()],m=tPt(p,i.attributes);u[f*l+g]+=m,u[g*l+f]+=m}!function(e,t,n){for(var r=0;r<t;r++)e[r*t+r]=n}(u,l,i.multFactor),nPt(u,l);for(var O=!0,A=0;O&&A<i.maxIterations;)O=!1,s=iPt(u,l,i.expandFactor),u=oPt(s,l,i.inflateFactor),aPt(u,s,c,4)||(O=!0),A++;var y=function(e,t,n,r){for(var i=[],o=0;o<t;o++){for(var a=[],s=0;s<t;s++)Math.round(1e3*e[o*t+s])/1e3>0&&a.push(n[s]);0!==a.length&&i.push(r.collection(a))}return i}(u,l,t,r);return y=function(e){for(var t=0;t<e.length;t++)for(var n=0;n<e.length;n++)t!=n&&sPt(e[t],e[n])&&e.splice(n,1);return e}(y),y},cPt={markovClustering:lPt,mcl:lPt},uPt=function(e){return e},hPt=function(e,t){return Math.abs(t-e)},dPt=function(e,t,n){return e+hPt(t,n)},pPt=function(e,t,n){return e+Math.pow(n-t,2)},fPt=function(e){return Math.sqrt(e)},gPt=function(e,t,n){return Math.max(e,hPt(t,n))},mPt=function(e,t,n,r,i){for(var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:uPt,a=r,s=0;s<e;s++)a=i(a,t(s),n(s));return o(a)},OPt={euclidean:function(e,t,n){return e>=2?mPt(e,t,n,0,pPt,fPt):mPt(e,t,n,0,dPt)},squaredEuclidean:function(e,t,n){return mPt(e,t,n,0,pPt)},manhattan:function(e,t,n){return mPt(e,t,n,0,dPt)},max:function(e,t,n){return mPt(e,t,n,-1/0,gPt)}};function APt(e,t,n,r,i,o){var a;return a=i_t(e)?e:OPt[e]||OPt.euclidean,0===t&&i_t(e)?a(i,o):a(t,n,r,i,o)}OPt["squared-euclidean"]=OPt.squaredEuclidean,OPt.squaredeuclidean=OPt.squaredEuclidean;var yPt=vCt({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),vPt=function(e){return yPt(e)},bPt=function(e,t,n,r,i){var o="kMedoids"!==i?function(e){return n[e]}:function(e){return r[e](n)},a=n,s=t;return APt(e,r.length,o,function(e){return r[e](t)},a,s)},xPt=function(e,t,n){for(var r=n.length,i=new Array(r),o=new Array(r),a=new Array(t),s=null,l=0;l<r;l++)i[l]=e.min(n[l]).value,o[l]=e.max(n[l]).value;for(var c=0;c<t;c++){s=[];for(var u=0;u<r;u++)s[u]=Math.random()*(o[u]-i[u])+i[u];a[c]=s}return a},wPt=function(e,t,n,r,i){for(var o=1/0,a=0,s=0;s<t.length;s++){var l=bPt(n,e,t[s],r,i);l<o&&(o=l,a=s)}return a},kPt=function(e,t,n){for(var r=[],i=null,o=0;o<t.length;o++)n[(i=t[o]).id()]===e&&r.push(i);return r},SPt=function(e,t,n){return Math.abs(t-e)<=n},TPt=function(e,t,n){for(var r=0;r<e.length;r++)for(var i=0;i<e[r].length;i++){if(Math.abs(e[r][i]-t[r][i])>n)return!1}return!0},$Pt=function(e,t,n){for(var r=0;r<n;r++)if(e===t[r])return!0;return!1},_Pt=function(e,t){var n=new Array(t);if(e.length<50)for(var r=0;r<t;r++){for(var i=e[Math.floor(Math.random()*e.length)];$Pt(i,n,r);)i=e[Math.floor(Math.random()*e.length)];n[r]=i}else for(var o=0;o<t;o++)n[o]=e[Math.floor(Math.random()*e.length)];return n},CPt=function(e,t,n){for(var r=0,i=0;i<t.length;i++)r+=bPt("manhattan",t[i],e,n,"kMedoids");return r},QPt=function(e,t,n,r,i){for(var o,a,s=0;s<t.length;s++)for(var l=0;l<e.length;l++)r[s][l]=Math.pow(n[s][l],i.m);for(var c=0;c<e.length;c++)for(var u=0;u<i.attributes.length;u++){o=0,a=0;for(var h=0;h<t.length;h++)o+=r[h][c]*i.attributes[u](t[h]),a+=r[h][c];e[c][u]=o/a}},PPt=function(e,t,n,r,i){for(var o=0;o<e.length;o++)t[o]=e[o].slice();for(var a,s,l,c=2/(i.m-1),u=0;u<n.length;u++)for(var h=0;h<r.length;h++){a=0;for(var d=0;d<n.length;d++)s=bPt(i.distance,r[h],n[u],i.attributes,"cmeans"),l=bPt(i.distance,r[h],n[d],i.attributes,"cmeans"),a+=Math.pow(s/l,c);e[h][u]=1/a}},EPt=function(e){var t,n,r,i,o,a=this.cy(),s=this.nodes(),l=vPt(e);i=new Array(s.length);for(var c=0;c<s.length;c++)i[c]=new Array(l.k);r=new Array(s.length);for(var u=0;u<s.length;u++)r[u]=new Array(l.k);for(var h=0;h<s.length;h++){for(var d=0,p=0;p<l.k;p++)r[h][p]=Math.random(),d+=r[h][p];for(var f=0;f<l.k;f++)r[h][f]=r[h][f]/d}n=new Array(l.k);for(var g=0;g<l.k;g++)n[g]=new Array(l.attributes.length);o=new Array(s.length);for(var m=0;m<s.length;m++)o[m]=new Array(l.k);for(var O=!0,A=0;O&&A<l.maxIterations;)O=!1,QPt(n,s,r,o,l),PPt(r,i,n,s,l),TPt(r,i,l.sensitivityThreshold)||(O=!0),A++;return t=function(e,t,n,r){for(var i,o,a=new Array(n.k),s=0;s<a.length;s++)a[s]=[];for(var l=0;l<t.length;l++){i=-1/0,o=-1;for(var c=0;c<t[0].length;c++)t[l][c]>i&&(i=t[l][c],o=c);a[o].push(e[l])}for(var u=0;u<a.length;u++)a[u]=r.collection(a[u]);return a}(s,r,l,a),{clusters:t,degreeOfMembership:r}},RPt={kMeans:function(e){var t,n=this.cy(),r=this.nodes(),i=null,o=vPt(e),a=new Array(o.k),s={};o.testMode?"number"==typeof o.testCentroids?(o.testCentroids,t=xPt(r,o.k,o.attributes)):t="object"===v$t(o.testCentroids)?o.testCentroids:xPt(r,o.k,o.attributes):t=xPt(r,o.k,o.attributes);for(var l=!0,c=0;l&&c<o.maxIterations;){for(var u=0;u<r.length;u++)s[(i=r[u]).id()]=wPt(i,t,o.distance,o.attributes,"kMeans");l=!1;for(var h=0;h<o.k;h++){var d=kPt(h,r,s);if(0!==d.length){for(var p=o.attributes.length,f=t[h],g=new Array(p),m=new Array(p),O=0;O<p;O++){m[O]=0;for(var A=0;A<d.length;A++)i=d[A],m[O]+=o.attributes[O](i);g[O]=m[O]/d.length,SPt(g[O],f[O],o.sensitivityThreshold)||(l=!0)}t[h]=g,a[h]=n.collection(d)}}c++}return a},kMedoids:function(e){var t,n,r=this.cy(),i=this.nodes(),o=null,a=vPt(e),s=new Array(a.k),l={},c=new Array(a.k);a.testMode?"number"==typeof a.testCentroids||(t="object"===v$t(a.testCentroids)?a.testCentroids:_Pt(i,a.k)):t=_Pt(i,a.k);for(var u=!0,h=0;u&&h<a.maxIterations;){for(var d=0;d<i.length;d++)l[(o=i[d]).id()]=wPt(o,t,a.distance,a.attributes,"kMedoids");u=!1;for(var p=0;p<t.length;p++){var f=kPt(p,i,l);if(0!==f.length){c[p]=CPt(t[p],f,a.attributes);for(var g=0;g<f.length;g++)(n=CPt(f[g],f,a.attributes))<c[p]&&(c[p]=n,t[p]=f[g],u=!0);s[p]=r.collection(f)}}h++}return s},fuzzyCMeans:EPt,fcm:EPt},BPt=vCt({distance:"euclidean",linkage:"min",mode:"threshold",threshold:1/0,addDendrogram:!1,dendrogramDepth:0,attributes:[]}),IPt={single:"min",complete:"max"},LPt=function(e,t,n,r,i){for(var o,a=0,s=1/0,l=i.attributes,c=function(e,t){return APt(i.distance,l.length,function(t){return l[t](e)},function(e){return l[e](t)},e,t)},u=0;u<e.length;u++){var h=e[u].key,d=n[h][r[h]];d<s&&(a=h,s=d)}if("threshold"===i.mode&&s>=i.threshold||"dendrogram"===i.mode&&1===e.length)return!1;var p,f=t[a],g=t[r[a]];p="dendrogram"===i.mode?{left:f,right:g,key:f.key}:{value:f.value.concat(g.value),key:f.key},e[f.index]=p,e.splice(g.index,1),t[f.key]=p;for(var m=0;m<e.length;m++){var O=e[m];f.key===O.key?o=1/0:"min"===i.linkage?(o=n[f.key][O.key],n[f.key][O.key]>n[g.key][O.key]&&(o=n[g.key][O.key])):"max"===i.linkage?(o=n[f.key][O.key],n[f.key][O.key]<n[g.key][O.key]&&(o=n[g.key][O.key])):o="mean"===i.linkage?(n[f.key][O.key]*f.size+n[g.key][O.key]*g.size)/(f.size+g.size):"dendrogram"===i.mode?c(O.value,f.value):c(O.value[0],f.value[0]),n[f.key][O.key]=n[O.key][f.key]=o}for(var A=0;A<e.length;A++){var y=e[A].key;if(r[y]===f.key||r[y]===g.key){for(var v=y,b=0;b<e.length;b++){var x=e[b].key;n[y][x]<n[y][v]&&(v=x)}r[y]=v}e[A].index=A}return f.key=g.key=f.index=g.index=null,!0},DPt=function(e,t,n){e&&(e.value?t.push(e.value):(e.left&&DPt(e.left,t),e.right&&DPt(e.right,t)))},MPt=function(e,t){if(!e)return"";if(e.left&&e.right){var n=MPt(e.left,t),r=MPt(e.right,t),i=t.add({group:"nodes",data:{id:n+","+r}});return t.add({group:"edges",data:{source:n,target:i.id()}}),t.add({group:"edges",data:{source:r,target:i.id()}}),i.id()}return e.value?e.value.id():void 0},NPt=function(e,t,n){if(!e)return[];var r=[],i=[],o=[];return 0===t?(e.left&&DPt(e.left,r),e.right&&DPt(e.right,i),o=r.concat(i),[n.collection(o)]):1===t?e.value?[n.collection(e.value)]:(e.left&&DPt(e.left,r),e.right&&DPt(e.right,i),[n.collection(r),n.collection(i)]):e.value?[n.collection(e.value)]:(e.left&&(r=NPt(e.left,t-1,n)),e.right&&(i=NPt(e.right,t-1,n)),r.concat(i))},XPt=function(e){for(var t=this.cy(),n=this.nodes(),r=function(e){var t=BPt(e),n=IPt[t.linkage];return null!=n&&(t.linkage=n),t}(e),i=r.attributes,o=function(e,t){return APt(r.distance,i.length,function(t){return i[t](e)},function(e){return i[e](t)},e,t)},a=[],s=[],l=[],c=[],u=0;u<n.length;u++){var h={value:"dendrogram"===r.mode?n[u]:[n[u]],key:u,index:u};a[u]=h,c[u]=h,s[u]=[],l[u]=0}for(var d=0;d<a.length;d++)for(var p=0;p<=d;p++){var f=void 0;f="dendrogram"===r.mode?d===p?1/0:o(a[d].value,a[p].value):d===p?1/0:o(a[d].value[0],a[p].value[0]),s[d][p]=f,s[p][d]=f,f<s[d][l[d]]&&(l[d]=p)}for(var g,m=LPt(a,c,s,l,r);m;)m=LPt(a,c,s,l,r);return"dendrogram"===r.mode?(g=NPt(a[0],r.dendrogramDepth,t),r.addDendrogram&&MPt(a[0],t)):(g=new Array(a.length),a.forEach(function(e,n){e.key=e.index=null,g[n]=t.collection(e.value)})),g},FPt={hierarchicalClustering:XPt,hca:XPt},UPt=vCt({distance:"euclidean",preference:"median",damping:.8,maxIterations:1e3,minIterations:100,attributes:[]}),zPt=function(e,t,n,r){var i=function(e,t){return r[t](e)};return-APt(e,r.length,function(e){return i(t,e)},function(e){return i(n,e)},t,n)},qPt=function(e,t){var n=null;return n="median"===t?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?(n<e.length&&e.splice(n,e.length-n),t>0&&e.splice(0,t)):e=e.slice(t,n);for(var o=0,a=e.length-1;a>=0;a--){var s=e[a];i?isFinite(s)||(e[a]=-1/0,o++):e.splice(a,1)}r&&e.sort(function(e,t){return e-t});var l=e.length,c=Math.floor(l/2);return l%2!=0?e[c+1+o]:(e[c-1+o]+e[c+o])/2}(e):"mean"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=0,i=0,o=t;o<n;o++){var a=e[o];isFinite(a)&&(r+=a,i++)}return r/i}(e):"min"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=1/0,i=t;i<n;i++){var o=e[i];isFinite(o)&&(r=Math.min(o,r))}return r}(e):"max"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=-1/0,i=t;i<n;i++){var o=e[i];isFinite(o)&&(r=Math.max(o,r))}return r}(e):t,n},VPt=function(e,t,n){for(var r=[],i=0;i<e;i++){for(var o=-1,a=-1/0,s=0;s<n.length;s++){var l=n[s];t[i*e+l]>a&&(o=l,a=t[i*e+l])}o>0&&r.push(o)}for(var c=0;c<n.length;c++)r[n[c]]=n[c];return r},WPt=function(e){for(var t,n,r,i,o,a,s=this.cy(),l=this.nodes(),c=function(e){var t=e.damping,n=e.preference;.5<=t&&t<1||pCt("Damping must range on [0.5, 1). Got: ".concat(t));var r=["median","mean","min","max"];return r.some(function(e){return e===n})||s_t(n)||pCt("Preference must be one of [".concat(r.map(function(e){return"'".concat(e,"'")}).join(", "),"] or a number. Got: ").concat(n)),UPt(e)}(e),u={},h=0;h<l.length;h++)u[l[h].id()]=h;n=(t=l.length)*t,r=new Array(n);for(var d=0;d<n;d++)r[d]=-1/0;for(var p=0;p<t;p++)for(var f=0;f<t;f++)p!==f&&(r[p*t+f]=zPt(c.distance,l[p],l[f],c.attributes));i=qPt(r,c.preference);for(var g=0;g<t;g++)r[g*t+g]=i;o=new Array(n);for(var m=0;m<n;m++)o[m]=0;a=new Array(n);for(var O=0;O<n;O++)a[O]=0;for(var A=new Array(t),y=new Array(t),v=new Array(t),b=0;b<t;b++)A[b]=0,y[b]=0,v[b]=0;for(var x,w=new Array(t*c.minIterations),k=0;k<w.length;k++)w[k]=0;for(x=0;x<c.maxIterations;x++){for(var S=0;S<t;S++){for(var T=-1/0,$=-1/0,_=-1,C=0,Q=0;Q<t;Q++)A[Q]=o[S*t+Q],(C=a[S*t+Q]+r[S*t+Q])>=T?($=T,T=C,_=Q):C>$&&($=C);for(var P=0;P<t;P++)o[S*t+P]=(1-c.damping)*(r[S*t+P]-T)+c.damping*A[P];o[S*t+_]=(1-c.damping)*(r[S*t+_]-$)+c.damping*A[_]}for(var E=0;E<t;E++){for(var R=0,B=0;B<t;B++)A[B]=a[B*t+E],y[B]=Math.max(0,o[B*t+E]),R+=y[B];R-=y[E],y[E]=o[E*t+E],R+=y[E];for(var I=0;I<t;I++)a[I*t+E]=(1-c.damping)*Math.min(0,R-y[I])+c.damping*A[I];a[E*t+E]=(1-c.damping)*(R-y[E])+c.damping*A[E]}for(var L=0,D=0;D<t;D++){var M=a[D*t+D]+o[D*t+D]>0?1:0;w[x%c.minIterations*t+D]=M,L+=M}if(L>0&&(x>=c.minIterations-1||x==c.maxIterations-1)){for(var N=0,X=0;X<t;X++){v[X]=0;for(var F=0;F<c.minIterations;F++)v[X]+=w[F*t+X];0!==v[X]&&v[X]!==c.minIterations||N++}if(N===t)break}}for(var U=function(e,t,n){for(var r=[],i=0;i<e;i++)t[i*e+i]+n[i*e+i]>0&&r.push(i);return r}(t,o,a),z=function(e,t,n){for(var r=VPt(e,t,n),i=0;i<n.length;i++){for(var o=[],a=0;a<r.length;a++)r[a]===n[i]&&o.push(a);for(var s=-1,l=-1/0,c=0;c<o.length;c++){for(var u=0,h=0;h<o.length;h++)u+=t[o[h]*e+o[c]];u>l&&(s=c,l=u)}n[i]=o[s]}return VPt(e,t,n)}(t,r,U),q={},V=0;V<U.length;V++)q[U[V]]=[];for(var W=0;W<l.length;W++){var j=z[u[l[W].id()]];null!=j&&q[j].push(l[W])}for(var Y=new Array(U.length),Z=0;Z<U.length;Z++)Y[Z]=s.collection(q[U[Z]]);return Y},jPt={affinityPropagation:WPt,ap:WPt},YPt=vCt({root:void 0,directed:!1}),ZPt={hierholzer:function(e){if(!a_t(e)){var t=arguments;e={root:t[0],directed:t[1]}}var n,r,i,o=YPt(e),a=o.root,s=o.directed,l=this,c=!1;a&&(i=r_t(a)?this.filter(a)[0].id():a[0].id());var u={},h={};s?l.forEach(function(e){var t=e.id();if(e.isNode()){var i=e.indegree(!0),o=e.outdegree(!0),a=i-o,s=o-i;1==a?n?c=!0:n=t:1==s?r?c=!0:r=t:(s>1||a>1)&&(c=!0),u[t]=[],e.outgoers().forEach(function(e){e.isEdge()&&u[t].push(e.id())})}else h[t]=[void 0,e.target().id()]}):l.forEach(function(e){var t=e.id();e.isNode()?(e.degree(!0)%2&&(n?r?c=!0:r=t:n=t),u[t]=[],e.connectedEdges().forEach(function(e){return u[t].push(e.id())})):h[t]=[e.source().id(),e.target().id()]});var d={found:!1,trail:void 0};if(c)return d;if(r&&n)if(s){if(i&&r!=i)return d;i=r}else{if(i&&r!=i&&n!=i)return d;i||(i=r)}else i||(i=l[0].id());var p=function(e){for(var t,n,r,i=e,o=[e];u[i].length;)t=u[i].shift(),n=h[t][0],i!=(r=h[t][1])?(u[r]=u[r].filter(function(e){return e!=t}),i=r):s||i==n||(u[n]=u[n].filter(function(e){return e!=t}),i=n),o.unshift(t),o.unshift(i);return o},f=[],g=[];for(g=p(i);1!=g.length;)0==u[g[0]].length?(f.unshift(l.getElementById(g.shift())),f.unshift(l.getElementById(g.shift()))):g=p(g.shift()).concat(g);for(var m in f.unshift(l.getElementById(g.shift())),u)if(u[m].length)return d;return d.found=!0,d.trail=this.spawn(f,!0),d}},GPt=function(){var e=this,t={},n=0,r=0,i=[],o=[],a={},s=function(l,c,u){l===u&&(r+=1),t[c]={id:n,low:n++,cutVertex:!1};var h,d,p,f,g=e.getElementById(c).connectedEdges().intersection(e);0===g.size()?i.push(e.spawn(e.getElementById(c))):g.forEach(function(n){h=n.source().id(),d=n.target().id(),(p=h===c?d:h)!==u&&(f=n.id(),a[f]||(a[f]=!0,o.push({x:c,y:p,edge:n})),p in t?t[c].low=Math.min(t[c].low,t[p].id):(s(l,p,c),t[c].low=Math.min(t[c].low,t[p].low),t[c].id<=t[p].low&&(t[c].cutVertex=!0,function(n,r){for(var a=o.length-1,s=[],l=e.spawn();o[a].x!=n||o[a].y!=r;)s.push(o.pop().edge),a--;s.push(o.pop().edge),s.forEach(function(n){var r=n.connectedNodes().intersection(e);l.merge(n),r.forEach(function(n){var r=n.id(),i=n.connectedEdges().intersection(e);l.merge(n),t[r].cutVertex?l.merge(i.filter(function(e){return e.isLoop()})):l.merge(i)})}),i.push(l)}(c,p))))})};e.forEach(function(e){if(e.isNode()){var n=e.id();n in t||(r=0,s(n,n),t[n].cutVertex=r>1)}});var l=Object.keys(t).filter(function(e){return t[e].cutVertex}).map(function(t){return e.getElementById(t)});return{cut:e.spawn(l),components:i}},HPt=function(){var e=this,t={},n=0,r=[],i=[],o=e.spawn(e),a=function(s){if(i.push(s),t[s]={index:n,low:n++,explored:!1},e.getElementById(s).connectedEdges().intersection(e).forEach(function(e){var n=e.target().id();n!==s&&(n in t||a(n),t[n].explored||(t[s].low=Math.min(t[s].low,t[n].low)))}),t[s].index===t[s].low){for(var l=e.spawn();;){var c=i.pop();if(l.merge(e.getElementById(c)),t[c].low=t[s].index,t[c].explored=!0,c===s)break}var u=l.edgesWith(l),h=l.merge(u);r.push(h),o=o.difference(h)}};return e.forEach(function(e){if(e.isNode()){var n=e.id();n in t||a(n)}}),{cut:o,components:r}},KPt={};[QCt,XCt,FCt,zCt,VCt,jCt,HCt,jQt,ZQt,HQt,JQt,cPt,RPt,FPt,jPt,ZPt,{hopcroftTarjanBiconnected:GPt,htbc:GPt,htb:GPt,hopcroftTarjanBiconnectedComponents:GPt},{tarjanStronglyConnected:HPt,tsc:HPt,tscc:HPt,tarjanStronglyConnectedComponents:HPt}].forEach(function(e){C_t(KPt,e)});var JPt=function(e){if(!(this instanceof JPt))return new JPt(e);this.id="Thenable/1.0.7",this.state=0,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},"function"==typeof e&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};JPt.prototype={fulfill:function(e){return eEt(this,1,"fulfillValue",e)},reject:function(e){return eEt(this,2,"rejectReason",e)},then:function(e,t){var n=this,r=new JPt;return n.onFulfilled.push(rEt(e,r,"fulfill")),n.onRejected.push(rEt(t,r,"reject")),tEt(n),r.proxy}};var eEt=function(e,t,n,r){return 0===e.state&&(e.state=t,e[n]=r,tEt(e)),e},tEt=function(e){1===e.state?nEt(e,"onFulfilled",e.fulfillValue):2===e.state&&nEt(e,"onRejected",e.rejectReason)},nEt=function(e,t,n){if(0!==e[t].length){var r=e[t];e[t]=[];var i=function(){for(var e=0;e<r.length;e++)r[e](n)};"function"==typeof setImmediate?setImmediate(i):setTimeout(i,0)}},rEt=function(e,t,n){return function(r){if("function"!=typeof e)t[n].call(t,r);else{var i;try{i=e(r)}catch(jk){return void t.reject(jk)}iEt(t,i)}}},iEt=function(e,t){if(e!==t&&e.proxy!==t){var n;if("object"===v$t(t)&&null!==t||"function"==typeof t)try{n=t.then}catch(jk){return void e.reject(jk)}if("function"!=typeof n)e.fulfill(t);else{var r=!1;try{n.call(t,function(n){r||(r=!0,n===t?e.reject(new TypeError("circular thenable chain")):iEt(e,n))},function(t){r||(r=!0,e.reject(t))})}catch(jk){r||e.reject(jk)}}}else e.reject(new TypeError("cannot resolve promise with itself"))};JPt.all=function(e){return new JPt(function(t,n){for(var r=new Array(e.length),i=0,o=function(n,o){r[n]=o,++i===e.length&&t(r)},a=0;a<e.length;a++)(function(t){var r=e[t];null!=r&&null!=r.then?r.then(function(e){o(t,e)},function(e){n(e)}):o(t,r)})(a)})},JPt.resolve=function(e){return new JPt(function(t,n){t(e)})},JPt.reject=function(e){return new JPt(function(t,n){n(e)})};var oEt="undefined"!=typeof Promise?Promise:JPt,aEt=function(e,t,n){var r=p_t(e),i=!r,o=this._private=C_t({duration:1e3},t,n);if(o.target=e,o.style=o.style||o.css,o.started=!1,o.playing=!1,o.hooked=!1,o.applying=!1,o.progress=0,o.completes=[],o.frames=[],o.complete&&i_t(o.complete)&&o.completes.push(o.complete),i){var a=e.position();o.startPosition=o.startPosition||{x:a.x,y:a.y},o.startStyle=o.startStyle||e.cy().style().getAnimationStartStyle(e,o.style)}if(r){var s=e.pan();o.startPan={x:s.x,y:s.y},o.startZoom=e.zoom()}this.length=1,this[0]=this},sEt=aEt.prototype;C_t(sEt,{instanceString:function(){return"animation"},hook:function(){var e=this._private;if(!e.hooked){var t=e.target._private.animation;(e.queue?t.queue:t.current).push(this),u_t(e.target)&&e.target.cy().addToAnimationPool(e.target),e.hooked=!0}return this},play:function(){var e=this._private;return 1===e.progress&&(e.progress=0),e.playing=!0,e.started=!1,e.stopped=!1,this.hook(),this},playing:function(){return this._private.playing},apply:function(){var e=this._private;return e.applying=!0,e.started=!1,e.stopped=!1,this.hook(),this},applying:function(){return this._private.applying},pause:function(){var e=this._private;return e.playing=!1,e.started=!1,this},stop:function(){var e=this._private;return e.playing=!1,e.started=!1,e.stopped=!0,this},rewind:function(){return this.progress(0)},fastforward:function(){return this.progress(1)},time:function(e){var t=this._private;return void 0===e?t.progress*t.duration:this.progress(e/t.duration)},progress:function(e){var t=this._private,n=t.playing;return void 0===e?t.progress:(n&&this.pause(),t.progress=e,t.started=!1,n&&this.play(),this)},completed:function(){return 1===this._private.progress},reverse:function(){var e=this._private,t=e.playing;t&&this.pause(),e.progress=1-e.progress,e.started=!1;var n=function(t,n){var r=e[t];null!=r&&(e[t]=e[n],e[n]=r)};if(n("zoom","startZoom"),n("pan","startPan"),n("position","startPosition"),e.style)for(var r=0;r<e.style.length;r++){var i=e.style[r],o=i.name,a=e.startStyle[o];e.startStyle[o]=i,e.style[r]=a}return t&&this.play(),this},promise:function(e){var t,n=this._private;if("frame"===e)t=n.frames;else t=n.completes;return new oEt(function(e,n){t.push(function(){e()})})}}),sEt.complete=sEt.completed,sEt.run=sEt.play,sEt.running=sEt.playing;var lEt,cEt,uEt,hEt,dEt,pEt,fEt,gEt,mEt,OEt,AEt,yEt,vEt,bEt,xEt,wEt,kEt,SEt,TEt,$Et,_Et,CEt,QEt,PEt,EEt,REt,BEt,IEt,LEt,DEt,MEt,NEt,XEt,FEt,UEt,zEt,qEt,VEt,WEt,jEt,YEt,ZEt,GEt,HEt,KEt,JEt,eRt,tRt,nRt,rRt,iRt,oRt,aRt,sRt,lRt,cRt,uRt,hRt,dRt,pRt,fRt,gRt,mRt,ORt,ARt,yRt,vRt,bRt,xRt,wRt,kRt,SRt,TRt,$Rt,_Rt,CRt,QRt,PRt,ERt,RRt,BRt,IRt,LRt,DRt,MRt,NRt,XRt={animated:function(){return function(){var e=this,t=void 0!==e.length?e:[e];if(!(this._private.cy||this).styleEnabled())return!1;var n=t[0];return n?n._private.animation.current.length>0:void 0}},clearQueue:function(){return function(){var e=this,t=void 0!==e.length?e:[e];if(!(this._private.cy||this).styleEnabled())return this;for(var n=0;n<t.length;n++){t[n]._private.animation.queue=[]}return this}},delay:function(){return function(e,t){return(this._private.cy||this).styleEnabled()?this.animate({delay:e,duration:e,complete:t}):this}},delayAnimation:function(){return function(e,t){return(this._private.cy||this).styleEnabled()?this.animation({delay:e,duration:e,complete:t}):this}},animation:function(){return function(e,t){var n=this,r=void 0!==n.length,i=r?n:[n],o=this._private.cy||this,a=!r,s=!a;if(!o.styleEnabled())return this;var l=o.style();if(e=C_t({},e,t),0===Object.keys(e).length)return new aEt(i[0],e);switch(void 0===e.duration&&(e.duration=400),e.duration){case"slow":e.duration=600;break;case"fast":e.duration=200}if(s&&(e.style=l.getPropsList(e.style||e.css),e.css=void 0),s&&null!=e.renderedPosition){var c=e.renderedPosition,u=o.pan(),h=o.zoom();e.position=JCt(c,h,u)}if(a&&null!=e.panBy){var d=e.panBy,p=o.pan();e.pan={x:p.x+d.x,y:p.y+d.y}}var f=e.center||e.centre;if(a&&null!=f){var g=o.getCenterPan(f.eles,e.zoom);null!=g&&(e.pan=g)}if(a&&null!=e.fit){var m=e.fit,O=o.getFitViewport(m.eles||m.boundingBox,m.padding);null!=O&&(e.pan=O.pan,e.zoom=O.zoom)}if(a&&a_t(e.zoom)){var A=o.getZoomedViewport(e.zoom);null!=A?(A.zoomed&&(e.zoom=A.zoom),A.panned&&(e.pan=A.pan)):e.zoom=null}return new aEt(i[0],e)}},animate:function(){return function(e,t){var n=this,r=void 0!==n.length?n:[n];if(!(this._private.cy||this).styleEnabled())return this;t&&(e=C_t({},e,t));for(var i=0;i<r.length;i++){var o=r[i],a=o.animated()&&(void 0===e.queue||e.queue);o.animation(e,a?{queue:!0}:void 0).play()}return this}},stop:function(){return function(e,t){var n=this,r=void 0!==n.length?n:[n],i=this._private.cy||this;if(!i.styleEnabled())return this;for(var o=0;o<r.length;o++){for(var a=r[o]._private,s=a.animation.current,l=0;l<s.length;l++){var c=s[l]._private;t&&(c.duration=0)}e&&(a.animation.queue=[]),t||(a.animation.current=[])}return i.notify("draw"),this}}};function FRt(){if(cEt)return lEt;cEt=1;var e=Array.isArray;return lEt=e}function URt(){if(OEt)return mEt;OEt=1;var e=function(){if(gEt)return fEt;gEt=1;var e=D_t()["__core-js_shared__"];return fEt=e}(),t=function(){var t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();return mEt=function(e){return!!t&&t in e},mEt}function zRt(){if(bEt)return vEt;bEt=1;var e=function(){if(pEt)return dEt;pEt=1;var e=X_t(),t=L_t();return dEt=function(n){if(!t(n))return!1;var r=e(n);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}}(),t=URt(),n=L_t(),r=function(){if(yEt)return AEt;yEt=1;var e=Function.prototype.toString;return AEt=function(t){if(null!=t){try{return e.call(t)}catch(jk){}try{return t+""}catch(jk){}}return""},AEt}(),i=/^\[object .+?Constructor\]$/,o=Function.prototype,a=Object.prototype,s=o.toString,l=a.hasOwnProperty,c=RegExp("^"+s.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return vEt=function(o){return!(!n(o)||t(o))&&(e(o)?c:i).test(r(o))}}function qRt(){if(SEt)return kEt;SEt=1;var e=zRt(),t=wEt?xEt:(wEt=1,xEt=function(e,t){return null==e?void 0:e[t]});return kEt=function(n,r){var i=t(n,r);return e(i)?i:void 0}}function VRt(){if($Et)return TEt;$Et=1;var e=qRt()(Object,"create");return TEt=e}function WRt(){if(NEt)return MEt;NEt=1;var e=function(){if(CEt)return _Et;CEt=1;var e=VRt();return _Et=function(){this.__data__=e?e(null):{},this.size=0}}(),t=PEt?QEt:(PEt=1,QEt=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}),n=function(){if(REt)return EEt;REt=1;var e=VRt(),t=Object.prototype.hasOwnProperty;return EEt=function(n){var r=this.__data__;if(e){var i=r[n];return"__lodash_hash_undefined__"===i?void 0:i}return t.call(r,n)?r[n]:void 0}}(),r=function(){if(IEt)return BEt;IEt=1;var e=VRt(),t=Object.prototype.hasOwnProperty;return BEt=function(n){var r=this.__data__;return e?void 0!==r[n]:t.call(r,n)}}(),i=function(){if(DEt)return LEt;DEt=1;var e=VRt();return LEt=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=e&&void 0===n?"__lodash_hash_undefined__":n,this}}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,MEt=o}function jRt(){if(zEt)return UEt;return zEt=1,UEt=function(e,t){return e===t||e!=e&&t!=t}}function YRt(){if(VEt)return qEt;VEt=1;var e=jRt();return qEt=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1}}function ZRt(){if(tRt)return eRt;tRt=1;var e=FEt?XEt:(FEt=1,XEt=function(){this.__data__=[],this.size=0}),t=function(){if(jEt)return WEt;jEt=1;var e=YRt(),t=Array.prototype.splice;return WEt=function(n){var r=this.__data__,i=e(r,n);return!(i<0||(i==r.length-1?r.pop():t.call(r,i,1),--this.size,0))}}(),n=function(){if(ZEt)return YEt;ZEt=1;var e=YRt();return YEt=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]}}(),r=function(){if(HEt)return GEt;HEt=1;var e=YRt();return GEt=function(t){return e(this.__data__,t)>-1}}(),i=function(){if(JEt)return KEt;JEt=1;var e=YRt();return KEt=function(t,n){var r=this.__data__,i=e(r,t);return i<0?(++this.size,r.push([t,n])):r[i][1]=n,this}}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,eRt=o}function GRt(){if(oRt)return iRt;oRt=1;var e=WRt(),t=ZRt(),n=function(){if(rRt)return nRt;rRt=1;var e=qRt()(D_t(),"Map");return nRt=e}();return iRt=function(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}}function HRt(){if(cRt)return lRt;cRt=1;var e=sRt?aRt:(sRt=1,aRt=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e});return lRt=function(t,n){var r=t.__data__;return e(n)?r["string"==typeof n?"string":"hash"]:r.map}}function KRt(){if(yRt)return ARt;yRt=1;var e=GRt(),t=function(){if(hRt)return uRt;hRt=1;var e=HRt();return uRt=function(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}}(),n=function(){if(pRt)return dRt;pRt=1;var e=HRt();return dRt=function(t){return e(this,t).get(t)}}(),r=function(){if(gRt)return fRt;gRt=1;var e=HRt();return fRt=function(t){return e(this,t).has(t)}}(),i=function(){if(ORt)return mRt;ORt=1;var e=HRt();return mRt=function(t,n){var r=e(this,t),i=r.size;return r.set(t,n),this.size+=r.size==i?0:1,this}}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,ARt=o}function JRt(){if(wRt)return xRt;wRt=1;var e=function(){if(bRt)return vRt;bRt=1;var e=KRt();function t(n,r){if("function"!=typeof n||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var i=function(){var e=arguments,t=r?r.apply(this,e):e[0],o=i.cache;if(o.has(t))return o.get(t);var a=n.apply(this,e);return i.cache=o.set(t,a)||o,a};return i.cache=new(t.Cache||e),i}return t.Cache=e,vRt=t}();return xRt=function(t){var n=e(t,function(e){return 500===r.size&&r.clear(),e}),r=n.cache;return n},xRt}function eBt(){if(SRt)return kRt;SRt=1;var e=JRt(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(t,function(e,t,i,o){r.push(i?o.replace(n,"$1"):t||e)}),r});return kRt=r}function tBt(){if($Rt)return TRt;return $Rt=1,TRt=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}}function nBt(){if(PRt)return QRt;PRt=1;var e=function(){if(CRt)return _Rt;CRt=1;var e=N_t(),t=tBt(),n=FRt(),r=F_t(),i=e?e.prototype:void 0,o=i?i.toString:void 0;return _Rt=function e(i){if("string"==typeof i)return i;if(n(i))return t(i,e)+"";if(r(i))return o?o.call(i):"";var a=i+"";return"0"==a&&1/i==-1/0?"-0":a},_Rt}();return QRt=function(t){return null==t?"":e(t)}}function rBt(){if(RRt)return ERt;RRt=1;var e=FRt(),t=function(){if(hEt)return uEt;hEt=1;var e=FRt(),t=F_t(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return uEt=function(i,o){if(e(i))return!1;var a=typeof i;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=i&&!t(i))||r.test(i)||!n.test(i)||null!=o&&i in Object(o)}}(),n=eBt(),r=nBt();return ERt=function(i,o){return e(i)?i:t(i,o)?[i]:n(r(i))}}function iBt(){if(IRt)return BRt;IRt=1;var e=F_t();return BRt=function(t){if("string"==typeof t||e(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}}var oBt,aBt,sBt,lBt,cBt,uBt,hBt,dBt,pBt,fBt,gBt,mBt,OBt=I_t(function(){if(NRt)return MRt;NRt=1;var e=function(){if(DRt)return LRt;DRt=1;var e=rBt(),t=iBt();return LRt=function(n,r){for(var i=0,o=(r=e(r,n)).length;null!=n&&i<o;)n=n[t(r[i++])];return i&&i==o?n:void 0}}();return MRt=function(t,n,r){var i=null==t?void 0:e(t,n);return void 0===i?r:i}}());function ABt(){if(lBt)return sBt;lBt=1;var e=function(){if(aBt)return oBt;aBt=1;var e=qRt(),t=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch(jk){}}();return oBt=t}();return sBt=function(t,n,r){"__proto__"==n&&e?e(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}}function yBt(){if(fBt)return pBt;fBt=1;var e=function(){if(uBt)return cBt;uBt=1;var e=ABt(),t=jRt(),n=Object.prototype.hasOwnProperty;return cBt=function(r,i,o){var a=r[i];n.call(r,i)&&t(a,o)&&(void 0!==o||i in r)||e(r,i,o)}}(),t=rBt(),n=function(){if(dBt)return hBt;dBt=1;var e=/^(?:0|[1-9]\d*)$/;return hBt=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}}(),r=L_t(),i=iBt();return pBt=function(o,a,s,l){if(!r(o))return o;for(var c=-1,u=(a=t(a,o)).length,h=u-1,d=o;null!=d&&++c<u;){var p=i(a[c]),f=s;if("__proto__"===p||"constructor"===p||"prototype"===p)return o;if(c!=h){var g=d[p];void 0===(f=l?l(g,p,d):void 0)&&(f=r(g)?g:n(a[c+1])?[]:{})}e(d,p,f),d=d[p]}return o}}var vBt,bBt,xBt,wBt,kBt=I_t(function(){if(mBt)return gBt;mBt=1;var e=yBt();return gBt=function(t,n,r){return null==t?t:e(t,n,r)}}());var SBt=I_t(function(){if(wBt)return xBt;wBt=1;var e=tBt(),t=bBt?vBt:(bBt=1,vBt=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}),n=FRt(),r=F_t(),i=eBt(),o=iBt(),a=nBt();return xBt=function(s){return n(s)?e(s,o):r(s)?[s]:t(i(a(s)))}}()),TBt={data:function(e){return e=C_t({},{field:"data",bindingEvent:"data",allowBinding:!1,allowSetting:!1,allowGetting:!1,settingEvent:"data",settingTriggersEvent:!1,triggerFnName:"trigger",immutableKeys:{},updateStyle:!1,beforeGet:function(e){},beforeSet:function(e,t){},onSet:function(e){},canSet:function(e){return!0}},e),function(t,n){var r=e,i=this,o=void 0!==i.length,a=o?i:[i],s=o?i[0]:i;if(r_t(t)){var l,c=-1!==t.indexOf(".")&&SBt(t);if(r.allowGetting&&void 0===n)return s&&(r.beforeGet(s),l=c&&void 0===s._private[r.field][t]?OBt(s._private[r.field],c):s._private[r.field][t]),l;if(r.allowSetting&&void 0!==n&&!r.immutableKeys[t]){var u=m$t({},t,n);r.beforeSet(i,u);for(var h=0,d=a.length;h<d;h++){var p=a[h];r.canSet(p)&&(c&&void 0===s._private[r.field][t]?kBt(p._private[r.field],c,n):p._private[r.field][t]=n)}r.updateStyle&&i.updateStyle(),r.onSet(i),r.settingTriggersEvent&&i[r.triggerFnName](r.settingEvent)}}else if(r.allowSetting&&a_t(t)){var f,g,m=t,O=Object.keys(m);r.beforeSet(i,m);for(var A=0;A<O.length;A++){if(g=m[f=O[A]],!r.immutableKeys[f])for(var y=0;y<a.length;y++){var v=a[y];r.canSet(v)&&(v._private[r.field][f]=g)}}r.updateStyle&&i.updateStyle(),r.onSet(i),r.settingTriggersEvent&&i[r.triggerFnName](r.settingEvent)}else if(r.allowBinding&&i_t(t)){var b=t;i.on(r.bindingEvent,b)}else if(r.allowGetting&&void 0===t){var x;return s&&(r.beforeGet(s),x=s._private[r.field]),x}return i}},removeData:function(e){return e=C_t({},{field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!1,immutableKeys:{}},e),function(t){var n=e,r=this,i=void 0!==r.length?r:[r];if(r_t(t)){for(var o=t.split(/\s+/),a=o.length,s=0;s<a;s++){var l=o[s];if(!g_t(l))if(!n.immutableKeys[l])for(var c=0,u=i.length;c<u;c++)i[c]._private[n.field][l]=void 0}n.triggerEvent&&r[n.triggerFnName](n.event)}else if(void 0===t){for(var h=0,d=i.length;h<d;h++)for(var p=i[h]._private[n.field],f=Object.keys(p),g=0;g<f.length;g++){var m=f[g];!n.immutableKeys[m]&&(p[m]=void 0)}n.triggerEvent&&r[n.triggerFnName](n.event)}return r}}},$Bt={eventAliasesOn:function(e){var t=e;t.addListener=t.listen=t.bind=t.on,t.unlisten=t.unbind=t.off=t.removeListener,t.trigger=t.emit,t.pon=t.promiseOn=function(e,t){var n=this,r=Array.prototype.slice.call(arguments,0);return new oEt(function(e,t){var i=r.concat([function(t){n.off.apply(n,o),e(t)}]),o=i.concat([]);n.on.apply(n,i)})}}},_Bt={};[XRt,TBt,$Bt].forEach(function(e){C_t(_Bt,e)});var CBt={animate:_Bt.animate(),animation:_Bt.animation(),animated:_Bt.animated(),clearQueue:_Bt.clearQueue(),delay:_Bt.delay(),delayAnimation:_Bt.delayAnimation(),stop:_Bt.stop()},QBt={classes:function(e){var t=this;if(void 0===e){var n=[];return t[0]._private.classes.forEach(function(e){return n.push(e)}),n}o_t(e)||(e=(e||"").match(/\S+/g)||[]);for(var r=[],i=new $Ct(e),o=0;o<t.length;o++){for(var a=t[o],s=a._private,l=s.classes,c=!1,u=0;u<e.length;u++){var h=e[u];if(!l.has(h)){c=!0;break}}c||(c=l.size!==e.length),c&&(s.classes=i,r.push(a))}return r.length>0&&this.spawn(r).updateStyle().emit("class"),t},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var t=this[0];return null!=t&&t._private.classes.has(e)},toggleClass:function(e,t){o_t(e)||(e=e.match(/\S+/g)||[]);for(var n=this,r=void 0===t,i=[],o=0,a=n.length;o<a;o++)for(var s=n[o],l=s._private.classes,c=!1,u=0;u<e.length;u++){var h=e[u],d=l.has(h),p=!1;t||r&&!d?(l.add(h),p=!0):(!t||r&&d)&&(l.delete(h),p=!0),!c&&p&&(i.push(s),c=!0)}return i.length>0&&this.spawn(i).updateStyle().emit("class"),n},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,t){var n=this;if(null==t)t=250;else if(0===t)return n;return n.addClass(e),setTimeout(function(){n.removeClass(e)},t),n}};QBt.className=QBt.classNames=QBt.classes;var PBt={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:"\"(?:\\\\\"|[^\"])*\"|'(?:\\\\'|[^'])*'",number:w_t,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};PBt.variable="(?:[\\w-.]|(?:\\\\"+PBt.metaChar+"))+",PBt.className="(?:[\\w-]|(?:\\\\"+PBt.metaChar+"))+",PBt.value=PBt.string+"|"+PBt.number,PBt.id=PBt.variable,function(){var e,t,n;for(e=PBt.comparatorOp.split("|"),n=0;n<e.length;n++)t=e[n],PBt.comparatorOp+="|@"+t;for(e=PBt.comparatorOp.split("|"),n=0;n<e.length;n++)(t=e[n]).indexOf("!")>=0||"="!==t&&(PBt.comparatorOp+="|\\!"+t)}();var EBt=0,RBt=1,BBt=2,IBt=3,LBt=4,DBt=5,MBt=6,NBt=7,XBt=8,FBt=9,UBt=10,zBt=11,qBt=12,VBt=13,WBt=14,jBt=15,YBt=16,ZBt=17,GBt=18,HBt=19,KBt=20,JBt=[{selector:":selected",matches:function(e){return e.selected()}},{selector:":unselected",matches:function(e){return!e.selected()}},{selector:":selectable",matches:function(e){return e.selectable()}},{selector:":unselectable",matches:function(e){return!e.selectable()}},{selector:":locked",matches:function(e){return e.locked()}},{selector:":unlocked",matches:function(e){return!e.locked()}},{selector:":visible",matches:function(e){return e.visible()}},{selector:":hidden",matches:function(e){return!e.visible()}},{selector:":transparent",matches:function(e){return e.transparent()}},{selector:":grabbed",matches:function(e){return e.grabbed()}},{selector:":free",matches:function(e){return!e.grabbed()}},{selector:":removed",matches:function(e){return e.removed()}},{selector:":inside",matches:function(e){return!e.removed()}},{selector:":grabbable",matches:function(e){return e.grabbable()}},{selector:":ungrabbable",matches:function(e){return!e.grabbable()}},{selector:":animated",matches:function(e){return e.animated()}},{selector:":unanimated",matches:function(e){return!e.animated()}},{selector:":parent",matches:function(e){return e.isParent()}},{selector:":childless",matches:function(e){return e.isChildless()}},{selector:":child",matches:function(e){return e.isChild()}},{selector:":orphan",matches:function(e){return e.isOrphan()}},{selector:":nonorphan",matches:function(e){return e.isChild()}},{selector:":compound",matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:":loop",matches:function(e){return e.isLoop()}},{selector:":simple",matches:function(e){return e.isSimple()}},{selector:":active",matches:function(e){return e.active()}},{selector:":inactive",matches:function(e){return!e.active()}},{selector:":backgrounding",matches:function(e){return e.backgrounding()}},{selector:":nonbackgrounding",matches:function(e){return!e.backgrounding()}}].sort(function(e,t){return function(e,t){return-1*__t(e,t)}(e.selector,t.selector)}),eIt=function(){for(var e,t={},n=0;n<JBt.length;n++)t[(e=JBt[n]).selector]=e.matches;return t}(),tIt="("+JBt.map(function(e){return e.selector}).join("|")+")",nIt=function(e){return e.replace(new RegExp("\\\\("+PBt.metaChar+")","g"),function(e,t){return t})},rIt=function(e,t,n){e[e.length-1]=n},iIt=[{name:"group",query:!0,regex:"("+PBt.group+")",populate:function(e,t,n){var r=O$t(n,1)[0];t.checks.push({type:EBt,value:"*"===r?r:r+"s"})}},{name:"state",query:!0,regex:tIt,populate:function(e,t,n){var r=O$t(n,1)[0];t.checks.push({type:NBt,value:r})}},{name:"id",query:!0,regex:"\\#("+PBt.id+")",populate:function(e,t,n){var r=O$t(n,1)[0];t.checks.push({type:XBt,value:nIt(r)})}},{name:"className",query:!0,regex:"\\.("+PBt.className+")",populate:function(e,t,n){var r=O$t(n,1)[0];t.checks.push({type:FBt,value:nIt(r)})}},{name:"dataExists",query:!0,regex:"\\[\\s*("+PBt.variable+")\\s*\\]",populate:function(e,t,n){var r=O$t(n,1)[0];t.checks.push({type:LBt,field:nIt(r)})}},{name:"dataCompare",query:!0,regex:"\\[\\s*("+PBt.variable+")\\s*("+PBt.comparatorOp+")\\s*("+PBt.value+")\\s*\\]",populate:function(e,t,n){var r=O$t(n,3),i=r[0],o=r[1],a=r[2];a=null!=new RegExp("^"+PBt.string+"$").exec(a)?a.substring(1,a.length-1):parseFloat(a),t.checks.push({type:IBt,field:nIt(i),operator:o,value:a})}},{name:"dataBool",query:!0,regex:"\\[\\s*("+PBt.boolOp+")\\s*("+PBt.variable+")\\s*\\]",populate:function(e,t,n){var r=O$t(n,2),i=r[0],o=r[1];t.checks.push({type:DBt,field:nIt(o),operator:i})}},{name:"metaCompare",query:!0,regex:"\\[\\[\\s*("+PBt.meta+")\\s*("+PBt.comparatorOp+")\\s*("+PBt.number+")\\s*\\]\\]",populate:function(e,t,n){var r=O$t(n,3),i=r[0],o=r[1],a=r[2];t.checks.push({type:MBt,field:nIt(i),operator:o,value:parseFloat(a)})}},{name:"nextQuery",separator:!0,regex:PBt.separator,populate:function(e,t){var n=e.currentSubject,r=e.edgeCount,i=e.compoundCount,o=e[e.length-1];return null!=n&&(o.subject=n,e.currentSubject=null),o.edgeCount=r,o.compoundCount=i,e.edgeCount=0,e.compoundCount=0,e[e.length++]={checks:[]}}},{name:"directedEdge",separator:!0,regex:PBt.directedEdge,populate:function(e,t){if(null==e.currentSubject){var n={checks:[]},r=t,i={checks:[]};return n.checks.push({type:zBt,source:r,target:i}),rIt(e,0,n),e.edgeCount++,i}var o={checks:[]},a=t,s={checks:[]};return o.checks.push({type:qBt,source:a,target:s}),rIt(e,0,o),e.edgeCount++,s}},{name:"undirectedEdge",separator:!0,regex:PBt.undirectedEdge,populate:function(e,t){if(null==e.currentSubject){var n={checks:[]},r=t,i={checks:[]};return n.checks.push({type:UBt,nodes:[r,i]}),rIt(e,0,n),e.edgeCount++,i}var o={checks:[]},a=t,s={checks:[]};return o.checks.push({type:WBt,node:a,neighbor:s}),rIt(e,0,o),s}},{name:"child",separator:!0,regex:PBt.child,populate:function(e,t){if(null==e.currentSubject){var n={checks:[]},r={checks:[]},i=e[e.length-1];return n.checks.push({type:jBt,parent:i,child:r}),rIt(e,0,n),e.compoundCount++,r}if(e.currentSubject===t){var o={checks:[]},a=e[e.length-1],s={checks:[]},l={checks:[]},c={checks:[]},u={checks:[]};return o.checks.push({type:HBt,left:a,right:s,subject:l}),l.checks=t.checks,t.checks=[{type:KBt}],u.checks.push({type:KBt}),s.checks.push({type:ZBt,parent:u,child:c}),rIt(e,0,o),e.currentSubject=l,e.compoundCount++,c}var h={checks:[]},d={checks:[]},p=[{type:ZBt,parent:h,child:d}];return h.checks=t.checks,t.checks=p,e.compoundCount++,d}},{name:"descendant",separator:!0,regex:PBt.descendant,populate:function(e,t){if(null==e.currentSubject){var n={checks:[]},r={checks:[]},i=e[e.length-1];return n.checks.push({type:YBt,ancestor:i,descendant:r}),rIt(e,0,n),e.compoundCount++,r}if(e.currentSubject===t){var o={checks:[]},a=e[e.length-1],s={checks:[]},l={checks:[]},c={checks:[]},u={checks:[]};return o.checks.push({type:HBt,left:a,right:s,subject:l}),l.checks=t.checks,t.checks=[{type:KBt}],u.checks.push({type:KBt}),s.checks.push({type:GBt,ancestor:u,descendant:c}),rIt(e,0,o),e.currentSubject=l,e.compoundCount++,c}var h={checks:[]},d={checks:[]},p=[{type:GBt,ancestor:h,descendant:d}];return h.checks=t.checks,t.checks=p,e.compoundCount++,d}},{name:"subject",modifier:!0,regex:PBt.subject,populate:function(e,t){if(null!=e.currentSubject&&e.currentSubject!==t)return gCt(e.toString()),!1;e.currentSubject=t;var n=e[e.length-1].checks[0],r=null==n?null:n.type;r===zBt?n.type=VBt:r===UBt&&(n.type=WBt,n.node=n.nodes[1],n.neighbor=n.nodes[0],n.nodes=null)}}];iIt.forEach(function(e){return e.regexObj=new RegExp("^"+e.regex)});var oIt=function(e){for(var t,n,r,i=0;i<iIt.length;i++){var o=iIt[i],a=o.name,s=e.match(o.regexObj);if(null!=s){n=s,t=o,r=a;var l=s[0];e=e.substring(l.length);break}}return{expr:t,match:n,name:r,remaining:e}},aIt={parse:function(e){var t=this,n=t.inputText=e,r=t[0]={checks:[]};for(t.length=1,n=function(e){var t=e.match(/^\s+/);if(t){var n=t[0];e=e.substring(n.length)}return e}(n);;){var i=oIt(n);if(null==i.expr)return gCt(),!1;var o=i.match.slice(1),a=i.expr.populate(t,r,o);if(!1===a)return!1;if(null!=a&&(r=a),(n=i.remaining).match(/^\s*$/))break}var s=t[t.length-1];null!=t.currentSubject&&(s.subject=t.currentSubject),s.edgeCount=t.edgeCount,s.compoundCount=t.compoundCount;for(var l=0;l<t.length;l++){var c=t[l];if(c.compoundCount>0&&c.edgeCount>0)return gCt(),!1;if(c.edgeCount>1)return gCt(),!1;1===c.edgeCount&&gCt()}return!0},toString:function(){if(null!=this.toStringCache)return this.toStringCache;for(var e=function(e){return null==e?"":e},t=function(t){return r_t(t)?'"'+t+'"':e(t)},n=function(e){return" "+e+" "},r=function(i,o){return i.checks.reduce(function(a,s,l){return a+(o===i&&0===l?"$":"")+function(i,o){var a=i.type,s=i.value;switch(a){case EBt:var l=e(s);return l.substring(0,l.length-1);case IBt:var c=i.field,u=i.operator;return"["+c+n(e(u))+t(s)+"]";case DBt:var h=i.operator,d=i.field;return"["+e(h)+d+"]";case LBt:return"["+i.field+"]";case MBt:var p=i.operator;return"[["+i.field+n(e(p))+t(s)+"]]";case NBt:return s;case XBt:return"#"+s;case FBt:return"."+s;case ZBt:case jBt:return r(i.parent,o)+n(">")+r(i.child,o);case GBt:case YBt:return r(i.ancestor,o)+" "+r(i.descendant,o);case HBt:var f=r(i.left,o),g=r(i.subject,o),m=r(i.right,o);return f+(f.length>0?" ":"")+g+m;case KBt:return""}}(s,o)},"")},i="",o=0;o<this.length;o++){var a=this[o];i+=r(a,a.subject),this.length>1&&o<this.length-1&&(i+=", ")}return this.toStringCache=i,i}},sIt=function(e,t,n){var r,i,o,a=r_t(e),s=s_t(e),l=r_t(n),c=!1,u=!1,h=!1;switch(t.indexOf("!")>=0&&(t=t.replace("!",""),u=!0),t.indexOf("@")>=0&&(t=t.replace("@",""),c=!0),(a||l||c)&&(i=a||s?""+e:"",o=""+n),c&&(e=i=i.toLowerCase(),n=o=o.toLowerCase()),t){case"*=":r=i.indexOf(o)>=0;break;case"$=":r=i.indexOf(o,i.length-o.length)>=0;break;case"^=":r=0===i.indexOf(o);break;case"=":r=e===n;break;case">":h=!0,r=e>n;break;case">=":h=!0,r=e>=n;break;case"<":h=!0,r=e<n;break;case"<=":h=!0,r=e<=n;break;default:r=!1}return!u||null==e&&h||(r=!r),r},lIt=function(e,t){return e.data(t)},cIt=[],uIt=function(e,t){return e.checks.every(function(e){return cIt[e.type](e,t)})};cIt[EBt]=function(e,t){var n=e.value;return"*"===n||n===t.group()},cIt[NBt]=function(e,t){return function(e,t){return eIt[e](t)}(e.value,t)},cIt[XBt]=function(e,t){var n=e.value;return t.id()===n},cIt[FBt]=function(e,t){var n=e.value;return t.hasClass(n)},cIt[MBt]=function(e,t){var n=e.field,r=e.operator,i=e.value;return sIt(function(e,t){return e[t]()}(t,n),r,i)},cIt[IBt]=function(e,t){var n=e.field,r=e.operator,i=e.value;return sIt(lIt(t,n),r,i)},cIt[DBt]=function(e,t){var n=e.field,r=e.operator;return function(e,t){switch(t){case"?":return!!e;case"!":return!e;case"^":return void 0===e}}(lIt(t,n),r)},cIt[LBt]=function(e,t){var n=e.field;return e.operator,void 0!==lIt(t,n)},cIt[UBt]=function(e,t){var n=e.nodes[0],r=e.nodes[1],i=t.source(),o=t.target();return uIt(n,i)&&uIt(r,o)||uIt(r,i)&&uIt(n,o)},cIt[WBt]=function(e,t){return uIt(e.node,t)&&t.neighborhood().some(function(t){return t.isNode()&&uIt(e.neighbor,t)})},cIt[zBt]=function(e,t){return uIt(e.source,t.source())&&uIt(e.target,t.target())},cIt[qBt]=function(e,t){return uIt(e.source,t)&&t.outgoers().some(function(t){return t.isNode()&&uIt(e.target,t)})},cIt[VBt]=function(e,t){return uIt(e.target,t)&&t.incomers().some(function(t){return t.isNode()&&uIt(e.source,t)})},cIt[jBt]=function(e,t){return uIt(e.child,t)&&uIt(e.parent,t.parent())},cIt[ZBt]=function(e,t){return uIt(e.parent,t)&&t.children().some(function(t){return uIt(e.child,t)})},cIt[YBt]=function(e,t){return uIt(e.descendant,t)&&t.ancestors().some(function(t){return uIt(e.ancestor,t)})},cIt[GBt]=function(e,t){return uIt(e.ancestor,t)&&t.descendants().some(function(t){return uIt(e.descendant,t)})},cIt[HBt]=function(e,t){return uIt(e.subject,t)&&uIt(e.left,t)&&uIt(e.right,t)},cIt[KBt]=function(){return!0},cIt[RBt]=function(e,t){return e.value.has(t)},cIt[BBt]=function(e,t){return(0,e.value)(t)};var hIt=function(e){this.inputText=e,this.currentSubject=null,this.compoundCount=0,this.edgeCount=0,this.length=0,null==e||r_t(e)&&e.match(/^\s*$/)||(u_t(e)?this.addQuery({checks:[{type:RBt,value:e.collection()}]}):i_t(e)?this.addQuery({checks:[{type:BBt,value:e}]}):r_t(e)?this.parse(e)||(this.invalid=!0):pCt("A selector must be created from a string; found "))},dIt=hIt.prototype;[aIt,{matches:function(e){for(var t=0;t<this.length;t++){var n=this[t];if(uIt(n,e))return!0}return!1},filter:function(e){var t=this;if(1===t.length&&1===t[0].checks.length&&t[0].checks[0].type===XBt)return e.getElementById(t[0].checks[0].value).collection();var n=function(e){for(var n=0;n<t.length;n++){var r=t[n];if(uIt(r,e))return!0}return!1};return null==t.text()&&(n=function(){return!0}),e.filter(n)}}].forEach(function(e){return C_t(dIt,e)}),dIt.text=function(){return this.inputText},dIt.size=function(){return this.length},dIt.eq=function(e){return this[e]},dIt.sameText=function(e){return!this.invalid&&!e.invalid&&this.text()===e.text()},dIt.addQuery=function(e){this[this.length++]=e},dIt.selector=dIt.toString;var pIt={allAre:function(e){var t=new hIt(e);return this.every(function(e){return t.matches(e)})},is:function(e){var t=new hIt(e);return this.some(function(e){return t.matches(e)})},some:function(e,t){for(var n=0;n<this.length;n++){if(t?e.apply(t,[this[n],n,this]):e(this[n],n,this))return!0}return!1},every:function(e,t){for(var n=0;n<this.length;n++){if(!(t?e.apply(t,[this[n],n,this]):e(this[n],n,this)))return!1}return!0},same:function(e){if(this===e)return!0;e=this.cy().collection(e);var t=this.length;return t===e.length&&(1===t?this[0]===e[0]:this.every(function(t){return e.hasElementWithId(t.id())}))},anySame:function(e){return e=this.cy().collection(e),this.some(function(t){return e.hasElementWithId(t.id())})},allAreNeighbors:function(e){e=this.cy().collection(e);var t=this.neighborhood();return e.every(function(e){return t.hasElementWithId(e.id())})},contains:function(e){e=this.cy().collection(e);var t=this;return e.every(function(e){return t.hasElementWithId(e.id())})}};pIt.allAreNeighbours=pIt.allAreNeighbors,pIt.has=pIt.contains,pIt.equal=pIt.equals=pIt.same;var fIt,gIt,mIt=function(e,t){return function(n,r,i,o){var a,s=n,l=this;if(null==s?a="":u_t(s)&&1===s.length&&(a=s.id()),1===l.length&&a){var c=l[0]._private,u=c.traversalCache=c.traversalCache||{},h=u[t]=u[t]||[],d=rCt(a),p=h[d];return p||(h[d]=e.call(l,n,r,i,o))}return e.call(l,n,r,i,o)}},OIt={parent:function(e){var t=[];if(1===this.length){var n=this[0]._private.parent;if(n)return n}for(var r=0;r<this.length;r++){var i=this[r]._private.parent;i&&t.push(i)}return this.spawn(t,!0).filter(e)},parents:function(e){for(var t=[],n=this.parent();n.nonempty();){for(var r=0;r<n.length;r++){var i=n[r];t.push(i)}n=n.parent()}return this.spawn(t,!0).filter(e)},commonAncestors:function(e){for(var t,n=0;n<this.length;n++){var r=this[n].parents();t=(t=t||r).intersect(r)}return t.filter(e)},orphans:function(e){return this.stdFilter(function(e){return e.isOrphan()}).filter(e)},nonorphans:function(e){return this.stdFilter(function(e){return e.isChild()}).filter(e)},children:mIt(function(e){for(var t=[],n=0;n<this.length;n++)for(var r=this[n]._private.children,i=0;i<r.length;i++)t.push(r[i]);return this.spawn(t,!0).filter(e)},"children"),siblings:function(e){return this.parent().children().not(this).filter(e)},isParent:function(){var e=this[0];if(e)return e.isNode()&&0!==e._private.children.length},isChildless:function(){var e=this[0];if(e)return e.isNode()&&0===e._private.children.length},isChild:function(){var e=this[0];if(e)return e.isNode()&&null!=e._private.parent},isOrphan:function(){var e=this[0];if(e)return e.isNode()&&null==e._private.parent},descendants:function(e){var t=[];return function e(n){for(var r=0;r<n.length;r++){var i=n[r];t.push(i),i.children().nonempty()&&e(i.children())}}(this.children()),this.spawn(t,!0).filter(e)}};function AIt(e,t,n,r){for(var i=[],o=new $Ct,a=e.cy().hasCompoundNodes(),s=0;s<e.length;s++){var l=e[s];n?i.push(l):a&&r(i,o,l)}for(;i.length>0;){var c=i.shift();t(c),o.add(c.id()),a&&r(i,o,c)}return e}function yIt(e,t,n){if(n.isParent())for(var r=n._private.children,i=0;i<r.length;i++){var o=r[i];t.has(o.id())||e.push(o)}}function vIt(e,t,n){if(n.isChild()){var r=n._private.parent;t.has(r.id())||e.push(r)}}function bIt(e,t,n){vIt(e,t,n),yIt(e,t,n)}OIt.forEachDown=function(e){return AIt(this,e,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],yIt)},OIt.forEachUp=function(e){return AIt(this,e,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],vIt)},OIt.forEachUpAndDown=function(e){return AIt(this,e,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],bIt)},OIt.ancestors=OIt.parents,(fIt=gIt={data:_Bt.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:_Bt.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:_Bt.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:_Bt.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:_Bt.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:_Bt.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}}).attr=fIt.data,fIt.removeAttr=fIt.removeData;var xIt,wIt,kIt=gIt,SIt={};function TIt(e){return function(t){var n=this;if(void 0===t&&(t=!0),0!==n.length&&n.isNode()&&!n.removed()){for(var r=0,i=n[0],o=i._private.edges,a=0;a<o.length;a++){var s=o[a];!t&&s.isLoop()||(r+=e(i,s))}return r}}}function $It(e,t){return function(n){for(var r,i=this.nodes(),o=0;o<i.length;o++){var a=i[o][e](n);void 0===a||void 0!==r&&!t(a,r)||(r=a)}return r}}C_t(SIt,{degree:TIt(function(e,t){return t.source().same(t.target())?2:1}),indegree:TIt(function(e,t){return t.target().same(e)?1:0}),outdegree:TIt(function(e,t){return t.source().same(e)?1:0})}),C_t(SIt,{minDegree:$It("degree",function(e,t){return e<t}),maxDegree:$It("degree",function(e,t){return e>t}),minIndegree:$It("indegree",function(e,t){return e<t}),maxIndegree:$It("indegree",function(e,t){return e>t}),minOutdegree:$It("outdegree",function(e,t){return e<t}),maxOutdegree:$It("outdegree",function(e,t){return e>t})}),C_t(SIt,{totalDegree:function(e){for(var t=0,n=this.nodes(),r=0;r<n.length;r++)t+=n[r].degree(e);return t}});var _It=function(e,t,n){for(var r=0;r<e.length;r++){var i=e[r];if(!i.locked()){var o=i._private.position,a={x:null!=t.x?t.x-o.x:0,y:null!=t.y?t.y-o.y:0};!i.isParent()||0===a.x&&0===a.y||i.children().shift(a,n),i.dirtyBoundingBoxCache()}}},CIt={field:"position",bindingEvent:"position",allowBinding:!0,allowSetting:!0,settingEvent:"position",settingTriggersEvent:!0,triggerFnName:"emitAndNotify",allowGetting:!0,validKeys:["x","y"],beforeGet:function(e){e.updateCompoundBounds()},beforeSet:function(e,t){_It(e,t,!1)},onSet:function(e){e.dirtyCompoundBoundsCache()},canSet:function(e){return!e.locked()}};xIt=wIt={position:_Bt.data(CIt),silentPosition:_Bt.data(C_t({},CIt,{allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!1,beforeSet:function(e,t){_It(e,t,!0)},onSet:function(e){e.dirtyCompoundBoundsCache()}})),positions:function(e,t){if(a_t(e))t?this.silentPosition(e):this.position(e);else if(i_t(e)){var n=e,r=this.cy();r.startBatch();for(var i=0;i<this.length;i++){var o,a=this[i];(o=n(a,i))&&(t?a.silentPosition(o):a.position(o))}r.endBatch()}return this},silentPositions:function(e){return this.positions(e,!0)},shift:function(e,t,n){var r;if(a_t(e)?(r={x:s_t(e.x)?e.x:0,y:s_t(e.y)?e.y:0},n=t):r_t(e)&&s_t(t)&&((r={x:0,y:0})[e]=t),null!=r){var i=this.cy();i.startBatch();for(var o=0;o<this.length;o++){var a=this[o];if(!(i.hasCompoundNodes()&&a.isChild()&&a.ancestors().anySame(this))){var s=a.position(),l={x:s.x+r.x,y:s.y+r.y};n?a.silentPosition(l):a.position(l)}}i.endBatch()}return this},silentShift:function(e,t){return a_t(e)?this.shift(e,!0):r_t(e)&&s_t(t)&&this.shift(e,t,!0),this},renderedPosition:function(e,t){var n=this[0],r=this.cy(),i=r.zoom(),o=r.pan(),a=a_t(e)?e:void 0,s=void 0!==a||void 0!==t&&r_t(e);if(n&&n.isNode()){if(!s){var l=n.position();return a=KCt(l,i,o),void 0===e?a:a[e]}for(var c=0;c<this.length;c++){var u=this[c];void 0!==t?u.position(e,(t-o[e])/i):void 0!==a&&u.position(JCt(a,i,o))}}else if(!s)return;return this},relativePosition:function(e,t){var n=this[0],r=this.cy(),i=a_t(e)?e:void 0,o=void 0!==i||void 0!==t&&r_t(e),a=r.hasCompoundNodes();if(n&&n.isNode()){if(!o){var s=n.position(),l=a?n.parent():null,c=l&&l.length>0,u=c;c&&(l=l[0]);var h=u?l.position():{x:0,y:0};return i={x:s.x-h.x,y:s.y-h.y},void 0===e?i:i[e]}for(var d=0;d<this.length;d++){var p=this[d],f=a?p.parent():null,g=f&&f.length>0,m=g;g&&(f=f[0]);var O=m?f.position():{x:0,y:0};void 0!==t?p.position(e,t+O[e]):void 0!==i&&p.position({x:i.x+O.x,y:i.y+O.y})}}else if(!o)return;return this}},xIt.modelPosition=xIt.point=xIt.position,xIt.modelPositions=xIt.points=xIt.positions,xIt.renderedPoint=xIt.renderedPosition,xIt.relativePoint=xIt.relativePosition;var QIt,PIt,EIt=wIt,RIt=function(e){switch(e){case"left":case"right-inside":return"left";case"right":case"left-inside":return"right";default:return"center"}},BIt=function(e){switch(e){case"top":case"bottom-inside":return"top";case"bottom":case"top-inside":return"bottom";default:return"center"}};QIt=PIt={},PIt.renderedBoundingBox=function(e){var t=this.boundingBox(e),n=this.cy(),r=n.zoom(),i=n.pan(),o=t.x1*r+i.x,a=t.x2*r+i.x,s=t.y1*r+i.y,l=t.y2*r+i.y;return{x1:o,x2:a,y1:s,y2:l,w:a-o,h:l-s}},PIt.dirtyCompoundBoundsCache=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.cy();return t.styleEnabled()&&t.hasCompoundNodes()?(this.forEachUp(function(t){if(t.isParent()){var n=t._private;n.compoundBoundsClean=!1,n.bbCache=null,e||t.emitAndNotify("bounds")}}),this):this},PIt.updateCompoundBounds=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.cy();if(!t.styleEnabled()||!t.hasCompoundNodes())return this;if(!e&&t.batching())return this;function n(e){if(e.isParent()){var t=e._private,n=e.children(),r="include"===e.pstyle("compound-sizing-wrt-labels").value,i={width:{val:e.pstyle("min-width").pfValue,left:e.pstyle("min-width-bias-left"),right:e.pstyle("min-width-bias-right")},height:{val:e.pstyle("min-height").pfValue,top:e.pstyle("min-height-bias-top"),bottom:e.pstyle("min-height-bias-bottom")}},o=n.boundingBox({includeLabels:r,includeOverlays:!1,useCache:!1}),a=t.position;0!==o.w&&0!==o.h||((o={w:e.pstyle("width").pfValue,h:e.pstyle("height").pfValue}).x1=a.x-o.w/2,o.x2=a.x+o.w/2,o.y1=a.y-o.h/2,o.y2=a.y+o.h/2);var s=i.width.left.value;"px"===i.width.left.units&&i.width.val>0&&(s=100*s/i.width.val);var l=i.width.right.value;"px"===i.width.right.units&&i.width.val>0&&(l=100*l/i.width.val);var c=i.height.top.value;"px"===i.height.top.units&&i.height.val>0&&(c=100*c/i.height.val);var u=i.height.bottom.value;"px"===i.height.bottom.units&&i.height.val>0&&(u=100*u/i.height.val);var h=O(i.width.val-o.w,s,l),d=h.biasDiff,p=h.biasComplementDiff,f=O(i.height.val-o.h,c,u),g=f.biasDiff,m=f.biasComplementDiff;t.autoPadding=function(e,t,n,r){if("%"!==n.units)return"px"===n.units?n.pfValue:0;switch(r){case"width":return e>0?n.pfValue*e:0;case"height":return t>0?n.pfValue*t:0;case"average":return e>0&&t>0?n.pfValue*(e+t)/2:0;case"min":return e>0&&t>0?e>t?n.pfValue*t:n.pfValue*e:0;case"max":return e>0&&t>0?e>t?n.pfValue*e:n.pfValue*t:0;default:return 0}}(o.w,o.h,e.pstyle("padding"),e.pstyle("padding-relative-to").value),t.autoWidth=Math.max(o.w,i.width.val),a.x=(-d+o.x1+o.x2+p)/2,t.autoHeight=Math.max(o.h,i.height.val),a.y=(-g+o.y1+o.y2+m)/2}function O(e,t,n){var r=0,i=0,o=t+n;return e>0&&o>0&&(r=t/o*e,i=n/o*e),{biasDiff:r,biasComplementDiff:i}}}for(var r=0;r<this.length;r++){var i=this[r],o=i._private;o.compoundBoundsClean&&!e||(n(i),t.batching()||(o.compoundBoundsClean=!0))}return this};var IIt=function(e){return e===1/0||e===-1/0?0:e},LIt=function(e,t,n,r,i){r-t!==0&&i-n!==0&&null!=t&&null!=n&&null!=r&&null!=i&&(e.x1=t<e.x1?t:e.x1,e.x2=r>e.x2?r:e.x2,e.y1=n<e.y1?n:e.y1,e.y2=i>e.y2?i:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},DIt=function(e,t){return null==t?e:LIt(e,t.x1,t.y1,t.x2,t.y2)},MIt=function(e,t,n){return wCt(e,t,n)},NIt=function(e,t,n){if(!t.cy().headless()){var r,i,o=t._private,a=o.rstyle,s=a.arrowWidth/2;if("none"!==t.pstyle(n+"-arrow-shape").value){"source"===n?(r=a.srcX,i=a.srcY):"target"===n?(r=a.tgtX,i=a.tgtY):(r=a.midX,i=a.midY);var l=o.arrowBounds=o.arrowBounds||{},c=l[n]=l[n]||{};c.x1=r-s,c.y1=i-s,c.x2=r+s,c.y2=i+s,c.w=c.x2-c.x1,c.h=c.y2-c.y1,fQt(c,1),LIt(e,c.x1,c.y1,c.x2,c.y2)}}},XIt=function(e,t,n){if(!t.cy().headless()){var r;r=n?n+"-":"";var i=t._private,o=i.rstyle;if(t.pstyle(r+"label").strValue){var a,s,l,c,u=t.pstyle("text-halign"),h=t.pstyle("text-valign"),d=MIt(o,"labelWidth",n),p=MIt(o,"labelHeight",n),f=MIt(o,"labelX",n),g=MIt(o,"labelY",n),m=t.pstyle(r+"text-margin-x").pfValue,O=t.pstyle(r+"text-margin-y").pfValue,A=t.isEdge(),y=t.pstyle(r+"text-rotation"),v=t.pstyle("text-outline-width").pfValue,b=t.pstyle("text-border-width").pfValue/2,x=t.pstyle("text-background-padding").pfValue,w=p,k=d,S=k/2,T=w/2;if(A)a=f-S,s=f+S,l=g-T,c=g+T;else{switch(RIt(u.value)){case"left":a=f-k,s=f;break;case"center":a=f-S,s=f+S;break;case"right":a=f,s=f+k}switch(BIt(h.value)){case"top":l=g-w,c=g;break;case"center":l=g-T,c=g+T;break;case"bottom":l=g,c=g+w}}var $=m-Math.max(v,b)-x-2,_=m+Math.max(v,b)+x+2,C=O-Math.max(v,b)-x-2,Q=O+Math.max(v,b)+x+2;a+=$,s+=_,l+=C,c+=Q;var P=n||"main",E=i.labelBounds,R=E[P]=E[P]||{};R.x1=a,R.y1=l,R.x2=s,R.y2=c,R.w=s-a,R.h=c-l,R.leftPad=$,R.rightPad=_,R.topPad=C,R.botPad=Q;var B=A&&"autorotate"===y.strValue,I=null!=y.pfValue&&0!==y.pfValue;if(B||I){var L=B?MIt(i.rstyle,"labelAngle",n):y.pfValue,D=Math.cos(L),M=Math.sin(L),N=(a+s)/2,X=(l+c)/2;if(!A){switch(RIt(u.value)){case"left":N=s;break;case"right":N=a}switch(BIt(h.value)){case"top":X=c;break;case"bottom":X=l}}var F=function(e,t){return{x:(e-=N)*D-(t-=X)*M+N,y:e*M+t*D+X}},U=F(a,l),z=F(a,c),q=F(s,l),V=F(s,c);a=Math.min(U.x,z.x,q.x,V.x),s=Math.max(U.x,z.x,q.x,V.x),l=Math.min(U.y,z.y,q.y,V.y),c=Math.max(U.y,z.y,q.y,V.y)}var W=P+"Rot",j=E[W]=E[W]||{};j.x1=a,j.y1=l,j.x2=s,j.y2=c,j.w=s-a,j.h=c-l,LIt(e,a,l,s,c),LIt(i.labelBounds.all,a,l,s,c)}return e}},FIt=function(e,t){if(!t.cy().headless()){var n=t.pstyle("outline-opacity").value,r=t.pstyle("outline-width").value+t.pstyle("outline-offset").value;UIt(e,t,n,r,"outside",r/2)}},UIt=function(e,t,n,r,i,o){if(!(0===n||r<=0||"inside"===i)){var a=t.cy().renderer(),s=a.nodeShapes[a.getNodeShape(t)];if(s){var l=t.position(),c=l.x,u=l.y,h=t.width(),d=t.height();if(s.hasMiterBounds){"center"===i&&(r/=2);var p=s.miterBounds(c,u,h,d,r);DIt(e,p)}else null!=o&&o>0&&gQt(e,[o,o,o,o])}}},zIt=function(e,t){var n,r,i,o,a,s,l,c=e._private.cy,u=c.styleEnabled(),h=c.headless(),d=hQt(),p=e._private,f=e.isNode(),g=e.isEdge(),m=p.rstyle,O=f&&u?e.pstyle("bounds-expansion").pfValue:[0],A=function(e){return"none"!==e.pstyle("display").value},y=!u||A(e)&&(!g||A(e.source())&&A(e.target()));if(y){var v=0;u&&t.includeOverlays&&0!==e.pstyle("overlay-opacity").value&&(v=e.pstyle("overlay-padding").value);var b=0;u&&t.includeUnderlays&&0!==e.pstyle("underlay-opacity").value&&(b=e.pstyle("underlay-padding").value);var x=Math.max(v,b),w=0;if(u&&(w=e.pstyle("width").pfValue/2),f&&t.includeNodes){var k=e.position();a=k.x,s=k.y;var S=e.outerWidth()/2,T=e.outerHeight()/2;LIt(d,n=a-S,i=s-T,r=a+S,o=s+T),u&&FIt(d,e),u&&t.includeOutlines&&!h&&FIt(d,e),u&&function(e,t){if(!t.cy().headless()){var n=t.pstyle("border-opacity").value,r=t.pstyle("border-width").pfValue,i=t.pstyle("border-position").value;UIt(e,t,n,r,i)}}(d,e)}else if(g&&t.includeEdges)if(u&&!h){var $=e.pstyle("curve-style").strValue;if(n=Math.min(m.srcX,m.midX,m.tgtX),r=Math.max(m.srcX,m.midX,m.tgtX),i=Math.min(m.srcY,m.midY,m.tgtY),o=Math.max(m.srcY,m.midY,m.tgtY),LIt(d,n-=w,i-=w,r+=w,o+=w),"haystack"===$){var _=m.haystackPts;if(_&&2===_.length){if(n=_[0].x,i=_[0].y,n>(r=_[1].x)){var C=n;n=r,r=C}if(i>(o=_[1].y)){var Q=i;i=o,o=Q}LIt(d,n-w,i-w,r+w,o+w)}}else if("bezier"===$||"unbundled-bezier"===$||x_t($,"segments")||x_t($,"taxi")){var P;switch($){case"bezier":case"unbundled-bezier":P=m.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":P=m.linePts}if(null!=P)for(var E=0;E<P.length;E++){var R=P[E];n=R.x-w,r=R.x+w,i=R.y-w,o=R.y+w,LIt(d,n,i,r,o)}}}else{var B=e.source().position(),I=e.target().position();if((n=B.x)>(r=I.x)){var L=n;n=r,r=L}if((i=B.y)>(o=I.y)){var D=i;i=o,o=D}LIt(d,n-=w,i-=w,r+=w,o+=w)}if(u&&t.includeEdges&&g&&(NIt(d,e,"mid-source"),NIt(d,e,"mid-target"),NIt(d,e,"source"),NIt(d,e,"target")),u)if("yes"===e.pstyle("ghost").value){var M=e.pstyle("ghost-offset-x").pfValue,N=e.pstyle("ghost-offset-y").pfValue;LIt(d,d.x1+M,d.y1+N,d.x2+M,d.y2+N)}var X=p.bodyBounds=p.bodyBounds||{};mQt(X,d),gQt(X,O),fQt(X,1),u&&(n=d.x1,r=d.x2,i=d.y1,o=d.y2,LIt(d,n-x,i-x,r+x,o+x));var F=p.overlayBounds=p.overlayBounds||{};mQt(F,d),gQt(F,O),fQt(F,1);var U=p.labelBounds=p.labelBounds||{};null!=U.all?((l=U.all).x1=1/0,l.y1=1/0,l.x2=-1/0,l.y2=-1/0,l.w=0,l.h=0):U.all=hQt(),u&&t.includeLabels&&(t.includeMainLabels&&XIt(d,e,null),g&&(t.includeSourceLabels&&XIt(d,e,"source"),t.includeTargetLabels&&XIt(d,e,"target")))}return d.x1=IIt(d.x1),d.y1=IIt(d.y1),d.x2=IIt(d.x2),d.y2=IIt(d.y2),d.w=IIt(d.x2-d.x1),d.h=IIt(d.y2-d.y1),d.w>0&&d.h>0&&y&&(gQt(d,O),fQt(d,1)),d},qIt=function(e){var t=0,n=function(e){return(e?1:0)<<t++},r=0;return r+=n(e.incudeNodes),r+=n(e.includeEdges),r+=n(e.includeLabels),r+=n(e.includeMainLabels),r+=n(e.includeSourceLabels),r+=n(e.includeTargetLabels),r+=n(e.includeOverlays),r+=n(e.includeOutlines)},VIt=function(e){var t=function(e){return Math.round(e)};if(e.isEdge()){var n=e.source().position(),r=e.target().position();return nCt([t(n.x),t(n.y),t(r.x),t(r.y)])}var i=e.position();return nCt([t(i.x),t(i.y)])},WIt=function(e,t){var n,r=e._private,i=e.isEdge(),o=(null==t?YIt:qIt(t))===YIt;if(null==r.bbCache?(n=zIt(e,jIt),r.bbCache=n,r.bbCachePosKey=VIt(e)):n=r.bbCache,!o){var a=e.isNode();n=hQt(),(t.includeNodes&&a||t.includeEdges&&!a)&&(t.includeOverlays?DIt(n,r.overlayBounds):DIt(n,r.bodyBounds)),t.includeLabels&&(t.includeMainLabels&&(!i||t.includeSourceLabels&&t.includeTargetLabels)?DIt(n,r.labelBounds.all):(t.includeMainLabels&&DIt(n,r.labelBounds.mainRot),t.includeSourceLabels&&DIt(n,r.labelBounds.sourceRot),t.includeTargetLabels&&DIt(n,r.labelBounds.targetRot))),n.w=n.x2-n.x1,n.h=n.y2-n.y1}return n},jIt={includeNodes:!0,includeEdges:!0,includeLabels:!0,includeMainLabels:!0,includeSourceLabels:!0,includeTargetLabels:!0,includeOverlays:!0,includeUnderlays:!0,includeOutlines:!0,useCache:!0},YIt=qIt(jIt),ZIt=vCt(jIt);PIt.boundingBox=function(e){var t,n=void 0===e||void 0===e.useCache||!0===e.useCache,r=O_t(function(e){var t=e._private;return null==t.bbCache||t.styleDirty||t.bbCachePosKey!==VIt(e)},function(e){return e.id()});if(n&&1===this.length&&!r(this[0]))e=void 0===e?jIt:ZIt(e),t=WIt(this[0],e);else{t=hQt();var i=ZIt(e=e||jIt),o=this,a=o.cy().styleEnabled();this.edges().forEach(r),this.nodes().forEach(r),a&&this.recalculateRenderedStyle(n),this.updateCompoundBounds(!n);for(var s=0;s<o.length;s++){var l=o[s];r(l)&&l.dirtyBoundingBoxCache(),DIt(t,WIt(l,i))}}return t.x1=IIt(t.x1),t.y1=IIt(t.y1),t.x2=IIt(t.x2),t.y2=IIt(t.y2),t.w=IIt(t.x2-t.x1),t.h=IIt(t.y2-t.y1),t},PIt.dirtyBoundingBoxCache=function(){for(var e=0;e<this.length;e++){var t=this[e]._private;t.bbCache=null,t.bbCachePosKey=null,t.bodyBounds=null,t.overlayBounds=null,t.labelBounds.all=null,t.labelBounds.source=null,t.labelBounds.target=null,t.labelBounds.main=null,t.labelBounds.sourceRot=null,t.labelBounds.targetRot=null,t.labelBounds.mainRot=null,t.arrowBounds.source=null,t.arrowBounds.target=null,t.arrowBounds["mid-source"]=null,t.arrowBounds["mid-target"]=null}return this.emitAndNotify("bounds"),this},PIt.boundingBoxAt=function(e){var t=this.nodes(),n=this.cy(),r=n.hasCompoundNodes(),i=n.collection();if(r&&(i=t.filter(function(e){return e.isParent()}),t=t.not(i)),a_t(e)){var o=e;e=function(){return o}}n.startBatch(),t.forEach(function(t,n){return t._private.bbAtOldPos=e(t,n)}).silentPositions(e),r&&(i.dirtyCompoundBoundsCache(),i.dirtyBoundingBoxCache(),i.updateCompoundBounds(!0));var a=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}}(this.boundingBox({useCache:!1}));return t.silentPositions(function(e){return e._private.bbAtOldPos}),r&&(i.dirtyCompoundBoundsCache(),i.dirtyBoundingBoxCache(),i.updateCompoundBounds(!0)),n.endBatch(),a},QIt.boundingbox=QIt.bb=QIt.boundingBox,QIt.renderedBoundingbox=QIt.renderedBoundingBox;var GIt,HIt,KIt=PIt;GIt=HIt={};var JIt=function(e){e.uppercaseName=b_t(e.name),e.autoName="auto"+e.uppercaseName,e.labelName="label"+e.uppercaseName,e.outerName="outer"+e.uppercaseName,e.uppercaseOuterName=b_t(e.outerName),GIt[e.name]=function(){var t=this[0],n=t._private,r=n.cy._private.styleEnabled;if(t){if(r){if(t.isParent())return t.updateCompoundBounds(),n[e.autoName]||0;var i=t.pstyle(e.name);return"label"===i.strValue?(t.recalculateRenderedStyle(),n.rstyle[e.labelName]||0):i.pfValue}return 1}},GIt["outer"+e.uppercaseName]=function(){var t=this[0],n=t._private.cy._private.styleEnabled;if(t){if(n){var r=t[e.name](),i=t.pstyle("border-position").value;return r+("center"===i?t.pstyle("border-width").pfValue:"outside"===i?2*t.pstyle("border-width").pfValue:0)+2*t.padding()}return 1}},GIt["rendered"+e.uppercaseName]=function(){var t=this[0];if(t)return t[e.name]()*this.cy().zoom()},GIt["rendered"+e.uppercaseOuterName]=function(){var t=this[0];if(t)return t[e.outerName]()*this.cy().zoom()}};JIt({name:"width"}),JIt({name:"height"}),HIt.padding=function(){var e=this[0],t=e._private;return e.isParent()?(e.updateCompoundBounds(),void 0!==t.autoPadding?t.autoPadding:e.pstyle("padding").pfValue):e.pstyle("padding").pfValue},HIt.paddedHeight=function(){var e=this[0];return e.height()+2*e.padding()},HIt.paddedWidth=function(){var e=this[0];return e.width()+2*e.padding()};var eLt=HIt,tLt={controlPoints:{get:function(e){return e.renderer().getControlPoints(e)},mult:!0},segmentPoints:{get:function(e){return e.renderer().getSegmentPoints(e)},mult:!0},sourceEndpoint:{get:function(e){return e.renderer().getSourceEndpoint(e)}},targetEndpoint:{get:function(e){return e.renderer().getTargetEndpoint(e)}},midpoint:{get:function(e){return e.renderer().getEdgeMidpoint(e)}}},nLt=Object.keys(tLt).reduce(function(e,t){var n=tLt[t],r=function(e){return"rendered"+e[0].toUpperCase()+e.substr(1)}(t);return e[t]=function(){return function(e,t){if(e.isEdge()&&e.takesUpSpace())return t(e)}(this,n.get)},n.mult?e[r]=function(){return function(e,t){if(e.isEdge()&&e.takesUpSpace()){var n=e.cy(),r=n.pan(),i=n.zoom();return t(e).map(function(e){return KCt(e,i,r)})}}(this,n.get)}:e[r]=function(){return function(e,t){if(e.isEdge()&&e.takesUpSpace()){var n=e.cy();return KCt(t(e),n.zoom(),n.pan())}}(this,n.get)},e},{}),rLt=C_t({},EIt,KIt,eLt,nLt),iLt=function(e,t){this.recycle(e,t)};function oLt(){return!1}function aLt(){return!0}iLt.prototype={instanceString:function(){return"event"},recycle:function(e,t){if(this.isImmediatePropagationStopped=this.isPropagationStopped=this.isDefaultPrevented=oLt,null!=e&&e.preventDefault?(this.type=e.type,this.isDefaultPrevented=e.defaultPrevented?aLt:oLt):null!=e&&e.type?t=e:this.type=e,null!=t&&(this.originalEvent=t.originalEvent,this.type=null!=t.type?t.type:this.type,this.cy=t.cy,this.target=t.target,this.position=t.position,this.renderedPosition=t.renderedPosition,this.namespace=t.namespace,this.layout=t.layout),null!=this.cy&&null!=this.position&&null==this.renderedPosition){var n=this.position,r=this.cy.zoom(),i=this.cy.pan();this.renderedPosition={x:n.x*r+i.x,y:n.y*r+i.y}}this.timeStamp=e&&e.timeStamp||Date.now()},preventDefault:function(){this.isDefaultPrevented=aLt;var e=this.originalEvent;e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){this.isPropagationStopped=aLt;var e=this.originalEvent;e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=aLt,this.stopPropagation()},isDefaultPrevented:oLt,isPropagationStopped:oLt,isImmediatePropagationStopped:oLt};var sLt=/^([^.]+)(\.(?:[^.]+))?$/,lLt={qualifierCompare:function(e,t){return e===t},eventMatches:function(){return!0},addEventFields:function(){},callbackContext:function(e){return e},beforeEmit:function(){},afterEmit:function(){},bubble:function(){return!1},parent:function(){return null},context:null},cLt=Object.keys(lLt),uLt={};function hLt(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:uLt,t=arguments.length>1?arguments[1]:void 0,n=0;n<cLt.length;n++){var r=cLt[n];this[r]=e[r]||lLt[r]}this.context=t||this.context,this.listeners=[],this.emitting=0}var dLt=hLt.prototype,pLt=function(e,t,n,r,i,o,a){i_t(r)&&(i=r,r=null),a&&(o=null==o?a:C_t({},o,a));for(var s=o_t(n)?n:n.split(/\s+/),l=0;l<s.length;l++){var c=s[l];if(!g_t(c)){var u=c.match(sLt);if(u)if(!1===t(e,c,u[1],u[2]?u[2]:null,r,i,o))break}}},fLt=function(e,t){return e.addEventFields(e.context,t),new iLt(t.type,t)},gLt=function(e,t,n){if("event"!==n_t(n))if(a_t(n))t(e,fLt(e,n));else for(var r=o_t(n)?n:n.split(/\s+/),i=0;i<r.length;i++){var o=r[i];if(!g_t(o)){var a=o.match(sLt);if(a){var s=a[1],l=a[2]?a[2]:null;t(e,fLt(e,{type:s,namespace:l,target:e.context}))}}}else t(e,n)};dLt.on=dLt.addListener=function(e,t,n,r,i){return pLt(this,function(e,t,n,r,i,o,a){i_t(o)&&e.listeners.push({event:t,callback:o,type:n,namespace:r,qualifier:i,conf:a})},e,t,n,r,i),this},dLt.one=function(e,t,n,r){return this.on(e,t,n,r,{one:!0})},dLt.removeListener=dLt.off=function(e,t,n,r){var i=this;0!==this.emitting&&(this.listeners=this.listeners.slice());for(var o=this.listeners,a=function(a){var s=o[a];pLt(i,function(t,n,r,i,l,c){if((s.type===r||"*"===e)&&(!i&&".*"!==s.namespace||s.namespace===i)&&(!l||t.qualifierCompare(s.qualifier,l))&&(!c||s.callback===c))return o.splice(a,1),!1},e,t,n,r)},s=o.length-1;s>=0;s--)a(s);return this},dLt.removeAllListeners=function(){return this.removeListener("*")},dLt.emit=dLt.trigger=function(e,t,n){var r=this.listeners,i=r.length;return this.emitting++,o_t(t)||(t=[t]),gLt(this,function(e,o){null!=n&&(r=[{event:o.event,type:o.type,namespace:o.namespace,callback:n}],i=r.length);for(var a=function(){var n=r[s];if(n.type===o.type&&(!n.namespace||n.namespace===o.namespace||".*"===n.namespace)&&e.eventMatches(e.context,n,o)){var i=[o];null!=t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];e.push(r)}}(i,t),e.beforeEmit(e.context,n,o),n.conf&&n.conf.one&&(e.listeners=e.listeners.filter(function(e){return e!==n}));var a=e.callbackContext(e.context,n,o),l=n.callback.apply(a,i);e.afterEmit(e.context,n,o),!1===l&&(o.stopPropagation(),o.preventDefault())}},s=0;s<i;s++)a();e.bubble(e.context)&&!o.isPropagationStopped()&&e.parent(e.context).emit(o,t)},e),this.emitting--,this};var mLt={qualifierCompare:function(e,t){return null==e||null==t?null==e&&null==t:e.sameText(t)},eventMatches:function(e,t,n){var r=t.qualifier;return null==r||e!==n.target&&h_t(n.target)&&r.matches(n.target)},addEventFields:function(e,t){t.cy=e.cy(),t.target=e},callbackContext:function(e,t,n){return null!=t.qualifier?n.target:e},beforeEmit:function(e,t){t.conf&&t.conf.once&&t.conf.onceCollection.removeListener(t.event,t.qualifier,t.callback)},bubble:function(){return!0},parent:function(e){return e.isChild()?e.parent():e.cy()}},OLt=function(e){return r_t(e)?new hIt(e):e},ALt={createEmitter:function(){for(var e=0;e<this.length;e++){var t=this[e],n=t._private;n.emitter||(n.emitter=new hLt(mLt,t))}return this},emitter:function(){return this._private.emitter},on:function(e,t,n){for(var r=OLt(t),i=0;i<this.length;i++){this[i].emitter().on(e,r,n)}return this},removeListener:function(e,t,n){for(var r=OLt(t),i=0;i<this.length;i++){this[i].emitter().removeListener(e,r,n)}return this},removeAllListeners:function(){for(var e=0;e<this.length;e++){this[e].emitter().removeAllListeners()}return this},one:function(e,t,n){for(var r=OLt(t),i=0;i<this.length;i++){this[i].emitter().one(e,r,n)}return this},once:function(e,t,n){for(var r=OLt(t),i=0;i<this.length;i++){this[i].emitter().on(e,r,n,{once:!0,onceCollection:this})}},emit:function(e,t){for(var n=0;n<this.length;n++){this[n].emitter().emit(e,t)}return this},emitAndNotify:function(e,t){if(0!==this.length)return this.cy().notify(e,this),this.emit(e,t),this}};_Bt.eventAliasesOn(ALt);var yLt={nodes:function(e){return this.filter(function(e){return e.isNode()}).filter(e)},edges:function(e){return this.filter(function(e){return e.isEdge()}).filter(e)},byGroup:function(){for(var e=this.spawn(),t=this.spawn(),n=0;n<this.length;n++){var r=this[n];r.isNode()?e.push(r):t.push(r)}return{nodes:e,edges:t}},filter:function(e,t){if(void 0===e)return this;if(r_t(e)||u_t(e))return new hIt(e).filter(this);if(i_t(e)){for(var n=this.spawn(),r=this,i=0;i<r.length;i++){var o=r[i];(t?e.apply(t,[o,i,r]):e(o,i,r))&&n.push(o)}return n}return this.spawn()},not:function(e){if(e){r_t(e)&&(e=this.filter(e));for(var t=this.spawn(),n=0;n<this.length;n++){var r=this[n];e.has(r)||t.push(r)}return t}return this},absoluteComplement:function(){return this.cy().mutableElements().not(this)},intersect:function(e){if(r_t(e)){var t=e;return this.filter(t)}for(var n=this.spawn(),r=e,i=this.length<e.length,o=i?this:r,a=i?r:this,s=0;s<o.length;s++){var l=o[s];a.has(l)&&n.push(l)}return n},xor:function(e){var t=this._private.cy;r_t(e)&&(e=t.$(e));var n=this.spawn(),r=e,i=function(e,t){for(var r=0;r<e.length;r++){var i=e[r],o=i._private.data.id;t.hasElementWithId(o)||n.push(i)}};return i(this,r),i(r,this),n},diff:function(e){var t=this._private.cy;r_t(e)&&(e=t.$(e));var n=this.spawn(),r=this.spawn(),i=this.spawn(),o=e,a=function(e,t,n){for(var r=0;r<e.length;r++){var o=e[r],a=o._private.data.id;t.hasElementWithId(a)?i.merge(o):n.push(o)}};return a(this,o,n),a(o,this,r),{left:n,right:r,both:i}},add:function(e){var t=this._private.cy;if(!e)return this;if(r_t(e)){var n=e;e=t.mutableElements().filter(n)}for(var r=this.spawnSelf(),i=0;i<e.length;i++){var o=e[i];!this.has(o)&&r.push(o)}return r},merge:function(e){var t=this._private,n=t.cy;if(!e)return this;if(e&&r_t(e)){var r=e;e=n.mutableElements().filter(r)}for(var i=t.map,o=0;o<e.length;o++){var a=e[o],s=a._private.data.id;if(!i.has(s)){var l=this.length++;this[l]=a,i.set(s,{ele:a,index:l})}}return this},unmergeAt:function(e){var t=this[e].id(),n=this._private.map;this[e]=void 0,n.delete(t);var r=e===this.length-1;if(this.length>1&&!r){var i=this.length-1,o=this[i],a=o._private.data.id;this[i]=void 0,this[e]=o,n.set(a,{ele:o,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var t=this._private,n=e._private.data.id,r=t.map.get(n);if(!r)return this;var i=r.index;return this.unmergeAt(i),this},unmerge:function(e){var t=this._private.cy;if(!e)return this;if(e&&r_t(e)){var n=e;e=t.mutableElements().filter(n)}for(var r=0;r<e.length;r++)this.unmergeOne(e[r]);return this},unmergeBy:function(e){for(var t=this.length-1;t>=0;t--){e(this[t])&&this.unmergeAt(t)}return this},map:function(e,t){for(var n=[],r=this,i=0;i<r.length;i++){var o=r[i],a=t?e.apply(t,[o,i,r]):e(o,i,r);n.push(a)}return n},reduce:function(e,t){for(var n=t,r=this,i=0;i<r.length;i++)n=e(n,r[i],i,r);return n},max:function(e,t){for(var n,r=-1/0,i=this,o=0;o<i.length;o++){var a=i[o],s=t?e.apply(t,[a,o,i]):e(a,o,i);s>r&&(r=s,n=a)}return{value:r,ele:n}},min:function(e,t){for(var n,r=1/0,i=this,o=0;o<i.length;o++){var a=i[o],s=t?e.apply(t,[a,o,i]):e(a,o,i);s<r&&(r=s,n=a)}return{value:r,ele:n}}},vLt=yLt;vLt.u=vLt["|"]=vLt["+"]=vLt.union=vLt.or=vLt.add,vLt["\\"]=vLt["!"]=vLt["-"]=vLt.difference=vLt.relativeComplement=vLt.subtract=vLt.not,vLt.n=vLt["&"]=vLt["."]=vLt.and=vLt.intersection=vLt.intersect,vLt["^"]=vLt["(+)"]=vLt["(-)"]=vLt.symmetricDifference=vLt.symdiff=vLt.xor,vLt.fnFilter=vLt.filterFn=vLt.stdFilter=vLt.filter,vLt.complement=vLt.abscomp=vLt.absoluteComplement;var bLt=function(e,t){var n=e.cy().hasCompoundNodes();function r(e){var t=e.pstyle("z-compound-depth");return"auto"===t.value?n?e.zDepth():0:"bottom"===t.value?-1:"top"===t.value?lCt:0}var i=r(e)-r(t);if(0!==i)return i;function o(e){return"auto"===e.pstyle("z-index-compare").value&&e.isNode()?1:0}var a=o(e)-o(t);if(0!==a)return a;var s=e.pstyle("z-index").value-t.pstyle("z-index").value;return 0!==s?s:e.poolIndex()-t.poolIndex()},xLt={forEach:function(e,t){if(i_t(e))for(var n=this.length,r=0;r<n;r++){var i=this[r];if(!1===(t?e.apply(t,[i,r,this]):e(i,r,this)))break}return this},toArray:function(){for(var e=[],t=0;t<this.length;t++)e.push(this[t]);return e},slice:function(e,t){var n=[],r=this.length;null==t&&(t=r),null==e&&(e=0),e<0&&(e=r+e),t<0&&(t=r+t);for(var i=e;i>=0&&i<t&&i<r;i++)n.push(this[i]);return this.spawn(n)},size:function(){return this.length},eq:function(e){return this[e]||this.spawn()},first:function(){return this[0]||this.spawn()},last:function(){return this[this.length-1]||this.spawn()},empty:function(){return 0===this.length},nonempty:function(){return!this.empty()},sort:function(e){if(!i_t(e))return this;var t=this.toArray().sort(e);return this.spawn(t)},sortByZIndex:function(){return this.sort(bLt)},zDepth:function(){var e=this[0];if(e){var t=e._private;if("nodes"===t.group){var n=t.data.parent?e.parents().size():0;return e.isParent()?n:lCt-1}var r=t.source,i=t.target,o=r.zDepth(),a=i.zDepth();return Math.max(o,a,0)}}};xLt.each=xLt.forEach;var wLt;wLt="undefined",("undefined"==typeof Symbol?"undefined":v$t(Symbol))!=wLt&&v$t(Symbol.iterator)!=wLt&&(xLt[Symbol.iterator]=function(){var e=this,t={value:void 0,done:!1},n=0,r=this.length;return m$t({next:function(){return n<r?t.value=e[n++]:(t.value=void 0,t.done=!0),t}},Symbol.iterator,function(){return this})});var kLt=vCt({nodeDimensionsIncludeLabels:!1}),SLt={layoutDimensions:function(e){var t;if(e=kLt(e),this.takesUpSpace())if(e.nodeDimensionsIncludeLabels){var n=this.boundingBox();t={w:n.w,h:n.h}}else t={w:this.outerWidth(),h:this.outerHeight()};else t={w:0,h:0};return 0!==t.w&&0!==t.h||(t.w=t.h=1),t},layoutPositions:function(e,t,n){var r=this.nodes().filter(function(e){return!e.isParent()}),i=this.cy(),o=t.eles,a=function(e){return e.id()},s=O_t(n,a);e.emit({type:"layoutstart",layout:e}),e.animations=[];var l=t.spacingFactor&&1!==t.spacingFactor,c=function(){if(!l)return null;for(var e=hQt(),t=0;t<r.length;t++){var n=r[t],i=s(n,t);pQt(e,i.x,i.y)}return e}(),u=O_t(function(e,n){var r=s(e,n);l&&(r=function(e,t,n){var r=t.x1+t.w/2,i=t.y1+t.h/2;return{x:r+(n.x-r)*e,y:i+(n.y-i)*e}}(Math.abs(t.spacingFactor),c,r));return null!=t.transform&&(r=t.transform(e,r)),r},a);if(t.animate){for(var h=0;h<r.length;h++){var d=r[h],p=u(d,h);if(null==t.animateFilter||t.animateFilter(d,h)){var f=d.animation({position:p,duration:t.animationDuration,easing:t.animationEasing});e.animations.push(f)}else d.position(p)}if(t.fit){var g=i.animation({fit:{boundingBox:o.boundingBoxAt(u),padding:t.padding},duration:t.animationDuration,easing:t.animationEasing});e.animations.push(g)}else if(void 0!==t.zoom&&void 0!==t.pan){var m=i.animation({zoom:t.zoom,pan:t.pan,duration:t.animationDuration,easing:t.animationEasing});e.animations.push(m)}e.animations.forEach(function(e){return e.play()}),e.one("layoutready",t.ready),e.emit({type:"layoutready",layout:e}),oEt.all(e.animations.map(function(e){return e.promise()})).then(function(){e.one("layoutstop",t.stop),e.emit({type:"layoutstop",layout:e})})}else r.positions(u),t.fit&&i.fit(t.eles,t.padding),null!=t.zoom&&i.zoom(t.zoom),t.pan&&i.pan(t.pan),e.one("layoutready",t.ready),e.emit({type:"layoutready",layout:e}),e.one("layoutstop",t.stop),e.emit({type:"layoutstop",layout:e});return this},layout:function(e){return this.cy().makeLayout(C_t({},e,{eles:this}))}};function TLt(e,t,n){var r,i=n._private,o=i.styleCache=i.styleCache||[];return null!=(r=o[e])?r:r=o[e]=t(n)}function $Lt(e,t){return e=rCt(e),function(n){return TLt(e,t,n)}}function _Lt(e,t){e=rCt(e);var n=function(e){return t.call(e)};return function(){var t=this[0];if(t)return TLt(e,n,t)}}SLt.createLayout=SLt.makeLayout=SLt.layout;var CLt={recalculateRenderedStyle:function(e){var t=this.cy(),n=t.renderer(),r=t.styleEnabled();return n&&r&&n.recalculateRenderedStyle(this,e),this},dirtyStyleCache:function(){var e,t=this.cy(),n=function(e){return e._private.styleCache=null};t.hasCompoundNodes()?((e=this.spawnSelf().merge(this.descendants()).merge(this.parents())).merge(e.connectedEdges()),e.forEach(n)):this.forEach(function(e){n(e),e.connectedEdges().forEach(n)});return this},updateStyle:function(e){var t=this._private.cy;if(!t.styleEnabled())return this;if(t.batching())return t._private.batchStyleEles.merge(this),this;var n=this;e=!(!e&&void 0!==e),t.hasCompoundNodes()&&(n=this.spawnSelf().merge(this.descendants()).merge(this.parents()));var r=n;return e?r.emitAndNotify("style"):r.emit("style"),n.forEach(function(e){return e._private.styleDirty=!0}),this},cleanStyle:function(){var e=this.cy();if(e.styleEnabled())for(var t=0;t<this.length;t++){var n=this[t];n._private.styleDirty&&(n._private.styleDirty=!1,e.style().apply(n))}},parsedStyle:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this[0],r=n.cy();if(r.styleEnabled()&&n){n._private.styleDirty&&(n._private.styleDirty=!1,r.style().apply(n));var i=n._private.style[e];return null!=i?i:t?r.style().getDefaultProperty(e):null}},numericStyle:function(e){var t=this[0];if(t.cy().styleEnabled()&&t){var n=t.pstyle(e);return void 0!==n.pfValue?n.pfValue:n.value}},numericStyleUnits:function(e){var t=this[0];if(t.cy().styleEnabled())return t?t.pstyle(e).units:void 0},renderedStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=this[0];return n?t.style().getRenderedStyle(n,e):void 0},style:function(e,t){var n=this.cy();if(!n.styleEnabled())return this;var r=!1,i=n.style();if(a_t(e)){var o=e;i.applyBypass(this,o,r),this.emitAndNotify("style")}else if(r_t(e)){if(void 0===t){var a=this[0];return a?i.getStylePropertyValue(a,e):void 0}i.applyBypass(this,e,t,r),this.emitAndNotify("style")}else if(void 0===e){var s=this[0];return s?i.getRawStyle(s):void 0}return this},removeStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=!1,r=t.style(),i=this;if(void 0===e)for(var o=0;o<i.length;o++){var a=i[o];r.removeAllBypasses(a,n)}else{e=e.split(/\s+/);for(var s=0;s<i.length;s++){var l=i[s];r.removeBypasses(l,e,n)}}return this.emitAndNotify("style"),this},show:function(){return this.css("display","element"),this},hide:function(){return this.css("display","none"),this},effectiveOpacity:function(){var e=this.cy();if(!e.styleEnabled())return 1;var t=e.hasCompoundNodes(),n=this[0];if(n){var r=n._private,i=n.pstyle("opacity").value;if(!t)return i;var o=r.data.parent?n.parents():null;if(o)for(var a=0;a<o.length;a++){i*=o[a].pstyle("opacity").value}return i}},transparent:function(){if(!this.cy().styleEnabled())return!1;var e=this[0],t=e.cy().hasCompoundNodes();return e?t?0===e.effectiveOpacity():0===e.pstyle("opacity").value:void 0},backgrounding:function(){return!!this.cy().styleEnabled()&&!!this[0]._private.backgrounding}};function QLt(e,t){var n=e._private.data.parent?e.parents():null;if(n)for(var r=0;r<n.length;r++){if(!t(n[r]))return!1}return!0}function PLt(e){var t=e.ok,n=e.edgeOkViaNode||e.ok,r=e.parentOk||e.ok;return function(){var e=this.cy();if(!e.styleEnabled())return!0;var i=this[0],o=e.hasCompoundNodes();if(i){var a=i._private;if(!t(i))return!1;if(i.isNode())return!o||QLt(i,r);var s=a.source,l=a.target;return n(s)&&(!o||QLt(s,n))&&(s===l||n(l)&&(!o||QLt(l,n)))}}}var ELt=$Lt("eleTakesUpSpace",function(e){return"element"===e.pstyle("display").value&&0!==e.width()&&(!e.isNode()||0!==e.height())});CLt.takesUpSpace=_Lt("takesUpSpace",PLt({ok:ELt}));var RLt=$Lt("eleInteractive",function(e){return"yes"===e.pstyle("events").value&&"visible"===e.pstyle("visibility").value&&ELt(e)}),BLt=$Lt("parentInteractive",function(e){return"visible"===e.pstyle("visibility").value&&ELt(e)});CLt.interactive=_Lt("interactive",PLt({ok:RLt,parentOk:BLt,edgeOkViaNode:ELt})),CLt.noninteractive=function(){var e=this[0];if(e)return!e.interactive()};var ILt=$Lt("eleVisible",function(e){return"visible"===e.pstyle("visibility").value&&0!==e.pstyle("opacity").pfValue&&ELt(e)}),LLt=ELt;CLt.visible=_Lt("visible",PLt({ok:ILt,edgeOkViaNode:LLt})),CLt.hidden=function(){var e=this[0];if(e)return!e.visible()},CLt.isBundledBezier=_Lt("isBundledBezier",function(){return!!this.cy().styleEnabled()&&(!this.removed()&&"bezier"===this.pstyle("curve-style").value&&this.takesUpSpace())}),CLt.bypass=CLt.css=CLt.style,CLt.renderedCss=CLt.renderedStyle,CLt.removeBypass=CLt.removeCss=CLt.removeStyle,CLt.pstyle=CLt.parsedStyle;var DLt={};function MLt(e){return function(){var t=arguments,n=[];if(2===t.length){var r=t[0],i=t[1];this.on(e.event,r,i)}else if(1===t.length&&i_t(t[0])){var o=t[0];this.on(e.event,o)}else if(0===t.length||1===t.length&&o_t(t[0])){for(var a=1===t.length?t[0]:null,s=0;s<this.length;s++){var l=this[s],c=!e.ableField||l._private[e.ableField],u=l._private[e.field]!=e.value;if(e.overrideAble){var h=e.overrideAble(l);if(void 0!==h&&(c=h,!h))return this}c&&(l._private[e.field]=e.value,u&&n.push(l))}var d=this.spawn(n);d.updateStyle(),d.emit(e.event),a&&d.emit(a)}return this}}function NLt(e){DLt[e.field]=function(){var t=this[0];if(t){if(e.overrideField){var n=e.overrideField(t);if(void 0!==n)return n}return t._private[e.field]}},DLt[e.on]=MLt({event:e.on,field:e.field,ableField:e.ableField,overrideAble:e.overrideAble,value:!0}),DLt[e.off]=MLt({event:e.off,field:e.field,ableField:e.ableField,overrideAble:e.overrideAble,value:!1})}NLt({field:"locked",overrideField:function(e){return!!e.cy().autolock()||void 0},on:"lock",off:"unlock"}),NLt({field:"grabbable",overrideField:function(e){return!e.cy().autoungrabify()&&!e.pannable()&&void 0},on:"grabify",off:"ungrabify"}),NLt({field:"selected",ableField:"selectable",overrideAble:function(e){return!e.cy().autounselectify()&&void 0},on:"select",off:"unselect"}),NLt({field:"selectable",overrideField:function(e){return!e.cy().autounselectify()&&void 0},on:"selectify",off:"unselectify"}),DLt.deselect=DLt.unselect,DLt.grabbed=function(){var e=this[0];if(e)return e._private.grabbed},NLt({field:"active",on:"activate",off:"unactivate"}),NLt({field:"pannable",on:"panify",off:"unpanify"}),DLt.inactive=function(){var e=this[0];if(e)return!e._private.active};var XLt={},FLt=function(e){return function(t){for(var n=[],r=0;r<this.length;r++){var i=this[r];if(i.isNode()){for(var o=!1,a=i.connectedEdges(),s=0;s<a.length;s++){var l=a[s],c=l.source(),u=l.target();if(e.noIncomingEdges&&u===i&&c!==i||e.noOutgoingEdges&&c===i&&u!==i){o=!0;break}}o||n.push(i)}}return this.spawn(n,!0).filter(t)}},ULt=function(e){return function(t){for(var n=[],r=0;r<this.length;r++){var i=this[r];if(i.isNode())for(var o=i.connectedEdges(),a=0;a<o.length;a++){var s=o[a],l=s.source(),c=s.target();e.outgoing&&l===i?(n.push(s),n.push(c)):e.incoming&&c===i&&(n.push(s),n.push(l))}}return this.spawn(n,!0).filter(t)}},zLt=function(e){return function(t){for(var n=this,r=[],i={};;){var o=e.outgoing?n.outgoers():n.incomers();if(0===o.length)break;for(var a=!1,s=0;s<o.length;s++){var l=o[s],c=l.id();i[c]||(i[c]=!0,r.push(l),a=!0)}if(!a)break;n=o}return this.spawn(r,!0).filter(t)}};function qLt(e){return function(t){for(var n=[],r=0;r<this.length;r++){var i=this[r]._private[e.attr];i&&n.push(i)}return this.spawn(n,!0).filter(t)}}function VLt(e){return function(t){var n=[],r=this._private.cy,i=e||{};r_t(t)&&(t=r.$(t));for(var o=0;o<t.length;o++)for(var a=t[o]._private.edges,s=0;s<a.length;s++){var l=a[s],c=l._private.data,u=this.hasElementWithId(c.source)&&t.hasElementWithId(c.target),h=t.hasElementWithId(c.source)&&this.hasElementWithId(c.target);if(u||h){if(i.thisIsSrc||i.thisIsTgt){if(i.thisIsSrc&&!u)continue;if(i.thisIsTgt&&!h)continue}n.push(l)}}return this.spawn(n,!0)}}function WLt(e){return e=C_t({},{codirected:!1},e),function(t){for(var n=[],r=this.edges(),i=e,o=0;o<r.length;o++)for(var a=r[o]._private,s=a.source,l=s._private.data.id,c=a.data.target,u=s._private.edges,h=0;h<u.length;h++){var d=u[h],p=d._private.data,f=p.target,g=p.source,m=f===c&&g===l,O=l===f&&c===g;(i.codirected&&m||!i.codirected&&(m||O))&&n.push(d)}return this.spawn(n,!0).filter(t)}}XLt.clearTraversalCache=function(){for(var e=0;e<this.length;e++)this[e]._private.traversalCache=null},C_t(XLt,{roots:FLt({noIncomingEdges:!0}),leaves:FLt({noOutgoingEdges:!0}),outgoers:mIt(ULt({outgoing:!0}),"outgoers"),successors:zLt({outgoing:!0}),incomers:mIt(ULt({incoming:!0}),"incomers"),predecessors:zLt({})}),C_t(XLt,{neighborhood:mIt(function(e){for(var t=[],n=this.nodes(),r=0;r<n.length;r++)for(var i=n[r],o=i.connectedEdges(),a=0;a<o.length;a++){var s=o[a],l=s.source(),c=s.target(),u=i===l?c:l;u.length>0&&t.push(u[0]),t.push(s[0])}return this.spawn(t,!0).filter(e)},"neighborhood"),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}}),XLt.neighbourhood=XLt.neighborhood,XLt.closedNeighbourhood=XLt.closedNeighborhood,XLt.openNeighbourhood=XLt.openNeighborhood,C_t(XLt,{source:mIt(function(e){var t,n=this[0];return n&&(t=n._private.source||n.cy().collection()),t&&e?t.filter(e):t},"source"),target:mIt(function(e){var t,n=this[0];return n&&(t=n._private.target||n.cy().collection()),t&&e?t.filter(e):t},"target"),sources:qLt({attr:"source"}),targets:qLt({attr:"target"})}),C_t(XLt,{edgesWith:mIt(VLt(),"edgesWith"),edgesTo:mIt(VLt({thisIsSrc:!0}),"edgesTo")}),C_t(XLt,{connectedEdges:mIt(function(e){for(var t=[],n=0;n<this.length;n++){var r=this[n];if(r.isNode())for(var i=r._private.edges,o=0;o<i.length;o++){var a=i[o];t.push(a)}}return this.spawn(t,!0).filter(e)},"connectedEdges"),connectedNodes:mIt(function(e){for(var t=[],n=0;n<this.length;n++){var r=this[n];r.isEdge()&&(t.push(r.source()[0]),t.push(r.target()[0]))}return this.spawn(t,!0).filter(e)},"connectedNodes"),parallelEdges:mIt(WLt(),"parallelEdges"),codirectedEdges:mIt(WLt({codirected:!0}),"codirectedEdges")}),C_t(XLt,{components:function(e){var t=this,n=t.cy(),r=n.collection(),i=null==e?t.nodes():e.nodes(),o=[];null!=e&&i.empty()&&(i=e.sources());var a=function(e,t){r.merge(e),i.unmerge(e),t.merge(e)};if(i.empty())return t.spawn();var s=function(){var e=n.collection();o.push(e);var r=i[0];a(r,e),t.bfs({directed:!1,roots:r,visit:function(t){return a(t,e)}}),e.forEach(function(n){n.connectedEdges().forEach(function(n){t.has(n)&&e.has(n.source())&&e.has(n.target())&&e.merge(n)})})};do{s()}while(i.length>0);return o},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}}),XLt.componentsOf=XLt.components;var jLt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==e){var i=new SCt,o=!1;if(t){if(t.length>0&&a_t(t[0])&&!h_t(t[0])){o=!0;for(var a=[],s=new $Ct,l=0,c=t.length;l<c;l++){var u=t[l];null==u.data&&(u.data={});var h=u.data;if(null==h.id)h.id=OCt();else if(e.hasElementWithId(h.id)||s.has(h.id))continue;var d=new _Ct(e,u,!1);a.push(d),s.add(h.id)}t=a}}else t=[];this.length=0;for(var p=0,f=t.length;p<f;p++){var g=t[p][0];if(null!=g){var m=g._private.data.id;n&&i.has(m)||(n&&i.set(m,{index:this.length,ele:g}),this[this.length]=g,this.length++)}}this._private={eles:this,cy:e,get map(){return null==this.lazyMap&&this.rebuildMap(),this.lazyMap},set map(e){this.lazyMap=e},rebuildMap:function(){for(var e=this.lazyMap=new SCt,t=this.eles,n=0;n<t.length;n++){var r=t[n];e.set(r.id(),{index:n,ele:r})}}},n&&(this._private.map=i),o&&!r&&this.restore()}else pCt("A collection must have a reference to the core")},YLt=_Ct.prototype=jLt.prototype=Object.create(Array.prototype);YLt.instanceString=function(){return"collection"},YLt.spawn=function(e,t){return new jLt(this.cy(),e,t)},YLt.spawnSelf=function(){return this.spawn(this)},YLt.cy=function(){return this._private.cy},YLt.renderer=function(){return this._private.cy.renderer()},YLt.element=function(){return this[0]},YLt.collection=function(){return d_t(this)?this:new jLt(this._private.cy,[this])},YLt.unique=function(){return new jLt(this._private.cy,this,!0)},YLt.hasElementWithId=function(e){return e=""+e,this._private.map.has(e)},YLt.getElementById=function(e){e=""+e;var t=this._private.cy,n=this._private.map.get(e);return n?n.ele:new jLt(t)},YLt.$id=YLt.getElementById,YLt.poolIndex=function(){var e=this._private.cy._private.elements,t=this[0]._private.data.id;return e._private.map.get(t).index},YLt.indexOf=function(e){var t=e[0]._private.data.id;return this._private.map.get(t).index},YLt.indexOfId=function(e){return e=""+e,this._private.map.get(e).index},YLt.json=function(e){var t=this.element(),n=this.cy();if(null==t&&e)return this;if(null!=t){var r=t._private;if(a_t(e)){if(n.startBatch(),e.data){t.data(e.data);var i=r.data;if(t.isEdge()){var o=!1,a={},s=e.data.source,l=e.data.target;null!=s&&s!=i.source&&(a.source=""+s,o=!0),null!=l&&l!=i.target&&(a.target=""+l,o=!0),o&&(t=t.move(a))}else{var c="parent"in e.data,u=e.data.parent;!c||null==u&&null==i.parent||u==i.parent||(void 0===u&&(u=null),null!=u&&(u=""+u),t=t.move({parent:u}))}}e.position&&t.position(e.position);var h=function(n,i,o){var a=e[n];null!=a&&a!==r[n]&&(a?t[i]():t[o]())};return h("removed","remove","restore"),h("selected","select","unselect"),h("selectable","selectify","unselectify"),h("locked","lock","unlock"),h("grabbable","grabify","ungrabify"),h("pannable","panify","unpanify"),null!=e.classes&&t.classes(e.classes),n.endBatch(),this}if(void 0===e){var d={data:mCt(r.data),position:mCt(r.position),group:r.group,removed:r.removed,selected:r.selected,selectable:r.selectable,locked:r.locked,grabbable:r.grabbable,pannable:r.pannable,classes:null};d.classes="";var p=0;return r.classes.forEach(function(e){return d.classes+=0===p++?e:" "+e}),d}}},YLt.jsons=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t].json();e.push(n)}return e},YLt.clone=function(){for(var e=this.cy(),t=[],n=0;n<this.length;n++){var r=this[n].json(),i=new _Ct(e,r,!1);t.push(i)}return new jLt(e,t)},YLt.copy=YLt.clone,YLt.restore=function(){for(var e,t,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this,o=i.cy(),a=o._private,s=[],l=[],c=0,u=i.length;c<u;c++){var h=i[c];r&&!h.removed()||(h.isNode()?s.push(h):l.push(h))}e=s.concat(l);var d=function(){e.splice(t,1),t--};for(t=0;t<e.length;t++){var p=e[t],f=p._private,g=f.data;if(p.clearTraversalCache(),r||f.removed)if(void 0===g.id)g.id=OCt();else if(s_t(g.id))g.id=""+g.id;else{if(g_t(g.id)||!r_t(g.id)){pCt("Can not create element with invalid string ID `"+g.id+"`"),d();continue}if(o.hasElementWithId(g.id)){pCt("Can not create second element with ID `"+g.id+"`"),d();continue}}else;var m=g.id;if(p.isNode()){var O=f.position;null==O.x&&(O.x=0),null==O.y&&(O.y=0)}if(p.isEdge()){for(var A=p,y=["source","target"],v=y.length,b=!1,x=0;x<v;x++){var w=y[x],k=g[w];s_t(k)&&(k=g[w]=""+g[w]),null==k||""===k?(pCt("Can not create edge `"+m+"` with unspecified "+w),b=!0):o.hasElementWithId(k)||(pCt("Can not create edge `"+m+"` with nonexistent "+w+" `"+k+"`"),b=!0)}if(b){d();continue}var S=o.getElementById(g.source),T=o.getElementById(g.target);S.same(T)?S._private.edges.push(A):(S._private.edges.push(A),T._private.edges.push(A)),A._private.source=S,A._private.target=T}f.map=new SCt,f.map.set(m,{ele:p,index:0}),f.removed=!1,r&&o.addToPool(p)}for(var $=0;$<s.length;$++){var _=s[$],C=_._private.data;s_t(C.parent)&&(C.parent=""+C.parent);var Q=C.parent;if(null!=Q||_._private.parent){var P=_._private.parent?o.collection().merge(_._private.parent):o.getElementById(Q);if(P.empty())C.parent=void 0;else if(P[0].removed())gCt(),C.parent=void 0,_._private.parent=null;else{for(var E=!1,R=P;!R.empty();){if(_.same(R)){E=!0,C.parent=void 0;break}R=R.parent()}E||(P[0]._private.children.push(_),_._private.parent=P[0],a.hasCompoundNodes=!0)}}}if(e.length>0){for(var B=e.length===i.length?i:new jLt(o,e),I=0;I<B.length;I++){var L=B[I];L.isNode()||(L.parallelEdges().clearTraversalCache(),L.source().clearTraversalCache(),L.target().clearTraversalCache())}(a.hasCompoundNodes?o.collection().merge(B).merge(B.connectedNodes()).merge(B.parent()):B).dirtyCompoundBoundsCache().dirtyBoundingBoxCache().updateStyle(n),n?B.emitAndNotify("add"):r&&B.emit("add")}return i},YLt.removed=function(){var e=this[0];return e&&e._private.removed},YLt.inside=function(){var e=this[0];return e&&!e._private.removed},YLt.remove=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=[],i={},o=n._private.cy;function a(e){var n=i[e.id()];t&&e.removed()||n||(i[e.id()]=!0,e.isNode()?(r.push(e),function(e){for(var t=e._private.edges,n=0;n<t.length;n++)a(t[n])}(e),function(e){for(var t=e._private.children,n=0;n<t.length;n++)a(t[n])}(e)):r.unshift(e))}for(var s=0,l=n.length;s<l;s++){a(n[s])}function c(e,t){var n=e._private.edges;bCt(n,t),e.clearTraversalCache()}function u(e){e.clearTraversalCache()}var h=[];function d(e,t){t=t[0];var n=(e=e[0])._private.children,r=e.id();bCt(n,t),t._private.parent=null,h.ids[r]||(h.ids[r]=!0,h.push(e))}h.ids={},n.dirtyCompoundBoundsCache(),t&&o.removeFromPool(r);for(var p=0;p<r.length;p++){var f=r[p];if(f.isEdge()){var g=f.source()[0],m=f.target()[0];c(g,f),c(m,f);for(var O=f.parallelEdges(),A=0;A<O.length;A++){var y=O[A];u(y),y.isBundledBezier()&&y.dirtyBoundingBoxCache()}}else{var v=f.parent();0!==v.length&&d(v,f)}t&&(f._private.removed=!0)}var b=o._private.elements;o._private.hasCompoundNodes=!1;for(var x=0;x<b.length;x++){if(b[x].isParent()){o._private.hasCompoundNodes=!0;break}}var w=new jLt(this.cy(),r);w.size()>0&&(e?w.emitAndNotify("remove"):t&&w.emit("remove"));for(var k=0;k<h.length;k++){var S=h[k];t&&S.removed()||S.updateStyle()}return w},YLt.move=function(e){var t=this._private.cy,n=this,r=!1,i=!1,o=function(e){return null==e?e:""+e};if(void 0!==e.source||void 0!==e.target){var a=o(e.source),s=o(e.target),l=null!=a&&t.hasElementWithId(a),c=null!=s&&t.hasElementWithId(s);(l||c)&&(t.batch(function(){n.remove(r,i),n.emitAndNotify("moveout");for(var e=0;e<n.length;e++){var t=n[e],o=t._private.data;t.isEdge()&&(l&&(o.source=a),c&&(o.target=s))}n.restore(r,i)}),n.emitAndNotify("move"))}else if(void 0!==e.parent){var u=o(e.parent);if(null===u||t.hasElementWithId(u)){var h=null===u?void 0:u;t.batch(function(){var e=n.remove(r,i);e.emitAndNotify("moveout");for(var t=0;t<n.length;t++){var o=n[t],a=o._private.data;o.isNode()&&(a.parent=h)}e.restore(r,i)}),n.emitAndNotify("move")}}return this},[KPt,CBt,QBt,pIt,OIt,kIt,SIt,rLt,ALt,yLt,{isNode:function(){return"nodes"===this.group()},isEdge:function(){return"edges"===this.group()},isLoop:function(){return this.isEdge()&&this.source()[0]===this.target()[0]},isSimple:function(){return this.isEdge()&&this.source()[0]!==this.target()[0]},group:function(){var e=this[0];if(e)return e._private.group}},xLt,SLt,CLt,DLt,XLt].forEach(function(e){C_t(YLt,e)});var ZLt={add:function(e){var t,n=this;if(u_t(e)){var r=e;if(r._private.cy===n)t=r.restore();else{for(var i=[],o=0;o<r.length;o++){var a=r[o];i.push(a.json())}t=new jLt(n,i)}}else if(o_t(e)){t=new jLt(n,e)}else if(a_t(e)&&(o_t(e.nodes)||o_t(e.edges))){for(var s=e,l=[],c=["nodes","edges"],u=0,h=c.length;u<h;u++){var d=c[u],p=s[d];if(o_t(p))for(var f=0,g=p.length;f<g;f++){var m=C_t({group:d},p[f]);l.push(m)}}t=new jLt(n,l)}else{t=new _Ct(n,e).collection()}return t},remove:function(e){if(u_t(e));else if(r_t(e)){var t=e;e=this.$(t)}return e.remove()}};function GLt(e,t,n,r){var i=.1,o="undefined"!=typeof Float32Array;if(4!==arguments.length)return!1;for(var a=0;a<4;++a)if("number"!=typeof arguments[a]||isNaN(arguments[a])||!isFinite(arguments[a]))return!1;e=Math.min(e,1),n=Math.min(n,1),e=Math.max(e,0),n=Math.max(n,0);var s=o?new Float32Array(11):new Array(11);function l(e,t){return 1-3*t+3*e}function c(e,t){return 3*t-6*e}function u(e){return 3*e}function h(e,t,n){return((l(t,n)*e+c(t,n))*e+u(t))*e}function d(e,t,n){return 3*l(t,n)*e*e+2*c(t,n)*e+u(t)}function p(t){for(var r=0,o=1;10!==o&&s[o]<=t;++o)r+=i;--o;var a=r+(t-s[o])/(s[o+1]-s[o])*i,l=d(a,e,n);return l>=.001?function(t,r){for(var i=0;i<4;++i){var o=d(r,e,n);if(0===o)return r;r-=(h(r,e,n)-t)/o}return r}(t,a):0===l?a:function(t,r,i){var o,a,s=0;do{(o=h(a=r+(i-r)/2,e,n)-t)>0?i=a:r=a}while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+i)}var f=!1;function g(){f=!0,e===t&&n===r||function(){for(var t=0;t<11;++t)s[t]=h(t*i,e,n)}()}var m=function(i){return f||g(),e===t&&n===r?i:0===i?0:1===i?1:h(p(i),t,r)};m.getControlPoints=function(){return[{x:e,y:t},{x:n,y:r}]};var O="generateBezier("+[e,t,n,r]+")";return m.toString=function(){return O},m}var HLt=function(){function e(e){return-e.tension*e.x-e.friction*e.v}function t(t,n,r){var i={x:t.x+r.dx*n,v:t.v+r.dv*n,tension:t.tension,friction:t.friction};return{dx:i.v,dv:e(i)}}function n(n,r){var i={dx:n.v,dv:e(n)},o=t(n,.5*r,i),a=t(n,.5*r,o),s=t(n,r,a),l=1/6*(i.dx+2*(o.dx+a.dx)+s.dx),c=1/6*(i.dv+2*(o.dv+a.dv)+s.dv);return n.x=n.x+l*r,n.v=n.v+c*r,n}return function e(t,r,i){var o,a,s,l={x:-1,v:0,tension:null,friction:null},c=[0],u=0,h=1e-4;for(t=parseFloat(t)||500,r=parseFloat(r)||20,i=i||null,l.tension=t,l.friction=r,a=(o=null!==i)?(u=e(t,r))/i*.016:.016;s=n(s||l,a),c.push(1+s.x),u+=16,Math.abs(s.x)>h&&Math.abs(s.v)>h;);return o?function(e){return c[e*(c.length-1)|0]}:u}}(),KLt=function(e,t,n,r){var i=GLt(e,t,n,r);return function(e,t,n){return e+(t-e)*i(n)}},JLt={linear:function(e,t,n){return e+(t-e)*n},ease:KLt(.25,.1,.25,1),"ease-in":KLt(.42,0,1,1),"ease-out":KLt(0,0,.58,1),"ease-in-out":KLt(.42,0,.58,1),"ease-in-sine":KLt(.47,0,.745,.715),"ease-out-sine":KLt(.39,.575,.565,1),"ease-in-out-sine":KLt(.445,.05,.55,.95),"ease-in-quad":KLt(.55,.085,.68,.53),"ease-out-quad":KLt(.25,.46,.45,.94),"ease-in-out-quad":KLt(.455,.03,.515,.955),"ease-in-cubic":KLt(.55,.055,.675,.19),"ease-out-cubic":KLt(.215,.61,.355,1),"ease-in-out-cubic":KLt(.645,.045,.355,1),"ease-in-quart":KLt(.895,.03,.685,.22),"ease-out-quart":KLt(.165,.84,.44,1),"ease-in-out-quart":KLt(.77,0,.175,1),"ease-in-quint":KLt(.755,.05,.855,.06),"ease-out-quint":KLt(.23,1,.32,1),"ease-in-out-quint":KLt(.86,0,.07,1),"ease-in-expo":KLt(.95,.05,.795,.035),"ease-out-expo":KLt(.19,1,.22,1),"ease-in-out-expo":KLt(1,0,0,1),"ease-in-circ":KLt(.6,.04,.98,.335),"ease-out-circ":KLt(.075,.82,.165,1),"ease-in-out-circ":KLt(.785,.135,.15,.86),spring:function(e,t,n){if(0===n)return JLt.linear;var r=HLt(e,t,n);return function(e,t,n){return e+(t-e)*r(n)}},"cubic-bezier":KLt};function eDt(e,t,n,r,i){if(1===r)return n;if(t===n)return n;var o=i(t,n,r);return null==e||((e.roundValue||e.color)&&(o=Math.round(o)),void 0!==e.min&&(o=Math.max(o,e.min)),void 0!==e.max&&(o=Math.min(o,e.max))),o}function tDt(e,t){return null!=e.pfValue||null!=e.value?null==e.pfValue||null!=t&&"%"===t.type.units?e.value:e.pfValue:e}function nDt(e,t,n,r,i){var o=null!=i?i.type:null;n<0?n=0:n>1&&(n=1);var a=tDt(e,i),s=tDt(t,i);if(s_t(a)&&s_t(s))return eDt(o,a,s,n,r);if(o_t(a)&&o_t(s)){for(var l=[],c=0;c<s.length;c++){var u=a[c],h=s[c];if(null!=u&&null!=h){var d=eDt(o,u,h,n,r);l.push(d)}else l.push(h)}return l}}function rDt(e,t,n,r){var i=!r,o=e._private,a=t._private,s=a.easing,l=a.startTime,c=(r?e:e.cy()).style();if(!a.easingImpl)if(null==s)a.easingImpl=JLt.linear;else{var u,h,d;if(r_t(s))u=c.parse("transition-timing-function",s).value;else u=s;r_t(u)?(h=u,d=[]):(h=u[1],d=u.slice(2).map(function(e){return+e})),d.length>0?("spring"===h&&d.push(a.duration),a.easingImpl=JLt[h].apply(null,d)):a.easingImpl=JLt[h]}var p,f=a.easingImpl;if(p=0===a.duration?1:(n-l)/a.duration,a.applying&&(p=a.progress),p<0?p=0:p>1&&(p=1),null==a.delay){var g=a.startPosition,m=a.position;if(m&&i&&!e.locked()){var O={};iDt(g.x,m.x)&&(O.x=nDt(g.x,m.x,p,f)),iDt(g.y,m.y)&&(O.y=nDt(g.y,m.y,p,f)),e.position(O)}var A=a.startPan,y=a.pan,v=o.pan,b=null!=y&&r;b&&(iDt(A.x,y.x)&&(v.x=nDt(A.x,y.x,p,f)),iDt(A.y,y.y)&&(v.y=nDt(A.y,y.y,p,f)),e.emit("pan"));var x=a.startZoom,w=a.zoom,k=null!=w&&r;k&&(iDt(x,w)&&(o.zoom=uQt(o.minZoom,nDt(x,w,p,f),o.maxZoom)),e.emit("zoom")),(b||k)&&e.emit("viewport");var S=a.style;if(S&&S.length>0&&i){for(var T=0;T<S.length;T++){var $=S[T],_=$.name,C=$,Q=a.startStyle[_],P=nDt(Q,C,p,f,c.properties[Q.name]);c.overrideBypass(e,_,P)}e.emit("style")}}return a.progress=p,p}function iDt(e,t){return null!=e&&null!=t&&(!(!s_t(e)||!s_t(t))||!(!e||!t))}function oDt(e,t,n,r){var i=t._private;i.started=!0,i.startTime=n-i.progress*i.duration}function aDt(e,t){var n=t._private.aniEles,r=[];function i(t,n){var i=t._private,o=i.animation.current,a=i.animation.queue,s=!1;if(0===o.length){var l=a.shift();l&&o.push(l)}for(var c=function(e){for(var t=e.length-1;t>=0;t--){(0,e[t])()}e.splice(0,e.length)},u=o.length-1;u>=0;u--){var h=o[u],d=h._private;d.stopped?(o.splice(u,1),d.hooked=!1,d.playing=!1,d.started=!1,c(d.frames)):(d.playing||d.applying)&&(d.playing&&d.applying&&(d.applying=!1),d.started||oDt(0,h,e),rDt(t,h,e,n),d.applying&&(d.applying=!1),c(d.frames),null!=d.step&&d.step(e),h.completed()&&(o.splice(u,1),d.hooked=!1,d.playing=!1,d.started=!1,c(d.completes)),s=!0)}return n||0!==o.length||0!==a.length||r.push(t),s}for(var o=!1,a=0;a<n.length;a++){var s=i(n[a]);o=o||s}var l=i(t,!0);(o||l)&&(n.length>0?t.notify("draw",n):t.notify("draw")),n.unmerge(r),t.emit("step")}var sDt={animate:_Bt.animate(),animation:_Bt.animation(),animated:_Bt.animated(),clearQueue:_Bt.clearQueue(),delay:_Bt.delay(),delayAnimation:_Bt.delayAnimation(),stop:_Bt.stop(),addToAnimationPool:function(e){this.styleEnabled()&&this._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,e.styleEnabled()){var t=e.renderer();t&&t.beforeRender?t.beforeRender(function(t,n){aDt(n,e)},t.beforeRenderPriorities.animations):function t(){e._private.animationsRunning&&j_t(function(n){aDt(n,e),t()})}()}}},lDt={qualifierCompare:function(e,t){return null==e||null==t?null==e&&null==t:e.sameText(t)},eventMatches:function(e,t,n){var r=t.qualifier;return null==r||e!==n.target&&h_t(n.target)&&r.matches(n.target)},addEventFields:function(e,t){t.cy=e,t.target=e},callbackContext:function(e,t,n){return null!=t.qualifier?n.target:e}},cDt=function(e){return r_t(e)?new hIt(e):e},uDt={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new hLt(lDt,this)),this},emitter:function(){return this._private.emitter},on:function(e,t,n){return this.emitter().on(e,cDt(t),n),this},removeListener:function(e,t,n){return this.emitter().removeListener(e,cDt(t),n),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,t,n){return this.emitter().one(e,cDt(t),n),this},once:function(e,t,n){return this.emitter().one(e,cDt(t),n),this},emit:function(e,t){return this.emitter().emit(e,t),this},emitAndNotify:function(e,t){return this.emit(e),this.notify(e,t),this}};_Bt.eventAliasesOn(uDt);var hDt={png:function(e){return e=e||{},this._private.renderer.png(e)},jpg:function(e){var t=this._private.renderer;return(e=e||{}).bg=e.bg||"#fff",t.jpg(e)}};hDt.jpeg=hDt.jpg;var dDt={layout:function(e){var t=this;if(null!=e)if(null!=e.name){var n,r=e.name,i=t.extension("layout",r);if(null!=i)return n=r_t(e.eles)?t.$(e.eles):null!=e.eles?e.eles:t.$(),new i(C_t({},e,{cy:t,eles:n}));pCt("No such layout `"+r+"` found. Did you forget to import it and `cytoscape.use()` it?")}else pCt("A `name` must be specified to make a layout");else pCt("Layout options must be specified to make a layout")}};dDt.createLayout=dDt.makeLayout=dDt.layout;var pDt={notify:function(e,t){var n=this._private;if(this.batching()){n.batchNotifications=n.batchNotifications||{};var r=n.batchNotifications[e]=n.batchNotifications[e]||this.collection();null!=t&&r.merge(t)}else if(n.notificationsEnabled){var i=this.renderer();!this.destroyed()&&i&&i.notify(e,t)}},notifications:function(e){var t=this._private;return void 0===e?t.notificationsEnabled:(t.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return null==e.batchCount&&(e.batchCount=0),0===e.batchCount&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(0===e.batchCount)return this;if(e.batchCount--,0===e.batchCount){e.batchStyleEles.updateStyle();var t=this.renderer();Object.keys(e.batchNotifications).forEach(function(n){var r=e.batchNotifications[n];r.empty()?t.notify(n):t.notify(n,r)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var t=this;return this.batch(function(){for(var n=Object.keys(e),r=0;r<n.length;r++){var i=n[r],o=e[i];t.getElementById(i).data(o)}})}},fDt=vCt({hideEdgesOnViewport:!1,textureOnViewport:!1,motionBlur:!1,motionBlurOpacity:.05,pixelRatio:void 0,desktopTapThreshold:4,touchTapThreshold:8,wheelSensitivity:1,debug:!1,showFps:!1,webgl:!1,webglDebug:!1,webglDebugShowAtlases:!1,webglTexSize:2048,webglTexRows:36,webglTexRowsNodes:18,webglBatchSize:2048,webglTexPerBatch:14,webglBgColor:[255,255,255]}),gDt={renderTo:function(e,t,n,r){return this._private.renderer.renderTo(e,t,n,r),this},renderer:function(){return this._private.renderer},forceRender:function(){return this.notify("draw"),this},resize:function(){return this.invalidateSize(),this.emitAndNotify("resize"),this},initRenderer:function(e){var t=this,n=t.extension("renderer",e.name);if(null!=n){void 0!==e.wheelSensitivity&&gCt();var r=fDt(e);r.cy=t,t._private.renderer=new n(r),this.notify("init")}else pCt("Can not initialise: No such renderer `".concat(e.name,"` found. Did you forget to import it and `cytoscape.use()` it?"))},destroyRenderer:function(){var e=this;e.notify("destroy");var t=e.container();if(t)for(t._cyreg=null;t.childNodes.length>0;)t.removeChild(t.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(e){var t=e._private;t.rscratch={},t.rstyle={},t.animation.current=[],t.animation.queue=[]})},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};gDt.invalidateDimensions=gDt.resize;var mDt={collection:function(e,t){return r_t(e)?this.$(e):u_t(e)?e.collection():o_t(e)?(t||(t={}),new jLt(this,e,t.unique,t.removed)):new jLt(this)},nodes:function(e){var t=this.$(function(e){return e.isNode()});return e?t.filter(e):t},edges:function(e){var t=this.$(function(e){return e.isEdge()});return e?t.filter(e):t},$:function(e){var t=this._private.elements;return e?t.filter(e):t.spawnSelf()},mutableElements:function(){return this._private.elements}};mDt.elements=mDt.filter=mDt.$;var ODt={},ADt="t";ODt.apply=function(e){for(var t=this,n=t._private.cy.collection(),r=0;r<e.length;r++){var i=e[r],o=t.getContextMeta(i);if(!o.empty){var a=t.getContextStyle(o),s=t.applyContextStyle(o,a,i);i._private.appliedInitStyle?t.updateTransitions(i,s.diffProps):i._private.appliedInitStyle=!0,t.updateStyleHints(i)&&n.push(i)}}return n},ODt.getPropertiesDiff=function(e,t){var n=this,r=n._private.propDiffs=n._private.propDiffs||{},i=e+"-"+t,o=r[i];if(o)return o;for(var a=[],s={},l=0;l<n.length;l++){var c=n[l],u=e[l]===ADt,h=t[l]===ADt,d=u!==h,p=c.mappedProperties.length>0;if(d||h&&p){var f=void 0;d&&p||d?f=c.properties:p&&(f=c.mappedProperties);for(var g=0;g<f.length;g++){for(var m=f[g],O=m.name,A=!1,y=l+1;y<n.length;y++){var v=n[y];if(t[y]===ADt&&(A=null!=v.properties[m.name]))break}s[O]||A||(s[O]=!0,a.push(O))}}}return r[i]=a,a},ODt.getContextMeta=function(e){for(var t,n=this,r="",i=e._private.styleCxtKey||"",o=0;o<n.length;o++){var a=n[o];r+=a.selector&&a.selector.matches(e)?ADt:"f"}return t=n.getPropertiesDiff(i,r),e._private.styleCxtKey=r,{key:r,diffPropNames:t,empty:0===t.length}},ODt.getContextStyle=function(e){var t=e.key,n=this._private.contextStyles=this._private.contextStyles||{};if(n[t])return n[t];for(var r={_private:{key:t}},i=0;i<this.length;i++){var o=this[i];if(t[i]===ADt)for(var a=0;a<o.properties.length;a++){var s=o.properties[a];r[s.name]=s}}return n[t]=r,r},ODt.applyContextStyle=function(e,t,n){for(var r=e.diffPropNames,i={},o=this.types,a=0;a<r.length;a++){var s=r[a],l=t[s],c=n.pstyle(s);if(!l){if(!c)continue;l=c.bypass?{name:s,deleteBypassed:!0}:{name:s,delete:!0}}if(c!==l){if(l.mapped===o.fn&&null!=c&&null!=c.mapping&&c.mapping.value===l.value){var u=c.mapping;if((u.fnValue=l.value(n))===u.prevFnValue)continue}var h=i[s]={prev:c};this.applyParsedProperty(n,l),h.next=n.pstyle(s),h.next&&h.next.bypass&&(h.next=h.next.bypassed)}}return{diffProps:i}},ODt.updateStyleHints=function(e){var t=e._private,n=this,r=n.propertyGroupNames,i=n.propertyGroupKeys,o=function(e,t,r){return n.getPropertiesHash(e,t,r)},a=t.styleKey;if(e.removed())return!1;var s="nodes"===t.group,l=e._private.style;r=Object.keys(l);for(var c=0;c<i.length;c++){var u=i[c];t.styleKeys[u]=[Z_t,G_t]}for(var h=function(e,n){return t.styleKeys[n][0]=K_t(e,t.styleKeys[n][0])},d=function(e,n){return t.styleKeys[n][1]=J_t(e,t.styleKeys[n][1])},p=function(e,t){h(e,t),d(e,t)},f=function(e,t){for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);h(r,t),d(r,t)}},g=function(e){return-128<e&&e<128&&Math.floor(e)!==e?2e9-(1024*e|0):e},m=0;m<r.length;m++){var O=r[m],A=l[O];if(null!=A){var y=this.properties[O],v=y.type,b=y.groupKey,x=void 0;null!=y.hashOverride?x=y.hashOverride(e,A):null!=A.pfValue&&(x=A.pfValue);var w=null==y.enums?A.value:null,k=null!=x,S=k||null!=w,T=A.units;if(v.number&&S&&!v.multiple)p(g(k?x:w),b),k||null==T||f(T,b);else f(A.strValue,b)}}for(var $=[Z_t,G_t],_=0;_<i.length;_++){var C=i[_],Q=t.styleKeys[C];$[0]=K_t(Q[0],$[0]),$[1]=J_t(Q[1],$[1])}t.styleKey=function(e,t){return 2097152*e+t}($[0],$[1]);var P=t.styleKeys;t.labelDimsKey=eCt(P.labelDimensions);var E=o(e,["label"],P.labelDimensions);if(t.labelKey=eCt(E),t.labelStyleKey=eCt(tCt(P.commonLabel,E)),!s){var R=o(e,["source-label"],P.labelDimensions);t.sourceLabelKey=eCt(R),t.sourceLabelStyleKey=eCt(tCt(P.commonLabel,R));var B=o(e,["target-label"],P.labelDimensions);t.targetLabelKey=eCt(B),t.targetLabelStyleKey=eCt(tCt(P.commonLabel,B))}if(s){var I=t.styleKeys,L=I.nodeBody,D=I.nodeBorder,M=I.nodeOutline,N=I.backgroundImage,X=I.compound,F=I.pie,U=I.stripe,z=[L,D,M,N,X,F,U].filter(function(e){return null!=e}).reduce(tCt,[Z_t,G_t]);t.nodeKey=eCt(z),t.hasPie=null!=F&&F[0]!==Z_t&&F[1]!==G_t,t.hasStripe=null!=U&&U[0]!==Z_t&&U[1]!==G_t}return a!==t.styleKey},ODt.clearStyleHints=function(e){var t=e._private;t.styleCxtKey="",t.styleKeys={},t.styleKey=null,t.labelKey=null,t.labelStyleKey=null,t.sourceLabelKey=null,t.sourceLabelStyleKey=null,t.targetLabelKey=null,t.targetLabelStyleKey=null,t.nodeKey=null,t.hasPie=null,t.hasStripe=null},ODt.applyParsedProperty=function(e,t){var n,r=this,i=t,o=e._private.style,a=r.types,s=r.properties[i.name].type,l=i.bypass,c=o[i.name],u=c&&c.bypass,h=e._private,d="mapping",p=function(e){return null==e?null:null!=e.pfValue?e.pfValue:e.value},f=function(){var t=p(c),n=p(i);r.checkTriggers(e,i.name,t,n)};if("curve-style"===t.name&&e.isEdge()&&("bezier"!==t.value&&e.isLoop()||"haystack"===t.value&&(e.source().isParent()||e.target().isParent()))&&(i=t=this.parse(t.name,"bezier",l)),i.delete)return o[i.name]=void 0,f(),!0;if(i.deleteBypassed)return c?!!c.bypass&&(c.bypassed=void 0,f(),!0):(f(),!0);if(i.deleteBypass)return c?!!c.bypass&&(o[i.name]=c.bypassed,f(),!0):(f(),!0);var g=function(){gCt((e.id(),i.name,i.field,i.field,i.field))};switch(i.mapped){case a.mapData:for(var m,O=i.field.split("."),A=h.data,y=0;y<O.length&&A;y++){A=A[O[y]]}if(null==A)return g(),!1;if(!s_t(A))return gCt((i.field,e.id())),!1;var v=i.fieldMax-i.fieldMin;if((m=0===v?0:(A-i.fieldMin)/v)<0?m=0:m>1&&(m=1),s.color){var b=i.valueMin[0],x=i.valueMax[0],w=i.valueMin[1],k=i.valueMax[1],S=i.valueMin[2],T=i.valueMax[2],$=null==i.valueMin[3]?1:i.valueMin[3],_=null==i.valueMax[3]?1:i.valueMax[3],C=[Math.round(b+(x-b)*m),Math.round(w+(k-w)*m),Math.round(S+(T-S)*m),Math.round($+(_-$)*m)];n={bypass:i.bypass,name:i.name,value:C,strValue:"rgb("+C[0]+", "+C[1]+", "+C[2]+")"}}else{if(!s.number)return!1;var Q=i.valueMin+(i.valueMax-i.valueMin)*m;n=this.parse(i.name,Q,i.bypass,d)}if(!n)return g(),!1;n.mapping=i,i=n;break;case a.data:for(var P=i.field.split("."),E=h.data,R=0;R<P.length&&E;R++){E=E[P[R]]}if(null!=E&&(n=this.parse(i.name,E,i.bypass,d)),!n)return g(),!1;n.mapping=i,i=n;break;case a.fn:var B=i.value,I=null!=i.fnValue?i.fnValue:B(e);if(i.prevFnValue=I,null==I)return gCt((i.name,e.id())),!1;if(!(n=this.parse(i.name,I,i.bypass,d)))return gCt((i.name,e.id())),!1;n.mapping=mCt(i),i=n;break;case void 0:break;default:return!1}return l?(i.bypassed=u?c.bypassed:c,o[i.name]=i):u?c.bypassed=i:o[i.name]=i,f(),!0},ODt.cleanElements=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(this.clearStyleHints(r),r.dirtyCompoundBoundsCache(),r.dirtyBoundingBoxCache(),t)for(var i=r._private.style,o=Object.keys(i),a=0;a<o.length;a++){var s=o[a],l=i[s];null!=l&&(l.bypass?l.bypassed=null:i[s]=null)}else r._private.style={}}},ODt.update=function(){this._private.cy.mutableElements().updateStyle()},ODt.updateTransitions=function(e,t){var n=this,r=e._private,i=e.pstyle("transition-property").value,o=e.pstyle("transition-duration").pfValue,a=e.pstyle("transition-delay").pfValue;if(i.length>0&&o>0){for(var s={},l=!1,c=0;c<i.length;c++){var u=i[c],h=e.pstyle(u),d=t[u];if(d){var p=d.prev,f=null!=d.next?d.next:h,g=!1,m=void 0,O=1e-6;p&&(s_t(p.pfValue)&&s_t(f.pfValue)?(g=f.pfValue-p.pfValue,m=p.pfValue+O*g):s_t(p.value)&&s_t(f.value)?(g=f.value-p.value,m=p.value+O*g):o_t(p.value)&&o_t(f.value)&&(g=p.value[0]!==f.value[0]||p.value[1]!==f.value[1]||p.value[2]!==f.value[2],m=p.strValue),g&&(s[u]=f.strValue,this.applyBypass(e,u,m),l=!0))}}if(!l)return;r.transitioning=!0,new oEt(function(t){a>0?e.delayAnimation(a).play().promise().then(t):t()}).then(function(){return e.animation({style:s,duration:o,easing:e.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){n.removeBypasses(e,i),e.emitAndNotify("style"),r.transitioning=!1})}else r.transitioning&&(this.removeBypasses(e,i),e.emitAndNotify("style"),r.transitioning=!1)},ODt.checkTrigger=function(e,t,n,r,i,o){var a=this.properties[t],s=i(a);e.removed()||null!=s&&s(n,r,e)&&o(a)},ODt.checkZOrderTrigger=function(e,t,n,r){var i=this;this.checkTrigger(e,t,n,r,function(e){return e.triggersZOrder},function(){i._private.cy.notify("zorder",e)})},ODt.checkBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,function(e){return e.triggersBounds},function(t){e.dirtyCompoundBoundsCache(),e.dirtyBoundingBoxCache()})},ODt.checkConnectedEdgesBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,function(e){return e.triggersBoundsOfConnectedEdges},function(t){e.connectedEdges().forEach(function(e){e.dirtyBoundingBoxCache()})})},ODt.checkParallelEdgesBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,function(e){return e.triggersBoundsOfParallelEdges},function(t){e.parallelEdges().forEach(function(e){e.dirtyBoundingBoxCache()})})},ODt.checkTriggers=function(e,t,n,r){e.dirtyStyleCache(),this.checkZOrderTrigger(e,t,n,r),this.checkBoundsTrigger(e,t,n,r),this.checkConnectedEdgesBoundsTrigger(e,t,n,r),this.checkParallelEdgesBoundsTrigger(e,t,n,r)};var yDt={applyBypass:function(e,t,n,r){var i=[];if("*"===t||"**"===t){if(void 0!==n)for(var o=0;o<this.properties.length;o++){var a=this.properties[o].name,s=this.parse(a,n,!0);s&&i.push(s)}}else if(r_t(t)){var l=this.parse(t,n,!0);l&&i.push(l)}else{if(!a_t(t))return!1;var c=t;r=n;for(var u=Object.keys(c),h=0;h<u.length;h++){var d=u[h],p=c[d];if(void 0===p&&(p=c[y_t(d)]),void 0!==p){var f=this.parse(d,p,!0);f&&i.push(f)}}}if(0===i.length)return!1;for(var g=!1,m=0;m<e.length;m++){for(var O=e[m],A={},y=void 0,v=0;v<i.length;v++){var b=i[v];if(r){var x=O.pstyle(b.name);y=A[b.name]={prev:x}}g=this.applyParsedProperty(O,mCt(b))||g,r&&(y.next=O.pstyle(b.name))}g&&this.updateStyleHints(O),r&&this.updateTransitions(O,A,true)}return g},overrideBypass:function(e,t,n){t=A_t(t);for(var r=0;r<e.length;r++){var i=e[r],o=i._private.style[t],a=this.properties[t].type,s=a.color,l=a.mutiple,c=o?null!=o.pfValue?o.pfValue:o.value:null;o&&o.bypass?(o.value=n,null!=o.pfValue&&(o.pfValue=n),o.strValue=s?"rgb("+n.join(",")+")":l?n.join(" "):""+n,this.updateStyleHints(i)):this.applyBypass(i,t,n),this.checkTriggers(i,t,c,n)}},removeAllBypasses:function(e,t){return this.removeBypasses(e,this.propertyNames,t)},removeBypasses:function(e,t,n){for(var r=0;r<e.length;r++){for(var i=e[r],o={},a=0;a<t.length;a++){var s=t[a],l=this.properties[s],c=i.pstyle(l.name);if(c&&c.bypass){var u=this.parse(s,"",!0),h=o[l.name]={prev:c};this.applyParsedProperty(i,u),h.next=i.pstyle(l.name)}}this.updateStyleHints(i),n&&this.updateTransitions(i,o,true)}}},vDt={getEmSizeInPixels:function(){var e=this.containerCss("font-size");return null!=e?parseFloat(e):1},containerCss:function(e){var t=this._private.cy,n=t.container(),r=t.window();if(r&&n&&r.getComputedStyle)return r.getComputedStyle(n).getPropertyValue(e)}},bDt={getRenderedStyle:function(e,t){return t?this.getStylePropertyValue(e,t,!0):this.getRawStyle(e,!0)},getRawStyle:function(e,t){var n=this;if(e=e[0]){for(var r={},i=0;i<n.properties.length;i++){var o=n.properties[i],a=n.getStylePropertyValue(e,o.name,t);null!=a&&(r[o.name]=a,r[y_t(o.name)]=a)}return r}},getIndexedStyle:function(e,t,n,r){var i=e.pstyle(t)[n][r];return null!=i?i:e.cy().style().getDefaultProperty(t)[n][0]},getStylePropertyValue:function(e,t,n){if(e=e[0]){var r=this.properties[t];r.alias&&(r=r.pointsTo);var i=r.type,o=e.pstyle(r.name);if(o){var a=o.value,s=o.units,l=o.strValue;if(n&&i.number&&null!=a&&s_t(a)){var c=e.cy().zoom(),u=function(e){return e*c},h=function(e,t){return u(e)+t},d=o_t(a);return(d?s.every(function(e){return null!=e}):null!=s)?d?a.map(function(e,t){return h(e,s[t])}).join(" "):h(a,s):d?a.map(function(e){return r_t(e)?e:""+u(e)}).join(" "):""+u(a)}if(null!=l)return l}return null}},getAnimationStartStyle:function(e,t){for(var n={},r=0;r<t.length;r++){var i=t[r].name,o=e.pstyle(i);void 0!==o&&(o=a_t(o)?this.parse(i,o.strValue):this.parse(i,o)),o&&(n[i]=o)}return n},getPropsList:function(e){var t=[],n=e,r=this.properties;if(n)for(var i=Object.keys(n),o=0;o<i.length;o++){var a=i[o],s=n[a],l=r[a]||r[A_t(a)],c=this.parse(l.name,s);c&&t.push(c)}return t},getNonDefaultPropertiesHash:function(e,t,n){var r,i,o,a,s,l,c=n.slice();for(s=0;s<t.length;s++)if(r=t[s],null!=(i=e.pstyle(r,!1)))if(null!=i.pfValue)c[0]=K_t(a,c[0]),c[1]=J_t(a,c[1]);else for(o=i.strValue,l=0;l<o.length;l++)a=o.charCodeAt(l),c[0]=K_t(a,c[0]),c[1]=J_t(a,c[1]);return c}};bDt.getPropertiesHash=bDt.getNonDefaultPropertiesHash;var xDt={appendFromJson:function(e){for(var t=this,n=0;n<e.length;n++){var r=e[n],i=r.selector,o=r.style||r.css,a=Object.keys(o);t.selector(i);for(var s=0;s<a.length;s++){var l=a[s],c=o[l];t.css(l,c)}}return t},fromJson:function(e){var t=this;return t.resetToDefault(),t.appendFromJson(e),t},json:function(){for(var e=[],t=this.defaultLength;t<this.length;t++){for(var n=this[t],r=n.selector,i=n.properties,o={},a=0;a<i.length;a++){var s=i[a];o[s.name]=s.strValue}e.push({selector:r?r.toString():"core",style:o})}return e}},wDt={appendFromString:function(e){var t,n,r,i=this,o=""+e;function a(){o=o.length>t.length?o.substr(t.length):""}function s(){n=n.length>r.length?n.substr(r.length):""}for(o=o.replace(/[/][*](\s|.)+?[*][/]/g,"");;){if(o.match(/^\s*$/))break;var l=o.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!l){gCt();break}t=l[0];var c=l[1];if("core"!==c)if(new hIt(c).invalid){gCt(),a();continue}var u=l[2],h=!1;n=u;for(var d=[];;){if(n.match(/^\s*$/))break;var p=n.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!p){gCt(),h=!0;break}r=p[0];var f=p[1],g=p[2];if(this.properties[f])i.parse(f,g)?(d.push({name:f,val:g}),s()):(gCt(),s());else gCt(),s()}if(h){a();break}i.selector(c);for(var m=0;m<d.length;m++){var O=d[m];i.css(O.name,O.val)}a()}return i},fromString:function(e){var t=this;return t.resetToDefault(),t.appendFromString(e),t}},kDt={};!function(){var e=w_t,t=S_t,n=$_t,r=function(e){return"^"+e+"\\s*\\(\\s*([\\w\\.]+)\\s*\\)$"},i=function(r){var i=e+"|\\w+|"+t+"|"+n+"|\\#[0-9a-fA-F]{3}|\\#[0-9a-fA-F]{6}";return"^"+r+"\\s*\\(([\\w\\.]+)\\s*\\,\\s*("+e+")\\s*\\,\\s*("+e+")\\s*,\\s*("+i+")\\s*\\,\\s*("+i+")\\)$"},o=["^url\\s*\\(\\s*['\"]?(.+?)['\"]?\\s*\\)$","^(none)$","^(.+)$"];kDt.types={time:{number:!0,min:0,units:"s|ms",implicitUnits:"ms"},percent:{number:!0,min:0,max:100,units:"%",implicitUnits:"%"},percentages:{number:!0,min:0,max:100,units:"%",implicitUnits:"%",multiple:!0},zeroOneNumber:{number:!0,min:0,max:1,unitless:!0},zeroOneNumbers:{number:!0,min:0,max:1,unitless:!0,multiple:!0},nOneOneNumber:{number:!0,min:-1,max:1,unitless:!0},nonNegativeInt:{number:!0,min:0,integer:!0,unitless:!0},nonNegativeNumber:{number:!0,min:0,unitless:!0},position:{enums:["parent","origin"]},nodeSize:{number:!0,min:0,enums:["label"]},number:{number:!0,unitless:!0},numbers:{number:!0,unitless:!0,multiple:!0},positiveNumber:{number:!0,unitless:!0,min:0,strictMin:!0},size:{number:!0,min:0},bidirectionalSize:{number:!0},bidirectionalSizeMaybePercent:{number:!0,allowPercent:!0},bidirectionalSizes:{number:!0,multiple:!0},sizeMaybePercent:{number:!0,min:0,allowPercent:!0},axisDirection:{enums:["horizontal","leftward","rightward","vertical","upward","downward","auto"]},axisDirectionExplicit:{enums:["leftward","rightward","upward","downward"]},axisDirectionPrimary:{enums:["horizontal","vertical"]},paddingRelativeTo:{enums:["width","height","average","min","max"]},bgWH:{number:!0,min:0,allowPercent:!0,enums:["auto"],multiple:!0},bgPos:{number:!0,allowPercent:!0,multiple:!0},bgRelativeTo:{enums:["inner","include-padding"],multiple:!0},bgRepeat:{enums:["repeat","repeat-x","repeat-y","no-repeat"],multiple:!0},bgFit:{enums:["none","contain","cover"],multiple:!0},bgCrossOrigin:{enums:["anonymous","use-credentials","null"],multiple:!0},bgClip:{enums:["none","node"],multiple:!0},bgContainment:{enums:["inside","over"],multiple:!0},boxSelection:{enums:["contain","overlap","none"]},color:{color:!0},colors:{color:!0,multiple:!0},fill:{enums:["solid","linear-gradient","radial-gradient"]},bool:{enums:["yes","no"]},bools:{enums:["yes","no"],multiple:!0},lineStyle:{enums:["solid","dotted","dashed"]},lineCap:{enums:["butt","round","square"]},linePosition:{enums:["center","inside","outside"]},lineJoin:{enums:["round","bevel","miter"]},borderStyle:{enums:["solid","dotted","dashed","double"]},curveStyle:{enums:["bezier","unbundled-bezier","haystack","segments","straight","straight-triangle","taxi","round-segments","round-taxi"]},radiusType:{enums:["arc-radius","influence-radius"],multiple:!0},fontFamily:{regex:'^([\\w- \\"]+(?:\\s*,\\s*[\\w- \\"]+)*)$'},fontStyle:{enums:["italic","normal","oblique"]},fontWeight:{enums:["normal","bold","bolder","lighter","100","200","300","400","500","600","800","900",100,200,300,400,500,600,700,800,900]},textDecoration:{enums:["none","underline","overline","line-through"]},textTransform:{enums:["none","uppercase","lowercase"]},textWrap:{enums:["none","wrap","ellipsis"]},textOverflowWrap:{enums:["whitespace","anywhere"]},textBackgroundShape:{enums:["rectangle","roundrectangle","round-rectangle","circle"]},nodeShape:{enums:["rectangle","roundrectangle","round-rectangle","cutrectangle","cut-rectangle","bottomroundrectangle","bottom-round-rectangle","barrel","ellipse","triangle","round-triangle","square","pentagon","round-pentagon","hexagon","round-hexagon","concavehexagon","concave-hexagon","heptagon","round-heptagon","octagon","round-octagon","tag","round-tag","star","diamond","round-diamond","vee","rhomboid","right-rhomboid","polygon"]},overlayShape:{enums:["roundrectangle","round-rectangle","ellipse"]},cornerRadius:{number:!0,min:0,units:"px|em",implicitUnits:"px",enums:["auto"]},compoundIncludeLabels:{enums:["include","exclude"]},arrowShape:{enums:["tee","triangle","triangle-tee","circle-triangle","triangle-cross","triangle-backcurve","vee","square","circle","diamond","chevron","none"]},arrowFill:{enums:["filled","hollow"]},arrowWidth:{number:!0,units:"%|px|em",implicitUnits:"px",enums:["match-line"]},display:{enums:["element","none"]},visibility:{enums:["hidden","visible"]},zCompoundDepth:{enums:["bottom","orphan","auto","top"]},zIndexCompare:{enums:["auto","manual"]},valign:{enums:["top","top-inside","center","bottom","bottom-inside"]},halign:{enums:["left","left-inside","center","right","right-inside"]},justification:{enums:["left","center","right","auto"]},textMetrics:{enums:["font","glyph"]},text:{string:!0},data:{mapping:!0,regex:r("data")},layoutData:{mapping:!0,regex:r("layoutData")},scratch:{mapping:!0,regex:r("scratch")},mapData:{mapping:!0,regex:i("mapData")},mapLayoutData:{mapping:!0,regex:i("mapLayoutData")},mapScratch:{mapping:!0,regex:i("mapScratch")},fn:{mapping:!0,fn:!0},url:{regexes:o,singleRegexMatchValue:!0},urls:{regexes:o,singleRegexMatchValue:!0,multiple:!0},propList:{propList:!0},angle:{number:!0,units:"deg|rad",implicitUnits:"rad"},textRotation:{number:!0,units:"deg|rad",implicitUnits:"rad",enums:["none","autorotate"]},polygonPointList:{number:!0,multiple:!0,evenMultiple:!0,min:-1,max:1,unitless:!0},edgeDistances:{enums:["intersection","node-position","endpoints"]},edgeEndpoint:{number:!0,multiple:!0,units:"%|px|em|deg|rad",implicitUnits:"px",enums:["inside-to-node","outside-to-node","outside-to-node-or-label","outside-to-line","outside-to-line-or-label"],singleEnum:!0,validate:function(e,t){switch(e.length){case 2:return"deg"!==t[0]&&"rad"!==t[0]&&"deg"!==t[1]&&"rad"!==t[1];case 1:return r_t(e[0])||"deg"===t[0]||"rad"===t[0];default:return!1}}},easing:{regexes:["^(spring)\\s*\\(\\s*("+e+")\\s*,\\s*("+e+")\\s*\\)$","^(cubic-bezier)\\s*\\(\\s*("+e+")\\s*,\\s*("+e+")\\s*,\\s*("+e+")\\s*,\\s*("+e+")\\s*\\)$"],enums:["linear","ease","ease-in","ease-out","ease-in-out","ease-in-sine","ease-out-sine","ease-in-out-sine","ease-in-quad","ease-out-quad","ease-in-out-quad","ease-in-cubic","ease-out-cubic","ease-in-out-cubic","ease-in-quart","ease-out-quart","ease-in-out-quart","ease-in-quint","ease-out-quint","ease-in-out-quint","ease-in-expo","ease-out-expo","ease-in-out-expo","ease-in-circ","ease-out-circ","ease-in-out-circ"]},gradientDirection:{enums:["to-bottom","to-top","to-left","to-right","to-bottom-right","to-bottom-left","to-top-right","to-top-left","to-right-bottom","to-left-bottom","to-right-top","to-left-top"]},boundsExpansion:{number:!0,multiple:!0,min:0,validate:function(e){var t=e.length;return 1===t||2===t||4===t}}};var a={zeroNonZero:function(e,t){return(null==e||null==t)&&e!==t||(0==e&&0!=t||0!=e&&0==t)},any:function(e,t){return e!=t},emptyNonEmpty:function(e,t){var n=g_t(e),r=g_t(t);return n&&!r||!n&&r}},s=kDt.types,l=[{name:"label",type:s.text,triggersBounds:a.any,triggersZOrder:a.emptyNonEmpty},{name:"text-rotation",type:s.textRotation,triggersBounds:a.any},{name:"text-margin-x",type:s.bidirectionalSize,triggersBounds:a.any},{name:"text-margin-y",type:s.bidirectionalSize,triggersBounds:a.any}],c=[{name:"source-label",type:s.text,triggersBounds:a.any},{name:"source-text-rotation",type:s.textRotation,triggersBounds:a.any},{name:"source-text-margin-x",type:s.bidirectionalSize,triggersBounds:a.any},{name:"source-text-margin-y",type:s.bidirectionalSize,triggersBounds:a.any},{name:"source-text-offset",type:s.size,triggersBounds:a.any}],u=[{name:"target-label",type:s.text,triggersBounds:a.any},{name:"target-text-rotation",type:s.textRotation,triggersBounds:a.any},{name:"target-text-margin-x",type:s.bidirectionalSize,triggersBounds:a.any},{name:"target-text-margin-y",type:s.bidirectionalSize,triggersBounds:a.any},{name:"target-text-offset",type:s.size,triggersBounds:a.any}],h=[{name:"font-family",type:s.fontFamily,triggersBounds:a.any},{name:"font-style",type:s.fontStyle,triggersBounds:a.any},{name:"font-weight",type:s.fontWeight,triggersBounds:a.any},{name:"font-size",type:s.size,triggersBounds:a.any},{name:"text-transform",type:s.textTransform,triggersBounds:a.any},{name:"text-wrap",type:s.textWrap,triggersBounds:a.any},{name:"text-overflow-wrap",type:s.textOverflowWrap,triggersBounds:a.any},{name:"text-max-width",type:s.size,triggersBounds:a.any},{name:"text-outline-width",type:s.size,triggersBounds:a.any},{name:"line-height",type:s.positiveNumber,triggersBounds:a.any}],d=[{name:"text-valign",type:s.valign,triggersBounds:a.any},{name:"text-halign",type:s.halign,triggersBounds:a.any},{name:"color",type:s.color},{name:"text-outline-color",type:s.color},{name:"text-outline-opacity",type:s.zeroOneNumber},{name:"text-background-color",type:s.color},{name:"text-background-opacity",type:s.zeroOneNumber},{name:"text-background-padding",type:s.size,triggersBounds:a.any},{name:"text-border-opacity",type:s.zeroOneNumber},{name:"text-border-color",type:s.color},{name:"text-border-width",type:s.size,triggersBounds:a.any},{name:"text-border-style",type:s.borderStyle,triggersBounds:a.any},{name:"text-background-shape",type:s.textBackgroundShape,triggersBounds:a.any},{name:"text-justification",type:s.justification},{name:"text-metrics",type:s.textMetrics},{name:"box-select-labels",type:s.bool,triggersBounds:a.any}],p=[{name:"events",type:s.bool,triggersZOrder:a.any},{name:"text-events",type:s.bool,triggersZOrder:a.any},{name:"box-selection",type:s.boxSelection,triggersZOrder:a.any}],f=[{name:"display",type:s.display,triggersZOrder:a.any,triggersBounds:a.any,triggersBoundsOfConnectedEdges:a.any,triggersBoundsOfParallelEdges:function(e,t,n){return e!==t&&"bezier"===n.pstyle("curve-style").value}},{name:"visibility",type:s.visibility,triggersZOrder:a.any},{name:"opacity",type:s.zeroOneNumber,triggersZOrder:a.zeroNonZero},{name:"text-opacity",type:s.zeroOneNumber},{name:"min-zoomed-font-size",type:s.size},{name:"z-compound-depth",type:s.zCompoundDepth,triggersZOrder:a.any},{name:"z-index-compare",type:s.zIndexCompare,triggersZOrder:a.any},{name:"z-index",type:s.number,triggersZOrder:a.any}],g=[{name:"overlay-padding",type:s.size,triggersBounds:a.any},{name:"overlay-color",type:s.color},{name:"overlay-opacity",type:s.zeroOneNumber,triggersBounds:a.zeroNonZero},{name:"overlay-shape",type:s.overlayShape,triggersBounds:a.any},{name:"overlay-corner-radius",type:s.cornerRadius}],m=[{name:"underlay-padding",type:s.size,triggersBounds:a.any},{name:"underlay-color",type:s.color},{name:"underlay-opacity",type:s.zeroOneNumber,triggersBounds:a.zeroNonZero},{name:"underlay-shape",type:s.overlayShape,triggersBounds:a.any},{name:"underlay-corner-radius",type:s.cornerRadius}],O=[{name:"transition-property",type:s.propList},{name:"transition-duration",type:s.time},{name:"transition-delay",type:s.time},{name:"transition-timing-function",type:s.easing}],A=function(e,t){return"label"===t.value?-e.poolIndex():t.pfValue},y=[{name:"height",type:s.nodeSize,triggersBounds:a.any,hashOverride:A},{name:"width",type:s.nodeSize,triggersBounds:a.any,hashOverride:A},{name:"shape",type:s.nodeShape,triggersBounds:a.any},{name:"shape-polygon-points",type:s.polygonPointList,triggersBounds:a.any},{name:"corner-radius",type:s.cornerRadius},{name:"background-color",type:s.color},{name:"background-fill",type:s.fill},{name:"background-opacity",type:s.zeroOneNumber},{name:"background-blacken",type:s.nOneOneNumber},{name:"background-gradient-stop-colors",type:s.colors},{name:"background-gradient-stop-positions",type:s.percentages},{name:"background-gradient-direction",type:s.gradientDirection},{name:"padding",type:s.sizeMaybePercent,triggersBounds:a.any},{name:"padding-relative-to",type:s.paddingRelativeTo,triggersBounds:a.any},{name:"bounds-expansion",type:s.boundsExpansion,triggersBounds:a.any}],v=[{name:"border-color",type:s.color},{name:"border-opacity",type:s.zeroOneNumber},{name:"border-width",type:s.size,triggersBounds:a.any},{name:"border-style",type:s.borderStyle},{name:"border-cap",type:s.lineCap},{name:"border-join",type:s.lineJoin},{name:"border-dash-pattern",type:s.numbers},{name:"border-dash-offset",type:s.number},{name:"border-position",type:s.linePosition}],b=[{name:"outline-color",type:s.color},{name:"outline-opacity",type:s.zeroOneNumber},{name:"outline-width",type:s.size,triggersBounds:a.any},{name:"outline-style",type:s.borderStyle},{name:"outline-offset",type:s.size,triggersBounds:a.any}],x=[{name:"background-image",type:s.urls},{name:"background-image-crossorigin",type:s.bgCrossOrigin},{name:"background-image-opacity",type:s.zeroOneNumbers},{name:"background-image-containment",type:s.bgContainment},{name:"background-image-smoothing",type:s.bools},{name:"background-position-x",type:s.bgPos},{name:"background-position-y",type:s.bgPos},{name:"background-width-relative-to",type:s.bgRelativeTo},{name:"background-height-relative-to",type:s.bgRelativeTo},{name:"background-repeat",type:s.bgRepeat},{name:"background-fit",type:s.bgFit},{name:"background-clip",type:s.bgClip},{name:"background-width",type:s.bgWH},{name:"background-height",type:s.bgWH},{name:"background-offset-x",type:s.bgPos},{name:"background-offset-y",type:s.bgPos}],w=[{name:"position",type:s.position,triggersBounds:a.any},{name:"compound-sizing-wrt-labels",type:s.compoundIncludeLabels,triggersBounds:a.any},{name:"min-width",type:s.size,triggersBounds:a.any},{name:"min-width-bias-left",type:s.sizeMaybePercent,triggersBounds:a.any},{name:"min-width-bias-right",type:s.sizeMaybePercent,triggersBounds:a.any},{name:"min-height",type:s.size,triggersBounds:a.any},{name:"min-height-bias-top",type:s.sizeMaybePercent,triggersBounds:a.any},{name:"min-height-bias-bottom",type:s.sizeMaybePercent,triggersBounds:a.any}],k=[{name:"line-style",type:s.lineStyle},{name:"line-color",type:s.color},{name:"line-fill",type:s.fill},{name:"line-cap",type:s.lineCap},{name:"line-opacity",type:s.zeroOneNumber},{name:"line-dash-pattern",type:s.numbers},{name:"line-dash-offset",type:s.number},{name:"line-outline-width",type:s.size},{name:"line-outline-color",type:s.color},{name:"line-gradient-stop-colors",type:s.colors},{name:"line-gradient-stop-positions",type:s.percentages},{name:"curve-style",type:s.curveStyle,triggersBounds:a.any,triggersBoundsOfParallelEdges:function(e,t){return e!==t&&("bezier"===e||"bezier"===t)}},{name:"haystack-radius",type:s.zeroOneNumber,triggersBounds:a.any},{name:"source-endpoint",type:s.edgeEndpoint,triggersBounds:a.any},{name:"target-endpoint",type:s.edgeEndpoint,triggersBounds:a.any},{name:"control-point-step-size",type:s.size,triggersBounds:a.any},{name:"control-point-distances",type:s.bidirectionalSizes,triggersBounds:a.any},{name:"control-point-weights",type:s.numbers,triggersBounds:a.any},{name:"segment-distances",type:s.bidirectionalSizes,triggersBounds:a.any},{name:"segment-weights",type:s.numbers,triggersBounds:a.any},{name:"segment-radii",type:s.numbers,triggersBounds:a.any},{name:"radius-type",type:s.radiusType,triggersBounds:a.any},{name:"taxi-turn",type:s.bidirectionalSizeMaybePercent,triggersBounds:a.any},{name:"taxi-turn-min-distance",type:s.size,triggersBounds:a.any},{name:"taxi-direction",type:s.axisDirection,triggersBounds:a.any},{name:"taxi-radius",type:s.number,triggersBounds:a.any},{name:"edge-distances",type:s.edgeDistances,triggersBounds:a.any},{name:"arrow-scale",type:s.positiveNumber,triggersBounds:a.any},{name:"loop-direction",type:s.angle,triggersBounds:a.any},{name:"loop-sweep",type:s.angle,triggersBounds:a.any},{name:"source-distance-from-node",type:s.size,triggersBounds:a.any},{name:"target-distance-from-node",type:s.size,triggersBounds:a.any}],S=[{name:"ghost",type:s.bool,triggersBounds:a.any},{name:"ghost-offset-x",type:s.bidirectionalSize,triggersBounds:a.any},{name:"ghost-offset-y",type:s.bidirectionalSize,triggersBounds:a.any},{name:"ghost-opacity",type:s.zeroOneNumber}],T=[{name:"selection-box-color",type:s.color},{name:"selection-box-opacity",type:s.zeroOneNumber},{name:"selection-box-border-color",type:s.color},{name:"selection-box-border-width",type:s.size},{name:"active-bg-color",type:s.color},{name:"active-bg-opacity",type:s.zeroOneNumber},{name:"active-bg-size",type:s.size},{name:"outside-texture-bg-color",type:s.color},{name:"outside-texture-bg-opacity",type:s.zeroOneNumber}],$=[];kDt.pieBackgroundN=16,$.push({name:"pie-size",type:s.sizeMaybePercent}),$.push({name:"pie-hole",type:s.sizeMaybePercent}),$.push({name:"pie-start-angle",type:s.angle});for(var _=1;_<=kDt.pieBackgroundN;_++)$.push({name:"pie-"+_+"-background-color",type:s.color}),$.push({name:"pie-"+_+"-background-size",type:s.percent}),$.push({name:"pie-"+_+"-background-opacity",type:s.zeroOneNumber});var C=[];kDt.stripeBackgroundN=16,C.push({name:"stripe-size",type:s.sizeMaybePercent}),C.push({name:"stripe-direction",type:s.axisDirectionPrimary});for(var Q=1;Q<=kDt.stripeBackgroundN;Q++)C.push({name:"stripe-"+Q+"-background-color",type:s.color}),C.push({name:"stripe-"+Q+"-background-size",type:s.percent}),C.push({name:"stripe-"+Q+"-background-opacity",type:s.zeroOneNumber});var P=[],E=kDt.arrowPrefixes=["source","mid-source","target","mid-target"];[{name:"arrow-shape",type:s.arrowShape,triggersBounds:a.any},{name:"arrow-color",type:s.color},{name:"arrow-fill",type:s.arrowFill},{name:"arrow-width",type:s.arrowWidth}].forEach(function(e){E.forEach(function(t){var n=t+"-"+e.name,r=e.type,i=e.triggersBounds;P.push({name:n,type:r,triggersBounds:i})})},{});var R=kDt.properties=[].concat(p,O,f,g,m,S,d,h,l,c,u,y,v,b,x,$,C,w,k,P,T),B=kDt.propertyGroups={behavior:p,transition:O,visibility:f,overlay:g,underlay:m,ghost:S,commonLabel:d,labelDimensions:h,mainLabel:l,sourceLabel:c,targetLabel:u,nodeBody:y,nodeBorder:v,nodeOutline:b,backgroundImage:x,pie:$,stripe:C,compound:w,edgeLine:k,edgeArrow:P,core:T},I=kDt.propertyGroupNames={};(kDt.propertyGroupKeys=Object.keys(B)).forEach(function(e){I[e]=B[e].map(function(e){return e.name}),B[e].forEach(function(t){return t.groupKey=e})});var L=kDt.aliases=[{name:"content",pointsTo:"label"},{name:"control-point-distance",pointsTo:"control-point-distances"},{name:"control-point-weight",pointsTo:"control-point-weights"},{name:"segment-distance",pointsTo:"segment-distances"},{name:"segment-weight",pointsTo:"segment-weights"},{name:"segment-radius",pointsTo:"segment-radii"},{name:"edge-text-rotation",pointsTo:"text-rotation"},{name:"padding-left",pointsTo:"padding"},{name:"padding-right",pointsTo:"padding"},{name:"padding-top",pointsTo:"padding"},{name:"padding-bottom",pointsTo:"padding"}];kDt.propertyNames=R.map(function(e){return e.name});for(var D=0;D<R.length;D++){var M=R[D];R[M.name]=M}for(var N=0;N<L.length;N++){var X=L[N],F=R[X.pointsTo],U={name:X.name,alias:!0,pointsTo:F};R.push(U),R[X.name]=U}}(),kDt.getDefaultProperty=function(e){return this.getDefaultProperties()[e]},kDt.getDefaultProperties=function(){var e=this._private;if(null!=e.defaultProperties)return e.defaultProperties;for(var t=C_t({"selection-box-color":"#ddd","selection-box-opacity":.65,"selection-box-border-color":"#aaa","selection-box-border-width":1,"active-bg-color":"black","active-bg-opacity":.15,"active-bg-size":30,"outside-texture-bg-color":"#000","outside-texture-bg-opacity":.125,events:"yes","text-events":"no","text-valign":"top","text-halign":"center","text-justification":"auto","line-height":1,color:"#000","box-selection":"contain","text-outline-color":"#000","text-outline-width":0,"text-outline-opacity":1,"text-opacity":1,"text-decoration":"none","text-transform":"none","text-wrap":"none","text-overflow-wrap":"whitespace","text-max-width":9999,"text-background-color":"#000","text-background-opacity":0,"text-background-shape":"rectangle","text-background-padding":0,"text-border-opacity":0,"text-border-width":0,"text-border-style":"solid","text-border-color":"#000","font-family":"Helvetica Neue, Helvetica, sans-serif","font-style":"normal","font-weight":"normal","font-size":16,"min-zoomed-font-size":0,"text-rotation":"none","source-text-rotation":"none","target-text-rotation":"none",visibility:"visible",display:"element",opacity:1,"z-compound-depth":"auto","z-index-compare":"auto","z-index":0,label:"","text-margin-x":0,"text-margin-y":0,"source-label":"","source-text-offset":0,"source-text-margin-x":0,"source-text-margin-y":0,"target-label":"","target-text-offset":0,"target-text-margin-x":0,"target-text-margin-y":0,"overlay-opacity":0,"overlay-color":"#000","overlay-padding":10,"overlay-shape":"round-rectangle","overlay-corner-radius":"auto","underlay-opacity":0,"underlay-color":"#000","underlay-padding":10,"underlay-shape":"round-rectangle","underlay-corner-radius":"auto","text-metrics":"font","transition-property":"none","transition-duration":0,"transition-delay":0,"transition-timing-function":"linear","box-select-labels":"no","background-blacken":0,"background-color":"#999","background-fill":"solid","background-opacity":1,"background-image":"none","background-image-crossorigin":"anonymous","background-image-opacity":1,"background-image-containment":"inside","background-image-smoothing":"yes","background-position-x":"50%","background-position-y":"50%","background-offset-x":0,"background-offset-y":0,"background-width-relative-to":"include-padding","background-height-relative-to":"include-padding","background-repeat":"no-repeat","background-fit":"none","background-clip":"node","background-width":"auto","background-height":"auto","border-color":"#000","border-opacity":1,"border-width":0,"border-style":"solid","border-dash-pattern":[4,2],"border-dash-offset":0,"border-cap":"butt","border-join":"miter","border-position":"center","outline-color":"#999","outline-opacity":1,"outline-width":0,"outline-offset":0,"outline-style":"solid",height:30,width:30,shape:"ellipse","shape-polygon-points":"-1, -1, 1, -1, 1, 1, -1, 1","corner-radius":"auto","bounds-expansion":0,"background-gradient-direction":"to-bottom","background-gradient-stop-colors":"#999","background-gradient-stop-positions":"0%",ghost:"no","ghost-offset-y":0,"ghost-offset-x":0,"ghost-opacity":0,padding:0,"padding-relative-to":"width",position:"origin","compound-sizing-wrt-labels":"include","min-width":0,"min-width-bias-left":0,"min-width-bias-right":0,"min-height":0,"min-height-bias-top":0,"min-height-bias-bottom":0},{"pie-size":"100%","pie-hole":0,"pie-start-angle":"0deg"},[{name:"pie-{{i}}-background-color",value:"black"},{name:"pie-{{i}}-background-size",value:"0%"},{name:"pie-{{i}}-background-opacity",value:1}].reduce(function(e,t){for(var n=1;n<=kDt.pieBackgroundN;n++){var r=t.name.replace("{{i}}",n),i=t.value;e[r]=i}return e},{}),{"stripe-size":"100%","stripe-direction":"horizontal"},[{name:"stripe-{{i}}-background-color",value:"black"},{name:"stripe-{{i}}-background-size",value:"0%"},{name:"stripe-{{i}}-background-opacity",value:1}].reduce(function(e,t){for(var n=1;n<=kDt.stripeBackgroundN;n++){var r=t.name.replace("{{i}}",n),i=t.value;e[r]=i}return e},{}),{"line-style":"solid","line-color":"#999","line-fill":"solid","line-cap":"butt","line-opacity":1,"line-outline-width":0,"line-outline-color":"#000","line-gradient-stop-colors":"#999","line-gradient-stop-positions":"0%","control-point-step-size":40,"control-point-weights":.5,"segment-weights":.5,"segment-distances":20,"segment-radii":15,"radius-type":"arc-radius","taxi-turn":"50%","taxi-radius":15,"taxi-turn-min-distance":10,"taxi-direction":"auto","edge-distances":"intersection","curve-style":"haystack","haystack-radius":0,"arrow-scale":1,"loop-direction":"-45deg","loop-sweep":"-90deg","source-distance-from-node":0,"target-distance-from-node":0,"source-endpoint":"outside-to-node","target-endpoint":"outside-to-node","line-dash-pattern":[6,3],"line-dash-offset":0},[{name:"arrow-shape",value:"none"},{name:"arrow-color",value:"#999"},{name:"arrow-fill",value:"filled"},{name:"arrow-width",value:1}].reduce(function(e,t){return kDt.arrowPrefixes.forEach(function(n){var r=n+"-"+t.name,i=t.value;e[r]=i}),e},{})),n={},r=0;r<this.properties.length;r++){var i=this.properties[r];if(!i.pointsTo){var o=i.name,a=t[o],s=this.parse(o,a);n[o]=s}}return e.defaultProperties=n,e.defaultProperties},kDt.addDefaultStylesheet=function(){this.selector(":parent").css({shape:"rectangle",padding:10,"background-color":"#eee","border-color":"#ccc","border-width":1}).selector("edge").css({width:3}).selector(":loop").css({"curve-style":"bezier"}).selector("edge:compound").css({"curve-style":"bezier","source-endpoint":"outside-to-line","target-endpoint":"outside-to-line"}).selector(":selected").css({"background-color":"#0169D9","line-color":"#0169D9","source-arrow-color":"#0169D9","target-arrow-color":"#0169D9","mid-source-arrow-color":"#0169D9","mid-target-arrow-color":"#0169D9"}).selector(":parent:selected").css({"background-color":"#CCE1F9","border-color":"#aec8e5"}).selector(":active").css({"overlay-color":"black","overlay-padding":10,"overlay-opacity":.25}),this.defaultLength=this.length};var SDt={parse:function(e,t,n,r){var i=this;if(i_t(t))return i.parseImplWarn(e,t,n,r);var o,a=iCt(e,""+t,n?"t":"f","mapping"===r||!0===r||!1===r||null==r?"dontcare":r),s=i.propCache=i.propCache||[];return(o=s[a])||(o=s[a]=i.parseImplWarn(e,t,n,r)),(n||"mapping"===r)&&(o=mCt(o))&&(o.value=mCt(o.value)),o},parseImplWarn:function(e,t,n,r){var i=this.parseImpl(e,t,n,r);return i||null==t||gCt("The style property `".concat(e,": ").concat(t,"` is invalid")),!i||"width"!==i.name&&"height"!==i.name||"label"!==t||gCt(i.name),i}};SDt.parseImpl=function(e,t,n,r){var i=this;e=A_t(e);var o=i.properties[e],a=t,s=i.types;if(!o)return null;if(void 0===t)return null;o.alias&&(o=o.pointsTo,e=o.name);var l=r_t(t);l&&(t=t.trim());var c,u,h=o.type;if(!h)return null;if(n&&(""===t||null===t))return{name:e,value:t,bypass:!0,deleteBypass:!0};if(i_t(t))return{name:e,value:t,strValue:"fn",mapped:s.fn,bypass:n};if(!l||r||t.length<7||"a"!==t[1]);else{if(t.length>=7&&"d"===t[0]&&(c=new RegExp(s.data.regex).exec(t))){if(n)return!1;var d=s.data;return{name:e,value:c,strValue:""+t,mapped:d,field:c[1],bypass:n}}if(t.length>=10&&"m"===t[0]&&(u=new RegExp(s.mapData.regex).exec(t))){if(n)return!1;if(h.multiple)return!1;var p=s.mapData;if(!h.color&&!h.number)return!1;var f=this.parse(e,u[4]);if(!f||f.mapped)return!1;var g=this.parse(e,u[5]);if(!g||g.mapped)return!1;if(f.pfValue===g.pfValue||f.strValue===g.strValue)return gCt(f.strValue),this.parse(e,f.strValue);if(h.color){var m=f.value,O=g.value;if(!(m[0]!==O[0]||m[1]!==O[1]||m[2]!==O[2]||m[3]!==O[3]&&(null!=m[3]&&1!==m[3]||null!=O[3]&&1!==O[3])))return!1}return{name:e,value:u,strValue:""+t,mapped:p,field:u[1],fieldMin:parseFloat(u[2]),fieldMax:parseFloat(u[3]),valueMin:f.value,valueMax:g.value,bypass:n}}}if(h.multiple&&"multiple"!==r){var A;if(A=l?t.split(/\s+/):o_t(t)?t:[t],h.evenMultiple&&A.length%2!=0)return null;for(var y=[],v=[],b=[],x="",w=!1,k=0;k<A.length;k++){var S=i.parse(e,A[k],n,"multiple");w=w||r_t(S.value),y.push(S.value),b.push(null!=S.pfValue?S.pfValue:S.value),v.push(S.units),x+=(k>0?" ":"")+S.strValue}return h.validate&&!h.validate(y,v)?null:h.singleEnum&&w?1===y.length&&r_t(y[0])?{name:e,value:y[0],strValue:y[0],bypass:n}:null:{name:e,value:y,pfValue:b,strValue:x,bypass:n,units:v}}var T,$=function(){for(var r=0;r<h.enums.length;r++){if(h.enums[r]===t)return{name:e,value:t,strValue:""+t,bypass:n}}return null};if(h.number){var _,C="px";if(h.units&&(_=h.units),h.implicitUnits&&(C=h.implicitUnits),!h.unitless)if(l){var Q="px|em"+(h.allowPercent?"|\\%":"");_&&(Q=_);var P=t.match("^("+w_t+")("+Q+")?$");P&&(t=P[1],_=P[2]||C)}else _&&!h.implicitUnits||(_=C);if(t=parseFloat(t),isNaN(t)&&void 0===h.enums)return null;if(isNaN(t)&&void 0!==h.enums)return t=a,$();if(h.integer&&!l_t(t))return null;if(void 0!==h.min&&(t<h.min||h.strictMin&&t===h.min)||void 0!==h.max&&(t>h.max||h.strictMax&&t===h.max))return null;var E={name:e,value:t,strValue:""+t+(_||""),units:_,bypass:n};return h.unitless||"px"!==_&&"em"!==_?E.pfValue=t:E.pfValue="px"!==_&&_?this.getEmSizeInPixels()*t:t,"ms"!==_&&"s"!==_||(E.pfValue="ms"===_?t:1e3*t),"deg"!==_&&"rad"!==_||(E.pfValue="rad"===_?t:(T=t,Math.PI*T/180)),"%"===_&&(E.pfValue=t/100),E}if(h.propList){var R=[],B=""+t;if("none"===B);else{for(var I=B.split(/\s*,\s*|\s+/),L=0;L<I.length;L++){var D=I[L].trim();i.properties[D]?R.push(D):gCt()}if(0===R.length)return null}return{name:e,value:R,strValue:0===R.length?"none":R.join(" "),bypass:n}}if(h.color){var M=Q_t(t);return M?{name:e,value:M,pfValue:M,strValue:"rgb("+M[0]+","+M[1]+","+M[2]+")",bypass:n}:null}if(h.regex||h.regexes){if(h.enums){var N=$();if(N)return N}for(var X=h.regexes?h.regexes:[h.regex],F=0;F<X.length;F++){var U=new RegExp(X[F]).exec(t);if(U)return{name:e,value:h.singleRegexMatchValue?U[1]:U,strValue:""+t,bypass:n}}return null}return h.string?{name:e,value:""+t,strValue:""+t,bypass:n}:h.enums?$():null};var TDt=function(e){if(!(this instanceof TDt))return new TDt(e);p_t(e)?(this._private={cy:e,coreStyle:{}},this.length=0,this.resetToDefault()):pCt("A style must have a core reference")},$Dt=TDt.prototype;$Dt.instanceString=function(){return"style"},$Dt.clear=function(){for(var e=this._private,t=e.cy.elements(),n=0;n<this.length;n++)this[n]=void 0;return this.length=0,e.contextStyles={},e.propDiffs={},this.cleanElements(t,!0),t.forEach(function(e){var t=e[0]._private;t.styleDirty=!0,t.appliedInitStyle=!1}),this},$Dt.resetToDefault=function(){return this.clear(),this.addDefaultStylesheet(),this},$Dt.core=function(e){return this._private.coreStyle[e]||this.getDefaultProperty(e)},$Dt.selector=function(e){var t="core"===e?null:new hIt(e),n=this.length++;return this[n]={selector:t,properties:[],mappedProperties:[],index:n},this},$Dt.css=function(){var e=arguments;if(1===e.length)for(var t=e[0],n=0;n<this.properties.length;n++){var r=this.properties[n],i=t[r.name];void 0===i&&(i=t[y_t(r.name)]),void 0!==i&&this.cssRule(r.name,i)}else 2===e.length&&this.cssRule(e[0],e[1]);return this},$Dt.style=$Dt.css,$Dt.cssRule=function(e,t){var n=this.parse(e,t);if(n){var r=this.length-1;this[r].properties.push(n),this[r].properties[n.name]=n,n.name.match(/pie-(\d+)-background-size/)&&n.value&&(this._private.hasPie=!0),n.name.match(/stripe-(\d+)-background-size/)&&n.value&&(this._private.hasStripe=!0),n.mapped&&this[r].mappedProperties.push(n),!this[r].selector&&(this._private.coreStyle[n.name]=n)}return this},$Dt.append=function(e){return f_t(e)?e.appendToStyle(this):o_t(e)?this.appendFromJson(e):r_t(e)&&this.appendFromString(e),this},TDt.fromJson=function(e,t){var n=new TDt(e);return n.fromJson(t),n},TDt.fromString=function(e,t){return new TDt(e).fromString(t)},[ODt,yDt,vDt,bDt,xDt,wDt,kDt,SDt].forEach(function(e){C_t($Dt,e)}),TDt.types=$Dt.types,TDt.properties=$Dt.properties,TDt.propertyGroups=$Dt.propertyGroups,TDt.propertyGroupNames=$Dt.propertyGroupNames,TDt.propertyGroupKeys=$Dt.propertyGroupKeys;var _Dt={style:function(e){e&&this.setStyle(e).update();return this._private.style},setStyle:function(e){var t=this._private;return f_t(e)?t.style=e.generateStyle(this):o_t(e)?t.style=TDt.fromJson(this,e):r_t(e)?t.style=TDt.fromString(this,e):t.style=TDt(this),t.style},updateStyle:function(){this.mutableElements().updateStyle()}},CDt={autolock:function(e){return void 0===e?this._private.autolock:(this._private.autolock=!!e,this)},autoungrabify:function(e){return void 0===e?this._private.autoungrabify:(this._private.autoungrabify=!!e,this)},autounselectify:function(e){return void 0===e?this._private.autounselectify:(this._private.autounselectify=!!e,this)},selectionType:function(e){var t=this._private;return null==t.selectionType&&(t.selectionType="single"),void 0===e?t.selectionType:("additive"!==e&&"single"!==e||(t.selectionType=e),this)},panningEnabled:function(e){return void 0===e?this._private.panningEnabled:(this._private.panningEnabled=!!e,this)},userPanningEnabled:function(e){return void 0===e?this._private.userPanningEnabled:(this._private.userPanningEnabled=!!e,this)},zoomingEnabled:function(e){return void 0===e?this._private.zoomingEnabled:(this._private.zoomingEnabled=!!e,this)},userZoomingEnabled:function(e){return void 0===e?this._private.userZoomingEnabled:(this._private.userZoomingEnabled=!!e,this)},boxSelectionEnabled:function(e){return void 0===e?this._private.boxSelectionEnabled:(this._private.boxSelectionEnabled=!!e,this)},pan:function(){var e,t,n,r,i,o=arguments,a=this._private.pan;switch(o.length){case 0:return a;case 1:if(r_t(o[0]))return a[e=o[0]];if(a_t(o[0])){if(!this._private.panningEnabled)return this;r=(n=o[0]).x,i=n.y,s_t(r)&&(a.x=r),s_t(i)&&(a.y=i),this.emit("pan viewport")}break;case 2:if(!this._private.panningEnabled)return this;t=o[1],"x"!==(e=o[0])&&"y"!==e||!s_t(t)||(a[e]=t),this.emit("pan viewport")}return this.notify("viewport"),this},panBy:function(e,t){var n,r,i,o,a,s=arguments,l=this._private.pan;if(!this._private.panningEnabled)return this;switch(s.length){case 1:a_t(e)&&(o=(i=s[0]).x,a=i.y,s_t(o)&&(l.x+=o),s_t(a)&&(l.y+=a),this.emit("pan viewport"));break;case 2:r=t,"x"!==(n=e)&&"y"!==n||!s_t(r)||(l[n]+=r),this.emit("pan viewport")}return this.notify("viewport"),this},gc:function(){this.notify("gc")},fit:function(e,t){var n=this.getFitViewport(e,t);if(n){var r=this._private;r.zoom=n.zoom,r.pan=n.pan,this.emit("pan zoom viewport"),this.notify("viewport")}return this},getFitViewport:function(e,t){if(s_t(e)&&void 0===t&&(t=e,e=void 0),this._private.panningEnabled&&this._private.zoomingEnabled){var n,r;if(r_t(e)){var i=e;e=this.$(i)}else if(a_t(r=e)&&s_t(r.x1)&&s_t(r.x2)&&s_t(r.y1)&&s_t(r.y2)){var o=e;(n={x1:o.x1,y1:o.y1,x2:o.x2,y2:o.y2}).w=n.x2-n.x1,n.h=n.y2-n.y1}else u_t(e)||(e=this.mutableElements());if(!u_t(e)||!e.empty()){n=n||e.boundingBox();var a,s=this.width(),l=this.height();if(t=s_t(t)?t:0,!isNaN(s)&&!isNaN(l)&&s>0&&l>0&&!isNaN(n.w)&&!isNaN(n.h)&&n.w>0&&n.h>0)return{zoom:a=(a=(a=Math.min((s-2*t)/n.w,(l-2*t)/n.h))>this._private.maxZoom?this._private.maxZoom:a)<this._private.minZoom?this._private.minZoom:a,pan:{x:(s-a*(n.x1+n.x2))/2,y:(l-a*(n.y1+n.y2))/2}}}}},zoomRange:function(e,t){var n=this._private;if(null==t){var r=e;e=r.min,t=r.max}return s_t(e)&&s_t(t)&&e<=t?(n.minZoom=e,n.maxZoom=t):s_t(e)&&void 0===t&&e<=n.maxZoom?n.minZoom=e:s_t(t)&&void 0===e&&t>=n.minZoom&&(n.maxZoom=t),this},minZoom:function(e){return void 0===e?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return void 0===e?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var t,n,r=this._private,i=r.pan,o=r.zoom,a=!1;if(r.zoomingEnabled||(a=!0),s_t(e)?n=e:a_t(e)&&(n=e.level,null!=e.position?t=KCt(e.position,o,i):null!=e.renderedPosition&&(t=e.renderedPosition),null==t||r.panningEnabled||(a=!0)),n=(n=n>r.maxZoom?r.maxZoom:n)<r.minZoom?r.minZoom:n,a||!s_t(n)||n===o||null!=t&&(!s_t(t.x)||!s_t(t.y)))return null;if(null!=t){var s=i,l=o,c=n;return{zoomed:!0,panned:!0,zoom:c,pan:{x:-c/l*(t.x-s.x)+t.x,y:-c/l*(t.y-s.y)+t.y}}}return{zoomed:!0,panned:!1,zoom:n,pan:i}},zoom:function(e){if(void 0===e)return this._private.zoom;var t=this.getZoomedViewport(e),n=this._private;return null!=t&&t.zoomed?(n.zoom=t.zoom,t.panned&&(n.pan.x=t.pan.x,n.pan.y=t.pan.y),this.emit("zoom"+(t.panned?" pan":"")+" viewport"),this.notify("viewport"),this):this},viewport:function(e){var t=this._private,n=!0,r=!0,i=[],o=!1,a=!1;if(!e)return this;if(s_t(e.zoom)||(n=!1),a_t(e.pan)||(r=!1),!n&&!r)return this;if(n){var s=e.zoom;s<t.minZoom||s>t.maxZoom||!t.zoomingEnabled?o=!0:(t.zoom=s,i.push("zoom"))}if(r&&(!o||!e.cancelOnFailedZoom)&&t.panningEnabled){var l=e.pan;s_t(l.x)&&(t.pan.x=l.x,a=!1),s_t(l.y)&&(t.pan.y=l.y,a=!1),a||i.push("pan")}return i.length>0&&(i.push("viewport"),this.emit(i.join(" ")),this.notify("viewport")),this},center:function(e){var t=this.getCenterPan(e);return t&&(this._private.pan=t,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(e,t){if(this._private.panningEnabled){if(r_t(e)){var n=e;e=this.mutableElements().filter(n)}else u_t(e)||(e=this.mutableElements());if(0!==e.length){var r=e.boundingBox(),i=this.width(),o=this.height();return{x:(i-(t=void 0===t?this._private.zoom:t)*(r.x1+r.x2))/2,y:(o-t*(r.y1+r.y2))/2}}}},reset:function(){return this._private.panningEnabled&&this._private.zoomingEnabled?(this.viewport({pan:{x:0,y:0},zoom:1}),this):this},invalidateSize:function(){this._private.sizeCache=null},size:function(){var e,t,n=this._private,r=n.container,i=this;return n.sizeCache=n.sizeCache||(r?(e=i.window().getComputedStyle(r),t=function(t){return parseFloat(e.getPropertyValue(t))},{width:r.clientWidth-t("padding-left")-t("padding-right"),height:r.clientHeight-t("padding-top")-t("padding-bottom")}):{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,t=this._private.zoom,n=this.renderedExtent(),r={x1:(n.x1-e.x)/t,x2:(n.x2-e.x)/t,y1:(n.y1-e.y)/t,y2:(n.y2-e.y)/t};return r.w=r.x2-r.x1,r.h=r.y2-r.y1,r},renderedExtent:function(){var e=this.width(),t=this.height();return{x1:0,y1:0,x2:e,y2:t,w:e,h:t}},multiClickDebounceTime:function(e){return e?(this._private.multiClickDebounceTime=e,this):this._private.multiClickDebounceTime}};CDt.centre=CDt.center,CDt.autolockNodes=CDt.autolock,CDt.autoungrabifyNodes=CDt.autoungrabify;var QDt={data:_Bt.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:_Bt.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:_Bt.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:_Bt.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};QDt.attr=QDt.data,QDt.removeAttr=QDt.removeData;var PDt=function(e){var t=this,n=(e=C_t({},e)).container;n&&!c_t(n)&&c_t(n[0])&&(n=n[0]);var r=n?n._cyreg:null;(r=r||{})&&r.cy&&(r.cy.destroy(),r={});var i=r.readies=r.readies||[];n&&(n._cyreg=r),r.cy=t;var o=void 0!==x$t&&void 0!==n&&!e.headless,a=e;a.layout=C_t({name:o?"grid":"null"},a.layout),a.renderer=C_t({name:o?"canvas":"null"},a.renderer);var s=function(e,t,n){return void 0!==t?t:void 0!==n?n:e},l=this._private={container:n,ready:!1,options:a,elements:new jLt(this),listeners:[],aniEles:new jLt(this),data:a.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:s(!0,a.zoomingEnabled),userZoomingEnabled:s(!0,a.userZoomingEnabled),panningEnabled:s(!0,a.panningEnabled),userPanningEnabled:s(!0,a.userPanningEnabled),boxSelectionEnabled:s(!0,a.boxSelectionEnabled),autolock:s(!1,a.autolock,a.autolockNodes),autoungrabify:s(!1,a.autoungrabify,a.autoungrabifyNodes),autounselectify:s(!1,a.autounselectify),styleEnabled:void 0===a.styleEnabled?o:a.styleEnabled,zoom:s_t(a.zoom)?a.zoom:1,pan:{x:a_t(a.pan)&&s_t(a.pan.x)?a.pan.x:0,y:a_t(a.pan)&&s_t(a.pan.y)?a.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:s(250,a.multiClickDebounceTime)};this.createEmitter(),this.selectionType(a.selectionType),this.zoomRange({min:a.minZoom,max:a.maxZoom});l.styleEnabled&&t.setStyle([]);var c=C_t({},a,a.renderer);t.initRenderer(c);!function(e,t){if(e.some(m_t))return oEt.all(e).then(t);t(e)}([a.style,a.elements],function(e){var n=e[0],o=e[1];l.styleEnabled&&t.style().append(n),function(e,n,r){t.notifications(!1);var i=t.mutableElements();i.length>0&&i.remove(),null!=e&&(a_t(e)||o_t(e))&&t.add(e),t.one("layoutready",function(e){t.notifications(!0),t.emit(e),t.one("load",n),t.emitAndNotify("load")}).one("layoutstop",function(){t.one("done",r),t.emit("done")});var o=C_t({},t._private.options.layout);o.eles=t.elements(),t.layout(o).run()}(o,function(){t.startAnimationLoop(),l.ready=!0,i_t(a.ready)&&t.on("ready",a.ready);for(var e=0;e<i.length;e++){var n=i[e];t.on("ready",n)}r&&(r.readies=[]),t.emit("ready")},a.done)})},EDt=PDt.prototype;C_t(EDt,{instanceString:function(){return"core"},isReady:function(){return this._private.ready},destroyed:function(){return this._private.destroyed},ready:function(e){return this.isReady()?this.emitter().emit("ready",[],e):this.on("ready",e),this},destroy:function(){var e=this;if(!e.destroyed())return e.stopAnimationLoop(),e.destroyRenderer(),this.emit("destroy"),e._private.destroyed=!0,e},hasElementWithId:function(e){return this._private.elements.hasElementWithId(e)},getElementById:function(e){return this._private.elements.getElementById(e)},hasCompoundNodes:function(){return this._private.hasCompoundNodes},headless:function(){return this._private.renderer.isHeadless()},styleEnabled:function(){return this._private.styleEnabled},addToPool:function(e){return this._private.elements.merge(e),this},removeFromPool:function(e){return this._private.elements.unmerge(e),this},container:function(){return this._private.container||null},window:function(){if(null==this._private.container)return x$t;var e=this._private.container.ownerDocument;return void 0===e||null==e?x$t:e.defaultView||x$t},mount:function(e){if(null!=e){var t=this,n=t._private,r=n.options;return!c_t(e)&&c_t(e[0])&&(e=e[0]),t.stopAnimationLoop(),t.destroyRenderer(),n.container=e,n.styleEnabled=!0,t.invalidateSize(),t.initRenderer(C_t({},r,r.renderer,{name:"null"===r.renderer.name?"canvas":r.renderer.name})),t.startAnimationLoop(),t.style(r.style),t.emit("mount"),t}},unmount:function(){var e=this;return e.stopAnimationLoop(),e.destroyRenderer(),e.initRenderer({name:"null"}),e.emit("unmount"),e},options:function(){return mCt(this._private.options)},json:function(e){var t=this,n=t._private,r=t.mutableElements();if(a_t(e)){if(t.startBatch(),e.elements){var i={},o=function(e,n){for(var r=[],o=[],a=0;a<e.length;a++){var s=e[a];if(s.data.id){var l=""+s.data.id,c=t.getElementById(l);i[l]=!0,0!==c.length?o.push({ele:c,json:s}):n?(s.group=n,r.push(s)):r.push(s)}else gCt()}t.add(r);for(var u=0;u<o.length;u++){var h=o[u],d=h.ele,p=h.json;d.json(p)}};if(o_t(e.elements))o(e.elements);else for(var a=["nodes","edges"],s=0;s<a.length;s++){var l=a[s],c=e.elements[l];o_t(c)&&o(c,l)}var u=t.collection();r.filter(function(e){return!i[e.id()]}).forEach(function(e){e.isParent()?u.merge(e):e.remove()}),u.forEach(function(e){return e.children().move({parent:null})}),u.forEach(function(e){return function(e){return t.getElementById(e.id())}(e).remove()})}e.style&&t.style(e.style),null!=e.zoom&&e.zoom!==n.zoom&&t.zoom(e.zoom),e.pan&&(e.pan.x===n.pan.x&&e.pan.y===n.pan.y||t.pan(e.pan)),e.data&&t.data(e.data);for(var h=["minZoom","maxZoom","zoomingEnabled","userZoomingEnabled","panningEnabled","userPanningEnabled","boxSelectionEnabled","autolock","autoungrabify","autounselectify","multiClickDebounceTime"],d=0;d<h.length;d++){var p=h[d];null!=e[p]&&t[p](e[p])}return t.endBatch(),this}var f={};!!e?f.elements=this.elements().map(function(e){return e.json()}):(f.elements={},r.forEach(function(e){var t=e.group();f.elements[t]||(f.elements[t]=[]),f.elements[t].push(e.json())})),this._private.styleEnabled&&(f.style=t.style().json()),f.data=mCt(t.data());var g=n.options;return f.zoomingEnabled=n.zoomingEnabled,f.userZoomingEnabled=n.userZoomingEnabled,f.zoom=n.zoom,f.minZoom=n.minZoom,f.maxZoom=n.maxZoom,f.panningEnabled=n.panningEnabled,f.userPanningEnabled=n.userPanningEnabled,f.pan=mCt(n.pan),f.boxSelectionEnabled=n.boxSelectionEnabled,f.renderer=mCt(g.renderer),f.hideEdgesOnViewport=g.hideEdgesOnViewport,f.textureOnViewport=g.textureOnViewport,f.wheelSensitivity=g.wheelSensitivity,f.motionBlur=g.motionBlur,f.multiClickDebounceTime=g.multiClickDebounceTime,f}}),EDt.$id=EDt.getElementById,[ZLt,sDt,uDt,hDt,dDt,pDt,gDt,mDt,_Dt,CDt,QDt].forEach(function(e){C_t(EDt,e)});var RDt={fit:!0,directed:!1,direction:"downward",padding:30,circle:!1,grid:!1,spacingFactor:1.75,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,roots:void 0,depthSort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}},BDt={maximal:!1,acyclic:!1},IDt=function(e){return e.scratch("breadthfirst")},LDt=function(e,t){return e.scratch("breadthfirst",t)};function DDt(e){this.options=C_t({},RDt,BDt,e)}DDt.prototype.run=function(){var e,t=this.options,n=t.cy,r=t.eles,i=r.nodes().filter(function(e){return e.isChildless()}),o=r,a=t.directed,s=t.acyclic||t.maximal||t.maximalAdjustments>0,l=!!t.boundingBox,c=hQt(l?t.boundingBox:structuredClone(n.extent()));if(u_t(t.roots))e=t.roots;else if(o_t(t.roots)){for(var u=[],h=0;h<t.roots.length;h++){var d=t.roots[h],p=n.getElementById(d);u.push(p)}e=n.collection(u)}else if(r_t(t.roots))e=n.$(t.roots);else if(a)e=i.roots();else{var f=r.components();e=n.collection();for(var g=function(){var t=f[m],n=t.maxDegree(!1),r=t.filter(function(e){return e.degree(!1)===n});e=e.add(r)},m=0;m<f.length;m++)g()}var O=[],A={},y=function(e,t){null==O[t]&&(O[t]=[]);var n=O[t].length;O[t].push(e),LDt(e,{index:n,depth:t})};o.bfs({roots:e,directed:t.directed,visit:function(e,t,n,r,i){var o=e[0],a=o.id();o.isChildless()&&y(o,i),A[a]=!0}});for(var v=[],b=0;b<i.length;b++){var x=i[b];A[x.id()]||v.push(x)}var w=function(e){for(var t=O[e],n=0;n<t.length;n++){var r=t[n];null!=r?LDt(r,{depth:e,index:n}):(t.splice(n,1),n--)}},k=function(e,n){for(var i=IDt(e),o=e.incomers().filter(function(e){return e.isNode()&&r.has(e)}),a=-1,s=e.id(),l=0;l<o.length;l++){var c=o[l],u=IDt(c);a=Math.max(a,u.depth)}if(i.depth<=a){if(!t.acyclic&&n[s])return null;var h=a+1;return function(e,t){var n=IDt(e),r=n.depth,i=n.index;O[r][i]=null,e.isChildless()&&y(e,t)}(e,h),n[s]=h,!0}return!1};if(a&&s){var S=[],T={},$=function(e){return S.push(e)},_=function(){return S.shift()};for(i.forEach(function(e){return S.push(e)});S.length>0;){var C=_(),Q=k(C,T);if(Q)C.outgoers().filter(function(e){return e.isNode()&&r.has(e)}).forEach($);else if(null===Q){gCt(C.id());break}}}var P=0;if(t.avoidOverlap)for(var E=0;E<i.length;E++){var R=i[E].layoutDimensions(t),B=R.w,I=R.h;P=Math.max(P,B,I)}var L={},D=function(e){if(L[e.id()])return L[e.id()];for(var t=IDt(e).depth,n=e.neighborhood(),r=0,o=0,a=0;a<n.length;a++){var s=n[a];if(!s.isEdge()&&!s.isParent()&&i.has(s)){var l=IDt(s);if(null!=l){var c=l.index,u=l.depth;if(null!=c&&null!=u){var h=O[u].length;u<t&&(r+=c/h,o++)}}}}return r/=o=Math.max(1,o),0===o&&(r=0),L[e.id()]=r,r},M=function(e,t){var n=D(e)-D(t);return 0===n?__t(e.id(),t.id()):n};void 0!==t.depthSort&&(M=t.depthSort);for(var N=O.length,X=0;X<N;X++)O[X].sort(M),w(X);for(var F=[],U=0;U<v.length;U++)F.push(v[U]);F.length&&(O.unshift(F),N=O.length,function(){for(var e=0;e<N;e++)w(e)}());for(var z=0,q=0;q<N;q++)z=Math.max(O[q].length,z);var V=c.x1+c.w/2,W=c.y1+c.h/2,j=i.reduce(function(e,n){return r=n.boundingBox({includeLabels:t.nodeDimensionsIncludeLabels}),{w:-1===e.w?r.w:(e.w+r.w)/2,h:-1===e.h?r.h:(e.h+r.h)/2};var r},{w:-1,h:-1}),Y=Math.max(1===N?0:l?(c.h-2*t.padding-j.h)/(N-1):(c.h-2*t.padding-j.h)/(N+1),P),Z=O.reduce(function(e,t){return Math.max(e,t.length)},0),G={downward:0,leftward:90,upward:180,rightward:-90};-1===Object.keys(G).indexOf(t.direction)&&pCt("Invalid direction '".concat(t.direction,"' specified for breadthfirst layout. Valid values are: ").concat(Object.keys(G).join(", ")));return r.nodes().layoutPositions(this,t,function(e){return aCt(function(e){var n=IDt(e),r=n.depth,i=n.index;if(t.circle){var o=Math.min(c.w/2/N,c.h/2/N),a=(o=Math.max(o,P))*r+o-(N>0&&O[0].length<=3?o/2:0),s=2*Math.PI/O[r].length*i;return 0===r&&1===O[0].length&&(a=1),{x:V+a*Math.cos(s),y:W+a*Math.sin(s)}}var u=O[r].length,h=Math.max(1===u?0:l?(c.w-2*t.padding-j.w)/((t.grid?Z:u)-1):(c.w-2*t.padding-j.w)/((t.grid?Z:u)+1),P);return{x:V+(i+1-(u+1)/2)*h,y:W+(r+1-(N+1)/2)*Y}}(e),c,G[t.direction])}),this};var MDt={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:1.5*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function NDt(e){this.options=C_t({},MDt,e)}NDt.prototype.run=function(){var e=this.options,t=e,n=e.cy,r=t.eles,i=void 0!==t.counterclockwise?!t.counterclockwise:t.clockwise,o=r.nodes().not(":parent");t.sort&&(o=o.sort(t.sort));for(var a,s=hQt(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()}),l=s.x1+s.w/2,c=s.y1+s.h/2,u=(void 0===t.sweep?2*Math.PI-2*Math.PI/o.length:t.sweep)/Math.max(1,o.length-1),h=0,d=0;d<o.length;d++){var p=o[d].layoutDimensions(t),f=p.w,g=p.h;h=Math.max(h,f,g)}if(a=s_t(t.radius)?t.radius:o.length<=1?0:Math.min(s.h,s.w)/2-h,o.length>1&&t.avoidOverlap){h*=1.75;var m=Math.cos(u)-Math.cos(0),O=Math.sin(u)-Math.sin(0),A=Math.sqrt(h*h/(m*m+O*O));a=Math.max(A,a)}return r.nodes().layoutPositions(this,t,function(e,n){var r=t.startAngle+n*u*(i?1:-1),o=a*Math.cos(r),s=a*Math.sin(r);return{x:l+o,y:c+s}}),this};var XDt,FDt={fit:!0,padding:30,startAngle:1.5*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function UDt(e){this.options=C_t({},FDt,e)}UDt.prototype.run=function(){for(var e=this.options,t=e,n=void 0!==t.counterclockwise?!t.counterclockwise:t.clockwise,r=e.cy,i=t.eles,o=i.nodes().not(":parent"),a=hQt(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),s=a.x1+a.w/2,l=a.y1+a.h/2,c=[],u=0,h=0;h<o.length;h++){var d,p=o[h];d=t.concentric(p),c.push({value:d,node:p}),p._private.scratch.concentric=d}o.updateStyle();for(var f=0;f<o.length;f++){var g=o[f].layoutDimensions(t);u=Math.max(u,g.w,g.h)}c.sort(function(e,t){return t.value-e.value});for(var m=t.levelWidth(o),O=[[]],A=O[0],y=0;y<c.length;y++){var v=c[y];if(A.length>0)Math.abs(A[0].value-v.value)>=m&&(A=[],O.push(A));A.push(v)}var b=u+t.minNodeSpacing;if(!t.avoidOverlap){var x=O.length>0&&O[0].length>1,w=(Math.min(a.w,a.h)/2-b)/(O.length+x?1:0);b=Math.min(b,w)}for(var k=0,S=0;S<O.length;S++){var T=O[S],$=void 0===t.sweep?2*Math.PI-2*Math.PI/T.length:t.sweep,_=T.dTheta=$/Math.max(1,T.length-1);if(T.length>1&&t.avoidOverlap){var C=Math.cos(_)-Math.cos(0),Q=Math.sin(_)-Math.sin(0),P=Math.sqrt(b*b/(C*C+Q*Q));k=Math.max(P,k)}T.r=k,k+=b}if(t.equidistant){for(var E=0,R=0,B=0;B<O.length;B++){var I=O[B].r-R;E=Math.max(E,I)}R=0;for(var L=0;L<O.length;L++){var D=O[L];0===L&&(R=D.r),D.r=R,R+=E}}for(var M={},N=0;N<O.length;N++)for(var X=O[N],F=X.dTheta,U=X.r,z=0;z<X.length;z++){var q=X[z],V=t.startAngle+(n?1:-1)*F*z,W={x:s+U*Math.cos(V),y:l+U*Math.sin(V)};M[q.node.id()]=W}return i.nodes().layoutPositions(this,t,function(e){var t=e.id();return M[t]}),this};var zDt={ready:function(){},stop:function(){},animate:!0,animationEasing:void 0,animationDuration:void 0,animateFilter:function(e,t){return!0},animationThreshold:250,refresh:20,fit:!0,padding:30,boundingBox:void 0,nodeDimensionsIncludeLabels:!1,randomize:!1,componentSpacing:40,nodeRepulsion:function(e){return 2048},nodeOverlap:4,idealEdgeLength:function(e){return 32},edgeElasticity:function(e){return 32},nestingFactor:1.2,gravity:1,numIter:1e3,initialTemp:1e3,coolingFactor:.99,minTemp:1};function qDt(e){this.options=C_t({},zDt,e),this.options.layout=this;var t=this.options.eles.nodes(),n=this.options.eles.edges().filter(function(e){var n=e.source().data("id"),r=e.target().data("id"),i=t.some(function(e){return e.data("id")===n}),o=t.some(function(e){return e.data("id")===r});return!i||!o});this.options.eles=this.options.eles.not(n)}qDt.prototype.run=function(){var e=this.options,t=e.cy,n=this;n.stopped=!1,!0!==e.animate&&!1!==e.animate||n.emit({type:"layoutstart",layout:n}),XDt=!0===e.debug;var r=VDt(t,n,e);XDt&&(void 0)(r),e.randomize&&YDt(r);var i=Y_t(),o=function(){GDt(r,t,e),!0===e.fit&&t.fit(e.padding)},a=function(t){return!(n.stopped||t>=e.numIter)&&(HDt(r,e),r.temperature=r.temperature*e.coolingFactor,!(r.temperature<e.minTemp))},s=function(){if(!0===e.animate||!1===e.animate)o(),n.one("layoutstop",e.stop),n.emit({type:"layoutstop",layout:n});else{var t=e.eles.nodes(),i=ZDt(r,e,t);t.layoutPositions(n,e,i)}},l=0,c=!0;if(!0===e.animate){var u=function(){for(var t=0;c&&t<e.refresh;)c=a(l),l++,t++;c?(Y_t()-i>=e.animationThreshold&&o(),j_t(u)):(cMt(r,e),s())};u()}else{for(;c;)c=a(l),l++;cMt(r,e),s()}return this},qDt.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this},qDt.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var VDt=function(e,t,n){for(var r=n.eles.edges(),i=n.eles.nodes(),o=hQt(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),a={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:i.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:r.size(),temperature:n.initialTemp,clientWidth:o.w,clientHeight:o.h,boundingBox:o},s=n.eles.components(),l={},c=0;c<s.length;c++)for(var u=s[c],h=0;h<u.length;h++){l[u[h].id()]=c}for(c=0;c<a.nodeSize;c++){var d=(O=i[c]).layoutDimensions(n);(R={}).isLocked=O.locked(),R.id=O.data("id"),R.parentId=O.data("parent"),R.cmptId=l[O.id()],R.children=[],R.positionX=O.position("x"),R.positionY=O.position("y"),R.offsetX=0,R.offsetY=0,R.height=d.w,R.width=d.h,R.maxX=R.positionX+R.width/2,R.minX=R.positionX-R.width/2,R.maxY=R.positionY+R.height/2,R.minY=R.positionY-R.height/2,R.padLeft=parseFloat(O.style("padding")),R.padRight=parseFloat(O.style("padding")),R.padTop=parseFloat(O.style("padding")),R.padBottom=parseFloat(O.style("padding")),R.nodeRepulsion=i_t(n.nodeRepulsion)?n.nodeRepulsion(O):n.nodeRepulsion,a.layoutNodes.push(R),a.idToIndex[R.id]=c}var p=[],f=0,g=-1,m=[];for(c=0;c<a.nodeSize;c++){var O,A=(O=a.layoutNodes[c]).parentId;null!=A?a.layoutNodes[a.idToIndex[A]].children.push(O.id):(p[++g]=O.id,m.push(O.id))}for(a.graphSet.push(m);f<=g;){var y=p[f++],v=a.idToIndex[y],b=a.layoutNodes[v].children;if(b.length>0){a.graphSet.push(b);for(c=0;c<b.length;c++)p[++g]=b[c]}}for(c=0;c<a.graphSet.length;c++){var x=a.graphSet[c];for(h=0;h<x.length;h++){var w=a.idToIndex[x[h]];a.indexToGraph[w]=c}}for(c=0;c<a.edgeSize;c++){var k=r[c],S={};S.id=k.data("id"),S.sourceId=k.data("source"),S.targetId=k.data("target");var T=i_t(n.idealEdgeLength)?n.idealEdgeLength(k):n.idealEdgeLength,$=i_t(n.edgeElasticity)?n.edgeElasticity(k):n.edgeElasticity,_=a.idToIndex[S.sourceId],C=a.idToIndex[S.targetId];if(a.indexToGraph[_]!=a.indexToGraph[C]){for(var Q=WDt(S.sourceId,S.targetId,a),P=a.graphSet[Q],E=0,R=a.layoutNodes[_];-1===P.indexOf(R.id);)R=a.layoutNodes[a.idToIndex[R.parentId]],E++;for(R=a.layoutNodes[C];-1===P.indexOf(R.id);)R=a.layoutNodes[a.idToIndex[R.parentId]],E++;T*=E*n.nestingFactor}S.idealLength=T,S.elasticity=$,a.layoutEdges.push(S)}return a},WDt=function(e,t,n){var r=jDt(e,t,0,n);return 2>r.count?0:r.graph},jDt=function(e,t,n,r){var i=r.graphSet[n];if(-1<i.indexOf(e)&&-1<i.indexOf(t))return{count:2,graph:n};for(var o=0,a=0;a<i.length;a++){var s=i[a],l=r.idToIndex[s],c=r.layoutNodes[l].children;if(0!==c.length){var u=r.indexToGraph[r.idToIndex[c[0]]],h=jDt(e,t,u,r);if(0!==h.count){if(1!==h.count)return h;if(2===++o)break}}}return{count:o,graph:n}},YDt=function(e,t){for(var n=e.clientWidth,r=e.clientHeight,i=0;i<e.nodeSize;i++){var o=e.layoutNodes[i];0!==o.children.length||o.isLocked||(o.positionX=Math.random()*n,o.positionY=Math.random()*r)}},ZDt=function(e,t,n){var r=e.boundingBox,i={x1:1/0,x2:-1/0,y1:1/0,y2:-1/0};return t.boundingBox&&(n.forEach(function(t){var n=e.layoutNodes[e.idToIndex[t.data("id")]];i.x1=Math.min(i.x1,n.positionX),i.x2=Math.max(i.x2,n.positionX),i.y1=Math.min(i.y1,n.positionY),i.y2=Math.max(i.y2,n.positionY)}),i.w=i.x2-i.x1,i.h=i.y2-i.y1),function(n,o){var a=e.layoutNodes[e.idToIndex[n.data("id")]];if(t.boundingBox){var s=0===i.w?.5:(a.positionX-i.x1)/i.w,l=0===i.h?.5:(a.positionY-i.y1)/i.h;return{x:r.x1+s*r.w,y:r.y1+l*r.h}}return{x:a.positionX,y:a.positionY}}},GDt=function(e,t,n){var r=n.layout,i=n.eles.nodes(),o=ZDt(e,n,i);i.positions(o),!0!==e.ready&&(e.ready=!0,r.one("layoutready",n.ready),r.emit({type:"layoutready",layout:this}))},HDt=function(e,t,n){KDt(e,t),rMt(e),iMt(e,t),oMt(e),aMt(e)},KDt=function(e,t){for(var n=0;n<e.graphSet.length;n++)for(var r=e.graphSet[n],i=r.length,o=0;o<i;o++)for(var a=e.layoutNodes[e.idToIndex[r[o]]],s=o+1;s<i;s++){var l=e.layoutNodes[e.idToIndex[r[s]]];eMt(a,l,e,t)}},JDt=function(e){return-e+2*e*Math.random()},eMt=function(e,t,n,r){if(e.cmptId===t.cmptId||n.isCompound){var i=t.positionX-e.positionX,o=t.positionY-e.positionY;0===i&&0===o&&(i=JDt(1),o=JDt(1));var a=tMt(e,t,i,o);if(a>0)var s=(c=r.nodeOverlap*a)*i/(g=Math.sqrt(i*i+o*o)),l=c*o/g;else{var c,u=nMt(e,i,o),h=nMt(t,-1*i,-1*o),d=h.x-u.x,p=h.y-u.y,f=d*d+p*p,g=Math.sqrt(f);s=(c=(e.nodeRepulsion+t.nodeRepulsion)/f)*d/g,l=c*p/g}e.isLocked||(e.offsetX-=s,e.offsetY-=l),t.isLocked||(t.offsetX+=s,t.offsetY+=l)}},tMt=function(e,t,n,r){if(n>0)var i=e.maxX-t.minX;else i=t.maxX-e.minX;if(r>0)var o=e.maxY-t.minY;else o=t.maxY-e.minY;return i>=0&&o>=0?Math.sqrt(i*i+o*o):0},nMt=function(e,t,n){var r=e.positionX,i=e.positionY,o=e.height||1,a=e.width||1,s=n/t,l=o/a,c={};return 0===t&&0<n||0===t&&0>n?(c.x=r,c.y=i+o/2,c):0<t&&-1*l<=s&&s<=l?(c.x=r+a/2,c.y=i+a*n/2/t,c):0>t&&-1*l<=s&&s<=l?(c.x=r-a/2,c.y=i-a*n/2/t,c):0<n&&(s<=-1*l||s>=l)?(c.x=r+o*t/2/n,c.y=i+o/2,c):0>n&&(s<=-1*l||s>=l)?(c.x=r-o*t/2/n,c.y=i-o/2,c):c},rMt=function(e,t){for(var n=0;n<e.edgeSize;n++){var r=e.layoutEdges[n],i=e.idToIndex[r.sourceId],o=e.layoutNodes[i],a=e.idToIndex[r.targetId],s=e.layoutNodes[a],l=s.positionX-o.positionX,c=s.positionY-o.positionY;if(0!==l||0!==c){var u=nMt(o,l,c),h=nMt(s,-1*l,-1*c),d=h.x-u.x,p=h.y-u.y,f=Math.sqrt(d*d+p*p),g=Math.pow(r.idealLength-f,2)/r.elasticity;if(0!==f)var m=g*d/f,O=g*p/f;else m=0,O=0;o.isLocked||(o.offsetX+=m,o.offsetY+=O),s.isLocked||(s.offsetX-=m,s.offsetY-=O)}}},iMt=function(e,t){if(0!==t.gravity)for(var n=0;n<e.graphSet.length;n++){var r=e.graphSet[n],i=r.length;if(0===n)var o=e.clientHeight/2,a=e.clientWidth/2;else{var s=e.layoutNodes[e.idToIndex[r[0]]],l=e.layoutNodes[e.idToIndex[s.parentId]];o=l.positionX,a=l.positionY}for(var c=0;c<i;c++){var u=e.layoutNodes[e.idToIndex[r[c]]];if(!u.isLocked){var h=o-u.positionX,d=a-u.positionY,p=Math.sqrt(h*h+d*d);if(p>1){var f=t.gravity*h/p,g=t.gravity*d/p;u.offsetX+=f,u.offsetY+=g}}}}},oMt=function(e,t){var n=[],r=0,i=-1;for(n.push.apply(n,e.graphSet[0]),i+=e.graphSet[0].length;r<=i;){var o=n[r++],a=e.idToIndex[o],s=e.layoutNodes[a],l=s.children;if(0<l.length&&!s.isLocked){for(var c=s.offsetX,u=s.offsetY,h=0;h<l.length;h++){var d=e.layoutNodes[e.idToIndex[l[h]]];d.offsetX+=c,d.offsetY+=u,n[++i]=l[h]}s.offsetX=0,s.offsetY=0}}},aMt=function(e,t){for(var n=0;n<e.nodeSize;n++){0<(i=e.layoutNodes[n]).children.length&&(i.maxX=void 0,i.minX=void 0,i.maxY=void 0,i.minY=void 0)}for(n=0;n<e.nodeSize;n++){if(!(0<(i=e.layoutNodes[n]).children.length||i.isLocked)){var r=sMt(i.offsetX,i.offsetY,e.temperature);i.positionX+=r.x,i.positionY+=r.y,i.offsetX=0,i.offsetY=0,i.minX=i.positionX-i.width,i.maxX=i.positionX+i.width,i.minY=i.positionY-i.height,i.maxY=i.positionY+i.height,lMt(i,e)}}for(n=0;n<e.nodeSize;n++){var i;0<(i=e.layoutNodes[n]).children.length&&!i.isLocked&&(i.positionX=(i.maxX+i.minX)/2,i.positionY=(i.maxY+i.minY)/2,i.width=i.maxX-i.minX,i.height=i.maxY-i.minY)}},sMt=function(e,t,n){var r=Math.sqrt(e*e+t*t);if(r>n)var i={x:n*e/r,y:n*t/r};else i={x:e,y:t};return i},lMt=function(e,t){var n=e.parentId;if(null!=n){var r=t.layoutNodes[t.idToIndex[n]],i=!1;return(null==r.maxX||e.maxX+r.padRight>r.maxX)&&(r.maxX=e.maxX+r.padRight,i=!0),(null==r.minX||e.minX-r.padLeft<r.minX)&&(r.minX=e.minX-r.padLeft,i=!0),(null==r.maxY||e.maxY+r.padBottom>r.maxY)&&(r.maxY=e.maxY+r.padBottom,i=!0),(null==r.minY||e.minY-r.padTop<r.minY)&&(r.minY=e.minY-r.padTop,i=!0),i?lMt(r,t):void 0}},cMt=function(e,t){for(var n=e.layoutNodes,r=[],i=0;i<n.length;i++){var o=n[i],a=o.cmptId;(r[a]=r[a]||[]).push(o)}var s=0;for(i=0;i<r.length;i++){if(g=r[i]){g.x1=1/0,g.x2=-1/0,g.y1=1/0,g.y2=-1/0;for(var l=0;l<g.length;l++){var c=g[l];g.x1=Math.min(g.x1,c.positionX-c.width/2),g.x2=Math.max(g.x2,c.positionX+c.width/2),g.y1=Math.min(g.y1,c.positionY-c.height/2),g.y2=Math.max(g.y2,c.positionY+c.height/2)}g.w=g.x2-g.x1,g.h=g.y2-g.y1,s+=g.w*g.h}}r.sort(function(e,t){return t.w*t.h-e.w*e.h});var u=0,h=0,d=0,p=0,f=Math.sqrt(s)*e.clientWidth/e.clientHeight;for(i=0;i<r.length;i++){var g;if(g=r[i]){for(l=0;l<g.length;l++){(c=g[l]).isLocked||(c.positionX+=u-g.x1,c.positionY+=h-g.y1)}u+=g.w+t.componentSpacing,d+=g.w+t.componentSpacing,p=Math.max(p,g.h),d>f&&(h+=p+t.componentSpacing,u=0,d=0,p=0)}}},uMt={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function hMt(e){this.options=C_t({},uMt,e)}hMt.prototype.run=function(){var e=this.options,t=e,n=e.cy,r=t.eles,i=r.nodes().not(":parent");t.sort&&(i=i.sort(t.sort));var o=hQt(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()});if(0===o.h||0===o.w)r.nodes().layoutPositions(this,t,function(e){return{x:o.x1,y:o.y1}});else{var a=i.size(),s=Math.sqrt(a*o.h/o.w),l=Math.round(s),c=Math.round(o.w/o.h*s),u=function(e){if(null==e)return Math.min(l,c);Math.min(l,c)==l?l=e:c=e},h=function(e){if(null==e)return Math.max(l,c);Math.max(l,c)==l?l=e:c=e},d=t.rows,p=null!=t.cols?t.cols:t.columns;if(null!=d&&null!=p)l=d,c=p;else if(null!=d&&null==p)l=d,c=Math.ceil(a/l);else if(null==d&&null!=p)c=p,l=Math.ceil(a/c);else if(c*l>a){var f=u(),g=h();(f-1)*g>=a?u(f-1):(g-1)*f>=a&&h(g-1)}else for(;c*l<a;){var m=u(),O=h();(O+1)*m>=a?h(O+1):u(m+1)}var A=o.w/c,y=o.h/l;if(t.condense&&(A=0,y=0),t.avoidOverlap)for(var v=0;v<i.length;v++){var b=i[v],x=b._private.position;null!=x.x&&null!=x.y||(x.x=0,x.y=0);var w=b.layoutDimensions(t),k=t.avoidOverlapPadding,S=w.w+k,T=w.h+k;A=Math.max(A,S),y=Math.max(y,T)}for(var $={},_=function(e,t){return!!$["c-"+e+"-"+t]},C=function(e,t){$["c-"+e+"-"+t]=!0},Q=0,P=0,E=function(){++P>=c&&(P=0,Q++)},R={},B=0;B<i.length;B++){var I=i[B],L=t.position(I);if(L&&(void 0!==L.row||void 0!==L.col)){var D={row:L.row,col:L.col};if(void 0===D.col)for(D.col=0;_(D.row,D.col);)D.col++;else if(void 0===D.row)for(D.row=0;_(D.row,D.col);)D.row++;R[I.id()]=D,C(D.row,D.col)}}i.layoutPositions(this,t,function(e,t){var n,r;if(e.locked()||e.isParent())return!1;var i=R[e.id()];if(i)n=i.col*A+A/2+o.x1,r=i.row*y+y/2+o.y1;else{for(;_(Q,P);)E();n=P*A+A/2+o.x1,r=Q*y+y/2+o.y1,C(Q,P),E()}return{x:n,y:r}})}return this};var dMt={ready:function(){},stop:function(){}};function pMt(e){this.options=C_t({},dMt,e)}pMt.prototype.run=function(){var e=this.options,t=e.eles,n=this;return e.cy,n.emit("layoutstart"),t.nodes().positions(function(){return{x:0,y:0}}),n.one("layoutready",e.ready),n.emit("layoutready"),n.one("layoutstop",e.stop),n.emit("layoutstop"),this},pMt.prototype.stop=function(){return this};var fMt={positions:void 0,zoom:void 0,pan:void 0,fit:!0,padding:30,spacingFactor:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function gMt(e){this.options=C_t({},fMt,e)}gMt.prototype.run=function(){var e=this.options,t=e.eles.nodes(),n=i_t(e.positions);return t.layoutPositions(this,e,function(t,r){var i=function(t){if(null==e.positions)return{x:(r=t.position()).x,y:r.y};var r;if(n)return e.positions(t);var i=e.positions[t._private.data.id];return null==i?null:i}(t);return!t.locked()&&null!=i&&i}),this};var mMt={fit:!0,padding:30,boundingBox:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function OMt(e){this.options=C_t({},mMt,e)}OMt.prototype.run=function(){var e=this.options,t=e.cy,n=e.eles,r=hQt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:t.width(),h:t.height()});return n.nodes().layoutPositions(this,e,function(e,t){return{x:r.x1+Math.round(Math.random()*r.w),y:r.y1+Math.round(Math.random()*r.h)}}),this};var AMt=[{name:"breadthfirst",impl:DDt},{name:"circle",impl:NDt},{name:"concentric",impl:UDt},{name:"cose",impl:qDt},{name:"grid",impl:hMt},{name:"null",impl:pMt},{name:"preset",impl:gMt},{name:"random",impl:OMt}];function yMt(e){this.options=e,this.notifications=0}var vMt=function(){},bMt=function(){throw new Error("A headless instance can not render images")};yMt.prototype={recalculateRenderedStyle:vMt,notify:function(){this.notifications++},init:vMt,isHeadless:function(){return!0},png:bMt,jpg:bMt};var xMt={arrowShapeWidth:.3,registerArrowShapes:function(){var e=this.arrowShapes={},t=this,n=function(e,t,n,r,i,o,a){var s=i.x-n/2-a,l=i.x+n/2+a,c=i.y-n/2-a,u=i.y+n/2+a;return s<=e&&e<=l&&c<=t&&t<=u},r=function(e,t,n,r,i){var o=e*Math.cos(r)-t*Math.sin(r),a=(e*Math.sin(r)+t*Math.cos(r))*n;return{x:o*n+i.x,y:a+i.y}},i=function(e,t,n,i){for(var o=[],a=0;a<e.length;a+=2){var s=e[a],l=e[a+1];o.push(r(s,l,t,n,i))}return o},o=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r.x,r.y)}return t},a=function(e){return e.pstyle("width").pfValue*e.pstyle("arrow-scale").pfValue*2},s=function(r,s){r_t(s)&&(s=e[s]),e[r]=C_t({name:r,points:[-.15,-.3,.15,-.3,.15,.3,-.15,.3],collide:function(e,t,n,r,a,s){var l=o(i(this.points,n+2*s,r,a));return _Qt(e,t,l)},roughCollide:n,draw:function(e,n,r,o){var a=i(this.points,n,r,o);t.arrowShapeImpl("polygon")(e,a)},spacing:function(e){return 0},gap:a},s)};s("none",{collide:uCt,roughCollide:uCt,draw:dCt,spacing:hCt,gap:hCt}),s("triangle",{points:[-.15,-.3,0,0,.15,-.3]}),s("arrow","triangle"),s("triangle-backcurve",{points:e.triangle.points,controlPoint:[0,-.15],roughCollide:n,draw:function(e,n,o,a,s){var l=i(this.points,n,o,a),c=this.controlPoint,u=r(c[0],c[1],n,o,a);t.arrowShapeImpl(this.name)(e,l,u)},gap:function(e){return.8*a(e)}}),s("triangle-tee",{points:[0,0,.15,-.3,-.15,-.3,0,0],pointsTee:[-.15,-.4,-.15,-.5,.15,-.5,.15,-.4],collide:function(e,t,n,r,a,s,l){var c=o(i(this.points,n+2*l,r,a)),u=o(i(this.pointsTee,n+2*l,r,a));return _Qt(e,t,c)||_Qt(e,t,u)},draw:function(e,n,r,o,a){var s=i(this.points,n,r,o),l=i(this.pointsTee,n,r,o);t.arrowShapeImpl(this.name)(e,s,l)}}),s("circle-triangle",{radius:.15,pointsTr:[0,-.15,.15,-.45,-.15,-.45,0,-.15],collide:function(e,t,n,r,a,s,l){var c=a,u=Math.pow(c.x-e,2)+Math.pow(c.y-t,2)<=Math.pow((n+2*l)*this.radius,2),h=o(i(this.points,n+2*l,r,a));return _Qt(e,t,h)||u},draw:function(e,n,r,o,a){var s=i(this.pointsTr,n,r,o);t.arrowShapeImpl(this.name)(e,s,o.x,o.y,this.radius*n)},spacing:function(e){return t.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.radius}}),s("triangle-cross",{points:[0,0,.15,-.3,-.15,-.3,0,0],baseCrossLinePts:[-.15,-.4,-.15,-.4,.15,-.4,.15,-.4],crossLinePts:function(e,t){var n=this.baseCrossLinePts.slice(),r=t/e;return n[3]=n[3]-r,n[5]=n[5]-r,n},collide:function(e,t,n,r,a,s,l){var c=o(i(this.points,n+2*l,r,a)),u=o(i(this.crossLinePts(n,s),n+2*l,r,a));return _Qt(e,t,c)||_Qt(e,t,u)},draw:function(e,n,r,o,a){var s=i(this.points,n,r,o),l=i(this.crossLinePts(n,a),n,r,o);t.arrowShapeImpl(this.name)(e,s,l)}}),s("vee",{points:[-.15,-.3,0,0,.15,-.3,0,-.15],gap:function(e){return.525*a(e)}}),s("circle",{radius:.15,collide:function(e,t,n,r,i,o,a){var s=i;return Math.pow(s.x-e,2)+Math.pow(s.y-t,2)<=Math.pow((n+2*a)*this.radius,2)},draw:function(e,n,r,i,o){t.arrowShapeImpl(this.name)(e,i.x,i.y,this.radius*n)},spacing:function(e){return t.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.radius}}),s("tee",{points:[-.15,0,-.15,-.1,.15,-.1,.15,0],spacing:function(e){return 1},gap:function(e){return 1}}),s("square",{points:[-.15,0,.15,0,.15,-.3,-.15,-.3]}),s("diamond",{points:[-.15,-.15,0,-.3,.15,-.15,0,0],gap:function(e){return e.pstyle("width").pfValue*e.pstyle("arrow-scale").value}}),s("chevron",{points:[0,0,-.15,-.15,-.1,-.2,0,-.1,.1,-.2,.15,-.15],gap:function(e){return.95*e.pstyle("width").pfValue*e.pstyle("arrow-scale").value}})}},wMt={projectIntoViewport:function(e,t){var n=this.cy,r=this.findContainerClientCoords(),i=r[0],o=r[1],a=r[4],s=n.pan(),l=n.zoom();return[((e-i)/a-s.x)/l,((t-o)/a-s.y)/l]},findContainerClientCoords:function(){if(this.containerBB)return this.containerBB;var e=this.container,t=e.getBoundingClientRect(),n=this.cy.window().getComputedStyle(e),r=function(e){return parseFloat(n.getPropertyValue(e))},i=r("padding-left"),o=r("padding-right"),a=r("padding-top"),s=r("padding-bottom"),l=r("border-left-width"),c=r("border-right-width"),u=r("border-top-width"),h=(r("border-bottom-width"),e.clientWidth),d=e.clientHeight,p=i+o,f=a+s,g=l+c,m=t.width/(h+g),O=h-p,A=d-f,y=t.left+i+l,v=t.top+a+u;return this.containerBB=[y,v,O,A,m]},invalidateContainerClientCoordsCache:function(){this.containerBB=null},findNearestElement:function(e,t,n,r){return this.findNearestElements(e,t,n,r)[0]},findNearestElements:function(e,t,n,r){var i,o,a=this,s=this,l=s.getCachedZSortedEles(),c=[],u=s.cy.zoom(),h=s.cy.hasCompoundNodes(),d=(r?24:8)/u,p=(r?8:2)/u,f=(r?8:2)/u,g=1/0;function m(e,t){if(e.isNode()){if(o)return;o=e,c.push(e)}if(e.isEdge()&&(null==t||t<g))if(i){if(i.pstyle("z-compound-depth").value===e.pstyle("z-compound-depth").value&&i.pstyle("z-compound-depth").value===e.pstyle("z-compound-depth").value)for(var n=0;n<c.length;n++)if(c[n].isEdge()){c[n]=e,i=e,g=null!=t?t:g;break}}else c.push(e),i=e,g=null!=t?t:g}function O(n){var r=n.outerWidth()+2*p,i=n.outerHeight()+2*p,o=r/2,l=i/2,c=n.position(),u="auto"===n.pstyle("corner-radius").value?"auto":n.pstyle("corner-radius").pfValue,h=n._private.rscratch;if(c.x-o<=e&&e<=c.x+o&&c.y-l<=t&&t<=c.y+l&&s.nodeShapes[a.getNodeShape(n)].checkPoint(e,t,0,r,i,c.x,c.y,u,h))return m(n,0),!0}function A(n){var r,i=n._private,o=i.rscratch,l=n.pstyle("width").pfValue,u=n.pstyle("arrow-scale").value,p=l/2+d,f=p*p,g=2*p,A=i.source,y=i.target;if("segments"===o.edgeType||"straight"===o.edgeType||"haystack"===o.edgeType){for(var v=o.allpts,b=0;b+3<v.length;b+=2)if(kQt(e,t,v[b],v[b+1],v[b+2],v[b+3],g)&&f>(r=$Qt(e,t,v[b],v[b+1],v[b+2],v[b+3])))return m(n,r),!0}else if("bezier"===o.edgeType||"multibezier"===o.edgeType||"self"===o.edgeType||"compound"===o.edgeType)for(v=o.allpts,b=0;b+5<o.allpts.length;b+=4)if(SQt(e,t,v[b],v[b+1],v[b+2],v[b+3],v[b+4],v[b+5],g)&&f>(r=TQt(e,t,v[b],v[b+1],v[b+2],v[b+3],v[b+4],v[b+5])))return m(n,r),!0;A=A||i.source,y=y||i.target;var x=a.getArrowWidth(l,u),w=[{name:"source",x:o.arrowStartX,y:o.arrowStartY,angle:o.srcArrowAngle},{name:"target",x:o.arrowEndX,y:o.arrowEndY,angle:o.tgtArrowAngle},{name:"mid-source",x:o.midX,y:o.midY,angle:o.midsrcArrowAngle},{name:"mid-target",x:o.midX,y:o.midY,angle:o.midtgtArrowAngle}];for(b=0;b<w.length;b++){var k=w[b],S=s.arrowShapes[n.pstyle(k.name+"-arrow-shape").value],T=n.pstyle("width").pfValue;if(S.roughCollide(e,t,x,k.angle,{x:k.x,y:k.y},T,d)&&S.collide(e,t,x,k.angle,{x:k.x,y:k.y},T,d))return m(n),!0}h&&c.length>0&&(O(A),O(y))}function y(e,t,n){return wCt(e,t,n)}function v(n,r){var i,o=n._private,a=f;i=r?r+"-":"",n.boundingBox();var s=o.labelBounds[r||"main"],l=n.pstyle(i+"label").value;if("yes"===n.pstyle("text-events").strValue&&l){var c=y(o.rscratch,"labelX",r),u=y(o.rscratch,"labelY",r),h=y(o.rscratch,"labelAngle",r),d=n.pstyle(i+"text-margin-x").pfValue,p=n.pstyle(i+"text-margin-y").pfValue,g=s.x1-a-d,O=s.x2+a-d,A=s.y1-a-p,v=s.y2+a-p;if(h){var b=Math.cos(h),x=Math.sin(h),w=function(e,t){return{x:(e-=c)*b-(t-=u)*x+c,y:e*x+t*b+u}},k=w(g,A),S=w(g,v),T=w(O,A),$=w(O,v),_=[k.x+d,k.y+p,T.x+d,T.y+p,$.x+d,$.y+p,S.x+d,S.y+p];if(_Qt(e,t,_))return m(n),!0}else if(AQt(s,e,t))return m(n),!0}}n&&(l=l.interactive);for(var b=l.length-1;b>=0;b--){var x=l[b];x.isNode()?O(x)||v(x):A(x)||v(x)||v(x,"source")||v(x,"target")}return c},getAllInBox:function(e,t,n,r){var i=this.getCachedZSortedEles().interactive,o=2/this.cy.zoom(),a=[],s=Math.min(e,n),l=Math.max(e,n),c=Math.min(t,r),u=Math.max(t,r),h=hQt({x1:e=s,y1:t=c,x2:n=l,y2:r=u}),d=[{x:h.x1,y:h.y1},{x:h.x2,y:h.y1},{x:h.x2,y:h.y2},{x:h.x1,y:h.y2}],p=[[d[0],d[1]],[d[1],d[2]],[d[2],d[3]],[d[3],d[0]]];function f(e,t,n){return wCt(e,t,n)}function g(e,t){var n=e._private,r=o;e.boundingBox();var i=n.labelBounds.main;if(!i)return null;var a=f(n.rscratch,"labelX",t),s=f(n.rscratch,"labelY",t),l=f(n.rscratch,"labelAngle",t),c=e.pstyle("text-margin-x").pfValue,u=e.pstyle("text-margin-y").pfValue,h=i.x1-r-c,d=i.x2+r-c,p=i.y1-r-u,g=i.y2+r-u;if(l){var m=Math.cos(l),O=Math.sin(l),A=function(e,t){return{x:(e-=a)*m-(t-=s)*O+a,y:e*O+t*m+s}};return[A(h,p),A(d,p),A(d,g),A(h,g)]}return[{x:h,y:p},{x:d,y:p},{x:d,y:g},{x:h,y:g}]}function m(e,t,n,r){function i(e,t,n){return(n.y-e.y)*(t.x-e.x)>(t.y-e.y)*(n.x-e.x)}return i(e,n,r)!==i(t,n,r)&&i(e,t,n)!==i(e,t,r)}for(var O=0;O<i.length;O++){var A=i[O];if(A.isNode()){var y=A,v="yes"===y.pstyle("text-events").strValue,b=y.pstyle("box-selection").strValue,x="yes"===y.pstyle("box-select-labels").strValue;if("none"===b)continue;var w=("overlap"===b||x)&&v,k=y.boundingBox({includeNodes:!0,includeEdges:!1,includeLabels:w});if("contain"===b){var S=!1;if(x&&v){var T=g(y);T&&VQt(T,d)&&(a.push(y),S=!0)}!S&&vQt(h,k)&&a.push(y)}else if("overlap"===b&&OQt(h,k)){var $=y.boundingBox({includeNodes:!0,includeEdges:!0,includeLabels:!1,includeMainLabels:!1,includeSourceLabels:!1,includeTargetLabels:!1});if(VQt([{x:$.x1,y:$.y1},{x:$.x2,y:$.y1},{x:$.x2,y:$.y2},{x:$.x1,y:$.y2}],d))a.push(y);else{var _=g(y);_&&VQt(_,d)&&a.push(y)}}}else{var C=A,Q=C._private,P=Q.rscratch,E=C.pstyle("box-selection").strValue;if("none"===E)continue;if("contain"===E){if(null!=P.startX&&null!=P.startY&&!AQt(h,P.startX,P.startY))continue;if(null!=P.endX&&null!=P.endY&&!AQt(h,P.endX,P.endY))continue;if("bezier"===P.edgeType||"multibezier"===P.edgeType||"self"===P.edgeType||"compound"===P.edgeType||"segments"===P.edgeType||"haystack"===P.edgeType){for(var R=Q.rstyle.bezierPts||Q.rstyle.linePts||Q.rstyle.haystackPts,B=!0,I=0;I<R.length;I++)if(!yQt(h,R[I])){B=!1;break}B&&a.push(C)}else"straight"===P.edgeType&&a.push(C)}else if("overlap"===E){var L=!1;if(null!=P.startX&&null!=P.startY&&null!=P.endX&&null!=P.endY&&(AQt(h,P.startX,P.startY)||AQt(h,P.endX,P.endY)))a.push(C),L=!0;else if(!L&&"haystack"===P.edgeType)for(var D=Q.rstyle.haystackPts,M=0;M<D.length;M++)if(yQt(h,D[M])){a.push(C),L=!0;break}if(!L){var N=Q.rstyle.bezierPts||Q.rstyle.linePts||Q.rstyle.haystackPts;if((!N||N.length<2)&&"straight"===P.edgeType&&null!=P.startX&&null!=P.startY&&null!=P.endX&&null!=P.endY&&(N=[{x:P.startX,y:P.startY},{x:P.endX,y:P.endY}]),!N||N.length<2)continue;for(var X=0;X<N.length-1;X++){for(var F=N[X],U=N[X+1],z=0;z<p.length;z++){var q=O$t(p[z],2);if(m(F,U,q[0],q[1])){a.push(C),L=!0;break}}if(L)break}}}}}return a}},kMt={calculateArrowAngles:function(e){var t,n,r,i,o,a,s=e._private.rscratch,l="haystack"===s.edgeType,c="bezier"===s.edgeType,u="multibezier"===s.edgeType,h="segments"===s.edgeType,d="compound"===s.edgeType,p="self"===s.edgeType;if(l?(r=s.haystackPts[0],i=s.haystackPts[1],o=s.haystackPts[2],a=s.haystackPts[3]):(r=s.arrowStartX,i=s.arrowStartY,o=s.arrowEndX,a=s.arrowEndY),g=s.midX,m=s.midY,h)t=r-s.segpts[0],n=i-s.segpts[1];else if(u||d||p||c){var f=s.allpts;t=r-lQt(f[0],f[2],f[4],.1),n=i-lQt(f[1],f[3],f[5],.1)}else t=r-g,n=i-m;s.srcArrowAngle=nQt(t,n);var g=s.midX,m=s.midY;if(l&&(g=(r+o)/2,m=(i+a)/2),t=o-r,n=a-i,h)if((f=s.allpts).length/2%2==0){var O=(S=f.length/2)-2;t=f[S]-f[O],n=f[S+1]-f[O+1]}else if(s.isRound)t=s.midVector[1],n=-s.midVector[0];else{O=(S=f.length/2-1)-2;t=f[S]-f[O],n=f[S+1]-f[O+1]}else if(u||d||p){var A,y,v,b,f=s.allpts;if(s.ctrlpts.length/2%2==0){var x=(w=(k=f.length/2-1)+2)+2;A=lQt(f[k],f[w],f[x],0),y=lQt(f[k+1],f[w+1],f[x+1],0),v=lQt(f[k],f[w],f[x],1e-4),b=lQt(f[k+1],f[w+1],f[x+1],1e-4)}else{var w,k;x=(w=f.length/2-1)+2;A=lQt(f[k=w-2],f[w],f[x],.4999),y=lQt(f[k+1],f[w+1],f[x+1],.4999),v=lQt(f[k],f[w],f[x],.5),b=lQt(f[k+1],f[w+1],f[x+1],.5)}t=v-A,n=b-y}if(s.midtgtArrowAngle=nQt(t,n),s.midDispX=t,s.midDispY=n,t*=-1,n*=-1,h)if((f=s.allpts).length/2%2==0);else if(!s.isRound){var S,T=(S=f.length/2-1)+2;t=-(f[T]-f[S]),n=-(f[T+1]-f[S+1])}if(s.midsrcArrowAngle=nQt(t,n),h)t=o-s.segpts[s.segpts.length-2],n=a-s.segpts[s.segpts.length-1];else if(u||d||p||c){var $=(f=s.allpts).length;t=o-lQt(f[$-6],f[$-4],f[$-2],.9),n=a-lQt(f[$-5],f[$-3],f[$-1],.9)}else t=o-g,n=a-m;s.tgtArrowAngle=nQt(t,n)}};kMt.getArrowWidth=kMt.getArrowHeight=function(e,t){var n=this.arrowWidthCache=this.arrowWidthCache||{},r=n[e+", "+t];return r||(r=Math.max(Math.pow(13.37*e,.9),29)*t,n[e+", "+t]=r,r)};var SMt,TMt,$Mt,_Mt,CMt,QMt,PMt,EMt,RMt,BMt,IMt,LMt,DMt,MMt,NMt,XMt,FMt,UMt={},zMt={},qMt=function(e,t,n){n.x=t.x-e.x,n.y=t.y-e.y,n.len=Math.sqrt(n.x*n.x+n.y*n.y),n.nx=n.x/n.len,n.ny=n.y/n.len,n.ang=Math.atan2(n.ny,n.nx)},VMt=function(e,t,n,r,i){var o,a;if(e!==FMt?qMt(t,e,UMt):((a=UMt).x=-1*(o=zMt).x,a.y=-1*o.y,a.nx=-1*o.nx,a.ny=-1*o.ny,a.ang=o.ang>0?-(Math.PI-o.ang):Math.PI+o.ang),qMt(t,n,zMt),$Mt=UMt.nx*zMt.ny-UMt.ny*zMt.nx,_Mt=UMt.nx*zMt.nx-UMt.ny*-zMt.ny,PMt=Math.asin(Math.max(-1,Math.min(1,$Mt))),Math.abs(PMt)<1e-6)return SMt=t.x,TMt=t.y,void(RMt=IMt=0);CMt=1,QMt=!1,_Mt<0?PMt<0?PMt=Math.PI+PMt:(PMt=Math.PI-PMt,CMt=-1,QMt=!0):PMt>0&&(CMt=-1,QMt=!0),IMt=void 0!==t.radius?t.radius:r,EMt=PMt/2,LMt=Math.min(UMt.len/2,zMt.len/2),i?(BMt=Math.abs(Math.cos(EMt)*IMt/Math.sin(EMt)))>LMt?(BMt=LMt,RMt=Math.abs(BMt*Math.sin(EMt)/Math.cos(EMt))):RMt=IMt:(BMt=Math.min(LMt,IMt),RMt=Math.abs(BMt*Math.sin(EMt)/Math.cos(EMt))),NMt=t.x+zMt.nx*BMt,XMt=t.y+zMt.ny*BMt,SMt=NMt-zMt.ny*RMt*CMt,TMt=XMt+zMt.nx*RMt*CMt,DMt=t.x+UMt.nx*BMt,MMt=t.y+UMt.ny*BMt,FMt=t};function WMt(e,t){0===t.radius?e.lineTo(t.cx,t.cy):e.arc(t.cx,t.cy,t.radius,t.startAngle,t.endAngle,t.counterClockwise)}function jMt(e,t,n,r){var i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return 0===r||0===t.radius?{cx:t.x,cy:t.y,radius:0,startX:t.x,startY:t.y,stopX:t.x,stopY:t.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(VMt(e,t,n,r,i),{cx:SMt,cy:TMt,radius:RMt,startX:DMt,startY:MMt,stopX:NMt,stopY:XMt,startAngle:UMt.ang+Math.PI/2*CMt,endAngle:zMt.ang-Math.PI/2*CMt,counterClockwise:QMt})}var YMt=.01,ZMt=Math.sqrt(.02),GMt={};function HMt(e){var t=[];if(null!=e){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];t.push({x:r,y:i})}return t}}GMt.findMidptPtsEtc=function(e,t){var n,r,i,o,a=t.posPts,s=t.intersectionPts,l=t.vectorNormInverse,c=e.pstyle("source-endpoint"),u=e.pstyle("target-endpoint"),h=null!=c.units&&null!=u.units;switch(e.pstyle("edge-distances").value){case"node-position":n=a;break;case"intersection":n=s;break;case"endpoints":if(h){var d=O$t(this.manualEndptToPx(e.source()[0],c),2),p=d[0],f=d[1],g=O$t(this.manualEndptToPx(e.target()[0],u),2),m=g[0],O=g[1],A={x1:p,y1:f,x2:m,y2:O};r=O-f,i=m-p,o=Math.sqrt(i*i+r*r),l={x:-r/o,y:i/o},n=A}else gCt("Edge ".concat(e.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).")),n=s}return{midptPts:n,vectorNormInverse:l}},GMt.findHaystackPoints=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=n._private,i=r.rscratch;if(!i.haystack){var o=2*Math.random()*Math.PI;i.source={x:Math.cos(o),y:Math.sin(o)},o=2*Math.random()*Math.PI,i.target={x:Math.cos(o),y:Math.sin(o)}}var a=r.source,s=r.target,l=a.position(),c=s.position(),u=a.width(),h=s.width(),d=a.height(),p=s.height(),f=n.pstyle("haystack-radius").value/2;i.haystackPts=i.allpts=[i.source.x*u*f+l.x,i.source.y*d*f+l.y,i.target.x*h*f+c.x,i.target.y*p*f+c.y],i.midX=(i.allpts[0]+i.allpts[2])/2,i.midY=(i.allpts[1]+i.allpts[3])/2,i.edgeType="haystack",i.haystack=!0,this.storeEdgeProjections(n),this.calculateArrowAngles(n),this.recalculateEdgeLabelProjections(n),this.calculateLabelAngles(n)}},GMt.findSegmentsPoints=function(e,t){var n=e._private.rscratch,r=e.pstyle("segment-weights"),i=e.pstyle("segment-distances"),o=e.pstyle("segment-radii"),a=e.pstyle("radius-type"),s=Math.min(r.pfValue.length,i.pfValue.length),l=o.pfValue[o.pfValue.length-1],c=a.pfValue[a.pfValue.length-1];n.edgeType="segments",n.segpts=[],n.radii=[],n.isArcRadius=[];for(var u=0;u<s;u++){var h=r.pfValue[u],d=i.pfValue[u],p=1-h,f=h,g=this.findMidptPtsEtc(e,t),m=g.midptPts,O=g.vectorNormInverse,A={x:m.x1*p+m.x2*f,y:m.y1*p+m.y2*f};n.segpts.push(A.x+O.x*d,A.y+O.y*d),n.radii.push(void 0!==o.pfValue[u]?o.pfValue[u]:l),n.isArcRadius.push("arc-radius"===(void 0!==a.pfValue[u]?a.pfValue[u]:c))}},GMt.findLoopPoints=function(e,t,n,r){var i=e._private.rscratch,o=t.dirCounts,a=t.srcPos,s=e.pstyle("control-point-distances"),l=s?s.pfValue[0]:void 0,c=e.pstyle("loop-direction").pfValue,u=e.pstyle("loop-sweep").pfValue,h=e.pstyle("control-point-step-size").pfValue;i.edgeType="self";var d=n,p=h;r&&(d=0,p=l);var f=c-Math.PI/2,g=f-u/2,m=f+u/2,O=String(c+"_"+u);d=void 0===o[O]?o[O]=0:++o[O],i.ctrlpts=[a.x+1.4*Math.cos(g)*p*(d/3+1),a.y+1.4*Math.sin(g)*p*(d/3+1),a.x+1.4*Math.cos(m)*p*(d/3+1),a.y+1.4*Math.sin(m)*p*(d/3+1)]},GMt.findCompoundLoopPoints=function(e,t,n,r){var i=e._private.rscratch;i.edgeType="compound";var o=t.srcPos,a=t.tgtPos,s=t.srcW,l=t.srcH,c=t.tgtW,u=t.tgtH,h=e.pstyle("control-point-step-size").pfValue,d=e.pstyle("control-point-distances"),p=d?d.pfValue[0]:void 0,f=n,g=h;r&&(f=0,g=p);var m={x:o.x-s/2,y:o.y-l/2},O={x:a.x-c/2,y:a.y-u/2},A={x:Math.min(m.x,O.x),y:Math.min(m.y,O.y)},y=Math.max(.5,Math.log(s*YMt)),v=Math.max(.5,Math.log(c*YMt));i.ctrlpts=[A.x,A.y-(1+Math.pow(50,1.12)/100)*g*(f/3+1)*y,A.x-(1+Math.pow(50,1.12)/100)*g*(f/3+1)*v,A.y]},GMt.findStraightEdgePoints=function(e){e._private.rscratch.edgeType="straight"},GMt.findBezierPoints=function(e,t,n,r,i){var o=e._private.rscratch,a=e.pstyle("control-point-step-size").pfValue,s=e.pstyle("control-point-distances"),l=e.pstyle("control-point-weights"),c=s&&l?Math.min(s.value.length,l.value.length):1,u=s?s.pfValue[0]:void 0,h=l.value[0],d=r;o.edgeType=d?"multibezier":"bezier",o.ctrlpts=[];for(var p=0;p<c;p++){var f=(.5-t.eles.length/2+n)*a*(i?-1:1),g=void 0,m=iQt(f);d&&(u=s?s.pfValue[p]:a,h=l.value[p]);var O=void 0!==(g=r?u:void 0!==u?m*u:void 0)?g:f,A=1-h,y=h,v=this.findMidptPtsEtc(e,t),b=v.midptPts,x=v.vectorNormInverse,w={x:b.x1*A+b.x2*y,y:b.y1*A+b.y2*y};o.ctrlpts.push(w.x+x.x*O,w.y+x.y*O)}},GMt.findTaxiPoints=function(e,t){var n=e._private.rscratch;n.edgeType="segments";var r="vertical",i="horizontal",o="leftward",a="rightward",s="downward",l="upward",c=t.posPts,u=t.srcW,h=t.srcH,d=t.tgtW,p=t.tgtH,f="node-position"!==e.pstyle("edge-distances").value,g=e.pstyle("taxi-direction").value,m=g,O=e.pstyle("taxi-turn"),A="%"===O.units,y=O.pfValue,v=y<0,b=e.pstyle("taxi-turn-min-distance").pfValue,x=f?(u+d)/2:0,w=f?(h+p)/2:0,k=c.x2-c.x1,S=c.y2-c.y1,T=function(e,t){return e>0?Math.max(e-t,0):Math.min(e+t,0)},$=T(k,x),_=T(S,w),C=!1;"auto"===m?g=Math.abs($)>Math.abs(_)?i:r:m===l||m===s?(g=r,C=!0):m!==o&&m!==a||(g=i,C=!0);var Q,P=g===r,E=P?_:$,R=P?S:k,B=iQt(R),I=!1;(C&&(A||v)||!(m===s&&R<0||m===l&&R>0||m===o&&R>0||m===a&&R<0)||(E=(B*=-1)*Math.abs(E),I=!0),A)?Q=(y<0?1+y:y)*E:Q=(y<0?E:0)+y*B;var L=function(e){return Math.abs(e)<b||Math.abs(e)>=Math.abs(E)},D=L(Q),M=L(Math.abs(E)-Math.abs(Q));if((D||M)&&!I)if(P){var N=Math.abs(R)<=h/2,X=Math.abs(k)<=d/2;if(N){var F=(c.x1+c.x2)/2,U=c.y1,z=c.y2;n.segpts=[F,U,F,z]}else if(X){var q=(c.y1+c.y2)/2,V=c.x1,W=c.x2;n.segpts=[V,q,W,q]}else n.segpts=[c.x1,c.y2]}else{var j=Math.abs(R)<=u/2,Y=Math.abs(S)<=p/2;if(j){var Z=(c.y1+c.y2)/2,G=c.x1,H=c.x2;n.segpts=[G,Z,H,Z]}else if(Y){var K=(c.x1+c.x2)/2,J=c.y1,ee=c.y2;n.segpts=[K,J,K,ee]}else n.segpts=[c.x2,c.y1]}else if(P){var te=c.y1+Q+(f?h/2*B:0),ne=c.x1,re=c.x2;n.segpts=[ne,te,re,te]}else{var ie=c.x1+Q+(f?u/2*B:0),oe=c.y1,ae=c.y2;n.segpts=[ie,oe,ie,ae]}if(n.isRound){var se=e.pstyle("taxi-radius").value,le="arc-radius"===e.pstyle("radius-type").value[0];n.radii=new Array(n.segpts.length/2).fill(se),n.isArcRadius=new Array(n.segpts.length/2).fill(le)}},GMt.tryToCorrectInvalidPoints=function(e,t){var n=e._private.rscratch;if("bezier"===n.edgeType){var r=t.srcPos,i=t.tgtPos,o=t.srcW,a=t.srcH,s=t.tgtW,l=t.tgtH,c=t.srcShape,u=t.tgtShape,h=t.srcCornerRadius,d=t.tgtCornerRadius,p=t.srcRs,f=t.tgtRs,g=!s_t(n.startX)||!s_t(n.startY),m=!s_t(n.arrowStartX)||!s_t(n.arrowStartY),O=!s_t(n.endX)||!s_t(n.endY),A=!s_t(n.arrowEndX)||!s_t(n.arrowEndY),y=3*(this.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.arrowShapeWidth),v=oQt({x:n.ctrlpts[0],y:n.ctrlpts[1]},{x:n.startX,y:n.startY}),b=v<y,x=oQt({x:n.ctrlpts[0],y:n.ctrlpts[1]},{x:n.endX,y:n.endY}),w=x<y,k=!1;if(g||m||b){k=!0;var S={x:n.ctrlpts[0]-r.x,y:n.ctrlpts[1]-r.y},T=Math.sqrt(S.x*S.x+S.y*S.y),$={x:S.x/T,y:S.y/T},_=Math.max(o,a),C={x:n.ctrlpts[0]+2*$.x*_,y:n.ctrlpts[1]+2*$.y*_},Q=c.intersectLine(r.x,r.y,o,a,C.x,C.y,0,h,p);b?(n.ctrlpts[0]=n.ctrlpts[0]+$.x*(y-v),n.ctrlpts[1]=n.ctrlpts[1]+$.y*(y-v)):(n.ctrlpts[0]=Q[0]+$.x*y,n.ctrlpts[1]=Q[1]+$.y*y)}if(O||A||w){k=!0;var P={x:n.ctrlpts[0]-i.x,y:n.ctrlpts[1]-i.y},E=Math.sqrt(P.x*P.x+P.y*P.y),R={x:P.x/E,y:P.y/E},B=Math.max(o,a),I={x:n.ctrlpts[0]+2*R.x*B,y:n.ctrlpts[1]+2*R.y*B},L=u.intersectLine(i.x,i.y,s,l,I.x,I.y,0,d,f);w?(n.ctrlpts[0]=n.ctrlpts[0]+R.x*(y-x),n.ctrlpts[1]=n.ctrlpts[1]+R.y*(y-x)):(n.ctrlpts[0]=L[0]+R.x*y,n.ctrlpts[1]=L[1]+R.y*y)}k&&this.findEndpoints(e)}},GMt.storeAllpts=function(e){var t=e._private.rscratch;if("multibezier"===t.edgeType||"bezier"===t.edgeType||"self"===t.edgeType||"compound"===t.edgeType){t.allpts=[],t.allpts.push(t.startX,t.startY);for(var n=0;n+1<t.ctrlpts.length;n+=2)t.allpts.push(t.ctrlpts[n],t.ctrlpts[n+1]),n+3<t.ctrlpts.length&&t.allpts.push((t.ctrlpts[n]+t.ctrlpts[n+2])/2,(t.ctrlpts[n+1]+t.ctrlpts[n+3])/2);var r;t.allpts.push(t.endX,t.endY),t.ctrlpts.length/2%2==0?(r=t.allpts.length/2-1,t.midX=t.allpts[r],t.midY=t.allpts[r+1]):(r=t.allpts.length/2-3,t.midX=lQt(t.allpts[r],t.allpts[r+2],t.allpts[r+4],.5),t.midY=lQt(t.allpts[r+1],t.allpts[r+3],t.allpts[r+5],.5))}else if("straight"===t.edgeType)t.allpts=[t.startX,t.startY,t.endX,t.endY],t.midX=(t.startX+t.endX+t.arrowStartX+t.arrowEndX)/4,t.midY=(t.startY+t.endY+t.arrowStartY+t.arrowEndY)/4;else if("segments"===t.edgeType){if(t.allpts=[],t.allpts.push(t.startX,t.startY),t.allpts.push.apply(t.allpts,t.segpts),t.allpts.push(t.endX,t.endY),t.isRound){t.roundCorners=[];for(var i=2;i+3<t.allpts.length;i+=2){var o=t.radii[i/2-1],a=t.isArcRadius[i/2-1];t.roundCorners.push(jMt({x:t.allpts[i-2],y:t.allpts[i-1]},{x:t.allpts[i],y:t.allpts[i+1],radius:o},{x:t.allpts[i+2],y:t.allpts[i+3]},o,a))}}if(t.segpts.length%4==0){var s=t.segpts.length/2,l=s-2;t.midX=(t.segpts[l]+t.segpts[s])/2,t.midY=(t.segpts[l+1]+t.segpts[s+1])/2}else{var c=t.segpts.length/2-1;if(t.isRound){var u={x:t.segpts[c],y:t.segpts[c+1]},h=t.roundCorners[c/2];if(0===h.radius){var d={x:t.segpts[c+2],y:t.segpts[c+3]};t.midX=u.x,t.midY=u.y,t.midVector=[u.y-d.y,d.x-u.x]}else{var p=[u.x-h.cx,u.y-h.cy],f=h.radius/Math.sqrt(Math.pow(p[0],2)+Math.pow(p[1],2));p=p.map(function(e){return e*f}),t.midX=h.cx+p[0],t.midY=h.cy+p[1],t.midVector=p}}else t.midX=t.segpts[c],t.midY=t.segpts[c+1]}}},GMt.checkForInvalidEdgeWarning=function(e){var t=e[0]._private.rscratch;t.nodesOverlap||s_t(t.startX)&&s_t(t.startY)&&s_t(t.endX)&&s_t(t.endY)?t.loggedErr=!1:t.loggedErr||(t.loggedErr=!0,gCt(e.id()))},GMt.findEdgeControlPoints=function(e){var t=this;if(e&&0!==e.length){for(var n=this,r=n.cy.hasCompoundNodes(),i=new SCt,o=function(e,t){return[].concat(A$t(e),[t?1:0]).join("-")},a=[],s=[],l=0;l<e.length;l++){var c=e[l],u=c._private,h=c.pstyle("curve-style").value;if(!c.removed()&&c.takesUpSpace())if("haystack"!==h){var d="unbundled-bezier"===h||x_t(h,"segments")||"straight"===h||"straight-triangle"===h||x_t(h,"taxi"),p="unbundled-bezier"===h||"bezier"===h,f=u.source,g=u.target,m=[f.poolIndex(),g.poolIndex()].sort(),O=o(m,d),A=i.get(O);null==A&&(A={eles:[]},a.push({pairId:m,edgeIsUnbundled:d}),i.set(O,A)),A.eles.push(c),d&&(A.hasUnbundled=!0),p&&(A.hasBezier=!0)}else s.push(c)}for(var y=function(){var e,s=a[v],l=s.pairId,c=s.edgeIsUnbundled,u=o(l,c),h=i.get(u);if(!h.hasUnbundled){var d=h.eles[0].parallelEdges().filter(function(e){return e.isBundledBezier()});xCt(h.eles),d.forEach(function(e){return h.eles.push(e)}),h.eles.sort(function(e,t){return e.poolIndex()-t.poolIndex()})}var p=h.eles[0],f=p.source(),g=p.target();if(f.poolIndex()>g.poolIndex()){var m=f;f=g,g=m}var O=h.srcPos=f.position(),A=h.tgtPos=g.position(),y=h.srcW=f.outerWidth(),b=h.srcH=f.outerHeight(),x=h.tgtW=g.outerWidth(),w=h.tgtH=g.outerHeight(),k=h.srcShape=n.nodeShapes[t.getNodeShape(f)],S=h.tgtShape=n.nodeShapes[t.getNodeShape(g)],T=h.srcCornerRadius="auto"===f.pstyle("corner-radius").value?"auto":f.pstyle("corner-radius").pfValue,$=h.tgtCornerRadius="auto"===g.pstyle("corner-radius").value?"auto":g.pstyle("corner-radius").pfValue,_=h.tgtRs=g._private.rscratch,C=h.srcRs=f._private.rscratch;h.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var Q=0;Q<h.eles.length;Q++){var P=h.eles[Q],E=P[0]._private.rscratch,R=P.pstyle("curve-style").value,B="unbundled-bezier"===R||x_t(R,"segments")||x_t(R,"taxi"),I=!f.same(P.source());if(!h.calculatedIntersection&&f!==g&&(h.hasBezier||h.hasUnbundled)){h.calculatedIntersection=!0;var L=k.intersectLine(O.x,O.y,y,b,A.x,A.y,0,T,C),D=h.srcIntn=L,M=S.intersectLine(A.x,A.y,x,w,O.x,O.y,0,$,_),N=h.tgtIntn=M,X=h.intersectionPts={x1:L[0],x2:M[0],y1:L[1],y2:M[1]},F=h.posPts={x1:O.x,x2:A.x,y1:O.y,y2:A.y},U=M[1]-L[1],z=M[0]-L[0],q=Math.sqrt(z*z+U*U);s_t(q)&&q>=ZMt||(q=Math.sqrt(Math.max(z*z,YMt)+Math.max(U*U,YMt)));var V=h.vector={x:z,y:U},W=h.vectorNorm={x:V.x/q,y:V.y/q},j={x:-W.y,y:W.x};h.nodesOverlap=!s_t(q)||S.checkPoint(L[0],L[1],0,x,w,A.x,A.y,$,_)||k.checkPoint(M[0],M[1],0,y,b,O.x,O.y,T,C),h.vectorNormInverse=j,e={nodesOverlap:h.nodesOverlap,dirCounts:h.dirCounts,calculatedIntersection:!0,hasBezier:h.hasBezier,hasUnbundled:h.hasUnbundled,eles:h.eles,srcPos:A,srcRs:_,tgtPos:O,tgtRs:C,srcW:x,srcH:w,tgtW:y,tgtH:b,srcIntn:N,tgtIntn:D,srcShape:S,tgtShape:k,posPts:{x1:F.x2,y1:F.y2,x2:F.x1,y2:F.y1},intersectionPts:{x1:X.x2,y1:X.y2,x2:X.x1,y2:X.y1},vector:{x:-V.x,y:-V.y},vectorNorm:{x:-W.x,y:-W.y},vectorNormInverse:{x:-j.x,y:-j.y}}}var Y=I?e:h;E.nodesOverlap=Y.nodesOverlap,E.srcIntn=Y.srcIntn,E.tgtIntn=Y.tgtIntn,E.isRound=R.startsWith("round"),r&&(f.isParent()||f.isChild()||g.isParent()||g.isChild())&&(f.parents().anySame(g)||g.parents().anySame(f)||f.same(g)&&f.isParent())?t.findCompoundLoopPoints(P,Y,Q,B):f===g?t.findLoopPoints(P,Y,Q,B):R.endsWith("segments")?t.findSegmentsPoints(P,Y):R.endsWith("taxi")?t.findTaxiPoints(P,Y):"straight"===R||!B&&h.eles.length%2==1&&Q===Math.floor(h.eles.length/2)?t.findStraightEdgePoints(P):t.findBezierPoints(P,Y,Q,B,I),t.findEndpoints(P),t.tryToCorrectInvalidPoints(P,Y),t.checkForInvalidEdgeWarning(P),t.storeAllpts(P),t.storeEdgeProjections(P),t.calculateArrowAngles(P),t.recalculateEdgeLabelProjections(P),t.calculateLabelAngles(P)}},v=0;v<a.length;v++)y();this.findHaystackPoints(s)}},GMt.getSegmentPoints=function(e){var t=e[0]._private.rscratch;if(this.recalculateRenderedStyle(e),"segments"===t.edgeType)return HMt(t.segpts)},GMt.getControlPoints=function(e){var t=e[0]._private.rscratch;this.recalculateRenderedStyle(e);var n=t.edgeType;if("bezier"===n||"multibezier"===n||"self"===n||"compound"===n)return HMt(t.ctrlpts)},GMt.getEdgeMidpoint=function(e){var t=e[0]._private.rscratch;return this.recalculateRenderedStyle(e),{x:t.midX,y:t.midY}};var KMt={manualEndptToPx:function(e,t){var n=e.position(),r=e.outerWidth(),i=e.outerHeight(),o=e._private.rscratch;if(2===t.value.length){var a=[t.pfValue[0],t.pfValue[1]];return"%"===t.units[0]&&(a[0]=a[0]*r),"%"===t.units[1]&&(a[1]=a[1]*i),a[0]+=n.x,a[1]+=n.y,a}var s=t.pfValue[0];s=-Math.PI/2+s;var l=2*Math.max(r,i),c=[n.x+Math.cos(s)*l,n.y+Math.sin(s)*l];return this.nodeShapes[this.getNodeShape(e)].intersectLine(n.x,n.y,r,i,c[0],c[1],0,"auto"===e.pstyle("corner-radius").value?"auto":e.pstyle("corner-radius").pfValue,o)},findEndpoints:function(e){var t,n,r,i,o,a,s,l,c,u=this,h=e.source()[0],d=e.target()[0],p=h.position(),f=d.position(),g=e.pstyle("target-arrow-shape").value,m=e.pstyle("source-arrow-shape").value,O=e.pstyle("target-distance-from-node").pfValue,A=e.pstyle("source-distance-from-node").pfValue,y=h._private.rscratch,v=d._private.rscratch,b=e.pstyle("curve-style").value,x=e._private.rscratch,w=x.edgeType,k=x_t(b,"taxi"),S="self"===w||"compound"===w,T="bezier"===w||"multibezier"===w||S,$="bezier"!==w,_="straight"===w||"segments"===w,C="segments"===w,Q=T||$||_,P=S||k,E=e.pstyle("source-endpoint"),R=P?"outside-to-node":E.value,B="auto"===h.pstyle("corner-radius").value?"auto":h.pstyle("corner-radius").pfValue,I=e.pstyle("target-endpoint"),L=P?"outside-to-node":I.value,D="auto"===d.pstyle("corner-radius").value?"auto":d.pstyle("corner-radius").pfValue;x.srcManEndpt=E,x.tgtManEndpt=I;var M=null!==(t=2===(null==I||null===(n=I.pfValue)||void 0===n?void 0:n.length)?I.pfValue:null)&&void 0!==t?t:[0,0],N=null!==(r=2===(null==E||null===(i=E.pfValue)||void 0===i?void 0:i.length)?E.pfValue:null)&&void 0!==r?r:[0,0];if(T){var X=[x.ctrlpts[0],x.ctrlpts[1]];a=$?[x.ctrlpts[x.ctrlpts.length-2],x.ctrlpts[x.ctrlpts.length-1]]:X,s=X}else if(_){var F=C?x.segpts.slice(0,2):[f.x+M[0],f.y+M[1]];a=C?x.segpts.slice(x.segpts.length-2):[p.x+N[0],p.y+N[1]],s=F}if("inside-to-node"===L)o=[f.x,f.y];else if(I.units)o=this.manualEndptToPx(d,I);else if("outside-to-line"===L)o=x.tgtIntn;else if("outside-to-node"===L||"outside-to-node-or-label"===L?l=a:"outside-to-line"!==L&&"outside-to-line-or-label"!==L||(l=[p.x,p.y]),o=u.nodeShapes[this.getNodeShape(d)].intersectLine(f.x,f.y,d.outerWidth(),d.outerHeight(),l[0],l[1],0,D,v),"outside-to-node-or-label"===L||"outside-to-line-or-label"===L){var U=d._private.rscratch,z=U.labelWidth,q=U.labelHeight,V=U.labelX,W=U.labelY,j=z/2,Y=q/2,Z=d.pstyle("text-valign").value;"top"===(Z=BIt(Z))?W-=Y:"bottom"===Z&&(W+=Y);var G=d.pstyle("text-halign").value;"left"===(G=RIt(G))?V-=j:"right"===G&&(V+=j);var H=DQt(l[0],l[1],[V-j,W-Y,V+j,W-Y,V+j,W+Y,V-j,W+Y],f.x,f.y);if(H.length>0){var K=p,J=aQt(K,eQt(o)),ee=aQt(K,eQt(H)),te=J;if(ee<J&&(o=H,te=ee),H.length>2)aQt(K,{x:H[2],y:H[3]})<te&&(o=[H[2],H[3]])}}var ne=MQt(o,a,u.arrowShapes[g].spacing(e)+O),re=MQt(o,a,u.arrowShapes[g].gap(e)+O);if(x.endX=re[0],x.endY=re[1],x.arrowEndX=ne[0],x.arrowEndY=ne[1],"inside-to-node"===R)o=[p.x,p.y];else if(E.units)o=this.manualEndptToPx(h,E);else if("outside-to-line"===R)o=x.srcIntn;else if("outside-to-node"===R||"outside-to-node-or-label"===R?c=s:"outside-to-line"!==R&&"outside-to-line-or-label"!==R||(c=[f.x,f.y]),o=u.nodeShapes[this.getNodeShape(h)].intersectLine(p.x,p.y,h.outerWidth(),h.outerHeight(),c[0],c[1],0,B,y),"outside-to-node-or-label"===R||"outside-to-line-or-label"===R){var ie=h._private.rscratch,oe=ie.labelWidth,ae=ie.labelHeight,se=ie.labelX,le=ie.labelY,ce=oe/2,ue=ae/2,he=h.pstyle("text-valign").value;"top"===(he=BIt(he))?le-=ue:"bottom"===he&&(le+=ue);var de=h.pstyle("text-halign").value;"left"===(de=RIt(de))?se-=ce:"right"===de&&(se+=ce);var pe=DQt(c[0],c[1],[se-ce,le-ue,se+ce,le-ue,se+ce,le+ue,se-ce,le+ue],p.x,p.y);if(pe.length>0){var fe=f,ge=aQt(fe,eQt(o)),me=aQt(fe,eQt(pe)),Oe=ge;if(me<ge&&(o=[pe[0],pe[1]],Oe=me),pe.length>2)aQt(fe,{x:pe[2],y:pe[3]})<Oe&&(o=[pe[2],pe[3]])}}var Ae=MQt(o,s,u.arrowShapes[m].spacing(e)+A),ye=MQt(o,s,u.arrowShapes[m].gap(e)+A);x.startX=ye[0],x.startY=ye[1],x.arrowStartX=Ae[0],x.arrowStartY=Ae[1],Q&&(s_t(x.startX)&&s_t(x.startY)&&s_t(x.endX)&&s_t(x.endY)?x.badLine=!1:x.badLine=!0)},getSourceEndpoint:function(e){var t=e[0]._private.rscratch;return this.recalculateRenderedStyle(e),"haystack"===t.edgeType?{x:t.haystackPts[0],y:t.haystackPts[1]}:{x:t.arrowStartX,y:t.arrowStartY}},getTargetEndpoint:function(e){var t=e[0]._private.rscratch;return this.recalculateRenderedStyle(e),"haystack"===t.edgeType?{x:t.haystackPts[2],y:t.haystackPts[3]}:{x:t.arrowEndX,y:t.arrowEndY}}},JMt={};function eNt(e,t,n){for(var r=function(e,t,n,r){return lQt(e,t,n,r)},i=t._private.rstyle.bezierPts,o=0;o<e.bezierProjPcts.length;o++){var a=e.bezierProjPcts[o];i.push({x:r(n[0],n[2],n[4],a),y:r(n[1],n[3],n[5],a)})}}JMt.storeEdgeProjections=function(e){var t=e._private,n=t.rscratch,r=n.edgeType;if(t.rstyle.bezierPts=null,t.rstyle.linePts=null,t.rstyle.haystackPts=null,"multibezier"===r||"bezier"===r||"self"===r||"compound"===r){t.rstyle.bezierPts=[];for(var i=0;i+5<n.allpts.length;i+=4)eNt(this,e,n.allpts.slice(i,i+6))}else if("segments"===r){var o=t.rstyle.linePts=[];for(i=0;i+1<n.allpts.length;i+=2)o.push({x:n.allpts[i],y:n.allpts[i+1]})}else if("haystack"===r){var a=n.haystackPts;t.rstyle.haystackPts=[{x:a[0],y:a[1]},{x:a[2],y:a[3]}]}t.rstyle.arrowWidth=this.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.arrowShapeWidth},JMt.recalculateEdgeProjections=function(e){this.findEdgeControlPoints(e)};var tNt={recalculateNodeLabelProjection:function(e){var t=e.pstyle("label").strValue;if(!g_t(t)){var n,r,i=e._private,o=e.width(),a=e.height(),s=e.padding(),l=e.position(),c=e.pstyle("text-halign").strValue,u=e.pstyle("text-valign").strValue,h=i.rscratch,d=i.rstyle;switch(c){case"left":n=l.x-o/2-s;break;case"left-inside":n=l.x-o/2+s;break;case"right":n=l.x+o/2+s;break;case"right-inside":n=l.x+o/2-s;break;default:n=l.x}switch(u){case"top":r=l.y-a/2-s;break;case"top-inside":r=l.y-a/2+s;break;case"bottom":r=l.y+a/2+s;break;case"bottom-inside":r=l.y+a/2-s;break;default:r=l.y}h.labelX=n,h.labelY=r,d.labelX=n,d.labelY=r,this.calculateLabelAngles(e),this.applyLabelDimensions(e)}}},nNt=function(e,t){var n=Math.atan(t/e);return 0===e&&n<0&&(n*=-1),n},rNt=function(e,t){var n=t.x-e.x,r=t.y-e.y;return nNt(n,r)};tNt.recalculateEdgeLabelProjections=function(e){var t,n=e._private,r=n.rscratch,i=this,o={mid:e.pstyle("label").strValue,source:e.pstyle("source-label").strValue,target:e.pstyle("target-label").strValue};if(o.mid||o.source||o.target){t={x:r.midX,y:r.midY};var a=function(e,t,r){kCt(n.rscratch,e,t,r),kCt(n.rstyle,e,t,r)};a("labelX",null,t.x),a("labelY",null,t.y);var s=nNt(r.midDispX,r.midDispY);a("labelAutoAngle",null,s);var l=function(){if(l.cache)return l.cache;for(var e=[],t=0;t+5<r.allpts.length;t+=4){var o={x:r.allpts[t],y:r.allpts[t+1]},a={x:r.allpts[t+2],y:r.allpts[t+3]},s={x:r.allpts[t+4],y:r.allpts[t+5]};e.push({p0:o,p1:a,p2:s,startDist:0,length:0,segments:[]})}var c=n.rstyle.bezierPts,u=i.bezierProjPcts.length;function h(e,t,n,r,i){var o=oQt(t,n),a=e.segments[e.segments.length-1],s={p0:t,p1:n,t0:r,t1:i,startDist:a?a.startDist+a.length:0,length:o};e.segments.push(s),e.length+=o}for(var d=0;d<e.length;d++){var p=e[d],f=e[d-1];f&&(p.startDist=f.startDist+f.length),h(p,p.p0,c[d*u],0,i.bezierProjPcts[0]);for(var g=0;g<u-1;g++)h(p,c[d*u+g],c[d*u+g+1],i.bezierProjPcts[g],i.bezierProjPcts[g+1]);h(p,c[d*u+u-1],p.p2,i.bezierProjPcts[u-1],1)}return l.cache=e},c=function(n){var i,s="source"===n;if(o[n]){var c=e.pstyle(n+"-text-offset").pfValue;switch(r.edgeType){case"self":case"compound":case"bezier":case"multibezier":for(var u,h=l(),d=0,p=0,f=0;f<h.length;f++){for(var g=h[s?f:h.length-1-f],m=0;m<g.segments.length;m++){var O=g.segments[s?m:g.segments.length-1-m],A=f===h.length-1&&m===g.segments.length-1;if(d=p,(p+=O.length)>=c||A){u={cp:g,segment:O};break}}if(u)break}var y=u.cp,v=u.segment,b=(c-d)/v.length,x=v.t1-v.t0,w=s?v.t0+x*b:v.t1-x*b;w=uQt(0,w,1),t=cQt(y.p0,y.p1,y.p2,w),i=function(e,t,n,r){var i=uQt(0,r-.001,1),o=uQt(0,r+.001,1),a=cQt(e,t,n,i),s=cQt(e,t,n,o);return rNt(a,s)}(y.p0,y.p1,y.p2,w);break;case"straight":case"segments":case"haystack":for(var k,S,T,$,_=0,C=r.allpts.length,Q=0;Q+3<C&&(s?(T={x:r.allpts[Q],y:r.allpts[Q+1]},$={x:r.allpts[Q+2],y:r.allpts[Q+3]}):(T={x:r.allpts[C-2-Q],y:r.allpts[C-1-Q]},$={x:r.allpts[C-4-Q],y:r.allpts[C-3-Q]}),S=_,!((_+=k=oQt(T,$))>=c));Q+=2);var P=(c-S)/k;P=uQt(0,P,1),t=function(e,t,n,r){var i=t.x-e.x,o=t.y-e.y,a=oQt(e,t),s=i/a,l=o/a;return n=null==n?0:n,r=null!=r?r:n*a,{x:e.x+s*r,y:e.y+l*r}}(T,$,P),i=rNt(T,$)}a("labelX",n,t.x),a("labelY",n,t.y),a("labelAutoAngle",n,i)}};c("source"),c("target"),this.applyLabelDimensions(e)}},tNt.applyLabelDimensions=function(e){this.applyPrefixedLabelDimensions(e),e.isEdge()&&(this.applyPrefixedLabelDimensions(e,"source"),this.applyPrefixedLabelDimensions(e,"target"))},tNt.applyPrefixedLabelDimensions=function(e,t){var n=e._private,r=this.getLabelText(e,t),i=rCt(r,e._private.labelDimsKey);if(wCt(n.rscratch,"prefixedLabelDimsKey",t)!==i){kCt(n.rscratch,"prefixedLabelDimsKey",t,i);var o=this.calculateLabelDimensions(e,r),a=e.pstyle("line-height").pfValue,s=e.pstyle("font-size").pfValue,l=e.pstyle("text-wrap").strValue,c=wCt(n.rscratch,"labelWrapCachedLines",t)||[],u="wrap"!==l?1:Math.max(c.length,1),h=s*a,d=o.width,p=o.height+(u-1)*(a-1)*s;kCt(n.rstyle,"labelWidth",t,d),kCt(n.rscratch,"labelWidth",t,d),kCt(n.rstyle,"labelHeight",t,p),kCt(n.rscratch,"labelHeight",t,p),kCt(n.rscratch,"labelLineHeight",t,h),kCt(n.rscratch,"labelActualDescent",t,o.labelActualDescent)}},tNt.getLabelText=function(e,t){var n=e._private,r=t?t+"-":"",i=e.pstyle(r+"label").strValue,o=e.pstyle("text-transform").value,a=function(e,r){return r?(kCt(n.rscratch,e,t,r),r):wCt(n.rscratch,e,t)};if(!i)return"";"none"==o||("uppercase"==o?i=i.toUpperCase():"lowercase"==o&&(i=i.toLowerCase()));var s=e.pstyle("text-wrap").value;if("wrap"===s){var l=a("labelKey");if(null!=l&&a("labelWrapKey")===l)return a("labelWrapCachedText");for(var c=i.split("\n"),u=e.pstyle("text-max-width").pfValue,h="anywhere"===e.pstyle("text-overflow-wrap").value,d=[],p=/[\s\u200b]+|$/g,f=0;f<c.length;f++){var g=c[f],m=this.calculateLabelDimensions(e,g).width;if(h){var O=g.split("").join("");g=O}if(m>u){var A,y="",v=0,b=g$t(g.matchAll(p));try{for(b.s();!(A=b.n()).done;){var x=A.value,w=x[0],k=g.substring(v,x.index);v=x.index+w.length;var S=0===y.length?k:y+k+w;this.calculateLabelDimensions(e,S).width<=u?y+=k+w:(y&&d.push(y),y=k+w)}}catch(Q){b.e(Q)}finally{b.f()}y.match(/^[\s\u200b]+$/)||d.push(y)}else d.push(g)}a("labelWrapCachedLines",d),i=a("labelWrapCachedText",d.join("\n")),a("labelWrapKey",l)}else if("ellipsis"===s){var T=e.pstyle("text-max-width").pfValue,$="",_=!1;if(this.calculateLabelDimensions(e,i).width<T)return i;for(var C=0;C<i.length;C++){if(this.calculateLabelDimensions(e,$+i[C]+"…").width>T)break;$+=i[C],C===i.length-1&&(_=!0)}return _||($+="…"),$}return i},tNt.getLabelJustification=function(e){var t=e.pstyle("text-justification").strValue,n=e.pstyle("text-halign").strValue;return"auto"===t?e.isNode()?function(e){switch(e){case"left":case"right-inside":return"right";case"right":case"left-inside":return"left";default:return"center"}}(n):"center":t},tNt.calculateLabelDimensions=function(e,t){var n=this.cy.window().document,r=e.pstyle("font-style").strValue,i=e.pstyle("font-size").pfValue,o=e.pstyle("font-family").strValue,a=e.pstyle("font-weight").strValue,s=e.pstyle("text-metrics").strValue||"font",l=this.labelCalcCanvas,c=this.labelCalcCanvasContext;if(!l){l=this.labelCalcCanvas=n.createElement("canvas"),c=this.labelCalcCanvasContext=l.getContext("2d");var u=l.style;u.position="absolute",u.left="-9999px",u.top="-9999px",u.zIndex="-1",u.visibility="hidden",u.pointerEvents="none"}c.font="".concat(r," ").concat(a," ").concat(i,"px ").concat(o);for(var h=0,d=0,p=t.split("\n"),f=p.length,g=0,m=0,O=0;O<f;O++){var A=p[O],y=c.measureText(A),v=Math.ceil(y.width),b=i;"glyph"===s&&(0===O&&(m=y.actualBoundingBoxAscent),O===f-1&&(g=y.actualBoundingBoxDescent)),h=Math.max(v,h),d+=b}return"glyph"===s&&(d-=i-m-g),{width:h+=0,height:d+=0,labelActualAscent:m,labelActualDescent:g}},tNt.calculateLabelAngle=function(e,t){var n=e._private.rscratch,r=e.isEdge(),i=t?t+"-":"",o=e.pstyle(i+"text-rotation"),a=o.strValue;return"none"===a?0:r&&"autorotate"===a?n.labelAutoAngle:"autorotate"===a?0:o.pfValue},tNt.calculateLabelAngles=function(e){var t=this,n=e.isEdge(),r=e._private.rscratch;r.labelAngle=t.calculateLabelAngle(e),n&&(r.sourceLabelAngle=t.calculateLabelAngle(e,"source"),r.targetLabelAngle=t.calculateLabelAngle(e,"target"))};var iNt={},oNt=!1;iNt.getNodeShape=function(e){var t=e.pstyle("shape").value;if("cutrectangle"===t&&(e.width()<28||e.height()<28))return oNt||(gCt(),oNt=!0),"rectangle";if(e.isParent())return"rectangle"===t||"roundrectangle"===t||"round-rectangle"===t||"cutrectangle"===t||"cut-rectangle"===t||"barrel"===t?t:"rectangle";if("polygon"===t){var n=e.pstyle("shape-polygon-points").value;return this.nodeShapes.makePolygon(n).name}return t};var aNt={registerCalculationListeners:function(){var e=this.cy,t=e.collection(),n=this,r=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t.merge(e),n)for(var r=0;r<e.length;r++){var i=e[r]._private.rstyle;i.clean=!1,i.cleanConnected=!1}};n.binder(e).on("bounds.* dirty.*",function(e){var t=e.target;r(t)}).on("style.* background.*",function(e){var t=e.target;r(t,!1)});var i=function(i){if(i){var o=n.onUpdateEleCalcsFns;t.cleanStyle();for(var a=0;a<t.length;a++){var s=t[a],l=s._private.rstyle;s.isNode()&&!l.cleanConnected&&(r(s.connectedEdges()),l.cleanConnected=!0)}if(o)for(var c=0;c<o.length;c++){(0,o[c])(i,t)}n.recalculateRenderedStyle(t),t=e.collection()}};n.flushRenderedStyleQueue=function(){i(!0)},n.beforeRender(i,n.beforeRenderPriorities.eleCalcs)},onUpdateEleCalcs:function(e){(this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[]).push(e)},recalculateRenderedStyle:function(e,t){var n=function(e){return e._private.rstyle.cleanConnected};if(0!==e.length){var r=[],i=[];if(!this.destroyed){void 0===t&&(t=!0);for(var o=0;o<e.length;o++){var a=e[o],s=a._private,l=s.rstyle;!a.isEdge()||n(a.source())&&n(a.target())||(l.clean=!1),a.isEdge()&&a.isBundledBezier()&&a.parallelEdges().some(function(e){return!e._private.rstyle.clean&&e.isBundledBezier()})&&(l.clean=!1),t&&l.clean||a.removed()||"none"!==a.pstyle("display").value&&("nodes"===s.group?i.push(a):r.push(a),l.clean=!0)}for(var c=0;c<i.length;c++){var u=i[c],h=u._private.rstyle,d=u.position();this.recalculateNodeLabelProjection(u),h.nodeX=d.x,h.nodeY=d.y,h.nodeW=u.pstyle("width").pfValue,h.nodeH=u.pstyle("height").pfValue}this.recalculateEdgeProjections(r);for(var p=0;p<r.length;p++){var f=r[p]._private,g=f.rstyle,m=f.rscratch;g.srcX=m.arrowStartX,g.srcY=m.arrowStartY,g.tgtX=m.arrowEndX,g.tgtY=m.arrowEndY,g.midX=m.midX,g.midY=m.midY,g.labelAngle=m.labelAngle,g.sourceLabelAngle=m.sourceLabelAngle,g.targetLabelAngle=m.targetLabelAngle}}}}},sNt={updateCachedGrabbedEles:function(){var e=this.cachedZSortedEles;if(e){e.drag=[],e.nondrag=[];for(var t=[],n=0;n<e.length;n++){var r=(i=e[n])._private.rscratch;i.grabbed()&&!i.isParent()?t.push(i):r.inDragLayer?e.drag.push(i):e.nondrag.push(i)}for(n=0;n<t.length;n++){var i=t[n];e.drag.push(i)}}},invalidateCachedZSortedEles:function(){this.cachedZSortedEles=null},getCachedZSortedEles:function(e){if(e||!this.cachedZSortedEles){var t=this.cy.mutableElements().toArray();t.sort(bLt),t.interactive=t.filter(function(e){return e.interactive()}),this.cachedZSortedEles=t,this.updateCachedGrabbedEles()}else t=this.cachedZSortedEles;return t}},lNt={};[wMt,kMt,GMt,KMt,JMt,tNt,iNt,aNt,sNt].forEach(function(e){C_t(lNt,e)});var cNt={getCachedImage:function(e,t,n){var r=this.imageCache=this.imageCache||{},i=r[e];if(i)return i.image.complete||i.image.addEventListener("load",n),i.image;var o=(i=r[e]=r[e]||{}).image=new Image;o.addEventListener("load",n),o.addEventListener("error",function(){o.error=!0});var a="data:";return e.substring(0,5).toLowerCase()===a||(t="null"===t?null:t,o.crossOrigin=t),o.src=e,o}},uNt=function(e,t){var n=e[0];n&&n._private.grabbed!==t&&(n._private.grabbed=t,e.updateStyle(!1))},hNt={registerBinding:function(e,t,n,r){var i=Array.prototype.slice.apply(arguments,[1]);if(Array.isArray(e)){for(var o=[],a=0;a<e.length;a++){var s=e[a];if(void 0!==s){var l=this.binder(s);o.push(l.on.apply(l,i))}}return o}return(l=this.binder(e)).on.apply(l,i)}};hNt.binder=function(e){var t,n=this,r=n.cy.window(),i=e===r||e===r.document||e===r.document.body||(t=e,"undefined"!=typeof HTMLElement&&t instanceof HTMLElement);if(null==n.supportsPassiveEvents){var o=!1;try{var a=Object.defineProperty({},"passive",{get:function(){return o=!0,!0}});r.addEventListener("test",null,a)}catch(l){}n.supportsPassiveEvents=o}var s=function(t,r,o){var a=Array.prototype.slice.call(arguments);return i&&n.supportsPassiveEvents&&(a[2]={capture:null!=o&&o,passive:!1,once:!1}),n.bindings.push({target:e,args:a}),(e.addEventListener||e.on).apply(e,a),this};return{on:s,addEventListener:s,addListener:s,bind:s}},hNt.nodeIsDraggable=function(e){return e&&e.isNode()&&!e.locked()&&e.grabbable()},hNt.nodeIsGrabbable=function(e){return this.nodeIsDraggable(e)&&e.interactive()},hNt.load=function(){var e=this,t=e.cy.window(),n=function(e){return e.selected()},r=function(t,n,r,i){null==t&&(t=e.cy);for(var o=0;o<n.length;o++){var a=n[o];t.emit({originalEvent:r,type:a,position:i})}},i=function(e){return e.shiftKey||e.metaKey||e.ctrlKey},o=function(t,n){var r=!0;if(e.cy.hasCompoundNodes()&&t&&t.pannable())for(var i=0;n&&i<n.length;i++){if((t=n[i]).isNode()&&t.isParent()&&!t.pannable()){r=!1;break}}else r=!0;return r},a=function(e){e[0]._private.rscratch.inDragLayer=!0},s=function(e){e[0]._private.rscratch.isGrabTarget=!0},l=function(e,t){var n=t.addToList;n.has(e)||!e.grabbable()||e.locked()||(n.merge(e),function(e){uNt(e,!0)}(e))},c=function(t,n){n=n||{};var r=t.cy().hasCompoundNodes();n.inDragLayer&&(t.forEach(a),t.neighborhood().stdFilter(function(e){return!r||e.isEdge()}).forEach(a)),n.addToList&&t.forEach(function(e){l(e,n)}),function(e,t){if(e.cy().hasCompoundNodes()&&(null!=t.inDragLayer||null!=t.addToList)){var n=e.descendants();t.inDragLayer&&(n.forEach(a),n.connectedEdges().forEach(a)),t.addToList&&l(n,t)}}(t,n),d(t,{inDragLayer:n.inDragLayer}),e.updateCachedGrabbedEles()},u=c,h=function(t){t&&(e.getCachedZSortedEles().forEach(function(e){!function(e){uNt(e,!1)}(e),function(e){e[0]._private.rscratch.inDragLayer=!1}(e),function(e){e[0]._private.rscratch.isGrabTarget=!1}(e)}),e.updateCachedGrabbedEles())},d=function(e,t){if((null!=t.inDragLayer||null!=t.addToList)&&e.cy().hasCompoundNodes()){var n=e.ancestors().orphans();if(!n.same(e)){var r=n.descendants().spawnSelf().merge(n).unmerge(e).unmerge(e.descendants()),i=r.connectedEdges();t.inDragLayer&&(i.forEach(a),r.forEach(a)),t.addToList&&r.forEach(function(e){l(e,t)})}}},p=function(){null!=document.activeElement&&null!=document.activeElement.blur&&document.activeElement.blur()},f="undefined"!=typeof MutationObserver,g="undefined"!=typeof ResizeObserver;f?(e.removeObserver=new MutationObserver(function(t){for(var n=0;n<t.length;n++){var r=t[n].removedNodes;if(r)for(var i=0;i<r.length;i++){if(r[i]===e.container){e.destroy();break}}}}),e.container.parentNode&&e.removeObserver.observe(e.container.parentNode,{childList:!0})):e.registerBinding(e.container,"DOMNodeRemoved",function(t){e.destroy()});var m=z_t(function(){e.cy.resize()},100);f&&(e.styleObserver=new MutationObserver(m),e.styleObserver.observe(e.container,{attributes:!0})),e.registerBinding(t,"resize",m),g&&(e.resizeObserver=new ResizeObserver(m),e.resizeObserver.observe(e.container));var O=function(){e.invalidateContainerClientCoordsCache()};!function(e,t){for(;null!=e;)t(e),e=e.parentNode}(e.container,function(t){e.registerBinding(t,"transitionend",O),e.registerBinding(t,"animationend",O),e.registerBinding(t,"scroll",O)}),e.registerBinding(e.container,"contextmenu",function(e){e.preventDefault()});var A=function(t){for(var n=e.findContainerClientCoords(),r=n[0],i=n[1],o=n[2],a=n[3],s=t.touches?t.touches:[t],l=!1,c=0;c<s.length;c++){var u=s[c];if(r<=u.clientX&&u.clientX<=r+o&&i<=u.clientY&&u.clientY<=i+a){l=!0;break}}if(!l)return!1;for(var h=e.container,d=t.target.parentNode,p=!1;d;){if(d===h){p=!0;break}d=d.parentNode}return!!p};e.registerBinding(e.container,"mousedown",function(t){if(A(t)&&(1!==e.hoverData.which||1===t.which)){t.preventDefault(),p(),e.hoverData.capture=!0,e.hoverData.which=t.which;var n=e.cy,i=[t.clientX,t.clientY],o=e.projectIntoViewport(i[0],i[1]),a=e.selection,l=e.findNearestElements(o[0],o[1],!0,!1),h=l[0],d=e.dragData.possibleDragElements;e.hoverData.mdownPos=o,e.hoverData.mdownGPos=i;var f=function(e){return{originalEvent:t,type:e,position:{x:o[0],y:o[1]}}};if(3==t.which){e.hoverData.cxtStarted=!0;var g={originalEvent:t,type:"cxttapstart",position:{x:o[0],y:o[1]}};h?(h.activate(),h.emit(g),e.hoverData.down=h):n.emit(g),e.hoverData.downTime=(new Date).getTime(),e.hoverData.cxtDragged=!1}else if(1==t.which){if(h&&h.activate(),null!=h&&e.nodeIsGrabbable(h)){if(s(h),h.selected()){d=e.dragData.possibleDragElements=n.collection();var m=n.$(function(t){return t.isNode()&&t.selected()&&e.nodeIsGrabbable(t)});c(m,{addToList:d}),h.emit(f("grabon")),m.forEach(function(e){e.emit(f("grab"))})}else d=e.dragData.possibleDragElements=n.collection(),u(h,{addToList:d}),h.emit(f("grabon")).emit(f("grab"));e.redrawHint("eles",!0),e.redrawHint("drag",!0)}e.hoverData.down=h,e.hoverData.downs=l,e.hoverData.downTime=(new Date).getTime(),r(h,["mousedown","tapstart","vmousedown"],t,{x:o[0],y:o[1]}),null==h?(a[4]=1,e.data.bgActivePosistion={x:o[0],y:o[1]},e.redrawHint("select",!0),e.redraw()):h.pannable()&&(a[4]=1),e.hoverData.tapholdCancelled=!1,clearTimeout(e.hoverData.tapholdTimeout),e.hoverData.tapholdTimeout=setTimeout(function(){if(!e.hoverData.tapholdCancelled){var t=e.hoverData.down;t?t.emit(f("taphold")):n.emit(f("taphold"))}},e.tapholdDuration)}a[0]=a[2]=o[0],a[1]=a[3]=o[1]}},!1);var y,v,b,x=function(e){var t=e.getRootNode();if(t&&11===t.nodeType&&void 0!==t.host)return t}(e.container);e.registerBinding([t,x],"mousemove",function(t){if(e.hoverData.capture||A(t)){var n=!1,a=e.cy,s=a.zoom(),l=[t.clientX,t.clientY],u=e.projectIntoViewport(l[0],l[1]),d=e.hoverData.mdownPos,p=e.hoverData.mdownGPos,f=e.selection,g=null;e.hoverData.draggingEles||e.hoverData.dragging||e.hoverData.selecting||(g=e.findNearestElement(u[0],u[1],!0,!1));var m,O=e.hoverData.last,y=e.hoverData.down,v=[u[0]-f[2],u[1]-f[3]],b=e.dragData.possibleDragElements;if(p){var x=l[0]-p[0],w=x*x,k=l[1]-p[1],S=w+k*k;e.hoverData.isOverThresholdDrag=m=S>=e.desktopTapThreshold2}var T=i(t);m&&(e.hoverData.tapholdCancelled=!0);n=!0,r(g,["mousemove","vmousemove","tapdrag"],t,{x:u[0],y:u[1]});var $,_=function(e){return{originalEvent:t,type:e,position:{x:u[0],y:u[1]}}},C=function(){e.data.bgActivePosistion=void 0,e.hoverData.selecting||a.emit(_("boxstart")),f[4]=1,e.hoverData.selecting=!0,e.redrawHint("select",!0),e.redraw()};if(3===e.hoverData.which){if(m){var Q=_("cxtdrag");y?y.emit(Q):a.emit(Q),e.hoverData.cxtDragged=!0,e.hoverData.cxtOver&&g===e.hoverData.cxtOver||(e.hoverData.cxtOver&&e.hoverData.cxtOver.emit(_("cxtdragout")),e.hoverData.cxtOver=g,g&&g.emit(_("cxtdragover")))}}else if(e.hoverData.dragging){if(n=!0,a.panningEnabled()&&a.userPanningEnabled()){var P;if(e.hoverData.justStartedPan){var E=e.hoverData.mdownPos;P={x:(u[0]-E[0])*s,y:(u[1]-E[1])*s},e.hoverData.justStartedPan=!1}else P={x:v[0]*s,y:v[1]*s};a.panBy(P),a.emit(_("dragpan")),e.hoverData.dragged=!0}u=e.projectIntoViewport(t.clientX,t.clientY)}else if(1!=f[4]||null!=y&&!y.pannable()){if(y&&y.pannable()&&y.active()&&y.unactivate(),y&&y.grabbed()||g==O||(O&&r(O,["mouseout","tapdragout"],t,{x:u[0],y:u[1]}),g&&r(g,["mouseover","tapdragover"],t,{x:u[0],y:u[1]}),e.hoverData.last=g),y)if(m){if(a.boxSelectionEnabled()&&T)y&&y.grabbed()&&(h(b),y.emit(_("freeon")),b.emit(_("free")),e.dragData.didDrag&&(y.emit(_("dragfreeon")),b.emit(_("dragfree")))),C();else if(y&&y.grabbed()&&e.nodeIsDraggable(y)){var R=!e.dragData.didDrag;R&&e.redrawHint("eles",!0),e.dragData.didDrag=!0,e.hoverData.draggingEles||c(b,{inDragLayer:!0});var B={x:0,y:0};if(s_t(v[0])&&s_t(v[1])&&(B.x+=v[0],B.y+=v[1],R)){var I=e.hoverData.dragDelta;I&&s_t(I[0])&&s_t(I[1])&&(B.x+=I[0],B.y+=I[1])}e.hoverData.draggingEles=!0,b.silentShift(B).emit(_("position")).emit(_("drag")),e.redrawHint("drag",!0),e.redraw()}}else 0===($=e.hoverData.dragDelta=e.hoverData.dragDelta||[]).length?($.push(v[0]),$.push(v[1])):($[0]+=v[0],$[1]+=v[1]);n=!0}else if(m){if(e.hoverData.dragging||!a.boxSelectionEnabled()||!T&&a.panningEnabled()&&a.userPanningEnabled()){if(!e.hoverData.selecting&&a.panningEnabled()&&a.userPanningEnabled()){o(y,e.hoverData.downs)&&(e.hoverData.dragging=!0,e.hoverData.justStartedPan=!0,f[4]=0,e.data.bgActivePosistion=eQt(d),e.redrawHint("select",!0),e.redraw())}}else C();y&&y.pannable()&&y.active()&&y.unactivate()}return f[2]=u[0],f[3]=u[1],n?(t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),!1):void 0}},!1),e.registerBinding(t,"mouseup",function(t){if((1!==e.hoverData.which||1===t.which||!e.hoverData.capture)&&e.hoverData.capture){e.hoverData.capture=!1;var o=e.cy,a=e.projectIntoViewport(t.clientX,t.clientY),s=e.selection,l=e.findNearestElement(a[0],a[1],!0,!1),c=e.dragData.possibleDragElements,u=e.hoverData.down,d=i(t);e.data.bgActivePosistion&&(e.redrawHint("select",!0),e.redraw()),e.hoverData.tapholdCancelled=!0,e.data.bgActivePosistion=void 0,u&&u.unactivate();var p=function(e){return{originalEvent:t,type:e,position:{x:a[0],y:a[1]}}};if(3===e.hoverData.which){var f=p("cxttapend");if(u?u.emit(f):o.emit(f),!e.hoverData.cxtDragged){var g=p("cxttap");u?u.emit(g):o.emit(g)}e.hoverData.cxtDragged=!1,e.hoverData.which=null}else if(1===e.hoverData.which){if(r(l,["mouseup","tapend","vmouseup"],t,{x:a[0],y:a[1]}),e.dragData.didDrag||e.hoverData.dragged||e.hoverData.selecting||e.hoverData.isOverThresholdDrag||(r(u,["click","tap","vclick"],t,{x:a[0],y:a[1]}),v=!1,t.timeStamp-b<=o.multiClickDebounceTime()?(y&&clearTimeout(y),v=!0,b=null,r(u,["dblclick","dbltap","vdblclick"],t,{x:a[0],y:a[1]})):(y=setTimeout(function(){v||r(u,["oneclick","onetap","voneclick"],t,{x:a[0],y:a[1]})},o.multiClickDebounceTime()),b=t.timeStamp)),null!=u||e.dragData.didDrag||e.hoverData.selecting||e.hoverData.dragged||i(t)||(o.$(n).unselect(["tapunselect"]),c.length>0&&e.redrawHint("eles",!0),e.dragData.possibleDragElements=c=o.collection()),l!=u||e.dragData.didDrag||e.hoverData.selecting||null!=l&&l._private.selectable&&(e.hoverData.dragging||("additive"===o.selectionType()||d?l.selected()?l.unselect(["tapunselect"]):l.select(["tapselect"]):d||(o.$(n).unmerge(l).unselect(["tapunselect"]),l.select(["tapselect"]))),e.redrawHint("eles",!0)),e.hoverData.selecting){var m=o.collection(e.getAllInBox(s[0],s[1],s[2],s[3]));e.redrawHint("select",!0),m.length>0&&e.redrawHint("eles",!0),o.emit(p("boxend"));var O=function(e){return e.selectable()&&!e.selected()};"additive"===o.selectionType()||d||o.$(n).unmerge(m).unselect(),m.emit(p("box")).stdFilter(O).select().emit(p("boxselect")),e.redraw()}if(e.hoverData.dragging&&(e.hoverData.dragging=!1,e.redrawHint("select",!0),e.redrawHint("eles",!0),e.redraw()),!s[4]){e.redrawHint("drag",!0),e.redrawHint("eles",!0);var A=u&&u.grabbed();h(c),A&&(u.emit(p("freeon")),c.emit(p("free")),e.dragData.didDrag&&(u.emit(p("dragfreeon")),c.emit(p("dragfree"))))}}s[4]=0,e.hoverData.down=null,e.hoverData.cxtStarted=!1,e.hoverData.draggingEles=!1,e.hoverData.selecting=!1,e.hoverData.isOverThresholdDrag=!1,e.dragData.didDrag=!1,e.hoverData.dragged=!1,e.hoverData.dragDelta=[],e.hoverData.mdownPos=null,e.hoverData.mdownGPos=null,e.hoverData.which=null}},!1);var w,k,S,T,$,_,C,Q,P,E,R,B,I,L,D=[],M=1e5,N=function(t){var n=!1,r=t.deltaY;if(null==r&&(null!=t.wheelDeltaY?r=t.wheelDeltaY/4:null!=t.wheelDelta&&(r=t.wheelDelta/4)),0!==r){if(null==w)if(D.length>=4){w=!1;var i,o=D;if(o[0]>=5)i=function(e){for(var t=Math.abs(e[0]),n=1;n<e.length;n++)if(Math.abs(e[n])!==t)return!1;return!0}(o)?o[0]:function(e){for(var t=e[0],n=0;n<e.length;n++){if(!l_t(e[n]))return 0;n>0&&(t=tQt(t,e[n]))}return t}(o),i>1&&(w=!0,M=i)}else D.push(Math.abs(r)),n=!0;else w&&(M=Math.min(Math.abs(r),M));if(!e.scrollingPage){var a=e.cy,s=a.zoom(),l=a.pan(),c=e.projectIntoViewport(t.clientX,t.clientY),u=[c[0]*s+l.x,c[1]*s+l.y];if(e.hoverData.draggingEles||e.hoverData.dragging||e.hoverData.cxtStarted||0!==e.selection[4])t.preventDefault();else if(a.panningEnabled()&&a.userPanningEnabled()&&a.zoomingEnabled()&&a.userZoomingEnabled()){var h;t.preventDefault(),e.data.wheelZooming=!0,clearTimeout(e.data.wheelTimeout),e.data.wheelTimeout=setTimeout(function(){e.data.wheelZooming=!1,e.redrawHint("eles",!0),e.redraw()},150),n&&Math.abs(r)>5&&(r=5*iQt(r)),h=r/-250,w&&(h/=M,h*=3),h*=e.wheelSensitivity,1===t.deltaMode&&(h*=33);var d=a.zoom()*Math.pow(10,h);"gesturechange"===t.type&&(d=e.gestureStartZoom*t.scale),a.zoom({level:d,renderedPosition:{x:u[0],y:u[1]}}),a.emit({type:"gesturechange"===t.type?"pinchzoom":"scrollzoom",originalEvent:t,position:{x:c[0],y:c[1]}})}}}};e.registerBinding(e.container,"wheel",N,!0),e.registerBinding(t,"scroll",function(t){e.scrollingPage=!0,clearTimeout(e.scrollingPageTimeout),e.scrollingPageTimeout=setTimeout(function(){e.scrollingPage=!1},250)},!0),e.registerBinding(e.container,"gesturestart",function(t){e.gestureStartZoom=e.cy.zoom(),e.hasTouchStarted||t.preventDefault()},!0),e.registerBinding(e.container,"gesturechange",function(t){e.hasTouchStarted||N(t)},!0),e.registerBinding(e.container,"mouseout",function(t){var n=e.projectIntoViewport(t.clientX,t.clientY);e.cy.emit({originalEvent:t,type:"mouseout",position:{x:n[0],y:n[1]}})},!1),e.registerBinding(e.container,"mouseover",function(t){var n=e.projectIntoViewport(t.clientX,t.clientY);e.cy.emit({originalEvent:t,type:"mouseover",position:{x:n[0],y:n[1]}})},!1);var X,F,U,z,q,V,W,j=function(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))},Y=function(e,t,n,r){return(n-e)*(n-e)+(r-t)*(r-t)};if(e.registerBinding(e.container,"touchstart",X=function(t){if(e.hasTouchStarted=!0,A(t)){p(),e.touchData.capture=!0,e.data.bgActivePosistion=void 0;var n=e.cy,i=e.touchData.now,o=e.touchData.earlier;if(t.touches[0]){var a=e.projectIntoViewport(t.touches[0].clientX,t.touches[0].clientY);i[0]=a[0],i[1]=a[1]}if(t.touches[1]){a=e.projectIntoViewport(t.touches[1].clientX,t.touches[1].clientY);i[2]=a[0],i[3]=a[1]}if(t.touches[2]){a=e.projectIntoViewport(t.touches[2].clientX,t.touches[2].clientY);i[4]=a[0],i[5]=a[1]}var l=function(e){return{originalEvent:t,type:e,position:{x:i[0],y:i[1]}}};if(t.touches[1]){e.touchData.singleTouchMoved=!0,h(e.dragData.touchDragEles);var d=e.findContainerClientCoords();E=d[0],R=d[1],B=d[2],I=d[3],k=t.touches[0].clientX-E,S=t.touches[0].clientY-R,T=t.touches[1].clientX-E,$=t.touches[1].clientY-R,L=0<=k&&k<=B&&0<=T&&T<=B&&0<=S&&S<=I&&0<=$&&$<=I;var f=n.pan(),g=n.zoom();_=j(k,S,T,$),C=Y(k,S,T,$),P=[((Q=[(k+T)/2,(S+$)/2])[0]-f.x)/g,(Q[1]-f.y)/g];if(C<4e4&&!t.touches[2]){var m=e.findNearestElement(i[0],i[1],!0,!0),O=e.findNearestElement(i[2],i[3],!0,!0);return m&&m.isNode()?(m.activate().emit(l("cxttapstart")),e.touchData.start=m):O&&O.isNode()?(O.activate().emit(l("cxttapstart")),e.touchData.start=O):n.emit(l("cxttapstart")),e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxt=!0,e.touchData.cxtDragged=!1,e.data.bgActivePosistion=void 0,void e.redraw()}}if(t.touches[2])n.boxSelectionEnabled()&&t.preventDefault();else if(t.touches[1]);else if(t.touches[0]){var y=e.findNearestElements(i[0],i[1],!0,!0),v=y[0];if(null!=v&&(v.activate(),e.touchData.start=v,e.touchData.starts=y,e.nodeIsGrabbable(v))){var b=e.dragData.touchDragEles=n.collection(),x=null;e.redrawHint("eles",!0),e.redrawHint("drag",!0),v.selected()?(x=n.$(function(t){return t.selected()&&e.nodeIsGrabbable(t)}),c(x,{addToList:b})):u(v,{addToList:b}),s(v),v.emit(l("grabon")),x?x.forEach(function(e){e.emit(l("grab"))}):v.emit(l("grab"))}r(v,["touchstart","tapstart","vmousedown"],t,{x:i[0],y:i[1]}),null==v&&(e.data.bgActivePosistion={x:a[0],y:a[1]},e.redrawHint("select",!0),e.redraw()),e.touchData.singleTouchMoved=!1,e.touchData.singleTouchStartTime=+new Date,clearTimeout(e.touchData.tapholdTimeout),e.touchData.tapholdTimeout=setTimeout(function(){!1!==e.touchData.singleTouchMoved||e.pinching||e.touchData.selecting||r(e.touchData.start,["taphold"],t,{x:i[0],y:i[1]})},e.tapholdDuration)}if(t.touches.length>=1){for(var w=e.touchData.startPosition=[null,null,null,null,null,null],D=0;D<i.length;D++)w[D]=o[D]=i[D];var M=t.touches[0];e.touchData.startGPosition=[M.clientX,M.clientY]}}},!1),e.registerBinding(t,"touchmove",F=function(t){var n=e.touchData.capture;if(n||A(t)){var i=e.selection,a=e.cy,s=e.touchData.now,l=e.touchData.earlier,u=a.zoom();if(t.touches[0]){var d=e.projectIntoViewport(t.touches[0].clientX,t.touches[0].clientY);s[0]=d[0],s[1]=d[1]}if(t.touches[1]){d=e.projectIntoViewport(t.touches[1].clientX,t.touches[1].clientY);s[2]=d[0],s[3]=d[1]}if(t.touches[2]){d=e.projectIntoViewport(t.touches[2].clientX,t.touches[2].clientY);s[4]=d[0],s[5]=d[1]}var p,f=function(e){return{originalEvent:t,type:e,position:{x:s[0],y:s[1]}}},g=e.touchData.startGPosition;if(n&&t.touches[0]&&g){for(var m=[],O=0;O<s.length;O++)m[O]=s[O]-l[O];var y=t.touches[0].clientX-g[0],v=y*y,b=t.touches[0].clientY-g[1];p=v+b*b>=e.touchTapThreshold2}if(n&&e.touchData.cxt){t.preventDefault();var x=t.touches[0].clientX-E,w=t.touches[0].clientY-R,Q=t.touches[1].clientX-E,B=t.touches[1].clientY-R,I=Y(x,w,Q,B);if(I/C>=2.25||I>=22500){e.touchData.cxt=!1,e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var D=f("cxttapend");e.touchData.start?(e.touchData.start.unactivate().emit(D),e.touchData.start=null):a.emit(D)}}if(n&&e.touchData.cxt){D=f("cxtdrag");e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),e.touchData.start?e.touchData.start.emit(D):a.emit(D),e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxtDragged=!0;var M=e.findNearestElement(s[0],s[1],!0,!0);e.touchData.cxtOver&&M===e.touchData.cxtOver||(e.touchData.cxtOver&&e.touchData.cxtOver.emit(f("cxtdragout")),e.touchData.cxtOver=M,M&&M.emit(f("cxtdragover")))}else if(n&&t.touches[2]&&a.boxSelectionEnabled())t.preventDefault(),e.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,e.touchData.selecting||a.emit(f("boxstart")),e.touchData.selecting=!0,e.touchData.didSelect=!0,i[4]=1,i&&0!==i.length&&void 0!==i[0]?(i[2]=(s[0]+s[2]+s[4])/3,i[3]=(s[1]+s[3]+s[5])/3):(i[0]=(s[0]+s[2]+s[4])/3,i[1]=(s[1]+s[3]+s[5])/3,i[2]=(s[0]+s[2]+s[4])/3+1,i[3]=(s[1]+s[3]+s[5])/3+1),e.redrawHint("select",!0),e.redraw();else if(n&&t.touches[1]&&!e.touchData.didSelect&&a.zoomingEnabled()&&a.panningEnabled()&&a.userZoomingEnabled()&&a.userPanningEnabled()){if(t.preventDefault(),e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),ee=e.dragData.touchDragEles){e.redrawHint("drag",!0);for(var N=0;N<ee.length;N++){var X=ee[N]._private;X.grabbed=!1,X.rscratch.inDragLayer=!1}}var F=e.touchData.start,U=(x=t.touches[0].clientX-E,w=t.touches[0].clientY-R,Q=t.touches[1].clientX-E,B=t.touches[1].clientY-R,j(x,w,Q,B)),z=U/_;if(L){var q=(x-k+(Q-T))/2,V=(w-S+(B-$))/2,W=a.zoom(),Z=W*z,G=a.pan(),H=P[0]*W+G.x,K=P[1]*W+G.y,J={x:-Z/W*(H-G.x-q)+H,y:-Z/W*(K-G.y-V)+K};if(F&&F.active()){var ee=e.dragData.touchDragEles;h(ee),e.redrawHint("drag",!0),e.redrawHint("eles",!0),F.unactivate().emit(f("freeon")),ee&&ee.emit(f("free")),e.dragData.didDrag&&(F.emit(f("dragfreeon")),ee&&ee.emit(f("dragfree")))}a.viewport({zoom:Z,pan:J,cancelOnFailedZoom:!0}),a.emit(f("pinchzoom")),_=U,k=x,S=w,T=Q,$=B,e.pinching=!0}if(t.touches[0]){d=e.projectIntoViewport(t.touches[0].clientX,t.touches[0].clientY);s[0]=d[0],s[1]=d[1]}if(t.touches[1]){d=e.projectIntoViewport(t.touches[1].clientX,t.touches[1].clientY);s[2]=d[0],s[3]=d[1]}if(t.touches[2]){d=e.projectIntoViewport(t.touches[2].clientX,t.touches[2].clientY);s[4]=d[0],s[5]=d[1]}}else if(t.touches[0]&&!e.touchData.didSelect){var te=e.touchData.start,ne=e.touchData.last;if(e.hoverData.draggingEles||e.swipePanning||(M=e.findNearestElement(s[0],s[1],!0,!0)),n&&null!=te&&t.preventDefault(),n&&null!=te&&e.nodeIsDraggable(te))if(p){ee=e.dragData.touchDragEles;var re=!e.dragData.didDrag;re&&c(ee,{inDragLayer:!0}),e.dragData.didDrag=!0;var ie={x:0,y:0};if(s_t(m[0])&&s_t(m[1]))if(ie.x+=m[0],ie.y+=m[1],re)e.redrawHint("eles",!0),(oe=e.touchData.dragDelta)&&s_t(oe[0])&&s_t(oe[1])&&(ie.x+=oe[0],ie.y+=oe[1]);e.hoverData.draggingEles=!0,ee.silentShift(ie).emit(f("position")).emit(f("drag")),e.redrawHint("drag",!0),e.touchData.startPosition[0]==l[0]&&e.touchData.startPosition[1]==l[1]&&e.redrawHint("eles",!0),e.redraw()}else{var oe;0===(oe=e.touchData.dragDelta=e.touchData.dragDelta||[]).length?(oe.push(m[0]),oe.push(m[1])):(oe[0]+=m[0],oe[1]+=m[1])}if(r(te||M,["touchmove","tapdrag","vmousemove"],t,{x:s[0],y:s[1]}),te&&te.grabbed()||M==ne||(ne&&ne.emit(f("tapdragout")),M&&M.emit(f("tapdragover"))),e.touchData.last=M,n)for(N=0;N<s.length;N++)s[N]&&e.touchData.startPosition[N]&&p&&(e.touchData.singleTouchMoved=!0);if(n&&(null==te||te.pannable())&&a.panningEnabled()&&a.userPanningEnabled()){o(te,e.touchData.starts)&&(t.preventDefault(),e.data.bgActivePosistion||(e.data.bgActivePosistion=eQt(e.touchData.startPosition)),e.swipePanning?(a.panBy({x:m[0]*u,y:m[1]*u}),a.emit(f("dragpan"))):p&&(e.swipePanning=!0,a.panBy({x:y*u,y:b*u}),a.emit(f("dragpan")),te&&(te.unactivate(),e.redrawHint("select",!0),e.touchData.start=null)));d=e.projectIntoViewport(t.touches[0].clientX,t.touches[0].clientY);s[0]=d[0],s[1]=d[1]}}for(O=0;O<s.length;O++)l[O]=s[O];n&&t.touches.length>0&&!e.hoverData.draggingEles&&!e.swipePanning&&null!=e.data.bgActivePosistion&&(e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),e.redraw())}},!1),e.registerBinding(t,"touchcancel",U=function(t){var n=e.touchData.start;e.touchData.capture=!1,n&&n.unactivate()}),e.registerBinding(t,"touchend",z=function(t){var i=e.touchData.start;if(e.touchData.capture){0===t.touches.length&&(e.touchData.capture=!1),t.preventDefault();var o=e.selection;e.swipePanning=!1,e.hoverData.draggingEles=!1;var a=e.cy,s=a.zoom(),l=e.touchData.now,c=e.touchData.earlier;if(t.touches[0]){var u=e.projectIntoViewport(t.touches[0].clientX,t.touches[0].clientY);l[0]=u[0],l[1]=u[1]}if(t.touches[1]){u=e.projectIntoViewport(t.touches[1].clientX,t.touches[1].clientY);l[2]=u[0],l[3]=u[1]}if(t.touches[2]){u=e.projectIntoViewport(t.touches[2].clientX,t.touches[2].clientY);l[4]=u[0],l[5]=u[1]}var d,p=function(e){return{originalEvent:t,type:e,position:{x:l[0],y:l[1]}}};if(i&&i.unactivate(),e.touchData.cxt){if(d=p("cxttapend"),i?i.emit(d):a.emit(d),!e.touchData.cxtDragged){var f=p("cxttap");i?i.emit(f):a.emit(f)}return e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxt=!1,e.touchData.start=null,void e.redraw()}if(!t.touches[2]&&a.boxSelectionEnabled()&&e.touchData.selecting){e.touchData.selecting=!1;var g=a.collection(e.getAllInBox(o[0],o[1],o[2],o[3]));o[0]=void 0,o[1]=void 0,o[2]=void 0,o[3]=void 0,o[4]=0,e.redrawHint("select",!0),a.emit(p("boxend"));g.emit(p("box")).stdFilter(function(e){return e.selectable()&&!e.selected()}).select().emit(p("boxselect")),g.nonempty()&&e.redrawHint("eles",!0),e.redraw()}if(null!=i&&i.unactivate(),t.touches[2])e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);else if(t.touches[1]);else if(t.touches[0]);else if(!t.touches[0]){e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var m=e.dragData.touchDragEles;if(null!=i){var O=i._private.grabbed;h(m),e.redrawHint("drag",!0),e.redrawHint("eles",!0),O&&(i.emit(p("freeon")),m.emit(p("free")),e.dragData.didDrag&&(i.emit(p("dragfreeon")),m.emit(p("dragfree")))),r(i,["touchend","tapend","vmouseup","tapdragout"],t,{x:l[0],y:l[1]}),i.unactivate(),e.touchData.start=null}else{var A=e.findNearestElement(l[0],l[1],!0,!0);r(A,["touchend","tapend","vmouseup","tapdragout"],t,{x:l[0],y:l[1]})}var y=e.touchData.startPosition[0]-l[0],v=y*y,b=e.touchData.startPosition[1]-l[1],x=(v+b*b)*s*s;e.touchData.singleTouchMoved||(i||a.$(":selected").unselect(["tapunselect"]),r(i,["tap","vclick"],t,{x:l[0],y:l[1]}),q=!1,t.timeStamp-W<=a.multiClickDebounceTime()?(V&&clearTimeout(V),q=!0,W=null,r(i,["dbltap","vdblclick"],t,{x:l[0],y:l[1]})):(V=setTimeout(function(){q||r(i,["onetap","voneclick"],t,{x:l[0],y:l[1]})},a.multiClickDebounceTime()),W=t.timeStamp)),null!=i&&!e.dragData.didDrag&&i._private.selectable&&x<e.touchTapThreshold2&&!e.pinching&&("single"===a.selectionType()?(a.$(n).unmerge(i).unselect(["tapunselect"]),i.select(["tapselect"])):i.selected()?i.unselect(["tapunselect"]):i.select(["tapselect"]),e.redrawHint("eles",!0)),e.touchData.singleTouchMoved=!0}for(var w=0;w<l.length;w++)c[w]=l[w];e.dragData.didDrag=!1,0===t.touches.length&&(e.touchData.dragDelta=[],e.touchData.startPosition=[null,null,null,null,null,null],e.touchData.startGPosition=null,e.touchData.didSelect=!1),t.touches.length<2&&(1===t.touches.length&&(e.touchData.startGPosition=[t.touches[0].clientX,t.touches[0].clientY]),e.pinching=!1,e.redrawHint("eles",!0),e.redraw())}},!1),"undefined"==typeof TouchEvent){var Z=[],G=function(e){return{clientX:e.clientX,clientY:e.clientY,force:1,identifier:e.pointerId,pageX:e.pageX,pageY:e.pageY,radiusX:e.width/2,radiusY:e.height/2,screenX:e.screenX,screenY:e.screenY,target:e.target}},H=function(e){Z.push(function(e){return{event:e,touch:G(e)}}(e))},K=function(e){for(var t=0;t<Z.length;t++){if(Z[t].event.pointerId===e.pointerId)return void Z.splice(t,1)}},J=function(e){e.touches=Z.map(function(e){return e.touch})},ee=function(e){return"mouse"===e.pointerType||4===e.pointerType};e.registerBinding(e.container,"pointerdown",function(e){ee(e)||(e.preventDefault(),H(e),J(e),X(e))}),e.registerBinding(e.container,"pointerup",function(e){ee(e)||(K(e),J(e),z(e))}),e.registerBinding(e.container,"pointercancel",function(e){ee(e)||(K(e),J(e),U())}),e.registerBinding(e.container,"pointermove",function(e){ee(e)||(e.preventDefault(),function(e){var t=Z.filter(function(t){return t.event.pointerId===e.pointerId})[0];t.event=e,t.touch=G(e)}(e),J(e),F(e))})}};var dNt={generatePolygon:function(e,t){return this.nodeShapes[e]={renderer:this,name:e,points:t,draw:function(e,t,n,r,i,o){this.renderer.nodeShapeImpl("polygon",e,t,n,r,i,this.points)},intersectLine:function(e,t,n,r,i,o,a,s){return DQt(i,o,this.points,e,t,n/2,r/2,a)},checkPoint:function(e,t,n,r,i,o,a,s){return CQt(e,t,this.points,o,a,r,i,[0,-1],n)},hasMiterBounds:"rectangle"!==e,miterBounds:function(e,t,n,r,i,o){return xQt(this.points,e,t,n,r,i)}}}};dNt.generateEllipse=function(){return this.nodeShapes.ellipse={renderer:this,name:"ellipse",draw:function(e,t,n,r,i,o){this.renderer.nodeShapeImpl(this.name,e,t,n,r,i)},intersectLine:function(e,t,n,r,i,o,a,s){return function(e,t,n,r,i,o){var a=n-e,s=r-t;a/=i,s/=o;var l=Math.sqrt(a*a+s*s),c=l-1;if(c<0)return[];var u=c/l;return[(n-e)*u+e,(r-t)*u+t]}(i,o,e,t,n/2+a,r/2+a)},checkPoint:function(e,t,n,r,i,o,a,s){return EQt(e,t,r,i,o,a,n)}}},dNt.generateRoundPolygon=function(e,t){return this.nodeShapes[e]={renderer:this,name:e,points:t,getOrCreateCorners:function(e,n,r,i,o,a,s){if(void 0!==a[s]&&a[s+"-cx"]===e&&a[s+"-cy"]===n&&a[s+"-w"]===r&&a[s+"-h"]===i&&a[s+"-corner-radius"]===o)return a[s];a[s]=new Array(t.length/2),a[s+"-cx"]=e,a[s+"-cy"]=n,a[s+"-w"]=r,a[s+"-h"]=i,a[s+"-corner-radius"]=o;var l=r/2,c=i/2;o="auto"===o?zQt(r,i):o;for(var u=new Array(t.length/2),h=0;h<t.length/2;h++)u[h]={x:e+l*t[2*h],y:n+c*t[2*h+1]};var d,p,f,g,m=u.length;for(p=u[m-1],d=0;d<m;d++)f=u[d%m],g=u[(d+1)%m],a[s][d]=jMt(p,f,g,o),p=f,f=g;return a[s]},draw:function(e,t,n,r,i,o,a){this.renderer.nodeShapeImpl("round-polygon",e,t,n,r,i,this.points,this.getOrCreateCorners(t,n,r,i,o,a,"drawCorners"))},intersectLine:function(e,t,n,r,i,o,a,s,l){return function(e,t,n,r,i,o,a,s,l){var c,u=[],h=new Array(2*n.length);l.forEach(function(n,o){0===o?(h[h.length-2]=n.startX,h[h.length-1]=n.startY):(h[4*o-2]=n.startX,h[4*o-1]=n.startY),h[4*o]=n.stopX,h[4*o+1]=n.stopY,0!==(c=RQt(e,t,r,i,n.cx,n.cy,n.radius)).length&&u.push(c[0],c[1])});for(var d=0;d<h.length/4;d++)0!==(c=IQt(e,t,r,i,h[4*d],h[4*d+1],h[4*d+2],h[4*d+3],!1)).length&&u.push(c[0],c[1]);if(u.length>2){for(var p=[u[0],u[1]],f=Math.pow(p[0]-e,2)+Math.pow(p[1]-t,2),g=1;g<u.length/2;g++){var m=Math.pow(u[2*g]-e,2)+Math.pow(u[2*g+1]-t,2);m<=f&&(p[0]=u[2*g],p[1]=u[2*g+1],f=m)}return p}return u}(i,o,this.points,e,t,0,0,0,this.getOrCreateCorners(e,t,n,r,s,l,"corners"))},checkPoint:function(e,t,n,r,i,o,a,s,l){return function(e,t,n,r,i,o,a,s){for(var l=new Array(2*n.length),c=0;c<s.length;c++){var u=s[c];if(l[4*c+0]=u.startX,l[4*c+1]=u.startY,l[4*c+2]=u.stopX,l[4*c+3]=u.stopY,Math.pow(u.cx-e,2)+Math.pow(u.cy-t,2)<=Math.pow(u.radius,2))return!0}return _Qt(e,t,l)}(e,t,this.points,0,0,0,0,this.getOrCreateCorners(o,a,r,i,s,l,"corners"))}}},dNt.generateRoundRectangle=function(){return this.nodeShapes["round-rectangle"]=this.nodeShapes.roundrectangle={renderer:this,name:"round-rectangle",points:NQt(4,0),draw:function(e,t,n,r,i,o){this.renderer.nodeShapeImpl(this.name,e,t,n,r,i,this.points,o)},intersectLine:function(e,t,n,r,i,o,a,s){return wQt(i,o,e,t,n,r,a,s)},checkPoint:function(e,t,n,r,i,o,a,s){var l=r/2,c=i/2;s="auto"===s?UQt(r,i):s;var u=2*(s=Math.min(l,c,s));return!!CQt(e,t,this.points,o,a,r,i-u,[0,-1],n)||(!!CQt(e,t,this.points,o,a,r-u,i,[0,-1],n)||(!!EQt(e,t,u,u,o-l+s,a-c+s,n)||(!!EQt(e,t,u,u,o+l-s,a-c+s,n)||(!!EQt(e,t,u,u,o+l-s,a+c-s,n)||!!EQt(e,t,u,u,o-l+s,a+c-s,n)))))}}},dNt.generateCutRectangle=function(){return this.nodeShapes["cut-rectangle"]=this.nodeShapes.cutrectangle={renderer:this,name:"cut-rectangle",cornerLength:8,points:NQt(4,0),draw:function(e,t,n,r,i,o){this.renderer.nodeShapeImpl(this.name,e,t,n,r,i,null,o)},generateCutTrianglePts:function(e,t,n,r,i){var o="auto"===i?this.cornerLength:i,a=t/2,s=e/2,l=n-s,c=n+s,u=r-a,h=r+a;return{topLeft:[l,u+o,l+o,u,l+o,u+o],topRight:[c-o,u,c,u+o,c-o,u+o],bottomRight:[c,h-o,c-o,h,c-o,h-o],bottomLeft:[l+o,h,l,h-o,l+o,h-o]}},intersectLine:function(e,t,n,r,i,o,a,s){var l=this.generateCutTrianglePts(n+2*a,r+2*a,e,t,s),c=[].concat.apply([],[l.topLeft.splice(0,4),l.topRight.splice(0,4),l.bottomRight.splice(0,4),l.bottomLeft.splice(0,4)]);return DQt(i,o,c,e,t)},checkPoint:function(e,t,n,r,i,o,a,s){var l="auto"===s?this.cornerLength:s;if(CQt(e,t,this.points,o,a,r,i-2*l,[0,-1],n))return!0;if(CQt(e,t,this.points,o,a,r-2*l,i,[0,-1],n))return!0;var c=this.generateCutTrianglePts(r,i,o,a);return _Qt(e,t,c.topLeft)||_Qt(e,t,c.topRight)||_Qt(e,t,c.bottomRight)||_Qt(e,t,c.bottomLeft)}}},dNt.generateBarrel=function(){return this.nodeShapes.barrel={renderer:this,name:"barrel",points:NQt(4,0),draw:function(e,t,n,r,i,o){this.renderer.nodeShapeImpl(this.name,e,t,n,r,i)},intersectLine:function(e,t,n,r,i,o,a,s){var l=this.generateBarrelBezierPts(n+2*a,r+2*a,e,t),c=function(e){var t=cQt({x:e[0],y:e[1]},{x:e[2],y:e[3]},{x:e[4],y:e[5]},.15),n=cQt({x:e[0],y:e[1]},{x:e[2],y:e[3]},{x:e[4],y:e[5]},.5),r=cQt({x:e[0],y:e[1]},{x:e[2],y:e[3]},{x:e[4],y:e[5]},.85);return[e[0],e[1],t.x,t.y,n.x,n.y,r.x,r.y,e[4],e[5]]},u=[].concat(c(l.topLeft),c(l.topRight),c(l.bottomRight),c(l.bottomLeft));return DQt(i,o,u,e,t)},generateBarrelBezierPts:function(e,t,n,r){var i=t/2,o=e/2,a=n-o,s=n+o,l=r-i,c=r+i,u=qQt(e,t),h=u.heightOffset,d=u.widthOffset,p=u.ctrlPtOffsetPct*e,f={topLeft:[a,l+h,a+p,l,a+d,l],topRight:[s-d,l,s-p,l,s,l+h],bottomRight:[s,c-h,s-p,c,s-d,c],bottomLeft:[a+d,c,a+p,c,a,c-h]};return f.topLeft.isTop=!0,f.topRight.isTop=!0,f.bottomLeft.isBottom=!0,f.bottomRight.isBottom=!0,f},checkPoint:function(e,t,n,r,i,o,a,s){var l=qQt(r,i),c=l.heightOffset,u=l.widthOffset;if(CQt(e,t,this.points,o,a,r,i-2*c,[0,-1],n))return!0;if(CQt(e,t,this.points,o,a,r-2*u,i,[0,-1],n))return!0;for(var h=this.generateBarrelBezierPts(r,i,o,a),d=function(e,t,n){var r,i,o=n[4],a=n[2],s=n[0],l=n[5],c=n[1],u=Math.min(o,s),h=Math.max(o,s),d=Math.min(l,c),p=Math.max(l,c);if(u<=e&&e<=h&&d<=t&&t<=p){var f=[(r=o)-2*(i=a)+s,2*(i-r),r],g=function(e,t,n,r){var i=t*t-4*e*(n-=r);if(i<0)return[];var o=Math.sqrt(i),a=2*e;return[(-t+o)/a,(-t-o)/a]}(f[0],f[1],f[2],e).filter(function(e){return 0<=e&&e<=1});if(g.length>0)return g[0]}return null},p=Object.keys(h),f=0;f<p.length;f++){var g=h[p[f]],m=d(e,t,g);if(null!=m){var O=g[5],A=g[3],y=g[1],v=lQt(O,A,y,m);if(g.isTop&&v<=t)return!0;if(g.isBottom&&t<=v)return!0}}return!1}}},dNt.generateBottomRoundrectangle=function(){return this.nodeShapes["bottom-round-rectangle"]=this.nodeShapes.bottomroundrectangle={renderer:this,name:"bottom-round-rectangle",points:NQt(4,0),draw:function(e,t,n,r,i,o){this.renderer.nodeShapeImpl(this.name,e,t,n,r,i,this.points,o)},intersectLine:function(e,t,n,r,i,o,a,s){var l=t-(r/2+a),c=IQt(i,o,e,t,e-(n/2+a),l,e+(n/2+a),l,!1);return c.length>0?c:wQt(i,o,e,t,n,r,a,s)},checkPoint:function(e,t,n,r,i,o,a,s){var l=2*(s="auto"===s?UQt(r,i):s);if(CQt(e,t,this.points,o,a,r,i-l,[0,-1],n))return!0;if(CQt(e,t,this.points,o,a,r-l,i,[0,-1],n))return!0;var c=r/2+2*n,u=i/2+2*n;return!!_Qt(e,t,[o-c,a-u,o-c,a,o+c,a,o+c,a-u])||(!!EQt(e,t,l,l,o+r/2-s,a+i/2-s,n)||!!EQt(e,t,l,l,o-r/2+s,a+i/2-s,n))}}},dNt.registerNodeShapes=function(){var e=this.nodeShapes={},t=this;this.generateEllipse(),this.generatePolygon("triangle",NQt(3,0)),this.generateRoundPolygon("round-triangle",NQt(3,0)),this.generatePolygon("rectangle",NQt(4,0)),e.square=e.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();var n=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",n),this.generateRoundPolygon("round-diamond",n),this.generatePolygon("pentagon",NQt(5,0)),this.generateRoundPolygon("round-pentagon",NQt(5,0)),this.generatePolygon("hexagon",NQt(6,0)),this.generateRoundPolygon("round-hexagon",NQt(6,0)),this.generatePolygon("heptagon",NQt(7,0)),this.generateRoundPolygon("round-heptagon",NQt(7,0)),this.generatePolygon("octagon",NQt(8,0)),this.generateRoundPolygon("round-octagon",NQt(8,0));var r=new Array(20),i=FQt(5,0),o=FQt(5,Math.PI/5),a=.5*(3-Math.sqrt(5));a*=1.57;for(var s=0;s<o.length/2;s++)o[2*s]*=a,o[2*s+1]*=a;for(s=0;s<5;s++)r[4*s]=i[2*s],r[4*s+1]=i[2*s+1],r[4*s+2]=o[2*s],r[4*s+3]=o[2*s+1];r=XQt(r),this.generatePolygon("star",r),this.generatePolygon("vee",[-1,-1,0,-.333,1,-1,0,1]),this.generatePolygon("rhomboid",[-1,-1,.333,-1,1,1,-.333,1]),this.generatePolygon("right-rhomboid",[-.333,-1,1,-1,.333,1,-1,1]),this.nodeShapes.concavehexagon=this.generatePolygon("concave-hexagon",[-1,-.95,-.75,0,-1,.95,1,.95,.75,0,1,-.95]);var l=[-1,-1,.25,-1,1,0,.25,1,-1,1];this.generatePolygon("tag",l),this.generateRoundPolygon("round-tag",l),e.makePolygon=function(e){var n,r="polygon-"+e.join("$");return(n=this[r])?n:t.generatePolygon(r,e)}};var pNt={timeToRender:function(){return this.redrawTotalTime/this.redrawCount},redraw:function(e){e=e||yCt();var t=this;void 0===t.averageRedrawTime&&(t.averageRedrawTime=0),void 0===t.lastRedrawTime&&(t.lastRedrawTime=0),void 0===t.lastDrawTime&&(t.lastDrawTime=0),t.requestedFrame=!0,t.renderOptions=e},beforeRender:function(e,t){if(!this.destroyed){null==t&&pCt("Priority is not optional for beforeRender");var n=this.beforeRenderCallbacks;n.push({fn:e,priority:t}),n.sort(function(e,t){return t.priority-e.priority})}}},fNt=function(e,t,n){for(var r=e.beforeRenderCallbacks,i=0;i<r.length;i++)r[i].fn(t,n)};pNt.startRenderLoop=function(){var e=this,t=e.cy;if(!e.renderLoopStarted){e.renderLoopStarted=!0;var n=function(r){if(!e.destroyed){if(t.batching());else if(e.requestedFrame&&!e.skipFrame){fNt(e,!0,r);var i=Y_t();e.render(e.renderOptions);var o=e.lastDrawTime=Y_t();void 0===e.averageRedrawTime&&(e.averageRedrawTime=o-i),void 0===e.redrawCount&&(e.redrawCount=0),e.redrawCount++,void 0===e.redrawTotalTime&&(e.redrawTotalTime=0);var a=o-i;e.redrawTotalTime+=a,e.lastRedrawTime=a,e.averageRedrawTime=e.averageRedrawTime/2+a/2,e.requestedFrame=!1}else fNt(e,!1,r);e.skipFrame=!1,j_t(n)}};j_t(n)}};var gNt=function(e){this.init(e)},mNt=gNt.prototype;mNt.clientFunctions=["redrawHint","render","renderTo","matchCanvasSize","nodeShapeImpl","arrowShapeImpl"],mNt.init=function(e){var t=this;t.options=e,t.cy=e.cy;var n=t.container=e.cy.container(),r=t.cy.window();if(r){var i=r.document,o=i.head,a="__________cytoscape_stylesheet",s="__________cytoscape_container",l=null!=i.getElementById(a);if(n.className.indexOf(s)<0&&(n.className=(n.className||"")+" "+s),!l){var c=i.createElement("style");c.id=a,c.textContent="."+s+" { position: relative; }",o.insertBefore(c,o.children[0])}"static"===r.getComputedStyle(n).getPropertyValue("position")&&gCt()}t.selection=[void 0,void 0,void 0,void 0,0],t.bezierProjPcts=[.05,.225,.4,.5,.6,.775,.95],t.hoverData={down:null,last:null,downTime:null,triggerMode:null,dragging:!1,initialPan:[null,null],capture:!1},t.dragData={possibleDragElements:[]},t.touchData={start:null,capture:!1,startPosition:[null,null,null,null,null,null],singleTouchStartTime:null,singleTouchMoved:!0,now:[null,null,null,null,null,null],earlier:[null,null,null,null,null,null]},t.redraws=0,t.showFps=e.showFps,t.debug=e.debug,t.webgl=e.webgl,t.hideEdgesOnViewport=e.hideEdgesOnViewport,t.textureOnViewport=e.textureOnViewport,t.wheelSensitivity=e.wheelSensitivity,t.motionBlurEnabled=e.motionBlur,t.forcedPixelRatio=s_t(e.pixelRatio)?e.pixelRatio:null,t.motionBlur=e.motionBlur,t.motionBlurOpacity=e.motionBlurOpacity,t.motionBlurTransparency=1-t.motionBlurOpacity,t.motionBlurPxRatio=1,t.mbPxRBlurry=1,t.minMbLowQualFrames=4,t.fullQualityMb=!1,t.clearedForMotionBlur=[],t.desktopTapThreshold=e.desktopTapThreshold,t.desktopTapThreshold2=e.desktopTapThreshold*e.desktopTapThreshold,t.touchTapThreshold=e.touchTapThreshold,t.touchTapThreshold2=e.touchTapThreshold*e.touchTapThreshold,t.tapholdDuration=500,t.bindings=[],t.beforeRenderCallbacks=[],t.beforeRenderPriorities={animations:400,eleCalcs:300,eleTxrDeq:200,lyrTxrDeq:150,lyrTxrSkip:100},t.registerNodeShapes(),t.registerArrowShapes(),t.registerCalculationListeners()},mNt.notify=function(e,t){var n=this,r=n.cy;this.destroyed||("init"!==e?"destroy"!==e?(("add"===e||"remove"===e||"move"===e&&r.hasCompoundNodes()||"load"===e||"zorder"===e||"mount"===e)&&n.invalidateCachedZSortedEles(),"viewport"===e&&n.redrawHint("select",!0),"gc"===e&&n.redrawHint("gc",!0),"load"!==e&&"resize"!==e&&"mount"!==e||(n.invalidateContainerClientCoordsCache(),n.matchCanvasSize(n.container)),n.redrawHint("eles",!0),n.redrawHint("drag",!0),this.startRenderLoop(),this.redraw()):n.destroy():n.load())},mNt.destroy=function(){var e=this;e.destroyed=!0,e.cy.stopAnimationLoop();for(var t=0;t<e.bindings.length;t++){var n=e.bindings[t],r=n.target;(r.off||r.removeEventListener).apply(r,n.args)}if(e.bindings=[],e.beforeRenderCallbacks=[],e.onUpdateEleCalcsFns=[],e.removeObserver&&e.removeObserver.disconnect(),e.styleObserver&&e.styleObserver.disconnect(),e.resizeObserver&&e.resizeObserver.disconnect(),e.labelCalcDiv)try{document.body.removeChild(e.labelCalcDiv)}catch(jk){}},mNt.isHeadless=function(){return!1},[xMt,lNt,cNt,hNt,dNt,pNt].forEach(function(e){C_t(mNt,e)});var ONt=1e3/60,ANt=function(e){return function(){var t=this,n=this.renderer;if(!t.dequeueingSetup){t.dequeueingSetup=!0;var r=z_t(function(){n.redrawHint("eles",!0),n.redrawHint("drag",!0),n.redraw()},e.deqRedrawThreshold),i=e.priority||dCt;n.beforeRender(function(i,o){var a=Y_t(),s=n.averageRedrawTime,l=n.lastRedrawTime,c=[],u=n.cy.extent(),h=n.getPixelRatio();for(i||n.flushRenderedStyleQueue();;){var d=Y_t(),p=d-a,f=d-o;if(l<ONt){var g=ONt-(i?s:0);if(f>=e.deqFastCost*g)break}else if(i){if(p>=e.deqCost*l||p>=e.deqAvgCost*s)break}else if(f>=e.deqNoDrawCost*ONt)break;var m=e.deq(t,h,u);if(!(m.length>0))break;for(var O=0;O<m.length;O++)c.push(m[O])}c.length>0&&(e.onDeqd(t,c),!i&&e.shouldRedraw(t,c,h,u)&&r())},i(t))}}},yNt=function(){return f$t(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:uCt;p$t(this,e),this.idsByKey=new SCt,this.keyForId=new SCt,this.cachesByLvl=new SCt,this.lvls=[],this.getKey=t,this.doesEleInvalidateKey=n},[{key:"getIdsFor",value:function(e){null==e&&pCt("Can not get id list for null key");var t=this.idsByKey,n=this.idsByKey.get(e);return n||(n=new $Ct,t.set(e,n)),n}},{key:"addIdForKey",value:function(e,t){null!=e&&this.getIdsFor(e).add(t)}},{key:"deleteIdForKey",value:function(e,t){null!=e&&this.getIdsFor(e).delete(t)}},{key:"getNumberOfIdsForKey",value:function(e){return null==e?0:this.getIdsFor(e).size}},{key:"updateKeyMappingFor",value:function(e){var t=e.id(),n=this.keyForId.get(t),r=this.getKey(e);this.deleteIdForKey(n,t),this.addIdForKey(r,t),this.keyForId.set(t,r)}},{key:"deleteKeyMappingFor",value:function(e){var t=e.id(),n=this.keyForId.get(t);this.deleteIdForKey(n,t),this.keyForId.delete(t)}},{key:"keyHasChangedFor",value:function(e){var t=e.id();return this.keyForId.get(t)!==this.getKey(e)}},{key:"isInvalid",value:function(e){return this.keyHasChangedFor(e)||this.doesEleInvalidateKey(e)}},{key:"getCachesAt",value:function(e){var t=this.cachesByLvl,n=this.lvls,r=t.get(e);return r||(r=new SCt,t.set(e,r),n.push(e)),r}},{key:"getCache",value:function(e,t){return this.getCachesAt(t).get(e)}},{key:"get",value:function(e,t){var n=this.getKey(e),r=this.getCache(n,t);return null!=r&&this.updateKeyMappingFor(e),r}},{key:"getForCachedKey",value:function(e,t){var n=this.keyForId.get(e.id());return this.getCache(n,t)}},{key:"hasCache",value:function(e,t){return this.getCachesAt(t).has(e)}},{key:"has",value:function(e,t){var n=this.getKey(e);return this.hasCache(n,t)}},{key:"setCache",value:function(e,t,n){n.key=e,this.getCachesAt(t).set(e,n)}},{key:"set",value:function(e,t,n){var r=this.getKey(e);this.setCache(r,t,n),this.updateKeyMappingFor(e)}},{key:"deleteCache",value:function(e,t){this.getCachesAt(t).delete(e)}},{key:"delete",value:function(e,t){var n=this.getKey(e);this.deleteCache(n,t)}},{key:"invalidateKey",value:function(e){var t=this;this.lvls.forEach(function(n){return t.deleteCache(e,n)})}},{key:"invalidate",value:function(e){var t=e.id(),n=this.keyForId.get(t);this.deleteKeyMappingFor(e);var r=this.doesEleInvalidateKey(e);return r&&this.invalidateKey(n),r||0===this.getNumberOfIdsForKey(n)}}])}(),vNt=7.99,bNt={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},xNt=vCt({getKey:null,doesEleInvalidateKey:uCt,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:cCt,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),wNt=function(e,t){var n=this;n.renderer=e,n.onDequeues=[];var r=xNt(t);C_t(n,r),n.lookup=new yNt(r.getKey,r.doesEleInvalidateKey),n.setupDequeueing()},kNt=wNt.prototype;kNt.reasons=bNt,kNt.getTextureQueue=function(e){var t=this;return t.eleImgCaches=t.eleImgCaches||{},t.eleImgCaches[e]=t.eleImgCaches[e]||[]},kNt.getRetiredTextureQueue=function(e){var t=this.eleImgCaches.retired=this.eleImgCaches.retired||{};return t[e]=t[e]||[]},kNt.getElementQueue=function(){return this.eleCacheQueue=this.eleCacheQueue||new MCt(function(e,t){return t.reqs-e.reqs})},kNt.getElementKeyToQueue=function(){return this.eleKeyToCacheQueue=this.eleKeyToCacheQueue||{}},kNt.getElement=function(e,t,n,r,i){var o=this,a=this.renderer,s=a.cy.zoom(),l=this.lookup;if(!t||0===t.w||0===t.h||isNaN(t.w)||isNaN(t.h)||!e.visible()||e.removed())return null;if(!o.allowEdgeTxrCaching&&e.isEdge()||!o.allowParentTxrCaching&&e.isParent())return null;if(null==r&&(r=Math.ceil(rQt(s*n))),r<-4)r=-4;else if(s>=7.99||r>3)return null;var c=Math.pow(2,r),u=t.h*c,h=t.w*c,d=a.eleTextBiggerThanMin(e,c);if(!this.isVisible(e,d))return null;var p,f=l.get(e,r);if(f&&f.invalidated&&(f.invalidated=!1,f.texture.invalidatedWidth-=f.width),f)return f;if(p=u<=25?25:u<=50?50:50*Math.ceil(u/50),u>1024||h>1024)return null;var g=o.getTextureQueue(p),m=g[g.length-2],O=function(){return o.recycleTexture(p,h)||o.addTexture(p,h)};m||(m=g[g.length-1]),m||(m=O()),m.width-m.usedWidth<h&&(m=O());for(var A,y=function(e){return e&&e.scaledLabelShown===d},v=i&&i===bNt.dequeue,b=i&&i===bNt.highQuality,x=i&&i===bNt.downscale,w=r+1;w<=3;w++){var k=l.get(e,w);if(k){A=k;break}}var S=A&&A.level===r+1?A:null,T=function(){m.context.drawImage(S.texture.canvas,S.x,0,S.width,S.height,m.usedWidth,0,h,u)};if(m.context.setTransform(1,0,0,1,0,0),m.context.clearRect(m.usedWidth,0,h,p),y(S))T();else if(y(A)){if(!b)return o.queueElement(e,A.level-1),A;for(var $=A.level;$>r;$--)S=o.getElement(e,t,n,$,bNt.downscale);T()}else{var _;if(!v&&!b&&!x)for(var C=r-1;C>=-4;C--){var Q=l.get(e,C);if(Q){_=Q;break}}if(y(_))return o.queueElement(e,r),_;m.context.translate(m.usedWidth,0),m.context.scale(c,c),this.drawElement(m.context,e,t,d,!1),m.context.scale(1/c,1/c),m.context.translate(-m.usedWidth,0)}return f={x:m.usedWidth,texture:m,level:r,scale:c,width:h,height:u,scaledLabelShown:d},m.usedWidth+=Math.ceil(h+8),m.eleCaches.push(f),l.set(e,r,f),o.checkTextureFullness(m),f},kNt.invalidateElements=function(e){for(var t=0;t<e.length;t++)this.invalidateElement(e[t])},kNt.invalidateElement=function(e){var t=this,n=t.lookup,r=[];if(n.isInvalid(e)){for(var i=-4;i<=3;i++){var o=n.getForCachedKey(e,i);o&&r.push(o)}if(n.invalidate(e))for(var a=0;a<r.length;a++){var s=r[a],l=s.texture;l.invalidatedWidth+=s.width,s.invalidated=!0,t.checkTextureUtility(l)}t.removeFromQueue(e)}},kNt.checkTextureUtility=function(e){e.invalidatedWidth>=.2*e.width&&this.retireTexture(e)},kNt.checkTextureFullness=function(e){var t=this.getTextureQueue(e.height);e.usedWidth/e.width>.8&&e.fullnessChecks>=10?bCt(t,e):e.fullnessChecks++},kNt.retireTexture=function(e){var t=e.height,n=this.getTextureQueue(t),r=this.lookup;bCt(n,e),e.retired=!0;for(var i=e.eleCaches,o=0;o<i.length;o++){var a=i[o];r.deleteCache(a.key,a.level)}xCt(i),this.getRetiredTextureQueue(t).push(e)},kNt.addTexture=function(e,t){var n={};return this.getTextureQueue(e).push(n),n.eleCaches=[],n.height=e,n.width=Math.max(1024,t),n.usedWidth=0,n.invalidatedWidth=0,n.fullnessChecks=0,n.canvas=this.renderer.makeOffscreenCanvas(n.width,n.height),n.context=n.canvas.getContext("2d"),n},kNt.recycleTexture=function(e,t){for(var n=this.getTextureQueue(e),r=this.getRetiredTextureQueue(e),i=0;i<r.length;i++){var o=r[i];if(o.width>=t)return o.retired=!1,o.usedWidth=0,o.invalidatedWidth=0,o.fullnessChecks=0,xCt(o.eleCaches),o.context.setTransform(1,0,0,1,0,0),o.context.clearRect(0,0,o.width,o.height),bCt(r,o),n.push(o),o}},kNt.queueElement=function(e,t){var n=this.getElementQueue(),r=this.getElementKeyToQueue(),i=this.getKey(e),o=r[i];if(o)o.level=Math.max(o.level,t),o.eles.merge(e),o.reqs++,n.updateItem(o);else{var a={eles:e.spawn().merge(e),level:t,reqs:1,key:i};n.push(a),r[i]=a}},kNt.dequeue=function(e){for(var t=this,n=t.getElementQueue(),r=t.getElementKeyToQueue(),i=[],o=t.lookup,a=0;a<1&&n.size()>0;a++){var s=n.pop(),l=s.key,c=s.eles[0],u=o.hasCache(c,s.level);if(r[l]=null,!u){i.push(s);var h=t.getBoundingBox(c);t.getElement(c,h,e,s.level,bNt.dequeue)}}return i},kNt.removeFromQueue=function(e){var t=this.getElementQueue(),n=this.getElementKeyToQueue(),r=this.getKey(e),i=n[r];null!=i&&(1===i.eles.length?(i.reqs=lCt,t.updateItem(i),t.pop(),n[r]=null):i.eles.unmerge(e))},kNt.onDequeue=function(e){this.onDequeues.push(e)},kNt.offDequeue=function(e){bCt(this.onDequeues,e)},kNt.setupDequeueing=ANt({deqRedrawThreshold:100,deqCost:.15,deqAvgCost:.1,deqNoDrawCost:.9,deqFastCost:.9,deq:function(e,t,n){return e.dequeue(t,n)},onDeqd:function(e,t){for(var n=0;n<e.onDequeues.length;n++){(0,e.onDequeues[n])(t)}},shouldRedraw:function(e,t,n,r){for(var i=0;i<t.length;i++)for(var o=t[i].eles,a=0;a<o.length;a++){var s=o[a].boundingBox();if(OQt(s,r))return!0}return!1},priority:function(e){return e.renderer.beforeRenderPriorities.eleTxrDeq}});var SNt=function(e){var t=this,n=t.renderer=e,r=n.cy;t.layersByLevel={},t.firstGet=!0,t.lastInvalidationTime=Y_t()-500,t.skipping=!1,t.eleTxrDeqs=r.collection(),t.scheduleElementRefinement=z_t(function(){t.refineElementTextures(t.eleTxrDeqs),t.eleTxrDeqs.unmerge(t.eleTxrDeqs)},50),n.beforeRender(function(e,n){n-t.lastInvalidationTime<=250?t.skipping=!0:t.skipping=!1},n.beforeRenderPriorities.lyrTxrSkip);t.layersQueue=new MCt(function(e,t){return t.reqs-e.reqs}),t.setupDequeueing()},TNt=SNt.prototype,$Nt=0,_Nt=Math.pow(2,53)-1;TNt.makeLayer=function(e,t){var n=Math.pow(2,t),r=Math.ceil(e.w*n),i=Math.ceil(e.h*n),o=this.renderer.makeOffscreenCanvas(r,i),a={id:$Nt=++$Nt%_Nt,bb:e,level:t,width:r,height:i,canvas:o,context:o.getContext("2d"),eles:[],elesQueue:[],reqs:0},s=a.context,l=-a.bb.x1,c=-a.bb.y1;return s.scale(n,n),s.translate(l,c),a},TNt.getLayers=function(e,t,n){var r=this,i=r.renderer.cy.zoom(),o=r.firstGet;if(r.firstGet=!1,null==n)if((n=Math.ceil(rQt(i*t)))<-4)n=-4;else if(i>=3.99||n>2)return null;r.validateLayersElesOrdering(n,e);var a,s,l=r.layersByLevel,c=Math.pow(2,n),u=l[n]=l[n]||[];if(r.levelIsComplete(n,e))return u;!function(){var t=function(t){if(r.validateLayersElesOrdering(t,e),r.levelIsComplete(t,e))return s=l[t],!0},i=function(e){if(!s)for(var r=n+e;-4<=r&&r<=2&&!t(r);r+=e);};i(1),i(-1);for(var o=u.length-1;o>=0;o--){var a=u[o];a.invalid&&bCt(u,a)}}();var h=function(t){var i=(t=t||{}).after;!function(){if(!a){a=hQt();for(var t=0;t<e.length;t++)dQt(a,e[t].boundingBox())}}();var o=Math.ceil(a.w*c),s=Math.ceil(a.h*c);if(o>32767||s>32767)return null;if(o*s>16e6)return null;var l=r.makeLayer(a,n);if(null!=i){var h=u.indexOf(i)+1;u.splice(h,0,l)}else(void 0===t.insert||t.insert)&&u.unshift(l);return l};if(r.skipping&&!o)return null;for(var d=null,p=e.length/1,f=!o,g=0;g<e.length;g++){var m=e[g],O=m._private.rscratch,A=O.imgLayerCaches=O.imgLayerCaches||{},y=A[n];if(y)d=y;else{if((!d||d.eles.length>=p||!vQt(d.bb,m.boundingBox()))&&!(d=h({insert:!0,after:d})))return null;s||f?r.queueLayer(d,m):r.drawEleInLayer(d,m,n,t),d.eles.push(m),A[n]=d}}return s||(f?null:u)},TNt.getEleLevelForLayerLevel=function(e,t){return e},TNt.drawEleInLayer=function(e,t,n,r){var i=this.renderer,o=e.context,a=t.boundingBox();0!==a.w&&0!==a.h&&t.visible()&&(n=this.getEleLevelForLayerLevel(n,r),i.setImgSmoothing(o,!1),i.drawCachedElement(o,t,null,null,n,true),i.setImgSmoothing(o,!0))},TNt.levelIsComplete=function(e,t){var n=this.layersByLevel[e];if(!n||0===n.length)return!1;for(var r=0,i=0;i<n.length;i++){var o=n[i];if(o.reqs>0)return!1;if(o.invalid)return!1;r+=o.eles.length}return r===t.length},TNt.validateLayersElesOrdering=function(e,t){var n=this.layersByLevel[e];if(n)for(var r=0;r<n.length;r++){for(var i=n[r],o=-1,a=0;a<t.length;a++)if(i.eles[0]===t[a]){o=a;break}if(o<0)this.invalidateLayer(i);else{var s=o;for(a=0;a<i.eles.length;a++)if(i.eles[a]!==t[s+a]){this.invalidateLayer(i);break}}}},TNt.updateElementsInLayers=function(e,t){for(var n=h_t(e[0]),r=0;r<e.length;r++)for(var i=n?null:e[r],o=n?e[r]:e[r].ele,a=o._private.rscratch,s=a.imgLayerCaches=a.imgLayerCaches||{},l=-4;l<=2;l++){var c=s[l];c&&(i&&this.getEleLevelForLayerLevel(c.level)!==i.level||t(c,o,i))}},TNt.haveLayers=function(){for(var e=!1,t=-4;t<=2;t++){var n=this.layersByLevel[t];if(n&&n.length>0){e=!0;break}}return e},TNt.invalidateElements=function(e){var t=this;0!==e.length&&(t.lastInvalidationTime=Y_t(),0!==e.length&&t.haveLayers()&&t.updateElementsInLayers(e,function(e,n,r){t.invalidateLayer(e)}))},TNt.invalidateLayer=function(e){if(this.lastInvalidationTime=Y_t(),!e.invalid){var t=e.level,n=e.eles,r=this.layersByLevel[t];bCt(r,e),e.elesQueue=[],e.invalid=!0,e.replacement&&(e.replacement.invalid=!0);for(var i=0;i<n.length;i++){var o=n[i]._private.rscratch.imgLayerCaches;o&&(o[t]=null)}}},TNt.refineElementTextures=function(e){var t=this;t.updateElementsInLayers(e,function(e,n,r){var i=e.replacement;if(i||((i=e.replacement=t.makeLayer(e.bb,e.level)).replaces=e,i.eles=e.eles),!i.reqs)for(var o=0;o<i.eles.length;o++)t.queueLayer(i,i.eles[o])})},TNt.enqueueElementRefinement=function(e){this.eleTxrDeqs.merge(e),this.scheduleElementRefinement()},TNt.queueLayer=function(e,t){var n=this.layersQueue,r=e.elesQueue,i=r.hasId=r.hasId||{};if(!e.replacement){if(t){if(i[t.id()])return;r.push(t),i[t.id()]=!0}e.reqs?(e.reqs++,n.updateItem(e)):(e.reqs=1,n.push(e))}},TNt.dequeue=function(e){for(var t=this,n=t.layersQueue,r=[],i=0;i<1&&0!==n.size();){var o=n.peek();if(o.replacement)n.pop();else if(o.replaces&&o!==o.replaces.replacement)n.pop();else if(o.invalid)n.pop();else{var a=o.elesQueue.shift();a&&(t.drawEleInLayer(o,a,o.level,e),i++),0===r.length&&r.push(!0),0===o.elesQueue.length&&(n.pop(),o.reqs=0,o.replaces&&t.applyLayerReplacement(o),t.requestRedraw())}}return r},TNt.applyLayerReplacement=function(e){var t=this.layersByLevel[e.level],n=e.replaces,r=t.indexOf(n);if(!(r<0||n.invalid)){t[r]=e;for(var i=0;i<e.eles.length;i++){var o=e.eles[i]._private,a=o.imgLayerCaches=o.imgLayerCaches||{};a&&(a[e.level]=e)}this.requestRedraw()}},TNt.requestRedraw=z_t(function(){var e=this.renderer;e.redrawHint("eles",!0),e.redrawHint("drag",!0),e.redraw()},100),TNt.setupDequeueing=ANt({deqRedrawThreshold:50,deqCost:.15,deqAvgCost:.1,deqNoDrawCost:.9,deqFastCost:.9,deq:function(e,t){return e.dequeue(t)},onDeqd:dCt,shouldRedraw:cCt,priority:function(e){return e.renderer.beforeRenderPriorities.lyrTxrDeq}});var CNt,QNt={};function PNt(e,t){for(var n=0;n<t.length;n++){var r=t[n];e.lineTo(r.x,r.y)}}function ENt(e,t,n){for(var r,i=0;i<t.length;i++){var o=t[i];0===i&&(r=o),e.lineTo(o.x,o.y)}e.quadraticCurveTo(n.x,n.y,r.x,r.y)}function RNt(e,t,n){e.beginPath&&e.beginPath();for(var r=t,i=0;i<r.length;i++){var o=r[i];e.lineTo(o.x,o.y)}var a=n,s=n[0];e.moveTo(s.x,s.y);for(i=1;i<a.length;i++){o=a[i];e.lineTo(o.x,o.y)}e.closePath&&e.closePath()}function BNt(e,t,n,r,i){e.beginPath&&e.beginPath(),e.arc(n,r,i,0,2*Math.PI,!1);var o=t,a=o[0];e.moveTo(a.x,a.y);for(var s=0;s<o.length;s++){var l=o[s];e.lineTo(l.x,l.y)}e.closePath&&e.closePath()}function INt(e,t,n,r){e.arc(t,n,r,0,2*Math.PI,!1)}QNt.arrowShapeImpl=function(e){return(CNt||(CNt={polygon:PNt,"triangle-backcurve":ENt,"triangle-tee":RNt,"circle-triangle":BNt,"triangle-cross":RNt,circle:INt}))[e]};var LNt={drawElement:function(e,t,n,r,i,o){t.isNode()?this.drawNode(e,t,n,r,i,o):this.drawEdge(e,t,n,r,i,o)},drawElementOverlay:function(e,t){t.isNode()?this.drawNodeOverlay(e,t):this.drawEdgeOverlay(e,t)},drawElementUnderlay:function(e,t){t.isNode()?this.drawNodeUnderlay(e,t):this.drawEdgeUnderlay(e,t)},drawCachedElementPortion:function(e,t,n,r,i,o,a,s){var l=this,c=n.getBoundingBox(t);if(0!==c.w&&0!==c.h){var u=n.getElement(t,c,r,i,o);if(null!=u){var h=s(l,t);if(0===h)return;var d,p,f,g,m,O,A=a(l,t),y=c.x1,v=c.y1,b=c.w,x=c.h;if(0!==A){var w=n.getRotationPoint(t);f=w.x,g=w.y,e.translate(f,g),e.rotate(A),(m=l.getImgSmoothing(e))||l.setImgSmoothing(e,!0);var k=n.getRotationOffset(t);d=k.x,p=k.y}else d=y,p=v;1!==h&&(O=e.globalAlpha,e.globalAlpha=O*h),e.drawImage(u.texture.canvas,u.x,0,u.width,u.height,d,p,b,x),1!==h&&(e.globalAlpha=O),0!==A&&(e.rotate(-A),e.translate(-f,-g),m||l.setImgSmoothing(e,!1))}else n.drawElement(e,t)}}},DNt=function(){return 0},MNt=function(e,t){return e.getTextAngle(t,null)},NNt=function(e,t){return e.getTextAngle(t,"source")},XNt=function(e,t){return e.getTextAngle(t,"target")},FNt=function(e,t){return t.effectiveOpacity()},UNt=function(e,t){return t.pstyle("text-opacity").pfValue*t.effectiveOpacity()};LNt.drawCachedElement=function(e,t,n,r,i,o){var a=this,s=a.data,l=s.eleTxrCache,c=s.lblTxrCache,u=s.slbTxrCache,h=s.tlbTxrCache,d=t.boundingBox(),p=!0===o?l.reasons.highQuality:null;if(0!==d.w&&0!==d.h&&t.visible()&&(!r||OQt(d,r))){var f=t.isEdge(),g=t.element()._private.rscratch.badLine;a.drawElementUnderlay(e,t),a.drawCachedElementPortion(e,t,l,n,i,p,DNt,FNt),f&&g||a.drawCachedElementPortion(e,t,c,n,i,p,MNt,UNt),f&&!g&&(a.drawCachedElementPortion(e,t,u,n,i,p,NNt,UNt),a.drawCachedElementPortion(e,t,h,n,i,p,XNt,UNt)),a.drawElementOverlay(e,t)}},LNt.drawElements=function(e,t){for(var n=0;n<t.length;n++){var r=t[n];this.drawElement(e,r)}},LNt.drawCachedElements=function(e,t,n,r){for(var i=0;i<t.length;i++){var o=t[i];this.drawCachedElement(e,o,n,r)}},LNt.drawCachedNodes=function(e,t,n,r){for(var i=0;i<t.length;i++){var o=t[i];o.isNode()&&this.drawCachedElement(e,o,n,r)}},LNt.drawLayeredElements=function(e,t,n,r){var i=this.data.lyrTxrCache.getLayers(t,n);if(i)for(var o=0;o<i.length;o++){var a=i[o],s=a.bb;0!==s.w&&0!==s.h&&e.drawImage(a.canvas,s.x1,s.y1,s.w,s.h)}else this.drawCachedElements(e,t,n,r)};var zNt={drawEdge:function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],a=this,s=t._private.rscratch;if((!o||t.visible())&&!s.badLine&&null!=s.allpts&&!isNaN(s.allpts[0])){var l;n&&(l=n,e.translate(-l.x1,-l.y1));var c=o?t.pstyle("opacity").value:1,u=o?t.pstyle("line-opacity").value:1,h=t.pstyle("curve-style").value,d=t.pstyle("line-style").value,p=t.pstyle("width").pfValue,f=t.pstyle("line-cap").value,g=t.pstyle("line-outline-width").value,m=t.pstyle("line-outline-color").value,O=c*u,A=c*u,y=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O;"straight-triangle"===h?(a.eleStrokeStyle(e,t,n),a.drawEdgeTrianglePath(t,e,s.allpts)):(e.lineWidth=p,e.lineCap=f,a.eleStrokeStyle(e,t,n),a.drawEdgePath(t,e,s.allpts,d),e.lineCap="butt")},v=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A;a.drawArrowheads(e,t,n)};if(e.lineJoin="round","yes"===t.pstyle("ghost").value){var b=t.pstyle("ghost-offset-x").pfValue,x=t.pstyle("ghost-offset-y").pfValue,w=t.pstyle("ghost-opacity").value,k=O*w;e.translate(b,x),y(k),v(k),e.translate(-b,-x)}else!function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O;e.lineWidth=p+g,e.lineCap=f,g>0?(a.colorStrokeStyle(e,m[0],m[1],m[2],n),"straight-triangle"===h?a.drawEdgeTrianglePath(t,e,s.allpts):(a.drawEdgePath(t,e,s.allpts,d),e.lineCap="butt")):e.lineCap="butt"}();i&&a.drawEdgeUnderlay(e,t),y(),v(),i&&a.drawEdgeOverlay(e,t),a.drawElementText(e,t,null,r),n&&e.translate(l.x1,l.y1)}}},qNt=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(t,n){if(n.visible()){var r=n.pstyle("".concat(e,"-opacity")).value;if(0!==r){var i=this,o=i.usePaths(),a=n._private.rscratch,s=2*n.pstyle("".concat(e,"-padding")).pfValue,l=n.pstyle("".concat(e,"-color")).value;t.lineWidth=s,"self"!==a.edgeType||o?t.lineCap="round":t.lineCap="butt",i.colorStrokeStyle(t,l[0],l[1],l[2],r),i.drawEdgePath(n,t,a.allpts,"solid")}}}};zNt.drawEdgeOverlay=qNt("overlay"),zNt.drawEdgeUnderlay=qNt("underlay"),zNt.drawEdgePath=function(e,t,n,r){var i,o=e._private.rscratch,a=t,s=!1,l=this.usePaths(),c=e.pstyle("line-dash-pattern").pfValue,u=e.pstyle("line-dash-offset").pfValue;if(l){var h=n.join("$");o.pathCacheKey&&o.pathCacheKey===h?(i=t=o.pathCache,s=!0):(i=t=new Path2D,o.pathCacheKey=h,o.pathCache=i)}if(a.setLineDash)switch(r){case"dotted":a.setLineDash([1,1]);break;case"dashed":a.setLineDash(c),a.lineDashOffset=u;break;case"solid":a.setLineDash([])}if(!s&&!o.badLine)switch(t.beginPath&&t.beginPath(),t.moveTo(n[0],n[1]),o.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var d=2;d+3<n.length;d+=4)t.quadraticCurveTo(n[d],n[d+1],n[d+2],n[d+3]);break;case"straight":case"haystack":for(var p=2;p+1<n.length;p+=2)t.lineTo(n[p],n[p+1]);break;case"segments":if(o.isRound){var f,g=g$t(o.roundCorners);try{for(g.s();!(f=g.n()).done;){WMt(t,f.value)}}catch(O){g.e(O)}finally{g.f()}t.lineTo(n[n.length-2],n[n.length-1])}else for(var m=2;m+1<n.length;m+=2)t.lineTo(n[m],n[m+1])}t=a,l?t.stroke(i):t.stroke(),t.setLineDash&&t.setLineDash([])},zNt.drawEdgeTrianglePath=function(e,t,n){t.fillStyle=t.strokeStyle;for(var r=e.pstyle("width").pfValue,i=0;i+1<n.length;i+=2){var o=[n[i+2]-n[i],n[i+3]-n[i+1]],a=Math.sqrt(o[0]*o[0]+o[1]*o[1]),s=[o[1]/a,-o[0]/a],l=[s[0]*r/2,s[1]*r/2];t.beginPath(),t.moveTo(n[i]-l[0],n[i+1]-l[1]),t.lineTo(n[i]+l[0],n[i+1]+l[1]),t.lineTo(n[i+2],n[i+3]),t.closePath(),t.fill()}},zNt.drawArrowheads=function(e,t,n){var r=t._private.rscratch,i="haystack"===r.edgeType;i||this.drawArrowhead(e,t,"source",r.arrowStartX,r.arrowStartY,r.srcArrowAngle,n),this.drawArrowhead(e,t,"mid-target",r.midX,r.midY,r.midtgtArrowAngle,n),this.drawArrowhead(e,t,"mid-source",r.midX,r.midY,r.midsrcArrowAngle,n),i||this.drawArrowhead(e,t,"target",r.arrowEndX,r.arrowEndY,r.tgtArrowAngle,n)},zNt.drawArrowhead=function(e,t,n,r,i,o,a){if(!(isNaN(r)||null==r||isNaN(i)||null==i||isNaN(o)||null==o)){var s=this,l=t.pstyle(n+"-arrow-shape").value;if("none"!==l){var c="hollow"===t.pstyle(n+"-arrow-fill").value?"both":"filled",u=t.pstyle(n+"-arrow-fill").value,h=t.pstyle("width").pfValue,d=t.pstyle(n+"-arrow-width"),p="match-line"===d.value?h:d.pfValue;"%"===d.units&&(p*=h);var f=t.pstyle("opacity").value;void 0===a&&(a=f);var g=e.globalCompositeOperation;1===a&&"hollow"!==u||(e.globalCompositeOperation="destination-out",s.colorFillStyle(e,255,255,255,1),s.colorStrokeStyle(e,255,255,255,1),s.drawArrowShape(t,e,c,h,l,p,r,i,o),e.globalCompositeOperation=g);var m=t.pstyle(n+"-arrow-color").value;s.colorFillStyle(e,m[0],m[1],m[2],a),s.colorStrokeStyle(e,m[0],m[1],m[2],a),s.drawArrowShape(t,e,u,h,l,p,r,i,o)}}},zNt.drawArrowShape=function(e,t,n,r,i,o,a,s,l){var c,u=this,h=this.usePaths()&&"triangle-cross"!==i,d=!1,p=t,f={x:a,y:s},g=e.pstyle("arrow-scale").value,m=this.getArrowWidth(r,g),O=u.arrowShapes[i];if(h){var A=u.arrowPathCache=u.arrowPathCache||[],y=rCt(i),v=A[y];null!=v?(c=t=v,d=!0):(c=t=new Path2D,A[y]=c)}d||(t.beginPath&&t.beginPath(),h?O.draw(t,1,0,{x:0,y:0},1):O.draw(t,m,l,f,r),t.closePath&&t.closePath()),t=p,h&&(t.translate(a,s),t.rotate(l),t.scale(m,m)),"filled"!==n&&"both"!==n||(h?t.fill(c):t.fill()),"hollow"!==n&&"both"!==n||(t.lineWidth=o/(h?m:1),t.lineJoin="miter",h?t.stroke(c):t.stroke()),h&&(t.scale(1/m,1/m),t.rotate(-l),t.translate(-a,-s))};var VNt={safeDrawImage:function(e,t,n,r,i,o,a,s,l,c){if(!(i<=0||o<=0||l<=0||c<=0))try{e.drawImage(t,n,r,i,o,a,s,l,c)}catch(jk){gCt()}},drawInscribedImage:function(e,t,n,r,i){var o=this,a=n.position(),s=a.x,l=a.y,c=n.cy().style(),u=c.getIndexedStyle.bind(c),h=u(n,"background-fit","value",r),d=u(n,"background-repeat","value",r),p=n.width(),f=n.height(),g=2*n.padding(),m=p+("inner"===u(n,"background-width-relative-to","value",r)?0:g),O=f+("inner"===u(n,"background-height-relative-to","value",r)?0:g),A=n._private.rscratch,y="node"===u(n,"background-clip","value",r),v=u(n,"background-image-opacity","value",r)*i,b=u(n,"background-image-smoothing","value",r),x=n.pstyle("corner-radius").value;"auto"!==x&&(x=n.pstyle("corner-radius").pfValue);var w=t.width||t.cachedW,k=t.height||t.cachedH;null!=w&&null!=k||(document.body.appendChild(t),w=t.cachedW=t.width||t.offsetWidth,k=t.cachedH=t.height||t.offsetHeight,document.body.removeChild(t));var S=w,T=k;if("auto"!==u(n,"background-width","value",r)&&(S="%"===u(n,"background-width","units",r)?u(n,"background-width","pfValue",r)*m:u(n,"background-width","pfValue",r)),"auto"!==u(n,"background-height","value",r)&&(T="%"===u(n,"background-height","units",r)?u(n,"background-height","pfValue",r)*O:u(n,"background-height","pfValue",r)),0!==S&&0!==T){if("contain"===h)S*=$=Math.min(m/S,O/T),T*=$;else if("cover"===h){var $;S*=$=Math.max(m/S,O/T),T*=$}var _=s-m/2,C=u(n,"background-position-x","units",r),Q=u(n,"background-position-x","pfValue",r);_+="%"===C?(m-S)*Q:Q;var P=u(n,"background-offset-x","units",r),E=u(n,"background-offset-x","pfValue",r);_+="%"===P?(m-S)*E:E;var R=l-O/2,B=u(n,"background-position-y","units",r),I=u(n,"background-position-y","pfValue",r);R+="%"===B?(O-T)*I:I;var L=u(n,"background-offset-y","units",r),D=u(n,"background-offset-y","pfValue",r);R+="%"===L?(O-T)*D:D,A.pathCache&&(_-=s,R-=l,s=0,l=0);var M=e.globalAlpha;e.globalAlpha=v;var N=o.getImgSmoothing(e),X=!1;if("no"===b&&N?(o.setImgSmoothing(e,!1),X=!0):"yes"!==b||N||(o.setImgSmoothing(e,!0),X=!0),"no-repeat"===d)y&&(e.save(),A.pathCache?e.clip(A.pathCache):(o.nodeShapes[o.getNodeShape(n)].draw(e,s,l,m,O,x,A),e.clip())),o.safeDrawImage(e,t,0,0,w,k,_,R,S,T),y&&e.restore();else{var F=e.createPattern(t,d);e.fillStyle=F,o.nodeShapes[o.getNodeShape(n)].draw(e,s,l,m,O,x,A),e.translate(_,R),e.fill(),e.translate(-_,-R)}e.globalAlpha=M,X&&o.setImgSmoothing(e,N)}}},WNt={};function jNt(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:5,a=Math.min(o,r/2,i/2);e.beginPath(),e.moveTo(t+a,n),e.lineTo(t+r-a,n),e.quadraticCurveTo(t+r,n,t+r,n+a),e.lineTo(t+r,n+i-a),e.quadraticCurveTo(t+r,n+i,t+r-a,n+i),e.lineTo(t+a,n+i),e.quadraticCurveTo(t,n+i,t,n+i-a),e.lineTo(t,n+a),e.quadraticCurveTo(t,n,t+a,n),e.closePath()}WNt.eleTextBiggerThanMin=function(e,t){if(!t){var n=e.cy().zoom(),r=this.getPixelRatio(),i=Math.ceil(rQt(n*r));t=Math.pow(2,i)}return!(e.pstyle("font-size").pfValue*t<e.pstyle("min-zoomed-font-size").pfValue)},WNt.drawElementText=function(e,t,n,r,i){var o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],a=this;if(null==r){if(o&&!a.eleTextBiggerThanMin(t))return}else if(!1===r)return;if(t.isNode()){var s=t.pstyle("label");if(!s||!s.value)return;var l=a.getLabelJustification(t),c="glyph"===t.pstyle("text-metrics").strValue;e.textAlign=l,e.textBaseline=c?"alphabetic":"bottom"}else{var u=t.element()._private.rscratch.badLine,h=t.pstyle("label"),d=t.pstyle("source-label"),p=t.pstyle("target-label");if(u||(!h||!h.value)&&(!d||!d.value)&&(!p||!p.value))return;e.textAlign="center",e.textBaseline="bottom"}var f,g=!n;n&&(f=n,e.translate(-f.x1,-f.y1)),null==i?(a.drawText(e,t,null,g,o),t.isEdge()&&(a.drawText(e,t,"source",g,o),a.drawText(e,t,"target",g,o))):a.drawText(e,t,i,g,o),n&&e.translate(f.x1,f.y1)},WNt.getFontCache=function(e){var t;this.fontCaches=this.fontCaches||[];for(var n=0;n<this.fontCaches.length;n++)if((t=this.fontCaches[n]).context===e)return t;return t={context:e},this.fontCaches.push(t),t},WNt.setupTextStyle=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t.pstyle("font-style").strValue,i=t.pstyle("font-size").pfValue+"px",o=t.pstyle("font-family").strValue,a=t.pstyle("font-weight").strValue,s=n?t.effectiveOpacity()*t.pstyle("text-opacity").value:1,l=t.pstyle("text-outline-opacity").value*s,c=t.pstyle("color").value,u=t.pstyle("text-outline-color").value;e.font=r+" "+a+" "+i+" "+o,e.lineJoin="round",this.colorFillStyle(e,c[0],c[1],c[2],s),this.colorStrokeStyle(e,u[0],u[1],u[2],l)},WNt.getTextAngle=function(e,t){var n,r=e._private.rscratch,i=t?t+"-":"",o=e.pstyle(i+"text-rotation");if("autorotate"===o.strValue){var a=wCt(r,"labelAngle",t);n=e.isEdge()?a:0}else n="none"===o.strValue?0:o.pfValue;return n},WNt.drawText=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=t._private.rscratch,a=i?t.effectiveOpacity():1;if(!i||0!==a&&0!==t.pstyle("text-opacity").value){"main"===n&&(n=null);var s,l,c,u,h,d,p,f,g,m,O=wCt(o,"labelX",n),A=wCt(o,"labelY",n),y=this.getLabelText(t,n);if(null!=y&&""!==y&&!isNaN(O)&&!isNaN(A)){this.setupTextStyle(e,t,i);var v,b=n?n+"-":"",x=wCt(o,"labelWidth",n),w=wCt(o,"labelHeight",n),k=wCt(o,"labelActualDescent",n),S=t.pstyle(b+"text-margin-x").pfValue,T=t.pstyle(b+"text-margin-y").pfValue,$=t.isEdge(),_=t.pstyle("text-halign").value,C=t.pstyle("text-valign").value;$&&(_="center",C="center"),O+=S,A+=T,0!==(v=r?this.getTextAngle(t,n):0)&&(s=O,l=A,e.translate(s,l),e.rotate(v),O=0,A=0);var Q=RIt(_),P=BIt(C);switch(P){case"top":break;case"center":A+=w/2;break;case"bottom":A+=w}var E=t.pstyle("text-background-opacity").value,R=t.pstyle("text-border-opacity").value,B=t.pstyle("text-border-width").pfValue,I=t.pstyle("text-background-padding").pfValue,L=t.pstyle("text-background-shape").strValue,D="round-rectangle"===L||"roundrectangle"===L,M="circle"===L;if(E>0||B>0&&R>0){var N=e.fillStyle,X=e.strokeStyle,F=e.lineWidth,U=t.pstyle("text-background-color").value,z=t.pstyle("text-border-color").value,q=t.pstyle("text-border-style").value,V=E>0,W=B>0&&R>0,j=O-I;switch(Q){case"left":j-=x;break;case"center":j-=x/2}var Y=A-w-I,Z=x+2*I,G=w+2*I;if(V&&(e.fillStyle="rgba(".concat(U[0],",").concat(U[1],",").concat(U[2],",").concat(E*a,")")),W&&(e.strokeStyle="rgba(".concat(z[0],",").concat(z[1],",").concat(z[2],",").concat(R*a,")"),e.lineWidth=B,e.setLineDash))switch(q){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"double":e.lineWidth=B/4,e.setLineDash([]);break;default:e.setLineDash([])}if(D?(e.beginPath(),jNt(e,j,Y,Z,G,2)):M?(e.beginPath(),c=e,u=j,h=Y,d=Z,p=G,f=Math.min(d,p)/2,g=u+d/2,m=h+p/2,c.beginPath(),c.arc(g,m,f,0,2*Math.PI),c.closePath()):(e.beginPath(),e.rect(j,Y,Z,G)),V&&e.fill(),W&&e.stroke(),W&&"double"===q){var H=B/2;e.beginPath(),D?jNt(e,j+H,Y+H,Z-2*H,G-2*H,2):e.rect(j+H,Y+H,Z-2*H,G-2*H),e.stroke()}e.fillStyle=N,e.strokeStyle=X,e.lineWidth=F,e.setLineDash&&e.setLineDash([])}var K=2*t.pstyle("text-outline-width").pfValue;if(K>0&&(e.lineWidth=K),A-=k,"wrap"===t.pstyle("text-wrap").value){var J=wCt(o,"labelWrapCachedLines",n),ee=wCt(o,"labelLineHeight",n),te=x/2,ne=this.getLabelJustification(t);switch("auto"===ne||("left"===Q?"left"===ne?O+=-x:"center"===ne&&(O+=-te):"center"===Q?"left"===ne?O+=-te:"right"===ne&&(O+=te):"right"===Q&&("center"===ne?O+=te:"right"===ne&&(O+=x))),P){case"top":case"center":case"bottom":A-=(J.length-1)*ee}for(var re=0;re<J.length;re++)K>0&&e.strokeText(J[re],O,A),e.fillText(J[re],O,A),A+=ee}else K>0&&e.strokeText(y,O,A),e.fillText(y,O,A);0!==v&&(e.rotate(-v),e.translate(-s,-l))}}};var YNt={drawNode:function(e,t,n){var r,i,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],l=this,c=t._private,u=c.rscratch,h=t.position();if(s_t(h.x)&&s_t(h.y)&&(!s||t.visible())){var d,p,f=s?t.effectiveOpacity():1,g=l.usePaths(),m=!1,O=t.padding();r=t.width()+2*O,i=t.height()+2*O,n&&(p=n,e.translate(-p.x1,-p.y1));for(var A=t.pstyle("background-image").value,y=new Array(A.length),v=new Array(A.length),b=0,x=0;x<A.length;x++){var w=A[x];if(y[x]=null!=w&&"none"!==w){var k=t.cy().style().getIndexedStyle(t,"background-image-crossorigin","value",x);b++,v[x]=l.getCachedImage(w,k,function(){c.backgroundTimestamp=Date.now(),t.emitAndNotify("background")})}}var S=t.pstyle("background-blacken").value,T=t.pstyle("border-width").pfValue,$=t.pstyle("background-opacity").value*f,_=t.pstyle("border-color").value,C=t.pstyle("border-style").value,Q=t.pstyle("border-join").value,P=t.pstyle("border-cap").value,E=t.pstyle("border-position").value,R=t.pstyle("border-dash-pattern").pfValue,B=t.pstyle("border-dash-offset").pfValue,I=t.pstyle("border-opacity").value*f,L=t.pstyle("outline-width").pfValue,D=t.pstyle("outline-color").value,M=t.pstyle("outline-style").value,N=t.pstyle("outline-opacity").value*f,X=t.pstyle("outline-offset").value,F=t.pstyle("corner-radius").value;"auto"!==F&&(F=t.pstyle("corner-radius").pfValue);var U=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$;l.eleFillStyle(e,t,n)},z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I;l.colorStrokeStyle(e,_[0],_[1],_[2],t)},q=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:N;l.colorStrokeStyle(e,D[0],D[1],D[2],t)},V=function(e,t,n,r){var i,o=l.nodePathCache=l.nodePathCache||[],a=iCt("polygon"===n?n+","+r.join(","):n,""+t,""+e,""+F),s=o[a],c=!1;return null!=s?(i=s,c=!0,u.pathCache=i):(i=new Path2D,o[a]=u.pathCache=i),{path:i,cacheHit:c}},W=t.pstyle("shape").strValue,j=t.pstyle("shape-polygon-points").pfValue;if(g){e.translate(h.x,h.y);var Y=V(r,i,W,j);d=Y.path,m=Y.cacheHit}var Z=function(){if(!m){var n=h;g&&(n={x:0,y:0}),l.nodeShapes[l.getNodeShape(t)].draw(d||e,n.x,n.y,r,i,F,u)}g?e.fill(d):e.fill()},G=function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=c.backgrounding,o=0,a=0;a<v.length;a++){var s=t.cy().style().getIndexedStyle(t,"background-image-containment","value",a);r&&"over"===s||!r&&"inside"===s?o++:y[a]&&v[a].complete&&!v[a].error&&(o++,l.drawInscribedImage(e,v[a],t,a,n))}c.backgrounding=!(o===b),i!==c.backgrounding&&t.updateStyle(!1)},H=function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f;l.hasPie(t)&&(l.drawPie(e,t,o),n&&(g||l.nodeShapes[l.getNodeShape(t)].draw(e,h.x,h.y,r,i,F,u)))},K=function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f;l.hasStripe(t)&&(e.save(),g?e.clip(u.pathCache):(l.nodeShapes[l.getNodeShape(t)].draw(e,h.x,h.y,r,i,F,u),e.clip()),l.drawStripe(e,t,o),e.restore(),n&&(g||l.nodeShapes[l.getNodeShape(t)].draw(e,h.x,h.y,r,i,F,u)))},J=function(){var t=(S>0?S:-S)*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:f),n=S>0?0:255;0!==S&&(l.colorFillStyle(e,n,n,n,t),g?e.fill(d):e.fill())},ee=function(){if(T>0){if(e.lineWidth=T,e.lineCap=P,e.lineJoin=Q,e.setLineDash)switch(C){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash(R),e.lineDashOffset=B;break;case"solid":case"double":e.setLineDash([])}if("center"!==E){if(e.save(),e.lineWidth*=2,"inside"===E)g?e.clip(d):e.clip();else{var t=new Path2D;t.rect(-r/2-T,-i/2-T,r+2*T,i+2*T),t.addPath(d),e.clip(t,"evenodd")}g?e.stroke(d):e.stroke(),e.restore()}else g?e.stroke(d):e.stroke();if("double"===C){e.lineWidth=T/3;var n=e.globalCompositeOperation;e.globalCompositeOperation="destination-out",g?e.stroke(d):e.stroke(),e.globalCompositeOperation=n}e.setLineDash&&e.setLineDash([])}},te=function(){if(L>0){if(e.lineWidth=L,e.lineCap="butt",e.setLineDash)switch(M){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"solid":case"double":e.setLineDash([])}var n=h;g&&(n={x:0,y:0});var o=l.getNodeShape(t),a=T;"inside"===E&&(a=0),"outside"===E&&(a*=2);var s,c=(r+a+(L+X))/r,u=(i+a+(L+X))/i,d=r*c,p=i*u,f=l.nodeShapes[o].points;if(g)s=V(d,p,o,f).path;if("ellipse"===o)l.drawEllipsePath(s||e,n.x,n.y,d,p);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(o)){var m=0,O=0,A=0;"round-diamond"===o?m=1.4*(a+X+L):"round-heptagon"===o?(m=1.075*(a+X+L),A=-(a/2+X+L)/35):"round-hexagon"===o?m=1.12*(a+X+L):"round-pentagon"===o?(m=1.13*(a+X+L),A=-(a/2+X+L)/15):"round-tag"===o?(m=1.12*(a+X+L),O=.07*(a/2+L+X)):"round-triangle"===o&&(m=(a+X+L)*(Math.PI/2),A=-(a+X/2+L)/Math.PI),0!==m&&(d=r*(c=(r+m)/r),["round-hexagon","round-tag"].includes(o)||(p=i*(u=(i+m)/i)));for(var y=d/2,v=p/2,b=(F="auto"===F?zQt(d,p):F)+(a+L+X)/2,x=new Array(f.length/2),w=new Array(f.length/2),k=0;k<f.length/2;k++)x[k]={x:n.x+O+y*f[2*k],y:n.y+A+v*f[2*k+1]};var S,$,_,C,Q=x.length;for($=x[Q-1],S=0;S<Q;S++)_=x[S%Q],C=x[(S+1)%Q],w[S]=jMt($,_,C,b),$=_,_=C;l.drawRoundPolygonPath(s||e,n.x+O,n.y+A,r*c,i*u,f,w)}else if(["roundrectangle","round-rectangle"].includes(o))F="auto"===F?UQt(d,p):F,l.drawRoundRectanglePath(s||e,n.x,n.y,d,p,F+(a+L+X)/2);else if(["cutrectangle","cut-rectangle"].includes(o))F="auto"===F?8:F,l.drawCutRectanglePath(s||e,n.x,n.y,d,p,null,F+(a+L+X)/4);else if(["bottomroundrectangle","bottom-round-rectangle"].includes(o))F="auto"===F?UQt(d,p):F,l.drawBottomRoundRectanglePath(s||e,n.x,n.y,d,p,F+(a+L+X)/2);else if("barrel"===o)l.drawBarrelPath(s||e,n.x,n.y,d,p);else if(o.startsWith("polygon")||["rhomboid","right-rhomboid","round-tag","tag","vee"].includes(o)){f=QQt(PQt(f,(a+L+X)/r)),l.drawPolygonPath(s||e,n.x,n.y,r,i,f)}else{f=QQt(PQt(f,-((a+L+X)/r))),l.drawPolygonPath(s||e,n.x,n.y,r,i,f)}if(g?e.stroke(s):e.stroke(),"double"===M){e.lineWidth=a/3;var P=e.globalCompositeOperation;e.globalCompositeOperation="destination-out",g?e.stroke(s):e.stroke(),e.globalCompositeOperation=P}e.setLineDash&&e.setLineDash([])}};if("yes"===t.pstyle("ghost").value){var ne=t.pstyle("ghost-offset-x").pfValue,re=t.pstyle("ghost-offset-y").pfValue,ie=t.pstyle("ghost-opacity").value,oe=ie*f;e.translate(ne,re),q(),te(),U(ie*$),Z(),G(oe,!0),z(ie*I),ee(),H(0!==S||0!==T),K(0!==S||0!==T),G(oe,!1),J(oe),e.translate(-ne,-re)}g&&e.translate(-h.x,-h.y),a&&l.drawNodeUnderlay(e,t,h,r,i),g&&e.translate(h.x,h.y),q(),te(),U(),Z(),G(f,!0),z(),ee(),H(0!==S||0!==T),K(0!==S||0!==T),G(f,!1),J(),g&&e.translate(-h.x,-h.y),l.drawElementText(e,t,null,o),a&&l.drawNodeOverlay(e,t,h,r,i),n&&e.translate(p.x1,p.y1)}}},ZNt=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(t,n,r,i,o){if(n.visible()){var a=n.pstyle("".concat(e,"-padding")).pfValue,s=n.pstyle("".concat(e,"-opacity")).value,l=n.pstyle("".concat(e,"-color")).value,c=n.pstyle("".concat(e,"-shape")).value,u=n.pstyle("".concat(e,"-corner-radius")).value;if(s>0){if(r=r||n.position(),null==i||null==o){var h=n.padding();i=n.width()+2*h,o=n.height()+2*h}this.colorFillStyle(t,l[0],l[1],l[2],s),this.nodeShapes[c].draw(t,r.x,r.y,i+2*a,o+2*a,u),t.fill()}}}};YNt.drawNodeOverlay=ZNt("overlay"),YNt.drawNodeUnderlay=ZNt("underlay"),YNt.hasPie=function(e){return(e=e[0])._private.hasPie},YNt.hasStripe=function(e){return(e=e[0])._private.hasStripe},YNt.drawPie=function(e,t,n,r){t=t[0],r=r||t.position();var i,o=t.cy().style(),a=t.pstyle("pie-size"),s=t.pstyle("pie-hole"),l=t.pstyle("pie-start-angle").pfValue,c=r.x,u=r.y,h=t.width(),d=t.height(),p=Math.min(h,d)/2,f=0;if(this.usePaths()&&(c=0,u=0),"%"===a.units?p*=a.pfValue:void 0!==a.pfValue&&(p=a.pfValue/2),"%"===s.units?i=p*s.pfValue:void 0!==s.pfValue&&(i=s.pfValue/2),!(i>=p))for(var g=1;g<=o.pieBackgroundN;g++){var m=t.pstyle("pie-"+g+"-background-size").value,O=t.pstyle("pie-"+g+"-background-color").value,A=t.pstyle("pie-"+g+"-background-opacity").value*n,y=m/100;y+f>1&&(y=1-f);var v=1.5*Math.PI+2*Math.PI*f,b=(v+=l)+2*Math.PI*y;0===m||f>=1||f+y>1||(0===i?(e.beginPath(),e.moveTo(c,u),e.arc(c,u,p,v,b),e.closePath()):(e.beginPath(),e.arc(c,u,p,v,b),e.arc(c,u,i,b,v,!0),e.closePath()),this.colorFillStyle(e,O[0],O[1],O[2],A),e.fill(),f+=y)}},YNt.drawStripe=function(e,t,n,r){t=t[0],r=r||t.position();var i=t.cy().style(),o=r.x,a=r.y,s=t.width(),l=t.height(),c=0,u=this.usePaths();e.save();var h=t.pstyle("stripe-direction").value,d=t.pstyle("stripe-size");switch(h){case"vertical":break;case"righward":e.rotate(-Math.PI/2)}var p=s,f=l;"%"===d.units?(p*=d.pfValue,f*=d.pfValue):void 0!==d.pfValue&&(p=d.pfValue,f=d.pfValue),u&&(o=0,a=0),a-=p/2,o-=f/2;for(var g=1;g<=i.stripeBackgroundN;g++){var m=t.pstyle("stripe-"+g+"-background-size").value,O=t.pstyle("stripe-"+g+"-background-color").value,A=t.pstyle("stripe-"+g+"-background-opacity").value*n,y=m/100;y+c>1&&(y=1-c),0===m||c>=1||c+y>1||(e.beginPath(),e.rect(o,a+f*c,p,f*y),e.closePath(),this.colorFillStyle(e,O[0],O[1],O[2],A),e.fill(),c+=y)}e.restore()};var GNt,HNt={};function KNt(e,t,n){var r=e.createShader(t);if(e.shaderSource(r,n),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS))throw new Error(e.getShaderInfoLog(r));return r}function JNt(e,t,n){void 0===n&&(n=t);var r=e.makeOffscreenCanvas(t,n),i=r.context=r.getContext("2d");return r.clear=function(){return i.clearRect(0,0,r.width,r.height)},r.clear(),r}function eXt(e){var t=e.pixelRatio,n=e.cy.zoom(),r=e.cy.pan();return{zoom:n*t,pan:{x:r.x*t,y:r.y*t}}}function tXt(e,t){return!!t.picking||"solid"===e.pstyle("background-fill").value&&("none"===e.pstyle("background-image").strValue&&(0===e.pstyle("border-width").value||(0===e.pstyle("border-opacity").value||"solid"===e.pstyle("border-style").value)))}function nXt(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function rXt(e,t,n){var r=e[0]/255,i=e[1]/255,o=e[2]/255,a=t,s=n||new Array(4);return s[0]=r*a,s[1]=i*a,s[2]=o*a,s[3]=a,s}function iXt(e,t){var n=t||new Array(4);return n[0]=(255&e)/255,n[1]=(e>>8&255)/255,n[2]=(e>>16&255)/255,n[3]=(e>>24&255)/255,n}function oXt(e){return e[0]+(e[1]<<8)+(e[2]<<16)+(e[3]<<24)}function aXt(e,t){switch(t){case"float":return[1,e.FLOAT,4];case"vec2":return[2,e.FLOAT,4];case"vec3":return[3,e.FLOAT,4];case"vec4":return[4,e.FLOAT,4];case"int":return[1,e.INT,4];case"ivec2":return[2,e.INT,4]}}function sXt(e,t,n){switch(t){case e.FLOAT:return new Float32Array(n);case e.INT:return new Int32Array(n)}}function lXt(e,t,n,r,i,o){switch(t){case e.FLOAT:return new Float32Array(n.buffer,o*r,i);case e.INT:return new Int32Array(n.buffer,o*r,i)}}function cXt(e,t,n,r){var i=O$t(aXt(e,n),3),o=i[0],a=i[1],s=i[2],l=sXt(e,a,t*o),c=o*s,u=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,u),e.bufferData(e.ARRAY_BUFFER,t*c,e.DYNAMIC_DRAW),e.enableVertexAttribArray(r),a===e.FLOAT?e.vertexAttribPointer(r,o,a,!1,c,0):a===e.INT&&e.vertexAttribIPointer(r,o,a,c,0),e.vertexAttribDivisor(r,1),e.bindBuffer(e.ARRAY_BUFFER,null);for(var h=new Array(t),d=0;d<t;d++)h[d]=lXt(e,a,l,c,o,d);return u.dataArray=l,u.stride=c,u.size=o,u.getView=function(e){return h[e]},u.setPoint=function(e,t,n){var r=h[e];r[0]=t,r[1]=n},u.bufferSubData=function(t){e.bindBuffer(e.ARRAY_BUFFER,u),t?e.bufferSubData(e.ARRAY_BUFFER,0,l,0,t*o):e.bufferSubData(e.ARRAY_BUFFER,0,l)},u}HNt.getPixelRatio=function(){var e=this.data.contexts[0];if(null!=this.forcedPixelRatio)return this.forcedPixelRatio;var t=this.cy.window(),n=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(t.devicePixelRatio||1)/n},HNt.paintCache=function(e){for(var t,n=this.paintCaches=this.paintCaches||[],r=!0,i=0;i<n.length;i++)if((t=n[i]).context===e){r=!1;break}return r&&(t={context:e},n.push(t)),t},HNt.createGradientStyleFor=function(e,t,n,r,i){var o,a=this.usePaths(),s=n.pstyle(t+"-gradient-stop-colors").value,l=n.pstyle(t+"-gradient-stop-positions").pfValue;if("radial-gradient"===r)if(n.isEdge()){var c=n.sourceEndpoint(),u=n.targetEndpoint(),h=n.midpoint(),d=oQt(c,h),p=oQt(u,h);o=e.createRadialGradient(h.x,h.y,0,h.x,h.y,Math.max(d,p))}else{var f=a?{x:0,y:0}:n.position(),g=n.paddedWidth(),m=n.paddedHeight();o=e.createRadialGradient(f.x,f.y,0,f.x,f.y,Math.max(g,m))}else if(n.isEdge()){var O=n.sourceEndpoint(),A=n.targetEndpoint();o=e.createLinearGradient(O.x,O.y,A.x,A.y)}else{var y=a?{x:0,y:0}:n.position(),v=n.paddedWidth()/2,b=n.paddedHeight()/2;switch(n.pstyle("background-gradient-direction").value){case"to-bottom":o=e.createLinearGradient(y.x,y.y-b,y.x,y.y+b);break;case"to-top":o=e.createLinearGradient(y.x,y.y+b,y.x,y.y-b);break;case"to-left":o=e.createLinearGradient(y.x+v,y.y,y.x-v,y.y);break;case"to-right":o=e.createLinearGradient(y.x-v,y.y,y.x+v,y.y);break;case"to-bottom-right":case"to-right-bottom":o=e.createLinearGradient(y.x-v,y.y-b,y.x+v,y.y+b);break;case"to-top-right":case"to-right-top":o=e.createLinearGradient(y.x-v,y.y+b,y.x+v,y.y-b);break;case"to-bottom-left":case"to-left-bottom":o=e.createLinearGradient(y.x+v,y.y-b,y.x-v,y.y+b);break;case"to-top-left":case"to-left-top":o=e.createLinearGradient(y.x+v,y.y+b,y.x-v,y.y-b)}}if(!o)return null;for(var x=l.length===s.length,w=s.length,k=0;k<w;k++)o.addColorStop(x?l[k]:k/(w-1),"rgba("+s[k][0]+","+s[k][1]+","+s[k][2]+","+i+")");return o},HNt.gradientFillStyle=function(e,t,n,r){var i=this.createGradientStyleFor(e,"background",t,n,r);if(!i)return null;e.fillStyle=i},HNt.colorFillStyle=function(e,t,n,r,i){e.fillStyle="rgba("+t+","+n+","+r+","+i+")"},HNt.eleFillStyle=function(e,t,n){var r=t.pstyle("background-fill").value;if("linear-gradient"===r||"radial-gradient"===r)this.gradientFillStyle(e,t,r,n);else{var i=t.pstyle("background-color").value;this.colorFillStyle(e,i[0],i[1],i[2],n)}},HNt.gradientStrokeStyle=function(e,t,n,r){var i=this.createGradientStyleFor(e,"line",t,n,r);if(!i)return null;e.strokeStyle=i},HNt.colorStrokeStyle=function(e,t,n,r,i){e.strokeStyle="rgba("+t+","+n+","+r+","+i+")"},HNt.eleStrokeStyle=function(e,t,n){var r=t.pstyle("line-fill").value;if("linear-gradient"===r||"radial-gradient"===r)this.gradientStrokeStyle(e,t,r,n);else{var i=t.pstyle("line-color").value;this.colorStrokeStyle(e,i[0],i[1],i[2],n)}},HNt.matchCanvasSize=function(e){var t=this,n=t.data,r=t.findContainerClientCoords(),i=r[2],o=r[3],a=t.getPixelRatio(),s=t.motionBlurPxRatio;e!==t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_NODE]&&e!==t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_DRAG]||(a=s);var l,c=i*a,u=o*a;if(c!==t.canvasWidth||u!==t.canvasHeight){t.fontCaches=null;var h=n.canvasContainer;h.style.width=i+"px",h.style.height=o+"px";for(var d=0;d<t.CANVAS_LAYERS;d++)(l=n.canvases[d]).width=c,l.height=u,l.style.width=i+"px",l.style.height=o+"px";for(d=0;d<t.BUFFER_COUNT;d++)(l=n.bufferCanvases[d]).width=c,l.height=u,l.style.width=i+"px",l.style.height=o+"px";t.textureMult=1,a<=1&&(l=n.bufferCanvases[t.TEXTURE_BUFFER],t.textureMult=2,l.width=c*t.textureMult,l.height=u*t.textureMult),t.canvasWidth=c,t.canvasHeight=u,t.pixelRatio=a}},HNt.renderTo=function(e,t,n,r){this.render({forcedContext:e,forcedZoom:t,forcedPan:n,drawAllLayers:!0,forcedPxRatio:r})},HNt.clearCanvas=function(){var e=this,t=e.data;function n(t){t.clearRect(0,0,e.canvasWidth,e.canvasHeight)}n(t.contexts[e.NODE]),n(t.contexts[e.DRAG])},HNt.render=function(e){var t=this;e=e||yCt();var n=t.cy,r=e.forcedContext,i=e.drawAllLayers,o=e.drawOnlyNodeLayer,a=e.forcedZoom,s=e.forcedPan,l=void 0===e.forcedPxRatio?this.getPixelRatio():e.forcedPxRatio,c=t.data,u=c.canvasNeedsRedraw,h=t.textureOnViewport&&!r&&(t.pinching||t.hoverData.dragging||t.swipePanning||t.data.wheelZooming),d=void 0!==e.motionBlur?e.motionBlur:t.motionBlur,p=t.motionBlurPxRatio,f=n.hasCompoundNodes(),g=t.hoverData.draggingEles,m=!(!t.hoverData.selecting&&!t.touchData.selecting),O=d=d&&!r&&t.motionBlurEnabled&&!m;r||(t.prevPxRatio!==l&&(t.invalidateContainerClientCoordsCache(),t.matchCanvasSize(t.container),t.redrawHint("eles",!0),t.redrawHint("drag",!0)),t.prevPxRatio=l),!r&&t.motionBlurTimeout&&clearTimeout(t.motionBlurTimeout),d&&(null==t.mbFrames&&(t.mbFrames=0),t.mbFrames++,t.mbFrames<3&&(O=!1),t.mbFrames>t.minMbLowQualFrames&&(t.motionBlurPxRatio=t.mbPxRBlurry)),t.clearingMotionBlur&&(t.motionBlurPxRatio=1),t.textureDrawLastFrame&&!h&&(u[t.NODE]=!0,u[t.SELECT_BOX]=!0);var A=n.style(),y=n.zoom(),v=void 0!==a?a:y,b=n.pan(),x={x:b.x,y:b.y},w={zoom:y,pan:{x:b.x,y:b.y}},k=t.prevViewport;void 0===k||w.zoom!==k.zoom||w.pan.x!==k.pan.x||w.pan.y!==k.pan.y||g&&!f||(t.motionBlurPxRatio=1),s&&(x=s),v*=l,x.x*=l,x.y*=l;var S=t.getCachedZSortedEles();function T(e,n,r,i,o){var a=e.globalCompositeOperation;e.globalCompositeOperation="destination-out",t.colorFillStyle(e,255,255,255,t.motionBlurTransparency),e.fillRect(n,r,i,o),e.globalCompositeOperation=a}function $(e,n){var o,l,u,h;t.clearingMotionBlur||e!==c.bufferContexts[t.MOTIONBLUR_BUFFER_NODE]&&e!==c.bufferContexts[t.MOTIONBLUR_BUFFER_DRAG]?(o=x,l=v,u=t.canvasWidth,h=t.canvasHeight):(o={x:b.x*p,y:b.y*p},l=y*p,u=t.canvasWidth*p,h=t.canvasHeight*p),e.setTransform(1,0,0,1,0,0),"motionBlur"===n?T(e,0,0,u,h):r||void 0!==n&&!n||e.clearRect(0,0,u,h),i||(e.translate(o.x,o.y),e.scale(l,l)),s&&e.translate(s.x,s.y),a&&e.scale(a,a)}if(h||(t.textureDrawLastFrame=!1),h){if(t.textureDrawLastFrame=!0,!t.textureCache){t.textureCache={},t.textureCache.bb=n.mutableElements().boundingBox(),t.textureCache.texture=t.data.bufferCanvases[t.TEXTURE_BUFFER];var _=t.data.bufferContexts[t.TEXTURE_BUFFER];_.setTransform(1,0,0,1,0,0),_.clearRect(0,0,t.canvasWidth*t.textureMult,t.canvasHeight*t.textureMult),t.render({forcedContext:_,drawOnlyNodeLayer:!0,forcedPxRatio:l*t.textureMult}),(w=t.textureCache.viewport={zoom:n.zoom(),pan:n.pan(),width:t.canvasWidth,height:t.canvasHeight}).mpan={x:(0-w.pan.x)/w.zoom,y:(0-w.pan.y)/w.zoom}}u[t.DRAG]=!1,u[t.NODE]=!1;var C=c.contexts[t.NODE],Q=t.textureCache.texture;w=t.textureCache.viewport;C.setTransform(1,0,0,1,0,0),d?T(C,0,0,w.width,w.height):C.clearRect(0,0,w.width,w.height);var P=A.core("outside-texture-bg-color").value,E=A.core("outside-texture-bg-opacity").value;t.colorFillStyle(C,P[0],P[1],P[2],E),C.fillRect(0,0,w.width,w.height);y=n.zoom();$(C,!1),C.clearRect(w.mpan.x,w.mpan.y,w.width/w.zoom/l,w.height/w.zoom/l),C.drawImage(Q,w.mpan.x,w.mpan.y,w.width/w.zoom/l,w.height/w.zoom/l)}else t.textureOnViewport&&!r&&(t.textureCache=null);var R=n.extent(),B=t.pinching||t.hoverData.dragging||t.swipePanning||t.data.wheelZooming||t.hoverData.draggingEles||t.cy.animated(),I=t.hideEdgesOnViewport&&B,L=[];if(L[t.NODE]=!u[t.NODE]&&d&&!t.clearedForMotionBlur[t.NODE]||t.clearingMotionBlur,L[t.NODE]&&(t.clearedForMotionBlur[t.NODE]=!0),L[t.DRAG]=!u[t.DRAG]&&d&&!t.clearedForMotionBlur[t.DRAG]||t.clearingMotionBlur,L[t.DRAG]&&(t.clearedForMotionBlur[t.DRAG]=!0),u[t.NODE]||i||o||L[t.NODE]){var D=d&&!L[t.NODE]&&1!==p;$(C=r||(D?t.data.bufferContexts[t.MOTIONBLUR_BUFFER_NODE]:c.contexts[t.NODE]),d&&!D?"motionBlur":void 0),I?t.drawCachedNodes(C,S.nondrag,l,R):t.drawLayeredElements(C,S.nondrag,l,R),t.debug&&t.drawDebugPoints(C,S.nondrag),i||d||(u[t.NODE]=!1)}if(!o&&(u[t.DRAG]||i||L[t.DRAG])){D=d&&!L[t.DRAG]&&1!==p;$(C=r||(D?t.data.bufferContexts[t.MOTIONBLUR_BUFFER_DRAG]:c.contexts[t.DRAG]),d&&!D?"motionBlur":void 0),I?t.drawCachedNodes(C,S.drag,l,R):t.drawCachedElements(C,S.drag,l,R),t.debug&&t.drawDebugPoints(C,S.drag),i||d||(u[t.DRAG]=!1)}if(this.drawSelectionRectangle(e,$),d&&1!==p){var M=c.contexts[t.NODE],N=t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_NODE],X=c.contexts[t.DRAG],F=t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_DRAG],U=function(e,n,r){e.setTransform(1,0,0,1,0,0),r||!O?e.clearRect(0,0,t.canvasWidth,t.canvasHeight):T(e,0,0,t.canvasWidth,t.canvasHeight);var i=p;e.drawImage(n,0,0,t.canvasWidth*i,t.canvasHeight*i,0,0,t.canvasWidth,t.canvasHeight)};(u[t.NODE]||L[t.NODE])&&(U(M,N,L[t.NODE]),u[t.NODE]=!1),(u[t.DRAG]||L[t.DRAG])&&(U(X,F,L[t.DRAG]),u[t.DRAG]=!1)}t.prevViewport=w,t.clearingMotionBlur&&(t.clearingMotionBlur=!1,t.motionBlurCleared=!0,t.motionBlur=!0),d&&(t.motionBlurTimeout=setTimeout(function(){t.motionBlurTimeout=null,t.clearedForMotionBlur[t.NODE]=!1,t.clearedForMotionBlur[t.DRAG]=!1,t.motionBlur=!1,t.clearingMotionBlur=!h,t.mbFrames=0,u[t.NODE]=!0,u[t.DRAG]=!0,t.redraw()},100)),r||n.emit("render")},HNt.drawSelectionRectangle=function(e,t){var n=this,r=n.cy,i=n.data,o=r.style(),a=e.drawOnlyNodeLayer,s=e.drawAllLayers,l=i.canvasNeedsRedraw,c=e.forcedContext;if(n.showFps||!a&&l[n.SELECT_BOX]&&!s){var u=c||i.contexts[n.SELECT_BOX];if(t(u),1==n.selection[4]&&(n.hoverData.selecting||n.touchData.selecting)){var h=n.cy.zoom(),d=o.core("selection-box-border-width").value/h;u.lineWidth=d,u.fillStyle="rgba("+o.core("selection-box-color").value[0]+","+o.core("selection-box-color").value[1]+","+o.core("selection-box-color").value[2]+","+o.core("selection-box-opacity").value+")",u.fillRect(n.selection[0],n.selection[1],n.selection[2]-n.selection[0],n.selection[3]-n.selection[1]),d>0&&(u.strokeStyle="rgba("+o.core("selection-box-border-color").value[0]+","+o.core("selection-box-border-color").value[1]+","+o.core("selection-box-border-color").value[2]+","+o.core("selection-box-opacity").value+")",u.strokeRect(n.selection[0],n.selection[1],n.selection[2]-n.selection[0],n.selection[3]-n.selection[1]))}if(i.bgActivePosistion&&!n.hoverData.selecting){h=n.cy.zoom();var p=i.bgActivePosistion;u.fillStyle="rgba("+o.core("active-bg-color").value[0]+","+o.core("active-bg-color").value[1]+","+o.core("active-bg-color").value[2]+","+o.core("active-bg-opacity").value+")",u.beginPath(),u.arc(p.x,p.y,o.core("active-bg-size").pfValue/h,0,2*Math.PI),u.fill()}var f=n.lastRedrawTime;if(n.showFps&&f){f=Math.round(f);var g=Math.round(1e3/f),m="1 frame = "+f+" ms = "+g+" fps";if(u.setTransform(1,0,0,1,0,0),u.fillStyle="rgba(255, 0, 0, 0.75)",u.strokeStyle="rgba(255, 0, 0, 0.75)",u.font="30px Arial",!GNt){var O=u.measureText(m);GNt=O.actualBoundingBoxAscent}u.fillText(m,0,GNt);u.strokeRect(0,GNt+10,250,20),u.fillRect(0,GNt+10,250*Math.min(g/60,1),20)}s||(l[n.SELECT_BOX]=!1)}};var uXt="undefined"!=typeof Float32Array?Float32Array:Array;function hXt(){var e=new uXt(9);return uXt!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function dXt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function pXt(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],h=t[8],d=n[0],p=n[1];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e[6]=d*r+p*a+c,e[7]=d*i+p*s+u,e[8]=d*o+p*l+h,e}function fXt(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],h=t[8],d=Math.sin(n),p=Math.cos(n);return e[0]=p*r+d*a,e[1]=p*i+d*s,e[2]=p*o+d*l,e[3]=p*a-d*r,e[4]=p*s-d*i,e[5]=p*l-d*o,e[6]=c,e[7]=u,e[8]=h,e}function gXt(e,t,n){var r=n[0],i=n[1];return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=i*t[3],e[4]=i*t[4],e[5]=i*t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)});var mXt=function(){return f$t(function e(t,n,r,i){p$t(this,e),this.debugID=Math.floor(1e4*Math.random()),this.r=t,this.texSize=n,this.texRows=r,this.texHeight=Math.floor(n/r),this.enableWrapping=!0,this.locked=!1,this.texture=null,this.needsBuffer=!0,this.freePointer={x:0,row:0},this.keyToLocation=new Map,this.canvas=i(t,n,n),this.scratch=i(t,n,this.texHeight,"scratch")},[{key:"lock",value:function(){this.locked=!0}},{key:"getKeys",value:function(){return new Set(this.keyToLocation.keys())}},{key:"getScale",value:function(e){var t=e.w,n=e.h,r=this.texHeight,i=this.texSize,o=r/n,a=t*o,s=n*o;return a>i&&(a=t*(o=i/t),s=n*o),{scale:o,texW:a,texH:s}}},{key:"draw",value:function(e,t,n){var r=this;if(this.locked)throw new Error("can't draw, atlas is locked");var i=this.texSize,o=this.texRows,a=this.texHeight,s=this.getScale(t),l=s.scale,c=s.texW,u=s.texH,h=function(e,r){if(n&&r){var i=r.context,o=e.x,s=e.row,c=o,u=a*s;i.save(),i.translate(c,u),i.scale(l,l),n(i,t),i.restore()}},d=[null,null],p=function(){h(r.freePointer,r.canvas),d[0]={x:r.freePointer.x,y:r.freePointer.row*a,w:c,h:u},d[1]={x:r.freePointer.x+c,y:r.freePointer.row*a,w:0,h:u},r.freePointer.x+=c,r.freePointer.x==i&&(r.freePointer.x=0,r.freePointer.row++)},f=function(){r.freePointer.x=0,r.freePointer.row++};if(this.freePointer.x+c<=i)p();else{if(this.freePointer.row>=o-1)return!1;this.freePointer.x===i?(f(),p()):this.enableWrapping?function(){var e=r.scratch,t=r.canvas;e.clear(),h({x:0,row:0},e);var n=i-r.freePointer.x,o=c-n,s=a,l=r.freePointer.x,p=r.freePointer.row*a,f=n;t.context.drawImage(e,0,0,f,s,l,p,f,s),d[0]={x:l,y:p,w:f,h:u};var g=n,m=(r.freePointer.row+1)*a,O=o;t&&t.context.drawImage(e,g,0,O,s,0,m,O,s),d[1]={x:0,y:m,w:O,h:u},r.freePointer.x=o,r.freePointer.row++}():(f(),p())}return this.keyToLocation.set(e,d),this.needsBuffer=!0,d}},{key:"getOffsets",value:function(e){return this.keyToLocation.get(e)}},{key:"isEmpty",value:function(){return 0===this.freePointer.x&&0===this.freePointer.row}},{key:"canFit",value:function(e){if(this.locked)return!1;var t=this.texSize,n=this.texRows,r=this.getScale(e).texW;return!(this.freePointer.x+r>t)||this.freePointer.row<n-1}},{key:"bufferIfNeeded",value:function(e){this.texture||(this.texture=function(e){var t=e.createTexture();return t.buffer=function(n){e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_NEAREST),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,n),e.generateMipmap(e.TEXTURE_2D),e.bindTexture(e.TEXTURE_2D,null)},t.deleteTexture=function(){e.deleteTexture(t)},t}(e,this.debugID)),this.needsBuffer&&(this.texture.buffer(this.canvas),this.needsBuffer=!1,this.locked&&(this.canvas=null,this.scratch=null))}},{key:"dispose",value:function(){this.texture&&(this.texture.deleteTexture(),this.texture=null),this.canvas=null,this.scratch=null,this.locked=!0}}])}(),OXt=function(){return f$t(function e(t,n,r,i){p$t(this,e),this.r=t,this.texSize=n,this.texRows=r,this.createTextureCanvas=i,this.atlases=[],this.styleKeyToAtlas=new Map,this.markedKeys=new Set},[{key:"getKeys",value:function(){return new Set(this.styleKeyToAtlas.keys())}},{key:"_createAtlas",value:function(){var e=this.r,t=this.texSize,n=this.texRows,r=this.createTextureCanvas;return new mXt(e,t,n,r)}},{key:"_getScratchCanvas",value:function(){if(!this.scratch){var e=this.r,t=this.texSize,n=this.texRows,r=this.createTextureCanvas,i=Math.floor(t/n);this.scratch=r(e,t,i,"scratch")}return this.scratch}},{key:"draw",value:function(e,t,n){var r=this.styleKeyToAtlas.get(e);return r||((r=this.atlases[this.atlases.length-1])&&r.canFit(t)||(r&&r.lock(),r=this._createAtlas(),this.atlases.push(r)),r.draw(e,t,n),this.styleKeyToAtlas.set(e,r)),r}},{key:"getAtlas",value:function(e){return this.styleKeyToAtlas.get(e)}},{key:"hasAtlas",value:function(e){return this.styleKeyToAtlas.has(e)}},{key:"markKeyForGC",value:function(e){this.markedKeys.add(e)}},{key:"gc",value:function(){var e=this,t=this.markedKeys;if(0!==t.size){var n,r=[],i=new Map,o=null,a=g$t(this.atlases);try{var s=function(){var a,s,l=n.value,c=l.getKeys(),u=(s=c,(a=t).intersection?a.intersection(s):new Set(A$t(a).filter(function(e){return s.has(e)})));if(0===u.size)return r.push(l),c.forEach(function(e){return i.set(e,l)}),1;o||(o=e._createAtlas(),r.push(o));var h,d=g$t(c);try{for(d.s();!(h=d.n()).done;){var p=h.value;if(!u.has(p)){var f=O$t(l.getOffsets(p),2),g=f[0],m=f[1];o.canFit({w:g.w+m.w,h:g.h})||(o.lock(),o=e._createAtlas(),r.push(o)),l.canvas&&(e._copyTextureToNewAtlas(p,l,o),i.set(p,o))}}}catch(O){d.e(O)}finally{d.f()}l.dispose()};for(a.s();!(n=a.n()).done;)s()}catch(l){a.e(l)}finally{a.f()}this.atlases=r,this.styleKeyToAtlas=i,this.markedKeys=new Set}}},{key:"_copyTextureToNewAtlas",value:function(e,t,n){var r=O$t(t.getOffsets(e),2),i=r[0],o=r[1];if(0===o.w)n.draw(e,i,function(e){e.drawImage(t.canvas,i.x,i.y,i.w,i.h,0,0,i.w,i.h)});else{var a=this._getScratchCanvas();a.clear(),a.context.drawImage(t.canvas,i.x,i.y,i.w,i.h,0,0,i.w,i.h),a.context.drawImage(t.canvas,o.x,o.y,o.w,o.h,i.w,0,o.w,o.h);var s=i.w+o.w,l=i.h;n.draw(e,{w:s,h:l},function(e){e.drawImage(a,0,0,s,l,0,0,s,l)})}}},{key:"getCounts",value:function(){return{keyCount:this.styleKeyToAtlas.size,atlasCount:new Set(this.styleKeyToAtlas.values()).size}}}])}();var AXt=function(){return f$t(function e(t,n){p$t(this,e),this.r=t,this.globalOptions=n,this.atlasSize=n.webglTexSize,this.maxAtlasesPerBatch=n.webglTexPerBatch,this.renderTypes=new Map,this.collections=new Map,this.typeAndIdToKey=new Map},[{key:"getAtlasSize",value:function(){return this.atlasSize}},{key:"addAtlasCollection",value:function(e,t){var n=this.globalOptions,r=n.webglTexSize,i=n.createTextureCanvas,o=t.texRows,a=this._cacheScratchCanvas(i),s=new OXt(this.r,r,o,a);this.collections.set(e,s)}},{key:"addRenderType",value:function(e,t){var n=t.collection;if(!this.collections.has(n))throw new Error("invalid atlas collection name '".concat(n,"'"));var r=this.collections.get(n),i=C_t({type:e,atlasCollection:r},t);this.renderTypes.set(e,i)}},{key:"getRenderTypeOpts",value:function(e){return this.renderTypes.get(e)}},{key:"getAtlasCollection",value:function(e){return this.collections.get(e)}},{key:"_cacheScratchCanvas",value:function(e){var t=-1,n=-1,r=null;return function(i,o,a,s){return s?(r&&o==t&&a==n||(t=o,n=a,r=e(i,o,a)),r):e(i,o,a)}}},{key:"_key",value:function(e,t){return"".concat(e,"-").concat(t)}},{key:"invalidate",value:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.forceRedraw,o=void 0!==i&&i,a=r.filterEle,s=void 0===a?function(){return!0}:a,l=r.filterType,c=void 0===l?function(){return!0}:l,u=!1,h=!1,d=g$t(e);try{for(d.s();!(t=d.n()).done;){var p=t.value;if(s(p)){var f,g=g$t(this.renderTypes.values());try{var m=function(){var e=f.value,t=e.type;if(c(t)){var r=n.collections.get(e.collection),i=e.getKey(p),a=Array.isArray(i)?i:[i];if(o)a.forEach(function(e){return r.markKeyForGC(e)}),h=!0;else{var s=e.getID?e.getID(p):p.id(),l=n._key(t,s),d=n.typeAndIdToKey.get(l);void 0===d||nXt(a,d)||(u=!0,n.typeAndIdToKey.delete(l),d.forEach(function(e){return r.markKeyForGC(e)}))}}};for(g.s();!(f=g.n()).done;)m()}catch(O){g.e(O)}finally{g.f()}}}}catch(O){d.e(O)}finally{d.f()}return h&&(this.gc(),u=!1),u}},{key:"gc",value:function(){var e,t=g$t(this.collections.values());try{for(t.s();!(e=t.n()).done;){e.value.gc()}}catch(n){t.e(n)}finally{t.f()}}},{key:"getOrCreateAtlas",value:function(e,t,n,r){var i=this.renderTypes.get(t),o=this.collections.get(i.collection),a=!1,s=o.draw(r,n,function(t){i.drawClipped?(t.save(),t.beginPath(),t.rect(0,0,n.w,n.h),t.clip(),i.drawElement(t,e,n,!0,!0),t.restore()):i.drawElement(t,e,n,!0,!0),a=!0});if(a){var l=i.getID?i.getID(e):e.id(),c=this._key(t,l);this.typeAndIdToKey.has(c)?this.typeAndIdToKey.get(c).push(r):this.typeAndIdToKey.set(c,[r])}return s}},{key:"getAtlasInfo",value:function(e,t){var n=this,r=this.renderTypes.get(t),i=r.getKey(e);return(Array.isArray(i)?i:[i]).map(function(i){var o=r.getBoundingBox(e,i),a=n.getOrCreateAtlas(e,t,o,i),s=O$t(a.getOffsets(i),2),l=s[0];return{atlas:a,tex:l,tex1:l,tex2:s[1],bb:o}})}},{key:"getDebugInfo",value:function(){var e,t=[],n=g$t(this.collections);try{for(n.s();!(e=n.n()).done;){var r=O$t(e.value,2),i=r[0],o=r[1].getCounts(),a=o.keyCount,s=o.atlasCount;t.push({type:i,keyCount:a,atlasCount:s})}}catch(l){n.e(l)}finally{n.f()}return t}}])}(),yXt=function(){return f$t(function e(t){p$t(this,e),this.globalOptions=t,this.atlasSize=t.webglTexSize,this.maxAtlasesPerBatch=t.webglTexPerBatch,this.batchAtlases=[]},[{key:"getMaxAtlasesPerBatch",value:function(){return this.maxAtlasesPerBatch}},{key:"getAtlasSize",value:function(){return this.atlasSize}},{key:"getIndexArray",value:function(){return Array.from({length:this.maxAtlasesPerBatch},function(e,t){return t})}},{key:"startBatch",value:function(){this.batchAtlases=[]}},{key:"getAtlasCount",value:function(){return this.batchAtlases.length}},{key:"getAtlases",value:function(){return this.batchAtlases}},{key:"canAddToCurrentBatch",value:function(e){return this.batchAtlases.length!==this.maxAtlasesPerBatch||this.batchAtlases.includes(e)}},{key:"getAtlasIndexForBatch",value:function(e){var t=this.batchAtlases.indexOf(e);if(t<0){if(this.batchAtlases.length===this.maxAtlasesPerBatch)throw new Error("cannot add more atlases to batch");this.batchAtlases.push(e),t=this.batchAtlases.length-1}return t}}])}(),vXt={SCREEN:{name:"screen",screen:!0},PICKING:{name:"picking",picking:!0}},bXt=1,xXt=2,wXt=function(){return f$t(function e(t,n,r){p$t(this,e),this.r=t,this.gl=n,this.maxInstances=r.webglBatchSize,this.atlasSize=r.webglTexSize,this.bgColor=r.bgColor,this.debug=r.webglDebug,this.batchDebugInfo=[],r.enableWrapping=!0,r.createTextureCanvas=JNt,this.atlasManager=new AXt(t,r),this.batchManager=new yXt(r),this.simpleShapeOptions=new Map,this.program=this._createShaderProgram(vXt.SCREEN),this.pickingProgram=this._createShaderProgram(vXt.PICKING),this.vao=this._createVAO()},[{key:"addAtlasCollection",value:function(e,t){this.atlasManager.addAtlasCollection(e,t)}},{key:"addTextureAtlasRenderType",value:function(e,t){this.atlasManager.addRenderType(e,t)}},{key:"addSimpleShapeRenderType",value:function(e,t){this.simpleShapeOptions.set(e,t)}},{key:"invalidate",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).type,n=this.atlasManager;return t?n.invalidate(e,{filterType:function(e){return e===t},forceRedraw:!0}):n.invalidate(e)}},{key:"gc",value:function(){this.atlasManager.gc()}},{key:"_createShaderProgram",value:function(e){var t=this.gl,n="#version 300 es\n precision highp float;\n\n uniform mat3 uPanZoomMatrix;\n uniform int uAtlasSize;\n \n // instanced\n in vec2 aPosition; // a vertex from the unit square\n \n in mat3 aTransform; // used to transform verticies, eg into a bounding box\n in int aVertType; // the type of thing we are rendering\n\n // the z-index that is output when using picking mode\n in vec4 aIndex;\n \n // For textures\n in int aAtlasId; // which shader unit/atlas to use\n in vec4 aTex; // x/y/w/h of texture in atlas\n\n // for edges\n in vec4 aPointAPointB;\n in vec4 aPointCPointD;\n in vec2 aLineWidth; // also used for node border width\n\n // simple shapes\n in vec4 aCornerRadius; // for round-rectangle [top-right, bottom-right, top-left, bottom-left]\n in vec4 aColor; // also used for edges\n in vec4 aBorderColor; // aLineWidth is used for border width\n\n // output values passed to the fragment shader\n out vec2 vTexCoord;\n out vec4 vColor;\n out vec2 vPosition;\n // flat values are not interpolated\n flat out int vAtlasId; \n flat out int vVertType;\n flat out vec2 vTopRight;\n flat out vec2 vBotLeft;\n flat out vec4 vCornerRadius;\n flat out vec4 vBorderColor;\n flat out vec2 vBorderWidth;\n flat out vec4 vIndex;\n \n void main(void) {\n int vid = gl_VertexID;\n vec2 position = aPosition; // TODO make this a vec3, simplifies some code below\n\n if(aVertType == ".concat(0,") {\n float texX = aTex.x; // texture coordinates\n float texY = aTex.y;\n float texW = aTex.z;\n float texH = aTex.w;\n\n if(vid == 1 || vid == 2 || vid == 4) {\n texX += texW;\n }\n if(vid == 2 || vid == 4 || vid == 5) {\n texY += texH;\n }\n\n float d = float(uAtlasSize);\n vTexCoord = vec2(texX / d, texY / d); // tex coords must be between 0 and 1\n\n gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0);\n }\n else if(aVertType == ").concat(4," || aVertType == ").concat(7," \n || aVertType == ").concat(5," || aVertType == ").concat(6,") { // simple shapes\n\n // the bounding box is needed by the fragment shader\n vBotLeft = (aTransform * vec3(0, 0, 1)).xy; // flat\n vTopRight = (aTransform * vec3(1, 1, 1)).xy; // flat\n vPosition = (aTransform * vec3(position, 1)).xy; // will be interpolated\n\n // calculations are done in the fragment shader, just pass these along\n vColor = aColor;\n vCornerRadius = aCornerRadius;\n vBorderColor = aBorderColor;\n vBorderWidth = aLineWidth;\n\n gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0);\n }\n else if(aVertType == ").concat(1,") {\n vec2 source = aPointAPointB.xy;\n vec2 target = aPointAPointB.zw;\n\n // adjust the geometry so that the line is centered on the edge\n position.y = position.y - 0.5;\n\n // stretch the unit square into a long skinny rectangle\n vec2 xBasis = target - source;\n vec2 yBasis = normalize(vec2(-xBasis.y, xBasis.x));\n vec2 point = source + xBasis * position.x + yBasis * aLineWidth[0] * position.y;\n\n gl_Position = vec4(uPanZoomMatrix * vec3(point, 1.0), 1.0);\n vColor = aColor;\n } \n else if(aVertType == ").concat(2,") {\n vec2 pointA = aPointAPointB.xy;\n vec2 pointB = aPointAPointB.zw;\n vec2 pointC = aPointCPointD.xy;\n vec2 pointD = aPointCPointD.zw;\n\n // adjust the geometry so that the line is centered on the edge\n position.y = position.y - 0.5;\n\n vec2 p0, p1, p2, pos;\n if(position.x == 0.0) { // The left side of the unit square\n p0 = pointA;\n p1 = pointB;\n p2 = pointC;\n pos = position;\n } else { // The right side of the unit square, use same approach but flip the geometry upside down\n p0 = pointD;\n p1 = pointC;\n p2 = pointB;\n pos = vec2(0.0, -position.y);\n }\n\n vec2 p01 = p1 - p0;\n vec2 p12 = p2 - p1;\n vec2 p21 = p1 - p2;\n\n // Find the normal vector.\n vec2 tangent = normalize(normalize(p12) + normalize(p01));\n vec2 normal = vec2(-tangent.y, tangent.x);\n\n // Find the vector perpendicular to p0 -> p1.\n vec2 p01Norm = normalize(vec2(-p01.y, p01.x));\n\n // Determine the bend direction.\n float sigma = sign(dot(p01 + p21, normal));\n float width = aLineWidth[0];\n\n if(sign(pos.y) == -sigma) {\n // This is an intersecting vertex. Adjust the position so that there's no overlap.\n vec2 point = 0.5 * width * normal * -sigma / dot(normal, p01Norm);\n gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0);\n } else {\n // This is a non-intersecting vertex. Treat it like a mitre join.\n vec2 point = 0.5 * width * normal * sigma * dot(normal, p01Norm);\n gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0);\n }\n\n vColor = aColor;\n } \n else if(aVertType == ").concat(3," && vid < 3) {\n // massage the first triangle into an edge arrow\n if(vid == 0)\n position = vec2(-0.15, -0.3);\n if(vid == 1)\n position = vec2( 0.0, 0.0);\n if(vid == 2)\n position = vec2( 0.15, -0.3);\n\n gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0);\n vColor = aColor;\n }\n else {\n gl_Position = vec4(2.0, 0.0, 0.0, 1.0); // discard vertex by putting it outside webgl clip space\n }\n\n vAtlasId = aAtlasId;\n vVertType = aVertType;\n vIndex = aIndex;\n }\n "),r=this.batchManager.getIndexArray(),i=function(e,t,n){var r=KNt(e,e.VERTEX_SHADER,t),i=KNt(e,e.FRAGMENT_SHADER,n),o=e.createProgram();if(e.attachShader(o,r),e.attachShader(o,i),e.linkProgram(o),!e.getProgramParameter(o,e.LINK_STATUS))throw new Error("Could not initialize shaders");return o}(t,n,"#version 300 es\n precision highp float;\n\n // declare texture unit for each texture atlas in the batch\n ".concat(r.map(function(e){return"uniform sampler2D uTexture".concat(e,";")}).join("\n\t"),"\n\n uniform vec4 uBGColor;\n uniform float uZoom;\n\n in vec2 vTexCoord;\n in vec4 vColor;\n in vec2 vPosition; // model coordinates\n\n flat in int vAtlasId;\n flat in vec4 vIndex;\n flat in int vVertType;\n flat in vec2 vTopRight;\n flat in vec2 vBotLeft;\n flat in vec4 vCornerRadius;\n flat in vec4 vBorderColor;\n flat in vec2 vBorderWidth;\n\n out vec4 outColor;\n\n ").concat("\n float circleSD(vec2 p, float r) {\n return distance(vec2(0), p) - r; // signed distance\n }\n","\n ").concat("\n float rectangleSD(vec2 p, vec2 b) {\n vec2 d = abs(p)-b;\n return distance(vec2(0),max(d,0.0)) + min(max(d.x,d.y),0.0);\n }\n","\n ").concat("\n float roundRectangleSD(vec2 p, vec2 b, vec4 cr) {\n cr.xy = (p.x > 0.0) ? cr.xy : cr.zw;\n cr.x = (p.y > 0.0) ? cr.x : cr.y;\n vec2 q = abs(p) - b + cr.x;\n return min(max(q.x, q.y), 0.0) + distance(vec2(0), max(q, 0.0)) - cr.x;\n }\n","\n ").concat("\n float ellipseSD(vec2 p, vec2 ab) {\n p = abs( p ); // symmetry\n\n // find root with Newton solver\n vec2 q = ab*(p-ab);\n float w = (q.x<q.y)? 1.570796327 : 0.0;\n for( int i=0; i<5; i++ ) {\n vec2 cs = vec2(cos(w),sin(w));\n vec2 u = ab*vec2( cs.x,cs.y);\n vec2 v = ab*vec2(-cs.y,cs.x);\n w = w + dot(p-u,v)/(dot(p-u,u)+dot(v,v));\n }\n \n // compute final point and distance\n float d = length(p-ab*vec2(cos(w),sin(w)));\n \n // return signed distance\n return (dot(p/ab,p/ab)>1.0) ? d : -d;\n }\n","\n\n vec4 blend(vec4 top, vec4 bot) { // blend colors with premultiplied alpha\n return vec4( \n top.rgb + (bot.rgb * (1.0 - top.a)),\n top.a + (bot.a * (1.0 - top.a)) \n );\n }\n\n vec4 distInterp(vec4 cA, vec4 cB, float d) { // interpolate color using Signed Distance\n // scale to the zoom level so that borders don't look blurry when zoomed in\n // note 1.5 is an aribitrary value chosen because it looks good\n return mix(cA, cB, 1.0 - smoothstep(0.0, 1.5 / uZoom, abs(d))); \n }\n\n void main(void) {\n if(vVertType == ").concat(0,") {\n // look up the texel from the texture unit\n ").concat(r.map(function(e){return"if(vAtlasId == ".concat(e,") outColor = texture(uTexture").concat(e,", vTexCoord);")}).join("\n\telse "),"\n } \n else if(vVertType == ").concat(3,") {\n // mimics how canvas renderer uses context.globalCompositeOperation = 'destination-out';\n outColor = blend(vColor, uBGColor);\n outColor.a = 1.0; // make opaque, masks out line under arrow\n }\n else if(vVertType == ").concat(4," && vBorderWidth == vec2(0.0)) { // simple rectangle with no border\n outColor = vColor; // unit square is already transformed to the rectangle, nothing else needs to be done\n }\n else if(vVertType == ").concat(4," || vVertType == ").concat(7," \n || vVertType == ").concat(5," || vVertType == ").concat(6,") { // use SDF\n\n float outerBorder = vBorderWidth[0];\n float innerBorder = vBorderWidth[1];\n float borderPadding = outerBorder * 2.0;\n float w = vTopRight.x - vBotLeft.x - borderPadding;\n float h = vTopRight.y - vBotLeft.y - borderPadding;\n vec2 b = vec2(w/2.0, h/2.0); // half width, half height\n vec2 p = vPosition - vec2(vTopRight.x - b[0] - outerBorder, vTopRight.y - b[1] - outerBorder); // translate to center\n\n float d; // signed distance\n if(vVertType == ").concat(4,") {\n d = rectangleSD(p, b);\n } else if(vVertType == ").concat(7," && w == h) {\n d = circleSD(p, b.x); // faster than ellipse\n } else if(vVertType == ").concat(7,") {\n d = ellipseSD(p, b);\n } else {\n d = roundRectangleSD(p, b, vCornerRadius.wzyx);\n }\n\n // use the distance to interpolate a color to smooth the edges of the shape, doesn't need multisampling\n // we must smooth colors inwards, because we can't change pixels outside the shape's bounding box\n if(d > 0.0) {\n if(d > outerBorder) {\n discard;\n } else {\n outColor = distInterp(vBorderColor, vec4(0), d - outerBorder);\n }\n } else {\n if(d > innerBorder) {\n vec4 outerColor = outerBorder == 0.0 ? vec4(0) : vBorderColor;\n vec4 innerBorderColor = blend(vBorderColor, vColor);\n outColor = distInterp(innerBorderColor, outerColor, d);\n } \n else {\n vec4 outerColor;\n if(innerBorder == 0.0 && outerBorder == 0.0) {\n outerColor = vec4(0);\n } else if(innerBorder == 0.0) {\n outerColor = vBorderColor;\n } else {\n outerColor = blend(vBorderColor, vColor);\n }\n outColor = distInterp(vColor, outerColor, d - innerBorder);\n }\n }\n }\n else {\n outColor = vColor;\n }\n\n ").concat(e.picking?"if(outColor.a == 0.0) discard;\n else outColor = vIndex;":"","\n }\n "));i.aPosition=t.getAttribLocation(i,"aPosition"),i.aIndex=t.getAttribLocation(i,"aIndex"),i.aVertType=t.getAttribLocation(i,"aVertType"),i.aTransform=t.getAttribLocation(i,"aTransform"),i.aAtlasId=t.getAttribLocation(i,"aAtlasId"),i.aTex=t.getAttribLocation(i,"aTex"),i.aPointAPointB=t.getAttribLocation(i,"aPointAPointB"),i.aPointCPointD=t.getAttribLocation(i,"aPointCPointD"),i.aLineWidth=t.getAttribLocation(i,"aLineWidth"),i.aColor=t.getAttribLocation(i,"aColor"),i.aCornerRadius=t.getAttribLocation(i,"aCornerRadius"),i.aBorderColor=t.getAttribLocation(i,"aBorderColor"),i.uPanZoomMatrix=t.getUniformLocation(i,"uPanZoomMatrix"),i.uAtlasSize=t.getUniformLocation(i,"uAtlasSize"),i.uBGColor=t.getUniformLocation(i,"uBGColor"),i.uZoom=t.getUniformLocation(i,"uZoom"),i.uTextures=[];for(var o=0;o<this.batchManager.getMaxAtlasesPerBatch();o++)i.uTextures.push(t.getUniformLocation(i,"uTexture".concat(o)));return i}},{key:"_createVAO",value:function(){var e=[0,0,1,0,1,1,0,0,1,1,0,1];this.vertexCount=e.length/2;var t=this.maxInstances,n=this.gl,r=this.program,i=n.createVertexArray();return n.bindVertexArray(i),function(e,t,n,r){var i=O$t(aXt(e,t),2),o=i[0],a=i[1],s=sXt(e,a,r),l=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,l),e.bufferData(e.ARRAY_BUFFER,s,e.STATIC_DRAW),a===e.FLOAT?e.vertexAttribPointer(n,o,a,!1,0,0):a===e.INT&&e.vertexAttribIPointer(n,o,a,0,0),e.enableVertexAttribArray(n),e.bindBuffer(e.ARRAY_BUFFER,null)}(n,"vec2",r.aPosition,e),this.transformBuffer=function(e,t,n){for(var r=new Float32Array(9*t),i=new Array(t),o=0;o<t;o++){var a=9*o*4;i[o]=new Float32Array(r.buffer,a,9)}var s=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,s),e.bufferData(e.ARRAY_BUFFER,r.byteLength,e.DYNAMIC_DRAW);for(var l=0;l<3;l++){var c=n+l;e.enableVertexAttribArray(c),e.vertexAttribPointer(c,3,e.FLOAT,!1,36,12*l),e.vertexAttribDivisor(c,1)}return e.bindBuffer(e.ARRAY_BUFFER,null),s.getMatrixView=function(e){return i[e]},s.setData=function(e,t){i[t].set(e,0)},s.bufferSubData=function(){e.bindBuffer(e.ARRAY_BUFFER,s),e.bufferSubData(e.ARRAY_BUFFER,0,r)},s}(n,t,r.aTransform),this.indexBuffer=cXt(n,t,"vec4",r.aIndex),this.vertTypeBuffer=cXt(n,t,"int",r.aVertType),this.atlasIdBuffer=cXt(n,t,"int",r.aAtlasId),this.texBuffer=cXt(n,t,"vec4",r.aTex),this.pointAPointBBuffer=cXt(n,t,"vec4",r.aPointAPointB),this.pointCPointDBuffer=cXt(n,t,"vec4",r.aPointCPointD),this.lineWidthBuffer=cXt(n,t,"vec2",r.aLineWidth),this.colorBuffer=cXt(n,t,"vec4",r.aColor),this.cornerRadiusBuffer=cXt(n,t,"vec4",r.aCornerRadius),this.borderColorBuffer=cXt(n,t,"vec4",r.aBorderColor),n.bindVertexArray(null),i}},{key:"buffers",get:function(){var e=this;return this._buffers||(this._buffers=Object.keys(this).filter(function(e){return x_t(e,"Buffer")}).map(function(t){return e[t]})),this._buffers}},{key:"startFrame",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vXt.SCREEN;this.panZoomMatrix=e,this.renderTarget=t,this.batchDebugInfo=[],this.wrappedCount=0,this.simpleCount=0,this.startBatch()}},{key:"startBatch",value:function(){this.instanceCount=0,this.batchManager.startBatch()}},{key:"endFrame",value:function(){this.endBatch()}},{key:"_isVisible",value:function(e,t){return!!e.visible()&&(!t||!t.isVisible||t.isVisible(e))}},{key:"drawTexture",value:function(e,t,n){var r=this.atlasManager,i=this.batchManager,o=r.getRenderTypeOpts(n);if(this._isVisible(e,o)&&(!e.isEdge()||this._isValidEdge(e))){if(this.renderTarget.picking&&o.getTexPickingMode){var a=o.getTexPickingMode(e);if(a===bXt)return;if(a==xXt)return void this.drawPickingRectangle(e,t,n)}var s,l=g$t(r.getAtlasInfo(e,n));try{for(l.s();!(s=l.n()).done;){var c=s.value,u=c.atlas,h=c.tex1,d=c.tex2;i.canAddToCurrentBatch(u)||this.endBatch();for(var p=i.getAtlasIndexForBatch(u),f=0,g=[[h,!0],[d,!1]];f<g.length;f++){var m=O$t(g[f],2),O=m[0],A=m[1];if(0!=O.w){var y=this.instanceCount;this.vertTypeBuffer.getView(y)[0]=0,iXt(t,this.indexBuffer.getView(y)),this.atlasIdBuffer.getView(y)[0]=p;var v=this.texBuffer.getView(y);v[0]=O.x,v[1]=O.y,v[2]=O.w,v[3]=O.h;var b=this.transformBuffer.getMatrixView(y);this.setTransformMatrix(e,b,o,c,A),this.instanceCount++,A||this.wrappedCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}}catch(x){l.e(x)}finally{l.f()}}}},{key:"setTransformMatrix",value:function(e,t,n,r){var i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=0;if(n.shapeProps&&n.shapeProps.padding&&(o=e.pstyle(n.shapeProps.padding).pfValue),r){var a=r.bb,s=r.tex1,l=r.tex2,c=s.w/(s.w+l.w);i||(c=1-c);var u=this._getAdjustedBB(a,o,i,c);this._applyTransformMatrix(t,u,n,e)}else{var h=n.getBoundingBox(e),d=this._getAdjustedBB(h,o,!0,1);this._applyTransformMatrix(t,d,n,e)}}},{key:"_applyTransformMatrix",value:function(e,t,n,r){var i,o;dXt(e);var a=n.getRotation?n.getRotation(r):0;if(0!==a){var s=n.getRotationPoint(r);pXt(e,e,[s.x,s.y]),fXt(e,e,a);var l=n.getRotationOffset(r);i=l.x+(t.xOffset||0),o=l.y+(t.yOffset||0)}else i=t.x1,o=t.y1;pXt(e,e,[i,o]),gXt(e,e,[t.w,t.h])}},{key:"_getAdjustedBB",value:function(e,t,n,r){var i=e.x1,o=e.y1,a=e.w,s=e.h;t&&(i-=t,o-=t,a+=2*t,s+=2*t);var l=0,c=a*r;return n&&r<1?a=c:!n&&r<1&&(i+=l=a-c,a=c),{x1:i,y1:o,w:a,h:s,xOffset:l,yOffset:e.yOffset}}},{key:"drawPickingRectangle",value:function(e,t,n){var r=this.atlasManager.getRenderTypeOpts(n),i=this.instanceCount;this.vertTypeBuffer.getView(i)[0]=4,iXt(t,this.indexBuffer.getView(i)),rXt([0,0,0],1,this.colorBuffer.getView(i));var o=this.transformBuffer.getMatrixView(i);this.setTransformMatrix(e,o,r),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}},{key:"drawNode",value:function(e,t,n){var r=this.simpleShapeOptions.get(n);if(this._isVisible(e,r)){var i=r.shapeProps,o=this._getVertTypeForShape(e,i.shape);if(void 0===o||r.isSimple&&!r.isSimple(e,this.renderTarget))this.drawTexture(e,t,n);else{var a=this.instanceCount;if(this.vertTypeBuffer.getView(a)[0]=o,5===o||6===o){var s=r.getBoundingBox(e),l=this._getCornerRadius(e,i.radius,s),c=this.cornerRadiusBuffer.getView(a);c[0]=l,c[1]=l,c[2]=l,c[3]=l,6===o&&(c[0]=0,c[2]=0)}iXt(t,this.indexBuffer.getView(a));var u=this.renderTarget.picking?1:"node-body"===n?e.effectiveOpacity():1,h=this.renderTarget.picking?1:e.pstyle(i.opacity).value*u;rXt(e.pstyle(i.color).value,h,this.colorBuffer.getView(a));var d=this.lineWidthBuffer.getView(a);if(d[0]=0,d[1]=0,i.border){var p=e.pstyle("border-width").value;if(p>0){rXt(e.pstyle("border-color").value,u*e.pstyle("border-opacity").value,this.borderColorBuffer.getView(a));var f=e.pstyle("border-position").value;if("inside"===f)d[0]=0,d[1]=-p;else if("outside"===f)d[0]=p,d[1]=0;else{var g=p/2;d[0]=g,d[1]=-g}}}var m=this.transformBuffer.getMatrixView(a);this.setTransformMatrix(e,m,r),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}},{key:"_getVertTypeForShape",value:function(e,t){switch(e.pstyle(t).value){case"rectangle":return 4;case"ellipse":return 7;case"roundrectangle":case"round-rectangle":return 5;case"bottom-round-rectangle":return 6;default:return}}},{key:"_getCornerRadius",value:function(e,t,n){var r=n.w,i=n.h;if("auto"===e.pstyle(t).value)return UQt(r,i);var o=e.pstyle(t).pfValue,a=r/2,s=i/2;return Math.min(o,s,a)}},{key:"drawEdgeArrow",value:function(e,t,n){if(e.visible()){var r,i,o,a=e._private.rscratch;if("source"===n?(r=a.arrowStartX,i=a.arrowStartY,o=a.srcArrowAngle):(r=a.arrowEndX,i=a.arrowEndY,o=a.tgtArrowAngle),!(isNaN(r)||null==r||isNaN(i)||null==i||isNaN(o)||null==o))if("none"!==e.pstyle(n+"-arrow-shape").value){var s=e.pstyle(n+"-arrow-color").value,l=e.pstyle("opacity").value*e.pstyle("line-opacity").value,c=e.pstyle("width").pfValue,u=e.pstyle("arrow-scale").value,h=this.r.getArrowWidth(c,u),d=this.instanceCount,p=this.transformBuffer.getMatrixView(d);dXt(p),pXt(p,p,[r,i]),gXt(p,p,[h,h]),fXt(p,p,o),this.vertTypeBuffer.getView(d)[0]=3,iXt(t,this.indexBuffer.getView(d)),rXt(s,l,this.colorBuffer.getView(d)),this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}},{key:"drawEdgeLine",value:function(e,t){if(e.visible()){var n=this._getEdgePoints(e);if(n){var r=e.pstyle("opacity").value,i=e.pstyle("line-opacity").value,o=e.pstyle("width").pfValue,a=e.pstyle("line-color").value,s=r*i;if(n.length/2+this.instanceCount>this.maxInstances&&this.endBatch(),4==n.length){var l=this.instanceCount;this.vertTypeBuffer.getView(l)[0]=1,iXt(t,this.indexBuffer.getView(l)),rXt(a,s,this.colorBuffer.getView(l)),this.lineWidthBuffer.getView(l)[0]=o;var c=this.pointAPointBBuffer.getView(l);c[0]=n[0],c[1]=n[1],c[2]=n[2],c[3]=n[3],this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}else for(var u=0;u<n.length-2;u+=2){var h=this.instanceCount;this.vertTypeBuffer.getView(h)[0]=2,iXt(t,this.indexBuffer.getView(h)),rXt(a,s,this.colorBuffer.getView(h)),this.lineWidthBuffer.getView(h)[0]=o;var d=n[u-2],p=n[u-1],f=n[u],g=n[u+1],m=n[u+2],O=n[u+3],A=n[u+4],y=n[u+5];0==u&&(d=2*f-m+.001,p=2*g-O+.001),u==n.length-4&&(A=2*m-f+.001,y=2*O-g+.001);var v=this.pointAPointBBuffer.getView(h);v[0]=d,v[1]=p,v[2]=f,v[3]=g;var b=this.pointCPointDBuffer.getView(h);b[0]=m,b[1]=O,b[2]=A,b[3]=y,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}}},{key:"_isValidEdge",value:function(e){var t=e._private.rscratch;return!t.badLine&&null!=t.allpts&&!isNaN(t.allpts[0])}},{key:"_getEdgePoints",value:function(e){var t=e._private.rscratch;if(this._isValidEdge(e)){var n=t.allpts;if(4==n.length)return n;var r=this._getNumSegments(e);return this._getCurveSegmentPoints(n,r)}}},{key:"_getNumSegments",value:function(e){return Math.min(Math.max(15,5),this.maxInstances)}},{key:"_getCurveSegmentPoints",value:function(e,t){if(4==e.length)return e;for(var n=Array(2*(t+1)),r=0;r<=t;r++)if(0==r)n[0]=e[0],n[1]=e[1];else if(r==t)n[2*r]=e[e.length-2],n[2*r+1]=e[e.length-1];else{var i=r/t;this._setCurvePoint(e,i,n,2*r)}return n}},{key:"_setCurvePoint",value:function(e,t,n,r){if(!(e.length<=2)){for(var i=Array(e.length-2),o=0;o<i.length;o+=2){var a=(1-t)*e[o]+t*e[o+2],s=(1-t)*e[o+1]+t*e[o+3];i[o]=a,i[o+1]=s}return this._setCurvePoint(i,t,n,r)}n[r]=e[0],n[r+1]=e[1]}},{key:"endBatch",value:function(){var e=this.gl,t=this.vao,n=this.vertexCount,r=this.instanceCount;if(0!==r){var i=this.renderTarget.picking?this.pickingProgram:this.program;e.useProgram(i),e.bindVertexArray(t);var o,a=g$t(this.buffers);try{for(a.s();!(o=a.n()).done;){o.value.bufferSubData(r)}}catch(p){a.e(p)}finally{a.f()}for(var s,l,c=this.batchManager.getAtlases(),u=0;u<c.length;u++)c[u].bufferIfNeeded(e);for(var h=0;h<c.length;h++)e.activeTexture(e.TEXTURE0+h),e.bindTexture(e.TEXTURE_2D,c[h].texture),e.uniform1i(i.uTextures[h],h);e.uniform1f(i.uZoom,(s=this.r,l=s.pixelRatio,s.cy.zoom()*l)),e.uniformMatrix3fv(i.uPanZoomMatrix,!1,this.panZoomMatrix),e.uniform1i(i.uAtlasSize,this.batchManager.getAtlasSize());var d=rXt(this.bgColor,1);e.uniform4fv(i.uBGColor,d),e.drawArraysInstanced(e.TRIANGLES,0,n,r),e.bindVertexArray(null),e.bindTexture(e.TEXTURE_2D,null),this.debug&&this.batchDebugInfo.push({count:r,atlasCount:c.length}),this.startBatch()}}},{key:"getDebugInfo",value:function(){var e=this.atlasManager.getDebugInfo(),t=e.reduce(function(e,t){return e+t.atlasCount},0),n=this.batchDebugInfo,r=n.reduce(function(e,t){return e+t.count},0);return{atlasInfo:e,totalAtlases:t,wrappedCount:this.wrappedCount,simpleCount:this.simpleCount,batchCount:n.length,batchInfo:n,totalInstances:r}}}])}(),kXt={};function SXt(e,t){var n=e._private.rscratch;return wCt(n,"labelWrapCachedLines",t)||[]}kXt.initWebgl=function(e,t){var n=this,r=n.data.contexts[n.WEBGL];e.bgColor=function(e){var t=e.cy.container(),n=t&&t.style&&t.style.backgroundColor||"white";return Q_t(n)}(n),e.webglTexSize=Math.min(e.webglTexSize,r.getParameter(r.MAX_TEXTURE_SIZE)),e.webglTexRows=Math.min(e.webglTexRows,54),e.webglTexRowsNodes=Math.min(e.webglTexRowsNodes,54),e.webglBatchSize=Math.min(e.webglBatchSize,16384),e.webglTexPerBatch=Math.min(e.webglTexPerBatch,r.getParameter(r.MAX_TEXTURE_IMAGE_UNITS)),n.webglDebug=e.webglDebug,n.webglDebugShowAtlases=e.webglDebugShowAtlases,n.pickingFrameBuffer=function(e){var t=e.createFramebuffer();e.bindFramebuffer(e.FRAMEBUFFER,t);var n=e.createTexture();return e.bindTexture(e.TEXTURE_2D,n),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,n,0),e.bindFramebuffer(e.FRAMEBUFFER,null),t.setFramebufferAttachmentSizes=function(t,r){e.bindTexture(e.TEXTURE_2D,n),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,t,r,0,e.RGBA,e.UNSIGNED_BYTE,null)},t}(r),n.pickingFrameBuffer.needsDraw=!0,n.drawing=new wXt(n,r,e);var i=function(e){return function(t){return n.getTextAngle(t,e)}},o=function(e){return function(t){var n=t.pstyle(e);return n&&n.value}},a=function(e){return function(t){return t.pstyle("".concat(e,"-opacity")).value>0}},s=function(e){return"yes"===e.pstyle("text-events").strValue?xXt:bXt},l=function(e){var t=e.position(),n=t.x,r=t.y,i=e.outerWidth(),o=e.outerHeight();return{w:i,h:o,x1:n-i/2,y1:r-o/2}};n.drawing.addAtlasCollection("node",{texRows:e.webglTexRowsNodes}),n.drawing.addAtlasCollection("label",{texRows:e.webglTexRows}),n.drawing.addTextureAtlasRenderType("node-body",{collection:"node",getKey:t.getStyleKey,getBoundingBox:t.getElementBox,drawElement:t.drawElement}),n.drawing.addSimpleShapeRenderType("node-body",{getBoundingBox:l,isSimple:tXt,shapeProps:{shape:"shape",color:"background-color",opacity:"background-opacity",radius:"corner-radius",border:!0}}),n.drawing.addSimpleShapeRenderType("node-overlay",{getBoundingBox:l,isVisible:a("overlay"),shapeProps:{shape:"overlay-shape",color:"overlay-color",opacity:"overlay-opacity",padding:"overlay-padding",radius:"overlay-corner-radius"}}),n.drawing.addSimpleShapeRenderType("node-underlay",{getBoundingBox:l,isVisible:a("underlay"),shapeProps:{shape:"underlay-shape",color:"underlay-color",opacity:"underlay-opacity",padding:"underlay-padding",radius:"underlay-corner-radius"}}),n.drawing.addTextureAtlasRenderType("label",{collection:"label",getTexPickingMode:s,getKey:TXt(t.getLabelKey,null),getBoundingBox:$Xt(t.getLabelBox,null),drawClipped:!0,drawElement:t.drawLabel,getRotation:i(null),getRotationPoint:t.getLabelRotationPoint,getRotationOffset:t.getLabelRotationOffset,isVisible:o("label")}),n.drawing.addTextureAtlasRenderType("edge-source-label",{collection:"label",getTexPickingMode:s,getKey:TXt(t.getSourceLabelKey,"source"),getBoundingBox:$Xt(t.getSourceLabelBox,"source"),drawClipped:!0,drawElement:t.drawSourceLabel,getRotation:i("source"),getRotationPoint:t.getSourceLabelRotationPoint,getRotationOffset:t.getSourceLabelRotationOffset,isVisible:o("source-label")}),n.drawing.addTextureAtlasRenderType("edge-target-label",{collection:"label",getTexPickingMode:s,getKey:TXt(t.getTargetLabelKey,"target"),getBoundingBox:$Xt(t.getTargetLabelBox,"target"),drawClipped:!0,drawElement:t.drawTargetLabel,getRotation:i("target"),getRotationPoint:t.getTargetLabelRotationPoint,getRotationOffset:t.getTargetLabelRotationOffset,isVisible:o("target-label")});var c=z_t(function(){n.data.gc=!0},1e4);n.onUpdateEleCalcs(function(e,t){var r=!1;t&&t.length>0&&(r|=n.drawing.invalidate(t)),r&&c()}),function(e){var t=e.render;e.render=function(n){n=n||{};var r=e.cy;e.webgl&&(r.zoom()>vNt?(!function(e){var t=e.data.contexts[e.WEBGL];t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}(e),t.call(e,n)):(!function(e){var t=function(t){t.save(),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,e.canvasWidth,e.canvasHeight),t.restore()};t(e.data.contexts[e.NODE]),t(e.data.contexts[e.DRAG])}(e),QXt(e,n,vXt.SCREEN)))};var n=e.matchCanvasSize;e.matchCanvasSize=function(t){n.call(e,t),e.pickingFrameBuffer.setFramebufferAttachmentSizes(e.canvasWidth,e.canvasHeight),e.pickingFrameBuffer.needsDraw=!0},e.findNearestElements=function(t,n,r,i){return function(e,t,n){var r,i,o,a=function(e,t,n){var r,i,o,a,s=eXt(e),l=s.pan,c=s.zoom,u=function(e,t,n,r,i){var o=r*n+t.x,a=i*n+t.y;return[o,a=Math.round(e.canvasHeight-a)]}(e,l,c,t,n),h=O$t(u,2),d=h[0],p=h[1],f=6;if(r=d-f/2,i=p-f/2,o=f,a=f,0===o||0===a)return[];var g=e.data.contexts[e.WEBGL];g.bindFramebuffer(g.FRAMEBUFFER,e.pickingFrameBuffer),e.pickingFrameBuffer.needsDraw&&(g.viewport(0,0,g.canvas.width,g.canvas.height),QXt(e,null,vXt.PICKING),e.pickingFrameBuffer.needsDraw=!1);var m=o*a,O=new Uint8Array(4*m);g.readPixels(r,i,o,a,g.RGBA,g.UNSIGNED_BYTE,O),g.bindFramebuffer(g.FRAMEBUFFER,null);for(var A=new Set,y=0;y<m;y++){var v=oXt(O.slice(4*y,4*y+4))-1;v>=0&&A.add(v)}return A}(e,t,n),s=e.getCachedZSortedEles(),l=g$t(a);try{for(l.s();!(o=l.n()).done;){var c=s[o.value];if(!r&&c.isNode()&&(r=c),!i&&c.isEdge()&&(i=c),r&&i)break}}catch(u){l.e(u)}finally{l.f()}return[r,i].filter(Boolean)}(e,t,n)};var r=e.invalidateCachedZSortedEles;e.invalidateCachedZSortedEles=function(){r.call(e),e.pickingFrameBuffer.needsDraw=!0};var i=e.notify;e.notify=function(t,n){i.call(e,t,n),"viewport"===t||"bounds"===t?e.pickingFrameBuffer.needsDraw=!0:"background"===t&&e.drawing.invalidate(n,{type:"node-body"})}}(n)};var TXt=function(e,t){return function(n){var r=e(n),i=SXt(n,t);return i.length>1?i.map(function(e,t){return"".concat(r,"_").concat(t)}):r}},$Xt=function(e,t){return function(n,r){var i=e(n);if("string"==typeof r){var o=r.indexOf("_");if(o>0){var a=Number(r.substring(o+1)),s=SXt(n,t),l=i.h/s.length,c=l*a,u=i.y1+c;return{x1:i.x1,w:i.w,y1:u,h:l,yOffset:c}}}return i}};function _Xt(e,t){var n=e.canvasWidth,r=e.canvasHeight,i=eXt(e),o=i.pan,a=i.zoom;t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,n,r),t.translate(o.x,o.y),t.scale(a,a)}function CXt(e,t,n){var r=e.drawing;t+=1,n.isNode()?(r.drawNode(n,t,"node-underlay"),r.drawNode(n,t,"node-body"),r.drawTexture(n,t,"label"),r.drawNode(n,t,"node-overlay")):(r.drawEdgeLine(n,t),r.drawEdgeArrow(n,t,"source"),r.drawEdgeArrow(n,t,"target"),r.drawTexture(n,t,"label"),r.drawTexture(n,t,"edge-source-label"),r.drawTexture(n,t,"edge-target-label"))}function QXt(e,t,n){var r;e.webglDebug&&(r=performance.now());var i=e.drawing,o=0;if(n.screen&&e.data.canvasNeedsRedraw[e.SELECT_BOX]&&function(e,t){e.drawSelectionRectangle(t,function(t){return _Xt(e,t)})}(e,t),e.data.canvasNeedsRedraw[e.NODE]||n.picking){var a=e.data.contexts[e.WEBGL];n.screen?(a.clearColor(0,0,0,0),a.enable(a.BLEND),a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA)):a.disable(a.BLEND),a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT),a.viewport(0,0,a.canvas.width,a.canvas.height);var s=function(e){var t=e.canvasWidth,n=e.canvasHeight,r=eXt(e),i=r.pan,o=r.zoom,a=hXt();pXt(a,a,[i.x,i.y]),gXt(a,a,[o,o]);var s=hXt();!function(e,t,n){e[0]=2/t,e[1]=0,e[2]=0,e[3]=0,e[4]=-2/n,e[5]=0,e[6]=-1,e[7]=1,e[8]=1}(s,t,n);var l,c,u,h,d,p,f,g,m,O,A,y,v,b,x,w,k,S,T,$,_,C=hXt();return l=C,u=a,h=(c=s)[0],d=c[1],p=c[2],f=c[3],g=c[4],m=c[5],O=c[6],A=c[7],y=c[8],v=u[0],b=u[1],x=u[2],w=u[3],k=u[4],S=u[5],T=u[6],$=u[7],_=u[8],l[0]=v*h+b*f+x*O,l[1]=v*d+b*g+x*A,l[2]=v*p+b*m+x*y,l[3]=w*h+k*f+S*O,l[4]=w*d+k*g+S*A,l[5]=w*p+k*m+S*y,l[6]=T*h+$*f+_*O,l[7]=T*d+$*g+_*A,l[8]=T*p+$*m+_*y,C}(e),l=e.getCachedZSortedEles();if(o=l.length,i.startFrame(s,n),n.screen){for(var c=0;c<l.nondrag.length;c++)CXt(e,c,l.nondrag[c]);for(var u=0;u<l.drag.length;u++)CXt(e,u,l.drag[u])}else if(n.picking)for(var h=0;h<l.length;h++)CXt(e,h,l[h]);i.endFrame(),n.screen&&e.webglDebugShowAtlases&&(function(e){var t=e.data.contexts[e.NODE];t.save(),_Xt(e,t),t.strokeStyle="rgba(0, 0, 0, 0.3)",t.beginPath(),t.moveTo(-1e3,0),t.lineTo(1e3,0),t.stroke(),t.beginPath(),t.moveTo(0,-1e3),t.lineTo(0,1e3),t.stroke(),t.restore()}(e),function(e){var t=function(t,n,r){for(var i=t.atlasManager.getAtlasCollection(n),o=e.data.contexts[e.NODE],a=i.atlases,s=0;s<a.length;s++){var l=a[s].canvas;if(l){var c=l.width,u=l.height,h=c*s,d=l.height*r;o.save(),o.scale(.4,.4),o.drawImage(l,h,d),o.strokeStyle="black",o.rect(h,d,c,u),o.stroke(),o.restore()}}},n=0;t(e.drawing,"node",n++),t(e.drawing,"label",n++)}(e)),e.data.canvasNeedsRedraw[e.NODE]=!1,e.data.canvasNeedsRedraw[e.DRAG]=!1}if(e.webglDebug){var d,p=performance.now(),f=(Math.ceil(p-r),i.getDebugInfo()),g=(["".concat(o," elements"),"".concat(f.totalInstances," instances"),"".concat(f.batchCount," batches"),"".concat(f.totalAtlases," atlases"),"".concat(f.wrappedCount," wrapped textures"),"".concat(f.simpleCount," simple shapes")].join(", "),g$t(f.atlasInfo));try{for(g.s();!(d=g.n()).done;)d.value}catch(m){g.e(m)}finally{g.f()}}e.data.gc&&(e.data.gc=!1,i.gc())}for(var PXt={drawPolygonPath:function(e,t,n,r,i,o){var a=r/2,s=i/2;e.beginPath&&e.beginPath(),e.moveTo(t+a*o[0],n+s*o[1]);for(var l=1;l<o.length/2;l++)e.lineTo(t+a*o[2*l],n+s*o[2*l+1]);e.closePath()},drawRoundPolygonPath:function(e,t,n,r,i,o,a){a.forEach(function(t){return WMt(e,t)}),e.closePath()},drawRoundRectanglePath:function(e,t,n,r,i,o){var a=r/2,s=i/2,l="auto"===o?UQt(r,i):Math.min(o,s,a);e.beginPath&&e.beginPath(),e.moveTo(t,n-s),e.arcTo(t+a,n-s,t+a,n,l),e.arcTo(t+a,n+s,t,n+s,l),e.arcTo(t-a,n+s,t-a,n,l),e.arcTo(t-a,n-s,t,n-s,l),e.lineTo(t,n-s),e.closePath()},drawBottomRoundRectanglePath:function(e,t,n,r,i,o){var a=r/2,s=i/2,l="auto"===o?UQt(r,i):o;e.beginPath&&e.beginPath(),e.moveTo(t,n-s),e.lineTo(t+a,n-s),e.lineTo(t+a,n),e.arcTo(t+a,n+s,t,n+s,l),e.arcTo(t-a,n+s,t-a,n,l),e.lineTo(t-a,n-s),e.lineTo(t,n-s),e.closePath()},drawCutRectanglePath:function(e,t,n,r,i,o,a){var s=r/2,l=i/2,c="auto"===a?8:a;e.beginPath&&e.beginPath(),e.moveTo(t-s+c,n-l),e.lineTo(t+s-c,n-l),e.lineTo(t+s,n-l+c),e.lineTo(t+s,n+l-c),e.lineTo(t+s-c,n+l),e.lineTo(t-s+c,n+l),e.lineTo(t-s,n+l-c),e.lineTo(t-s,n-l+c),e.closePath()},drawBarrelPath:function(e,t,n,r,i){var o=r/2,a=i/2,s=t-o,l=t+o,c=n-a,u=n+a,h=qQt(r,i),d=h.widthOffset,p=h.heightOffset,f=h.ctrlPtOffsetPct*d;e.beginPath&&e.beginPath(),e.moveTo(s,c+p),e.lineTo(s,u-p),e.quadraticCurveTo(s+f,u,s+d,u),e.lineTo(l-d,u),e.quadraticCurveTo(l-f,u,l,u-p),e.lineTo(l,c+p),e.quadraticCurveTo(l-f,c,l-d,c),e.lineTo(s+d,c),e.quadraticCurveTo(s+f,c,s,c+p),e.closePath()}},EXt=Math.sin(0),RXt=Math.cos(0),BXt={},IXt={},LXt=Math.PI/40,DXt=0*Math.PI;DXt<2*Math.PI;DXt+=LXt)BXt[DXt]=Math.sin(DXt),IXt[DXt]=Math.cos(DXt);PXt.drawEllipsePath=function(e,t,n,r,i){if(e.beginPath&&e.beginPath(),e.ellipse)e.ellipse(t,n,r/2,i/2,0,0,2*Math.PI);else for(var o,a,s=r/2,l=i/2,c=0*Math.PI;c<2*Math.PI;c+=LXt)o=t-s*BXt[c]*EXt+s*IXt[c]*RXt,a=n+l*IXt[c]*EXt+l*BXt[c]*RXt,0===c?e.moveTo(o,a):e.lineTo(o,a);e.closePath()};var MXt={};function NXt(e){var t=e.indexOf(",");return e.substr(t+1)}function XXt(e,t,n){var r=function(){return t.toDataURL(n,e.quality)};switch(e.output){case"blob-promise":return new oEt(function(r,i){try{t.toBlob(function(e){null!=e?r(e):i(new Error("`canvas.toBlob()` sent a null value in its callback"))},n,e.quality)}catch(o){i(o)}});case"blob":return function(e,t){for(var n=atob(e),r=new ArrayBuffer(n.length),i=new Uint8Array(r),o=0;o<n.length;o++)i[o]=n.charCodeAt(o);return new Blob([r],{type:t})}(NXt(r()),n);case"base64":return NXt(r());default:return r()}}MXt.createBuffer=function(e,t){var n=document.createElement("canvas");return n.width=e,n.height=t,[n,n.getContext("2d")]},MXt.bufferCanvasImage=function(e){var t=this.cy,n=t.mutableElements().boundingBox(),r=this.findContainerClientCoords(),i=e.full?Math.ceil(n.w):r[2],o=e.full?Math.ceil(n.h):r[3],a=s_t(e.maxWidth)||s_t(e.maxHeight),s=this.getPixelRatio(),l=1;if(void 0!==e.scale)i*=e.scale,o*=e.scale,l=e.scale;else if(a){var c=1/0,u=1/0;s_t(e.maxWidth)&&(c=l*e.maxWidth/i),s_t(e.maxHeight)&&(u=l*e.maxHeight/o),i*=l=Math.min(c,u),o*=l}a||(i*=s,o*=s,l*=s);var h=document.createElement("canvas");h.width=i,h.height=o,h.style.width=i+"px",h.style.height=o+"px";var d=h.getContext("2d");if(i>0&&o>0){d.clearRect(0,0,i,o),d.globalCompositeOperation="source-over";var p=this.getCachedZSortedEles();if(e.full)d.translate(-n.x1*l,-n.y1*l),d.scale(l,l),this.drawElements(d,p),d.scale(1/l,1/l),d.translate(n.x1*l,n.y1*l);else{var f=t.pan(),g={x:f.x*l,y:f.y*l};l*=t.zoom(),d.translate(g.x,g.y),d.scale(l,l),this.drawElements(d,p),d.scale(1/l,1/l),d.translate(-g.x,-g.y)}e.bg&&(d.globalCompositeOperation="destination-over",d.fillStyle=e.bg,d.rect(0,0,i,o),d.fill())}return h},MXt.png=function(e){return XXt(e,this.bufferCanvasImage(e),"image/png")},MXt.jpg=function(e){return XXt(e,this.bufferCanvasImage(e),"image/jpeg")};var FXt={nodeShapeImpl:function(e,t,n,r,i,o,a,s){switch(e){case"ellipse":return this.drawEllipsePath(t,n,r,i,o);case"polygon":return this.drawPolygonPath(t,n,r,i,o,a);case"round-polygon":return this.drawRoundPolygonPath(t,n,r,i,o,a,s);case"roundrectangle":case"round-rectangle":return this.drawRoundRectanglePath(t,n,r,i,o,s);case"cutrectangle":case"cut-rectangle":return this.drawCutRectanglePath(t,n,r,i,o,a,s);case"bottomroundrectangle":case"bottom-round-rectangle":return this.drawBottomRoundRectanglePath(t,n,r,i,o,s);case"barrel":return this.drawBarrelPath(t,n,r,i,o)}}},UXt=qXt,zXt=qXt.prototype;function qXt(e){var t=this,n=t.cy.window().document;e.webgl&&(zXt.CANVAS_LAYERS=t.CANVAS_LAYERS=4),t.data={canvases:new Array(zXt.CANVAS_LAYERS),contexts:new Array(zXt.CANVAS_LAYERS),canvasNeedsRedraw:new Array(zXt.CANVAS_LAYERS),bufferCanvases:new Array(zXt.BUFFER_COUNT),bufferContexts:new Array(zXt.CANVAS_LAYERS)};var r="-webkit-tap-highlight-color",i="rgba(0,0,0,0)";t.data.canvasContainer=n.createElement("div");var o=t.data.canvasContainer.style;t.data.canvasContainer.style[r]=i,o.position="relative",o.zIndex="0",o.overflow="hidden";var a=e.cy.container();a.appendChild(t.data.canvasContainer),a.style[r]=i;var s={"-webkit-user-select":"none","-moz-user-select":"-moz-none","user-select":"none","-webkit-tap-highlight-color":"rgba(0,0,0,0)","outline-style":"none"};w$t&&w$t.userAgent.match(/msie|trident|edge/i)&&(s["-ms-touch-action"]="none",s["touch-action"]="none");for(var l=0;l<zXt.CANVAS_LAYERS;l++){var c=t.data.canvases[l]=n.createElement("canvas"),u=zXt.CANVAS_TYPES[l];t.data.contexts[l]=c.getContext(u),t.data.contexts[l]||pCt("Could not create canvas of type "+u),Object.keys(s).forEach(function(e){c.style[e]=s[e]}),c.style.position="absolute",c.setAttribute("data-id","layer"+l),c.style.zIndex=String(zXt.CANVAS_LAYERS-l),t.data.canvasContainer.appendChild(c),t.data.canvasNeedsRedraw[l]=!1}t.data.topCanvas=t.data.canvases[0],t.data.canvases[zXt.NODE].setAttribute("data-id","layer"+zXt.NODE+"-node"),t.data.canvases[zXt.SELECT_BOX].setAttribute("data-id","layer"+zXt.SELECT_BOX+"-selectbox"),t.data.canvases[zXt.DRAG].setAttribute("data-id","layer"+zXt.DRAG+"-drag"),t.data.canvases[zXt.WEBGL]&&t.data.canvases[zXt.WEBGL].setAttribute("data-id","layer"+zXt.WEBGL+"-webgl");for(l=0;l<zXt.BUFFER_COUNT;l++)t.data.bufferCanvases[l]=n.createElement("canvas"),t.data.bufferContexts[l]=t.data.bufferCanvases[l].getContext("2d"),t.data.bufferCanvases[l].style.position="absolute",t.data.bufferCanvases[l].setAttribute("data-id","buffer"+l),t.data.bufferCanvases[l].style.zIndex=String(-l-1),t.data.bufferCanvases[l].style.visibility="hidden";t.pathsEnabled=!0;var h=hQt(),d=function(e){return{x:-e.w/2,y:-e.h/2}},p=function(e){return e[0]._private.nodeKey},f=function(e){return e[0]._private.labelStyleKey},g=function(e){return e[0]._private.sourceLabelStyleKey},m=function(e){return e[0]._private.targetLabelStyleKey},O=function(e,n,r,i,o){return t.drawElement(e,n,r,!1,!1,o)},A=function(e,n,r,i,o){return t.drawElementText(e,n,r,i,"main",o)},y=function(e,n,r,i,o){return t.drawElementText(e,n,r,i,"source",o)},v=function(e,n,r,i,o){return t.drawElementText(e,n,r,i,"target",o)},b=function(e){return e.boundingBox(),e[0]._private.bodyBounds},x=function(e){return e.boundingBox(),e[0]._private.labelBounds.main||h},w=function(e){return e.boundingBox(),e[0]._private.labelBounds.source||h},k=function(e){return e.boundingBox(),e[0]._private.labelBounds.target||h},S=function(e,t){return t},T=function(e){return{x:((t=b(e)).x1+t.x2)/2,y:(t.y1+t.y2)/2};var t},$=function(e,t,n){var r=e?e+"-":"";return{x:t.x+n.pstyle(r+"text-margin-x").pfValue,y:t.y+n.pstyle(r+"text-margin-y").pfValue}},_=function(e,t,n){var r=e[0]._private.rscratch;return{x:r[t],y:r[n]}},C=function(e){return $("",_(e,"labelX","labelY"),e)},Q=function(e){return $("source",_(e,"sourceLabelX","sourceLabelY"),e)},P=function(e){return $("target",_(e,"targetLabelX","targetLabelY"),e)},E=function(e){return d(b(e))},R=function(e){return d(w(e))},B=function(e){return d(k(e))},I=function(e){var t=x(e),n=d(x(e));if(e.isNode()){switch(RIt(e.pstyle("text-halign").value)){case"left":n.x=-t.w-(t.leftPad||0);break;case"right":n.x=-(t.rightPad||0)}switch(BIt(e.pstyle("text-valign").value)){case"top":n.y=-t.h-(t.topPad||0);break;case"bottom":n.y=-(t.botPad||0)}}return n},L=t.data.eleTxrCache=new wNt(t,{getKey:p,doesEleInvalidateKey:function(e){var t=e[0]._private;return!(t.oldBackgroundTimestamp===t.backgroundTimestamp)},drawElement:O,getBoundingBox:b,getRotationPoint:T,getRotationOffset:E,allowEdgeTxrCaching:!1,allowParentTxrCaching:!1}),D=t.data.lblTxrCache=new wNt(t,{getKey:f,drawElement:A,getBoundingBox:x,getRotationPoint:C,getRotationOffset:I,isVisible:S}),M=t.data.slbTxrCache=new wNt(t,{getKey:g,drawElement:y,getBoundingBox:w,getRotationPoint:Q,getRotationOffset:R,isVisible:S}),N=t.data.tlbTxrCache=new wNt(t,{getKey:m,drawElement:v,getBoundingBox:k,getRotationPoint:P,getRotationOffset:B,isVisible:S}),X=t.data.lyrTxrCache=new SNt(t);t.onUpdateEleCalcs(function(e,t){L.invalidateElements(t),D.invalidateElements(t),M.invalidateElements(t),N.invalidateElements(t),X.invalidateElements(t);for(var n=0;n<t.length;n++){var r=t[n]._private;r.oldBackgroundTimestamp=r.backgroundTimestamp}});var F=function(e){for(var t=0;t<e.length;t++)X.enqueueElementRefinement(e[t].ele)};L.onDequeue(F),D.onDequeue(F),M.onDequeue(F),N.onDequeue(F),e.webgl&&t.initWebgl(e,{getStyleKey:p,getLabelKey:f,getSourceLabelKey:g,getTargetLabelKey:m,drawElement:O,drawLabel:A,drawSourceLabel:y,drawTargetLabel:v,getElementBox:b,getLabelBox:x,getSourceLabelBox:w,getTargetLabelBox:k,getElementRotationPoint:T,getElementRotationOffset:E,getLabelRotationPoint:C,getSourceLabelRotationPoint:Q,getTargetLabelRotationPoint:P,getLabelRotationOffset:I,getSourceLabelRotationOffset:R,getTargetLabelRotationOffset:B})}zXt.CANVAS_LAYERS=3,zXt.SELECT_BOX=0,zXt.DRAG=1,zXt.NODE=2,zXt.WEBGL=3,zXt.CANVAS_TYPES=["2d","2d","2d","webgl2"],zXt.BUFFER_COUNT=3,zXt.TEXTURE_BUFFER=0,zXt.MOTIONBLUR_BUFFER_NODE=1,zXt.MOTIONBLUR_BUFFER_DRAG=2,zXt.redrawHint=function(e,t){var n=this;switch(e){case"eles":n.data.canvasNeedsRedraw[zXt.NODE]=t;break;case"drag":n.data.canvasNeedsRedraw[zXt.DRAG]=t;break;case"select":n.data.canvasNeedsRedraw[zXt.SELECT_BOX]=t;break;case"gc":n.data.gc=!0}};var VXt="undefined"!=typeof Path2D;zXt.path2dEnabled=function(e){if(void 0===e)return this.pathsEnabled;this.pathsEnabled=!!e},zXt.usePaths=function(){return VXt&&this.pathsEnabled},zXt.setImgSmoothing=function(e,t){null!=e.imageSmoothingEnabled?e.imageSmoothingEnabled=t:(e.webkitImageSmoothingEnabled=t,e.mozImageSmoothingEnabled=t,e.msImageSmoothingEnabled=t)},zXt.getImgSmoothing=function(e){return null!=e.imageSmoothingEnabled?e.imageSmoothingEnabled:e.webkitImageSmoothingEnabled||e.mozImageSmoothingEnabled||e.msImageSmoothingEnabled},zXt.makeOffscreenCanvas=function(e,t){var n;"undefined"!==("undefined"==typeof OffscreenCanvas?"undefined":v$t(OffscreenCanvas))?n=new OffscreenCanvas(e,t):((n=this.cy.window().document.createElement("canvas")).width=e,n.height=t);return n},[QNt,LNt,zNt,VNt,WNt,YNt,HNt,kXt,PXt,MXt,FXt].forEach(function(e){C_t(zXt,e)});var WXt=[{type:"layout",extensions:AMt},{type:"renderer",extensions:[{name:"null",impl:yMt},{name:"base",impl:gNt},{name:"canvas",impl:UXt}]}],jXt={},YXt={};function ZXt(e,t,n){var r=n,i=function(e){gCt()};if("core"===e){if(PDt.prototype[t])return i();PDt.prototype[t]=n}else if("collection"===e){if(jLt.prototype[t])return i();jLt.prototype[t]=n}else if("layout"===e){for(var o=function(e){this.options=e,n.call(this,e),a_t(this._private)||(this._private={}),this._private.cy=e.cy,this._private.listeners=[],this.createEmitter()},a=o.prototype=Object.create(n.prototype),s=[],l=0;l<s.length;l++){var c=s[l];a[c]=a[c]||function(){return this}}a.start&&!a.run?a.run=function(){return this.start(),this}:!a.start&&a.run&&(a.start=function(){return this.run(),this});var u=n.prototype.stop;a.stop=function(){var e=this.options;if(e&&e.animate){var t=this.animations;if(t)for(var n=0;n<t.length;n++)t[n].stop()}return u?u.call(this):this.emit("layoutstop"),this},a.destroy||(a.destroy=function(){return this}),a.cy=function(){return this._private.cy};var h=function(e){return e._private.cy},d={addEventFields:function(e,t){t.layout=e,t.cy=h(e),t.target=e},bubble:function(){return!0},parent:function(e){return h(e)}};C_t(a,{createEmitter:function(){return this._private.emitter=new hLt(d,this),this},emitter:function(){return this._private.emitter},on:function(e,t){return this.emitter().on(e,t),this},one:function(e,t){return this.emitter().one(e,t),this},once:function(e,t){return this.emitter().one(e,t),this},removeListener:function(e,t){return this.emitter().removeListener(e,t),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},emit:function(e,t){return this.emitter().emit(e,t),this}}),_Bt.eventAliasesOn(a),r=o}else if("renderer"===e&&"null"!==t&&"base"!==t){var p=GXt("renderer","base"),f=p.prototype,g=n,m=n.prototype,O=function(){p.apply(this,arguments),g.apply(this,arguments)},A=O.prototype;for(var y in f){var v=f[y];if(null!=m[y])return i();A[y]=v}for(var b in m)A[b]=m[b];f.clientFunctions.forEach(function(e){A[e]=A[e]||function(){pCt("Renderer does not implement `renderer."+e+"()` on its prototype")}}),r=O}else if("__proto__"===e||"constructor"===e||"prototype"===e)return pCt(e+" is an illegal type to be registered, possibly lead to prototype pollutions");return E_t({map:jXt,keys:[e,t],value:r})}function GXt(e,t){return R_t({map:jXt,keys:[e,t]})}function HXt(e,t,n,r,i){return E_t({map:YXt,keys:[e,t,n,r],value:i})}function KXt(e,t,n,r){return R_t({map:YXt,keys:[e,t,n,r]})}var JXt=function(){return 2===arguments.length?GXt.apply(null,arguments):3===arguments.length?ZXt.apply(null,arguments):4===arguments.length?KXt.apply(null,arguments):5===arguments.length?HXt.apply(null,arguments):void pCt("Invalid extension access syntax")};PDt.prototype.extension=JXt,WXt.forEach(function(e){e.extensions.forEach(function(t){ZXt(e.type,t.name,t.impl)})});var eFt=function(){if(!(this instanceof eFt))return new eFt;this.length=0},tFt=eFt.prototype;tFt.instanceString=function(){return"stylesheet"},tFt.selector=function(e){return this[this.length++]={selector:e,properties:[]},this},tFt.css=function(e,t){var n=this.length-1;if(r_t(e))this[n].properties.push({name:e,value:t});else if(a_t(e))for(var r=e,i=Object.keys(r),o=0;o<i.length;o++){var a=i[o],s=r[a];if(null!=s){var l=TDt.properties[a]||TDt.properties[y_t(a)];if(null!=l){var c=l.name,u=s;this[n].properties.push({name:c,value:u})}}}return this},tFt.style=tFt.css,tFt.generateStyle=function(e){var t=new TDt(e);return this.appendToStyle(t)},tFt.appendToStyle=function(e){for(var t=0;t<this.length;t++){var n=this[t],r=n.selector,i=n.properties;e.selector(r);for(var o=0;o<i.length;o++){var a=i[o];e.css(a.name,a.value)}}return e};var nFt=function(e){return void 0===e&&(e={}),a_t(e)?new PDt(e):r_t(e)?JXt.apply(JXt,arguments):void 0};nFt.use=function(e){var t=Array.prototype.slice.call(arguments,1);return t.unshift(nFt),e.apply(null,t),this},nFt.warnings=function(e){return fCt(e)},nFt.version="3.34.3",nFt.stylesheet=nFt.Stylesheet=eFt;var rFt,iFt={exports:{}},oFt={exports:{}},aFt={exports:{}};function sFt(){return rFt||(rFt=1,function(e){!function(t,n){e.exports=n()}(0,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=26)}([function(e,t,n){function r(){}r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,e.exports=r},function(e,t,n){var r=n(2),i=n(8),o=n(9);function a(e,t,n){r.call(this,n),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=n,this.bendpoints=[],this.source=e,this.target=t}for(var s in a.prototype=Object.create(r.prototype),r)a[s]=r[s];a.prototype.getSource=function(){return this.source},a.prototype.getTarget=function(){return this.target},a.prototype.isInterGraph=function(){return this.isInterGraph},a.prototype.getLength=function(){return this.length},a.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},a.prototype.getBendpoints=function(){return this.bendpoints},a.prototype.getLca=function(){return this.lca},a.prototype.getSourceInLca=function(){return this.sourceInLca},a.prototype.getTargetInLca=function(){return this.targetInLca},a.prototype.getOtherEnd=function(e){if(this.source===e)return this.target;if(this.target===e)return this.source;throw"Node is not incident with this edge"},a.prototype.getOtherEndInGraph=function(e,t){for(var n=this.getOtherEnd(e),r=t.getGraphManager().getRoot();;){if(n.getOwner()==t)return n;if(n.getOwner()==r)break;n=n.getOwner().getParent()}return null},a.prototype.updateLength=function(){var e=new Array(4);this.isOverlapingSourceAndTarget=i.getIntersection(this.target.getRect(),this.source.getRect(),e),this.isOverlapingSourceAndTarget||(this.lengthX=e[0]-e[2],this.lengthY=e[1]-e[3],Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},a.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},e.exports=a},function(e,t,n){e.exports=function(e){this.vGraphObject=e}},function(e,t,n){var r=n(2),i=n(10),o=n(13),a=n(0),s=n(16),l=n(4);function c(e,t,n,a){null==n&&null==a&&(a=t),r.call(this,a),null!=e.graphManager&&(e=e.graphManager),this.estimatedSize=i.MIN_VALUE,this.inclusionTreeDepth=i.MAX_VALUE,this.vGraphObject=a,this.edges=[],this.graphManager=e,this.rect=null!=n&&null!=t?new o(t.x,t.y,n.width,n.height):new o}for(var u in c.prototype=Object.create(r.prototype),r)c[u]=r[u];c.prototype.getEdges=function(){return this.edges},c.prototype.getChild=function(){return this.child},c.prototype.getOwner=function(){return this.owner},c.prototype.getWidth=function(){return this.rect.width},c.prototype.setWidth=function(e){this.rect.width=e},c.prototype.getHeight=function(){return this.rect.height},c.prototype.setHeight=function(e){this.rect.height=e},c.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},c.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},c.prototype.getCenter=function(){return new l(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},c.prototype.getLocation=function(){return new l(this.rect.x,this.rect.y)},c.prototype.getRect=function(){return this.rect},c.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},c.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},c.prototype.setRect=function(e,t){this.rect.x=e.x,this.rect.y=e.y,this.rect.width=t.width,this.rect.height=t.height},c.prototype.setCenter=function(e,t){this.rect.x=e-this.rect.width/2,this.rect.y=t-this.rect.height/2},c.prototype.setLocation=function(e,t){this.rect.x=e,this.rect.y=t},c.prototype.moveBy=function(e,t){this.rect.x+=e,this.rect.y+=t},c.prototype.getEdgeListToNode=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.target==e){if(r.source!=n)throw"Incorrect edge source!";t.push(r)}}),t},c.prototype.getEdgesBetween=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.source!=n&&r.target!=n)throw"Incorrect edge source and/or target";r.target!=e&&r.source!=e||t.push(r)}),t},c.prototype.getNeighborsList=function(){var e=new Set,t=this;return t.edges.forEach(function(n){if(n.source==t)e.add(n.target);else{if(n.target!=t)throw"Incorrect incidency!";e.add(n.source)}}),e},c.prototype.withChildren=function(){var e=new Set;if(e.add(this),null!=this.child)for(var t=this.child.getNodes(),n=0;n<t.length;n++)t[n].withChildren().forEach(function(t){e.add(t)});return e},c.prototype.getNoOfChildren=function(){var e=0;if(null==this.child)e=1;else for(var t=this.child.getNodes(),n=0;n<t.length;n++)e+=t[n].getNoOfChildren();return 0==e&&(e=1),e},c.prototype.getEstimatedSize=function(){if(this.estimatedSize==i.MIN_VALUE)throw"assert failed";return this.estimatedSize},c.prototype.calcEstimatedSize=function(){return null==this.child?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},c.prototype.scatter=function(){var e,t,n=-a.INITIAL_WORLD_BOUNDARY,r=a.INITIAL_WORLD_BOUNDARY;e=a.WORLD_CENTER_X+s.nextDouble()*(r-n)+n;var i=-a.INITIAL_WORLD_BOUNDARY,o=a.INITIAL_WORLD_BOUNDARY;t=a.WORLD_CENTER_Y+s.nextDouble()*(o-i)+i,this.rect.x=e,this.rect.y=t},c.prototype.updateBounds=function(){if(null==this.getChild())throw"assert failed";if(0!=this.getChild().getNodes().length){var e=this.getChild();if(e.updateBounds(!0),this.rect.x=e.getLeft(),this.rect.y=e.getTop(),this.setWidth(e.getRight()-e.getLeft()),this.setHeight(e.getBottom()-e.getTop()),a.NODE_DIMENSIONS_INCLUDE_LABELS){var t=e.getRight()-e.getLeft(),n=e.getBottom()-e.getTop();this.labelWidth>t&&(this.rect.x-=(this.labelWidth-t)/2,this.setWidth(this.labelWidth)),this.labelHeight>n&&("center"==this.labelPos?this.rect.y-=(this.labelHeight-n)/2:"top"==this.labelPos&&(this.rect.y-=this.labelHeight-n),this.setHeight(this.labelHeight))}}},c.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==i.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},c.prototype.transform=function(e){var t=this.rect.x;t>a.WORLD_BOUNDARY?t=a.WORLD_BOUNDARY:t<-a.WORLD_BOUNDARY&&(t=-a.WORLD_BOUNDARY);var n=this.rect.y;n>a.WORLD_BOUNDARY?n=a.WORLD_BOUNDARY:n<-a.WORLD_BOUNDARY&&(n=-a.WORLD_BOUNDARY);var r=new l(t,n),i=e.inverseTransformPoint(r);this.setLocation(i.x,i.y)},c.prototype.getLeft=function(){return this.rect.x},c.prototype.getRight=function(){return this.rect.x+this.rect.width},c.prototype.getTop=function(){return this.rect.y},c.prototype.getBottom=function(){return this.rect.y+this.rect.height},c.prototype.getParent=function(){return null==this.owner?null:this.owner.getParent()},e.exports=c},function(e,t,n){function r(e,t){null==e&&null==t?(this.x=0,this.y=0):(this.x=e,this.y=t)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(e){this.x=e},r.prototype.setY=function(e){this.y=e},r.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},e.exports=r},function(e,t,n){var r=n(2),i=n(10),o=n(0),a=n(6),s=n(3),l=n(1),c=n(13),u=n(12),h=n(11);function d(e,t,n){r.call(this,n),this.estimatedSize=i.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=e,null!=t&&t instanceof a?this.graphManager=t:null!=t&&t instanceof Layout&&(this.graphManager=t.graphManager)}for(var p in d.prototype=Object.create(r.prototype),r)d[p]=r[p];d.prototype.getNodes=function(){return this.nodes},d.prototype.getEdges=function(){return this.edges},d.prototype.getGraphManager=function(){return this.graphManager},d.prototype.getParent=function(){return this.parent},d.prototype.getLeft=function(){return this.left},d.prototype.getRight=function(){return this.right},d.prototype.getTop=function(){return this.top},d.prototype.getBottom=function(){return this.bottom},d.prototype.isConnected=function(){return this.isConnected},d.prototype.add=function(e,t,n){if(null==t&&null==n){var r=e;if(null==this.graphManager)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(r)>-1)throw"Node already in graph!";return r.owner=this,this.getNodes().push(r),r}var i=e;if(!(this.getNodes().indexOf(t)>-1&&this.getNodes().indexOf(n)>-1))throw"Source or target not in graph!";if(t.owner!=n.owner||t.owner!=this)throw"Both owners must be this graph!";return t.owner!=n.owner?null:(i.source=t,i.target=n,i.isInterGraph=!1,this.getEdges().push(i),t.edges.push(i),n!=t&&n.edges.push(i),i)},d.prototype.remove=function(e){var t=e;if(e instanceof s){if(null==t)throw"Node is null!";if(null==t.owner||t.owner!=this)throw"Owner graph is invalid!";if(null==this.graphManager)throw"Owner graph manager is invalid!";for(var n=t.edges.slice(),r=n.length,i=0;i<r;i++)(o=n[i]).isInterGraph?this.graphManager.remove(o):o.source.owner.remove(o);if(-1==(a=this.nodes.indexOf(t)))throw"Node not in owner node list!";this.nodes.splice(a,1)}else if(e instanceof l){var o;if(null==(o=e))throw"Edge is null!";if(null==o.source||null==o.target)throw"Source and/or target is null!";if(null==o.source.owner||null==o.target.owner||o.source.owner!=this||o.target.owner!=this)throw"Source and/or target owner is invalid!";var a,c=o.source.edges.indexOf(o),u=o.target.edges.indexOf(o);if(!(c>-1&&u>-1))throw"Source and/or target doesn't know this edge!";if(o.source.edges.splice(c,1),o.target!=o.source&&o.target.edges.splice(u,1),-1==(a=o.source.owner.getEdges().indexOf(o)))throw"Not in owner's edge list!";o.source.owner.getEdges().splice(a,1)}},d.prototype.updateLeftTop=function(){for(var e,t,n,r=i.MAX_VALUE,o=i.MAX_VALUE,a=this.getNodes(),s=a.length,l=0;l<s;l++){var c=a[l];r>(e=c.getTop())&&(r=e),o>(t=c.getLeft())&&(o=t)}return r==i.MAX_VALUE?null:(n=null!=a[0].getParent().paddingLeft?a[0].getParent().paddingLeft:this.margin,this.left=o-n,this.top=r-n,new u(this.left,this.top))},d.prototype.updateBounds=function(e){for(var t,n,r,o,a,s=i.MAX_VALUE,l=-i.MAX_VALUE,u=i.MAX_VALUE,h=-i.MAX_VALUE,d=this.nodes,p=d.length,f=0;f<p;f++){var g=d[f];e&&null!=g.child&&g.updateBounds(),s>(t=g.getLeft())&&(s=t),l<(n=g.getRight())&&(l=n),u>(r=g.getTop())&&(u=r),h<(o=g.getBottom())&&(h=o)}var m=new c(s,u,l-s,h-u);s==i.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),a=null!=d[0].getParent().paddingLeft?d[0].getParent().paddingLeft:this.margin,this.left=m.x-a,this.right=m.x+m.width+a,this.top=m.y-a,this.bottom=m.y+m.height+a},d.calculateBounds=function(e){for(var t,n,r,o,a=i.MAX_VALUE,s=-i.MAX_VALUE,l=i.MAX_VALUE,u=-i.MAX_VALUE,h=e.length,d=0;d<h;d++){var p=e[d];a>(t=p.getLeft())&&(a=t),s<(n=p.getRight())&&(s=n),l>(r=p.getTop())&&(l=r),u<(o=p.getBottom())&&(u=o)}return new c(a,l,s-a,u-l)},d.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},d.prototype.getEstimatedSize=function(){if(this.estimatedSize==i.MIN_VALUE)throw"assert failed";return this.estimatedSize},d.prototype.calcEstimatedSize=function(){for(var e=0,t=this.nodes,n=t.length,r=0;r<n;r++){e+=t[r].calcEstimatedSize()}return this.estimatedSize=0==e?o.EMPTY_COMPOUND_NODE_SIZE:e/Math.sqrt(this.nodes.length),this.estimatedSize},d.prototype.updateConnected=function(){var e=this;if(0!=this.nodes.length){var t,n,r=new h,i=new Set,o=this.nodes[0];for(o.withChildren().forEach(function(e){r.push(e),i.add(e)});0!==r.length;)for(var a=(t=(o=r.shift()).getEdges()).length,s=0;s<a;s++){if(null!=(n=t[s].getOtherEndInGraph(o,this))&&!i.has(n))n.withChildren().forEach(function(e){r.push(e),i.add(e)})}if(this.isConnected=!1,i.size>=this.nodes.length){var l=0;i.forEach(function(t){t.owner==e&&l++}),l==this.nodes.length&&(this.isConnected=!0)}}else this.isConnected=!0},e.exports=d},function(e,t,n){var r,i=n(1);function o(e){r=n(5),this.layout=e,this.graphs=[],this.edges=[]}o.prototype.addRoot=function(){var e=this.layout.newGraph(),t=this.layout.newNode(null),n=this.add(e,t);return this.setRootGraph(n),this.rootGraph},o.prototype.add=function(e,t,n,r,i){if(null==n&&null==r&&null==i){if(null==e)throw"Graph is null!";if(null==t)throw"Parent node is null!";if(this.graphs.indexOf(e)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(e),null!=e.parent)throw"Already has a parent!";if(null!=t.child)throw"Already has a child!";return e.parent=t,t.child=e,e}i=n,n=e;var o=(r=t).getOwner(),a=i.getOwner();if(null==o||o.getGraphManager()!=this)throw"Source not in this graph mgr!";if(null==a||a.getGraphManager()!=this)throw"Target not in this graph mgr!";if(o==a)return n.isInterGraph=!1,o.add(n,r,i);if(n.isInterGraph=!0,n.source=r,n.target=i,this.edges.indexOf(n)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(n),null==n.source||null==n.target)throw"Edge source and/or target is null!";if(-1!=n.source.edges.indexOf(n)||-1!=n.target.edges.indexOf(n))throw"Edge already in source and/or target incidency list!";return n.source.edges.push(n),n.target.edges.push(n),n},o.prototype.remove=function(e){if(e instanceof r){var t=e;if(t.getGraphManager()!=this)throw"Graph not in this graph mgr";if(t!=this.rootGraph&&(null==t.parent||t.parent.graphManager!=this))throw"Invalid parent node!";for(var n,o=[],a=(o=o.concat(t.getEdges())).length,s=0;s<a;s++)n=o[s],t.remove(n);var l,c=[];a=(c=c.concat(t.getNodes())).length;for(s=0;s<a;s++)l=c[s],t.remove(l);t==this.rootGraph&&this.setRootGraph(null);var u=this.graphs.indexOf(t);this.graphs.splice(u,1),t.parent=null}else if(e instanceof i){if(null==(n=e))throw"Edge is null!";if(!n.isInterGraph)throw"Not an inter-graph edge!";if(null==n.source||null==n.target)throw"Source and/or target is null!";if(-1==n.source.edges.indexOf(n)||-1==n.target.edges.indexOf(n))throw"Source and/or target doesn't know this edge!";u=n.source.edges.indexOf(n);if(n.source.edges.splice(u,1),u=n.target.edges.indexOf(n),n.target.edges.splice(u,1),null==n.source.owner||null==n.source.owner.getGraphManager())throw"Edge owner graph or owner graph manager is null!";if(-1==n.source.owner.getGraphManager().edges.indexOf(n))throw"Not in owner graph manager's edge list!";u=n.source.owner.getGraphManager().edges.indexOf(n);n.source.owner.getGraphManager().edges.splice(u,1)}},o.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},o.prototype.getGraphs=function(){return this.graphs},o.prototype.getAllNodes=function(){if(null==this.allNodes){for(var e=[],t=this.getGraphs(),n=t.length,r=0;r<n;r++)e=e.concat(t[r].getNodes());this.allNodes=e}return this.allNodes},o.prototype.resetAllNodes=function(){this.allNodes=null},o.prototype.resetAllEdges=function(){this.allEdges=null},o.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},o.prototype.getAllEdges=function(){if(null==this.allEdges){var e=[],t=this.getGraphs();t.length;for(var n=0;n<t.length;n++)e=e.concat(t[n].getEdges());e=e.concat(this.edges),this.allEdges=e}return this.allEdges},o.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},o.prototype.setAllNodesToApplyGravitation=function(e){if(null!=this.allNodesToApplyGravitation)throw"assert failed";this.allNodesToApplyGravitation=e},o.prototype.getRoot=function(){return this.rootGraph},o.prototype.setRootGraph=function(e){if(e.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=e,null==e.parent&&(e.parent=this.layout.newNode("Root node"))},o.prototype.getLayout=function(){return this.layout},o.prototype.isOneAncestorOfOther=function(e,t){if(null==e||null==t)throw"assert failed";if(e==t)return!0;for(var n,r=e.getOwner();;){if(null==(n=r.getParent()))break;if(n==t)return!0;if(null==(r=n.getOwner()))break}for(r=t.getOwner();;){if(null==(n=r.getParent()))break;if(n==e)return!0;if(null==(r=n.getOwner()))break}return!1},o.prototype.calcLowestCommonAncestors=function(){for(var e,t,n,r,i,o=this.getAllEdges(),a=o.length,s=0;s<a;s++)if(t=(e=o[s]).source,n=e.target,e.lca=null,e.sourceInLca=t,e.targetInLca=n,t!=n){for(r=t.getOwner();null==e.lca;){for(e.targetInLca=n,i=n.getOwner();null==e.lca;){if(i==r){e.lca=i;break}if(i==this.rootGraph)break;if(null!=e.lca)throw"assert failed";e.targetInLca=i.getParent(),i=e.targetInLca.getOwner()}if(r==this.rootGraph)break;null==e.lca&&(e.sourceInLca=r.getParent(),r=e.sourceInLca.getOwner())}if(null==e.lca)throw"assert failed"}else e.lca=t.getOwner()},o.prototype.calcLowestCommonAncestor=function(e,t){if(e==t)return e.getOwner();for(var n=e.getOwner();;){if(null==n)break;for(var r=t.getOwner();;){if(null==r)break;if(r==n)return r;r=r.getParent().getOwner()}n=n.getParent().getOwner()}return n},o.prototype.calcInclusionTreeDepths=function(e,t){var n;null==e&&null==t&&(e=this.rootGraph,t=1);for(var r=e.getNodes(),i=r.length,o=0;o<i;o++)(n=r[o]).inclusionTreeDepth=t,null!=n.child&&this.calcInclusionTreeDepths(n.child,t+1)},o.prototype.includesInvalidEdge=function(){for(var e,t=this.edges.length,n=0;n<t;n++)if(e=this.edges[n],this.isOneAncestorOfOther(e.source,e.target))return!0;return!1},e.exports=o},function(e,t,n){var r=n(0);function i(){}for(var o in r)i[o]=r[o];i.MAX_ITERATIONS=2500,i.DEFAULT_EDGE_LENGTH=50,i.DEFAULT_SPRING_STRENGTH=.45,i.DEFAULT_REPULSION_STRENGTH=4500,i.DEFAULT_GRAVITY_STRENGTH=.4,i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,i.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,i.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,i.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,i.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,i.COOLING_ADAPTATION_FACTOR=.33,i.ADAPTATION_LOWER_NODE_LIMIT=1e3,i.ADAPTATION_UPPER_NODE_LIMIT=5e3,i.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,i.MAX_NODE_DISPLACEMENT=3*i.MAX_NODE_DISPLACEMENT_INCREMENTAL,i.MIN_REPULSION_DIST=i.DEFAULT_EDGE_LENGTH/10,i.CONVERGENCE_CHECK_PERIOD=100,i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,i.MIN_EDGE_LENGTH=1,i.GRID_CALCULATION_CHECK_PERIOD=10,e.exports=i},function(e,t,n){var r=n(12);function i(){}i.calcSeparationAmount=function(e,t,n,r){if(!e.intersects(t))throw"assert failed";var i=new Array(2);this.decideDirectionsForOverlappingNodes(e,t,i),n[0]=Math.min(e.getRight(),t.getRight())-Math.max(e.x,t.x),n[1]=Math.min(e.getBottom(),t.getBottom())-Math.max(e.y,t.y),e.getX()<=t.getX()&&e.getRight()>=t.getRight()?n[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight()):t.getX()<=e.getX()&&t.getRight()>=e.getRight()&&(n[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight())),e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()?n[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()):t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()&&(n[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()));var o=Math.abs((t.getCenterY()-e.getCenterY())/(t.getCenterX()-e.getCenterX()));t.getCenterY()===e.getCenterY()&&t.getCenterX()===e.getCenterX()&&(o=1);var a=o*n[0],s=n[1]/o;n[0]<s?s=n[0]:a=n[1],n[0]=-1*i[0]*(s/2+r),n[1]=-1*i[1]*(a/2+r)},i.decideDirectionsForOverlappingNodes=function(e,t,n){e.getCenterX()<t.getCenterX()?n[0]=-1:n[0]=1,e.getCenterY()<t.getCenterY()?n[1]=-1:n[1]=1},i.getIntersection2=function(e,t,n){var r=e.getCenterX(),i=e.getCenterY(),o=t.getCenterX(),a=t.getCenterY();if(e.intersects(t))return n[0]=r,n[1]=i,n[2]=o,n[3]=a,!0;var s=e.getX(),l=e.getY(),c=e.getRight(),u=e.getX(),h=e.getBottom(),d=e.getRight(),p=e.getWidthHalf(),f=e.getHeightHalf(),g=t.getX(),m=t.getY(),O=t.getRight(),A=t.getX(),y=t.getBottom(),v=t.getRight(),b=t.getWidthHalf(),x=t.getHeightHalf(),w=!1,k=!1;if(r===o){if(i>a)return n[0]=r,n[1]=l,n[2]=o,n[3]=y,!1;if(i<a)return n[0]=r,n[1]=h,n[2]=o,n[3]=m,!1}else if(i===a){if(r>o)return n[0]=s,n[1]=i,n[2]=O,n[3]=a,!1;if(r<o)return n[0]=c,n[1]=i,n[2]=g,n[3]=a,!1}else{var S=e.height/e.width,T=t.height/t.width,$=(a-i)/(o-r),_=void 0,C=void 0,Q=void 0,P=void 0,E=void 0,R=void 0;if(-S===$?r>o?(n[0]=u,n[1]=h,w=!0):(n[0]=c,n[1]=l,w=!0):S===$&&(r>o?(n[0]=s,n[1]=l,w=!0):(n[0]=d,n[1]=h,w=!0)),-T===$?o>r?(n[2]=A,n[3]=y,k=!0):(n[2]=O,n[3]=m,k=!0):T===$&&(o>r?(n[2]=g,n[3]=m,k=!0):(n[2]=v,n[3]=y,k=!0)),w&&k)return!1;if(r>o?i>a?(_=this.getCardinalDirection(S,$,4),C=this.getCardinalDirection(T,$,2)):(_=this.getCardinalDirection(-S,$,3),C=this.getCardinalDirection(-T,$,1)):i>a?(_=this.getCardinalDirection(-S,$,1),C=this.getCardinalDirection(-T,$,3)):(_=this.getCardinalDirection(S,$,2),C=this.getCardinalDirection(T,$,4)),!w)switch(_){case 1:P=l,Q=r+-f/$,n[0]=Q,n[1]=P;break;case 2:Q=d,P=i+p*$,n[0]=Q,n[1]=P;break;case 3:P=h,Q=r+f/$,n[0]=Q,n[1]=P;break;case 4:Q=u,P=i+-p*$,n[0]=Q,n[1]=P}if(!k)switch(C){case 1:R=m,E=o+-x/$,n[2]=E,n[3]=R;break;case 2:E=v,R=a+b*$,n[2]=E,n[3]=R;break;case 3:R=y,E=o+x/$,n[2]=E,n[3]=R;break;case 4:E=A,R=a+-b*$,n[2]=E,n[3]=R}}return!1},i.getCardinalDirection=function(e,t,n){return e>t?n:1+n%4},i.getIntersection=function(e,t,n,i){if(null==i)return this.getIntersection2(e,t,n);var o,a,s,l,c,u,h,d=e.x,p=e.y,f=t.x,g=t.y,m=n.x,O=n.y,A=i.x,y=i.y;return 0===(h=(o=g-p)*(l=m-A)-(a=y-O)*(s=d-f))?null:new r((s*(u=A*O-m*y)-l*(c=f*p-d*g))/h,(a*c-o*u)/h)},i.angleOfVector=function(e,t,n,r){var i=void 0;return e!==n?(i=Math.atan((r-t)/(n-e)),n<e?i+=Math.PI:r<t&&(i+=this.TWO_PI)):i=r<t?this.ONE_AND_HALF_PI:this.HALF_PI,i},i.doIntersect=function(e,t,n,r){var i=e.x,o=e.y,a=t.x,s=t.y,l=n.x,c=n.y,u=r.x,h=r.y,d=(a-i)*(h-c)-(u-l)*(s-o);if(0===d)return!1;var p=((h-c)*(u-i)+(l-u)*(h-o))/d,f=((o-s)*(u-i)+(a-i)*(h-o))/d;return 0<p&&p<1&&0<f&&f<1},i.HALF_PI=.5*Math.PI,i.ONE_AND_HALF_PI=1.5*Math.PI,i.TWO_PI=2*Math.PI,i.THREE_PI=3*Math.PI,e.exports=i},function(e,t,n){function r(){}r.sign=function(e){return e>0?1:e<0?-1:0},r.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},r.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},e.exports=r},function(e,t,n){function r(){}r.MAX_VALUE=2147483647,r.MIN_VALUE=-2147483648,e.exports=r},function(e,t,n){var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var i=function(e){return{value:e,next:null,prev:null}},o=function(e,t,n,r){return null!==e?e.next=t:r.head=t,null!==n?n.prev=t:r.tail=t,t.prev=e,t.next=n,r.length++,t},a=function(e,t){var n=e.prev,r=e.next;return null!==n?n.next=r:t.head=r,null!==r?r.prev=n:t.tail=n,e.prev=e.next=null,t.length--,e},s=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.length=0,this.head=null,this.tail=null,null!=t&&t.forEach(function(e){return n.push(e)})}return r(e,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(e,t){return o(t.prev,i(e),t,this)}},{key:"insertAfter",value:function(e,t){return o(t,i(e),t.next,this)}},{key:"insertNodeBefore",value:function(e,t){return o(t.prev,e,t,this)}},{key:"insertNodeAfter",value:function(e,t){return o(t,e,t.next,this)}},{key:"push",value:function(e){return o(this.tail,i(e),null,this)}},{key:"unshift",value:function(e){return o(null,i(e),this.head,this)}},{key:"remove",value:function(e){return a(e,this)}},{key:"pop",value:function(){return a(this.tail,this).value}},{key:"popNode",value:function(){return a(this.tail,this)}},{key:"shift",value:function(){return a(this.head,this).value}},{key:"shiftNode",value:function(){return a(this.head,this)}},{key:"get_object_at",value:function(e){if(e<=this.length()){for(var t=1,n=this.head;t<e;)n=n.next,t++;return n.value}}},{key:"set_object_at",value:function(e,t){if(e<=this.length()){for(var n=1,r=this.head;n<e;)r=r.next,n++;r.value=t}}}]),e}();e.exports=s},function(e,t,n){function r(e,t,n){this.x=null,this.y=null,null==e&&null==t&&null==n?(this.x=0,this.y=0):"number"==typeof e&&"number"==typeof t&&null==n?(this.x=e,this.y=t):"Point"==e.constructor.name&&null==t&&null==n&&(n=e,this.x=n.x,this.y=n.y)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.getLocation=function(){return new r(this.x,this.y)},r.prototype.setLocation=function(e,t,n){"Point"==e.constructor.name&&null==t&&null==n?(n=e,this.setLocation(n.x,n.y)):"number"==typeof e&&"number"==typeof t&&null==n&&(parseInt(e)==e&&parseInt(t)==t?this.move(e,t):(this.x=Math.floor(e+.5),this.y=Math.floor(t+.5)))},r.prototype.move=function(e,t){this.x=e,this.y=t},r.prototype.translate=function(e,t){this.x+=e,this.y+=t},r.prototype.equals=function(e){if("Point"==e.constructor.name){var t=e;return this.x==t.x&&this.y==t.y}return this==e},r.prototype.toString=function(){return(new r).constructor.name+"[x="+this.x+",y="+this.y+"]"},e.exports=r},function(e,t,n){function r(e,t,n,r){this.x=0,this.y=0,this.width=0,this.height=0,null!=e&&null!=t&&null!=n&&null!=r&&(this.x=e,this.y=t,this.width=n,this.height=r)}r.prototype.getX=function(){return this.x},r.prototype.setX=function(e){this.x=e},r.prototype.getY=function(){return this.y},r.prototype.setY=function(e){this.y=e},r.prototype.getWidth=function(){return this.width},r.prototype.setWidth=function(e){this.width=e},r.prototype.getHeight=function(){return this.height},r.prototype.setHeight=function(e){this.height=e},r.prototype.getRight=function(){return this.x+this.width},r.prototype.getBottom=function(){return this.y+this.height},r.prototype.intersects=function(e){return!(this.getRight()<e.x)&&(!(this.getBottom()<e.y)&&(!(e.getRight()<this.x)&&!(e.getBottom()<this.y)))},r.prototype.getCenterX=function(){return this.x+this.width/2},r.prototype.getMinX=function(){return this.getX()},r.prototype.getMaxX=function(){return this.getX()+this.width},r.prototype.getCenterY=function(){return this.y+this.height/2},r.prototype.getMinY=function(){return this.getY()},r.prototype.getMaxY=function(){return this.getY()+this.height},r.prototype.getWidthHalf=function(){return this.width/2},r.prototype.getHeightHalf=function(){return this.height/2},e.exports=r},function(e,t,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function i(){}i.lastID=0,i.createID=function(e){return i.isPrimitive(e)?e:(null!=e.uniqueID||(e.uniqueID=i.getString(),i.lastID++),e.uniqueID)},i.getString=function(e){return null==e&&(e=i.lastID),"Object#"+e},i.isPrimitive=function(e){var t=void 0===e?"undefined":r(e);return null==e||"object"!=t&&"function"!=t},e.exports=i},function(e,t,n){function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i=n(0),o=n(6),a=n(3),s=n(1),l=n(5),c=n(4),u=n(17),h=n(27);function d(e){h.call(this),this.layoutQuality=i.QUALITY,this.createBendsAsNeeded=i.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=i.DEFAULT_INCREMENTAL,this.animationOnLayout=i.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=i.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=i.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=i.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new o(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,null!=e&&(this.isRemoteUse=e)}d.RANDOM_SEED=1,d.prototype=Object.create(h.prototype),d.prototype.getGraphManager=function(){return this.graphManager},d.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},d.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},d.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},d.prototype.newGraphManager=function(){var e=new o(this);return this.graphManager=e,e},d.prototype.newGraph=function(e){return new l(null,this.graphManager,e)},d.prototype.newNode=function(e){return new a(this.graphManager,e)},d.prototype.newEdge=function(e){return new s(null,null,e)},d.prototype.checkLayoutSuccess=function(){return null==this.graphManager.getRoot()||0==this.graphManager.getRoot().getNodes().length||this.graphManager.includesInvalidEdge()},d.prototype.runLayout=function(){var e;return this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters(),e=!this.checkLayoutSuccess()&&this.layout(),"during"!==i.ANIMATE&&(e&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,e)},d.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},d.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var e=this.graphManager.getAllEdges(),t=0;t<e.length;t++)e[t];var n=this.graphManager.getRoot().getNodes();for(t=0;t<n.length;t++)n[t];this.update(this.graphManager.getRoot())}},d.prototype.update=function(e){if(null==e)this.update2();else if(e instanceof a){var t=e;if(null!=t.getChild())for(var n=t.getChild().getNodes(),r=0;r<n.length;r++)update(n[r]);if(null!=t.vGraphObject)t.vGraphObject.update(t)}else if(e instanceof s){var i=e;if(null!=i.vGraphObject)i.vGraphObject.update(i)}else if(e instanceof l){var o=e;if(null!=o.vGraphObject)o.vGraphObject.update(o)}},d.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=i.QUALITY,this.animationDuringLayout=i.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=i.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=i.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=i.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=i.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=i.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},d.prototype.transform=function(e){if(null==e)this.transform(new c(0,0));else{var t=new u,n=this.graphManager.getRoot().updateLeftTop();if(null!=n){t.setWorldOrgX(e.x),t.setWorldOrgY(e.y),t.setDeviceOrgX(n.x),t.setDeviceOrgY(n.y);for(var r=this.getAllNodes(),i=0;i<r.length;i++)r[i].transform(t)}}},d.prototype.positionNodesRandomly=function(e){if(null==e)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var t,n,r=e.getNodes(),i=0;i<r.length;i++)null==(n=(t=r[i]).getChild())||0==n.getNodes().length?t.scatter():(this.positionNodesRandomly(n),t.updateBounds())},d.prototype.getFlatForest=function(){for(var e=[],t=!0,n=this.graphManager.getRoot().getNodes(),i=!0,o=0;o<n.length;o++)null!=n[o].getChild()&&(i=!1);if(!i)return e;var a=new Set,s=[],l=new Map,c=[];for(c=c.concat(n);c.length>0&&t;){for(s.push(c[0]);s.length>0&&t;){var u=s[0];s.splice(0,1),a.add(u);var h=u.getEdges();for(o=0;o<h.length;o++){var d=h[o].getOtherEnd(u);if(l.get(u)!=d){if(a.has(d)){t=!1;break}s.push(d),l.set(d,u)}}}if(t){var p=[].concat(r(a));e.push(p);for(o=0;o<p.length;o++){var f=p[o],g=c.indexOf(f);g>-1&&c.splice(g,1)}a=new Set,l=new Map}else e=[]}return e},d.prototype.createDummyNodesForBendpoints=function(e){for(var t=[],n=e.source,r=this.graphManager.calcLowestCommonAncestor(e.source,e.target),i=0;i<e.bendpoints.length;i++){var o=this.newNode(null);o.setRect(new Point(0,0),new Dimension(1,1)),r.add(o);var a=this.newEdge(null);this.graphManager.add(a,n,o),t.add(o),n=o}a=this.newEdge(null);return this.graphManager.add(a,n,e.target),this.edgeToDummyNodes.set(e,t),e.isInterGraph()?this.graphManager.remove(e):r.remove(e),t},d.prototype.createBendpointsFromDummyNodes=function(){var e=[];e=e.concat(this.graphManager.getAllEdges()),e=[].concat(r(this.edgeToDummyNodes.keys())).concat(e);for(var t=0;t<e.length;t++){var n=e[t];if(n.bendpoints.length>0){for(var i=this.edgeToDummyNodes.get(n),o=0;o<i.length;o++){var a=i[o],s=new c(a.getCenterX(),a.getCenterY()),l=n.bendpoints.get(o);l.x=s.x,l.y=s.y,a.getOwner().remove(a)}this.graphManager.add(n,n.source,n.target)}}},d.transform=function(e,t,n,r){if(null!=n&&null!=r){var i=t;if(e<=50)i-=(t-t/n)/50*(50-e);else i+=(t*r-t)/50*(e-50);return i}var o,a;return e<=50?(o=9*t/500,a=t/10):(o=9*t/50,a=-8*t),o*e+a},d.findCenterOfTree=function(e){var t=[];t=t.concat(e);var n=[],r=new Map,i=!1,o=null;1!=t.length&&2!=t.length||(i=!0,o=t[0]);for(var a=0;a<t.length;a++){var s=(u=t[a]).getNeighborsList().size;r.set(u,u.getNeighborsList().size),1==s&&n.push(u)}var l=[];for(l=l.concat(n);!i;){var c=[];c=c.concat(l),l=[];for(a=0;a<t.length;a++){var u=t[a],h=t.indexOf(u);h>=0&&t.splice(h,1),u.getNeighborsList().forEach(function(e){if(n.indexOf(e)<0){var t=r.get(e)-1;1==t&&l.push(e),r.set(e,t)}})}n=n.concat(l),1!=t.length&&2!=t.length||(i=!0,o=t[0])}return o},d.prototype.setGraphManager=function(e){this.graphManager=e},e.exports=d},function(e,t,n){function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=1e4*Math.sin(r.seed++),r.x-Math.floor(r.x)},e.exports=r},function(e,t,n){var r=n(4);function i(e,t){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}i.prototype.getWorldOrgX=function(){return this.lworldOrgX},i.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},i.prototype.getWorldOrgY=function(){return this.lworldOrgY},i.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},i.prototype.getWorldExtX=function(){return this.lworldExtX},i.prototype.setWorldExtX=function(e){this.lworldExtX=e},i.prototype.getWorldExtY=function(){return this.lworldExtY},i.prototype.setWorldExtY=function(e){this.lworldExtY=e},i.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},i.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},i.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},i.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},i.prototype.getDeviceExtX=function(){return this.ldeviceExtX},i.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},i.prototype.getDeviceExtY=function(){return this.ldeviceExtY},i.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},i.prototype.transformX=function(e){var t=0,n=this.lworldExtX;return 0!=n&&(t=this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/n),t},i.prototype.transformY=function(e){var t=0,n=this.lworldExtY;return 0!=n&&(t=this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/n),t},i.prototype.inverseTransformX=function(e){var t=0,n=this.ldeviceExtX;return 0!=n&&(t=this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/n),t},i.prototype.inverseTransformY=function(e){var t=0,n=this.ldeviceExtY;return 0!=n&&(t=this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/n),t},i.prototype.inverseTransformPoint=function(e){return new r(this.inverseTransformX(e.x),this.inverseTransformY(e.y))},e.exports=i},function(e,t,n){var r=n(15),i=n(7),o=n(0),a=n(8),s=n(9);function l(){r.call(this),this.useSmartIdealEdgeLengthCalculation=i.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=i.DEFAULT_EDGE_LENGTH,this.springConstant=i.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=i.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=i.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=i.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=i.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*i.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=i.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=i.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=i.MAX_ITERATIONS}for(var c in l.prototype=Object.create(r.prototype),r)l[c]=r[c];l.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=i.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},l.prototype.calcIdealEdgeLengths=function(){for(var e,t,n,r,a,s,l=this.getGraphManager().getAllEdges(),c=0;c<l.length;c++)(e=l[c]).idealLength=this.idealEdgeLength,e.isInterGraph&&(n=e.getSource(),r=e.getTarget(),a=e.getSourceInLca().getEstimatedSize(),s=e.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(e.idealLength+=a+s-2*o.SIMPLE_NODE_SIZE),t=e.getLca().getInclusionTreeDepth(),e.idealLength+=i.DEFAULT_EDGE_LENGTH*i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(n.getInclusionTreeDepth()+r.getInclusionTreeDepth()-2*t))},l.prototype.initSpringEmbedder=function(){var e=this.getAllNodes().length;this.incremental?(e>i.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*i.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(e-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-i.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT_INCREMENTAL):(e>i.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(i.COOLING_ADAPTATION_FACTOR,1-(e-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*(1-i.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(5*this.getAllNodes().length,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},l.prototype.calcSpringForces=function(){for(var e,t=this.getAllEdges(),n=0;n<t.length;n++)e=t[n],this.calcSpringForce(e,e.idealLength)},l.prototype.calcRepulsionForces=function(){var e,t,n,r,o,a=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=this.getAllNodes();if(this.useFRGridVariant)for(this.totalIterations%i.GRID_CALCULATION_CHECK_PERIOD==1&&a&&this.updateGrid(),o=new Set,e=0;e<l.length;e++)n=l[e],this.calculateRepulsionForceOfANode(n,o,a,s),o.add(n);else for(e=0;e<l.length;e++)for(n=l[e],t=e+1;t<l.length;t++)r=l[t],n.getOwner()==r.getOwner()&&this.calcRepulsionForce(n,r)},l.prototype.calcGravitationalForces=function(){for(var e,t=this.getAllNodesToApplyGravitation(),n=0;n<t.length;n++)e=t[n],this.calcGravitationalForce(e)},l.prototype.moveNodes=function(){for(var e=this.getAllNodes(),t=0;t<e.length;t++)e[t].move()},l.prototype.calcSpringForce=function(e,t){var n,r,i,o,a=e.getSource(),s=e.getTarget();if(this.uniformLeafNodeSizes&&null==a.getChild()&&null==s.getChild())e.updateLengthSimple();else if(e.updateLength(),e.isOverlapingSourceAndTarget)return;0!=(n=e.getLength())&&(i=(r=this.springConstant*(n-t))*(e.lengthX/n),o=r*(e.lengthY/n),a.springForceX+=i,a.springForceY+=o,s.springForceX-=i,s.springForceY-=o)},l.prototype.calcRepulsionForce=function(e,t){var n,r,o,l,c,u,h,d=e.getRect(),p=t.getRect(),f=new Array(2),g=new Array(4);if(d.intersects(p)){a.calcSeparationAmount(d,p,f,i.DEFAULT_EDGE_LENGTH/2),u=2*f[0],h=2*f[1];var m=e.noOfChildren*t.noOfChildren/(e.noOfChildren+t.noOfChildren);e.repulsionForceX-=m*u,e.repulsionForceY-=m*h,t.repulsionForceX+=m*u,t.repulsionForceY+=m*h}else this.uniformLeafNodeSizes&&null==e.getChild()&&null==t.getChild()?(n=p.getCenterX()-d.getCenterX(),r=p.getCenterY()-d.getCenterY()):(a.getIntersection(d,p,g),n=g[2]-g[0],r=g[3]-g[1]),Math.abs(n)<i.MIN_REPULSION_DIST&&(n=s.sign(n)*i.MIN_REPULSION_DIST),Math.abs(r)<i.MIN_REPULSION_DIST&&(r=s.sign(r)*i.MIN_REPULSION_DIST),o=n*n+r*r,l=Math.sqrt(o),u=(c=this.repulsionConstant*e.noOfChildren*t.noOfChildren/o)*n/l,h=c*r/l,e.repulsionForceX-=u,e.repulsionForceY-=h,t.repulsionForceX+=u,t.repulsionForceY+=h},l.prototype.calcGravitationalForce=function(e){var t,n,r,i,o,a,s,l;n=((t=e.getOwner()).getRight()+t.getLeft())/2,r=(t.getTop()+t.getBottom())/2,i=e.getCenterX()-n,o=e.getCenterY()-r,a=Math.abs(i)+e.getWidth()/2,s=Math.abs(o)+e.getHeight()/2,e.getOwner()==this.graphManager.getRoot()?(a>(l=t.getEstimatedSize()*this.gravityRangeFactor)||s>l)&&(e.gravitationForceX=-this.gravityConstant*i,e.gravitationForceY=-this.gravityConstant*o):(a>(l=t.getEstimatedSize()*this.compoundGravityRangeFactor)||s>l)&&(e.gravitationForceX=-this.gravityConstant*i*this.compoundGravityConstant,e.gravitationForceY=-this.gravityConstant*o*this.compoundGravityConstant)},l.prototype.isConverged=function(){var e,t=!1;return this.totalIterations>this.maxIterations/3&&(t=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),e=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,e||t},l.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},l.prototype.calcNoOfChildrenForAllNodes=function(){for(var e,t=this.graphManager.getAllNodes(),n=0;n<t.length;n++)(e=t[n]).noOfChildren=e.getNoOfChildren()},l.prototype.calcGrid=function(e){var t,n;t=parseInt(Math.ceil((e.getRight()-e.getLeft())/this.repulsionRange)),n=parseInt(Math.ceil((e.getBottom()-e.getTop())/this.repulsionRange));for(var r=new Array(t),i=0;i<t;i++)r[i]=new Array(n);for(i=0;i<t;i++)for(var o=0;o<n;o++)r[i][o]=new Array;return r},l.prototype.addNodeToGrid=function(e,t,n){var r,i,o,a;r=parseInt(Math.floor((e.getRect().x-t)/this.repulsionRange)),i=parseInt(Math.floor((e.getRect().width+e.getRect().x-t)/this.repulsionRange)),o=parseInt(Math.floor((e.getRect().y-n)/this.repulsionRange)),a=parseInt(Math.floor((e.getRect().height+e.getRect().y-n)/this.repulsionRange));for(var s=r;s<=i;s++)for(var l=o;l<=a;l++)this.grid[s][l].push(e),e.setGridCoordinates(r,i,o,a)},l.prototype.updateGrid=function(){var e,t,n=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),e=0;e<n.length;e++)t=n[e],this.addNodeToGrid(t,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},l.prototype.calculateRepulsionForceOfANode=function(e,t,n,r){if(this.totalIterations%i.GRID_CALCULATION_CHECK_PERIOD==1&&n||r){var o,a=new Set;e.surrounding=new Array;for(var s=this.grid,l=e.startX-1;l<e.finishX+2;l++)for(var c=e.startY-1;c<e.finishY+2;c++)if(!(l<0||c<0||l>=s.length||c>=s[0].length))for(var u=0;u<s[l][c].length;u++)if(o=s[l][c][u],e.getOwner()==o.getOwner()&&e!=o&&!t.has(o)&&!a.has(o)){var h=Math.abs(e.getCenterX()-o.getCenterX())-(e.getWidth()/2+o.getWidth()/2),d=Math.abs(e.getCenterY()-o.getCenterY())-(e.getHeight()/2+o.getHeight()/2);h<=this.repulsionRange&&d<=this.repulsionRange&&a.add(o)}e.surrounding=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(a))}for(l=0;l<e.surrounding.length;l++)this.calcRepulsionForce(e,e.surrounding[l])},l.prototype.calcRepulsionRange=function(){return 0},e.exports=l},function(e,t,n){var r=n(1),i=n(7);function o(e,t,n){r.call(this,e,t,n),this.idealLength=i.DEFAULT_EDGE_LENGTH}for(var a in o.prototype=Object.create(r.prototype),r)o[a]=r[a];e.exports=o},function(e,t,n){var r=n(3);function i(e,t,n,i){r.call(this,e,t,n,i),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}for(var o in i.prototype=Object.create(r.prototype),r)i[o]=r[o];i.prototype.setGridCoordinates=function(e,t,n,r){this.startX=e,this.finishX=t,this.startY=n,this.finishY=r},e.exports=i},function(e,t,n){function r(e,t){this.width=0,this.height=0,null!==e&&null!==t&&(this.height=t,this.width=e)}r.prototype.getWidth=function(){return this.width},r.prototype.setWidth=function(e){this.width=e},r.prototype.getHeight=function(){return this.height},r.prototype.setHeight=function(e){this.height=e},e.exports=r},function(e,t,n){var r=n(14);function i(){this.map={},this.keys=[]}i.prototype.put=function(e,t){var n=r.createID(e);this.contains(n)||(this.map[n]=t,this.keys.push(e))},i.prototype.contains=function(e){return r.createID(e),null!=this.map[e]},i.prototype.get=function(e){var t=r.createID(e);return this.map[t]},i.prototype.keySet=function(){return this.keys},e.exports=i},function(e,t,n){var r=n(14);function i(){this.set={}}i.prototype.add=function(e){var t=r.createID(e);this.contains(t)||(this.set[t]=e)},i.prototype.remove=function(e){delete this.set[r.createID(e)]},i.prototype.clear=function(){this.set={}},i.prototype.contains=function(e){return this.set[r.createID(e)]==e},i.prototype.isEmpty=function(){return 0===this.size()},i.prototype.size=function(){return Object.keys(this.set).length},i.prototype.addAllTo=function(e){for(var t=Object.keys(this.set),n=t.length,r=0;r<n;r++)e.push(this.set[t[r]])},i.prototype.size=function(){return Object.keys(this.set).length},i.prototype.addAll=function(e){for(var t=e.length,n=0;n<t;n++){var r=e[n];this.add(r)}},e.exports=i},function(e,t,n){var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var i=n(11),o=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),null===n&&void 0===n||(this.compareFunction=this._defaultCompareFunction);var r=void 0;r=t instanceof i?t.size():t.length,this._quicksort(t,0,r-1)}return r(e,[{key:"_quicksort",value:function(e,t,n){if(t<n){var r=this._partition(e,t,n);this._quicksort(e,t,r),this._quicksort(e,r+1,n)}}},{key:"_partition",value:function(e,t,n){for(var r=this._get(e,t),i=t,o=n;;){for(;this.compareFunction(r,this._get(e,o));)o--;for(;this.compareFunction(this._get(e,i),r);)i++;if(!(i<o))return o;this._swap(e,i,o),i++,o--}}},{key:"_get",value:function(e,t){return e instanceof i?e.get_object_at(t):e[t]}},{key:"_set",value:function(e,t,n){e instanceof i?e.set_object_at(t,n):e[t]=n}},{key:"_swap",value:function(e,t,n){var r=this._get(e,t);this._set(e,t,this._get(e,n)),this._set(e,n,r)}},{key:"_defaultCompareFunction",value:function(e,t){return t>e}}]),e}();e.exports=o},function(e,t,n){var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var i=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sequence1=t,this.sequence2=n,this.match_score=r,this.mismatch_penalty=i,this.gap_penalty=o,this.iMax=t.length+1,this.jMax=n.length+1,this.grid=new Array(this.iMax);for(var a=0;a<this.iMax;a++){this.grid[a]=new Array(this.jMax);for(var s=0;s<this.jMax;s++)this.grid[a][s]=0}this.tracebackGrid=new Array(this.iMax);for(var l=0;l<this.iMax;l++){this.tracebackGrid[l]=new Array(this.jMax);for(var c=0;c<this.jMax;c++)this.tracebackGrid[l][c]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return r(e,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var e=1;e<this.jMax;e++)this.grid[0][e]=this.grid[0][e-1]+this.gap_penalty,this.tracebackGrid[0][e]=[!1,!1,!0];for(var t=1;t<this.iMax;t++)this.grid[t][0]=this.grid[t-1][0]+this.gap_penalty,this.tracebackGrid[t][0]=[!1,!0,!1];for(var n=1;n<this.iMax;n++)for(var r=1;r<this.jMax;r++){var i=[this.sequence1[n-1]===this.sequence2[r-1]?this.grid[n-1][r-1]+this.match_score:this.grid[n-1][r-1]+this.mismatch_penalty,this.grid[n-1][r]+this.gap_penalty,this.grid[n][r-1]+this.gap_penalty],o=this.arrayAllMaxIndexes(i);this.grid[n][r]=i[o[0]],this.tracebackGrid[n][r]=[o.includes(0),o.includes(1),o.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var e=[];for(e.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});e[0];){var t=e[0],n=this.tracebackGrid[t.pos[0]][t.pos[1]];n[0]&&e.push({pos:[t.pos[0]-1,t.pos[1]-1],seq1:this.sequence1[t.pos[0]-1]+t.seq1,seq2:this.sequence2[t.pos[1]-1]+t.seq2}),n[1]&&e.push({pos:[t.pos[0]-1,t.pos[1]],seq1:this.sequence1[t.pos[0]-1]+t.seq1,seq2:"-"+t.seq2}),n[2]&&e.push({pos:[t.pos[0],t.pos[1]-1],seq1:"-"+t.seq1,seq2:this.sequence2[t.pos[1]-1]+t.seq2}),0===t.pos[0]&&0===t.pos[1]&&this.alignments.push({sequence1:t.seq1,sequence2:t.seq2}),e.shift()}return this.alignments}},{key:"getAllIndexes",value:function(e,t){for(var n=[],r=-1;-1!==(r=e.indexOf(t,r+1));)n.push(r);return n}},{key:"arrayAllMaxIndexes",value:function(e){return this.getAllIndexes(e,Math.max.apply(null,e))}}]),e}();e.exports=i},function(e,t,n){var r=function(){};r.FDLayout=n(18),r.FDLayoutConstants=n(7),r.FDLayoutEdge=n(19),r.FDLayoutNode=n(20),r.DimensionD=n(21),r.HashMap=n(22),r.HashSet=n(23),r.IGeometry=n(8),r.IMath=n(9),r.Integer=n(10),r.Point=n(12),r.PointD=n(4),r.RandomSeed=n(16),r.RectangleD=n(13),r.Transform=n(17),r.UniqueIDGeneretor=n(14),r.Quicksort=n(24),r.LinkedList=n(11),r.LGraphObject=n(2),r.LGraph=n(5),r.LEdge=n(1),r.LGraphManager=n(6),r.LNode=n(3),r.Layout=n(15),r.LayoutConstants=n(0),r.NeedlemanWunsch=n(25),e.exports=r},function(e,t,n){function r(){this.listeners=[]}var i=r.prototype;i.addListener=function(e,t){this.listeners.push({event:e,callback:t})},i.removeListener=function(e,t){for(var n=this.listeners.length;n>=0;n--){var r=this.listeners[n];r.event===e&&r.callback===t&&this.listeners.splice(n,1)}},i.emit=function(e,t){for(var n=0;n<this.listeners.length;n++){var r=this.listeners[n];e===r.event&&r.callback(t)}},e.exports=r}])})}(aFt)),aFt.exports}var lFt;var cFt;var uFt=(cFt||(cFt=1,function(e){!function(t,n){e.exports=n((lFt||(lFt=1,function(e){!function(t,n){e.exports=n(sFt())}(0,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=7)}([function(t,n){t.exports=e},function(e,t,n){var r=n(0).FDLayoutConstants;function i(){}for(var o in r)i[o]=r[o];i.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,i.DEFAULT_RADIAL_SEPARATION=r.DEFAULT_EDGE_LENGTH,i.DEFAULT_COMPONENT_SEPERATION=60,i.TILE=!0,i.TILING_PADDING_VERTICAL=10,i.TILING_PADDING_HORIZONTAL=10,i.TREE_REDUCTION_ON_INCREMENTAL=!1,e.exports=i},function(e,t,n){var r=n(0).FDLayoutEdge;function i(e,t,n){r.call(this,e,t,n)}for(var o in i.prototype=Object.create(r.prototype),r)i[o]=r[o];e.exports=i},function(e,t,n){var r=n(0).LGraph;function i(e,t,n){r.call(this,e,t,n)}for(var o in i.prototype=Object.create(r.prototype),r)i[o]=r[o];e.exports=i},function(e,t,n){var r=n(0).LGraphManager;function i(e){r.call(this,e)}for(var o in i.prototype=Object.create(r.prototype),r)i[o]=r[o];e.exports=i},function(e,t,n){var r=n(0).FDLayoutNode,i=n(0).IMath;function o(e,t,n,i){r.call(this,e,t,n,i)}for(var a in o.prototype=Object.create(r.prototype),r)o[a]=r[a];o.prototype.move=function(){var e=this.graphManager.getLayout();this.displacementX=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementX=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementX)),Math.abs(this.displacementY)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementY=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementY)),null==this.child||0==this.child.getNodes().length?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),e.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},o.prototype.propogateDisplacementToChildren=function(e,t){for(var n,r=this.getChild().getNodes(),i=0;i<r.length;i++)null==(n=r[i]).getChild()?(n.moveBy(e,t),n.displacementX+=e,n.displacementY+=t):n.propogateDisplacementToChildren(e,t)},o.prototype.setPred1=function(e){this.pred1=e},o.prototype.getPred1=function(){return pred1},o.prototype.getPred2=function(){return pred2},o.prototype.setNext=function(e){this.next=e},o.prototype.getNext=function(){return next},o.prototype.setProcessed=function(e){this.processed=e},o.prototype.isProcessed=function(){return processed},e.exports=o},function(e,t,n){var r=n(0).FDLayout,i=n(4),o=n(3),a=n(5),s=n(2),l=n(1),c=n(0).FDLayoutConstants,u=n(0).LayoutConstants,h=n(0).Point,d=n(0).PointD,p=n(0).Layout,f=n(0).Integer,g=n(0).IGeometry,m=n(0).LGraph,O=n(0).Transform;function A(){r.call(this),this.toBeTiled={}}for(var y in A.prototype=Object.create(r.prototype),r)A[y]=r[y];A.prototype.newGraphManager=function(){var e=new i(this);return this.graphManager=e,e},A.prototype.newGraph=function(e){return new o(null,this.graphManager,e)},A.prototype.newNode=function(e){return new a(this.graphManager,e)},A.prototype.newEdge=function(e){return new s(null,null,e)},A.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.isSubLayout||(l.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=l.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=l.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=c.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=c.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=c.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=c.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1,this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/c.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=c.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},A.prototype.layout=function(){return u.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},A.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental)l.TREE_REDUCTION_ON_INCREMENTAL&&(this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation(),t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)}),this.graphManager.setAllNodesToApplyGravitation(n));else{var e=this.getFlatForest();if(e.length>0)this.positionNodesRadially(e);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},A.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}if(this.totalIterations%c.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged()){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}this.coolingCycle++,0==this.layoutQuality?this.coolingAdjuster=this.coolingCycle:1==this.layoutQuality&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var e=new Set(this.getAllNodes()),t=this.nodesWithGravity.filter(function(t){return e.has(t)});this.graphManager.setAllNodesToApplyGravitation(t),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=c.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=c.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var n=!this.isTreeGrowing&&!this.isGrowthFinished,r=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(n,r),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},A.prototype.getPositionsData=function(){for(var e=this.graphManager.getAllNodes(),t={},n=0;n<e.length;n++){var r=e[n].rect,i=e[n].id;t[i]={id:i,x:r.getCenterX(),y:r.getCenterY(),w:r.width,h:r.height}}return t},A.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var e=!1;if("during"===c.ANIMATE)this.emit("layoutstarted");else{for(;!e;)e=this.tick();this.graphManager.updateBounds()}},A.prototype.calculateNodesToApplyGravitationTo=function(){var e,t,n=[],r=this.graphManager.getGraphs(),i=r.length;for(t=0;t<i;t++)(e=r[t]).updateConnected(),e.isConnected||(n=n.concat(e.getNodes()));return n},A.prototype.createBendpoints=function(){var e=[];e=e.concat(this.graphManager.getAllEdges());var t,n=new Set;for(t=0;t<e.length;t++){var r=e[t];if(!n.has(r)){var i=r.getSource(),o=r.getTarget();if(i==o)r.getBendpoints().push(new d),r.getBendpoints().push(new d),this.createDummyNodesForBendpoints(r),n.add(r);else{var a=[];if(a=(a=a.concat(i.getEdgeListToNode(o))).concat(o.getEdgeListToNode(i)),!n.has(a[0])){var s;if(a.length>1)for(s=0;s<a.length;s++){var l=a[s];l.getBendpoints().push(new d),this.createDummyNodesForBendpoints(l)}a.forEach(function(e){n.add(e)})}}}if(n.size==e.length)break}},A.prototype.positionNodesRadially=function(e){for(var t=new h(0,0),n=Math.ceil(Math.sqrt(e.length)),r=0,i=0,o=0,a=new d(0,0),s=0;s<e.length;s++){s%n==0&&(o=0,i=r,0!=s&&(i+=l.DEFAULT_COMPONENT_SEPERATION),r=0);var c=e[s],f=p.findCenterOfTree(c);t.x=o,t.y=i,(a=A.radialLayout(c,f,t)).y>r&&(r=Math.floor(a.y)),o=Math.floor(a.x+l.DEFAULT_COMPONENT_SEPERATION)}this.transform(new d(u.WORLD_CENTER_X-a.x/2,u.WORLD_CENTER_Y-a.y/2))},A.radialLayout=function(e,t,n){var r=Math.max(this.maxDiagonalInTree(e),l.DEFAULT_RADIAL_SEPARATION);A.branchRadialLayout(t,null,0,359,0,r);var i=m.calculateBounds(e),o=new O;o.setDeviceOrgX(i.getMinX()),o.setDeviceOrgY(i.getMinY()),o.setWorldOrgX(n.x),o.setWorldOrgY(n.y);for(var a=0;a<e.length;a++)e[a].transform(o);var s=new d(i.getMaxX(),i.getMaxY());return o.inverseTransformPoint(s)},A.branchRadialLayout=function(e,t,n,r,i,o){var a=(r-n+1)/2;a<0&&(a+=180);var s=(a+n)%360*g.TWO_PI/360,l=i*Math.cos(s),c=i*Math.sin(s);e.setCenter(l,c);var u=[],h=(u=u.concat(e.getEdges())).length;null!=t&&h--;for(var d,p=0,f=u.length,m=e.getEdgesBetween(t);m.length>1;){var O=m[0];m.splice(0,1);var y=u.indexOf(O);y>=0&&u.splice(y,1),f--,h--}d=null!=t?(u.indexOf(m[0])+1)%f:0;for(var v=Math.abs(r-n)/h,b=d;p!=h;b=++b%f){var x=u[b].getOtherEnd(e);if(x!=t){var w=(n+p*v)%360,k=(w+v)%360;A.branchRadialLayout(x,e,w,k,i+o,o),p++}}},A.maxDiagonalInTree=function(e){for(var t=f.MIN_VALUE,n=0;n<e.length;n++){var r=e[n].getDiagonal();r>t&&(t=r)}return t},A.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},A.prototype.groupZeroDegreeMembers=function(){var e=this,t={};this.memberGroups={},this.idToDummyNode={};for(var n=[],r=this.graphManager.getAllNodes(),i=0;i<r.length;i++){var o=(s=r[i]).getParent();0!==this.getNodeDegreeWithChildren(s)||null!=o.id&&this.getToBeTiled(o)||n.push(s)}for(i=0;i<n.length;i++){var s,l=(s=n[i]).getParent().id;void 0===t[l]&&(t[l]=[]),t[l]=t[l].concat(s)}Object.keys(t).forEach(function(n){if(t[n].length>1){var r="DummyCompound_"+n;e.memberGroups[r]=t[n];var i=t[n][0].getParent(),o=new a(e.graphManager);o.id=r,o.paddingLeft=i.paddingLeft||0,o.paddingRight=i.paddingRight||0,o.paddingBottom=i.paddingBottom||0,o.paddingTop=i.paddingTop||0,e.idToDummyNode[r]=o;var s=e.getGraphManager().add(e.newGraph(),o),l=i.getChild();l.add(o);for(var c=0;c<t[n].length;c++){var u=t[n][c];l.remove(u),s.add(u)}}})},A.prototype.clearCompounds=function(){var e={},t={};this.performDFSOnCompounds();for(var n=0;n<this.compoundOrder.length;n++)t[this.compoundOrder[n].id]=this.compoundOrder[n],e[this.compoundOrder[n].id]=[].concat(this.compoundOrder[n].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[n].getChild()),this.compoundOrder[n].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(e,t)},A.prototype.clearZeroDegreeMembers=function(){var e=this,t=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(n){var r=e.idToDummyNode[n];t[n]=e.tileNodes(e.memberGroups[n],r.paddingLeft+r.paddingRight),r.rect.width=t[n].width,r.rect.height=t[n].height})},A.prototype.repopulateCompounds=function(){for(var e=this.compoundOrder.length-1;e>=0;e--){var t=this.compoundOrder[e],n=t.id,r=t.paddingLeft,i=t.paddingTop;this.adjustLocations(this.tiledMemberPack[n],t.rect.x,t.rect.y,r,i)}},A.prototype.repopulateZeroDegreeMembers=function(){var e=this,t=this.tiledZeroDegreePack;Object.keys(t).forEach(function(n){var r=e.idToDummyNode[n],i=r.paddingLeft,o=r.paddingTop;e.adjustLocations(t[n],r.rect.x,r.rect.y,i,o)})},A.prototype.getToBeTiled=function(e){var t=e.id;if(null!=this.toBeTiled[t])return this.toBeTiled[t];var n=e.getChild();if(null==n)return this.toBeTiled[t]=!1,!1;for(var r=n.getNodes(),i=0;i<r.length;i++){var o=r[i];if(this.getNodeDegree(o)>0)return this.toBeTiled[t]=!1,!1;if(null!=o.getChild()){if(!this.getToBeTiled(o))return this.toBeTiled[t]=!1,!1}else this.toBeTiled[o.id]=!1}return this.toBeTiled[t]=!0,!0},A.prototype.getNodeDegree=function(e){e.id;for(var t=e.getEdges(),n=0,r=0;r<t.length;r++){var i=t[r];i.getSource().id!==i.getTarget().id&&(n+=1)}return n},A.prototype.getNodeDegreeWithChildren=function(e){var t=this.getNodeDegree(e);if(null==e.getChild())return t;for(var n=e.getChild().getNodes(),r=0;r<n.length;r++){var i=n[r];t+=this.getNodeDegreeWithChildren(i)}return t},A.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},A.prototype.fillCompexOrderByDFS=function(e){for(var t=0;t<e.length;t++){var n=e[t];null!=n.getChild()&&this.fillCompexOrderByDFS(n.getChild().getNodes()),this.getToBeTiled(n)&&this.compoundOrder.push(n)}},A.prototype.adjustLocations=function(e,t,n,r,i){n+=i;for(var o=t+=r,a=0;a<e.rows.length;a++){var s=e.rows[a];t=o;for(var l=0,c=0;c<s.length;c++){var u=s[c];u.rect.x=t,u.rect.y=n,t+=u.rect.width+e.horizontalPadding,u.rect.height>l&&(l=u.rect.height)}n+=l+e.verticalPadding}},A.prototype.tileCompoundMembers=function(e,t){var n=this;this.tiledMemberPack=[],Object.keys(e).forEach(function(r){var i=t[r];n.tiledMemberPack[r]=n.tileNodes(e[r],i.paddingLeft+i.paddingRight),i.rect.width=n.tiledMemberPack[r].width,i.rect.height=n.tiledMemberPack[r].height})},A.prototype.tileNodes=function(e,t){var n={rows:[],rowWidth:[],rowHeight:[],width:0,height:t,verticalPadding:l.TILING_PADDING_VERTICAL,horizontalPadding:l.TILING_PADDING_HORIZONTAL};e.sort(function(e,t){return e.rect.width*e.rect.height>t.rect.width*t.rect.height?-1:e.rect.width*e.rect.height<t.rect.width*t.rect.height?1:0});for(var r=0;r<e.length;r++){var i=e[r];0==n.rows.length?this.insertNodeToRow(n,i,0,t):this.canAddHorizontal(n,i.rect.width,i.rect.height)?this.insertNodeToRow(n,i,this.getShortestRowIndex(n),t):this.insertNodeToRow(n,i,n.rows.length,t),this.shiftToLastRow(n)}return n},A.prototype.insertNodeToRow=function(e,t,n,r){var i=r;n==e.rows.length&&(e.rows.push([]),e.rowWidth.push(i),e.rowHeight.push(0));var o=e.rowWidth[n]+t.rect.width;e.rows[n].length>0&&(o+=e.horizontalPadding),e.rowWidth[n]=o,e.width<o&&(e.width=o);var a=t.rect.height;n>0&&(a+=e.verticalPadding);var s=0;a>e.rowHeight[n]&&(s=e.rowHeight[n],e.rowHeight[n]=a,s=e.rowHeight[n]-s),e.height+=s,e.rows[n].push(t)},A.prototype.getShortestRowIndex=function(e){for(var t=-1,n=Number.MAX_VALUE,r=0;r<e.rows.length;r++)e.rowWidth[r]<n&&(t=r,n=e.rowWidth[r]);return t},A.prototype.getLongestRowIndex=function(e){for(var t=-1,n=Number.MIN_VALUE,r=0;r<e.rows.length;r++)e.rowWidth[r]>n&&(t=r,n=e.rowWidth[r]);return t},A.prototype.canAddHorizontal=function(e,t,n){var r=this.getShortestRowIndex(e);if(r<0)return!0;var i=e.rowWidth[r];if(i+e.horizontalPadding+t<=e.width)return!0;var o,a,s=0;return e.rowHeight[r]<n&&r>0&&(s=n+e.verticalPadding-e.rowHeight[r]),o=e.width-i>=t+e.horizontalPadding?(e.height+s)/(i+t+e.horizontalPadding):(e.height+s)/e.width,s=n+e.verticalPadding,(a=e.width<t?(e.height+s)/t:(e.height+s)/e.width)<1&&(a=1/a),o<1&&(o=1/o),o<a},A.prototype.shiftToLastRow=function(e){var t=this.getLongestRowIndex(e),n=e.rowWidth.length-1,r=e.rows[t],i=r[r.length-1],o=i.width+e.horizontalPadding;if(e.width-e.rowWidth[n]>o&&t!=n){r.splice(-1,1),e.rows[n].push(i),e.rowWidth[t]=e.rowWidth[t]-o,e.rowWidth[n]=e.rowWidth[n]+o,e.width=e.rowWidth[instance.getLongestRowIndex(e)];for(var a=Number.MIN_VALUE,s=0;s<r.length;s++)r[s].height>a&&(a=r[s].height);t>0&&(a+=e.verticalPadding);var l=e.rowHeight[t]+e.rowHeight[n];e.rowHeight[t]=a,e.rowHeight[n]<i.height+e.verticalPadding&&(e.rowHeight[n]=i.height+e.verticalPadding);var c=e.rowHeight[t]+e.rowHeight[n];e.height+=c-l,this.shiftToLastRow(e)}},A.prototype.tilingPreLayout=function(){l.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},A.prototype.tilingPostLayout=function(){l.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},A.prototype.reduceTrees=function(){for(var e,t=[],n=!0;n;){var r=this.graphManager.getAllNodes(),i=[];n=!1;for(var o=0;o<r.length;o++)1!=(e=r[o]).getEdges().length||e.getEdges()[0].isInterGraph||null!=e.getChild()||(i.push([e,e.getEdges()[0],e.getOwner()]),n=!0);if(1==n){for(var a=[],s=0;s<i.length;s++)1==i[s][0].getEdges().length&&(a.push(i[s]),i[s][0].getOwner().remove(i[s][0]));t.push(a),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=t},A.prototype.growTree=function(e){for(var t,n=e[e.length-1],r=0;r<n.length;r++)t=n[r],this.findPlaceforPrunedNode(t),t[2].add(t[0]),t[2].add(t[1],t[1].source,t[1].target);e.splice(e.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},A.prototype.findPlaceforPrunedNode=function(e){var t,n,r=e[0],i=(n=r==e[1].source?e[1].target:e[1].source).startX,o=n.finishX,a=n.startY,s=n.finishY,l=[0,0,0,0];if(a>0)for(var u=i;u<=o;u++)l[0]+=this.grid[u][a-1].length+this.grid[u][a].length-1;if(o<this.grid.length-1)for(u=a;u<=s;u++)l[1]+=this.grid[o+1][u].length+this.grid[o][u].length-1;if(s<this.grid[0].length-1)for(u=i;u<=o;u++)l[2]+=this.grid[u][s+1].length+this.grid[u][s].length-1;if(i>0)for(u=a;u<=s;u++)l[3]+=this.grid[i-1][u].length+this.grid[i][u].length-1;for(var h,d,p=f.MAX_VALUE,g=0;g<l.length;g++)l[g]<p?(p=l[g],h=1,d=g):l[g]==p&&h++;if(3==h&&0==p)0==l[0]&&0==l[1]&&0==l[2]?t=1:0==l[0]&&0==l[1]&&0==l[3]?t=0:0==l[0]&&0==l[2]&&0==l[3]?t=3:0==l[1]&&0==l[2]&&0==l[3]&&(t=2);else if(2==h&&0==p){var m=Math.floor(2*Math.random());t=0==l[0]&&0==l[1]?0==m?0:1:0==l[0]&&0==l[2]?0==m?0:2:0==l[0]&&0==l[3]?0==m?0:3:0==l[1]&&0==l[2]?0==m?1:2:0==l[1]&&0==l[3]?0==m?1:3:0==m?2:3}else t=4==h&&0==p?m=Math.floor(4*Math.random()):d;0==t?r.setCenter(n.getCenterX(),n.getCenterY()-n.getHeight()/2-c.DEFAULT_EDGE_LENGTH-r.getHeight()/2):1==t?r.setCenter(n.getCenterX()+n.getWidth()/2+c.DEFAULT_EDGE_LENGTH+r.getWidth()/2,n.getCenterY()):2==t?r.setCenter(n.getCenterX(),n.getCenterY()+n.getHeight()/2+c.DEFAULT_EDGE_LENGTH+r.getHeight()/2):r.setCenter(n.getCenterX()-n.getWidth()/2-c.DEFAULT_EDGE_LENGTH-r.getWidth()/2,n.getCenterY())},e.exports=A},function(e,t,n){var r={};r.layoutBase=n(0),r.CoSEConstants=n(1),r.CoSEEdge=n(2),r.CoSEGraph=n(3),r.CoSEGraphManager=n(4),r.CoSELayout=n(6),r.CoSENode=n(5),e.exports=r}])})}(oFt)),oFt.exports))}(0,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(t,n){t.exports=e},function(e,t,n){var r=n(0).layoutBase.LayoutConstants,i=n(0).layoutBase.FDLayoutConstants,o=n(0).CoSEConstants,a=n(0).CoSELayout,s=n(0).CoSENode,l=n(0).layoutBase.PointD,c=n(0).layoutBase.DimensionD,u={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function h(e){this.options=function(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n}(u,e),d(this.options)}var d=function(e){null!=e.nodeRepulsion&&(o.DEFAULT_REPULSION_STRENGTH=i.DEFAULT_REPULSION_STRENGTH=e.nodeRepulsion),null!=e.idealEdgeLength&&(o.DEFAULT_EDGE_LENGTH=i.DEFAULT_EDGE_LENGTH=e.idealEdgeLength),null!=e.edgeElasticity&&(o.DEFAULT_SPRING_STRENGTH=i.DEFAULT_SPRING_STRENGTH=e.edgeElasticity),null!=e.nestingFactor&&(o.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=e.nestingFactor),null!=e.gravity&&(o.DEFAULT_GRAVITY_STRENGTH=i.DEFAULT_GRAVITY_STRENGTH=e.gravity),null!=e.numIter&&(o.MAX_ITERATIONS=i.MAX_ITERATIONS=e.numIter),null!=e.gravityRange&&(o.DEFAULT_GRAVITY_RANGE_FACTOR=i.DEFAULT_GRAVITY_RANGE_FACTOR=e.gravityRange),null!=e.gravityCompound&&(o.DEFAULT_COMPOUND_GRAVITY_STRENGTH=i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=e.gravityCompound),null!=e.gravityRangeCompound&&(o.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=e.gravityRangeCompound),null!=e.initialEnergyOnIncremental&&(o.DEFAULT_COOLING_FACTOR_INCREMENTAL=i.DEFAULT_COOLING_FACTOR_INCREMENTAL=e.initialEnergyOnIncremental),"draft"==e.quality?r.QUALITY=0:"proof"==e.quality?r.QUALITY=2:r.QUALITY=1,o.NODE_DIMENSIONS_INCLUDE_LABELS=i.NODE_DIMENSIONS_INCLUDE_LABELS=r.NODE_DIMENSIONS_INCLUDE_LABELS=e.nodeDimensionsIncludeLabels,o.DEFAULT_INCREMENTAL=i.DEFAULT_INCREMENTAL=r.DEFAULT_INCREMENTAL=!e.randomize,o.ANIMATE=i.ANIMATE=r.ANIMATE=e.animate,o.TILE=e.tile,o.TILING_PADDING_VERTICAL="function"==typeof e.tilingPaddingVertical?e.tilingPaddingVertical.call():e.tilingPaddingVertical,o.TILING_PADDING_HORIZONTAL="function"==typeof e.tilingPaddingHorizontal?e.tilingPaddingHorizontal.call():e.tilingPaddingHorizontal};h.prototype.run=function(){var e,t,n=this.options;this.idToLNode={};var r=this.layout=new a,i=this;i.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var o=r.newGraphManager();this.gm=o;var s=this.options.eles.nodes(),l=this.options.eles.edges();this.root=o.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(s),r);for(var c=0;c<l.length;c++){var u=l[c],h=this.idToLNode[u.data("source")],d=this.idToLNode[u.data("target")];h!==d&&0==h.getEdgesBetween(d).length&&(o.add(r.newEdge(),h,d).id=u.id())}var p=function(e,t){"number"==typeof e&&(e=t);var n=e.data("id"),r=i.idToLNode[n];return{x:r.getRect().getCenterX(),y:r.getRect().getCenterY()}},f=function o(){for(var a,s=function(){n.fit&&n.cy.fit(n.eles,n.padding),e||(e=!0,i.cy.one("layoutready",n.ready),i.cy.trigger({type:"layoutready",layout:i}))},l=i.options.refresh,c=0;c<l&&!a;c++)a=i.stopped||i.layout.tick();if(a)return r.checkLayoutSuccess()&&!r.isSubLayout&&r.doPostLayout(),r.tilingPostLayout&&r.tilingPostLayout(),r.isLayoutFinished=!0,i.options.eles.nodes().positions(p),s(),i.cy.one("layoutstop",i.options.stop),i.cy.trigger({type:"layoutstop",layout:i}),t&&cancelAnimationFrame(t),void(e=!1);var u=i.layout.getPositionsData();n.eles.nodes().positions(function(e,t){if("number"==typeof e&&(e=t),!e.isParent()){for(var n=e.id(),r=u[n],i=e;null==r&&(r=u[i.data("parent")]||u["DummyCompound_"+i.data("parent")],u[n]=r,null!=(i=i.parent()[0])););return null!=r?{x:r.x,y:r.y}:{x:e.position("x"),y:e.position("y")}}}),s(),t=requestAnimationFrame(o)};return r.addListener("layoutstarted",function(){"during"===i.options.animate&&(t=requestAnimationFrame(f))}),r.runLayout(),"during"!==this.options.animate&&(i.options.eles.nodes().not(":parent").layoutPositions(i,i.options,p),e=!1),this},h.prototype.getTopMostNodes=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].id()]=!0;return e.filter(function(e,n){"number"==typeof e&&(e=n);for(var r=e.parent()[0];null!=r;){if(t[r.id()])return!1;r=r.parent()[0]}return!0})},h.prototype.processChildrenList=function(e,t,n){for(var r=t.length,i=0;i<r;i++){var o,a,u=t[i],h=u.children(),d=u.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if((o=null!=u.outerWidth()&&null!=u.outerHeight()?e.add(new s(n.graphManager,new l(u.position("x")-d.w/2,u.position("y")-d.h/2),new c(parseFloat(d.w),parseFloat(d.h)))):e.add(new s(this.graphManager))).id=u.data("id"),o.paddingLeft=parseInt(u.css("padding")),o.paddingTop=parseInt(u.css("padding")),o.paddingRight=parseInt(u.css("padding")),o.paddingBottom=parseInt(u.css("padding")),this.options.nodeDimensionsIncludeLabels&&u.isParent()){var p=u.boundingBox({includeLabels:!0,includeNodes:!1}).w,f=u.boundingBox({includeLabels:!0,includeNodes:!1}).h,g=u.css("text-halign");o.labelWidth=p,o.labelHeight=f,o.labelPos=g}this.idToLNode[u.data("id")]=o,isNaN(o.rect.x)&&(o.rect.x=0),isNaN(o.rect.y)&&(o.rect.y=0),null!=h&&h.length>0&&(a=n.getGraphManager().add(n.newGraph(),o),this.processChildrenList(a,h,n))}},h.prototype.stop=function(){return this.stopped=!0,this};var p=function(e){e("layout","cose-bilkent",h)};"undefined"!=typeof cytoscape&&p(cytoscape),e.exports=p}])})}(iFt)),iFt.exports);function hFt(e,t){e.forEach(e=>{const n={id:e.id,labelText:e.label,height:e.height,width:e.width,padding:e.padding??0};Object.keys(e).forEach(t=>{["id","label","height","width","padding","x","y"].includes(t)||(n[t]=e[t])}),t.add({group:"nodes",data:n,position:{x:e.x??0,y:e.y??0}})})}function dFt(e,t){e.forEach(e=>{const n={id:e.id,source:e.start,target:e.end};Object.keys(e).forEach(t=>{["id","start","end"].includes(t)||(n[t]=e[t])}),t.add({group:"edges",data:n})})}function pFt(e){return new Promise(t=>{const n=GDe("body").append("div").attr("id","cy").attr("style","display:none"),r=nFt({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});n.remove(),hFt(e.nodes,r),dFt(e.edges,r),r.nodes().forEach(function(e){e.layoutDimensions=()=>{const t=e.data();return{w:t.width,h:t.height}}});r.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),r.ready(e=>{ORe.info("Cytoscape ready",e),t(r)})})}function fFt(e){return e.nodes().map(e=>{const t=e.data(),n=e.position(),r={id:t.id,x:n.x,y:n.y};return Object.keys(t).forEach(e=>{"id"!==e&&(r[e]=t[e])}),r})}function gFt(e){return e.edges().map(e=>{const t=e.data(),n=e._private.rscratch,r={id:t.id,source:t.source,target:t.target,startX:n.startX,startY:n.startY,midX:n.midX,midY:n.midY,endX:n.endX,endY:n.endY};return Object.keys(t).forEach(e=>{["id","source","target"].includes(e)||(r[e]=t[e])}),r})}async function mFt(e,t){ORe.debug("Starting cose-bilkent layout algorithm");try{OFt(e);const t=await pFt(e),n=fFt(t),r=gFt(t);return ORe.debug(`Layout completed: ${n.length} nodes, ${r.length} edges`),{nodes:n,edges:r}}catch(n){throw ORe.error("Error in cose-bilkent layout algorithm:",n),n}}function OFt(e){if(!e)throw new Error("Layout data is required");if(!e.config)throw new Error("Configuration is required in layout data");if(!e.rootNode)throw new Error("Root node is required");if(!e.nodes||!Array.isArray(e.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(e.edges))throw new Error("Edges array is required in layout data");return!0}nFt.use(rk(uFt)),hRe(hFt,"addNodes"),hRe(dFt,"addEdges"),hRe(pFt,"createCytoscapeInstance"),hRe(fFt,"extractPositionedNodes"),hRe(gFt,"extractPositionedEdges"),hRe(mFt,"executeCoseBilkentLayout"),hRe(OFt,"validateLayoutData");var AFt=hRe(async(e,t,{insertCluster:n,insertEdge:r,insertEdgeLabel:i,insertMarkers:o,insertNode:a,log:s,positionEdgeLabel:l},{algorithm:c})=>{const u={},h={},d=t.select("g");o(d,e.markers,e.type,e.diagramId);const p=d.insert("g").attr("class","subgraphs"),f=d.insert("g").attr("class","edgePaths"),g=d.insert("g").attr("class","edgeLabels"),m=d.insert("g").attr("class","nodes");s.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(e.nodes.map(async t=>{if(t.isGroup){const e={...t};h[t.id]=e,u[t.id]=e,await n(p,t)}else{const n={...t};u[t.id]=n;const r=await a(m,t,{config:e.config,dir:e.direction||"TB"}),i=r.node().getBBox();n.width=i.width,n.height=i.height,n.domId=r,s.debug(`Node ${t.id} dimensions: ${i.width}x${i.height}`)}})),s.debug("Running cose-bilkent layout algorithm");const O={...e,nodes:e.nodes.map(e=>{const t=u[e.id];return{...e,width:t.width,height:t.height}})},A=await mFt(O,e.config);s.debug("Positioning nodes based on layout results"),A.nodes.forEach(e=>{const t=u[e.id];(null==t?void 0:t.domId)&&(t.domId.attr("transform",`translate(${e.x}, ${e.y})`),t.x=e.x,t.y=e.y,s.debug(`Positioned node ${t.id} at center (${e.x}, ${e.y})`))}),A.edges.forEach(t=>{const n=e.edges.find(e=>e.id===t.id);n&&(n.points=[{x:t.startX,y:t.startY},{x:t.midX,y:t.midY},{x:t.endX,y:t.endY}])}),s.debug("Inserting and positioning edges"),await Promise.all(e.edges.map(async t=>{await i(g,t);const n=u[t.start??""],o=u[t.end??""];if(n&&o){const i=A.edges.find(e=>e.id===t.id);if(i){s.debug("APA01 positionedEdge",i);const a={...t},c=r(f,a,h,e.type,n,o,e.diagramId);l(a,c)}else{const i={...t,points:[{x:n.x||0,y:n.y||0},{x:o.x||0,y:o.y||0}]},a=r(f,i,h,e.type,n,o,e.diagramId);l(i,a)}}})),s.debug("Cose-bilkent rendering completed")},"render"),yFt=AFt;const vFt=Object.freeze(Object.defineProperty({__proto__:null,render:yFt},Symbol.toStringTag,{value:"Module"}));var bFt=hRe((e,t)=>{const n=e.append("rect");if(n.attr("x",t.x),n.attr("y",t.y),n.attr("fill",t.fill),n.attr("stroke",t.stroke),n.attr("width",t.width),n.attr("height",t.height),t.name&&n.attr("name",t.name),t.rx&&n.attr("rx",t.rx),t.ry&&n.attr("ry",t.ry),void 0!==t.attrs)for(const r in t.attrs)n.attr(r,t.attrs[r]);return t.class&&n.attr("class",t.class),n},"drawRect"),xFt=hRe((e,t)=>{const n={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};bFt(e,n).lower()},"drawBackgroundRect"),wFt=hRe((e,t)=>{const n=t.text.replace(iIe," "),r=e.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class&&r.attr("class",t.class);const i=r.append("tspan");return i.attr("x",t.x+2*t.textMargin),i.text(n),r},"drawText"),kFt=hRe((e,t,n,r)=>{const i=e.append("image");i.attr("x",t),i.attr("y",n);const o=vVe.sanitizeUrl(r);i.attr("xlink:href",o)},"drawImage"),SFt=hRe((e,t,n,r)=>{const i=e.append("use");i.attr("x",t),i.attr("y",n);const o=vVe.sanitizeUrl(r);i.attr("xlink:href",`#${o}`)},"drawEmbeddedImage"),TFt=hRe(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),$Ft=hRe(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),_Ft=hRe(()=>{let e=GDe(".mermaidTooltip");return e.empty()&&(e=GDe("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),e},"createTooltip"),CFt=function(){var e=hRe(function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},"o"),t=[1,24],n=[1,25],r=[1,26],i=[1,27],o=[1,28],a=[1,63],s=[1,64],l=[1,65],u=[1,66],h=[1,67],d=[1,68],p=[1,69],f=[1,29],g=[1,30],m=[1,31],O=[1,32],A=[1,33],y=[1,34],v=[1,35],b=[1,36],x=[1,37],w=[1,38],k=[1,39],S=[1,40],T=[1,41],$=[1,42],_=[1,43],C=[1,44],Q=[1,45],P=[1,46],E=[1,47],R=[1,48],B=[1,50],I=[1,51],L=[1,52],D=[1,53],M=[1,54],N=[1,55],X=[1,56],F=[1,57],U=[1,58],z=[1,59],q=[1,60],V=[14,42],W=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],j=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Y=[1,82],Z=[1,83],G=[1,84],H=[1,85],K=[12,14,42],J=[12,14,33,42],ee=[12,14,33,42,76,77,79,80],te=[12,33],ne=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],re={trace:hRe(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:hRe(function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 3:r.setDirection("TB");break;case 4:r.setDirection("BT");break;case 5:r.setDirection("RL");break;case 6:r.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:r.setC4Type(o[s-3]);break;case 19:r.setTitle(o[s].substring(6)),this.$=o[s].substring(6);break;case 20:r.setAccDescription(o[s].substring(15)),this.$=o[s].substring(15);break;case 21:this.$=o[s].trim(),r.setTitle(this.$);break;case 22:case 23:this.$=o[s].trim(),r.setAccDescription(this.$);break;case 28:o[s].splice(2,0,"ENTERPRISE"),r.addPersonOrSystemBoundary(...o[s]),this.$=o[s];break;case 29:o[s].splice(2,0,"SYSTEM"),r.addPersonOrSystemBoundary(...o[s]),this.$=o[s];break;case 30:r.addPersonOrSystemBoundary(...o[s]),this.$=o[s];break;case 31:o[s].splice(2,0,"CONTAINER"),r.addContainerBoundary(...o[s]),this.$=o[s];break;case 32:r.addDeploymentNode("node",...o[s]),this.$=o[s];break;case 33:r.addDeploymentNode("nodeL",...o[s]),this.$=o[s];break;case 34:r.addDeploymentNode("nodeR",...o[s]),this.$=o[s];break;case 35:r.popBoundaryParseStack();break;case 39:r.addPersonOrSystem("person",...o[s]),this.$=o[s];break;case 40:r.addPersonOrSystem("external_person",...o[s]),this.$=o[s];break;case 41:r.addPersonOrSystem("system",...o[s]),this.$=o[s];break;case 42:r.addPersonOrSystem("system_db",...o[s]),this.$=o[s];break;case 43:r.addPersonOrSystem("system_queue",...o[s]),this.$=o[s];break;case 44:r.addPersonOrSystem("external_system",...o[s]),this.$=o[s];break;case 45:r.addPersonOrSystem("external_system_db",...o[s]),this.$=o[s];break;case 46:r.addPersonOrSystem("external_system_queue",...o[s]),this.$=o[s];break;case 47:r.addContainer("container",...o[s]),this.$=o[s];break;case 48:r.addContainer("container_db",...o[s]),this.$=o[s];break;case 49:r.addContainer("container_queue",...o[s]),this.$=o[s];break;case 50:r.addContainer("external_container",...o[s]),this.$=o[s];break;case 51:r.addContainer("external_container_db",...o[s]),this.$=o[s];break;case 52:r.addContainer("external_container_queue",...o[s]),this.$=o[s];break;case 53:r.addComponent("component",...o[s]),this.$=o[s];break;case 54:r.addComponent("component_db",...o[s]),this.$=o[s];break;case 55:r.addComponent("component_queue",...o[s]),this.$=o[s];break;case 56:r.addComponent("external_component",...o[s]),this.$=o[s];break;case 57:r.addComponent("external_component_db",...o[s]),this.$=o[s];break;case 58:r.addComponent("external_component_queue",...o[s]),this.$=o[s];break;case 60:r.addRel("rel",...o[s]),this.$=o[s];break;case 61:r.addRel("birel",...o[s]),this.$=o[s];break;case 62:r.addRel("rel_u",...o[s]),this.$=o[s];break;case 63:r.addRel("rel_d",...o[s]),this.$=o[s];break;case 64:r.addRel("rel_l",...o[s]),this.$=o[s];break;case 65:r.addRel("rel_r",...o[s]),this.$=o[s];break;case 66:r.addRel("rel_b",...o[s]),this.$=o[s];break;case 67:o[s].splice(0,1),r.addRel("rel",...o[s]),this.$=o[s];break;case 68:r.updateElStyle("update_el_style",...o[s]),this.$=o[s];break;case 69:r.updateRelStyle("update_rel_style",...o[s]),this.$=o[s];break;case 70:r.updateLayoutConfig("update_layout_config",...o[s]),this.$=o[s];break;case 71:this.$=[o[s]];break;case 72:o[s].unshift(o[s-1]),this.$=o[s];break;case 73:case 75:this.$=o[s].trim();break;case 74:let e={};e[o[s-1].trim()]=o[s].trim(),this.$=e;break;case 76:this.$=""}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:n,24:r,26:i,28:o,29:49,30:61,32:62,34:a,36:s,37:l,38:u,39:h,40:d,41:p,43:23,44:f,45:g,46:m,47:O,48:A,49:y,50:v,51:b,52:x,53:w,54:k,55:S,56:T,57:$,58:_,59:C,60:Q,61:P,62:E,63:R,64:B,65:I,66:L,67:D,68:M,69:N,70:X,71:F,72:U,73:z,74:q},{13:70,19:20,20:21,21:22,22:t,23:n,24:r,26:i,28:o,29:49,30:61,32:62,34:a,36:s,37:l,38:u,39:h,40:d,41:p,43:23,44:f,45:g,46:m,47:O,48:A,49:y,50:v,51:b,52:x,53:w,54:k,55:S,56:T,57:$,58:_,59:C,60:Q,61:P,62:E,63:R,64:B,65:I,66:L,67:D,68:M,69:N,70:X,71:F,72:U,73:z,74:q},{13:71,19:20,20:21,21:22,22:t,23:n,24:r,26:i,28:o,29:49,30:61,32:62,34:a,36:s,37:l,38:u,39:h,40:d,41:p,43:23,44:f,45:g,46:m,47:O,48:A,49:y,50:v,51:b,52:x,53:w,54:k,55:S,56:T,57:$,58:_,59:C,60:Q,61:P,62:E,63:R,64:B,65:I,66:L,67:D,68:M,69:N,70:X,71:F,72:U,73:z,74:q},{13:72,19:20,20:21,21:22,22:t,23:n,24:r,26:i,28:o,29:49,30:61,32:62,34:a,36:s,37:l,38:u,39:h,40:d,41:p,43:23,44:f,45:g,46:m,47:O,48:A,49:y,50:v,51:b,52:x,53:w,54:k,55:S,56:T,57:$,58:_,59:C,60:Q,61:P,62:E,63:R,64:B,65:I,66:L,67:D,68:M,69:N,70:X,71:F,72:U,73:z,74:q},{13:73,19:20,20:21,21:22,22:t,23:n,24:r,26:i,28:o,29:49,30:61,32:62,34:a,36:s,37:l,38:u,39:h,40:d,41:p,43:23,44:f,45:g,46:m,47:O,48:A,49:y,50:v,51:b,52:x,53:w,54:k,55:S,56:T,57:$,58:_,59:C,60:Q,61:P,62:E,63:R,64:B,65:I,66:L,67:D,68:M,69:N,70:X,71:F,72:U,73:z,74:q},{14:[1,74]},e(V,[2,13],{43:23,29:49,30:61,32:62,20:75,34:a,36:s,37:l,38:u,39:h,40:d,41:p,44:f,45:g,46:m,47:O,48:A,49:y,50:v,51:b,52:x,53:w,54:k,55:S,56:T,57:$,58:_,59:C,60:Q,61:P,62:E,63:R,64:B,65:I,66:L,67:D,68:M,69:N,70:X,71:F,72:U,73:z,74:q}),e(V,[2,14]),e(W,[2,16],{12:[1,76]}),e(V,[2,36],{12:[1,77]}),e(j,[2,19]),e(j,[2,20]),{25:[1,78]},{27:[1,79]},e(j,[2,23]),{35:80,75:81,76:Y,77:Z,79:G,80:H},{35:86,75:81,76:Y,77:Z,79:G,80:H},{35:87,75:81,76:Y,77:Z,79:G,80:H},{35:88,75:81,76:Y,77:Z,79:G,80:H},{35:89,75:81,76:Y,77:Z,79:G,80:H},{35:90,75:81,76:Y,77:Z,79:G,80:H},{35:91,75:81,76:Y,77:Z,79:G,80:H},{35:92,75:81,76:Y,77:Z,79:G,80:H},{35:93,75:81,76:Y,77:Z,79:G,80:H},{35:94,75:81,76:Y,77:Z,79:G,80:H},{35:95,75:81,76:Y,77:Z,79:G,80:H},{35:96,75:81,76:Y,77:Z,79:G,80:H},{35:97,75:81,76:Y,77:Z,79:G,80:H},{35:98,75:81,76:Y,77:Z,79:G,80:H},{35:99,75:81,76:Y,77:Z,79:G,80:H},{35:100,75:81,76:Y,77:Z,79:G,80:H},{35:101,75:81,76:Y,77:Z,79:G,80:H},{35:102,75:81,76:Y,77:Z,79:G,80:H},{35:103,75:81,76:Y,77:Z,79:G,80:H},{35:104,75:81,76:Y,77:Z,79:G,80:H},e(K,[2,59]),{35:105,75:81,76:Y,77:Z,79:G,80:H},{35:106,75:81,76:Y,77:Z,79:G,80:H},{35:107,75:81,76:Y,77:Z,79:G,80:H},{35:108,75:81,76:Y,77:Z,79:G,80:H},{35:109,75:81,76:Y,77:Z,79:G,80:H},{35:110,75:81,76:Y,77:Z,79:G,80:H},{35:111,75:81,76:Y,77:Z,79:G,80:H},{35:112,75:81,76:Y,77:Z,79:G,80:H},{35:113,75:81,76:Y,77:Z,79:G,80:H},{35:114,75:81,76:Y,77:Z,79:G,80:H},{35:115,75:81,76:Y,77:Z,79:G,80:H},{20:116,29:49,30:61,32:62,34:a,36:s,37:l,38:u,39:h,40:d,41:p,43:23,44:f,45:g,46:m,47:O,48:A,49:y,50:v,51:b,52:x,53:w,54:k,55:S,56:T,57:$,58:_,59:C,60:Q,61:P,62:E,63:R,64:B,65:I,66:L,67:D,68:M,69:N,70:X,71:F,72:U,73:z,74:q},{12:[1,118],33:[1,117]},{35:119,75:81,76:Y,77:Z,79:G,80:H},{35:120,75:81,76:Y,77:Z,79:G,80:H},{35:121,75:81,76:Y,77:Z,79:G,80:H},{35:122,75:81,76:Y,77:Z,79:G,80:H},{35:123,75:81,76:Y,77:Z,79:G,80:H},{35:124,75:81,76:Y,77:Z,79:G,80:H},{35:125,75:81,76:Y,77:Z,79:G,80:H},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(V,[2,15]),e(W,[2,17],{21:22,19:130,22:t,23:n,24:r,26:i,28:o}),e(V,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:n,24:r,26:i,28:o,34:a,36:s,37:l,38:u,39:h,40:d,41:p,44:f,45:g,46:m,47:O,48:A,49:y,50:v,51:b,52:x,53:w,54:k,55:S,56:T,57:$,58:_,59:C,60:Q,61:P,62:E,63:R,64:B,65:I,66:L,67:D,68:M,69:N,70:X,71:F,72:U,73:z,74:q}),e(j,[2,21]),e(j,[2,22]),e(K,[2,39]),e(J,[2,71],{75:81,35:132,76:Y,77:Z,79:G,80:H}),e(ee,[2,73]),{78:[1,133]},e(ee,[2,75]),e(ee,[2,76]),e(K,[2,40]),e(K,[2,41]),e(K,[2,42]),e(K,[2,43]),e(K,[2,44]),e(K,[2,45]),e(K,[2,46]),e(K,[2,47]),e(K,[2,48]),e(K,[2,49]),e(K,[2,50]),e(K,[2,51]),e(K,[2,52]),e(K,[2,53]),e(K,[2,54]),e(K,[2,55]),e(K,[2,56]),e(K,[2,57]),e(K,[2,58]),e(K,[2,60]),e(K,[2,61]),e(K,[2,62]),e(K,[2,63]),e(K,[2,64]),e(K,[2,65]),e(K,[2,66]),e(K,[2,67]),e(K,[2,68]),e(K,[2,69]),e(K,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(te,[2,28]),e(te,[2,29]),e(te,[2,30]),e(te,[2,31]),e(te,[2,32]),e(te,[2,33]),e(te,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(W,[2,18]),e(V,[2,38]),e(J,[2,72]),e(ee,[2,74]),e(K,[2,24]),e(K,[2,35]),e(ne,[2,25]),e(ne,[2,26],{12:[1,138]}),e(ne,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:hRe(function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},"parseError"),parse:hRe(function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),h=Object.create(this.lexer),d={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d.yy[p]=this.yy[p]);h.setInput(e,d.yy),d.yy.lexer=h,d.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var f=h.yylloc;o.push(f);var g=h.options&&h.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||h.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,hRe(function(e){n.length=n.length-2*e,i.length=i.length-e,o.length=o.length-e},"popStack"),hRe(m,"lex");for(var O,A,y,v,b,x,w,k,S={};;){if(A=n[n.length-1],this.defaultActions[A]?y=this.defaultActions[A]:(null==O&&(O=m()),y=a[A]&&a[A][O]),void 0===y||!y.length||!y[0]){var T="";for(b in k=[],a[A])this.terminals_[b]&&b>2&&k.push("'"+this.terminals_[b]+"'");T=h.showPosition?"Parse error on line "+(l+1)+":\n"+h.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[O]||O)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==O?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[O]||O,line:h.yylineno,loc:f,expected:k})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+O);switch(y[0]){case 1:n.push(O),i.push(h.yytext),o.push(h.yylloc),n.push(y[1]),O=null,c=h.yyleng,s=h.yytext,l=h.yylineno,f=h.yylloc;break;case 2:if(x=this.productions_[y[1]][1],S.$=i[i.length-x],S._$={first_line:o[o.length-(x||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(x||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(x||1)].range[0],o[o.length-1].range[1]]),void 0!==(v=this.performAction.apply(S,[s,c,l,d.yy,y[1],i,o].concat(u))))return v;x&&(n=n.slice(0,-1*x*2),i=i.slice(0,-1*x),o=o.slice(0,-1*x)),n.push(this.productions_[y[1]][0]),i.push(S.$),o.push(S._$),w=a[n[n.length-2]][n[n.length-1]],n.push(w);break;case 3:return!0}}return!0},"parse")},ie=function(){var e={EOF:1,parseError:hRe(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:hRe(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:hRe(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:hRe(function(e){var t=e.length,n=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 r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:hRe(function(){return this._more=!0,this},"more"),reject:hRe(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:hRe(function(e){this.unput(this.match.slice(e))},"less"),pastInput:hRe(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:hRe(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:hRe(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:hRe(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.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],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},"test_match"),next:hRe(function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&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:hRe(function(){var e=this.next();return e||this.lex()},"lex"),begin:hRe(function(e){this.conditionStack.push(e)},"begin"),popState:hRe(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:hRe(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:hRe(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:hRe(function(e){this.begin(e)},"pushState"),stateStackSize:hRe(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:hRe(function(e,t,n,r){switch(n){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 73:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 16:case 70:break;case 14:c;break;case 15:return 12;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:case 53:return this.begin("rel_u"),66;case 54:case 55:return this.begin("rel_d"),67;case 56:case 57:return this.begin("rel_l"),68;case 58:case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:case 79:this.popState(),this.popState();break;case 69:case 71:return 80;case 72:this.begin("string");break;case 74:case 80:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[65,66,67,68],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return e}();function oe(){this.yy={}}return re.lexer=ie,hRe(oe,"Parser"),oe.prototype=re,re.Parser=oe,new oe}();CFt.parser=CFt;var QFt,PFt=CFt,EFt=hRe(e=>JIe()[e],"getRequiredConfig"),RFt=hRe((e,t)=>{for(const[n,r]of Object.entries(t))if(void 0!==r)if("object"==typeof r){const[t,n]=Object.entries(r)[0];e[t]=n}else e[n]=r},"assignAttributes"),BFt=hRe(()=>({alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}),"createGlobalBoundary"),IFt=[],LFt=[""],DFt="global",MFt="",NFt=[BFt()],XFt=[],FFt="",UFt=!1,zFt=4,qFt=2,VFt=hRe(function(){return QFt},"getC4Type"),WFt=hRe(function(e){const t=uIe(e,JIe());QFt=t},"setC4Type"),jFt=hRe(function(e,t,n,r,i,o,a,s,l){if(null==e||null==t||null==n||null==r)return;let c={};const u=XFt.find(e=>e.from===t&&e.to===n);if(u?c=u:XFt.push(c),c.type=e,c.from=t,c.to=n,c.label={text:r},null==i)c.techn={text:""};else if("object"==typeof i){const[e,t]=Object.entries(i)[0];c[e]={text:t}}else c.techn={text:i};if(null==o)c.descr={text:""};else if("object"==typeof o){const[e,t]=Object.entries(o)[0];c[e]={text:t}}else c.descr={text:o};RFt(c,{sprite:a,tags:s,link:l}),c.wrap=mUt()},"addRel"),YFt=hRe(function(e,t,n,r,i,o,a){if(null===t||null===n)return;let s={};const l=IFt.find(e=>e.alias===t);if(l&&t===l.alias?s=l:(s.alias=t,IFt.push(s)),s.label=null==n?{text:""}:{text:n},null==r)s.descr={text:""};else if("object"==typeof r){const[e,t]=Object.entries(r)[0];s[e]={text:t}}else s.descr={text:r};RFt(s,{sprite:i,tags:o,link:a}),s.typeC4Shape={text:e},s.parentBoundary=DFt,s.wrap=mUt()},"addPersonOrSystem"),ZFt=hRe(function(e,t,n,r,i,o,a,s){if(null===t||null===n)return;let l={};const c=IFt.find(e=>e.alias===t);if(c&&t===c.alias?l=c:(l.alias=t,IFt.push(l)),l.label=null==n?{text:""}:{text:n},null==r)l.techn={text:""};else if("object"==typeof r){const[e,t]=Object.entries(r)[0];l[e]={text:t}}else l.techn={text:r};if(null==i)l.descr={text:""};else if("object"==typeof i){const[e,t]=Object.entries(i)[0];l[e]={text:t}}else l.descr={text:i};RFt(l,{sprite:o,tags:a,link:s}),l.wrap=mUt(),l.typeC4Shape={text:e},l.parentBoundary=DFt},"addContainer"),GFt=hRe(function(e,t,n,r,i,o,a,s){if(null===t||null===n)return;let l={};const c=IFt.find(e=>e.alias===t);if(c&&t===c.alias?l=c:(l.alias=t,IFt.push(l)),l.label=null==n?{text:""}:{text:n},null==r)l.techn={text:""};else if("object"==typeof r){const[e,t]=Object.entries(r)[0];l[e]={text:t}}else l.techn={text:r};if(null==i)l.descr={text:""};else if("object"==typeof i){const[e,t]=Object.entries(i)[0];l[e]={text:t}}else l.descr={text:i};RFt(l,{sprite:o,tags:a,link:s}),l.wrap=mUt(),l.typeC4Shape={text:e},l.parentBoundary=DFt},"addComponent"),HFt=hRe(function(e,t,n,r,i){if(null===e||null===t)return;let o={};const a=NFt.find(t=>t.alias===e);if(a&&e===a.alias?o=a:(o.alias=e,NFt.push(o)),o.label=null==t?{text:""}:{text:t},null==n)o.type={text:"system"};else if("object"==typeof n){const[e,t]=Object.entries(n)[0];o[e]={text:t}}else o.type={text:n};RFt(o,{tags:r,link:i}),o.parentBoundary=DFt,o.wrap=mUt(),MFt=DFt,DFt=e,LFt.push(MFt)},"addPersonOrSystemBoundary"),KFt=hRe(function(e,t,n,r,i){if(null===e||null===t)return;let o={};const a=NFt.find(t=>t.alias===e);if(a&&e===a.alias?o=a:(o.alias=e,NFt.push(o)),o.label=null==t?{text:""}:{text:t},null==n)o.type={text:"container"};else if("object"==typeof n){const[e,t]=Object.entries(n)[0];o[e]={text:t}}else o.type={text:n};RFt(o,{tags:r,link:i}),o.parentBoundary=DFt,o.wrap=mUt(),MFt=DFt,DFt=e,LFt.push(MFt)},"addContainerBoundary"),JFt=hRe(function(e,t,n,r,i,o,a,s){if(null===t||null===n)return;let l={};const c=NFt.find(e=>e.alias===t);if(c&&t===c.alias?l=c:(l.alias=t,NFt.push(l)),l.label=null==n?{text:""}:{text:n},null==r)l.type={text:"node"};else if("object"==typeof r){const[e,t]=Object.entries(r)[0];l[e]={text:t}}else l.type={text:r};if(null==i)l.descr={text:""};else if("object"==typeof i){const[e,t]=Object.entries(i)[0];l[e]={text:t}}else l.descr={text:i};RFt(l,{tags:a,link:s}),l.nodeType=e,l.parentBoundary=DFt,l.wrap=mUt(),MFt=DFt,DFt=t,LFt.push(MFt)},"addDeploymentNode"),eUt=hRe(function(){DFt=MFt,LFt.pop(),MFt=LFt.pop(),LFt.push(MFt)},"popBoundaryParseStack"),tUt=hRe(function(e,t,n,r,i,o,a,s,l,c,u){let h=IFt.find(e=>e.alias===t);if(void 0!==h||(h=NFt.find(e=>e.alias===t),void 0!==h)){if(null!=n)if("object"==typeof n){const[e,t]=Object.entries(n)[0];h[e]=t}else h.bgColor=n;if(null!=r)if("object"==typeof r){const[e,t]=Object.entries(r)[0];h[e]=t}else h.fontColor=r;if(null!=i)if("object"==typeof i){const[e,t]=Object.entries(i)[0];h[e]=t}else h.borderColor=i;if(null!=o)if("object"==typeof o){const[e,t]=Object.entries(o)[0];h[e]=t}else h.shadowing=o;if(null!=a)if("object"==typeof a){const[e,t]=Object.entries(a)[0];h[e]=t}else h.shape=a;if(null!=s)if("object"==typeof s){const[e,t]=Object.entries(s)[0];h[e]=t}else h.sprite=s;if(null!=l)if("object"==typeof l){const[e,t]=Object.entries(l)[0];h[e]=t}else h.techn=l;if(null!=c)if("object"==typeof c){const[e,t]=Object.entries(c)[0];h[e]=t}else h.legendText=c;if(null!=u)if("object"==typeof u){const[e,t]=Object.entries(u)[0];h[e]=t}else h.legendSprite=u}},"updateElStyle"),nUt=hRe(function(e,t,n,r,i,o,a){const s=XFt.find(e=>e.from===t&&e.to===n);if(void 0!==s){if(null!=r)if("object"==typeof r){const[e,t]=Object.entries(r)[0];s[e]=t}else s.textColor=r;if(null!=i)if("object"==typeof i){const[e,t]=Object.entries(i)[0];s[e]=t}else s.lineColor=i;if(null!=o)if("object"==typeof o){const[e,t]=Object.entries(o)[0];s[e]=parseInt(t)}else s.offsetX=parseInt(o);if(null!=a)if("object"==typeof a){const[e,t]=Object.entries(a)[0];s[e]=parseInt(t)}else s.offsetY=parseInt(a)}},"updateRelStyle"),rUt=hRe(function(e,t,n){let r=zFt,i=qFt;if("object"==typeof t){const e=Object.values(t)[0];r=parseInt(e)}else r=parseInt(t);if("object"==typeof n){const e=Object.values(n)[0];i=parseInt(e)}else i=parseInt(n);r>=1&&(zFt=r),i>=1&&(qFt=i)},"updateLayoutConfig"),iUt=hRe(function(){return zFt},"getC4ShapeInRow"),oUt=hRe(function(){return qFt},"getC4BoundaryInRow"),aUt=hRe(function(){return DFt},"getCurrentBoundaryParse"),sUt=hRe(function(){return MFt},"getParentBoundaryParse"),lUt=hRe(function(e){return null==e?IFt:IFt.filter(t=>t.parentBoundary===e)},"getC4ShapeArray"),cUt=hRe(function(e){return IFt.find(t=>t.alias===e)},"getC4Shape"),uUt=hRe(function(e){return Object.keys(lUt(e))},"getC4ShapeKeys"),hUt=hRe(function(e){return null==e?NFt:NFt.filter(t=>t.parentBoundary===e)},"getBoundaries"),dUt=hUt,pUt=hRe(function(){return XFt},"getRels"),fUt=hRe(function(){return FFt},"getTitle"),gUt=hRe(function(e){UFt=e},"setWrap"),mUt=hRe(function(){return UFt},"autoWrap"),OUt=hRe(function(){IFt=[],NFt=[BFt()],MFt="",DFt="global",LFt=[""],XFt=[],LFt=[""],FFt="",UFt=!1,zFt=4,qFt=2},"clear"),AUt=hRe(function(e){const t=uIe(e,JIe());FFt=t},"setTitle"),yUt={addPersonOrSystem:YFt,addPersonOrSystemBoundary:HFt,addContainer:ZFt,addContainerBoundary:KFt,addComponent:GFt,addDeploymentNode:JFt,popBoundaryParseStack:eUt,addRel:jFt,updateElStyle:tUt,updateRelStyle:nUt,updateLayoutConfig:rUt,autoWrap:mUt,setWrap:gUt,getC4ShapeArray:lUt,getC4Shape:cUt,getC4ShapeKeys:uUt,getBoundaries:hUt,getBoundarys:dUt,getCurrentBoundaryParse:aUt,getParentBoundaryParse:sUt,getRels:pUt,getTitle:fUt,getC4Type:VFt,getC4ShapeInRow:iUt,getC4BoundaryInRow:oUt,setAccTitle:VIe,getAccTitle:WIe,getAccDescription:YIe,setAccDescription:jIe,getConfig:hRe(()=>EFt("c4"),"getConfig"),clear:OUt,LINETYPE:{SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:AUt,setC4Type:WFt},vUt=hRe(function(e,t){return bFt(e,t)},"drawRect"),bUt=hRe((e,t,n,r)=>{const i=e.append("g");let o=0;for(const a of t){const e=a.textColor?a.textColor:"#444444",t=a.lineColor?a.lineColor:"#444444",s=a.offsetX?parseInt(String(a.offsetX)):0,l=a.offsetY?parseInt(String(a.offsetY)):0,c="";if(0===o){const e=i.append("line");e.attr("x1",a.startPoint.x),e.attr("y1",a.startPoint.y),e.attr("x2",a.endPoint.x),e.attr("y2",a.endPoint.y),e.attr("stroke-width","1"),e.attr("stroke",t),e.style("fill","none"),"rel_b"!==a.type&&e.attr("marker-end","url("+c+"#"+r+"-arrowhead)"),"birel"!==a.type&&"rel_b"!==a.type||e.attr("marker-start","url("+c+"#"+r+"-arrowend)"),o=-1}else{const e=i.append("path");e.attr("fill","none").attr("stroke-width","1").attr("stroke",t).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",a.startPoint.x).replaceAll("starty",a.startPoint.y).replaceAll("controlx",a.startPoint.x+(a.endPoint.x-a.startPoint.x)/2-(a.endPoint.x-a.startPoint.x)/4).replaceAll("controly",a.startPoint.y+(a.endPoint.y-a.startPoint.y)/2).replaceAll("stopx",a.endPoint.x).replaceAll("stopy",a.endPoint.y)),"rel_b"!==a.type&&e.attr("marker-end","url("+c+"#"+r+"-arrowhead)"),"birel"!==a.type&&"rel_b"!==a.type||e.attr("marker-start","url("+c+"#"+r+"-arrowend)")}const u=a.label.width;let h=n.messageFont();QUt(n)(a.label.text,i,Math.min(a.startPoint.x,a.endPoint.x)+Math.abs(a.endPoint.x-a.startPoint.x)/2+s,Math.min(a.startPoint.y,a.endPoint.y)+Math.abs(a.endPoint.y-a.startPoint.y)/2+l,u,a.label.height,{fill:e},h),a.techn&&""!==a.techn.text&&(h=n.messageFont(),QUt(n)("["+a.techn.text+"]",i,Math.min(a.startPoint.x,a.endPoint.x)+Math.abs(a.endPoint.x-a.startPoint.x)/2+s,Math.min(a.startPoint.y,a.endPoint.y)+Math.abs(a.endPoint.y-a.startPoint.y)/2+n.messageFontSize+5+l,Math.max(u,a.techn.width),a.techn.height,{fill:e,"font-style":"italic"},h))}},"drawRels"),xUt=hRe(function(e,t,n){const r=e.append("g"),i=t.bgColor?t.bgColor:"none",o=t.borderColor?t.borderColor:"#444444",a=t.fontColor?t.fontColor:"black";let s={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(s={"stroke-width":1});const l={x:t.x,y:t.y,fill:i,stroke:o,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:s};vUt(r,l);let c=n.boundaryFont();c.fontWeight="bold",c.fontSize=c.fontSize+2,c.fontColor=a,QUt(n)(t.label.text,r,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},c),t.type&&""!==t.type.text&&(c=n.boundaryFont(),c.fontColor=a,QUt(n)(t.type.text,r,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},c)),t.descr&&""!==t.descr.text&&(c=n.boundaryFont(),c.fontSize=c.fontSize-2,c.fontColor=a,QUt(n)(t.descr.text,r,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},c))},"drawBoundary"),wUt=hRe(function(e,t){e.append("defs").append("symbol").attr("id",t+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),kUt=hRe(function(e,t){e.append("defs").append("symbol").attr("id",t+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),SUt=hRe(function(e,t){e.append("defs").append("symbol").attr("id",t+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),TUt=hRe(function(e,t){e.append("defs").append("marker").attr("id",t+"-arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),$Ut=hRe(function(e,t){e.append("defs").append("marker").attr("id",t+"-arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),_Ut=hRe(function(e,t){e.append("defs").append("marker").attr("id",t+"-filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),CUt=hRe(function(e,t){const n=e.append("defs").append("marker").attr("id",t+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);n.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),n.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),QUt=function(){function e(e,t,n,i,o,a,s){r(t.append("text").attr("x",n+o/2).attr("y",i+a/2+5).style("text-anchor","middle").text(e),s)}function t(e,t,n,i,o,a,s,l){const{fontSize:c,fontFamily:u,fontWeight:h}=l,d=e.split(CIe.lineBreakRegex);for(let p=0;p<d.length;p++){const e=p*c-c*(d.length-1)/2,a=t.append("text").attr("x",n+o/2).attr("y",i).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",c).style("font-weight",h).style("font-family",u);a.append("tspan").attr("dy",e).text(d[p]).attr("alignment-baseline","mathematical"),r(a,s)}}function n(e,n,i,o,a,s,l,c){const u=n.append("switch"),h=u.append("foreignObject").attr("x",i).attr("y",o).attr("width",a).attr("height",s).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),t(e,u,i,o,a,0,l,c),r(h,l)}function r(e,t){for(const n in t)t.hasOwnProperty(n)&&e.attr(n,t[n])}return hRe(e,"byText"),hRe(t,"byTspan"),hRe(n,"byFo"),hRe(r,"_setTextAttrs"),function(r){return"fo"===r.textPlacement?n:"old"===r.textPlacement?e:t}}(),PUt={drawRect:vUt,drawBoundary:xUt,drawRels:bUt,insertArrowHead:TUt,insertArrowEnd:$Ut,insertArrowFilledHead:_Ut,insertArrowCrossHead:CUt,insertDatabaseIcon:wUt,insertComputerIcon:kUt,insertClockIcon:SUt},EUt=hRe((e,t)=>{var n;if("sandbox"===t){const t=null==(n=GDe("#i"+e).node())?void 0:n.contentDocument;if(!t)throw new Error(`Sandbox iframe #i${e} is missing its content document`);return{root:GDe(t.body),doc:t}}return{root:GDe("body"),doc:document}},"getDiagramRoot"),RUt=new Set(["system_queue","external_system_queue","container_queue","external_container_queue","component_queue","external_component_queue"]),BUt=new Set(["system_db","external_system_db","container_db","external_container_db","component_db","external_component_db"]),IUt={person:"person",box:"rounded",rounded:"rounded",cylinder:"cylinder",database:"cylinder",db:"cylinder",queue:"h-cyl",pipe:"h-cyl",component:"fr-rect"},LUt=hRe(e=>e?IUt[e.toLowerCase()]:void 0,"keywordShape"),DUt=hRe(e=>{const t=LUt(e.shape)??LUt(e.sprite);if(t)return t;if(e.tags)for(const r of e.tags.split(",")){const e=LUt(r.trim());if(e)return e}const n=e.typeC4Shape.text;return"person"===n||"external_person"===n?"person":BUt.has(n)?"cylinder":RUt.has(n)?"h-cyl":"rounded"},"resolveNodeShape"),MUt={person:"Person",system:"Software System",container:"Container",component:"Component"},NUt=hRe(e=>{const t=e.replace(/^external_/,"").replace(/_(db|queue)$/,"");return MUt[t]??t.replace(/_/g," ")},"stereotypeLabel"),XUt=hRe(e=>e.startsWith("external_"),"isExternal"),FUt=hRe(e=>{var t;const n=NUt(e.typeC4Shape.text);return(null==(t=e.techn)?void 0:t.text)?`[${n}: ${e.techn.text}]`:`[${n}]`},"stereotypeText"),UUt=["person","system","system_db","system_queue","container","container_db","container_queue","component","component_db","component_queue"].flatMap(e=>[e,`external_${e}`]),zUt=new Set(UUt),qUt=hRe(e=>zUt.has(e),"isC4ElementType"),VUt=hRe((e,t)=>{const n=e.typeC4Shape.text,r=e.bgColor??(qUt(n)&&t[`${n}_bg_color`]),i=e.borderColor??(qUt(n)&&t[`${n}_border_color`]),o=[];return r&&o.push(`fill:${r}`),i&&o.push(`stroke:${i}`),o.push(`color:${e.fontColor??"#FFFFFF"}`),o},"elementCssStyles"),WUt=hRe((e,t,n,r,i)=>{var o;const a=e.typeC4Shape.text,s=["c4-shape",`c4-${a}`];XUt(a)&&s.push("c4-external");const l=DUt(e),c=VUt(e,t);return"rounded"!==l&&"fr-rect"!==l||c.push("rx:12px","ry:12px"),{id:e.alias,label:e.label.text,stereotype:FUt(e),description:(null==(o=e.descr)?void 0:o.text)?[e.descr.text]:void 0,labelType:"string",isGroup:!1,shape:l,cssClasses:s.join(" "),cssStyles:c,padding:n,look:r,useHtmlLabels:!1,width:i}},"buildC4Node"),jUt=0,YUt=0,ZUt=4,GUt=2;CFt.yy=yUt;var HUt={},KUt=(hRe(v=class{constructor(e){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,JUt(e.db.getConfig())}setData(e,t,n,r){this.nextData.startx=this.data.startx=e,this.nextData.stopx=this.data.stopx=t,this.nextData.starty=this.data.starty=n,this.nextData.stopy=this.data.stopy=r}updateVal(e,t,n,r){void 0===e[t]?e[t]=n:e[t]=r(n,e[t])}insert(e){this.nextData.cnt=this.nextData.cnt+1;const t=this.nextData.stopx,n=this.data.widthLimit;let r=this.nextData.startx===this.nextData.stopx?t+e.margin:t+2*e.margin,i=r+e.width,o=this.nextData.starty+2*e.margin,a=o+e.height;(r>=n||i>=n||this.nextData.cnt>ZUt)&&(r=this.nextData.startx+e.margin+HUt.nextLinePaddingX,o=this.nextData.stopy+2*e.margin,this.nextData.stopx=i=r+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=a=o+e.height,this.nextData.cnt=1),e.x=r,e.y=o,this.updateVal(this.data,"startx",r,Math.min),this.updateVal(this.data,"starty",o,Math.min),this.updateVal(this.data,"stopx",i,Math.max),this.updateVal(this.data,"stopy",a,Math.max),this.updateVal(this.nextData,"startx",r,Math.min),this.updateVal(this.nextData,"starty",o,Math.min),this.updateVal(this.nextData,"stopx",i,Math.max),this.updateVal(this.nextData,"stopy",a,Math.max)}init(e){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},JUt(e.db.getConfig())}bumpLastMargin(e){this.data.stopx+=e,this.data.stopy+=e}},"Bounds"),v),JUt=hRe(function(e){jRe(HUt,e),(null==e?void 0:e.fontFamily)&&(HUt.personFontFamily=HUt.systemFontFamily=HUt.messageFontFamily=e.fontFamily),(null==e?void 0:e.fontSize)&&(HUt.personFontSize=HUt.systemFontSize=HUt.messageFontSize=e.fontSize),(null==e?void 0:e.fontWeight)&&(HUt.personFontWeight=HUt.systemFontWeight=HUt.messageFontWeight=e.fontWeight)},"setConf"),ezt=hRe(e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),"boundaryFont"),tzt=hRe(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont");function nzt(e,t,n,r,i){const o=t[e];if(!o.width)if(n)o.text=LWe(o.text,i,r),o.textLines=o.text.split(CIe.lineBreakRegex).length,o.width=i,o.height=MWe(o.text,r);else{const e=o.text.split(CIe.lineBreakRegex);o.textLines=e.length;let t=0;o.height=0,o.width=0;for(const n of e)o.width=Math.max(NWe(n,r),o.width),t=MWe(n,r),o.height=o.height+t}return o}hRe(nzt,"calcC4ShapeTextWH");var rzt=hRe(function(e,t,n){const r=n.data.startx,i=n.data.starty;t.x=r,t.y=i,t.width=n.data.stopx-r,t.height=n.data.stopy-i,t.label.y=HUt.c4ShapeMargin-35;const o=t.wrap&&HUt.wrap,a=ezt(HUt);a.fontSize=a.fontSize+2,a.fontWeight="bold";nzt("label",t,o,a,NWe(t.label.text,a)),PUt.drawBoundary(e,t,HUt)},"drawBoundary"),izt=hRe(async function(e,t,n,r){const i=JIe(),o=i.look??"classic",a={config:i},s=t.attr("id")??"",l=r.map(e=>n[Number(e)]),c=hRe(e=>{const t=e.shape?vKe[e.shape]:void 0;if(!t)throw new Error(`C4: no shape handler for "${e.shape}"`);return t},"shapeHandlerFor");await Promise.all(l.map(async e=>{const n=WUt(e,HUt,HUt.c4ShapePadding,o,HUt.width);n.domId=`${s}-${n.id}`;const r=await c(n)(t,n,a);e.width=n.width??HUt.width,e.height=n.height??HUt.height,e.margin=HUt.c4ShapeMargin,r.remove()}));for(const u of l)e.insert(u);await Promise.all(l.map(async e=>{const n=WUt(e,HUt,HUt.c4ShapePadding,o,HUt.width);n.domId=`${s}-${n.id}`,n.x=e.x+e.width/2,n.y=e.y+e.height/2;const r=t.append("g").attr("transform",`translate(${e.x+e.width/2}, ${e.y+e.height/2})`);await c(n)(r,n,a),e.intersect=n.intersect})),e.bumpLastMargin(HUt.c4ShapeMargin)},"drawC4ShapeArray"),ozt=(hRe(b=class{constructor(e,t){this.x=e,this.y=t}},"Point"),b),azt=hRe(function(e,t){if(!e.intersect)throw new Error(`C4 shape "${e.alias}" has no intersect function. Please report this to https://github.com/mermaid-js/mermaid/issues`);const{x:n,y:r}=e.intersect(t);return new ozt(n,r)},"getIntersectPoint"),szt=hRe(function(e,t){const n={x:0,y:0};n.x=t.x+t.width/2,n.y=t.y+t.height/2;const r=azt(e,n);n.x=e.x+e.width/2,n.y=e.y+e.height/2;return{startPoint:r,endPoint:azt(t,n)}},"getIntersectPoints"),lzt=hRe(function(e,t,n,r,i){const o=r.db.getC4Type();let a=0;for(const s of t){a+=1;const e=s.wrap&&HUt.wrap,t=tzt(HUt);"C4Dynamic"===o&&(s.label.text=a+": "+s.label.text);let r=NWe(s.label.text,t);nzt("label",s,e,t,r),s.techn&&""!==s.techn.text&&(r=NWe(s.techn.text,t),nzt("techn",s,e,t,r)),s.descr&&""!==s.descr.text&&(r=NWe(s.descr.text,t),nzt("descr",s,e,t,r));const i=n(s.from),l=n(s.to);if(!i||!l)throw new Error(`C4 rel "${s.from}" -> "${s.to}" references an unknown shape`);const c=szt(i,l);if(!c.startPoint||!c.endPoint)throw new Error(`Could not calculate intersection points for rel "${s.from}" -> "${s.to}"`);s.startPoint=c.startPoint,s.endPoint=c.endPoint}PUt.drawRels(e,t,HUt,i)},"drawRels");async function czt(e,t,n,r,i){const o=i.db,a=new KUt(i);a.data.widthLimit=n.data.widthLimit/Math.min(GUt,r.length);for(const[s,l]of r.entries()){let r=0;l.image={width:0,height:0,Y:0},l.sprite&&(l.image.width=48,l.image.height=48,l.image.Y=r,r=l.image.Y+l.image.height);const c=l.wrap&&HUt.wrap,u=ezt(HUt);u.fontSize=u.fontSize+2,u.fontWeight="bold";const h=nzt("label",l,c,u,a.data.widthLimit);if(h.Y=r+8,r=h.Y+h.height,l.type&&""!==l.type.text){l.type.text="["+l.type.text+"]";const e=nzt("type",l,c,ezt(HUt),a.data.widthLimit);e.Y=r+5,r=e.Y+e.height}if(l.descr&&""!==l.descr.text){const e=ezt(HUt);e.fontSize=e.fontSize-2;const t=nzt("descr",l,c,e,a.data.widthLimit);t.Y=r+20,r=t.Y+t.height}if(0==s||s%GUt===0){const e=n.data.startx+HUt.diagramMarginX,t=n.data.stopy+HUt.diagramMarginY+r;a.setData(e,e,t,t)}else{const e=a.data.stopx!==a.data.startx?a.data.stopx+HUt.diagramMarginX:a.data.startx,t=a.data.starty;a.setData(e,e,t,t)}a.name=l.alias;const d=o.getC4ShapeArray(l.alias),p=o.getC4ShapeKeys(l.alias);p.length>0&&await izt(a,e,d,p),t=l.alias;const f=o.getBoundaries(t);f.length>0&&await czt(e,t,a,f,i),"global"!==l.alias&&rzt(e,l,a),n.data.stopy=Math.max(a.data.stopy+HUt.c4ShapeMargin,n.data.stopy),n.data.stopx=Math.max(a.data.stopx+HUt.c4ShapeMargin,n.data.stopx),jUt=Math.max(jUt,n.data.stopx),YUt=Math.max(YUt,n.data.stopy)}}hRe(czt,"drawInsideBoundary");var uzt={drawPersonOrSystemArray:izt,drawBoundary:rzt,setConf:JUt,draw:hRe(async function(e,t,n,r){HUt=EFt("c4");const i=JIe().securityLevel,{root:o}=EUt(t,i),a=r.db;a.setWrap(HUt.wrap),ZUt=a.getC4ShapeInRow(),GUt=a.getC4BoundaryInRow(),ORe.debug(`C:${JSON.stringify(HUt,null,2)}`);const s=o.select(`[id="${t}"]`);PUt.insertComputerIcon(s,t),PUt.insertDatabaseIcon(s,t),PUt.insertClockIcon(s,t);const l=new KUt(r);l.setData(HUt.diagramMarginX,HUt.diagramMarginX,HUt.diagramMarginY,HUt.diagramMarginY),l.data.widthLimit=screen.availWidth,jUt=HUt.diagramMarginX,YUt=HUt.diagramMarginY;const c=a.getTitle(),u=a.getBoundaries("");await czt(s,"",l,u,r),PUt.insertArrowHead(s,t),PUt.insertArrowEnd(s,t),PUt.insertArrowCrossHead(s,t),PUt.insertArrowFilledHead(s,t),lzt(s,a.getRels(),a.getC4Shape,r,t),l.data.stopx=jUt,l.data.stopy=YUt;const h=l.data,d=h.startx,p=h.starty,f=YUt-p+2*HUt.diagramMarginY,g=jUt-d,m=g+2*HUt.diagramMarginX;c&&s.append("text").text(c).attr("x",g/2-4*HUt.diagramMarginX).attr("y",p+HUt.diagramMarginY),EIe(s,f,m,HUt.useMaxWidth);const O=c?60:0;s.attr("viewBox",d-HUt.diagramMarginX+" -"+(HUt.diagramMarginY+O)+" "+m+" "+(f+O)),ORe.debug("models:",h)},"draw")},hzt=hRe(()=>{const e=JIe().c4??{},t=new CSSStyleSheet;for(const n of UUt){const r=t.cssRules[t.insertRule(`.c4-shape.c4-${n} .label {}`,t.cssRules.length)],i=e[`${n}FontFamily`],o=e[`${n}FontSize`],a=e[`${n}FontWeight`];i&&r.style.setProperty("font-family",i),o&&r.style.setProperty("font-size","number"==typeof o?`${o}px`:o),a&&r.style.setProperty("font-weight",String(a))}return[...t.cssRules].filter(e=>e.style.length>0).map(e=>` ${e.cssText}`).join("\n")},"elementFontStyles"),dzt={parser:PFt,db:yUt,renderer:uzt,styles:hRe(e=>`.person {\n stroke: ${e.personBorder};\n fill: ${e.personBkg};\n }\n${hzt()}\n\n /* The element font colour is set inline per element (default white); the\n label text takes it via currentColor. */\n .c4-shape .label,\n .c4-shape .label text {\n color: inherit;\n fill: currentColor;\n }\n /* Structurizr typography: bold name, smaller stereotype/type and description lines. */\n .c4-shape .label .c4-name {\n font-weight: bold;\n }\n .c4-shape .label .c4-type {\n font-size: 0.75em;\n }\n .c4-shape .label .c4-descr {\n font-size: 0.82em;\n }\n .c4-shape .basic,\n .c4-shape rect,\n .c4-shape path,\n .c4-shape circle,\n .c4-shape ellipse,\n .c4-shape line {\n stroke-width: 2px;\n }\n`,"getStyles"),init:hRe(({c4:e,wrap:t})=>{uzt.setConf(e),yUt.setWrap(t)},"init")};const pzt=Object.freeze(Object.defineProperty({__proto__:null,diagram:dzt},Symbol.toStringTag,{value:"Module"}));var fzt=hRe(()=>"\n /* Font Awesome icon styling - consolidated */\n .label-icon {\n display: inline-block;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n }\n \n .node .label-icon path {\n fill: currentColor;\n stroke: revert;\n stroke-width: revert;\n }\n","getIconStyles"),gzt=hRe((e,t)=>{let n;"sandbox"===t&&(n=GDe("#i"+e));return GDe("sandbox"===t?n.nodes()[0].contentDocument.body:"body").select(`[id="${e}"]`)},"getDiagramElement"),mzt=hRe((e,t,n,r)=>{e.attr("class",n);const{width:i,height:o,x:a,y:s}=Ozt(e,t);EIe(e,o,i,r);const l=Azt(a,s,i,o,t);e.attr("viewBox",l),ORe.debug(`viewBox configured: ${l} with padding: ${t}`)},"setupViewPortForSVG"),Ozt=hRe((e,t)=>{var n;const r=(null==(n=e.node())?void 0:n.getBBox())||{width:0,height:0,x:0,y:0};return{width:r.width+2*t,height:r.height+2*t,x:r.x,y:r.y}},"calculateDimensionsWithPadding"),Azt=hRe((e,t,n,r,i)=>`${e-i} ${t-i} ${n} ${r}`,"createViewBox"),yzt=(x=class{constructor(){this.vertexCounter=0,this.config=JIe(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=VIe,this.setAccDescription=jIe,this.setDiagramTitle=ZIe,this.getAccTitle=WIe,this.getAccDescription=YIe,this.getDiagramTitle=GIe,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(e){return CIe.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(const t of this.vertices.values())if(t.id===e)return this.diagramId?`${this.diagramId}-${t.domId}`:t.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,t,n,r,i,o,a={},s){var l,c;if(!e||0===e.trim().length)return;let u;if(void 0!==s){let e;e=s.includes("\n")?s+"\n":"{\n"+s+"\n}",u=H1e(e,{schema:Y1e})}const h=this.subGraphLookup.get(e);if(h&&u)return void(h.metadata={...h.metadata,...u});const d=this.edges.find(t=>t.id===e);if(d){const e=u;return void 0!==(null==e?void 0:e.animate)&&(d.animate=e.animate),void 0!==(null==e?void 0:e.animation)&&(d.animation=e.animation),void(void 0!==(null==e?void 0:e.curve)&&(d.interpolate=e.curve))}let p,f=this.vertices.get(e);if(void 0===f&&(void 0===t&&void 0===n&&null!=r&&ORe.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`),f={id:e,labelType:"text",domId:"flowchart-"+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,f)),this.vertexCounter++,void 0!==t?(this.config=JIe(),p=this.sanitizeText(t.text.trim()),f.labelType=t.type,p.startsWith('"')&&p.endsWith('"')&&(p=p.substring(1,p.length-1)),f.text=p):void 0===f.text&&(f.text=e),void 0!==n&&(f.type=n),null!=r&&r.forEach(e=>{f.styles.push(e)}),null!=i&&i.forEach(e=>{f.classes.push(e)}),void 0!==o&&(f.dir=o),void 0===f.props?f.props=a:void 0!==a&&Object.assign(f.props,a),void 0!==u){if(u.shape){if(u.shape!==u.shape.toLowerCase()||u.shape.includes("_"))throw new Error(`No such shape: ${u.shape}. Shape names should be lowercase.`);if(!bKe(u.shape))throw new Error(`No such shape: ${u.shape}.`);f.type=null==u?void 0:u.shape}(null==u?void 0:u.label)&&(f.text=null==u?void 0:u.label,f.labelType=this.sanitizeNodeLabelType(null==u?void 0:u.labelType)),(null==u?void 0:u.icon)&&(f.icon=null==u?void 0:u.icon,(null==(l=u.label)?void 0:l.trim())||f.text!==e||(f.text="")),(null==u?void 0:u.form)&&(f.form=null==u?void 0:u.form),(null==u?void 0:u.pos)&&(f.pos=null==u?void 0:u.pos),(null==u?void 0:u.img)&&(f.img=null==u?void 0:u.img,(null==(c=u.label)?void 0:c.trim())||f.text!==e||(f.text="")),(null==u?void 0:u.constraint)&&(f.constraint=u.constraint),u.w&&(f.assetWidth=Number(u.w)),u.h&&(f.assetHeight=Number(u.h))}}addSingleLink(e,t,n,r){const i={start:e,end:t,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};ORe.info("abc78 Got edge...",i);const o=n.text;if(void 0!==o&&(i.text=this.sanitizeText(o.text.trim()),i.text.startsWith('"')&&i.text.endsWith('"')&&(i.text=i.text.substring(1,i.text.length-1)),i.labelType=this.sanitizeNodeLabelType(o.type)),void 0!==n&&(i.type=n.type,i.stroke=n.stroke,i.length=n.length>10?10:n.length),r&&!this.edges.some(e=>e.id===r))i.id=r,i.isUserDefinedId=!0;else{const e=this.edges.filter(e=>e.start===i.start&&e.end===i.end);0===e.length?i.id=HWe(i.start,i.end,{counter:0,prefix:"L"}):i.id=HWe(i.start,i.end,{counter:e.length+1,prefix:"L"})}if(!(this.edges.length<(this.config.maxEdges??500)))throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.\n\nInitialize mermaid with maxEdges set to a higher number to allow more edges.\nYou cannot set this config via configuration inside the diagram as it is a secure config.\nYou have to call mermaid.initialize.`);ORe.info("Pushing edge..."),this.edges.push(i)}isLinkData(e){return null!==e&&"object"==typeof e&&"id"in e&&"string"==typeof e.id}addLink(e,t,n){const r=this.isLinkData(n)?n.id.replace("@",""):void 0;ORe.info("addLink",e,t,r);for(const i of e)for(const o of t){const a=i===e[e.length-1],s=o===t[0];a&&s?this.addSingleLink(i,o,n,r):this.addSingleLink(i,o,n,void 0)}}updateLinkInterpolate(e,t){e.forEach(e=>{"default"===e?this.edges.defaultInterpolate=t:this.edges[e].interpolate=t})}updateLink(e,t){e.forEach(e=>{var n,r,i,o,a,s;if("number"==typeof e&&e>=this.edges.length)throw new Error(`The index ${e} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);"default"===e?this.edges.defaultStyle=t:(this.edges[e].style=t,((null==(r=null==(n=this.edges[e])?void 0:n.style)?void 0:r.length)??0)>0&&!(null==(o=null==(i=this.edges[e])?void 0:i.style)?void 0:o.some(e=>null==e?void 0:e.startsWith("fill")))&&(null==(s=null==(a=this.edges[e])?void 0:a.style)||s.push("fill:none")))})}addClass(e,t){const n=t.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach(e=>{let t=this.classes.get(e);void 0===t&&(t={id:e,styles:[],textStyles:[]},this.classes.set(e,t)),null!=n&&n.forEach(e=>{if(/color/.exec(e)){const n=e.replace("fill","bgFill");t.textStyles.push(n)}t.styles.push(e)})})}setDirection(e){this.direction=e.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),"TD"===this.direction&&(this.direction="TB")}setClass(e,t){for(const n of e.split(",")){const e=this.vertices.get(n);e&&e.classes.push(t);const r=this.edges.find(e=>e.id===n);r&&r.classes.push(t);const i=this.subGraphLookup.get(n);i&&i.classes.push(t)}}setTooltip(e,t){if(void 0!==t){t=this.sanitizeText(t);for(const n of e.split(","))this.tooltips.set("gen-1"===this.version?this.lookUpDomId(n):n,t)}}setClickFun(e,t,n){if("loose"!==JIe().securityLevel)return;if(void 0===t)return;let r=[];if("string"==typeof n){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<r.length;e++){let t=r[e].trim();t.startsWith('"')&&t.endsWith('"')&&(t=t.substr(1,t.length-2)),r[e]=t}}0===r.length&&r.push(e);const i=this.vertices.get(e);i&&(i.haveCallback=!0,this.funs.push(()=>{const n=this.lookUpDomId(e),i=document.querySelector(`[id="${n}"]`);null!==i&&i.addEventListener("click",()=>{YWe.runFunc(t,...r)},!1)}))}setLink(e,t,n){e.split(",").forEach(e=>{const r=this.vertices.get(e);void 0!==r&&(r.link=YWe.formatUrl(t,this.config),r.linkTarget=n)}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,t,n){e.split(",").forEach(e=>{this.setClickFun(e,t,n)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach(t=>{t(e)})}getDirection(){var e;return null==(e=this.direction)?void 0:e.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){const t=_Ft();GDe(e).select("svg").selectAll("g.node").on("mouseover",e=>{var n;const r=GDe(e.currentTarget),i=r.attr("title");if(null===i)return;const o=null==(n=e.currentTarget)?void 0:n.getBoundingClientRect();t.transition().duration(200).style("opacity",".9"),t.text(r.attr("title")).style("left",window.scrollX+o.left+(o.right-o.left)/2+"px").style("top",window.scrollY+o.bottom+"px"),t.html(XL.sanitize(i)),r.classed("hover",!0)}).on("mouseout",e=>{t.transition().duration(500).style("opacity",0);GDe(e.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=JIe(),qIe()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,t,n){let r=e.text.trim(),i=n.text;e===n&&/\s/.exec(n.text)&&(r=void 0);const o=hRe(e=>{const t={boolean:{},number:{},string:{}},n=[];let r;return{nodeList:e.filter(function(e){const i=typeof e;return e.stmt&&"dir"===e.stmt?(r=e.value,!1):""!==e.trim()&&(i in t?!t[i].hasOwnProperty(e)&&(t[i][e]=!0):!n.includes(e)&&n.push(e))}),dir:r}},"uniq")(t.flat()),a=o.nodeList;let s=o.dir;const l=JIe().flowchart??{};if(s=s??(l.inheritDir?this.getDirection()??JIe().direction??void 0:void 0),"gen-1"===this.version)for(let u=0;u<a.length;u++)a[u]=this.lookUpDomId(a[u]);r=r??"subGraph"+this.subCount,i=i||"",i=this.sanitizeText(i),this.subCount=this.subCount+1;const c={id:r,nodes:a,title:i.trim(),classes:[],dir:s,labelType:this.sanitizeNodeLabelType(null==n?void 0:n.type)};return ORe.info("Adding",c.id,c.nodes,c.dir),c.nodes=this.makeUniq(c,this.subGraphs).nodes,this.subGraphs.push(c),this.subGraphLookup.set(r,c),r}getPosForId(e){for(const[t,n]of this.subGraphs.entries())if(n.id===e)return t;return-1}indexNodes2(e,t){const n=this.subGraphs[t].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=t,this.subGraphs[t].id===e)return{result:!0,count:0};let r=0,i=1;for(;r<n.length;){const t=this.getPosForId(n[r]);if(t>=0){const n=this.indexNodes2(e,t);if(n.result)return{result:!0,count:i+n.count};i+=n.count}r+=1}return{result:!1,count:i}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return!!this.firstGraphFlag&&(this.firstGraphFlag=!1,!0)}destructStartLink(e){let t=e.trim(),n="arrow_open";switch(t[0]){case"<":n="arrow_point",t=t.slice(1);break;case"x":n="arrow_cross",t=t.slice(1);break;case"o":n="arrow_circle",t=t.slice(1)}let r="normal";return t.includes("=")&&(r="thick"),t.includes(".")&&(r="dotted"),{type:n,stroke:r}}countChar(e,t){const n=t.length;let r=0;for(let i=0;i<n;++i)t[i]===e&&++r;return r}destructEndLink(e){const t=e.trim();let n=t.slice(0,-1),r="arrow_open";switch(t.slice(-1)){case"x":r="arrow_cross",t.startsWith("x")&&(r="double_"+r,n=n.slice(1));break;case">":r="arrow_point",t.startsWith("<")&&(r="double_"+r,n=n.slice(1));break;case"o":r="arrow_circle",t.startsWith("o")&&(r="double_"+r,n=n.slice(1))}let i="normal",o=n.length-1;n.startsWith("=")&&(i="thick"),n.startsWith("~")&&(i="invisible");const a=this.countChar(".",n);return a&&(i="dotted",o=a),{type:r,stroke:i,length:o}}destructLink(e,t){const n=this.destructEndLink(e);let r;if(t){if(r=this.destructStartLink(t),r.stroke!==n.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===r.type)r.type=n.type;else{if(r.type!==n.type)return{type:"INVALID",stroke:"INVALID"};r.type="double_"+r.type}return"double_arrow"===r.type&&(r.type="double_arrow_point"),r.length=n.length,r}return n}exists(e,t){for(const n of e)if(n.nodes.includes(t))return!0;return!1}makeUniq(e,t){const n=[];return e.nodes.forEach((r,i)=>{this.exists(t,r)||n.push(e.nodes[i])}),{nodes:n}}getTypeFromVertex(e){if(e.img)return"imageSquare";if(e.icon)return"circle"===e.form?"iconCircle":"square"===e.form?"iconSquare":"rounded"===e.form?"iconRounded":"icon";switch(e.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return e.type}}findNode(e,t){return e.find(e=>e.id===t)}destructEdgeType(e){let t="none",n="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":n=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":t=e.replace("double_",""),n=t}return{arrowTypeStart:t,arrowTypeEnd:n}}addNodeFromVertex(e,t,n,r,i,o){var a;const s=n.get(e.id),l=r.get(e.id)??!1,c=this.findNode(t,e.id);if(c)c.cssStyles=e.styles,c.cssCompiledStyles=this.getCompiledStyles(e.classes),c.cssClasses=e.classes.join(" ");else{const n={id:e.id,label:e.text,labelType:e.labelType,labelStyle:"",parentId:s,padding:(null==(a=i.flowchart)?void 0:a.padding)||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:o,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint};l?t.push({...n,isGroup:!0,shape:"rect"}):t.push({...n,isGroup:!1,shape:this.getTypeFromVertex(e)})}}getCompiledStyles(e){let t=[];for(const n of e){const e=this.classes.get(n);(null==e?void 0:e.styles)&&(t=[...t,...e.styles??[]].map(e=>e.trim())),(null==e?void 0:e.textStyles)&&(t=[...t,...e.textStyles??[]].map(e=>e.trim()))}return t}getData(){var e;const t=JIe(),n=[],r=[],i=this.getSubGraphs(),o=new Map,a=new Map,s=new Map;for(const p of i)for(const e of p.nodes)this.subGraphLookup.has(e)&&s.set(e,p.id);const l=hRe(e=>{var t,n;return"collapsed"===(null==(n=null==(t=this.subGraphLookup.get(e))?void 0:t.metadata)?void 0:n.view)},"isCollapsed"),c=hRe(e=>{let t;const n=new Set;let r=e;for(;void 0!==r&&!n.has(r);)n.add(r),l(r)&&(t=r),r=s.get(r);return t},"outermostCollapsed"),u=new Set,h=new Map;for(const p of i){const e=c(p.id);if(void 0!==e){p.id!==e&&(u.add(p.id),h.set(p.id,e));for(const t of p.nodes)t!==e&&(u.add(t),h.set(t,e))}}for(let p=i.length-1;p>=0;p--){const e=i[p];if(!u.has(e.id)){e.nodes.length>0&&a.set(e.id,!0);for(const t of e.nodes)o.set(t,e.id)}}for(let p=i.length-1;p>=0;p--){const r=i[p];u.has(r.id)||("collapsed"===(null==(e=r.metadata)?void 0:e.view)?n.push({id:r.id,label:r.title,labelStyle:"",labelType:r.labelType,parentId:o.get(r.id),padding:8,cssCompiledStyles:this.getCompiledStyles(r.classes),cssClasses:r.classes.join(" "),shape:"collapsedGroup",dir:r.dir,isGroup:!1,look:t.look}):n.push({id:r.id,label:r.title,labelStyle:"",labelType:r.labelType,parentId:o.get(r.id),padding:8,cssCompiledStyles:this.getCompiledStyles(r.classes),cssClasses:r.classes.join(" "),shape:"rect",dir:r.dir,isGroup:!0,look:t.look}))}this.getVertices().forEach(e=>{u.has(e.id)||this.addNodeFromVertex(e,n,o,a,t,t.look||"classic")});const d=this.getEdges();return d.forEach((e,n)=>{var i;const{arrowTypeStart:o,arrowTypeEnd:a}=this.destructEdgeType(e.type),s=[...d.defaultStyle??[]],l=h.get(e.start)??e.start,c=h.get(e.end)??e.end;if(l===c&&(h.has(e.start)||h.has(e.end)))return;e.style&&s.push(...e.style);const u={id:HWe(l,c,{counter:n,prefix:"L"},e.id),isUserDefinedId:e.isUserDefinedId,start:l,end:c,type:e.type??"normal",label:e.text,labelType:e.labelType,labelpos:"c",thickness:e.stroke,minlen:e.length,classes:"invisible"===(null==e?void 0:e.stroke)?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:"invisible"===(null==e?void 0:e.stroke)||"arrow_open"===(null==e?void 0:e.type)?"none":o,arrowTypeEnd:"invisible"===(null==e?void 0:e.stroke)||"arrow_open"===(null==e?void 0:e.type)?"none":a,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(e.classes),labelStyle:s,style:s,pattern:e.stroke,look:t.look,animate:e.animate,animation:e.animation,curve:e.interpolate||this.edges.defaultInterpolate||(null==(i=t.flowchart)?void 0:i.curve)};r.push(u)}),{nodes:n,edges:r,other:{},config:t}}defaultConfig(){return tLe.flowchart}},hRe(x,"FlowDB"),x),vzt={getClasses:hRe(function(e,t){return t.db.getClasses()},"getClasses"),draw:hRe(async function(e,t,n,r){var i;ORe.info("REF0:"),ORe.info("Drawing state diagram (v2)",t);const{securityLevel:o,flowchart:a,layout:s}=JIe();r.db.setDiagramId(t),ORe.debug("Before getData: ");const l=r.db.getData();ORe.debug("Data: ",l);const c=gzt(t,o),u=r.db.getDirection();l.type=r.type,l.layoutAlgorithm=c2e(s),"dagre"===l.layoutAlgorithm&&"elk"===s&&ORe.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),l.direction=u,l.nodeSpacing=(null==a?void 0:a.nodeSpacing)||50,l.rankSpacing=(null==a?void 0:a.rankSpacing)||50,l.markers=["point","circle","cross"],l.diagramId=t,ORe.debug("REF1:",l),await l2e(l,c);const h=(null==(i=l.config.flowchart)?void 0:i.diagramPadding)??8;YWe.insertTitle(c,"flowchartTitleText",(null==a?void 0:a.titleTopMargin)||0,r.db.getDiagramTitle()),mzt(c,h,"flowchart",(null==a?void 0:a.useMaxWidth)||!1)},"draw")},bzt=function(){var e=hRe(function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},"o"),t=[1,4],n=[1,3],r=[1,5],i=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],o=[2,2],a=[1,13],s=[1,14],l=[1,15],c=[1,16],u=[1,23],h=[1,25],d=[1,26],p=[1,27],f=[1,50],g=[1,49],m=[1,29],O=[1,30],A=[1,31],y=[1,32],v=[1,33],b=[1,45],x=[1,47],w=[1,43],k=[1,48],S=[1,44],T=[1,51],$=[1,46],_=[1,52],C=[1,53],Q=[1,34],P=[1,35],E=[1,36],R=[1,37],B=[1,38],I=[1,58],L=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],D=[1,62],M=[1,61],N=[1,63],X=[8,9,11,75,77,78],F=[1,79],U=[1,92],z=[1,97],q=[1,96],V=[1,93],W=[1,89],j=[1,95],Y=[1,91],Z=[1,98],G=[1,94],H=[1,99],K=[1,90],J=[8,9,10,11,40,75,77,78],ee=[8,9,10,11,40,46,75,77,78],te=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],ne=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],re=[44,60,89,102,105,106,109,111,114,115,116],ie=[1,122],oe=[1,123],ae=[1,125],se=[1,124],le=[44,60,62,74,89,102,105,106,109,111,114,115,116],ce=[1,134],ue=[1,148],he=[1,149],de=[1,150],pe=[1,151],fe=[1,136],ge=[1,138],me=[1,142],Oe=[1,143],Ae=[1,144],ye=[1,145],ve=[1,146],be=[1,147],xe=[1,152],we=[1,153],ke=[1,132],Se=[1,133],Te=[1,140],$e=[1,135],_e=[1,139],Ce=[1,137],Qe=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],Pe=[1,155],Ee=[1,157],Re=[8,9,11],Be=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],Ie=[1,177],Le=[1,173],De=[1,174],Me=[1,178],Ne=[1,175],Xe=[1,176],Fe=[77,116,119],Ue=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],ze=[10,106],qe=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],Ve=[1,248],We=[1,246],je=[1,250],Ye=[1,244],Ze=[1,245],Ge=[1,247],He=[1,249],Ke=[1,251],Je=[1,269],et=[8,9,11,106],tt=[8,9,10,11,60,84,105,106,109,110,111,112],nt={trace:hRe(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:hRe(function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 2:case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 3:(!Array.isArray(o[s])||o[s].length>0)&&o[s-1].push(o[s]),this.$=o[s-1];break;case 4:case 183:case 44:case 54:case 76:case 181:this.$=o[s];break;case 11:r.setDirection("TB"),this.$="TB";break;case 12:r.setDirection(o[s-1]),this.$=o[s-1];break;case 27:this.$=o[s-1].nodes;break;case 33:this.$=r.addSubGraph(o[s-6],o[s-1],o[s-4]);break;case 34:this.$=r.addSubGraph(o[s-3],o[s-1],o[s-3]);break;case 35:this.$=r.addSubGraph(void 0,o[s-1],void 0);break;case 37:this.$=o[s].trim(),r.setAccTitle(this.$);break;case 38:case 39:this.$=o[s].trim(),r.setAccDescription(this.$);break;case 43:case 133:this.$=o[s-1]+o[s];break;case 45:r.addVertex(o[s-1][o[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,o[s]),r.addLink(o[s-3].stmt,o[s-1],o[s-2]),this.$={stmt:o[s-1],nodes:o[s-1].concat(o[s-3].nodes)};break;case 46:r.addLink(o[s-2].stmt,o[s],o[s-1]),this.$={stmt:o[s],nodes:o[s].concat(o[s-2].nodes)};break;case 47:r.addLink(o[s-3].stmt,o[s-1],o[s-2]),this.$={stmt:o[s-1],nodes:o[s-1].concat(o[s-3].nodes)};break;case 48:this.$={stmt:o[s-1],nodes:o[s-1]};break;case 49:r.addVertex(o[s-1][o[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,o[s]),this.$={stmt:o[s-1],nodes:o[s-1],shapeData:o[s]};break;case 50:this.$={stmt:o[s],nodes:o[s]};break;case 51:case 128:case 130:this.$=[o[s]];break;case 52:r.addVertex(o[s-5][o[s-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,o[s-4]),this.$=o[s-5].concat(o[s]);break;case 53:this.$=o[s-4].concat(o[s]);break;case 55:this.$=o[s-2],r.setClass(o[s-2],o[s]);break;case 56:this.$=o[s-3],r.addVertex(o[s-3],o[s-1],"square");break;case 57:this.$=o[s-3],r.addVertex(o[s-3],o[s-1],"doublecircle");break;case 58:this.$=o[s-5],r.addVertex(o[s-5],o[s-2],"circle");break;case 59:this.$=o[s-3],r.addVertex(o[s-3],o[s-1],"ellipse");break;case 60:this.$=o[s-3],r.addVertex(o[s-3],o[s-1],"stadium");break;case 61:this.$=o[s-3],r.addVertex(o[s-3],o[s-1],"subroutine");break;case 62:this.$=o[s-7],r.addVertex(o[s-7],o[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[o[s-5],o[s-3]]]));break;case 63:this.$=o[s-3],r.addVertex(o[s-3],o[s-1],"cylinder");break;case 64:this.$=o[s-3],r.addVertex(o[s-3],o[s-1],"round");break;case 65:this.$=o[s-3],r.addVertex(o[s-3],o[s-1],"diamond");break;case 66:this.$=o[s-5],r.addVertex(o[s-5],o[s-2],"hexagon");break;case 67:this.$=o[s-3],r.addVertex(o[s-3],o[s-1],"odd");break;case 68:this.$=o[s-3],r.addVertex(o[s-3],o[s-1],"trapezoid");break;case 69:this.$=o[s-3],r.addVertex(o[s-3],o[s-1],"inv_trapezoid");break;case 70:this.$=o[s-3],r.addVertex(o[s-3],o[s-1],"lean_right");break;case 71:this.$=o[s-3],r.addVertex(o[s-3],o[s-1],"lean_left");break;case 72:this.$=o[s],r.addVertex(o[s]);break;case 73:o[s-1].text=o[s],this.$=o[s-1];break;case 74:case 75:o[s-2].text=o[s-1],this.$=o[s-2];break;case 77:var l=r.destructLink(o[s],o[s-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,text:o[s-1]};break;case 78:l=r.destructLink(o[s],o[s-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,text:o[s-1],id:o[s-3]};break;case 79:case 86:case 101:case 103:this.$={text:o[s],type:"text"};break;case 80:case 87:case 102:this.$={text:o[s-1].text+""+o[s],type:o[s-1].type};break;case 81:case 88:this.$={text:o[s],type:"string"};break;case 82:case 89:case 104:this.$={text:o[s],type:"markdown"};break;case 83:l=r.destructLink(o[s]);this.$={type:l.type,stroke:l.stroke,length:l.length};break;case 84:l=r.destructLink(o[s]);this.$={type:l.type,stroke:l.stroke,length:l.length,id:o[s-1]};break;case 85:this.$=o[s-1];break;case 105:this.$=o[s-4],r.addClass(o[s-2],o[s]);break;case 106:this.$=o[s-4],r.setClass(o[s-2],o[s]);break;case 107:case 115:this.$=o[s-1],r.setClickEvent(o[s-1],o[s]);break;case 108:case 116:this.$=o[s-3],r.setClickEvent(o[s-3],o[s-2]),r.setTooltip(o[s-3],o[s]);break;case 109:this.$=o[s-2],r.setClickEvent(o[s-2],o[s-1],o[s]);break;case 110:this.$=o[s-4],r.setClickEvent(o[s-4],o[s-3],o[s-2]),r.setTooltip(o[s-4],o[s]);break;case 111:this.$=o[s-2],r.setLink(o[s-2],o[s]);break;case 112:this.$=o[s-4],r.setLink(o[s-4],o[s-2]),r.setTooltip(o[s-4],o[s]);break;case 113:this.$=o[s-4],r.setLink(o[s-4],o[s-2],o[s]);break;case 114:this.$=o[s-6],r.setLink(o[s-6],o[s-4],o[s]),r.setTooltip(o[s-6],o[s-2]);break;case 117:this.$=o[s-1],r.setLink(o[s-1],o[s]);break;case 118:this.$=o[s-3],r.setLink(o[s-3],o[s-2]),r.setTooltip(o[s-3],o[s]);break;case 119:this.$=o[s-3],r.setLink(o[s-3],o[s-2],o[s]);break;case 120:this.$=o[s-5],r.setLink(o[s-5],o[s-4],o[s]),r.setTooltip(o[s-5],o[s-2]);break;case 121:this.$=o[s-4],r.addVertex(o[s-2],void 0,void 0,o[s]);break;case 122:this.$=o[s-4],r.updateLink([o[s-2]],o[s]);break;case 123:this.$=o[s-4],r.updateLink(o[s-2],o[s]);break;case 124:this.$=o[s-8],r.updateLinkInterpolate([o[s-6]],o[s-2]),r.updateLink([o[s-6]],o[s]);break;case 125:this.$=o[s-8],r.updateLinkInterpolate(o[s-6],o[s-2]),r.updateLink(o[s-6],o[s]);break;case 126:this.$=o[s-6],r.updateLinkInterpolate([o[s-4]],o[s]);break;case 127:this.$=o[s-6],r.updateLinkInterpolate(o[s-4],o[s]);break;case 129:case 131:o[s-2].push(o[s]),this.$=o[s-2];break;case 182:case 184:this.$=o[s-1]+""+o[s];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"}}},"anonymous"),table:[{3:1,4:2,9:t,10:n,12:r},{1:[3]},e(i,o,{5:6}),{4:7,9:t,10:n,12:r},{4:8,9:t,10:n,12:r},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:a,9:s,10:l,11:c,20:17,22:18,23:19,24:20,25:21,26:22,27:u,33:24,34:h,36:d,38:p,42:28,43:39,44:f,45:40,47:41,60:g,84:m,85:O,86:A,87:y,88:v,89:b,102:x,105:w,106:k,109:S,111:T,113:42,114:$,115:_,116:C,121:Q,122:P,123:E,124:R,125:B},e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{8:[1,55],9:[1,56],10:I,15:54,18:57},e(L,[2,3]),e(L,[2,4]),e(L,[2,5]),e(L,[2,6]),e(L,[2,7]),e(L,[2,8]),{8:D,9:M,11:N,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:D,9:M,11:N,21:68},{8:D,9:M,11:N,21:69},{8:D,9:M,11:N,21:70},{8:D,9:M,11:N,21:71},{8:D,9:M,11:N,21:72},{8:D,9:M,10:[1,73],11:N,21:74},e(L,[2,36]),{35:[1,75]},{37:[1,76]},e(L,[2,39]),e(X,[2,50],{18:77,39:78,10:I,40:F}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:U,44:z,60:q,80:[1,87],89:V,95:[1,84],97:[1,85],101:86,105:W,106:j,109:Y,111:Z,114:G,115:H,116:K,120:88},e(L,[2,185]),e(L,[2,186]),e(L,[2,187]),e(L,[2,188]),e(L,[2,189]),e(J,[2,51]),e(J,[2,54],{46:[1,100]}),e(ee,[2,72],{113:113,29:[1,101],44:f,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:g,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:b,102:x,105:w,106:k,109:S,111:T,114:$,115:_,116:C}),e(te,[2,181]),e(te,[2,142]),e(te,[2,143]),e(te,[2,144]),e(te,[2,145]),e(te,[2,146]),e(te,[2,147]),e(te,[2,148]),e(te,[2,149]),e(te,[2,150]),e(te,[2,151]),e(te,[2,152]),e(i,[2,12]),e(i,[2,18]),e(i,[2,19]),{9:[1,114]},e(ne,[2,26],{18:115,10:I}),e(L,[2,27]),{42:116,43:39,44:f,45:40,47:41,60:g,89:b,102:x,105:w,106:k,109:S,111:T,113:42,114:$,115:_,116:C},e(L,[2,40]),e(L,[2,41]),e(L,[2,42]),e(re,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:ie,81:oe,116:ae,119:se},{75:[1,126],77:[1,127]},e(le,[2,83]),e(L,[2,28]),e(L,[2,29]),e(L,[2,30]),e(L,[2,31]),e(L,[2,32]),{10:ce,12:ue,14:he,27:de,28:128,32:pe,44:fe,60:ge,75:me,80:[1,130],81:[1,131],83:141,84:Oe,85:Ae,86:ye,87:ve,88:be,89:xe,90:we,91:129,105:ke,109:Se,111:Te,114:$e,115:_e,116:Ce},e(Qe,o,{5:154}),e(L,[2,37]),e(L,[2,38]),e(X,[2,48],{44:Pe}),e(X,[2,49],{18:156,10:I,40:Ee}),e(J,[2,44]),{44:f,47:158,60:g,89:b,102:x,105:w,106:k,109:S,111:T,113:42,114:$,115:_,116:C},{102:[1,159],103:160,105:[1,161]},{44:f,47:162,60:g,89:b,102:x,105:w,106:k,109:S,111:T,113:42,114:$,115:_,116:C},{44:f,47:163,60:g,89:b,102:x,105:w,106:k,109:S,111:T,113:42,114:$,115:_,116:C},e(Re,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},e(Re,[2,115],{120:168,10:[1,167],14:U,44:z,60:q,89:V,105:W,106:j,109:Y,111:Z,114:G,115:H,116:K}),e(Re,[2,117],{10:[1,169]}),e(Be,[2,183]),e(Be,[2,170]),e(Be,[2,171]),e(Be,[2,172]),e(Be,[2,173]),e(Be,[2,174]),e(Be,[2,175]),e(Be,[2,176]),e(Be,[2,177]),e(Be,[2,178]),e(Be,[2,179]),e(Be,[2,180]),{44:f,47:170,60:g,89:b,102:x,105:w,106:k,109:S,111:T,113:42,114:$,115:_,116:C},{30:171,67:Ie,80:Le,81:De,82:172,116:Me,117:Ne,118:Xe},{30:179,67:Ie,80:Le,81:De,82:172,116:Me,117:Ne,118:Xe},{30:181,50:[1,180],67:Ie,80:Le,81:De,82:172,116:Me,117:Ne,118:Xe},{30:182,67:Ie,80:Le,81:De,82:172,116:Me,117:Ne,118:Xe},{30:183,67:Ie,80:Le,81:De,82:172,116:Me,117:Ne,118:Xe},{30:184,67:Ie,80:Le,81:De,82:172,116:Me,117:Ne,118:Xe},{109:[1,185]},{30:186,67:Ie,80:Le,81:De,82:172,116:Me,117:Ne,118:Xe},{30:187,65:[1,188],67:Ie,80:Le,81:De,82:172,116:Me,117:Ne,118:Xe},{30:189,67:Ie,80:Le,81:De,82:172,116:Me,117:Ne,118:Xe},{30:190,67:Ie,80:Le,81:De,82:172,116:Me,117:Ne,118:Xe},{30:191,67:Ie,80:Le,81:De,82:172,116:Me,117:Ne,118:Xe},e(te,[2,182]),e(i,[2,20]),e(ne,[2,25]),e(X,[2,46],{39:192,18:193,10:I,40:F}),e(re,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:Ie,80:Le,81:De,82:172,116:Me,117:Ne,118:Xe},{77:[1,197],79:198,116:ae,119:se},e(Fe,[2,79]),e(Fe,[2,81]),e(Fe,[2,82]),e(Fe,[2,168]),e(Fe,[2,169]),{76:199,79:121,80:ie,81:oe,116:ae,119:se},e(le,[2,84]),{8:D,9:M,10:ce,11:N,12:ue,14:he,21:201,27:de,29:[1,200],32:pe,44:fe,60:ge,75:me,83:141,84:Oe,85:Ae,86:ye,87:ve,88:be,89:xe,90:we,91:202,105:ke,109:Se,111:Te,114:$e,115:_e,116:Ce},e(Ue,[2,101]),e(Ue,[2,103]),e(Ue,[2,104]),e(Ue,[2,157]),e(Ue,[2,158]),e(Ue,[2,159]),e(Ue,[2,160]),e(Ue,[2,161]),e(Ue,[2,162]),e(Ue,[2,163]),e(Ue,[2,164]),e(Ue,[2,165]),e(Ue,[2,166]),e(Ue,[2,167]),e(Ue,[2,90]),e(Ue,[2,91]),e(Ue,[2,92]),e(Ue,[2,93]),e(Ue,[2,94]),e(Ue,[2,95]),e(Ue,[2,96]),e(Ue,[2,97]),e(Ue,[2,98]),e(Ue,[2,99]),e(Ue,[2,100]),{6:11,7:12,8:a,9:s,10:l,11:c,20:17,22:18,23:19,24:20,25:21,26:22,27:u,32:[1,203],33:24,34:h,36:d,38:p,42:28,43:39,44:f,45:40,47:41,60:g,84:m,85:O,86:A,87:y,88:v,89:b,102:x,105:w,106:k,109:S,111:T,113:42,114:$,115:_,116:C,121:Q,122:P,123:E,124:R,125:B},{10:I,18:204},{44:[1,205]},e(J,[2,43]),{10:[1,206],44:f,60:g,89:b,102:x,105:w,106:k,109:S,111:T,113:113,114:$,115:_,116:C},{10:[1,207]},{10:[1,208],106:[1,209]},e(ze,[2,128]),{10:[1,210],44:f,60:g,89:b,102:x,105:w,106:k,109:S,111:T,113:113,114:$,115:_,116:C},{10:[1,211],44:f,60:g,89:b,102:x,105:w,106:k,109:S,111:T,113:113,114:$,115:_,116:C},{80:[1,212]},e(Re,[2,109],{10:[1,213]}),e(Re,[2,111],{10:[1,214]}),{80:[1,215]},e(Be,[2,184]),{80:[1,216],98:[1,217]},e(J,[2,55],{113:113,44:f,60:g,89:b,102:x,105:w,106:k,109:S,111:T,114:$,115:_,116:C}),{31:[1,218],67:Ie,82:219,116:Me,117:Ne,118:Xe},e(qe,[2,86]),e(qe,[2,88]),e(qe,[2,89]),e(qe,[2,153]),e(qe,[2,154]),e(qe,[2,155]),e(qe,[2,156]),{49:[1,220],67:Ie,82:219,116:Me,117:Ne,118:Xe},{30:221,67:Ie,80:Le,81:De,82:172,116:Me,117:Ne,118:Xe},{51:[1,222],67:Ie,82:219,116:Me,117:Ne,118:Xe},{53:[1,223],67:Ie,82:219,116:Me,117:Ne,118:Xe},{55:[1,224],67:Ie,82:219,116:Me,117:Ne,118:Xe},{57:[1,225],67:Ie,82:219,116:Me,117:Ne,118:Xe},{60:[1,226]},{64:[1,227],67:Ie,82:219,116:Me,117:Ne,118:Xe},{66:[1,228],67:Ie,82:219,116:Me,117:Ne,118:Xe},{30:229,67:Ie,80:Le,81:De,82:172,116:Me,117:Ne,118:Xe},{31:[1,230],67:Ie,82:219,116:Me,117:Ne,118:Xe},{67:Ie,69:[1,231],71:[1,232],82:219,116:Me,117:Ne,118:Xe},{67:Ie,69:[1,234],71:[1,233],82:219,116:Me,117:Ne,118:Xe},e(X,[2,45],{18:156,10:I,40:Ee}),e(X,[2,47],{44:Pe}),e(re,[2,75]),e(re,[2,74]),{62:[1,235],67:Ie,82:219,116:Me,117:Ne,118:Xe},e(re,[2,77]),e(Fe,[2,80]),{77:[1,236],79:198,116:ae,119:se},{30:237,67:Ie,80:Le,81:De,82:172,116:Me,117:Ne,118:Xe},e(Qe,o,{5:238}),e(Ue,[2,102]),e(L,[2,35]),{43:239,44:f,45:40,47:41,60:g,89:b,102:x,105:w,106:k,109:S,111:T,113:42,114:$,115:_,116:C},{10:I,18:240},{10:Ve,60:We,84:je,92:241,105:Ye,107:242,108:243,109:Ze,110:Ge,111:He,112:Ke},{10:Ve,60:We,84:je,92:252,104:[1,253],105:Ye,107:242,108:243,109:Ze,110:Ge,111:He,112:Ke},{10:Ve,60:We,84:je,92:254,104:[1,255],105:Ye,107:242,108:243,109:Ze,110:Ge,111:He,112:Ke},{105:[1,256]},{10:Ve,60:We,84:je,92:257,105:Ye,107:242,108:243,109:Ze,110:Ge,111:He,112:Ke},{44:f,47:258,60:g,89:b,102:x,105:w,106:k,109:S,111:T,113:42,114:$,115:_,116:C},e(Re,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},e(Re,[2,116]),e(Re,[2,118],{10:[1,262]}),e(Re,[2,119]),e(ee,[2,56]),e(qe,[2,87]),e(ee,[2,57]),{51:[1,263],67:Ie,82:219,116:Me,117:Ne,118:Xe},e(ee,[2,64]),e(ee,[2,59]),e(ee,[2,60]),e(ee,[2,61]),{109:[1,264]},e(ee,[2,63]),e(ee,[2,65]),{66:[1,265],67:Ie,82:219,116:Me,117:Ne,118:Xe},e(ee,[2,67]),e(ee,[2,68]),e(ee,[2,70]),e(ee,[2,69]),e(ee,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(re,[2,78]),{31:[1,266],67:Ie,82:219,116:Me,117:Ne,118:Xe},{6:11,7:12,8:a,9:s,10:l,11:c,20:17,22:18,23:19,24:20,25:21,26:22,27:u,32:[1,267],33:24,34:h,36:d,38:p,42:28,43:39,44:f,45:40,47:41,60:g,84:m,85:O,86:A,87:y,88:v,89:b,102:x,105:w,106:k,109:S,111:T,113:42,114:$,115:_,116:C,121:Q,122:P,123:E,124:R,125:B},e(J,[2,53]),{43:268,44:f,45:40,47:41,60:g,89:b,102:x,105:w,106:k,109:S,111:T,113:42,114:$,115:_,116:C},e(Re,[2,121],{106:Je}),e(et,[2,130],{108:270,10:Ve,60:We,84:je,105:Ye,109:Ze,110:Ge,111:He,112:Ke}),e(tt,[2,132]),e(tt,[2,134]),e(tt,[2,135]),e(tt,[2,136]),e(tt,[2,137]),e(tt,[2,138]),e(tt,[2,139]),e(tt,[2,140]),e(tt,[2,141]),e(Re,[2,122],{106:Je}),{10:[1,271]},e(Re,[2,123],{106:Je}),{10:[1,272]},e(ze,[2,129]),e(Re,[2,105],{106:Je}),e(Re,[2,106],{113:113,44:f,60:g,89:b,102:x,105:w,106:k,109:S,111:T,114:$,115:_,116:C}),e(Re,[2,110]),e(Re,[2,112],{10:[1,273]}),e(Re,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:D,9:M,11:N,21:278},e(L,[2,34]),e(J,[2,52]),{10:Ve,60:We,84:je,105:Ye,107:279,108:243,109:Ze,110:Ge,111:He,112:Ke},e(tt,[2,133]),{14:U,44:z,60:q,89:V,101:280,105:W,106:j,109:Y,111:Z,114:G,115:H,116:K,120:88},{14:U,44:z,60:q,89:V,101:281,105:W,106:j,109:Y,111:Z,114:G,115:H,116:K,120:88},{98:[1,282]},e(Re,[2,120]),e(ee,[2,58]),{30:283,67:Ie,80:Le,81:De,82:172,116:Me,117:Ne,118:Xe},e(ee,[2,66]),e(Qe,o,{5:284}),e(et,[2,131],{108:270,10:Ve,60:We,84:je,105:Ye,109:Ze,110:Ge,111:He,112:Ke}),e(Re,[2,126],{120:168,10:[1,285],14:U,44:z,60:q,89:V,105:W,106:j,109:Y,111:Z,114:G,115:H,116:K}),e(Re,[2,127],{120:168,10:[1,286],14:U,44:z,60:q,89:V,105:W,106:j,109:Y,111:Z,114:G,115:H,116:K}),e(Re,[2,114]),{31:[1,287],67:Ie,82:219,116:Me,117:Ne,118:Xe},{6:11,7:12,8:a,9:s,10:l,11:c,20:17,22:18,23:19,24:20,25:21,26:22,27:u,32:[1,288],33:24,34:h,36:d,38:p,42:28,43:39,44:f,45:40,47:41,60:g,84:m,85:O,86:A,87:y,88:v,89:b,102:x,105:w,106:k,109:S,111:T,113:42,114:$,115:_,116:C,121:Q,122:P,123:E,124:R,125:B},{10:Ve,60:We,84:je,92:289,105:Ye,107:242,108:243,109:Ze,110:Ge,111:He,112:Ke},{10:Ve,60:We,84:je,92:290,105:Ye,107:242,108:243,109:Ze,110:Ge,111:He,112:Ke},e(ee,[2,62]),e(L,[2,33]),e(Re,[2,124],{106:Je}),e(Re,[2,125],{106:Je})],defaultActions:{},parseError:hRe(function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},"parseError"),parse:hRe(function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),h=Object.create(this.lexer),d={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d.yy[p]=this.yy[p]);h.setInput(e,d.yy),d.yy.lexer=h,d.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var f=h.yylloc;o.push(f);var g=h.options&&h.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||h.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,hRe(function(e){n.length=n.length-2*e,i.length=i.length-e,o.length=o.length-e},"popStack"),hRe(m,"lex");for(var O,A,y,v,b,x,w,k,S={};;){if(A=n[n.length-1],this.defaultActions[A]?y=this.defaultActions[A]:(null==O&&(O=m()),y=a[A]&&a[A][O]),void 0===y||!y.length||!y[0]){var T="";for(b in k=[],a[A])this.terminals_[b]&&b>2&&k.push("'"+this.terminals_[b]+"'");T=h.showPosition?"Parse error on line "+(l+1)+":\n"+h.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[O]||O)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==O?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[O]||O,line:h.yylineno,loc:f,expected:k})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+O);switch(y[0]){case 1:n.push(O),i.push(h.yytext),o.push(h.yylloc),n.push(y[1]),O=null,c=h.yyleng,s=h.yytext,l=h.yylineno,f=h.yylloc;break;case 2:if(x=this.productions_[y[1]][1],S.$=i[i.length-x],S._$={first_line:o[o.length-(x||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(x||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(x||1)].range[0],o[o.length-1].range[1]]),void 0!==(v=this.performAction.apply(S,[s,c,l,d.yy,y[1],i,o].concat(u))))return v;x&&(n=n.slice(0,-1*x*2),i=i.slice(0,-1*x),o=o.slice(0,-1*x)),n.push(this.productions_[y[1]][0]),i.push(S.$),o.push(S._$),w=a[n[n.length-2]][n[n.length-1]],n.push(w);break;case 3:return!0}}return!0},"parse")},rt=function(){var e={EOF:1,parseError:hRe(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:hRe(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:hRe(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:hRe(function(e){var t=e.length,n=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 r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:hRe(function(){return this._more=!0,this},"more"),reject:hRe(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:hRe(function(e){this.unput(this.match.slice(e))},"less"),pastInput:hRe(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:hRe(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:hRe(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:hRe(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.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],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},"test_match"),next:hRe(function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&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:hRe(function(){var e=this.next();return e||this.lex()},"lex"),begin:hRe(function(e){this.conditionStack.push(e)},"begin"),popState:hRe(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:hRe(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:hRe(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:hRe(function(e){this.begin(e)},"pushState"),stateStackSize:hRe(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:hRe(function(e,t,n,r){switch(n){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:case 12:case 14:case 17:case 20:case 23:case 33:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),t.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:const n=/\n\s*/g;return t.yytext=t.yytext.replace(n,"<br/>"),40;case 11:return 40;case 13:this.begin("callbackname");break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 18:return 96;case 19:return"MD_STR";case 21:this.begin("md_string");break;case 22:return"STR";case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 34:return 88;case 35:case 36:case 37:case 38:return e.lex.firstGraph()&&this.begin("dir"),12;case 39:return 27;case 40:return 32;case 41:case 42:case 43:case 44:return 98;case 45:return this.popState(),13;case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:return this.popState(),14;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:case 104:return 111;case 64:return 46;case 65:return 60;case 66:case 105:return 44;case 67:return 8;case 68:return 106;case 69:case 103:return 115;case 70:case 73:case 76:return this.popState(),77;case 71:return this.pushState("edgeText"),75;case 72:case 75:case 78:return 119;case 74:return this.pushState("thickEdgeText"),75;case 77:return this.pushState("dottedEdgeText"),75;case 79:return 77;case 80:return this.popState(),53;case 81:case 117:return"TEXT";case 82:return this.pushState("ellipseText"),52;case 83:return this.popState(),55;case 84:return this.pushState("text"),54;case 85:return this.popState(),57;case 86:return this.pushState("text"),56;case 87:return 58;case 88:return this.pushState("text"),67;case 89:return this.popState(),64;case 90:return this.pushState("text"),63;case 91:return this.popState(),49;case 92:return this.pushState("text"),48;case 93:return this.popState(),69;case 94:return this.popState(),71;case 95:return 117;case 96:return this.pushState("trapText"),68;case 97:return this.pushState("trapText"),70;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return"SEP";case 102:return 89;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;case 110:return this.pushState("text"),62;case 111:return this.popState(),51;case 112:return this.pushState("text"),50;case 113:return this.popState(),31;case 114:return this.pushState("text"),29;case 115:return this.popState(),66;case 116:return this.pushState("text"),65;case 118:return"QUOTE";case 119:return 9;case 120:return 10;case 121:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}};return e}();function it(){this.yy={}}return nt.lexer=rt,hRe(it,"Parser"),it.prototype=nt,nt.Parser=it,new it}();bzt.parser=bzt;var xzt=bzt,wzt=Object.assign({},xzt);wzt.parse=e=>{const t=e.replace(/}\s*\n/g,"}\n");return xzt.parse(t)};var kzt=wzt,Szt=hRe((e,t)=>{const n=LRe,r=n(e,"r"),i=n(e,"g"),o=n(e,"b");return IRe(r,i,o,t)},"fade"),Tzt=hRe(e=>`.label {\n font-family: ${e.fontFamily};\n color: ${e.nodeTextColor||e.textColor};\n }\n .cluster-label text {\n fill: ${e.titleColor};\n }\n .cluster-label span {\n color: ${e.titleColor};\n }\n .cluster-label span p {\n background-color: transparent;\n }\n\n .label text,span {\n fill: ${e.nodeTextColor||e.textColor};\n color: ${e.nodeTextColor||e.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n stroke-width: ${e.strokeWidth??1}px;\n }\n .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {\n text-anchor: middle;\n }\n\n .node .katex path {\n fill: #000;\n stroke: #000;\n stroke-width: 1px;\n }\n\n .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n\n .root .anchor path {\n fill: ${e.lineColor} !important;\n stroke-width: 0;\n stroke: ${e.lineColor};\n }\n\n .arrowheadPath {\n fill: ${e.arrowheadColor};\n }\n\n .edgePaths .path {\n stroke: ${e.lineColor};\n stroke-width: ${e.strokeWidth??2}px;\n }\n\n .flowchart-link {\n stroke: ${e.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${e.edgeLabelBackground};\n p {\n background-color: ${e.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${e.edgeLabelBackground};\n fill: ${e.edgeLabelBackground};\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ${Szt(e.edgeLabelBackground,.5)};\n // background-color:\n }\n\n .cluster rect {\n fill: ${e.clusterBkg};\n stroke: ${e.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${e.titleColor};\n }\n\n .cluster span {\n color: ${e.titleColor};\n }\n /* .cluster div {\n color: ${e.titleColor};\n } */\n\n /* Collapsed subgraph node (@{ view: collapsed }) */\n .node .collapsed-indicator {\n fill: ${e.clusterBorder};\n stroke: none;\n opacity: 0.6;\n }\n\n .node .collapsed-separator {\n stroke: ${e.clusterBorder};\n stroke-width: 0.75px;\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${e.fontFamily};\n font-size: 12px;\n background: ${e.tertiaryColor};\n border: 1px solid ${e.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.textColor};\n }\n\n rect.text {\n fill: none;\n stroke-width: 0;\n }\n\n .icon-shape, .image-shape {\n background-color: ${e.edgeLabelBackground};\n p {\n background-color: ${e.edgeLabelBackground};\n padding: 2px;\n }\n .label rect {\n opacity: 0.5;\n background-color: ${e.edgeLabelBackground};\n fill: ${e.edgeLabelBackground};\n }\n text-align: center;\n }\n ${fzt()}\n`,"getStyles"),$zt=hRe(({defaultLayout:e,styles:t=Tzt}={})=>({parser:kzt,get db(){return new yzt},renderer:vzt,styles:t,init:hRe(t=>{t.flowchart||(t.flowchart={});const n=jBe().layout??e??t.layout;n&&eLe({layout:n}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,eLe({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}})},"init")}),"createFlowDiagram"),_zt=$zt();const Czt=Object.freeze(Object.defineProperty({__proto__:null,createFlowDiagram:$zt,diagram:_zt},Symbol.toStringTag,{value:"Module"}));var Qzt=$zt({defaultLayout:"swimlane",styles:hRe(e=>`${Tzt(e)}\n .swimlane.cluster rect {\n stroke: ${e.clusterBorder} !important;\n }\n [data-look="neo"].cluster rect {\n filter: none;\n }\n`,"getStyles")});const Pzt=Object.freeze(Object.defineProperty({__proto__:null,diagram:Qzt},Symbol.toStringTag,{value:"Module"}));var Ezt=function(){var e=hRe(function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},"o"),t=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],n=[2,2],r=[1,7],i=[1,9],o=[1,10],a=[1,11],s=[1,12],l=[1,30],c=[1,23],u=[1,24],h=[1,25],d=[1,26],p=[1,27],f=[1,19],g=[1,28],m=[1,29],O=[1,20],A=[1,18],y=[1,21],v=[1,22],b=[2,6],x=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],w=[1,36],k=[1,37],S=[1,38],T=[1,39],$=[1,40],_=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],C=[1,46],Q=[1,47],P=[1,57],E=[43,51,53,54,55,74,75],R=[1,70],B=[1,68],I=[1,65],L=[1,69],D=[1,71],M=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],N=[1,78],X=[1,77],F=[1,76],U=[69,70,71,72,73],z=[1,91],q=[6,9,45,50],V=[6,9,12,44,45,50,51,52],W=[1,101],j=[1,100],Y=[1,99],Z=[18,61],G=[1,110],H=[1,109],K=[20,43,51,53,54,55],J=[18,61,64,66],ee={trace:hRe(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:hRe(function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 1:break;case 2:case 5:case 6:this.$=[];break;case 3:this.$=o[s-1].concat(o[s]);break;case 4:case 34:case 59:case 60:case 61:case 62:case 86:case 69:case 71:case 74:this.$=o[s];break;case 7:r.addEntity(o[s-4]),r.addEntity(o[s-2]),r.addRelationship(o[s-4],o[s],o[s-2],o[s-3]),this.$=[o[s-4],o[s-2]];break;case 8:r.addEntity(o[s-8]),r.addEntity(o[s-4]),r.addRelationship(o[s-8],o[s],o[s-4],o[s-5]),r.setClass([o[s-8]],o[s-6]),r.setClass([o[s-4]],o[s-2]),this.$=[o[s-8],o[s-4]];break;case 9:r.addEntity(o[s-6]),r.addEntity(o[s-2]),r.addRelationship(o[s-6],o[s],o[s-2],o[s-3]),r.setClass([o[s-6]],o[s-4]),this.$=[o[s-6],o[s-2]];break;case 10:r.addEntity(o[s-6]),r.addEntity(o[s-4]),r.addRelationship(o[s-6],o[s],o[s-4],o[s-5]),r.setClass([o[s-4]],o[s-2]),this.$=[o[s-6],o[s-4]];break;case 11:r.addEntity(o[s-3]),r.addAttributes(o[s-3],o[s-1]),this.$=[o[s-3]];break;case 12:r.addEntity(o[s-5]),r.addAttributes(o[s-5],o[s-1]),r.setClass([o[s-5]],o[s-3]),this.$=[o[s-5]];break;case 13:r.addEntity(o[s-2]),this.$=[o[s-2]];break;case 14:r.addEntity(o[s-4]),r.setClass([o[s-4]],o[s-2]),this.$=[o[s-4]];break;case 15:r.addEntity(o[s]),this.$=[o[s]];break;case 16:r.addEntity(o[s-2]),r.setClass([o[s-2]],o[s]),this.$=[o[s-2]];break;case 17:r.addEntity(o[s-6],o[s-4]),r.addAttributes(o[s-6],o[s-1]),this.$=[o[s-6]];break;case 18:r.addEntity(o[s-8],o[s-6]),r.addAttributes(o[s-8],o[s-1]),r.setClass([o[s-8]],o[s-3]),this.$=[o[s-8]];break;case 19:r.addEntity(o[s-5],o[s-3]),this.$=[o[s-5]];break;case 20:r.addEntity(o[s-7],o[s-5]),r.setClass([o[s-7]],o[s-2]),this.$=[o[s-7]];break;case 21:r.addEntity(o[s-3],o[s-1]);break;case 22:r.addEntity(o[s-5],o[s-3]),r.setClass([o[s-5]],o[s]);break;case 23:case 24:this.$=o[s].trim(),r.setAccTitle(this.$);break;case 25:case 26:this.$=o[s].trim(),r.setAccDescription(this.$);break;case 27:r.subgraphDepth?this.$=o[s]:(r.setDirection(o[s].value),this.$=[]);break;case 31:r.subgraphDepth=(r.subgraphDepth||1)-1,this.$=r.addSubGraph({text:o[s-2].id},o[s-1],{text:o[s-2].text});break;case 32:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:o[s-1],text:o[s-1]};break;case 33:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:o[s-4],text:o[s-2]};break;case 35:this.$=o[s-1]+" "+o[s];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=o[s-3],r.addClass(o[s-2],o[s-1]);break;case 41:case 42:case 63:case 72:case 47:this.$=[o[s]];break;case 43:case 44:this.$=o[s-2].concat([o[s]]);break;case 45:this.$=o[s-2],r.setClass(o[s-1],o[s]);break;case 46:this.$=o[s-3],r.addCssStyles(o[s-2],o[s-1]);break;case 48:case 73:o[s-2].push(o[s]),this.$=o[s-2];break;case 50:case 70:this.$=o[s-1]+o[s];break;case 58:case 84:case 85:case 75:this.$=o[s].replace(/"/g,"");break;case 64:o[s].push(o[s-1]),this.$=o[s];break;case 65:this.$={type:o[s-1],name:o[s]};break;case 66:this.$={type:o[s-2],name:o[s-1],keys:o[s]};break;case 67:this.$={type:o[s-2],name:o[s-1],comment:o[s]};break;case 68:this.$={type:o[s-3],name:o[s-2],keys:o[s-1],comment:o[s]};break;case 76:this.$={cardA:o[s],relType:o[s-1],cardB:o[s-2]};break;case 77:this.$=r.Cardinality.ZERO_OR_ONE;break;case 78:this.$=r.Cardinality.ZERO_OR_MORE;break;case 79:this.$=r.Cardinality.ONE_OR_MORE;break;case 80:this.$=r.Cardinality.ONLY_ONE;break;case 81:this.$=r.Cardinality.MD_PARENT;break;case 82:this.$=r.Identification.NON_IDENTIFYING;break;case 83:this.$=r.Identification.IDENTIFYING}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,n,{5:3}),{6:[1,4],7:5,8:6,9:r,10:8,21:i,23:o,25:a,27:s,28:13,29:14,30:15,31:16,32:17,34:l,37:c,38:u,39:h,40:d,41:p,43:f,46:g,47:m,51:O,53:A,54:y,55:v},e(t,b,{1:[2,1]}),e(x,[2,3]),e(x,[2,4]),e(x,[2,5]),e(x,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:w,70:k,71:S,72:T,73:$}),{22:[1,41]},{24:[1,42]},{26:[1,43]},e(x,[2,26]),e(x,[2,27]),e(x,[2,28]),e(x,[2,29]),e(x,[2,30]),e(x,n,{5:44}),e(_,[2,58]),e(_,[2,59]),e(_,[2,60]),e(_,[2,61]),e(_,[2,62]),e(x,[2,36]),e(x,[2,37]),e(x,[2,38]),e(x,[2,39]),{15:45,43:C,44:Q},{15:48,43:C,44:Q},{15:49,43:C,44:Q},{10:50,43:f,51:O,53:A,54:y,55:v},{10:51,43:f,51:O,53:A,54:y,55:v},{15:52,43:C,44:Q},{17:53,18:[1,54],56:55,57:56,61:P},{10:58,43:f,51:O,53:A,54:y,55:v},{68:59,74:[1,60],75:[1,61]},e(E,[2,77]),e(E,[2,78]),e(E,[2,79]),e(E,[2,80]),e(E,[2,81]),e(x,[2,23]),e(x,[2,24]),e(x,[2,25]),{6:[1,63],7:5,8:6,9:r,10:8,21:i,23:o,25:a,27:s,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:l,37:c,38:u,39:h,40:d,41:p,43:f,46:g,47:m,51:O,53:A,54:y,55:v},{12:R,42:64,44:B,45:I,48:66,49:67,51:L,52:D},e(M,[2,41]),e(M,[2,42]),{15:72,43:C,44:Q,45:I},{12:R,42:73,44:B,45:I,48:66,49:67,51:L,52:D},{6:N,9:X,19:[1,75],35:74,50:F},{12:[1,79],14:[1,80]},e(x,[2,16],{67:35,11:81,16:[1,82],45:I,69:w,70:k,71:S,72:T,73:$}),{18:[1,83]},e(x,[2,13]),{17:84,18:[2,63],56:55,57:56,61:P},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:w,70:k,71:S,72:T,73:$},e(U,[2,82]),e(U,[2,83]),e(x,[2,31]),e(x,b),{6:N,9:X,35:90,45:z,50:F},{43:[1,92],44:[1,93]},e(q,[2,47],{49:94,12:R,44:B,51:L,52:D}),e(V,[2,49]),e(V,[2,54]),e(V,[2,55]),e(V,[2,56]),e(V,[2,57]),e(x,[2,45],{45:I}),{6:N,9:X,35:95,45:z,50:F},e(x,[2,32]),{10:97,36:96,43:f,51:O,53:A,54:y,55:v},e(x,[2,51]),e(x,[2,52]),e(x,[2,53]),{13:98,43:W,53:j,76:Y},{15:102,43:C,44:Q},{10:103,43:f,51:O,53:A,54:y,55:v},{17:104,18:[1,105],56:55,57:56,61:P},e(x,[2,11]),{18:[2,64]},e(Z,[2,65],{59:106,60:107,63:108,65:G,66:H}),e([18,61,65,66],[2,71]),{61:[2,70]},e(x,[2,21],{14:[1,112],16:[1,111]}),e([43,51,53,54,55],[2,76]),e(x,[2,40]),{12:R,44:B,48:113,49:67,51:L,52:D},e(M,[2,43]),e(M,[2,44]),e(V,[2,50]),e(x,[2,46]),{10:115,20:[1,114],43:f,51:O,53:A,54:y,55:v},e(K,[2,34]),e(x,[2,7]),e(x,[2,84]),e(x,[2,85]),e(x,[2,86]),{12:[1,116],45:I},{12:[1,118],14:[1,117]},{18:[1,119]},e(x,[2,14]),e(Z,[2,66],{60:120,64:[1,121],66:H}),e(Z,[2,67]),e(J,[2,72]),e(Z,[2,75]),e(J,[2,74]),{17:122,18:[1,123],56:55,57:56,61:P},{15:124,43:C,44:Q},e(q,[2,48],{49:94,12:R,44:B,51:L,52:D}),{6:N,9:X,35:125,50:F},e(K,[2,35]),{13:126,43:W,53:j,76:Y},{15:127,43:C,44:Q},{13:128,43:W,53:j,76:Y},e(x,[2,12]),e(Z,[2,68]),{63:129,65:G},{18:[1,130]},e(x,[2,19]),e(x,[2,22],{16:[1,131],45:I}),e(x,[2,33]),e(x,[2,10]),{12:[1,132],45:I},e(x,[2,9]),e(J,[2,73]),e(x,[2,17]),{17:133,18:[1,134],56:55,57:56,61:P},{13:135,43:W,53:j,76:Y},{18:[1,136]},e(x,[2,20]),e(x,[2,8]),e(x,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:hRe(function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},"parseError"),parse:hRe(function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),h=Object.create(this.lexer),d={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d.yy[p]=this.yy[p]);h.setInput(e,d.yy),d.yy.lexer=h,d.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var f=h.yylloc;o.push(f);var g=h.options&&h.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||h.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,hRe(function(e){n.length=n.length-2*e,i.length=i.length-e,o.length=o.length-e},"popStack"),hRe(m,"lex");for(var O,A,y,v,b,x,w,k,S={};;){if(A=n[n.length-1],this.defaultActions[A]?y=this.defaultActions[A]:(null==O&&(O=m()),y=a[A]&&a[A][O]),void 0===y||!y.length||!y[0]){var T="";for(b in k=[],a[A])this.terminals_[b]&&b>2&&k.push("'"+this.terminals_[b]+"'");T=h.showPosition?"Parse error on line "+(l+1)+":\n"+h.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[O]||O)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==O?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[O]||O,line:h.yylineno,loc:f,expected:k})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+O);switch(y[0]){case 1:n.push(O),i.push(h.yytext),o.push(h.yylloc),n.push(y[1]),O=null,c=h.yyleng,s=h.yytext,l=h.yylineno,f=h.yylloc;break;case 2:if(x=this.productions_[y[1]][1],S.$=i[i.length-x],S._$={first_line:o[o.length-(x||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(x||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(x||1)].range[0],o[o.length-1].range[1]]),void 0!==(v=this.performAction.apply(S,[s,c,l,d.yy,y[1],i,o].concat(u))))return v;x&&(n=n.slice(0,-1*x*2),i=i.slice(0,-1*x),o=o.slice(0,-1*x)),n.push(this.productions_[y[1]][0]),i.push(S.$),o.push(S._$),w=a[n[n.length-2]][n[n.length-1]],n.push(w);break;case 3:return!0}}return!0},"parse")},te=function(){var e={EOF:1,parseError:hRe(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:hRe(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:hRe(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:hRe(function(e){var t=e.length,n=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 r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:hRe(function(){return this._more=!0,this},"more"),reject:hRe(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:hRe(function(e){this.unput(this.match.slice(e))},"less"),pastInput:hRe(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:hRe(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:hRe(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:hRe(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.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],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},"test_match"),next:hRe(function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&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:hRe(function(){var e=this.next();return e||this.lex()},"lex"),begin:hRe(function(e){this.conditionStack.push(e)},"begin"),popState:hRe(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:hRe(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:hRe(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:hRe(function(e){this.begin(e)},"pushState"),stateStackSize:hRe(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:hRe(function(e,t,n,r){switch(n){case 0:return this.begin("acc_title"),23;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),25;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:case 28:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 37;case 8:return 38;case 9:return 39;case 10:return 40;case 11:case 22:case 30:case 37:break;case 12:return 9;case 13:return 53;case 14:return 76;case 15:return 4;case 16:return this.begin("block"),16;case 17:case 18:case 40:return 52;case 19:case 39:return 45;case 20:return 14;case 21:case 38:return 12;case 23:return 65;case 24:case 25:case 27:return 61;case 26:this.begin("block_bq");break;case 29:return 66;case 31:return this.popState(),18;case 32:case 81:return t.yytext[0];case 33:return 19;case 34:return 20;case 35:return this.begin("style"),47;case 36:return this.popState(),9;case 41:return this.begin("style"),41;case 42:return 46;case 43:return 34;case 44:return 33;case 45:case 49:case 50:case 68:return 69;case 46:case 47:case 48:case 56:case 58:case 70:return 71;case 51:case 52:case 53:case 54:case 55:case 57:case 69:return 70;case 59:case 60:case 62:case 63:case 64:case 67:return 72;case 61:return 54;case 65:return 55;case 66:return 51;case 71:return 73;case 72:case 75:case 76:case 77:return 74;case 73:case 74:return 75;case 78:return 44;case 79:return 50;case 80:return 43;case 82:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[ \t\r]+)/i,/^(?:[\n]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\.,\u00C0-\uFFFF\*]*))/i,/^(?:[`])/i,/^(?:[^`]+)/i,/^(?:[`])/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:subgraph\b)/i,/^(?:end\b\s*)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[36,37,38,39,40,78,79],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block_bq:{rules:[27,28],inclusive:!1},block:{rules:[22,23,24,25,26,29,30,31,32],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,33,34,35,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,80,81,82],inclusive:!0}}};return e}();function ne(){this.yy={}}return ee.lexer=te,hRe(ne,"Parser"),ne.prototype=ee,ee.Parser=ne,new ne}();Ezt.parser=Ezt;var Rzt=Ezt,Bzt=(w=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.subgraphDepth=0,this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=VIe,this.getAccTitle=WIe,this.setAccDescription=jIe,this.getAccDescription=YIe,this.setDiagramTitle=ZIe,this.getDiagramTitle=GIe,this.getConfig=hRe(()=>JIe().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this),this.addSubGraph=this.addSubGraph.bind(this)}addEntity(e,t=""){var n;return this.entities.has(e)?!(null==(n=this.entities.get(e))?void 0:n.alias)&&t&&(this.entities.get(e).alias=t,ORe.info(`Add alias '${t}' to entity '${e}'`)):(this.entities.set(e,{id:`entity-${e}-${this.entities.size}`,label:e,attributes:[],alias:t,shape:"erBox",look:JIe().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),ORe.info("Added new entity :",e)),this.entities.get(e)}getEntity(e){return this.entities.get(e)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(e,t){const n=this.addEntity(e);let r;for(r=t.length-1;r>=0;r--)t[r].keys||(t[r].keys=[]),t[r].comment||(t[r].comment=""),n.attributes.push(t[r]),ORe.debug("Added attribute ",t[r].name)}addRelationship(e,t,n,r){let i,o;if(this.subGraphLookup.has(e))i=e;else{const t=this.addEntity(e);if(!t)return;i=t.id}if(this.subGraphLookup.has(n))o=n;else{const e=this.addEntity(n);if(!e)return;o=e.id}const a={entityA:i,roleA:t,entityB:o,relSpec:r};this.relationships.push(a),ORe.debug("Added new relationship :",a)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(e){this.direction=e}getCompiledStyles(e){let t=[];for(const n of e){const e=this.classes.get(n);(null==e?void 0:e.styles)&&(t=[...t,...e.styles??[]].map(e=>e.trim())),(null==e?void 0:e.textStyles)&&(t=[...t,...e.textStyles??[]].map(e=>e.trim()))}return t}addCssStyles(e,t){for(const n of e){const e=this.entities.get(n),r=this.subGraphLookup.get(n);if(t){if(e)for(const n of t)e.cssStyles.push(n);if(r){r.cssStyles||(r.cssStyles=[]);for(const e of t)r.cssStyles.push(e)}}}}addClass(e,t){e.forEach(e=>{let n=this.classes.get(e);void 0===n&&(n={id:e,styles:[],textStyles:[]},this.classes.set(e,n)),t&&t.forEach(function(e){if(/color/.exec(e)){const t=e.replace("fill","bgFill");n.textStyles.push(t)}n.styles.push(e)})})}addSubGraph(e,t,n){let r=e.text.trim(),i=n.text;const o=hRe(e=>{const t=new Set;let n;return{nodeList:e.filter(e=>{if(null==e?void 0:e.stmt)return"dir"===e.stmt&&(n=e.value),!1;if("string"!=typeof e)return!1;const r=e.trim();return!!r&&(!t.has(r)&&(t.add(r),!0))}),dir:n}},"uniq")(t.flat()),a=o.nodeList,s=o.dir;r=r??"subGraph"+this.subCount,i=i||"",i=this.sanitizeText(i),this.subCount=this.subCount+1;const l={id:r,nodes:a,title:i.trim(),classes:[],cssStyles:[],dir:s,labelType:this.sanitizeNodeLabelType(null==n?void 0:n.type)};return ORe.info("Adding",l.id,l.nodes,l.dir),l.nodes=this.makeUniq(l,this.subGraphs).nodes,this.subGraphs.push(l),this.subGraphLookup.set(r,l),r}getSubGraphs(){return this.subGraphs}setClass(e,t){for(const n of e){const e=this.entities.get(n);if(e)for(const n of t)e.cssClasses+=" "+n;const r=this.subGraphLookup.get(n);if(r)for(const n of t)r.classes.push(n)}}subgraphNodeCache(e){const t=new Set;for(const n of e)for(const e of n.nodes)t.add(e);return t}makeUniq(e,t){const n=this.subgraphNodeCache(t),r=[];return e.nodes.forEach((t,i)=>{n.has(t)?ORe.warn(`Entity '${t}' already belongs to another subgraph and will be ignored`):r.push(e.nodes[i])}),{nodes:r}}sanitizeText(e){return CIe.sanitizeText(e,JIe())}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.subgraphDepth=0,qIe()}getData(){const e=[],t=[],n=JIe(),r=this.getSubGraphs(),i=new Map,o=new Map;for(let c=r.length-1;c>=0;c--){const e=r[c];e.nodes.length>0&&o.set(e.id,!0);for(const t of e.nodes)i.set(t,e.id)}for(let c=r.length-1;c>=0;c--){const t=r[c];e.push({id:t.id,label:t.title,labelStyle:"",labelType:t.labelType,parentId:i.get(t.id),padding:8,cssCompiledStyles:this.getCompiledStyles(t.classes),cssStyles:t.cssStyles,cssClasses:t.classes.join(" "),shape:"rect",dir:t.dir,isGroup:!0,look:n.look})}const a=new Set(r.map(e=>e.id));let s=0;for(const c of this.entities.keys()){if(a.has(c))continue;const t=this.entities.get(c);t&&(t.cssCompiledStyles=this.getCompiledStyles(t.cssClasses.split(" ")),t.colorIndex=s++,e.push({...t,parentId:i.get(c),isGroup:!1}))}let l=0;for(const c of this.relationships){const e={id:HWe(c.entityA,c.entityB,{prefix:"id",counter:l++}),type:"normal",curve:"basis",start:c.entityA,end:c.entityB,label:c.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:c.relSpec.cardB.toLowerCase(),arrowTypeEnd:c.relSpec.cardA.toLowerCase(),pattern:"IDENTIFYING"==c.relSpec.relType?"solid":"dashed",look:n.look,labelType:"markdown"};t.push(e)}return{nodes:e,edges:t,other:{},config:n,direction:this.direction}}},hRe(w,"ErDB"),w),Izt={};dRe(Izt,{draw:()=>Lzt});var Lzt=hRe(async function(e,t,n,r){ORe.info("REF0:"),ORe.info("Drawing er diagram (unified)",t);const{securityLevel:i,er:o,layout:a}=JIe(),s=r.db.getData(),l=gzt(t,i);s.type=r.type,s.layoutAlgorithm=c2e(a),s.config.flowchart.nodeSpacing=(null==o?void 0:o.nodeSpacing)||140,s.config.flowchart.rankSpacing=(null==o?void 0:o.rankSpacing)||80,s.direction=r.db.getDirection();const{config:c}=s,{look:u}=c;s.markers="neo"===u?["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"]:["only_one","zero_or_one","one_or_more","zero_or_more"],s.diagramId=t,await l2e(s,l),"elk"===s.layoutAlgorithm&&l.select(".edges").lower();const h=l.selectAll('[id*="-background"]');Array.from(h).length>0&&h.each(function(){const e=GDe(this),t=e.attr("id").replace("-background",""),n=l.select(`#${CSS.escape(t)}`);if(!n.empty()){const t=n.attr("transform");e.attr("transform",t)}});YWe.insertTitle(l,"erDiagramTitleText",(null==o?void 0:o.titleTopMargin)??25,r.db.getDiagramTitle()),mzt(l,8,"erDiagram",(null==o?void 0:o.useMaxWidth)??!0)},"draw"),Dzt=hRe((e,t)=>{const n=LRe,r=n(e,"r"),i=n(e,"g"),o=n(e,"b");return IRe(r,i,o,t)},"fade"),Mzt=new Set(["redux-color","redux-dark-color"]),Nzt=hRe(e=>{const{theme:t,look:n,bkgColorArray:r,borderColorArray:i}=e;if(!Mzt.has(t))return"";const o=(null==r?void 0:r.length)>0;let a="";for(let s=0;s<e.THEME_COLOR_LIMIT;s++)a+=`\n\n [data-look="${n}"][data-color-id="color-${s}"].node path {\n stroke: ${i[s]};\n ${o?`fill: ${r[s]};`:""}\n }\n\n [data-look="${n}"][data-color-id="color-${s}"].node rect {\n stroke: ${i[s]};\n ${o?`fill: ${r[s]};`:""}\n }\n `;return a},"genColor"),Xzt=hRe(e=>{const{look:t,theme:n,erEdgeLabelBackground:r,strokeWidth:i}=e;return`\n ${Nzt(e)}\n .entityBox {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n }\n\n .relationshipLabelBox {\n fill: ${e.tertiaryColor};\n opacity: 0.7;\n background-color: ${e.tertiaryColor};\n rect {\n opacity: 0.5;\n }\n }\n\n .labelBkg {\n background-color: ${Mzt.has(n)&&r?r:Dzt(e.tertiaryColor,.5)};\n }\n\n .edgeLabel {\n background-color: ${Mzt.has(n)&&r?r:e.edgeLabelBackground};\n }\n .edgeLabel .label rect {\n fill: ${Mzt.has(n)&&r?r:e.edgeLabelBackground};\n }\n .edgeLabel .label text {\n fill: ${e.textColor};\n }\n\n .edgeLabel .label {\n fill: ${e.nodeBorder};\n font-size: 14px;\n }\n\n .label {\n font-family: ${e.fontFamily};\n color: ${e.nodeTextColor||e.textColor};\n }\n\n .edge-pattern-dashed {\n stroke-dasharray: 8,8;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon\n {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n stroke-width: ${"neo"===t?i:"1px"};\n }\n\n .relationshipLine {\n stroke: ${e.lineColor};\n stroke-width: ${"neo"===t?i:"1px"};\n fill: none;\n }\n\n .marker {\n fill: none !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n }\n [data-look=neo].labelBkg {\n background-color: ${Dzt(e.tertiaryColor,.5)};\n }\n\n .cluster rect {\n fill: ${e.clusterBkg??e.mainBkg};\n stroke: ${e.clusterBorder??e.nodeBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${e.titleColor??e.textColor};\n }\n\n .cluster-label text {\n fill: ${e.titleColor??e.textColor};\n }\n`},"getStyles"),Fzt={parser:Rzt,get db(){return new Bzt},renderer:Izt,styles:Xzt};const Uzt=Object.freeze(Object.defineProperty({__proto__:null,diagram:Fzt},Symbol.toStringTag,{value:"Module"}));var zzt=(hRe(k=class{constructor(e){this.init=e,this.records=this.init()}reset(){this.records=this.init()}},"ImperativeState"),k);function qzt(e,t){var n,r,i;e.accDescr&&(null==(n=t.setAccDescription)||n.call(t,e.accDescr)),e.accTitle&&(null==(r=t.setAccTitle)||r.call(t,e.accTitle)),e.title&&(null==(i=t.setDiagramTitle)||i.call(t,e.title))}hRe(qzt,"populateCommonDb");var Vzt,Wzt,jzt,Yzt,Zzt,Gzt,Hzt,Kzt,Jzt,eqt,tqt,nqt,rqt,iqt,oqt,aqt,sqt,lqt,cqt,uqt,hqt,dqt,pqt,fqt,gqt,mqt,Oqt,Aqt,yqt,vqt,bqt,xqt,wqt,kqt,Sqt,Tqt,$qt,_qt,Cqt,Qqt,Pqt,Eqt,Rqt,Bqt,Iqt,Lqt,Dqt,Mqt,Nqt,Xqt,Fqt,Uqt,zqt,qqt,Vqt,Wqt,jqt,Yqt,Zqt,Gqt,Hqt,Kqt,Jqt,eVt,tVt,nVt,rVt,iVt,oVt,aVt,sVt,lVt,cVt,uVt,hVt,dVt,pVt,fVt,gVt,mVt,OVt,AVt,yVt,vVt,bVt,xVt=Object.create,wVt=Object.defineProperty,kVt=Object.getOwnPropertyDescriptor,SVt=Object.getOwnPropertyNames,TVt=Object.getPrototypeOf,$Vt=Object.prototype.hasOwnProperty,_Vt=(e,t)=>wVt(e,"name",{value:t,configurable:!0}),CVt=(e,t)=>function(){return t||(0,e[SVt(e)[0]])((t={exports:{}}).exports,t),t.exports},QVt=(e,t)=>{for(var n in t)wVt(e,n,{get:t[n],enumerable:!0})},PVt=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of SVt(t))$Vt.call(e,i)||i===n||wVt(e,i,{get:()=>t[i],enumerable:!(r=kVt(t,i))||r.enumerable});return e},EVt=(e,t,n)=>(PVt(e,t,"default"),n),RVt=(e,t,n)=>(n=null!=e?xVt(TVt(e)):{},PVt(wVt(n,"default",{value:e,enumerable:!0}),e)),BVt=e=>PVt(wVt({},"__esModule",{value:!0}),e),IVt={};QVt(IVt,{AnnotatedTextEdit:()=>pqt,ChangeAnnotation:()=>hqt,ChangeAnnotationIdentifier:()=>dqt,CodeAction:()=>Gqt,CodeActionContext:()=>Zqt,CodeActionKind:()=>jqt,CodeActionTriggerKind:()=>Yqt,CodeDescription:()=>sqt,CodeLens:()=>Hqt,Color:()=>Jzt,ColorInformation:()=>eqt,ColorPresentation:()=>tqt,Command:()=>cqt,CompletionItem:()=>Bqt,CompletionItemKind:()=>_qt,CompletionItemLabelDetails:()=>Rqt,CompletionItemTag:()=>Qqt,CompletionList:()=>Iqt,CreateFile:()=>gqt,DeleteFile:()=>Oqt,Diagnostic:()=>lqt,DiagnosticRelatedInformation:()=>iqt,DiagnosticSeverity:()=>oqt,DiagnosticTag:()=>aqt,DocumentHighlight:()=>Fqt,DocumentHighlightKind:()=>Xqt,DocumentLink:()=>Jqt,DocumentSymbol:()=>Wqt,DocumentUri:()=>Vzt,EOL:()=>AVt,FoldingRange:()=>rqt,FoldingRangeKind:()=>nqt,FormattingOptions:()=>Kqt,Hover:()=>Dqt,InlayHint:()=>uVt,InlayHintKind:()=>lVt,InlayHintLabelPart:()=>cVt,InlineCompletionContext:()=>mVt,InlineCompletionItem:()=>dVt,InlineCompletionList:()=>pVt,InlineCompletionTriggerKind:()=>fVt,InlineValueContext:()=>sVt,InlineValueEvaluatableExpression:()=>aVt,InlineValueText:()=>iVt,InlineValueVariableLookup:()=>oVt,InsertReplaceEdit:()=>Pqt,InsertTextFormat:()=>Cqt,InsertTextMode:()=>Eqt,Location:()=>Hzt,LocationLink:()=>Kzt,MarkedString:()=>Lqt,MarkupContent:()=>$qt,MarkupKind:()=>Tqt,OptionalVersionedTextDocumentIdentifier:()=>kqt,ParameterInformation:()=>Mqt,Position:()=>Zzt,Range:()=>Gzt,RenameFile:()=>mqt,SelectedCompletionInfo:()=>gVt,SelectionRange:()=>eVt,SemanticTokenModifiers:()=>nVt,SemanticTokenTypes:()=>tVt,SemanticTokens:()=>rVt,SignatureInformation:()=>Nqt,StringValue:()=>hVt,SymbolInformation:()=>qqt,SymbolKind:()=>Uqt,SymbolTag:()=>zqt,TextDocument:()=>yVt,TextDocumentEdit:()=>fqt,TextDocumentIdentifier:()=>xqt,TextDocumentItem:()=>Sqt,TextEdit:()=>uqt,URI:()=>Wzt,VersionedTextDocumentIdentifier:()=>wqt,WorkspaceChange:()=>bqt,WorkspaceEdit:()=>Aqt,WorkspaceFolder:()=>OVt,WorkspaceSymbol:()=>Vqt,integer:()=>jzt,uinteger:()=>Yzt});var LVt,DVt,MVt=(LVt={"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){var e,t,n,r,i,o,a,s,l,c,u,h,d,p,f,g,m;!function(e){function t(e){return"string"==typeof e}_Vt(t,"is"),e.is=t}(Vzt||(Vzt={})),function(e){function t(e){return"string"==typeof e}_Vt(t,"is"),e.is=t}(Wzt||(Wzt={})),function(e){function t(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,_Vt(t,"is"),e.is=t}(jzt||(jzt={})),function(e){function t(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.MIN_VALUE=0,e.MAX_VALUE=2147483647,_Vt(t,"is"),e.is=t}(Yzt||(Yzt={})),function(e){function t(e,t){return e===Number.MAX_VALUE&&(e=Yzt.MAX_VALUE),t===Number.MAX_VALUE&&(t=Yzt.MAX_VALUE),{line:e,character:t}}function n(e){let t=e;return bVt.objectLiteral(t)&&bVt.uinteger(t.line)&&bVt.uinteger(t.character)}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(Zzt||(Zzt={})),function(e){function t(e,t,n,r){if(bVt.uinteger(e)&&bVt.uinteger(t)&&bVt.uinteger(n)&&bVt.uinteger(r))return{start:Zzt.create(e,t),end:Zzt.create(n,r)};if(Zzt.is(e)&&Zzt.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)}function n(e){let t=e;return bVt.objectLiteral(t)&&Zzt.is(t.start)&&Zzt.is(t.end)}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(Gzt||(Gzt={})),function(e){function t(e,t){return{uri:e,range:t}}function n(e){let t=e;return bVt.objectLiteral(t)&&Gzt.is(t.range)&&(bVt.string(t.uri)||bVt.undefined(t.uri))}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(Hzt||(Hzt={})),function(e){function t(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}}function n(e){let t=e;return bVt.objectLiteral(t)&&Gzt.is(t.targetRange)&&bVt.string(t.targetUri)&&Gzt.is(t.targetSelectionRange)&&(Gzt.is(t.originSelectionRange)||bVt.undefined(t.originSelectionRange))}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(Kzt||(Kzt={})),function(e){function t(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}}function n(e){const t=e;return bVt.objectLiteral(t)&&bVt.numberRange(t.red,0,1)&&bVt.numberRange(t.green,0,1)&&bVt.numberRange(t.blue,0,1)&&bVt.numberRange(t.alpha,0,1)}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(Jzt||(Jzt={})),function(e){function t(e,t){return{range:e,color:t}}function n(e){const t=e;return bVt.objectLiteral(t)&&Gzt.is(t.range)&&Jzt.is(t.color)}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(eqt||(eqt={})),function(e){function t(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}}function n(e){const t=e;return bVt.objectLiteral(t)&&bVt.string(t.label)&&(bVt.undefined(t.textEdit)||uqt.is(t))&&(bVt.undefined(t.additionalTextEdits)||bVt.typedArray(t.additionalTextEdits,uqt.is))}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(tqt||(tqt={})),(i=nqt||(nqt={})).Comment="comment",i.Imports="imports",i.Region="region",function(e){function t(e,t,n,r,i,o){const a={startLine:e,endLine:t};return bVt.defined(n)&&(a.startCharacter=n),bVt.defined(r)&&(a.endCharacter=r),bVt.defined(i)&&(a.kind=i),bVt.defined(o)&&(a.collapsedText=o),a}function n(e){const t=e;return bVt.objectLiteral(t)&&bVt.uinteger(t.startLine)&&bVt.uinteger(t.startLine)&&(bVt.undefined(t.startCharacter)||bVt.uinteger(t.startCharacter))&&(bVt.undefined(t.endCharacter)||bVt.uinteger(t.endCharacter))&&(bVt.undefined(t.kind)||bVt.string(t.kind))}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(rqt||(rqt={})),function(e){function t(e,t){return{location:e,message:t}}function n(e){let t=e;return bVt.defined(t)&&Hzt.is(t.location)&&bVt.string(t.message)}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(iqt||(iqt={})),(o=oqt||(oqt={})).Error=1,o.Warning=2,o.Information=3,o.Hint=4,(a=aqt||(aqt={})).Unnecessary=1,a.Deprecated=2,function(e){function t(e){const t=e;return bVt.objectLiteral(t)&&bVt.string(t.href)}_Vt(t,"is"),e.is=t}(sqt||(sqt={})),function(e){function t(e,t,n,r,i,o){let a={range:e,message:t};return bVt.defined(n)&&(a.severity=n),bVt.defined(r)&&(a.code=r),bVt.defined(i)&&(a.source=i),bVt.defined(o)&&(a.relatedInformation=o),a}function n(e){var t;let n=e;return bVt.defined(n)&&Gzt.is(n.range)&&bVt.string(n.message)&&(bVt.number(n.severity)||bVt.undefined(n.severity))&&(bVt.integer(n.code)||bVt.string(n.code)||bVt.undefined(n.code))&&(bVt.undefined(n.codeDescription)||bVt.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(bVt.string(n.source)||bVt.undefined(n.source))&&(bVt.undefined(n.relatedInformation)||bVt.typedArray(n.relatedInformation,iqt.is))}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(lqt||(lqt={})),function(e){function t(e,t,...n){let r={title:e,command:t};return bVt.defined(n)&&n.length>0&&(r.arguments=n),r}function n(e){let t=e;return bVt.defined(t)&&bVt.string(t.title)&&bVt.string(t.command)}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(cqt||(cqt={})),function(e){function t(e,t){return{range:e,newText:t}}function n(e,t){return{range:{start:e,end:e},newText:t}}function r(e){return{range:e,newText:""}}function i(e){const t=e;return bVt.objectLiteral(t)&&bVt.string(t.newText)&&Gzt.is(t.range)}_Vt(t,"replace"),e.replace=t,_Vt(n,"insert"),e.insert=n,_Vt(r,"del"),e.del=r,_Vt(i,"is"),e.is=i}(uqt||(uqt={})),function(e){function t(e,t,n){const r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r}function n(e){const t=e;return bVt.objectLiteral(t)&&bVt.string(t.label)&&(bVt.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(bVt.string(t.description)||void 0===t.description)}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(hqt||(hqt={})),function(e){function t(e){const t=e;return bVt.string(t)}_Vt(t,"is"),e.is=t}(dqt||(dqt={})),function(e){function t(e,t,n){return{range:e,newText:t,annotationId:n}}function n(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}}function r(e,t){return{range:e,newText:"",annotationId:t}}function i(e){const t=e;return uqt.is(t)&&(hqt.is(t.annotationId)||dqt.is(t.annotationId))}_Vt(t,"replace"),e.replace=t,_Vt(n,"insert"),e.insert=n,_Vt(r,"del"),e.del=r,_Vt(i,"is"),e.is=i}(pqt||(pqt={})),function(e){function t(e,t){return{textDocument:e,edits:t}}function n(e){let t=e;return bVt.defined(t)&&kqt.is(t.textDocument)&&Array.isArray(t.edits)}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(fqt||(fqt={})),function(e){function t(e,t,n){let r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r}function n(e){let t=e;return t&&"create"===t.kind&&bVt.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||bVt.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||bVt.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||dqt.is(t.annotationId))}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(gqt||(gqt={})),function(e){function t(e,t,n,r){let i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i}function n(e){let t=e;return t&&"rename"===t.kind&&bVt.string(t.oldUri)&&bVt.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||bVt.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||bVt.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||dqt.is(t.annotationId))}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(mqt||(mqt={})),function(e){function t(e,t,n){let r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r}function n(e){let t=e;return t&&"delete"===t.kind&&bVt.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||bVt.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||bVt.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||dqt.is(t.annotationId))}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(Oqt||(Oqt={})),function(e){function t(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every(e=>bVt.string(e.kind)?gqt.is(e)||mqt.is(e)||Oqt.is(e):fqt.is(e)))}_Vt(t,"is"),e.is=t}(Aqt||(Aqt={})),_Vt(e=class{constructor(e,t){this.edits=e,this.changeAnnotations=t}insert(e,t,n){let r,i;if(void 0===n?r=uqt.insert(e,t):dqt.is(n)?(i=n,r=pqt.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=pqt.insert(e,t,i)),this.edits.push(r),void 0!==i)return i}replace(e,t,n){let r,i;if(void 0===n?r=uqt.replace(e,t):dqt.is(n)?(i=n,r=pqt.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=pqt.replace(e,t,i)),this.edits.push(r),void 0!==i)return i}delete(e,t){let n,r;if(void 0===t?n=uqt.del(e):dqt.is(t)?(r=t,n=pqt.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=pqt.del(e,r)),this.edits.push(n),void 0!==r)return r}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")}},"TextEditChangeImpl"),yqt=e,_Vt(t=class{constructor(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,t){let n;if(dqt.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error(`Id ${n} is already in use.`);if(void 0===t)throw new Error(`No annotation provided for id ${n}`);return this._annotations[n]=t,this._size++,n}nextId(){return this._counter++,this._counter.toString()}},"ChangeAnnotations"),vqt=t,_Vt(n=class{constructor(e){this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new vqt(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(e=>{if(fqt.is(e)){const t=new yqt(e.edits,this._changeAnnotations);this._textEditChanges[e.textDocument.uri]=t}})):e.changes&&Object.keys(e.changes).forEach(t=>{const n=new yqt(e.changes[t]);this._textEditChanges[t]=n})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(kqt.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");const t={uri:e.uri,version:e.version};let n=this._textEditChanges[t.uri];if(!n){const e=[],r={textDocument:t,edits:e};this._workspaceEdit.documentChanges.push(r),n=new yqt(e,this._changeAnnotations),this._textEditChanges[t.uri]=n}return n}{if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");let t=this._textEditChanges[e];if(!t){let n=[];this._workspaceEdit.changes[e]=n,t=new yqt(n),this._textEditChanges[e]=t}return t}}initDocumentChanges(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new vqt,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");let r,i,o;if(hqt.is(t)||dqt.is(t)?r=t:n=t,void 0===r?i=gqt.create(e,n):(o=dqt.is(r)?r:this._changeAnnotations.manage(r),i=gqt.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}renameFile(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");let i,o,a;if(hqt.is(n)||dqt.is(n)?i=n:r=n,void 0===i?o=mqt.create(e,t,r):(a=dqt.is(i)?i:this._changeAnnotations.manage(i),o=mqt.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a}deleteFile(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");let r,i,o;if(hqt.is(t)||dqt.is(t)?r=t:n=t,void 0===r?i=Oqt.create(e,n):(o=dqt.is(r)?r:this._changeAnnotations.manage(r),i=Oqt.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}},"WorkspaceChange"),bqt=n,function(e){function t(e){return{uri:e}}function n(e){let t=e;return bVt.defined(t)&&bVt.string(t.uri)}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(xqt||(xqt={})),function(e){function t(e,t){return{uri:e,version:t}}function n(e){let t=e;return bVt.defined(t)&&bVt.string(t.uri)&&bVt.integer(t.version)}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(wqt||(wqt={})),function(e){function t(e,t){return{uri:e,version:t}}function n(e){let t=e;return bVt.defined(t)&&bVt.string(t.uri)&&(null===t.version||bVt.integer(t.version))}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(kqt||(kqt={})),function(e){function t(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}}function n(e){let t=e;return bVt.defined(t)&&bVt.string(t.uri)&&bVt.string(t.languageId)&&bVt.integer(t.version)&&bVt.string(t.text)}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(Sqt||(Sqt={})),function(e){function t(t){const n=t;return n===e.PlainText||n===e.Markdown}e.PlainText="plaintext",e.Markdown="markdown",_Vt(t,"is"),e.is=t}(Tqt||(Tqt={})),function(e){function t(e){const t=e;return bVt.objectLiteral(e)&&Tqt.is(t.kind)&&bVt.string(t.value)}_Vt(t,"is"),e.is=t}($qt||($qt={})),(s=_qt||(_qt={})).Text=1,s.Method=2,s.Function=3,s.Constructor=4,s.Field=5,s.Variable=6,s.Class=7,s.Interface=8,s.Module=9,s.Property=10,s.Unit=11,s.Value=12,s.Enum=13,s.Keyword=14,s.Snippet=15,s.Color=16,s.File=17,s.Reference=18,s.Folder=19,s.EnumMember=20,s.Constant=21,s.Struct=22,s.Event=23,s.Operator=24,s.TypeParameter=25,(l=Cqt||(Cqt={})).PlainText=1,l.Snippet=2,(Qqt||(Qqt={})).Deprecated=1,function(e){function t(e,t,n){return{newText:e,insert:t,replace:n}}function n(e){const t=e;return t&&bVt.string(t.newText)&&Gzt.is(t.insert)&&Gzt.is(t.replace)}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(Pqt||(Pqt={})),(c=Eqt||(Eqt={})).asIs=1,c.adjustIndentation=2,function(e){function t(e){const t=e;return t&&(bVt.string(t.detail)||void 0===t.detail)&&(bVt.string(t.description)||void 0===t.description)}_Vt(t,"is"),e.is=t}(Rqt||(Rqt={})),function(e){function t(e){return{label:e}}_Vt(t,"create"),e.create=t}(Bqt||(Bqt={})),function(e){function t(e,t){return{items:e||[],isIncomplete:!!t}}_Vt(t,"create"),e.create=t}(Iqt||(Iqt={})),function(e){function t(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}function n(e){const t=e;return bVt.string(t)||bVt.objectLiteral(t)&&bVt.string(t.language)&&bVt.string(t.value)}_Vt(t,"fromPlainText"),e.fromPlainText=t,_Vt(n,"is"),e.is=n}(Lqt||(Lqt={})),function(e){function t(e){let t=e;return!!t&&bVt.objectLiteral(t)&&($qt.is(t.contents)||Lqt.is(t.contents)||bVt.typedArray(t.contents,Lqt.is))&&(void 0===e.range||Gzt.is(e.range))}_Vt(t,"is"),e.is=t}(Dqt||(Dqt={})),function(e){function t(e,t){return t?{label:e,documentation:t}:{label:e}}_Vt(t,"create"),e.create=t}(Mqt||(Mqt={})),function(e){function t(e,t,...n){let r={label:e};return bVt.defined(t)&&(r.documentation=t),bVt.defined(n)?r.parameters=n:r.parameters=[],r}_Vt(t,"create"),e.create=t}(Nqt||(Nqt={})),(u=Xqt||(Xqt={})).Text=1,u.Read=2,u.Write=3,function(e){function t(e,t){let n={range:e};return bVt.number(t)&&(n.kind=t),n}_Vt(t,"create"),e.create=t}(Fqt||(Fqt={})),(h=Uqt||(Uqt={})).File=1,h.Module=2,h.Namespace=3,h.Package=4,h.Class=5,h.Method=6,h.Property=7,h.Field=8,h.Constructor=9,h.Enum=10,h.Interface=11,h.Function=12,h.Variable=13,h.Constant=14,h.String=15,h.Number=16,h.Boolean=17,h.Array=18,h.Object=19,h.Key=20,h.Null=21,h.EnumMember=22,h.Struct=23,h.Event=24,h.Operator=25,h.TypeParameter=26,(zqt||(zqt={})).Deprecated=1,function(e){function t(e,t,n,r,i){let o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o}_Vt(t,"create"),e.create=t}(qqt||(qqt={})),function(e){function t(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}}_Vt(t,"create"),e.create=t}(Vqt||(Vqt={})),function(e){function t(e,t,n,r,i,o){let a={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a}function n(e){let t=e;return t&&bVt.string(t.name)&&bVt.number(t.kind)&&Gzt.is(t.range)&&Gzt.is(t.selectionRange)&&(void 0===t.detail||bVt.string(t.detail))&&(void 0===t.deprecated||bVt.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(Wqt||(Wqt={})),(d=jqt||(jqt={})).Empty="",d.QuickFix="quickfix",d.Refactor="refactor",d.RefactorExtract="refactor.extract",d.RefactorInline="refactor.inline",d.RefactorRewrite="refactor.rewrite",d.Source="source",d.SourceOrganizeImports="source.organizeImports",d.SourceFixAll="source.fixAll",(p=Yqt||(Yqt={})).Invoked=1,p.Automatic=2,function(e){function t(e,t,n){let r={diagnostics:e};return null!=t&&(r.only=t),null!=n&&(r.triggerKind=n),r}function n(e){let t=e;return bVt.defined(t)&&bVt.typedArray(t.diagnostics,lqt.is)&&(void 0===t.only||bVt.typedArray(t.only,bVt.string))&&(void 0===t.triggerKind||t.triggerKind===Yqt.Invoked||t.triggerKind===Yqt.Automatic)}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(Zqt||(Zqt={})),function(e){function t(e,t,n){let r={title:e},i=!0;return"string"==typeof t?(i=!1,r.kind=t):cqt.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r}function n(e){let t=e;return t&&bVt.string(t.title)&&(void 0===t.diagnostics||bVt.typedArray(t.diagnostics,lqt.is))&&(void 0===t.kind||bVt.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||cqt.is(t.command))&&(void 0===t.isPreferred||bVt.boolean(t.isPreferred))&&(void 0===t.edit||Aqt.is(t.edit))}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(Gqt||(Gqt={})),function(e){function t(e,t){let n={range:e};return bVt.defined(t)&&(n.data=t),n}function n(e){let t=e;return bVt.defined(t)&&Gzt.is(t.range)&&(bVt.undefined(t.command)||cqt.is(t.command))}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(Hqt||(Hqt={})),function(e){function t(e,t){return{tabSize:e,insertSpaces:t}}function n(e){let t=e;return bVt.defined(t)&&bVt.uinteger(t.tabSize)&&bVt.boolean(t.insertSpaces)}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(Kqt||(Kqt={})),function(e){function t(e,t,n){return{range:e,target:t,data:n}}function n(e){let t=e;return bVt.defined(t)&&Gzt.is(t.range)&&(bVt.undefined(t.target)||bVt.string(t.target))}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(Jqt||(Jqt={})),function(e){function t(e,t){return{range:e,parent:t}}function n(t){let n=t;return bVt.objectLiteral(n)&&Gzt.is(n.range)&&(void 0===n.parent||e.is(n.parent))}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(eVt||(eVt={})),(f=tVt||(tVt={})).namespace="namespace",f.type="type",f.class="class",f.enum="enum",f.interface="interface",f.struct="struct",f.typeParameter="typeParameter",f.parameter="parameter",f.variable="variable",f.property="property",f.enumMember="enumMember",f.event="event",f.function="function",f.method="method",f.macro="macro",f.keyword="keyword",f.modifier="modifier",f.comment="comment",f.string="string",f.number="number",f.regexp="regexp",f.operator="operator",f.decorator="decorator",(g=nVt||(nVt={})).declaration="declaration",g.definition="definition",g.readonly="readonly",g.static="static",g.deprecated="deprecated",g.abstract="abstract",g.async="async",g.modification="modification",g.documentation="documentation",g.defaultLibrary="defaultLibrary",function(e){function t(e){const t=e;return bVt.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}_Vt(t,"is"),e.is=t}(rVt||(rVt={})),function(e){function t(e,t){return{range:e,text:t}}function n(e){const t=e;return null!=t&&Gzt.is(t.range)&&bVt.string(t.text)}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(iVt||(iVt={})),function(e){function t(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}}function n(e){const t=e;return null!=t&&Gzt.is(t.range)&&bVt.boolean(t.caseSensitiveLookup)&&(bVt.string(t.variableName)||void 0===t.variableName)}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(oVt||(oVt={})),function(e){function t(e,t){return{range:e,expression:t}}function n(e){const t=e;return null!=t&&Gzt.is(t.range)&&(bVt.string(t.expression)||void 0===t.expression)}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(aVt||(aVt={})),function(e){function t(e,t){return{frameId:e,stoppedLocation:t}}function n(e){const t=e;return bVt.defined(t)&&Gzt.is(e.stoppedLocation)}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(sVt||(sVt={})),function(e){function t(e){return 1===e||2===e}e.Type=1,e.Parameter=2,_Vt(t,"is"),e.is=t}(lVt||(lVt={})),function(e){function t(e){return{value:e}}function n(e){const t=e;return bVt.objectLiteral(t)&&(void 0===t.tooltip||bVt.string(t.tooltip)||$qt.is(t.tooltip))&&(void 0===t.location||Hzt.is(t.location))&&(void 0===t.command||cqt.is(t.command))}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(cVt||(cVt={})),function(e){function t(e,t,n){const r={position:e,label:t};return void 0!==n&&(r.kind=n),r}function n(e){const t=e;return bVt.objectLiteral(t)&&Zzt.is(t.position)&&(bVt.string(t.label)||bVt.typedArray(t.label,cVt.is))&&(void 0===t.kind||lVt.is(t.kind))&&void 0===t.textEdits||bVt.typedArray(t.textEdits,uqt.is)&&(void 0===t.tooltip||bVt.string(t.tooltip)||$qt.is(t.tooltip))&&(void 0===t.paddingLeft||bVt.boolean(t.paddingLeft))&&(void 0===t.paddingRight||bVt.boolean(t.paddingRight))}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(uVt||(uVt={})),function(e){function t(e){return{kind:"snippet",value:e}}_Vt(t,"createSnippet"),e.createSnippet=t}(hVt||(hVt={})),function(e){function t(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}_Vt(t,"create"),e.create=t}(dVt||(dVt={})),function(e){function t(e){return{items:e}}_Vt(t,"create"),e.create=t}(pVt||(pVt={})),(m=fVt||(fVt={})).Invoked=0,m.Automatic=1,function(e){function t(e,t){return{range:e,text:t}}_Vt(t,"create"),e.create=t}(gVt||(gVt={})),function(e){function t(e,t){return{triggerKind:e,selectedCompletionInfo:t}}_Vt(t,"create"),e.create=t}(mVt||(mVt={})),function(e){function t(e){const t=e;return bVt.objectLiteral(t)&&Wzt.is(t.uri)&&bVt.string(t.name)}_Vt(t,"is"),e.is=t}(OVt||(OVt={})),AVt=["\n","\r\n","\r"],function(e){function t(e,t,n,r){return new vVt(e,t,n,r)}function n(e){let t=e;return!!(bVt.defined(t)&&bVt.string(t.uri)&&(bVt.undefined(t.languageId)||bVt.string(t.languageId))&&bVt.uinteger(t.lineCount)&&bVt.func(t.getText)&&bVt.func(t.positionAt)&&bVt.func(t.offsetAt))}function r(e,t){let n=e.getText(),r=i(t,(e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n}),o=n.length;for(let i=r.length-1;i>=0;i--){let t=r[i],a=e.offsetAt(t.range.start),s=e.offsetAt(t.range.end);if(!(s<=o))throw new Error("Overlapping edit");n=n.substring(0,a)+t.newText+n.substring(s,n.length),o=a}return n}function i(e,t){if(e.length<=1)return e;const n=e.length/2|0,r=e.slice(0,n),o=e.slice(n);i(r,t),i(o,t);let a=0,s=0,l=0;for(;a<r.length&&s<o.length;){let n=t(r[a],o[s]);e[l++]=n<=0?r[a++]:o[s++]}for(;a<r.length;)e[l++]=r[a++];for(;s<o.length;)e[l++]=o[s++];return e}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n,_Vt(r,"applyEdits"),e.applyEdits=r,_Vt(i,"mergeSort")}(yVt||(yVt={})),r=class{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&(e.push(r),n=!1);let i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return Zzt.create(0,e);for(;n<r;){let i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}let i=n-1;return Zzt.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}},_Vt(r,"FullTextDocument"),vVt=r,function(e){const t=Object.prototype.toString;function n(e){return void 0!==e}function r(e){return void 0===e}function i(e){return!0===e||!1===e}function o(e){return"[object String]"===t.call(e)}function a(e){return"[object Number]"===t.call(e)}function s(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r}function l(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647}function c(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647}function u(e){return"[object Function]"===t.call(e)}function h(e){return null!==e&&"object"==typeof e}function d(e,t){return Array.isArray(e)&&e.every(t)}_Vt(n,"defined"),e.defined=n,_Vt(r,"undefined"),e.undefined=r,_Vt(i,"boolean"),e.boolean=i,_Vt(o,"string"),e.string=o,_Vt(a,"number"),e.number=a,_Vt(s,"numberRange"),e.numberRange=s,_Vt(l,"integer"),e.integer=l,_Vt(c,"uinteger"),e.uinteger=c,_Vt(u,"func"),e.func=u,_Vt(h,"objectLiteral"),e.objectLiteral=h,_Vt(d,"typedArray"),e.typedArray=d}(bVt||(bVt={}))}},function(){return LVt&&(DVt=(0,LVt[SVt(LVt)[0]])(LVt=0)),DVt}),NVt=CVt({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/ral.js"(e){var t;function n(){if(void 0===t)throw new Error("No runtime abstraction layer installed");return t}Object.defineProperty(e,"__esModule",{value:!0}),_Vt(n,"RAL"),function(e){function n(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");t=e}_Vt(n,"install"),e.install=n}(n||(n={})),e.default=n}}),XVt=CVt({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/is.js"(e){function t(e){return!0===e||!1===e}function n(e){return"string"==typeof e||e instanceof String}function r(e){return"number"==typeof e||e instanceof Number}function i(e){return e instanceof Error}function o(e){return"function"==typeof e}function a(e){return Array.isArray(e)}function s(e){return a(e)&&e.every(e=>n(e))}Object.defineProperty(e,"__esModule",{value:!0}),e.stringArray=e.array=e.func=e.error=e.number=e.string=e.boolean=void 0,_Vt(t,"boolean"),e.boolean=t,_Vt(n,"string"),e.string=n,_Vt(r,"number"),e.number=r,_Vt(i,"error"),e.error=i,_Vt(o,"func"),e.func=o,_Vt(a,"array"),e.array=a,_Vt(s,"stringArray"),e.stringArray=s}}),FVt=CVt({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/events.js"(e){var t,n;Object.defineProperty(e,"__esModule",{value:!0}),e.Emitter=e.Event=void 0;var r,i=NVt();!function(e){const t={dispose(){}};e.None=function(){return t}}(r||(e.Event=r={}));var o=(t=class{add(e,t=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(n)&&n.push({dispose:_Vt(()=>this.remove(e,t),"dispose")})}remove(e,t=null){if(!this._callbacks)return;let n=!1;for(let r=0,i=this._callbacks.length;r<i;r++)if(this._callbacks[r]===e){if(this._contexts[r]===t)return this._callbacks.splice(r,1),void this._contexts.splice(r,1);n=!0}if(n)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];const t=[],n=this._callbacks.slice(0),r=this._contexts.slice(0);for(let o=0,a=n.length;o<a;o++)try{t.push(n[o].apply(r[o],e))}catch(jk){(0,i.default)().console.error(jk)}return t}isEmpty(){return!this._callbacks||0===this._callbacks.length}dispose(){this._callbacks=void 0,this._contexts=void 0}},_Vt(t,"CallbackList"),t),a=(_Vt(n=class{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,t,r)=>{this._callbacks||(this._callbacks=new o),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);const i={dispose:_Vt(()=>{this._callbacks&&(this._callbacks.remove(e,t),i.dispose=n._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))},"dispose")};return Array.isArray(r)&&r.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}},"Emitter"),n);e.Emitter=a,a._noop=function(){}}}),UVt=CVt({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(e){var t,n;Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;var r,i=NVt(),o=XVt(),a=FVt();!function(e){function t(t){const n=t;return n&&(n===e.None||n===e.Cancelled||o.boolean(n.isCancellationRequested)&&!!n.onCancellationRequested)}e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:a.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:a.Event.None}),_Vt(t,"is"),e.is=t}(r||(e.CancellationToken=r={}));var s=Object.freeze(function(e,t){const n=(0,i.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}),l=(_Vt(t=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?s:(this._emitter||(this._emitter=new a.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},"MutableToken"),t),c=(_Vt(n=class{get token(){return this._token||(this._token=new l),this._token}cancel(){this._token?this._token.cancel():this._token=r.Cancelled}dispose(){this._token?this._token instanceof l&&this._token.dispose():this._token=r.None}},"CancellationTokenSource"),n);e.CancellationTokenSource=c}}),zVt=CVt({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messages.js"(e){var t,n,r,i,o,a,s,l,c,u,h,d,p,f,g,m,O,A,y,v,b,x,w,k,S;Object.defineProperty(e,"__esModule",{value:!0}),e.Message=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType=e.RequestType0=e.AbstractMessageSignature=e.ParameterStructures=e.ResponseError=e.ErrorCodes=void 0;var T,$,_=XVt();($=T||(e.ErrorCodes=T={})).ParseError=-32700,$.InvalidRequest=-32600,$.MethodNotFound=-32601,$.InvalidParams=-32602,$.InternalError=-32603,$.jsonrpcReservedErrorRangeStart=-32099,$.serverErrorStart=-32099,$.MessageWriteError=-32099,$.MessageReadError=-32098,$.PendingResponseRejected=-32097,$.ConnectionInactive=-32096,$.ServerNotInitialized=-32002,$.UnknownErrorCode=-32001,$.jsonrpcReservedErrorRangeEnd=-32e3,$.serverErrorEnd=-32e3;var C=(t=class extends Error{constructor(e,n,r){super(n),this.code=_.number(e)?e:T.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,t.prototype)}toJson(){const e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),e}},_Vt(t,"ResponseError"),t);e.ResponseError=C;var Q=(_Vt(n=class{constructor(e){this.kind=e}static is(e){return e===n.auto||e===n.byName||e===n.byPosition}toString(){return this.kind}},"ParameterStructures"),n);e.ParameterStructures=Q,Q.auto=new Q("auto"),Q.byPosition=new Q("byPosition"),Q.byName=new Q("byName");var P=(_Vt(r=class{constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return Q.auto}},"AbstractMessageSignature"),r);e.AbstractMessageSignature=P;var E=(_Vt(i=class extends P{constructor(e){super(e,0)}},"RequestType0"),i);e.RequestType0=E;var R=(_Vt(o=class extends P{constructor(e,t=Q.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},"RequestType"),o);e.RequestType=R;var B=(_Vt(a=class extends P{constructor(e,t=Q.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},"RequestType1"),a);e.RequestType1=B;var I=(_Vt(s=class extends P{constructor(e){super(e,2)}},"RequestType2"),s);e.RequestType2=I;var L=(_Vt(l=class extends P{constructor(e){super(e,3)}},"RequestType3"),l);e.RequestType3=L;var D=(_Vt(c=class extends P{constructor(e){super(e,4)}},"RequestType4"),c);e.RequestType4=D;var M=(_Vt(u=class extends P{constructor(e){super(e,5)}},"RequestType5"),u);e.RequestType5=M;var N=(_Vt(h=class extends P{constructor(e){super(e,6)}},"RequestType6"),h);e.RequestType6=N;var X=(_Vt(d=class extends P{constructor(e){super(e,7)}},"RequestType7"),d);e.RequestType7=X;var F=(_Vt(p=class extends P{constructor(e){super(e,8)}},"RequestType8"),p);e.RequestType8=F;var U=(_Vt(f=class extends P{constructor(e){super(e,9)}},"RequestType9"),f);e.RequestType9=U;var z=(_Vt(g=class extends P{constructor(e,t=Q.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},"NotificationType"),g);e.NotificationType=z;var q=(_Vt(m=class extends P{constructor(e){super(e,0)}},"NotificationType0"),m);e.NotificationType0=q;var V=(_Vt(O=class extends P{constructor(e,t=Q.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},"NotificationType1"),O);e.NotificationType1=V;var W=(_Vt(A=class extends P{constructor(e){super(e,2)}},"NotificationType2"),A);e.NotificationType2=W;var j=(_Vt(y=class extends P{constructor(e){super(e,3)}},"NotificationType3"),y);e.NotificationType3=j;var Y=(_Vt(v=class extends P{constructor(e){super(e,4)}},"NotificationType4"),v);e.NotificationType4=Y;var Z=(_Vt(b=class extends P{constructor(e){super(e,5)}},"NotificationType5"),b);e.NotificationType5=Z;var G=(_Vt(x=class extends P{constructor(e){super(e,6)}},"NotificationType6"),x);e.NotificationType6=G;var H=(_Vt(w=class extends P{constructor(e){super(e,7)}},"NotificationType7"),w);e.NotificationType7=H;var K=(_Vt(k=class extends P{constructor(e){super(e,8)}},"NotificationType8"),k);e.NotificationType8=K;var J,ee=(_Vt(S=class extends P{constructor(e){super(e,9)}},"NotificationType9"),S);e.NotificationType9=ee,function(e){function t(e){const t=e;return t&&_.string(t.method)&&(_.string(t.id)||_.number(t.id))}function n(e){const t=e;return t&&_.string(t.method)&&void 0===e.id}function r(e){const t=e;return t&&(void 0!==t.result||!!t.error)&&(_.string(t.id)||_.number(t.id)||null===t.id)}_Vt(t,"isRequest"),e.isRequest=t,_Vt(n,"isNotification"),e.isNotification=n,_Vt(r,"isResponse"),e.isResponse=r}(J||(e.Message=J={}))}}),qVt=CVt({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(e){var t,n,r,i,o;Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=e.LinkedMap=e.Touch=void 0,(o=i||(e.Touch=i={})).None=0,o.First=1,o.AsOld=o.First,o.Last=2,o.AsNew=o.Last;var a=(t=class{constructor(){this[r]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return null==(e=this._head)?void 0:e.value}get last(){var e;return null==(e=this._tail)?void 0:e.value}has(e){return this._map.has(e)}get(e,t=i.None){const n=this._map.get(e);if(n)return t!==i.None&&this.touch(n,t),n.value}set(e,t,n=i.None){let r=this._map.get(e);if(r)r.value=t,n!==i.None&&this.touch(r,n);else{switch(r={key:e,value:t,next:void 0,previous:void 0},n){case i.None:this.addItemLast(r);break;case i.First:this.addItemFirst(r);break;case i.Last:default:this.addItemLast(r)}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let r=this._head;for(;r;){if(t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:_Vt(()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.key,done:!1};return t=t.next,e}return{value:void 0,done:!0}},"next")};return n}values(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:_Vt(()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.value,done:!1};return t=t.next,e}return{value:void 0,done:!0}},"next")};return n}entries(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:_Vt(()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:[t.key,t.value],done:!1};return t=t.next,e}return{value:void 0,done:!0}},"next")};return n}[(r=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(t===i.First||t===i.Last)if(t===i.First){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===i.Last){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach((t,n)=>{e.push([n,t])}),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}},_Vt(t,"LinkedMap"),t);e.LinkedMap=a;var s=(_Vt(n=class extends a{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=i.AsNew){return super.get(e,t)}peek(e){return super.get(e,i.None)}set(e,t){return super.set(e,t,i.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}},"LRUCache"),n);e.LRUCache=s}}),VVt=CVt({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/disposable.js"(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.Disposable=void 0,function(e){function t(e){return{dispose:e}}_Vt(t,"create"),e.create=t}(t||(e.Disposable=t={}))}}),WVt=CVt({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(e){var t,n,r,i;Object.defineProperty(e,"__esModule",{value:!0}),e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=void 0;var o,a,s=UVt();(a=o||(o={})).Continue=0,a.Cancelled=1;var l=(_Vt(t=class{constructor(){this.buffers=new Map}enableCancellation(e){if(null===e.id)return;const t=new SharedArrayBuffer(4);new Int32Array(t,0,1)[0]=o.Continue,this.buffers.set(e.id,t),e.$cancellationData=t}async sendCancellation(e,t){const n=this.buffers.get(t);if(void 0===n)return;const r=new Int32Array(n,0,1);Atomics.store(r,0,o.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}},"SharedArraySenderStrategy"),t);e.SharedArraySenderStrategy=l;var c=(_Vt(n=class{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===o.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},"SharedArrayBufferCancellationToken"),n),u=(_Vt(r=class{constructor(e){this.token=new c(e)}cancel(){}dispose(){}},"SharedArrayBufferCancellationTokenSource"),r),h=(_Vt(i=class{constructor(){this.kind="request"}createCancellationTokenSource(e){const t=e.$cancellationData;return void 0===t?new s.CancellationTokenSource:new u(t)}},"SharedArrayReceiverStrategy"),i);e.SharedArrayReceiverStrategy=h}}),jVt=CVt({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/semaphore.js"(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.Semaphore=void 0;var n=NVt(),r=(_Vt(t=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((t,n)=>{this._waiting.push({thunk:e,resolve:t,reject:n}),this.runNext()})}get active(){return this._active}runNext(){0!==this._waiting.length&&this._active!==this._capacity&&(0,n.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(0===this._waiting.length||this._active===this._capacity)return;const e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{const t=e.thunk();t instanceof Promise?t.then(t=>{this._active--,e.resolve(t),this.runNext()},t=>{this._active--,e.reject(t),this.runNext()}):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}},"Semaphore"),t);e.Semaphore=r}}),YVt=CVt({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(e){var t,n;Object.defineProperty(e,"__esModule",{value:!0}),e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=void 0;var r,i=NVt(),o=XVt(),a=FVt(),s=jVt();!function(e){function t(e){let t=e;return t&&o.func(t.listen)&&o.func(t.dispose)&&o.func(t.onError)&&o.func(t.onClose)&&o.func(t.onPartialMessage)}_Vt(t,"is"),e.is=t}(r||(e.MessageReader=r={}));var l,c=(_Vt(t=class{constructor(){this.errorEmitter=new a.Emitter,this.closeEmitter=new a.Emitter,this.partialMessageEmitter=new a.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${o.string(e.message)?e.message:"unknown"}`)}},"AbstractMessageReader"),t);e.AbstractMessageReader=c,function(e){function t(e){let t,n;const r=new Map;let o;const a=new Map;if(void 0===e||"string"==typeof e)t=e??"utf-8";else{if(t=e.charset??"utf-8",void 0!==e.contentDecoder&&(n=e.contentDecoder,r.set(n.name,n)),void 0!==e.contentDecoders)for(const t of e.contentDecoders)r.set(t.name,t);if(void 0!==e.contentTypeDecoder&&(o=e.contentTypeDecoder,a.set(o.name,o)),void 0!==e.contentTypeDecoders)for(const t of e.contentTypeDecoders)a.set(t.name,t)}return void 0===o&&(o=(0,i.default)().applicationJson.decoder,a.set(o.name,o)),{charset:t,contentDecoder:n,contentDecoders:r,contentTypeDecoder:o,contentTypeDecoders:a}}_Vt(t,"fromOptions"),e.fromOptions=t}(l||(l={}));var u=(_Vt(n=class extends c{constructor(e,t){super(),this.readable=e,this.options=l.fromOptions(t),this.buffer=(0,i.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new s.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;const t=this.readable.onData(e=>{this.onData(e)});return this.readable.onError(e=>this.fireError(e)),this.readable.onClose(()=>this.fireClose()),t}onData(e){try{for(this.buffer.append(e);;){if(-1===this.nextMessageLength){const e=this.buffer.tryReadHeaders(!0);if(!e)return;const t=e.get("content-length");if(!t)return void this.fireError(new Error(`Header must provide a Content-Length property.\n${JSON.stringify(Object.fromEntries(e))}`));const n=parseInt(t);if(isNaN(n))return void this.fireError(new Error(`Content-Length value must be a number. Got ${t}`));this.nextMessageLength=n}const e=this.buffer.tryReadBody(this.nextMessageLength);if(void 0===e)return void this.setPartialMessageTimer();this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{const t=void 0!==this.options.contentDecoder?await this.options.contentDecoder.decode(e):e,n=await this.options.contentTypeDecoder.decode(t,this.options);this.callback(n)}).catch(e=>{this.fireError(e)})}}catch(t){this.fireError(t)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),this._partialMessageTimeout<=0||(this.partialMessageTimer=(0,i.default)().timer.setTimeout((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}},"ReadableStreamMessageReader"),n);e.ReadableStreamMessageReader=u}}),ZVt=CVt({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageWriter.js"(e){var t,n;Object.defineProperty(e,"__esModule",{value:!0}),e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=void 0;var r,i=NVt(),o=XVt(),a=jVt(),s=FVt();!function(e){function t(e){let t=e;return t&&o.func(t.dispose)&&o.func(t.onClose)&&o.func(t.onError)&&o.func(t.write)}_Vt(t,"is"),e.is=t}(r||(e.MessageWriter=r={}));var l,c=(t=class{constructor(){this.errorEmitter=new s.Emitter,this.closeEmitter=new s.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,n){this.errorEmitter.fire([this.asError(e),t,n])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${o.string(e.message)?e.message:"unknown"}`)}},_Vt(t,"AbstractMessageWriter"),t);e.AbstractMessageWriter=c,function(e){function t(e){return void 0===e||"string"==typeof e?{charset:e??"utf-8",contentTypeEncoder:(0,i.default)().applicationJson.encoder}:{charset:e.charset??"utf-8",contentEncoder:e.contentEncoder,contentTypeEncoder:e.contentTypeEncoder??(0,i.default)().applicationJson.encoder}}_Vt(t,"fromOptions"),e.fromOptions=t}(l||(l={}));var u=(_Vt(n=class extends c{constructor(e,t){super(),this.writable=e,this.options=l.fromOptions(t),this.errorCount=0,this.writeSemaphore=new a.Semaphore(1),this.writable.onError(e=>this.fireError(e)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(e=>void 0!==this.options.contentEncoder?this.options.contentEncoder.encode(e):e).then(t=>{const n=[];return n.push("Content-Length: ",t.byteLength.toString(),"\r\n"),n.push("\r\n"),this.doWrite(e,n,t)},e=>{throw this.fireError(e),e}))}async doWrite(e,t,n){try{return await this.writable.write(t.join(""),"ascii"),this.writable.write(n)}catch(r){return this.handleError(r,e),Promise.reject(r)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}},"WriteableStreamMessageWriter"),n);e.WriteableStreamMessageWriter=u}}),GVt=CVt({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMessageBuffer=void 0;var n=(t=class{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){const t="string"==typeof e?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(e=!1){if(0===this._chunks.length)return;let t=0,n=0,r=0,i=0;e:for(;n<this._chunks.length;){const e=this._chunks[n];for(r=0;r<e.length;){switch(e[r]){case 13:switch(t){case 0:t=1;break;case 2:t=3;break;default:t=0}break;case 10:switch(t){case 1:t=2;break;case 3:t=4,r++;break e;default:t=0}break;default:t=0}r++}i+=e.byteLength,n++}if(4!==t)return;const o=this._read(i+r),a=new Map,s=this.toString(o,"ascii").split("\r\n");if(s.length<2)return a;for(let l=0;l<s.length-2;l++){const t=s[l],n=t.indexOf(":");if(-1===n)throw new Error(`Message header must separate key and value using ':'\n${t}`);const r=t.substr(0,n),i=t.substr(n+1).trim();a.set(e?r.toLowerCase():r,i)}return a}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(0===e)return this.emptyBuffer();if(e>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){const t=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(t)}if(this._chunks[0].byteLength>e){const t=this._chunks[0],n=this.asNative(t,e);return this._chunks[0]=t.slice(e),this._totalLength-=e,n}const t=this.allocNative(e);let n=0;for(;e>0;){const r=this._chunks[0];if(r.byteLength>e){const i=r.slice(0,e);t.set(i,n),n+=e,this._chunks[0]=r.slice(e),this._totalLength-=e,e-=e}else t.set(r,n),n+=r.byteLength,this._chunks.shift(),this._totalLength-=r.byteLength,e-=r.byteLength}return t}},_Vt(t,"AbstractMessageBuffer"),t);e.AbstractMessageBuffer=n}}),HVt=CVt({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/connection.js"(e){var t,n;Object.defineProperty(e,"__esModule",{value:!0}),e.createMessageConnection=e.ConnectionOptions=e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.RequestCancellationReceiverStrategy=e.IdCancellationReceiverStrategy=e.ConnectionStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=e.NullLogger=e.ProgressType=e.ProgressToken=void 0;var r,i,o,a=NVt(),s=XVt(),l=zVt(),c=qVt(),u=FVt(),h=UVt();(r||(r={})).type=new l.NotificationType("$/cancelRequest"),function(e){function t(e){return"string"==typeof e||"number"==typeof e}_Vt(t,"is"),e.is=t}(i||(e.ProgressToken=i={})),(o||(o={})).type=new l.NotificationType("$/progress");var d,p,f,g,m,O,A,y,v,b,x,w=(_Vt(t=class{constructor(){}},"ProgressType"),t);e.ProgressType=w,function(e){function t(e){return s.func(e)}_Vt(t,"is"),e.is=t}(d||(d={})),e.NullLogger=Object.freeze({error:_Vt(()=>{},"error"),warn:_Vt(()=>{},"warn"),info:_Vt(()=>{},"info"),log:_Vt(()=>{},"log")}),(f=p||(e.Trace=p={}))[f.Off=0]="Off",f[f.Messages=1]="Messages",f[f.Compact=2]="Compact",f[f.Verbose=3]="Verbose",(m=g||(e.TraceValues=g={})).Off="off",m.Messages="messages",m.Compact="compact",m.Verbose="verbose",function(e){function t(t){if(!s.string(t))return e.Off;switch(t=t.toLowerCase()){case"off":default:return e.Off;case"messages":return e.Messages;case"compact":return e.Compact;case"verbose":return e.Verbose}}function n(t){switch(t){case e.Off:return"off";case e.Messages:return"messages";case e.Compact:return"compact";case e.Verbose:return"verbose";default:return"off"}}_Vt(t,"fromString"),e.fromString=t,_Vt(n,"toString"),e.toString=n}(p||(e.Trace=p={})),(A=O||(e.TraceFormat=O={})).Text="text",A.JSON="json",function(e){function t(t){return s.string(t)&&"json"===(t=t.toLowerCase())?e.JSON:e.Text}_Vt(t,"fromString"),e.fromString=t}(O||(e.TraceFormat=O={})),(y||(e.SetTraceNotification=y={})).type=new l.NotificationType("$/setTrace"),(v||(e.LogTraceNotification=v={})).type=new l.NotificationType("$/logTrace"),(x=b||(e.ConnectionErrors=b={}))[x.Closed=1]="Closed",x[x.Disposed=2]="Disposed",x[x.AlreadyListening=3]="AlreadyListening";var k,S,T,$,_,C,Q,P,E,R,B=(n=class extends Error{constructor(e,t){super(t),this.code=e,Object.setPrototypeOf(this,n.prototype)}},_Vt(n,"ConnectionError"),n);function I(t,n,f,g){const m=void 0!==f?f:e.NullLogger;let A=0,x=0,w=0;const k="2.0";let T;const $=new Map;let _;const P=new Map,R=new Map;let I,L,D=new c.LinkedMap,M=new Map,N=new Set,X=new Map,F=p.Off,U=O.Text,z=E.New;const q=new u.Emitter,V=new u.Emitter,W=new u.Emitter,j=new u.Emitter,Y=new u.Emitter,Z=g&&g.cancellationStrategy?g.cancellationStrategy:C.Message;function G(e){if(null===e)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+e.toString()}function H(e){return null===e?"res-unknown-"+(++w).toString():"res-"+e.toString()}function K(){return"not-"+(++x).toString()}function J(e,t){l.Message.isRequest(t)?e.set(G(t.id),t):l.Message.isResponse(t)?e.set(H(t.id),t):e.set(K(),t)}function ee(e){}function te(){return z===E.Listening}function ne(){return z===E.Closed}function re(){return z===E.Disposed}function ie(){z!==E.New&&z!==E.Listening||(z=E.Closed,V.fire(void 0))}function oe(e){q.fire([e,void 0,void 0])}function ae(e){q.fire(e)}function se(){I||0===D.size||(I=(0,a.default)().timer.setImmediate(()=>{I=void 0,ce()}))}function le(e){l.Message.isRequest(e)?he(e):l.Message.isNotification(e)?pe(e):l.Message.isResponse(e)?de(e):fe(e)}function ce(){if(0===D.size)return;const e=D.shift();try{const t=null==g?void 0:g.messageStrategy;Q.is(t)?t.handleMessage(e,le):le(e)}finally{se()}}_Vt(G,"createRequestQueueKey"),_Vt(H,"createResponseQueueKey"),_Vt(K,"createNotificationQueueKey"),_Vt(J,"addMessageToQueue"),_Vt(ee,"cancelUndispatched"),_Vt(te,"isListening"),_Vt(ne,"isClosed"),_Vt(re,"isDisposed"),_Vt(ie,"closeHandler"),_Vt(oe,"readErrorHandler"),_Vt(ae,"writeErrorHandler"),t.onClose(ie),t.onError(oe),n.onClose(ie),n.onError(ae),_Vt(se,"triggerMessageQueue"),_Vt(le,"handleMessage"),_Vt(ce,"processMessageQueue");const ue=_Vt(e=>{try{if(l.Message.isNotification(e)&&e.method===r.type.method){const t=e.params.id,r=G(t),i=D.get(r);if(l.Message.isRequest(i)){const o=null==g?void 0:g.connectionStrategy,a=o&&o.cancelUndispatched?o.cancelUndispatched(i,ee):void 0;if(a&&(void 0!==a.error||void 0!==a.result))return D.delete(r),X.delete(t),a.id=i.id,Ae(a,e.method,Date.now()),void n.write(a).catch(()=>m.error("Sending response for canceled message failed."))}const o=X.get(t);if(void 0!==o)return o.cancel(),void ve(e);N.add(t)}J(D,e)}finally{se()}},"callback");function he(e){if(re())return;function t(t,r,i){const o={jsonrpc:k,id:e.id};t instanceof l.ResponseError?o.error=t.toJson():o.result=void 0===t?null:t,Ae(o,r,i),n.write(o).catch(()=>m.error("Sending response failed."))}function r(t,r,i){const o={jsonrpc:k,id:e.id,error:t.toJson()};Ae(o,r,i),n.write(o).catch(()=>m.error("Sending response failed."))}function i(t,r,i){void 0===t&&(t=null);const o={jsonrpc:k,id:e.id,result:t};Ae(o,r,i),n.write(o).catch(()=>m.error("Sending response failed."))}_Vt(t,"reply"),_Vt(r,"replyError"),_Vt(i,"replySuccess"),ye(e);const o=$.get(e.method);let a,c;o&&(a=o.type,c=o.handler);const u=Date.now();if(c||T){const n=e.id??String(Date.now()),o=S.is(Z.receiver)?Z.receiver.createCancellationTokenSource(n):Z.receiver.createCancellationTokenSource(e);null!==e.id&&N.has(e.id)&&o.cancel(),null!==e.id&&X.set(n,o);try{let h;if(c)if(void 0===e.params){if(void 0!==a&&0!==a.numberOfParams)return void r(new l.ResponseError(l.ErrorCodes.InvalidParams,`Request ${e.method} defines ${a.numberOfParams} params but received none.`),e.method,u);h=c(o.token)}else if(Array.isArray(e.params)){if(void 0!==a&&a.parameterStructures===l.ParameterStructures.byName)return void r(new l.ResponseError(l.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,u);h=c(...e.params,o.token)}else{if(void 0!==a&&a.parameterStructures===l.ParameterStructures.byPosition)return void r(new l.ResponseError(l.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,u);h=c(e.params,o.token)}else T&&(h=T(e.method,e.params,o.token));const d=h;h?d.then?d.then(r=>{X.delete(n),t(r,e.method,u)},t=>{X.delete(n),t instanceof l.ResponseError?r(t,e.method,u):t&&s.string(t.message)?r(new l.ResponseError(l.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${t.message}`),e.method,u):r(new l.ResponseError(l.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,u)}):(X.delete(n),t(h,e.method,u)):(X.delete(n),i(h,e.method,u))}catch(h){X.delete(n),h instanceof l.ResponseError?t(h,e.method,u):h&&s.string(h.message)?r(new l.ResponseError(l.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${h.message}`),e.method,u):r(new l.ResponseError(l.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,u)}}else r(new l.ResponseError(l.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,u)}function de(e){if(!re())if(null===e.id)e.error?m.error(`Received response message without id: Error is: \n${JSON.stringify(e.error,void 0,4)}`):m.error("Received response message without id. No further error information provided.");else{const n=e.id,r=M.get(n);if(be(e,r),void 0!==r){M.delete(n);try{if(e.error){const t=e.error;r.reject(new l.ResponseError(t.code,t.message,t.data))}else{if(void 0===e.result)throw new Error("Should never happen.");r.resolve(e.result)}}catch(t){t.message?m.error(`Response handler '${r.method}' failed with message: ${t.message}`):m.error(`Response handler '${r.method}' failed unexpectedly.`)}}}}function pe(e){if(re())return;let t,n;if(e.method===r.type.method){const t=e.params.id;return N.delete(t),void ve(e)}{const r=P.get(e.method);r&&(n=r.handler,t=r.type)}if(n||_)try{if(ve(e),n)if(void 0===e.params)void 0!==t&&0!==t.numberOfParams&&t.parameterStructures!==l.ParameterStructures.byName&&m.error(`Notification ${e.method} defines ${t.numberOfParams} params but received none.`),n();else if(Array.isArray(e.params)){const r=e.params;e.method===o.type.method&&2===r.length&&i.is(r[0])?n({token:r[0],value:r[1]}):(void 0!==t&&(t.parameterStructures===l.ParameterStructures.byName&&m.error(`Notification ${e.method} defines parameters by name but received parameters by position`),t.numberOfParams!==e.params.length&&m.error(`Notification ${e.method} defines ${t.numberOfParams} params but received ${r.length} arguments`)),n(...r))}else void 0!==t&&t.parameterStructures===l.ParameterStructures.byPosition&&m.error(`Notification ${e.method} defines parameters by position but received parameters by name`),n(e.params);else _&&_(e.method,e.params)}catch(a){a.message?m.error(`Notification handler '${e.method}' failed with message: ${a.message}`):m.error(`Notification handler '${e.method}' failed unexpectedly.`)}else W.fire(e)}function fe(e){if(!e)return void m.error("Received empty message.");m.error(`Received message which is neither a response nor a notification message:\n${JSON.stringify(e,null,4)}`);const t=e;if(s.string(t.id)||s.number(t.id)){const e=t.id,n=M.get(e);n&&n.reject(new Error("The received response has neither a result nor an error property."))}}function ge(e){if(null!=e)switch(F){case p.Verbose:return JSON.stringify(e,null,4);case p.Compact:return JSON.stringify(e);default:return}}function me(e){if(F!==p.Off&&L)if(U===O.Text){let t;F!==p.Verbose&&F!==p.Compact||!e.params||(t=`Params: ${ge(e.params)}\n\n`),L.log(`Sending request '${e.method} - (${e.id})'.`,t)}else xe("send-request",e)}function Oe(e){if(F!==p.Off&&L)if(U===O.Text){let t;F!==p.Verbose&&F!==p.Compact||(t=e.params?`Params: ${ge(e.params)}\n\n`:"No parameters provided.\n\n"),L.log(`Sending notification '${e.method}'.`,t)}else xe("send-notification",e)}function Ae(e,t,n){if(F!==p.Off&&L)if(U===O.Text){let r;F!==p.Verbose&&F!==p.Compact||(e.error&&e.error.data?r=`Error data: ${ge(e.error.data)}\n\n`:e.result?r=`Result: ${ge(e.result)}\n\n`:void 0===e.error&&(r="No result returned.\n\n")),L.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-n}ms`,r)}else xe("send-response",e)}function ye(e){if(F!==p.Off&&L)if(U===O.Text){let t;F!==p.Verbose&&F!==p.Compact||!e.params||(t=`Params: ${ge(e.params)}\n\n`),L.log(`Received request '${e.method} - (${e.id})'.`,t)}else xe("receive-request",e)}function ve(e){if(F!==p.Off&&L&&e.method!==v.type.method)if(U===O.Text){let t;F!==p.Verbose&&F!==p.Compact||(t=e.params?`Params: ${ge(e.params)}\n\n`:"No parameters provided.\n\n"),L.log(`Received notification '${e.method}'.`,t)}else xe("receive-notification",e)}function be(e,t){if(F!==p.Off&&L)if(U===O.Text){let n;if(F!==p.Verbose&&F!==p.Compact||(e.error&&e.error.data?n=`Error data: ${ge(e.error.data)}\n\n`:e.result?n=`Result: ${ge(e.result)}\n\n`:void 0===e.error&&(n="No result returned.\n\n")),t){const r=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:"";L.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${r}`,n)}else L.log(`Received response ${e.id} without active response promise.`,n)}else xe("receive-response",e)}function xe(e,t){if(!L||F===p.Off)return;const n={isLSPMessage:!0,type:e,message:t,timestamp:Date.now()};L.log(n)}function we(){if(ne())throw new B(b.Closed,"Connection is closed.");if(re())throw new B(b.Disposed,"Connection is disposed.")}function ke(){if(te())throw new B(b.AlreadyListening,"Connection is already listening")}function Se(){if(!te())throw new Error("Call listen() first.")}function Te(e){return void 0===e?null:e}function $e(e){return null===e?void 0:e}function _e(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Ce(e,t){switch(e){case l.ParameterStructures.auto:return _e(t)?$e(t):[Te(t)];case l.ParameterStructures.byName:if(!_e(t))throw new Error("Received parameters by name but param is not an object literal.");return $e(t);case l.ParameterStructures.byPosition:return[Te(t)];default:throw new Error(`Unknown parameter structure ${e.toString()}`)}}function Qe(e,t){let n;const r=e.numberOfParams;switch(r){case 0:n=void 0;break;case 1:n=Ce(e.parameterStructures,t[0]);break;default:n=[];for(let e=0;e<t.length&&e<r;e++)n.push(Te(t[e]));if(t.length<r)for(let e=t.length;e<r;e++)n.push(null)}return n}_Vt(he,"handleRequest"),_Vt(de,"handleResponse"),_Vt(pe,"handleNotification"),_Vt(fe,"handleInvalidMessage"),_Vt(ge,"stringifyTrace"),_Vt(me,"traceSendingRequest"),_Vt(Oe,"traceSendingNotification"),_Vt(Ae,"traceSendingResponse"),_Vt(ye,"traceReceivedRequest"),_Vt(ve,"traceReceivedNotification"),_Vt(be,"traceReceivedResponse"),_Vt(xe,"logLSPMessage"),_Vt(we,"throwIfClosedOrDisposed"),_Vt(ke,"throwIfListening"),_Vt(Se,"throwIfNotListening"),_Vt(Te,"undefinedToNull"),_Vt($e,"nullToUndefined"),_Vt(_e,"isNamedParam"),_Vt(Ce,"computeSingleParam"),_Vt(Qe,"computeMessageParams");const Pe={sendNotification:_Vt((e,...t)=>{let r,i;if(we(),s.string(e)){r=e;const n=t[0];let o=0,a=l.ParameterStructures.auto;l.ParameterStructures.is(n)&&(o=1,a=n);let s=t.length;const c=s-o;switch(c){case 0:i=void 0;break;case 1:i=Ce(a,t[o]);break;default:if(a===l.ParameterStructures.byName)throw new Error(`Received ${c} parameters for 'by Name' notification parameter structure.`);i=t.slice(o,s).map(e=>Te(e))}}else{const n=t;r=e.method,i=Qe(e,n)}const o={jsonrpc:k,method:r,params:i};return Oe(o),n.write(o).catch(e=>{throw m.error("Sending notification failed."),e})},"sendNotification"),onNotification:_Vt((e,t)=>{let n;return we(),s.func(e)?_=e:t&&(s.string(e)?(n=e,P.set(e,{type:void 0,handler:t})):(n=e.method,P.set(e.method,{type:e,handler:t}))),{dispose:_Vt(()=>{void 0!==n?P.delete(n):_=void 0},"dispose")}},"onNotification"),onProgress:_Vt((e,t,n)=>{if(R.has(t))throw new Error(`Progress handler for token ${t} already registered`);return R.set(t,n),{dispose:_Vt(()=>{R.delete(t)},"dispose")}},"onProgress"),sendProgress:_Vt((e,t,n)=>Pe.sendNotification(o.type,{token:t,value:n}),"sendProgress"),onUnhandledProgress:j.event,sendRequest:_Vt((e,...t)=>{let r,i,o;if(we(),Se(),s.string(e)){r=e;const n=t[0],a=t[t.length-1];let s=0,c=l.ParameterStructures.auto;l.ParameterStructures.is(n)&&(s=1,c=n);let u=t.length;h.CancellationToken.is(a)&&(u-=1,o=a);const d=u-s;switch(d){case 0:i=void 0;break;case 1:i=Ce(c,t[s]);break;default:if(c===l.ParameterStructures.byName)throw new Error(`Received ${d} parameters for 'by Name' request parameter structure.`);i=t.slice(s,u).map(e=>Te(e))}}else{const n=t;r=e.method,i=Qe(e,n);const a=e.numberOfParams;o=h.CancellationToken.is(n[a])?n[a]:void 0}const a=A++;let c;o&&(c=o.onCancellationRequested(()=>{const e=Z.sender.sendCancellation(Pe,a);return void 0===e?(m.log(`Received no promise from cancellation strategy when cancelling id ${a}`),Promise.resolve()):e.catch(()=>{m.log(`Sending cancellation messages for id ${a} failed`)})}));const u={jsonrpc:k,id:a,method:r,params:i};return me(u),"function"==typeof Z.sender.enableCancellation&&Z.sender.enableCancellation(u),new Promise(async(e,t)=>{const i=_Vt(t=>{e(t),Z.sender.cleanup(a),null==c||c.dispose()},"resolveWithCleanup"),o=_Vt(e=>{t(e),Z.sender.cleanup(a),null==c||c.dispose()},"rejectWithCleanup"),s={method:r,timerStart:Date.now(),resolve:i,reject:o};try{await n.write(u),M.set(a,s)}catch(h){throw m.error("Sending request failed."),s.reject(new l.ResponseError(l.ErrorCodes.MessageWriteError,h.message?h.message:"Unknown reason")),h}})},"sendRequest"),onRequest:_Vt((e,t)=>{we();let n=null;return d.is(e)?(n=void 0,T=e):s.string(e)?(n=null,void 0!==t&&(n=e,$.set(e,{handler:t,type:void 0}))):void 0!==t&&(n=e.method,$.set(e.method,{type:e,handler:t})),{dispose:_Vt(()=>{null!==n&&(void 0!==n?$.delete(n):T=void 0)},"dispose")}},"onRequest"),hasPendingResponse:_Vt(()=>M.size>0,"hasPendingResponse"),trace:_Vt(async(e,t,n)=>{let r=!1,i=O.Text;void 0!==n&&(s.boolean(n)?r=n:(r=n.sendNotification||!1,i=n.traceFormat||O.Text)),F=e,U=i,L=F===p.Off?void 0:t,!r||ne()||re()||await Pe.sendNotification(y.type,{value:p.toString(e)})},"trace"),onError:q.event,onClose:V.event,onUnhandledNotification:W.event,onDispose:Y.event,end:_Vt(()=>{n.end()},"end"),dispose:_Vt(()=>{if(re())return;z=E.Disposed,Y.fire(void 0);const e=new l.ResponseError(l.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const t of M.values())t.reject(e);M=new Map,X=new Map,N=new Set,D=new c.LinkedMap,s.func(n.dispose)&&n.dispose(),s.func(t.dispose)&&t.dispose()},"dispose"),listen:_Vt(()=>{we(),ke(),z=E.Listening,t.listen(ue)},"listen"),inspect:_Vt(()=>{(0,a.default)().console.log("inspect")},"inspect")};return Pe.onNotification(v.type,e=>{if(F===p.Off||!L)return;const t=F===p.Verbose||F===p.Compact;L.log(e.message,t?e.verbose:void 0)}),Pe.onNotification(o.type,e=>{const t=R.get(e.token);t?t(e.value):j.fire(e)}),Pe}e.ConnectionError=B,function(e){function t(e){const t=e;return t&&s.func(t.cancelUndispatched)}_Vt(t,"is"),e.is=t}(k||(e.ConnectionStrategy=k={})),function(e){function t(e){const t=e;return t&&(void 0===t.kind||"id"===t.kind)&&s.func(t.createCancellationTokenSource)&&(void 0===t.dispose||s.func(t.dispose))}_Vt(t,"is"),e.is=t}(S||(e.IdCancellationReceiverStrategy=S={})),function(e){function t(e){const t=e;return t&&"request"===t.kind&&s.func(t.createCancellationTokenSource)&&(void 0===t.dispose||s.func(t.dispose))}_Vt(t,"is"),e.is=t}(T||(e.RequestCancellationReceiverStrategy=T={})),function(e){function t(e){return S.is(e)||T.is(e)}e.Message=Object.freeze({createCancellationTokenSource:e=>new h.CancellationTokenSource}),_Vt(t,"is"),e.is=t}($||(e.CancellationReceiverStrategy=$={})),function(e){function t(e){const t=e;return t&&s.func(t.sendCancellation)&&s.func(t.cleanup)}e.Message=Object.freeze({sendCancellation:(e,t)=>e.sendNotification(r.type,{id:t}),cleanup(e){}}),_Vt(t,"is"),e.is=t}(_||(e.CancellationSenderStrategy=_={})),function(e){function t(e){const t=e;return t&&$.is(t.receiver)&&_.is(t.sender)}e.Message=Object.freeze({receiver:$.Message,sender:_.Message}),_Vt(t,"is"),e.is=t}(C||(e.CancellationStrategy=C={})),function(e){function t(e){const t=e;return t&&s.func(t.handleMessage)}_Vt(t,"is"),e.is=t}(Q||(e.MessageStrategy=Q={})),function(e){function t(e){const t=e;return t&&(C.is(t.cancellationStrategy)||k.is(t.connectionStrategy)||Q.is(t.messageStrategy))}_Vt(t,"is"),e.is=t}(P||(e.ConnectionOptions=P={})),(R=E||(E={}))[R.New=1]="New",R[R.Listening=2]="Listening",R[R.Closed=3]="Closed",R[R.Disposed=4]="Disposed",_Vt(I,"createMessageConnection"),e.createMessageConnection=I}}),KVt=CVt({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/api.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProgressType=e.ProgressToken=e.createMessageConnection=e.NullLogger=e.ConnectionOptions=e.ConnectionStrategy=e.AbstractMessageBuffer=e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=e.CancellationToken=e.CancellationTokenSource=e.Emitter=e.Event=e.Disposable=e.LRUCache=e.Touch=e.LinkedMap=e.ParameterStructures=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.ErrorCodes=e.ResponseError=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType0=e.RequestType=e.Message=e.RAL=void 0,e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=void 0;var t=zVt();Object.defineProperty(e,"Message",{enumerable:!0,get:_Vt(function(){return t.Message},"get")}),Object.defineProperty(e,"RequestType",{enumerable:!0,get:_Vt(function(){return t.RequestType},"get")}),Object.defineProperty(e,"RequestType0",{enumerable:!0,get:_Vt(function(){return t.RequestType0},"get")}),Object.defineProperty(e,"RequestType1",{enumerable:!0,get:_Vt(function(){return t.RequestType1},"get")}),Object.defineProperty(e,"RequestType2",{enumerable:!0,get:_Vt(function(){return t.RequestType2},"get")}),Object.defineProperty(e,"RequestType3",{enumerable:!0,get:_Vt(function(){return t.RequestType3},"get")}),Object.defineProperty(e,"RequestType4",{enumerable:!0,get:_Vt(function(){return t.RequestType4},"get")}),Object.defineProperty(e,"RequestType5",{enumerable:!0,get:_Vt(function(){return t.RequestType5},"get")}),Object.defineProperty(e,"RequestType6",{enumerable:!0,get:_Vt(function(){return t.RequestType6},"get")}),Object.defineProperty(e,"RequestType7",{enumerable:!0,get:_Vt(function(){return t.RequestType7},"get")}),Object.defineProperty(e,"RequestType8",{enumerable:!0,get:_Vt(function(){return t.RequestType8},"get")}),Object.defineProperty(e,"RequestType9",{enumerable:!0,get:_Vt(function(){return t.RequestType9},"get")}),Object.defineProperty(e,"ResponseError",{enumerable:!0,get:_Vt(function(){return t.ResponseError},"get")}),Object.defineProperty(e,"ErrorCodes",{enumerable:!0,get:_Vt(function(){return t.ErrorCodes},"get")}),Object.defineProperty(e,"NotificationType",{enumerable:!0,get:_Vt(function(){return t.NotificationType},"get")}),Object.defineProperty(e,"NotificationType0",{enumerable:!0,get:_Vt(function(){return t.NotificationType0},"get")}),Object.defineProperty(e,"NotificationType1",{enumerable:!0,get:_Vt(function(){return t.NotificationType1},"get")}),Object.defineProperty(e,"NotificationType2",{enumerable:!0,get:_Vt(function(){return t.NotificationType2},"get")}),Object.defineProperty(e,"NotificationType3",{enumerable:!0,get:_Vt(function(){return t.NotificationType3},"get")}),Object.defineProperty(e,"NotificationType4",{enumerable:!0,get:_Vt(function(){return t.NotificationType4},"get")}),Object.defineProperty(e,"NotificationType5",{enumerable:!0,get:_Vt(function(){return t.NotificationType5},"get")}),Object.defineProperty(e,"NotificationType6",{enumerable:!0,get:_Vt(function(){return t.NotificationType6},"get")}),Object.defineProperty(e,"NotificationType7",{enumerable:!0,get:_Vt(function(){return t.NotificationType7},"get")}),Object.defineProperty(e,"NotificationType8",{enumerable:!0,get:_Vt(function(){return t.NotificationType8},"get")}),Object.defineProperty(e,"NotificationType9",{enumerable:!0,get:_Vt(function(){return t.NotificationType9},"get")}),Object.defineProperty(e,"ParameterStructures",{enumerable:!0,get:_Vt(function(){return t.ParameterStructures},"get")});var n=qVt();Object.defineProperty(e,"LinkedMap",{enumerable:!0,get:_Vt(function(){return n.LinkedMap},"get")}),Object.defineProperty(e,"LRUCache",{enumerable:!0,get:_Vt(function(){return n.LRUCache},"get")}),Object.defineProperty(e,"Touch",{enumerable:!0,get:_Vt(function(){return n.Touch},"get")});var r=VVt();Object.defineProperty(e,"Disposable",{enumerable:!0,get:_Vt(function(){return r.Disposable},"get")});var i=FVt();Object.defineProperty(e,"Event",{enumerable:!0,get:_Vt(function(){return i.Event},"get")}),Object.defineProperty(e,"Emitter",{enumerable:!0,get:_Vt(function(){return i.Emitter},"get")});var o=UVt();Object.defineProperty(e,"CancellationTokenSource",{enumerable:!0,get:_Vt(function(){return o.CancellationTokenSource},"get")}),Object.defineProperty(e,"CancellationToken",{enumerable:!0,get:_Vt(function(){return o.CancellationToken},"get")});var a=WVt();Object.defineProperty(e,"SharedArraySenderStrategy",{enumerable:!0,get:_Vt(function(){return a.SharedArraySenderStrategy},"get")}),Object.defineProperty(e,"SharedArrayReceiverStrategy",{enumerable:!0,get:_Vt(function(){return a.SharedArrayReceiverStrategy},"get")});var s=YVt();Object.defineProperty(e,"MessageReader",{enumerable:!0,get:_Vt(function(){return s.MessageReader},"get")}),Object.defineProperty(e,"AbstractMessageReader",{enumerable:!0,get:_Vt(function(){return s.AbstractMessageReader},"get")}),Object.defineProperty(e,"ReadableStreamMessageReader",{enumerable:!0,get:_Vt(function(){return s.ReadableStreamMessageReader},"get")});var l=ZVt();Object.defineProperty(e,"MessageWriter",{enumerable:!0,get:_Vt(function(){return l.MessageWriter},"get")}),Object.defineProperty(e,"AbstractMessageWriter",{enumerable:!0,get:_Vt(function(){return l.AbstractMessageWriter},"get")}),Object.defineProperty(e,"WriteableStreamMessageWriter",{enumerable:!0,get:_Vt(function(){return l.WriteableStreamMessageWriter},"get")});var c=GVt();Object.defineProperty(e,"AbstractMessageBuffer",{enumerable:!0,get:_Vt(function(){return c.AbstractMessageBuffer},"get")});var u=HVt();Object.defineProperty(e,"ConnectionStrategy",{enumerable:!0,get:_Vt(function(){return u.ConnectionStrategy},"get")}),Object.defineProperty(e,"ConnectionOptions",{enumerable:!0,get:_Vt(function(){return u.ConnectionOptions},"get")}),Object.defineProperty(e,"NullLogger",{enumerable:!0,get:_Vt(function(){return u.NullLogger},"get")}),Object.defineProperty(e,"createMessageConnection",{enumerable:!0,get:_Vt(function(){return u.createMessageConnection},"get")}),Object.defineProperty(e,"ProgressToken",{enumerable:!0,get:_Vt(function(){return u.ProgressToken},"get")}),Object.defineProperty(e,"ProgressType",{enumerable:!0,get:_Vt(function(){return u.ProgressType},"get")}),Object.defineProperty(e,"Trace",{enumerable:!0,get:_Vt(function(){return u.Trace},"get")}),Object.defineProperty(e,"TraceValues",{enumerable:!0,get:_Vt(function(){return u.TraceValues},"get")}),Object.defineProperty(e,"TraceFormat",{enumerable:!0,get:_Vt(function(){return u.TraceFormat},"get")}),Object.defineProperty(e,"SetTraceNotification",{enumerable:!0,get:_Vt(function(){return u.SetTraceNotification},"get")}),Object.defineProperty(e,"LogTraceNotification",{enumerable:!0,get:_Vt(function(){return u.LogTraceNotification},"get")}),Object.defineProperty(e,"ConnectionErrors",{enumerable:!0,get:_Vt(function(){return u.ConnectionErrors},"get")}),Object.defineProperty(e,"ConnectionError",{enumerable:!0,get:_Vt(function(){return u.ConnectionError},"get")}),Object.defineProperty(e,"CancellationReceiverStrategy",{enumerable:!0,get:_Vt(function(){return u.CancellationReceiverStrategy},"get")}),Object.defineProperty(e,"CancellationSenderStrategy",{enumerable:!0,get:_Vt(function(){return u.CancellationSenderStrategy},"get")}),Object.defineProperty(e,"CancellationStrategy",{enumerable:!0,get:_Vt(function(){return u.CancellationStrategy},"get")}),Object.defineProperty(e,"MessageStrategy",{enumerable:!0,get:_Vt(function(){return u.MessageStrategy},"get")});var h=NVt();e.RAL=h.default}}),JVt=CVt({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/ril.js"(e){var t,n,r;Object.defineProperty(e,"__esModule",{value:!0});var i=KVt(),o=(t=class extends i.AbstractMessageBuffer{constructor(e="utf-8"){super(e),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return t.emptyBuffer}fromString(e,t){return(new TextEncoder).encode(e)}toString(e,t){return"ascii"===t?this.asciiDecoder.decode(e):new TextDecoder(t).decode(e)}asNative(e,t){return void 0===t?e:e.slice(0,t)}allocNative(e){return new Uint8Array(e)}},_Vt(t,"MessageBuffer"),t);o.emptyBuffer=new Uint8Array(0);var a=(_Vt(n=class{constructor(e){this.socket=e,this._onData=new i.Emitter,this._messageListener=e=>{e.data.arrayBuffer().then(e=>{this._onData.fire(new Uint8Array(e))},()=>{(0,i.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(e){return this.socket.addEventListener("close",e),i.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),i.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),i.Disposable.create(()=>this.socket.removeEventListener("end",e))}onData(e){return this._onData.event(e)}},"ReadableStreamWrapper"),n),s=(_Vt(r=class{constructor(e){this.socket=e}onClose(e){return this.socket.addEventListener("close",e),i.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),i.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),i.Disposable.create(()=>this.socket.removeEventListener("end",e))}write(e,t){if("string"==typeof e){if(void 0!==t&&"utf-8"!==t)throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t}`);this.socket.send(e)}else this.socket.send(e);return Promise.resolve()}end(){this.socket.close()}},"WritableStreamWrapper"),r),l=new TextEncoder,c=Object.freeze({messageBuffer:Object.freeze({create:_Vt(e=>new o(e),"create")}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:_Vt((e,t)=>{if("utf-8"!==t.charset)throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t.charset}`);return Promise.resolve(l.encode(JSON.stringify(e,void 0,0)))},"encode")}),decoder:Object.freeze({name:"application/json",decode:_Vt((e,t)=>{if(!(e instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(t.charset).decode(e)))},"decode")})}),stream:Object.freeze({asReadableStream:_Vt(e=>new a(e),"asReadableStream"),asWritableStream:_Vt(e=>new s(e),"asWritableStream")}),console:console,timer:Object.freeze({setTimeout(e,t,...n){const r=setTimeout(e,t,...n);return{dispose:_Vt(()=>clearTimeout(r),"dispose")}},setImmediate(e,...t){const n=setTimeout(e,0,...t);return{dispose:_Vt(()=>clearTimeout(n),"dispose")}},setInterval(e,t,...n){const r=setInterval(e,t,...n);return{dispose:_Vt(()=>clearInterval(r),"dispose")}}})});function u(){return c}_Vt(u,"RIL"),function(e){function t(){i.RAL.install(c)}_Vt(t,"install"),e.install=t}(u||(u={})),e.default=u}}),eWt=CVt({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/main.js"(e){var t,n,r=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:_Vt(function(){return t[n]},"get")}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=e&&e.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.createMessageConnection=e.BrowserMessageWriter=e.BrowserMessageReader=void 0,JVt().default.install();var o=KVt();i(KVt(),e);var a=(t=class extends o.AbstractMessageReader{constructor(e){super(),this._onData=new o.Emitter,this._messageListener=e=>{this._onData.fire(e.data)},e.addEventListener("error",e=>this.fireError(e)),e.onmessage=this._messageListener}listen(e){return this._onData.event(e)}},_Vt(t,"BrowserMessageReader"),t);e.BrowserMessageReader=a;var s=(n=class extends o.AbstractMessageWriter{constructor(e){super(),this.port=e,this.errorCount=0,e.addEventListener("error",e=>this.fireError(e))}write(e){try{return this.port.postMessage(e),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}},_Vt(n,"BrowserMessageWriter"),n);function l(e,t,n,r){return void 0===n&&(n=o.NullLogger),o.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,o.createMessageConnection)(e,t,n,r)}e.BrowserMessageWriter=s,_Vt(l,"createMessageConnection"),e.createMessageConnection=l}}),tWt=CVt({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/browser.js"(e,t){t.exports=eWt()}}),nWt=CVt({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/messages.js"(e){var t,n,r,i,o;Object.defineProperty(e,"__esModule",{value:!0}),e.ProtocolNotificationType=e.ProtocolNotificationType0=e.ProtocolRequestType=e.ProtocolRequestType0=e.RegistrationType=e.MessageDirection=void 0;var a,s,l=eWt();(s=a||(e.MessageDirection=a={})).clientToServer="clientToServer",s.serverToClient="serverToClient",s.both="both";var c=(_Vt(t=class{constructor(e){this.method=e}},"RegistrationType"),t);e.RegistrationType=c;var u=(n=class extends l.RequestType0{constructor(e){super(e)}},_Vt(n,"ProtocolRequestType0"),n);e.ProtocolRequestType0=u;var h=(r=class extends l.RequestType{constructor(e){super(e,l.ParameterStructures.byName)}},_Vt(r,"ProtocolRequestType"),r);e.ProtocolRequestType=h;var d=(i=class extends l.NotificationType0{constructor(e){super(e)}},_Vt(i,"ProtocolNotificationType0"),i);e.ProtocolNotificationType0=d;var p=(o=class extends l.NotificationType{constructor(e){super(e,l.ParameterStructures.byName)}},_Vt(o,"ProtocolNotificationType"),o);e.ProtocolNotificationType=p}}),rWt=CVt({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js"(e){function t(e){return!0===e||!1===e}function n(e){return"string"==typeof e||e instanceof String}function r(e){return"number"==typeof e||e instanceof Number}function i(e){return e instanceof Error}function o(e){return"function"==typeof e}function a(e){return Array.isArray(e)}function s(e){return a(e)&&e.every(e=>n(e))}function l(e,t){return Array.isArray(e)&&e.every(t)}function c(e){return null!==e&&"object"==typeof e}Object.defineProperty(e,"__esModule",{value:!0}),e.objectLiteral=e.typedArray=e.stringArray=e.array=e.func=e.error=e.number=e.string=e.boolean=void 0,_Vt(t,"boolean"),e.boolean=t,_Vt(n,"string"),e.string=n,_Vt(r,"number"),e.number=r,_Vt(i,"error"),e.error=i,_Vt(o,"func"),e.func=o,_Vt(a,"array"),e.array=a,_Vt(s,"stringArray"),e.stringArray=s,_Vt(l,"typedArray"),e.typedArray=l,_Vt(c,"objectLiteral"),e.objectLiteral=c}}),iWt=CVt({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ImplementationRequest=void 0;var t,n,r=nWt();(n=t||(e.ImplementationRequest=t={})).method="textDocument/implementation",n.messageDirection=r.MessageDirection.clientToServer,n.type=new r.ProtocolRequestType(n.method)}}),oWt=CVt({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TypeDefinitionRequest=void 0;var t,n,r=nWt();(n=t||(e.TypeDefinitionRequest=t={})).method="textDocument/typeDefinition",n.messageDirection=r.MessageDirection.clientToServer,n.type=new r.ProtocolRequestType(n.method)}}),aWt=CVt({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DidChangeWorkspaceFoldersNotification=e.WorkspaceFoldersRequest=void 0;var t,n,r,i,o=nWt();(n=t||(e.WorkspaceFoldersRequest=t={})).method="workspace/workspaceFolders",n.messageDirection=o.MessageDirection.serverToClient,n.type=new o.ProtocolRequestType0(n.method),(i=r||(e.DidChangeWorkspaceFoldersNotification=r={})).method="workspace/didChangeWorkspaceFolders",i.messageDirection=o.MessageDirection.clientToServer,i.type=new o.ProtocolNotificationType(i.method)}}),sWt=CVt({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigurationRequest=void 0;var t,n,r=nWt();(n=t||(e.ConfigurationRequest=t={})).method="workspace/configuration",n.messageDirection=r.MessageDirection.serverToClient,n.type=new r.ProtocolRequestType(n.method)}}),lWt=CVt({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ColorPresentationRequest=e.DocumentColorRequest=void 0;var t,n,r,i,o=nWt();(n=t||(e.DocumentColorRequest=t={})).method="textDocument/documentColor",n.messageDirection=o.MessageDirection.clientToServer,n.type=new o.ProtocolRequestType(n.method),(i=r||(e.ColorPresentationRequest=r={})).method="textDocument/colorPresentation",i.messageDirection=o.MessageDirection.clientToServer,i.type=new o.ProtocolRequestType(i.method)}}),cWt=CVt({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FoldingRangeRefreshRequest=e.FoldingRangeRequest=void 0;var t,n,r,i,o=nWt();(n=t||(e.FoldingRangeRequest=t={})).method="textDocument/foldingRange",n.messageDirection=o.MessageDirection.clientToServer,n.type=new o.ProtocolRequestType(n.method),(i=r||(e.FoldingRangeRefreshRequest=r={})).method="workspace/foldingRange/refresh",i.messageDirection=o.MessageDirection.serverToClient,i.type=new o.ProtocolRequestType0(i.method)}}),uWt=CVt({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeclarationRequest=void 0;var t,n,r=nWt();(n=t||(e.DeclarationRequest=t={})).method="textDocument/declaration",n.messageDirection=r.MessageDirection.clientToServer,n.type=new r.ProtocolRequestType(n.method)}}),hWt=CVt({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionRangeRequest=void 0;var t,n,r=nWt();(n=t||(e.SelectionRangeRequest=t={})).method="textDocument/selectionRange",n.messageDirection=r.MessageDirection.clientToServer,n.type=new r.ProtocolRequestType(n.method)}}),dWt=CVt({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorkDoneProgressCancelNotification=e.WorkDoneProgressCreateRequest=e.WorkDoneProgress=void 0;var t,n,r,i,o,a=eWt(),s=nWt();!function(e){function t(t){return t===e.type}e.type=new a.ProgressType,_Vt(t,"is"),e.is=t}(t||(e.WorkDoneProgress=t={})),(r=n||(e.WorkDoneProgressCreateRequest=n={})).method="window/workDoneProgress/create",r.messageDirection=s.MessageDirection.serverToClient,r.type=new s.ProtocolRequestType(r.method),(o=i||(e.WorkDoneProgressCancelNotification=i={})).method="window/workDoneProgress/cancel",o.messageDirection=s.MessageDirection.clientToServer,o.type=new s.ProtocolNotificationType(o.method)}}),pWt=CVt({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CallHierarchyOutgoingCallsRequest=e.CallHierarchyIncomingCallsRequest=e.CallHierarchyPrepareRequest=void 0;var t,n,r,i,o,a,s=nWt();(n=t||(e.CallHierarchyPrepareRequest=t={})).method="textDocument/prepareCallHierarchy",n.messageDirection=s.MessageDirection.clientToServer,n.type=new s.ProtocolRequestType(n.method),(i=r||(e.CallHierarchyIncomingCallsRequest=r={})).method="callHierarchy/incomingCalls",i.messageDirection=s.MessageDirection.clientToServer,i.type=new s.ProtocolRequestType(i.method),(a=o||(e.CallHierarchyOutgoingCallsRequest=o={})).method="callHierarchy/outgoingCalls",a.messageDirection=s.MessageDirection.clientToServer,a.type=new s.ProtocolRequestType(a.method)}}),fWt=CVt({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticTokensRefreshRequest=e.SemanticTokensRangeRequest=e.SemanticTokensDeltaRequest=e.SemanticTokensRequest=e.SemanticTokensRegistrationType=e.TokenFormat=void 0;var t,n,r,i,o,a,s,l,c,u,h,d=nWt();(t||(e.TokenFormat=t={})).Relative="relative",(r=n||(e.SemanticTokensRegistrationType=n={})).method="textDocument/semanticTokens",r.type=new d.RegistrationType(r.method),(o=i||(e.SemanticTokensRequest=i={})).method="textDocument/semanticTokens/full",o.messageDirection=d.MessageDirection.clientToServer,o.type=new d.ProtocolRequestType(o.method),o.registrationMethod=n.method,(s=a||(e.SemanticTokensDeltaRequest=a={})).method="textDocument/semanticTokens/full/delta",s.messageDirection=d.MessageDirection.clientToServer,s.type=new d.ProtocolRequestType(s.method),s.registrationMethod=n.method,(c=l||(e.SemanticTokensRangeRequest=l={})).method="textDocument/semanticTokens/range",c.messageDirection=d.MessageDirection.clientToServer,c.type=new d.ProtocolRequestType(c.method),c.registrationMethod=n.method,(h=u||(e.SemanticTokensRefreshRequest=u={})).method="workspace/semanticTokens/refresh",h.messageDirection=d.MessageDirection.serverToClient,h.type=new d.ProtocolRequestType0(h.method)}}),gWt=CVt({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ShowDocumentRequest=void 0;var t,n,r=nWt();(n=t||(e.ShowDocumentRequest=t={})).method="window/showDocument",n.messageDirection=r.MessageDirection.serverToClient,n.type=new r.ProtocolRequestType(n.method)}}),mWt=CVt({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedEditingRangeRequest=void 0;var t,n,r=nWt();(n=t||(e.LinkedEditingRangeRequest=t={})).method="textDocument/linkedEditingRange",n.messageDirection=r.MessageDirection.clientToServer,n.type=new r.ProtocolRequestType(n.method)}}),OWt=CVt({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WillDeleteFilesRequest=e.DidDeleteFilesNotification=e.DidRenameFilesNotification=e.WillRenameFilesRequest=e.DidCreateFilesNotification=e.WillCreateFilesRequest=e.FileOperationPatternKind=void 0;var t,n,r,i,o,a,s,l,c,u,h,d,p,f,g=nWt();(n=t||(e.FileOperationPatternKind=t={})).file="file",n.folder="folder",(i=r||(e.WillCreateFilesRequest=r={})).method="workspace/willCreateFiles",i.messageDirection=g.MessageDirection.clientToServer,i.type=new g.ProtocolRequestType(i.method),(a=o||(e.DidCreateFilesNotification=o={})).method="workspace/didCreateFiles",a.messageDirection=g.MessageDirection.clientToServer,a.type=new g.ProtocolNotificationType(a.method),(l=s||(e.WillRenameFilesRequest=s={})).method="workspace/willRenameFiles",l.messageDirection=g.MessageDirection.clientToServer,l.type=new g.ProtocolRequestType(l.method),(u=c||(e.DidRenameFilesNotification=c={})).method="workspace/didRenameFiles",u.messageDirection=g.MessageDirection.clientToServer,u.type=new g.ProtocolNotificationType(u.method),(d=h||(e.DidDeleteFilesNotification=h={})).method="workspace/didDeleteFiles",d.messageDirection=g.MessageDirection.clientToServer,d.type=new g.ProtocolNotificationType(d.method),(f=p||(e.WillDeleteFilesRequest=p={})).method="workspace/willDeleteFiles",f.messageDirection=g.MessageDirection.clientToServer,f.type=new g.ProtocolRequestType(f.method)}}),AWt=CVt({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MonikerRequest=e.MonikerKind=e.UniquenessLevel=void 0;var t,n,r,i,o,a,s=nWt();(n=t||(e.UniquenessLevel=t={})).document="document",n.project="project",n.group="group",n.scheme="scheme",n.global="global",(i=r||(e.MonikerKind=r={})).$import="import",i.$export="export",i.local="local",(a=o||(e.MonikerRequest=o={})).method="textDocument/moniker",a.messageDirection=s.MessageDirection.clientToServer,a.type=new s.ProtocolRequestType(a.method)}}),yWt=CVt({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TypeHierarchySubtypesRequest=e.TypeHierarchySupertypesRequest=e.TypeHierarchyPrepareRequest=void 0;var t,n,r,i,o,a,s=nWt();(n=t||(e.TypeHierarchyPrepareRequest=t={})).method="textDocument/prepareTypeHierarchy",n.messageDirection=s.MessageDirection.clientToServer,n.type=new s.ProtocolRequestType(n.method),(i=r||(e.TypeHierarchySupertypesRequest=r={})).method="typeHierarchy/supertypes",i.messageDirection=s.MessageDirection.clientToServer,i.type=new s.ProtocolRequestType(i.method),(a=o||(e.TypeHierarchySubtypesRequest=o={})).method="typeHierarchy/subtypes",a.messageDirection=s.MessageDirection.clientToServer,a.type=new s.ProtocolRequestType(a.method)}}),vWt=CVt({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InlineValueRefreshRequest=e.InlineValueRequest=void 0;var t,n,r,i,o=nWt();(n=t||(e.InlineValueRequest=t={})).method="textDocument/inlineValue",n.messageDirection=o.MessageDirection.clientToServer,n.type=new o.ProtocolRequestType(n.method),(i=r||(e.InlineValueRefreshRequest=r={})).method="workspace/inlineValue/refresh",i.messageDirection=o.MessageDirection.serverToClient,i.type=new o.ProtocolRequestType0(i.method)}}),bWt=CVt({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InlayHintRefreshRequest=e.InlayHintResolveRequest=e.InlayHintRequest=void 0;var t,n,r,i,o,a,s=nWt();(n=t||(e.InlayHintRequest=t={})).method="textDocument/inlayHint",n.messageDirection=s.MessageDirection.clientToServer,n.type=new s.ProtocolRequestType(n.method),(i=r||(e.InlayHintResolveRequest=r={})).method="inlayHint/resolve",i.messageDirection=s.MessageDirection.clientToServer,i.type=new s.ProtocolRequestType(i.method),(a=o||(e.InlayHintRefreshRequest=o={})).method="workspace/inlayHint/refresh",a.messageDirection=s.MessageDirection.serverToClient,a.type=new s.ProtocolRequestType0(a.method)}}),xWt=CVt({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiagnosticRefreshRequest=e.WorkspaceDiagnosticRequest=e.DocumentDiagnosticRequest=e.DocumentDiagnosticReportKind=e.DiagnosticServerCancellationData=void 0;var t,n,r,i,o,a,s,l,c,u=eWt(),h=rWt(),d=nWt();!function(e){function t(e){const t=e;return t&&h.boolean(t.retriggerRequest)}_Vt(t,"is"),e.is=t}(t||(e.DiagnosticServerCancellationData=t={})),(r=n||(e.DocumentDiagnosticReportKind=n={})).Full="full",r.Unchanged="unchanged",(o=i||(e.DocumentDiagnosticRequest=i={})).method="textDocument/diagnostic",o.messageDirection=d.MessageDirection.clientToServer,o.type=new d.ProtocolRequestType(o.method),o.partialResult=new u.ProgressType,(s=a||(e.WorkspaceDiagnosticRequest=a={})).method="workspace/diagnostic",s.messageDirection=d.MessageDirection.clientToServer,s.type=new d.ProtocolRequestType(s.method),s.partialResult=new u.ProgressType,(c=l||(e.DiagnosticRefreshRequest=l={})).method="workspace/diagnostic/refresh",c.messageDirection=d.MessageDirection.serverToClient,c.type=new d.ProtocolRequestType0(c.method)}}),wWt=CVt({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DidCloseNotebookDocumentNotification=e.DidSaveNotebookDocumentNotification=e.DidChangeNotebookDocumentNotification=e.NotebookCellArrayChange=e.DidOpenNotebookDocumentNotification=e.NotebookDocumentSyncRegistrationType=e.NotebookDocument=e.NotebookCell=e.ExecutionSummary=e.NotebookCellKind=void 0;var t,n,r,i,o,a,s,l,c,u,h,d,p,f,g,m=(MVt(),BVt(IVt)),O=rWt(),A=nWt();!function(e){function t(e){return 1===e||2===e}e.Markup=1,e.Code=2,_Vt(t,"is"),e.is=t}(t||(e.NotebookCellKind=t={})),function(e){function t(e,t){const n={executionOrder:e};return!0!==t&&!1!==t||(n.success=t),n}function n(e){const t=e;return O.objectLiteral(t)&&m.uinteger.is(t.executionOrder)&&(void 0===t.success||O.boolean(t.success))}function r(e,t){return e===t||null!=e&&null!=t&&(e.executionOrder===t.executionOrder&&e.success===t.success)}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n,_Vt(r,"equals"),e.equals=r}(n||(e.ExecutionSummary=n={})),function(e){function r(e,t){return{kind:e,document:t}}function i(e){const n=e;return O.objectLiteral(n)&&t.is(n.kind)&&m.DocumentUri.is(n.document)&&(void 0===n.metadata||O.objectLiteral(n.metadata))}function o(e,t){const r=new Set;return e.document!==t.document&&r.add("document"),e.kind!==t.kind&&r.add("kind"),e.executionSummary!==t.executionSummary&&r.add("executionSummary"),void 0===e.metadata&&void 0===t.metadata||a(e.metadata,t.metadata)||r.add("metadata"),void 0===e.executionSummary&&void 0===t.executionSummary||n.equals(e.executionSummary,t.executionSummary)||r.add("executionSummary"),r}function a(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;const n=Array.isArray(e),r=Array.isArray(t);if(n!==r)return!1;if(n&&r){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!a(e[n],t[n]))return!1}if(O.objectLiteral(e)&&O.objectLiteral(t)){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;if(n.sort(),r.sort(),!a(n,r))return!1;for(let i=0;i<n.length;i++){const r=n[i];if(!a(e[r],t[r]))return!1}}return!0}_Vt(r,"create"),e.create=r,_Vt(i,"is"),e.is=i,_Vt(o,"diff"),e.diff=o,_Vt(a,"equalsMetadata")}(r||(e.NotebookCell=r={})),function(e){function t(e,t,n,r){return{uri:e,notebookType:t,version:n,cells:r}}function n(e){const t=e;return O.objectLiteral(t)&&O.string(t.uri)&&m.integer.is(t.version)&&O.typedArray(t.cells,r.is)}_Vt(t,"create"),e.create=t,_Vt(n,"is"),e.is=n}(i||(e.NotebookDocument=i={})),(a=o||(e.NotebookDocumentSyncRegistrationType=o={})).method="notebookDocument/sync",a.messageDirection=A.MessageDirection.clientToServer,a.type=new A.RegistrationType(a.method),(l=s||(e.DidOpenNotebookDocumentNotification=s={})).method="notebookDocument/didOpen",l.messageDirection=A.MessageDirection.clientToServer,l.type=new A.ProtocolNotificationType(l.method),l.registrationMethod=o.method,function(e){function t(e){const t=e;return O.objectLiteral(t)&&m.uinteger.is(t.start)&&m.uinteger.is(t.deleteCount)&&(void 0===t.cells||O.typedArray(t.cells,r.is))}function n(e,t,n){const r={start:e,deleteCount:t};return void 0!==n&&(r.cells=n),r}_Vt(t,"is"),e.is=t,_Vt(n,"create"),e.create=n}(c||(e.NotebookCellArrayChange=c={})),(h=u||(e.DidChangeNotebookDocumentNotification=u={})).method="notebookDocument/didChange",h.messageDirection=A.MessageDirection.clientToServer,h.type=new A.ProtocolNotificationType(h.method),h.registrationMethod=o.method,(p=d||(e.DidSaveNotebookDocumentNotification=d={})).method="notebookDocument/didSave",p.messageDirection=A.MessageDirection.clientToServer,p.type=new A.ProtocolNotificationType(p.method),p.registrationMethod=o.method,(g=f||(e.DidCloseNotebookDocumentNotification=f={})).method="notebookDocument/didClose",g.messageDirection=A.MessageDirection.clientToServer,g.type=new A.ProtocolNotificationType(g.method),g.registrationMethod=o.method}}),kWt=CVt({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InlineCompletionRequest=void 0;var t,n,r=nWt();(n=t||(e.InlineCompletionRequest=t={})).method="textDocument/inlineCompletion",n.messageDirection=r.MessageDirection.clientToServer,n.type=new r.ProtocolRequestType(n.method)}}),SWt=CVt({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorkspaceSymbolRequest=e.CodeActionResolveRequest=e.CodeActionRequest=e.DocumentSymbolRequest=e.DocumentHighlightRequest=e.ReferencesRequest=e.DefinitionRequest=e.SignatureHelpRequest=e.SignatureHelpTriggerKind=e.HoverRequest=e.CompletionResolveRequest=e.CompletionRequest=e.CompletionTriggerKind=e.PublishDiagnosticsNotification=e.WatchKind=e.RelativePattern=e.FileChangeType=e.DidChangeWatchedFilesNotification=e.WillSaveTextDocumentWaitUntilRequest=e.WillSaveTextDocumentNotification=e.TextDocumentSaveReason=e.DidSaveTextDocumentNotification=e.DidCloseTextDocumentNotification=e.DidChangeTextDocumentNotification=e.TextDocumentContentChangeEvent=e.DidOpenTextDocumentNotification=e.TextDocumentSyncKind=e.TelemetryEventNotification=e.LogMessageNotification=e.ShowMessageRequest=e.ShowMessageNotification=e.MessageType=e.DidChangeConfigurationNotification=e.ExitNotification=e.ShutdownRequest=e.InitializedNotification=e.InitializeErrorCodes=e.InitializeRequest=e.WorkDoneProgressOptions=e.TextDocumentRegistrationOptions=e.StaticRegistrationOptions=e.PositionEncodingKind=e.FailureHandlingKind=e.ResourceOperationKind=e.UnregistrationRequest=e.RegistrationRequest=e.DocumentSelector=e.NotebookCellTextDocumentFilter=e.NotebookDocumentFilter=e.TextDocumentFilter=void 0,e.MonikerRequest=e.MonikerKind=e.UniquenessLevel=e.WillDeleteFilesRequest=e.DidDeleteFilesNotification=e.WillRenameFilesRequest=e.DidRenameFilesNotification=e.WillCreateFilesRequest=e.DidCreateFilesNotification=e.FileOperationPatternKind=e.LinkedEditingRangeRequest=e.ShowDocumentRequest=e.SemanticTokensRegistrationType=e.SemanticTokensRefreshRequest=e.SemanticTokensRangeRequest=e.SemanticTokensDeltaRequest=e.SemanticTokensRequest=e.TokenFormat=e.CallHierarchyPrepareRequest=e.CallHierarchyOutgoingCallsRequest=e.CallHierarchyIncomingCallsRequest=e.WorkDoneProgressCancelNotification=e.WorkDoneProgressCreateRequest=e.WorkDoneProgress=e.SelectionRangeRequest=e.DeclarationRequest=e.FoldingRangeRefreshRequest=e.FoldingRangeRequest=e.ColorPresentationRequest=e.DocumentColorRequest=e.ConfigurationRequest=e.DidChangeWorkspaceFoldersNotification=e.WorkspaceFoldersRequest=e.TypeDefinitionRequest=e.ImplementationRequest=e.ApplyWorkspaceEditRequest=e.ExecuteCommandRequest=e.PrepareRenameRequest=e.RenameRequest=e.PrepareSupportDefaultBehavior=e.DocumentOnTypeFormattingRequest=e.DocumentRangesFormattingRequest=e.DocumentRangeFormattingRequest=e.DocumentFormattingRequest=e.DocumentLinkResolveRequest=e.DocumentLinkRequest=e.CodeLensRefreshRequest=e.CodeLensResolveRequest=e.CodeLensRequest=e.WorkspaceSymbolResolveRequest=void 0,e.InlineCompletionRequest=e.DidCloseNotebookDocumentNotification=e.DidSaveNotebookDocumentNotification=e.DidChangeNotebookDocumentNotification=e.NotebookCellArrayChange=e.DidOpenNotebookDocumentNotification=e.NotebookDocumentSyncRegistrationType=e.NotebookDocument=e.NotebookCell=e.ExecutionSummary=e.NotebookCellKind=e.DiagnosticRefreshRequest=e.WorkspaceDiagnosticRequest=e.DocumentDiagnosticRequest=e.DocumentDiagnosticReportKind=e.DiagnosticServerCancellationData=e.InlayHintRefreshRequest=e.InlayHintResolveRequest=e.InlayHintRequest=e.InlineValueRefreshRequest=e.InlineValueRequest=e.TypeHierarchySupertypesRequest=e.TypeHierarchySubtypesRequest=e.TypeHierarchyPrepareRequest=void 0;var t=nWt(),n=(MVt(),BVt(IVt)),r=rWt(),i=iWt();Object.defineProperty(e,"ImplementationRequest",{enumerable:!0,get:_Vt(function(){return i.ImplementationRequest},"get")});var o=oWt();Object.defineProperty(e,"TypeDefinitionRequest",{enumerable:!0,get:_Vt(function(){return o.TypeDefinitionRequest},"get")});var a=aWt();Object.defineProperty(e,"WorkspaceFoldersRequest",{enumerable:!0,get:_Vt(function(){return a.WorkspaceFoldersRequest},"get")}),Object.defineProperty(e,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:_Vt(function(){return a.DidChangeWorkspaceFoldersNotification},"get")});var s=sWt();Object.defineProperty(e,"ConfigurationRequest",{enumerable:!0,get:_Vt(function(){return s.ConfigurationRequest},"get")});var l=lWt();Object.defineProperty(e,"DocumentColorRequest",{enumerable:!0,get:_Vt(function(){return l.DocumentColorRequest},"get")}),Object.defineProperty(e,"ColorPresentationRequest",{enumerable:!0,get:_Vt(function(){return l.ColorPresentationRequest},"get")});var c=cWt();Object.defineProperty(e,"FoldingRangeRequest",{enumerable:!0,get:_Vt(function(){return c.FoldingRangeRequest},"get")}),Object.defineProperty(e,"FoldingRangeRefreshRequest",{enumerable:!0,get:_Vt(function(){return c.FoldingRangeRefreshRequest},"get")});var u=uWt();Object.defineProperty(e,"DeclarationRequest",{enumerable:!0,get:_Vt(function(){return u.DeclarationRequest},"get")});var h=hWt();Object.defineProperty(e,"SelectionRangeRequest",{enumerable:!0,get:_Vt(function(){return h.SelectionRangeRequest},"get")});var d=dWt();Object.defineProperty(e,"WorkDoneProgress",{enumerable:!0,get:_Vt(function(){return d.WorkDoneProgress},"get")}),Object.defineProperty(e,"WorkDoneProgressCreateRequest",{enumerable:!0,get:_Vt(function(){return d.WorkDoneProgressCreateRequest},"get")}),Object.defineProperty(e,"WorkDoneProgressCancelNotification",{enumerable:!0,get:_Vt(function(){return d.WorkDoneProgressCancelNotification},"get")});var p=pWt();Object.defineProperty(e,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:_Vt(function(){return p.CallHierarchyIncomingCallsRequest},"get")}),Object.defineProperty(e,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:_Vt(function(){return p.CallHierarchyOutgoingCallsRequest},"get")}),Object.defineProperty(e,"CallHierarchyPrepareRequest",{enumerable:!0,get:_Vt(function(){return p.CallHierarchyPrepareRequest},"get")});var f=fWt();Object.defineProperty(e,"TokenFormat",{enumerable:!0,get:_Vt(function(){return f.TokenFormat},"get")}),Object.defineProperty(e,"SemanticTokensRequest",{enumerable:!0,get:_Vt(function(){return f.SemanticTokensRequest},"get")}),Object.defineProperty(e,"SemanticTokensDeltaRequest",{enumerable:!0,get:_Vt(function(){return f.SemanticTokensDeltaRequest},"get")}),Object.defineProperty(e,"SemanticTokensRangeRequest",{enumerable:!0,get:_Vt(function(){return f.SemanticTokensRangeRequest},"get")}),Object.defineProperty(e,"SemanticTokensRefreshRequest",{enumerable:!0,get:_Vt(function(){return f.SemanticTokensRefreshRequest},"get")}),Object.defineProperty(e,"SemanticTokensRegistrationType",{enumerable:!0,get:_Vt(function(){return f.SemanticTokensRegistrationType},"get")});var g=gWt();Object.defineProperty(e,"ShowDocumentRequest",{enumerable:!0,get:_Vt(function(){return g.ShowDocumentRequest},"get")});var m=mWt();Object.defineProperty(e,"LinkedEditingRangeRequest",{enumerable:!0,get:_Vt(function(){return m.LinkedEditingRangeRequest},"get")});var O=OWt();Object.defineProperty(e,"FileOperationPatternKind",{enumerable:!0,get:_Vt(function(){return O.FileOperationPatternKind},"get")}),Object.defineProperty(e,"DidCreateFilesNotification",{enumerable:!0,get:_Vt(function(){return O.DidCreateFilesNotification},"get")}),Object.defineProperty(e,"WillCreateFilesRequest",{enumerable:!0,get:_Vt(function(){return O.WillCreateFilesRequest},"get")}),Object.defineProperty(e,"DidRenameFilesNotification",{enumerable:!0,get:_Vt(function(){return O.DidRenameFilesNotification},"get")}),Object.defineProperty(e,"WillRenameFilesRequest",{enumerable:!0,get:_Vt(function(){return O.WillRenameFilesRequest},"get")}),Object.defineProperty(e,"DidDeleteFilesNotification",{enumerable:!0,get:_Vt(function(){return O.DidDeleteFilesNotification},"get")}),Object.defineProperty(e,"WillDeleteFilesRequest",{enumerable:!0,get:_Vt(function(){return O.WillDeleteFilesRequest},"get")});var A=AWt();Object.defineProperty(e,"UniquenessLevel",{enumerable:!0,get:_Vt(function(){return A.UniquenessLevel},"get")}),Object.defineProperty(e,"MonikerKind",{enumerable:!0,get:_Vt(function(){return A.MonikerKind},"get")}),Object.defineProperty(e,"MonikerRequest",{enumerable:!0,get:_Vt(function(){return A.MonikerRequest},"get")});var y=yWt();Object.defineProperty(e,"TypeHierarchyPrepareRequest",{enumerable:!0,get:_Vt(function(){return y.TypeHierarchyPrepareRequest},"get")}),Object.defineProperty(e,"TypeHierarchySubtypesRequest",{enumerable:!0,get:_Vt(function(){return y.TypeHierarchySubtypesRequest},"get")}),Object.defineProperty(e,"TypeHierarchySupertypesRequest",{enumerable:!0,get:_Vt(function(){return y.TypeHierarchySupertypesRequest},"get")});var v=vWt();Object.defineProperty(e,"InlineValueRequest",{enumerable:!0,get:_Vt(function(){return v.InlineValueRequest},"get")}),Object.defineProperty(e,"InlineValueRefreshRequest",{enumerable:!0,get:_Vt(function(){return v.InlineValueRefreshRequest},"get")});var b=bWt();Object.defineProperty(e,"InlayHintRequest",{enumerable:!0,get:_Vt(function(){return b.InlayHintRequest},"get")}),Object.defineProperty(e,"InlayHintResolveRequest",{enumerable:!0,get:_Vt(function(){return b.InlayHintResolveRequest},"get")}),Object.defineProperty(e,"InlayHintRefreshRequest",{enumerable:!0,get:_Vt(function(){return b.InlayHintRefreshRequest},"get")});var x=xWt();Object.defineProperty(e,"DiagnosticServerCancellationData",{enumerable:!0,get:_Vt(function(){return x.DiagnosticServerCancellationData},"get")}),Object.defineProperty(e,"DocumentDiagnosticReportKind",{enumerable:!0,get:_Vt(function(){return x.DocumentDiagnosticReportKind},"get")}),Object.defineProperty(e,"DocumentDiagnosticRequest",{enumerable:!0,get:_Vt(function(){return x.DocumentDiagnosticRequest},"get")}),Object.defineProperty(e,"WorkspaceDiagnosticRequest",{enumerable:!0,get:_Vt(function(){return x.WorkspaceDiagnosticRequest},"get")}),Object.defineProperty(e,"DiagnosticRefreshRequest",{enumerable:!0,get:_Vt(function(){return x.DiagnosticRefreshRequest},"get")});var w=wWt();Object.defineProperty(e,"NotebookCellKind",{enumerable:!0,get:_Vt(function(){return w.NotebookCellKind},"get")}),Object.defineProperty(e,"ExecutionSummary",{enumerable:!0,get:_Vt(function(){return w.ExecutionSummary},"get")}),Object.defineProperty(e,"NotebookCell",{enumerable:!0,get:_Vt(function(){return w.NotebookCell},"get")}),Object.defineProperty(e,"NotebookDocument",{enumerable:!0,get:_Vt(function(){return w.NotebookDocument},"get")}),Object.defineProperty(e,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:_Vt(function(){return w.NotebookDocumentSyncRegistrationType},"get")}),Object.defineProperty(e,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:_Vt(function(){return w.DidOpenNotebookDocumentNotification},"get")}),Object.defineProperty(e,"NotebookCellArrayChange",{enumerable:!0,get:_Vt(function(){return w.NotebookCellArrayChange},"get")}),Object.defineProperty(e,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:_Vt(function(){return w.DidChangeNotebookDocumentNotification},"get")}),Object.defineProperty(e,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:_Vt(function(){return w.DidSaveNotebookDocumentNotification},"get")}),Object.defineProperty(e,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:_Vt(function(){return w.DidCloseNotebookDocumentNotification},"get")});var k,S,T,$,_,C,Q,P,E,R,B,I,L,D,M,N,X,F,U,z,q,V,W,j,Y,Z,G,H,K,J,ee,te,ne,re,ie,oe,ae,se,le,ce,ue,he,de,pe,fe,ge,me,Oe,Ae,ye,ve,be,xe,we,ke,Se,Te,$e,_e,Ce,Qe,Pe,Ee,Re,Be,Ie,Le,De,Me,Ne,Xe,Fe,Ue,ze,qe,Ve,We,je,Ye,Ze,Ge,He,Ke,Je,et,tt,nt,rt,it,ot,at,st,lt,ct,ut,ht,dt,pt,ft,gt,mt,Ot,At,yt,vt,bt,xt,wt,kt,St,Tt,$t,_t,Ct,Qt,Pt,Et,Rt,Bt,It=kWt();Object.defineProperty(e,"InlineCompletionRequest",{enumerable:!0,get:_Vt(function(){return It.InlineCompletionRequest},"get")}),function(e){function t(e){const t=e;return r.string(t)||r.string(t.language)||r.string(t.scheme)||r.string(t.pattern)}_Vt(t,"is"),e.is=t}(k||(e.TextDocumentFilter=k={})),function(e){function t(e){const t=e;return r.objectLiteral(t)&&(r.string(t.notebookType)||r.string(t.scheme)||r.string(t.pattern))}_Vt(t,"is"),e.is=t}(S||(e.NotebookDocumentFilter=S={})),function(e){function t(e){const t=e;return r.objectLiteral(t)&&(r.string(t.notebook)||S.is(t.notebook))&&(void 0===t.language||r.string(t.language))}_Vt(t,"is"),e.is=t}(T||(e.NotebookCellTextDocumentFilter=T={})),function(e){function t(e){if(!Array.isArray(e))return!1;for(let t of e)if(!r.string(t)&&!k.is(t)&&!T.is(t))return!1;return!0}_Vt(t,"is"),e.is=t}($||(e.DocumentSelector=$={})),(C=_||(e.RegistrationRequest=_={})).method="client/registerCapability",C.messageDirection=t.MessageDirection.serverToClient,C.type=new t.ProtocolRequestType(C.method),(P=Q||(e.UnregistrationRequest=Q={})).method="client/unregisterCapability",P.messageDirection=t.MessageDirection.serverToClient,P.type=new t.ProtocolRequestType(P.method),(R=E||(e.ResourceOperationKind=E={})).Create="create",R.Rename="rename",R.Delete="delete",(I=B||(e.FailureHandlingKind=B={})).Abort="abort",I.Transactional="transactional",I.TextOnlyTransactional="textOnlyTransactional",I.Undo="undo",(D=L||(e.PositionEncodingKind=L={})).UTF8="utf-8",D.UTF16="utf-16",D.UTF32="utf-32",function(e){function t(e){const t=e;return t&&r.string(t.id)&&t.id.length>0}_Vt(t,"hasId"),e.hasId=t}(M||(e.StaticRegistrationOptions=M={})),function(e){function t(e){const t=e;return t&&(null===t.documentSelector||$.is(t.documentSelector))}_Vt(t,"is"),e.is=t}(N||(e.TextDocumentRegistrationOptions=N={})),function(e){function t(e){const t=e;return r.objectLiteral(t)&&(void 0===t.workDoneProgress||r.boolean(t.workDoneProgress))}function n(e){const t=e;return t&&r.boolean(t.workDoneProgress)}_Vt(t,"is"),e.is=t,_Vt(n,"hasWorkDoneProgress"),e.hasWorkDoneProgress=n}(X||(e.WorkDoneProgressOptions=X={})),(U=F||(e.InitializeRequest=F={})).method="initialize",U.messageDirection=t.MessageDirection.clientToServer,U.type=new t.ProtocolRequestType(U.method),(z||(e.InitializeErrorCodes=z={})).unknownProtocolVersion=1,(V=q||(e.InitializedNotification=q={})).method="initialized",V.messageDirection=t.MessageDirection.clientToServer,V.type=new t.ProtocolNotificationType(V.method),(j=W||(e.ShutdownRequest=W={})).method="shutdown",j.messageDirection=t.MessageDirection.clientToServer,j.type=new t.ProtocolRequestType0(j.method),(Z=Y||(e.ExitNotification=Y={})).method="exit",Z.messageDirection=t.MessageDirection.clientToServer,Z.type=new t.ProtocolNotificationType0(Z.method),(H=G||(e.DidChangeConfigurationNotification=G={})).method="workspace/didChangeConfiguration",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolNotificationType(H.method),(J=K||(e.MessageType=K={})).Error=1,J.Warning=2,J.Info=3,J.Log=4,J.Debug=5,(te=ee||(e.ShowMessageNotification=ee={})).method="window/showMessage",te.messageDirection=t.MessageDirection.serverToClient,te.type=new t.ProtocolNotificationType(te.method),(re=ne||(e.ShowMessageRequest=ne={})).method="window/showMessageRequest",re.messageDirection=t.MessageDirection.serverToClient,re.type=new t.ProtocolRequestType(re.method),(oe=ie||(e.LogMessageNotification=ie={})).method="window/logMessage",oe.messageDirection=t.MessageDirection.serverToClient,oe.type=new t.ProtocolNotificationType(oe.method),(se=ae||(e.TelemetryEventNotification=ae={})).method="telemetry/event",se.messageDirection=t.MessageDirection.serverToClient,se.type=new t.ProtocolNotificationType(se.method),(ce=le||(e.TextDocumentSyncKind=le={})).None=0,ce.Full=1,ce.Incremental=2,(he=ue||(e.DidOpenTextDocumentNotification=ue={})).method="textDocument/didOpen",he.messageDirection=t.MessageDirection.clientToServer,he.type=new t.ProtocolNotificationType(he.method),function(e){function t(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)}function n(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength}_Vt(t,"isIncremental"),e.isIncremental=t,_Vt(n,"isFull"),e.isFull=n}(de||(e.TextDocumentContentChangeEvent=de={})),(fe=pe||(e.DidChangeTextDocumentNotification=pe={})).method="textDocument/didChange",fe.messageDirection=t.MessageDirection.clientToServer,fe.type=new t.ProtocolNotificationType(fe.method),(me=ge||(e.DidCloseTextDocumentNotification=ge={})).method="textDocument/didClose",me.messageDirection=t.MessageDirection.clientToServer,me.type=new t.ProtocolNotificationType(me.method),(Ae=Oe||(e.DidSaveTextDocumentNotification=Oe={})).method="textDocument/didSave",Ae.messageDirection=t.MessageDirection.clientToServer,Ae.type=new t.ProtocolNotificationType(Ae.method),(ve=ye||(e.TextDocumentSaveReason=ye={})).Manual=1,ve.AfterDelay=2,ve.FocusOut=3,(xe=be||(e.WillSaveTextDocumentNotification=be={})).method="textDocument/willSave",xe.messageDirection=t.MessageDirection.clientToServer,xe.type=new t.ProtocolNotificationType(xe.method),(ke=we||(e.WillSaveTextDocumentWaitUntilRequest=we={})).method="textDocument/willSaveWaitUntil",ke.messageDirection=t.MessageDirection.clientToServer,ke.type=new t.ProtocolRequestType(ke.method),(Te=Se||(e.DidChangeWatchedFilesNotification=Se={})).method="workspace/didChangeWatchedFiles",Te.messageDirection=t.MessageDirection.clientToServer,Te.type=new t.ProtocolNotificationType(Te.method),(_e=$e||(e.FileChangeType=$e={})).Created=1,_e.Changed=2,_e.Deleted=3,function(e){function t(e){const t=e;return r.objectLiteral(t)&&(n.URI.is(t.baseUri)||n.WorkspaceFolder.is(t.baseUri))&&r.string(t.pattern)}_Vt(t,"is"),e.is=t}(Ce||(e.RelativePattern=Ce={})),(Pe=Qe||(e.WatchKind=Qe={})).Create=1,Pe.Change=2,Pe.Delete=4,(Re=Ee||(e.PublishDiagnosticsNotification=Ee={})).method="textDocument/publishDiagnostics",Re.messageDirection=t.MessageDirection.serverToClient,Re.type=new t.ProtocolNotificationType(Re.method),(Ie=Be||(e.CompletionTriggerKind=Be={})).Invoked=1,Ie.TriggerCharacter=2,Ie.TriggerForIncompleteCompletions=3,(De=Le||(e.CompletionRequest=Le={})).method="textDocument/completion",De.messageDirection=t.MessageDirection.clientToServer,De.type=new t.ProtocolRequestType(De.method),(Ne=Me||(e.CompletionResolveRequest=Me={})).method="completionItem/resolve",Ne.messageDirection=t.MessageDirection.clientToServer,Ne.type=new t.ProtocolRequestType(Ne.method),(Fe=Xe||(e.HoverRequest=Xe={})).method="textDocument/hover",Fe.messageDirection=t.MessageDirection.clientToServer,Fe.type=new t.ProtocolRequestType(Fe.method),(ze=Ue||(e.SignatureHelpTriggerKind=Ue={})).Invoked=1,ze.TriggerCharacter=2,ze.ContentChange=3,(Ve=qe||(e.SignatureHelpRequest=qe={})).method="textDocument/signatureHelp",Ve.messageDirection=t.MessageDirection.clientToServer,Ve.type=new t.ProtocolRequestType(Ve.method),(je=We||(e.DefinitionRequest=We={})).method="textDocument/definition",je.messageDirection=t.MessageDirection.clientToServer,je.type=new t.ProtocolRequestType(je.method),(Ze=Ye||(e.ReferencesRequest=Ye={})).method="textDocument/references",Ze.messageDirection=t.MessageDirection.clientToServer,Ze.type=new t.ProtocolRequestType(Ze.method),(He=Ge||(e.DocumentHighlightRequest=Ge={})).method="textDocument/documentHighlight",He.messageDirection=t.MessageDirection.clientToServer,He.type=new t.ProtocolRequestType(He.method),(Je=Ke||(e.DocumentSymbolRequest=Ke={})).method="textDocument/documentSymbol",Je.messageDirection=t.MessageDirection.clientToServer,Je.type=new t.ProtocolRequestType(Je.method),(tt=et||(e.CodeActionRequest=et={})).method="textDocument/codeAction",tt.messageDirection=t.MessageDirection.clientToServer,tt.type=new t.ProtocolRequestType(tt.method),(rt=nt||(e.CodeActionResolveRequest=nt={})).method="codeAction/resolve",rt.messageDirection=t.MessageDirection.clientToServer,rt.type=new t.ProtocolRequestType(rt.method),(ot=it||(e.WorkspaceSymbolRequest=it={})).method="workspace/symbol",ot.messageDirection=t.MessageDirection.clientToServer,ot.type=new t.ProtocolRequestType(ot.method),(st=at||(e.WorkspaceSymbolResolveRequest=at={})).method="workspaceSymbol/resolve",st.messageDirection=t.MessageDirection.clientToServer,st.type=new t.ProtocolRequestType(st.method),(ct=lt||(e.CodeLensRequest=lt={})).method="textDocument/codeLens",ct.messageDirection=t.MessageDirection.clientToServer,ct.type=new t.ProtocolRequestType(ct.method),(ht=ut||(e.CodeLensResolveRequest=ut={})).method="codeLens/resolve",ht.messageDirection=t.MessageDirection.clientToServer,ht.type=new t.ProtocolRequestType(ht.method),(pt=dt||(e.CodeLensRefreshRequest=dt={})).method="workspace/codeLens/refresh",pt.messageDirection=t.MessageDirection.serverToClient,pt.type=new t.ProtocolRequestType0(pt.method),(gt=ft||(e.DocumentLinkRequest=ft={})).method="textDocument/documentLink",gt.messageDirection=t.MessageDirection.clientToServer,gt.type=new t.ProtocolRequestType(gt.method),(Ot=mt||(e.DocumentLinkResolveRequest=mt={})).method="documentLink/resolve",Ot.messageDirection=t.MessageDirection.clientToServer,Ot.type=new t.ProtocolRequestType(Ot.method),(yt=At||(e.DocumentFormattingRequest=At={})).method="textDocument/formatting",yt.messageDirection=t.MessageDirection.clientToServer,yt.type=new t.ProtocolRequestType(yt.method),(bt=vt||(e.DocumentRangeFormattingRequest=vt={})).method="textDocument/rangeFormatting",bt.messageDirection=t.MessageDirection.clientToServer,bt.type=new t.ProtocolRequestType(bt.method),(wt=xt||(e.DocumentRangesFormattingRequest=xt={})).method="textDocument/rangesFormatting",wt.messageDirection=t.MessageDirection.clientToServer,wt.type=new t.ProtocolRequestType(wt.method),(St=kt||(e.DocumentOnTypeFormattingRequest=kt={})).method="textDocument/onTypeFormatting",St.messageDirection=t.MessageDirection.clientToServer,St.type=new t.ProtocolRequestType(St.method),(Tt||(e.PrepareSupportDefaultBehavior=Tt={})).Identifier=1,(_t=$t||(e.RenameRequest=$t={})).method="textDocument/rename",_t.messageDirection=t.MessageDirection.clientToServer,_t.type=new t.ProtocolRequestType(_t.method),(Qt=Ct||(e.PrepareRenameRequest=Ct={})).method="textDocument/prepareRename",Qt.messageDirection=t.MessageDirection.clientToServer,Qt.type=new t.ProtocolRequestType(Qt.method),(Et=Pt||(e.ExecuteCommandRequest=Pt={})).method="workspace/executeCommand",Et.messageDirection=t.MessageDirection.clientToServer,Et.type=new t.ProtocolRequestType(Et.method),(Bt=Rt||(e.ApplyWorkspaceEditRequest=Rt={})).method="workspace/applyEdit",Bt.messageDirection=t.MessageDirection.serverToClient,Bt.type=new t.ProtocolRequestType("workspace/applyEdit")}}),TWt=CVt({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/connection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createProtocolConnection=void 0;var t=eWt();function n(e,n,r,i){return t.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,t.createMessageConnection)(e,n,r,i)}_Vt(n,"createProtocolConnection"),e.createProtocolConnection=n}}),$Wt=CVt({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/api.js"(e){var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:_Vt(function(){return t[n]},"get")}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.LSPErrorCodes=e.createProtocolConnection=void 0,n(eWt(),e),n((MVt(),BVt(IVt)),e),n(nWt(),e),n(SWt(),e);var r,i,o=TWt();Object.defineProperty(e,"createProtocolConnection",{enumerable:!0,get:_Vt(function(){return o.createProtocolConnection},"get")}),(i=r||(e.LSPErrorCodes=r={})).lspReservedErrorRangeStart=-32899,i.RequestFailed=-32803,i.ServerCancelled=-32802,i.ContentModified=-32801,i.RequestCancelled=-32800,i.lspReservedErrorRangeEnd=-32800}}),_Wt=CVt({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/browser/main.js"(e){var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:_Vt(function(){return t[n]},"get")}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.createProtocolConnection=void 0;var r=tWt();function i(e,t,n,i){return(0,r.createMessageConnection)(e,t,n,i)}n(tWt(),e),n($Wt(),e),_Vt(i,"createProtocolConnection"),e.createProtocolConnection=i}}),CWt={};QVt(CWt,{AbstractAstReflection:()=>LWt,AbstractCstNode:()=>jsn,AbstractLangiumParser:()=>tln,AbstractParserErrorMessageProvider:()=>rln,AbstractThreadedAsyncParser:()=>Pun,AstUtils:()=>YWt,BiMap:()=>hcn,Cancellation:()=>Rln,CompositeCstNodeImpl:()=>Zsn,ContextCache:()=>ycn,CstNodeBuilder:()=>Wsn,CstUtils:()=>QWt,DEFAULT_TOKENIZE_OPTIONS:()=>Zcn,DONE_RESULT:()=>qWt,DatatypeSymbol:()=>Ksn,DefaultAstNodeDescriptionProvider:()=>Mcn,DefaultAstNodeLocator:()=>Xcn,DefaultAsyncParser:()=>Qun,DefaultCommentProvider:()=>Cun,DefaultConfigurationProvider:()=>zcn,DefaultDocumentBuilder:()=>Vcn,DefaultDocumentValidator:()=>Bcn,DefaultHydrator:()=>Iun,DefaultIndexManager:()=>Wcn,DefaultJsonSerializer:()=>$cn,DefaultLangiumDocumentFactory:()=>rcn,DefaultLangiumDocuments:()=>icn,DefaultLangiumProfiler:()=>Ahn,DefaultLexer:()=>Gcn,DefaultLexerErrorMessageProvider:()=>Ycn,DefaultLinker:()=>acn,DefaultNameProvider:()=>lcn,DefaultReferenceDescriptionProvider:()=>Ncn,DefaultReferences:()=>ccn,DefaultScopeComputation:()=>dcn,DefaultScopeProvider:()=>xcn,DefaultServiceRegistry:()=>_cn,DefaultTokenBuilder:()=>Pln,DefaultValueConverter:()=>Eln,DefaultWorkspaceLock:()=>Run,DefaultWorkspaceManager:()=>jcn,Deferred:()=>qln,Disposable:()=>Ucn,DisposableCache:()=>Ocn,DocumentCache:()=>vcn,DocumentState:()=>ecn,DocumentValidator:()=>Qcn,EMPTY_SCOPE:()=>mcn,EMPTY_STREAM:()=>zWt,EmptyFileSystem:()=>Kun,EmptyFileSystemProvider:()=>Hun,ErrorWithLocation:()=>PZt,GrammarAST:()=>cjt,GrammarUtils:()=>QZt,IndentationAwareLexer:()=>Zun,IndentationAwareTokenBuilder:()=>Yun,JSDocDocumentationProvider:()=>_un,LangiumCompletionParser:()=>oln,LangiumParser:()=>nln,LangiumParserErrorMessageProvider:()=>iln,LeafCstNodeImpl:()=>Ysn,LexingMode:()=>Vun,MapScope:()=>fcn,Module:()=>$un,MultiMap:()=>ucn,MultiMapScope:()=>gcn,OperationCancelled:()=>Nln,ParserWorker:()=>Eun,ProfilingTask:()=>yhn,Reduction:()=>WWt,RefResolving:()=>ocn,RegExpUtils:()=>BZt,RootCstNodeImpl:()=>Hsn,SimpleCache:()=>Acn,StreamImpl:()=>XWt,StreamScope:()=>pcn,TextDocument:()=>Uln,TreeStreamImpl:()=>jWt,URI:()=>Kln,UriTrie:()=>ncn,UriUtils:()=>Hln,VALIDATE_EACH_NODE:()=>Rcn,ValidationCategory:()=>Scn,ValidationRegistry:()=>Ecn,ValueConverter:()=>Qln,WorkspaceCache:()=>bcn,assertCondition:()=>RZt,assertUnreachable:()=>EZt,createCompletionParser:()=>$ln,createDefaultCoreModule:()=>Lun,createDefaultSharedCoreModule:()=>Dun,createGrammarConfig:()=>qGt,createLangiumParser:()=>_ln,createParser:()=>cln,delayNextTick:()=>Bln,diagnosticData:()=>Ccn,eagerLoad:()=>Xun,getDiagnosticRange:()=>Icn,indentationBuilderDefaultOptions:()=>jun,inject:()=>Mun,interruptAndCheck:()=>Fln,isAstNode:()=>PWt,isAstNodeDescription:()=>BWt,isAstNodeWithComment:()=>wcn,isCompositeCstNode:()=>DWt,isIMultiModeLexerDefinition:()=>Kcn,isJSDoc:()=>tun,isLeafCstNode:()=>MWt,isLinkingError:()=>IWt,isMultiReference:()=>RWt,isNamed:()=>scn,isOperationCancelled:()=>Xln,isReference:()=>EWt,isRootCstNode:()=>NWt,isTokenTypeArray:()=>Hcn,isTokenTypeDictionary:()=>Jcn,loadGrammarFromJson:()=>nhn,parseJSDoc:()=>eun,prepareLangiumParser:()=>Cln,setInterruptionPeriod:()=>Mln,startCancelableOperation:()=>Dln,stream:()=>VWt,toDiagnosticData:()=>Dcn,toDiagnosticSeverity:()=>Lcn});var QWt={};function PWt(e){return"object"==typeof e&&null!==e&&"string"==typeof e.$type}function EWt(e){return"object"==typeof e&&null!==e&&"string"==typeof e.$refText&&"ref"in e}function RWt(e){return"object"==typeof e&&null!==e&&"string"==typeof e.$refText&&"items"in e}function BWt(e){return"object"==typeof e&&null!==e&&"string"==typeof e.name&&"string"==typeof e.type&&"string"==typeof e.path}function IWt(e){return"object"==typeof e&&null!==e&&"object"==typeof e.info&&"string"==typeof e.message}QVt(QWt,{DefaultNameRegexp:()=>OZt,RangeComparison:()=>oZt,compareRange:()=>gZt,findCommentNode:()=>yZt,findDeclarationNodeAtOffset:()=>AZt,findLeafNodeAtOffset:()=>bZt,findLeafNodeBeforeOffset:()=>xZt,flattenCst:()=>hZt,getDatatypeNode:()=>cZt,getInteriorNodes:()=>$Zt,getNextNode:()=>SZt,getPreviousNode:()=>kZt,getStartlineNode:()=>TZt,inRange:()=>mZt,isChildNode:()=>dZt,isCommentNode:()=>vZt,streamCst:()=>uZt,toDocumentSegment:()=>fZt,tokenToRange:()=>pZt}),_Vt(PWt,"isAstNode"),_Vt(EWt,"isReference"),_Vt(RWt,"isMultiReference"),_Vt(BWt,"isAstNodeDescription"),_Vt(IWt,"isLinkingError");var LWt=(_Vt(S=class{constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){var t;const n=this.types[e.container.$type];if(!n)throw new Error(`Type ${e.container.$type||"undefined"} not found.`);const r=null==(t=n.properties[e.property])?void 0:t.referenceType;if(!r)throw new Error(`Property ${e.property||"undefined"} of type ${e.container.$type} is not a reference.`);return r}getTypeMetaData(e){const t=this.types[e];return t||{name:e,properties:{},superTypes:[]}}isInstance(e,t){return PWt(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let n=this.subtypes[e];n||(n=this.subtypes[e]={});const r=n[t];if(void 0!==r)return r;{const r=this.types[e],i=!!r&&r.superTypes.some(e=>this.isSubtype(e,t));return n[t]=i,i}}getAllSubTypes(e){const t=this.allSubtypes[e];if(t)return t;{const t=this.getAllTypes(),n=[];for(const r of t)this.isSubtype(r,e)&&n.push(r);return this.allSubtypes[e]=n,n}}},"AbstractAstReflection"),S);function DWt(e){return"object"==typeof e&&null!==e&&Array.isArray(e.content)}function MWt(e){return"object"==typeof e&&null!==e&&"object"==typeof e.tokenType}function NWt(e){return DWt(e)&&"string"==typeof e.fullText}_Vt(DWt,"isCompositeCstNode"),_Vt(MWt,"isLeafCstNode"),_Vt(NWt,"isRootCstNode");var XWt=(T=class{constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){const e={state:this.startFn(),next:_Vt(()=>this.nextFn(e.state),"next"),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){const e=this.iterator();return Boolean(e.next().done)}count(){const e=this.iterator();let t=0,n=e.next();for(;!n.done;)t++,n=e.next();return t}toArray(){const e=[],t=this.iterator();let n;do{n=t.next(),void 0!==n.value&&e.push(n.value)}while(!n.done);return e}toSet(){return new Set(this)}toMap(e,t){const n=this.map(n=>[e?e(n):n,t?t(n):n]);return new Map(n)}toString(){return this.join()}concat(e){return new T(()=>({first:this.startFn(),firstDone:!1,iterator:e[Symbol.iterator]()}),e=>{let t;if(!e.firstDone){do{if(t=this.nextFn(e.first),!t.done)return t}while(!t.done);e.firstDone=!0}do{if(t=e.iterator.next(),!t.done)return t}while(!t.done);return qWt})}join(e=","){const t=this.iterator();let n,r="",i=!1;do{n=t.next(),n.done||(i&&(r+=e),r+=FWt(n.value)),i=!0}while(!n.done);return r}indexOf(e,t=0){const n=this.iterator();let r=0,i=n.next();for(;!i.done;){if(r>=t&&i.value===e)return r;i=n.next(),r++}return-1}every(e){const t=this.iterator();let n=t.next();for(;!n.done;){if(!e(n.value))return!1;n=t.next()}return!0}some(e){const t=this.iterator();let n=t.next();for(;!n.done;){if(e(n.value))return!0;n=t.next()}return!1}forEach(e){const t=this.iterator();let n=0,r=t.next();for(;!r.done;)e(r.value,n),r=t.next(),n++}map(e){return new T(this.startFn,t=>{const{done:n,value:r}=this.nextFn(t);return n?qWt:{done:!1,value:e(r)}})}filter(e){return new T(this.startFn,t=>{let n;do{if(n=this.nextFn(t),!n.done&&e(n.value))return n}while(!n.done);return qWt})}nonNullable(){return this.filter(e=>null!=e)}reduce(e,t){const n=this.iterator();let r=t,i=n.next();for(;!i.done;)r=void 0===r?i.value:e(r,i.value),i=n.next();return r}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,n){const r=e.next();if(r.done)return n;const i=this.recursiveReduce(e,t,n);return void 0===i?r.value:t(i,r.value)}find(e){const t=this.iterator();let n=t.next();for(;!n.done;){if(e(n.value))return n.value;n=t.next()}}findIndex(e){const t=this.iterator();let n=0,r=t.next();for(;!r.done;){if(e(r.value))return n;r=t.next(),n++}return-1}includes(e){const t=this.iterator();let n=t.next();for(;!n.done;){if(n.value===e)return!0;n=t.next()}return!1}flatMap(e){return new T(()=>({this:this.startFn()}),t=>{do{if(t.iterator){const e=t.iterator.next();if(!e.done)return e;t.iterator=void 0}const{done:n,value:r}=this.nextFn(t.this);if(!n){const n=e(r);if(!UWt(n))return{done:!1,value:n};t.iterator=n[Symbol.iterator]()}}while(t.iterator);return qWt})}flat(e){if(void 0===e&&(e=1),e<=0)return this;const t=e>1?this.flat(e-1):this;return new T(()=>({this:t.startFn()}),e=>{do{if(e.iterator){const t=e.iterator.next();if(!t.done)return t;e.iterator=void 0}const{done:n,value:r}=t.nextFn(e.this);if(!n){if(!UWt(r))return{done:!1,value:r};e.iterator=r[Symbol.iterator]()}}while(e.iterator);return qWt})}head(){const e=this.iterator().next();if(!e.done)return e.value}tail(e=1){return new T(()=>{const t=this.startFn();for(let n=0;n<e;n++){if(this.nextFn(t).done)return t}return t},this.nextFn)}limit(e){return new T(()=>({size:0,state:this.startFn()}),t=>(t.size++,t.size>e?qWt:this.nextFn(t.state)))}distinct(e){return new T(()=>({set:new Set,internalState:this.startFn()}),t=>{let n;do{if(n=this.nextFn(t.internalState),!n.done){const r=e?e(n.value):n.value;if(!t.set.has(r))return t.set.add(r),n}}while(!n.done);return qWt})}exclude(e,t){const n=new Set;for(const r of e){const e=t?t(r):r;n.add(e)}return this.filter(e=>{const r=t?t(e):e;return!n.has(r)})}},_Vt(T,"StreamImpl"),T);function FWt(e){return"string"==typeof e?e:void 0===e?"undefined":"function"==typeof e.toString?e.toString():Object.prototype.toString.call(e)}function UWt(e){return!!e&&"function"==typeof e[Symbol.iterator]}_Vt(FWt,"toString"),_Vt(UWt,"isIterable");var zWt=new XWt(()=>{},()=>qWt),qWt=Object.freeze({done:!0,value:void 0});function VWt(...e){if(1===e.length){const t=e[0];if(t instanceof XWt)return t;if(UWt(t))return new XWt(()=>t[Symbol.iterator](),e=>e.next());if("number"==typeof t.length)return new XWt(()=>({index:0}),e=>e.index<t.length?{done:!1,value:t[e.index++]}:qWt)}return e.length>1?new XWt(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){const e=t.iterator.next();if(!e.done)return e;t.iterator=void 0}if(t.array){if(t.arrIndex<t.array.length)return{done:!1,value:t.array[t.arrIndex++]};t.array=void 0,t.arrIndex=0}if(t.collIndex<e.length){const n=e[t.collIndex++];UWt(n)?t.iterator=n[Symbol.iterator]():n&&"number"==typeof n.length&&(t.array=n)}}while(t.iterator||t.array||t.collIndex<e.length);return qWt}):zWt}_Vt(VWt,"stream");var WWt,jWt=(_Vt($=class extends XWt{constructor(e,t,n){super(()=>({iterators:(null==n?void 0:n.includeRoot)?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),e=>{for(e.pruned&&(e.iterators.pop(),e.pruned=!1);e.iterators.length>0;){const n=e.iterators[e.iterators.length-1].next();if(!n.done)return e.iterators.push(t(n.value)[Symbol.iterator]()),n;e.iterators.pop()}return qWt})}iterator(){const e={state:this.startFn(),next:_Vt(()=>this.nextFn(e.state),"next"),prune:_Vt(()=>{e.state.pruned=!0},"prune"),[Symbol.iterator]:()=>e};return e}},"TreeStreamImpl"),$);!function(e){function t(e){return e.reduce((e,t)=>e+t,0)}function n(e){return e.reduce((e,t)=>e*t,0)}function r(e){return e.reduce((e,t)=>Math.min(e,t))}function i(e){return e.reduce((e,t)=>Math.max(e,t))}_Vt(t,"sum"),e.sum=t,_Vt(n,"product"),e.product=n,_Vt(r,"min"),e.min=r,_Vt(i,"max"),e.max=i}(WWt||(WWt={}));var YWt={};function ZWt(e,t={}){for(const[n,r]of Object.entries(e))n.startsWith("$")||(Array.isArray(r)?r.forEach((r,i)=>{PWt(r)&&(r.$container=e,r.$containerProperty=n,r.$containerIndex=i,t.deep&&ZWt(r,t))}):PWt(r)&&(r.$container=e,r.$containerProperty=n,t.deep&&ZWt(r,t)))}function GWt(e,t){let n=e;for(;n;){if(t(n))return n;n=n.$container}}function HWt(e,t){let n=e;for(;n;){if(t(n))return!0;n=n.$container}return!1}function KWt(e){const t=JWt(e).$document;if(!t)throw new Error("AST node has no document.");return t}function JWt(e){for(;e.$container;)e=e.$container;return e}function ejt(e){return EWt(e)?e.ref?[e.ref]:[]:RWt(e)?e.items.map(e=>e.ref):[]}function tjt(e,t){if(!e)throw new Error("Node must be an AstNode.");const n=null==t?void 0:t.range;return new XWt(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex<t.keys.length;){const r=t.keys[t.keyIndex];if(!r.startsWith("$")){const i=e[r];if(PWt(i)){if(t.keyIndex++,ijt(i,n))return{done:!1,value:i}}else if(Array.isArray(i)){for(;t.arrayIndex<i.length;){const e=i[t.arrayIndex++];if(PWt(e)&&ijt(e,n))return{done:!1,value:e}}t.arrayIndex=0}}t.keyIndex++}return qWt})}function njt(e,t){if(!e)throw new Error("Root node must be an AstNode.");return new jWt(e,e=>tjt(e,t))}function rjt(e,t){if(!e)throw new Error("Root node must be an AstNode.");return(null==t?void 0:t.range)&&!ijt(e,t.range)?new jWt(e,()=>[]):new jWt(e,e=>tjt(e,t),{includeRoot:!0})}function ijt(e,t){var n;if(!t)return!0;const r=null==(n=e.$cstNode)?void 0:n.range;return!!r&&mZt(r,t)}function ojt(e){return new XWt(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex<t.keys.length;){const n=t.keys[t.keyIndex];if(!n.startsWith("$")){const r=e[n];if(EWt(r)||RWt(r))return t.keyIndex++,{done:!1,value:{reference:r,container:e,property:n}};if(Array.isArray(r)){for(;t.arrayIndex<r.length;){const i=t.arrayIndex++,o=r[i];if(EWt(o)||RWt(r))return{done:!1,value:{reference:o,container:e,property:n,index:i}}}t.arrayIndex=0}}t.keyIndex++}return qWt})}function ajt(e,t){const n=e.getTypeMetaData(t.$type),r=t;for(const i of Object.values(n.properties))void 0!==i.defaultValue&&void 0===r[i.name]&&(r[i.name]=sjt(i.defaultValue))}function sjt(e){return Array.isArray(e)?[...e.map(sjt)]:e}function ljt(e,t,n){const r={$type:e.$type};n&&(n.set(e,r),n.set(r,e));for(const[i,o]of Object.entries(e))if(!i.startsWith("$"))if(PWt(o))r[i]=ljt(o,t,n);else if(EWt(o))r[i]=t(r,i,o.$refNode,o.$refText,o);else if(Array.isArray(o)){const e=[];for(const a of o)PWt(a)?e.push(ljt(a,t,n)):EWt(a)?e.push(t(r,i,a.$refNode,a.$refText,a)):e.push(a);r[i]=e}else r[i]=o;return ZWt(r,{deep:!0}),r}QVt(YWt,{assignMandatoryProperties:()=>ajt,copyAstNode:()=>ljt,findRootNode:()=>JWt,getContainerOfType:()=>GWt,getDocument:()=>KWt,getReferenceNodes:()=>ejt,hasContainerOfType:()=>HWt,linkContentToContainer:()=>ZWt,streamAllContents:()=>njt,streamAst:()=>rjt,streamContents:()=>tjt,streamReferences:()=>ojt}),_Vt(ZWt,"linkContentToContainer"),_Vt(GWt,"getContainerOfType"),_Vt(HWt,"hasContainerOfType"),_Vt(KWt,"getDocument"),_Vt(JWt,"findRootNode"),_Vt(ejt,"getReferenceNodes"),_Vt(tjt,"streamContents"),_Vt(njt,"streamAllContents"),_Vt(rjt,"streamAst"),_Vt(ijt,"isAstNodeInRange"),_Vt(ojt,"streamReferences"),_Vt(ajt,"assignMandatoryProperties"),_Vt(sjt,"copyDefaultValue"),_Vt(ljt,"copyAstNode");var cjt={};QVt(cjt,{AbstractElement:()=>hjt,AbstractParserRule:()=>pjt,AbstractRule:()=>gjt,AbstractType:()=>Ojt,Action:()=>yjt,Alternatives:()=>bjt,ArrayLiteral:()=>wjt,ArrayType:()=>Sjt,Assignment:()=>$jt,BooleanLiteral:()=>Cjt,CharacterRange:()=>Pjt,Condition:()=>Rjt,Conjunction:()=>Ijt,CrossReference:()=>Djt,Disjunction:()=>Njt,EndOfFile:()=>Fjt,Grammar:()=>zjt,GrammarImport:()=>Vjt,Group:()=>jjt,InferredType:()=>Zjt,InfixRule:()=>Hjt,InfixRuleOperatorList:()=>Jjt,InfixRuleOperators:()=>tYt,Interface:()=>rYt,Keyword:()=>oYt,LangiumGrammarAstReflection:()=>sZt,LangiumGrammarTerminals:()=>ujt,NamedArgument:()=>sYt,NegatedToken:()=>cYt,Negation:()=>hYt,NumberLiteral:()=>pYt,Parameter:()=>gYt,ParameterReference:()=>OYt,ParserRule:()=>yYt,ReferenceType:()=>bYt,RegexToken:()=>wYt,ReturnType:()=>SYt,RuleCall:()=>$Yt,SimpleType:()=>CYt,StringLiteral:()=>PYt,TerminalAlternatives:()=>RYt,TerminalElement:()=>IYt,TerminalGroup:()=>DYt,TerminalRule:()=>NYt,TerminalRuleCall:()=>FYt,Type:()=>zYt,TypeAttribute:()=>VYt,TypeDefinition:()=>jYt,UnionType:()=>ZYt,UnorderedGroup:()=>HYt,UntilToken:()=>JYt,ValueLiteral:()=>tZt,Wildcard:()=>rZt,isAbstractElement:()=>djt,isAbstractParserRule:()=>fjt,isAbstractRule:()=>mjt,isAbstractType:()=>Ajt,isAction:()=>vjt,isAlternatives:()=>xjt,isArrayLiteral:()=>kjt,isArrayType:()=>Tjt,isAssignment:()=>_jt,isBooleanLiteral:()=>Qjt,isCharacterRange:()=>Ejt,isCondition:()=>Bjt,isConjunction:()=>Ljt,isCrossReference:()=>Mjt,isDisjunction:()=>Xjt,isEndOfFile:()=>Ujt,isGrammar:()=>qjt,isGrammarImport:()=>Wjt,isGroup:()=>Yjt,isInferredType:()=>Gjt,isInfixRule:()=>Kjt,isInfixRuleOperatorList:()=>eYt,isInfixRuleOperators:()=>nYt,isInterface:()=>iYt,isKeyword:()=>aYt,isNamedArgument:()=>lYt,isNegatedToken:()=>uYt,isNegation:()=>dYt,isNumberLiteral:()=>fYt,isParameter:()=>mYt,isParameterReference:()=>AYt,isParserRule:()=>vYt,isReferenceType:()=>xYt,isRegexToken:()=>kYt,isReturnType:()=>TYt,isRuleCall:()=>_Yt,isSimpleType:()=>QYt,isStringLiteral:()=>EYt,isTerminalAlternatives:()=>BYt,isTerminalElement:()=>LYt,isTerminalGroup:()=>MYt,isTerminalRule:()=>XYt,isTerminalRuleCall:()=>UYt,isType:()=>qYt,isTypeAttribute:()=>WYt,isTypeDefinition:()=>YYt,isUnionType:()=>GYt,isUnorderedGroup:()=>KYt,isUntilToken:()=>eZt,isValueLiteral:()=>nZt,isWildcard:()=>iZt,reflection:()=>lZt});var ujt={ID:/\^?[_a-zA-Z][\w_]*/,STRING:/"(\\.|[^"\\])*"|'(\\.|[^'\\])*'/,NUMBER:/NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity)/,RegexLiteral:/\/(?![*+?])(?:[^\r\n\[/\\]|\\.|\[(?:[^\r\n\]\\]|\\.)*\])+\/[a-z]*/,WS:/\s+/,ML_COMMENT:/\/\*[\s\S]*?\*\//,SL_COMMENT:/\/\/[^\n\r]*/},hjt={$type:"AbstractElement",cardinality:"cardinality"};function djt(e){return lZt.isInstance(e,hjt.$type)}_Vt(djt,"isAbstractElement");var pjt={$type:"AbstractParserRule"};function fjt(e){return lZt.isInstance(e,pjt.$type)}_Vt(fjt,"isAbstractParserRule");var gjt={$type:"AbstractRule"};function mjt(e){return lZt.isInstance(e,gjt.$type)}_Vt(mjt,"isAbstractRule");var Ojt={$type:"AbstractType"};function Ajt(e){return lZt.isInstance(e,Ojt.$type)}_Vt(Ajt,"isAbstractType");var yjt={$type:"Action",cardinality:"cardinality",feature:"feature",inferredType:"inferredType",operator:"operator",type:"type"};function vjt(e){return lZt.isInstance(e,yjt.$type)}_Vt(vjt,"isAction");var bjt={$type:"Alternatives",cardinality:"cardinality",elements:"elements"};function xjt(e){return lZt.isInstance(e,bjt.$type)}_Vt(xjt,"isAlternatives");var wjt={$type:"ArrayLiteral",elements:"elements"};function kjt(e){return lZt.isInstance(e,wjt.$type)}_Vt(kjt,"isArrayLiteral");var Sjt={$type:"ArrayType",elementType:"elementType"};function Tjt(e){return lZt.isInstance(e,Sjt.$type)}_Vt(Tjt,"isArrayType");var $jt={$type:"Assignment",cardinality:"cardinality",feature:"feature",operator:"operator",predicate:"predicate",terminal:"terminal"};function _jt(e){return lZt.isInstance(e,$jt.$type)}_Vt(_jt,"isAssignment");var Cjt={$type:"BooleanLiteral",true:"true"};function Qjt(e){return lZt.isInstance(e,Cjt.$type)}_Vt(Qjt,"isBooleanLiteral");var Pjt={$type:"CharacterRange",cardinality:"cardinality",left:"left",lookahead:"lookahead",parenthesized:"parenthesized",right:"right"};function Ejt(e){return lZt.isInstance(e,Pjt.$type)}_Vt(Ejt,"isCharacterRange");var Rjt={$type:"Condition"};function Bjt(e){return lZt.isInstance(e,Rjt.$type)}_Vt(Bjt,"isCondition");var Ijt={$type:"Conjunction",left:"left",right:"right"};function Ljt(e){return lZt.isInstance(e,Ijt.$type)}_Vt(Ljt,"isConjunction");var Djt={$type:"CrossReference",cardinality:"cardinality",deprecatedSyntax:"deprecatedSyntax",isMulti:"isMulti",terminal:"terminal",type:"type"};function Mjt(e){return lZt.isInstance(e,Djt.$type)}_Vt(Mjt,"isCrossReference");var Njt={$type:"Disjunction",left:"left",right:"right"};function Xjt(e){return lZt.isInstance(e,Njt.$type)}_Vt(Xjt,"isDisjunction");var Fjt={$type:"EndOfFile",cardinality:"cardinality"};function Ujt(e){return lZt.isInstance(e,Fjt.$type)}_Vt(Ujt,"isEndOfFile");var zjt={$type:"Grammar",imports:"imports",interfaces:"interfaces",isDeclared:"isDeclared",name:"name",rules:"rules",types:"types"};function qjt(e){return lZt.isInstance(e,zjt.$type)}_Vt(qjt,"isGrammar");var Vjt={$type:"GrammarImport",path:"path"};function Wjt(e){return lZt.isInstance(e,Vjt.$type)}_Vt(Wjt,"isGrammarImport");var jjt={$type:"Group",cardinality:"cardinality",elements:"elements",guardCondition:"guardCondition",predicate:"predicate"};function Yjt(e){return lZt.isInstance(e,jjt.$type)}_Vt(Yjt,"isGroup");var Zjt={$type:"InferredType",name:"name"};function Gjt(e){return lZt.isInstance(e,Zjt.$type)}_Vt(Gjt,"isInferredType");var Hjt={$type:"InfixRule",call:"call",dataType:"dataType",inferredType:"inferredType",name:"name",operators:"operators",parameters:"parameters",returnType:"returnType"};function Kjt(e){return lZt.isInstance(e,Hjt.$type)}_Vt(Kjt,"isInfixRule");var Jjt={$type:"InfixRuleOperatorList",associativity:"associativity",operators:"operators"};function eYt(e){return lZt.isInstance(e,Jjt.$type)}_Vt(eYt,"isInfixRuleOperatorList");var tYt={$type:"InfixRuleOperators",precedences:"precedences"};function nYt(e){return lZt.isInstance(e,tYt.$type)}_Vt(nYt,"isInfixRuleOperators");var rYt={$type:"Interface",attributes:"attributes",name:"name",superTypes:"superTypes"};function iYt(e){return lZt.isInstance(e,rYt.$type)}_Vt(iYt,"isInterface");var oYt={$type:"Keyword",cardinality:"cardinality",predicate:"predicate",value:"value"};function aYt(e){return lZt.isInstance(e,oYt.$type)}_Vt(aYt,"isKeyword");var sYt={$type:"NamedArgument",calledByName:"calledByName",parameter:"parameter",value:"value"};function lYt(e){return lZt.isInstance(e,sYt.$type)}_Vt(lYt,"isNamedArgument");var cYt={$type:"NegatedToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function uYt(e){return lZt.isInstance(e,cYt.$type)}_Vt(uYt,"isNegatedToken");var hYt={$type:"Negation",value:"value"};function dYt(e){return lZt.isInstance(e,hYt.$type)}_Vt(dYt,"isNegation");var pYt={$type:"NumberLiteral",value:"value"};function fYt(e){return lZt.isInstance(e,pYt.$type)}_Vt(fYt,"isNumberLiteral");var gYt={$type:"Parameter",name:"name"};function mYt(e){return lZt.isInstance(e,gYt.$type)}_Vt(mYt,"isParameter");var OYt={$type:"ParameterReference",parameter:"parameter"};function AYt(e){return lZt.isInstance(e,OYt.$type)}_Vt(AYt,"isParameterReference");var yYt={$type:"ParserRule",dataType:"dataType",definition:"definition",entry:"entry",fragment:"fragment",inferredType:"inferredType",name:"name",parameters:"parameters",returnType:"returnType"};function vYt(e){return lZt.isInstance(e,yYt.$type)}_Vt(vYt,"isParserRule");var bYt={$type:"ReferenceType",isMulti:"isMulti",referenceType:"referenceType"};function xYt(e){return lZt.isInstance(e,bYt.$type)}_Vt(xYt,"isReferenceType");var wYt={$type:"RegexToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",regex:"regex"};function kYt(e){return lZt.isInstance(e,wYt.$type)}_Vt(kYt,"isRegexToken");var SYt={$type:"ReturnType",name:"name"};function TYt(e){return lZt.isInstance(e,SYt.$type)}_Vt(TYt,"isReturnType");var $Yt={$type:"RuleCall",arguments:"arguments",cardinality:"cardinality",predicate:"predicate",rule:"rule"};function _Yt(e){return lZt.isInstance(e,$Yt.$type)}_Vt(_Yt,"isRuleCall");var CYt={$type:"SimpleType",primitiveType:"primitiveType",stringType:"stringType",typeRef:"typeRef"};function QYt(e){return lZt.isInstance(e,CYt.$type)}_Vt(QYt,"isSimpleType");var PYt={$type:"StringLiteral",value:"value"};function EYt(e){return lZt.isInstance(e,PYt.$type)}_Vt(EYt,"isStringLiteral");var RYt={$type:"TerminalAlternatives",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function BYt(e){return lZt.isInstance(e,RYt.$type)}_Vt(BYt,"isTerminalAlternatives");var IYt={$type:"TerminalElement",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function LYt(e){return lZt.isInstance(e,IYt.$type)}_Vt(LYt,"isTerminalElement");var DYt={$type:"TerminalGroup",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function MYt(e){return lZt.isInstance(e,DYt.$type)}_Vt(MYt,"isTerminalGroup");var NYt={$type:"TerminalRule",definition:"definition",fragment:"fragment",hidden:"hidden",name:"name",type:"type"};function XYt(e){return lZt.isInstance(e,NYt.$type)}_Vt(XYt,"isTerminalRule");var FYt={$type:"TerminalRuleCall",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",rule:"rule"};function UYt(e){return lZt.isInstance(e,FYt.$type)}_Vt(UYt,"isTerminalRuleCall");var zYt={$type:"Type",name:"name",type:"type"};function qYt(e){return lZt.isInstance(e,zYt.$type)}_Vt(qYt,"isType");var VYt={$type:"TypeAttribute",defaultValue:"defaultValue",isOptional:"isOptional",name:"name",type:"type"};function WYt(e){return lZt.isInstance(e,VYt.$type)}_Vt(WYt,"isTypeAttribute");var jYt={$type:"TypeDefinition"};function YYt(e){return lZt.isInstance(e,jYt.$type)}_Vt(YYt,"isTypeDefinition");var ZYt={$type:"UnionType",types:"types"};function GYt(e){return lZt.isInstance(e,ZYt.$type)}_Vt(GYt,"isUnionType");var HYt={$type:"UnorderedGroup",cardinality:"cardinality",elements:"elements"};function KYt(e){return lZt.isInstance(e,HYt.$type)}_Vt(KYt,"isUnorderedGroup");var JYt={$type:"UntilToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function eZt(e){return lZt.isInstance(e,JYt.$type)}_Vt(eZt,"isUntilToken");var tZt={$type:"ValueLiteral"};function nZt(e){return lZt.isInstance(e,tZt.$type)}_Vt(nZt,"isValueLiteral");var rZt={$type:"Wildcard",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function iZt(e){return lZt.isInstance(e,rZt.$type)}_Vt(iZt,"isWildcard");var oZt,aZt,sZt=(_Vt(_=class extends LWt{constructor(){super(...arguments),this.types={AbstractElement:{name:hjt.$type,properties:{cardinality:{name:hjt.cardinality}},superTypes:[]},AbstractParserRule:{name:pjt.$type,properties:{},superTypes:[gjt.$type,Ojt.$type]},AbstractRule:{name:gjt.$type,properties:{},superTypes:[]},AbstractType:{name:Ojt.$type,properties:{},superTypes:[]},Action:{name:yjt.$type,properties:{cardinality:{name:yjt.cardinality},feature:{name:yjt.feature},inferredType:{name:yjt.inferredType},operator:{name:yjt.operator},type:{name:yjt.type,referenceType:Ojt.$type}},superTypes:[hjt.$type]},Alternatives:{name:bjt.$type,properties:{cardinality:{name:bjt.cardinality},elements:{name:bjt.elements,defaultValue:[]}},superTypes:[hjt.$type]},ArrayLiteral:{name:wjt.$type,properties:{elements:{name:wjt.elements,defaultValue:[]}},superTypes:[tZt.$type]},ArrayType:{name:Sjt.$type,properties:{elementType:{name:Sjt.elementType}},superTypes:[jYt.$type]},Assignment:{name:$jt.$type,properties:{cardinality:{name:$jt.cardinality},feature:{name:$jt.feature},operator:{name:$jt.operator},predicate:{name:$jt.predicate},terminal:{name:$jt.terminal}},superTypes:[hjt.$type]},BooleanLiteral:{name:Cjt.$type,properties:{true:{name:Cjt.true,defaultValue:!1}},superTypes:[Rjt.$type,tZt.$type]},CharacterRange:{name:Pjt.$type,properties:{cardinality:{name:Pjt.cardinality},left:{name:Pjt.left},lookahead:{name:Pjt.lookahead},parenthesized:{name:Pjt.parenthesized,defaultValue:!1},right:{name:Pjt.right}},superTypes:[IYt.$type]},Condition:{name:Rjt.$type,properties:{},superTypes:[]},Conjunction:{name:Ijt.$type,properties:{left:{name:Ijt.left},right:{name:Ijt.right}},superTypes:[Rjt.$type]},CrossReference:{name:Djt.$type,properties:{cardinality:{name:Djt.cardinality},deprecatedSyntax:{name:Djt.deprecatedSyntax,defaultValue:!1},isMulti:{name:Djt.isMulti,defaultValue:!1},terminal:{name:Djt.terminal},type:{name:Djt.type,referenceType:Ojt.$type}},superTypes:[hjt.$type]},Disjunction:{name:Njt.$type,properties:{left:{name:Njt.left},right:{name:Njt.right}},superTypes:[Rjt.$type]},EndOfFile:{name:Fjt.$type,properties:{cardinality:{name:Fjt.cardinality}},superTypes:[hjt.$type]},Grammar:{name:zjt.$type,properties:{imports:{name:zjt.imports,defaultValue:[]},interfaces:{name:zjt.interfaces,defaultValue:[]},isDeclared:{name:zjt.isDeclared,defaultValue:!1},name:{name:zjt.name},rules:{name:zjt.rules,defaultValue:[]},types:{name:zjt.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:Vjt.$type,properties:{path:{name:Vjt.path}},superTypes:[]},Group:{name:jjt.$type,properties:{cardinality:{name:jjt.cardinality},elements:{name:jjt.elements,defaultValue:[]},guardCondition:{name:jjt.guardCondition},predicate:{name:jjt.predicate}},superTypes:[hjt.$type]},InferredType:{name:Zjt.$type,properties:{name:{name:Zjt.name}},superTypes:[Ojt.$type]},InfixRule:{name:Hjt.$type,properties:{call:{name:Hjt.call},dataType:{name:Hjt.dataType},inferredType:{name:Hjt.inferredType},name:{name:Hjt.name},operators:{name:Hjt.operators},parameters:{name:Hjt.parameters,defaultValue:[]},returnType:{name:Hjt.returnType,referenceType:Ojt.$type}},superTypes:[pjt.$type]},InfixRuleOperatorList:{name:Jjt.$type,properties:{associativity:{name:Jjt.associativity},operators:{name:Jjt.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:tYt.$type,properties:{precedences:{name:tYt.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:rYt.$type,properties:{attributes:{name:rYt.attributes,defaultValue:[]},name:{name:rYt.name},superTypes:{name:rYt.superTypes,defaultValue:[],referenceType:Ojt.$type}},superTypes:[Ojt.$type]},Keyword:{name:oYt.$type,properties:{cardinality:{name:oYt.cardinality},predicate:{name:oYt.predicate},value:{name:oYt.value}},superTypes:[hjt.$type]},NamedArgument:{name:sYt.$type,properties:{calledByName:{name:sYt.calledByName,defaultValue:!1},parameter:{name:sYt.parameter,referenceType:gYt.$type},value:{name:sYt.value}},superTypes:[]},NegatedToken:{name:cYt.$type,properties:{cardinality:{name:cYt.cardinality},lookahead:{name:cYt.lookahead},parenthesized:{name:cYt.parenthesized,defaultValue:!1},terminal:{name:cYt.terminal}},superTypes:[IYt.$type]},Negation:{name:hYt.$type,properties:{value:{name:hYt.value}},superTypes:[Rjt.$type]},NumberLiteral:{name:pYt.$type,properties:{value:{name:pYt.value}},superTypes:[tZt.$type]},Parameter:{name:gYt.$type,properties:{name:{name:gYt.name}},superTypes:[]},ParameterReference:{name:OYt.$type,properties:{parameter:{name:OYt.parameter,referenceType:gYt.$type}},superTypes:[Rjt.$type]},ParserRule:{name:yYt.$type,properties:{dataType:{name:yYt.dataType},definition:{name:yYt.definition},entry:{name:yYt.entry,defaultValue:!1},fragment:{name:yYt.fragment,defaultValue:!1},inferredType:{name:yYt.inferredType},name:{name:yYt.name},parameters:{name:yYt.parameters,defaultValue:[]},returnType:{name:yYt.returnType,referenceType:Ojt.$type}},superTypes:[pjt.$type]},ReferenceType:{name:bYt.$type,properties:{isMulti:{name:bYt.isMulti,defaultValue:!1},referenceType:{name:bYt.referenceType}},superTypes:[jYt.$type]},RegexToken:{name:wYt.$type,properties:{cardinality:{name:wYt.cardinality},lookahead:{name:wYt.lookahead},parenthesized:{name:wYt.parenthesized,defaultValue:!1},regex:{name:wYt.regex}},superTypes:[IYt.$type]},ReturnType:{name:SYt.$type,properties:{name:{name:SYt.name}},superTypes:[]},RuleCall:{name:$Yt.$type,properties:{arguments:{name:$Yt.arguments,defaultValue:[]},cardinality:{name:$Yt.cardinality},predicate:{name:$Yt.predicate},rule:{name:$Yt.rule,referenceType:gjt.$type}},superTypes:[hjt.$type]},SimpleType:{name:CYt.$type,properties:{primitiveType:{name:CYt.primitiveType},stringType:{name:CYt.stringType},typeRef:{name:CYt.typeRef,referenceType:Ojt.$type}},superTypes:[jYt.$type]},StringLiteral:{name:PYt.$type,properties:{value:{name:PYt.value}},superTypes:[tZt.$type]},TerminalAlternatives:{name:RYt.$type,properties:{cardinality:{name:RYt.cardinality},elements:{name:RYt.elements,defaultValue:[]},lookahead:{name:RYt.lookahead},parenthesized:{name:RYt.parenthesized,defaultValue:!1}},superTypes:[IYt.$type]},TerminalElement:{name:IYt.$type,properties:{cardinality:{name:IYt.cardinality},lookahead:{name:IYt.lookahead},parenthesized:{name:IYt.parenthesized,defaultValue:!1}},superTypes:[hjt.$type]},TerminalGroup:{name:DYt.$type,properties:{cardinality:{name:DYt.cardinality},elements:{name:DYt.elements,defaultValue:[]},lookahead:{name:DYt.lookahead},parenthesized:{name:DYt.parenthesized,defaultValue:!1}},superTypes:[IYt.$type]},TerminalRule:{name:NYt.$type,properties:{definition:{name:NYt.definition},fragment:{name:NYt.fragment,defaultValue:!1},hidden:{name:NYt.hidden,defaultValue:!1},name:{name:NYt.name},type:{name:NYt.type}},superTypes:[gjt.$type]},TerminalRuleCall:{name:FYt.$type,properties:{cardinality:{name:FYt.cardinality},lookahead:{name:FYt.lookahead},parenthesized:{name:FYt.parenthesized,defaultValue:!1},rule:{name:FYt.rule,referenceType:NYt.$type}},superTypes:[IYt.$type]},Type:{name:zYt.$type,properties:{name:{name:zYt.name},type:{name:zYt.type}},superTypes:[Ojt.$type]},TypeAttribute:{name:VYt.$type,properties:{defaultValue:{name:VYt.defaultValue},isOptional:{name:VYt.isOptional,defaultValue:!1},name:{name:VYt.name},type:{name:VYt.type}},superTypes:[]},TypeDefinition:{name:jYt.$type,properties:{},superTypes:[]},UnionType:{name:ZYt.$type,properties:{types:{name:ZYt.types,defaultValue:[]}},superTypes:[jYt.$type]},UnorderedGroup:{name:HYt.$type,properties:{cardinality:{name:HYt.cardinality},elements:{name:HYt.elements,defaultValue:[]}},superTypes:[hjt.$type]},UntilToken:{name:JYt.$type,properties:{cardinality:{name:JYt.cardinality},lookahead:{name:JYt.lookahead},parenthesized:{name:JYt.parenthesized,defaultValue:!1},terminal:{name:JYt.terminal}},superTypes:[IYt.$type]},ValueLiteral:{name:tZt.$type,properties:{},superTypes:[]},Wildcard:{name:rZt.$type,properties:{cardinality:{name:rZt.cardinality},lookahead:{name:rZt.lookahead},parenthesized:{name:rZt.parenthesized,defaultValue:!1}},superTypes:[IYt.$type]}}}},"LangiumGrammarAstReflection"),_),lZt=new sZt;function cZt(e){let t=e,n=!1;for(;t;){const e=GWt(t.grammarSource,vYt);if(!e||!e.dataType)return n?t:void 0;t=t.container,n=!0}}function uZt(e){return new jWt(e,e=>DWt(e)?e.content:[],{includeRoot:!0})}function hZt(e){return uZt(e).filter(MWt)}function dZt(e,t){for(;e.container;)if((e=e.container)===t)return!0;return!1}function pZt(e){return{start:{character:e.startColumn-1,line:e.startLine-1},end:{character:e.endColumn,line:e.endLine-1}}}function fZt(e){if(!e)return;const{offset:t,end:n,range:r}=e;return{range:r,offset:t,end:n,length:n-t}}function gZt(e,t){if(e.end.line<t.start.line||e.end.line===t.start.line&&e.end.character<=t.start.character)return oZt.Before;if(e.start.line>t.end.line||e.start.line===t.end.line&&e.start.character>=t.end.character)return oZt.After;const n=e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>=t.start.character,r=e.end.line<t.end.line||e.end.line===t.end.line&&e.end.character<=t.end.character;return n&&r?oZt.Inside:n?oZt.OverlapBack:r?oZt.OverlapFront:oZt.Outside}function mZt(e,t){return gZt(e,t)>oZt.After}_Vt(cZt,"getDatatypeNode"),_Vt(uZt,"streamCst"),_Vt(hZt,"flattenCst"),_Vt(dZt,"isChildNode"),_Vt(pZt,"tokenToRange"),_Vt(fZt,"toDocumentSegment"),(aZt=oZt||(oZt={}))[aZt.Before=0]="Before",aZt[aZt.After=1]="After",aZt[aZt.OverlapFront=2]="OverlapFront",aZt[aZt.OverlapBack=3]="OverlapBack",aZt[aZt.Inside=4]="Inside",aZt[aZt.Outside=5]="Outside",_Vt(gZt,"compareRange"),_Vt(mZt,"inRange");var OZt=/^[\w\p{L}]$/u;function AZt(e,t,n=OZt){if(e){if(t>0){const r=t-e.offset,i=e.text.charAt(r);n.test(i)||t--}return bZt(e,t)}}function yZt(e,t){if(e){const n=kZt(e,!0);if(n&&vZt(n,t))return n;if(NWt(e)){const n=e.content.findIndex(e=>!e.hidden);for(let r=n-1;r>=0;r--){const n=e.content[r];if(vZt(n,t))return n}}}}function vZt(e,t){return MWt(e)&&t.includes(e.tokenType.name)}function bZt(e,t){if(MWt(e))return e;if(DWt(e)){const n=wZt(e,t,!1);if(n)return bZt(n,t)}}function xZt(e,t){if(MWt(e))return e;if(DWt(e)){const n=wZt(e,t,!0);if(n)return xZt(n,t)}}function wZt(e,t,n){let r,i=0,o=e.content.length-1;for(;i<=o;){const a=Math.floor((i+o)/2),s=e.content[a];if(s.offset<=t&&s.end>t)return s;s.end<=t?(r=n?s:void 0,i=a+1):o=a-1}return r}function kZt(e,t=!0){for(;e.container;){const n=e.container;let r=n.content.indexOf(e);for(;r>0;){r--;const e=n.content[r];if(t||!e.hidden)return e}e=n}}function SZt(e,t=!0){for(;e.container;){const n=e.container;let r=n.content.indexOf(e);const i=n.content.length-1;for(;r<i;){r++;const e=n.content[r];if(t||!e.hidden)return e}e=n}}function TZt(e){if(0===e.range.start.character)return e;const t=e.range.start.line;let n,r=e;for(;e.container;){const i=e.container,o=n??i.content.indexOf(e);if(0===o?(e=i,n=void 0):(n=o-1,e=i.content[n]),e.range.start.line!==t)break;r=e}return r}function $Zt(e,t){const n=_Zt(e,t);return n?n.parent.content.slice(n.a+1,n.b):[]}function _Zt(e,t){const n=CZt(e),r=CZt(t);let i;for(let o=0;o<n.length&&o<r.length;o++){const e=n[o],t=r[o];if(e.parent!==t.parent)break;i={parent:e.parent,a:e.index,b:t.index}}return i}function CZt(e){const t=[];for(;e.container;){const n=e.container,r=n.content.indexOf(e);t.push({parent:n,index:r}),e=n}return t.reverse()}_Vt(AZt,"findDeclarationNodeAtOffset"),_Vt(yZt,"findCommentNode"),_Vt(vZt,"isCommentNode"),_Vt(bZt,"findLeafNodeAtOffset"),_Vt(xZt,"findLeafNodeBeforeOffset"),_Vt(wZt,"binarySearch"),_Vt(kZt,"getPreviousNode"),_Vt(SZt,"getNextNode"),_Vt(TZt,"getStartlineNode"),_Vt($Zt,"getInteriorNodes"),_Vt(_Zt,"getCommonParent"),_Vt(CZt,"getParentChain");var QZt={};QVt(QZt,{findAssignment:()=>AGt,findNameAssignment:()=>yGt,findNodeForKeyword:()=>mGt,findNodeForProperty:()=>pGt,findNodesForKeyword:()=>gGt,findNodesForKeywordInternal:()=>OGt,findNodesForProperty:()=>dGt,getActionAtElement:()=>bGt,getActionType:()=>PGt,getAllReachableRules:()=>sGt,getAllRulesUsedForCrossReferences:()=>cGt,getCrossReferenceTerminal:()=>uGt,getEntryRule:()=>oGt,getExplicitRuleType:()=>CGt,getHiddenRules:()=>aGt,getRuleType:()=>RGt,getRuleTypeName:()=>EGt,getTypeName:()=>QGt,isArrayCardinality:()=>wGt,isArrayOperator:()=>kGt,isCommentTerminal:()=>hGt,isDataType:()=>$Gt,isDataTypeRule:()=>SGt,isOptionalCardinality:()=>xGt,terminalRegex:()=>BGt});var PZt=(C=class extends Error{constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}},_Vt(C,"ErrorWithLocation"),C);function EZt(e,t="Error: Got unexpected value."){throw new Error(t)}function RZt(e,t="Error: Condition is violated."){if(!e)throw new Error(t)}_Vt(EZt,"assertUnreachable"),_Vt(RZt,"assertCondition");var BZt={};function IZt(e){return e.charCodeAt(0)}function LZt(e,t){Array.isArray(e)?e.forEach(function(e){t.push(e)}):t.push(e)}function DZt(e,t){if(!0===e[t])throw"duplicate flag "+t;e[t],e[t]=!0}function MZt(e){if(void 0===e)throw Error("Internal Error - Should never get here!");return!0}function NZt(){throw Error("Internal Error - Should never get here!")}function XZt(e){return"Character"===e.type}QVt(BZt,{NEWLINE_REGEXP:()=>ZZt,escapeRegExp:()=>nGt,getTerminalParts:()=>KZt,isMultilineComment:()=>JZt,isWhitespace:()=>tGt,partialMatches:()=>rGt,partialRegExp:()=>iGt,whitespaceCharacters:()=>eGt}),_Vt(IZt,"cc"),_Vt(LZt,"insertToSet"),_Vt(DZt,"addFlag"),_Vt(MZt,"ASSERT_EXISTS"),_Vt(NZt,"ASSERT_NEVER_REACH_HERE"),_Vt(XZt,"isCharacter");var FZt=[];for(let c=IZt("0");c<=IZt("9");c++)FZt.push(c);var UZt=[IZt("_")].concat(FZt);for(let c=IZt("a");c<=IZt("z");c++)UZt.push(c);for(let c=IZt("A");c<=IZt("Z");c++)UZt.push(c);var zZt=[IZt(" "),IZt("\f"),IZt("\n"),IZt("\r"),IZt("\t"),IZt("\v"),IZt("\t"),IZt(" "),IZt(" "),IZt(" "),IZt(" "),IZt(" "),IZt(" "),IZt(" "),IZt(" "),IZt(" "),IZt(" "),IZt(" "),IZt(" "),IZt(" "),IZt("\u2028"),IZt("\u2029"),IZt(" "),IZt(" "),IZt(" "),IZt("\ufeff")],qZt=/[0-9a-fA-F]/,VZt=/[0-9]/,WZt=/[1-9]/,jZt=(Q=class{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");const t=this.disjunction();this.consumeChar("/");const n={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":DZt(n,"global");break;case"i":DZt(n,"ignoreCase");break;case"m":DZt(n,"multiLine");break;case"u":DZt(n,"unicode");break;case"y":DZt(n,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:t,loc:this.loc(0)}}disjunction(){const e=[],t=this.idx;for(e.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){const e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":let t;switch(this.consumeChar("?"),this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead";break;case"<":switch(this.popChar()){case"=":t="Lookbehind";break;case"!":t="NegativeLookbehind"}}MZt(t);const n=this.disjunction();return this.consumeChar(")"),{type:t,value:n,loc:this.loc(e)}}return NZt()}quantifier(e=!1){let t;const n=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":const n=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:n,atMost:n};break;case",":let e;this.isDigit()?(e=this.integerIncludingZero(),t={atLeast:n,atMost:e}):t={atLeast:n,atMost:1/0},this.consumeChar("}")}if(!0===e&&void 0===t)return;MZt(t)}if(!0!==e||void 0!==t)return MZt(t)?("?"===this.peekChar(0)?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(n),t):void 0}atom(){let e;const t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group()}if(void 0===e&&this.isPatternCharacter()&&(e=this.patternCharacter()),MZt(e))return e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[IZt("\n"),IZt("\r"),IZt("\u2028"),IZt("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case"d":e=FZt;break;case"D":e=FZt,t=!0;break;case"s":e=zZt;break;case"S":e=zZt,t=!0;break;case"w":e=UZt;break;case"W":e=UZt,t=!0}if(MZt(e))return{type:"Set",value:e,complement:t}}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=IZt("\f");break;case"n":e=IZt("\n");break;case"r":e=IZt("\r");break;case"t":e=IZt("\t");break;case"v":e=IZt("\v")}if(MZt(e))return{type:"Character",value:e}}controlLetterEscapeAtom(){this.consumeChar("c");const e=this.popChar();if(!1===/[a-zA-Z]/.test(e))throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:IZt("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){return{type:"Character",value:IZt(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case"\n":case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:IZt(this.popChar())}}}characterClass(){const e=[];let t=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),t=!0);this.isClassAtom();){const t=this.classAtom();if(t.type,XZt(t)&&this.isRangeDash()){this.consumeChar("-");const n=this.classAtom();if(n.type,XZt(n)){if(n.value<t.value)throw Error("Range out of order in character class");e.push({from:t.value,to:n.value})}else LZt(t.value,e),e.push(IZt("-")),LZt(n.value,e)}else LZt(t.value,e)}return this.consumeChar("]"),{type:"Set",complement:t,value:e}}classAtom(){switch(this.peekChar()){case"]":case"\n":case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}}classEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:IZt("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}group(){let e=!0;if(this.consumeChar("("),"?"===this.peekChar(0))this.consumeChar("?"),this.consumeChar(":"),e=!1;else this.groupIdx++;const t=this.disjunction();this.consumeChar(")");const n={type:"Group",capturing:e,value:t};return e&&(n.idx=this.groupIdx),n}positiveInteger(){let e=this.popChar();if(!1===WZt.test(e))throw Error("Expecting a positive integer");for(;VZt.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}integerIncludingZero(){let e=this.popChar();if(!1===VZt.test(e))throw Error("Expecting an integer");for(;VZt.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}patternCharacter(){const e=this.popChar();switch(e){case"\n":case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:IZt(e)}}}isRegExpFlag(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}}isRangeDash(){return"-"===this.peekChar()&&this.isClassAtom(1)}isDigit(){return VZt.test(this.peekChar(0))}isClassAtom(e=0){switch(this.peekChar(e)){case"]":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}isTerm(){return this.isAtom()||this.isAssertion()}isAtom(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}}isAssertion(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return"?"===this.peekChar(1)&&("="===this.peekChar(2)||"!"===this.peekChar(2)||"<"===this.peekChar(2)&&("="===this.peekChar(3)||"!"===this.peekChar(3)));default:return!1}}isQuantifier(){const e=this.saveState();try{return void 0!==this.quantifier(!0)}catch(jk){return!1}finally{this.restoreState(e)}}isPatternCharacter(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}parseHexDigits(e){let t="";for(let n=0;n<e;n++){const e=this.popChar();if(!1===qZt.test(e))throw Error("Expecting a HexDecimal digits");t+=e}return{type:"Character",value:parseInt(t,16)}}peekChar(e=0){return this.input[this.idx+e]}popChar(){const e=this.peekChar(0);return this.consumeChar(void 0),e}consumeChar(e){if(void 0!==e&&this.input[this.idx]!==e)throw Error("Expected: '"+e+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(e){return{begin:e,end:this.idx}}},_Vt(Q,"RegExpParser"),Q),YZt=(_Vt(P=class{visitChildren(e){for(const t in e){const n=e[t];e.hasOwnProperty(t)&&(void 0!==n.type?this.visit(n):Array.isArray(n)&&n.forEach(e=>{this.visit(e)},this))}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Lookbehind":this.visitLookbehind(e);break;case"NegativeLookbehind":this.visitNegativeLookbehind(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e)}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitLookbehind(e){}visitNegativeLookbehind(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}},"BaseRegExpVisitor"),P),ZZt=/\r?\n/gm,GZt=new jZt,HZt=new(_Vt(E=class extends YZt{constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join("")}reset(e){this.multiline=!1,this.regex=e,this.startRegexp="",this.isStarting=!0,this.endRegexpStack=[]}visitGroup(e){e.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(e){const t=String.fromCharCode(e.value);if(this.multiline||"\n"!==t||(this.multiline=!0),e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{const e=nGt(t);this.endRegexpStack.push(e),this.isStarting&&(this.startRegexp+=e)}}visitSet(e){if(!this.multiline){const t=this.regex.substring(e.loc.begin,e.loc.end),n=new RegExp(t);this.multiline=Boolean("\n".match(n))}if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{const t=this.regex.substring(e.loc.begin,e.loc.end);this.endRegexpStack.push(t),this.isStarting&&(this.startRegexp+=t)}}visitChildren(e){if("Group"===e.type){if(e.quantifier)return}super.visitChildren(e)}},"TerminalRegExpVisitor"),E);function KZt(e){try{"string"!=typeof e&&(e=e.source),e=`/${e}/`;const t=GZt.pattern(e),n=[];for(const r of t.value.value)HZt.reset(e),HZt.visit(r),n.push({start:HZt.startRegexp,end:HZt.endRegex});return n}catch{return[]}}function JZt(e){try{return"string"==typeof e&&(e=new RegExp(e)),e=e.toString(),HZt.reset(e),HZt.visit(GZt.pattern(e)),HZt.multiline}catch{return!1}}_Vt(KZt,"getTerminalParts"),_Vt(JZt,"isMultilineComment");var eGt="\f\n\r\t\v \u2028\u2029 \ufeff".split("");function tGt(e){const t="string"==typeof e?new RegExp(e):e;return eGt.some(e=>t.test(e))}function nGt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function rGt(e,t){const n=iGt(e),r=t.match(n);return!!r&&r[0].length>0}function iGt(e){"string"==typeof e&&(e=new RegExp(e));const t=e,n=e.source;let r=0;function i(){let e,o="";function a(e){o+=n.substr(r,e),r+=e}function s(e){o+="(?:"+n.substr(r,e)+"|$)",r+=e}for(_Vt(a,"appendRaw"),_Vt(s,"appendOptional");r<n.length;)switch(n[r]){case"\\":switch(n[r+1]){case"c":s(3);break;case"x":s(4);break;case"u":t.unicode?"{"===n[r+2]?s(n.indexOf("}",r)-r+1):s(6):s(2);break;case"p":case"P":t.unicode?s(n.indexOf("}",r)-r+1):s(2);break;case"k":s(n.indexOf(">",r)-r+1);break;default:s(2)}break;case"[":e=/\[(?:\\.|.)*?\]/g,e.lastIndex=r,e=e.exec(n)||[],s(e[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":a(1);break;case"{":e=/\{\d+,?\d*\}/g,e.lastIndex=r,e=e.exec(n),e?a(e[0].length):s(1);break;case"(":if("?"===n[r+1])switch(n[r+2]){case":":o+="(?:",r+=3,o+=i()+"|$)";break;case"=":o+="(?=",r+=3,o+=i()+")";break;case"!":e=r,r+=3,i(),o+=n.substr(e,r-e);break;case"<":switch(n[r+3]){case"=":case"!":e=r,r+=4,i(),o+=n.substr(e,r-e);break;default:a(n.indexOf(">",r)-r+1),o+=i()+"|$)"}}else a(1),o+=i()+"|$)";break;case")":return++r,o;default:s(1)}return o}return _Vt(i,"process"),new RegExp(i(),e.flags)}function oGt(e){return e.rules.find(e=>vYt(e)&&e.entry)}function aGt(e){return e.rules.filter(e=>XYt(e)&&e.hidden)}function sGt(e,t){const n=new Set,r=oGt(e);if(!r)return new Set(e.rules);const i=[r].concat(aGt(e));for(const a of i)lGt(a,n,t);const o=new Set;for(const a of e.rules)(n.has(a.name)||XYt(a)&&a.hidden)&&o.add(a);return o}function lGt(e,t,n){t.add(e.name),njt(e).forEach(e=>{if(_Yt(e)||n&&UYt(e)){const r=e.rule.ref;r&&!t.has(r.name)&&lGt(r,t,n)}})}function cGt(e){const t=new Set;return njt(e).forEach(e=>{Mjt(e)&&(vYt(e.type.ref)&&t.add(e.type.ref),Gjt(e.type.ref)&&vYt(e.type.ref.$container)&&t.add(e.type.ref.$container))}),t}function uGt(e){if(e.terminal)return e.terminal;if(e.type.ref){const t=yGt(e.type.ref);return null==t?void 0:t.terminal}}function hGt(e){return e.hidden&&!tGt(BGt(e))}function dGt(e,t){return e&&t?fGt(e,t,e.astNode,!0):[]}function pGt(e,t,n){if(!e||!t)return;const r=fGt(e,t,e.astNode,!0);return 0!==r.length?r[n=void 0!==n?Math.max(0,Math.min(n,r.length-1)):0]:void 0}function fGt(e,t,n,r){if(!r){const n=GWt(e.grammarSource,_jt);if(n&&n.feature===t)return[e]}return DWt(e)&&e.astNode===n?e.content.flatMap(e=>fGt(e,t,n,!1)):[]}function gGt(e,t){return e?OGt(e,t,null==e?void 0:e.astNode):[]}function mGt(e,t,n){if(!e)return;const r=OGt(e,t,null==e?void 0:e.astNode);return 0!==r.length?r[n=void 0!==n?Math.max(0,Math.min(n,r.length-1)):0]:void 0}function OGt(e,t,n){if(e.astNode!==n)return[];if(aYt(e.grammarSource)&&e.grammarSource.value===t)return[e];const r=uZt(e).iterator();let i;const o=[];do{if(i=r.next(),!i.done){const e=i.value;e.astNode===n?aYt(e.grammarSource)&&e.grammarSource.value===t&&o.push(e):r.prune()}}while(!i.done);return o}function AGt(e){var t;const n=e.astNode;for(;n===(null==(t=e.container)?void 0:t.astNode);){const t=GWt(e.grammarSource,_jt);if(t)return t;e=e.container}}function yGt(e){let t=e;return Gjt(t)&&(vjt(t.$container)?t=t.$container.$container:fjt(t.$container)?t=t.$container:EZt(t.$container)),vGt(e,t,new Map)}function vGt(e,t,n){var r;function i(t,r){let i;return GWt(t,_jt)||(i=vGt(r,r,n)),n.set(e,i),i}if(_Vt(i,"go"),n.has(e))return n.get(e);n.set(e,void 0);for(const o of njt(t)){if(_jt(o)&&"name"===o.feature.toLowerCase())return n.set(e,o),o;if(_Yt(o)&&vYt(o.rule.ref))return i(o,o.rule.ref);if(QYt(o)&&(null==(r=o.typeRef)?void 0:r.ref))return i(o,o.typeRef.ref)}}function bGt(e){const t=e.$container;if(Yjt(t)){const n=t.elements;for(let t=n.indexOf(e)-1;t>=0;t--){const e=n[t];if(vjt(e))return e;{const e=njt(n[t]).find(vjt);if(e)return e}}}return djt(t)?bGt(t):void 0}function xGt(e,t){return"?"===e||"*"===e||Yjt(t)&&Boolean(t.guardCondition)}function wGt(e){return"*"===e||"+"===e}function kGt(e){return"+="===e}function SGt(e){return TGt(e,new Set)}function TGt(e,t){if(t.has(e))return!0;t.add(e);for(const n of njt(e))if(_Yt(n)){if(!n.rule.ref)return!1;if(vYt(n.rule.ref)&&!TGt(n.rule.ref,t))return!1;if(Kjt(n.rule.ref))return!1}else{if(_jt(n))return!1;if(vjt(n))return!1}return Boolean(e.definition)}function $Gt(e){return _Gt(e.type,new Set)}function _Gt(e,t){if(t.has(e))return!0;if(t.add(e),Tjt(e))return!1;if(xYt(e))return!1;if(GYt(e))return e.types.every(e=>_Gt(e,t));if(QYt(e)){if(void 0!==e.primitiveType)return!0;if(void 0!==e.stringType)return!0;if(void 0!==e.typeRef){const n=e.typeRef.ref;return!!qYt(n)&&_Gt(n.type,t)}return!1}return!1}function CGt(e){if(!XYt(e)){if(e.inferredType)return e.inferredType.name;if(e.dataType)return e.dataType;if(e.returnType){const t=e.returnType.ref;if(t)return t.name}}}function QGt(e){if(fjt(e))return vYt(e)&&SGt(e)?e.name:CGt(e)??e.name;if(iYt(e)||qYt(e)||TYt(e))return e.name;if(vjt(e)){const t=PGt(e);if(t)return t}else if(Gjt(e))return e.name;throw new Error("Cannot get name of Unknown Type")}function PGt(e){var t;return e.inferredType?e.inferredType.name:(null==(t=e.type)?void 0:t.ref)?QGt(e.type.ref):void 0}function EGt(e){var t;return XYt(e)?(null==(t=e.type)?void 0:t.name)??"string":vYt(e)&&SGt(e)?e.name:CGt(e)??e.name}function RGt(e){var t;return XYt(e)?(null==(t=e.type)?void 0:t.name)??"string":CGt(e)??e.name}function BGt(e){const t={s:!1,i:!1,u:!1},n=LGt(e.definition,t),r=Object.entries(t).filter(([,e])=>e).map(([e])=>e).join("");return new RegExp(n,r)}_Vt(tGt,"isWhitespace"),_Vt(nGt,"escapeRegExp"),_Vt(rGt,"partialMatches"),_Vt(iGt,"partialRegExp"),_Vt(oGt,"getEntryRule"),_Vt(aGt,"getHiddenRules"),_Vt(sGt,"getAllReachableRules"),_Vt(lGt,"ruleDfs"),_Vt(cGt,"getAllRulesUsedForCrossReferences"),_Vt(uGt,"getCrossReferenceTerminal"),_Vt(hGt,"isCommentTerminal"),_Vt(dGt,"findNodesForProperty"),_Vt(pGt,"findNodeForProperty"),_Vt(fGt,"findNodesForPropertyInternal"),_Vt(gGt,"findNodesForKeyword"),_Vt(mGt,"findNodeForKeyword"),_Vt(OGt,"findNodesForKeywordInternal"),_Vt(AGt,"findAssignment"),_Vt(yGt,"findNameAssignment"),_Vt(vGt,"findNameAssignmentInternal"),_Vt(bGt,"getActionAtElement"),_Vt(xGt,"isOptionalCardinality"),_Vt(wGt,"isArrayCardinality"),_Vt(kGt,"isArrayOperator"),_Vt(SGt,"isDataTypeRule"),_Vt(TGt,"isDataTypeRuleInternal"),_Vt($Gt,"isDataType"),_Vt(_Gt,"isDataTypeInternal"),_Vt(CGt,"getExplicitRuleType"),_Vt(QGt,"getTypeName"),_Vt(PGt,"getActionType"),_Vt(EGt,"getRuleTypeName"),_Vt(RGt,"getRuleType"),_Vt(BGt,"terminalRegex");var IGt=/[\s\S]/.source;function LGt(e,t){var n;if(BYt(e))return DGt(e);if(MYt(e))return MGt(e);if(Ejt(e))return FGt(e);if(UYt(e)){const t=e.rule.ref;if(!t)throw new Error("Missing rule reference.");return zGt(LGt(t.definition),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}if(uYt(e))return XGt(e);if(eZt(e))return NGt(e);if(kYt(e)){const n=e.regex.lastIndexOf("/"),r=e.regex.substring(1,n),i=e.regex.substring(n+1);return t&&(t.i=i.includes("i"),t.s=i.includes("s"),t.u=i.includes("u")),zGt(r,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}if(iZt(e))return zGt(IGt,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized});throw new Error(`Invalid terminal element: ${null==e?void 0:e.$type}, ${null==(n=null==e?void 0:e.$cstNode)?void 0:n.text}`)}function DGt(e){return zGt(e.elements.map(e=>LGt(e)).join("|"),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function MGt(e){return zGt(e.elements.map(e=>LGt(e)).join(""),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function NGt(e){return zGt(`${IGt}*?${LGt(e.terminal)}`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}function XGt(e){return zGt(`(?!${LGt(e.terminal)})${IGt}*?`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}function FGt(e){return e.right?zGt(`[${UGt(e.left)}-${UGt(e.right)}]`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1}):zGt(UGt(e.left),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function UGt(e){return nGt(e.value)}function zGt(e,t){if(t.parenthesized||t.lookahead||!1!==t.wrap){e=`(${t.lookahead??(t.parenthesized?"":"?:")}${e})`}return t.cardinality?`${e}${t.cardinality}`:e}function qGt(e){const t=[],n=e.Grammar;for(const r of n.rules)XYt(r)&&hGt(r)&&JZt(BGt(r))&&t.push(r.name);return{multilineCommentRules:t,nameRegexp:OZt}}_Vt(LGt,"abstractElementToRegex"),_Vt(DGt,"terminalAlternativesToRegex"),_Vt(MGt,"terminalGroupToRegex"),_Vt(NGt,"untilTokenToRegex"),_Vt(XGt,"negateTokenToRegex"),_Vt(FGt,"characterRangeToRegex"),_Vt(UGt,"keywordToRegex"),_Vt(zGt,"withCardinality"),_Vt(qGt,"createGrammarConfig");var VGt="object"==typeof global&&global&&global.Object===Object&&global,WGt="object"==typeof self&&self&&self.Object===Object&&self,jGt=VGt||WGt||Function("return this")(),YGt=jGt.Symbol,ZGt=Object.prototype,GGt=ZGt.hasOwnProperty,HGt=ZGt.toString,KGt=YGt?YGt.toStringTag:void 0;function JGt(e){var t=GGt.call(e,KGt),n=e[KGt];try{e[KGt]=void 0;var r=!0}catch(jk){}var i=HGt.call(e);return r&&(t?e[KGt]=n:delete e[KGt]),i}_Vt(JGt,"getRawTag");var eHt=JGt,tHt=Object.prototype.toString;function nHt(e){return tHt.call(e)}_Vt(nHt,"objectToString");var rHt=nHt,iHt=YGt?YGt.toStringTag:void 0;function oHt(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":iHt&&iHt in Object(e)?eHt(e):rHt(e)}_Vt(oHt,"baseGetTag");var aHt=oHt;function sHt(e){return null!=e&&"object"==typeof e}_Vt(sHt,"isObjectLike");var lHt=sHt;function cHt(e){return"symbol"==typeof e||lHt(e)&&"[object Symbol]"==aHt(e)}_Vt(cHt,"isSymbol");var uHt=cHt;function hHt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}_Vt(hHt,"arrayMap");var dHt=hHt,pHt=Array.isArray,fHt=YGt?YGt.prototype:void 0,gHt=fHt?fHt.toString:void 0;function mHt(e){if("string"==typeof e)return e;if(pHt(e))return dHt(e,mHt)+"";if(uHt(e))return gHt?gHt.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}_Vt(mHt,"baseToString");var OHt=mHt,AHt=/\s/;function yHt(e){for(var t=e.length;t--&&AHt.test(e.charAt(t)););return t}_Vt(yHt,"trimmedEndIndex");var vHt=yHt,bHt=/^\s+/;function xHt(e){return e?e.slice(0,vHt(e)+1).replace(bHt,""):e}_Vt(xHt,"baseTrim");var wHt=xHt;function kHt(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}_Vt(kHt,"isObject");var SHt=kHt,THt=/^[-+]0x[0-9a-f]+$/i,$Ht=/^0b[01]+$/i,_Ht=/^0o[0-7]+$/i,CHt=parseInt;function QHt(e){if("number"==typeof e)return e;if(uHt(e))return NaN;if(SHt(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=SHt(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=wHt(e);var n=$Ht.test(e);return n||_Ht.test(e)?CHt(e.slice(2),n?2:8):THt.test(e)?NaN:+e}_Vt(QHt,"toNumber");var PHt=QHt,EHt=1/0;function RHt(e){return e?(e=PHt(e))===EHt||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}_Vt(RHt,"toFinite");var BHt=RHt;function IHt(e){var t=BHt(e),n=t%1;return t==t?n?t-n:t:0}_Vt(IHt,"toInteger");var LHt=IHt;function DHt(e){return e}_Vt(DHt,"identity");var MHt=DHt;function NHt(e){if(!SHt(e))return!1;var t=aHt(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}_Vt(NHt,"isFunction");var XHt=NHt,FHt=jGt["__core-js_shared__"],UHt=function(){var e=/[^.]+$/.exec(FHt&&FHt.keys&&FHt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function zHt(e){return!!UHt&&UHt in e}_Vt(zHt,"isMasked");var qHt=zHt,VHt=Function.prototype.toString;function WHt(e){if(null!=e){try{return VHt.call(e)}catch(jk){}try{return e+""}catch(jk){}}return""}_Vt(WHt,"toSource");var jHt=WHt,YHt=/^\[object .+?Constructor\]$/,ZHt=Function.prototype,GHt=Object.prototype,HHt=ZHt.toString,KHt=GHt.hasOwnProperty,JHt=RegExp("^"+HHt.call(KHt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function eKt(e){return!(!SHt(e)||qHt(e))&&(XHt(e)?JHt:YHt).test(jHt(e))}_Vt(eKt,"baseIsNative");var tKt=eKt;function nKt(e,t){return null==e?void 0:e[t]}_Vt(nKt,"getValue");var rKt=nKt;function iKt(e,t){var n=rKt(e,t);return tKt(n)?n:void 0}_Vt(iKt,"getNative");var oKt=iKt,aKt=oKt(jGt,"WeakMap"),sKt=Object.create,lKt=function(){function e(){}return _Vt(e,"object"),function(t){if(!SHt(t))return{};if(sKt)return sKt(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function cKt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}_Vt(cKt,"apply");var uKt=cKt;function hKt(){}_Vt(hKt,"noop");var dKt=hKt;function pKt(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}_Vt(pKt,"copyArray");var fKt=pKt,gKt=Date.now;function mKt(e){var t=0,n=0;return function(){var r=gKt(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}_Vt(mKt,"shortOut");var OKt=mKt;function AKt(e){return function(){return e}}_Vt(AKt,"constant");var yKt=AKt,vKt=function(){try{var e=oKt(Object,"defineProperty");return e({},"",{}),e}catch(jk){}}(),bKt=vKt,xKt=bKt?function(e,t){return bKt(e,"toString",{configurable:!0,enumerable:!1,value:yKt(t),writable:!0})}:MHt,wKt=OKt(xKt);function kKt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}_Vt(kKt,"arrayEach");var SKt=kKt;function TKt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}_Vt(TKt,"baseFindIndex");var $Kt=TKt;function _Kt(e){return e!=e}_Vt(_Kt,"baseIsNaN");var CKt=_Kt;function QKt(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}_Vt(QKt,"strictIndexOf");var PKt=QKt;function EKt(e,t,n){return t==t?PKt(e,t,n):$Kt(e,CKt,n)}_Vt(EKt,"baseIndexOf");var RKt=EKt;function BKt(e,t){return!!(null==e?0:e.length)&&RKt(e,t,0)>-1}_Vt(BKt,"arrayIncludes");var IKt=BKt,LKt=/^(?:0|[1-9]\d*)$/;function DKt(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&LKt.test(e))&&e>-1&&e%1==0&&e<t}_Vt(DKt,"isIndex");var MKt=DKt;function NKt(e,t,n){"__proto__"==t&&bKt?bKt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}_Vt(NKt,"baseAssignValue");var XKt=NKt;function FKt(e,t){return e===t||e!=e&&t!=t}_Vt(FKt,"eq");var UKt=FKt,zKt=Object.prototype.hasOwnProperty;function qKt(e,t,n){var r=e[t];zKt.call(e,t)&&UKt(r,n)&&(void 0!==n||t in e)||XKt(e,t,n)}_Vt(qKt,"assignValue");var VKt=qKt;function WKt(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?XKt(n,s,l):VKt(n,s,l)}return n}_Vt(WKt,"copyObject");var jKt=WKt,YKt=Math.max;function ZKt(e,t,n){return t=YKt(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=YKt(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),uKt(e,this,s)}}_Vt(ZKt,"overRest");var GKt=ZKt;function HKt(e,t){return wKt(GKt(e,t,MHt),e+"")}_Vt(HKt,"baseRest");var KKt=HKt;function JKt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}_Vt(JKt,"isLength");var eJt=JKt;function tJt(e){return null!=e&&eJt(e.length)&&!XHt(e)}_Vt(tJt,"isArrayLike");var nJt=tJt;function rJt(e,t,n){if(!SHt(n))return!1;var r=typeof t;return!!("number"==r?nJt(n)&&MKt(t,n.length):"string"==r&&t in n)&&UKt(n[t],e)}_Vt(rJt,"isIterateeCall");var iJt=rJt;function oJt(e){return KKt(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&iJt(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t})}_Vt(oJt,"createAssigner");var aJt=oJt,sJt=Object.prototype;function lJt(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||sJt)}_Vt(lJt,"isPrototype");var cJt=lJt;function uJt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}_Vt(uJt,"baseTimes");var hJt=uJt;function dJt(e){return lHt(e)&&"[object Arguments]"==aHt(e)}_Vt(dJt,"baseIsArguments");var pJt=dJt,fJt=Object.prototype,gJt=fJt.hasOwnProperty,mJt=fJt.propertyIsEnumerable,OJt=pJt(function(){return arguments}())?pJt:function(e){return lHt(e)&&gJt.call(e,"callee")&&!mJt.call(e,"callee")};function AJt(){return!1}_Vt(AJt,"stubFalse");var yJt=AJt,vJt="object"==typeof exports&&exports&&!exports.nodeType&&exports,bJt=vJt&&"object"==typeof module&&module&&!module.nodeType&&module,xJt=bJt&&bJt.exports===vJt?jGt.Buffer:void 0,wJt=(xJt?xJt.isBuffer:void 0)||yJt,kJt={};function SJt(e){return lHt(e)&&eJt(e.length)&&!!kJt[aHt(e)]}kJt["[object Float32Array]"]=kJt["[object Float64Array]"]=kJt["[object Int8Array]"]=kJt["[object Int16Array]"]=kJt["[object Int32Array]"]=kJt["[object Uint8Array]"]=kJt["[object Uint8ClampedArray]"]=kJt["[object Uint16Array]"]=kJt["[object Uint32Array]"]=!0,kJt["[object Arguments]"]=kJt["[object Array]"]=kJt["[object ArrayBuffer]"]=kJt["[object Boolean]"]=kJt["[object DataView]"]=kJt["[object Date]"]=kJt["[object Error]"]=kJt["[object Function]"]=kJt["[object Map]"]=kJt["[object Number]"]=kJt["[object Object]"]=kJt["[object RegExp]"]=kJt["[object Set]"]=kJt["[object String]"]=kJt["[object WeakMap]"]=!1,_Vt(SJt,"baseIsTypedArray");var TJt=SJt;function $Jt(e){return function(t){return e(t)}}_Vt($Jt,"baseUnary");var _Jt=$Jt,CJt="object"==typeof exports&&exports&&!exports.nodeType&&exports,QJt=CJt&&"object"==typeof module&&module&&!module.nodeType&&module,PJt=QJt&&QJt.exports===CJt&&VGt.process,EJt=function(){try{var e=QJt&&QJt.require&&QJt.require("util").types;return e||PJt&&PJt.binding&&PJt.binding("util")}catch(jk){}}(),RJt=EJt&&EJt.isTypedArray,BJt=RJt?_Jt(RJt):TJt,IJt=Object.prototype.hasOwnProperty;function LJt(e,t){var n=pHt(e),r=!n&&OJt(e),i=!n&&!r&&wJt(e),o=!n&&!r&&!i&&BJt(e),a=n||r||i||o,s=a?hJt(e.length,String):[],l=s.length;for(var c in e)!t&&!IJt.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||MKt(c,l))||s.push(c);return s}_Vt(LJt,"arrayLikeKeys");var DJt=LJt;function MJt(e,t){return function(n){return e(t(n))}}_Vt(MJt,"overArg");var NJt=MJt,XJt=NJt(Object.keys,Object),FJt=Object.prototype.hasOwnProperty;function UJt(e){if(!cJt(e))return XJt(e);var t=[];for(var n in Object(e))FJt.call(e,n)&&"constructor"!=n&&t.push(n);return t}_Vt(UJt,"baseKeys");var zJt=UJt;function qJt(e){return nJt(e)?DJt(e):zJt(e)}_Vt(qJt,"keys");var VJt=qJt,WJt=Object.prototype.hasOwnProperty,jJt=aJt(function(e,t){if(cJt(t)||nJt(t))jKt(t,VJt(t),e);else for(var n in t)WJt.call(t,n)&&VKt(e,n,t[n])});function YJt(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}_Vt(YJt,"nativeKeysIn");var ZJt=YJt,GJt=Object.prototype.hasOwnProperty;function HJt(e){if(!SHt(e))return ZJt(e);var t=cJt(e),n=[];for(var r in e)("constructor"!=r||!t&&GJt.call(e,r))&&n.push(r);return n}_Vt(HJt,"baseKeysIn");var KJt=HJt;function JJt(e){return nJt(e)?DJt(e,!0):KJt(e)}_Vt(JJt,"keysIn");var e0t=JJt,t0t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n0t=/^\w*$/;function r0t(e,t){if(pHt(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!uHt(e))||(n0t.test(e)||!t0t.test(e)||null!=t&&e in Object(t))}_Vt(r0t,"isKey");var i0t=r0t,o0t=oKt(Object,"create");function a0t(){this.__data__=o0t?o0t(null):{},this.size=0}_Vt(a0t,"hashClear");var s0t=a0t;function l0t(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}_Vt(l0t,"hashDelete");var c0t=l0t,u0t=Object.prototype.hasOwnProperty;function h0t(e){var t=this.__data__;if(o0t){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return u0t.call(t,e)?t[e]:void 0}_Vt(h0t,"hashGet");var d0t=h0t,p0t=Object.prototype.hasOwnProperty;function f0t(e){var t=this.__data__;return o0t?void 0!==t[e]:p0t.call(t,e)}_Vt(f0t,"hashHas");var g0t=f0t;function m0t(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=o0t&&void 0===t?"__lodash_hash_undefined__":t,this}_Vt(m0t,"hashSet");var O0t=m0t;function A0t(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_Vt(A0t,"Hash"),A0t.prototype.clear=s0t,A0t.prototype.delete=c0t,A0t.prototype.get=d0t,A0t.prototype.has=g0t,A0t.prototype.set=O0t;var y0t=A0t;function v0t(){this.__data__=[],this.size=0}_Vt(v0t,"listCacheClear");var b0t=v0t;function x0t(e,t){for(var n=e.length;n--;)if(UKt(e[n][0],t))return n;return-1}_Vt(x0t,"assocIndexOf");var w0t=x0t,k0t=Array.prototype.splice;function S0t(e){var t=this.__data__,n=w0t(t,e);return!(n<0)&&(n==t.length-1?t.pop():k0t.call(t,n,1),--this.size,!0)}_Vt(S0t,"listCacheDelete");var T0t=S0t;function $0t(e){var t=this.__data__,n=w0t(t,e);return n<0?void 0:t[n][1]}_Vt($0t,"listCacheGet");var _0t=$0t;function C0t(e){return w0t(this.__data__,e)>-1}_Vt(C0t,"listCacheHas");var Q0t=C0t;function P0t(e,t){var n=this.__data__,r=w0t(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}_Vt(P0t,"listCacheSet");var E0t=P0t;function R0t(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_Vt(R0t,"ListCache"),R0t.prototype.clear=b0t,R0t.prototype.delete=T0t,R0t.prototype.get=_0t,R0t.prototype.has=Q0t,R0t.prototype.set=E0t;var B0t=R0t,I0t=oKt(jGt,"Map");function L0t(){this.size=0,this.__data__={hash:new y0t,map:new(I0t||B0t),string:new y0t}}_Vt(L0t,"mapCacheClear");var D0t=L0t;function M0t(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}_Vt(M0t,"isKeyable");var N0t=M0t;function X0t(e,t){var n=e.__data__;return N0t(t)?n["string"==typeof t?"string":"hash"]:n.map}_Vt(X0t,"getMapData");var F0t=X0t;function U0t(e){var t=F0t(this,e).delete(e);return this.size-=t?1:0,t}_Vt(U0t,"mapCacheDelete");var z0t=U0t;function q0t(e){return F0t(this,e).get(e)}_Vt(q0t,"mapCacheGet");var V0t=q0t;function W0t(e){return F0t(this,e).has(e)}_Vt(W0t,"mapCacheHas");var j0t=W0t;function Y0t(e,t){var n=F0t(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}_Vt(Y0t,"mapCacheSet");var Z0t=Y0t;function G0t(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_Vt(G0t,"MapCache"),G0t.prototype.clear=D0t,G0t.prototype.delete=z0t,G0t.prototype.get=V0t,G0t.prototype.has=j0t,G0t.prototype.set=Z0t;var H0t=G0t;function K0t(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=_Vt(function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a},"memoized");return n.cache=new(K0t.Cache||H0t),n}_Vt(K0t,"memoize"),K0t.Cache=H0t;var J0t=K0t;function e1t(e){var t=J0t(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}_Vt(e1t,"memoizeCapped");var t1t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n1t=/\\(\\)?/g,r1t=e1t(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(t1t,function(e,n,r,i){t.push(r?i.replace(n1t,"$1"):n||e)}),t});function i1t(e){return null==e?"":OHt(e)}_Vt(i1t,"toString");var o1t=i1t;function a1t(e,t){return pHt(e)?e:i0t(e,t)?[e]:r1t(o1t(e))}_Vt(a1t,"castPath");var s1t=a1t;function l1t(e){if("string"==typeof e||uHt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}_Vt(l1t,"toKey");var c1t=l1t;function u1t(e,t){for(var n=0,r=(t=s1t(t,e)).length;null!=e&&n<r;)e=e[c1t(t[n++])];return n&&n==r?e:void 0}_Vt(u1t,"baseGet");var h1t=u1t;function d1t(e,t,n){var r=null==e?void 0:h1t(e,t);return void 0===r?n:r}_Vt(d1t,"get");var p1t=d1t;function f1t(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}_Vt(f1t,"arrayPush");var g1t=f1t,m1t=YGt?YGt.isConcatSpreadable:void 0;function O1t(e){return pHt(e)||OJt(e)||!!(m1t&&e&&e[m1t])}_Vt(O1t,"isFlattenable");var A1t=O1t;function y1t(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=A1t),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?y1t(s,t-1,n,r,i):g1t(i,s):r||(i[i.length]=s)}return i}_Vt(y1t,"baseFlatten");var v1t=y1t;function b1t(e){return(null==e?0:e.length)?v1t(e,1):[]}_Vt(b1t,"flatten");var x1t=b1t,w1t=NJt(Object.getPrototypeOf,Object);function k1t(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}_Vt(k1t,"baseSlice");var S1t=k1t;function T1t(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}_Vt(T1t,"arrayReduce");var $1t=T1t;function _1t(){this.__data__=new B0t,this.size=0}_Vt(_1t,"stackClear");var C1t=_1t;function Q1t(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}_Vt(Q1t,"stackDelete");var P1t=Q1t;function E1t(e){return this.__data__.get(e)}_Vt(E1t,"stackGet");var R1t=E1t;function B1t(e){return this.__data__.has(e)}_Vt(B1t,"stackHas");var I1t=B1t;function L1t(e,t){var n=this.__data__;if(n instanceof B0t){var r=n.__data__;if(!I0t||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new H0t(r)}return n.set(e,t),this.size=n.size,this}_Vt(L1t,"stackSet");var D1t=L1t;function M1t(e){var t=this.__data__=new B0t(e);this.size=t.size}_Vt(M1t,"Stack"),M1t.prototype.clear=C1t,M1t.prototype.delete=P1t,M1t.prototype.get=R1t,M1t.prototype.has=I1t,M1t.prototype.set=D1t;var N1t=M1t;function X1t(e,t){return e&&jKt(t,VJt(t),e)}_Vt(X1t,"baseAssign");var F1t=X1t;function U1t(e,t){return e&&jKt(t,e0t(t),e)}_Vt(U1t,"baseAssignIn");var z1t=U1t,q1t="object"==typeof exports&&exports&&!exports.nodeType&&exports,V1t=q1t&&"object"==typeof module&&module&&!module.nodeType&&module,W1t=V1t&&V1t.exports===q1t?jGt.Buffer:void 0,j1t=W1t?W1t.allocUnsafe:void 0;function Y1t(e,t){if(t)return e.slice();var n=e.length,r=j1t?j1t(n):new e.constructor(n);return e.copy(r),r}_Vt(Y1t,"cloneBuffer");var Z1t=Y1t;function G1t(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}_Vt(G1t,"arrayFilter");var H1t=G1t;function K1t(){return[]}_Vt(K1t,"stubArray");var J1t=K1t,e2t=Object.prototype.propertyIsEnumerable,t2t=Object.getOwnPropertySymbols,n2t=t2t?function(e){return null==e?[]:(e=Object(e),H1t(t2t(e),function(t){return e2t.call(e,t)}))}:J1t;function r2t(e,t){return jKt(e,n2t(e),t)}_Vt(r2t,"copySymbols");var i2t=r2t,o2t=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)g1t(t,n2t(e)),e=w1t(e);return t}:J1t;function a2t(e,t){return jKt(e,o2t(e),t)}_Vt(a2t,"copySymbolsIn");var s2t=a2t;function l2t(e,t,n){var r=t(e);return pHt(e)?r:g1t(r,n(e))}_Vt(l2t,"baseGetAllKeys");var c2t=l2t;function u2t(e){return c2t(e,VJt,n2t)}_Vt(u2t,"getAllKeys");var h2t=u2t;function d2t(e){return c2t(e,e0t,o2t)}_Vt(d2t,"getAllKeysIn");var p2t=d2t,f2t=oKt(jGt,"DataView"),g2t=oKt(jGt,"Promise"),m2t=oKt(jGt,"Set"),O2t="[object Map]",A2t="[object Promise]",y2t="[object Set]",v2t="[object WeakMap]",b2t="[object DataView]",x2t=jHt(f2t),w2t=jHt(I0t),k2t=jHt(g2t),S2t=jHt(m2t),T2t=jHt(aKt),$2t=aHt;(f2t&&$2t(new f2t(new ArrayBuffer(1)))!=b2t||I0t&&$2t(new I0t)!=O2t||g2t&&$2t(g2t.resolve())!=A2t||m2t&&$2t(new m2t)!=y2t||aKt&&$2t(new aKt)!=v2t)&&($2t=_Vt(function(e){var t=aHt(e),n="[object Object]"==t?e.constructor:void 0,r=n?jHt(n):"";if(r)switch(r){case x2t:return b2t;case w2t:return O2t;case k2t:return A2t;case S2t:return y2t;case T2t:return v2t}return t},"getTag"));var _2t=$2t,C2t=Object.prototype.hasOwnProperty;function Q2t(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&C2t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}_Vt(Q2t,"initCloneArray");var P2t=Q2t,E2t=jGt.Uint8Array;function R2t(e){var t=new e.constructor(e.byteLength);return new E2t(t).set(new E2t(e)),t}_Vt(R2t,"cloneArrayBuffer");var B2t=R2t;function I2t(e,t){var n=t?B2t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}_Vt(I2t,"cloneDataView");var L2t=I2t,D2t=/\w*$/;function M2t(e){var t=new e.constructor(e.source,D2t.exec(e));return t.lastIndex=e.lastIndex,t}_Vt(M2t,"cloneRegExp");var N2t=M2t,X2t=YGt?YGt.prototype:void 0,F2t=X2t?X2t.valueOf:void 0;function U2t(e){return F2t?Object(F2t.call(e)):{}}_Vt(U2t,"cloneSymbol");var z2t=U2t;function q2t(e,t){var n=t?B2t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}_Vt(q2t,"cloneTypedArray");var V2t=q2t;function W2t(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return B2t(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return L2t(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return V2t(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return N2t(e);case"[object Symbol]":return z2t(e)}}_Vt(W2t,"initCloneByTag");var j2t=W2t;function Y2t(e){return"function"!=typeof e.constructor||cJt(e)?{}:lKt(w1t(e))}_Vt(Y2t,"initCloneObject");var Z2t=Y2t;function G2t(e){return lHt(e)&&"[object Map]"==_2t(e)}_Vt(G2t,"baseIsMap");var H2t=G2t,K2t=EJt&&EJt.isMap,J2t=K2t?_Jt(K2t):H2t;function e5t(e){return lHt(e)&&"[object Set]"==_2t(e)}_Vt(e5t,"baseIsSet");var t5t=e5t,n5t=EJt&&EJt.isSet,r5t=n5t?_Jt(n5t):t5t,i5t="[object Arguments]",o5t="[object Function]",a5t="[object Object]",s5t={};function l5t(e,t,n,r,i,o){var a,s=1&t,l=2&t,c=4&t;if(n&&(a=i?n(e,r,i,o):n(e)),void 0!==a)return a;if(!SHt(e))return e;var u=pHt(e);if(u){if(a=P2t(e),!s)return fKt(e,a)}else{var h=_2t(e),d=h==o5t||"[object GeneratorFunction]"==h;if(wJt(e))return Z1t(e,s);if(h==a5t||h==i5t||d&&!i){if(a=l||d?{}:Z2t(e),!s)return l?s2t(e,z1t(a,e)):i2t(e,F1t(a,e))}else{if(!s5t[h])return i?e:{};a=j2t(e,h,s)}}o||(o=new N1t);var p=o.get(e);if(p)return p;o.set(e,a),r5t(e)?e.forEach(function(r){a.add(l5t(r,t,n,r,e,o))}):J2t(e)&&e.forEach(function(r,i){a.set(i,l5t(r,t,n,i,e,o))});var f=u?void 0:(c?l?p2t:h2t:l?e0t:VJt)(e);return SKt(f||e,function(r,i){f&&(r=e[i=r]),VKt(a,i,l5t(r,t,n,i,e,o))}),a}s5t[i5t]=s5t["[object Array]"]=s5t["[object ArrayBuffer]"]=s5t["[object DataView]"]=s5t["[object Boolean]"]=s5t["[object Date]"]=s5t["[object Float32Array]"]=s5t["[object Float64Array]"]=s5t["[object Int8Array]"]=s5t["[object Int16Array]"]=s5t["[object Int32Array]"]=s5t["[object Map]"]=s5t["[object Number]"]=s5t[a5t]=s5t["[object RegExp]"]=s5t["[object Set]"]=s5t["[object String]"]=s5t["[object Symbol]"]=s5t["[object Uint8Array]"]=s5t["[object Uint8ClampedArray]"]=s5t["[object Uint16Array]"]=s5t["[object Uint32Array]"]=!0,s5t["[object Error]"]=s5t[o5t]=s5t["[object WeakMap]"]=!1,_Vt(l5t,"baseClone");var c5t=l5t;function u5t(e){return c5t(e,4)}_Vt(u5t,"clone");var h5t=u5t;function d5t(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i}_Vt(d5t,"compact");var p5t=d5t;function f5t(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}_Vt(f5t,"setCacheAdd");var g5t=f5t;function m5t(e){return this.__data__.has(e)}_Vt(m5t,"setCacheHas");var O5t=m5t;function A5t(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new H0t;++t<n;)this.add(e[t])}_Vt(A5t,"SetCache"),A5t.prototype.add=A5t.prototype.push=g5t,A5t.prototype.has=O5t;var y5t=A5t;function v5t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}_Vt(v5t,"arraySome");var b5t=v5t;function x5t(e,t){return e.has(t)}_Vt(x5t,"cacheHas");var w5t=x5t;function k5t(e,t,n,r,i,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var h=-1,d=!0,p=2&n?new y5t:void 0;for(o.set(e,t),o.set(t,e);++h<s;){var f=e[h],g=t[h];if(r)var m=a?r(g,f,h,t,e,o):r(f,g,h,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!b5t(t,function(e,t){if(!w5t(p,t)&&(f===e||i(f,e,n,r,o)))return p.push(t)})){d=!1;break}}else if(f!==g&&!i(f,g,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d}_Vt(k5t,"equalArrays");var S5t=k5t;function T5t(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}_Vt(T5t,"mapToArray");var $5t=T5t;function _5t(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}_Vt(_5t,"setToArray");var C5t=_5t,Q5t=YGt?YGt.prototype:void 0,P5t=Q5t?Q5t.valueOf:void 0;function E5t(e,t,n,r,i,o,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new E2t(e),new E2t(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return UKt(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=$5t;case"[object Set]":var l=1&r;if(s||(s=C5t),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=S5t(s(e),s(t),r,i,o,a);return a.delete(e),u;case"[object Symbol]":if(P5t)return P5t.call(e)==P5t.call(t)}return!1}_Vt(E5t,"equalByTag");var R5t=E5t,B5t=Object.prototype.hasOwnProperty;function I5t(e,t,n,r,i,o){var a=1&n,s=h2t(e),l=s.length;if(l!=h2t(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:B5t.call(t,u)))return!1}var h=o.get(e),d=o.get(t);if(h&&d)return h==t&&d==e;var p=!0;o.set(e,t),o.set(t,e);for(var f=a;++c<l;){var g=e[u=s[c]],m=t[u];if(r)var O=a?r(m,g,u,t,e,o):r(g,m,u,e,t,o);if(!(void 0===O?g===m||i(g,m,n,r,o):O)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var A=e.constructor,y=t.constructor;A==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof A&&A instanceof A&&"function"==typeof y&&y instanceof y||(p=!1)}return o.delete(e),o.delete(t),p}_Vt(I5t,"equalObjects");var L5t=I5t,D5t="[object Arguments]",M5t="[object Array]",N5t="[object Object]",X5t=Object.prototype.hasOwnProperty;function F5t(e,t,n,r,i,o){var a=pHt(e),s=pHt(t),l=a?M5t:_2t(e),c=s?M5t:_2t(t),u=(l=l==D5t?N5t:l)==N5t,h=(c=c==D5t?N5t:c)==N5t,d=l==c;if(d&&wJt(e)){if(!wJt(t))return!1;a=!0,u=!1}if(d&&!u)return o||(o=new N1t),a||BJt(e)?S5t(e,t,n,r,i,o):R5t(e,t,l,n,r,i,o);if(!(1&n)){var p=u&&X5t.call(e,"__wrapped__"),f=h&&X5t.call(t,"__wrapped__");if(p||f){var g=p?e.value():e,m=f?t.value():t;return o||(o=new N1t),i(g,m,n,r,o)}}return!!d&&(o||(o=new N1t),L5t(e,t,n,r,i,o))}_Vt(F5t,"baseIsEqualDeep");var U5t=F5t;function z5t(e,t,n,r,i){return e===t||(null==e||null==t||!lHt(e)&&!lHt(t)?e!=e&&t!=t:U5t(e,t,n,r,z5t,i))}_Vt(z5t,"baseIsEqual");var q5t=z5t;function V5t(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=n[i])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var h=new N1t;if(r)var d=r(c,u,l,e,t,h);if(!(void 0===d?q5t(u,c,3,r,h):d))return!1}}return!0}_Vt(V5t,"baseIsMatch");var W5t=V5t;function j5t(e){return e==e&&!SHt(e)}_Vt(j5t,"isStrictComparable");var Y5t=j5t;function Z5t(e){for(var t=VJt(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Y5t(i)]}return t}_Vt(Z5t,"getMatchData");var G5t=Z5t;function H5t(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}_Vt(H5t,"matchesStrictComparable");var K5t=H5t;function J5t(e){var t=G5t(e);return 1==t.length&&t[0][2]?K5t(t[0][0],t[0][1]):function(n){return n===e||W5t(n,e,t)}}_Vt(J5t,"baseMatches");var e4t=J5t;function t4t(e,t){return null!=e&&t in Object(e)}_Vt(t4t,"baseHasIn");var n4t=t4t;function r4t(e,t,n){for(var r=-1,i=(t=s1t(t,e)).length,o=!1;++r<i;){var a=c1t(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&eJt(i)&&MKt(a,i)&&(pHt(e)||OJt(e))}_Vt(r4t,"hasPath");var i4t=r4t;function o4t(e,t){return null!=e&&i4t(e,t,n4t)}_Vt(o4t,"hasIn");var a4t=o4t;function s4t(e,t){return i0t(e)&&Y5t(t)?K5t(c1t(e),t):function(n){var r=p1t(n,e);return void 0===r&&r===t?a4t(n,e):q5t(t,r,3)}}_Vt(s4t,"baseMatchesProperty");var l4t=s4t;function c4t(e){return function(t){return null==t?void 0:t[e]}}_Vt(c4t,"baseProperty");var u4t=c4t;function h4t(e){return function(t){return h1t(t,e)}}_Vt(h4t,"basePropertyDeep");var d4t=h4t;function p4t(e){return i0t(e)?u4t(c1t(e)):d4t(e)}_Vt(p4t,"property");var f4t=p4t;function g4t(e){return"function"==typeof e?e:null==e?MHt:"object"==typeof e?pHt(e)?l4t(e[0],e[1]):e4t(e):f4t(e)}_Vt(g4t,"baseIteratee");var m4t=g4t;function O4t(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}_Vt(O4t,"arrayAggregator");var A4t=O4t;function y4t(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}_Vt(y4t,"createBaseFor");var v4t=y4t();function b4t(e,t){return e&&v4t(e,t,VJt)}_Vt(b4t,"baseForOwn");var x4t=b4t;function w4t(e,t){return function(n,r){if(null==n)return n;if(!nJt(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}_Vt(w4t,"createBaseEach");var k4t=w4t(x4t);function S4t(e,t,n,r){return k4t(e,function(e,i,o){t(r,e,n(e),o)}),r}_Vt(S4t,"baseAggregator");var T4t=S4t;function $4t(e,t){return function(n,r){var i=pHt(n)?A4t:T4t,o=t?t():{};return i(n,e,m4t(r),o)}}_Vt($4t,"createAggregator");var _4t=$4t,C4t=Object.prototype,Q4t=C4t.hasOwnProperty,P4t=KKt(function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&iJt(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],a=e0t(o),s=-1,l=a.length;++s<l;){var c=a[s],u=e[c];(void 0===u||UKt(u,C4t[c])&&!Q4t.call(e,c))&&(e[c]=o[c])}return e});function E4t(e){return lHt(e)&&nJt(e)}_Vt(E4t,"isArrayLikeObject");var R4t=E4t;function B4t(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}_Vt(B4t,"arrayIncludesWith");var I4t=B4t;function L4t(e,t,n,r){var i=-1,o=IKt,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=dHt(t,_Jt(n))),r?(o=I4t,a=!1):t.length>=200&&(o=w5t,a=!1,t=new y5t(t));e:for(;++i<s;){var u=e[i],h=null==n?u:n(u);if(u=r||0!==u?u:0,a&&h==h){for(var d=c;d--;)if(t[d]===h)continue e;l.push(u)}else o(t,h,r)||l.push(u)}return l}_Vt(L4t,"baseDifference");var D4t=L4t,M4t=KKt(function(e,t){return R4t(e)?D4t(e,v1t(t,1,R4t,!0)):[]});function N4t(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}_Vt(N4t,"last");var X4t=N4t;function F4t(e,t,n){var r=null==e?0:e.length;return r?(t=n||void 0===t?1:LHt(t),S1t(e,t<0?0:t,r)):[]}_Vt(F4t,"drop");var U4t=F4t;function z4t(e,t,n){var r=null==e?0:e.length;return r?(t=n||void 0===t?1:LHt(t),S1t(e,0,(t=r-t)<0?0:t)):[]}_Vt(z4t,"dropRight");var q4t=z4t;function V4t(e){return"function"==typeof e?e:MHt}_Vt(V4t,"castFunction");var W4t=V4t;function j4t(e,t){return(pHt(e)?SKt:k4t)(e,W4t(t))}_Vt(j4t,"forEach");var Y4t=j4t;function Z4t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}_Vt(Z4t,"arrayEvery");var G4t=Z4t;function H4t(e,t){var n=!0;return k4t(e,function(e,r,i){return n=!!t(e,r,i)}),n}_Vt(H4t,"baseEvery");var K4t=H4t;function J4t(e,t,n){var r=pHt(e)?G4t:K4t;return n&&iJt(e,t,n)&&(t=void 0),r(e,m4t(t))}_Vt(J4t,"every");var e3t=J4t;function t3t(e,t){var n=[];return k4t(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}_Vt(t3t,"baseFilter");var n3t=t3t;function r3t(e,t){return(pHt(e)?H1t:n3t)(e,m4t(t))}_Vt(r3t,"filter");var i3t=r3t;function o3t(e){return function(t,n,r){var i=Object(t);if(!nJt(t)){var o=m4t(n);t=VJt(t),n=_Vt(function(e){return o(i[e],e,i)},"predicate")}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}}_Vt(o3t,"createFind");var a3t=o3t,s3t=Math.max;function l3t(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:LHt(n);return i<0&&(i=s3t(r+i,0)),$Kt(e,m4t(t),i)}_Vt(l3t,"findIndex");var c3t=a3t(l3t);function u3t(e){return e&&e.length?e[0]:void 0}_Vt(u3t,"head");var h3t=u3t;function d3t(e,t){var n=-1,r=nJt(e)?Array(e.length):[];return k4t(e,function(e,i,o){r[++n]=t(e,i,o)}),r}_Vt(d3t,"baseMap");var p3t=d3t;function f3t(e,t){return(pHt(e)?dHt:p3t)(e,m4t(t))}_Vt(f3t,"map");var g3t=f3t;function m3t(e,t){return v1t(g3t(e,t),1)}_Vt(m3t,"flatMap");var O3t=m3t,A3t=Object.prototype.hasOwnProperty,y3t=_4t(function(e,t,n){A3t.call(e,n)?e[n].push(t):XKt(e,n,[t])}),v3t=Object.prototype.hasOwnProperty;function b3t(e,t){return null!=e&&v3t.call(e,t)}_Vt(b3t,"baseHas");var x3t=b3t;function w3t(e,t){return null!=e&&i4t(e,t,x3t)}_Vt(w3t,"has");var k3t=w3t;function S3t(e){return"string"==typeof e||!pHt(e)&&lHt(e)&&"[object String]"==aHt(e)}_Vt(S3t,"isString");var T3t=S3t;function $3t(e,t){return dHt(t,function(t){return e[t]})}_Vt($3t,"baseValues");var _3t=$3t;function C3t(e){return null==e?[]:_3t(e,VJt(e))}_Vt(C3t,"values");var Q3t=C3t,P3t=Math.max;function E3t(e,t,n,r){e=nJt(e)?e:Q3t(e),n=n&&!r?LHt(n):0;var i=e.length;return n<0&&(n=P3t(i+n,0)),T3t(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&RKt(e,t,n)>-1}_Vt(E3t,"includes");var R3t=E3t,B3t=Math.max;function I3t(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:LHt(n);return i<0&&(i=B3t(r+i,0)),RKt(e,t,i)}_Vt(I3t,"indexOf");var L3t=I3t,D3t=Object.prototype.hasOwnProperty;function M3t(e){if(null==e)return!0;if(nJt(e)&&(pHt(e)||"string"==typeof e||"function"==typeof e.splice||wJt(e)||BJt(e)||OJt(e)))return!e.length;var t=_2t(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(cJt(e))return!zJt(e).length;for(var n in e)if(D3t.call(e,n))return!1;return!0}_Vt(M3t,"isEmpty");var N3t=M3t;function X3t(e){return lHt(e)&&"[object RegExp]"==aHt(e)}_Vt(X3t,"baseIsRegExp");var F3t=X3t,U3t=EJt&&EJt.isRegExp,z3t=U3t?_Jt(U3t):F3t;function q3t(e){return void 0===e}_Vt(q3t,"isUndefined");var V3t=q3t;function W3t(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}_Vt(W3t,"negate");var j3t=W3t;function Y3t(e,t,n,r){if(!SHt(e))return e;for(var i=-1,o=(t=s1t(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var l=c1t(t[i]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=a){var u=s[l];void 0===(c=r?r(u,l,s):void 0)&&(c=SHt(u)?u:MKt(t[i+1])?[]:{})}VKt(s,l,c),s=s[l]}return e}_Vt(Y3t,"baseSet");var Z3t=Y3t;function G3t(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=h1t(e,a);n(s,a)&&Z3t(o,s1t(a,e),s)}return o}_Vt(G3t,"basePickBy");var H3t=G3t;function K3t(e,t){if(null==e)return{};var n=dHt(p2t(e),function(e){return[e]});return t=m4t(t),H3t(e,n,function(e,n){return t(e,n[0])})}_Vt(K3t,"pickBy");var J3t=K3t;function e6t(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}_Vt(e6t,"baseReduce");var t6t=e6t;function n6t(e,t,n){var r=pHt(e)?$1t:t6t,i=arguments.length<3;return r(e,m4t(t),n,i,k4t)}_Vt(n6t,"reduce");var r6t=n6t;function i6t(e,t){return(pHt(e)?H1t:n3t)(e,j3t(m4t(t)))}_Vt(i6t,"reject");var o6t=i6t;function a6t(e,t){var n;return k4t(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}_Vt(a6t,"baseSome");var s6t=a6t;function l6t(e,t,n){var r=pHt(e)?b5t:s6t;return n&&iJt(e,t,n)&&(t=void 0),r(e,m4t(t))}_Vt(l6t,"some");var c6t=l6t,u6t=m2t&&1/C5t(new m2t([,-0]))[1]==1/0?function(e){return new m2t(e)}:dKt;function h6t(e,t,n){var r=-1,i=IKt,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=I4t;else if(o>=200){var c=t?null:u6t(e);if(c)return C5t(c);a=!1,i=w5t,l=new y5t}else l=t?[]:s;e:for(;++r<o;){var u=e[r],h=t?t(u):u;if(u=n||0!==u?u:0,a&&h==h){for(var d=l.length;d--;)if(l[d]===h)continue e;t&&l.push(h),s.push(u)}else i(l,h,n)||(l!==s&&l.push(h),s.push(u))}return s}_Vt(h6t,"baseUniq");var d6t=h6t;function p6t(e){return e&&e.length?d6t(e):[]}_Vt(p6t,"uniq");var f6t=p6t;function g6t(e){console&&console.error}function m6t(e){console&&console.warn}function O6t(e){const t=(new Date).getTime(),n=e();return{time:(new Date).getTime()-t,value:n}}function A6t(e){function t(){}_Vt(t,"FakeConstructor"),t.prototype=e;const n=new t;function r(){return typeof n.bar}return _Vt(r,"fakeAccess"),r(),r(),e}function y6t(e){return v6t(e)?e.LABEL:e.name}function v6t(e){return T3t(e.LABEL)&&""!==e.LABEL}_Vt(g6t,"PRINT_ERROR"),_Vt(m6t,"PRINT_WARNING"),_Vt(O6t,"timer"),_Vt(A6t,"toFastProperties"),_Vt(y6t,"tokenLabel"),_Vt(v6t,"hasTokenLabel");var b6t=(_Vt(R=class{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),Y4t(this.definition,t=>{t.accept(e)})}},"AbstractProduction"),R),x6t=(_Vt(B=class extends b6t{constructor(e){super([]),this.idx=1,jJt(this,J3t(e,e=>void 0!==e))}set definition(e){}get definition(){return void 0!==this.referencedRule?this.referencedRule.definition:[]}accept(e){e.visit(this)}},"NonTerminal"),B),w6t=(_Vt(I=class extends b6t{constructor(e){super(e.definition),this.orgText="",jJt(this,J3t(e,e=>void 0!==e))}},"Rule"),I),k6t=(_Vt(L=class extends b6t{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,jJt(this,J3t(e,e=>void 0!==e))}},"Alternative"),L),S6t=(_Vt(D=class extends b6t{constructor(e){super(e.definition),this.idx=1,jJt(this,J3t(e,e=>void 0!==e))}},"Option"),D),T6t=(_Vt(M=class extends b6t{constructor(e){super(e.definition),this.idx=1,jJt(this,J3t(e,e=>void 0!==e))}},"RepetitionMandatory"),M),$6t=(_Vt(N=class extends b6t{constructor(e){super(e.definition),this.idx=1,jJt(this,J3t(e,e=>void 0!==e))}},"RepetitionMandatoryWithSeparator"),N),_6t=(_Vt(X=class extends b6t{constructor(e){super(e.definition),this.idx=1,jJt(this,J3t(e,e=>void 0!==e))}},"Repetition"),X),C6t=(_Vt(F=class extends b6t{constructor(e){super(e.definition),this.idx=1,jJt(this,J3t(e,e=>void 0!==e))}},"RepetitionWithSeparator"),F),Q6t=(_Vt(U=class extends b6t{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,jJt(this,J3t(e,e=>void 0!==e))}},"Alternation"),U),P6t=(_Vt(z=class{constructor(e){this.idx=1,jJt(this,J3t(e,e=>void 0!==e))}accept(e){e.visit(this)}},"Terminal"),z);function E6t(e){return g3t(e,R6t)}function R6t(e){function t(e){return g3t(e,R6t)}if(_Vt(t,"convertDefinition"),e instanceof x6t){const t={type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};return T3t(e.label)&&(t.label=e.label),t}if(e instanceof k6t)return{type:"Alternative",definition:t(e.definition)};if(e instanceof S6t)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof T6t)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof $6t)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:R6t(new P6t({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof C6t)return{type:"RepetitionWithSeparator",idx:e.idx,separator:R6t(new P6t({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof _6t)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof Q6t)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof P6t){const t={type:"Terminal",name:e.terminalType.name,label:y6t(e.terminalType),idx:e.idx};T3t(e.label)&&(t.terminalLabel=e.label);const n=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(t.pattern=z3t(n)?n.source:n),t}if(e instanceof w6t)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}_Vt(E6t,"serializeGrammar"),_Vt(R6t,"serializeProduction");var B6t=(_Vt(q=class{visit(e){const t=e;switch(t.constructor){case x6t:return this.visitNonTerminal(t);case k6t:return this.visitAlternative(t);case S6t:return this.visitOption(t);case T6t:return this.visitRepetitionMandatory(t);case $6t:return this.visitRepetitionMandatoryWithSeparator(t);case C6t:return this.visitRepetitionWithSeparator(t);case _6t:return this.visitRepetition(t);case Q6t:return this.visitAlternation(t);case P6t:return this.visitTerminal(t);case w6t:return this.visitRule(t);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}},"GAstVisitor"),q);function I6t(e){return e instanceof k6t||e instanceof S6t||e instanceof _6t||e instanceof T6t||e instanceof $6t||e instanceof C6t||e instanceof P6t||e instanceof w6t}function L6t(e,t=[]){return!!(e instanceof S6t||e instanceof _6t||e instanceof C6t)||(e instanceof Q6t?c6t(e.definition,e=>L6t(e,t)):!(e instanceof x6t&&R3t(t,e))&&(e instanceof b6t&&(e instanceof x6t&&t.push(e),e3t(e.definition,e=>L6t(e,t)))))}function D6t(e){return e instanceof Q6t}function M6t(e){if(e instanceof x6t)return"SUBRULE";if(e instanceof S6t)return"OPTION";if(e instanceof Q6t)return"OR";if(e instanceof T6t)return"AT_LEAST_ONE";if(e instanceof $6t)return"AT_LEAST_ONE_SEP";if(e instanceof C6t)return"MANY_SEP";if(e instanceof _6t)return"MANY";if(e instanceof P6t)return"CONSUME";throw Error("non exhaustive match")}_Vt(I6t,"isSequenceProd"),_Vt(L6t,"isOptionalProd"),_Vt(D6t,"isBranchingProd"),_Vt(M6t,"getProductionDslName");var N6t=(_Vt(V=class{walk(e,t=[]){Y4t(e.definition,(n,r)=>{const i=U4t(e.definition,r+1);if(n instanceof x6t)this.walkProdRef(n,i,t);else if(n instanceof P6t)this.walkTerminal(n,i,t);else if(n instanceof k6t)this.walkFlat(n,i,t);else if(n instanceof S6t)this.walkOption(n,i,t);else if(n instanceof T6t)this.walkAtLeastOne(n,i,t);else if(n instanceof $6t)this.walkAtLeastOneSep(n,i,t);else if(n instanceof C6t)this.walkManySep(n,i,t);else if(n instanceof _6t)this.walkMany(n,i,t);else{if(!(n instanceof Q6t))throw Error("non exhaustive match");this.walkOr(n,i,t)}})}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){const r=t.concat(n);this.walk(e,r)}walkOption(e,t,n){const r=t.concat(n);this.walk(e,r)}walkAtLeastOne(e,t,n){const r=[new S6t({definition:e.definition})].concat(t,n);this.walk(e,r)}walkAtLeastOneSep(e,t,n){const r=X6t(e,t,n);this.walk(e,r)}walkMany(e,t,n){const r=[new S6t({definition:e.definition})].concat(t,n);this.walk(e,r)}walkManySep(e,t,n){const r=X6t(e,t,n);this.walk(e,r)}walkOr(e,t,n){const r=t.concat(n);Y4t(e.definition,e=>{const t=new k6t({definition:[e]});this.walk(t,r)})}},"RestWalker"),V);function X6t(e,t,n){return[new S6t({definition:[new P6t({terminalType:e.separator})].concat(e.definition)})].concat(t,n)}function F6t(e){if(e instanceof x6t)return F6t(e.referencedRule);if(e instanceof P6t)return q6t(e);if(I6t(e))return U6t(e);if(D6t(e))return z6t(e);throw Error("non exhaustive match")}function U6t(e){let t=[];const n=e.definition;let r,i=0,o=n.length>i,a=!0;for(;o&&a;)r=n[i],a=L6t(r),t=t.concat(F6t(r)),i+=1,o=n.length>i;return f6t(t)}function z6t(e){const t=g3t(e.definition,e=>F6t(e));return f6t(x1t(t))}function q6t(e){return[e.terminalType]}_Vt(X6t,"restForRepetitionWithSeparator"),_Vt(F6t,"first"),_Vt(U6t,"firstForSequence"),_Vt(z6t,"firstForBranching"),_Vt(q6t,"firstForTerminal");var V6t="_~IN~_",W6t=(_Vt(W=class extends N6t{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){const r=Y6t(e.referencedRule,e.idx)+this.topProd.name,i=t.concat(n),o=F6t(new k6t({definition:i}));this.follows[r]=o}},"ResyncFollowsWalker"),W);function j6t(e){const t={};return Y4t(e,e=>{const n=new W6t(e).startWalking();jJt(t,n)}),t}function Y6t(e,t){return e.name+t+V6t}_Vt(j6t,"computeAllProdsFollows"),_Vt(Y6t,"buildBetweenProdsFollowPrefix");var Z6t={},G6t=new jZt;function H6t(e){const t=e.toString();if(Z6t.hasOwnProperty(t))return Z6t[t];{const e=G6t.pattern(t);return Z6t[t]=e,e}}function K6t(){Z6t={}}_Vt(H6t,"getRegExpAst"),_Vt(K6t,"clearRegExpParserCache");var J6t="Complement Sets are not supported for first char optimization";function e7t(e,t=!1){try{const t=H6t(e);return t7t(t.value,{},t.flags.ignoreCase)}catch(jk){if(jk.message===J6t)t&&m6t(e.toString());else{let n="";t&&(n="\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."),g6t(e.toString())}}return[]}function t7t(e,t,n){switch(e.type){case"Disjunction":for(let i=0;i<e.value.length;i++)t7t(e.value[i],t,n);break;case"Alternative":const r=e.value;for(let e=0;e<r.length;e++){const i=r[e];switch(i.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"Lookbehind":case"NegativeLookbehind":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}const o=i;switch(o.type){case"Character":n7t(o.value,t,n);break;case"Set":if(!0===o.complement)throw Error(J6t);Y4t(o.value,e=>{if("number"==typeof e)n7t(e,t,n);else{const r=e;if(!0===n)for(let e=r.from;e<=r.to;e++)n7t(e,t,n);else{for(let e=r.from;e<=r.to&&e<X7t;e++)n7t(e,t,n);if(r.to>=X7t){const e=r.from>=X7t?r.from:X7t,n=r.to,i=U7t(e),o=U7t(n);for(let r=i;r<=o;r++)t[r]=r}}}});break;case"Group":t7t(o.value,t,n);break;default:throw Error("Non Exhaustive Match")}const a=void 0!==o.quantifier&&0===o.quantifier.atLeast;if("Group"===o.type&&!1===o7t(o)||"Group"!==o.type&&!1===a)break}break;default:throw Error("non exhaustive match!")}return Q3t(t)}function n7t(e,t,n){const r=U7t(e);t[r]=r,!0===n&&r7t(e,t)}function r7t(e,t){const n=String.fromCharCode(e),r=n.toUpperCase();if(r!==n){const e=U7t(r.charCodeAt(0));t[e]=e}else{const e=n.toLowerCase();if(e!==n){const n=U7t(e.charCodeAt(0));t[n]=n}}}function i7t(e,t){return c3t(e.value,e=>{if("number"==typeof e)return R3t(t,e);{const n=e;return void 0!==c3t(t,e=>n.from<=e&&e<=n.to)}})}function o7t(e){const t=e.quantifier;return!(!t||0!==t.atLeast)||!!e.value&&(pHt(e.value)?e3t(e.value,o7t):o7t(e.value))}_Vt(e7t,"getOptimizedStartCodesIndices"),_Vt(t7t,"firstCharOptimizedIndices"),_Vt(n7t,"addOptimizedIdxToResult"),_Vt(r7t,"handleIgnoreCase"),_Vt(i7t,"findCode"),_Vt(o7t,"isWholeOptional");var a7t=(_Vt(j=class extends YZt{constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(!0!==this.found){switch(e.type){case"Lookahead":return void this.visitLookahead(e);case"NegativeLookahead":return void this.visitNegativeLookahead(e);case"Lookbehind":return void this.visitLookbehind(e);case"NegativeLookbehind":return void this.visitNegativeLookbehind(e)}super.visitChildren(e)}}visitCharacter(e){R3t(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?void 0===i7t(e,this.targetCharCodes)&&(this.found=!0):void 0!==i7t(e,this.targetCharCodes)&&(this.found=!0)}},"CharCodeFinder"),j);function s7t(e,t){if(t instanceof RegExp){const n=H6t(t),r=new a7t(e);return r.visit(n),r.found}return void 0!==c3t(t,t=>R3t(e,t.charCodeAt(0)))}_Vt(s7t,"canMatchCharCode");var l7t="PATTERN",c7t="defaultMode",u7t="modes";function h7t(e,t){const n=(t=P4t(t,{debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r","\n"],tracer:_Vt((e,t)=>t(),"tracer")})).tracer;let r;n("initCharCodeToOptimizedIndexMap",()=>{z7t()}),n("Reject Lexer.NA",()=>{r=o6t(e,e=>e[l7t]===c8t.NA)});let i,o,a,s,l,c,u,h,d,p,f,g=!1;n("Transform Patterns",()=>{g=!1,i=g3t(r,e=>{const t=e[l7t];if(z3t(t)){const e=t.source;return 1!==e.length||"^"===e||"$"===e||"."===e||t.ignoreCase?2!==e.length||"\\"!==e[0]||R3t(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],e[1])?C7t(t):e[1]:e}if(XHt(t))return g=!0,{exec:t};if("object"==typeof t)return g=!0,t;if("string"==typeof t){if(1===t.length)return t;{const e=t.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&");return C7t(new RegExp(e))}}throw Error("non exhaustive match")})}),n("misc mapping",()=>{o=g3t(r,e=>e.tokenTypeIdx),a=g3t(r,e=>{const t=e.GROUP;if(t!==c8t.SKIPPED){if(T3t(t))return t;if(V3t(t))return!1;throw Error("non exhaustive match")}}),s=g3t(r,e=>{const t=e.LONGER_ALT;if(t){return pHt(t)?g3t(t,e=>L3t(r,e)):[L3t(r,t)]}}),l=g3t(r,e=>e.PUSH_MODE),c=g3t(r,e=>k3t(e,"POP_MODE"))}),n("Line Terminator Handling",()=>{const e=M7t(t.lineTerminatorCharacters);u=g3t(r,e=>!1),"onlyOffset"!==t.positionTracking&&(u=g3t(r,t=>k3t(t,"LINE_BREAKS")?!!t.LINE_BREAKS:!1===L7t(t,e)&&s7t(e,t.PATTERN)))}),n("Misc Mapping #2",()=>{h=g3t(r,R7t),d=g3t(i,B7t),p=r6t(r,(e,t)=>{const n=t.GROUP;return T3t(n)&&n!==c8t.SKIPPED&&(e[n]=[]),e},{}),f=g3t(i,(e,t)=>({pattern:i[t],longerAlt:s[t],canLineTerminator:u[t],isCustom:h[t],short:d[t],group:a[t],push:l[t],pop:c[t],tokenTypeIdx:o[t],tokenType:r[t]}))});let m=!0,O=[];return t.safeMode||n("First Char Optimization",()=>{O=r6t(r,(e,n,r)=>{if("string"==typeof n.PATTERN){const t=U7t(n.PATTERN.charCodeAt(0));N7t(e,t,f[r])}else if(pHt(n.START_CHARS_HINT)){let t;Y4t(n.START_CHARS_HINT,n=>{const i=U7t("string"==typeof n?n.charCodeAt(0):n);t!==i&&(t=i,N7t(e,i,f[r]))})}else if(z3t(n.PATTERN))if(n.PATTERN.unicode)m=!1,t.ensureOptimizations&&g6t(n.PATTERN.toString());else{const i=e7t(n.PATTERN,t.ensureOptimizations);N3t(i)&&(m=!1),Y4t(i,t=>{N7t(e,t,f[r])})}else t.ensureOptimizations&&g6t(n.name),m=!1;return e},[])}),{emptyGroups:p,patternIdxToConfig:f,charCodeToPatternIdxToConfig:O,hasCustom:g,canBeOptimized:m}}function d7t(e,t){let n=[];const r=f7t(e);n=n.concat(r.errors);const i=g7t(r.valid),o=i.valid;return n=n.concat(i.errors),n=n.concat(p7t(o)),n=n.concat(w7t(o)),n=n.concat(k7t(o,t)),n=n.concat(S7t(o)),n}function p7t(e){let t=[];const n=i3t(e,e=>z3t(e[l7t]));return t=t.concat(O7t(n)),t=t.concat(v7t(n)),t=t.concat(b7t(n)),t=t.concat(x7t(n)),t=t.concat(A7t(n)),t}function f7t(e){const t=i3t(e,e=>!k3t(e,l7t));return{errors:g3t(t,e=>({message:"Token Type: ->"+e.name+"<- missing static 'PATTERN' property",type:o8t.MISSING_PATTERN,tokenTypes:[e]})),valid:M4t(e,t)}}function g7t(e){const t=i3t(e,e=>{const t=e[l7t];return!(z3t(t)||XHt(t)||k3t(t,"exec")||T3t(t))});return{errors:g3t(t,e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:o8t.INVALID_PATTERN,tokenTypes:[e]})),valid:M4t(e,t)}}_Vt(h7t,"analyzeTokenTypes"),_Vt(d7t,"validatePatterns"),_Vt(p7t,"validateRegExpPattern"),_Vt(f7t,"findMissingPatterns"),_Vt(g7t,"findInvalidPatterns");var m7t=/[^\\][$]/;function O7t(e){const t=class extends YZt{constructor(){super(...arguments),this.found=!1}visitEndAnchor(e){this.found=!0}};_Vt(t,"EndAnchorFinder");let n=t;const r=i3t(e,e=>{const t=e.PATTERN;try{const e=H6t(t),r=new n;return r.visit(e),r.found}catch(jk){return m7t.test(t.source)}});return g3t(r,e=>({message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+e.name+"<- static 'PATTERN' cannot contain end of input anchor '$'\n\tSee chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:o8t.EOI_ANCHOR_FOUND,tokenTypes:[e]}))}function A7t(e){const t=i3t(e,e=>e.PATTERN.test(""));return g3t(t,e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' must not match an empty string",type:o8t.EMPTY_MATCH_PATTERN,tokenTypes:[e]}))}_Vt(O7t,"findEndOfInputAnchor"),_Vt(A7t,"findEmptyMatchRegExps");var y7t=/[^\\[][\^]|^\^/;function v7t(e){const t=class extends YZt{constructor(){super(...arguments),this.found=!1}visitStartAnchor(e){this.found=!0}};_Vt(t,"StartAnchorFinder");let n=t;const r=i3t(e,e=>{const t=e.PATTERN;try{const e=H6t(t),r=new n;return r.visit(e),r.found}catch(jk){return y7t.test(t.source)}});return g3t(r,e=>({message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+e.name+"<- static 'PATTERN' cannot contain start of input anchor '^'\n\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:o8t.SOI_ANCHOR_FOUND,tokenTypes:[e]}))}function b7t(e){const t=i3t(e,e=>{const t=e[l7t];return t instanceof RegExp&&(t.multiline||t.global)});return g3t(t,e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:o8t.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]}))}function x7t(e){const t=[];let n=g3t(e,n=>r6t(e,(e,r)=>(n.PATTERN.source!==r.PATTERN.source||R3t(t,r)||r.PATTERN===c8t.NA||(t.push(r),e.push(r)),e),[]));n=p5t(n);const r=i3t(n,e=>e.length>1);return g3t(r,e=>{const t=g3t(e,e=>e.name);return{message:`The same RegExp pattern ->${h3t(e).PATTERN}<-has been used in all of the following Token Types: ${t.join(", ")} <-`,type:o8t.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}})}function w7t(e){const t=i3t(e,e=>{if(!k3t(e,"GROUP"))return!1;const t=e.GROUP;return t!==c8t.SKIPPED&&t!==c8t.NA&&!T3t(t)});return g3t(t,e=>({message:"Token Type: ->"+e.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:o8t.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]}))}function k7t(e,t){const n=i3t(e,e=>void 0!==e.PUSH_MODE&&!R3t(t,e.PUSH_MODE));return g3t(n,e=>({message:`Token Type: ->${e.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${e.PUSH_MODE}<-which does not exist`,type:o8t.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]}))}function S7t(e){const t=[],n=r6t(e,(e,t,n)=>{const r=t.PATTERN;return r===c8t.NA||(T3t(r)?e.push({str:r,idx:n,tokenType:t}):z3t(r)&&$7t(r)&&e.push({str:r.source,idx:n,tokenType:t})),e},[]);return Y4t(e,(e,r)=>{Y4t(n,({str:n,idx:i,tokenType:o})=>{if(r<i&&T7t(n,e.PATTERN)){const n=`Token: ->${o.name}<- can never be matched.\nBecause it appears AFTER the Token Type ->${e.name}<-in the lexer's definition.\nSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:n,type:o8t.UNREACHABLE_PATTERN,tokenTypes:[e,o]})}})}),t}function T7t(e,t){if(z3t(t)){if(_7t(t))return!1;const n=t.exec(e);return null!==n&&0===n.index}if(XHt(t))return t(e,0,[],{});if(k3t(t,"exec"))return t.exec(e,0,[],{});if("string"==typeof t)return t===e;throw Error("non exhaustive match")}function $7t(e){return void 0===c3t([".","\\","[","]","|","^","$","(",")","?","*","+","{"],t=>-1!==e.source.indexOf(t))}function _7t(e){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\?<!)/.test(e.source)}function C7t(e){const t=e.ignoreCase?"iy":"y";return new RegExp(`${e.source}`,t)}function Q7t(e,t,n){const r=[];return k3t(e,c7t)||r.push({message:"A MultiMode Lexer cannot be initialized without a <"+c7t+"> property in its definition\n",type:o8t.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),k3t(e,u7t)||r.push({message:"A MultiMode Lexer cannot be initialized without a <modes> property in its definition\n",type:o8t.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),k3t(e,u7t)&&k3t(e,c7t)&&!k3t(e.modes,e.defaultMode)&&r.push({message:`A MultiMode Lexer cannot be initialized with a ${c7t}: <${e.defaultMode}>which does not exist\n`,type:o8t.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),k3t(e,u7t)&&Y4t(e.modes,(e,t)=>{Y4t(e,(n,i)=>{if(V3t(n))r.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${t}> at index: <${i}>\n`,type:o8t.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED});else if(k3t(n,"LONGER_ALT")){const i=pHt(n.LONGER_ALT)?n.LONGER_ALT:[n.LONGER_ALT];Y4t(i,i=>{V3t(i)||R3t(e,i)||r.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${i.name}> on token <${n.name}> outside of mode <${t}>\n`,type:o8t.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})}})}),r}function P7t(e,t,n){const r=[];let i=!1;const o=p5t(x1t(Q3t(e.modes))),a=o6t(o,e=>e[l7t]===c8t.NA),s=M7t(n);return t&&Y4t(a,e=>{const t=L7t(e,s);if(!1!==t){const n={message:D7t(e,t),type:t.issue,tokenType:e};r.push(n)}else k3t(e,"LINE_BREAKS")?!0===e.LINE_BREAKS&&(i=!0):s7t(s,e.PATTERN)&&(i=!0)}),t&&!i&&r.push({message:"Warning: No LINE_BREAKS Found.\n\tThis Lexer has been defined to track line and column information,\n\tBut none of the Token Types can be identified as matching a line terminator.\n\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n\tfor details.",type:o8t.NO_LINE_BREAKS_FLAGS}),r}function E7t(e){const t={},n=VJt(e);return Y4t(n,n=>{const r=e[n];if(!pHt(r))throw Error("non exhaustive match");t[n]=[]}),t}function R7t(e){const t=e.PATTERN;if(z3t(t))return!1;if(XHt(t))return!0;if(k3t(t,"exec"))return!0;if(T3t(t))return!1;throw Error("non exhaustive match")}function B7t(e){return!(!T3t(e)||1!==e.length)&&e.charCodeAt(0)}_Vt(v7t,"findStartOfInputAnchor"),_Vt(b7t,"findUnsupportedFlags"),_Vt(x7t,"findDuplicatePatterns"),_Vt(w7t,"findInvalidGroupType"),_Vt(k7t,"findModesThatDoNotExist"),_Vt(S7t,"findUnreachablePatterns"),_Vt(T7t,"tryToMatchStrToPattern"),_Vt($7t,"noMetaChar"),_Vt(_7t,"usesLookAheadOrBehind"),_Vt(C7t,"addStickyFlag"),_Vt(Q7t,"performRuntimeChecks"),_Vt(P7t,"performWarningRuntimeChecks"),_Vt(E7t,"cloneEmptyGroups"),_Vt(R7t,"isCustomPattern"),_Vt(B7t,"isShortPattern");var I7t={test:_Vt(function(e){const t=e.length;for(let n=this.lastIndex;n<t;n++){const t=e.charCodeAt(n);if(10===t)return this.lastIndex=n+1,!0;if(13===t)return 10===e.charCodeAt(n+1)?this.lastIndex=n+2:this.lastIndex=n+1,!0}return!1},"test"),lastIndex:0};function L7t(e,t){if(k3t(e,"LINE_BREAKS"))return!1;if(z3t(e.PATTERN)){try{s7t(t,e.PATTERN)}catch(jk){return{issue:o8t.IDENTIFY_TERMINATOR,errMsg:jk.message}}return!1}if(T3t(e.PATTERN))return!1;if(R7t(e))return{issue:o8t.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}function D7t(e,t){if(t.issue===o8t.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.\n\tThe problem is in the <${e.name}> Token Type\n\t Root cause: ${t.errMsg}.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===o8t.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.\n\tThe problem is in the <${e.name}> Token Type\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}function M7t(e){return g3t(e,e=>T3t(e)?e.charCodeAt(0):e)}function N7t(e,t,n){void 0===e[t]?e[t]=[n]:e[t].push(n)}_Vt(L7t,"checkLineBreaksIssues"),_Vt(D7t,"buildLineBreakIssueMessage"),_Vt(M7t,"getCharCodes"),_Vt(N7t,"addToMapOfArrays");var X7t=256,F7t=[];function U7t(e){return e<X7t?e:F7t[e]}function z7t(){if(N3t(F7t)){F7t=new Array(65536);for(let e=0;e<65536;e++)F7t[e]=e>255?255+~~(e/255):e}}function q7t(e,t){const n=e.tokenTypeIdx;return n===t.tokenTypeIdx||!0===t.isParent&&!0===t.categoryMatchesMap[n]}function V7t(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}_Vt(U7t,"charCodeToOptimizedIndex"),_Vt(z7t,"initCharCodeToOptimizedIndexMap"),_Vt(q7t,"tokenStructuredMatcher"),_Vt(V7t,"tokenStructuredMatcherNoCategories");var W7t=1,j7t={};function Y7t(e){const t=Z7t(e);G7t(t),K7t(t),H7t(t),Y4t(t,e=>{e.isParent=e.categoryMatches.length>0})}function Z7t(e){let t=h5t(e),n=e,r=!0;for(;r;){n=p5t(x1t(g3t(n,e=>e.CATEGORIES)));const e=M4t(n,t);t=t.concat(e),N3t(e)?r=!1:n=e}return t}function G7t(e){Y4t(e,e=>{e8t(e)||(j7t[W7t]=e,e.tokenTypeIdx=W7t++),t8t(e)&&!pHt(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),t8t(e)||(e.CATEGORIES=[]),n8t(e)||(e.categoryMatches=[]),r8t(e)||(e.categoryMatchesMap={})})}function H7t(e){Y4t(e,e=>{e.categoryMatches=[],Y4t(e.categoryMatchesMap,(t,n)=>{e.categoryMatches.push(j7t[n].tokenTypeIdx)})})}function K7t(e){Y4t(e,e=>{J7t([],e)})}function J7t(e,t){Y4t(e,e=>{t.categoryMatchesMap[e.tokenTypeIdx]=!0}),Y4t(t.CATEGORIES,n=>{const r=e.concat(t);R3t(r,n)||J7t(r,n)})}function e8t(e){return k3t(e,"tokenTypeIdx")}function t8t(e){return k3t(e,"CATEGORIES")}function n8t(e){return k3t(e,"categoryMatches")}function r8t(e){return k3t(e,"categoryMatchesMap")}function i8t(e){return k3t(e,"tokenTypeIdx")}_Vt(Y7t,"augmentTokenTypes"),_Vt(Z7t,"expandCategories"),_Vt(G7t,"assignTokenDefaultProps"),_Vt(H7t,"assignCategoriesTokensProp"),_Vt(K7t,"assignCategoriesMapProp"),_Vt(J7t,"singleAssignCategoriesToksMap"),_Vt(e8t,"hasShortKeyProperty"),_Vt(t8t,"hasCategoriesProperty"),_Vt(n8t,"hasExtendingTokensTypesProperty"),_Vt(r8t,"hasExtendingTokensTypesMapProperty"),_Vt(i8t,"isTokenType");var o8t,a8t,s8t={buildUnableToPopLexerModeMessage:e=>`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`,buildUnexpectedCharactersMessage:(e,t,n,r,i,o)=>`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${n} characters.`};(a8t=o8t||(o8t={}))[a8t.MISSING_PATTERN=0]="MISSING_PATTERN",a8t[a8t.INVALID_PATTERN=1]="INVALID_PATTERN",a8t[a8t.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",a8t[a8t.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",a8t[a8t.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",a8t[a8t.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",a8t[a8t.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",a8t[a8t.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",a8t[a8t.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",a8t[a8t.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",a8t[a8t.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",a8t[a8t.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",a8t[a8t.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",a8t[a8t.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",a8t[a8t.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",a8t[a8t.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",a8t[a8t.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",a8t[a8t.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE";var l8t={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:["\n","\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:s8t,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(l8t);var c8t=(Y=class{constructor(e,t=l8t){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(e,t)=>{if(!0===this.traceInitPerf){this.traceInitIndent++;const n=new Array(this.traceInitIndent+1).join("\t");this.traceInitIndent,this.traceInitMaxIdent;const{time:r,value:i}=O6t(t),o=r>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&o(`${n}<-- <${e}> time: ${r}ms`),this.traceInitIndent--,i}return t()},"boolean"==typeof t)throw Error("The second argument to the Lexer constructor is now an ILexerConfig Object.\na boolean 2nd argument is no longer supported");this.config=jJt({},l8t,t);const n=this.config.traceInitPerf;!0===n?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):"number"==typeof n&&(this.traceInitMaxIdent=n,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let n,r=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===l8t.lineTerminatorsPattern)this.config.lineTerminatorsPattern=I7t;else if(this.config.lineTerminatorCharacters===l8t.lineTerminatorCharacters)throw Error("Error: Missing <lineTerminatorCharacters> property on the Lexer config.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS");if(t.safeMode&&t.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),pHt(e)?n={modes:{defaultMode:h5t(e)},defaultMode:c7t}:(r=!1,n=h5t(e))}),!1===this.config.skipValidations&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(Q7t(n,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(P7t(n,this.trackStartLines,this.config.lineTerminatorCharacters))})),n.modes=n.modes?n.modes:{},Y4t(n.modes,(e,t)=>{n.modes[t]=o6t(e,e=>V3t(e))});const i=VJt(n.modes);if(Y4t(n.modes,(e,n)=>{this.TRACE_INIT(`Mode: <${n}> processing`,()=>{if(this.modes.push(n),!1===this.config.skipValidations&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(d7t(e,i))}),N3t(this.lexerDefinitionErrors)){let r;Y7t(e),this.TRACE_INIT("analyzeTokenTypes",()=>{r=h7t(e,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[n]=r.patternIdxToConfig,this.charCodeToPatternIdxToConfig[n]=r.charCodeToPatternIdxToConfig,this.emptyGroups=jJt({},this.emptyGroups,r.emptyGroups),this.hasCustom=r.hasCustom||this.hasCustom,this.canModeBeOptimized[n]=r.canBeOptimized}})}),this.defaultMode=n.defaultMode,!N3t(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){const e=g3t(this.lexerDefinitionErrors,e=>e.message).join("-----------------------\n");throw new Error("Errors detected in definition of Lexer:\n"+e)}Y4t(this.lexerDefinitionWarning,e=>{m6t(e.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(r&&(this.handleModes=dKt),!1===this.trackStartLines&&(this.computeNewColumn=MHt),!1===this.trackEndLines&&(this.updateTokenEndLineColumnLocation=dKt),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else{if(!/onlyOffset/i.test(this.config.positionTracking))throw Error(`Invalid <positionTracking> config option: "${this.config.positionTracking}"`);this.createTokenInstance=this.createOffsetOnlyToken}this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{const e=r6t(this.canModeBeOptimized,(e,t,n)=>(!1===t&&e.push(n),e),[]);if(t.ensureOptimizations&&!N3t(e))throw Error(`Lexer Modes: < ${e.join(", ")} > cannot be optimized.\n\t Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.\n\t Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{K6t()}),this.TRACE_INIT("toFastProperties",()=>{A6t(this)})})}tokenize(e,t=this.defaultMode){if(!N3t(this.lexerDefinitionErrors)){const e=g3t(this.lexerDefinitionErrors,e=>e.message).join("-----------------------\n");throw new Error("Unable to Tokenize because Errors detected in definition of Lexer:\n"+e)}return this.tokenizeInternal(e,t)}tokenizeInternal(e,t){let n,r,i,o,a,s,l,c,u,h,d,p,f,g,m;const O=e,A=O.length;let y=0,v=0;const b=this.hasCustom?0:Math.floor(e.length/10),x=new Array(b),w=[];let k=this.trackStartLines?1:void 0,S=this.trackStartLines?1:void 0;const T=E7t(this.emptyGroups),$=this.trackStartLines,_=this.config.lineTerminatorsPattern;let C=0,Q=[],P=[];const E=[],R=[];Object.freeze(R);let B=!1;const I=_Vt(e=>{if(1===E.length&&void 0===e.tokenType.PUSH_MODE){const t=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(e);w.push({offset:e.startOffset,line:e.startLine,column:e.startColumn,length:e.image.length,message:t})}else{E.pop();const e=X4t(E);Q=this.patternIdxToConfig[e],P=this.charCodeToPatternIdxToConfig[e],C=Q.length;const t=this.canModeBeOptimized[e]&&!1===this.config.safeMode;B=!(!P||!t)}},"pop_mode");function L(e){E.push(e),P=this.charCodeToPatternIdxToConfig[e],Q=this.patternIdxToConfig[e],C=Q.length,C=Q.length;const t=this.canModeBeOptimized[e]&&!1===this.config.safeMode;B=!(!P||!t)}let D;_Vt(L,"push_mode"),L.call(this,t);const M=this.config.recoveryEnabled;for(;y<A;){s=null,u=-1;const t=O.charCodeAt(y);let b;if(B){const e=U7t(t),n=P[e];b=void 0!==n?n:R}else b=Q;const N=b.length;for(n=0;n<N;n++){D=b[n];const r=D.pattern;l=null;const h=D.short;if(!1!==h?t===h&&(u=1,s=r):!0===D.isCustom?(m=r.exec(O,y,x,T),null!==m?(s=m[0],u=s.length,void 0!==m.payload&&(l=m.payload)):s=null):(r.lastIndex=y,u=this.matchLength(r,e,y)),-1!==u){if(a=D.longerAlt,void 0!==a){s=e.substring(y,y+u);const t=a.length;for(i=0;i<t;i++){const t=Q[a[i]],n=t.pattern;if(c=null,!0===t.isCustom?(m=n.exec(O,y,x,T),null!==m?(o=m[0],void 0!==m.payload&&(c=m.payload)):o=null):(n.lastIndex=y,o=this.match(n,e,y)),o&&o.length>s.length){s=o,u=o.length,l=c,D=t;break}}}break}}if(-1!==u){if(h=D.group,void 0!==h&&(s=null!==s?s:e.substring(y,y+u),d=D.tokenTypeIdx,p=this.createTokenInstance(s,y,d,D.tokenType,k,S,u),this.handlePayload(p,l),!1===h?v=this.addToken(x,v,p):T[h].push(p)),!0===$&&!0===D.canLineTerminator){let t,n,r=0;_.lastIndex=0;do{s=null!==s?s:e.substring(y,y+u),t=_.test(s),!0===t&&(n=_.lastIndex-1,r++)}while(!0===t);0!==r?(k+=r,S=u-n,this.updateTokenEndLineColumnLocation(p,h,n,r,k,S,u)):S=this.computeNewColumn(S,u)}else S=this.computeNewColumn(S,u);y+=u,this.handleModes(D,I,L,p)}else{const t=y,n=k,i=S;let o=!1===M;for(;!1===o&&y<A;)for(y++,r=0;r<C;r++){const t=Q[r],n=t.pattern,i=t.short;if(!1!==i?O.charCodeAt(y)===i&&(o=!0):!0===t.isCustom?o=null!==n.exec(O,y,x,T):(n.lastIndex=y,o=null!==n.exec(e)),!0===o)break}if(f=y-t,S=this.computeNewColumn(S,f),g=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(O,t,f,n,i,X4t(E)),w.push({offset:t,line:n,column:i,length:f,message:g}),!1===M)break}}return this.hasCustom||(x.length=v),{tokens:x,groups:T,errors:w}}handleModes(e,t,n,r){if(!0===e.pop){const i=e.push;t(r),void 0!==i&&n.call(this,i)}else void 0!==e.push&&n.call(this,e.push)}updateTokenEndLineColumnLocation(e,t,n,r,i,o,a){let s,l;void 0!==t&&(s=n===a-1,l=s?-1:0,1===r&&!0===s||(e.endLine=i+l,e.endColumn=o-1-l))}computeNewColumn(e,t){return e+t}createOffsetOnlyToken(e,t,n,r){return{image:e,startOffset:t,tokenTypeIdx:n,tokenType:r}}createStartOnlyToken(e,t,n,r,i,o){return{image:e,startOffset:t,startLine:i,startColumn:o,tokenTypeIdx:n,tokenType:r}}createFullToken(e,t,n,r,i,o,a){return{image:e,startOffset:t,endOffset:t+a-1,startLine:i,endLine:i,startColumn:o,endColumn:o+a-1,tokenTypeIdx:n,tokenType:r}}addTokenUsingPush(e,t,n){return e.push(n),t}addTokenUsingMemberAccess(e,t,n){return e[t]=n,++t}handlePayloadNoCustom(e,t){}handlePayloadWithCustom(e,t){null!==t&&(e.payload=t)}match(e,t,n){return!0===e.test(t)?t.substring(n,e.lastIndex):null}matchLength(e,t,n){return!0===e.test(t)?e.lastIndex-n:-1}},_Vt(Y,"Lexer"),Y);function u8t(e){return h8t(e)?e.LABEL:e.name}function h8t(e){return T3t(e.LABEL)&&""!==e.LABEL}c8t.SKIPPED="This marks a skipped Token pattern, this means each token identified by it will be consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",c8t.NA=/NOT_APPLICABLE/,_Vt(u8t,"tokenLabel"),_Vt(h8t,"hasTokenLabel");var d8t="categories",p8t="label",f8t="group",g8t="push_mode",m8t="pop_mode",O8t="longer_alt",A8t="line_breaks",y8t="start_chars_hint";function v8t(e){return b8t(e)}function b8t(e){const t=e.pattern,n={};if(n.name=e.name,V3t(t)||(n.PATTERN=t),k3t(e,"parent"))throw"The parent property is no longer supported.\nSee: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.";return k3t(e,d8t)&&(n.CATEGORIES=e[d8t]),Y7t([n]),k3t(e,p8t)&&(n.LABEL=e[p8t]),k3t(e,f8t)&&(n.GROUP=e[f8t]),k3t(e,m8t)&&(n.POP_MODE=e[m8t]),k3t(e,g8t)&&(n.PUSH_MODE=e[g8t]),k3t(e,O8t)&&(n.LONGER_ALT=e[O8t]),k3t(e,A8t)&&(n.LINE_BREAKS=e[A8t]),k3t(e,y8t)&&(n.START_CHARS_HINT=e[y8t]),n}_Vt(v8t,"createToken"),_Vt(b8t,"createTokenInternal");var x8t=v8t({name:"EOF",pattern:c8t.NA});function w8t(e,t,n,r,i,o,a,s){return{image:t,startOffset:n,endOffset:r,startLine:i,endLine:o,startColumn:a,endColumn:s,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function k8t(e,t){return q7t(e,t)}Y7t([x8t]),_Vt(w8t,"createTokenInstance"),_Vt(k8t,"tokenMatcher");var S8t={buildMismatchTokenMessage:({expected:e,actual:t,previous:n,ruleName:r})=>`Expecting ${h8t(e)?`--\x3e ${u8t(e)} <--`:`token of type --\x3e ${e.name} <--`} but found --\x3e '${t.image}' <--`,buildNotAllInputParsedMessage:({firstRedundant:e,ruleName:t})=>"Redundant input, expecting EOF but found: "+e.image,buildNoViableAltMessage({expectedPathsPerAlt:e,actual:t,previous:n,customUserDescription:r,ruleName:i}){const o="Expecting: ",a="\nbut found: '"+h3t(t).image+"'";if(r)return o+r+a;{const t=r6t(e,(e,t)=>e.concat(t),[]),n=g3t(t,e=>`[${g3t(e,e=>u8t(e)).join(", ")}]`),r=g3t(n,(e,t)=>` ${t+1}. ${e}`);return o+`one of these possible Token sequences:\n${r.join("\n")}`+a}},buildEarlyExitMessage({expectedIterationPaths:e,actual:t,customUserDescription:n,ruleName:r}){const i="Expecting: ",o="\nbut found: '"+h3t(t).image+"'";if(n)return i+n+o;return i+`expecting at least one iteration which starts with one of these possible Token sequences::\n <${g3t(e,e=>`[${g3t(e,e=>u8t(e)).join(",")}]`).join(" ,")}>`+o}};Object.freeze(S8t);var T8t={buildRuleNotFoundError:(e,t)=>"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+"<-\ninside top level rule: ->"+e.name+"<-"},$8t={buildDuplicateFoundError(e,t){function n(e){return e instanceof P6t?e.terminalType.name:e instanceof x6t?e.nonTerminalName:""}_Vt(n,"getExtraProductionArgument");const r=e.name,i=h3t(t),o=i.idx,a=M6t(i),s=n(i);let l=`->${a}${o>0?o:""}<- ${s?`with argument: ->${s}<-`:""}\n appears more than once (${t.length} times) in the top level rule: ->${r}<-. \n For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES \n `;return l=l.replace(/[ \t]+/g," "),l=l.replace(/\s\s+/g,"\n"),l},buildNamespaceConflictError:e=>`Namespace conflict found in grammar.\nThe grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>.\nTo resolve this make sure each Terminal and Non-Terminal names are unique\nThis is easy to accomplish by using the convention that Terminal names start with an uppercase letter\nand Non-Terminal names start with a lower case letter.`,buildAlternationPrefixAmbiguityError(e){const t=g3t(e.prefixPath,e=>u8t(e)).join(", "),n=0===e.alternation.idx?"":e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(" ,")}> due to common lookahead prefix\nin <OR${n}> inside <${e.topLevelRule.name}> Rule,\n<${t}> may appears as a prefix path in all these alternatives.\nSee: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\nFor Further details.`},buildAlternationAmbiguityError(e){const t=0===e.alternation.idx?"":e.alternation.idx,n=0===e.prefixPath.length;let r=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(" ,")}> in <OR${t}> inside <${e.topLevelRule.name}> Rule,\n`;if(n)r+="These alternatives are all empty (match no tokens), making them indistinguishable.\nOnly the last alternative may be empty.\n";else{r+=`<${g3t(e.prefixPath,e=>u8t(e)).join(", ")}> may appears as a prefix path in all these alternatives.\n`}return r+="See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\nFor Further details.",r},buildEmptyRepetitionError(e){let t=M6t(e.repetition);0!==e.repetition.idx&&(t+=e.repetition.idx);return`The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens.\nThis could lead to an infinite loop.`},buildTokenNameError:e=>"deprecated",buildEmptyAlternationError:e=>`Ambiguous empty alternative: <${e.emptyChoiceIdx+1}> in <OR${e.alternation.idx}> inside <${e.topLevelRule.name}> Rule.\nOnly the last alternative may be an empty alternative.`,buildTooManyAlternativesError:e=>`An Alternation cannot have more than 256 alternatives:\n<OR${e.alternation.idx}> inside <${e.topLevelRule.name}> Rule.\n has ${e.alternation.definition.length+1} alternatives.`,buildLeftRecursionError(e){const t=e.topLevelRule.name;return`Left Recursion found in grammar.\nrule: <${t}> can be invoked from itself (directly or indirectly)\nwithout consuming any Tokens. The grammar path that causes this is: \n ${`${t} --\x3e ${g3t(e.leftRecursionPath,e=>e.name).concat([t]).join(" --\x3e ")}`}\n To fix this refactor your grammar to remove the left recursion.\nsee: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError:e=>"deprecated",buildDuplicateRuleNameError(e){let t;t=e.topLevelRule instanceof w6t?e.topLevelRule.name:e.topLevelRule;return`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`}};function _8t(e,t){const n=new P8t(e,t);return n.resolveRefs(),n.errors}_Vt(_8t,"resolveGrammar");var C8t,Q8t,P8t=(_Vt(Z=class extends B6t{constructor(e,t){super(),this.nameToTopRule=e,this.errMsgProvider=t,this.errors=[]}resolveRefs(){Y4t(Q3t(this.nameToTopRule),e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){const t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{const t=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:t,type:_en.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}},"GastRefResolverVisitor"),Z),E8t=(_Vt(G=class extends N6t{constructor(e,t){super(),this.topProd=e,this.path=t,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=h5t(this.path.ruleStack).reverse(),this.occurrenceStack=h5t(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,t=[]){this.found||super.walk(e,t)}walkProdRef(e,t,n){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){const r=t.concat(n);this.updateExpectedNext(),this.walk(e.referencedRule,r)}}updateExpectedNext(){N3t(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},"AbstractNextPossibleTokensWalker"),G),R8t=(_Vt(H=class extends E8t{constructor(e,t){super(e,t),this.path=t,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,t,n){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){const e=t.concat(n),r=new k6t({definition:e});this.possibleTokTypes=F6t(r),this.found=!0}}},"NextAfterTokenWalker"),H),B8t=(_Vt(K=class extends N6t{constructor(e,t){super(),this.topRule=e,this.occurrence=t,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},"AbstractNextTerminalAfterProductionWalker"),K),I8t=(_Vt(J=class extends B8t{walkMany(e,t,n){if(e.idx===this.occurrence){const e=h3t(t.concat(n));this.result.isEndOfRule=void 0===e,e instanceof P6t&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkMany(e,t,n)}},"NextTerminalAfterManyWalker"),J),L8t=(_Vt(ee=class extends B8t{walkManySep(e,t,n){if(e.idx===this.occurrence){const e=h3t(t.concat(n));this.result.isEndOfRule=void 0===e,e instanceof P6t&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkManySep(e,t,n)}},"NextTerminalAfterManySepWalker"),ee),D8t=(_Vt(te=class extends B8t{walkAtLeastOne(e,t,n){if(e.idx===this.occurrence){const e=h3t(t.concat(n));this.result.isEndOfRule=void 0===e,e instanceof P6t&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOne(e,t,n)}},"NextTerminalAfterAtLeastOneWalker"),te),M8t=(_Vt(ne=class extends B8t{walkAtLeastOneSep(e,t,n){if(e.idx===this.occurrence){const e=h3t(t.concat(n));this.result.isEndOfRule=void 0===e,e instanceof P6t&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOneSep(e,t,n)}},"NextTerminalAfterAtLeastOneSepWalker"),ne);function N8t(e,t,n=[]){n=h5t(n);let r=[],i=0;function o(t){return t.concat(U4t(e,i+1))}function a(e){const i=N8t(o(e),t,n);return r.concat(i)}for(_Vt(o,"remainingPathWith"),_Vt(a,"getAlternativesForProd");n.length<t&&i<e.length;){const t=e[i];if(t instanceof k6t)return a(t.definition);if(t instanceof x6t)return a(t.definition);if(t instanceof S6t)r=a(t.definition);else{if(t instanceof T6t){return a(t.definition.concat([new _6t({definition:t.definition})]))}if(t instanceof $6t){return a([new k6t({definition:t.definition}),new _6t({definition:[new P6t({terminalType:t.separator})].concat(t.definition)})])}if(t instanceof C6t){const e=t.definition.concat([new _6t({definition:[new P6t({terminalType:t.separator})].concat(t.definition)})]);r=a(e)}else if(t instanceof _6t){const e=t.definition.concat([new _6t({definition:t.definition})]);r=a(e)}else{if(t instanceof Q6t)return Y4t(t.definition,e=>{!1===N3t(e.definition)&&(r=a(e.definition))}),r;if(!(t instanceof P6t))throw Error("non exhaustive match");n.push(t.terminalType)}}i++}return r.push({partialPath:n,suffixDef:U4t(e,i)}),r}function X8t(e,t,n,r){const i="EXIT_NONE_TERMINAL",o=[i],a="EXIT_ALTERNATIVE";let s=!1;const l=t.length,c=l-r-1,u=[],h=[];for(h.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!N3t(h);){const e=h.pop();if(e===a){s&&X4t(h).idx<=c&&h.pop();continue}const r=e.def,d=e.idx,p=e.ruleStack,f=e.occurrenceStack;if(N3t(r))continue;const g=r[0];if(g===i){const e={idx:d,def:U4t(r),ruleStack:q4t(p),occurrenceStack:q4t(f)};h.push(e)}else if(g instanceof P6t)if(d<l-1){const e=d+1;if(n(t[e],g.terminalType)){const t={idx:e,def:U4t(r),ruleStack:p,occurrenceStack:f};h.push(t)}}else{if(d!==l-1)throw Error("non exhaustive match");u.push({nextTokenType:g.terminalType,nextTokenOccurrence:g.idx,ruleStack:p,occurrenceStack:f}),s=!0}else if(g instanceof x6t){const e=h5t(p);e.push(g.nonTerminalName);const t=h5t(f);t.push(g.idx);const n={idx:d,def:g.definition.concat(o,U4t(r)),ruleStack:e,occurrenceStack:t};h.push(n)}else if(g instanceof S6t){const e={idx:d,def:U4t(r),ruleStack:p,occurrenceStack:f};h.push(e),h.push(a);const t={idx:d,def:g.definition.concat(U4t(r)),ruleStack:p,occurrenceStack:f};h.push(t)}else if(g instanceof T6t){const e=new _6t({definition:g.definition,idx:g.idx}),t={idx:d,def:g.definition.concat([e],U4t(r)),ruleStack:p,occurrenceStack:f};h.push(t)}else if(g instanceof $6t){const e=new P6t({terminalType:g.separator}),t=new _6t({definition:[e].concat(g.definition),idx:g.idx}),n={idx:d,def:g.definition.concat([t],U4t(r)),ruleStack:p,occurrenceStack:f};h.push(n)}else if(g instanceof C6t){const e={idx:d,def:U4t(r),ruleStack:p,occurrenceStack:f};h.push(e),h.push(a);const t=new P6t({terminalType:g.separator}),n=new _6t({definition:[t].concat(g.definition),idx:g.idx}),i={idx:d,def:g.definition.concat([n],U4t(r)),ruleStack:p,occurrenceStack:f};h.push(i)}else if(g instanceof _6t){const e={idx:d,def:U4t(r),ruleStack:p,occurrenceStack:f};h.push(e),h.push(a);const t=new _6t({definition:g.definition,idx:g.idx}),n={idx:d,def:g.definition.concat([t],U4t(r)),ruleStack:p,occurrenceStack:f};h.push(n)}else if(g instanceof Q6t)for(let t=g.definition.length-1;t>=0;t--){const e={idx:d,def:g.definition[t].definition.concat(U4t(r)),ruleStack:p,occurrenceStack:f};h.push(e),h.push(a)}else if(g instanceof k6t)h.push({idx:d,def:g.definition.concat(U4t(r)),ruleStack:p,occurrenceStack:f});else{if(!(g instanceof w6t))throw Error("non exhaustive match");h.push(F8t(g,d,p,f))}}return u}function F8t(e,t,n,r){const i=h5t(n);i.push(e.name);const o=h5t(r);return o.push(1),{idx:t,def:e.definition,ruleStack:i,occurrenceStack:o}}function U8t(e){if(e instanceof S6t||"Option"===e)return C8t.OPTION;if(e instanceof _6t||"Repetition"===e)return C8t.REPETITION;if(e instanceof T6t||"RepetitionMandatory"===e)return C8t.REPETITION_MANDATORY;if(e instanceof $6t||"RepetitionMandatoryWithSeparator"===e)return C8t.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof C6t||"RepetitionWithSeparator"===e)return C8t.REPETITION_WITH_SEPARATOR;if(e instanceof Q6t||"Alternation"===e)return C8t.ALTERNATION;throw Error("non exhaustive match")}function z8t(e){const{occurrence:t,rule:n,prodType:r,maxLookahead:i}=e,o=U8t(r);return o===C8t.ALTERNATION?e9t(t,n,i):t9t(t,n,o,i)}function q8t(e,t,n,r,i,o){const a=e9t(e,t,n);return o(a,r,i9t(a)?V7t:q7t,i)}function V8t(e,t,n,r,i,o){const a=t9t(e,t,i,n),s=i9t(a)?V7t:q7t;return o(a[0],s,r)}function W8t(e,t,n,r){const i=e.length,o=e3t(e,e=>e3t(e,e=>1===e.length));if(t)return function(t){const r=g3t(t,e=>e.GATE);for(let o=0;o<i;o++){const t=e[o],i=t.length,a=r[o];if(void 0===a||!1!==a.call(this))e:for(let e=0;e<i;e++){const r=t[e],i=r.length;for(let e=0;e<i;e++){const t=this.LA(e+1);if(!1===n(t,r[e]))continue e}return o}}};if(o&&!r){const t=g3t(e,e=>x1t(e)),n=r6t(t,(e,t,n)=>(Y4t(t,t=>{k3t(e,t.tokenTypeIdx)||(e[t.tokenTypeIdx]=n),Y4t(t.categoryMatches,t=>{k3t(e,t)||(e[t]=n)})}),e),{});return function(){const e=this.LA(1);return n[e.tokenTypeIdx]}}return function(){for(let t=0;t<i;t++){const r=e[t],i=r.length;e:for(let e=0;e<i;e++){const i=r[e],o=i.length;for(let e=0;e<o;e++){const t=this.LA(e+1);if(!1===n(t,i[e]))continue e}return t}}}}function j8t(e,t,n){const r=e3t(e,e=>1===e.length),i=e.length;if(r&&!n){const t=x1t(e);if(1===t.length&&N3t(t[0].categoryMatches)){const e=t[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===e}}{const e=r6t(t,(e,t,n)=>(e[t.tokenTypeIdx]=!0,Y4t(t.categoryMatches,t=>{e[t]=!0}),e),[]);return function(){const t=this.LA(1);return!0===e[t.tokenTypeIdx]}}}return function(){e:for(let n=0;n<i;n++){const r=e[n],i=r.length;for(let e=0;e<i;e++){const n=this.LA(e+1);if(!1===t(n,r[e]))continue e}return!0}return!1}}_Vt(N8t,"possiblePathsFrom"),_Vt(X8t,"nextPossibleTokensAfter"),_Vt(F8t,"expandTopLevelRule"),(Q8t=C8t||(C8t={}))[Q8t.OPTION=0]="OPTION",Q8t[Q8t.REPETITION=1]="REPETITION",Q8t[Q8t.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",Q8t[Q8t.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",Q8t[Q8t.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",Q8t[Q8t.ALTERNATION=5]="ALTERNATION",_Vt(U8t,"getProdType"),_Vt(z8t,"getLookaheadPaths"),_Vt(q8t,"buildLookaheadFuncForOr"),_Vt(V8t,"buildLookaheadFuncForOptionalProd"),_Vt(W8t,"buildAlternativesLookAheadFunc"),_Vt(j8t,"buildSingleAlternativeLookaheadFunction");var Y8t=(_Vt(re=class extends N6t{constructor(e,t,n){super(),this.topProd=e,this.targetOccurrence=t,this.targetProdType=n}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(e,t,n,r){return e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.restDef=n.concat(r),!0)}walkOption(e,t,n){this.checkIsTarget(e,C8t.OPTION,t,n)||super.walkOption(e,t,n)}walkAtLeastOne(e,t,n){this.checkIsTarget(e,C8t.REPETITION_MANDATORY,t,n)||super.walkOption(e,t,n)}walkAtLeastOneSep(e,t,n){this.checkIsTarget(e,C8t.REPETITION_MANDATORY_WITH_SEPARATOR,t,n)||super.walkOption(e,t,n)}walkMany(e,t,n){this.checkIsTarget(e,C8t.REPETITION,t,n)||super.walkOption(e,t,n)}walkManySep(e,t,n){this.checkIsTarget(e,C8t.REPETITION_WITH_SEPARATOR,t,n)||super.walkOption(e,t,n)}},"RestDefinitionFinderWalker"),re),Z8t=(_Vt(ie=class extends B6t{constructor(e,t,n){super(),this.targetOccurrence=e,this.targetProdType=t,this.targetRef=n,this.result=[]}checkIsTarget(e,t){e.idx!==this.targetOccurrence||this.targetProdType!==t||void 0!==this.targetRef&&e!==this.targetRef||(this.result=e.definition)}visitOption(e){this.checkIsTarget(e,C8t.OPTION)}visitRepetition(e){this.checkIsTarget(e,C8t.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,C8t.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,C8t.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,C8t.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,C8t.ALTERNATION)}},"InsideDefinitionFinderVisitor"),ie);function G8t(e){const t=new Array(e);for(let n=0;n<e;n++)t[n]=[];return t}function H8t(e){let t=[""];for(let n=0;n<e.length;n++){const r=e[n],i=[];for(let e=0;e<t.length;e++){const n=t[e];i.push(n+"_"+r.tokenTypeIdx);for(let e=0;e<r.categoryMatches.length;e++){const t="_"+r.categoryMatches[e];i.push(n+t)}}t=i}return t}function K8t(e,t,n){for(let r=0;r<e.length;r++){if(r===n)continue;const i=e[r];for(let e=0;e<t.length;e++){if(!0===i[t[e]])return!1}}return!0}function J8t(e,t){const n=g3t(e,e=>N8t([e],1)),r=G8t(n.length),i=g3t(n,e=>{const t={};return Y4t(e,e=>{const n=H8t(e.partialPath);Y4t(n,e=>{t[e]=!0})}),t});let o=n;for(let a=1;a<=t;a++){const e=o;o=G8t(e.length);for(let n=0;n<e.length;n++){const s=e[n];for(let e=0;e<s.length;e++){const l=s[e].partialPath,c=s[e].suffixDef,u=H8t(l);if(K8t(i,u,n)||N3t(c)||l.length===t){const e=r[n];if(!1===n9t(e,l)){e.push(l);for(let e=0;e<u.length;e++){const t=u[e];i[n][t]=!0}}}else{const e=N8t(c,a+1,l);o[n]=o[n].concat(e),Y4t(e,e=>{const t=H8t(e.partialPath);Y4t(t,e=>{i[n][e]=!0})})}}}}return r}function e9t(e,t,n,r){const i=new Z8t(e,C8t.ALTERNATION,r);return t.accept(i),J8t(i.result,n)}function t9t(e,t,n,r){const i=new Z8t(e,n);t.accept(i);const o=i.result,a=new Y8t(t,e,n).startWalking();return J8t([new k6t({definition:o}),new k6t({definition:a})],r)}function n9t(e,t){e:for(let n=0;n<e.length;n++){const r=e[n];if(r.length===t.length){for(let e=0;e<r.length;e++){const n=t[e],i=r[e];if(!1===(n===i||void 0!==i.categoryMatchesMap[n.tokenTypeIdx]))continue e}return!0}}return!1}function r9t(e,t){return e.length<t.length&&e3t(e,(e,n)=>{const r=t[n];return e===r||r.categoryMatchesMap[e.tokenTypeIdx]})}function i9t(e){return e3t(e,e=>e3t(e,e=>e3t(e,e=>N3t(e.categoryMatches))))}function o9t(e){const t=e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName});return g3t(t,e=>Object.assign({type:_en.CUSTOM_LOOKAHEAD_VALIDATION},e))}function a9t(e,t,n,r){const i=O3t(e,e=>s9t(e,n)),o=w9t(e,t,n),a=O3t(e,e=>y9t(e,n)),s=O3t(e,t=>h9t(t,e,r,n));return i.concat(o,a,s)}function s9t(e,t){const n=new u9t;e.accept(n);const r=n.allProductions,i=y3t(r,l9t),o=J3t(i,e=>e.length>1);return g3t(Q3t(o),n=>{const r=h3t(n),i=t.buildDuplicateFoundError(e,n),o=M6t(r),a={message:i,type:_en.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:o,occurrence:r.idx},s=c9t(r);return s&&(a.parameter=s),a})}function l9t(e){return`${M6t(e)}_#_${e.idx}_#_${c9t(e)}`}function c9t(e){return e instanceof P6t?e.terminalType.name:e instanceof x6t?e.nonTerminalName:""}_Vt(G8t,"initializeArrayOfArrays"),_Vt(H8t,"pathToHashKeys"),_Vt(K8t,"isUniquePrefixHash"),_Vt(J8t,"lookAheadSequenceFromAlternatives"),_Vt(e9t,"getLookaheadPathsForOr"),_Vt(t9t,"getLookaheadPathsForOptionalProd"),_Vt(n9t,"containsPath"),_Vt(r9t,"isStrictPrefixOfPath"),_Vt(i9t,"areTokenCategoriesNotUsed"),_Vt(o9t,"validateLookahead"),_Vt(a9t,"validateGrammar"),_Vt(s9t,"validateDuplicateProductions"),_Vt(l9t,"identifyProductionForDuplicates"),_Vt(c9t,"getExtraProductionArgument");var u9t=(_Vt(oe=class extends B6t{constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}},"OccurrenceValidationCollector"),oe);function h9t(e,t,n,r){const i=[];if(r6t(t,(t,n)=>n.name===e.name?t+1:t,0)>1){const t=r.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});i.push({message:t,type:_en.DUPLICATE_RULE_NAME,ruleName:e.name})}return i}function d9t(e,t,n){const r=[];let i;return R3t(t,e)||(i=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${n}<-as it is not defined in any of the super grammars `,r.push({message:i,type:_en.INVALID_RULE_OVERRIDE,ruleName:e})),r}function p9t(e,t,n,r=[]){const i=[],o=f9t(t.definition);if(N3t(o))return[];{const t=e.name;R3t(o,e)&&i.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:r}),type:_en.LEFT_RECURSION,ruleName:t});const a=M4t(o,r.concat([e])),s=O3t(a,t=>{const i=h5t(r);return i.push(t),p9t(e,t,n,i)});return i.concat(s)}}function f9t(e){let t=[];if(N3t(e))return t;const n=h3t(e);if(n instanceof x6t)t.push(n.referencedRule);else if(n instanceof k6t||n instanceof S6t||n instanceof T6t||n instanceof $6t||n instanceof C6t||n instanceof _6t)t=t.concat(f9t(n.definition));else if(n instanceof Q6t)t=x1t(g3t(n.definition,e=>f9t(e.definition)));else if(!(n instanceof P6t))throw Error("non exhaustive match");const r=L6t(n),i=e.length>1;if(r&&i){const n=U4t(e);return t.concat(f9t(n))}return t}_Vt(h9t,"validateRuleDoesNotAlreadyExist"),_Vt(d9t,"validateRuleIsOverridden"),_Vt(p9t,"validateNoLeftRecursion"),_Vt(f9t,"getFirstNoneTerminal");var g9t=(_Vt(ae=class extends B6t{constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}},"OrCollector"),ae);function m9t(e,t){const n=new g9t;e.accept(n);const r=n.alternations;return O3t(r,n=>{const r=q4t(n.definition);return O3t(r,(r,i)=>{const o=X8t([r],[],q7t,1);return N3t(o)?[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:n,emptyChoiceIdx:i}),type:_en.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:n.idx,alternative:i+1}]:[]})})}function O9t(e,t,n){const r=new g9t;e.accept(r);let i=r.alternations;i=o6t(i,e=>!0===e.ignoreAmbiguities);return O3t(i,r=>{const i=r.idx,o=r.maxLookahead||t,a=e9t(i,e,o,r),s=b9t(a,r,e,n),l=x9t(a,r,e,n);return s.concat(l)})}_Vt(m9t,"validateEmptyOrAlternative"),_Vt(O9t,"validateAmbiguousAlternationAlternatives");var A9t=(_Vt(se=class extends B6t{constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}},"RepetitionCollector"),se);function y9t(e,t){const n=new g9t;e.accept(n);const r=n.alternations;return O3t(r,n=>n.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:n}),type:_en.TOO_MANY_ALTS,ruleName:e.name,occurrence:n.idx}]:[])}function v9t(e,t,n){const r=[];return Y4t(e,e=>{const i=new A9t;e.accept(i);const o=i.allProductions;Y4t(o,i=>{const o=U8t(i),a=i.maxLookahead||t,s=t9t(i.idx,e,o,a)[0];if(N3t(x1t(s))){const t=n.buildEmptyRepetitionError({topLevelRule:e,repetition:i});r.push({message:t,type:_en.NO_NON_EMPTY_LOOKAHEAD,ruleName:e.name})}})}),r}function b9t(e,t,n,r){const i=[],o=r6t(e,(n,r,o)=>(!0===t.definition[o].ignoreAmbiguities||Y4t(r,r=>{const a=[o];Y4t(e,(e,n)=>{o!==n&&n9t(e,r)&&!0!==t.definition[n].ignoreAmbiguities&&a.push(n)}),a.length>1&&!n9t(i,r)&&(i.push(r),n.push({alts:a,path:r}))}),n),[]);return g3t(o,e=>{const i=g3t(e.alts,e=>e+1);return{message:r.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:_en.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:e.alts}})}function x9t(e,t,n,r){const i=r6t(e,(e,t,n)=>{const r=g3t(t,e=>({idx:n,path:e}));return e.concat(r)},[]);return p5t(O3t(i,e=>{if(!0===t.definition[e.idx].ignoreAmbiguities)return[];const o=e.idx,a=e.path,s=i3t(i,e=>!0!==t.definition[e.idx].ignoreAmbiguities&&e.idx<o&&r9t(e.path,a));return g3t(s,e=>{const i=[e.idx+1,o+1],a=0===t.idx?"":t.idx;return{message:r.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:_en.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:a,alternatives:i}})}))}function w9t(e,t,n){const r=[],i=g3t(t,e=>e.name);return Y4t(e,e=>{const t=e.name;if(R3t(i,t)){const i=n.buildNamespaceConflictError(e);r.push({message:i,type:_en.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t})}}),r}function k9t(e){const t=P4t(e,{errMsgProvider:T8t}),n={};return Y4t(e.rules,e=>{n[e.name]=e}),_8t(n,t.errMsgProvider)}function S9t(e){return a9t((e=P4t(e,{errMsgProvider:$8t})).rules,e.tokenTypes,e.errMsgProvider,e.grammarName)}_Vt(y9t,"validateTooManyAlts"),_Vt(v9t,"validateSomeNonEmptyLookaheadPath"),_Vt(b9t,"checkAlternativesAmbiguities"),_Vt(x9t,"checkPrefixAlternativesAmbiguities"),_Vt(w9t,"checkTerminalAndNoneTerminalsNameSpace"),_Vt(k9t,"resolveGrammar"),_Vt(S9t,"validateGrammar");var T9t="MismatchedTokenException",$9t="NoViableAltException",_9t="EarlyExitException",C9t="NotAllInputParsedException",Q9t=[T9t,$9t,_9t,C9t];function P9t(e){return R3t(Q9t,e.name)}Object.freeze(Q9t),_Vt(P9t,"isRecognitionException");var E9t=(le=class extends Error{constructor(e,t){super(e),this.token=t,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},_Vt(le,"RecognitionException"),le),R9t=(_Vt(ce=class extends E9t{constructor(e,t,n){super(e,t),this.previousToken=n,this.name=T9t}},"MismatchedTokenException"),ce),B9t=(_Vt(ue=class extends E9t{constructor(e,t,n){super(e,t),this.previousToken=n,this.name=$9t}},"NoViableAltException"),ue),I9t=(_Vt(he=class extends E9t{constructor(e,t){super(e,t),this.name=C9t}},"NotAllInputParsedException"),he),L9t=(_Vt(de=class extends E9t{constructor(e,t,n){super(e,t),this.previousToken=n,this.name=_9t}},"EarlyExitException"),de),D9t={},M9t="InRuleRecoveryException",N9t=(pe=class extends Error{constructor(e){super(e),this.name=M9t}},_Vt(pe,"InRuleRecoveryException"),pe),X9t=(fe=class{initRecoverable(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=k3t(e,"recoveryEnabled")?e.recoveryEnabled:Qen.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=F9t)}getTokenToInsert(e){const t=w8t(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return t.isInsertedInRecovery=!0,t}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,t,n,r){const i=this.findReSyncTokenType(),o=this.exportLexerState(),a=[];let s=!1;const l=this.LA(1);let c=this.LA(1);const u=_Vt(()=>{const e=this.LA(0),t=this.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:l,previous:e,ruleName:this.getCurrRuleFullName()}),n=new R9t(t,l,this.LA(0));n.resyncedTokens=q4t(a),this.SAVE_ERROR(n)},"generateErrorMessage");for(;!s;){if(this.tokenMatcher(c,r))return void u();if(n.call(this))return u(),void e.apply(this,t);this.tokenMatcher(c,i)?s=!0:(c=this.SKIP_TOKEN(),this.addToResyncTokens(c,a))}this.importLexerState(o)}shouldInRepetitionRecoveryBeTried(e,t,n){return!1!==n&&(!this.tokenMatcher(this.LA(1),e)&&(!this.isBackTracking()&&!this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t))))}getFollowsForInRuleRecovery(e,t){const n=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(n)}tryInRuleRecovery(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t)){return this.getTokenToInsert(e)}if(this.canRecoverWithSingleTokenDeletion(e)){const e=this.SKIP_TOKEN();return this.consumeToken(),e}throw new N9t("sad sad panda")}canPerformInRuleRecovery(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,t){if(!this.canTokenTypeBeInsertedInRecovery(e))return!1;if(N3t(t))return!1;const n=this.LA(1);return void 0!==c3t(t,e=>this.tokenMatcher(n,e))}canRecoverWithSingleTokenDeletion(e){if(!this.canTokenTypeBeDeletedInRecovery(e))return!1;return this.tokenMatcher(this.LA(2),e)}isInCurrentRuleReSyncSet(e){const t=this.getCurrFollowKey(),n=this.getFollowSetFromFollowKey(t);return R3t(n,e)}findReSyncTokenType(){const e=this.flattenFollowSet();let t=this.LA(1),n=2;for(;;){const r=c3t(e,e=>k8t(t,e));if(void 0!==r)return r;t=this.LA(n),n++}}getCurrFollowKey(){if(1===this.RULE_STACK.length)return D9t;const e=this.getLastExplicitRuleShortName(),t=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(n)}}buildFullFollowKeyStack(){const e=this.RULE_STACK,t=this.RULE_OCCURRENCE_STACK;return g3t(e,(n,r)=>0===r?D9t:{ruleName:this.shortRuleNameToFullName(n),idxInCallingRule:t[r],inRule:this.shortRuleNameToFullName(e[r-1])})}flattenFollowSet(){const e=g3t(this.buildFullFollowKeyStack(),e=>this.getFollowSetFromFollowKey(e));return x1t(e)}getFollowSetFromFollowKey(e){if(e===D9t)return[x8t];const t=e.ruleName+e.idxInCallingRule+V6t+e.inRule;return this.resyncFollows[t]}addToResyncTokens(e,t){return this.tokenMatcher(e,x8t)||t.push(e),t}reSyncTo(e){const t=[];let n=this.LA(1);for(;!1===this.tokenMatcher(n,e);)n=this.SKIP_TOKEN(),this.addToResyncTokens(n,t);return q4t(t)}attemptInRepetitionRecovery(e,t,n,r,i,o,a){}getCurrentGrammarPath(e,t){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:h5t(this.RULE_OCCURRENCE_STACK),lastTok:e,lastTokOccurrence:t}}getHumanReadableRuleStack(){return g3t(this.RULE_STACK,e=>this.shortRuleNameToFullName(e))}},_Vt(fe,"Recoverable"),fe);function F9t(e,t,n,r,i,o,a){const s=this.getKeyForAutomaticLookahead(r,i);let l=this.firstAfterRepMap[s];if(void 0===l){const e=this.getCurrRuleFullName();l=new o(this.getGAstProductions()[e],i).startWalking(),this.firstAfterRepMap[s]=l}let c=l.token,u=l.occurrence;const h=l.isEndOfRule;1===this.RULE_STACK.length&&h&&void 0===c&&(c=x8t,u=1),void 0!==c&&void 0!==u&&this.shouldInRepetitionRecoveryBeTried(c,u,a)&&this.tryInRepetitionRecovery(e,t,n,c)}_Vt(F9t,"attemptInRepetitionRecovery");var U9t=1024,z9t=1280,q9t=1536;function V9t(e,t,n){return n|t|e}_Vt(V9t,"getKeyForAutomaticLookahead");var W9t=(_Vt(ge=class{constructor(e){var t;this.maxLookahead=null!==(t=null==e?void 0:e.maxLookahead)&&void 0!==t?t:Qen.maxLookahead}validate(e){const t=this.validateNoLeftRecursion(e.rules);if(N3t(t)){const n=this.validateEmptyOrAlternatives(e.rules),r=this.validateAmbiguousAlternationAlternatives(e.rules,this.maxLookahead),i=this.validateSomeNonEmptyLookaheadPath(e.rules,this.maxLookahead);return[...t,...n,...r,...i]}return t}validateNoLeftRecursion(e){return O3t(e,e=>p9t(e,e,$8t))}validateEmptyOrAlternatives(e){return O3t(e,e=>m9t(e,$8t))}validateAmbiguousAlternationAlternatives(e,t){return O3t(e,e=>O9t(e,t,$8t))}validateSomeNonEmptyLookaheadPath(e,t){return v9t(e,t,$8t)}buildLookaheadForAlternation(e){return q8t(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,W8t)}buildLookaheadForOptional(e){return V8t(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,U8t(e.prodType),j8t)}},"LLkLookaheadStrategy"),ge),j9t=(_Vt(me=class{initLooksAhead(e){this.dynamicTokensEnabled=k3t(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:Qen.dynamicTokensEnabled,this.maxLookahead=k3t(e,"maxLookahead")?e.maxLookahead:Qen.maxLookahead,this.lookaheadStrategy=k3t(e,"lookaheadStrategy")?e.lookaheadStrategy:new W9t({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){Y4t(e,e=>{this.TRACE_INIT(`${e.name} Rule Lookahead`,()=>{const{alternation:t,repetition:n,option:r,repetitionMandatory:i,repetitionMandatoryWithSeparator:o,repetitionWithSeparator:a}=Z9t(e);Y4t(t,t=>{const n=0===t.idx?"":t.idx;this.TRACE_INIT(`${M6t(t)}${n}`,()=>{const n=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:t.idx,rule:e,maxLookahead:t.maxLookahead||this.maxLookahead,hasPredicates:t.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),r=V9t(this.fullRuleNameToShort[e.name],256,t.idx);this.setLaFuncCache(r,n)})}),Y4t(n,t=>{this.computeLookaheadFunc(e,t.idx,768,"Repetition",t.maxLookahead,M6t(t))}),Y4t(r,t=>{this.computeLookaheadFunc(e,t.idx,512,"Option",t.maxLookahead,M6t(t))}),Y4t(i,t=>{this.computeLookaheadFunc(e,t.idx,U9t,"RepetitionMandatory",t.maxLookahead,M6t(t))}),Y4t(o,t=>{this.computeLookaheadFunc(e,t.idx,q9t,"RepetitionMandatoryWithSeparator",t.maxLookahead,M6t(t))}),Y4t(a,t=>{this.computeLookaheadFunc(e,t.idx,z9t,"RepetitionWithSeparator",t.maxLookahead,M6t(t))})})})}computeLookaheadFunc(e,t,n,r,i,o){this.TRACE_INIT(`${o}${0===t?"":t}`,()=>{const o=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:t,rule:e,maxLookahead:i||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:r}),a=V9t(this.fullRuleNameToShort[e.name],n,t);this.setLaFuncCache(a,o)})}getKeyForAutomaticLookahead(e,t){return V9t(this.getLastExplicitRuleShortName(),e,t)}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,t){this.lookAheadFuncsCache.set(e,t)}},"LooksAhead"),me),Y9t=new(_Vt(Oe=class extends B6t{constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}},"DslMethodsCollectorVisitor"),Oe);function Z9t(e){Y9t.reset(),e.accept(Y9t);const t=Y9t.dslMethods;return Y9t.reset(),t}function G9t(e,t){!0===isNaN(e.startOffset)?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset==!0&&(e.endOffset=t.endOffset)}function H9t(e,t){!0===isNaN(e.startOffset)?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset==!0&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function K9t(e,t,n){void 0===e.children[n]?e.children[n]=[t]:e.children[n].push(t)}function J9t(e,t,n){void 0===e.children[t]?e.children[t]=[n]:e.children[t].push(n)}_Vt(Z9t,"collectMethods"),_Vt(G9t,"setNodeLocationOnlyOffset"),_Vt(H9t,"setNodeLocationFull"),_Vt(K9t,"addTerminalToCst"),_Vt(J9t,"addNoneTerminalToCst");var een,ten;function nen(e,t){Object.defineProperty(e,"name",{enumerable:!1,configurable:!0,writable:!1,value:t})}function ren(e,t){const n=VJt(e),r=n.length;for(let i=0;i<r;i++){const r=e[n[i]],o=r.length;for(let e=0;e<o;e++){const n=r[e];void 0===n.tokenTypeIdx&&this[n.name](n.children,t)}}}function ien(e,t){const n=_Vt(function(){},"derivedConstructor");nen(n,e+"BaseSemantics");const r={visit:_Vt(function(e,t){if(pHt(e)&&(e=e[0]),!V3t(e))return this[e.name](e.children,t)},"visit"),validateVisitor:_Vt(function(){const e=aen(this,t);if(!N3t(e)){const t=g3t(e,e=>e.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:\n\t${t.join("\n\n").replace(/\n/g,"\n\t")}`)}},"validateVisitor")};return n.prototype=r,n.prototype.constructor=n,n._RULE_NAMES=t,n}function oen(e,t,n){const r=_Vt(function(){},"derivedConstructor");nen(r,e+"BaseSemanticsWithDefaults");const i=Object.create(n.prototype);return Y4t(t,e=>{i[e]=ren}),r.prototype=i,r.prototype.constructor=r,r}function aen(e,t){return sen(e,t)}function sen(e,t){const n=i3t(t,t=>!1===XHt(e[t])),r=g3t(n,t=>({msg:`Missing visitor method: <${t}> on ${e.constructor.name} CST Visitor.`,type:een.MISSING_METHOD,methodName:t}));return p5t(r)}_Vt(nen,"defineNameProp"),_Vt(ren,"defaultVisit"),_Vt(ien,"createBaseSemanticVisitorConstructor"),_Vt(oen,"createBaseVisitorConstructorWithDefaults"),(ten=een||(een={}))[ten.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",ten[ten.MISSING_METHOD=1]="MISSING_METHOD",_Vt(aen,"validateVisitor"),_Vt(sen,"validateMissingCstMethods");var len=(_Vt(Ae=class{initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=k3t(e,"nodeLocationTracking")?e.nodeLocationTracking:Qen.nodeLocationTracking,this.outputCst)if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=H9t,this.setNodeLocationFromNode=H9t,this.cstPostRule=dKt,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=dKt,this.setNodeLocationFromNode=dKt,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=G9t,this.setNodeLocationFromNode=G9t,this.cstPostRule=dKt,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=dKt,this.setNodeLocationFromNode=dKt,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else{if(!/none/i.test(this.nodeLocationTracking))throw Error(`Invalid <nodeLocationTracking> config option: "${e.nodeLocationTracking}"`);this.setNodeLocationFromToken=dKt,this.setNodeLocationFromNode=dKt,this.cstPostRule=dKt,this.setInitialNodeLocation=dKt}else this.cstInvocationStateUpdate=dKt,this.cstFinallyStateUpdate=dKt,this.cstPostTerminal=dKt,this.cstPostNonTerminal=dKt,this.cstPostRule=dKt}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(e){const t=this.LA(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(e){const t={name:e,children:Object.create(null)};this.setInitialNodeLocation(t),this.CST_STACK.push(t)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){const t=this.LA(0),n=e.location;n.startOffset<=t.startOffset==!0?(n.endOffset=t.endOffset,n.endLine=t.endLine,n.endColumn=t.endColumn):(n.startOffset=NaN,n.startLine=NaN,n.startColumn=NaN)}cstPostRuleOnlyOffset(e){const t=this.LA(0),n=e.location;n.startOffset<=t.startOffset==!0?n.endOffset=t.endOffset:n.startOffset=NaN}cstPostTerminal(e,t){const n=this.CST_STACK[this.CST_STACK.length-1];K9t(n,t,e),this.setNodeLocationFromToken(n.location,t)}cstPostNonTerminal(e,t){const n=this.CST_STACK[this.CST_STACK.length-1];J9t(n,t,e),this.setNodeLocationFromNode(n.location,e.location)}getBaseCstVisitorConstructor(){if(V3t(this.baseCstVisitorConstructor)){const e=ien(this.className,VJt(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(V3t(this.baseCstVisitorWithDefaultsConstructor)){const e=oen(this.className,VJt(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){const e=this.RULE_STACK;return e[e.length-1]}getPreviousExplicitRuleShortName(){const e=this.RULE_STACK;return e[e.length-2]}getLastExplicitRuleOccurrenceIndex(){const e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]}},"TreeBuilder"),Ae),cen=(_Vt(ye=class{initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(!0!==this.selfAnalysisDone)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):$en}LA(e){const t=this.currIdx+e;return t<0||this.tokVectorLength<=t?$en:this.tokVector[t]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}},"LexerAdapter"),ye),uen=(ve=class{ACTION(e){return e.call(this)}consume(e,t,n){return this.consumeInternal(t,e,n)}subrule(e,t,n){return this.subruleInternal(t,e,n)}option(e,t){return this.optionInternal(t,e)}or(e,t){return this.orInternal(t,e)}many(e,t){return this.manyInternal(e,t)}atLeastOne(e,t){return this.atLeastOneInternal(e,t)}CONSUME(e,t){return this.consumeInternal(e,0,t)}CONSUME1(e,t){return this.consumeInternal(e,1,t)}CONSUME2(e,t){return this.consumeInternal(e,2,t)}CONSUME3(e,t){return this.consumeInternal(e,3,t)}CONSUME4(e,t){return this.consumeInternal(e,4,t)}CONSUME5(e,t){return this.consumeInternal(e,5,t)}CONSUME6(e,t){return this.consumeInternal(e,6,t)}CONSUME7(e,t){return this.consumeInternal(e,7,t)}CONSUME8(e,t){return this.consumeInternal(e,8,t)}CONSUME9(e,t){return this.consumeInternal(e,9,t)}SUBRULE(e,t){return this.subruleInternal(e,0,t)}SUBRULE1(e,t){return this.subruleInternal(e,1,t)}SUBRULE2(e,t){return this.subruleInternal(e,2,t)}SUBRULE3(e,t){return this.subruleInternal(e,3,t)}SUBRULE4(e,t){return this.subruleInternal(e,4,t)}SUBRULE5(e,t){return this.subruleInternal(e,5,t)}SUBRULE6(e,t){return this.subruleInternal(e,6,t)}SUBRULE7(e,t){return this.subruleInternal(e,7,t)}SUBRULE8(e,t){return this.subruleInternal(e,8,t)}SUBRULE9(e,t){return this.subruleInternal(e,9,t)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,t,n=Pen){if(R3t(this.definedRulesNames,e)){const t={message:$8t.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:_en.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(t)}this.definedRulesNames.push(e);const r=this.defineRule(e,t,n);return this[e]=r,r}OVERRIDE_RULE(e,t,n=Pen){const r=d9t(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(r);const i=this.defineRule(e,t,n);return this[e]=i,i}BACKTRACK(e,t){return function(){this.isBackTrackingStack.push(1);const n=this.saveRecogState();try{return e.apply(this,t),!0}catch(jk){if(P9t(jk))return!1;throw jk}finally{this.reloadRecogState(n),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return E6t(Q3t(this.gastProductionsCache))}},_Vt(ve,"RecognizerApi"),ve),hen=(be=class{initRecognizerEngine(e,t){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=V7t,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},k3t(t,"serializedGrammar"))throw Error("The Parser's configuration can no longer contain a <serializedGrammar> property.\n\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0\n\tFor Further details.");if(pHt(e)){if(N3t(e))throw Error("A Token Vocabulary cannot be empty.\n\tNote that the first argument for the parser constructor\n\tis no longer a Token vector (since v4.0).");if("number"==typeof e[0].startOffset)throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0\n\tFor Further details.")}if(pHt(e))this.tokensMap=r6t(e,(e,t)=>(e[t.name]=t,e),{});else if(k3t(e,"modes")&&e3t(x1t(Q3t(e.modes)),i8t)){const t=x1t(Q3t(e.modes)),n=f6t(t);this.tokensMap=r6t(n,(e,t)=>(e[t.name]=t,e),{})}else{if(!SHt(e))throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap=h5t(e)}this.tokensMap.EOF=x8t;const n=k3t(e,"modes")?x1t(Q3t(e.modes)):Q3t(e),r=e3t(n,e=>N3t(e.categoryMatches));this.tokenMatcher=r?V7t:q7t,Y7t(Q3t(this.tokensMap))}defineRule(e,t,n){if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called'\nMake sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);const r=k3t(n,"resyncEnabled")?n.resyncEnabled:Pen.resyncEnabled,i=k3t(n,"recoveryValueFunc")?n.recoveryValueFunc:Pen.recoveryValueFunc,o=this.ruleShortNameIdx<<12;let a;this.ruleShortNameIdx++,this.shortRuleNameToFull[o]=e,this.fullRuleNameToShort[e]=o,a=!0===this.outputCst?_Vt(function(...n){try{this.ruleInvocationStateUpdate(o,e,this.subruleIdx),t.apply(this,n);const r=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(r),r}catch(jk){return this.invokeRuleCatch(jk,r,i)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTry"):_Vt(function(...n){try{return this.ruleInvocationStateUpdate(o,e,this.subruleIdx),t.apply(this,n)}catch(jk){return this.invokeRuleCatch(jk,r,i)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTryCst");return Object.assign(a,{ruleName:e,originalGrammarAction:t})}invokeRuleCatch(e,t,n){const r=1===this.RULE_STACK.length,i=t&&!this.isBackTracking()&&this.recoveryEnabled;if(P9t(e)){const t=e;if(i){const r=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(r)){if(t.resyncedTokens=this.reSyncTo(r),this.outputCst){const e=this.CST_STACK[this.CST_STACK.length-1];return e.recoveredNode=!0,e}return n(e)}if(this.outputCst){const e=this.CST_STACK[this.CST_STACK.length-1];e.recoveredNode=!0,t.partialCstResult=e}throw t}if(r)return this.moveToTerminatedState(),n(e);throw t}throw e}optionInternal(e,t){const n=this.getKeyForAutomaticLookahead(512,t);return this.optionInternalLogic(e,t,n)}optionInternalLogic(e,t,n){let r,i=this.getLaFuncFromCache(n);if("function"!=typeof e){r=e.DEF;const t=e.GATE;if(void 0!==t){const e=i;i=_Vt(()=>t.call(this)&&e.call(this),"lookAheadFunc")}}else r=e;if(!0===i.call(this))return r.call(this)}atLeastOneInternal(e,t){const n=this.getKeyForAutomaticLookahead(U9t,e);return this.atLeastOneInternalLogic(e,t,n)}atLeastOneInternalLogic(e,t,n){let r,i=this.getLaFuncFromCache(n);if("function"!=typeof t){r=t.DEF;const e=t.GATE;if(void 0!==e){const t=i;i=_Vt(()=>e.call(this)&&t.call(this),"lookAheadFunc")}}else r=t;if(!0!==i.call(this))throw this.raiseEarlyExitException(e,C8t.REPETITION_MANDATORY,t.ERR_MSG);{let e=this.doSingleRepetition(r);for(;!0===i.call(this)&&!0===e;)e=this.doSingleRepetition(r)}this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],i,U9t,e,D8t)}atLeastOneSepFirstInternal(e,t){const n=this.getKeyForAutomaticLookahead(q9t,e);this.atLeastOneSepFirstInternalLogic(e,t,n)}atLeastOneSepFirstInternalLogic(e,t,n){const r=t.DEF,i=t.SEP;if(!0!==this.getLaFuncFromCache(n).call(this))throw this.raiseEarlyExitException(e,C8t.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG);{r.call(this);const t=_Vt(()=>this.tokenMatcher(this.LA(1),i),"separatorLookAheadFunc");for(;!0===this.tokenMatcher(this.LA(1),i);)this.CONSUME(i),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,r,M8t],t,q9t,e,M8t)}}manyInternal(e,t){const n=this.getKeyForAutomaticLookahead(768,e);return this.manyInternalLogic(e,t,n)}manyInternalLogic(e,t,n){let r,i=this.getLaFuncFromCache(n);if("function"!=typeof t){r=t.DEF;const e=t.GATE;if(void 0!==e){const t=i;i=_Vt(()=>e.call(this)&&t.call(this),"lookaheadFunction")}}else r=t;let o=!0;for(;!0===i.call(this)&&!0===o;)o=this.doSingleRepetition(r);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],i,768,e,I8t,o)}manySepFirstInternal(e,t){const n=this.getKeyForAutomaticLookahead(z9t,e);this.manySepFirstInternalLogic(e,t,n)}manySepFirstInternalLogic(e,t,n){const r=t.DEF,i=t.SEP;if(!0===this.getLaFuncFromCache(n).call(this)){r.call(this);const t=_Vt(()=>this.tokenMatcher(this.LA(1),i),"separatorLookAheadFunc");for(;!0===this.tokenMatcher(this.LA(1),i);)this.CONSUME(i),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,r,L8t],t,z9t,e,L8t)}}repetitionSepSecondInternal(e,t,n,r,i){for(;n();)this.CONSUME(t),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,n,r,i],n,q9t,e,i)}doSingleRepetition(e){const t=this.getLexerPosition();e.call(this);return this.getLexerPosition()>t}orInternal(e,t){const n=this.getKeyForAutomaticLookahead(256,t),r=pHt(e)?e:e.DEF,i=this.getLaFuncFromCache(n).call(this,r);if(void 0!==i){return r[i].ALT.call(this)}this.raiseNoAltException(t,e.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),0===this.RULE_STACK.length&&!1===this.isAtEndOfInput()){const e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new I9t(t,e))}}subruleInternal(e,t,n){let r;try{const i=void 0!==n?n.ARGS:void 0;return this.subruleIdx=t,r=e.apply(this,i),this.cstPostNonTerminal(r,void 0!==n&&void 0!==n.LABEL?n.LABEL:e.ruleName),r}catch(jk){throw this.subruleInternalError(jk,n,e.ruleName)}}subruleInternalError(e,t,n){throw P9t(e)&&void 0!==e.partialCstResult&&(this.cstPostNonTerminal(e.partialCstResult,void 0!==t&&void 0!==t.LABEL?t.LABEL:n),delete e.partialCstResult),e}consumeInternal(e,t,n){let r;try{const t=this.LA(1);!0===this.tokenMatcher(t,e)?(this.consumeToken(),r=t):this.consumeInternalError(e,t,n)}catch(i){r=this.consumeInternalRecovery(e,t,i)}return this.cstPostTerminal(void 0!==n&&void 0!==n.LABEL?n.LABEL:e.name,r),r}consumeInternalError(e,t,n){let r;const i=this.LA(0);throw r=void 0!==n&&n.ERR_MSG?n.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:i,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new R9t(r,t,i))}consumeInternalRecovery(e,t,n){if(!this.recoveryEnabled||"MismatchedTokenException"!==n.name||this.isBackTracking())throw n;{const i=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,i)}catch(r){throw r.name===M9t?n:r}}}saveRecogState(){const e=this.errors,t=h5t(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK}ruleInvocationStateUpdate(e,t,n){this.RULE_OCCURRENCE_STACK.push(n),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(t)}isBackTracking(){return 0!==this.isBackTrackingStack.length}getCurrRuleFullName(){const e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),x8t)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}},_Vt(be,"RecognizerEngine"),be),den=(xe=class{initErrorHandler(e){this._errors=[],this.errorMessageProvider=k3t(e,"errorMessageProvider")?e.errorMessageProvider:Qen.errorMessageProvider}SAVE_ERROR(e){if(P9t(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:h5t(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return h5t(this._errors)}set errors(e){this._errors=e}raiseEarlyExitException(e,t,n){const r=this.getCurrRuleFullName(),i=t9t(e,this.getGAstProductions()[r],t,this.maxLookahead)[0],o=[];for(let s=1;s<=this.maxLookahead;s++)o.push(this.LA(s));const a=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:i,actual:o,previous:this.LA(0),customUserDescription:n,ruleName:r});throw this.SAVE_ERROR(new L9t(a,this.LA(1),this.LA(0)))}raiseNoAltException(e,t){const n=this.getCurrRuleFullName(),r=e9t(e,this.getGAstProductions()[n],this.maxLookahead),i=[];for(let s=1;s<=this.maxLookahead;s++)i.push(this.LA(s));const o=this.LA(0),a=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:r,actual:i,previous:o,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new B9t(a,this.LA(1),o))}},_Vt(xe,"ErrorHandler"),xe),pen=(_Vt(we=class{initContentAssist(){}computeContentAssist(e,t){const n=this.gastProductionsCache[e];if(V3t(n))throw Error(`Rule ->${e}<- does not exist in this grammar.`);return X8t([n],t,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(e){const t=h3t(e.ruleStack),n=this.getGAstProductions()[t];return new R8t(n,e).startWalking()}},"ContentAssist"),we),fen={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(fen);var gen=!0,men=Math.pow(2,8)-1,Oen=v8t({name:"RECORDING_PHASE_TOKEN",pattern:c8t.NA});Y7t([Oen]);var Aen=w8t(Oen,"This IToken indicates the Parser is in Recording Phase\n\tSee: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details",-1,-1,-1,-1,-1,-1);Object.freeze(Aen);var yen={name:"This CSTNode indicates the Parser is in Recording Phase\n\tSee: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details",children:{}},ven=(ke=class{initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let e=0;e<10;e++){const t=e>0?e:"";this[`CONSUME${t}`]=function(t,n){return this.consumeInternalRecord(t,e,n)},this[`SUBRULE${t}`]=function(t,n){return this.subruleInternalRecord(t,e,n)},this[`OPTION${t}`]=function(t){return this.optionInternalRecord(t,e)},this[`OR${t}`]=function(t){return this.orInternalRecord(t,e)},this[`MANY${t}`]=function(t){this.manyInternalRecord(e,t)},this[`MANY_SEP${t}`]=function(t){this.manySepFirstInternalRecord(e,t)},this[`AT_LEAST_ONE${t}`]=function(t){this.atLeastOneInternalRecord(e,t)},this[`AT_LEAST_ONE_SEP${t}`]=function(t){this.atLeastOneSepFirstInternalRecord(e,t)}}this.consume=function(e,t,n){return this.consumeInternalRecord(t,e,n)},this.subrule=function(e,t,n){return this.subruleInternalRecord(t,e,n)},this.option=function(e,t){return this.optionInternalRecord(t,e)},this.or=function(e,t){return this.orInternalRecord(t,e)},this.many=function(e,t){this.manyInternalRecord(e,t)},this.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{const e=this;for(let t=0;t<10;t++){const n=t>0?t:"";delete e[`CONSUME${n}`],delete e[`SUBRULE${n}`],delete e[`OPTION${n}`],delete e[`OR${n}`],delete e[`MANY${n}`],delete e[`MANY_SEP${n}`],delete e[`AT_LEAST_ONE${n}`],delete e[`AT_LEAST_ONE_SEP${n}`]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,t){return()=>!0}LA_RECORD(e){return $en}topLevelRuleRecord(e,t){try{const n=new w6t({definition:[],name:e});return n.name=e,this.recordingProdStack.push(n),t.call(this),this.recordingProdStack.pop(),n}catch(n){if(!0!==n.KNOWN_RECORDER_ERROR)try{n.message=n.message+'\n\t This error was thrown during the "grammar recording phase" For more info see:\n\thttps://chevrotain.io/docs/guide/internals.html#grammar-recording'}catch(r){throw n}throw n}}optionInternalRecord(e,t){return ben.call(this,S6t,e,t)}atLeastOneInternalRecord(e,t){ben.call(this,T6t,t,e)}atLeastOneSepFirstInternalRecord(e,t){ben.call(this,$6t,t,e,gen)}manyInternalRecord(e,t){ben.call(this,_6t,t,e)}manySepFirstInternalRecord(e,t){ben.call(this,C6t,t,e,gen)}orInternalRecord(e,t){return xen.call(this,e,t)}subruleInternalRecord(e,t,n){if(ken(t),!e||!1===k3t(e,"ruleName")){const n=new Error(`<SUBRULE${wen(t)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}>\n inside top level rule: <${this.recordingProdStack[0].name}>`);throw n.KNOWN_RECORDER_ERROR=!0,n}const r=X4t(this.recordingProdStack),i=e.ruleName,o=new x6t({idx:t,nonTerminalName:i,label:null==n?void 0:n.LABEL,referencedRule:void 0});return r.definition.push(o),this.outputCst?yen:fen}consumeInternalRecord(e,t,n){if(ken(t),!e8t(e)){const n=new Error(`<CONSUME${wen(t)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}>\n inside top level rule: <${this.recordingProdStack[0].name}>`);throw n.KNOWN_RECORDER_ERROR=!0,n}const r=X4t(this.recordingProdStack),i=new P6t({idx:t,terminalType:e,label:null==n?void 0:n.LABEL});return r.definition.push(i),Aen}},_Vt(ke,"GastRecorder"),ke);function ben(e,t,n,r=!1){ken(n);const i=X4t(this.recordingProdStack),o=XHt(t)?t:t.DEF,a=new e({definition:[],idx:n});return r&&(a.separator=t.SEP),k3t(t,"MAX_LOOKAHEAD")&&(a.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(a),o.call(this),i.definition.push(a),this.recordingProdStack.pop(),fen}function xen(e,t){ken(t);const n=X4t(this.recordingProdStack),r=!1===pHt(e),i=!1===r?e:e.DEF,o=new Q6t({definition:[],idx:t,ignoreAmbiguities:r&&!0===e.IGNORE_AMBIGUITIES});k3t(e,"MAX_LOOKAHEAD")&&(o.maxLookahead=e.MAX_LOOKAHEAD);const a=c6t(i,e=>XHt(e.GATE));return o.hasPredicates=a,n.definition.push(o),Y4t(i,e=>{const t=new k6t({definition:[]});o.definition.push(t),k3t(e,"IGNORE_AMBIGUITIES")?t.ignoreAmbiguities=e.IGNORE_AMBIGUITIES:k3t(e,"GATE")&&(t.ignoreAmbiguities=!0),this.recordingProdStack.push(t),e.ALT.call(this),this.recordingProdStack.pop()}),fen}function wen(e){return 0===e?"":`${e}`}function ken(e){if(e<0||e>men){const t=new Error(`Invalid DSL Method idx value: <${e}>\n\tIdx value must be a none negative value smaller than ${men+1}`);throw t.KNOWN_RECORDER_ERROR=!0,t}}_Vt(ben,"recordProd"),_Vt(xen,"recordOrProd"),_Vt(wen,"getIdxSuffix"),_Vt(ken,"assertMethodIdxIsValid");var Sen=(_Vt(Se=class{initPerformanceTracer(e){if(k3t(e,"traceInitPerf")){const t=e.traceInitPerf,n="number"==typeof t;this.traceInitMaxIdent=n?t:1/0,this.traceInitPerf=n?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=Qen.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,t){if(!0===this.traceInitPerf){this.traceInitIndent++;const n=new Array(this.traceInitIndent+1).join("\t");this.traceInitIndent,this.traceInitMaxIdent;const{time:r,value:i}=O6t(t),o=r>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&o(`${n}<-- <${e}> time: ${r}ms`),this.traceInitIndent--,i}return t()}},"PerformanceTracer"),Se);function Ten(e,t){t.forEach(t=>{const n=t.prototype;Object.getOwnPropertyNames(n).forEach(r=>{if("constructor"===r)return;const i=Object.getOwnPropertyDescriptor(n,r);i&&(i.get||i.set)?Object.defineProperty(e.prototype,r,i):e.prototype[r]=t.prototype[r]})})}_Vt(Ten,"applyMixins");var $en=w8t(x8t,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze($en);var _en,Cen,Qen=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:S8t,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),Pen=Object.freeze({recoveryValueFunc:_Vt(()=>{},"recoveryValueFunc"),resyncEnabled:!0});function Een(e=void 0){return function(){return e}}(Cen=_en||(_en={}))[Cen.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",Cen[Cen.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",Cen[Cen.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",Cen[Cen.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",Cen[Cen.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",Cen[Cen.LEFT_RECURSION=5]="LEFT_RECURSION",Cen[Cen.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",Cen[Cen.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",Cen[Cen.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",Cen[Cen.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",Cen[Cen.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",Cen[Cen.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",Cen[Cen.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",Cen[Cen.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION",_Vt(Een,"EMPTY_ALT");var Ren=(_Vt(Te=class{static performSelfAnalysis(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated.\t\nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let e;this.selfAnalysisDone=!0;const t=this.className;this.TRACE_INIT("toFastProps",()=>{A6t(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),Y4t(this.definedRulesNames,e=>{const t=this[e].originalGrammarAction;let n;this.TRACE_INIT(`${e} Rule`,()=>{n=this.topLevelRuleRecord(e,t)}),this.gastProductionsCache[e]=n})}finally{this.disableRecording()}});let n=[];if(this.TRACE_INIT("Grammar Resolving",()=>{n=k9t({rules:Q3t(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(n)}),this.TRACE_INIT("Grammar Validations",()=>{if(N3t(n)&&!1===this.skipValidations){const e=S9t({rules:Q3t(this.gastProductionsCache),tokenTypes:Q3t(this.tokensMap),errMsgProvider:$8t,grammarName:t}),n=o9t({lookaheadStrategy:this.lookaheadStrategy,rules:Q3t(this.gastProductionsCache),tokenTypes:Q3t(this.tokensMap),grammarName:t});this.definitionErrors=this.definitionErrors.concat(e,n)}}),N3t(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{const e=j6t(Q3t(this.gastProductionsCache));this.resyncFollows=e}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var e,t;null===(t=(e=this.lookaheadStrategy).initialize)||void 0===t||t.call(e,{rules:Q3t(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(Q3t(this.gastProductionsCache))})),!Te.DEFER_DEFINITION_ERRORS_HANDLING&&!N3t(this.definitionErrors))throw e=g3t(this.definitionErrors,e=>e.message),new Error(`Parser Definition Errors detected:\n ${e.join("\n-------------------------------\n")}`)})}constructor(e,t){this.definitionErrors=[],this.selfAnalysisDone=!1;const n=this;if(n.initErrorHandler(t),n.initLexerAdapter(),n.initLooksAhead(t),n.initRecognizerEngine(e,t),n.initRecoverable(t),n.initTreeBuilder(t),n.initContentAssist(),n.initGastRecorder(t),n.initPerformanceTracer(t),k3t(t,"ignoredIssues"))throw new Error("The <ignoredIssues> IParserConfig property has been deprecated.\n\tPlease use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.\n\tSee: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n\tFor further details.");this.skipValidations=k3t(t,"skipValidations")?t.skipValidations:Qen.skipValidations}},"Parser"),Te);Ren.DEFER_DEFINITION_ERRORS_HANDLING=!1,Ten(Ren,[X9t,j9t,len,cen,hen,uen,den,pen,ven,Sen]);var Ben=(_Vt($e=class extends Ren{constructor(e,t=Qen){const n=h5t(t);n.outputCst=!1,super(e,n)}},"EmbeddedActionsParser"),$e);function Ien(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}_Vt(Ien,"arrayMap");var Len=Ien;function Den(){this.__data__=[],this.size=0}_Vt(Den,"listCacheClear");var Men=Den;function Nen(e,t){return e===t||e!=e&&t!=t}_Vt(Nen,"eq");var Xen=Nen;function Fen(e,t){for(var n=e.length;n--;)if(Xen(e[n][0],t))return n;return-1}_Vt(Fen,"assocIndexOf");var Uen=Fen,zen=Array.prototype.splice;function qen(e){var t=this.__data__,n=Uen(t,e);return!(n<0)&&(n==t.length-1?t.pop():zen.call(t,n,1),--this.size,!0)}_Vt(qen,"listCacheDelete");var Ven=qen;function Wen(e){var t=this.__data__,n=Uen(t,e);return n<0?void 0:t[n][1]}_Vt(Wen,"listCacheGet");var jen=Wen;function Yen(e){return Uen(this.__data__,e)>-1}_Vt(Yen,"listCacheHas");var Zen=Yen;function Gen(e,t){var n=this.__data__,r=Uen(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}_Vt(Gen,"listCacheSet");var Hen=Gen;function Ken(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_Vt(Ken,"ListCache"),Ken.prototype.clear=Men,Ken.prototype.delete=Ven,Ken.prototype.get=jen,Ken.prototype.has=Zen,Ken.prototype.set=Hen;var Jen=Ken;function etn(){this.__data__=new Jen,this.size=0}_Vt(etn,"stackClear");var ttn=etn;function ntn(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}_Vt(ntn,"stackDelete");var rtn=ntn;function itn(e){return this.__data__.get(e)}_Vt(itn,"stackGet");var otn=itn;function atn(e){return this.__data__.has(e)}_Vt(atn,"stackHas");var stn=atn,ltn="object"==typeof global&&global&&global.Object===Object&&global,ctn="object"==typeof self&&self&&self.Object===Object&&self,utn=ltn||ctn||Function("return this")(),htn=utn.Symbol,dtn=Object.prototype,ptn=dtn.hasOwnProperty,ftn=dtn.toString,gtn=htn?htn.toStringTag:void 0;function mtn(e){var t=ptn.call(e,gtn),n=e[gtn];try{e[gtn]=void 0;var r=!0}catch(jk){}var i=ftn.call(e);return r&&(t?e[gtn]=n:delete e[gtn]),i}_Vt(mtn,"getRawTag");var Otn=mtn,Atn=Object.prototype.toString;function ytn(e){return Atn.call(e)}_Vt(ytn,"objectToString");var vtn=ytn,btn=htn?htn.toStringTag:void 0;function xtn(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":btn&&btn in Object(e)?Otn(e):vtn(e)}_Vt(xtn,"baseGetTag");var wtn=xtn;function ktn(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}_Vt(ktn,"isObject");var Stn=ktn;function Ttn(e){if(!Stn(e))return!1;var t=wtn(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}_Vt(Ttn,"isFunction");var $tn=Ttn,_tn=utn["__core-js_shared__"],Ctn=function(){var e=/[^.]+$/.exec(_tn&&_tn.keys&&_tn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Qtn(e){return!!Ctn&&Ctn in e}_Vt(Qtn,"isMasked");var Ptn=Qtn,Etn=Function.prototype.toString;function Rtn(e){if(null!=e){try{return Etn.call(e)}catch(jk){}try{return e+""}catch(jk){}}return""}_Vt(Rtn,"toSource");var Btn=Rtn,Itn=/^\[object .+?Constructor\]$/,Ltn=Function.prototype,Dtn=Object.prototype,Mtn=Ltn.toString,Ntn=Dtn.hasOwnProperty,Xtn=RegExp("^"+Mtn.call(Ntn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ftn(e){return!(!Stn(e)||Ptn(e))&&($tn(e)?Xtn:Itn).test(Btn(e))}_Vt(Ftn,"baseIsNative");var Utn=Ftn;function ztn(e,t){return null==e?void 0:e[t]}_Vt(ztn,"getValue");var qtn=ztn;function Vtn(e,t){var n=qtn(e,t);return Utn(n)?n:void 0}_Vt(Vtn,"getNative");var Wtn=Vtn,jtn=Wtn(utn,"Map"),Ytn=Wtn(Object,"create");function Ztn(){this.__data__=Ytn?Ytn(null):{},this.size=0}_Vt(Ztn,"hashClear");var Gtn=Ztn;function Htn(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}_Vt(Htn,"hashDelete");var Ktn=Htn,Jtn=Object.prototype.hasOwnProperty;function enn(e){var t=this.__data__;if(Ytn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Jtn.call(t,e)?t[e]:void 0}_Vt(enn,"hashGet");var tnn=enn,nnn=Object.prototype.hasOwnProperty;function rnn(e){var t=this.__data__;return Ytn?void 0!==t[e]:nnn.call(t,e)}_Vt(rnn,"hashHas");var inn=rnn;function onn(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ytn&&void 0===t?"__lodash_hash_undefined__":t,this}_Vt(onn,"hashSet");var ann=onn;function snn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_Vt(snn,"Hash"),snn.prototype.clear=Gtn,snn.prototype.delete=Ktn,snn.prototype.get=tnn,snn.prototype.has=inn,snn.prototype.set=ann;var lnn=snn;function cnn(){this.size=0,this.__data__={hash:new lnn,map:new(jtn||Jen),string:new lnn}}_Vt(cnn,"mapCacheClear");var unn=cnn;function hnn(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}_Vt(hnn,"isKeyable");var dnn=hnn;function pnn(e,t){var n=e.__data__;return dnn(t)?n["string"==typeof t?"string":"hash"]:n.map}_Vt(pnn,"getMapData");var fnn=pnn;function gnn(e){var t=fnn(this,e).delete(e);return this.size-=t?1:0,t}_Vt(gnn,"mapCacheDelete");var mnn=gnn;function Onn(e){return fnn(this,e).get(e)}_Vt(Onn,"mapCacheGet");var Ann=Onn;function ynn(e){return fnn(this,e).has(e)}_Vt(ynn,"mapCacheHas");var vnn=ynn;function bnn(e,t){var n=fnn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}_Vt(bnn,"mapCacheSet");var xnn=bnn;function wnn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_Vt(wnn,"MapCache"),wnn.prototype.clear=unn,wnn.prototype.delete=mnn,wnn.prototype.get=Ann,wnn.prototype.has=vnn,wnn.prototype.set=xnn;var knn=wnn;function Snn(e,t){var n=this.__data__;if(n instanceof Jen){var r=n.__data__;if(!jtn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new knn(r)}return n.set(e,t),this.size=n.size,this}_Vt(Snn,"stackSet");var Tnn=Snn;function $nn(e){var t=this.__data__=new Jen(e);this.size=t.size}_Vt($nn,"Stack"),$nn.prototype.clear=ttn,$nn.prototype.delete=rtn,$nn.prototype.get=otn,$nn.prototype.has=stn,$nn.prototype.set=Tnn;var _nn=$nn;function Cnn(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}_Vt(Cnn,"setCacheAdd");var Qnn=Cnn;function Pnn(e){return this.__data__.has(e)}_Vt(Pnn,"setCacheHas");var Enn=Pnn;function Rnn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new knn;++t<n;)this.add(e[t])}_Vt(Rnn,"SetCache"),Rnn.prototype.add=Rnn.prototype.push=Qnn,Rnn.prototype.has=Enn;var Bnn=Rnn;function Inn(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}_Vt(Inn,"arraySome");var Lnn=Inn;function Dnn(e,t){return e.has(t)}_Vt(Dnn,"cacheHas");var Mnn=Dnn;function Nnn(e,t,n,r,i,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var h=-1,d=!0,p=2&n?new Bnn:void 0;for(o.set(e,t),o.set(t,e);++h<s;){var f=e[h],g=t[h];if(r)var m=a?r(g,f,h,t,e,o):r(f,g,h,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!Lnn(t,function(e,t){if(!Mnn(p,t)&&(f===e||i(f,e,n,r,o)))return p.push(t)})){d=!1;break}}else if(f!==g&&!i(f,g,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d}_Vt(Nnn,"equalArrays");var Xnn=Nnn,Fnn=utn.Uint8Array;function Unn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}_Vt(Unn,"mapToArray");var znn=Unn;function qnn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}_Vt(qnn,"setToArray");var Vnn=qnn,Wnn=htn?htn.prototype:void 0,jnn=Wnn?Wnn.valueOf:void 0;function Ynn(e,t,n,r,i,o,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new Fnn(e),new Fnn(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Xen(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=znn;case"[object Set]":var l=1&r;if(s||(s=Vnn),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=Xnn(s(e),s(t),r,i,o,a);return a.delete(e),u;case"[object Symbol]":if(jnn)return jnn.call(e)==jnn.call(t)}return!1}_Vt(Ynn,"equalByTag");var Znn=Ynn;function Gnn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}_Vt(Gnn,"arrayPush");var Hnn=Gnn,Knn=Array.isArray;function Jnn(e,t,n){var r=t(e);return Knn(e)?r:Hnn(r,n(e))}_Vt(Jnn,"baseGetAllKeys");var ern=Jnn;function trn(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}_Vt(trn,"arrayFilter");var nrn=trn;function rrn(){return[]}_Vt(rrn,"stubArray");var irn=rrn,orn=Object.prototype.propertyIsEnumerable,arn=Object.getOwnPropertySymbols,srn=arn?function(e){return null==e?[]:(e=Object(e),nrn(arn(e),function(t){return orn.call(e,t)}))}:irn;function lrn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}_Vt(lrn,"baseTimes");var crn=lrn;function urn(e){return null!=e&&"object"==typeof e}_Vt(urn,"isObjectLike");var hrn=urn;function drn(e){return hrn(e)&&"[object Arguments]"==wtn(e)}_Vt(drn,"baseIsArguments");var prn=drn,frn=Object.prototype,grn=frn.hasOwnProperty,mrn=frn.propertyIsEnumerable,Orn=prn(function(){return arguments}())?prn:function(e){return hrn(e)&&grn.call(e,"callee")&&!mrn.call(e,"callee")};function Arn(){return!1}_Vt(Arn,"stubFalse");var yrn=Arn,vrn="object"==typeof exports&&exports&&!exports.nodeType&&exports,brn=vrn&&"object"==typeof module&&module&&!module.nodeType&&module,xrn=brn&&brn.exports===vrn?utn.Buffer:void 0,wrn=(xrn?xrn.isBuffer:void 0)||yrn,krn=/^(?:0|[1-9]\d*)$/;function Srn(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&krn.test(e))&&e>-1&&e%1==0&&e<t}_Vt(Srn,"isIndex");var Trn=Srn;function $rn(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}_Vt($rn,"isLength");var _rn=$rn,Crn={};function Qrn(e){return hrn(e)&&_rn(e.length)&&!!Crn[wtn(e)]}Crn["[object Float32Array]"]=Crn["[object Float64Array]"]=Crn["[object Int8Array]"]=Crn["[object Int16Array]"]=Crn["[object Int32Array]"]=Crn["[object Uint8Array]"]=Crn["[object Uint8ClampedArray]"]=Crn["[object Uint16Array]"]=Crn["[object Uint32Array]"]=!0,Crn["[object Arguments]"]=Crn["[object Array]"]=Crn["[object ArrayBuffer]"]=Crn["[object Boolean]"]=Crn["[object DataView]"]=Crn["[object Date]"]=Crn["[object Error]"]=Crn["[object Function]"]=Crn["[object Map]"]=Crn["[object Number]"]=Crn["[object Object]"]=Crn["[object RegExp]"]=Crn["[object Set]"]=Crn["[object String]"]=Crn["[object WeakMap]"]=!1,_Vt(Qrn,"baseIsTypedArray");var Prn=Qrn;function Ern(e){return function(t){return e(t)}}_Vt(Ern,"baseUnary");var Rrn=Ern,Brn="object"==typeof exports&&exports&&!exports.nodeType&&exports,Irn=Brn&&"object"==typeof module&&module&&!module.nodeType&&module,Lrn=Irn&&Irn.exports===Brn&<n.process,Drn=function(){try{var e=Irn&&Irn.require&&Irn.require("util").types;return e||Lrn&&Lrn.binding&&Lrn.binding("util")}catch(jk){}}(),Mrn=Drn&&Drn.isTypedArray,Nrn=Mrn?Rrn(Mrn):Prn,Xrn=Object.prototype.hasOwnProperty;function Frn(e,t){var n=Knn(e),r=!n&&Orn(e),i=!n&&!r&&wrn(e),o=!n&&!r&&!i&&Nrn(e),a=n||r||i||o,s=a?crn(e.length,String):[],l=s.length;for(var c in e)!t&&!Xrn.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Trn(c,l))||s.push(c);return s}_Vt(Frn,"arrayLikeKeys");var Urn=Frn,zrn=Object.prototype;function qrn(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||zrn)}_Vt(qrn,"isPrototype");var Vrn=qrn;function Wrn(e,t){return function(n){return e(t(n))}}_Vt(Wrn,"overArg");var jrn=Wrn(Object.keys,Object),Yrn=Object.prototype.hasOwnProperty;function Zrn(e){if(!Vrn(e))return jrn(e);var t=[];for(var n in Object(e))Yrn.call(e,n)&&"constructor"!=n&&t.push(n);return t}_Vt(Zrn,"baseKeys");var Grn=Zrn;function Hrn(e){return null!=e&&_rn(e.length)&&!$tn(e)}_Vt(Hrn,"isArrayLike");var Krn=Hrn;function Jrn(e){return Krn(e)?Urn(e):Grn(e)}_Vt(Jrn,"keys");var ein=Jrn;function tin(e){return ern(e,ein,srn)}_Vt(tin,"getAllKeys");var nin=tin,rin=Object.prototype.hasOwnProperty;function iin(e,t,n,r,i,o){var a=1&n,s=nin(e),l=s.length;if(l!=nin(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:rin.call(t,u)))return!1}var h=o.get(e),d=o.get(t);if(h&&d)return h==t&&d==e;var p=!0;o.set(e,t),o.set(t,e);for(var f=a;++c<l;){var g=e[u=s[c]],m=t[u];if(r)var O=a?r(m,g,u,t,e,o):r(g,m,u,e,t,o);if(!(void 0===O?g===m||i(g,m,n,r,o):O)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var A=e.constructor,y=t.constructor;A==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof A&&A instanceof A&&"function"==typeof y&&y instanceof y||(p=!1)}return o.delete(e),o.delete(t),p}_Vt(iin,"equalObjects");var oin=iin,ain=Wtn(utn,"DataView"),sin=Wtn(utn,"Promise"),lin=Wtn(utn,"Set"),cin=Wtn(utn,"WeakMap"),uin="[object Map]",hin="[object Promise]",din="[object Set]",pin="[object WeakMap]",fin="[object DataView]",gin=Btn(ain),min=Btn(jtn),Oin=Btn(sin),Ain=Btn(lin),yin=Btn(cin),vin=wtn;(ain&&vin(new ain(new ArrayBuffer(1)))!=fin||jtn&&vin(new jtn)!=uin||sin&&vin(sin.resolve())!=hin||lin&&vin(new lin)!=din||cin&&vin(new cin)!=pin)&&(vin=_Vt(function(e){var t=wtn(e),n="[object Object]"==t?e.constructor:void 0,r=n?Btn(n):"";if(r)switch(r){case gin:return fin;case min:return uin;case Oin:return hin;case Ain:return din;case yin:return pin}return t},"getTag"));var bin=vin,xin="[object Arguments]",win="[object Array]",kin="[object Object]",Sin=Object.prototype.hasOwnProperty;function Tin(e,t,n,r,i,o){var a=Knn(e),s=Knn(t),l=a?win:bin(e),c=s?win:bin(t),u=(l=l==xin?kin:l)==kin,h=(c=c==xin?kin:c)==kin,d=l==c;if(d&&wrn(e)){if(!wrn(t))return!1;a=!0,u=!1}if(d&&!u)return o||(o=new _nn),a||Nrn(e)?Xnn(e,t,n,r,i,o):Znn(e,t,l,n,r,i,o);if(!(1&n)){var p=u&&Sin.call(e,"__wrapped__"),f=h&&Sin.call(t,"__wrapped__");if(p||f){var g=p?e.value():e,m=f?t.value():t;return o||(o=new _nn),i(g,m,n,r,o)}}return!!d&&(o||(o=new _nn),oin(e,t,n,r,i,o))}_Vt(Tin,"baseIsEqualDeep");var $in=Tin;function _in(e,t,n,r,i){return e===t||(null==e||null==t||!hrn(e)&&!hrn(t)?e!=e&&t!=t:$in(e,t,n,r,_in,i))}_Vt(_in,"baseIsEqual");var Cin=_in;function Qin(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=n[i])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var h=new _nn;if(r)var d=r(c,u,l,e,t,h);if(!(void 0===d?Cin(u,c,3,r,h):d))return!1}}return!0}_Vt(Qin,"baseIsMatch");var Pin=Qin;function Ein(e){return e==e&&!Stn(e)}_Vt(Ein,"isStrictComparable");var Rin=Ein;function Bin(e){for(var t=ein(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Rin(i)]}return t}_Vt(Bin,"getMatchData");var Iin=Bin;function Lin(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}_Vt(Lin,"matchesStrictComparable");var Din=Lin;function Min(e){var t=Iin(e);return 1==t.length&&t[0][2]?Din(t[0][0],t[0][1]):function(n){return n===e||Pin(n,e,t)}}_Vt(Min,"baseMatches");var Nin=Min;function Xin(e){return"symbol"==typeof e||hrn(e)&&"[object Symbol]"==wtn(e)}_Vt(Xin,"isSymbol");var Fin=Xin,Uin=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zin=/^\w*$/;function qin(e,t){if(Knn(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Fin(e))||(zin.test(e)||!Uin.test(e)||null!=t&&e in Object(t))}_Vt(qin,"isKey");var Vin=qin;function Win(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=_Vt(function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a},"memoized");return n.cache=new(Win.Cache||knn),n}_Vt(Win,"memoize"),Win.Cache=knn;var jin=Win;function Yin(e){var t=jin(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}_Vt(Yin,"memoizeCapped");var Zin=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Gin=/\\(\\)?/g,Hin=Yin(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Zin,function(e,n,r,i){t.push(r?i.replace(Gin,"$1"):n||e)}),t}),Kin=htn?htn.prototype:void 0,Jin=Kin?Kin.toString:void 0;function eon(e){if("string"==typeof e)return e;if(Knn(e))return Len(e,eon)+"";if(Fin(e))return Jin?Jin.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}_Vt(eon,"baseToString");var ton=eon;function non(e){return null==e?"":ton(e)}_Vt(non,"toString");var ron=non;function ion(e,t){return Knn(e)?e:Vin(e,t)?[e]:Hin(ron(e))}_Vt(ion,"castPath");var oon=ion;function aon(e){if("string"==typeof e||Fin(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}_Vt(aon,"toKey");var son=aon;function lon(e,t){for(var n=0,r=(t=oon(t,e)).length;null!=e&&n<r;)e=e[son(t[n++])];return n&&n==r?e:void 0}_Vt(lon,"baseGet");var con=lon;function uon(e,t,n){var r=null==e?void 0:con(e,t);return void 0===r?n:r}_Vt(uon,"get");var hon=uon;function don(e,t){return null!=e&&t in Object(e)}_Vt(don,"baseHasIn");var pon=don;function fon(e,t,n){for(var r=-1,i=(t=oon(t,e)).length,o=!1;++r<i;){var a=son(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&_rn(i)&&Trn(a,i)&&(Knn(e)||Orn(e))}_Vt(fon,"hasPath");var gon=fon;function mon(e,t){return null!=e&&gon(e,t,pon)}_Vt(mon,"hasIn");var Oon=mon;function Aon(e,t){return Vin(e)&&Rin(t)?Din(son(e),t):function(n){var r=hon(n,e);return void 0===r&&r===t?Oon(n,e):Cin(t,r,3)}}_Vt(Aon,"baseMatchesProperty");var yon=Aon;function von(e){return e}_Vt(von,"identity");var bon=von;function xon(e){return function(t){return null==t?void 0:t[e]}}_Vt(xon,"baseProperty");var won=xon;function kon(e){return function(t){return con(t,e)}}_Vt(kon,"basePropertyDeep");var Son=kon;function Ton(e){return Vin(e)?won(son(e)):Son(e)}_Vt(Ton,"property");var $on=Ton;function _on(e){return"function"==typeof e?e:null==e?bon:"object"==typeof e?Knn(e)?yon(e[0],e[1]):Nin(e):$on(e)}_Vt(_on,"baseIteratee");var Con=_on;function Qon(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}_Vt(Qon,"createBaseFor");var Pon=Qon();function Eon(e,t){return e&&Pon(e,t,ein)}_Vt(Eon,"baseForOwn");var Ron=Eon;function Bon(e,t){return function(n,r){if(null==n)return n;if(!Krn(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}_Vt(Bon,"createBaseEach");var Ion=Bon(Ron);function Lon(e,t){var n=-1,r=Krn(e)?Array(e.length):[];return Ion(e,function(e,i,o){r[++n]=t(e,i,o)}),r}_Vt(Lon,"baseMap");var Don=Lon;function Mon(e,t){return(Knn(e)?Len:Don)(e,Con(t))}_Vt(Mon,"map");var Non=Mon;function Xon(e,t){var n=[];return Ion(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}_Vt(Xon,"baseFilter");var Fon=Xon;function Uon(e,t){return(Knn(e)?nrn:Fon)(e,Con(t))}_Vt(Uon,"filter");var zon=Uon;function qon(e,t,n){return`${e.name}_${t}_${n}`}_Vt(qon,"buildATNKey");var Von=(_Vt(_e=class{constructor(e){this.target=e}isEpsilon(){return!1}},"AbstractTransition"),_e),Won=(_Vt(Ce=class extends Von{constructor(e,t){super(e),this.tokenType=t}},"AtomTransition"),Ce),jon=(_Vt(Qe=class extends Von{constructor(e){super(e)}isEpsilon(){return!0}},"EpsilonTransition"),Qe),Yon=(_Vt(Pe=class extends Von{constructor(e,t,n){super(e),this.rule=t,this.followState=n}isEpsilon(){return!0}},"RuleTransition"),Pe);function Zon(e){const t={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]};Gon(t,e);const n=e.length;for(let r=0;r<n;r++){const n=e[r],i=ian(t,n,n);void 0!==i&&fan(t,n,i)}return t}function Gon(e,t){const n=t.length;for(let r=0;r<n;r++){const n=t[r],i=man(e,n,void 0,{type:2}),o=man(e,n,void 0,{type:7});i.stop=o,e.ruleToStartState.set(n,i),e.ruleToStopState.set(n,o)}}function Hon(e,t,n){return n instanceof P6t?dan(e,t,n.terminalType,n):n instanceof x6t?pan(e,t,n):n instanceof Q6t?nan(e,t,n):n instanceof S6t?ran(e,t,n):n instanceof _6t?Kon(e,t,n):n instanceof C6t?Jon(e,t,n):n instanceof T6t?ean(e,t,n):n instanceof $6t?tan(e,t,n):ian(e,t,n)}function Kon(e,t,n){const r=man(e,t,n,{type:5});lan(e,r);return aan(e,t,n,can(e,t,r,n,ian(e,t,n)))}function Jon(e,t,n){const r=man(e,t,n,{type:5});lan(e,r);return aan(e,t,n,can(e,t,r,n,ian(e,t,n)),dan(e,t,n.separator,n))}function ean(e,t,n){const r=man(e,t,n,{type:4});lan(e,r);return oan(e,t,n,can(e,t,r,n,ian(e,t,n)))}function tan(e,t,n){const r=man(e,t,n,{type:4});lan(e,r);return oan(e,t,n,can(e,t,r,n,ian(e,t,n)),dan(e,t,n.separator,n))}function nan(e,t,n){const r=man(e,t,n,{type:1});lan(e,r);const i=Non(n.definition,n=>Hon(e,t,n));return can(e,t,r,n,...i)}function ran(e,t,n){const r=man(e,t,n,{type:1});lan(e,r);return san(e,t,n,can(e,t,r,n,ian(e,t,n)))}function ian(e,t,n){const r=zon(Non(n.definition,n=>Hon(e,t,n)),e=>void 0!==e);return 1===r.length?r[0]:0===r.length?void 0:han(e,r)}function oan(e,t,n,r,i){const o=r.left,a=r.right,s=man(e,t,n,{type:11});lan(e,s);const l=man(e,t,n,{type:12});return o.loopback=s,l.loopback=s,e.decisionMap[qon(t,i?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",n.idx)]=s,gan(a,s),void 0===i?(gan(s,o),gan(s,l)):(gan(s,l),gan(s,i.left),gan(i.right,o)),{left:o,right:l}}function aan(e,t,n,r,i){const o=r.left,a=r.right,s=man(e,t,n,{type:10});lan(e,s);const l=man(e,t,n,{type:12}),c=man(e,t,n,{type:9});return s.loopback=c,l.loopback=c,gan(s,o),gan(s,l),gan(a,c),void 0!==i?(gan(c,l),gan(c,i.left),gan(i.right,o)):gan(c,s),e.decisionMap[qon(t,i?"RepetitionWithSeparator":"Repetition",n.idx)]=s,{left:s,right:l}}function san(e,t,n,r){const i=r.left;return gan(i,r.right),e.decisionMap[qon(t,"Option",n.idx)]=i,r}function lan(e,t){return e.decisionStates.push(t),t.decision=e.decisionStates.length-1,t.decision}function can(e,t,n,r,...i){const o=man(e,t,r,{type:8,start:n});n.end=o;for(const s of i)void 0!==s?(gan(n,s.left),gan(s.right,o)):gan(n,o);const a={left:n,right:o};return e.decisionMap[qon(t,uan(r),r.idx)]=n,a}function uan(e){if(e instanceof Q6t)return"Alternation";if(e instanceof S6t)return"Option";if(e instanceof _6t)return"Repetition";if(e instanceof C6t)return"RepetitionWithSeparator";if(e instanceof T6t)return"RepetitionMandatory";if(e instanceof $6t)return"RepetitionMandatoryWithSeparator";throw new Error("Invalid production type encountered")}function han(e,t){const n=t.length;for(let o=0;o<n-1;o++){const n=t[o];let r;1===n.left.transitions.length&&(r=n.left.transitions[0]);const i=r instanceof Yon,a=r,s=t[o+1].left;1===n.left.type&&1===n.right.type&&void 0!==r&&(i&&a.followState===n.right||r.target===n.right)?(i?a.followState=s:r.target=s,Aan(e,n.right)):gan(n.right,s)}const r=t[0],i=t[n-1];return{left:r.left,right:i.right}}function dan(e,t,n,r){const i=man(e,t,r,{type:1}),o=man(e,t,r,{type:1});return Oan(i,new Won(o,n)),{left:i,right:o}}function pan(e,t,n){const r=n.referencedRule,i=e.ruleToStartState.get(r),o=man(e,t,n,{type:1}),a=man(e,t,n,{type:1});return Oan(o,new Yon(i,r,a)),{left:o,right:a}}function fan(e,t,n){const r=e.ruleToStartState.get(t);gan(r,n.left);const i=e.ruleToStopState.get(t);gan(n.right,i);return{left:r,right:i}}function gan(e,t){Oan(e,new jon(t))}function man(e,t,n,r){const i=Object.assign({atn:e,production:n,epsilonOnlyTransitions:!1,rule:t,transitions:[],nextTokenWithinRule:[],stateNumber:e.states.length},r);return e.states.push(i),i}function Oan(e,t){0===e.transitions.length&&(e.epsilonOnlyTransitions=t.isEpsilon()),e.transitions.push(t)}function Aan(e,t){e.states.splice(e.states.indexOf(t),1)}_Vt(Zon,"createATN"),_Vt(Gon,"createRuleStartAndStopATNStates"),_Vt(Hon,"atom"),_Vt(Kon,"repetition"),_Vt(Jon,"repetitionSep"),_Vt(ean,"repetitionMandatory"),_Vt(tan,"repetitionMandatorySep"),_Vt(nan,"alternation"),_Vt(ran,"option"),_Vt(ian,"block"),_Vt(oan,"plus"),_Vt(aan,"star"),_Vt(san,"optional"),_Vt(lan,"defineDecisionState"),_Vt(can,"makeAlts"),_Vt(uan,"getProdType"),_Vt(han,"makeBlock"),_Vt(dan,"tokenRef"),_Vt(pan,"ruleRef"),_Vt(fan,"buildRuleHandle"),_Vt(gan,"epsilon"),_Vt(man,"newState"),_Vt(Oan,"addTransition"),_Vt(Aan,"removeState");var yan={},van=(Ee=class{constructor(){this.map={},this.configs=[]}get size(){return this.configs.length}finalize(){this.map={}}add(e){const t=ban(e);t in this.map||(this.map[t]=this.configs.length,this.configs.push(e))}get elements(){return this.configs}get alts(){return Non(this.configs,e=>e.alt)}get key(){let e="";for(const t in this.map)e+=t+":";return e}},_Vt(Ee,"ATNConfigSet"),Ee);function ban(e,t=!0){return`${t?`a${e.alt}`:""}s${e.state.stateNumber}:${e.stack.map(e=>e.stateNumber.toString()).join("_")}`}function xan(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===s?a==a&&!Fin(a):n(a,s)))var s=a,l=o}return l}_Vt(ban,"getATNConfigKey"),_Vt(xan,"baseExtremum");var wan=xan;function kan(e,t){return e<t}_Vt(kan,"baseLt");var San=kan;function Tan(e){return e&&e.length?wan(e,bon,San):void 0}_Vt(Tan,"min");var $an=Tan,_an=htn?htn.isConcatSpreadable:void 0;function Can(e){return Knn(e)||Orn(e)||!!(_an&&e&&e[_an])}_Vt(Can,"isFlattenable");var Qan=Can;function Pan(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=Qan),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?Pan(s,t-1,n,r,i):Hnn(i,s):r||(i[i.length]=s)}return i}_Vt(Pan,"baseFlatten");var Ean=Pan;function Ran(e,t){return Ean(Non(e,t),1)}_Vt(Ran,"flatMap");var Ban=Ran;function Ian(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}_Vt(Ian,"baseFindIndex");var Lan=Ian;function Dan(e){return e!=e}_Vt(Dan,"baseIsNaN");var Man=Dan;function Nan(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}_Vt(Nan,"strictIndexOf");var Xan=Nan;function Fan(e,t,n){return t==t?Xan(e,t,n):Lan(e,Man,n)}_Vt(Fan,"baseIndexOf");var Uan=Fan;function zan(e,t){return!!(null==e?0:e.length)&&Uan(e,t,0)>-1}_Vt(zan,"arrayIncludes");var qan=zan;function Van(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}_Vt(Van,"arrayIncludesWith");var Wan=Van;function jan(){}_Vt(jan,"noop");var Yan=jan,Zan=lin&&1/Vnn(new lin([,-0]))[1]==1/0?function(e){return new lin(e)}:Yan;function Gan(e,t,n){var r=-1,i=qan,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=Wan;else if(o>=200){var c=t?null:Zan(e);if(c)return Vnn(c);a=!1,i=Mnn,l=new Bnn}else l=t?[]:s;e:for(;++r<o;){var u=e[r],h=t?t(u):u;if(u=n||0!==u?u:0,a&&h==h){for(var d=l.length;d--;)if(l[d]===h)continue e;t&&l.push(h),s.push(u)}else i(l,h,n)||(l!==s&&l.push(h),s.push(u))}return s}_Vt(Gan,"baseUniq");var Han=Gan;function Kan(e,t){return e&&e.length?Han(e,Con(t)):[]}_Vt(Kan,"uniqBy");var Jan=Kan;function esn(e){return(null==e?0:e.length)?Ean(e,1):[]}_Vt(esn,"flatten");var tsn=esn;function nsn(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}_Vt(nsn,"arrayEach");var rsn=nsn;function isn(e){return"function"==typeof e?e:bon}_Vt(isn,"castFunction");var osn=isn;function asn(e,t){return(Knn(e)?rsn:Ion)(e,osn(t))}_Vt(asn,"forEach");var ssn=asn,lsn=Object.prototype.hasOwnProperty;function csn(e){if(null==e)return!0;if(Krn(e)&&(Knn(e)||"string"==typeof e||"function"==typeof e.splice||wrn(e)||Nrn(e)||Orn(e)))return!e.length;var t=bin(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(Vrn(e))return!Grn(e).length;for(var n in e)if(lsn.call(e,n))return!1;return!0}_Vt(csn,"isEmpty");var usn=csn;function hsn(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}_Vt(hsn,"arrayReduce");var dsn=hsn;function psn(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}_Vt(psn,"baseReduce");var fsn=psn;function gsn(e,t,n){var r=Knn(e)?dsn:fsn,i=arguments.length<3;return r(e,Con(t),n,i,Ion)}_Vt(gsn,"reduce");var msn=gsn;function Osn(e,t){const n={};return r=>{const i=r.toString();let o=n[i];return void 0!==o||(o={atnStartState:e,decision:t,states:{}},n[i]=o),o}}_Vt(Osn,"createDFACache");var Asn=(Re=class{constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,t){this.predicates[e]=t}toString(){let e="";const t=this.predicates.length;for(let n=0;n<t;n++)e+=!0===this.predicates[n]?"1":"0";return e}},_Vt(Re,"PredicateSet"),Re),ysn=new Asn,vsn=(Be=class extends W9t{constructor(e){var t;super(),this.logging=null!==(t=null==e?void 0:e.logging)&&void 0!==t?t:e=>{}}initialize(e){this.atn=Zon(e.rules),this.dfas=xsn(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){const{prodOccurrence:t,rule:n,hasPredicates:r,dynamicTokensEnabled:i}=e,o=this.dfas,a=this.logging,s=qon(n,"Alternation",t),l=this.atn.decisionMap[s].decision,c=Non(z8t({maxLookahead:1,occurrence:t,prodType:"Alternation",rule:n}),e=>Non(e,e=>e[0]));if(bsn(c,!1)&&!i){const e=msn(c,(e,t,n)=>(ssn(t,t=>{t&&(e[t.tokenTypeIdx]=n,ssn(t.categoryMatches,t=>{e[t]=n}))}),e),{});return r?function(t){var n;const r=this.LA(1),i=e[r.tokenTypeIdx];if(void 0!==t&&void 0!==i){const e=null===(n=t[i])||void 0===n?void 0:n.GATE;if(void 0!==e&&!1===e.call(this))return}return i}:function(){const t=this.LA(1);return e[t.tokenTypeIdx]}}return r?function(e){const t=new Asn,n=void 0===e?0:e.length;for(let i=0;i<n;i++){const n=null==e?void 0:e[i].GATE;t.set(i,void 0===n||n.call(this))}const r=wsn.call(this,o,l,t,a);return"number"==typeof r?r:void 0}:function(){const e=wsn.call(this,o,l,ysn,a);return"number"==typeof e?e:void 0}}buildLookaheadForOptional(e){const{prodOccurrence:t,rule:n,prodType:r,dynamicTokensEnabled:i}=e,o=this.dfas,a=this.logging,s=qon(n,r,t),l=this.atn.decisionMap[s].decision,c=Non(z8t({maxLookahead:1,occurrence:t,prodType:r,rule:n}),e=>Non(e,e=>e[0]));if(bsn(c)&&c[0][0]&&!i){const e=c[0],t=tsn(e);if(1===t.length&&usn(t[0].categoryMatches)){const e=t[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===e}}{const e=msn(t,(e,t)=>(void 0!==t&&(e[t.tokenTypeIdx]=!0,ssn(t.categoryMatches,t=>{e[t]=!0})),e),{});return function(){const t=this.LA(1);return!0===e[t.tokenTypeIdx]}}}return function(){const e=wsn.call(this,o,l,ysn,a);return"object"!=typeof e&&0===e}}},_Vt(Be,"LLStarLookaheadStrategy"),Be);function bsn(e,t=!0){const n=new Set;for(const r of e){const e=new Set;for(const i of r){if(void 0===i){if(t)break;return!1}const r=[i.tokenTypeIdx].concat(i.categoryMatches);for(const t of r)if(n.has(t)){if(!e.has(t))return!1}else n.add(t),e.add(t)}}return!0}function xsn(e){const t=e.decisionStates.length,n=Array(t);for(let r=0;r<t;r++)n[r]=Osn(e.decisionStates[r],r);return n}function wsn(e,t,n,r){const i=e[t](n);let o=i.start;if(void 0===o){o=Lsn(i,Bsn(Dsn(i.atnStartState))),i.start=o}return ksn.apply(this,[i,o,n,r])}function ksn(e,t,n,r){let i=t,o=1;const a=[];let s=this.LA(o++);for(;;){let t=Qsn(i,s);if(void 0===t&&(t=Ssn.apply(this,[e,i,s,o,n,r])),t===yan)return Csn(a,i,s);if(!0===t.isAcceptState)return t.prediction;i=t,a.push(s),s=this.LA(o++)}}function Ssn(e,t,n,r,i,o){const a=Psn(t.configs,n,i);if(0===a.size)return Isn(e,t,n,yan),yan;let s=Bsn(a);const l=Rsn(a,i);if(void 0!==l)s.isAcceptState=!0,s.prediction=l,s.configs.uniqueAlt=l;else if(Usn(a)){const t=$an(a.alts);s.isAcceptState=!0,s.prediction=t,s.configs.uniqueAlt=t,Tsn.apply(this,[e,r,a.alts,o])}return s=Isn(e,t,n,s),s}function Tsn(e,t,n,r){const i=[];for(let a=1;a<=t;a++)i.push(this.LA(a).tokenType);const o=e.atnStartState;r($sn({topLevelRule:o.rule,ambiguityIndices:n,production:o.production,prefixPath:i}))}function $sn(e){const t=Non(e.prefixPath,e=>u8t(e)).join(", "),n=0===e.production.idx?"":e.production.idx;let r=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(", ")}> in <${_sn(e.production)}${n}> inside <${e.topLevelRule.name}> Rule,\n<${t}> may appears as a prefix path in all these alternatives.\n`;return r+="See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\nFor Further details.",r}function _sn(e){if(e instanceof x6t)return"SUBRULE";if(e instanceof S6t)return"OPTION";if(e instanceof Q6t)return"OR";if(e instanceof T6t)return"AT_LEAST_ONE";if(e instanceof $6t)return"AT_LEAST_ONE_SEP";if(e instanceof C6t)return"MANY_SEP";if(e instanceof _6t)return"MANY";if(e instanceof P6t)return"CONSUME";throw Error("non exhaustive match")}function Csn(e,t,n){const r=Ban(t.configs.elements,e=>e.state.transitions),i=Jan(r.filter(e=>e instanceof Won).map(e=>e.tokenType),e=>e.tokenTypeIdx);return{actualToken:n,possibleTokenTypes:i,tokenPath:e}}function Qsn(e,t){return e.edges[t.tokenTypeIdx]}function Psn(e,t,n){const r=new van,i=[];for(const a of e.elements){if(!1===n.is(a.alt))continue;if(7===a.state.type){i.push(a);continue}const e=a.state.transitions.length;for(let n=0;n<e;n++){const e=Esn(a.state.transitions[n],t);void 0!==e&&r.add({state:e,alt:a.alt,stack:a.stack})}}let o;if(0===i.length&&1===r.size&&(o=r),void 0===o){o=new van;for(const e of r.elements)Msn(e,o)}if(i.length>0&&!Xsn(o))for(const a of i)o.add(a);return o}function Esn(e,t){if(e instanceof Won&&k8t(t,e.tokenType))return e.target}function Rsn(e,t){let n;for(const r of e.elements)if(!0===t.is(r.alt))if(void 0===n)n=r.alt;else if(n!==r.alt)return;return n}function Bsn(e){return{configs:e,edges:{},isAcceptState:!1,prediction:-1}}function Isn(e,t,n,r){return r=Lsn(e,r),t.edges[n.tokenTypeIdx]=r,r}function Lsn(e,t){if(t===yan)return t;const n=t.configs.key,r=e.states[n];return void 0!==r?r:(t.configs.finalize(),e.states[n]=t,t)}function Dsn(e){const t=new van,n=e.transitions.length;for(let r=0;r<n;r++){Msn({state:e.transitions[r].target,alt:r,stack:[]},t)}return t}function Msn(e,t){const n=e.state;if(7===n.type){if(e.stack.length>0){const n=[...e.stack];Msn({state:n.pop(),alt:e.alt,stack:n},t)}else t.add(e);return}n.epsilonOnlyTransitions||t.add(e);const r=n.transitions.length;for(let i=0;i<r;i++){const r=Nsn(e,n.transitions[i]);void 0!==r&&Msn(r,t)}}function Nsn(e,t){if(t instanceof jon)return{state:t.target,alt:e.alt,stack:e.stack};if(t instanceof Yon){const n=[...e.stack,t.followState];return{state:t.target,alt:e.alt,stack:n}}}function Xsn(e){for(const t of e.elements)if(7===t.state.type)return!0;return!1}function Fsn(e){for(const t of e.elements)if(7!==t.state.type)return!1;return!0}function Usn(e){if(Fsn(e))return!0;const t=zsn(e.elements);return qsn(t)&&!Vsn(t)}function zsn(e){const t=new Map;for(const n of e){const e=ban(n,!1);let r=t.get(e);void 0===r&&(r={},t.set(e,r)),r[n.alt]=!0}return t}function qsn(e){for(const t of Array.from(e.values()))if(Object.keys(t).length>1)return!0;return!1}function Vsn(e){for(const t of Array.from(e.values()))if(1===Object.keys(t).length)return!0;return!1}_Vt(bsn,"isLL1Sequence"),_Vt(xsn,"initATNSimulator"),_Vt(wsn,"adaptivePredict"),_Vt(ksn,"performLookahead"),_Vt(Ssn,"computeLookaheadTarget"),_Vt(Tsn,"reportLookaheadAmbiguity"),_Vt($sn,"buildAmbiguityError"),_Vt(_sn,"getProductionDslName"),_Vt(Csn,"buildAdaptivePredictError"),_Vt(Qsn,"getExistingTargetState"),_Vt(Psn,"computeReachSet"),_Vt(Esn,"getReachableTarget"),_Vt(Rsn,"getUniqueAlt"),_Vt(Bsn,"newDFAState"),_Vt(Isn,"addDFAEdge"),_Vt(Lsn,"addDFAState"),_Vt(Dsn,"computeStartState"),_Vt(Msn,"closure"),_Vt(Nsn,"getEpsilonTarget"),_Vt(Xsn,"hasConfigInRuleStopState"),_Vt(Fsn,"allConfigsInRuleStopStates"),_Vt(Usn,"hasConflictTerminatingPrediction"),_Vt(zsn,"getConflictingAltSets"),_Vt(qsn,"hasConflictingAltSet"),_Vt(Vsn,"hasStateAssociatedWithOneAlt"),MVt();var Wsn=(_Vt(Ie=class{constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]??this.rootNode}buildRootNode(e){return this.rootNode=new Hsn(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){const t=new Zsn;return t.grammarSource=e,t.root=this.rootNode,this.current.content.push(t),this.nodeStack.push(t),t}buildLeafNode(e,t){const n=new Ysn(e.startOffset,e.image.length,pZt(e),e.tokenType,!t);return n.grammarSource=t,n.root=this.rootNode,this.current.content.push(n),n}removeNode(e){const t=e.container;if(t){const n=t.content.indexOf(e);n>=0&&t.content.splice(n,1)}}addHiddenNodes(e){const t=[];for(const i of e){const e=new Ysn(i.startOffset,i.image.length,pZt(i),i.tokenType,!0);e.root=this.rootNode,t.push(e)}let n=this.current,r=!1;if(n.content.length>0)n.content.push(...t);else{for(;n.container;){const e=n.container.content.indexOf(n);if(e>0){n.container.content.splice(e,0,...t),r=!0;break}n=n.container}r||this.rootNode.content.unshift(...t)}}construct(e){const t=this.current;"string"!=typeof e.$type||e.$infixName||(this.current.astNode=e),e.$cstNode=t;const n=this.nodeStack.pop();0===(null==n?void 0:n.content.length)&&this.removeNode(n)}},"CstNodeBuilder"),Ie),jsn=(_Vt(Le=class{get hidden(){return!1}get astNode(){var e,t;const n="string"==typeof(null==(e=this._astNode)?void 0:e.$type)?this._astNode:null==(t=this.container)?void 0:t.astNode;if(!n)throw new Error("This node has no associated AST element");return n}set astNode(e){this._astNode=e}get text(){return this.root.fullText.substring(this.offset,this.end)}},"AbstractCstNode"),Le),Ysn=(_Vt(De=class extends jsn{get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get range(){return this._range}constructor(e,t,n,r,i=!1){super(),this._hidden=i,this._offset=e,this._tokenType=r,this._length=t,this._range=n}},"LeafCstNodeImpl"),De),Zsn=(Me=class extends jsn{constructor(){super(...arguments),this.content=new Gsn(this)}get offset(){var e;return(null==(e=this.firstNonHiddenNode)?void 0:e.offset)??0}get length(){return this.end-this.offset}get end(){var e;return(null==(e=this.lastNonHiddenNode)?void 0:e.end)??0}get range(){const e=this.firstNonHiddenNode,t=this.lastNonHiddenNode;if(e&&t){if(void 0===this._rangeCache){const{range:n}=e,{range:r}=t;this._rangeCache={start:n.start,end:r.end.line<n.start.line?n.start:r.end}}return this._rangeCache}return{start:Zzt.create(0,0),end:Zzt.create(0,0)}}get firstNonHiddenNode(){for(const e of this.content)if(!e.hidden)return e;return this.content[0]}get lastNonHiddenNode(){for(let e=this.content.length-1;e>=0;e--){const t=this.content[e];if(!t.hidden)return t}return this.content[this.content.length-1]}},_Vt(Me,"CompositeCstNodeImpl"),Me),Gsn=(Ne=class extends Array{constructor(e){super(),this.parent=e,Object.setPrototypeOf(this,Ne.prototype)}push(...e){return this.addParents(e),super.push(...e)}unshift(...e){return this.addParents(e),super.unshift(...e)}splice(e,t,...n){return this.addParents(n),super.splice(e,t,...n)}addParents(e){for(const t of e)t.container=this.parent}},_Vt(Ne,"CstNodeContainer"),Ne),Hsn=(_Vt(Xe=class extends Zsn{get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super(),this._text="",this._text=e??""}},"RootCstNodeImpl"),Xe),Ksn=Symbol("Datatype");function Jsn(e){return e.$type===Ksn}_Vt(Jsn,"isDataTypeNode");var eln=_Vt(e=>e.endsWith("")?e:e+"","withRuleSuffix"),tln=(Fe=class{constructor(e){var t;this._unorderedGroups=new Map,this.allRules=new Map,this.lexer=e.parser.Lexer;const n=this.lexer.definition,r="production"===e.LanguageMetaData.mode;(null==(t=e.shared.profilers.LangiumProfiler)?void 0:t.isActive("parsing"))?this.wrapper=new lln(n,{...e.parser.ParserConfig,skipValidations:r,errorMessageProvider:e.parser.ParserErrorMessageProvider},e.shared.profilers.LangiumProfiler.createTask("parsing",e.LanguageMetaData.languageId)):this.wrapper=new sln(n,{...e.parser.ParserConfig,skipValidations:r,errorMessageProvider:e.parser.ParserErrorMessageProvider})}alternatives(e,t){this.wrapper.wrapOr(e,t)}optional(e,t){this.wrapper.wrapOption(e,t)}many(e,t){this.wrapper.wrapMany(e,t)}atLeastOne(e,t){this.wrapper.wrapAtLeastOne(e,t)}getRule(e){return this.allRules.get(e)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}},_Vt(Fe,"AbstractLangiumParser"),Fe),nln=(Ue=class extends tln{get current(){return this.stack[this.stack.length-1]}constructor(e){super(e),this.nodeBuilder=new Wsn,this.stack=[],this.assignmentMap=new Map,this.operatorPrecedence=new Map,this.linker=e.references.Linker,this.converter=e.parser.ValueConverter,this.astReflection=e.shared.AstReflection}rule(e,t){const n=this.computeRuleType(e);let r;Kjt(e)&&(r=e.name,this.registerPrecedenceMap(e));const i=this.wrapper.DEFINE_RULE(eln(e.name),this.startImplementation(n,r,t).bind(this));return this.allRules.set(e.name,i),vYt(e)&&e.entry&&(this.mainRule=i),i}registerPrecedenceMap(e){const t=e.name,n=new Map;for(let r=0;r<e.operators.precedences.length;r++){const t=e.operators.precedences[r];for(const e of t.operators)n.set(e.value,{precedence:r,rightAssoc:"right"===t.associativity})}this.operatorPrecedence.set(t,n)}computeRuleType(e){return Kjt(e)?QGt(e):e.fragment?void 0:SGt(e)?Ksn:QGt(e)}parse(e,t={}){this.nodeBuilder.buildRootNode(e);const n=this.lexerResult=this.lexer.tokenize(e);this.wrapper.input=n.tokens;const r=t.rule?this.allRules.get(t.rule):this.mainRule;if(!r)throw new Error(t.rule?`No rule found with name '${t.rule}'`:"No main rule available.");const i=this.doParse(r);return this.nodeBuilder.addHiddenNodes(n.hidden),this.unorderedGroups.clear(),this.lexerResult=void 0,ZWt(i,{deep:!0}),{value:i,lexerErrors:n.errors,lexerReport:n.report,parserErrors:this.wrapper.errors}}doParse(e){let t=this.wrapper.rule(e);if(this.stack.length>0&&(t=this.construct()),void 0===t)throw new Error("No result from parser");if(this.stack.length>0)throw new Error("Parser stack is not empty after parsing");return t}startImplementation(e,t,n){return r=>{const i=!this.isRecording()&&void 0!==e;if(i){const n={$type:e};this.stack.push(n),e===Ksn?n.value="":void 0!==t&&(n.$infixName=t)}return n(r),i?this.construct():void 0}}extractHiddenTokens(e){const t=this.lexerResult.hidden;if(!t.length)return[];const n=e.startOffset;for(let r=0;r<t.length;r++){if(t[r].startOffset>n)return t.splice(0,r)}return t.splice(0,t.length)}consume(e,t,n){const r=this.wrapper.wrapConsume(e,t);if(!this.isRecording()&&this.isValidToken(r)){const e=this.extractHiddenTokens(r);this.nodeBuilder.addHiddenNodes(e);const t=this.nodeBuilder.buildLeafNode(r,n),{assignment:i,crossRef:o}=this.getAssignment(n),a=this.current;if(i){const e=aYt(n)?r.image:this.converter.convert(r.image,t);this.assign(i.operator,i.feature,e,t,o)}else if(Jsn(a)){let e=r.image;aYt(n)||(e=this.converter.convert(e,t).toString()),a.value+=e}}}isValidToken(e){return!e.isInsertedInRecovery&&!isNaN(e.startOffset)&&"number"==typeof e.endOffset&&!isNaN(e.endOffset)}subrule(e,t,n,r,i){let o,a;this.isRecording()||n||(o=this.nodeBuilder.buildCompositeNode(r));try{a=this.wrapper.wrapSubrule(e,t,i)}finally{this.isRecording()||(void 0!==a||n||(a=this.construct()),void 0!==a&&o&&o.length>0&&this.performSubruleAssignment(a,r,o))}}performSubruleAssignment(e,t,n){const{assignment:r,crossRef:i}=this.getAssignment(t);if(r)this.assign(r.operator,r.feature,e,n,i);else if(!r){const t=this.current;if(Jsn(t))t.value+=e.toString();else if("object"==typeof e&&e){const n=this.assignWithoutOverride(e,t);this.stack.pop(),this.stack.push(n)}}}action(e,t){if(!this.isRecording()){let n=this.current;if(t.feature&&t.operator){n=this.construct(),this.nodeBuilder.removeNode(n.$cstNode);this.nodeBuilder.buildCompositeNode(t).content.push(n.$cstNode);const r={$type:e};this.stack.push(r),this.assign(t.operator,t.feature,n,n.$cstNode)}else n.$type=e}}construct(){if(this.isRecording())return;const e=this.stack.pop();return this.nodeBuilder.construct(e),"$infixName"in e?this.constructInfix(e,this.operatorPrecedence.get(e.$infixName)):Jsn(e)?this.converter.convert(e.value,e.$cstNode):(ajt(this.astReflection,e),e)}constructInfix(e,t){const n=e.parts;if(!Array.isArray(n)||0===n.length)return;const r=e.operators;if(!Array.isArray(r)||n.length<2)return n[0];let i=0,o=-1;for(let f=0;f<r.length;f++){const e=r[f],n=t.get(e)??{precedence:1/0,rightAssoc:!1};n.precedence>o?(o=n.precedence,i=f):n.precedence===o&&(n.rightAssoc||(i=f))}const a=r.slice(0,i),s=r.slice(i+1),l=n.slice(0,i+1),c=n.slice(i+1),u={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:l,operators:a},h={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:c,operators:s},d=this.constructInfix(u,t),p=this.constructInfix(h,t);return{$type:e.$type,$cstNode:e.$cstNode,left:d,operator:r[i],right:p}}getAssignment(e){if(!this.assignmentMap.has(e)){const t=GWt(e,_jt);this.assignmentMap.set(e,{assignment:t,crossRef:t&&Mjt(t.terminal)?t.terminal.isMulti?"multi":"single":void 0})}return this.assignmentMap.get(e)}assign(e,t,n,r,i){const o=this.current;let a;switch(a="single"===i&&"string"==typeof n?this.linker.buildReference(o,t,r,n):"multi"===i&&"string"==typeof n?this.linker.buildMultiReference(o,t,r,n):n,e){case"=":o[t]=a;break;case"?=":o[t]=!0;break;case"+=":Array.isArray(o[t])||(o[t]=[]),o[t].push(a)}}assignWithoutOverride(e,t){for(const[r,i]of Object.entries(t)){const t=e[r];void 0===t?e[r]=i:Array.isArray(t)&&Array.isArray(i)&&(i.push(...t),e[r]=i)}const n=e.$cstNode;return n&&(n.astNode=void 0,e.$cstNode=void 0),e}get definitionErrors(){return this.wrapper.definitionErrors}},_Vt(Ue,"LangiumParser"),Ue),rln=(_Vt(ze=class{buildMismatchTokenMessage(e){return S8t.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return S8t.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return S8t.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return S8t.buildEarlyExitMessage(e)}},"AbstractParserErrorMessageProvider"),ze),iln=(_Vt(qe=class extends rln{buildMismatchTokenMessage({expected:e,actual:t}){return`Expecting ${e.LABEL?"`"+e.LABEL+"`":e.name.endsWith(":KW")?`keyword '${e.name.substring(0,e.name.length-3)}'`:`token of type '${e.name}'`} but found \`${t.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}},"LangiumParserErrorMessageProvider"),qe),oln=(Ve=class extends tln{constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(e){this.resetState();const t=this.lexer.tokenize(e,{mode:"partial"});return this.tokens=t.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(e,t){const n=this.wrapper.DEFINE_RULE(eln(e.name),this.startImplementation(t).bind(this));return this.allRules.set(e.name,n),e.entry&&(this.mainRule=n),n}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(e){return t=>{const n=this.keepStackSize();try{e(t)}finally{this.resetStackSize(n)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){const e=this.elementStack.length;return this.stackSize=e,e}resetStackSize(e){this.removeUnexpectedElements(),this.stackSize=e}consume(e,t,n){this.wrapper.wrapConsume(e,t),this.isRecording()||(this.lastElementStack=[...this.elementStack,n],this.nextTokenIndex=this.currIdx+1)}subrule(e,t,n,r,i){this.before(r),this.wrapper.wrapSubrule(e,t,i),this.after(r)}before(e){this.isRecording()||this.elementStack.push(e)}after(e){if(!this.isRecording()){const t=this.elementStack.lastIndexOf(e);t>=0&&this.elementStack.splice(t)}}get currIdx(){return this.wrapper.currIdx}},_Vt(Ve,"LangiumCompletionParser"),Ve),aln={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new iln},sln=(We=class extends Ben{constructor(e,t){super(e,{...aln,lookaheadStrategy:t&&"maxLookahead"in t?new W9t({maxLookahead:t.maxLookahead}):new vsn({logging:t.skipValidations?()=>{}:void 0}),...t})}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,t,n){return this.RULE(e,t,n)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,t){return this.consume(e,t,void 0)}wrapSubrule(e,t,n){return this.subrule(e,t,{ARGS:[n]})}wrapOr(e,t){this.or(e,t)}wrapOption(e,t){this.option(e,t)}wrapMany(e,t){this.many(e,t)}wrapAtLeastOne(e,t){this.atLeastOne(e,t)}rule(e){return e.call(this,{})}},_Vt(We,"ChevrotainWrapper"),We),lln=(je=class extends sln{constructor(e,t,n){super(e,t),this.task=n}rule(e){this.task.start(),this.task.startSubTask(this.ruleName(e));try{return super.rule(e)}finally{this.task.stopSubTask(this.ruleName(e)),this.task.stop()}}ruleName(e){return e.ruleName}subrule(e,t,n){this.task.startSubTask(this.ruleName(t));try{return super.subrule(e,t,n)}finally{this.task.stopSubTask(this.ruleName(t))}}},_Vt(je,"ProfilerWrapper"),je);function cln(e,t,n){return uln({parser:t,tokens:n,ruleNames:new Map},e),t}function uln(e,t){const n=sGt(t,!1),r=VWt(t.rules).filter(vYt).filter(e=>n.has(e));for(const o of r){const t={...e,consume:1,optional:1,subrule:1,many:1,or:1};e.parser.rule(o,dln(t,o.definition))}const i=VWt(t.rules).filter(Kjt).filter(e=>n.has(e));for(const o of i)e.parser.rule(o,hln(e,o))}function hln(e,t){const n=t.call.rule.ref;if(!n)throw new Error("Could not resolve reference to infix operator rule: "+t.call.rule.$refText);if(XYt(n))throw new Error("Cannot use terminal rule in infix expression");const r=t.operators.precedences.flatMap(e=>e.operators),i={$type:"Group",elements:[]},o={$container:i,$type:"Assignment",feature:"parts",operator:"+=",terminal:t.call},a={$container:i,$type:"Group",elements:[],cardinality:"*"};i.elements.push(o,a);const s={$container:a,$type:"Assignment",feature:"operators",operator:"+=",terminal:{$type:"Alternatives",elements:r}},l={...o,$container:a};a.elements.push(s,l);const c=r.map(t=>e.tokens[t.value]),u=c.map((t,n)=>({ALT:_Vt(()=>e.parser.consume(n,t,s),"ALT")}));let h;return t=>{h??(h=kln(e,n)),e.parser.subrule(0,h,!1,o,t),e.parser.many(0,{DEF:_Vt(()=>{e.parser.alternatives(0,u),e.parser.subrule(1,h,!1,l,t)},"DEF")})}}function dln(e,t,n=!1){let r;if(aYt(t))r=xln(e,t);else if(vjt(t))r=pln(e,t);else if(_jt(t))r=dln(e,t.terminal);else if(Mjt(t))r=bln(e,t);else if(_Yt(t))r=fln(e,t);else if(xjt(t))r=Oln(e,t);else if(KYt(t))r=Aln(e,t);else if(Yjt(t))r=yln(e,t);else{if(!Ujt(t))throw new PZt(t.$cstNode,`Unexpected element type: ${t.$type}`);{const n=e.consume++;r=_Vt(()=>e.parser.consume(n,x8t,t),"method")}}return wln(e,n?void 0:vln(t),r,t.cardinality)}function pln(e,t){const n=QGt(t);return()=>e.parser.action(n,t)}function fln(e,t){const n=t.rule.ref;if(fjt(n)){const r=e.subrule++,i=vYt(n)&&n.fragment,o=t.arguments.length>0?gln(n,t.arguments):()=>({});let a;return s=>{a??(a=kln(e,n)),e.parser.subrule(r,a,i,t,o(s))}}if(XYt(n)){const r=e.consume++,i=Tln(e,n.name);return()=>e.parser.consume(r,i,t)}if(!n)throw new PZt(t.$cstNode,`Undefined rule: ${t.rule.$refText}`);EZt()}function gln(e,t){if(t.some(e=>e.calledByName)){const e=t.map(e=>{var t,n;return{parameterName:null==(n=null==(t=e.parameter)?void 0:t.ref)?void 0:n.name,predicate:mln(e.value)}});return t=>{const n={};for(const{parameterName:r,predicate:i}of e)r&&(n[r]=i(t));return n}}{const n=t.map(e=>mln(e.value));return t=>{const r={};for(let i=0;i<n.length;i++)if(i<e.parameters.length){const o=e.parameters[i].name,a=n[i];r[o]=a(t)}return r}}}function mln(e){if(Xjt(e)){const t=mln(e.left),n=mln(e.right);return e=>t(e)||n(e)}if(Ljt(e)){const t=mln(e.left),n=mln(e.right);return e=>t(e)&&n(e)}if(dYt(e)){const t=mln(e.value);return e=>!t(e)}if(AYt(e)){const t=e.parameter.ref.name;return e=>void 0!==e&&!0===e[t]}if(Qjt(e)){const t=Boolean(e.true);return()=>t}EZt()}function Oln(e,t){if(1===t.elements.length)return dln(e,t.elements[0]);{const n=[];for(const i of t.elements){const t={ALT:dln(e,i,!0)},r=vln(i);r&&(t.GATE=mln(r)),n.push(t)}const r=e.or++;return t=>e.parser.alternatives(r,n.map(e=>{const n={ALT:_Vt(()=>e.ALT(t),"ALT")},r=e.GATE;return r&&(n.GATE=()=>r(t)),n}))}}function Aln(e,t){if(1===t.elements.length)return dln(e,t.elements[0]);const n=[];for(const s of t.elements){const t={ALT:dln(e,s,!0)},r=vln(s);r&&(t.GATE=mln(r)),n.push(t)}const r=e.or++,i=_Vt((e,t)=>`uGroup_${e}_${t.getRuleStack().join("-")}`,"idFunc"),o=_Vt(t=>e.parser.alternatives(r,n.map((n,o)=>{const a={ALT:_Vt(()=>!0,"ALT")},s=e.parser;a.ALT=()=>{if(n.ALT(t),!s.isRecording()){const e=i(r,s);s.unorderedGroups.get(e)||s.unorderedGroups.set(e,[]);const t=s.unorderedGroups.get(e);void 0===(null==t?void 0:t[o])&&(t[o]=!0)}};const l=n.GATE;return a.GATE=l?()=>l(t):()=>{const e=s.unorderedGroups.get(i(r,s));return!(null==e?void 0:e[o])},a})),"alternatives"),a=wln(e,vln(t),o,"*");return t=>{a(t),e.parser.isRecording()||e.parser.unorderedGroups.delete(i(r,e.parser))}}function yln(e,t){const n=t.elements.map(t=>dln(e,t));return e=>n.forEach(t=>t(e))}function vln(e){if(Yjt(e))return e.guardCondition}function bln(e,t,n=t.terminal){if(n){if(_Yt(n)&&vYt(n.rule.ref)){const r=n.rule.ref,i=e.subrule++;let o;return n=>{o??(o=kln(e,r)),e.parser.subrule(i,o,!1,t,n)}}if(_Yt(n)&&XYt(n.rule.ref)){const r=e.consume++,i=Tln(e,n.rule.ref.name);return()=>e.parser.consume(r,i,t)}if(aYt(n)){const r=e.consume++,i=Tln(e,n.value);return()=>e.parser.consume(r,i,t)}throw new Error("Could not build cross reference parser")}{if(!t.type.ref)throw new Error("Could not resolve reference to type: "+t.type.$refText);const n=yGt(t.type.ref),r=null==n?void 0:n.terminal;if(!r)throw new Error("Could not find name assignment for type: "+QGt(t.type.ref));return bln(e,t,r)}}function xln(e,t){const n=e.consume++,r=e.tokens[t.value];if(!r)throw new Error("Could not find token for keyword: "+t.value);return()=>e.parser.consume(n,r,t)}function wln(e,t,n,r){const i=t&&mln(t);if(!r){if(i){const t=e.or++;return r=>e.parser.alternatives(t,[{ALT:_Vt(()=>n(r),"ALT"),GATE:_Vt(()=>i(r),"GATE")},{ALT:Een(),GATE:_Vt(()=>!i(r),"GATE")}])}return n}if("*"===r){const t=e.many++;return r=>e.parser.many(t,{DEF:_Vt(()=>n(r),"DEF"),GATE:i?()=>i(r):void 0})}if("+"===r){const t=e.many++;if(i){const r=e.or++;return o=>e.parser.alternatives(r,[{ALT:_Vt(()=>e.parser.atLeastOne(t,{DEF:_Vt(()=>n(o),"DEF")}),"ALT"),GATE:_Vt(()=>i(o),"GATE")},{ALT:Een(),GATE:_Vt(()=>!i(o),"GATE")}])}return r=>e.parser.atLeastOne(t,{DEF:_Vt(()=>n(r),"DEF")})}if("?"===r){const t=e.optional++;return r=>e.parser.optional(t,{DEF:_Vt(()=>n(r),"DEF"),GATE:i?()=>i(r):void 0})}EZt()}function kln(e,t){const n=Sln(e,t),r=e.parser.getRule(n);if(!r)throw new Error(`Rule "${n}" not found."`);return r}function Sln(e,t){if(fjt(t))return t.name;if(e.ruleNames.has(t))return e.ruleNames.get(t);{let n=t,r=n.$container,i=t.$type;for(;!vYt(r);){if(Yjt(r)||xjt(r)||KYt(r)){i=r.elements.indexOf(n).toString()+":"+i}n=r,r=r.$container}return i=r.name+":"+i,e.ruleNames.set(t,i),i}}function Tln(e,t){const n=e.tokens[t];if(!n)throw new Error(`Token "${t}" not found."`);return n}function $ln(e){const t=e.Grammar,n=e.parser.Lexer,r=new oln(e);return cln(t,r,n.definition),r.finalize(),r}function _ln(e){const t=Cln(e);return t.finalize(),t}function Cln(e){const t=e.Grammar,n=e.parser.Lexer;return cln(t,new nln(e),n.definition)}_Vt(cln,"createParser"),_Vt(uln,"buildRules"),_Vt(hln,"buildInfixRule"),_Vt(dln,"buildElement"),_Vt(pln,"buildAction"),_Vt(fln,"buildRuleCall"),_Vt(gln,"buildRuleCallPredicate"),_Vt(mln,"buildPredicate"),_Vt(Oln,"buildAlternatives"),_Vt(Aln,"buildUnorderedGroup"),_Vt(yln,"buildGroup"),_Vt(vln,"getGuardCondition"),_Vt(bln,"buildCrossReference"),_Vt(xln,"buildKeyword"),_Vt(wln,"wrap"),_Vt(kln,"getRule"),_Vt(Sln,"getRuleName"),_Vt(Tln,"getToken"),_Vt($ln,"createCompletionParser"),_Vt(_ln,"createLangiumParser"),_Vt(Cln,"prepareLangiumParser");var Qln,Pln=(Ye=class{constructor(){this.diagnostics=[]}buildTokens(e,t){const n=VWt(sGt(e,!1)),r=this.buildTerminalTokens(n),i=this.buildKeywordTokens(n,r,t);return i.push(...r),i}flushLexingReport(e){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){const e=[...this.diagnostics];return this.diagnostics=[],e}buildTerminalTokens(e){return e.filter(XYt).filter(e=>!e.fragment).map(e=>this.buildTerminalToken(e)).toArray()}buildTerminalToken(e){const t=BGt(e),n=this.requiresCustomPattern(t)?this.regexPatternFunction(t):t,r={name:e.name,PATTERN:n};return"function"==typeof n&&(r.LINE_BREAKS=!0),e.hidden&&(r.GROUP=tGt(t)?c8t.SKIPPED:"hidden"),r}requiresCustomPattern(e){return!(!e.flags.includes("u")&&!e.flags.includes("s"))}regexPatternFunction(e){const t=new RegExp(e,e.flags+"y");return(e,n)=>{t.lastIndex=n;return t.exec(e)}}buildKeywordTokens(e,t,n){return e.filter(fjt).flatMap(e=>njt(e).filter(aYt)).distinct(e=>e.value).toArray().sort((e,t)=>t.value.length-e.value.length).map(e=>this.buildKeywordToken(e,t,Boolean(null==n?void 0:n.caseInsensitive)))}buildKeywordToken(e,t,n){const r=this.buildKeywordPattern(e,n),i={name:e.value,PATTERN:r,LONGER_ALT:this.findLongerAlt(e,t)};return"function"==typeof r&&(i.LINE_BREAKS=!0),i}buildKeywordPattern(e,t){return t?new RegExp(nGt(e.value),"i"):e.value}findLongerAlt(e,t){return t.reduce((t,n)=>{const r=null==n?void 0:n.PATTERN;return(null==r?void 0:r.source)&&rGt("^"+r.source+"$",e.value)&&t.push(n),t},[])}},_Vt(Ye,"DefaultTokenBuilder"),Ye),Eln=(_Vt(Ze=class{convert(e,t){let n=t.grammarSource;if(Mjt(n)&&(n=uGt(n)),_Yt(n)){const r=n.rule.ref;if(!r)throw new Error("This cst node was not parsed by a rule.");return this.runConverter(r,e,t)}return e}runConverter(e,t,n){var r;switch(e.name.toUpperCase()){case"INT":return Qln.convertInt(t);case"STRING":return Qln.convertString(t);case"ID":return Qln.convertID(t)}switch(null==(r=RGt(e))?void 0:r.toLowerCase()){case"number":return Qln.convertNumber(t);case"boolean":return Qln.convertBoolean(t);case"bigint":return Qln.convertBigint(t);case"date":return Qln.convertDate(t);default:return t}}},"DefaultValueConverter"),Ze);!function(e){function t(e){let t="";for(let r=1;r<e.length-1;r++){const i=e.charAt(r);if("\\"===i){t+=n(e.charAt(++r))}else t+=i}return t}function n(e){switch(e){case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";case"v":return"\v";case"0":return"\0";default:return e}}function r(e){return"^"===e.charAt(0)?e.substring(1):e}function i(e){return parseInt(e)}function o(e){return BigInt(e)}function a(e){return new Date(e)}function s(e){return Number(e)}function l(e){return"true"===e.toLowerCase()}_Vt(t,"convertString"),e.convertString=t,_Vt(n,"convertEscapeCharacter"),_Vt(r,"convertID"),e.convertID=r,_Vt(i,"convertInt"),e.convertInt=i,_Vt(o,"convertBigint"),e.convertBigint=o,_Vt(a,"convertDate"),e.convertDate=a,_Vt(s,"convertNumber"),e.convertNumber=s,_Vt(l,"convertBoolean"),e.convertBoolean=l}(Qln||(Qln={}));var Rln={};function Bln(){return new Promise(e=>{"undefined"==typeof setImmediate?setTimeout(e,0):setImmediate(e)})}EVt(Rln,RVt(UVt())),_Vt(Bln,"delayNextTick");var Iln=0,Lln=10;function Dln(){return Iln=performance.now(),new Rln.CancellationTokenSource}function Mln(e){Lln=e}_Vt(Dln,"startCancelableOperation"),_Vt(Mln,"setInterruptionPeriod");var Nln=Symbol("OperationCancelled");function Xln(e){return e===Nln}async function Fln(e){if(e===Rln.CancellationToken.None)return;const t=performance.now();if(t-Iln>=Lln&&(Iln=t,await Bln(),Iln=performance.now()),e.isCancellationRequested)throw Nln}_Vt(Xln,"isOperationCancelled"),_Vt(Fln,"interruptAndCheck");var Uln,zln,qln=(_Vt(Ge=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=t=>(e(t),this),this.reject=e=>(t(e),this)})}},"Deferred"),Ge),Vln=(He=class{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){for(const n of e)if(He.isIncremental(n)){const e=Zln(n.range),t=this.offsetAt(e.start),r=this.offsetAt(e.end);this._content=this._content.substring(0,t)+n.text+this._content.substring(r,this._content.length);const i=Math.max(e.start.line,0),o=Math.max(e.end.line,0);let a=this._lineOffsets;const s=jln(n.text,!1,t);if(o-i===s.length)for(let n=0,c=s.length;n<c;n++)a[n+i+1]=s[n];else s.length<1e4?a.splice(i+1,o-i,...s):this._lineOffsets=a=a.slice(0,i+1).concat(s,a.slice(o+1));const l=n.text.length-(r-t);if(0!==l)for(let n=i+1+s.length,c=a.length;n<c;n++)a[n]=a[n]+l}else{if(!He.isFull(n))throw new Error("Unknown change event received");this._content=n.text,this._lineOffsets=void 0}this._version=t}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=jln(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);const t=this.getLineOffsets();let n=0,r=t.length;if(0===r)return{line:0,character:e};for(;n<r;){const i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}const i=n-1;return{line:i,character:(e=this.ensureBeforeEOL(e,t[i]))-t[i]}}offsetAt(e){const t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;const n=t[e.line];if(e.character<=0)return n;const r=e.line+1<t.length?t[e.line+1]:this._content.length,i=Math.min(n+e.character,r);return this.ensureBeforeEOL(i,n)}ensureBeforeEOL(e,t){for(;e>t&&Yln(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){const t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)}static isFull(e){const t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength}},_Vt(He,"FullTextDocument"),He);function Wln(e,t){if(e.length<=1)return e;const n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);Wln(r,t),Wln(i,t);let o=0,a=0,s=0;for(;o<r.length&&a<i.length;){const n=t(r[o],i[a]);e[s++]=n<=0?r[o++]:i[a++]}for(;o<r.length;)e[s++]=r[o++];for(;a<i.length;)e[s++]=i[a++];return e}function jln(e,t,n=0){const r=t?[n]:[];for(let i=0;i<e.length;i++){const t=e.charCodeAt(i);Yln(t)&&(13===t&&i+1<e.length&&10===e.charCodeAt(i+1)&&i++,r.push(n+i+1))}return r}function Yln(e){return 13===e||10===e}function Zln(e){const t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function Gln(e){const t=Zln(e.range);return t!==e.range?{newText:e.newText,range:t}:e}!function(e){function t(e,t,n,r){return new Vln(e,t,n,r)}function n(e,t,n){if(e instanceof Vln)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")}function r(e,t){const n=e.getText(),r=Wln(t.map(Gln),(e,t)=>{const n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n});let i=0;const o=[];for(const a of r){const t=e.offsetAt(a.range.start);if(t<i)throw new Error("Overlapping edit");t>i&&o.push(n.substring(i,t)),a.newText.length&&o.push(a.newText),i=e.offsetAt(a.range.end)}return o.push(n.substr(i)),o.join("")}_Vt(t,"create"),e.create=t,_Vt(n,"update"),e.update=n,_Vt(r,"applyEdits"),e.applyEdits=r}(Uln||(Uln={})),_Vt(Wln,"mergeSort"),_Vt(jln,"computeLineOffsets"),_Vt(Yln,"isEOL"),_Vt(Zln,"getWellformedRange"),_Vt(Gln,"getWellformedEdit"),(()=>{var e={975:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),o=s,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=s,a=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}_Vt(t,"e"),_Vt(n,"r");var r={resolve:_Vt(function(){for(var e,r="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a;o>=0?a=arguments[o]:(void 0===e&&(e=process.cwd()),a=e),t(a),0!==a.length&&(r=a+"/"+r,i=47===a.charCodeAt(0))}return r=n(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},"resolve"),normalize:_Vt(function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},"normalize"),isAbsolute:_Vt(function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},"isAbsolute"),join:_Vt(function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var i=arguments[n];t(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},"join"),relative:_Vt(function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var o=e.length,a=o-i,s=1;s<n.length&&47===n.charCodeAt(s);++s);for(var l=n.length-s,c=a<l?a:l,u=-1,h=0;h<=c;++h){if(h===c){if(l>c){if(47===n.charCodeAt(s+h))return n.slice(s+h+1);if(0===h)return n.slice(s+h)}else a>c&&(47===e.charCodeAt(i+h)?u=h:0===h&&(u=0));break}var d=e.charCodeAt(i+h);if(d!==n.charCodeAt(s+h))break;47===d&&(u=h)}var p="";for(h=i+u+1;h<=o;++h)h!==o&&47!==e.charCodeAt(h)||(0===p.length?p+="..":p+="/..");return p.length>0?p+n.slice(s+u):(s+=u,47===n.charCodeAt(s)&&++s,n.slice(s))},"relative"),_makeLong:_Vt(function(e){return e},"_makeLong"),dirname:_Vt(function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},"dirname"),basename:_Vt(function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,i=0,o=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!a){i=r+1;break}}else-1===l&&(a=!1,l=r+1),s>=0&&(c===n.charCodeAt(s)?-1==--s&&(o=r):(s=-1,o=l))}return i===o?o=l:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){i=r+1;break}}else-1===o&&(a=!1,o=r+1);return-1===o?"":e.slice(i,o)},"basename"),extname:_Vt(function(e){t(e);for(var n=-1,r=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47!==l)-1===i&&(o=!1,i=s+1),46===l?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1);else if(!o){r=s+1;break}}return-1===n||-1===i||0===a||1===a&&n===i-1&&n===r+1?"":e.slice(n,i)},"extname"),format:_Vt(function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return n=(t=e).dir||t.root,r=t.base||(t.name||"")+(t.ext||""),n?n===t.root?n+r:n+"/"+r:r;var t,n,r},"format"),parse:_Vt(function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,i=e.charCodeAt(0),o=47===i;o?(n.root="/",r=1):r=0;for(var a=-1,s=0,l=-1,c=!0,u=e.length-1,h=0;u>=r;--u)if(47!==(i=e.charCodeAt(u)))-1===l&&(c=!1,l=u+1),46===i?-1===a?a=u:1!==h&&(h=1):-1!==a&&(h=-1);else if(!c){s=u+1;break}return-1===a||-1===l||0===h||1===h&&a===l-1&&a===s+1?-1!==l&&(n.base=n.name=0===s&&o?e.slice(1,l):e.slice(s,l)):(0===s&&o?(n.name=e.slice(1,a),n.base=e.slice(1,l)):(n.name=e.slice(s,a),n.base=e.slice(s,l)),n.ext=e.slice(a,l)),s>0?n.dir=e.slice(0,s-1):o&&(n.dir="/"),n},"parse"),sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}_Vt(n,"r"),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};let i;if(n.r(r),n.d(r,{URI:_Vt(()=>p,"URI"),Utils:_Vt(()=>_,"Utils")}),"object"==typeof process)i="win32"===process.platform;else if("object"==typeof navigator){let e=navigator.userAgent;i=e.indexOf("Windows")>=0}const o=/^\w[\w\d+.-]*$/,a=/^\//,s=/^\/\//;function l(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!o.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!a.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(s.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}_Vt(l,"a");const c="",u="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,d=class e{constructor(e,t,n,r,i,o=!1){Jn(this,"scheme"),Jn(this,"authority"),Jn(this,"path"),Jn(this,"query"),Jn(this,"fragment"),"object"==typeof e?(this.scheme=e.scheme||c,this.authority=e.authority||c,this.path=e.path||c,this.query=e.query||c,this.fragment=e.fragment||c):(this.scheme=function(e,t){return e||t?e:"file"}(e,o),this.authority=t||c,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==u&&(t=u+t):t=u}return t}(this.scheme,n||c),this.query=r||c,this.fragment=i||c,l(this,o))}static isUri(t){return t instanceof e||!!t&&"string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme&&"string"==typeof t.fsPath&&"function"==typeof t.with&&"function"==typeof t.toString}get fsPath(){return v(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:o}=e;return void 0===t?t=this.scheme:null===t&&(t=c),void 0===n?n=this.authority:null===n&&(n=c),void 0===r?r=this.path:null===r&&(r=c),void 0===i?i=this.query:null===i&&(i=c),void 0===o?o=this.fragment:null===o&&(o=c),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new m(t,n,r,i,o)}static parse(e,t=!1){const n=h.exec(e);return n?new m(n[2]||c,k(n[4]||c),k(n[5]||c),k(n[7]||c),k(n[9]||c),t):new m(c,c,c,c,c)}static file(e){let t=c;if(i&&(e=e.replace(/\\/g,u)),e[0]===u&&e[1]===u){const n=e.indexOf(u,2);-1===n?(t=e.substring(2),e=u):(t=e.substring(2,n),e=e.substring(n)||u)}return new m("file",t,e,c,c)}static from(e){const t=new m(e.scheme,e.authority,e.path,e.query,e.fragment);return l(t,!0),t}toString(e=!1){return b(this,e)}toJSON(){return this}static revive(t){if(t){if(t instanceof e)return t;{const e=new m(t);return e._formatted=t.external,e._fsPath=t._sep===f?t.fsPath:null,e}}return t}};_Vt(d,"l");let p=d;const f=i?1:void 0,g=class extends p{constructor(){super(...arguments),Jn(this,"_formatted",null),Jn(this,"_fsPath",null)}get fsPath(){return this._fsPath||(this._fsPath=v(this,!1)),this._fsPath}toString(e=!1){return e?b(this,!0):(this._formatted||(this._formatted=b(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=f),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}};_Vt(g,"d");let m=g;const O={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function A(e,t,n){let r,i=-1;for(let o=0;o<e.length;o++){const a=e.charCodeAt(o);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||45===a||46===a||95===a||126===a||t&&47===a||n&&91===a||n&&93===a||n&&58===a)-1!==i&&(r+=encodeURIComponent(e.substring(i,o)),i=-1),void 0!==r&&(r+=e.charAt(o));else{void 0===r&&(r=e.substr(0,o));const t=O[a];void 0!==t?(-1!==i&&(r+=encodeURIComponent(e.substring(i,o)),i=-1),r+=t):-1===i&&(i=o)}}return-1!==i&&(r+=encodeURIComponent(e.substring(i))),void 0!==r?r:e}function y(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=O[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function v(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,i&&(n=n.replace(/\//g,"\\")),n}function b(e,t){const n=t?y:A;let r="",{scheme:i,authority:o,path:a,query:s,fragment:l}=e;if(i&&(r+=i,r+=":"),(o||"file"===i)&&(r+=u,r+=u),o){let e=o.indexOf("@");if(-1!==e){const t=o.substr(0,e);o=o.substr(e+1),e=t.lastIndexOf(":"),-1===e?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=":",r+=n(t.substr(e+1),!1,!0)),r+="@"}o=o.toLowerCase(),e=o.lastIndexOf(":"),-1===e?r+=n(o,!1,!0):(r+=n(o.substr(0,e),!1,!0),r+=o.substr(e))}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2)){const e=a.charCodeAt(1);e>=65&&e<=90&&(a=`/${String.fromCharCode(e+32)}:${a.substr(3)}`)}else if(a.length>=2&&58===a.charCodeAt(1)){const e=a.charCodeAt(0);e>=65&&e<=90&&(a=`${String.fromCharCode(e+32)}:${a.substr(2)}`)}r+=n(a,!0,!1)}return s&&(r+="?",r+=n(s,!1,!1)),l&&(r+="#",r+=t?l:A(l,!1,!1)),r}function x(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+x(e.substr(3)):e}}_Vt(A,"m"),_Vt(y,"y"),_Vt(v,"v"),_Vt(b,"b"),_Vt(x,"C");const w=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function k(e){return e.match(w)?e.replace(w,e=>x(e)):e}_Vt(k,"w");var S=n(975);const T=S.posix||S,$="/";var _,C;(C=_||(_={})).joinPath=function(e,...t){return e.with({path:T.join(e.path,...t)})},C.resolvePath=function(e,...t){let n=e.path,r=!1;n[0]!==$&&(n=$+n,r=!0);let i=T.resolve(n,...t);return r&&i[0]===$&&!e.authority&&(i=i.substring(1)),e.with({path:i})},C.dirname=function(e){if(0===e.path.length||e.path===$)return e;let t=T.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)&&(t=""),e.with({path:t})},C.basename=function(e){return T.basename(e.path)},C.extname=function(e){return T.extname(e.path)},zln=r})();var Hln,{URI:Kln,Utils:Jln}=zln;!function(e){e.basename=Jln.basename,e.dirname=Jln.dirname,e.extname=Jln.extname,e.joinPath=Jln.joinPath,e.resolvePath=Jln.resolvePath;const t="object"==typeof process&&"win32"===(null==process?void 0:process.platform);function n(e,t){return(null==e?void 0:e.toString())===(null==t?void 0:t.toString())}function r(e,n){const r="string"==typeof e?Kln.parse(e).path:e.path,i="string"==typeof n?Kln.parse(n).path:n.path,o=r.split("/").filter(e=>e.length>0),a=i.split("/").filter(e=>e.length>0);if(t){const e=/^[A-Z]:$/;if(o[0]&&e.test(o[0])&&(o[0]=o[0].toLowerCase()),a[0]&&e.test(a[0])&&(a[0]=a[0].toLowerCase()),o[0]!==a[0])return i.substring(1)}let s=0;for(;s<o.length&&o[s]===a[s];s++);return"../".repeat(o.length-s)+a.slice(s).join("/")}function i(e){return Kln.parse(e.toString()).toString()}function o(e,t){let n="string"==typeof e?e:e.path,r="string"==typeof t?t:t.path;return"/"===r.charAt(r.length-1)&&(r=r.slice(0,-1)),"/"===n.charAt(n.length-1)&&(n=n.slice(0,-1)),r===n||!(r.length<n.length)&&("/"===r.charAt(n.length)&&r.startsWith(n))}_Vt(n,"equals"),e.equals=n,_Vt(r,"relative"),e.relative=r,_Vt(i,"normalize"),e.normalize=i,_Vt(o,"contains"),e.contains=o}(Hln||(Hln={}));var ecn,tcn,ncn=(_Vt(Ke=class{constructor(){this.root={name:"",children:new Map}}normalizeUri(e){return Hln.normalize(e)}clear(){this.root.children.clear()}insert(e,t){this.getNode(this.normalizeUri(e),!0).element=t}delete(e){const t=this.getNode(this.normalizeUri(e),!1);(null==t?void 0:t.parent)&&t.parent.children.delete(t.name)}has(e){var t;return void 0!==(null==(t=this.getNode(this.normalizeUri(e),!1))?void 0:t.element)}hasNode(e){return void 0!==this.getNode(this.normalizeUri(e),!1)}find(e){var t;return null==(t=this.getNode(this.normalizeUri(e),!1))?void 0:t.element}findNode(e){const t=this.normalizeUri(e),n=this.getNode(t,!1);if(n)return{name:n.name,uri:Hln.joinPath(Kln.parse(t),n.name).toString(),element:n.element}}findChildren(e){const t=this.normalizeUri(e),n=this.getNode(t,!1);return n?Array.from(n.children.values()).map(e=>({name:e.name,uri:Hln.joinPath(Kln.parse(t),e.name).toString(),element:e.element})):[]}all(){return this.collectValues(this.root)}findAll(e){const t=this.getNode(Hln.normalize(e),!1);return t?this.collectValues(t):[]}getNode(e,t){const n=e.split("/");"/"===e.charAt(e.length-1)&&n.pop();let r=this.root;for(const i of n){let e=r.children.get(i);if(!e){if(!t)return;e={name:i,children:new Map,parent:r},r.children.set(i,e)}r=e}return r}collectValues(e){const t=[];e.element&&t.push(e.element);for(const n of e.children.values())t.push(...this.collectValues(n));return t}},"UriTrie"),Ke);(tcn=ecn||(ecn={}))[tcn.Changed=0]="Changed",tcn[tcn.Parsed=1]="Parsed",tcn[tcn.IndexedContent=2]="IndexedContent",tcn[tcn.ComputedScopes=3]="ComputedScopes",tcn[tcn.Linked=4]="Linked",tcn[tcn.IndexedReferences=5]="IndexedReferences",tcn[tcn.Validated=6]="Validated";var rcn=(_Vt(Je=class{constructor(e){this.serviceRegistry=e.ServiceRegistry,this.textDocuments=e.workspace.TextDocuments,this.fileSystemProvider=e.workspace.FileSystemProvider}async fromUri(e,t=Rln.CancellationToken.None){const n=await this.fileSystemProvider.readFile(e);return this.createAsync(e,n,t)}fromTextDocument(e,t,n){return t=t??Kln.parse(e.uri),Rln.CancellationToken.is(n)?this.createAsync(t,e,n):this.create(t,e,n)}fromString(e,t,n){return Rln.CancellationToken.is(n)?this.createAsync(t,e,n):this.create(t,e,n)}fromModel(e,t){return this.create(t,{$model:e})}create(e,t,n){if("string"==typeof t){const r=this.parse(e,t,n);return this.createLangiumDocument(r,e,void 0,t)}if("$model"in t){const n={value:t.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(n,e)}{const r=this.parse(e,t.getText(),n);return this.createLangiumDocument(r,e,t)}}async createAsync(e,t,n){if("string"==typeof t){const r=await this.parseAsync(e,t,n);return this.createLangiumDocument(r,e,void 0,t)}{const r=await this.parseAsync(e,t.getText(),n);return this.createLangiumDocument(r,e,t)}}createLangiumDocument(e,t,n,r){let i;if(n)i={parseResult:e,uri:t,state:ecn.Parsed,references:[],textDocument:n};else{const n=this.createTextDocumentGetter(t,r);i={parseResult:e,uri:t,state:ecn.Parsed,references:[],get textDocument(){return n()}}}return e.value.$document=i,i}async update(e,t){var n,r;const i=null==(n=e.parseResult.value.$cstNode)?void 0:n.root.fullText,o=null==(r=this.textDocuments)?void 0:r.get(e.uri.toString()),a=o?o.getText():await this.fileSystemProvider.readFile(e.uri);if(o)Object.defineProperty(e,"textDocument",{value:o});else{const t=this.createTextDocumentGetter(e.uri,a);Object.defineProperty(e,"textDocument",{get:t})}return i!==a&&(e.parseResult=await this.parseAsync(e.uri,a,t),e.parseResult.value.$document=e),e.state=ecn.Parsed,e}parse(e,t,n){return this.serviceRegistry.getServices(e).parser.LangiumParser.parse(t,n)}parseAsync(e,t,n){return this.serviceRegistry.getServices(e).parser.AsyncParser.parse(t,n)}createTextDocumentGetter(e,t){const n=this.serviceRegistry;let r;return()=>r??(r=Uln.create(e.toString(),n.getServices(e).LanguageMetaData.languageId,0,t??""))}},"DefaultLangiumDocumentFactory"),Je),icn=(_Vt(et=class{constructor(e){this.documentTrie=new ncn,this.services=e,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.documentBuilder=()=>e.workspace.DocumentBuilder}get all(){return VWt(this.documentTrie.all())}addDocument(e){const t=e.uri.toString();if(this.documentTrie.has(t))throw new Error(`A document with the URI '${t}' is already present.`);this.documentTrie.insert(t,e)}getDocument(e){const t=e.toString();return this.documentTrie.find(t)}getDocuments(e){const t=e.toString();return this.documentTrie.findAll(t)}async getOrCreateDocument(e,t){let n=this.getDocument(e);return n||(n=await this.langiumDocumentFactory.fromUri(e,t),this.addDocument(n),n)}createDocument(e,t,n){if(n)return this.langiumDocumentFactory.fromString(t,e,n).then(e=>(this.addDocument(e),e));{const n=this.langiumDocumentFactory.fromString(t,e);return this.addDocument(n),n}}hasDocument(e){return this.documentTrie.has(e.toString())}invalidateDocument(e){const t=e.toString(),n=this.documentTrie.find(t);return n&&this.documentBuilder().resetToState(n,ecn.Changed),n}deleteDocument(e){const t=e.toString(),n=this.documentTrie.find(t);return n&&(n.state=ecn.Changed,this.documentTrie.delete(t)),n}deleteDocuments(e){const t=e.toString(),n=this.documentTrie.findAll(t);for(const r of n)r.state=ecn.Changed;return this.documentTrie.delete(t),n}},"DefaultLangiumDocuments"),et),ocn=Symbol("RefResolving"),acn=(_Vt(tt=class{constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async link(e,t=Rln.CancellationToken.None){var n;if(null==(n=this.profiler)?void 0:n.isActive("linking")){const n=this.profiler.createTask("linking",this.languageId);n.start();try{for(const r of rjt(e.parseResult.value))await Fln(t),ojt(r).forEach(t=>{const i=`${r.$type}:${t.property}`;n.startSubTask(i);try{this.doLink(t,e)}finally{n.stopSubTask(i)}})}finally{n.stop()}}else for(const r of rjt(e.parseResult.value))await Fln(t),ojt(r).forEach(t=>this.doLink(t,e))}doLink(e,t){const n=e.reference;if("_ref"in n&&void 0===n._ref){n._ref=ocn;try{const t=this.getCandidate(e);if(IWt(t))n._ref=t;else{n._nodeDescription=t;const r=this.loadAstNode(t);n._ref=r??this.createLinkingError(e,t)}}catch(r){const t=r.message??String(r);n._ref={info:e,message:`An error occurred while resolving reference to '${n.$refText}': ${t}`}}t.references.push(n)}else if("_items"in n&&void 0===n._items){n._items=ocn;try{const t=this.getCandidates(e),r=[];if(IWt(t))n._linkingError=t;else for(const e of t){const t=this.loadAstNode(e);t&&r.push({ref:t,$nodeDescription:e})}n._items=r}catch(r){n._linkingError={info:e,message:`An error occurred while resolving reference to '${n.$refText}': ${r}`},n._items=[]}t.references.push(n)}}unlink(e){for(const t of e.references)"_ref"in t?(t._ref=void 0,delete t._nodeDescription):"_items"in t&&(t._items=void 0,delete t._linkingError);e.references=[]}getCandidate(e){return this.scopeProvider.getScope(e).getElement(e.reference.$refText)??this.createLinkingError(e)}getCandidates(e){const t=this.scopeProvider.getScope(e).getElements(e.reference.$refText).distinct(e=>`${e.documentUri}#${e.path}`).toArray();return t.length>0?t:this.createLinkingError(e)}buildReference(e,t,n,r){const i=this,o={$refNode:n,$refText:r,_ref:void 0,get ref(){if(PWt(this._ref))return this._ref;if(BWt(this._nodeDescription)){const n=i.loadAstNode(this._nodeDescription);this._ref=n??i.createLinkingError({reference:o,container:e,property:t},this._nodeDescription)}else if(void 0===this._ref){this._ref=ocn;const n=JWt(e).$document,r=i.getLinkedNode({reference:o,container:e,property:t});if(r.error&&n&&n.state<ecn.ComputedScopes)return this._ref=void 0;this._ref=r.node??r.error,this._nodeDescription=r.descr,null==n||n.references.push(this)}else this._ref===ocn&&i.throwCyclicReferenceError(e,t,r);return PWt(this._ref)?this._ref:void 0},get $nodeDescription(){return this._nodeDescription},get error(){return IWt(this._ref)?this._ref:void 0}};return o}buildMultiReference(e,t,n,r){const i=this,o={$refNode:n,$refText:r,_items:void 0,get items(){if(Array.isArray(this._items))return this._items;if(void 0===this._items){this._items=ocn;const n=JWt(e).$document,r=i.getCandidates({reference:o,container:e,property:t}),a=[];if(IWt(r))this._linkingError=r;else for(const e of r){const t=i.loadAstNode(e);t&&a.push({ref:t,$nodeDescription:e})}this._items=a,null==n||n.references.push(this)}else this._items===ocn&&i.throwCyclicReferenceError(e,t,r);return Array.isArray(this._items)?this._items:[]},get error(){if(this._linkingError)return this._linkingError;return this.items.length>0?void 0:this._linkingError=i.createLinkingError({reference:o,container:e,property:t})}};return o}throwCyclicReferenceError(e,t,n){throw new Error(`Cyclic reference resolution detected: ${this.astNodeLocator.getAstNodePath(e)}/${t} (symbol '${n}')`)}getLinkedNode(e){try{const t=this.getCandidate(e);if(IWt(t))return{error:t};const n=this.loadAstNode(t);return n?{node:n,descr:t}:{descr:t,error:this.createLinkingError(e,t)}}catch(t){const n=t.message??String(t);return{error:{info:e,message:`An error occurred while resolving reference to '${e.reference.$refText}': ${n}`}}}}loadAstNode(e){if(e.node)return e.node;const t=this.langiumDocuments().getDocument(e.documentUri);return t?this.astNodeLocator.getAstNode(t.parseResult.value,e.path):void 0}createLinkingError(e,t){const n=JWt(e.container).$document;n&&(n.state,ecn.ComputedScopes);return{info:e,message:`Could not resolve reference to ${this.reflection.getReferenceType(e)} named '${e.reference.$refText}'.`,targetDescription:t}}},"DefaultLinker"),tt);function scn(e){return"string"==typeof e.name}_Vt(scn,"isNamed");var lcn=(_Vt(nt=class{getName(e){if(scn(e))return e.name}getNameNode(e){return pGt(e.$cstNode,"name")}},"DefaultNameProvider"),nt),ccn=(_Vt(rt=class{constructor(e){this.nameProvider=e.references.NameProvider,this.index=e.shared.workspace.IndexManager,this.nodeLocator=e.workspace.AstNodeLocator,this.documents=e.shared.workspace.LangiumDocuments,this.hasMultiReference=rjt(e.Grammar).some(e=>Mjt(e)&&e.isMulti)}findDeclarations(e){if(e){const t=AGt(e),n=e.astNode;if(t&&n){const r=n[t.feature];if(EWt(r)||RWt(r))return ejt(r);if(Array.isArray(r))for(const t of r)if((EWt(t)||RWt(t))&&t.$refNode&&t.$refNode.offset<=e.offset&&t.$refNode.end>=e.end)return ejt(t)}if(n){const t=this.nameProvider.getNameNode(n);if(t&&(t===e||dZt(e,t)))return this.getSelfNodes(n)}}return[]}getSelfNodes(e){if(this.hasMultiReference){const t=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e)),n=this.getNodeFromReferenceDescription(t.head());if(n)for(const r of ojt(n))if(RWt(r.reference)&&r.reference.items.some(t=>t.ref===e))return r.reference.items.map(e=>e.ref);return[e]}return[e]}getNodeFromReferenceDescription(e){if(!e)return;const t=this.documents.getDocument(e.sourceUri);return t?this.nodeLocator.getAstNode(t.parseResult.value,e.sourcePath):void 0}findDeclarationNodes(e){const t=this.findDeclarations(e),n=[];for(const r of t){const e=this.nameProvider.getNameNode(r)??r.$cstNode;e&&n.push(e)}return n}findReferences(e,t){const n=[];t.includeDeclaration&&n.push(...this.getSelfReferences(e));let r=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return t.documentUri&&(r=r.filter(e=>Hln.equals(e.sourceUri,t.documentUri))),n.push(...r),VWt(n)}getSelfReferences(e){const t=this.getSelfNodes(e),n=[];for(const r of t){const e=this.nameProvider.getNameNode(r);if(e){const t=KWt(r),i=this.nodeLocator.getAstNodePath(r);n.push({sourceUri:t.uri,sourcePath:i,targetUri:t.uri,targetPath:i,segment:fZt(e),local:!0})}}return n}},"DefaultReferences"),rt),ucn=(it=class{constructor(e){if(this.map=new Map,e)for(const[t,n]of e)this.add(t,n)}get size(){return WWt.sum(VWt(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,t){if(void 0===t)return this.map.delete(e);{const n=this.map.get(e);if(n){const r=n.indexOf(t);if(r>=0)return 1===n.length?this.map.delete(e):n.splice(r,1),!0}return!1}}get(e){return this.map.get(e)??[]}getStream(e){const t=this.map.get(e);return t?VWt(t):zWt}has(e,t){if(void 0===t)return this.map.has(e);{const n=this.map.get(e);return!!n&&n.indexOf(t)>=0}}add(e,t){return this.map.has(e)?this.map.get(e).push(t):this.map.set(e,[t]),this}addAll(e,t){return this.map.has(e)?this.map.get(e).push(...t):this.map.set(e,Array.from(t)),this}forEach(e){this.map.forEach((t,n)=>t.forEach(t=>e(t,n,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return VWt(this.map.entries()).flatMap(([e,t])=>t.map(t=>[e,t]))}keys(){return VWt(this.map.keys())}values(){return VWt(this.map.values()).flat()}entriesGroupedByKey(){return VWt(this.map.entries())}},_Vt(it,"MultiMap"),it),hcn=(_Vt(ot=class{get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(const[t,n]of e)this.set(t,n)}clear(){this.map.clear(),this.inverse.clear()}set(e,t){return this.map.set(e,t),this.inverse.set(t,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){const t=this.map.get(e);return void 0!==t&&(this.map.delete(e),this.inverse.delete(t),!0)}},"BiMap"),ot),dcn=(_Vt(at=class{constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async collectExportedSymbols(e,t=Rln.CancellationToken.None){return this.collectExportedSymbolsForNode(e.parseResult.value,e,void 0,t)}async collectExportedSymbolsForNode(e,t,n=tjt,r=Rln.CancellationToken.None){const i=[];this.addExportedSymbol(e,i,t);for(const o of n(e))await Fln(r),this.addExportedSymbol(o,i,t);return i}addExportedSymbol(e,t,n){const r=this.nameProvider.getName(e);r&&t.push(this.descriptions.createDescription(e,r,n))}async collectLocalSymbols(e,t=Rln.CancellationToken.None){const n=e.parseResult.value,r=new ucn;for(const i of njt(n))await Fln(t),this.addLocalSymbol(i,e,r);return r}addLocalSymbol(e,t,n){const r=e.$container;if(r){const i=this.nameProvider.getName(e);i&&n.add(r,this.descriptions.createDescription(e,i,t))}}},"DefaultScopeComputation"),at),pcn=(st=class{constructor(e,t,n){this.elements=e,this.outerScope=t,this.caseInsensitive=(null==n?void 0:n.caseInsensitive)??!1,this.concatOuterScope=(null==n?void 0:n.concatOuterScope)??!0}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(e){const t=this.caseInsensitive?e.toLowerCase():e,n=this.caseInsensitive?this.elements.find(e=>e.name.toLowerCase()===t):this.elements.find(t=>t.name===e);return n||(this.outerScope?this.outerScope.getElement(e):void 0)}getElements(e){const t=this.caseInsensitive?e.toLowerCase():e,n=this.caseInsensitive?this.elements.filter(e=>e.name.toLowerCase()===t):this.elements.filter(t=>t.name===e);return(this.concatOuterScope||n.isEmpty())&&this.outerScope?n.concat(this.outerScope.getElements(e)):n}},_Vt(st,"StreamScope"),st),fcn=(_Vt(lt=class{constructor(e,t,n){this.elements=new Map,this.caseInsensitive=(null==n?void 0:n.caseInsensitive)??!1,this.concatOuterScope=(null==n?void 0:n.concatOuterScope)??!0;for(const r of e){const e=this.caseInsensitive?r.name.toLowerCase():r.name;this.elements.set(e,r)}this.outerScope=t}getElement(e){const t=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(t);return n||(this.outerScope?this.outerScope.getElement(e):void 0)}getElements(e){const t=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(t),r=n?[n]:[];return(this.concatOuterScope||r.length>0)&&this.outerScope?VWt(r).concat(this.outerScope.getElements(e)):VWt(r)}getAllElements(){let e=VWt(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},"MapScope"),lt),gcn=(_Vt(ct=class{constructor(e,t,n){this.elements=new ucn,this.caseInsensitive=(null==n?void 0:n.caseInsensitive)??!1,this.concatOuterScope=(null==n?void 0:n.concatOuterScope)??!0;for(const r of e){const e=this.caseInsensitive?r.name.toLowerCase():r.name;this.elements.add(e,r)}this.outerScope=t}getElement(e){const t=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(t)[0];return n||(this.outerScope?this.outerScope.getElement(e):void 0)}getElements(e){const t=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(t);return(this.concatOuterScope||0===n.length)&&this.outerScope?VWt(n).concat(this.outerScope.getElements(e)):VWt(n)}getAllElements(){let e=VWt(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},"MultiMapScope"),ct),mcn={getElement(){},getElements:()=>zWt,getAllElements:()=>zWt},Ocn=(_Vt(ut=class{constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(e=>e.dispose())}throwIfDisposed(){if(this.isDisposed)throw new Error("This cache has already been disposed")}},"DisposableCache"),ut),Acn=(_Vt(ht=class extends Ocn{constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,t){this.throwIfDisposed(),this.cache.set(e,t)}get(e,t){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);if(t){const n=t();return this.cache.set(e,n),n}}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}},"SimpleCache"),ht),ycn=(_Vt(dt=class extends Ocn{constructor(e){super(),this.cache=new Map,this.converter=e??(e=>e)}has(e,t){return this.throwIfDisposed(),this.cacheForContext(e).has(t)}set(e,t,n){this.throwIfDisposed(),this.cacheForContext(e).set(t,n)}get(e,t,n){this.throwIfDisposed();const r=this.cacheForContext(e);if(r.has(t))return r.get(t);if(n){const e=n();return r.set(t,e),e}}delete(e,t){return this.throwIfDisposed(),this.cacheForContext(e).delete(t)}clear(e){if(this.throwIfDisposed(),e){const t=this.converter(e);this.cache.delete(t)}else this.cache.clear()}cacheForContext(e){const t=this.converter(e);let n=this.cache.get(t);return n||(n=new Map,this.cache.set(t,n)),n}},"ContextCache"),dt),vcn=(_Vt(pt=class extends ycn{constructor(e,t){super(e=>e.toString()),t?(this.toDispose.push(e.workspace.DocumentBuilder.onDocumentPhase(t,e=>{this.clear(e.uri.toString())})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((e,t)=>{for(const n of t)this.clear(n)}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((e,t)=>{const n=e.concat(t);for(const r of n)this.clear(r)}))}},"DocumentCache"),pt),bcn=(_Vt(ft=class extends Acn{constructor(e,t){super(),t?(this.toDispose.push(e.workspace.DocumentBuilder.onBuildPhase(t,()=>{this.clear()})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((e,t)=>{t.length>0&&this.clear()}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}},"WorkspaceCache"),ft),xcn=(gt=class{constructor(e){this.reflection=e.shared.AstReflection,this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider,this.indexManager=e.shared.workspace.IndexManager,this.globalScopeCache=new bcn(e.shared)}getScope(e){const t=[],n=this.reflection.getReferenceType(e),r=KWt(e.container).localSymbols;if(r){let i=e.container;do{r.has(i)&&t.push(r.getStream(i).filter(e=>this.reflection.isSubtype(e.type,n))),i=i.$container}while(i)}let i=this.getGlobalScope(n,e);for(let o=t.length-1;o>=0;o--)i=this.createScope(t[o],i);return i}createScope(e,t,n){return new pcn(VWt(e),t,n)}createScopeForNodes(e,t,n){const r=VWt(e).map(e=>{const t=this.nameProvider.getName(e);if(t)return this.descriptions.createDescription(e,t)}).nonNullable();return new pcn(r,t,n)}getGlobalScope(e,t){return this.globalScopeCache.get(e,()=>new gcn(this.indexManager.allElements(e)))}},_Vt(gt,"DefaultScopeProvider"),gt);function wcn(e){return"string"==typeof e.$comment}function kcn(e){return"object"==typeof e&&!!e&&("$ref"in e||"$error"in e)}_Vt(wcn,"isAstNodeWithComment"),_Vt(kcn,"isIntermediateReference");var Scn,Tcn,$cn=(_Vt(mt=class{constructor(e){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=e.shared.workspace.LangiumDocuments,this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider,this.commentProvider=e.documentation.CommentProvider}serialize(e,t){const n=t??{},r=null==t?void 0:t.replacer,i=_Vt((e,t)=>this.replacer(e,t,n),"defaultReplacer"),o=r?(e,t)=>r(e,t,i):i;try{return this.currentDocument=KWt(e),JSON.stringify(e,o,null==t?void 0:t.space)}finally{this.currentDocument=void 0}}deserialize(e,t){const n=t??{},r=JSON.parse(e);return this.linkNode(r,r,n),r}replacer(e,t,{refText:n,sourceText:r,textRegions:i,comments:o,uriConverter:a}){var s,l,c;if(!this.ignoreProperties.has(e)){if(EWt(t)){const e=t.ref,r=n?t.$refText:void 0;if(e){const t=KWt(e);let n="";this.currentDocument&&this.currentDocument!==t&&(n=a?a(t.uri,e):t.uri.toString());return{$ref:`${n}#${this.astNodeLocator.getAstNodePath(e)}`,$refText:r}}return{$error:(null==(s=t.error)?void 0:s.message)??"Could not resolve reference",$refText:r}}if(RWt(t)){const e=n?t.$refText:void 0,r=[];for(const n of t.items){const e=n.ref,t=KWt(n.ref);let i="";this.currentDocument&&this.currentDocument!==t&&(i=a?a(t.uri,e):t.uri.toString());const o=this.astNodeLocator.getAstNodePath(e);r.push(`${i}#${o}`)}return{$refs:r,$refText:e}}if(PWt(t)){let n;if(i&&(n=this.addAstNodeRegionWithAssignmentsTo({...t}),e&&!t.$document||!(null==n?void 0:n.$textRegion)||(n.$textRegion.documentURI=null==(l=this.currentDocument)?void 0:l.uri.toString())),r&&!e&&(n??(n={...t}),n.$sourceText=null==(c=t.$cstNode)?void 0:c.text),o){n??(n={...t});const e=this.commentProvider.getComment(t);e&&(n.$comment=e.replace(/\r/g,""))}return n??t}return t}}addAstNodeRegionWithAssignmentsTo(e){const t=_Vt(e=>({offset:e.offset,end:e.end,length:e.length,range:e.range}),"createDocumentSegment");if(e.$cstNode){const n=(e.$textRegion=t(e.$cstNode)).assignments={};return Object.keys(e).filter(e=>!e.startsWith("$")).forEach(r=>{const i=dGt(e.$cstNode,r).map(t);0!==i.length&&(n[r]=i)}),e}}linkNode(e,t,n,r,i,o){for(const[s,l]of Object.entries(e))if(Array.isArray(l))for(let r=0;r<l.length;r++){const i=l[r];kcn(i)?l[r]=this.reviveReference(e,s,t,i,n):PWt(i)&&this.linkNode(i,t,n,e,s,r)}else kcn(l)?e[s]=this.reviveReference(e,s,t,l,n):PWt(l)&&this.linkNode(l,t,n,e,s);const a=e;a.$container=r,a.$containerProperty=i,a.$containerIndex=o}reviveReference(e,t,n,r,i){let o,a=r.$refText,s=r.$error;if(r.$ref){const e=this.getRefNode(n,r.$ref,i.uriConverter);if(PWt(e))return a||(a=this.nameProvider.getName(e)),{$refText:a??"",ref:e};s=e}else if(r.$refs){const e=[];for(const t of r.$refs){const r=this.getRefNode(n,t,i.uriConverter);PWt(r)&&e.push({ref:r})}if(0!==e.length)return{$refText:a??"",items:e};o={$refText:a??"",items:e},s??(s="Could not resolve multi-reference")}return s?(o??(o={$refText:a??"",ref:void 0}),o.error={info:{container:e,property:t,reference:o},message:s},o):void 0}getRefNode(e,t,n){try{const r=t.indexOf("#");if(0===r){const n=this.astNodeLocator.getAstNode(e,t.substring(1));return n||"Could not resolve path: "+t}if(r<0){const e=n?n(t):Kln.parse(t),r=this.langiumDocuments.getDocument(e);return r?r.parseResult.value:"Could not find document for URI: "+t}const i=n?n(t.substring(0,r)):Kln.parse(t.substring(0,r)),o=this.langiumDocuments.getDocument(i);if(!o)return"Could not find document for URI: "+t;if(r===t.length-1)return o.parseResult.value;const a=this.astNodeLocator.getAstNode(o.parseResult.value,t.substring(r+1));return a||"Could not resolve URI: "+t}catch(r){return String(r)}}},"DefaultJsonSerializer"),mt),_cn=(_Vt(Ot=class{get map(){return this.fileExtensionMap}constructor(e){this.languageIdMap=new Map,this.fileExtensionMap=new Map,this.fileNameMap=new Map,this.textDocuments=null==e?void 0:e.workspace.TextDocuments}register(e){const t=e.LanguageMetaData;for(const n of t.fileExtensions)this.fileExtensionMap.has(n),this.fileExtensionMap.set(n,e);if(t.fileNames)for(const n of t.fileNames)this.fileNameMap.has(n),this.fileNameMap.set(n,e);this.languageIdMap.set(t.languageId,e)}getServices(e){var t,n;if(0===this.languageIdMap.size)throw new Error("The service registry is empty. Use `register` to register the services of a language.");const r=null==(n=null==(t=this.textDocuments)?void 0:t.get(e))?void 0:n.languageId;if(void 0!==r){const e=this.languageIdMap.get(r);if(e)return e}const i=Hln.extname(e),o=Hln.basename(e),a=this.fileNameMap.get(o)??this.fileExtensionMap.get(i);if(!a)throw r?new Error(`The service registry contains no services for the extension '${i}' for language '${r}'.`):new Error(`The service registry contains no services for the extension '${i}'.`);return a}hasServices(e){try{return this.getServices(e),!0}catch{return!1}}get all(){return Array.from(this.languageIdMap.values())}},"DefaultServiceRegistry"),Ot);function Ccn(e){return{code:e}}_Vt(Ccn,"diagnosticData"),(Tcn=Scn||(Scn={})).defaults=["fast","slow","built-in"],Tcn.all=Tcn.defaults;var Qcn,Pcn,Ecn=(_Vt(At=class{constructor(e){this.entries=new ucn,this.knownCategories=new Set(Scn.defaults),this.entriesBefore=[],this.entriesAfter=[],this.reflection=e.shared.AstReflection}register(e,t=this,n="fast"){if("built-in"===n)throw new Error("The 'built-in' category is reserved for lexer, parser, and linker errors.");this.knownCategories.add(n);for(const[r,i]of Object.entries(e)){const e=i;if(Array.isArray(e))for(const i of e){const e={check:this.wrapValidationException(i,t),category:n};this.addEntry(r,e)}else if("function"==typeof e){const i={check:this.wrapValidationException(e,t),category:n};this.addEntry(r,i)}else EZt()}}wrapValidationException(e,t){return async(n,r,i)=>{await this.handleException(()=>e.call(t,n,r,i),"An error occurred during validation",r,n)}}async handleException(e,t,n,r){try{await e()}catch(i){if(Xln(i))throw i;i instanceof Error&&i.stack;n("error",`${t}: ${i instanceof Error?i.message:String(i)}`,{node:r})}}addEntry(e,t){if("AstNode"!==e)for(const n of this.reflection.getAllSubTypes(e))this.entries.add(n,t);else this.entries.add("AstNode",t)}getChecks(e,t){let n=VWt(this.entries.get(e)).concat(this.entries.get("AstNode"));return t&&(n=n.filter(e=>t.includes(e.category))),n.map(e=>e.check)}registerBeforeDocument(e,t=this){this.entriesBefore.push(this.wrapPreparationException(e,"An error occurred during set-up of the validation",t))}registerAfterDocument(e,t=this){this.entriesAfter.push(this.wrapPreparationException(e,"An error occurred during tear-down of the validation",t))}wrapPreparationException(e,t,n){return async(r,i,o,a)=>{await this.handleException(()=>e.call(n,r,i,o,a),t,i,r)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}getAllValidationCategories(e){return this.knownCategories}},"ValidationRegistry"),At),Rcn=Object.freeze({validateNode:!0,validateChildren:!0}),Bcn=(_Vt(yt=class{constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async validateDocument(e,t={},n=Rln.CancellationToken.None){const r=e.parseResult,i=[];if(await Fln(n),!t.categories||t.categories.includes("built-in")){if(this.processLexingErrors(r,i,t),t.stopAfterLexingErrors&&i.some(e=>{var t;return(null==(t=e.data)?void 0:t.code)===Qcn.LexingError}))return i;if(this.processParsingErrors(r,i,t),t.stopAfterParsingErrors&&i.some(e=>{var t;return(null==(t=e.data)?void 0:t.code)===Qcn.ParsingError}))return i;if(this.processLinkingErrors(e,i,t),t.stopAfterLinkingErrors&&i.some(e=>{var t;return(null==(t=e.data)?void 0:t.code)===Qcn.LinkingError}))return i}try{i.push(...await this.validateAst(r.value,t,n))}catch(o){if(Xln(o))throw o}return await Fln(n),i}processLexingErrors(e,t,n){var r;const i=[...e.lexerErrors,...(null==(r=e.lexerReport)?void 0:r.diagnostics)??[]];for(const o of i){const e=o.severity??"error",n={severity:Lcn(e),range:{start:{line:o.line-1,character:o.column-1},end:{line:o.line-1,character:o.column+o.length-1}},message:o.message,data:Dcn(e),source:this.getSource()};t.push(n)}}processParsingErrors(e,t,n){for(const r of e.parserErrors){let e;if(isNaN(r.token.startOffset)){if("previousToken"in r){const t=r.previousToken;if(isNaN(t.startOffset)){const t={line:0,character:0};e={start:t,end:t}}else{const n={line:t.endLine-1,character:t.endColumn};e={start:n,end:n}}}}else e=pZt(r.token);if(e){const n={severity:Lcn("error"),range:e,message:r.message,data:Ccn(Qcn.ParsingError),source:this.getSource()};t.push(n)}}}processLinkingErrors(e,t,n){var r;for(const i of e.references){const e=i.error;if(e){const n={node:e.info.container,range:null==(r=i.$refNode)?void 0:r.range,property:e.info.property,index:e.info.index,data:{code:Qcn.LinkingError,containerType:e.info.container.$type,property:e.info.property,refText:e.info.reference.$refText}};t.push(this.toDiagnostic("error",e.message,n))}}}async validateAst(e,t,n=Rln.CancellationToken.None){const r=[],i=_Vt((e,t,n)=>{r.push(this.toDiagnostic(e,t,n))},"acceptor");return await this.validateAstBefore(e,t,i,n),await this.validateAstNodes(e,t,i,n),await this.validateAstAfter(e,t,i,n),r}async validateAstBefore(e,t,n,r=Rln.CancellationToken.None){const i=this.validationRegistry.checksBefore;for(const o of i)await Fln(r),await o(e,n,t.categories??[],r)}async validateAstNodes(e,t,n,r=Rln.CancellationToken.None){var i;if(null==(i=this.profiler)?void 0:i.isActive("validating")){const i=this.profiler.createTask("validating",this.languageId);i.start();try{const o=rjt(e).iterator();for(const e of o){i.startSubTask(e.$type);const a=this.validateSingleNodeOptions(e,t);if(a.validateNode)try{const i=this.validationRegistry.getChecks(e.$type,t.categories);for(const t of i)await t(e,n,r)}finally{i.stopSubTask(e.$type)}a.validateChildren||o.prune()}}finally{i.stop()}}else{const i=rjt(e).iterator();for(const e of i){await Fln(r);const o=this.validateSingleNodeOptions(e,t);if(o.validateNode){const i=this.validationRegistry.getChecks(e.$type,t.categories);for(const t of i)await t(e,n,r)}o.validateChildren||i.prune()}}}validateSingleNodeOptions(e,t){return Rcn}async validateAstAfter(e,t,n,r=Rln.CancellationToken.None){const i=this.validationRegistry.checksAfter;for(const o of i)await Fln(r),await o(e,n,t.categories??[],r)}toDiagnostic(e,t,n){return{message:t,range:Icn(n),severity:Lcn(e),code:n.code,codeDescription:n.codeDescription,tags:n.tags,relatedInformation:n.relatedInformation,data:n.data,source:this.getSource()}}getSource(){return this.metadata.languageId}},"DefaultDocumentValidator"),yt);function Icn(e){if(e.range)return e.range;let t;return"string"==typeof e.property?t=pGt(e.node.$cstNode,e.property,e.index):"string"==typeof e.keyword&&(t=mGt(e.node.$cstNode,e.keyword,e.index)),t??(t=e.node.$cstNode),t?t.range:{start:{line:0,character:0},end:{line:0,character:0}}}function Lcn(e){switch(e){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw new Error("Invalid diagnostic severity: "+e)}}function Dcn(e){switch(e){case"error":return Ccn(Qcn.LexingError);case"warning":return Ccn(Qcn.LexingWarning);case"info":return Ccn(Qcn.LexingInfo);case"hint":return Ccn(Qcn.LexingHint);default:throw new Error("Invalid diagnostic severity: "+e)}}_Vt(Icn,"getDiagnosticRange"),_Vt(Lcn,"toDiagnosticSeverity"),_Vt(Dcn,"toDiagnosticData"),(Pcn=Qcn||(Qcn={})).LexingError="lexing-error",Pcn.LexingWarning="lexing-warning",Pcn.LexingInfo="lexing-info",Pcn.LexingHint="lexing-hint",Pcn.ParsingError="parsing-error",Pcn.LinkingError="linking-error";var Mcn=(_Vt(vt=class{constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,t,n){const r=n??KWt(e);t??(t=this.nameProvider.getName(e));const i=this.astNodeLocator.getAstNodePath(e);if(!t)throw new Error(`Node at path ${i} has no name.`);let o;const a=_Vt(()=>o??(o=fZt(this.nameProvider.getNameNode(e)??e.$cstNode)),"nameSegmentGetter");return{node:e,name:t,get nameSegment(){return a()},selectionSegment:fZt(e.$cstNode),type:e.$type,documentUri:r.uri,path:i}}},"DefaultAstNodeDescriptionProvider"),vt),Ncn=(bt=class{constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,t=Rln.CancellationToken.None){const n=[],r=e.parseResult.value;for(const i of rjt(r))await Fln(t),ojt(i).forEach(e=>{e.reference.error||n.push(...this.createInfoDescriptions(e))});return n}createInfoDescriptions(e){const t=e.reference;if(t.error||!t.$refNode)return[];let n=[];EWt(t)&&t.$nodeDescription?n=[t.$nodeDescription]:RWt(t)&&(n=t.items.map(e=>e.$nodeDescription).filter(e=>void 0!==e));const r=KWt(e.container).uri,i=this.nodeLocator.getAstNodePath(e.container),o=[],a=fZt(t.$refNode);for(const s of n)o.push({sourceUri:r,sourcePath:i,targetUri:s.documentUri,targetPath:s.path,segment:a,local:Hln.equals(s.documentUri,r)});return o}},_Vt(bt,"DefaultReferenceDescriptionProvider"),bt),Xcn=(_Vt(xt=class{constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(e){if(e.$container){const t=this.getAstNodePath(e.$container),n=this.getPathSegment(e);return t+this.segmentSeparator+n}return""}getPathSegment({$containerProperty:e,$containerIndex:t}){if(!e)throw new Error("Missing '$containerProperty' in AST node.");return void 0!==t?e+this.indexSeparator+t:e}getAstNode(e,t){return t.split(this.segmentSeparator).reduce((e,t)=>{if(!e||0===t.length)return e;const n=t.indexOf(this.indexSeparator);if(n>0){const r=t.substring(0,n),i=parseInt(t.substring(n+1)),o=e[r];return null==o?void 0:o[i]}return e[t]},e)}},"DefaultAstNodeLocator"),xt),Fcn={};EVt(Fcn,RVt(FVt()));var Ucn,zcn=(wt=class{constructor(e){this._ready=new qln,this.onConfigurationSectionUpdateEmitter=new Fcn.Emitter,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){var t;this.workspaceConfig=(null==(t=e.capabilities.workspace)?void 0:t.configuration)??!1}async initialized(e){if(this.workspaceConfig){if(e.register){const t=this.serviceRegistry.all;e.register({section:t.map(e=>this.toSectionName(e.LanguageMetaData.languageId))})}if(e.fetchConfiguration){const t=this.serviceRegistry.all.map(e=>({section:this.toSectionName(e.LanguageMetaData.languageId)})),n=await e.fetchConfiguration(t);t.forEach((e,t)=>{this.updateSectionConfiguration(e.section,n[t])})}}this._ready.resolve()}updateConfiguration(e){"object"==typeof e.settings&&null!==e.settings&&Object.entries(e.settings).forEach(([e,t])=>{this.updateSectionConfiguration(e,t),this.onConfigurationSectionUpdateEmitter.fire({section:e,configuration:t})})}updateSectionConfiguration(e,t){this.settings[e]=t}async getConfiguration(e,t){await this.ready;const n=this.toSectionName(e);if(this.settings[n])return this.settings[n][t]}toSectionName(e){return`${e}`}get onConfigurationSectionUpdate(){return this.onConfigurationSectionUpdateEmitter.event}},_Vt(wt,"DefaultConfigurationProvider"),wt),qcn=RVt(_Wt());!function(e){function t(e){return{dispose:_Vt(async()=>await e(),"dispose")}}_Vt(t,"create"),e.create=t}(Ucn||(Ucn={}));var Vcn=(kt=class{constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new ucn,this.documentPhaseListeners=new ucn,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=ecn.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.textDocuments=e.workspace.TextDocuments,this.indexManager=e.workspace.IndexManager,this.fileSystemProvider=e.workspace.FileSystemProvider,this.workspaceManager=()=>e.workspace.WorkspaceManager,this.serviceRegistry=e.ServiceRegistry}async build(e,t={},n=Rln.CancellationToken.None){var r;for(const i of e){const e=i.uri.toString();if(i.state===ecn.Validated){if("boolean"==typeof t.validation&&t.validation)this.resetToState(i,ecn.IndexedReferences);else if("object"==typeof t.validation){const n=this.findMissingValidationCategories(i,t);n.length>0&&(this.buildState.set(e,{completed:!1,options:{validation:{categories:n}},result:null==(r=this.buildState.get(e))?void 0:r.result}),i.state=ecn.IndexedReferences)}}else this.buildState.delete(e)}this.currentState=ecn.Changed,await this.emitUpdate(e.map(e=>e.uri),[]),await this.buildDocuments(e,t,n)}async update(e,t,n=Rln.CancellationToken.None){this.currentState=ecn.Changed;const r=[];for(const s of t){const e=this.langiumDocuments.deleteDocuments(s);for(const t of e)r.push(t.uri),this.cleanUpDeleted(t)}const i=(await Promise.all(e.map(e=>this.findChangedUris(e)))).flat();for(const s of i){let e=this.langiumDocuments.getDocument(s);void 0===e&&(e=this.langiumDocumentFactory.fromModel({$type:"INVALID"},s),e.state=ecn.Changed,this.langiumDocuments.addDocument(e)),this.resetToState(e,ecn.Changed)}const o=VWt(i).concat(r).map(e=>e.toString()).toSet();this.langiumDocuments.all.filter(e=>!o.has(e.uri.toString())&&this.shouldRelink(e,o)).forEach(e=>this.resetToState(e,ecn.ComputedScopes)),await this.emitUpdate(i,r),await Fln(n);const a=this.sortDocuments(this.langiumDocuments.all.filter(e=>{var t;return e.state<ecn.Validated||!(null==(t=this.buildState.get(e.uri.toString()))?void 0:t.completed)||this.resultsAreIncomplete(e,this.updateBuildOptions)}).toArray());await this.buildDocuments(a,this.updateBuildOptions,n)}resultsAreIncomplete(e,t){return this.findMissingValidationCategories(e,t).length>=1}findMissingValidationCategories(e,t){var n,r;const i=this.buildState.get(e.uri.toString()),o=this.serviceRegistry.getServices(e.uri).validation.ValidationRegistry.getAllValidationCategories(e),a=(null==(n=null==i?void 0:i.result)?void 0:n.validationChecks)?new Set(null==(r=null==i?void 0:i.result)?void 0:r.validationChecks):(null==i?void 0:i.completed)?o:new Set;return VWt(void 0===t||!0===t.validation?o:"object"==typeof t.validation?t.validation.categories??o:[]).filter(e=>!a.has(e)).toArray()}async findChangedUris(e){var t;if(this.langiumDocuments.getDocument(e)??(null==(t=this.textDocuments)?void 0:t.get(e)))return[e];try{const t=await this.fileSystemProvider.stat(e);if(t.isDirectory){return await this.workspaceManager().searchFolder(e)}if(this.workspaceManager().shouldIncludeEntry(t))return[e]}catch{}return[]}async emitUpdate(e,t){await Promise.all(this.updateListeners.map(n=>n(e,t)))}sortDocuments(e){let t=0,n=e.length-1;for(;t<n;){for(;t<e.length&&this.hasTextDocument(e[t]);)t++;for(;n>=0&&!this.hasTextDocument(e[n]);)n--;t<n&&([e[t],e[n]]=[e[n],e[t]])}return e}hasTextDocument(e){var t;return Boolean(null==(t=this.textDocuments)?void 0:t.get(e.uri))}shouldRelink(e,t){return!!e.references.some(e=>void 0!==e.error)||this.indexManager.isAffected(e,t)}onUpdate(e){return this.updateListeners.push(e),Ucn.create(()=>{const t=this.updateListeners.indexOf(e);t>=0&&this.updateListeners.splice(t,1)})}resetToState(e,t){switch(t){case ecn.Changed:case ecn.Parsed:this.indexManager.removeContent(e.uri);case ecn.IndexedContent:e.localSymbols=void 0;case ecn.ComputedScopes:this.serviceRegistry.getServices(e.uri).references.Linker.unlink(e);case ecn.Linked:this.indexManager.removeReferences(e.uri);case ecn.IndexedReferences:e.diagnostics=void 0,this.buildState.delete(e.uri.toString());case ecn.Validated:}e.state>t&&(e.state=t)}cleanUpDeleted(e){this.buildState.delete(e.uri.toString()),this.indexManager.remove(e.uri),e.state=ecn.Changed}async buildDocuments(e,t,n){this.prepareBuild(e,t),await this.runCancelable(e,ecn.Parsed,n,e=>this.langiumDocumentFactory.update(e,n)),await this.runCancelable(e,ecn.IndexedContent,n,e=>this.indexManager.updateContent(e,n)),await this.runCancelable(e,ecn.ComputedScopes,n,async e=>{const t=this.serviceRegistry.getServices(e.uri).references.ScopeComputation;e.localSymbols=await t.collectLocalSymbols(e,n)});const r=e.filter(e=>this.shouldLink(e));await this.runCancelable(r,ecn.Linked,n,e=>this.serviceRegistry.getServices(e.uri).references.Linker.link(e,n)),await this.runCancelable(r,ecn.IndexedReferences,n,e=>this.indexManager.updateReferences(e,n));const i=e.filter(e=>!!this.shouldValidate(e)||(this.markAsCompleted(e),!1));await this.runCancelable(i,ecn.Validated,n,async e=>{await this.validate(e,n),this.markAsCompleted(e)})}markAsCompleted(e){const t=this.buildState.get(e.uri.toString());t&&(t.completed=!0)}prepareBuild(e,t){for(const n of e){const e=n.uri.toString(),r=this.buildState.get(e);r&&!r.completed||this.buildState.set(e,{completed:!1,options:t,result:null==r?void 0:r.result})}}async runCancelable(e,t,n,r){for(const o of e)o.state<t&&(await Fln(n),await r(o),o.state=t,await this.notifyDocumentPhase(o,t,n));const i=e.filter(e=>e.state===t);await this.notifyBuildPhase(i,t,n),this.currentState=t}onBuildPhase(e,t){return this.buildPhaseListeners.add(e,t),Ucn.create(()=>{this.buildPhaseListeners.delete(e,t)})}onDocumentPhase(e,t){return this.documentPhaseListeners.add(e,t),Ucn.create(()=>{this.documentPhaseListeners.delete(e,t)})}waitUntil(e,t,n){let r;return t&&"path"in t?r=t:n=t,n??(n=Rln.CancellationToken.None),r?this.awaitDocumentState(e,r,n):this.awaitBuilderState(e,n)}awaitDocumentState(e,t,n){const r=this.langiumDocuments.getDocument(t);return r?r.state>=e?Promise.resolve(t):n.isCancellationRequested?Promise.reject(Nln):this.currentState>=e&&e>r.state?Promise.reject(new qcn.ResponseError(qcn.LSPErrorCodes.RequestFailed,`Document state of ${t.toString()} is ${ecn[r.state]}, requiring ${ecn[e]}, but workspace state is already ${ecn[this.currentState]}. Returning undefined.`)):new Promise((r,i)=>{const o=this.onDocumentPhase(e,e=>{Hln.equals(e.uri,t)&&(o.dispose(),a.dispose(),r(e.uri))}),a=n.onCancellationRequested(()=>{o.dispose(),a.dispose(),i(Nln)})}):Promise.reject(new qcn.ResponseError(qcn.LSPErrorCodes.ServerCancelled,`No document found for URI: ${t.toString()}`))}awaitBuilderState(e,t){return this.currentState>=e?Promise.resolve():t.isCancellationRequested?Promise.reject(Nln):new Promise((n,r)=>{const i=this.onBuildPhase(e,()=>{i.dispose(),o.dispose(),n()}),o=t.onCancellationRequested(()=>{i.dispose(),o.dispose(),r(Nln)})})}async notifyDocumentPhase(e,t,n){const r=this.documentPhaseListeners.get(t).slice();for(const o of r)try{await Fln(n),await o(e,n)}catch(i){if(!Xln(i))throw i}}async notifyBuildPhase(e,t,n){if(0===e.length)return;const r=this.buildPhaseListeners.get(t).slice();for(const i of r)await Fln(n),await i(e,n)}shouldLink(e){return this.getBuildOptions(e).eagerLinking??!0}shouldValidate(e){return Boolean(this.getBuildOptions(e).validation)}async validate(e,t){const n=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,r=this.getBuildOptions(e),i="object"==typeof r.validation?{...r.validation}:{};i.categories=this.findMissingValidationCategories(e,r);const o=await n.validateDocument(e,i,t);e.diagnostics?e.diagnostics.push(...o):e.diagnostics=o;const a=this.buildState.get(e.uri.toString());a&&(a.result??(a.result={}),a.result.validationChecks?a.result.validationChecks=VWt(a.result.validationChecks).concat(i.categories).distinct().toArray():a.result.validationChecks=[...i.categories])}getBuildOptions(e){var t;return(null==(t=this.buildState.get(e.uri.toString()))?void 0:t.options)??{}}},_Vt(kt,"DefaultDocumentBuilder"),kt),Wcn=(St=class{constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new ycn,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,t){const n=KWt(e).uri,r=[];return this.referenceIndex.forEach(e=>{e.forEach(e=>{Hln.equals(e.targetUri,n)&&e.targetPath===t&&r.push(e)})}),VWt(r)}allElements(e,t){let n=VWt(this.symbolIndex.keys());return t&&(n=n.filter(e=>!t||t.has(e))),n.map(t=>this.getFileDescriptions(t,e)).flat()}getFileDescriptions(e,t){if(!t)return this.symbolIndex.get(e)??[];const n=this.symbolByTypeIndex.get(e,t,()=>(this.symbolIndex.get(e)??[]).filter(e=>this.astReflection.isSubtype(e.type,t)));return n}remove(e){this.removeContent(e),this.removeReferences(e)}removeContent(e){const t=e.toString();this.symbolIndex.delete(t),this.symbolByTypeIndex.clear(t)}removeReferences(e){const t=e.toString();this.referenceIndex.delete(t)}async updateContent(e,t=Rln.CancellationToken.None){const n=this.serviceRegistry.getServices(e.uri),r=await n.references.ScopeComputation.collectExportedSymbols(e,t),i=e.uri.toString();this.symbolIndex.set(i,r),this.symbolByTypeIndex.clear(i)}async updateReferences(e,t=Rln.CancellationToken.None){const n=this.serviceRegistry.getServices(e.uri),r=await n.workspace.ReferenceDescriptionProvider.createDescriptions(e,t);this.referenceIndex.set(e.uri.toString(),r)}isAffected(e,t){const n=this.referenceIndex.get(e.uri.toString());return!!n&&n.some(e=>!e.local&&t.has(e.targetUri.toString()))}},_Vt(St,"DefaultIndexManager"),St),jcn=(_Vt(Tt=class{constructor(e){this.initialBuildOptions={},this._ready=new qln,this.serviceRegistry=e.ServiceRegistry,this.langiumDocuments=e.workspace.LangiumDocuments,this.documentBuilder=e.workspace.DocumentBuilder,this.fileSystemProvider=e.workspace.FileSystemProvider,this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}get workspaceFolders(){return this.folders}initialize(e){this.folders=e.workspaceFolders??void 0}initialized(e){return this.mutex.write(e=>this.initializeWorkspace(this.folders??[],e))}async initializeWorkspace(e,t=Rln.CancellationToken.None){const n=await this.performStartup(e);await Fln(t),await this.documentBuilder.build(n,this.initialBuildOptions,t)}async performStartup(e){const t=[],n=_Vt(e=>{t.push(e),this.langiumDocuments.hasDocument(e.uri)||this.langiumDocuments.addDocument(e)},"collector");await this.loadAdditionalDocuments(e,n);const r=[];await Promise.all(e.map(e=>this.getRootFolder(e)).map(async e=>this.traverseFolder(e,r)));const i=VWt(r).distinct(e=>e.toString()).filter(e=>!this.langiumDocuments.hasDocument(e));return await this.loadWorkspaceDocuments(i,n),this._ready.resolve(),t}async loadWorkspaceDocuments(e,t){await Promise.all(e.map(async e=>{const n=await this.langiumDocuments.getOrCreateDocument(e);t(n)}))}loadAdditionalDocuments(e,t){return Promise.resolve()}getRootFolder(e){return Kln.parse(e.uri)}async traverseFolder(e,t){try{const n=await this.fileSystemProvider.readDirectory(e);await Promise.all(n.map(async e=>{this.shouldIncludeEntry(e)&&(e.isDirectory?await this.traverseFolder(e.uri,t):e.isFile&&t.push(e.uri))}))}catch(jk){}}async searchFolder(e){const t=[];return await this.traverseFolder(e,t),t}shouldIncludeEntry(e){const t=Hln.basename(e.uri);return!t.startsWith(".")&&(e.isDirectory?"node_modules"!==t&&"out"!==t:!!e.isFile&&this.serviceRegistry.hasServices(e.uri))}},"DefaultWorkspaceManager"),Tt),Ycn=(_Vt($t=class{buildUnexpectedCharactersMessage(e,t,n,r,i){return s8t.buildUnexpectedCharactersMessage(e,t,n,r,i)}buildUnableToPopLexerModeMessage(e){return s8t.buildUnableToPopLexerModeMessage(e)}},"DefaultLexerErrorMessageProvider"),$t),Zcn={mode:"full"},Gcn=(_t=class{constructor(e){this.errorMessageProvider=e.parser.LexerErrorMessageProvider,this.tokenBuilder=e.parser.TokenBuilder;const t=this.tokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(t);const n=Jcn(t)?Object.values(t):t,r="production"===e.LanguageMetaData.mode;this.chevrotainLexer=new c8t(n,{positionTracking:"full",skipValidations:r,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(e,t=Zcn){var n,r;const i=this.chevrotainLexer.tokenize(e);return{tokens:i.tokens,errors:i.errors,hidden:i.groups.hidden??[],report:null==(r=(n=this.tokenBuilder).flushLexingReport)?void 0:r.call(n,e)}}toTokenTypeDictionary(e){if(Jcn(e))return e;const t=Kcn(e)?Object.values(e.modes).flat():e,n={};return t.forEach(e=>n[e.name]=e),n}},_Vt(_t,"DefaultLexer"),_t);function Hcn(e){return Array.isArray(e)&&(0===e.length||"name"in e[0])}function Kcn(e){return e&&"modes"in e&&"defaultMode"in e}function Jcn(e){return!Hcn(e)&&!Kcn(e)}function eun(e,t,n){let r,i;"string"==typeof e?(i=t,r=n):(i=e.range.start,r=t),i||(i=Zzt.create(0,0));return hun({index:0,tokens:oun({lines:nun(e),position:i,options:Aun(r)}),position:i})}function tun(e,t){const n=Aun(t),r=nun(e);if(0===r.length)return!1;const i=r[0],o=r[r.length-1],a=n.start,s=n.end;return Boolean(null==a?void 0:a.exec(i))&&Boolean(null==s?void 0:s.exec(o))}function nun(e){let t="";t="string"==typeof e?e:e.text;return t.split(ZZt)}_Vt(Hcn,"isTokenTypeArray"),_Vt(Kcn,"isIMultiModeLexerDefinition"),_Vt(Jcn,"isTokenTypeDictionary"),MVt(),_Vt(eun,"parseJSDoc"),_Vt(tun,"isJSDoc"),_Vt(nun,"getLines");var run=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,iun=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;function oun(e){var t,n,r;const i=[];let o=e.position.line,a=e.position.character;for(let s=0;s<e.lines.length;s++){const l=0===s,c=s===e.lines.length-1;let u=e.lines[s],h=0;if(l&&e.options.start){const n=null==(t=e.options.start)?void 0:t.exec(u);n&&(h=n.index+n[0].length)}else{const t=null==(n=e.options.line)?void 0:n.exec(u);t&&(h=t.index+t[0].length)}if(c){const t=null==(r=e.options.end)?void 0:r.exec(u);t&&(u=u.substring(0,t.index))}u=u.substring(0,uun(u));if(cun(u,h)>=u.length){if(i.length>0){const e=Zzt.create(o,a);i.push({type:"break",content:"",range:Gzt.create(e,e)})}}else{run.lastIndex=h;const e=run.exec(u);if(e){const t=e[0],n=e[1],r=Zzt.create(o,a+h),s=Zzt.create(o,a+h+t.length);i.push({type:"tag",content:n,range:Gzt.create(r,s)}),h+=t.length,h=cun(u,h)}if(h<u.length){const e=u.substring(h),t=Array.from(e.matchAll(iun));i.push(...aun(t,e,o,a+h))}}o++,a=0}return i.length>0&&"break"===i[i.length-1].type?i.slice(0,-1):i}function aun(e,t,n,r){const i=[];if(0===e.length){const e=Zzt.create(n,r),o=Zzt.create(n,r+t.length);i.push({type:"text",content:t,range:Gzt.create(e,o)})}else{let o=0;for(const s of e){const e=s.index,a=t.substring(o,e);a.length>0&&i.push({type:"text",content:t.substring(o,e),range:Gzt.create(Zzt.create(n,o+r),Zzt.create(n,e+r))});let l=a.length+1;const c=s[1];if(i.push({type:"inline-tag",content:c,range:Gzt.create(Zzt.create(n,o+l+r),Zzt.create(n,o+l+c.length+r))}),l+=c.length,4===s.length){l+=s[2].length;const e=s[3];i.push({type:"text",content:e,range:Gzt.create(Zzt.create(n,o+l+r),Zzt.create(n,o+l+e.length+r))})}else i.push({type:"text",content:"",range:Gzt.create(Zzt.create(n,o+l+r),Zzt.create(n,o+l+r))});o=e+s[0].length}const a=t.substring(o);a.length>0&&i.push({type:"text",content:a,range:Gzt.create(Zzt.create(n,o+r),Zzt.create(n,o+r+a.length))})}return i}_Vt(oun,"tokenize"),_Vt(aun,"buildInlineTokens");var sun=/\S/,lun=/\s*$/;function cun(e,t){const n=e.substring(t).match(sun);return n?t+n.index:e.length}function uun(e){const t=e.match(lun);if(t&&"number"==typeof t.index)return t.index}function hun(e){var t,n;const r=Zzt.create(e.position.line,e.position.character);if(0===e.tokens.length)return new vun([],Gzt.create(r,r));const i=[];for(;e.index<e.tokens.length;){const t=dun(e,i[i.length-1]);t&&i.push(t)}const o=(null==(t=i[0])?void 0:t.range.start)??r,a=(null==(n=i[i.length-1])?void 0:n.range.end)??r;return new vun(i,Gzt.create(o,a))}function dun(e,t){const n=e.tokens[e.index];return"tag"===n.type?mun(e,!1):"text"===n.type||"inline-tag"===n.type?fun(e):(pun(n,t),void e.index++)}function pun(e,t){if(t){const n=new Sun("",e.range);"inlines"in t?t.inlines.push(n):t.content.inlines.push(n)}}function fun(e){let t=e.tokens[e.index];const n=t;let r=t;const i=[];for(;t&&"break"!==t.type&&"tag"!==t.type;)i.push(gun(e)),r=t,t=e.tokens[e.index];return new kun(i,Gzt.create(n.range.start,r.range.end))}function gun(e){return"inline-tag"===e.tokens[e.index].type?mun(e,!0):Oun(e)}function mun(e,t){const n=e.tokens[e.index++],r=n.content.substring(1),i=e.tokens[e.index];if("text"===(null==i?void 0:i.type)){if(t){const i=Oun(e);return new bun(r,new kun([i],i.range),t,Gzt.create(n.range.start,i.range.end))}{const i=fun(e);return new bun(r,i,t,Gzt.create(n.range.start,i.range.end))}}{const e=n.range;return new bun(r,new kun([],e),t,e)}}function Oun(e){const t=e.tokens[e.index++];return new Sun(t.content,t.range)}function Aun(e){if(!e)return Aun({start:"/**",end:"*/",line:"*"});const{start:t,end:n,line:r}=e;return{start:yun(t,!0),end:yun(n,!1),line:yun(r,!0)}}function yun(e,t){if("string"==typeof e||"object"==typeof e){const n="string"==typeof e?nGt(e):e.source;return t?new RegExp(`^\\s*${n}`):new RegExp(`\\s*${n}\\s*$`)}return e}_Vt(cun,"skipWhitespace"),_Vt(uun,"lastCharacter"),_Vt(hun,"parseJSDocComment"),_Vt(dun,"parseJSDocElement"),_Vt(pun,"appendEmptyLine"),_Vt(fun,"parseJSDocText"),_Vt(gun,"parseJSDocInline"),_Vt(mun,"parseJSDocTag"),_Vt(Oun,"parseJSDocLine"),_Vt(Aun,"normalizeOptions"),_Vt(yun,"normalizeOption");var vun=(Ct=class{constructor(e,t){this.elements=e,this.range=t}getTag(e){return this.getAllTags().find(t=>t.name===e)}getTags(e){return this.getAllTags().filter(t=>t.name===e)}getAllTags(){return this.elements.filter(e=>"name"in e)}toString(){let e="";for(const t of this.elements)if(0===e.length)e=t.toString();else{const n=t.toString();e+=Tun(e)+n}return e.trim()}toMarkdown(e){let t="";for(const n of this.elements)if(0===t.length)t=n.toMarkdown(e);else{const r=n.toMarkdown(e);t+=Tun(t)+r}return t.trim()}},_Vt(Ct,"JSDocCommentImpl"),Ct),bun=(_Vt(Qt=class{constructor(e,t,n,r){this.name=e,this.content=t,this.inline=n,this.range=r}toString(){let e=`@${this.name}`;const t=this.content.toString();return 1===this.content.inlines.length?e=`${e} ${t}`:this.content.inlines.length>1&&(e=`${e}\n${t}`),this.inline?`{${e}}`:e}toMarkdown(e){var t;return(null==(t=null==e?void 0:e.renderTag)?void 0:t.call(e,this))??this.toMarkdownDefault(e)}toMarkdownDefault(e){const t=this.content.toMarkdown(e);if(this.inline){const n=xun(this.name,t,e??{});if("string"==typeof n)return n}let n="";"italic"===(null==e?void 0:e.tag)||void 0===(null==e?void 0:e.tag)?n="*":"bold"===(null==e?void 0:e.tag)?n="**":"bold-italic"===(null==e?void 0:e.tag)&&(n="***");let r=`${n}@${this.name}${n}`;return 1===this.content.inlines.length?r=`${r} — ${t}`:this.content.inlines.length>1&&(r=`${r}\n${t}`),this.inline?`{${r}}`:r}},"JSDocTagImpl"),Qt);function xun(e,t,n){var r;if("linkplain"===e||"linkcode"===e||"link"===e){const i=t.indexOf(" ");let o=t;if(i>0){const e=cun(t,i);o=t.substring(e),t=t.substring(0,i)}("linkcode"===e||"link"===e&&"code"===n.link)&&(o=`\`${o}\``);return(null==(r=n.renderLink)?void 0:r.call(n,t,o))??wun(t,o)}}function wun(e,t){try{return Kln.parse(e,!0),`[${t}](${e})`}catch{return e}}_Vt(xun,"renderInlineTag"),_Vt(wun,"renderLinkDefault");var kun=(Pt=class{constructor(e,t){this.inlines=e,this.range=t}toString(){let e="";for(let t=0;t<this.inlines.length;t++){const n=this.inlines[t],r=this.inlines[t+1];e+=n.toString(),r&&r.range.start.line>n.range.start.line&&(e+="\n")}return e}toMarkdown(e){let t="";for(let n=0;n<this.inlines.length;n++){const r=this.inlines[n],i=this.inlines[n+1];t+=r.toMarkdown(e),i&&i.range.start.line>r.range.start.line&&(t+="\n")}return t}},_Vt(Pt,"JSDocTextImpl"),Pt),Sun=(_Vt(Et=class{constructor(e,t){this.text=e,this.range=t}toString(){return this.text}toMarkdown(){return this.text}},"JSDocLineImpl"),Et);function Tun(e){return e.endsWith("\n")?"\n":"\n\n"}_Vt(Tun,"fillNewlines");var $un,_un=(Rt=class{constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){const t=this.commentProvider.getComment(e);if(t&&tun(t)){return eun(t).toMarkdown({renderLink:_Vt((t,n)=>this.documentationLinkRenderer(e,t,n),"renderLink"),renderTag:_Vt(t=>this.documentationTagRenderer(e,t),"renderTag")})}}documentationLinkRenderer(e,t,n){const r=this.findNameInLocalSymbols(e,t)??this.findNameInGlobalScope(e,t);if(r&&r.nameSegment){const e=r.nameSegment.range.start.line+1,t=r.nameSegment.range.start.character+1;return`[${n}](${r.documentUri.with({fragment:`L${e},${t}`}).toString()})`}}documentationTagRenderer(e,t){}findNameInLocalSymbols(e,t){const n=KWt(e).localSymbols;if(!n)return;let r=e;do{const e=n.getStream(r).find(e=>e.name===t);if(e)return e;r=r.$container}while(r)}findNameInGlobalScope(e,t){const n=this.indexManager.allElements().find(e=>e.name===t);return n}},_Vt(Rt,"JSDocDocumentationProvider"),Rt),Cun=(_Vt(Bt=class{constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){var t;return wcn(e)?e.$comment:null==(t=yZt(e.$cstNode,this.grammarConfig().multilineCommentRules))?void 0:t.text}},"DefaultCommentProvider"),Bt),Qun=(_Vt(It=class{constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,t){return Promise.resolve(this.syncParser.parse(e))}},"DefaultAsyncParser"),It),Pun=(_Vt(Lt=class{constructor(e){this.threadCount=8,this.terminationDelay=200,this.workerPool=[],this.queue=[],this.hydrator=e.serializer.Hydrator}initializeWorkers(){for(;this.workerPool.length<this.threadCount;){const e=this.createWorker();e.onReady(()=>{if(this.queue.length>0){const t=this.queue.shift();t&&(e.lock(),t.resolve(e))}}),this.workerPool.push(e)}}async parse(e,t){const n=await this.acquireParserWorker(t),r=new qln;let i;const o=t.onCancellationRequested(()=>{i=setTimeout(()=>{this.terminateWorker(n)},this.terminationDelay)});return n.parse(e).then(e=>{const t=this.hydrator.hydrate(e);r.resolve(t)}).catch(e=>{r.reject(e)}).finally(()=>{o.dispose(),clearTimeout(i)}),r.promise}terminateWorker(e){e.terminate();const t=this.workerPool.indexOf(e);t>=0&&this.workerPool.splice(t,1)}async acquireParserWorker(e){this.initializeWorkers();for(const n of this.workerPool)if(n.ready)return n.lock(),n;const t=new qln;return e.onCancellationRequested(()=>{const e=this.queue.indexOf(t);e>=0&&this.queue.splice(e,1),t.reject(Nln)}),this.queue.push(t),t.promise}},"AbstractThreadedAsyncParser"),Lt),Eun=(_Vt(Dt=class{get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(e,t,n,r){this.onReadyEmitter=new Fcn.Emitter,this.deferred=new qln,this._ready=!0,this._parsing=!1,this.sendMessage=e,this._terminate=r,t(e=>{const t=e;this.deferred.resolve(t),this.unlock()}),n(e=>{this.deferred.reject(e),this.unlock()})}terminate(){this.deferred.reject(Nln),this._terminate()}lock(){this._ready=!1}unlock(){this._parsing=!1,this._ready=!0,this.onReadyEmitter.fire()}parse(e){if(this._parsing)throw new Error("Parser worker is busy");return this._parsing=!0,this.deferred=new qln,this.sendMessage(e),this.deferred.promise}},"ParserWorker"),Dt),Run=(_Vt(Mt=class{constructor(){this.previousTokenSource=new Rln.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();const t=Dln();return this.previousTokenSource=t,this.enqueue(this.writeQueue,e,t.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,t,n=Rln.CancellationToken.None){const r=new qln,i={action:t,deferred:r,cancellationToken:n};return e.push(i),this.performNextOperation(),r.promise}async performNextOperation(){if(!this.done)return;const e=[];if(this.writeQueue.length>0)e.push(this.writeQueue.shift());else{if(!(this.readQueue.length>0))return;e.push(...this.readQueue.splice(0,this.readQueue.length))}this.done=!1,await Promise.all(e.map(async({action:e,deferred:t,cancellationToken:n})=>{try{const r=await Promise.resolve().then(()=>e(n));t.resolve(r)}catch(r){Xln(r)?t.resolve(void 0):t.reject(r)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}},"DefaultWorkspaceLock"),Mt),Iun=(Nt=class{constructor(e){this.grammarElementIdMap=new hcn,this.tokenTypeIdMap=new hcn,this.grammar=e.Grammar,this.lexer=e.parser.Lexer,this.linker=e.references.Linker}dehydrate(e){return{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport?this.dehydrateLexerReport(e.lexerReport):void 0,parserErrors:e.parserErrors.map(e=>({...e,message:e.message})),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}dehydrateLexerReport(e){return e}createDehyrationContext(e){const t=new Map,n=new Map;for(const r of rjt(e))t.set(r,{});if(e.$cstNode)for(const r of uZt(e.$cstNode))n.set(r,{});return{astNodes:t,cstNodes:n}}dehydrateAstNode(e,t){const n=t.astNodes.get(e);n.$type=e.$type,n.$containerIndex=e.$containerIndex,n.$containerProperty=e.$containerProperty,void 0!==e.$cstNode&&(n.$cstNode=this.dehydrateCstNode(e.$cstNode,t));for(const[r,i]of Object.entries(e))if(!r.startsWith("$"))if(Array.isArray(i)){const e=[];n[r]=e;for(const n of i)PWt(n)?e.push(this.dehydrateAstNode(n,t)):EWt(n)?e.push(this.dehydrateReference(n,t)):e.push(n)}else PWt(i)?n[r]=this.dehydrateAstNode(i,t):EWt(i)?n[r]=this.dehydrateReference(i,t):void 0!==i&&(n[r]=i);return n}dehydrateReference(e,t){const n={};return n.$refText=e.$refText,e.$refNode&&(n.$refNode=t.cstNodes.get(e.$refNode)),n}dehydrateCstNode(e,t){const n=t.cstNodes.get(e);return NWt(e)?n.fullText=e.fullText:n.grammarSource=this.getGrammarElementId(e.grammarSource),n.hidden=e.hidden,n.astNode=t.astNodes.get(e.astNode),DWt(e)?n.content=e.content.map(e=>this.dehydrateCstNode(e,t)):MWt(e)&&(n.tokenType=e.tokenType.name,n.offset=e.offset,n.length=e.length,n.startLine=e.range.start.line,n.startColumn=e.range.start.character,n.endLine=e.range.end.line,n.endColumn=e.range.end.character),n}hydrate(e){const t=e.value,n=this.createHydrationContext(t);return"$cstNode"in t&&this.hydrateCstNode(t.$cstNode,n),{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport,parserErrors:e.parserErrors,value:this.hydrateAstNode(t,n)}}createHydrationContext(e){const t=new Map,n=new Map;for(const i of rjt(e))t.set(i,{});let r;if(e.$cstNode)for(const i of uZt(e.$cstNode)){let e;"fullText"in i?(e=new Hsn(i.fullText),r=e):"content"in i?e=new Zsn:"tokenType"in i&&(e=this.hydrateCstLeafNode(i)),e&&(n.set(i,e),e.root=r)}return{astNodes:t,cstNodes:n}}hydrateAstNode(e,t){const n=t.astNodes.get(e);n.$type=e.$type,n.$containerIndex=e.$containerIndex,n.$containerProperty=e.$containerProperty,e.$cstNode&&(n.$cstNode=t.cstNodes.get(e.$cstNode));for(const[r,i]of Object.entries(e))if(!r.startsWith("$"))if(Array.isArray(i)){const e=[];n[r]=e;for(const o of i)PWt(o)?e.push(this.setParent(this.hydrateAstNode(o,t),n)):EWt(o)?e.push(this.hydrateReference(o,n,r,t)):e.push(o)}else PWt(i)?n[r]=this.setParent(this.hydrateAstNode(i,t),n):EWt(i)?n[r]=this.hydrateReference(i,n,r,t):void 0!==i&&(n[r]=i);return n}setParent(e,t){return e.$container=t,e}hydrateReference(e,t,n,r){return this.linker.buildReference(t,n,r.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,t,n=0){const r=t.cstNodes.get(e);if("number"==typeof e.grammarSource&&(r.grammarSource=this.getGrammarElement(e.grammarSource)),r.astNode=t.astNodes.get(e.astNode),DWt(r))for(const i of e.content){const e=this.hydrateCstNode(i,t,n++);r.content.push(e)}return r}hydrateCstLeafNode(e){const t=this.getTokenType(e.tokenType),n=e.offset,r=e.length,i=e.startLine,o=e.startColumn,a=e.endLine,s=e.endColumn,l=e.hidden;return new Ysn(n,r,{start:{line:i,character:o},end:{line:a,character:s}},t,l)}getTokenType(e){return this.lexer.definition[e]}getGrammarElementId(e){if(e)return 0===this.grammarElementIdMap.size&&this.createGrammarElementIdMap(),this.grammarElementIdMap.get(e)}getGrammarElement(e){0===this.grammarElementIdMap.size&&this.createGrammarElementIdMap();return this.grammarElementIdMap.getKey(e)}createGrammarElementIdMap(){let e=0;for(const t of rjt(this.grammar))djt(t)&&this.grammarElementIdMap.set(t,e++)}},_Vt(Nt,"DefaultHydrator"),Nt);function Lun(e){return{documentation:{CommentProvider:_Vt(e=>new Cun(e),"CommentProvider"),DocumentationProvider:_Vt(e=>new _un(e),"DocumentationProvider")},parser:{AsyncParser:_Vt(e=>new Qun(e),"AsyncParser"),GrammarConfig:_Vt(e=>qGt(e),"GrammarConfig"),LangiumParser:_Vt(e=>_ln(e),"LangiumParser"),CompletionParser:_Vt(e=>$ln(e),"CompletionParser"),ValueConverter:_Vt(()=>new Eln,"ValueConverter"),TokenBuilder:_Vt(()=>new Pln,"TokenBuilder"),Lexer:_Vt(e=>new Gcn(e),"Lexer"),ParserErrorMessageProvider:_Vt(()=>new iln,"ParserErrorMessageProvider"),LexerErrorMessageProvider:_Vt(()=>new Ycn,"LexerErrorMessageProvider")},workspace:{AstNodeLocator:_Vt(()=>new Xcn,"AstNodeLocator"),AstNodeDescriptionProvider:_Vt(e=>new Mcn(e),"AstNodeDescriptionProvider"),ReferenceDescriptionProvider:_Vt(e=>new Ncn(e),"ReferenceDescriptionProvider")},references:{Linker:_Vt(e=>new acn(e),"Linker"),NameProvider:_Vt(()=>new lcn,"NameProvider"),ScopeProvider:_Vt(e=>new xcn(e),"ScopeProvider"),ScopeComputation:_Vt(e=>new dcn(e),"ScopeComputation"),References:_Vt(e=>new ccn(e),"References")},serializer:{Hydrator:_Vt(e=>new Iun(e),"Hydrator"),JsonSerializer:_Vt(e=>new $cn(e),"JsonSerializer")},validation:{DocumentValidator:_Vt(e=>new Bcn(e),"DocumentValidator"),ValidationRegistry:_Vt(e=>new Ecn(e),"ValidationRegistry")},shared:_Vt(()=>e.shared,"shared")}}function Dun(e){return{ServiceRegistry:_Vt(e=>new _cn(e),"ServiceRegistry"),workspace:{LangiumDocuments:_Vt(e=>new icn(e),"LangiumDocuments"),LangiumDocumentFactory:_Vt(e=>new rcn(e),"LangiumDocumentFactory"),DocumentBuilder:_Vt(e=>new Vcn(e),"DocumentBuilder"),IndexManager:_Vt(e=>new Wcn(e),"IndexManager"),WorkspaceManager:_Vt(e=>new jcn(e),"WorkspaceManager"),FileSystemProvider:_Vt(t=>e.fileSystemProvider(t),"FileSystemProvider"),WorkspaceLock:_Vt(()=>new Run,"WorkspaceLock"),ConfigurationProvider:_Vt(e=>new zcn(e),"ConfigurationProvider")},profilers:{}}}function Mun(e,t,n,r,i,o,a,s,l){return Fun([e,t,n,r,i,o,a,s,l].reduce(qun,{}))}_Vt(Lun,"createDefaultCoreModule"),_Vt(Dun,"createDefaultSharedCoreModule"),($un||($un={})).merge=(e,t)=>qun(qun({},e),t),_Vt(Mun,"inject");var Nun=Symbol("isProxy");function Xun(e){if(e&&e[Nun])for(const t of Object.values(e))Xun(t);return e}function Fun(e,t){const n=new Proxy({},{deleteProperty:_Vt(()=>!1,"deleteProperty"),set:_Vt(()=>{throw new Error("Cannot set property on injected service container")},"set"),get:_Vt((r,i)=>i===Nun||zun(r,i,e,t||n),"get"),getOwnPropertyDescriptor:_Vt((r,i)=>(zun(r,i,e,t||n),Object.getOwnPropertyDescriptor(r,i)),"getOwnPropertyDescriptor"),has:_Vt((t,n)=>n in e,"has"),ownKeys:_Vt(()=>[...Object.getOwnPropertyNames(e)],"ownKeys")});return n}_Vt(Xun,"eagerLoad"),_Vt(Fun,"_inject");var Uun=Symbol();function zun(e,t,n,r){if(t in e){if(e[t]instanceof Error)throw new Error("Construction failure. Please make sure that your dependencies are constructable. Cause: "+e[t]);if(e[t]===Uun)throw new Error('Cycle detected. Please make "'+String(t)+'" lazy. Visit https://langium.org/docs/reference/configuration-services/#resolving-cyclic-dependencies');return e[t]}if(t in n){const o=n[t];e[t]=Uun;try{e[t]="function"==typeof o?o(r):Fun(o,r)}catch(i){throw e[t]=i instanceof Error?i:void 0,i}return e[t]}}function qun(e,t){if(t)for(const[n,r]of Object.entries(t))if(null!=r)if("object"==typeof r){const t=e[n];e[n]=qun("object"==typeof t&&null!==t?t:{},r)}else e[n]=r;return e}_Vt(zun,"_resolve"),_Vt(qun,"_merge");var Vun,Wun,jun={indentTokenName:"INDENT",dedentTokenName:"DEDENT",whitespaceTokenName:"WS",ignoreIndentationDelimiters:[]};(Wun=Vun||(Vun={})).REGULAR="indentation-sensitive",Wun.IGNORE_INDENTATION="ignore-indentation";var Yun=(Xt=class extends Pln{constructor(e=jun){super(),this.indentationStack=[0],this.whitespaceRegExp=/[ \t]+/y,this.options={...jun,...e},this.indentTokenType=v8t({name:this.options.indentTokenName,pattern:this.indentMatcher.bind(this),line_breaks:!1}),this.dedentTokenType=v8t({name:this.options.dedentTokenName,pattern:this.dedentMatcher.bind(this),line_breaks:!1})}buildTokens(e,t){const n=super.buildTokens(e,t);if(!Hcn(n))throw new Error("Invalid tokens built by default builder");const{indentTokenName:r,dedentTokenName:i,whitespaceTokenName:o,ignoreIndentationDelimiters:a}=this.options;let s,l,c;const u=[];for(const h of n){for(const[e,t]of a)h.name===e?h.PUSH_MODE=Vun.IGNORE_INDENTATION:h.name===t&&(h.POP_MODE=!0);h.name===i?s=h:h.name===r?l=h:h.name===o?c=h:u.push(h)}if(!s||!l||!c)throw new Error("Some indentation/whitespace tokens not found!");if(a.length>0){return{modes:{[Vun.REGULAR]:[s,l,...u,c],[Vun.IGNORE_INDENTATION]:[...u,c]},defaultMode:Vun.REGULAR}}return[s,l,c,...u]}flushLexingReport(e){return{...super.flushLexingReport(e),remainingDedents:this.flushRemainingDedents(e)}}isStartOfLine(e,t){return 0===t||"\r\n".includes(e[t-1])}matchWhitespace(e,t,n,r){this.whitespaceRegExp.lastIndex=t;const i=this.whitespaceRegExp.exec(e);return{currIndentLevel:(null==i?void 0:i[0].length)??0,prevIndentLevel:this.indentationStack.at(-1),match:i}}createIndentationTokenInstance(e,t,n,r){const i=this.getLineNumber(t,r);return w8t(e,n,r,r+n.length,i,i,1,n.length)}getLineNumber(e,t){return e.substring(0,t).split(/\r\n|\r|\n/).length}indentMatcher(e,t,n,r){if(!this.isStartOfLine(e,t))return null;const{currIndentLevel:i,prevIndentLevel:o,match:a}=this.matchWhitespace(e,t,n,r);return i<=o?null:(this.indentationStack.push(i),a)}dedentMatcher(e,t,n,r){var i,o;if(!this.isStartOfLine(e,t))return null;const{currIndentLevel:a,prevIndentLevel:s,match:l}=this.matchWhitespace(e,t,n,r);if(a>=s)return null;const c=this.indentationStack.lastIndexOf(a);if(-1===c)return this.diagnostics.push({severity:"error",message:`Invalid dedent level ${a} at offset: ${t}. Current indentation stack: ${this.indentationStack}`,offset:t,length:(null==(i=null==l?void 0:l[0])?void 0:i.length)??0,line:this.getLineNumber(e,t),column:1}),null;const u=this.indentationStack.length-c-1,h=(null==(o=e.substring(0,t).match(/[\r\n]+$/))?void 0:o[0].length)??1;for(let d=0;d<u;d++){const r=this.createIndentationTokenInstance(this.dedentTokenType,e,"",t-(h-1));n.push(r),this.indentationStack.pop()}return null}buildTerminalToken(e){const t=super.buildTerminalToken(e),{indentTokenName:n,dedentTokenName:r,whitespaceTokenName:i}=this.options;return t.name===n?this.indentTokenType:t.name===r?this.dedentTokenType:t.name===i?v8t({name:i,pattern:this.whitespaceRegExp,group:c8t.SKIPPED}):t}flushRemainingDedents(e){const t=[];for(;this.indentationStack.length>1;)t.push(this.createIndentationTokenInstance(this.dedentTokenType,e,"",e.length)),this.indentationStack.pop();return this.indentationStack=[0],t}},_Vt(Xt,"IndentationAwareTokenBuilder"),Xt),Zun=(Ft=class extends Gcn{constructor(e){if(super(e),!(e.parser.TokenBuilder instanceof Yun))throw new Error("IndentationAwareLexer requires an accompanying IndentationAwareTokenBuilder");this.indentationTokenBuilder=e.parser.TokenBuilder}tokenize(e,t=Zcn){const n=super.tokenize(e),r=n.report;"full"===(null==t?void 0:t.mode)&&n.tokens.push(...r.remainingDedents),r.remainingDedents=[];const{indentTokenType:i,dedentTokenType:o}=this.indentationTokenBuilder,a=i.tokenTypeIdx,s=o.tokenTypeIdx,l=[],c=n.tokens.length-1;for(let u=0;u<c;u++){const e=n.tokens[u],t=n.tokens[u+1];e.tokenTypeIdx!==a||t.tokenTypeIdx!==s?l.push(e):u++}return c>=0&&l.push(n.tokens[c]),n.tokens=l,n}},_Vt(Ft,"IndentationAwareLexer"),Ft),Gun={};QVt(Gun,{AstUtils:()=>YWt,BiMap:()=>hcn,Cancellation:()=>Rln,ContextCache:()=>ycn,CstUtils:()=>QWt,DONE_RESULT:()=>qWt,Deferred:()=>qln,Disposable:()=>Ucn,DisposableCache:()=>Ocn,DocumentCache:()=>vcn,EMPTY_STREAM:()=>zWt,ErrorWithLocation:()=>PZt,GrammarUtils:()=>QZt,MultiMap:()=>ucn,OperationCancelled:()=>Nln,Reduction:()=>WWt,RegExpUtils:()=>BZt,SimpleCache:()=>Acn,StreamImpl:()=>XWt,TreeStreamImpl:()=>jWt,URI:()=>Kln,UriTrie:()=>ncn,UriUtils:()=>Hln,WorkspaceCache:()=>bcn,assertCondition:()=>RZt,assertUnreachable:()=>EZt,delayNextTick:()=>Bln,interruptAndCheck:()=>Fln,isOperationCancelled:()=>Xln,loadGrammarFromJson:()=>nhn,setInterruptionPeriod:()=>Mln,startCancelableOperation:()=>Dln,stream:()=>VWt}),EVt(Gun,Fcn);var Hun=(_Vt(Ut=class{stat(e){throw new Error("No file system is available.")}statSync(e){throw new Error("No file system is available.")}async exists(){return!1}existsSync(){return!1}readBinary(){throw new Error("No file system is available.")}readBinarySync(){throw new Error("No file system is available.")}readFile(){throw new Error("No file system is available.")}readFileSync(){throw new Error("No file system is available.")}async readDirectory(){return[]}readDirectorySync(){return[]}},"EmptyFileSystemProvider"),Ut),Kun={fileSystemProvider:_Vt(()=>new Hun,"fileSystemProvider")},Jun={Grammar:_Vt(()=>{},"Grammar"),LanguageMetaData:_Vt(()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"}),"LanguageMetaData")},ehn={AstReflection:_Vt(()=>new sZt,"AstReflection")};function thn(){const e=Mun(Dun(Kun),ehn),t=Mun(Lun({shared:e}),Jun);return e.ServiceRegistry.register(t),t}function nhn(e){const t=thn(),n=t.serializer.JsonSerializer.deserialize(e);return t.shared.workspace.LangiumDocumentFactory.fromModel(n,Kln.parse(`memory:/${n.name??"grammar"}.langium`)),n}_Vt(thn,"createMinimalGrammarServices"),_Vt(nhn,"loadGrammarFromJson"),EVt(CWt,Gun);var rhn,ihn,ohn,ahn,shn,lhn,chn,uhn,hhn,dhn,phn,fhn,ghn,mhn,Ohn,Ahn=(zt=class{constructor(e){this.activeCategories=new Set,this.allCategories=new Set(["validating","parsing","linking"]),this.activeCategories=e??new Set(this.allCategories),this.records=new ucn}isActive(e){return this.activeCategories.has(e)}start(...e){e?e.forEach(e=>this.activeCategories.add(e)):this.activeCategories=new Set(this.allCategories)}stop(...e){e?e.forEach(e=>this.activeCategories.delete(e)):this.activeCategories.clear()}createTask(e,t){if(!this.isActive(e))throw new Error(`Category "${e}" is not active.`);return new yhn(t=>this.records.add(e,this.dumpRecord(e,t)),t)}dumpRecord(e,t){const n=[];for(const i of t.entries.keys()){const e=t.entries.get(i),r=e.reduce((e,t)=>e+t);n.push({name:`${t.identifier}.${i}`,count:e.length,duration:r})}const r=t.duration-n.map(e=>e.duration).reduce((e,t)=>e+t,0);return n.push({name:t.identifier,count:1,duration:r}),n.sort((e,t)=>t.duration-e.duration),_Vt(function(e){return Math.round(100*e)/100},"Round"),t}getRecords(...e){return 0===e.length?this.records.values():this.records.entries().filter(t=>e.some(e=>e===t[0])).flatMap(e=>e[1])}},_Vt(zt,"DefaultLangiumProfiler"),zt),yhn=(_Vt(qt=class{constructor(e,t){this.stack=[],this.entries=new ucn,this.addRecord=e,this.identifier=t}start(){if(void 0!==this.startTime)throw new Error(`Task "${this.identifier}" is already started.`);this.startTime=performance.now()}stop(){if(void 0===this.startTime)throw new Error(`Task "${this.identifier}" was not started.`);if(0!==this.stack.length)throw new Error(`Task "${this.identifier}" cannot be stopped before sub-task(s): ${this.stack.map(e=>e.id).join(", ")}.`);const e={identifier:this.identifier,date:new Date,duration:performance.now()-this.startTime,entries:this.entries};this.addRecord(e),this.startTime=void 0,this.entries.clear()}startSubTask(e){this.stack.push({id:e,start:performance.now(),content:0})}stopSubTask(e){const t=this.stack.pop();if(!t)throw new Error(`Task "${this.identifier}.${e}" was not started.`);if(t.id!==e)throw new Error(`Sub-Task "${t.id}" is not already stopped.`);const n=performance.now()-t.start;void 0!==this.stack.at(-1)&&(this.stack[this.stack.length-1].content+=n);const r=n-t.content;this.entries.add(e,r)}},"ProfilingTask"),qt);(rhn||(rhn={})).Terminals={ARROW_DIRECTION:/L|R|T|B/,ARROW_GROUP:/\{group\}/,ARROW_INTO:/<|>/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ARCH_ICON:/\([\w-:]+\)/,ARCH_TITLE:/\[(?:"([^"\\]|\\.)*"|'([^'\\]|\\.)*'|[^\[\]\r\n]+)\]/},(ihn||(ihn={})).Terminals={DOMAIN_NAME:/complex|complicated|clear|chaotic|confusion/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/},(ohn||(ohn={})).Terminals={EM_ID:/[_a-zA-Z][\w_]*/,EM_FID:/\d{1,3}/,EM_DATA_INLINE:/\{(.*)\}|"(.*)"|'(.*)'/,EM_DATA_BLOCK:/\{[\t ]*\r?\n(?:[\S\s]*?\r?\n)?\}(?:\r?\n|(?!\S))/,EM_ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EM_ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,EM_TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,EM_WS:/\s+/,EM_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EM_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EM_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EM_ML_COMMENT:/\/\*[\s\S]*?\*\//,EM_SL_COMMENT:/\/\/[^\n\r]*/},(ahn||(ahn={})).Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,REFERENCE:/\w([-\./\w]*[-\w])?/},(shn||(shn={})).Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/},(lhn||(lhn={})).Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/},(chn||(chn={})).Terminals={NUMBER_PIE:/(?:-?[0-9]+\.[0-9]+(?!\.))|(?:-?(0|[1-9][0-9]*)(?!\.))/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/},(uhn||(uhn={})).Terminals={GRATICULE:/circle|polygon/,BOOLEAN:/true|false/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NUMBER:/(?:[0-9]+\.[0-9]+(?!\.))|(?:0|[1-9][0-9]*(?!\.))/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/},(hhn||(hhn={})).Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ABNF_RULENAME:/[A-Za-z][A-Za-z0-9-]*/,ABNF_STRING:/"[^"]*"/,ABNF_NUMVAL:/%[xXdDbB][0-9A-Fa-f]+(?:-[0-9A-Fa-f]+|\.[0-9A-Fa-f]+)*/,ABNF_REPEAT:/[0-9]*\*[0-9]*/,ABNF_EXACT_REPEAT:/[0-9]+/,ABNF_WHITESPACE:/[\t \r\n]+/,ABNF_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,ABNF_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,ABNF_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ABNF_COMMENT:/;[^\n\r]*/},(dhn||(dhn={})).Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EBNF_ID:/[A-Z_a-z][\w-]*/,EBNF_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,EBNF_SPECIAL_SEQUENCE:/\?(?=[^?;]*[^?\s;][^?;]*\?)[^?;]*\?/,EBNF_WHITESPACE:/[\t \r\n]+/,EBNF_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EBNF_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EBNF_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EBNF_BLOCK_COMMENT:/\/\*[\s\S]*?\*\//,EBNF_ISO_COMMENT:/\(\*[\s\S]*?\*\)/},(phn||(phn={})).Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,RR_ID:/[A-Z_a-z][\w-]*/,RR_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,RR_WHITESPACE:/[\t \r\n]+/,RR_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,RR_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,RR_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,RR_BLOCK_COMMENT:/\/\*[\s\S]*?\*\//},(fhn||(fhn={})).Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,PEG_ID:/[A-Z_a-z][\w-]*/,PEG_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,PEG_WHITESPACE:/[\t \r\n]+/,PEG_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,PEG_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,PEG_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,PEG_LINE_COMMENT:/#[^\n\r]*/},(ghn||(ghn={})).Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,TREEMAP_KEYWORD:/treemap-beta|treemap/,CLASS_DEF:/classDef\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\s+([^;\r\n]*))?(?:;)?/,STYLE_SEPARATOR:/:::/,SEPARATOR:/:/,COMMA:/,/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,ID2:/[a-zA-Z_][a-zA-Z0-9_]*/,NUMBER2:/[0-9_\.\,]+/,STRING2:/"[^"]*"|'[^']*'/},(mhn||(mhn={})).Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,CLASS_ANNOTATION:/[ \t]+:::[ \t]*[A-Za-z_][\w-]*/,ICON_ANNOTATION:/[ \t]+icon\([\w-]*(?::[\w-]+)?\)/,DESC_ANNOTATION:/[ \t]+##[^\n\r]*/,INDENTATION:/[ \t]{1,}/,QUOTED_NAME:/"[^"]*"|'[^']*'/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,BARE_NAME:/(?!:::|icon\(|##)[^ \t\n\r"'](?:(?![ \t]+:::[ \t]*[A-Za-z_]|[ \t]+icon\(|[ \t]+##)[^\n\r])*/},(Ohn||(Ohn={})).Terminals={WARDLEY_NUMBER:/[0-9]+\.[0-9]+/,ARROW:/->/,LINK_PORT:/\+<>|\+>|\+</,LINK_ARROW:/-->|-\.->|>|\+'[^']*'<>|\+'[^']*'<|\+'[^']*'>/,LINK_LABEL:/;[^\n\r]+/,STRATEGY:/build|buy|outsource|market/,KW_WARDLEY:/wardley-beta/,KW_SIZE:/size/,KW_EVOLUTION:/evolution/,KW_ANCHOR:/anchor/,KW_COMPONENT:/component/,KW_LABEL:/label/,KW_INERTIA:/inertia/,KW_EVOLVE:/evolve/,KW_PIPELINE:/pipeline/,KW_NOTE:/note/,KW_ANNOTATIONS:/annotations/,KW_ANNOTATION:/annotation/,KW_ACCELERATOR:/accelerator/,KW_DEACCELERATOR:/deaccelerator/,NAME_WITH_SPACES:/(?!title\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/,WS:/[ \t]+/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/},rhn.Terminals,ihn.Terminals,ohn.Terminals,ahn.Terminals,shn.Terminals,lhn.Terminals,chn.Terminals,uhn.Terminals,hhn.Terminals,dhn.Terminals,phn.Terminals,fhn.Terminals,mhn.Terminals,ghn.Terminals,Ohn.Terminals;var vhn="AbnfAlternation",bhn="alternatives",xhn="AbnfConcatenation",whn="elements",khn="AbnfElement",Shn="primary",Thn="repeat",$hn="AbnfGroup",_hn="element",Chn="AbnfNumVal",Qhn="value",Phn="AbnfOptionalGroup",Ehn="element",Rhn="AbnfPrimary",Bhn="AbnfRule",Ihn="definition",Lhn="name",Dhn="AbnfRuleName",Mhn="name",Nhn="AbnfStringLiteral",Xhn="value",Fhn="Accelerator",Uhn="name",zhn="x",qhn="y",Vhn="Alignment",Whn="direction",jhn="members",Yhn="Anchor",Zhn="evolution",Ghn="name",Hhn="visibility",Khn="Annotation",Jhn="number",edn="text",tdn="x",ndn="y",rdn="Annotations",idn="x",odn="y",adn="Architecture",sdn="accDescr",ldn="accTitle",cdn="alignments",udn="edges",hdn="groups",ddn="junctions",pdn="services",fdn="title";_Vt(function(e){return iyn.isInstance(e,adn)},"isArchitecture");var gdn="Axis",mdn="label",Odn="name",Adn="Branch",ydn="name",vdn="order";_Vt(function(e){return iyn.isInstance(e,Adn)},"isBranch");var bdn="Checkout",xdn="branch",wdn="CherryPicking",kdn="id",Sdn="parent",Tdn="tags",$dn="ClassDefStatement",_dn="className",Cdn="styleText",Qdn="Commit",Pdn="id",Edn="message",Rdn="tags",Bdn="type";_Vt(function(e){return iyn.isInstance(e,Qdn)},"isCommit");var Idn="Common",Ldn="accDescr",Ddn="accTitle",Mdn="title",Ndn="Component",Xdn="decorator",Fdn="evolution",Udn="inertia",zdn="label",qdn="name",Vdn="visibility",Wdn="Curve",jdn="entries",Ydn="label",Zdn="name",Gdn="Cynefin",Hdn="accDescr",Kdn="accTitle",Jdn="domains",epn="title",tpn="transitions";_Vt(function(e){return iyn.isInstance(e,Gdn)},"isCynefin");var npn="Deaccelerator",rpn="name",ipn="x",opn="y",apn="Decorator",spn="strategy",lpn="Direction",cpn="accDescr",upn="accTitle",hpn="dir",dpn="statements",ppn="title",fpn="DomainBlock",gpn="domain",mpn="items";_Vt(function(e){return iyn.isInstance(e,fpn)},"isDomainBlock");var Opn="DomainItem",Apn="label";_Vt(function(e){return iyn.isInstance(e,Opn)},"isDomainItem");var ypn="EbnfChoice",vpn="alternatives",bpn="EbnfExceptionPostfix",xpn="except",wpn="EbnfGroup",kpn="element",Spn="EbnfNonTerminal",Tpn="name",$pn="EbnfOneOrMorePostfix",_pn="operator",Cpn="EbnfOptional",Qpn="element",Ppn="EbnfOptionalPostfix",Epn="operator",Rpn="EbnfPostfix",Bpn="EbnfPrimary",Ipn="EbnfRepetition",Lpn="element",Dpn="EbnfRule",Mpn="definition",Npn="name",Xpn="EbnfSequence",Fpn="elements",Upn="EbnfSpecial",zpn="text",qpn="EbnfTerm",Vpn="base",Wpn="postfixes",jpn="EbnfTerminal",Ypn="value",Zpn="EbnfZeroOrMorePostfix",Gpn="operator",Hpn="Edge",Kpn="lhsDir",Jpn="lhsGroup",efn="lhsId",tfn="lhsInto",nfn="rhsDir",rfn="rhsGroup",ifn="rhsId",ofn="rhsInto",afn="title",sfn="EmDataEntity",lfn="dataBlockValue",cfn="dataType",ufn="name",hfn="EmFrame",dfn="EmGwt",pfn="givenStatements",ffn="sourceFrame",gfn="thenStatements",mfn="whenStatements",Ofn="EmGwtStatement",Afn="entityIdentifier",yfn="EmModelEntity",vfn="name";_Vt(function(e){return"rmo"===e||"readmodel"===e||"ui"===e||"cmd"===e||"command"===e||"evt"===e||"event"===e||"pcr"===e||"processor"===e},"isEmModelEntityType");var bfn="EmNoteEntity",xfn="dataBlockValue",wfn="dataType",kfn="sourceFrame",Sfn="EmResetFrame",Tfn="dataInlineValue",$fn="dataReference",_fn="dataType",Cfn="entityIdentifier",Qfn="modelEntityType",Pfn="name",Efn="sourceFrames";function Rfn(e){return iyn.isInstance(e,Sfn)}_Vt(Rfn,"isEmResetFrame");var Bfn="EmTimeFrame",Ifn="dataInlineValue",Lfn="dataReference",Dfn="dataType",Mfn="entityIdentifier",Nfn="modelEntityType",Xfn="name",Ffn="sourceFrames",Ufn="Entry",zfn="axis",qfn="value",Vfn="EventModel",Wfn="accDescr",jfn="accTitle",Yfn="dataEntities",Zfn="frames",Gfn="gwtEntities",Hfn="modelEntities",Kfn="noteEntities",Jfn="title",egn="Evolution",tgn="stages",ngn="EvolutionStage",rgn="boundary",ign="name",ogn="secondName",agn="Evolve",sgn="component",lgn="target",cgn="GitGraph",ugn="accDescr",hgn="accTitle",dgn="statements",pgn="title";_Vt(function(e){return iyn.isInstance(e,cgn)},"isGitGraph");var fgn="Group",ggn="icon",mgn="id",Ogn="in",Agn="title",ygn="Info",vgn="accDescr",bgn="accTitle",xgn="title";_Vt(function(e){return iyn.isInstance(e,ygn)},"isInfo");var wgn="Item",kgn="classSelector",Sgn="name",Tgn="Junction",$gn="id",_gn="in",Cgn="Label",Qgn="negX",Pgn="negY",Egn="offsetX",Rgn="offsetY",Bgn="Leaf",Ign="classSelector",Lgn="name",Dgn="value",Mgn="Link",Ngn="arrow",Xgn="from",Fgn="fromPort",Ugn="linkLabel",zgn="to",qgn="toPort",Vgn="Merge",Wgn="branch",jgn="id",Ygn="tags",Zgn="type";_Vt(function(e){return iyn.isInstance(e,Vgn)},"isMerge");var Ggn="Note",Hgn="evolution",Kgn="text",Jgn="visibility",emn="Option",tmn="name",nmn="value",rmn="Packet",imn="accDescr",omn="accTitle",amn="blocks",smn="title";_Vt(function(e){return iyn.isInstance(e,rmn)},"isPacket");var lmn="PacketBlock",cmn="bits",umn="end",hmn="label",dmn="start";_Vt(function(e){return iyn.isInstance(e,lmn)},"isPacketBlock");var pmn="PegAny",fmn="dot",gmn="PegGroup",mmn="element",Omn="PegIdentifier",Amn="name",ymn="PegLiteral",vmn="value",bmn="PegOrderedChoice",xmn="alternatives",wmn="PegPrefix",kmn="operator",Smn="suffix",Tmn="PegPrimary",$mn="PegRule",_mn="definition",Cmn="name",Qmn="PegSequence",Pmn="elements",Emn="PegSuffix",Rmn="operator",Bmn="primary",Imn="Pie",Lmn="accDescr",Dmn="accTitle",Mmn="sections",Nmn="showData",Xmn="title";_Vt(function(e){return iyn.isInstance(e,Imn)},"isPie");var Fmn="PieSection",Umn="label",zmn="value";_Vt(function(e){return iyn.isInstance(e,Fmn)},"isPieSection");var qmn="Pipeline",Vmn="components",Wmn="parent",jmn="PipelineComponent",Ymn="evolution",Zmn="label",Gmn="name",Hmn="Radar",Kmn="accDescr",Jmn="accTitle",eOn="axes",tOn="curves",nOn="options",rOn="title",iOn="Railroad",oOn="accDescr",aOn="accTitle",sOn="rules",lOn="title";_Vt(function(e){return iyn.isInstance(e,iOn)},"isRailroad");var cOn="RailroadAbnf",uOn="accDescr",hOn="accTitle",dOn="rules",pOn="title";_Vt(function(e){return iyn.isInstance(e,cOn)},"isRailroadAbnf");var fOn="RailroadChoiceExpr",gOn="alternatives",mOn="RailroadEbnf",OOn="accDescr",AOn="accTitle",yOn="rules",vOn="title";_Vt(function(e){return iyn.isInstance(e,mOn)},"isRailroadEbnf");var bOn="RailroadExpression",xOn="RailroadNonTerminalExpr",wOn="name",kOn="RailroadOneOrMoreExpr",SOn="element",TOn="RailroadOptionalExpr",$On="element",_On="RailroadPeg",COn="accDescr",QOn="accTitle",POn="rules",EOn="title";_Vt(function(e){return iyn.isInstance(e,_On)},"isRailroadPeg");var ROn="RailroadRule",BOn="definition",IOn="name",LOn="RailroadSequenceExpr",DOn="elements",MOn="RailroadSpecialExpr",NOn="text",XOn="RailroadTerminalExpr",FOn="value",UOn="RailroadZeroOrMoreExpr",zOn="element",qOn="Section",VOn="classSelector",WOn="name",jOn="Service",YOn="icon",ZOn="iconText",GOn="id",HOn="in",KOn="title",JOn="Size",eAn="height",tAn="width",nAn="Statement",rAn="Transition",iAn="from",oAn="label",aAn="to";_Vt(function(e){return iyn.isInstance(e,rAn)},"isTransition");var sAn="Treemap",lAn="accDescr",cAn="accTitle",uAn="title",hAn="TreemapRows";_Vt(function(e){return iyn.isInstance(e,sAn)},"isTreemap");var dAn="TreemapRow",pAn="indent",fAn="item",gAn="TreeNode",mAn="classAnnotation",OAn="descAnnotation",AAn="iconAnnotation",yAn="indent",vAn="name",bAn="TreeView",xAn="accDescr",wAn="accTitle",kAn="nodes",SAn="title",TAn="Wardley",$An="accDescr",_An="accelerators",CAn="accTitle",QAn="anchors",PAn="annotation",EAn="annotations",RAn="components",BAn="deaccelerators",IAn="evolution",LAn="evolves",DAn="links",MAn="notes",NAn="pipelines",XAn="size",FAn="title";_Vt(function(e){return iyn.isInstance(e,TAn)},"isWardley");var UAn,zAn,qAn,VAn,WAn,jAn,YAn,ZAn,GAn,HAn,KAn,JAn,eyn,tyn,nyn,ryn=(_Vt(Vt=class extends LWt{constructor(){super(...arguments),this.types={AbnfAlternation:{name:vhn,properties:{alternatives:{name:bhn,defaultValue:[]}},superTypes:[]},AbnfConcatenation:{name:xhn,properties:{elements:{name:whn,defaultValue:[]}},superTypes:[]},AbnfElement:{name:khn,properties:{primary:{name:Shn},repeat:{name:Thn}},superTypes:[]},AbnfGroup:{name:$hn,properties:{element:{name:_hn}},superTypes:[Rhn]},AbnfNumVal:{name:Chn,properties:{value:{name:Qhn}},superTypes:[Rhn]},AbnfOptionalGroup:{name:Phn,properties:{element:{name:Ehn}},superTypes:[Rhn]},AbnfPrimary:{name:Rhn,properties:{},superTypes:[]},AbnfRule:{name:Bhn,properties:{definition:{name:Ihn},name:{name:Lhn}},superTypes:[]},AbnfRuleName:{name:Dhn,properties:{name:{name:Mhn}},superTypes:[Rhn]},AbnfStringLiteral:{name:Nhn,properties:{value:{name:Xhn}},superTypes:[Rhn]},Accelerator:{name:Fhn,properties:{name:{name:Uhn},x:{name:zhn},y:{name:qhn}},superTypes:[]},Alignment:{name:Vhn,properties:{direction:{name:Whn},members:{name:jhn,defaultValue:[]}},superTypes:[]},Anchor:{name:Yhn,properties:{evolution:{name:Zhn},name:{name:Ghn},visibility:{name:Hhn}},superTypes:[]},Annotation:{name:Khn,properties:{number:{name:Jhn},text:{name:edn},x:{name:tdn},y:{name:ndn}},superTypes:[]},Annotations:{name:rdn,properties:{x:{name:idn},y:{name:odn}},superTypes:[]},Architecture:{name:adn,properties:{accDescr:{name:sdn},accTitle:{name:ldn},alignments:{name:cdn,defaultValue:[]},edges:{name:udn,defaultValue:[]},groups:{name:hdn,defaultValue:[]},junctions:{name:ddn,defaultValue:[]},services:{name:pdn,defaultValue:[]},title:{name:fdn}},superTypes:[]},Axis:{name:gdn,properties:{label:{name:mdn},name:{name:Odn}},superTypes:[]},Branch:{name:Adn,properties:{name:{name:ydn},order:{name:vdn}},superTypes:[nAn]},Checkout:{name:bdn,properties:{branch:{name:xdn}},superTypes:[nAn]},CherryPicking:{name:wdn,properties:{id:{name:kdn},parent:{name:Sdn},tags:{name:Tdn,defaultValue:[]}},superTypes:[nAn]},ClassDefStatement:{name:$dn,properties:{className:{name:_dn},styleText:{name:Cdn}},superTypes:[]},Commit:{name:Qdn,properties:{id:{name:Pdn},message:{name:Edn},tags:{name:Rdn,defaultValue:[]},type:{name:Bdn}},superTypes:[nAn]},Common:{name:Idn,properties:{accDescr:{name:Ldn},accTitle:{name:Ddn},title:{name:Mdn}},superTypes:[]},Component:{name:Ndn,properties:{decorator:{name:Xdn},evolution:{name:Fdn},inertia:{name:Udn,defaultValue:!1},label:{name:zdn},name:{name:qdn},visibility:{name:Vdn}},superTypes:[]},Curve:{name:Wdn,properties:{entries:{name:jdn,defaultValue:[]},label:{name:Ydn},name:{name:Zdn}},superTypes:[]},Cynefin:{name:Gdn,properties:{accDescr:{name:Hdn},accTitle:{name:Kdn},domains:{name:Jdn,defaultValue:[]},title:{name:epn},transitions:{name:tpn,defaultValue:[]}},superTypes:[]},Deaccelerator:{name:npn,properties:{name:{name:rpn},x:{name:ipn},y:{name:opn}},superTypes:[]},Decorator:{name:apn,properties:{strategy:{name:spn}},superTypes:[]},Direction:{name:lpn,properties:{accDescr:{name:cpn},accTitle:{name:upn},dir:{name:hpn},statements:{name:dpn,defaultValue:[]},title:{name:ppn}},superTypes:[cgn]},DomainBlock:{name:fpn,properties:{domain:{name:gpn},items:{name:mpn,defaultValue:[]}},superTypes:[]},DomainItem:{name:Opn,properties:{label:{name:Apn}},superTypes:[]},EbnfChoice:{name:ypn,properties:{alternatives:{name:vpn,defaultValue:[]}},superTypes:[]},EbnfExceptionPostfix:{name:bpn,properties:{except:{name:xpn}},superTypes:[Rpn]},EbnfGroup:{name:wpn,properties:{element:{name:kpn}},superTypes:[Bpn]},EbnfNonTerminal:{name:Spn,properties:{name:{name:Tpn}},superTypes:[Bpn]},EbnfOneOrMorePostfix:{name:$pn,properties:{operator:{name:_pn}},superTypes:[Rpn]},EbnfOptional:{name:Cpn,properties:{element:{name:Qpn}},superTypes:[Bpn]},EbnfOptionalPostfix:{name:Ppn,properties:{operator:{name:Epn}},superTypes:[Rpn]},EbnfPostfix:{name:Rpn,properties:{},superTypes:[]},EbnfPrimary:{name:Bpn,properties:{},superTypes:[]},EbnfRepetition:{name:Ipn,properties:{element:{name:Lpn}},superTypes:[Bpn]},EbnfRule:{name:Dpn,properties:{definition:{name:Mpn},name:{name:Npn}},superTypes:[]},EbnfSequence:{name:Xpn,properties:{elements:{name:Fpn,defaultValue:[]}},superTypes:[]},EbnfSpecial:{name:Upn,properties:{text:{name:zpn}},superTypes:[Bpn]},EbnfTerm:{name:qpn,properties:{base:{name:Vpn},postfixes:{name:Wpn,defaultValue:[]}},superTypes:[]},EbnfTerminal:{name:jpn,properties:{value:{name:Ypn}},superTypes:[Bpn]},EbnfZeroOrMorePostfix:{name:Zpn,properties:{operator:{name:Gpn}},superTypes:[Rpn]},Edge:{name:Hpn,properties:{lhsDir:{name:Kpn},lhsGroup:{name:Jpn,defaultValue:!1},lhsId:{name:efn},lhsInto:{name:tfn,defaultValue:!1},rhsDir:{name:nfn},rhsGroup:{name:rfn,defaultValue:!1},rhsId:{name:ifn},rhsInto:{name:ofn,defaultValue:!1},title:{name:afn}},superTypes:[]},EmDataEntity:{name:sfn,properties:{dataBlockValue:{name:lfn},dataType:{name:cfn},name:{name:ufn}},superTypes:[]},EmFrame:{name:hfn,properties:{},superTypes:[]},EmGwt:{name:dfn,properties:{givenStatements:{name:pfn,defaultValue:[]},sourceFrame:{name:ffn,referenceType:hfn},thenStatements:{name:gfn,defaultValue:[]},whenStatements:{name:mfn,defaultValue:[]}},superTypes:[]},EmGwtStatement:{name:Ofn,properties:{entityIdentifier:{name:Afn,referenceType:yfn}},superTypes:[]},EmModelEntity:{name:yfn,properties:{name:{name:vfn}},superTypes:[]},EmNoteEntity:{name:bfn,properties:{dataBlockValue:{name:xfn},dataType:{name:wfn},sourceFrame:{name:kfn,referenceType:hfn}},superTypes:[]},EmResetFrame:{name:Sfn,properties:{dataInlineValue:{name:Tfn},dataReference:{name:$fn,referenceType:sfn},dataType:{name:_fn},entityIdentifier:{name:Cfn},modelEntityType:{name:Qfn},name:{name:Pfn},sourceFrames:{name:Efn,defaultValue:[],referenceType:hfn}},superTypes:[hfn]},EmTimeFrame:{name:Bfn,properties:{dataInlineValue:{name:Ifn},dataReference:{name:Lfn,referenceType:sfn},dataType:{name:Dfn},entityIdentifier:{name:Mfn},modelEntityType:{name:Nfn},name:{name:Xfn},sourceFrames:{name:Ffn,defaultValue:[],referenceType:hfn}},superTypes:[hfn]},Entry:{name:Ufn,properties:{axis:{name:zfn,referenceType:gdn},value:{name:qfn}},superTypes:[]},EventModel:{name:Vfn,properties:{accDescr:{name:Wfn},accTitle:{name:jfn},dataEntities:{name:Yfn,defaultValue:[]},frames:{name:Zfn,defaultValue:[]},gwtEntities:{name:Gfn,defaultValue:[]},modelEntities:{name:Hfn,defaultValue:[]},noteEntities:{name:Kfn,defaultValue:[]},title:{name:Jfn}},superTypes:[]},Evolution:{name:egn,properties:{stages:{name:tgn,defaultValue:[]}},superTypes:[]},EvolutionStage:{name:ngn,properties:{boundary:{name:rgn},name:{name:ign},secondName:{name:ogn}},superTypes:[]},Evolve:{name:agn,properties:{component:{name:sgn},target:{name:lgn}},superTypes:[]},GitGraph:{name:cgn,properties:{accDescr:{name:ugn},accTitle:{name:hgn},statements:{name:dgn,defaultValue:[]},title:{name:pgn}},superTypes:[]},Group:{name:fgn,properties:{icon:{name:ggn},id:{name:mgn},in:{name:Ogn},title:{name:Agn}},superTypes:[]},Info:{name:ygn,properties:{accDescr:{name:vgn},accTitle:{name:bgn},title:{name:xgn}},superTypes:[]},Item:{name:wgn,properties:{classSelector:{name:kgn},name:{name:Sgn}},superTypes:[]},Junction:{name:Tgn,properties:{id:{name:$gn},in:{name:_gn}},superTypes:[]},Label:{name:Cgn,properties:{negX:{name:Qgn,defaultValue:!1},negY:{name:Pgn,defaultValue:!1},offsetX:{name:Egn},offsetY:{name:Rgn}},superTypes:[]},Leaf:{name:Bgn,properties:{classSelector:{name:Ign},name:{name:Lgn},value:{name:Dgn}},superTypes:[wgn]},Link:{name:Mgn,properties:{arrow:{name:Ngn},from:{name:Xgn},fromPort:{name:Fgn},linkLabel:{name:Ugn},to:{name:zgn},toPort:{name:qgn}},superTypes:[]},Merge:{name:Vgn,properties:{branch:{name:Wgn},id:{name:jgn},tags:{name:Ygn,defaultValue:[]},type:{name:Zgn}},superTypes:[nAn]},Note:{name:Ggn,properties:{evolution:{name:Hgn},text:{name:Kgn},visibility:{name:Jgn}},superTypes:[]},Option:{name:emn,properties:{name:{name:tmn},value:{name:nmn,defaultValue:!1}},superTypes:[]},Packet:{name:rmn,properties:{accDescr:{name:imn},accTitle:{name:omn},blocks:{name:amn,defaultValue:[]},title:{name:smn}},superTypes:[]},PacketBlock:{name:lmn,properties:{bits:{name:cmn},end:{name:umn},label:{name:hmn},start:{name:dmn}},superTypes:[]},PegAny:{name:pmn,properties:{dot:{name:fmn}},superTypes:[Tmn]},PegGroup:{name:gmn,properties:{element:{name:mmn}},superTypes:[Tmn]},PegIdentifier:{name:Omn,properties:{name:{name:Amn}},superTypes:[Tmn]},PegLiteral:{name:ymn,properties:{value:{name:vmn}},superTypes:[Tmn]},PegOrderedChoice:{name:bmn,properties:{alternatives:{name:xmn,defaultValue:[]}},superTypes:[]},PegPrefix:{name:wmn,properties:{operator:{name:kmn},suffix:{name:Smn}},superTypes:[]},PegPrimary:{name:Tmn,properties:{},superTypes:[]},PegRule:{name:$mn,properties:{definition:{name:_mn},name:{name:Cmn}},superTypes:[]},PegSequence:{name:Qmn,properties:{elements:{name:Pmn,defaultValue:[]}},superTypes:[]},PegSuffix:{name:Emn,properties:{operator:{name:Rmn},primary:{name:Bmn}},superTypes:[]},Pie:{name:Imn,properties:{accDescr:{name:Lmn},accTitle:{name:Dmn},sections:{name:Mmn,defaultValue:[]},showData:{name:Nmn,defaultValue:!1},title:{name:Xmn}},superTypes:[]},PieSection:{name:Fmn,properties:{label:{name:Umn},value:{name:zmn}},superTypes:[]},Pipeline:{name:qmn,properties:{components:{name:Vmn,defaultValue:[]},parent:{name:Wmn}},superTypes:[]},PipelineComponent:{name:jmn,properties:{evolution:{name:Ymn},label:{name:Zmn},name:{name:Gmn}},superTypes:[]},Radar:{name:Hmn,properties:{accDescr:{name:Kmn},accTitle:{name:Jmn},axes:{name:eOn,defaultValue:[]},curves:{name:tOn,defaultValue:[]},options:{name:nOn,defaultValue:[]},title:{name:rOn}},superTypes:[]},Railroad:{name:iOn,properties:{accDescr:{name:oOn},accTitle:{name:aOn},rules:{name:sOn,defaultValue:[]},title:{name:lOn}},superTypes:[]},RailroadAbnf:{name:cOn,properties:{accDescr:{name:uOn},accTitle:{name:hOn},rules:{name:dOn,defaultValue:[]},title:{name:pOn}},superTypes:[]},RailroadChoiceExpr:{name:fOn,properties:{alternatives:{name:gOn,defaultValue:[]}},superTypes:[bOn]},RailroadEbnf:{name:mOn,properties:{accDescr:{name:OOn},accTitle:{name:AOn},rules:{name:yOn,defaultValue:[]},title:{name:vOn}},superTypes:[]},RailroadExpression:{name:bOn,properties:{},superTypes:[]},RailroadNonTerminalExpr:{name:xOn,properties:{name:{name:wOn}},superTypes:[bOn]},RailroadOneOrMoreExpr:{name:kOn,properties:{element:{name:SOn}},superTypes:[bOn]},RailroadOptionalExpr:{name:TOn,properties:{element:{name:$On}},superTypes:[bOn]},RailroadPeg:{name:_On,properties:{accDescr:{name:COn},accTitle:{name:QOn},rules:{name:POn,defaultValue:[]},title:{name:EOn}},superTypes:[]},RailroadRule:{name:ROn,properties:{definition:{name:BOn},name:{name:IOn}},superTypes:[]},RailroadSequenceExpr:{name:LOn,properties:{elements:{name:DOn,defaultValue:[]}},superTypes:[bOn]},RailroadSpecialExpr:{name:MOn,properties:{text:{name:NOn}},superTypes:[bOn]},RailroadTerminalExpr:{name:XOn,properties:{value:{name:FOn}},superTypes:[bOn]},RailroadZeroOrMoreExpr:{name:UOn,properties:{element:{name:zOn}},superTypes:[bOn]},Section:{name:qOn,properties:{classSelector:{name:VOn},name:{name:WOn}},superTypes:[wgn]},Service:{name:jOn,properties:{icon:{name:YOn},iconText:{name:ZOn},id:{name:GOn},in:{name:HOn},title:{name:KOn}},superTypes:[]},Size:{name:JOn,properties:{height:{name:eAn},width:{name:tAn}},superTypes:[]},Statement:{name:nAn,properties:{},superTypes:[]},Transition:{name:rAn,properties:{from:{name:iAn},label:{name:oAn},to:{name:aAn}},superTypes:[]},TreeNode:{name:gAn,properties:{classAnnotation:{name:mAn},descAnnotation:{name:OAn},iconAnnotation:{name:AAn},indent:{name:yAn},name:{name:vAn}},superTypes:[]},TreeView:{name:bAn,properties:{accDescr:{name:xAn},accTitle:{name:wAn},nodes:{name:kAn,defaultValue:[]},title:{name:SAn}},superTypes:[]},Treemap:{name:sAn,properties:{accDescr:{name:lAn},accTitle:{name:cAn},title:{name:uAn},TreemapRows:{name:hAn,defaultValue:[]}},superTypes:[]},TreemapRow:{name:dAn,properties:{indent:{name:pAn},item:{name:fAn}},superTypes:[]},Wardley:{name:TAn,properties:{accDescr:{name:$An},accelerators:{name:_An,defaultValue:[]},accTitle:{name:CAn},anchors:{name:QAn,defaultValue:[]},annotation:{name:PAn,defaultValue:[]},annotations:{name:EAn,defaultValue:[]},components:{name:RAn,defaultValue:[]},deaccelerators:{name:BAn,defaultValue:[]},evolution:{name:IAn},evolves:{name:LAn,defaultValue:[]},links:{name:DAn,defaultValue:[]},notes:{name:MAn,defaultValue:[]},pipelines:{name:NAn,defaultValue:[]},size:{name:XAn},title:{name:FAn}},superTypes:[]}}}},"MermaidAstReflection"),Vt),iyn=new ryn,oyn=_Vt(()=>UAn??(UAn=nhn('{"$type":"Grammar","isDeclared":true,"name":"ArchitectureGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"alignments","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"LeftPort","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"RightPort","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Arrow","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Alignment","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"align"},{"$type":"Assignment","feature":"direction","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"row"},{"$type":"Keyword","value":"column"}]}},{"$type":"Assignment","feature":"members","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"members","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@19"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@20"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[(?:\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'|[^\\\\[\\\\]\\\\r\\\\n]+)\\\\]/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}')),"ArchitectureGrammarGrammar"),ayn=_Vt(()=>zAn??(zAn=nhn('{"$type":"Grammar","isDeclared":true,"name":"CynefinGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Cynefin","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"cynefin-beta"},{"$type":"Keyword","value":"cynefin-beta:"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"domains","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"transitions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"DomainBlock","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"domain","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Assignment","feature":"items","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"DomainItem","definition":{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Transition","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":"--\x3e"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"DOMAIN_NAME","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"complex"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"complicated"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"clear"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"chaotic"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"confusion"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}')),"CynefinGrammarGrammar"),syn=_Vt(()=>qAn??(qAn=nhn('{"$type":"Grammar","isDeclared":true,"name":"EventModeling","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","entry":true,"name":"EventModel","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"eventmodeling"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"frames","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"dataEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"noteEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"gwtEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntityType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rmo"},{"$type":"Keyword","value":"readmodel"},{"$type":"Keyword","value":"ui"},{"$type":"Keyword","value":"cmd"},{"$type":"Keyword","value":"command"},{"$type":"Keyword","value":"evt"},{"$type":"Keyword","value":"event"},{"$type":"Keyword","value":"pcr"},{"$type":"Keyword","value":"processor"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"json"},{"$type":"Keyword","value":"jsobj"},{"$type":"Keyword","value":"figma"},{"$type":"Keyword","value":"salt"},{"$type":"Keyword","value":"uri"},{"$type":"Keyword","value":"md"},{"$type":"Keyword","value":"html"},{"$type":"Keyword","value":"text"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataInline","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataInlineValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataBlock","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataBlockValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"QualifiedName","dataType":"string","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"."},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmTimeFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"tf"},{"$type":"Keyword","value":"timeframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmResetFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rf"},{"$type":"Keyword","value":"resetframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmFrame","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"entity"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"data"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmNoteEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"note"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwt","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"gwt"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"given"},{"$type":"Assignment","feature":"givenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"},{"$type":"Group","elements":[{"$type":"Keyword","value":"when"},{"$type":"Assignment","feature":"whenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}],"cardinality":"?"},{"$type":"Keyword","value":"then"},{"$type":"Assignment","feature":"thenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwtStatement","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@9"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_EID","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_FI","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"EM_ID","definition":{"$type":"RegexToken","regex":"/[_a-zA-Z][\\\\w_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_FID","definition":{"$type":"RegexToken","regex":"/\\\\d{1,3}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_INLINE","definition":{"$type":"RegexToken","regex":"/\\\\{(.*)\\\\}|\\"(.*)\\"|\'(.*)\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_BLOCK","definition":{"$type":"RegexToken","regex":"/\\\\{[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?\\\\}(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EM_WS","definition":{"$type":"RegexToken","regex":"/\\\\s+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SL_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\/[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"imports":[],"types":[]}')),"EventModelingGrammar"),lyn=_Vt(()=>VAn??(VAn=nhn('{"$type":"Grammar","isDeclared":true,"name":"GitGraphGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"GitGraph","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@14"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"REFERENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}')),"GitGraphGrammarGrammar"),cyn=_Vt(()=>WAn??(WAn=nhn('{"$type":"Grammar","isDeclared":true,"name":"InfoGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Info","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"?"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@7"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}')),"InfoGrammarGrammar"),uyn=_Vt(()=>jAn??(jAn=nhn('{"$type":"Grammar","isDeclared":true,"name":"PacketGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Packet","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"packet"},{"$type":"Keyword","value":"packet-beta"}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}],"cardinality":"?"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"+"},{"$type":"Assignment","feature":"bits","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]}]},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@9"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}')),"PacketGrammarGrammar"),hyn=_Vt(()=>YAn??(YAn=nhn('{"$type":"Grammar","isDeclared":true,"name":"PieGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Pie","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"FLOAT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?(0|[1-9][0-9]*)(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@2"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@3"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}')),"PieGrammarGrammar"),dyn=_Vt(()=>ZAn??(ZAn=nhn('{"$type":"Grammar","isDeclared":true,"name":"RadarGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Radar","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":"radar-beta:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"axis"},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"curve"},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Label","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Axis","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Curve","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Entries","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"DetailedEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"axis","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@2"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":":","cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"NumberEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Option","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"showLegend"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"ticks"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"max"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"min"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"graticule"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"GRATICULE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"circle"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"polygon"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@16"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[{"$type":"Interface","name":"Entry","attributes":[{"$type":"TypeAttribute","name":"axis","isOptional":true,"type":{"$type":"ReferenceType","referenceType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@2"}},"isMulti":false}},{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}],"superTypes":[]}],"types":[]}')),"RadarGrammarGrammar"),pyn=_Vt(()=>GAn??(GAn=nhn('{"$type":"Grammar","isDeclared":true,"name":"RailroadAbnfGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_RULENAME","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Za-z][A-Za-z0-9-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_NUMVAL","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/%[xXdDbB][0-9A-Fa-f]+(?:-[0-9A-Fa-f]+|\\\\.[0-9A-Fa-f]+)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_REPEAT","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[0-9]*\\\\*[0-9]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_EXACT_REPEAT","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_COMMENT","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadAbnf","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-abnf-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"="},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfAlternation","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfConcatenation","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"cardinality":"+"},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfElement","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"repeat","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"repeat","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"primary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfPrimary","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfStringLiteral","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfNumVal","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfRuleName","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfGroup","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfOptionalGroup","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadAbnf","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfAlternation","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfConcatenation","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfElement","attributes":[{"$type":"TypeAttribute","name":"repeat","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"primary","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"AbnfStringLiteral","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfNumVal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfRuleName","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"AbnfOptionalGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]}],"imports":[],"types":[]}')),"RailroadAbnfGrammarGrammar"),fyn=_Vt(()=>HAn??(HAn=nhn('{"$type":"Grammar","isDeclared":true,"name":"RailroadEbnfGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_SPECIAL_SEQUENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\?(?=[^?;]*[^?\\\\s;][^?;]*\\\\?)[^?;]*\\\\?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_BLOCK_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_ISO_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\(\\\\*[\\\\s\\\\S]*?\\\\*\\\\)/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadEbnf","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-ebnf-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"="},{"$type":"Keyword","value":"::="}]},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfChoice","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"|"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfSequence","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":",","cardinality":"?"},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfTerm","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"base","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"postfixes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfPrimary","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfTerminal","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfNonTerminal","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfSpecial","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfGroup","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOptional","returnType":{"$ref":"#/interfaces@11"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfRepetition","returnType":{"$ref":"#/interfaces@12"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"{"},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfPostfix","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOptionalPostfix","returnType":{"$ref":"#/interfaces@13"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"?"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfZeroOrMorePostfix","returnType":{"$ref":"#/interfaces@14"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"*"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOneOrMorePostfix","returnType":{"$ref":"#/interfaces@15"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"+"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfExceptionPostfix","returnType":{"$ref":"#/interfaces@16"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"except","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadEbnf","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfChoice","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfSequence","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfTerm","attributes":[{"$type":"TypeAttribute","name":"base","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false},{"$type":"TypeAttribute","name":"postfixes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@6"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"EbnfPostfix","attributes":[],"superTypes":[]},{"$type":"Interface","name":"EbnfTerminal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfNonTerminal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfSpecial","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"text","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfOptional","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfRepetition","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfOptionalPostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfZeroOrMorePostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfOneOrMorePostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfExceptionPostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"except","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}]}],"imports":[],"types":[]}')),"RailroadEbnfGrammarGrammar"),gyn=_Vt(()=>KAn??(KAn=nhn('{"$type":"Grammar","isDeclared":true,"name":"RailroadGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"RR_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"RR_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"RR_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_BLOCK_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"Railroad","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"="},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadExpression","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadSequenceExpr","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"sequence"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadChoiceExpr","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"choice"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadOptionalExpr","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"optional"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadOneOrMoreExpr","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"oneOrMore"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadZeroOrMoreExpr","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"zeroOrMore"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadTerminalExpr","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"terminal"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadNonTerminalExpr","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"nonterminal"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadSpecialExpr","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"special"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"Railroad","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"RailroadRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"RailroadExpression","attributes":[],"superTypes":[]},{"$type":"Interface","name":"RailroadSequenceExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}}},"isOptional":false}]},{"$type":"Interface","name":"RailroadChoiceExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}}},"isOptional":false}]},{"$type":"Interface","name":"RailroadOptionalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadOneOrMoreExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadZeroOrMoreExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadTerminalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"RailroadNonTerminalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"RailroadSpecialExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"text","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]}],"imports":[],"types":[]}')),"RailroadGrammarGrammar"),myn=_Vt(()=>JAn??(JAn=nhn('{"$type":"Grammar","isDeclared":true,"name":"RailroadPegGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PEG_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PEG_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/#[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadPeg","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-peg-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"<-"},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegOrderedChoice","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegSequence","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"+"},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegPrefix","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"&"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"!"}}],"cardinality":"?"},{"$type":"Assignment","feature":"suffix","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegSuffix","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"primary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"?"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"*"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"+"}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegPrimary","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegLiteral","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegIdentifier","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegGroup","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegAny","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Assignment","feature":"dot","operator":"=","terminal":{"$type":"Keyword","value":"."}},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadPeg","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegOrderedChoice","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegSequence","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegPrefix","attributes":[{"$type":"TypeAttribute","name":"operator","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"suffix","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegSuffix","attributes":[{"$type":"TypeAttribute","name":"primary","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@6"}},"isOptional":false},{"$type":"TypeAttribute","name":"operator","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"PegPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"PegLiteral","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"PegIdentifier","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"PegGroup","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"PegAny","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"dot","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]}],"imports":[],"types":[]}')),"RailroadPegGrammarGrammar"),Oyn=_Vt(()=>eyn??(eyn=nhn('{"$type":"Grammar","isDeclared":true,"name":"TreemapGrammar","rules":[{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"Treemap","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"TreemapRows","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"TREEMAP_KEYWORD","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap-beta"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"CLASS_DEF","definition":{"$type":"RegexToken","regex":"/classDef\\\\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\\\\s+([^;\\\\r\\\\n]*))?(?:;)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STYLE_SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":::"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"COMMA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":","},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreemapRow","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"item","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"ClassDef","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Item","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Section","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Leaf","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ID2","definition":{"$type":"RegexToken","regex":"/[a-zA-Z_][a-zA-Z0-9_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER2","definition":{"$type":"RegexToken","regex":"/[0-9_\\\\.\\\\,]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"MyNumber","dataType":"number","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|\'[^\']*\'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"Item","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"classSelector","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"Section","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[]},{"$type":"Interface","name":"Leaf","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}]},{"$type":"Interface","name":"ClassDefStatement","attributes":[{"$type":"TypeAttribute","name":"className","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"styleText","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"Treemap","attributes":[{"$type":"TypeAttribute","name":"TreemapRows","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@15"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * Treemap grammar for Langium\\n * Converted from mindmap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treemap declaration.\\n */"}')),"TreemapGrammarGrammar"),Ayn=_Vt(()=>tyn??(tyn=nhn('{"$type":"Grammar","isDeclared":true,"name":"TreeViewGrammar","rules":[{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"TreeView","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"treeView-beta"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"nodes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"CLASS_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+:::[ \\\\t]*[A-Za-z_][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ICON_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+icon\\\\([\\\\w-]*(?::[\\\\w-]+)?\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"DESC_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+##[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"QUOTED_NAME","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|\'[^\']*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"BARE_NAME","definition":{"$type":"RegexToken","regex":"/(?!:::|icon\\\\(|##)[^ \\\\t\\\\n\\\\r\\"\'](?:(?![ \\\\t]+:::[ \\\\t]*[A-Za-z_]|[ \\\\t]+icon\\\\(|[ \\\\t]+##)[^\\\\n\\\\r])*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TreeNode","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"classAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"iconAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"descAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"TreeView","attributes":[{"$type":"TypeAttribute","name":"nodes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@14"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * TreeView grammar for Langium\\n *\\n * Supports both quoted labels (\\"my file\\") and bare labels (index.js).\\n * Annotations (:::class, icon(), ## description) are parsed directly into\\n * AST fields by the grammar. Value conversion for stripping quotes, extracting\\n * class names, icon names, and description text happens in valueConverter.ts.\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treeView keyword, allowing for empty lines and comments before the\\n * treeView declaration.\\n */"}')),"TreeViewGrammarGrammar"),yyn=_Vt(()=>nyn??(nyn=nhn('{"$type":"Grammar","isDeclared":true,"name":"WardleyGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Wardley","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@42"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"size","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"anchors","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"links","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"evolves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"pipelines","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"notes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"annotations","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Assignment","feature":"annotation","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"deaccelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Size","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"width","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"height","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolution","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EvolutionStage","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"@"},{"$type":"Assignment","feature":"boundary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}],"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"secondName","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Anchor","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Component","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"decorator","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Keyword","value":")"}]}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Label","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"negX","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetX","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"negY","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetY","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Decorator","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"strategy","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Link","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"fromPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"arrow","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"cardinality":"?"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"toPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"linkLabel","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolve","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@32"},"arguments":[]},{"$type":"Assignment","feature":"component","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"target","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Pipeline","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@33"},"arguments":[]},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"+"},{"$type":"Keyword","value":"}"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PipelineComponent","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Note","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@34"},"arguments":[]},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotations","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@35"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotation","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@36"},"arguments":[]},{"$type":"Assignment","feature":"number","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CoordinateValue","dataType":"number","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Accelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@37"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Deaccelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@38"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"WARDLEY_NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"->"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_PORT","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<>"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+>"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_ARROW","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"--\x3e"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-.->"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":">"},"parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+\'[^\']*\'<>/","parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+\'[^\']*\'</","parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+\'[^\']*\'>/","parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_LABEL","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRATEGY","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"build"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"buy"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"outsource"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"market"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_WARDLEY","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"wardley-beta"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_SIZE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"size"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLUTION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolution"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANCHOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"anchor"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_COMPONENT","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"component"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_LABEL","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"label"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_INERTIA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"inertia"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLVE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolve"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_PIPELINE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"pipeline"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_NOTE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"note"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATIONS","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotations"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotation"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"accelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_DEACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"deaccelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NAME_WITH_SPACES","definition":{"$type":"RegexToken","regex":"/(?!title\\\\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \\\\t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@44"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@45"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@46"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@47"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@48"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}')),"WardleyGrammarGrammar"),vyn={languageId:"architecture",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},byn={languageId:"cynefin",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},xyn={languageId:"eventmodeling",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},wyn={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},kyn={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Syn={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Tyn={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},$yn={languageId:"radar",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},_yn={languageId:"railroadAbnf",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Cyn={languageId:"railroadEbnf",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Qyn={languageId:"railroad",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Pyn={languageId:"railroadPeg",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Eyn={languageId:"treemap",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Ryn={languageId:"treeView",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Byn={languageId:"wardley",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Iyn={AstReflection:_Vt(()=>new ryn,"AstReflection")},Lyn={Grammar:_Vt(()=>oyn(),"Grammar"),LanguageMetaData:_Vt(()=>vyn,"LanguageMetaData"),parser:{}},Dyn={Grammar:_Vt(()=>ayn(),"Grammar"),LanguageMetaData:_Vt(()=>byn,"LanguageMetaData"),parser:{}},Myn={Grammar:_Vt(()=>syn(),"Grammar"),LanguageMetaData:_Vt(()=>xyn,"LanguageMetaData"),parser:{}},Nyn={Grammar:_Vt(()=>lyn(),"Grammar"),LanguageMetaData:_Vt(()=>wyn,"LanguageMetaData"),parser:{}},Xyn={Grammar:_Vt(()=>cyn(),"Grammar"),LanguageMetaData:_Vt(()=>kyn,"LanguageMetaData"),parser:{}},Fyn={Grammar:_Vt(()=>uyn(),"Grammar"),LanguageMetaData:_Vt(()=>Syn,"LanguageMetaData"),parser:{}},Uyn={Grammar:_Vt(()=>hyn(),"Grammar"),LanguageMetaData:_Vt(()=>Tyn,"LanguageMetaData"),parser:{}},zyn={Grammar:_Vt(()=>dyn(),"Grammar"),LanguageMetaData:_Vt(()=>$yn,"LanguageMetaData"),parser:{}},qyn={Grammar:_Vt(()=>pyn(),"Grammar"),LanguageMetaData:_Vt(()=>_yn,"LanguageMetaData"),parser:{}},Vyn={Grammar:_Vt(()=>fyn(),"Grammar"),LanguageMetaData:_Vt(()=>Cyn,"LanguageMetaData"),parser:{}},Wyn={Grammar:_Vt(()=>gyn(),"Grammar"),LanguageMetaData:_Vt(()=>Qyn,"LanguageMetaData"),parser:{}},jyn={Grammar:_Vt(()=>myn(),"Grammar"),LanguageMetaData:_Vt(()=>Pyn,"LanguageMetaData"),parser:{}},Yyn={Grammar:_Vt(()=>Oyn(),"Grammar"),LanguageMetaData:_Vt(()=>Eyn,"LanguageMetaData"),parser:{}},Zyn={Grammar:_Vt(()=>Ayn(),"Grammar"),LanguageMetaData:_Vt(()=>Ryn,"LanguageMetaData"),parser:{}},Gyn={Grammar:_Vt(()=>yyn(),"Grammar"),LanguageMetaData:_Vt(()=>Byn,"LanguageMetaData"),parser:{}},Hyn={ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/accTitle[\t ]*:([^\n\r]*)/,TITLE:/title([\t ][^\n\r]*|)/},Kyn=(_Vt(Wt=class extends Eln{runConverter(e,t,n){let r=this.runCommonConverter(e,t,n);return void 0===r&&(r=this.runCustomConverter(e,t,n)),void 0===r?super.runConverter(e,t,n):r}runCommonConverter(e,t,n){const r=Hyn[e.name];if(void 0===r)return;const i=r.exec(t);return null!==i?void 0!==i[1]?i[1].trim().replace(/[\t ]{2,}/gm," "):void 0!==i[2]?i[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,"\n"):void 0:void 0}},"AbstractMermaidValueConverter"),Wt),Jyn=(_Vt(jt=class extends Kyn{runCustomConverter(e,t,n){}},"CommonValueConverter"),jt),evn=(_Vt(Yt=class extends Pln{constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,t,n){const r=super.buildKeywordTokens(e,t,n);return r.forEach(e=>{this.keywords.has(e.name)&&void 0!==e.PATTERN&&(e.PATTERN=new RegExp(e.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),r}},"AbstractMermaidTokenBuilder"),Yt);_Vt(class extends evn{},"CommonTokenBuilder");var tvn=(_Vt(Zt=class extends evn{constructor(){super(["radar-beta"])}},"RadarTokenBuilder"),Zt),nvn={parser:{TokenBuilder:_Vt(()=>new tvn,"TokenBuilder"),ValueConverter:_Vt(()=>new Jyn,"ValueConverter")}};function rvn(e=Kun){const t=Mun(Dun(e),Iyn),n=Mun(Lun({shared:t}),zyn,nvn);return t.ServiceRegistry.register(n),{shared:t,Radar:n}}_Vt(rvn,"createRadarServices");var ivn=(_Vt(Gt=class extends evn{constructor(){super(["railroad-beta"])}},"RailroadTokenBuilder"),Gt),ovn=_Vt(e=>{const t=e.slice(1,-1);let n="";for(let r=0;r<t.length;r++){const e=t[r];if("\\"===e&&r+1<t.length){r++;const e=t[r];switch(e){case"n":n+="\n";break;case"r":n+="\r";break;case"t":n+="\t";break;default:n+=e}continue}n+=e}return n},"decodeEscapedString"),avn=(_Vt(Ht=class extends Kyn{runConverter(e,t,n){const r=super.runConverter(e,t,n);if("TITLE"===e.name&&"string"==typeof r){const e=r.trim();if(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))return ovn(e)}return r}runCustomConverter(e,t,n){if("RR_STRING"===e.name)return ovn(t)}},"RailroadValueConverter"),Ht),svn={parser:{TokenBuilder:_Vt(()=>new ivn,"TokenBuilder"),ValueConverter:_Vt(()=>new avn,"ValueConverter")}};function lvn(e=Kun){const t=Mun(Dun(e),Iyn),n=Mun(Lun({shared:t}),Wyn,svn);return t.ServiceRegistry.register(n),{shared:t,Railroad:n}}_Vt(lvn,"createRailroadServices");var cvn=(_Vt(Kt=class extends evn{constructor(){super(["railroad-ebnf-beta"])}},"RailroadEbnfTokenBuilder"),Kt),uvn=_Vt(e=>{const t=e.slice(1,-1);let n="";for(let r=0;r<t.length;r++){const e=t[r];if("\\"===e&&r+1<t.length){r++;const e=t[r];switch(e){case"n":n+="\n";break;case"r":n+="\r";break;case"t":n+="\t";break;default:n+=e}continue}n+=e}return n},"decodeEscapedString"),hvn=(_Vt(Jt=class extends Kyn{runConverter(e,t,n){const r=super.runConverter(e,t,n);if("TITLE"===e.name&&"string"==typeof r){const e=r.trim();if(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))return uvn(e)}return r}runCustomConverter(e,t,n){return"EBNF_STRING"===e.name?uvn(t):"EBNF_SPECIAL_SEQUENCE"===e.name?t.slice(1,-1).trim():void 0}},"RailroadEbnfValueConverter"),Jt),dvn={parser:{TokenBuilder:_Vt(()=>new cvn,"TokenBuilder"),ValueConverter:_Vt(()=>new hvn,"ValueConverter")}};function pvn(e=Kun){const t=Mun(Dun(e),Iyn),n=Mun(Lun({shared:t}),Vyn,dvn);return t.ServiceRegistry.register(n),{shared:t,RailroadEbnf:n}}_Vt(pvn,"createRailroadEbnfServices");var fvn=(_Vt(en=class extends evn{constructor(){super(["railroad-abnf-beta"])}},"RailroadAbnfTokenBuilder"),en),gvn=(_Vt(tn=class extends Kyn{runConverter(e,t,n){const r=super.runConverter(e,t,n);if("TITLE"===e.name&&"string"==typeof r){const e=r.trim();if(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))return e.slice(1,-1)}return r}runCustomConverter(e,t,n){if("ABNF_STRING"===e.name)return t.slice(1,-1)}},"RailroadAbnfValueConverter"),tn),mvn={parser:{TokenBuilder:_Vt(()=>new fvn,"TokenBuilder"),ValueConverter:_Vt(()=>new gvn,"ValueConverter")}};function Ovn(e=Kun){const t=Mun(Dun(e),Iyn),n=Mun(Lun({shared:t}),qyn,mvn);return t.ServiceRegistry.register(n),{shared:t,RailroadAbnf:n}}_Vt(Ovn,"createRailroadAbnfServices");var Avn=(_Vt(nn=class extends evn{constructor(){super(["railroad-peg-beta"])}},"RailroadPegTokenBuilder"),nn),yvn=_Vt(e=>{const t=e.slice(1,-1);let n="";for(let r=0;r<t.length;r++){const e=t[r];if("\\"===e&&r+1<t.length){r++;const e=t[r];switch(e){case"n":n+="\n";break;case"r":n+="\r";break;case"t":n+="\t";break;default:n+=e}continue}n+=e}return n},"decodeEscapedString"),vvn=(_Vt(rn=class extends Kyn{runConverter(e,t,n){const r=super.runConverter(e,t,n);if("TITLE"===e.name&&"string"==typeof r){const e=r.trim();if(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))return yvn(e)}return r}runCustomConverter(e,t,n){if("PEG_STRING"===e.name)return yvn(t)}},"RailroadPegValueConverter"),rn),bvn={parser:{TokenBuilder:_Vt(()=>new Avn,"TokenBuilder"),ValueConverter:_Vt(()=>new vvn,"ValueConverter")}};function xvn(e=Kun){const t=Mun(Dun(e),Iyn),n=Mun(Lun({shared:t}),jyn,bvn);return t.ServiceRegistry.register(n),{shared:t,RailroadPeg:n}}_Vt(xvn,"createRailroadPegServices");var wvn=(_Vt(on=class extends evn{constructor(){super(["treemap"])}},"TreemapTokenBuilder"),on),kvn=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,Svn=(_Vt(an=class extends Kyn{runCustomConverter(e,t,n){if("NUMBER2"===e.name)return parseFloat(t.replace(/,/g,""));if("SEPARATOR"===e.name)return t.substring(1,t.length-1);if("STRING2"===e.name)return t.substring(1,t.length-1);if("INDENTATION"===e.name)return t.length;if("ClassDef"===e.name){if("string"!=typeof t)return t;const e=kvn.exec(t);if(e)return{$type:"ClassDefStatement",className:e[1],styleText:e[2]||void 0}}}},"TreemapValueConverter"),an);function Tvn(e){const t=e.validation.TreemapValidator,n=e.validation.ValidationRegistry;if(n){const e={Treemap:t.checkSingleRoot.bind(t)};n.register(e,t)}}_Vt(Tvn,"registerValidationChecks");var $vn=(_Vt(sn=class{checkSingleRoot(e,t){let n;for(const r of e.TreemapRows)r.item&&(void 0===n&&void 0===r.indent?n=0:(void 0===r.indent||void 0!==n&&n>=parseInt(r.indent,10))&&t("error","Multiple root nodes are not allowed in a treemap.",{node:r,property:"item"}))}},"TreemapValidator"),sn),_vn={parser:{TokenBuilder:_Vt(()=>new wvn,"TokenBuilder"),ValueConverter:_Vt(()=>new Svn,"ValueConverter")},validation:{TreemapValidator:_Vt(()=>new $vn,"TreemapValidator")}};function Cvn(e=Kun){const t=Mun(Dun(e),Iyn),n=Mun(Lun({shared:t}),Yyn,_vn);return t.ServiceRegistry.register(n),Tvn(n),{shared:t,Treemap:n}}_Vt(Cvn,"createTreemapServices");var Qvn=(_Vt(ln=class extends Kyn{runCustomConverter(e,t,n){if("LINK_LABEL"===e.name.toUpperCase())return t.substring(1).trim()}},"WardleyValueConverter"),ln),Pvn={parser:{ValueConverter:_Vt(()=>new Qvn,"ValueConverter")}};function Evn(e=Kun){const t=Mun(Dun(e),Iyn),n=Mun(Lun({shared:t}),Gyn,Pvn);return t.ServiceRegistry.register(n),{shared:t,Wardley:n}}_Vt(Evn,"createWardleyServices");var Rvn=(_Vt(cn=class extends evn{constructor(){super(["cynefin-beta"])}},"CynefinTokenBuilder"),cn),Bvn={parser:{TokenBuilder:_Vt(()=>new Rvn,"TokenBuilder"),ValueConverter:_Vt(()=>new Jyn,"ValueConverter")}};function Ivn(e=Kun){const t=Mun(Dun(e),Iyn),n=Mun(Lun({shared:t}),Dyn,Bvn);return t.ServiceRegistry.register(n),{shared:t,Cynefin:n}}_Vt(Ivn,"createCynefinServices");var Lvn=(_Vt(un=class extends evn{constructor(){super(["gitGraph"])}},"GitGraphTokenBuilder"),un),Dvn={parser:{TokenBuilder:_Vt(()=>new Lvn,"TokenBuilder"),ValueConverter:_Vt(()=>new Jyn,"ValueConverter")}};function Mvn(e=Kun){const t=Mun(Dun(e),Iyn),n=Mun(Lun({shared:t}),Nyn,Dvn);return t.ServiceRegistry.register(n),{shared:t,GitGraph:n}}_Vt(Mvn,"createGitGraphServices");var Nvn=(_Vt(hn=class extends evn{constructor(){super(["info","showInfo"])}},"InfoTokenBuilder"),hn),Xvn={parser:{TokenBuilder:_Vt(()=>new Nvn,"TokenBuilder"),ValueConverter:_Vt(()=>new Jyn,"ValueConverter")}};function Fvn(e=Kun){const t=Mun(Dun(e),Iyn),n=Mun(Lun({shared:t}),Xyn,Xvn);return t.ServiceRegistry.register(n),{shared:t,Info:n}}_Vt(Fvn,"createInfoServices");var Uvn=(_Vt(dn=class extends evn{constructor(){super(["packet"])}},"PacketTokenBuilder"),dn),zvn={parser:{TokenBuilder:_Vt(()=>new Uvn,"TokenBuilder"),ValueConverter:_Vt(()=>new Jyn,"ValueConverter")}};function qvn(e=Kun){const t=Mun(Dun(e),Iyn),n=Mun(Lun({shared:t}),Fyn,zvn);return t.ServiceRegistry.register(n),{shared:t,Packet:n}}_Vt(qvn,"createPacketServices");var Vvn=(_Vt(pn=class extends evn{constructor(){super(["pie","showData"])}},"PieTokenBuilder"),pn),Wvn=(_Vt(fn=class extends Kyn{runCustomConverter(e,t,n){if("PIE_SECTION_LABEL"===e.name)return t.replace(/"/g,"").trim()}},"PieValueConverter"),fn),jvn={parser:{TokenBuilder:_Vt(()=>new Vvn,"TokenBuilder"),ValueConverter:_Vt(()=>new Wvn,"ValueConverter")}};function Yvn(e=Kun){const t=Mun(Dun(e),Iyn),n=Mun(Lun({shared:t}),Uyn,jvn);return t.ServiceRegistry.register(n),{shared:t,Pie:n}}_Vt(Yvn,"createPieServices");var Zvn=(_Vt(gn=class extends Kyn{runCustomConverter(e,t,n){if("INDENTATION"===e.name)return(null==t?void 0:t.length)||0;if("QUOTED_NAME"===e.name)return t.substring(1,t.length-1);if("BARE_NAME"===e.name)return t.replace(/[\t ]+$/,"");if("CLASS_ANNOTATION"===e.name){return t.trim().substring(3).trim()}if("ICON_ANNOTATION"===e.name){const e=t.trim();return e.substring(5,e.length-1)}if("DESC_ANNOTATION"===e.name){return t.trim().substring(2).trim()}}},"TreeViewValueConverter"),gn),Gvn=(_Vt(mn=class extends evn{constructor(){super(["treeView-beta"])}},"TreeViewTokenBuilder"),mn),Hvn={parser:{TokenBuilder:_Vt(()=>new Gvn,"TokenBuilder"),ValueConverter:_Vt(()=>new Zvn,"ValueConverter")}};function Kvn(e=Kun){const t=Mun(Dun(e),Iyn),n=Mun(Lun({shared:t}),Zyn,Hvn);return t.ServiceRegistry.register(n),{shared:t,TreeView:n}}_Vt(Kvn,"createTreeViewServices");var Jvn=(_Vt(On=class extends evn{constructor(){super(["architecture"])}},"ArchitectureTokenBuilder"),On),ebn=(_Vt(An=class extends Kyn{runCustomConverter(e,t,n){if("ARCH_ICON"===e.name)return t.replace(/[()]/g,"").trim();if("ARCH_TEXT_ICON"===e.name)return t.replace(/["()]/g,"");if("ARCH_TITLE"===e.name){let e=t.replace(/^\[|]$/g,"").trim();return(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1),e=e.replace(/\\"/g,'"').replace(/\\'/g,"'")),e.trim()}}},"ArchitectureValueConverter"),An),tbn={parser:{TokenBuilder:_Vt(()=>new Jvn,"TokenBuilder"),ValueConverter:_Vt(()=>new ebn,"ValueConverter")}};function nbn(e=Kun){const t=Mun(Dun(e),Iyn),n=Mun(Lun({shared:t}),Lyn,tbn);return t.ServiceRegistry.register(n),{shared:t,Architecture:n}}_Vt(nbn,"createArchitectureServices");var rbn=(_Vt(yn=class extends evn{constructor(){super(["eventmodeling"])}},"EventModelingTokenBuilder"),yn),ibn=new Set(["cmd","command"]),obn=new Set(["evt","event"]),abn=new Set(["rmo","readmodel"]),sbn=new Set(["pcr","processor"]),lbn=new Set(["ui"]);function cbn(e){const t=e.validation.EventModelingValidator,n=e.validation.ValidationRegistry;if(n){const e={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};n.register(e,t)}}_Vt(cbn,"registerValidationChecks");var ubn=(_Vt(vn=class{checkSourceFrameTypes(e,t){0!==e.sourceFrames.length&&(ibn.has(e.modelEntityType)?this.validateSources(e,new Set([...lbn,...sbn]),"command","ui or processor",t):obn.has(e.modelEntityType)?this.validateSources(e,ibn,"event","command",t):abn.has(e.modelEntityType)?this.validateSources(e,obn,"read model","event",t):sbn.has(e.modelEntityType)?this.validateSources(e,abn,"processor","read model",t):lbn.has(e.modelEntityType)&&this.validateSources(e,abn,"ui","read model",t))}validateSources(e,t,n,r,i){for(const o of e.sourceFrames){const a=o.ref;void 0===a||t.has(a.modelEntityType)||i("error",`A ${n} can only receive input from a ${r}, not from '${a.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},"EventModelingValidator"),vn),hbn={parser:{TokenBuilder:_Vt(()=>new rbn,"TokenBuilder"),ValueConverter:_Vt(()=>new Jyn,"ValueConverter")},validation:{EventModelingValidator:_Vt(()=>new ubn,"EventModelingValidator")}};function dbn(e=Kun){const t=Mun(Dun(e),Iyn),n=Mun(Lun({shared:t}),Myn,hbn);return t.ServiceRegistry.register(n),cbn(n),{shared:t,EventModel:n}}_Vt(dbn,"createEventModelingServices");var pbn={},fbn={info:_Vt(async()=>{const{createInfoServices:e}=await Pf(async()=>{const{createInfoServices:e}=await Promise.resolve().then(()=>VFn);return{createInfoServices:e}},void 0,import.meta.url),t=e().Info.parser.LangiumParser;pbn.info=t},"info"),packet:_Vt(async()=>{const{createPacketServices:e}=await Pf(async()=>{const{createPacketServices:e}=await Promise.resolve().then(()=>WFn);return{createPacketServices:e}},void 0,import.meta.url),t=e().Packet.parser.LangiumParser;pbn.packet=t},"packet"),pie:_Vt(async()=>{const{createPieServices:e}=await Pf(async()=>{const{createPieServices:e}=await Promise.resolve().then(()=>jFn);return{createPieServices:e}},void 0,import.meta.url),t=e().Pie.parser.LangiumParser;pbn.pie=t},"pie"),treeView:_Vt(async()=>{const{createTreeViewServices:e}=await Pf(async()=>{const{createTreeViewServices:e}=await Promise.resolve().then(()=>YFn);return{createTreeViewServices:e}},void 0,import.meta.url),t=e().TreeView.parser.LangiumParser;pbn.treeView=t},"treeView"),architecture:_Vt(async()=>{const{createArchitectureServices:e}=await Pf(async()=>{const{createArchitectureServices:e}=await Promise.resolve().then(()=>ZFn);return{createArchitectureServices:e}},void 0,import.meta.url),t=e().Architecture.parser.LangiumParser;pbn.architecture=t},"architecture"),gitGraph:_Vt(async()=>{const{createGitGraphServices:e}=await Pf(async()=>{const{createGitGraphServices:e}=await Promise.resolve().then(()=>GFn);return{createGitGraphServices:e}},void 0,import.meta.url),t=e().GitGraph.parser.LangiumParser;pbn.gitGraph=t},"gitGraph"),eventmodeling:_Vt(async()=>{const{createEventModelingServices:e}=await Pf(async()=>{const{createEventModelingServices:e}=await Promise.resolve().then(()=>HFn);return{createEventModelingServices:e}},void 0,import.meta.url),t=e().EventModel.parser.LangiumParser;pbn.eventmodeling=t},"eventmodeling"),radar:_Vt(async()=>{const{createRadarServices:e}=await Pf(async()=>{const{createRadarServices:e}=await Promise.resolve().then(()=>KFn);return{createRadarServices:e}},void 0,import.meta.url),t=e().Radar.parser.LangiumParser;pbn.radar=t},"radar"),railroad:_Vt(async()=>{const{createRailroadServices:e}=await Pf(async()=>{const{createRailroadServices:e}=await Promise.resolve().then(()=>JFn);return{createRailroadServices:e}},void 0,import.meta.url),t=e().Railroad.parser.LangiumParser;pbn.railroad=t},"railroad"),railroadEbnf:_Vt(async()=>{const{createRailroadEbnfServices:e}=await Pf(async()=>{const{createRailroadEbnfServices:e}=await Promise.resolve().then(()=>eUn);return{createRailroadEbnfServices:e}},void 0,import.meta.url),t=e().RailroadEbnf.parser.LangiumParser;pbn.railroadEbnf=t},"railroadEbnf"),railroadAbnf:_Vt(async()=>{const{createRailroadAbnfServices:e}=await Pf(async()=>{const{createRailroadAbnfServices:e}=await Promise.resolve().then(()=>tUn);return{createRailroadAbnfServices:e}},void 0,import.meta.url),t=e().RailroadAbnf.parser.LangiumParser;pbn.railroadAbnf=t},"railroadAbnf"),railroadPeg:_Vt(async()=>{const{createRailroadPegServices:e}=await Pf(async()=>{const{createRailroadPegServices:e}=await Promise.resolve().then(()=>nUn);return{createRailroadPegServices:e}},void 0,import.meta.url),t=e().RailroadPeg.parser.LangiumParser;pbn.railroadPeg=t},"railroadPeg"),treemap:_Vt(async()=>{const{createTreemapServices:e}=await Pf(async()=>{const{createTreemapServices:e}=await Promise.resolve().then(()=>rUn);return{createTreemapServices:e}},void 0,import.meta.url),t=e().Treemap.parser.LangiumParser;pbn.treemap=t},"treemap"),wardley:_Vt(async()=>{const{createWardleyServices:e}=await Pf(async()=>{const{createWardleyServices:e}=await Promise.resolve().then(()=>iUn);return{createWardleyServices:e}},void 0,import.meta.url),t=e().Wardley.parser.LangiumParser;pbn.wardley=t},"wardley"),cynefin:_Vt(async()=>{const{createCynefinServices:e}=await Pf(async()=>{const{createCynefinServices:e}=await Promise.resolve().then(()=>oUn);return{createCynefinServices:e}},void 0,import.meta.url),t=e().Cynefin.parser.LangiumParser;pbn.cynefin=t},"cynefin")};async function gbn(e,t){const n=fbn[e];if(!n)throw new Error(`Unknown diagram type: ${e}`);pbn[e]||await n();const r=pbn[e].parse(t);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new mbn(r);return r.value}_Vt(gbn,"parse");var mbn=(bn=class extends Error{constructor(e){super(`Parsing failed: ${e.lexerErrors.map(e=>`Lexer error on line ${void 0===e.line||isNaN(e.line)?"?":e.line}, column ${void 0===e.column||isNaN(e.column)?"?":e.column}: ${e.message}`).join("\n")} ${e.parserErrors.map(e=>`Parse error on line ${void 0===e.token.startLine||isNaN(e.token.startLine)?"?":e.token.startLine}, column ${void 0===e.token.startColumn||isNaN(e.token.startColumn)?"?":e.token.startColumn}: ${e.message}`).join("\n")}`),this.result=e}},_Vt(bn,"MermaidParseError"),bn),Obn={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Abn=wBe.gitGraph,ybn=hRe(()=>jWe({...Abn,...NBe().gitGraph}),"getConfig"),vbn=new zzt(()=>{const e=ybn(),t=e.mainBranchName,n=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:n}]]),branches:new Map([[t,null]]),currBranch:t,direction:"LR",seq:0,options:{}}});function bbn(){return RWe({length:7})}function xbn(e,t){const n=Object.create(null);return e.reduce((e,r)=>{const i=t(r);return n[i]||(n[i]=!0,e.push(r)),e},[])}hRe(bbn,"getID"),hRe(xbn,"uniqBy");var wbn=hRe(function(e){vbn.records.direction=e},"setDirection"),kbn=hRe(function(e){ORe.debug("options str",e),e=(e=null==e?void 0:e.trim())||"{}";try{vbn.records.options=JSON.parse(e)}catch(jk){ORe.error("error while parsing gitGraph options",jk.message)}},"setOptions"),Sbn=hRe(function(){return vbn.records.options},"getOptions"),Tbn=hRe(function(e){let t=e.msg,n=e.id;const r=e.type;let i=e.tags;ORe.info("commit",t,n,r,i),ORe.debug("Entering commit:",t,n,r,i);const o=ybn();n=CIe.sanitizeText(n,o),t=CIe.sanitizeText(t,o),i=null==i?void 0:i.map(e=>CIe.sanitizeText(e,o));const a={id:n||vbn.records.seq+"-"+bbn(),message:t,seq:vbn.records.seq++,type:r??Obn.NORMAL,tags:i??[],parents:null==vbn.records.head?[]:[vbn.records.head.id],branch:vbn.records.currBranch};vbn.records.head=a,ORe.info("main branch",o.mainBranchName),vbn.records.commits.has(a.id)&&ORe.warn(`Commit ID ${a.id} already exists`),vbn.records.commits.set(a.id,a),vbn.records.branches.set(vbn.records.currBranch,a.id),ORe.debug("in pushCommit "+a.id)},"commit"),$bn=hRe(function(e){let t=e.name;const n=e.order;if(t=CIe.sanitizeText(t,ybn()),vbn.records.branches.has(t))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);vbn.records.branches.set(t,null!=vbn.records.head?vbn.records.head.id:null),vbn.records.branchConfig.set(t,{name:t,order:n}),Qbn(t),ORe.debug("in createBranch")},"branch"),_bn=hRe(e=>{let t=e.branch,n=e.id;const r=e.type,i=e.tags,o=ybn();t=CIe.sanitizeText(t,o),n&&(n=CIe.sanitizeText(n,o));const a=vbn.records.branches.get(vbn.records.currBranch),s=vbn.records.branches.get(t),l=a?vbn.records.commits.get(a):void 0,c=s?vbn.records.commits.get(s):void 0;if(l&&c&&l.branch===t)throw new Error(`Cannot merge branch '${t}' into itself.`);if(vbn.records.currBranch===t){const e=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["branch abc"]},e}if(void 0===l||!l){const e=new Error(`Incorrect usage of "merge". Current branch (${vbn.records.currBranch})has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["commit"]},e}if(!vbn.records.branches.has(t)){const e=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") does not exist");throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch ${t}`]},e}if(void 0===c||!c){const e=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") has no commits");throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:['"commit"']},e}if(l===c){const e=new Error('Incorrect usage of "merge". Both branches have same head');throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["branch abc"]},e}if(n&&vbn.records.commits.has(n)){const e=new Error('Incorrect usage of "merge". Commit with id:'+n+" already exists, use different custom id");throw e.hash={text:`merge ${t} ${n} ${r} ${null==i?void 0:i.join(" ")}`,token:`merge ${t} ${n} ${r} ${null==i?void 0:i.join(" ")}`,expected:[`merge ${t} ${n}_UNIQUE ${r} ${null==i?void 0:i.join(" ")}`]},e}const u=s||"",h={id:n||`${vbn.records.seq}-${bbn()}`,message:`merged branch ${t} into ${vbn.records.currBranch}`,seq:vbn.records.seq++,parents:null==vbn.records.head?[]:[vbn.records.head.id,u],branch:vbn.records.currBranch,type:Obn.MERGE,customType:r,customId:!!n,tags:i??[]};vbn.records.head=h,vbn.records.commits.set(h.id,h),vbn.records.branches.set(vbn.records.currBranch,h.id),ORe.debug(vbn.records.branches),ORe.debug("in mergeBranch")},"merge"),Cbn=hRe(function(e){let t=e.id,n=e.targetId,r=e.tags,i=e.parent;ORe.debug("Entering cherryPick:",t,n,r);const o=ybn();if(t=CIe.sanitizeText(t,o),n=CIe.sanitizeText(n,o),r=null==r?void 0:r.map(e=>CIe.sanitizeText(e,o)),i=CIe.sanitizeText(i,o),!t||!vbn.records.commits.has(t)){const e=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:["cherry-pick abc"]},e}const a=vbn.records.commits.get(t);if(void 0===a||!a)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(i&&(!Array.isArray(a.parents)||!a.parents.includes(i))){throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.")}const s=a.branch;if(a.type===Obn.MERGE&&!i){throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.")}if(!n||!vbn.records.commits.has(n)){if(s===vbn.records.currBranch){const e=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:["cherry-pick abc"]},e}const e=vbn.records.branches.get(vbn.records.currBranch);if(void 0===e||!e){const e=new Error(`Incorrect usage of "cherry-pick". Current branch (${vbn.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:["cherry-pick abc"]},e}const o=vbn.records.commits.get(e);if(void 0===o||!o){const e=new Error(`Incorrect usage of "cherry-pick". Current branch (${vbn.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:["cherry-pick abc"]},e}const l={id:vbn.records.seq+"-"+bbn(),message:`cherry-picked ${null==a?void 0:a.message} into ${vbn.records.currBranch}`,seq:vbn.records.seq++,parents:null==vbn.records.head?[]:[vbn.records.head.id,a.id],branch:vbn.records.currBranch,type:Obn.CHERRY_PICK,tags:r?r.filter(Boolean):[`cherry-pick:${a.id}${a.type===Obn.MERGE?`|parent:${i}`:""}`]};vbn.records.head=l,vbn.records.commits.set(l.id,l),vbn.records.branches.set(vbn.records.currBranch,l.id),ORe.debug(vbn.records.branches),ORe.debug("in cherryPick")}},"cherryPick"),Qbn=hRe(function(e){if(e=CIe.sanitizeText(e,ybn()),!vbn.records.branches.has(e)){const t=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw t.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},t}{vbn.records.currBranch=e;const t=vbn.records.branches.get(vbn.records.currBranch);vbn.records.head=void 0!==t&&t?vbn.records.commits.get(t)??null:null}},"checkout");function Pbn(e,t,n){const r=e.indexOf(t);-1===r?e.push(n):e.splice(r,1,n)}function Ebn(e){const t=e.reduce((e,t)=>e.seq>t.seq?e:t,e[0]);let n="";e.forEach(function(e){n+=e===t?"\t*":"\t|"});const r=[n,t.id,t.seq];for(const i in vbn.records.branches)vbn.records.branches.get(i)===t.id&&r.push(i);if(ORe.debug(r.join(" ")),t.parents&&2==t.parents.length&&t.parents[0]&&t.parents[1]){const n=vbn.records.commits.get(t.parents[0]);Pbn(e,t,n),t.parents[1]&&e.push(vbn.records.commits.get(t.parents[1]))}else{if(0==t.parents.length)return;if(t.parents[0]){const n=vbn.records.commits.get(t.parents[0]);Pbn(e,t,n)}}Ebn(e=xbn(e,e=>e.id))}hRe(Pbn,"upsert"),hRe(Ebn,"prettyPrintCommitHistory");var Rbn=hRe(function(){ORe.debug(vbn.records.commits);Ebn([Mbn()[0]])},"prettyPrint"),Bbn=hRe(function(){vbn.reset(),qIe()},"clear"),Ibn=hRe(function(){const e=[...vbn.records.branchConfig.values()].map((e,t)=>null!==e.order&&void 0!==e.order?e:{...e,order:parseFloat(`0.${t}`)}).sort((e,t)=>(e.order??0)-(t.order??0)).map(({name:e})=>({name:e}));return e},"getBranchesAsObjArray"),Lbn=hRe(function(){return vbn.records.branches},"getBranches"),Dbn=hRe(function(){return vbn.records.commits},"getCommits"),Mbn=hRe(function(){const e=[...vbn.records.commits.values()];return e.forEach(function(e){ORe.debug(e.id)}),e.sort((e,t)=>e.seq-t.seq),e},"getCommitsArray"),Nbn={commitType:Obn,getConfig:ybn,setDirection:wbn,setOptions:kbn,getOptions:Sbn,commit:Tbn,branch:$bn,merge:_bn,cherryPick:Cbn,checkout:Qbn,prettyPrint:Rbn,clear:Bbn,getBranchesAsObjArray:Ibn,getBranches:Lbn,getCommits:Dbn,getCommitsArray:Mbn,getCurrentBranch:hRe(function(){return vbn.records.currBranch},"getCurrentBranch"),getDirection:hRe(function(){return vbn.records.direction},"getDirection"),getHead:hRe(function(){return vbn.records.head},"getHead"),setAccTitle:VIe,getAccTitle:WIe,getAccDescription:YIe,setAccDescription:jIe,setDiagramTitle:ZIe,getDiagramTitle:GIe},Xbn=hRe((e,t)=>{qzt(e,t),e.dir&&t.setDirection(e.dir);for(const n of e.statements)Fbn(n,t)},"populate"),Fbn=hRe((e,t)=>{const n={Commit:hRe(e=>t.commit(Ubn(e)),"Commit"),Branch:hRe(e=>t.branch(zbn(e)),"Branch"),Merge:hRe(e=>t.merge(qbn(e)),"Merge"),Checkout:hRe(e=>t.checkout(Vbn(e)),"Checkout"),CherryPicking:hRe(e=>t.cherryPick(Wbn(e)),"CherryPicking")}[e.$type];n?n(e):ORe.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Ubn=hRe(e=>({id:e.id,msg:e.message??"",type:void 0!==e.type?Obn[e.type]:Obn.NORMAL,tags:e.tags??void 0}),"parseCommit"),zbn=hRe(e=>({name:e.name,order:e.order??0}),"parseBranch"),qbn=hRe(e=>({branch:e.branch,id:e.id??"",type:void 0!==e.type?Obn[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Vbn=hRe(e=>e.branch,"parseCheckout"),Wbn=hRe(e=>{var t;return{id:e.id,targetId:"",tags:0===(null==(t=e.tags)?void 0:t.length)?void 0:e.tags,parent:e.parent}},"parseCherryPicking"),jbn={parse:hRe(async e=>{const t=await gbn("gitGraph",e);ORe.debug(t),Xbn(t,Nbn)},"parse")},Ybn=10,Zbn=40,Gbn=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),Hbn=new Set(["redux-color","redux-dark-color"]),Kbn=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),Jbn=hRe((e,t,n=!1)=>n&&e>0?(e-1)%(t-1)+1:e%t,"calcColorIndex"),exn=new Map,txn=new Map,nxn=new Map,rxn=[],ixn=0,oxn="LR",axn=hRe(()=>{exn.clear(),txn.clear(),nxn.clear(),ixn=0,rxn=[],oxn="LR"},"clear"),sxn=hRe(e=>{const t=document.createElementNS("http://www.w3.org/2000/svg","text");return("string"==typeof e?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(e=>{const n=document.createElementNS("http://www.w3.org/2000/svg","tspan");n.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),n.setAttribute("dy","1em"),n.setAttribute("x","0"),n.setAttribute("class","row"),n.textContent=e.trim(),t.appendChild(n)}),t},"drawText"),lxn=hRe(e=>{let t,n,r;return"BT"===oxn?(n=hRe((e,t)=>e<=t,"comparisonFunc"),r=1/0):(n=hRe((e,t)=>e>=t,"comparisonFunc"),r=0),e.forEach(e=>{var i,o;const a="TB"===oxn||"BT"==oxn?null==(i=txn.get(e))?void 0:i.y:null==(o=txn.get(e))?void 0:o.x;void 0!==a&&n(a,r)&&(t=e,r=a)}),t},"findClosestParent"),cxn=hRe(e=>{let t="",n=1/0;return e.forEach(e=>{const r=txn.get(e).y;r<=n&&(t=e,n=r)}),t||void 0},"findClosestParentBT"),uxn=hRe((e,t,n)=>{let r=n,i=n;const o=[];e.forEach(e=>{const n=t.get(e);if(!n)throw new Error(`Commit not found for key ${e}`);n.parents.length?(r=dxn(n),i=Math.max(r,i)):o.push(n),pxn(n,r)}),r=i,o.forEach(e=>{fxn(e,r,n)}),e.forEach(e=>{const n=t.get(e);if(null==n?void 0:n.parents.length){const e=cxn(n.parents);r=txn.get(e).y-Zbn,r<=i&&(i=r);const t=exn.get(n.branch).pos,o=r-Ybn;txn.set(n.id,{x:t,y:o})}})},"setParallelBTPos"),hxn=hRe(e=>{var t;const n=lxn(e.parents.filter(e=>null!==e));if(!n)throw new Error(`Closest parent not found for commit ${e.id}`);const r=null==(t=txn.get(n))?void 0:t.y;if(void 0===r)throw new Error(`Closest parent position not found for commit ${e.id}`);return r},"findClosestParentPos"),dxn=hRe(e=>hxn(e)+Zbn,"calculateCommitPosition"),pxn=hRe((e,t)=>{const n=exn.get(e.branch);if(!n)throw new Error(`Branch not found for commit ${e.id}`);const r=n.pos,i=t+Ybn;return txn.set(e.id,{x:r,y:i}),{x:r,y:i}},"setCommitPosition"),fxn=hRe((e,t,n)=>{const r=exn.get(e.branch);if(!r)throw new Error(`Branch not found for commit ${e.id}`);const i=t+n,o=r.pos;txn.set(e.id,{x:o,y:i})},"setRootPosition"),gxn=hRe((e,t,n,r,i,o)=>{const{theme:a}=JIe(),s=Gbn.has(a??""),l=Hbn.has(a??""),c=Kbn.has(a??"");if(o===Obn.HIGHLIGHT)e.append("rect").attr("x",n.x-10+(s?3:0)).attr("y",n.y-10+(s?3:0)).attr("width",s?14:20).attr("height",s?14:20).attr("class",`commit ${t.id} commit-highlight${Jbn(i,8,l)} ${r}-outer`),e.append("rect").attr("x",n.x-6+(s?2:0)).attr("y",n.y-6+(s?2:0)).attr("width",s?8:12).attr("height",s?8:12).attr("class",`commit ${t.id} commit${Jbn(i,8,l)} ${r}-inner`);else if(o===Obn.CHERRY_PICK)e.append("circle").attr("cx",n.x).attr("cy",n.y).attr("r",s?7:10).attr("class",`commit ${t.id} ${r}`),e.append("circle").attr("cx",n.x-3).attr("cy",n.y+2).attr("r",s?2.5:2.75).attr("fill",c?"#000000":"#fff").attr("class",`commit ${t.id} ${r}`),e.append("circle").attr("cx",n.x+3).attr("cy",n.y+2).attr("r",s?2.5:2.75).attr("fill",c?"#000000":"#fff").attr("class",`commit ${t.id} ${r}`),e.append("line").attr("x1",n.x+3).attr("y1",n.y+1).attr("x2",n.x).attr("y2",n.y-5).attr("stroke",c?"#000000":"#fff").attr("class",`commit ${t.id} ${r}`),e.append("line").attr("x1",n.x-3).attr("y1",n.y+1).attr("x2",n.x).attr("y2",n.y-5).attr("stroke",c?"#000000":"#fff").attr("class",`commit ${t.id} ${r}`);else{const a=e.append("circle");if(a.attr("cx",n.x),a.attr("cy",n.y),a.attr("r",s?7:10),a.attr("class",`commit ${t.id} commit${Jbn(i,8,l)}`),o===Obn.MERGE){const o=e.append("circle");o.attr("cx",n.x),o.attr("cy",n.y),o.attr("r",s?5:6),o.attr("class",`commit ${r} ${t.id} commit${Jbn(i,8,l)}`)}if(o===Obn.REVERSE){const o=s?4:5;e.append("path").attr("d",`M ${n.x-o},${n.y-o}L${n.x+o},${n.y+o}M${n.x-o},${n.y+o}L${n.x+o},${n.y-o}`).attr("class",`commit ${r} ${t.id} commit${Jbn(i,8,l)}`)}}},"drawCommitBullet"),mxn=hRe((e,t,n,r,i)=>{var o;if(t.type!==Obn.CHERRY_PICK&&(t.customId&&t.type===Obn.MERGE||t.type!==Obn.MERGE)&&i.showCommitLabel){const a=e.append("g"),s=a.insert("rect").attr("class","commit-label-bkg"),l=a.append("text").attr("x",r).attr("y",n.y+25).attr("class","commit-label").text(t.id),c=null==(o=l.node())?void 0:o.getBBox();if(c&&(s.attr("x",n.posWithOffset-c.width/2-2).attr("y",n.y+13.5).attr("width",c.width+4).attr("height",c.height+4),"TB"===oxn||"BT"===oxn?(s.attr("x",n.x-(c.width+16+5)).attr("y",n.y-12),l.attr("x",n.x-(c.width+16)).attr("y",n.y+c.height-12)):l.attr("x",n.posWithOffset-c.width/2),i.rotateCommitLabel))if("TB"===oxn||"BT"===oxn)l.attr("transform","rotate(-45, "+n.x+", "+n.y+")"),s.attr("transform","rotate(-45, "+n.x+", "+n.y+")");else{const e=-7.5-(c.width+10)/25*9.5,t=10+c.width/25*8.5;a.attr("transform","translate("+e+", "+t+") rotate(-45, "+r+", "+n.y+")")}}},"drawCommitLabel"),Oxn=hRe((e,t,n,r)=>{var i;if(t.tags.length>0){let o=0,a=0,s=0;const l=[];for(const r of t.tags.reverse()){const t=e.insert("polygon"),c=e.append("circle"),u=e.append("text").attr("y",n.y-16-o).attr("class","tag-label").text(r),h=null==(i=u.node())?void 0:i.getBBox();if(!h)throw new Error("Tag bbox not found");a=Math.max(a,h.width),s=Math.max(s,h.height),u.attr("x",n.posWithOffset-h.width/2),l.push({tag:u,hole:c,rect:t,yOffset:o}),o+=20}for(const{tag:e,hole:t,rect:i,yOffset:c}of l){const o=s/2,l=n.y-19.2-c;if(i.attr("class","tag-label-bkg").attr("points",`\n ${r-a/2-2},${l+2} \n ${r-a/2-2},${l-2}\n ${n.posWithOffset-a/2-4},${l-o-2}\n ${n.posWithOffset+a/2+4},${l-o-2}\n ${n.posWithOffset+a/2+4},${l+o+2}\n ${n.posWithOffset-a/2-4},${l+o+2}`),t.attr("cy",l).attr("cx",r-a/2+2).attr("r",1.5).attr("class","tag-hole"),"TB"===oxn||"BT"===oxn){const s=r+c;i.attr("class","tag-label-bkg").attr("points",`\n ${n.x},${s+2}\n ${n.x},${s-2}\n ${n.x+Ybn},${s-o-2}\n ${n.x+Ybn+a+4},${s-o-2}\n ${n.x+Ybn+a+4},${s+o+2}\n ${n.x+Ybn},${s+o+2}`).attr("transform","translate(12,12) rotate(45, "+n.x+","+r+")"),t.attr("cx",n.x+2).attr("cy",s).attr("transform","translate(12,12) rotate(45, "+n.x+","+r+")"),e.attr("x",n.x+5).attr("y",s+3).attr("transform","translate(14,14) rotate(45, "+n.x+","+r+")")}}}},"drawCommitTags"),Axn=hRe(e=>{switch(e.customType??e.type){case Obn.NORMAL:return"commit-normal";case Obn.REVERSE:return"commit-reverse";case Obn.HIGHLIGHT:return"commit-highlight";case Obn.MERGE:return"commit-merge";case Obn.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),yxn=hRe((e,t,n,r)=>{const i={x:0,y:0};if(!(e.parents.length>0)){if("TB"===t)return 30;if("BT"===t){return(r.get(e.id)??i).y-Zbn}return 0}{const n=lxn(e.parents);if(n){const o=r.get(n)??i;if("TB"===t)return o.y+Zbn;if("BT"===t){return(r.get(e.id)??i).y-Zbn}return o.x+Zbn}}return 0},"calculatePosition"),vxn=hRe((e,t,n)=>{var r,i;const o="BT"===oxn&&n?t:t+Ybn,a=null==(r=exn.get(e.branch))?void 0:r.pos,s="TB"===oxn||"BT"===oxn?null==(i=exn.get(e.branch))?void 0:i.pos:o;if(void 0===s||void 0===a)throw new Error(`Position were undefined for commit ${e.id}`);const l=Gbn.has(JIe().theme??"");return{x:s,y:"TB"===oxn||"BT"===oxn?o:a+(l?7:-2),posWithOffset:o}},"getCommitPosition"),bxn=hRe((e,t,n,r)=>{const i=e.append("g").attr("class","commit-bullets"),o=e.append("g").attr("class","commit-labels");let a="TB"===oxn||"BT"===oxn?30:0;const s=[...t.keys()],l=r.parallelCommits??!1,c=hRe((e,n)=>{var r,i;const o=null==(r=t.get(e))?void 0:r.seq,a=null==(i=t.get(n))?void 0:i.seq;return void 0!==o&&void 0!==a?o-a:0},"sortKeys");let u=s.sort(c);"BT"===oxn&&(l&&uxn(u,t,a),u=u.reverse()),u.forEach(e=>{var s;const c=t.get(e);if(!c)throw new Error(`Commit not found for key ${e}`);l&&(a=yxn(c,oxn,a,txn));const u=vxn(c,a,l);if(n){const e=Axn(c),t=c.customType??c.type,n=(null==(s=exn.get(c.branch))?void 0:s.index)??0;gxn(i,c,u,e,n,t),mxn(o,c,u,a,r),Oxn(o,c,u,a)}"TB"===oxn||"BT"===oxn?txn.set(c.id,{x:u.x,y:u.posWithOffset}):txn.set(c.id,{x:u.posWithOffset,y:u.y}),a="BT"===oxn&&l?a+Zbn:a+Zbn+Ybn,a>ixn&&(ixn=a)})},"drawCommits"),xxn=hRe((e,t,n,r,i)=>{const o=("TB"===oxn||"BT"===oxn?n.x<r.x:n.y<r.y)?t.branch:e.branch,a=hRe(e=>e.branch===o,"isOnBranchToGetCurve"),s=hRe(n=>n.seq>e.seq&&n.seq<t.seq,"isBetweenCommits");return[...i.values()].some(e=>s(e)&&a(e))},"shouldRerouteArrow"),wxn=hRe((e,t,n=0)=>{const r=e+Math.abs(e-t)/2;if(n>5)return r;if(rxn.every(e=>Math.abs(e-r)>=10))return rxn.push(r),r;const i=Math.abs(e-t);return wxn(e,t-i/5,n+1)},"findLane"),kxn=hRe((e,t,n,r)=>{var i,o,a,s,l;const{theme:c}=JIe(),u=Hbn.has(c??""),h=txn.get(t.id),d=txn.get(n.id);if(void 0===h||void 0===d)throw new Error(`Commit positions not found for commits ${t.id} and ${n.id}`);const p=xxn(t,n,h,d,r);let f,g="",m="",O=0,A=0,y=null==(i=exn.get(n.branch))?void 0:i.index;if(n.type===Obn.MERGE&&t.id!==n.parents[0]&&(y=null==(o=exn.get(t.branch))?void 0:o.index),p){g="A 10 10, 0, 0, 0,",m="A 10 10, 0, 0, 1,",O=10,A=10;const e=h.y<d.y?wxn(h.y,d.y):wxn(d.y,h.y),n=h.x<d.x?wxn(h.x,d.x):wxn(d.x,h.x);"TB"===oxn?h.x<d.x?f=`M ${h.x} ${h.y} L ${n-O} ${h.y} ${m} ${n} ${h.y+A} L ${n} ${d.y-O} ${g} ${n+A} ${d.y} L ${d.x} ${d.y}`:(y=null==(a=exn.get(t.branch))?void 0:a.index,f=`M ${h.x} ${h.y} L ${n+O} ${h.y} ${g} ${n} ${h.y+A} L ${n} ${d.y-O} ${m} ${n-A} ${d.y} L ${d.x} ${d.y}`):"BT"===oxn?h.x<d.x?f=`M ${h.x} ${h.y} L ${n-O} ${h.y} ${g} ${n} ${h.y-A} L ${n} ${d.y+O} ${m} ${n+A} ${d.y} L ${d.x} ${d.y}`:(y=null==(s=exn.get(t.branch))?void 0:s.index,f=`M ${h.x} ${h.y} L ${n+O} ${h.y} ${m} ${n} ${h.y-A} L ${n} ${d.y+O} ${g} ${n-A} ${d.y} L ${d.x} ${d.y}`):h.y<d.y?f=`M ${h.x} ${h.y} L ${h.x} ${e-O} ${g} ${h.x+A} ${e} L ${d.x-O} ${e} ${m} ${d.x} ${e+A} L ${d.x} ${d.y}`:(y=null==(l=exn.get(t.branch))?void 0:l.index,f=`M ${h.x} ${h.y} L ${h.x} ${e+O} ${m} ${h.x+A} ${e} L ${d.x-O} ${e} ${g} ${d.x} ${e-A} L ${d.x} ${d.y}`)}else g="A 20 20, 0, 0, 0,",m="A 20 20, 0, 0, 1,",O=20,A=20,"TB"===oxn?(h.x<d.x&&(f=n.type===Obn.MERGE&&t.id!==n.parents[0]?`M ${h.x} ${h.y} L ${h.x} ${d.y-O} ${g} ${h.x+A} ${d.y} L ${d.x} ${d.y}`:`M ${h.x} ${h.y} L ${d.x-O} ${h.y} ${m} ${d.x} ${h.y+A} L ${d.x} ${d.y}`),h.x>d.x&&(g="A 20 20, 0, 0, 0,",m="A 20 20, 0, 0, 1,",O=20,A=20,f=n.type===Obn.MERGE&&t.id!==n.parents[0]?`M ${h.x} ${h.y} L ${h.x} ${d.y-O} ${m} ${h.x-A} ${d.y} L ${d.x} ${d.y}`:`M ${h.x} ${h.y} L ${d.x+O} ${h.y} ${g} ${d.x} ${h.y+A} L ${d.x} ${d.y}`),h.x===d.x&&(f=`M ${h.x} ${h.y} L ${d.x} ${d.y}`)):"BT"===oxn?(h.x<d.x&&(f=n.type===Obn.MERGE&&t.id!==n.parents[0]?`M ${h.x} ${h.y} L ${h.x} ${d.y+O} ${m} ${h.x+A} ${d.y} L ${d.x} ${d.y}`:`M ${h.x} ${h.y} L ${d.x-O} ${h.y} ${g} ${d.x} ${h.y-A} L ${d.x} ${d.y}`),h.x>d.x&&(g="A 20 20, 0, 0, 0,",m="A 20 20, 0, 0, 1,",O=20,A=20,f=n.type===Obn.MERGE&&t.id!==n.parents[0]?`M ${h.x} ${h.y} L ${h.x} ${d.y+O} ${g} ${h.x-A} ${d.y} L ${d.x} ${d.y}`:`M ${h.x} ${h.y} L ${d.x+O} ${h.y} ${m} ${d.x} ${h.y-A} L ${d.x} ${d.y}`),h.x===d.x&&(f=`M ${h.x} ${h.y} L ${d.x} ${d.y}`)):(h.y<d.y&&(f=n.type===Obn.MERGE&&t.id!==n.parents[0]?`M ${h.x} ${h.y} L ${d.x-O} ${h.y} ${m} ${d.x} ${h.y+A} L ${d.x} ${d.y}`:`M ${h.x} ${h.y} L ${h.x} ${d.y-O} ${g} ${h.x+A} ${d.y} L ${d.x} ${d.y}`),h.y>d.y&&(f=n.type===Obn.MERGE&&t.id!==n.parents[0]?`M ${h.x} ${h.y} L ${d.x-O} ${h.y} ${g} ${d.x} ${h.y-A} L ${d.x} ${d.y}`:`M ${h.x} ${h.y} L ${h.x} ${d.y+O} ${m} ${h.x+A} ${d.y} L ${d.x} ${d.y}`),h.y===d.y&&(f=`M ${h.x} ${h.y} L ${d.x} ${d.y}`));if(void 0===f)throw new Error("Line definition not found");e.append("path").attr("d",f).attr("class","arrow arrow"+Jbn(y,8,u))},"drawArrow"),Sxn=hRe((e,t)=>{const n=e.append("g").attr("class","commit-arrows");[...t.keys()].forEach(e=>{const r=t.get(e);r.parents&&r.parents.length>0&&r.parents.forEach(e=>{kxn(n,t.get(e),r,t)})})},"drawArrows"),Txn=hRe((e,t,n,r)=>{const{look:i,theme:o,themeVariables:a}=JIe(),{dropShadow:s,THEME_COLOR_LIMIT:l}=a,c=Gbn.has(o??""),u=Hbn.has(o??""),h=e.append("g");t.forEach((e,t)=>{var o;const a=Jbn(t,c?l:8,u),d=null==(o=exn.get(e.name))?void 0:o.pos;if(void 0===d)throw new Error(`Position not found for branch ${e.name}`);const p="TB"===oxn||"BT"===oxn?d:c?d+6+1:d-2,f=h.append("line");f.attr("x1",0),f.attr("y1",p),f.attr("x2",ixn),f.attr("y2",p),f.attr("class","branch branch"+a),"TB"===oxn?(f.attr("y1",30),f.attr("x1",d),f.attr("y2",ixn),f.attr("x2",d)):"BT"===oxn&&(f.attr("y1",ixn),f.attr("x1",d),f.attr("y2",30),f.attr("x2",d)),rxn.push(p);const g=e.name,m=sxn(g),O=h.insert("rect"),A=h.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+a);A.node().appendChild(m);const y=m.getBBox(),v=c?0:4,b=c?16:0,x=c?12:0;"neo"===i&&O.attr("data-look","neo"),O.attr("class","branchLabelBkg label"+a).attr("style","neo"===i?`filter:${c?`url(#${r}-drop-shadow)`:s}`:"").attr("rx",v).attr("ry",v).attr("x",-y.width-4-(!0===n.rotateCommitLabel?30:0)).attr("y",-y.height/2+10).attr("width",y.width+18+b).attr("height",y.height+4+x),A.attr("transform","translate("+(-y.width-14-(!0===n.rotateCommitLabel?30:0)+b/2)+", "+(p-y.height/2-2)+")"),"TB"===oxn?(O.attr("x",d-y.width/2-10).attr("y",0),A.attr("transform","translate("+(d-y.width/2-5)+", 0)"),c&&(O.attr("transform",`translate(${-b/2-3}, ${-x-10})`),A.attr("transform","translate("+(d-y.width/2-5)+", "+(2*-x+7)+")"))):"BT"===oxn?(O.attr("x",d-y.width/2-10).attr("y",ixn),A.attr("transform","translate("+(d-y.width/2-5)+", "+ixn+")"),c&&(O.attr("transform",`translate(${-b/2-3}, ${x+10})`),A.attr("transform","translate("+(d-y.width/2-5)+", "+(ixn+2*x+4)+")"))):O.attr("transform","translate(-19, "+(p-12-x/2)+")")})},"drawBranches"),$xn=hRe(function(e,t,n,r,i){return exn.set(e,{pos:t,index:n}),t+=50+(i?40:0)+("TB"===oxn||"BT"===oxn?r.width/2:0)},"setBranchPosition"),_xn={draw:hRe(function(e,t,n,r){axn(),ORe.debug("in gitgraph renderer",e+"\n","id:",t,n);const i=r.db;if(!i.getConfig)return void ORe.error("getConfig method is not available on db");const o=i.getConfig(),a=o.rotateCommitLabel??!1;nxn=i.getCommits();const s=i.getBranchesAsObjArray();oxn=i.getDirection();const l=GDe(`[id="${t}"]`),{look:c,theme:u,themeVariables:h}=JIe(),{useGradient:d,gradientStart:p,gradientStop:f,filterColor:g}=h;if(d){const e=l.append("defs").append("linearGradient").attr("id",t+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");e.append("stop").attr("offset","0%").attr("stop-color",p).attr("stop-opacity",1),e.append("stop").attr("offset","100%").attr("stop-color",f).attr("stop-opacity",1)}"neo"===c&&Gbn.has(u??"")&&l.append("defs").append("filter").attr("id",t+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",g);let m=0;s.forEach((e,t)=>{var n;const r=sxn(e.name),i=l.append("g"),o=i.insert("g").attr("class","branchLabel"),s=o.insert("g").attr("class","label branch-label");null==(n=s.node())||n.appendChild(r);const c=r.getBBox();m=$xn(e.name,m,t,c,a),s.remove(),o.remove(),i.remove()}),bxn(l,nxn,!1,o),o.showBranches&&Txn(l,s,o,t),Sxn(l,nxn),bxn(l,nxn,!0,o),YWe.insertTitle(l,"gitTitleText",o.titleTopMargin??0,i.getDiagramTitle()),rLe(void 0,l,o.diagramPadding,o.useMaxWidth)},"draw")},Cxn=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),Qxn=new Set(["redux-color","redux-dark-color"]),Pxn=new Set(["neo","neo-dark"]),Exn=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),Rxn=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),Bxn=hRe(e=>{const{svgId:t}=e;let n="";if(e.useGradient&&t)for(let r=0;r<e.THEME_COLOR_LIMIT;r++)n+=`\n .label${r} { fill: ${e.mainBkg}; stroke: url(${t}-gradient); stroke-width: ${e.strokeWidth};}\n `;return n},"genGitGraphGradient"),Ixn=hRe(e=>{const t=NBe(),{theme:n,themeVariables:r}=t,{borderColorArray:i}=r,o=Cxn.has(n);if(Pxn.has(n)){let t="";for(let n=0;n<e.THEME_COLOR_LIMIT;n++)if(0===n)t+=`\n .branch-label${n} { fill: ${e.nodeBorder};}\n .commit${n} { stroke: ${e.nodeBorder}; }\n .commit-highlight${n} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }\n .arrow${n} { stroke: ${e.nodeBorder}; }\n .commit-bullets { fill: ${e.nodeBorder}; }\n .commit-cherry-pick${n} { stroke: ${e.nodeBorder}; }\n ${Bxn(e)}`;else{const r=n%8;t+=`\n .branch-label${n} { fill: ${e["gitBranchLabel"+r]}; }\n .commit${n} { stroke: ${e["git"+r]}; fill: ${e["git"+r]}; }\n .commit-highlight${n} { stroke: ${e["gitInv"+r]}; fill: ${e["gitInv"+r]}; }\n .arrow${n} { stroke: ${e["git"+r]}; }\n `}return t}if(Qxn.has(n)){let t="";for(let r=0;r<e.THEME_COLOR_LIMIT;r++)if(0===r)t+=`\n .branch-label${r} { fill: ${e.nodeBorder}; ${o?`font-weight:${e.noteFontWeight}`:""} }\n .commit${r} { stroke: ${e.nodeBorder}; }\n .commit-highlight${r} { stroke: ${e.nodeBorder}; fill: ${e.mainBkg}; }\n .label${r} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${o?`font-weight:${e.noteFontWeight}`:""} }\n .arrow${r} { stroke: ${e.nodeBorder}; }\n .commit-bullets { fill: ${e.nodeBorder}; }\n `;else{const a=r%i.length;t+=`\n .branch-label${r} { fill: ${e.nodeBorder}; ${o?`font-weight:${e.noteFontWeight}`:""} }\n .commit${r} { stroke: ${i[a]}; fill: ${i[a]}; }\n .commit-highlight${r} { stroke: ${i[a]}; fill: ${i[a]}; }\n .label${r} { fill: ${Exn.has(n)?e.mainBkg:i[a]}; stroke: ${i[a]}; stroke-width: ${e.strokeWidth}; }\n .arrow${r} { stroke: ${i[a]}; }\n `}return t}{let t="";for(let n=0;n<e.THEME_COLOR_LIMIT;n++)t+=`\n .branch-label${n} { fill: ${e.nodeBorder}; ${o?`font-weight:${e.noteFontWeight}`:""} }\n .commit${n} { stroke: ${e.nodeBorder}; }\n .commit-highlight${n} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }\n .label${n} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${o?`font-weight:${e.noteFontWeight}`:""}}\n .arrow${n} { stroke: ${e.nodeBorder}; }\n .commit-bullets { fill: ${e.nodeBorder}; }\n .commit-cherry-pick${n} { stroke: ${e.nodeBorder}; }\n `;return t}},"genColor"),Lxn=hRe(e=>`${Array.from({length:e.THEME_COLOR_LIMIT},(e,t)=>t).map(t=>{const n=t%8;return`\n .branch-label${t} { fill: ${e["gitBranchLabel"+n]}; }\n .commit${t} { stroke: ${e["git"+n]}; fill: ${e["git"+n]}; }\n .commit-highlight${t} { stroke: ${e["gitInv"+n]}; fill: ${e["gitInv"+n]}; }\n .label${t} { fill: ${e["git"+n]}; }\n .arrow${t} { stroke: ${e["git"+n]}; }\n `}).join("\n")}`,"normalTheme"),Dxn={parser:jbn,db:Nbn,renderer:_xn,styles:hRe(e=>{const t=NBe(),{theme:n}=t,r=Rxn.has(n);return`\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n \n ${r?Ixn(e):Lxn(e)}\n\n .branch {\n stroke-width: ${e.strokeWidth};\n stroke: ${e.commitLineColor??e.lineColor};\n stroke-dasharray: ${r?"4 2":"2"};\n }\n .commit-label { font-size: ${e.commitLabelFontSize}; fill: ${r?e.nodeBorder:e.commitLabelColor}; ${r?`font-weight:${e.noteFontWeight};`:""}}\n .commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${r?"transparent":e.commitLabelBackground}; opacity: ${r?"":.5}; }\n .tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};}\n .tag-label-bkg { fill: ${r?e.mainBkg:e.tagLabelBackground}; stroke: ${r?e.nodeBorder:e.tagLabelBorder}; ${r?`filter:${e.dropShadow}`:""} }\n .tag-hole { fill: ${e.textColor}; }\n\n .commit-merge {\n stroke: ${r?e.mainBkg:e.primaryColor};\n fill: ${r?e.mainBkg:e.primaryColor};\n }\n .commit-reverse {\n stroke: ${r?e.mainBkg:e.primaryColor};\n fill: ${r?e.mainBkg:e.primaryColor};\n stroke-width: ${r?e.strokeWidth:3};\n }\n .commit-highlight-outer {\n }\n .commit-highlight-inner {\n stroke: ${r?e.mainBkg:e.primaryColor};\n fill: ${r?e.mainBkg:e.primaryColor};\n }\n\n .arrow {\n /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */\n stroke-width: ${Cxn.has(n)?e.strokeWidth:8};\n stroke-linecap: round;\n fill: none\n }\n .gitTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.textColor};\n }\n`},"getStyles")};const Mxn=Object.freeze(Object.defineProperty({__proto__:null,diagram:Dxn},Symbol.toStringTag,{value:"Module"}));var Nxn,Xxn={exports:{}};var Fxn=(Nxn||(Nxn=1,Xxn.exports=function(){var e="day";return function(t,n,r){var i=function(t){return t.add(4-t.isoWeekday(),e)},o=n.prototype;o.isoWeekYear=function(){return i(this).year()},o.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),e);var n,o,a,s=i(this),l=(n=this.isoWeekYear(),a=4-(o=(this.$u?r.utc:r)().year(n).startOf("year")).isoWeekday(),o.isoWeekday()>4&&(a+=7),o.add(a,e));return s.diff(l,"week")+1},o.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var a=o.startOf;o.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return"isoweek"===n.p(e)?r?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):a.bind(this)(e,t)}}}()),Xxn.exports);const Uxn=rk(Fxn);var zxn,qxn={exports:{}};var Vxn=(zxn||(zxn=1,qxn.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,a={},s=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},h=function(e,t){var n,r=a.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[o,function(e){this.afternoon=h(e,!1)}],a:[o,function(e){this.afternoon=h(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,l("seconds")],ss:[i,l("seconds")],m:[i,l("minutes")],mm:[i,l("minutes")],H:[i,l("hours")],h:[i,l("hours")],HH:[i,l("hours")],hh:[i,l("hours")],D:[i,l("day")],DD:[r,l("day")],Do:[o,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[i,l("week")],ww:[r,l("week")],M:[i,l("month")],MM:[r,l("month")],MMM:[o,function(e){var t=u("months"),n=(u("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function p(n){var r,i;r=n,i=a&&a.formats;for(var o=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),s=o.length,l=0;l<s;l+=1){var c=o[l],u=d[c],h=u&&u[0],p=u&&u[1];o[l]=p?{regex:h,parser:p}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=o[n];if("string"==typeof i)r+=i.length;else{var a=i.regex,l=i.parser,c=e.slice(r),u=a.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,o=e.args;this.$u=r;var s=o[1];if("string"==typeof s){var l=!0===o[2],c=!0===o[3],u=l||c,h=o[2];c&&(h=o[2]),a=this.$locale(),!l&&h&&(a=n.Ls[h]),this.$d=function(e,t,n,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var i=p(t)(e),o=i.year,a=i.month,s=i.day,l=i.hours,c=i.minutes,u=i.seconds,h=i.milliseconds,d=i.zone,f=i.week,g=new Date,m=s||(o||a?1:g.getDate()),O=o||g.getFullYear(),A=0;o&&!a||(A=a>0?a-1:g.getMonth());var y,v=l||0,b=c||0,x=u||0,w=h||0;return d?new Date(Date.UTC(O,A,m,v,b,x,w+60*d.offset*1e3)):n?new Date(Date.UTC(O,A,m,v,b,x,w)):(y=new Date(O,A,m,v,b,x,w),f&&(y=r(y).week(f).toDate()),y)}catch(k){return new Date("")}}(t,s,r,n),this.init(),h&&!0!==h&&(this.$L=this.locale(h).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),a={}}else if(s instanceof Array)for(var d=s.length,f=1;f<=d;f+=1){o[1]=s[f-1];var g=n.apply(this,o);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}f===d&&(this.$d=new Date(""))}else i.call(this,e)}}}()),qxn.exports);const Wxn=rk(Vxn);var jxn,Yxn={exports:{}};var Zxn=(jxn||(jxn=1,Yxn.exports=function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),o=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return i.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return i.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return i.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}});return r.bind(this)(o)}}),Yxn.exports);const Gxn=rk(Zxn);var Hxn,Kxn={exports:{}};var Jxn=(Hxn||(Hxn=1,Kxn.exports=function(){var e,t,n=1e3,r=6e4,i=36e5,o=864e5,a=31536e6,s=2628e6,l=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,c=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,u={years:a,months:s,days:o,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},h=function(e){return e instanceof A},d=function(e,t,n){return new A(e,n,t.$l)},p=function(e){return t.p(e)+"s"},f=function(e){return e<0},g=function(e){return f(e)?Math.ceil(e):Math.floor(e)},m=function(e){return Math.abs(e)},O=function(e,t){return e?f(e)?{negative:!0,format:""+m(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},A=function(){function f(e,t,n){var r=this;if(this.$d={},this.$l=n,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return d(e*u[p(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach(function(t){r.$d[p(t)]=e[t]}),this.calMilliseconds(),this;if("string"==typeof e){var i=e.match(l);if(i){var o=i.slice(2).map(function(e){return null!=e?Number(e):0});return this.$d.years=o[0],this.$d.months=o[1],this.$d.weeks=o[2],this.$d.days=o[3],this.$d.hours=o[4],this.$d.minutes=o[5],this.$d.seconds=o[6],this.calMilliseconds(),this}}return this}var m=f.prototype;return m.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce(function(t,n){return t+(e.$d[n]||0)*u[n]},0)},m.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=g(e/a),e%=a,this.$d.months=g(e/s),e%=s,this.$d.days=g(e/o),e%=o,this.$d.hours=g(e/i),e%=i,this.$d.minutes=g(e/r),e%=r,this.$d.seconds=g(e/n),e%=n,this.$d.milliseconds=e},m.toISOString=function(){var e=O(this.$d.years,"Y"),t=O(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=O(n,"D"),i=O(this.$d.hours,"H"),o=O(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var s=O(a,"S"),l=e.negative||t.negative||r.negative||i.negative||o.negative||s.negative,c=i.format||o.format||s.format?"T":"",u=(l?"-":"")+"P"+e.format+t.format+r.format+c+i.format+o.format+s.format;return"P"===u||"-P"===u?"P0D":u},m.toJSON=function(){return this.toISOString()},m.format=function(e){var n=e||"YYYY-MM-DDTHH:mm:ss",r={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return n.replace(c,function(e,t){return t||String(r[e])})},m.as=function(e){return this.$ms/u[p(e)]},m.get=function(e){var t=this.$ms,n=p(e);return"milliseconds"===n?t%=1e3:t="weeks"===n?g(t/u[n]):this.$d[n],t||0},m.add=function(e,t,n){var r;return r=t?e*u[p(t)]:h(e)?e.$ms:d(e,this).$ms,d(this.$ms+r*(n?-1:1),this)},m.subtract=function(e,t){return this.add(e,t,!0)},m.locale=function(e){var t=this.clone();return t.$l=e,t},m.clone=function(){return d(this.$ms,this)},m.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},m.valueOf=function(){return this.asMilliseconds()},m.milliseconds=function(){return this.get("milliseconds")},m.asMilliseconds=function(){return this.as("milliseconds")},m.seconds=function(){return this.get("seconds")},m.asSeconds=function(){return this.as("seconds")},m.minutes=function(){return this.get("minutes")},m.asMinutes=function(){return this.as("minutes")},m.hours=function(){return this.get("hours")},m.asHours=function(){return this.as("hours")},m.days=function(){return this.get("days")},m.asDays=function(){return this.as("days")},m.weeks=function(){return this.get("weeks")},m.asWeeks=function(){return this.as("weeks")},m.months=function(){return this.get("months")},m.asMonths=function(){return this.as("months")},m.years=function(){return this.get("years")},m.asYears=function(){return this.as("years")},f}(),y=function(e,t,n){return e.add(t.years()*n,"y").add(t.months()*n,"M").add(t.days()*n,"d").add(t.hours()*n,"h").add(t.minutes()*n,"m").add(t.seconds()*n,"s").add(t.milliseconds()*n,"ms")};return function(n,r,i){e=i,t=i().$utils(),i.duration=function(e,t){var n=i.locale();return d(e,{$l:n},t)},i.isDuration=h;var o=r.prototype.add,a=r.prototype.subtract;r.prototype.add=function(e,t){return h(e)?y(this,e,1):o.bind(this)(e,t)},r.prototype.subtract=function(e,t){return h(e)?y(this,e,-1):a.bind(this)(e,t)}}}()),Kxn.exports);const ewn=rk(Jxn);var twn=function(){var e=hRe(function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},"o"),t=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],i=[1,28],o=[1,29],a=[1,30],s=[1,31],l=[1,32],c=[1,33],u=[1,34],h=[1,9],d=[1,10],p=[1,11],f=[1,12],g=[1,13],m=[1,14],O=[1,15],A=[1,16],y=[1,19],v=[1,20],b=[1,21],x=[1,22],w=[1,23],k=[1,25],S=[1,35],T={trace:hRe(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:hRe(function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 1:return o[s-1];case 2:case 6:case 7:this.$=[];break;case 3:o[s-1].push(o[s]),this.$=o[s-1];break;case 4:case 5:this.$=o[s];break;case 8:r.setWeekday("monday");break;case 9:r.setWeekday("tuesday");break;case 10:r.setWeekday("wednesday");break;case 11:r.setWeekday("thursday");break;case 12:r.setWeekday("friday");break;case 13:r.setWeekday("saturday");break;case 14:r.setWeekday("sunday");break;case 15:r.setWeekend("friday");break;case 16:r.setWeekend("saturday");break;case 17:r.setDateFormat(o[s].substr(11)),this.$=o[s].substr(11);break;case 18:r.enableInclusiveEndDates(),this.$=o[s].substr(18);break;case 19:r.TopAxis(),this.$=o[s].substr(8);break;case 20:r.setAxisFormat(o[s].substr(11)),this.$=o[s].substr(11);break;case 21:r.setTickInterval(o[s].substr(13)),this.$=o[s].substr(13);break;case 22:r.setExcludes(o[s].substr(9)),this.$=o[s].substr(9);break;case 23:r.setIncludes(o[s].substr(9)),this.$=o[s].substr(9);break;case 24:r.setTodayMarker(o[s].substr(12)),this.$=o[s].substr(12);break;case 27:r.setDiagramTitle(o[s].substr(6)),this.$=o[s].substr(6);break;case 28:this.$=o[s].trim(),r.setAccTitle(this.$);break;case 29:case 30:this.$=o[s].trim(),r.setAccDescription(this.$);break;case 31:r.addSection(o[s].substr(8)),this.$=o[s].substr(8);break;case 33:r.addTask(o[s-1],o[s]),this.$="task";break;case 34:this.$=o[s-1],r.setClickEvent(o[s-1],o[s],null);break;case 35:this.$=o[s-2],r.setClickEvent(o[s-2],o[s-1],o[s]);break;case 36:this.$=o[s-2],r.setClickEvent(o[s-2],o[s-1],null),r.setLink(o[s-2],o[s]);break;case 37:this.$=o[s-3],r.setClickEvent(o[s-3],o[s-2],o[s-1]),r.setLink(o[s-3],o[s]);break;case 38:this.$=o[s-2],r.setClickEvent(o[s-2],o[s],null),r.setLink(o[s-2],o[s-1]);break;case 39:this.$=o[s-3],r.setClickEvent(o[s-3],o[s-1],o[s]),r.setLink(o[s-3],o[s-2]);break;case 40:this.$=o[s-1],r.setLink(o[s-1],o[s]);break;case 41:case 47:this.$=o[s-1]+" "+o[s];break;case 42:case 43:case 45:this.$=o[s-2]+" "+o[s-1]+" "+o[s];break;case 44:case 46:this.$=o[s-3]+" "+o[s-2]+" "+o[s-1]+" "+o[s]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:o,16:a,17:s,18:l,19:18,20:c,21:u,22:h,23:d,24:p,25:f,26:g,27:m,28:O,29:A,30:y,31:v,33:b,35:x,36:w,37:24,38:k,40:S},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:o,16:a,17:s,18:l,19:18,20:c,21:u,22:h,23:d,24:p,25:f,26:g,27:m,28:O,29:A,30:y,31:v,33:b,35:x,36:w,37:24,38:k,40:S},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:hRe(function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},"parseError"),parse:hRe(function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),h=Object.create(this.lexer),d={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d.yy[p]=this.yy[p]);h.setInput(e,d.yy),d.yy.lexer=h,d.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var f=h.yylloc;o.push(f);var g=h.options&&h.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||h.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,hRe(function(e){n.length=n.length-2*e,i.length=i.length-e,o.length=o.length-e},"popStack"),hRe(m,"lex");for(var O,A,y,v,b,x,w,k,S={};;){if(A=n[n.length-1],this.defaultActions[A]?y=this.defaultActions[A]:(null==O&&(O=m()),y=a[A]&&a[A][O]),void 0===y||!y.length||!y[0]){var T="";for(b in k=[],a[A])this.terminals_[b]&&b>2&&k.push("'"+this.terminals_[b]+"'");T=h.showPosition?"Parse error on line "+(l+1)+":\n"+h.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[O]||O)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==O?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[O]||O,line:h.yylineno,loc:f,expected:k})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+O);switch(y[0]){case 1:n.push(O),i.push(h.yytext),o.push(h.yylloc),n.push(y[1]),O=null,c=h.yyleng,s=h.yytext,l=h.yylineno,f=h.yylloc;break;case 2:if(x=this.productions_[y[1]][1],S.$=i[i.length-x],S._$={first_line:o[o.length-(x||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(x||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(x||1)].range[0],o[o.length-1].range[1]]),void 0!==(v=this.performAction.apply(S,[s,c,l,d.yy,y[1],i,o].concat(u))))return v;x&&(n=n.slice(0,-1*x*2),i=i.slice(0,-1*x),o=o.slice(0,-1*x)),n.push(this.productions_[y[1]][0]),i.push(S.$),o.push(S._$),w=a[n[n.length-2]][n[n.length-1]],n.push(w);break;case 3:return!0}}return!0},"parse")},$=function(){var e={EOF:1,parseError:hRe(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:hRe(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:hRe(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:hRe(function(e){var t=e.length,n=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 r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:hRe(function(){return this._more=!0,this},"more"),reject:hRe(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:hRe(function(e){this.unput(this.match.slice(e))},"less"),pastInput:hRe(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:hRe(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:hRe(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:hRe(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.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],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},"test_match"),next:hRe(function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&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:hRe(function(){var e=this.next();return e||this.lex()},"lex"),begin:hRe(function(e){this.conditionStack.push(e)},"begin"),popState:hRe(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:hRe(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:hRe(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:hRe(function(e){this.begin(e)},"pushState"),stateStackSize:hRe(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:hRe(function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:case 15:case 18:case 21:case 24:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:case 9:case 10:case 12:case 13:break;case 11:return 10;case 14:this.begin("href");break;case 16:return 43;case 17:this.begin("callbackname");break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 22:return 42;case 23:this.begin("click");break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return e}();function _(){this.yy={}}return T.lexer=$,hRe(_,"Parser"),_.prototype=T,T.Parser=_,new _}();twn.parser=twn;var nwn=twn;gRe.extend(Uxn),gRe.extend(Wxn),gRe.extend(Gxn);var rwn,iwn,own={friday:5,saturday:6},awn="",swn="",lwn=void 0,cwn="",uwn=[],hwn=[],dwn=new Map,pwn=[],fwn=[],gwn="",mwn="",Own=["active","done","crit","milestone","vert"],Awn=[],ywn="",vwn=!1,bwn=!1,xwn="sunday",wwn="saturday",kwn=0,Swn=hRe(function(){pwn=[],fwn=[],gwn="",Awn=[],okn=0,rwn=void 0,iwn=void 0,ckn=[],awn="",swn="",mwn="",lwn=void 0,cwn="",uwn=[],hwn=[],vwn=!1,bwn=!1,kwn=0,dwn=new Map,ywn="",qIe(),xwn="sunday",wwn="saturday"},"clear"),Twn=hRe(function(e){ywn=e},"setDiagramId"),$wn=hRe(function(e){swn=e},"setAxisFormat"),_wn=hRe(function(){return swn},"getAxisFormat"),Cwn=hRe(function(e){lwn=e},"setTickInterval"),Qwn=hRe(function(){return lwn},"getTickInterval"),Pwn=hRe(function(e){cwn=e},"setTodayMarker"),Ewn=hRe(function(){return cwn},"getTodayMarker"),Rwn=hRe(function(e){awn=e},"setDateFormat"),Bwn=hRe(function(){vwn=!0},"enableInclusiveEndDates"),Iwn=hRe(function(){return vwn},"endDatesAreInclusive"),Lwn=hRe(function(){bwn=!0},"enableTopAxis"),Dwn=hRe(function(){return bwn},"topAxisEnabled"),Mwn=hRe(function(e){mwn=e},"setDisplayMode"),Nwn=hRe(function(){return mwn},"getDisplayMode"),Xwn=hRe(function(){return awn},"getDateFormat"),Fwn=hRe((e,t)=>{const n=t.toLowerCase().split(/[\s,]+/).filter(e=>""!==e);return[...new Set([...e,...n])]},"mergeTokens"),Uwn=hRe(function(e){uwn=Fwn(uwn,e)},"setIncludes"),zwn=hRe(function(){return uwn},"getIncludes"),qwn=hRe(function(e){hwn=Fwn(hwn,e)},"setExcludes"),Vwn=hRe(function(){return hwn},"getExcludes"),Wwn=hRe(function(){return dwn},"getLinks"),jwn=hRe(function(e){gwn=e,pwn.push(e)},"addSection"),Ywn=hRe(function(){return pwn},"getSections"),Zwn=hRe(function(){let e=fkn();let t=0;for(;!e&&t<10;)e=fkn(),t++;return fwn=ckn},"getTasks"),Gwn=hRe(function(e,t,n,r){const i=e.format(t.trim()),o=e.format("YYYY-MM-DD");return!r.includes(i)&&!r.includes(o)&&(!(!n.includes("weekends")||e.isoWeekday()!==own[wwn]&&e.isoWeekday()!==own[wwn]+1)||(!!n.includes(e.format("dddd").toLowerCase())||(n.includes(i)||n.includes(o))))},"isInvalidDate"),Hwn=hRe(function(e){xwn=e},"setWeekday"),Kwn=hRe(function(){return xwn},"getWeekday"),Jwn=hRe(function(e){wwn=e},"setWeekend"),ekn=hRe(function(e,t,n,r){if(!n.length||e.manualEndTime)return;let i,o;i=e.startTime instanceof Date?gRe(e.startTime):gRe(e.startTime,t,!0),i=i.add(1,"d"),o=e.endTime instanceof Date?gRe(e.endTime):gRe(e.endTime,t,!0);const[a,s]=tkn(i,o,t,n,r);e.endTime=a.toDate(),e.renderEndTime=s},"checkTaskDates"),tkn=hRe(function(e,t,n,r,i){let o=!1,a=null;const s=t.add(1e4,"d");for(;e<=t;){if(o||(a=t.toDate()),o=Gwn(e,n,r,i),o&&(t=t.add(1,"d"))>s)throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");e=e.add(1,"d")}return[t,a]},"fixTaskDates"),nkn=hRe(function(e,t,n){n=n.trim();if(hRe(e=>{const t=e.trim();return"x"===t||"X"===t},"isTimestampFormat")(t)&&/^\d+$/.test(n))return new Date(Number(n));const r=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(null!==r){let e=null;for(const n of r.groups.ids.split(" ")){let t=dkn(n);void 0!==t&&(!e||t.endTime>e.endTime)&&(e=t)}if(e)return e.endTime;const t=new Date;return t.setHours(0,0,0,0),t}let i=gRe(n,t.trim(),!0);if(i.isValid())return i.toDate();{ORe.debug("Invalid date:"+n),ORe.debug("With date format:"+t.trim());const e=new Date(n);if(void 0===e||isNaN(e.getTime())||e.getFullYear()<-1e4||e.getFullYear()>1e4)throw new Error("Invalid date:"+n);return e}},"getStartDate"),rkn=hRe(function(e){const t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());return null!==t?[Number.parseFloat(t[1]),t[2]]:[NaN,"ms"]},"parseDuration"),ikn=hRe(function(e,t,n,r=!1){n=n.trim();const i=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(null!==i){let e=null;for(const n of i.groups.ids.split(" ")){let t=dkn(n);void 0!==t&&(!e||t.startTime<e.startTime)&&(e=t)}if(e)return e.startTime;const t=new Date;return t.setHours(0,0,0,0),t}let o=gRe(n,t.trim(),!0);if(o.isValid())return r&&(o=o.add(1,"d")),o.toDate();let a=gRe(e);const[s,l]=rkn(n);if(!Number.isNaN(s)){const e=a.add(s,l);e.isValid()&&(a=e)}return a.toDate()},"getEndDate"),okn=0,akn=hRe(function(e){return void 0===e?"task"+(okn+=1):e},"parseId"),skn=hRe(function(e,t){let n;n=":"===t.substr(0,1)?t.substr(1,t.length):t;const r=n.split(","),i={};xkn(r,i,Own);for(let a=0;a<r.length;a++)r[a]=r[a].trim();let o="";switch(r.length){case 1:i.id=akn(),i.startTime=e.endTime,o=r[0];break;case 2:i.id=akn(),i.startTime=nkn(void 0,awn,r[0]),o=r[1];break;case 3:i.id=akn(r[0]),i.startTime=nkn(void 0,awn,r[1]),o=r[2]}return o&&(i.endTime=ikn(i.startTime,awn,o,vwn),i.manualEndTime=gRe(o,"YYYY-MM-DD",!0).isValid(),ekn(i,awn,hwn,uwn)),i},"compileData"),lkn=hRe(function(e,t){let n;n=":"===t.substr(0,1)?t.substr(1,t.length):t;const r=n.split(","),i={};xkn(r,i,Own);for(let o=0;o<r.length;o++)r[o]=r[o].trim();switch(r.length){case 1:i.id=akn(),i.startTime={type:"prevTaskEnd",id:e},i.endTime={data:r[0]};break;case 2:i.id=akn(),i.startTime={type:"getStartDate",startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=akn(r[0]),i.startTime={type:"getStartDate",startData:r[1]},i.endTime={data:r[2]}}return i},"parseData"),ckn=[],ukn={},hkn=hRe(function(e,t){const n={section:gwn,type:gwn,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:t},task:e,classes:[]},r=lkn(iwn,t);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=iwn,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,n.vert?n.order=-1:(n.order=kwn,kwn++);const i=ckn.push(n);iwn=n.id,ukn[n.id]=i-1},"addTask"),dkn=hRe(function(e){const t=ukn[e];return ckn[t]},"findTaskById"),pkn=hRe(function(e,t){const n={section:gwn,type:gwn,description:e,task:e,classes:[]},r=skn(rwn,t);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,rwn=n,fwn.push(n)},"addTaskOrg"),fkn=hRe(function(){const e=hRe(function(e){const t=ckn[e];let n="";switch(ckn[e].raw.startTime.type){case"prevTaskEnd":{const e=dkn(t.prevTaskId);t.startTime=e.endTime;break}case"getStartDate":n=nkn(void 0,awn,ckn[e].raw.startTime.startData),n&&(ckn[e].startTime=n)}return ckn[e].startTime&&(ckn[e].endTime=ikn(ckn[e].startTime,awn,ckn[e].raw.endTime.data,vwn),ckn[e].endTime&&(ckn[e].processed=!0,ckn[e].manualEndTime=gRe(ckn[e].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),ekn(ckn[e],awn,hwn,uwn))),ckn[e].processed},"compileTask");let t=!0;for(const[n,r]of ckn.entries())e(n),t=t&&r.processed;return t},"compileTasks"),gkn=hRe(function(e,t){let n=t;"loose"!==JIe().securityLevel&&(n=vVe.sanitizeUrl(t)),e.split(",").forEach(function(e){void 0!==dkn(e)&&(Akn(e,()=>{window.open(n,"_self")}),dwn.set(e,n))}),mkn(e,"clickable")},"setLink"),mkn=hRe(function(e,t){e.split(",").forEach(function(e){let n=dkn(e);void 0!==n&&n.classes.push(t)})},"setClass"),Okn=hRe(function(e,t,n){if("loose"!==JIe().securityLevel)return;if(void 0===t)return;let r=[];if("string"==typeof n){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<r.length;e++){let t=r[e].trim();t.startsWith('"')&&t.endsWith('"')&&(t=t.substr(1,t.length-2)),r[e]=t}}0===r.length&&r.push(e),void 0!==dkn(e)&&Akn(e,()=>{YWe.runFunc(t,...r)})},"setClickFun"),Akn=hRe(function(e,t){Awn.push(function(){const n=ywn?`${ywn}-${e}`:e,r=document.querySelector(`[id="${n}"]`);null!==r&&r.addEventListener("click",function(){t()})},function(){const n=ywn?`${ywn}-${e}`:e,r=document.querySelector(`[id="${n}-text"]`);null!==r&&r.addEventListener("click",function(){t()})})},"pushFun"),ykn=hRe(function(e,t,n){e.split(",").forEach(function(e){Okn(e,t,n)}),mkn(e,"clickable")},"setClickEvent"),vkn=hRe(function(e){Awn.forEach(function(t){t(e)})},"bindFunctions"),bkn={getConfig:hRe(()=>JIe().gantt,"getConfig"),clear:Swn,setDateFormat:Rwn,getDateFormat:Xwn,enableInclusiveEndDates:Bwn,endDatesAreInclusive:Iwn,enableTopAxis:Lwn,topAxisEnabled:Dwn,setAxisFormat:$wn,getAxisFormat:_wn,setTickInterval:Cwn,getTickInterval:Qwn,setTodayMarker:Pwn,getTodayMarker:Ewn,setAccTitle:VIe,getAccTitle:WIe,setDiagramTitle:ZIe,getDiagramTitle:GIe,setDiagramId:Twn,setDisplayMode:Mwn,getDisplayMode:Nwn,setAccDescription:jIe,getAccDescription:YIe,addSection:jwn,getSections:Ywn,getTasks:Zwn,addTask:hkn,findTaskById:dkn,addTaskOrg:pkn,setIncludes:Uwn,getIncludes:zwn,setExcludes:qwn,getExcludes:Vwn,setClickEvent:ykn,setLink:gkn,getLinks:Wwn,bindFunctions:vkn,parseDuration:rkn,isInvalidDate:Gwn,setWeekday:Hwn,getWeekday:Kwn,setWeekend:Jwn};function xkn(e,t,n){let r=!0;for(;r;)r=!1,n.forEach(function(n){const i=new RegExp("^\\s*"+n+"\\s*$");e[0].match(i)&&(t[n]=!0,e.shift(1),r=!0)})}hRe(xkn,"getTaskTags"),gRe.extend(ewn);var wkn,kkn=hRe(function(){ORe.debug("Something is calling, setConf, remove the call")},"setConf"),Skn={monday:_Fe,tuesday:CFe,wednesday:QFe,thursday:PFe,friday:EFe,saturday:RFe,sunday:$Fe},Tkn=hRe((e,t)=>{let n=[...e].map(()=>-1/0),r=[...e].sort((e,t)=>e.startTime-t.startTime||e.order-t.order),i=0;for(const o of r)for(let e=0;e<n.length;e++)if(o.startTime>=n[e]){n[e]=o.endTime,o.order=e+t,e>i&&(i=e);break}return i},"getMaxIntersections"),$kn=1e4,_kn=hRe(function(e,t,n,r){const i=JIe().gantt;r.db.setDiagramId(t);const o=JIe().securityLevel;let a;"sandbox"===o&&(a=GDe("#i"+t));const s=GDe("sandbox"===o?a.nodes()[0].contentDocument.body:"body"),l="sandbox"===o?a.nodes()[0].contentDocument:document,c=l.getElementById(t);void 0===(wkn=c.parentElement.offsetWidth)&&(wkn=1200),void 0!==i.useWidth&&(wkn=i.useWidth);const u=r.db.getTasks(),h=u.filter(e=>!e.vert);let d=[];for(const T of h)d.push(T.type);d=S(d);const p={};let f=2*i.topPadding;if("compact"===r.db.getDisplayMode()||"compact"===i.displayMode){const e={};for(const n of h)void 0===e[n.section]?e[n.section]=[n]:e[n.section].push(n);let t=0;for(const n of Object.keys(e)){const r=Tkn(e[n],t)+1;t+=r,f+=r*(i.barHeight+i.barGap),p[n]=r}}else{f+=h.length*(i.barHeight+i.barGap);for(const e of d)p[e]=h.filter(t=>t.type===e).length}c.setAttribute("viewBox","0 0 "+wkn+" "+f);const g=s.select(`[id="${t}"]`),m=Aze().domain([kLe(u,function(e){return e.startTime}),wLe(u,function(e){return e.endTime})]).rangeRound([0,wkn-i.leftPadding-i.rightPadding]);function O(e,t){const n=e.startTime,r=t.startTime;let i=0;return n>r?i=1:n<r&&(i=-1),i}function A(e,t,n){const o=i.barHeight,a=o+i.barGap,s=i.topPadding,l=i.leftPadding,c=cFe().domain([0,d.length]).range(["#00B9FA","#F95002"]).interpolate(ONe);v(a,s,l,t,n,e,r.db.getExcludes(),r.db.getIncludes()),x(l,s,t,n),y(e,a,s,l,o,c,t),w(a,s),k(l,s,t,n)}function y(e,n,o,a,s,l,c){e.sort((e,t)=>e.vert===t.vert?0:e.vert?1:-1);const u=e.filter(e=>!e.vert),h=[...new Set(u.map(e=>e.order))].map(e=>u.find(t=>t.order===e));g.append("g").selectAll("rect").data(h).enter().append("rect").attr("x",0).attr("y",function(e,t){return e.order*n+o-2}).attr("width",function(){return c-i.rightPadding/2}).attr("height",n).attr("class",function(e){for(const[t,n]of d.entries())if(e.type===n)return"section section"+t%i.numberSectionStyles;return"section section0"}).enter();const p=g.append("g").selectAll("rect").data(e).enter(),f=r.db.getLinks();p.append("rect").attr("id",function(e){return t+"-"+e.id}).attr("rx",3).attr("ry",3).attr("x",function(e){return e.milestone?m(e.startTime)+a+.5*(m(e.endTime)-m(e.startTime))-.5*s:m(e.startTime)+a}).attr("y",function(e,t){return t=e.order,e.vert?i.gridLineStartPadding:t*n+o}).attr("width",function(e){return e.milestone?s:e.vert?.08*s:m(e.renderEndTime||e.endTime)-m(e.startTime)}).attr("height",function(e){return e.vert?u.length*(i.barHeight+i.barGap)+2*i.barHeight:s}).attr("transform-origin",function(e,t){return t=e.order,(m(e.startTime)+a+.5*(m(e.endTime)-m(e.startTime))).toString()+"px "+(t*n+o+.5*s).toString()+"px"}).attr("class",function(e){let t="";e.classes.length>0&&(t=e.classes.join(" "));let n=0;for(const[o,a]of d.entries())e.type===a&&(n=o%i.numberSectionStyles);let r="";return e.active?e.crit?r+=" activeCrit":r=" active":e.done?r=e.crit?" doneCrit":" done":e.crit&&(r+=" crit"),0===r.length&&(r=" task"),e.milestone&&(r=" milestone "+r),e.vert&&(r=" vert "+r),r+=n,r+=" "+t,"task"+r}),p.append("text").attr("id",function(e){return t+"-"+e.id+"-text"}).text(function(e){return e.task}).attr("font-size",i.fontSize).attr("x",function(e){let t=m(e.startTime),n=m(e.renderEndTime||e.endTime);if(e.milestone&&(t+=.5*(m(e.endTime)-m(e.startTime))-.5*s,n=t+s),e.vert)return m(e.startTime)+a;const r=this.getBBox().width;return r>n-t?n+r+1.5*i.leftPadding>c?t+a-5:n+a+5:(n-t)/2+t+a}).attr("y",function(e,t){return e.vert?i.gridLineStartPadding+u.length*(i.barHeight+i.barGap)+60:e.order*n+i.barHeight/2+(i.fontSize/2-2)+o}).attr("text-height",s).attr("class",function(e){const t=m(e.startTime);let n=m(e.endTime);e.milestone&&(n=t+s);const r=this.getBBox().width;let o="";e.classes.length>0&&(o=e.classes.join(" "));let a=0;for(const[s,c]of d.entries())e.type===c&&(a=s%i.numberSectionStyles);let l="";return e.active&&(l=e.crit?"activeCritText"+a:"activeText"+a),e.done?l=e.crit?l+" doneCritText"+a:l+" doneText"+a:e.crit&&(l=l+" critText"+a),e.milestone&&(l+=" milestoneText"),e.vert&&(l+=" vertText"),r>n-t?n+r+1.5*i.leftPadding>c?o+" taskTextOutsideLeft taskTextOutside"+a+" "+l:o+" taskTextOutsideRight taskTextOutside"+a+" "+l+" width-"+r:o+" taskText taskText"+a+" "+l+" width-"+r});if("sandbox"===JIe().securityLevel){let e;e=GDe("#i"+t);const n=e.nodes()[0].contentDocument;p.filter(function(e){return f.has(e.id)}).each(function(e){var r=n.querySelector("#"+CSS.escape(t+"-"+e.id)),i=n.querySelector("#"+CSS.escape(t+"-"+e.id+"-text"));const o=r.parentNode;var a=n.createElement("a");a.setAttribute("xlink:href",f.get(e.id)),a.setAttribute("target","_top"),o.appendChild(a),a.appendChild(r),a.appendChild(i)})}}function v(e,n,o,a,s,l,c,u){if(0===c.length&&0===u.length)return;let h,d;for(const{startTime:t,endTime:r}of l)(void 0===h||t<h)&&(h=t),(void 0===d||r>d)&&(d=r);if(!h||!d)return;if(gRe(d).diff(gRe(h),"year")>5)return void ORe.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");const p=r.db.getDateFormat(),f=[];let O=null,A=gRe(h);for(;A.valueOf()<=d;)r.db.isInvalidDate(A,p,c,u)?O?O.end=A:O={start:A,end:A}:O&&(f.push(O),O=null),A=A.add(1,"d");g.append("g").selectAll("rect").data(f).enter().append("rect").attr("id",e=>t+"-exclude-"+e.start.format("YYYY-MM-DD")).attr("x",e=>m(e.start.startOf("day"))+o).attr("y",i.gridLineStartPadding).attr("width",e=>m(e.end.endOf("day"))-m(e.start.startOf("day"))).attr("height",s-n-i.gridLineStartPadding).attr("transform-origin",function(t,n){return(m(t.start)+o+.5*(m(t.end)-m(t.start))).toString()+"px "+(n*e+.5*s).toString()+"px"}).attr("class","exclude-range")}function b(e,t,n,r){if(n<=0||e>t)return 1/0;const i=t-e,o=gRe.duration({[r??"day"]:n}).asMilliseconds();return o<=0?1/0:Math.ceil(i/o)}function x(e,t,n,o){const a=r.db.getDateFormat(),s=r.db.getAxisFormat();let l;l=s||("D"===a?"%d":i.axisFormat??"%Y-%m-%d");let c=(u=m,ELe(3,u)).tickSize(-o+t+i.gridLineStartPadding).tickFormat(HFe(l));var u;const h=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(null!==h){const e=parseInt(h[1],10);if(isNaN(e)||e<=0)ORe.warn(`Invalid tick interval value: "${h[1]}". Skipping custom tick interval.`);else{const t=h[2],n=r.db.getWeekday()||i.weekday,o=m.domain(),a=b(o[0],o[1],e,t);if(a>$kn)ORe.warn(`The tick interval "${e}${t}" would generate ${a} ticks, which exceeds the maximum allowed (10000). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(t){case"millisecond":c.ticks(pFe.every(e));break;case"second":c.ticks(bFe.every(e));break;case"minute":c.ticks(xFe.every(e));break;case"hour":c.ticks(wFe.every(e));break;case"day":c.ticks(kFe.every(e));break;case"week":c.ticks(Skn[n].every(e));break;case"month":c.ticks(UFe.every(e))}}}if(g.append("g").attr("class","grid").attr("transform","translate("+e+", "+(o-50)+")").call(c).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||i.topAxis){let n=function(e){return ELe(1,e)}(m).tickSize(-o+t+i.gridLineStartPadding).tickFormat(HFe(l));if(null!==h){const e=parseInt(h[1],10);if(isNaN(e)||e<=0)ORe.warn(`Invalid tick interval value: "${h[1]}". Skipping custom tick interval.`);else{const t=h[2],o=r.db.getWeekday()||i.weekday,a=m.domain();if(b(a[0],a[1],e,t)<=$kn)switch(t){case"millisecond":n.ticks(pFe.every(e));break;case"second":n.ticks(bFe.every(e));break;case"minute":n.ticks(xFe.every(e));break;case"hour":n.ticks(wFe.every(e));break;case"day":n.ticks(kFe.every(e));break;case"week":n.ticks(Skn[o].every(e));break;case"month":n.ticks(UFe.every(e))}}}g.append("g").attr("class","grid").attr("transform","translate("+e+", "+t+")").call(n).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function w(e,t){let n=0;const r=Object.keys(p).map(e=>[e,p[e]]);g.append("g").selectAll("text").data(r).enter().append(function(e){const t=e[0].split(CIe.lineBreakRegex),n=-(t.length-1)/2,r=l.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("dy",n+"em");for(const[i,o]of t.entries()){const e=l.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttribute("alignment-baseline","central"),e.setAttribute("x","10"),i>0&&e.setAttribute("dy","1em"),e.textContent=o,r.appendChild(e)}return r}).attr("x",10).attr("y",function(i,o){if(!(o>0))return i[1]*e/2+t;for(let a=0;a<o;a++)return n+=r[o-1][1],i[1]*e/2+n*e+t}).attr("font-size",i.sectionFontSize).attr("class",function(e){for(const[t,n]of d.entries())if(e[0]===n)return"sectionTitle sectionTitle"+t%i.numberSectionStyles;return"sectionTitle"})}function k(e,t,n,o){const a=r.db.getTodayMarker();if("off"===a)return;const s=g.append("g").attr("class","today"),l=new Date,c=s.append("line");c.attr("x1",m(l)+e).attr("x2",m(l)+e).attr("y1",i.titleTopMargin).attr("y2",o-i.titleTopMargin).attr("class","today"),""!==a&&c.attr("style",a.replace(/,/g,";"))}function S(e){const t={},n=[];for(let r=0,i=e.length;r<i;++r)Object.prototype.hasOwnProperty.call(t,e[r])||(t[e[r]]=!0,n.push(e[r]));return n}hRe(O,"taskCompare"),u.sort(O),A(u,wkn,f),EIe(g,f,wkn,i.useMaxWidth),g.append("text").text(r.db.getDiagramTitle()).attr("x",wkn/2).attr("y",i.titleTopMargin).attr("class","titleText"),hRe(A,"makeGantt"),hRe(y,"drawRects"),hRe(v,"drawExcludeDays"),hRe(b,"getEstimatedTickCount"),hRe(x,"makeGrid"),hRe(w,"vertLabels"),hRe(k,"drawToday"),hRe(S,"checkUnique")},"draw"),Ckn={parser:nwn,db:bkn,renderer:{setConf:kkn,draw:_kn},styles:hRe(e=>`\n .mermaid-main-font {\n font-family: ${e.fontFamily};\n }\n\n .exclude-range {\n fill: ${e.excludeBkgColor};\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ${e.sectionBkgColor};\n }\n\n .section2 {\n fill: ${e.sectionBkgColor2};\n }\n\n .section1,\n .section3 {\n fill: ${e.altSectionBkgColor};\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ${e.titleColor};\n }\n\n .sectionTitle1 {\n fill: ${e.titleColor};\n }\n\n .sectionTitle2 {\n fill: ${e.titleColor};\n }\n\n .sectionTitle3 {\n fill: ${e.titleColor};\n }\n\n .sectionTitle {\n text-anchor: start;\n font-family: ${e.fontFamily};\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ${e.gridColor};\n opacity: 0.8;\n shape-rendering: crispEdges;\n }\n\n .grid .tick text {\n font-family: ${e.fontFamily};\n fill: ${e.textColor};\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ${e.todayLineColor};\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: ${e.fontFamily};\n }\n\n .taskTextOutsideRight {\n fill: ${e.taskTextDarkColor};\n text-anchor: start;\n font-family: ${e.fontFamily};\n }\n\n .taskTextOutsideLeft {\n fill: ${e.taskTextDarkColor};\n text-anchor: end;\n }\n\n\n /* Special case clickable */\n\n .task.clickable {\n cursor: pointer;\n }\n\n .taskText.clickable {\n cursor: pointer;\n fill: ${e.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ${e.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ${e.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ${e.taskTextColor};\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ${e.taskBkgColor};\n stroke: ${e.taskBorderColor};\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ${e.taskTextOutsideColor};\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ${e.taskTextOutsideColor};\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ${e.activeTaskBkgColor};\n stroke: ${e.activeTaskBorderColor};\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ${e.taskTextDarkColor} !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ${e.doneTaskBorderColor};\n fill: ${e.doneTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ${e.taskTextDarkColor} !important;\n }\n\n /* Done task text displayed outside the bar sits against the diagram background,\n not against the done-task bar, so it must use the outside/contrast color. */\n .doneText0.taskTextOutsideLeft,\n .doneText0.taskTextOutsideRight,\n .doneText1.taskTextOutsideLeft,\n .doneText1.taskTextOutsideRight,\n .doneText2.taskTextOutsideLeft,\n .doneText2.taskTextOutsideRight,\n .doneText3.taskTextOutsideLeft,\n .doneText3.taskTextOutsideRight {\n fill: ${e.taskTextOutsideColor} !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ${e.critBorderColor};\n fill: ${e.critBkgColor};\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ${e.critBorderColor};\n fill: ${e.activeTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ${e.critBorderColor};\n fill: ${e.doneTaskBkgColor};\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ${e.taskTextDarkColor} !important;\n }\n\n /* Done-crit task text outside the bar — same reasoning as doneText above. */\n .doneCritText0.taskTextOutsideLeft,\n .doneCritText0.taskTextOutsideRight,\n .doneCritText1.taskTextOutsideLeft,\n .doneCritText1.taskTextOutsideRight,\n .doneCritText2.taskTextOutsideLeft,\n .doneCritText2.taskTextOutsideRight,\n .doneCritText3.taskTextOutsideLeft,\n .doneCritText3.taskTextOutsideRight {\n fill: ${e.taskTextOutsideColor} !important;\n }\n\n .vert {\n stroke: ${e.vertLineColor};\n }\n\n .vertText {\n font-size: 15px;\n text-anchor: middle;\n fill: ${e.vertLineColor} !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ${e.taskTextDarkColor} !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.titleColor||e.textColor};\n font-family: ${e.fontFamily};\n }\n`,"getStyles")};const Qkn=Object.freeze(Object.defineProperty({__proto__:null,diagram:Ckn},Symbol.toStringTag,{value:"Module"}));var Pkn="11.17.2",Ekn={parser:{parse:hRe(async e=>{const t=await gbn("info",e);ORe.debug(t)},"parse")},db:{getVersion:hRe(()=>Pkn,"getVersion")},renderer:{draw:hRe((e,t,n)=>{ORe.debug("rendering info diagram\n"+e);const r=Mqe(t);EIe(r,100,400,!0);r.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${n}`)},"draw")}};const Rkn=Object.freeze(Object.defineProperty({__proto__:null,diagram:Ekn},Symbol.toStringTag,{value:"Module"}));var Bkn=wBe.pie,Ikn={sections:new Map,showData:!1},Lkn=Ikn.sections,Dkn=Ikn.showData,Mkn=structuredClone(Bkn),Nkn={getConfig:hRe(()=>structuredClone(Mkn),"getConfig"),clear:hRe(()=>{Lkn=new Map,Dkn=Ikn.showData,qIe()},"clear"),setDiagramTitle:ZIe,getDiagramTitle:GIe,setAccTitle:VIe,getAccTitle:WIe,setAccDescription:jIe,getAccDescription:YIe,addSection:hRe(({label:e,value:t})=>{if(t<0)throw new Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);Lkn.has(e)||(Lkn.set(e,t),ORe.debug(`added new section: ${e}, with value: ${t}`))},"addSection"),getSections:hRe(()=>Lkn,"getSections"),setShowData:hRe(e=>{Dkn=e},"setShowData"),getShowData:hRe(()=>Dkn,"getShowData")},Xkn=hRe((e,t)=>{qzt(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},"populateDb"),Fkn={parse:hRe(async e=>{const t=await gbn("pie",e);ORe.debug(t),Xkn(t,Nkn)},"parse")},Ukn=hRe(e=>`\n .pieCircle{\n stroke: ${e.pieStrokeColor};\n stroke-width : ${e.pieStrokeWidth};\n opacity : ${e.pieOpacity};\n }\n .pieCircle.highlighted{\n scale: 1.05;\n opacity: 1;\n }\n .pieCircle.highlightedOnHover:hover{\n transition-duration: 250ms;\n scale: 1.05;\n opacity: 1;\n }\n .pieOuterCircle{\n stroke: ${e.pieOuterStrokeColor};\n stroke-width: ${e.pieOuterStrokeWidth};\n fill: none;\n }\n .pieTitleText {\n text-anchor: middle;\n font-size: ${e.pieTitleTextSize};\n fill: ${e.pieTitleTextColor};\n font-family: ${e.fontFamily};\n }\n .slice {\n font-family: ${e.fontFamily};\n fill: ${e.pieSectionTextColor};\n font-size:${e.pieSectionTextSize};\n // fill: white;\n }\n .legend text {\n fill: ${e.pieLegendTextColor};\n font-family: ${e.fontFamily};\n font-size: ${e.pieLegendTextSize};\n }\n`,"getStyles"),zkn=hRe(e=>{const t=[...e.values()].reduce((e,t)=>e+t,0),n=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>e.value/t*100>=1),r=function(){var e=Yze,t=jze,n=null,r=vze(0),i=vze(Pze),o=vze(0);function a(a){var s,l,c,u,h,d=(a=Fze(a)).length,p=0,f=new Array(d),g=new Array(d),m=+r.apply(this,arguments),O=Math.min(Pze,Math.max(-Pze,i.apply(this,arguments)-m)),A=Math.min(Math.abs(O)/d,o.apply(this,arguments)),y=A*(O<0?-1:1);for(s=0;s<d;++s)(h=g[f[s]=s]=+e(a[s],s,a))>0&&(p+=h);for(null!=t?f.sort(function(e,n){return t(g[e],g[n])}):null!=n&&f.sort(function(e,t){return n(a[e],a[t])}),s=0,c=p?(O-d*y)/p:0;s<d;++s,m=u)l=f[s],u=m+((h=g[l])>0?h*c:0)+y,g[l]={data:a[l],index:s,value:h,startAngle:m,endAngle:u,padAngle:A};return g}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:vze(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:vze(+e),a):r},a.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:vze(+e),a):i},a.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:vze(+e),a):o},a}().value(e=>e.value).sort(null);return r(n)},"createPieArcs"),qkn={parser:Fkn,db:Nkn,renderer:{draw:hRe((e,t,n,r)=>{var i;ORe.debug("rendering pie chart\n"+e);const o=r.db,a=JIe(),s=jWe(o.getConfig(),a.pie),l=18,c=450,u=c,h=Mqe(t),d=h.append("g");d.attr("transform","translate(225,225)");const{themeVariables:p}=a;let[f]=WWe(p.pieOuterStrokeWidth);f??(f=2);const g=s.legendPosition,m=s.textPosition,O=s.donutHole>0&&s.donutHole<=.9?s.donutHole:0,A=Math.min(u,c)/2-40,y=Xze().innerRadius(O*A).outerRadius(A),v=Xze().innerRadius(A*m).outerRadius(A*m),b=d.append("g");b.append("circle").attr("cx",0).attr("cy",0).attr("r",A+f/2).attr("class","pieOuterCircle");const x=o.getSections(),w=zkn(x),k=[p.pie1,p.pie2,p.pie3,p.pie4,p.pie5,p.pie6,p.pie7,p.pie8,p.pie9,p.pie10,p.pie11,p.pie12];let S=0;x.forEach(e=>{S+=e});const T=w.filter(e=>"0"!==(e.data.value/S*100).toFixed(0)),$=GXe(k).domain([...x.keys()]);b.selectAll("mySlices").data(T).enter().append("path").attr("d",y).attr("fill",e=>$(e.data.label)).attr("class",e=>{let t="pieCircle";return"hover"===s.highlightSlice?t+=" highlightedOnHover":s.highlightSlice===e.data.label&&(t+=" highlighted"),t}),b.selectAll("mySlices").data(T).enter().append("text").text(e=>(e.data.value/S*100).toFixed(0)+"%").attr("transform",e=>"translate("+v.centroid(e)+")").style("text-anchor","middle").attr("class","slice");const _=d.append("text").text(o.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText"),C=[...x.entries()].map(([e,t])=>({label:e,value:t})),Q=d.selectAll(".legend").data(C).enter().append("g").attr("class","legend");Q.append("rect").attr("width",l).attr("height",l).style("fill",e=>$(e.label)).style("stroke",e=>$(e.label)),Q.append("text").attr("x",22).attr("y",14).text(e=>o.getShowData()?`${e.label} [${e.value}]`:e.label);const P=Math.max(...Q.selectAll("text").nodes().map(e=>(null==e?void 0:e.getBoundingClientRect().width)??0));let E=c,R=490;const B=22,I=C.length*B;switch(g){case"center":Q.attr("transform",(e,t)=>{const n=B*C.length/2;return"translate("+(-P/2-22)+","+(t*B-n)+")"});break;case"top":E+=I,Q.attr("transform",(e,t)=>`translate(${-P/2-22}, ${t*B-A})`),b.attr("transform",()=>`translate(0, ${I+B})`);break;case"bottom":E+=I,Q.attr("transform",(e,t)=>"translate("+(-P/2-22)+","+(t*B-(-A-B))+")");break;case"left":R+=22+P,Q.attr("transform",(e,t)=>{const n=B*C.length/2;return"translate("+(-A-22)+","+(t*B-n)+")"}),b.attr("transform",()=>`translate(${P+l+4}, 0)`);break;default:R+=22+P,Q.attr("transform",(e,t)=>{const n=B*C.length/2;return"translate(216,"+(t*B-n)+")"})}const L=(null==(i=_.node())?void 0:i.getBoundingClientRect().width)??0,D=225-L/2,M=225+L/2,N=Math.min(0,D),X=Math.max(R,M)-N;h.attr("viewBox",`${N} 0 ${X} ${E}`),EIe(h,E,X,s.useMaxWidth)},"draw")},styles:Ukn};const Vkn=Object.freeze(Object.defineProperty({__proto__:null,diagram:qkn},Symbol.toStringTag,{value:"Module"}));var Wkn=function(){var e=hRe(function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},"o"),t=[1,3],n=[1,4],r=[1,5],i=[1,6],o=[1,7],a=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],s=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],l=[55,56,57],c=[2,36],u=[1,37],h=[1,36],d=[1,38],p=[1,35],f=[1,43],g=[1,41],m=[1,45],O=[1,14],A=[1,23],y=[1,18],v=[1,19],b=[1,20],x=[1,21],w=[1,22],k=[1,24],S=[1,25],T=[1,26],$=[1,27],_=[1,28],C=[1,29],Q=[1,32],P=[1,33],E=[1,34],R=[1,39],B=[1,40],I=[1,42],L=[1,44],D=[1,63],M=[1,62],N=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],X=[1,66],F=[1,67],U=[1,68],z=[1,69],q=[1,70],V=[1,71],W=[1,72],j=[1,73],Y=[1,74],Z=[1,75],G=[1,76],H=[1,77],K=[4,5,6,7,8,9,10,11,12,13,14,15,18],J=[1,91],ee=[1,92],te=[1,93],ne=[1,100],re=[1,94],ie=[1,97],oe=[1,95],ae=[1,96],se=[1,98],le=[1,99],ce=[1,103],ue=[10,55,56,57],he=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],de={trace:hRe(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:hRe(function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 23:case 68:this.$=o[s];break;case 24:case 69:this.$=o[s-1]+""+o[s];break;case 26:this.$=o[s-1]+o[s];break;case 27:this.$=[o[s].trim()];break;case 28:o[s-2].push(o[s].trim()),this.$=o[s-2];break;case 29:this.$=o[s-4],r.addClass(o[s-2],o[s]);break;case 37:this.$=[];break;case 42:this.$=o[s].trim(),r.setDiagramTitle(this.$);break;case 43:this.$=o[s].trim(),r.setAccTitle(this.$);break;case 44:case 45:this.$=o[s].trim(),r.setAccDescription(this.$);break;case 46:r.addSection(o[s].substr(8)),this.$=o[s].substr(8);break;case 47:r.addPoint(o[s-3],"",o[s-1],o[s],[]);break;case 48:r.addPoint(o[s-4],o[s-3],o[s-1],o[s],[]);break;case 49:r.addPoint(o[s-4],"",o[s-2],o[s-1],o[s]);break;case 50:r.addPoint(o[s-5],o[s-4],o[s-2],o[s-1],o[s]);break;case 51:r.setXAxisLeftText(o[s-2]),r.setXAxisRightText(o[s]);break;case 52:o[s-1].text+=" ⟶ ",r.setXAxisLeftText(o[s-1]);break;case 53:r.setXAxisLeftText(o[s]);break;case 54:r.setYAxisBottomText(o[s-2]),r.setYAxisTopText(o[s]);break;case 55:o[s-1].text+=" ⟶ ",r.setYAxisBottomText(o[s-1]);break;case 56:r.setYAxisBottomText(o[s]);break;case 57:r.setQuadrant1Text(o[s]);break;case 58:r.setQuadrant2Text(o[s]);break;case 59:r.setQuadrant3Text(o[s]);break;case 60:r.setQuadrant4Text(o[s]);break;case 64:case 66:this.$={text:o[s],type:"text"};break;case 65:this.$={text:o[s-1].text+""+o[s],type:o[s-1].type};break;case 67:this.$={text:o[s],type:"markdown"}}},"anonymous"),table:[{18:t,26:1,27:2,28:n,55:r,56:i,57:o},{1:[3]},{18:t,26:8,27:2,28:n,55:r,56:i,57:o},{18:t,26:9,27:2,28:n,55:r,56:i,57:o},e(a,[2,33],{29:10}),e(s,[2,61]),e(s,[2,62]),e(s,[2,63]),{1:[2,30]},{1:[2,31]},e(l,c,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:u,5:h,10:d,12:p,13:f,14:g,15:m,18:O,25:A,35:y,37:v,39:b,41:x,42:w,48:k,50:S,51:T,52:$,53:_,54:C,60:Q,61:P,63:E,64:R,65:B,66:I,67:L}),e(a,[2,34]),{27:46,55:r,56:i,57:o},e(l,[2,37]),e(l,c,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:u,5:h,10:d,12:p,13:f,14:g,15:m,18:O,25:A,35:y,37:v,39:b,41:x,42:w,48:k,50:S,51:T,52:$,53:_,54:C,60:Q,61:P,63:E,64:R,65:B,66:I,67:L}),e(l,[2,39]),e(l,[2,40]),e(l,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},e(l,[2,45]),e(l,[2,46]),{18:[1,51]},{4:u,5:h,10:d,12:p,13:f,14:g,15:m,43:52,58:31,60:Q,61:P,63:E,64:R,65:B,66:I,67:L},{4:u,5:h,10:d,12:p,13:f,14:g,15:m,43:53,58:31,60:Q,61:P,63:E,64:R,65:B,66:I,67:L},{4:u,5:h,10:d,12:p,13:f,14:g,15:m,43:54,58:31,60:Q,61:P,63:E,64:R,65:B,66:I,67:L},{4:u,5:h,10:d,12:p,13:f,14:g,15:m,43:55,58:31,60:Q,61:P,63:E,64:R,65:B,66:I,67:L},{4:u,5:h,10:d,12:p,13:f,14:g,15:m,43:56,58:31,60:Q,61:P,63:E,64:R,65:B,66:I,67:L},{4:u,5:h,10:d,12:p,13:f,14:g,15:m,43:57,58:31,60:Q,61:P,63:E,64:R,65:B,66:I,67:L},{4:u,5:h,8:D,10:d,12:p,13:f,14:g,15:m,18:M,44:[1,58],47:[1,59],58:61,59:60,63:E,64:R,65:B,66:I,67:L},e(N,[2,64]),e(N,[2,66]),e(N,[2,67]),e(N,[2,70]),e(N,[2,71]),e(N,[2,72]),e(N,[2,73]),e(N,[2,74]),e(N,[2,75]),e(N,[2,76]),e(N,[2,77]),e(N,[2,78]),e(N,[2,79]),e(N,[2,80]),e(N,[2,81]),e(a,[2,35]),e(l,[2,38]),e(l,[2,42]),e(l,[2,43]),e(l,[2,44]),{3:65,4:X,5:F,6:U,7:z,8:q,9:V,10:W,11:j,12:Y,13:Z,14:G,15:H,21:64},e(l,[2,53],{59:60,58:61,4:u,5:h,8:D,10:d,12:p,13:f,14:g,15:m,18:M,49:[1,78],63:E,64:R,65:B,66:I,67:L}),e(l,[2,56],{59:60,58:61,4:u,5:h,8:D,10:d,12:p,13:f,14:g,15:m,18:M,49:[1,79],63:E,64:R,65:B,66:I,67:L}),e(l,[2,57],{59:60,58:61,4:u,5:h,8:D,10:d,12:p,13:f,14:g,15:m,18:M,63:E,64:R,65:B,66:I,67:L}),e(l,[2,58],{59:60,58:61,4:u,5:h,8:D,10:d,12:p,13:f,14:g,15:m,18:M,63:E,64:R,65:B,66:I,67:L}),e(l,[2,59],{59:60,58:61,4:u,5:h,8:D,10:d,12:p,13:f,14:g,15:m,18:M,63:E,64:R,65:B,66:I,67:L}),e(l,[2,60],{59:60,58:61,4:u,5:h,8:D,10:d,12:p,13:f,14:g,15:m,18:M,63:E,64:R,65:B,66:I,67:L}),{45:[1,80]},{44:[1,81]},e(N,[2,65]),e(N,[2,82]),e(N,[2,83]),e(N,[2,84]),{3:83,4:X,5:F,6:U,7:z,8:q,9:V,10:W,11:j,12:Y,13:Z,14:G,15:H,18:[1,82]},e(K,[2,23]),e(K,[2,1]),e(K,[2,2]),e(K,[2,3]),e(K,[2,4]),e(K,[2,5]),e(K,[2,6]),e(K,[2,7]),e(K,[2,8]),e(K,[2,9]),e(K,[2,10]),e(K,[2,11]),e(K,[2,12]),e(l,[2,52],{58:31,43:84,4:u,5:h,10:d,12:p,13:f,14:g,15:m,60:Q,61:P,63:E,64:R,65:B,66:I,67:L}),e(l,[2,55],{58:31,43:85,4:u,5:h,10:d,12:p,13:f,14:g,15:m,60:Q,61:P,63:E,64:R,65:B,66:I,67:L}),{46:[1,86]},{45:[1,87]},{4:J,5:ee,6:te,8:ne,11:re,13:ie,16:90,17:oe,18:ae,19:se,20:le,22:89,23:88},e(K,[2,24]),e(l,[2,51],{59:60,58:61,4:u,5:h,8:D,10:d,12:p,13:f,14:g,15:m,18:M,63:E,64:R,65:B,66:I,67:L}),e(l,[2,54],{59:60,58:61,4:u,5:h,8:D,10:d,12:p,13:f,14:g,15:m,18:M,63:E,64:R,65:B,66:I,67:L}),e(l,[2,47],{22:89,16:90,23:101,4:J,5:ee,6:te,8:ne,11:re,13:ie,17:oe,18:ae,19:se,20:le}),{46:[1,102]},e(l,[2,29],{10:ce}),e(ue,[2,27],{16:104,4:J,5:ee,6:te,8:ne,11:re,13:ie,17:oe,18:ae,19:se,20:le}),e(he,[2,25]),e(he,[2,13]),e(he,[2,14]),e(he,[2,15]),e(he,[2,16]),e(he,[2,17]),e(he,[2,18]),e(he,[2,19]),e(he,[2,20]),e(he,[2,21]),e(he,[2,22]),e(l,[2,49],{10:ce}),e(l,[2,48],{22:89,16:90,23:105,4:J,5:ee,6:te,8:ne,11:re,13:ie,17:oe,18:ae,19:se,20:le}),{4:J,5:ee,6:te,8:ne,11:re,13:ie,16:90,17:oe,18:ae,19:se,20:le,22:106},e(he,[2,26]),e(l,[2,50],{10:ce}),e(ue,[2,28],{16:104,4:J,5:ee,6:te,8:ne,11:re,13:ie,17:oe,18:ae,19:se,20:le})],defaultActions:{8:[2,30],9:[2,31]},parseError:hRe(function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},"parseError"),parse:hRe(function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),h=Object.create(this.lexer),d={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d.yy[p]=this.yy[p]);h.setInput(e,d.yy),d.yy.lexer=h,d.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var f=h.yylloc;o.push(f);var g=h.options&&h.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||h.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,hRe(function(e){n.length=n.length-2*e,i.length=i.length-e,o.length=o.length-e},"popStack"),hRe(m,"lex");for(var O,A,y,v,b,x,w,k,S={};;){if(A=n[n.length-1],this.defaultActions[A]?y=this.defaultActions[A]:(null==O&&(O=m()),y=a[A]&&a[A][O]),void 0===y||!y.length||!y[0]){var T="";for(b in k=[],a[A])this.terminals_[b]&&b>2&&k.push("'"+this.terminals_[b]+"'");T=h.showPosition?"Parse error on line "+(l+1)+":\n"+h.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[O]||O)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==O?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[O]||O,line:h.yylineno,loc:f,expected:k})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+O);switch(y[0]){case 1:n.push(O),i.push(h.yytext),o.push(h.yylloc),n.push(y[1]),O=null,c=h.yyleng,s=h.yytext,l=h.yylineno,f=h.yylloc;break;case 2:if(x=this.productions_[y[1]][1],S.$=i[i.length-x],S._$={first_line:o[o.length-(x||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(x||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(x||1)].range[0],o[o.length-1].range[1]]),void 0!==(v=this.performAction.apply(S,[s,c,l,d.yy,y[1],i,o].concat(u))))return v;x&&(n=n.slice(0,-1*x*2),i=i.slice(0,-1*x),o=o.slice(0,-1*x)),n.push(this.productions_[y[1]][0]),i.push(S.$),o.push(S._$),w=a[n[n.length-2]][n[n.length-1]],n.push(w);break;case 3:return!0}}return!0},"parse")},pe=function(){var e={EOF:1,parseError:hRe(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:hRe(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:hRe(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:hRe(function(e){var t=e.length,n=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 r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:hRe(function(){return this._more=!0,this},"more"),reject:hRe(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:hRe(function(e){this.unput(this.match.slice(e))},"less"),pastInput:hRe(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:hRe(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:hRe(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:hRe(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.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],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},"test_match"),next:hRe(function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&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:hRe(function(){var e=this.next();return e||this.lex()},"lex"),begin:hRe(function(e){this.conditionStack.push(e)},"begin"),popState:hRe(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:hRe(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:hRe(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:hRe(function(e){this.begin(e)},"pushState"),stateStackSize:hRe(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:hRe(function(e,t,n,r){switch(n){case 0:case 1:case 3:break;case 2:return 55;case 4:return this.begin("title"),35;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),37;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),39;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 23:case 25:case 31:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 24:this.begin("string");break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;case 29:return this.begin("point_start"),44;case 30:return this.begin("point_x"),45;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return e}();function fe(){this.yy={}}return de.lexer=pe,hRe(fe,"Parser"),fe.prototype=de,de.Parser=fe,new fe}();Wkn.parser=Wkn;var jkn=Wkn,Ykn=nBe(),Zkn=(xn=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var e,t,n,r,i,o,a,s,l,c,u,h,d,p,f,g,m,O;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:(null==(e=wBe.quadrantChart)?void 0:e.chartWidth)||500,chartWidth:(null==(t=wBe.quadrantChart)?void 0:t.chartHeight)||500,titlePadding:(null==(n=wBe.quadrantChart)?void 0:n.titlePadding)||10,titleFontSize:(null==(r=wBe.quadrantChart)?void 0:r.titleFontSize)||20,quadrantPadding:(null==(i=wBe.quadrantChart)?void 0:i.quadrantPadding)||5,xAxisLabelPadding:(null==(o=wBe.quadrantChart)?void 0:o.xAxisLabelPadding)||5,yAxisLabelPadding:(null==(a=wBe.quadrantChart)?void 0:a.yAxisLabelPadding)||5,xAxisLabelFontSize:(null==(s=wBe.quadrantChart)?void 0:s.xAxisLabelFontSize)||16,yAxisLabelFontSize:(null==(l=wBe.quadrantChart)?void 0:l.yAxisLabelFontSize)||16,quadrantLabelFontSize:(null==(c=wBe.quadrantChart)?void 0:c.quadrantLabelFontSize)||16,quadrantTextTopPadding:(null==(u=wBe.quadrantChart)?void 0:u.quadrantTextTopPadding)||5,pointTextPadding:(null==(h=wBe.quadrantChart)?void 0:h.pointTextPadding)||5,pointLabelFontSize:(null==(d=wBe.quadrantChart)?void 0:d.pointLabelFontSize)||12,pointRadius:(null==(p=wBe.quadrantChart)?void 0:p.pointRadius)||5,xAxisPosition:(null==(f=wBe.quadrantChart)?void 0:f.xAxisPosition)||"top",yAxisPosition:(null==(g=wBe.quadrantChart)?void 0:g.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:(null==(m=wBe.quadrantChart)?void 0:m.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:(null==(O=wBe.quadrantChart)?void 0:O.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:Ykn.quadrant1Fill,quadrant2Fill:Ykn.quadrant2Fill,quadrant3Fill:Ykn.quadrant3Fill,quadrant4Fill:Ykn.quadrant4Fill,quadrant1TextFill:Ykn.quadrant1TextFill,quadrant2TextFill:Ykn.quadrant2TextFill,quadrant3TextFill:Ykn.quadrant3TextFill,quadrant4TextFill:Ykn.quadrant4TextFill,quadrantPointFill:Ykn.quadrantPointFill,quadrantPointTextFill:Ykn.quadrantPointTextFill,quadrantXAxisTextFill:Ykn.quadrantXAxisTextFill,quadrantYAxisTextFill:Ykn.quadrantYAxisTextFill,quadrantTitleFill:Ykn.quadrantTitleFill,quadrantInternalBorderStrokeFill:Ykn.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:Ykn.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,ORe.info("clear called")}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,t){this.classes.set(e,t)}setConfig(e){ORe.trace("setConfig called with: ",e),this.config={...this.config,...e}}setThemeConfig(e){ORe.trace("setThemeConfig called with: ",e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,t,n,r){const i=2*this.config.xAxisLabelPadding+this.config.xAxisLabelFontSize,o={top:"top"===e&&t?i:0,bottom:"bottom"===e&&t?i:0},a=2*this.config.yAxisLabelPadding+this.config.yAxisLabelFontSize,s={left:"left"===this.config.yAxisPosition&&n?a:0,right:"right"===this.config.yAxisPosition&&n?a:0},l=this.config.titleFontSize+2*this.config.titlePadding,c={top:r?l:0},u=this.config.quadrantPadding+s.left,h=this.config.quadrantPadding+o.top+c.top,d=this.config.chartWidth-2*this.config.quadrantPadding-s.left-s.right,p=this.config.chartHeight-2*this.config.quadrantPadding-o.top-o.bottom-c.top;return{xAxisSpace:o,yAxisSpace:s,titleSpace:c,quadrantSpace:{quadrantLeft:u,quadrantTop:h,quadrantWidth:d,quadrantHalfWidth:d/2,quadrantHeight:p,quadrantHalfHeight:p/2}}}getAxisLabels(e,t,n,r){const{quadrantSpace:i,titleSpace:o}=r,{quadrantHalfHeight:a,quadrantHeight:s,quadrantLeft:l,quadrantHalfWidth:c,quadrantTop:u,quadrantWidth:h}=i,d=Boolean(this.data.xAxisRightText),p=Boolean(this.data.yAxisTopText),f=[];return this.data.xAxisLeftText&&t&&f.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:l+(d?c/2:0),y:"top"===e?this.config.xAxisLabelPadding+o.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:d?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&t&&f.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:l+c+(d?c/2:0),y:"top"===e?this.config.xAxisLabelPadding+o.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:d?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&n&&f.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+l+h+this.config.quadrantPadding,y:u+s-(p?a/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:p?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&n&&f.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+l+h+this.config.quadrantPadding,y:u+a-(p?a/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:p?"center":"left",horizontalPos:"top",rotation:-90}),f}getQuadrants(e){const{quadrantSpace:t}=e,{quadrantHalfHeight:n,quadrantLeft:r,quadrantHalfWidth:i,quadrantTop:o}=t,a=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:r+i,y:o,width:i,height:n,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:r,y:o,width:i,height:n,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:r,y:o+n,width:i,height:n,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:r+i,y:o+n,width:i,height:n,fill:this.themeConfig.quadrant4Fill}];for(const s of a)s.text.x=s.x+s.width/2,0===this.data.points.length?(s.text.y=s.y+s.height/2,s.text.horizontalPos="middle"):(s.text.y=s.y+this.config.quadrantTextTopPadding,s.text.horizontalPos="top");return a}getQuadrantPoints(e){const{quadrantSpace:t}=e,{quadrantHeight:n,quadrantLeft:r,quadrantTop:i,quadrantWidth:o}=t,a=cFe().domain([0,1]).range([r,o+r]),s=cFe().domain([0,1]).range([n+i,i]);return this.data.points.map(e=>{const t=this.classes.get(e.className);t&&(e={...t,...e});return{x:a(e.x),y:s(e.y),fill:e.color??this.themeConfig.quadrantPointFill,radius:e.radius??this.config.pointRadius,text:{text:e.text,fill:this.themeConfig.quadrantPointTextFill,x:a(e.x),y:s(e.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:e.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:e.strokeWidth??"0px"}})}getBorders(e){const t=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:n}=e,{quadrantHalfHeight:r,quadrantHeight:i,quadrantLeft:o,quadrantHalfWidth:a,quadrantTop:s,quadrantWidth:l}=n;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:o-t,y1:s,x2:o+l+t,y2:s},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:o+l,y1:s+t,x2:o+l,y2:s+i-t},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:o-t,y1:s+i,x2:o+l+t,y2:s+i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:o,y1:s+t,x2:o,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:o+a,y1:s+t,x2:o+a,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:o+t,y1:s+r,x2:o+l-t,y2:s+r}]}getTitle(e){if(e)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const e=this.config.showXAxis&&!(!this.data.xAxisLeftText&&!this.data.xAxisRightText),t=this.config.showYAxis&&!(!this.data.yAxisTopText&&!this.data.yAxisBottomText),n=this.config.showTitle&&!!this.data.titleText,r=this.data.points.length>0?"bottom":this.config.xAxisPosition,i=this.calculateSpace(r,e,t,n);return{points:this.getQuadrantPoints(i),quadrants:this.getQuadrants(i),axisLabels:this.getAxisLabels(r,e,t,i),borderLines:this.getBorders(i),title:this.getTitle(n)}}},hRe(xn,"QuadrantBuilder"),xn),Gkn=(wn=class extends Error{constructor(e,t,n){super(`value for ${e} ${t} is invalid, please use a valid ${n}`),this.name="InvalidStyleError"}},hRe(wn,"InvalidStyleError"),wn);function Hkn(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}function Kkn(e){return!/^\d+$/.test(e)}function Jkn(e){return!/^\d+px$/.test(e)}function eSn(e){return uIe(e.trim(),JIe())}hRe(Hkn,"validateHexCode"),hRe(Kkn,"validateNumber"),hRe(Jkn,"validateSizeInPixels"),hRe(eSn,"textSanitizer");var tSn=new Zkn;function nSn(e){tSn.setData({quadrant1Text:eSn(e.text)})}function rSn(e){tSn.setData({quadrant2Text:eSn(e.text)})}function iSn(e){tSn.setData({quadrant3Text:eSn(e.text)})}function oSn(e){tSn.setData({quadrant4Text:eSn(e.text)})}function aSn(e){tSn.setData({xAxisLeftText:eSn(e.text)})}function sSn(e){tSn.setData({xAxisRightText:eSn(e.text)})}function lSn(e){tSn.setData({yAxisTopText:eSn(e.text)})}function cSn(e){tSn.setData({yAxisBottomText:eSn(e.text)})}function uSn(e){const t={};for(const n of e){const[e,r]=n.trim().split(/\s*:\s*/);if("radius"===e){if(Kkn(r))throw new Gkn(e,r,"number");t.radius=parseInt(r)}else if("color"===e){if(Hkn(r))throw new Gkn(e,r,"hex code");t.color=r}else if("stroke-color"===e){if(Hkn(r))throw new Gkn(e,r,"hex code");t.strokeColor=r}else{if("stroke-width"!==e)throw new Error(`style named ${e} is not supported.`);if(Jkn(r))throw new Gkn(e,r,"number of pixels (eg. 10px)");t.strokeWidth=r}}return t}function hSn(e,t,n,r,i){const o=uSn(i);tSn.addPoints([{x:n,y:r,text:eSn(e.text),className:t,...o}])}function dSn(e,t){tSn.addClass(e,uSn(t))}function pSn(e){tSn.setConfig({chartWidth:e})}function fSn(e){tSn.setConfig({chartHeight:e})}function gSn(){const e=JIe(),{themeVariables:t,quadrantChart:n}=e;return n&&tSn.setConfig(n),tSn.setThemeConfig({quadrant1Fill:t.quadrant1Fill,quadrant2Fill:t.quadrant2Fill,quadrant3Fill:t.quadrant3Fill,quadrant4Fill:t.quadrant4Fill,quadrant1TextFill:t.quadrant1TextFill,quadrant2TextFill:t.quadrant2TextFill,quadrant3TextFill:t.quadrant3TextFill,quadrant4TextFill:t.quadrant4TextFill,quadrantPointFill:t.quadrantPointFill,quadrantPointTextFill:t.quadrantPointTextFill,quadrantXAxisTextFill:t.quadrantXAxisTextFill,quadrantYAxisTextFill:t.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:t.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:t.quadrantInternalBorderStrokeFill,quadrantTitleFill:t.quadrantTitleFill}),tSn.setData({titleText:GIe()}),tSn.build()}hRe(nSn,"setQuadrant1Text"),hRe(rSn,"setQuadrant2Text"),hRe(iSn,"setQuadrant3Text"),hRe(oSn,"setQuadrant4Text"),hRe(aSn,"setXAxisLeftText"),hRe(sSn,"setXAxisRightText"),hRe(lSn,"setYAxisTopText"),hRe(cSn,"setYAxisBottomText"),hRe(uSn,"parseStyles"),hRe(hSn,"addPoint"),hRe(dSn,"addClass"),hRe(pSn,"setWidth"),hRe(fSn,"setHeight"),hRe(gSn,"getQuadrantData");var mSn={parser:jkn,db:{setWidth:pSn,setHeight:fSn,setQuadrant1Text:nSn,setQuadrant2Text:rSn,setQuadrant3Text:iSn,setQuadrant4Text:oSn,setXAxisLeftText:aSn,setXAxisRightText:sSn,setYAxisTopText:lSn,setYAxisBottomText:cSn,parseStyles:uSn,addPoint:hSn,addClass:dSn,getQuadrantData:gSn,clear:hRe(function(){tSn.clear(),qIe()},"clear"),setAccTitle:VIe,getAccTitle:WIe,setDiagramTitle:ZIe,getDiagramTitle:GIe,getAccDescription:YIe,setAccDescription:jIe},renderer:{draw:hRe((e,t,n,r)=>{var i,o,a;function s(e){return"top"===e?"hanging":"middle"}function l(e){return"left"===e?"start":"middle"}function c(e){return`translate(${e.x}, ${e.y}) rotate(${e.rotation||0})`}hRe(s,"getDominantBaseLine"),hRe(l,"getTextAnchor"),hRe(c,"getTransformation");const u=JIe();ORe.debug("Rendering quadrant chart\n"+e);const h=u.securityLevel;let d;"sandbox"===h&&(d=GDe("#i"+t));const p=GDe("sandbox"===h?d.nodes()[0].contentDocument.body:"body").select(`[id="${t}"]`),f=p.append("g").attr("class","main"),g=(null==(i=u.quadrantChart)?void 0:i.chartWidth)??500,m=(null==(o=u.quadrantChart)?void 0:o.chartHeight)??500;EIe(p,m,g,(null==(a=u.quadrantChart)?void 0:a.useMaxWidth)??!0),p.attr("viewBox","0 0 "+g+" "+m),r.db.setHeight(m),r.db.setWidth(g);const O=r.db.getQuadrantData(),A=f.append("g").attr("class","quadrants"),y=f.append("g").attr("class","border"),v=f.append("g").attr("class","data-points"),b=f.append("g").attr("class","labels"),x=f.append("g").attr("class","title");O.title&&x.append("text").attr("x",0).attr("y",0).attr("fill",O.title.fill).attr("font-size",O.title.fontSize).attr("dominant-baseline",s(O.title.horizontalPos)).attr("text-anchor",l(O.title.verticalPos)).attr("transform",c(O.title)).text(O.title.text),O.borderLines&&y.selectAll("line").data(O.borderLines).enter().append("line").attr("x1",e=>e.x1).attr("y1",e=>e.y1).attr("x2",e=>e.x2).attr("y2",e=>e.y2).style("stroke",e=>e.strokeFill).style("stroke-width",e=>e.strokeWidth);const w=A.selectAll("g.quadrant").data(O.quadrants).enter().append("g").attr("class","quadrant");w.append("rect").attr("x",e=>e.x).attr("y",e=>e.y).attr("width",e=>e.width).attr("height",e=>e.height).attr("fill",e=>e.fill),w.append("text").attr("x",0).attr("y",0).attr("fill",e=>e.text.fill).attr("font-size",e=>e.text.fontSize).attr("dominant-baseline",e=>s(e.text.horizontalPos)).attr("text-anchor",e=>l(e.text.verticalPos)).attr("transform",e=>c(e.text)).text(e=>e.text.text);b.selectAll("g.label").data(O.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(e=>e.text).attr("fill",e=>e.fill).attr("font-size",e=>e.fontSize).attr("dominant-baseline",e=>s(e.horizontalPos)).attr("text-anchor",e=>l(e.verticalPos)).attr("transform",e=>c(e));const k=v.selectAll("g.data-point").data(O.points).enter().append("g").attr("class","data-point");k.append("circle").attr("cx",e=>e.x).attr("cy",e=>e.y).attr("r",e=>e.radius).attr("fill",e=>e.fill).attr("stroke",e=>e.strokeColor).attr("stroke-width",e=>e.strokeWidth),k.append("text").attr("x",0).attr("y",0).text(e=>e.text.text).attr("fill",e=>e.text.fill).attr("font-size",e=>e.text.fontSize).attr("dominant-baseline",e=>s(e.text.horizontalPos)).attr("text-anchor",e=>l(e.text.verticalPos)).attr("transform",e=>c(e.text))},"draw")},styles:hRe(()=>"","styles")};const OSn=Object.freeze(Object.defineProperty({__proto__:null,diagram:mSn},Symbol.toStringTag,{value:"Module"}));var ASn=function(){var e=hRe(function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},"o"),t=[1,10,12,14,16,18,19,21,23],n=[2,6],r=[1,3],i=[1,5],o=[1,6],a=[1,7],s=[1,5,10,12,14,16,18,19,21,23,36,37,38],l=[1,25],c=[1,26],u=[1,28],h=[1,29],d=[1,30],p=[1,31],f=[1,32],g=[1,33],m=[1,34],O=[1,35],A=[1,36],y=[1,37],v=[1,43],b=[1,42],x=[1,47],w=[1,50],k=[1,10,12,14,16,18,19,21,23,36,37,38],S=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],T=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],$=[1,65],_=[26,28],C={trace:hRe(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:hRe(function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 5:r.setOrientation(o[s]);break;case 9:r.setDiagramTitle(o[s].text.trim());break;case 12:r.setLineData({text:"",type:"text"},o[s]);break;case 13:r.setLineData(o[s-1],o[s]);break;case 14:r.setBarData({text:"",type:"text"},o[s]);break;case 15:r.setBarData(o[s-1],o[s]);break;case 16:this.$=o[s].trim(),r.setAccTitle(this.$);break;case 17:case 18:this.$=o[s].trim(),r.setAccDescription(this.$);break;case 19:case 29:this.$=o[s-1];break;case 20:case 30:this.$=[o[s-2],...o[s]];break;case 21:case 31:this.$=[o[s]];break;case 22:this.$={value:Number(o[s-1]),label:o[s]};break;case 23:this.$={value:Number(o[s]),label:""};break;case 24:r.setXAxisTitle(o[s]);break;case 25:r.setXAxisTitle(o[s-1]);break;case 26:r.setXAxisTitle({type:"text",text:""});break;case 27:r.setXAxisBand(o[s]);break;case 28:r.setXAxisRangeData(Number(o[s-2]),Number(o[s]));break;case 32:r.setYAxisTitle(o[s]);break;case 33:r.setYAxisTitle(o[s-1]);break;case 34:r.setYAxisTitle({type:"text",text:""});break;case 35:r.setYAxisRangeData(Number(o[s-2]),Number(o[s]));break;case 39:case 40:this.$={text:o[s],type:"text"};break;case 41:this.$={text:o[s],type:"markdown"};break;case 42:this.$=o[s];break;case 43:this.$=o[s-1]+""+o[s]}},"anonymous"),table:[e(t,n,{3:1,4:2,7:4,5:r,36:i,37:o,38:a}),{1:[3]},e(t,n,{4:2,7:4,3:8,5:r,36:i,37:o,38:a}),e(t,n,{4:2,7:4,6:9,3:10,5:r,8:[1,11],36:i,37:o,38:a}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(s,[2,36]),e(s,[2,37]),e(s,[2,38]),{1:[2,1]},e(t,n,{4:2,7:4,3:21,5:r,36:i,37:o,38:a}),{1:[2,3]},e(s,[2,5]),e(t,[2,7],{4:22,36:i,37:o,38:a}),{11:23,30:l,39:24,40:c,41:27,42:u,43:h,44:d,45:p,46:f,47:g,48:m,49:O,50:A,51:y},{11:39,13:38,24:v,29:b,30:l,31:40,32:41,39:24,40:c,41:27,42:u,43:h,44:d,45:p,46:f,47:g,48:m,49:O,50:A,51:y},{11:45,15:44,29:x,30:l,35:46,39:24,40:c,41:27,42:u,43:h,44:d,45:p,46:f,47:g,48:m,49:O,50:A,51:y},{11:49,17:48,24:w,30:l,39:24,40:c,41:27,42:u,43:h,44:d,45:p,46:f,47:g,48:m,49:O,50:A,51:y},{11:52,17:51,24:w,30:l,39:24,40:c,41:27,42:u,43:h,44:d,45:p,46:f,47:g,48:m,49:O,50:A,51:y},{20:[1,53]},{22:[1,54]},e(k,[2,18]),{1:[2,2]},e(k,[2,8]),e(k,[2,9]),e(S,[2,39],{41:55,42:u,43:h,44:d,45:p,46:f,47:g,48:m,49:O,50:A,51:y}),e(S,[2,40]),e(S,[2,41]),e(T,[2,42]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(T,[2,52]),e(T,[2,53]),e(k,[2,10]),e(k,[2,24],{32:41,31:56,24:v,29:b}),e(k,[2,26]),e(k,[2,27]),{33:[1,57]},{11:59,30:l,34:58,39:24,40:c,41:27,42:u,43:h,44:d,45:p,46:f,47:g,48:m,49:O,50:A,51:y},e(k,[2,11]),e(k,[2,32],{35:60,29:x}),e(k,[2,34]),{33:[1,61]},e(k,[2,12]),{17:62,24:w},{25:63,27:64,29:$},e(k,[2,14]),{17:66,24:w},e(k,[2,16]),e(k,[2,17]),e(T,[2,43]),e(k,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},e(k,[2,33]),{29:[1,70]},e(k,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},e(_,[2,23],{30:[1,73]}),e(k,[2,15]),e(k,[2,28]),e(k,[2,29]),{11:59,30:l,34:74,39:24,40:c,41:27,42:u,43:h,44:d,45:p,46:f,47:g,48:m,49:O,50:A,51:y},e(k,[2,35]),e(k,[2,19]),{25:75,27:64,29:$},e(_,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:hRe(function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},"parseError"),parse:hRe(function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),h=Object.create(this.lexer),d={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d.yy[p]=this.yy[p]);h.setInput(e,d.yy),d.yy.lexer=h,d.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var f=h.yylloc;o.push(f);var g=h.options&&h.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||h.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,hRe(function(e){n.length=n.length-2*e,i.length=i.length-e,o.length=o.length-e},"popStack"),hRe(m,"lex");for(var O,A,y,v,b,x,w,k,S={};;){if(A=n[n.length-1],this.defaultActions[A]?y=this.defaultActions[A]:(null==O&&(O=m()),y=a[A]&&a[A][O]),void 0===y||!y.length||!y[0]){var T="";for(b in k=[],a[A])this.terminals_[b]&&b>2&&k.push("'"+this.terminals_[b]+"'");T=h.showPosition?"Parse error on line "+(l+1)+":\n"+h.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[O]||O)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==O?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[O]||O,line:h.yylineno,loc:f,expected:k})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+O);switch(y[0]){case 1:n.push(O),i.push(h.yytext),o.push(h.yylloc),n.push(y[1]),O=null,c=h.yyleng,s=h.yytext,l=h.yylineno,f=h.yylloc;break;case 2:if(x=this.productions_[y[1]][1],S.$=i[i.length-x],S._$={first_line:o[o.length-(x||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(x||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(x||1)].range[0],o[o.length-1].range[1]]),void 0!==(v=this.performAction.apply(S,[s,c,l,d.yy,y[1],i,o].concat(u))))return v;x&&(n=n.slice(0,-1*x*2),i=i.slice(0,-1*x),o=o.slice(0,-1*x)),n.push(this.productions_[y[1]][0]),i.push(S.$),o.push(S._$),w=a[n[n.length-2]][n[n.length-1]],n.push(w);break;case 3:return!0}}return!0},"parse")},Q=function(){var e={EOF:1,parseError:hRe(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:hRe(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:hRe(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:hRe(function(e){var t=e.length,n=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 r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:hRe(function(){return this._more=!0,this},"more"),reject:hRe(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:hRe(function(e){this.unput(this.match.slice(e))},"less"),pastInput:hRe(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:hRe(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:hRe(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:hRe(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.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],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},"test_match"),next:hRe(function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&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:hRe(function(){var e=this.next();return e||this.lex()},"lex"),begin:hRe(function(e){this.conditionStack.push(e)},"begin"),popState:hRe(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:hRe(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:hRe(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:hRe(function(e){this.begin(e)},"pushState"),stateStackSize:hRe(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:hRe(function(e,t,n,r){switch(n){case 0:case 1:case 5:case 44:break;case 2:case 3:return this.popState(),36;case 4:return 36;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:case 26:case 28:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 33;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 29;case 25:return this.popState(),26;case 27:this.pushState("string");break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 44;case 33:return"COLON";case 34:return 45;case 35:return 28;case 36:return 46;case 37:return 47;case 38:return 49;case 39:return 51;case 40:return 48;case 41:return 42;case 42:return 50;case 43:return 43;case 45:return 37;case 46:return 38}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\})/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};return e}();function P(){this.yy={}}return C.lexer=Q,hRe(P,"Parser"),P.prototype=C,C.Parser=P,new P}();ASn.parser=ASn;var ySn=ASn;function vSn(e){return"bar"===e.type}function bSn(e){return"band"===e.type}function xSn(e){return"linear"===e.type}hRe(vSn,"isBarPlot"),hRe(bSn,"isBandAxisData"),hRe(xSn,"isLinearAxisData");var wSn=(kn=class{constructor(e){this.parentGroup=e}getMaxDimension(e,t){if(!this.parentGroup)return{width:e.reduce((e,t)=>Math.max(t.length,e),0)*t,height:t};const n={width:0,height:0},r=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",t);for(const i of e){const e=UYe(r,1,i),o=e?e.width:i.length*t,a=e?e.height:t;n.width=Math.max(n.width,o),n.height=Math.max(n.height,a)}return r.remove(),n}},hRe(kn,"TextDimensionCalculatorWithFont"),kn),kSn=(hRe(Sn=class{constructor(e,t,n,r){this.axisConfig=e,this.title=t,this.textDimensionCalculator=n,this.axisThemeConfig=r,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.normalizedLabelRotationInRad=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.normalizedLabelRotationInRad=this.axisConfig.labelRotation>=-90&&this.axisConfig.labelRotation<=90?this.axisConfig.labelRotation*Math.PI/180:0}setRange(e){this.range=e,"left"===this.axisPosition||"right"===this.axisPosition?this.boundingRect.height=e[1]-e[0]:this.boundingRect.width=e[1]-e[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(e){this.axisPosition=e,this.setRange(this.range)}getTickDistance(){const e=this.getRange();return Math.abs(e[0]-e[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(e=>e.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){.7*this.getTickDistance()>2*this.outerPadding&&(this.outerPadding=Math.floor(.7*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(e){let t=e.height;if(this.axisConfig.showAxisLine&&t>this.axisConfig.axisLineWidth&&(t-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const n=this.getLabelDimension(),r=.2*e.width;this.outerPadding=Math.min(n.width/2,r);let i=n.height;"bottom"===this.axisPosition&&0!==this.normalizedLabelRotationInRad&&(i=Math.max(i,Math.abs(Math.sin(this.normalizedLabelRotationInRad)*n.width)+Math.abs(Math.cos(this.normalizedLabelRotationInRad)*n.height))),i+=2*this.axisConfig.labelPadding,this.labelTextHeight=n.height,i<=t&&(t-=i,this.showLabel=!0)}if(this.axisConfig.showTick&&t>=this.axisConfig.tickLength&&(this.showTick=!0,t-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const e=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=e.height+2*this.axisConfig.titlePadding;this.titleTextHeight=e.height,n<=t&&(t-=n,this.showTitle=!0)}this.boundingRect.width=e.width,this.boundingRect.height=e.height-t}calculateSpaceIfDrawnVertical(e){let t=e.width;if(this.axisConfig.showAxisLine&&t>this.axisConfig.axisLineWidth&&(t-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const n=this.getLabelDimension(),r=.2*e.height;this.outerPadding=Math.min(n.height/2,r);const i=n.width+2*this.axisConfig.labelPadding;i<=t&&(t-=i,this.showLabel=!0)}if(this.axisConfig.showTick&&t>=this.axisConfig.tickLength&&(this.showTick=!0,t-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const e=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=e.height+2*this.axisConfig.titlePadding;this.titleTextHeight=e.height,n<=t&&(t-=n,this.showTitle=!0)}this.boundingRect.width=e.width-t,this.boundingRect.height=e.height}calculateSpace(e){return"left"===this.axisPosition||"right"===this.axisPosition?this.calculateSpaceIfDrawnVertical(e):this.calculateSpaceIfDrawnHorizontally(e),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateOffsetByRotation(e){const t=this.normalizedLabelRotationInRad;return 0===t?0:Math.sin(t)*this.getLabelDimension()[e]/2}getDrawableElementsForLeftAxis(){const e=[];if(this.showAxisLine){const t=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;e.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${t},${this.boundingRect.y} L ${t},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(e=>({text:e.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(e),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const t=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(e=>({path:`M ${t},${this.getScaleValue(e)} L ${t-this.axisConfig.tickLength},${this.getScaleValue(e)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),e}getDrawableElementsForBottomAxis(){const e=[];if(this.showAxisLine){const t=this.boundingRect.y+this.axisConfig.axisLineWidth/2;e.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${t} L ${this.boundingRect.x+this.boundingRect.width},${t}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(e=>({text:e.toString(),x:this.getScaleValue(e)+this.calculateOffsetByRotation("height"),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0)+Math.abs(this.calculateOffsetByRotation("width")),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:180*this.normalizedLabelRotationInRad/Math.PI,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const t=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(e=>({path:`M ${this.getScaleValue(e)},${t} L ${this.getScaleValue(e)},${t+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),e}getDrawableElementsForTopAxis(){const e=[];if(this.showAxisLine){const t=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;e.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${t} L ${this.boundingRect.x+this.boundingRect.width},${t}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(e=>({text:e.toString(),x:this.getScaleValue(e),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+2*this.axisConfig.titlePadding:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const t=this.boundingRect.y;e.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(e=>({path:`M ${this.getScaleValue(e)},${t+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(e)},${t+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),e}getDrawableElements(){if("left"===this.axisPosition)return this.getDrawableElementsForLeftAxis();if("right"===this.axisPosition)throw Error("Drawing of right axis is not implemented");return"bottom"===this.axisPosition?this.getDrawableElementsForBottomAxis():"top"===this.axisPosition?this.getDrawableElementsForTopAxis():[]}},"BaseAxis"),Sn),SSn=(hRe(Tn=class extends kSn{constructor(e,t,n,r,i){super(e,r,i,t),this.categories=n,this.scale=HXe().domain(this.categories).range(this.getRange())}setRange(e){super.setRange(e)}recalculateScale(){this.scale=HXe().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),ORe.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(e){return this.scale(e)??this.getRange()[0]}},"BandAxis"),Tn),TSn=(hRe($n=class extends kSn{constructor(e,t,n,r,i){super(e,r,i,t),this.domain=n,this.scale=cFe().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const e=[...this.domain];"left"===this.axisPosition&&e.reverse(),this.scale=cFe().domain(e).range(this.getRange())}getScaleValue(e){return this.scale(e)}},"LinearAxis"),$n);function $Sn(e,t,n,r){const i=new wSn(r);return bSn(e)?new SSn(t,n,e.categories,e.title,i):new TSn(t,n,[e.min,e.max],e.title,i)}hRe($Sn,"getAxis");var _Sn=(hRe(_n=class{constructor(e,t,n,r){this.textDimensionCalculator=e,this.chartConfig=t,this.chartData=n,this.chartThemeConfig=r,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){const t=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),n=Math.max(t.width,e.width),r=t.height+2*this.chartConfig.titlePadding;return t.width<=n&&t.height<=r&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=n,this.boundingRect.height=r,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const e=[];return this.showChartTitle&&e.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),e}},"ChartTitle"),_n);function CSn(e,t,n,r){const i=new wSn(r);return new _Sn(i,e,t,n)}hRe(CSn,"getChartTitleComponent");function QSn(e){return{fontSize:e,markerSize:.75*e,markerSpacing:.35*e,itemSpacing:.5*e}}hRe(QSn,"getLegendLayout");var PSn=(hRe(Cn=class{constructor(e,t,n,r){this.textDimensionCalculator=e,this.chartConfig=t,this.chartData=n,this.chartThemeConfig=r,this.boundingRect={x:0,y:0,width:0,height:0},this.visiblePlots=[]}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){if(this.visiblePlots=this.chartConfig.showLegend?this.chartData.plots.filter(e=>e.title):[],0===this.visiblePlots.length)return this.boundingRect.width=0,this.boundingRect.height=0,{width:0,height:0};const{fontSize:t,markerSize:n,markerSpacing:r,itemSpacing:i}=QSn(this.chartConfig.legendFontSize),o=this.textDimensionCalculator.getMaxDimension(this.visiblePlots.map(e=>e.title),t),a=2*this.chartConfig.legendPadding+n+r+o.width,s=2*this.chartConfig.legendPadding+this.visiblePlots.length*t+(this.visiblePlots.length-1)*i;return a<=e.width&&s<=e.height?(this.boundingRect.width=a,this.boundingRect.height=s):(this.visiblePlots=[],this.boundingRect.width=0,this.boundingRect.height=0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(0===this.visiblePlots.length)return[];const{fontSize:e,markerSize:t,markerSpacing:n,itemSpacing:r}=QSn(this.chartConfig.legendFontSize),i=e+r,o=this.boundingRect.x+this.chartConfig.legendPadding,a=this.boundingRect.y+this.chartConfig.legendPadding,s=[],l=[];for(const[c,u]of this.visiblePlots.entries())if(vSn(u))s.push({x:o,y:a+c*i,width:t,height:t,fill:u.fill,strokeFill:u.fill,strokeWidth:0});else{const e=a+c*i+t/2;l.push({path:`M ${o},${e} L ${o+t},${e}`,strokeFill:u.strokeFill,strokeWidth:u.strokeWidth})}return[{groupTexts:["legend","markers"],type:"rect",data:s},{groupTexts:["legend","markers"],type:"path",data:l},{groupTexts:["legend","label"],type:"text",data:this.visiblePlots.map((r,s)=>({text:r.title,x:o+t+n,y:a+s*i+t/2,fill:this.chartThemeConfig.legendTextColor,fontSize:e,rotation:0,verticalPos:"middle",horizontalPos:"left"}))}]}},"ChartLegend"),Cn);function ESn(e,t,n,r){const i=new wSn(r);return new PSn(i,e,t,n)}hRe(ESn,"getChartLegendComponent");var RSn=(Qn=class{constructor(e,t,n,r,i){this.plotData=e,this.xAxis=t,this.yAxis=n,this.orientation=r,this.plotIndex=i}getDrawableElement(){const e=this.plotData.data.map(e=>[this.xAxis.getScaleValue(e[0]),this.yAxis.getScaleValue(e[1])]);let t;if(t="horizontal"===this.orientation?Wze().y(e=>e[0]).x(e=>e[1])(e):Wze().x(e=>e[0]).y(e=>e[1])(e),!t)return[];const n=[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:t,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}];if(this.plotData.pointLabels&&this.plotData.pointLabels.length>0){const t=10,r=12,i=[];for(const[n,[o,a]]of e.entries()){const e=this.plotData.pointLabels[n];e&&("horizontal"===this.orientation?i.push({x:a+t,y:o,text:e,fill:this.plotData.strokeFill,verticalPos:"middle",horizontalPos:"left",fontSize:r,rotation:0}):i.push({x:o,y:a-t,text:e,fill:this.plotData.strokeFill,verticalPos:"middle",horizontalPos:"center",fontSize:r,rotation:0}))}i.length>0&&n.push({groupTexts:["plot",`line-plot-${this.plotIndex}`,"labels"],type:"text",data:i})}return n}},hRe(Qn,"LinePlot"),Qn),BSn=(hRe(Pn=class{constructor(e,t,n,r,i,o){this.barData=e,this.boundingRect=t,this.xAxis=n,this.yAxis=r,this.orientation=i,this.plotIndex=o}getDrawableElement(){const e=this.barData.data.map(e=>[this.xAxis.getScaleValue(e[0]),this.yAxis.getScaleValue(e[1])]),t=.95*Math.min(2*this.xAxis.getAxisOuterPadding(),this.xAxis.getTickDistance()),n=t/2;return"horizontal"===this.orientation?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:e.map(e=>({x:this.boundingRect.x,y:e[0]-n,height:t,width:e[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:e.map(e=>({x:e[0]-n,y:e[1],width:t,height:this.boundingRect.y+this.boundingRect.height-e[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},"BarPlot"),Pn),ISn=(En=class{constructor(e,t,n){this.chartConfig=e,this.chartData=t,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(e,t){this.xAxis=e,this.yAxis=t}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){return this.boundingRect.width=e.width,this.boundingRect.height=e.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!this.xAxis||!this.yAxis)throw Error("Axes must be passed to render Plots");const e=[];for(const[t,n]of this.chartData.plots.entries())switch(n.type){case"line":{const r=new RSn(n,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,t);e.push(...r.getDrawableElement())}break;case"bar":{const r=new BSn(n,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,t);e.push(...r.getDrawableElement())}}return e}},hRe(En,"BasePlot"),En);function LSn(e,t,n){return new ISn(e,t,n)}hRe(LSn,"getPlotComponent");var DSn,MSn=(hRe(Rn=class{constructor(e,t,n,r){this.chartConfig=e,this.chartData=t,this.componentStore={title:CSn(e,t,n,r),plot:LSn(e,t,n),legend:ESn(e,t,n,r),xAxis:$Sn(t.xAxis,e.xAxis,{titleColor:n.xAxisTitleColor,labelColor:n.xAxisLabelColor,tickColor:n.xAxisTickColor,axisLineColor:n.xAxisLineColor},r),yAxis:$Sn(t.yAxis,e.yAxis,{titleColor:n.yAxisTitleColor,labelColor:n.yAxisLabelColor,tickColor:n.yAxisTickColor,axisLineColor:n.yAxisLineColor},r)}}calculateVerticalSpace(){let e=this.chartConfig.width,t=this.chartConfig.height,n=0,r=0,i={width:0,height:0},o=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),a=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),s=this.componentStore.plot.calculateSpace({width:o,height:a});e-=s.width,t-=s.height,s=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:t}),r=s.height,t-=s.height,this.componentStore.xAxis.setAxisPosition("bottom"),s=this.componentStore.xAxis.calculateSpace({width:e,height:t}),t-=s.height,this.componentStore.yAxis.setAxisPosition("left"),s=this.componentStore.yAxis.calculateSpace({width:e,height:t}),n=s.width,e-=s.width,i=this.componentStore.legend.calculateSpace({width:e,height:a}),e-=i.width,e>0&&(o+=e,e=0),t>0&&(a+=t,t=0),this.componentStore.plot.calculateSpace({width:o,height:a}),this.componentStore.plot.setBoundingBoxXY({x:n,y:r}),this.componentStore.legend.setBoundingBoxXY({x:n+o,y:r+Math.max((a-i.height)/2,0)}),this.componentStore.xAxis.setRange([n,n+o]),this.componentStore.xAxis.setBoundingBoxXY({x:n,y:r+a}),this.componentStore.yAxis.setRange([r,r+a]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:r}),this.chartData.plots.some(e=>vSn(e))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let e=this.chartConfig.width,t=this.chartConfig.height,n=0,r=0,i=0,o={width:0,height:0},a=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),s=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),l=this.componentStore.plot.calculateSpace({width:a,height:s});e-=l.width,t-=l.height,l=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:t}),n=l.height,t-=l.height,this.componentStore.xAxis.setAxisPosition("left"),l=this.componentStore.xAxis.calculateSpace({width:e,height:t}),e-=l.width,r=l.width,this.componentStore.yAxis.setAxisPosition("top"),l=this.componentStore.yAxis.calculateSpace({width:e,height:t}),t-=l.height,i=n+l.height,o=this.componentStore.legend.calculateSpace({width:e,height:s}),e-=o.width,e>0&&(a+=e,e=0),t>0&&(s+=t,t=0),this.componentStore.plot.calculateSpace({width:a,height:s}),this.componentStore.plot.setBoundingBoxXY({x:r,y:i}),this.componentStore.legend.setBoundingBoxXY({x:r+a,y:i+Math.max((s-o.height)/2,0)}),this.componentStore.yAxis.setRange([r,r+a]),this.componentStore.yAxis.setBoundingBoxXY({x:r,y:n}),this.componentStore.xAxis.setRange([i,i+s]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:i}),this.chartData.plots.some(e=>vSn(e))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){"horizontal"===this.chartConfig.chartOrientation?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const e=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const t of Object.values(this.componentStore))e.push(...t.getDrawableElements());return e}},"Orchestrator"),Rn),NSn=(hRe(Bn=class{static build(e,t,n,r){return new MSn(e,t,n,r).getDrawableElement()}},"XYChartBuilder"),Bn),XSn=0,FSn=YSn(),USn=jSn(),zSn=ZSn(),qSn=USn.plotColorPalette.split(",").map(e=>e.trim()),VSn=!1,WSn=!1;function jSn(){const e=nBe(),t=NBe();return jWe(e.xyChart,t.themeVariables.xyChart)}function YSn(){const e=NBe();return jWe(wBe.xyChart,e.xyChart)}function ZSn(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function GSn(e){const t=NBe();return uIe(e.trim(),t)}function HSn(e){DSn=e}function KSn(e){FSn.chartOrientation="horizontal"===e?"horizontal":"vertical"}function JSn(e){zSn.xAxis.title=GSn(e.text)}function eTn(e,t){zSn.xAxis={type:"linear",title:zSn.xAxis.title,min:e,max:t},VSn=!0}function tTn(e){zSn.xAxis={type:"band",title:zSn.xAxis.title,categories:e.map(e=>GSn(e.text))},VSn=!0}function nTn(e){zSn.yAxis.title=GSn(e.text)}function rTn(e,t){zSn.yAxis={type:"linear",title:zSn.yAxis.title,min:e,max:t},WSn=!0}function iTn(e){const t=Math.min(...e),n=Math.max(...e),r=xSn(zSn.yAxis)?zSn.yAxis.min:1/0,i=xSn(zSn.yAxis)?zSn.yAxis.max:-1/0;zSn.yAxis={type:"linear",title:zSn.yAxis.title,min:Math.min(r,t),max:Math.max(i,n)}}function oTn(e){let t=[];if(0===e.length)return t;if(!VSn){const t=xSn(zSn.xAxis)?zSn.xAxis.min:1/0,n=xSn(zSn.xAxis)?zSn.xAxis.max:-1/0;eTn(Math.min(t,1),Math.max(n,e.length))}if(bSn(zSn.xAxis)&&e.length>zSn.xAxis.categories.length&&(e=e.slice(0,zSn.xAxis.categories.length)),WSn||iTn(e),bSn(zSn.xAxis)&&(t=zSn.xAxis.categories.map((t,n)=>[t,e[n]])),xSn(zSn.xAxis)){const n=zSn.xAxis.min,r=zSn.xAxis.max;if(1===e.length)t=[[`${n}`,e[0]]];else{const i=(r-n)/(e.length-1);t=e.map((e,t)=>[`${n+t*i}`,e])}}return t}function aTn(e){return qSn[0===e?0:e%qSn.length]}function sTn(e,t){const n=t.map(e=>e.value),r=t.map(e=>e.label?GSn(e.label):""),i=oTn(n),o=r.some(e=>""!==e);zSn.plots.push({type:"line",title:GSn(e.text),strokeFill:aTn(XSn),strokeWidth:2,data:i,...o?{pointLabels:r}:{}}),XSn++}function lTn(e,t){const n=oTn(t.map(e=>e.value));zSn.plots.push({type:"bar",title:GSn(e.text),fill:aTn(XSn),data:n}),XSn++}function cTn(){if(0===zSn.plots.length)throw Error("No Plot to render, please provide a plot with some data");return zSn.title=GIe(),NSn.build(FSn,zSn,USn,DSn)}function uTn(){return USn}function hTn(){return FSn}function dTn(){return zSn}hRe(jSn,"getChartDefaultThemeConfig"),hRe(YSn,"getChartDefaultConfig"),hRe(ZSn,"getChartDefaultData"),hRe(GSn,"textSanitizer"),hRe(HSn,"setTmpSVGG"),hRe(KSn,"setOrientation"),hRe(JSn,"setXAxisTitle"),hRe(eTn,"setXAxisRangeData"),hRe(tTn,"setXAxisBand"),hRe(nTn,"setYAxisTitle"),hRe(rTn,"setYAxisRangeData"),hRe(iTn,"setYAxisRangeFromPlotData"),hRe(oTn,"transformDataWithoutCategory"),hRe(aTn,"getPlotColorFromPalette"),hRe(sTn,"setLineData"),hRe(lTn,"setBarData"),hRe(cTn,"getDrawableElem"),hRe(uTn,"getChartThemeConfig"),hRe(hTn,"getChartConfig"),hRe(dTn,"getXYChartData");var pTn={getDrawableElem:cTn,clear:hRe(function(){qIe(),XSn=0,FSn=YSn(),zSn={yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]},USn=jSn(),qSn=USn.plotColorPalette.split(",").map(e=>e.trim()),VSn=!1,WSn=!1},"clear"),setAccTitle:VIe,getAccTitle:WIe,setDiagramTitle:ZIe,getDiagramTitle:GIe,getAccDescription:YIe,setAccDescription:jIe,setOrientation:KSn,setXAxisTitle:JSn,setXAxisRangeData:eTn,setXAxisBand:tTn,setYAxisTitle:nTn,setYAxisRangeData:rTn,setLineData:sTn,setBarData:lTn,setTmpSVGG:HSn,getChartThemeConfig:uTn,getChartConfig:hTn,getXYChartData:dTn},fTn=hRe((e,t,n,r)=>{const i=r.db,o=i.getChartThemeConfig(),a=i.getChartConfig(),s=i.getXYChartData().plots[0].data.map(e=>e[1]);function l(e){return"top"===e?"text-before-edge":"middle"}function c(e){return"left"===e?"start":"right"===e?"end":"middle"}function u(e){return`translate(${e.x}, ${e.y}) rotate(${e.rotation||0})`}hRe(l,"getDominantBaseLine"),hRe(c,"getTextAnchor"),hRe(u,"getTextTransformation"),ORe.debug("Rendering xychart chart\n"+e);const h=Mqe(t),d=h.append("g").attr("class","main"),p=d.append("rect").attr("width",a.width).attr("height",a.height).attr("class","background");EIe(h,a.height,a.width,!0),h.attr("viewBox",`0 0 ${a.width} ${a.height}`),p.attr("fill",o.backgroundColor),i.setTmpSVGG(h.append("g").attr("class","mermaid-tmp-group"));const f=i.getDrawableElem(),g={};function m(e){let t=d,n="";for(const[r]of e.entries()){let i=d;r>0&&g[n]&&(i=g[n]),n+=e[r],t=g[n],t||(t=g[n]=i.append("g").attr("class",e[r]))}return t}hRe(m,"getGroup");for(const O of f){if(0===O.data.length)continue;const e=m(O.groupTexts);switch(O.type){case"rect":if(e.selectAll("rect").data(O.data).enter().append("rect").attr("x",e=>e.x).attr("y",e=>e.y).attr("width",e=>e.width).attr("height",e=>e.height).attr("fill",e=>e.fill).attr("stroke",e=>e.strokeFill).attr("stroke-width",e=>e.strokeWidth),a.showDataLabel){const t=a.showDataLabelOutsideBar;if("horizontal"===a.chartOrientation){let n=function(e,t){const{data:n,label:o}=e;return t*o.length*r<=n.width-i};hRe(n,"fitsHorizontally");const r=.7,i=10,a=O.data.map((e,t)=>({data:e,label:s[t].toString()})).filter(e=>e.data.width>0&&e.data.height>0),l=a.map(e=>{const{data:t}=e;let r=.7*t.height;for(;!n(e,r)&&r>0;)r-=1;return r}),c=Math.floor(Math.min(...l)),u=hRe(e=>t?e.data.x+e.data.width+i:e.data.x+e.data.width-i,"determineLabelXPosition");e.selectAll("text").data(a).enter().append("text").attr("x",u).attr("y",e=>e.data.y+e.data.height/2).attr("text-anchor",t?"start":"end").attr("dominant-baseline","middle").attr("fill",o.dataLabelColor).attr("font-size",`${c}px`).text(e=>e.label)}else{let n=function(e,t,n){const{data:r,label:i}=e,o=t*i.length*.7,a=r.x+r.width/2,s=a+o/2,l=a-o/2>=r.x&&s<=r.x+r.width,c=r.y+n+t<=r.y+r.height;return l&&c};hRe(n,"fitsInBar");const r=10,i=O.data.map((e,t)=>({data:e,label:s[t].toString()})).filter(e=>e.data.width>0&&e.data.height>0),a=i.map(e=>{const{data:t,label:i}=e;let o=t.width/(.7*i.length);for(;!n(e,o,r)&&o>0;)o-=1;return o}),l=Math.floor(Math.min(...a)),c=hRe(e=>t?e.data.y-r:e.data.y+r,"determineLabelYPosition");e.selectAll("text").data(i).enter().append("text").attr("x",e=>e.data.x+e.data.width/2).attr("y",c).attr("text-anchor","middle").attr("dominant-baseline",t?"auto":"hanging").attr("fill",o.dataLabelColor).attr("font-size",`${l}px`).text(e=>e.label)}}break;case"text":e.selectAll("text").data(O.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",e=>e.fill).attr("font-size",e=>e.fontSize).attr("dominant-baseline",e=>l(e.verticalPos)).attr("text-anchor",e=>c(e.horizontalPos)).attr("transform",e=>u(e)).text(e=>e.text);break;case"path":e.selectAll("path").data(O.data).enter().append("path").attr("d",e=>e.path).attr("fill",e=>e.fill?e.fill:"none").attr("stroke",e=>e.strokeFill).attr("stroke-width",e=>e.strokeWidth)}}},"draw"),gTn={parser:ySn,db:pTn,renderer:{draw:fTn}};const mTn=Object.freeze(Object.defineProperty({__proto__:null,diagram:gTn},Symbol.toStringTag,{value:"Module"}));var OTn=function(){var e=hRe(function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},"o"),t=[1,3],n=[1,4],r=[1,5],i=[1,6],o=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],a=[1,22],s=[2,7],l=[1,26],c=[1,27],u=[1,28],h=[1,29],d=[1,33],p=[1,34],f=[1,35],g=[1,36],m=[1,37],O=[1,38],A=[1,24],y=[1,31],v=[1,32],b=[1,30],x=[1,39],w=[1,40],k=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],S=[1,61],T=[89,90],$=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],_=[27,29],C=[1,70],Q=[1,71],P=[1,72],E=[1,73],R=[1,74],B=[1,75],I=[1,76],L=[1,83],D=[1,80],M=[1,84],N=[1,85],X=[1,86],F=[1,87],U=[1,88],z=[1,89],q=[1,90],V=[1,91],W=[1,92],j=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Z=[1,101],G=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],H=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],K=[1,110],J=[1,106],ee=[1,107],te=[1,108],ne=[1,109],re=[1,111],ie=[1,116],oe=[1,117],ae=[1,114],se=[1,115],le={trace:hRe(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:hRe(function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 4:this.$=o[s].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=o[s].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:r.setDirection("TB");break;case 18:r.setDirection("BT");break;case 19:r.setDirection("RL");break;case 20:r.setDirection("LR");break;case 21:r.addRequirement(o[s-3],o[s-4]);break;case 22:r.addRequirement(o[s-5],o[s-6]),r.setClass([o[s-5]],o[s-3]);break;case 23:r.setNewReqId(o[s-2]);break;case 24:r.setNewReqText(o[s-2]);break;case 25:r.setNewReqRisk(o[s-2]);break;case 26:r.setNewReqVerifyMethod(o[s-2]);break;case 29:this.$=r.RequirementType.REQUIREMENT;break;case 30:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=r.RiskLevel.LOW_RISK;break;case 36:this.$=r.RiskLevel.MED_RISK;break;case 37:this.$=r.RiskLevel.HIGH_RISK;break;case 38:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=r.VerifyType.VERIFY_TEST;break;case 42:r.addElement(o[s-3]);break;case 43:r.addElement(o[s-5]),r.setClass([o[s-5]],o[s-3]);break;case 44:r.setNewElementType(o[s-2]);break;case 45:r.setNewElementDocRef(o[s-2]);break;case 48:r.addRelationship(o[s-2],o[s],o[s-4]);break;case 49:r.addRelationship(o[s-2],o[s-4],o[s]);break;case 50:this.$=r.Relationships.CONTAINS;break;case 51:this.$=r.Relationships.COPIES;break;case 52:this.$=r.Relationships.DERIVES;break;case 53:this.$=r.Relationships.SATISFIES;break;case 54:this.$=r.Relationships.VERIFIES;break;case 55:this.$=r.Relationships.REFINES;break;case 56:this.$=r.Relationships.TRACES;break;case 57:this.$=o[s-2],r.defineClass(o[s-1],o[s]);break;case 58:r.setClass(o[s-1],o[s]);break;case 59:r.setClass([o[s-2]],o[s]);break;case 60:case 62:case 65:this.$=[o[s]];break;case 61:case 63:this.$=o[s-2].concat([o[s]]);break;case 64:this.$=o[s-2],r.setCssStyle(o[s-1],o[s]);break;case 66:o[s-2].push(o[s]),this.$=o[s-2];break;case 68:this.$=o[s-1]+o[s]}},"anonymous"),table:[{3:1,4:2,6:t,9:n,11:r,13:i},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:n,11:r,13:i},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(o,[2,6]),{3:12,4:2,6:t,9:n,11:r,13:i},{1:[2,2]},{4:17,5:a,7:13,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:u,24:h,25:23,33:25,41:d,42:p,43:f,44:g,45:m,46:O,54:A,72:y,74:v,77:b,89:x,90:w},e(o,[2,4]),e(o,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:a,7:42,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:u,24:h,25:23,33:25,41:d,42:p,43:f,44:g,45:m,46:O,54:A,72:y,74:v,77:b,89:x,90:w},{4:17,5:a,7:43,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:u,24:h,25:23,33:25,41:d,42:p,43:f,44:g,45:m,46:O,54:A,72:y,74:v,77:b,89:x,90:w},{4:17,5:a,7:44,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:u,24:h,25:23,33:25,41:d,42:p,43:f,44:g,45:m,46:O,54:A,72:y,74:v,77:b,89:x,90:w},{4:17,5:a,7:45,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:u,24:h,25:23,33:25,41:d,42:p,43:f,44:g,45:m,46:O,54:A,72:y,74:v,77:b,89:x,90:w},{4:17,5:a,7:46,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:u,24:h,25:23,33:25,41:d,42:p,43:f,44:g,45:m,46:O,54:A,72:y,74:v,77:b,89:x,90:w},{4:17,5:a,7:47,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:u,24:h,25:23,33:25,41:d,42:p,43:f,44:g,45:m,46:O,54:A,72:y,74:v,77:b,89:x,90:w},{4:17,5:a,7:48,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:u,24:h,25:23,33:25,41:d,42:p,43:f,44:g,45:m,46:O,54:A,72:y,74:v,77:b,89:x,90:w},{4:17,5:a,7:49,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:u,24:h,25:23,33:25,41:d,42:p,43:f,44:g,45:m,46:O,54:A,72:y,74:v,77:b,89:x,90:w},{4:17,5:a,7:50,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:u,24:h,25:23,33:25,41:d,42:p,43:f,44:g,45:m,46:O,54:A,72:y,74:v,77:b,89:x,90:w},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(k,[2,17]),e(k,[2,18]),e(k,[2,19]),e(k,[2,20]),{30:60,33:62,75:S,89:x,90:w},{30:63,33:62,75:S,89:x,90:w},{30:64,33:62,75:S,89:x,90:w},e(T,[2,29]),e(T,[2,30]),e(T,[2,31]),e(T,[2,32]),e(T,[2,33]),e(T,[2,34]),e($,[2,81]),e($,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(_,[2,79]),e(_,[2,80]),{27:[1,67],29:[1,68]},e(_,[2,85]),e(_,[2,86]),{62:69,65:C,66:Q,67:P,68:E,69:R,70:B,71:I},{62:77,65:C,66:Q,67:P,68:E,69:R,70:B,71:I},{30:78,33:62,75:S,89:x,90:w},{73:79,75:L,76:D,78:81,79:82,80:M,81:N,82:X,83:F,84:U,85:z,86:q,87:V,88:W},e(j,[2,60]),e(j,[2,62]),{73:93,75:L,76:D,78:81,79:82,80:M,81:N,82:X,83:F,84:U,85:z,86:q,87:V,88:W},{30:94,33:62,75:S,76:D,89:x,90:w},{5:[1,95]},{30:96,33:62,75:S,89:x,90:w},{5:[1,97]},{30:98,33:62,75:S,89:x,90:w},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(k,[2,59],{76:D}),e(k,[2,64],{76:Z}),{33:103,75:[1,102],89:x,90:w},e(G,[2,65],{79:104,75:L,80:M,81:N,82:X,83:F,84:U,85:z,86:q,87:V,88:W}),e(H,[2,67]),e(H,[2,69]),e(H,[2,70]),e(H,[2,71]),e(H,[2,72]),e(H,[2,73]),e(H,[2,74]),e(H,[2,75]),e(H,[2,76]),e(H,[2,77]),e(H,[2,78]),e(k,[2,57],{76:Z}),e(k,[2,58],{76:D}),{5:K,28:105,31:J,34:ee,36:te,38:ne,40:re},{27:[1,112],76:D},{5:ie,40:oe,56:113,57:ae,59:se},{27:[1,118],76:D},{33:119,89:x,90:w},{33:120,89:x,90:w},{75:L,78:121,79:82,80:M,81:N,82:X,83:F,84:U,85:z,86:q,87:V,88:W},e(j,[2,61]),e(j,[2,63]),e(H,[2,68]),e(k,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:K,28:126,31:J,34:ee,36:te,38:ne,40:re},e(k,[2,28]),{5:[1,127]},e(k,[2,42]),{32:[1,128]},{32:[1,129]},{5:ie,40:oe,56:130,57:ae,59:se},e(k,[2,47]),{5:[1,131]},e(k,[2,48]),e(k,[2,49]),e(G,[2,66],{79:104,75:L,80:M,81:N,82:X,83:F,84:U,85:z,86:q,87:V,88:W}),{33:132,89:x,90:w},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(k,[2,27]),{5:K,28:145,31:J,34:ee,36:te,38:ne,40:re},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(k,[2,46]),{5:ie,40:oe,56:152,57:ae,59:se},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(k,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(k,[2,43]),{5:K,28:159,31:J,34:ee,36:te,38:ne,40:re},{5:K,28:160,31:J,34:ee,36:te,38:ne,40:re},{5:K,28:161,31:J,34:ee,36:te,38:ne,40:re},{5:K,28:162,31:J,34:ee,36:te,38:ne,40:re},{5:ie,40:oe,56:163,57:ae,59:se},{5:ie,40:oe,56:164,57:ae,59:se},e(k,[2,23]),e(k,[2,24]),e(k,[2,25]),e(k,[2,26]),e(k,[2,44]),e(k,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:hRe(function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},"parseError"),parse:hRe(function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),h=Object.create(this.lexer),d={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d.yy[p]=this.yy[p]);h.setInput(e,d.yy),d.yy.lexer=h,d.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var f=h.yylloc;o.push(f);var g=h.options&&h.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||h.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,hRe(function(e){n.length=n.length-2*e,i.length=i.length-e,o.length=o.length-e},"popStack"),hRe(m,"lex");for(var O,A,y,v,b,x,w,k,S={};;){if(A=n[n.length-1],this.defaultActions[A]?y=this.defaultActions[A]:(null==O&&(O=m()),y=a[A]&&a[A][O]),void 0===y||!y.length||!y[0]){var T="";for(b in k=[],a[A])this.terminals_[b]&&b>2&&k.push("'"+this.terminals_[b]+"'");T=h.showPosition?"Parse error on line "+(l+1)+":\n"+h.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[O]||O)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==O?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[O]||O,line:h.yylineno,loc:f,expected:k})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+O);switch(y[0]){case 1:n.push(O),i.push(h.yytext),o.push(h.yylloc),n.push(y[1]),O=null,c=h.yyleng,s=h.yytext,l=h.yylineno,f=h.yylloc;break;case 2:if(x=this.productions_[y[1]][1],S.$=i[i.length-x],S._$={first_line:o[o.length-(x||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(x||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(x||1)].range[0],o[o.length-1].range[1]]),void 0!==(v=this.performAction.apply(S,[s,c,l,d.yy,y[1],i,o].concat(u))))return v;x&&(n=n.slice(0,-1*x*2),i=i.slice(0,-1*x),o=o.slice(0,-1*x)),n.push(this.productions_[y[1]][0]),i.push(S.$),o.push(S._$),w=a[n[n.length-2]][n[n.length-1]],n.push(w);break;case 3:return!0}}return!0},"parse")},ce=function(){var e={EOF:1,parseError:hRe(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:hRe(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:hRe(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:hRe(function(e){var t=e.length,n=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 r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:hRe(function(){return this._more=!0,this},"more"),reject:hRe(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:hRe(function(e){this.unput(this.match.slice(e))},"less"),pastInput:hRe(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:hRe(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:hRe(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:hRe(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.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],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},"test_match"),next:hRe(function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&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:hRe(function(){var e=this.next();return e||this.lex()},"lex"),begin:hRe(function(e){this.conditionStack.push(e)},"begin"),popState:hRe(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:hRe(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:hRe(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:hRe(function(e){this.begin(e)},"pushState"),stateStackSize:hRe(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:hRe(function(e,t,n,r){switch(n){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:case 58:case 65:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:case 14:case 15:case 56:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;case 50:case 68:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 57:case 64:this.begin("string");break;case 59:return this.begin("style"),72;case 60:return this.begin("style"),74;case 61:return 61;case 62:return 64;case 63:return 63;case 66:return"qString";case 67:return t.yytext=t.yytext.trim(),89;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}};return e}();function ue(){this.yy={}}return le.lexer=ce,hRe(ue,"Parser"),ue.prototype=le,le.Parser=ue,new ue}();OTn.parser=OTn;var ATn=OTn,yTn=(hRe(In=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=VIe,this.getAccTitle=WIe,this.setAccDescription=jIe,this.getAccDescription=YIe,this.setDiagramTitle=ZIe,this.getDiagramTitle=GIe,this.getConfig=hRe(()=>JIe().requirement,"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}getDirection(){return this.direction}setDirection(e){this.direction=e}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(e,t){return this.requirements.has(e)||this.requirements.set(e,{name:e,type:t,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]}),this.resetLatestRequirement(),this.requirements.get(e)}getRequirements(){return this.requirements}setNewReqId(e){void 0!==this.latestRequirement&&(this.latestRequirement.requirementId=e)}setNewReqText(e){void 0!==this.latestRequirement&&(this.latestRequirement.text=e)}setNewReqRisk(e){void 0!==this.latestRequirement&&(this.latestRequirement.risk=e)}setNewReqVerifyMethod(e){void 0!==this.latestRequirement&&(this.latestRequirement.verifyMethod=e)}addElement(e){return this.elements.has(e)||(this.elements.set(e,{name:e,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),ORe.info("Added new element: ",e)),this.resetLatestElement(),this.elements.get(e)}getElements(){return this.elements}setNewElementType(e){void 0!==this.latestElement&&(this.latestElement.type=e)}setNewElementDocRef(e){void 0!==this.latestElement&&(this.latestElement.docRef=e)}addRelationship(e,t,n){this.relations.push({type:e,src:t,dst:n})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,qIe()}setCssStyle(e,t){for(const n of e){const e=this.requirements.get(n)??this.elements.get(n);if(!t||!e)return;for(const n of t)n.includes(",")?e.cssStyles.push(...n.split(",")):e.cssStyles.push(n)}}setClass(e,t){var n;for(const r of e){const e=this.requirements.get(r)??this.elements.get(r);if(e)for(const r of t){e.classes.push(r);const t=null==(n=this.classes.get(r))?void 0:n.styles;t&&e.cssStyles.push(...t)}}}defineClass(e,t){for(const n of e){let e=this.classes.get(n);void 0===e&&(e={id:n,styles:[],textStyles:[]},this.classes.set(n,e)),t&&t.forEach(function(t){if(/color/.exec(t)){const n=t.replace("fill","bgFill");e.textStyles.push(n)}e.styles.push(t)}),this.requirements.forEach(e=>{e.classes.includes(n)&&e.cssStyles.push(...t.flatMap(e=>e.split(",")))}),this.elements.forEach(e=>{e.classes.includes(n)&&e.cssStyles.push(...t.flatMap(e=>e.split(",")))})}}getClasses(){return this.classes}getData(){var e,t,n,r;const i=JIe(),o=[],a=[];for(const l of this.requirements.values()){const e=l;e.id=l.name,e.cssStyles=l.cssStyles,e.cssClasses=l.classes.join(" "),e.shape="requirementBox",e.look=i.look,e.colorIndex=o.length,o.push(e)}for(const l of this.elements.values()){const e=l;e.shape="requirementBox",e.look=i.look,e.id=l.name,e.cssStyles=l.cssStyles,e.cssClasses=l.classes.join(" "),e.colorIndex=o.length,o.push(e)}let s=0;for(const l of this.relations){const o=l.type===this.Relationships.CONTAINS,c={id:`${l.src}-${l.dst}-${s++}`,start:(null==(e=this.requirements.get(l.src))?void 0:e.name)??(null==(t=this.elements.get(l.src))?void 0:t.name),end:(null==(n=this.requirements.get(l.dst))?void 0:n.name)??(null==(r=this.elements.get(l.dst))?void 0:r.name),label:`<<${l.type}>>`,classes:"relationshipLine",style:["fill:none",o?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:o?"normal":"dashed",arrowTypeStart:o?"requirement_contains":"",arrowTypeEnd:o?"":"requirement_arrow",look:i.look,labelType:"markdown"};a.push(c)}return{nodes:o,edges:a,other:{},config:i,direction:this.getDirection()}}},"RequirementDB"),In),vTn=hRe(e=>{const t=NBe(),{themeVariables:n,look:r}=t,{bkgColorArray:i,borderColorArray:o}=n;if(!(null==o?void 0:o.length))return"";let a="";for(let s=0;s<e.THEME_COLOR_LIMIT;s++)a+=`\n\n [data-look="${r}"][data-color-id="color-${s}"].node path {\n stroke: ${o[s]};\n fill: ${(null==i?void 0:i.length)?i[s]:""};\n }\n\n [data-look="${r}"][data-color-id="color-${s}"].node rect {\n stroke: ${o[s]};\n fill: ${(null==i?void 0:i.length)?i[s]:""};\n }\n `;return a},"genColor"),bTn=hRe(e=>{const t=NBe(),{look:n,themeVariables:r}=t,{requirementEdgeLabelBackground:i}=r;return`\n ${vTn(e)}\n marker {\n fill: ${e.relationColor};\n stroke: ${e.relationColor};\n }\n\n marker.cross {\n stroke: ${e.lineColor};\n }\n\n svg {\n font-family: ${e.fontFamily};\n font-size: ${e.fontSize};\n }\n\n .reqBox {\n fill: ${e.requirementBackground};\n fill-opacity: 1.0;\n stroke: ${e.requirementBorderColor};\n stroke-width: ${e.requirementBorderSize};\n }\n \n .reqTitle, .reqLabel{\n fill: ${e.requirementTextColor};\n }\n .reqLabelBox {\n fill: ${e.relationLabelBackground};\n fill-opacity: 1.0;\n }\n\n .req-title-line {\n stroke: ${e.requirementBorderColor};\n stroke-width: ${e.requirementBorderSize};\n }\n .relationshipLine {\n stroke: ${e.relationColor};\n stroke-width: ${"neo"===n?e.strokeWidth:"1px"};\n }\n .relationshipLabel {\n fill: ${e.relationLabelColor};\n }\n .edgeLabel {\n background-color: ${e.edgeLabelBackground};\n }\n .edgeLabel .label rect {\n fill: ${e.edgeLabelBackground};\n }\n .edgeLabel .label text {\n fill: ${e.relationLabelColor};\n }\n .divider {\n stroke: ${e.nodeBorder};\n stroke-width: 1;\n }\n .label {\n font-family: ${e.fontFamily};\n color: ${e.nodeTextColor||e.textColor};\n }\n .label text,span {\n fill: ${e.nodeTextColor||e.textColor};\n color: ${e.nodeTextColor||e.textColor};\n }\n .labelBkg {\n background-color: ${i??e.edgeLabelBackground};\n }\n\n`},"getStyles"),xTn={};dRe(xTn,{draw:()=>wTn});var wTn=hRe(async function(e,t,n,r){ORe.info("REF0:"),ORe.info("Drawing requirement diagram (unified)",t);const{securityLevel:i,state:o,layout:a,look:s}=JIe(),l=r.db.getData(),c=gzt(t,i);l.type=r.type,l.layoutAlgorithm=c2e(a),l.nodeSpacing=(null==o?void 0:o.nodeSpacing)??50,l.rankSpacing=(null==o?void 0:o.rankSpacing)??50,l.markers="neo"===s?["requirement_contains_neo","requirement_arrow_neo"]:["requirement_contains","requirement_arrow"],l.diagramId=t,await l2e(l,c);YWe.insertTitle(c,"requirementDiagramTitleText",(null==o?void 0:o.titleTopMargin)??25,r.db.getDiagramTitle()),mzt(c,8,"requirementDiagram",(null==o?void 0:o.useMaxWidth)??!0)},"draw"),kTn={parser:ATn,get db(){return new yTn},renderer:xTn,styles:bTn};const STn=Object.freeze(Object.defineProperty({__proto__:null,diagram:kTn},Symbol.toStringTag,{value:"Module"}));var TTn=function(){var e=hRe(function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},"o"),t=[1,2],n=[1,3],r=[1,4],i=[2,4],o=[1,9],a=[1,11],s=[1,12],l=[1,14],c=[1,15],u=[1,17],h=[1,18],d=[1,19],p=[1,25],f=[1,26],g=[1,27],m=[1,28],O=[1,29],A=[1,30],y=[1,31],v=[1,32],b=[1,33],x=[1,34],w=[1,35],k=[1,36],S=[1,37],T=[1,38],$=[1,39],_=[1,40],C=[1,42],Q=[1,43],P=[1,44],E=[1,45],R=[1,46],B=[1,47],I=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],L=[1,74],D=[1,80],M=[1,81],N=[1,82],X=[1,83],F=[1,84],U=[1,85],z=[1,86],q=[1,87],V=[1,88],W=[1,89],j=[1,90],Y=[1,91],Z=[1,92],G=[1,93],H=[1,94],K=[1,95],J=[1,96],ee=[1,97],te=[1,98],ne=[1,99],re=[1,100],ie=[1,101],oe=[1,102],ae=[1,103],se=[1,104],le=[1,105],ce=[2,78],ue=[4,5,17,51,53,54],he=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],de=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],pe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],fe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],ge=[5,52],me=[70,71,72,73],Oe=[1,151],Ae={trace:hRe(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:hRe(function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 3:return r.apply(o[s]),o[s];case 4:case 10:case 8:case 9:case 14:this.$=[];break;case 5:case 11:o[s-1].push(o[s]),this.$=o[s-1];break;case 6:case 7:case 12:case 13:case 67:this.$=o[s];break;case 16:o[s].type="createParticipant",this.$=o[s];break;case 17:o[s-1].unshift({type:"boxStart",boxData:r.parseBoxData(o[s-2])}),o[s-1].push({type:"boxEnd",boxText:o[s-2]}),this.$=o[s-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(o[s-2]),sequenceIndexStep:Number(o[s-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(o[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:o[s-1].actor};break;case 24:this.$={type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:o[s-1].actor};break;case 30:r.setDiagramTitle(o[s].substring(6)),this.$=o[s].substring(6);break;case 31:r.setDiagramTitle(o[s].substring(7)),this.$=o[s].substring(7);break;case 32:this.$=o[s].trim(),r.setAccTitle(this.$);break;case 33:case 34:this.$=o[s].trim(),r.setAccDescription(this.$);break;case 35:o[s-1].unshift({type:"loopStart",loopText:r.parseMessage(o[s-2]),signalType:r.LINETYPE.LOOP_START}),o[s-1].push({type:"loopEnd",loopText:o[s-2],signalType:r.LINETYPE.LOOP_END}),this.$=o[s-1];break;case 36:o[s-1].unshift({type:"rectStart",color:r.parseMessage(o[s-2]),signalType:r.LINETYPE.RECT_START}),o[s-1].push({type:"rectEnd",color:r.parseMessage(o[s-2]),signalType:r.LINETYPE.RECT_END}),this.$=o[s-1];break;case 37:o[s-1].unshift({type:"optStart",optText:r.parseMessage(o[s-2]),signalType:r.LINETYPE.OPT_START}),o[s-1].push({type:"optEnd",optText:r.parseMessage(o[s-2]),signalType:r.LINETYPE.OPT_END}),this.$=o[s-1];break;case 38:o[s-1].unshift({type:"altStart",altText:r.parseMessage(o[s-2]),signalType:r.LINETYPE.ALT_START}),o[s-1].push({type:"altEnd",signalType:r.LINETYPE.ALT_END}),this.$=o[s-1];break;case 39:o[s-1].unshift({type:"parStart",parText:r.parseMessage(o[s-2]),signalType:r.LINETYPE.PAR_START}),o[s-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END}),this.$=o[s-1];break;case 40:o[s-1].unshift({type:"parStart",parText:r.parseMessage(o[s-2]),signalType:r.LINETYPE.PAR_OVER_START}),o[s-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END}),this.$=o[s-1];break;case 41:o[s-1].unshift({type:"criticalStart",criticalText:r.parseMessage(o[s-2]),signalType:r.LINETYPE.CRITICAL_START}),o[s-1].push({type:"criticalEnd",signalType:r.LINETYPE.CRITICAL_END}),this.$=o[s-1];break;case 42:o[s-1].unshift({type:"breakStart",breakText:r.parseMessage(o[s-2]),signalType:r.LINETYPE.BREAK_START}),o[s-1].push({type:"breakEnd",optText:r.parseMessage(o[s-2]),signalType:r.LINETYPE.BREAK_END}),this.$=o[s-1];break;case 44:this.$=o[s-3].concat([{type:"option",optionText:r.parseMessage(o[s-1]),signalType:r.LINETYPE.CRITICAL_OPTION},o[s]]);break;case 46:this.$=o[s-3].concat([{type:"and",parText:r.parseMessage(o[s-1]),signalType:r.LINETYPE.PAR_AND},o[s]]);break;case 48:this.$=o[s-3].concat([{type:"else",altText:r.parseMessage(o[s-1]),signalType:r.LINETYPE.ALT_ELSE},o[s]]);break;case 49:case 54:o[s-3].draw="participant",o[s-3].type="addParticipant",o[s-3].description=r.parseMessage(o[s-1]),this.$=o[s-3];break;case 50:case 55:o[s-1].draw="participant",o[s-1].type="addParticipant",this.$=o[s-1];break;case 51:case 56:o[s-3].draw="actor",o[s-3].type="addParticipant",o[s-3].description=r.parseMessage(o[s-1]),this.$=o[s-3];break;case 52:case 57:o[s-1].draw="actor",o[s-1].type="addParticipant",this.$=o[s-1];break;case 53:o[s-1].type="destroyParticipant",this.$=o[s-1];break;case 58:this.$=[o[s-1],{type:"addNote",placement:o[s-2],actor:o[s-1].actor,text:o[s]}];break;case 59:o[s-2]=[].concat(o[s-1],o[s-1]).slice(0,2),o[s-2][0]=o[s-2][0].actor,o[s-2][1]=o[s-2][1].actor,this.$=[o[s-1],{type:"addNote",placement:r.PLACEMENT.OVER,actor:o[s-2].slice(0,2),text:o[s]}];break;case 60:this.$=[o[s-1],{type:"addLinks",actor:o[s-1].actor,text:o[s]}];break;case 61:this.$=[o[s-1],{type:"addALink",actor:o[s-1].actor,text:o[s]}];break;case 62:this.$=[o[s-1],{type:"addProperties",actor:o[s-1].actor,text:o[s]}];break;case 63:this.$=[o[s-1],{type:"addDetails",actor:o[s-1].actor,text:o[s]}];break;case 66:this.$=[o[s-2],o[s]];break;case 68:this.$=r.PLACEMENT.LEFTOF;break;case 69:this.$=r.PLACEMENT.RIGHTOF;break;case 70:this.$=[o[s-4],o[s-1],{type:"addMessage",from:o[s-4].actor,to:o[s-1].actor,signalType:o[s-3],msg:o[s],activate:!0},{type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:o[s-1].actor}];break;case 71:this.$=[o[s-4],o[s-1],{type:"addMessage",from:o[s-4].actor,to:o[s-1].actor,signalType:o[s-3],msg:o[s]},{type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:o[s-4].actor}];break;case 72:this.$=[o[s-4],o[s-1],{type:"addMessage",from:o[s-4].actor,to:o[s-1].actor,signalType:o[s-3],msg:o[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:o[s-1].actor}];break;case 73:this.$=[o[s-4],o[s-1],{type:"addMessage",from:o[s-4].actor,to:o[s-1].actor,signalType:o[s-2],msg:o[s],activate:!1,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[s-4].actor}];break;case 74:this.$=[o[s-5],o[s-1],{type:"addMessage",from:o[s-5].actor,to:o[s-1].actor,signalType:o[s-3],msg:o[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:o[s-1].actor},{type:"centralConnectionReverse",signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[s-5].actor}];break;case 75:this.$=[o[s-3],o[s-1],{type:"addMessage",from:o[s-3].actor,to:o[s-1].actor,signalType:o[s-2],msg:o[s]}];break;case 76:this.$={type:"addParticipant",actor:o[s-1],config:o[s]};break;case 77:this.$=o[s-1].trim();break;case 78:this.$={type:"addParticipant",actor:o[s]};break;case 79:this.$=r.LINETYPE.SOLID_OPEN;break;case 80:this.$=r.LINETYPE.DOTTED_OPEN;break;case 81:this.$=r.LINETYPE.SOLID;break;case 82:this.$=r.LINETYPE.SOLID_TOP;break;case 83:this.$=r.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=r.LINETYPE.STICK_TOP;break;case 85:this.$=r.LINETYPE.STICK_BOTTOM;break;case 86:this.$=r.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=r.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=r.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=r.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=r.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=r.LINETYPE.DOTTED;break;case 100:this.$=r.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=r.LINETYPE.SOLID_CROSS;break;case 102:this.$=r.LINETYPE.DOTTED_CROSS;break;case 103:this.$=r.LINETYPE.SOLID_POINT;break;case 104:this.$=r.LINETYPE.DOTTED_POINT;break;case 105:this.$=r.parseMessage(o[s].trim().substring(1))}},"anonymous"),table:[{3:1,4:t,5:n,6:r},{1:[3]},{3:5,4:t,5:n,6:r},{3:6,4:t,5:n,6:r},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:a,8:8,9:10,10:s,13:13,14:l,15:c,18:16,19:u,22:h,23:41,24:d,25:20,26:21,27:22,28:23,29:24,30:p,31:f,32:g,34:m,36:O,37:A,38:y,39:v,40:b,42:x,44:w,45:k,47:S,51:T,53:$,54:_,56:C,61:Q,62:P,63:E,64:R,73:B},e(I,[2,5]),{9:48,13:13,14:l,15:c,18:16,19:u,22:h,23:41,24:d,25:20,26:21,27:22,28:23,29:24,30:p,31:f,32:g,34:m,36:O,37:A,38:y,39:v,40:b,42:x,44:w,45:k,47:S,51:T,53:$,54:_,56:C,61:Q,62:P,63:E,64:R,73:B},e(I,[2,7]),e(I,[2,8]),e(I,[2,9]),e(I,[2,15]),{13:49,51:T,53:$,54:_},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:B},{23:56,73:B},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(I,[2,30]),e(I,[2,31]),{33:[1,62]},{35:[1,63]},e(I,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:L},{23:75,55:76,73:L},{23:77,73:B},{69:78,72:[1,79],78:D,79:M,80:N,81:X,82:F,83:U,84:z,85:q,86:V,87:W,88:j,89:Y,90:Z,91:G,92:H,93:K,94:J,95:ee,96:te,97:ne,98:re,99:ie,100:oe,101:ae,102:se,103:le},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:B},{23:111,73:B},{23:112,73:B},{23:113,73:B},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],ce),e(I,[2,6]),e(I,[2,16]),e(ue,[2,10],{11:114}),e(I,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(I,[2,22]),{5:[1,118]},{5:[1,119]},e(I,[2,25]),e(I,[2,26]),e(I,[2,27]),e(I,[2,28]),e(I,[2,29]),e(I,[2,32]),e(I,[2,33]),e(he,i,{7:120}),e(he,i,{7:121}),e(he,i,{7:122}),e(de,i,{41:123,7:124}),e(pe,i,{43:125,7:126}),e(pe,i,{7:126,43:127}),e(fe,i,{46:128,7:129}),e(he,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(ge,ce,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:B},{69:146,78:D,79:M,80:N,81:X,82:F,83:U,84:z,85:q,86:V,87:W,88:j,89:Y,90:Z,91:G,92:H,93:K,94:J,95:ee,96:te,97:ne,98:re,99:ie,100:oe,101:ae,102:se,103:le},e(me,[2,79]),e(me,[2,80]),e(me,[2,81]),e(me,[2,82]),e(me,[2,83]),e(me,[2,84]),e(me,[2,85]),e(me,[2,86]),e(me,[2,87]),e(me,[2,88]),e(me,[2,89]),e(me,[2,90]),e(me,[2,91]),e(me,[2,92]),e(me,[2,93]),e(me,[2,94]),e(me,[2,95]),e(me,[2,96]),e(me,[2,97]),e(me,[2,98]),e(me,[2,99]),e(me,[2,100]),e(me,[2,101]),e(me,[2,102]),e(me,[2,103]),e(me,[2,104]),{23:147,73:B},{23:149,60:148,73:B},{73:[2,68]},{73:[2,69]},{58:150,104:Oe},{58:152,104:Oe},{58:153,104:Oe},{58:154,104:Oe},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:T,53:$,54:_},{5:[1,160]},e(I,[2,20]),e(I,[2,21]),e(I,[2,23]),e(I,[2,24]),{4:o,5:a,8:8,9:10,10:s,13:13,14:l,15:c,17:[1,161],18:16,19:u,22:h,23:41,24:d,25:20,26:21,27:22,28:23,29:24,30:p,31:f,32:g,34:m,36:O,37:A,38:y,39:v,40:b,42:x,44:w,45:k,47:S,51:T,53:$,54:_,56:C,61:Q,62:P,63:E,64:R,73:B},{4:o,5:a,8:8,9:10,10:s,13:13,14:l,15:c,17:[1,162],18:16,19:u,22:h,23:41,24:d,25:20,26:21,27:22,28:23,29:24,30:p,31:f,32:g,34:m,36:O,37:A,38:y,39:v,40:b,42:x,44:w,45:k,47:S,51:T,53:$,54:_,56:C,61:Q,62:P,63:E,64:R,73:B},{4:o,5:a,8:8,9:10,10:s,13:13,14:l,15:c,17:[1,163],18:16,19:u,22:h,23:41,24:d,25:20,26:21,27:22,28:23,29:24,30:p,31:f,32:g,34:m,36:O,37:A,38:y,39:v,40:b,42:x,44:w,45:k,47:S,51:T,53:$,54:_,56:C,61:Q,62:P,63:E,64:R,73:B},{17:[1,164]},{4:o,5:a,8:8,9:10,10:s,13:13,14:l,15:c,17:[2,47],18:16,19:u,22:h,23:41,24:d,25:20,26:21,27:22,28:23,29:24,30:p,31:f,32:g,34:m,36:O,37:A,38:y,39:v,40:b,42:x,44:w,45:k,47:S,50:[1,165],51:T,53:$,54:_,56:C,61:Q,62:P,63:E,64:R,73:B},{17:[1,166]},{4:o,5:a,8:8,9:10,10:s,13:13,14:l,15:c,17:[2,45],18:16,19:u,22:h,23:41,24:d,25:20,26:21,27:22,28:23,29:24,30:p,31:f,32:g,34:m,36:O,37:A,38:y,39:v,40:b,42:x,44:w,45:k,47:S,49:[1,167],51:T,53:$,54:_,56:C,61:Q,62:P,63:E,64:R,73:B},{17:[1,168]},{17:[1,169]},{4:o,5:a,8:8,9:10,10:s,13:13,14:l,15:c,17:[2,43],18:16,19:u,22:h,23:41,24:d,25:20,26:21,27:22,28:23,29:24,30:p,31:f,32:g,34:m,36:O,37:A,38:y,39:v,40:b,42:x,44:w,45:k,47:S,48:[1,170],51:T,53:$,54:_,56:C,61:Q,62:P,63:E,64:R,73:B},{4:o,5:a,8:8,9:10,10:s,13:13,14:l,15:c,17:[1,171],18:16,19:u,22:h,23:41,24:d,25:20,26:21,27:22,28:23,29:24,30:p,31:f,32:g,34:m,36:O,37:A,38:y,39:v,40:b,42:x,44:w,45:k,47:S,51:T,53:$,54:_,56:C,61:Q,62:P,63:E,64:R,73:B},{16:[1,172]},e(I,[2,50]),{16:[1,173]},e(I,[2,55]),e(ge,[2,76]),{76:[1,174]},{16:[1,175]},e(I,[2,52]),{16:[1,176]},e(I,[2,57]),e(I,[2,53]),{23:177,73:B},{23:178,73:B},{23:179,73:B},{58:180,104:Oe},{23:181,72:[1,182],73:B},{58:183,104:Oe},{58:184,104:Oe},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(I,[2,17]),e(ue,[2,11]),{13:186,51:T,53:$,54:_},e(ue,[2,13]),e(ue,[2,14]),e(I,[2,19]),e(I,[2,35]),e(I,[2,36]),e(I,[2,37]),e(I,[2,38]),{16:[1,187]},e(I,[2,39]),{16:[1,188]},e(I,[2,40]),e(I,[2,41]),{16:[1,189]},e(I,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:Oe},{58:196,104:Oe},{58:197,104:Oe},{5:[2,75]},{58:198,104:Oe},{23:199,73:B},{5:[2,58]},{5:[2,59]},{23:200,73:B},e(ue,[2,12]),e(de,i,{7:124,41:201}),e(pe,i,{7:126,43:202}),e(fe,i,{7:129,46:203}),e(I,[2,49]),e(I,[2,54]),e(ge,[2,77]),e(I,[2,51]),e(I,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:Oe},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:hRe(function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},"parseError"),parse:hRe(function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),h=Object.create(this.lexer),d={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d.yy[p]=this.yy[p]);h.setInput(e,d.yy),d.yy.lexer=h,d.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var f=h.yylloc;o.push(f);var g=h.options&&h.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||h.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,hRe(function(e){n.length=n.length-2*e,i.length=i.length-e,o.length=o.length-e},"popStack"),hRe(m,"lex");for(var O,A,y,v,b,x,w,k,S={};;){if(A=n[n.length-1],this.defaultActions[A]?y=this.defaultActions[A]:(null==O&&(O=m()),y=a[A]&&a[A][O]),void 0===y||!y.length||!y[0]){var T="";for(b in k=[],a[A])this.terminals_[b]&&b>2&&k.push("'"+this.terminals_[b]+"'");T=h.showPosition?"Parse error on line "+(l+1)+":\n"+h.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[O]||O)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==O?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[O]||O,line:h.yylineno,loc:f,expected:k})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+O);switch(y[0]){case 1:n.push(O),i.push(h.yytext),o.push(h.yylloc),n.push(y[1]),O=null,c=h.yyleng,s=h.yytext,l=h.yylineno,f=h.yylloc;break;case 2:if(x=this.productions_[y[1]][1],S.$=i[i.length-x],S._$={first_line:o[o.length-(x||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(x||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(x||1)].range[0],o[o.length-1].range[1]]),void 0!==(v=this.performAction.apply(S,[s,c,l,d.yy,y[1],i,o].concat(u))))return v;x&&(n=n.slice(0,-1*x*2),i=i.slice(0,-1*x),o=o.slice(0,-1*x)),n.push(this.productions_[y[1]][0]),i.push(S.$),o.push(S._$),w=a[n[n.length-2]][n[n.length-1]],n.push(w);break;case 3:return!0}}return!0},"parse")},ye=function(){var e={EOF:1,parseError:hRe(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:hRe(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:hRe(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:hRe(function(e){var t=e.length,n=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 r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:hRe(function(){return this._more=!0,this},"more"),reject:hRe(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:hRe(function(e){this.unput(this.match.slice(e))},"less"),pastInput:hRe(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:hRe(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:hRe(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:hRe(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.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],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},"test_match"),next:hRe(function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&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:hRe(function(){var e=this.next();return e||this.lex()},"lex"),begin:hRe(function(e){this.conditionStack.push(e)},"begin"),popState:hRe(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:hRe(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:hRe(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:hRe(function(e){this.begin(e)},"pushState"),stateStackSize:hRe(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:hRe(function(e,t,n,r){switch(n){case 0:case 59:case 92:return 5;case 1:case 2:case 3:case 4:case 5:break;case 6:return 20;case 7:return this.begin("CONFIG"),75;case 8:return 76;case 9:return this.popState(),this.begin("ALIAS"),77;case 10:return this.popState(),this.popState(),77;case 11:case 60:return t.yytext=t.yytext.trim(),73;case 12:return t.yytext=t.yytext.trim(),this.begin("ALIAS"),73;case 13:return t.yytext=t.yytext.trim(),this.popState(),73;case 14:return this.popState(),10;case 15:return t.yytext=t.yytext.trim(),this.popState(),10;case 16:return this.begin("LINE"),15;case 17:return this.begin("ID"),51;case 18:return this.begin("ID"),53;case 19:return 14;case 20:return this.begin("ID"),54;case 21:return this.popState(),this.popState(),this.begin("LINE"),52;case 22:return this.popState(),this.popState(),5;case 23:return this.begin("LINE"),37;case 24:return this.begin("LINE"),38;case 25:return this.begin("LINE"),39;case 26:return this.begin("LINE"),40;case 27:return this.begin("LINE"),50;case 28:return this.begin("LINE"),42;case 29:return this.begin("LINE"),44;case 30:return this.begin("LINE"),49;case 31:return this.begin("LINE"),45;case 32:return this.begin("LINE"),48;case 33:return this.begin("LINE"),47;case 34:return this.popState(),16;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin("ID"),22;case 45:return this.begin("ID"),24;case 46:return 30;case 47:return 31;case 48:return this.begin("acc_title"),32;case 49:return this.popState(),"acc_title_value";case 50:return this.begin("acc_descr"),34;case 51:return this.popState(),"acc_descr_value";case 52:this.begin("acc_descr_multiline");break;case 53:this.popState();break;case 54:return"acc_descr_multiline_value";case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 93:return 10}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:[^\n]+)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,52,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],inclusive:!0}}};return e}();function ve(){this.yy={}}return Ae.lexer=ye,hRe(ve,"Parser"),ve.prototype=Ae,Ae.Parser=ve,new ve}();TTn.parser=TTn;var $Tn=TTn,_Tn={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},CTn={FILLED:0,OPEN:1},QTn={LEFTOF:0,RIGHTOF:1,OVER:2},PTn="actor",ETn="control",RTn="database",BTn="entity",ITn=(Ln=class{constructor(){this.state=new zzt(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=VIe,this.setAccDescription=jIe,this.setDiagramTitle=ZIe,this.getAccTitle=WIe,this.getAccDescription=YIe,this.getDiagramTitle=GIe,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(JIe().wrap),this.LINETYPE=_Tn,this.ARROWTYPE=CTn,this.PLACEMENT=QTn}addBox(e){this.state.records.boxes.push({name:e.text,wrap:e.wrap??this.autoWrap(),fill:e.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(e,t,n,r,i){let o,a=this.state.records.currentBox;if(void 0!==i){let e;e=i.includes("\n")?i+"\n":"{\n"+i+"\n}",o=H1e(e,{schema:Y1e})}r=(null==o?void 0:o.type)??r,!(null==o?void 0:o.alias)||n&&n.text!==t||(n={text:o.alias,wrap:null==n?void 0:n.wrap,type:r});const s=this.state.records.actors.get(e);if(s){if(this.state.records.currentBox&&s.box&&this.state.records.currentBox!==s.box)throw new Error(`A same participant should only be defined in one Box: ${s.name} can't be in '${s.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(a=s.box?s.box:this.state.records.currentBox,s.box=a,s&&t===s.name&&null==n)return}if(null==(null==n?void 0:n.text)&&(n={text:t,type:r}),null!=r&&null!=n.text||(n={text:t,type:r}),this.state.records.actors.set(e,{box:a,name:t,description:n.text,wrap:n.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:r??"participant"}),this.state.records.prevActor){const t=this.state.records.actors.get(this.state.records.prevActor);t&&(t.nextActor=e)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(e),this.state.records.prevActor=e}activationCount(e){let t,n=0;if(!e)return 0;for(t=0;t<this.state.records.messages.length;t++)this.state.records.messages[t].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[t].from===e&&n++,this.state.records.messages[t].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[t].from===e&&n--;return n}addMessage(e,t,n,r){this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:t,message:n.text,wrap:n.wrap??this.autoWrap(),answer:r})}addSignal(e,t,n,r,i=!1,o){if(r===this.LINETYPE.ACTIVE_END){if(this.activationCount(e??"")<1){const t=new Error("Trying to inactivate an inactive participant ("+e+")");throw t.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},t}}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:t,message:(null==n?void 0:n.text)??"",wrap:(null==n?void 0:n.wrap)??this.autoWrap(),type:r,activate:i,centralConnection:o??0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(e=>e.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(e){return this.state.records.actors.get(e)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(e){this.state.records.wrapEnabled=e}extractWrap(e){if(void 0===e)return{};e=e.trim();const t=null!==/^:?wrap:/.exec(e)||null===/^:?nowrap:/.exec(e)&&void 0;return{cleanedText:(void 0===t?e:e.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:t}}autoWrap(){var e;return void 0!==this.state.records.wrapEnabled?this.state.records.wrapEnabled:(null==(e=JIe().sequence)?void 0:e.wrap)??!1}clear(){this.state.reset(),qIe()}parseMessage(e){const t=e.trim(),{wrap:n,cleanedText:r}=this.extractWrap(t),i={text:r,wrap:n};return ORe.debug(`parseMessage: ${JSON.stringify(i)}`),i}parseBoxData(e){const t=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e);let n=(null==t?void 0:t[1])?t[1].trim():"transparent",r=(null==t?void 0:t[2])?t[2].trim():void 0;if(null==window?void 0:window.CSS)window.CSS.supports("color",n)||(n="transparent",r=e.trim());else{const t=(new Option).style;t.color=n,t.color!==n&&(n="transparent",r=e.trim())}const{wrap:i,cleanedText:o}=this.extractWrap(r);return{text:o?uIe(o,JIe()):void 0,color:n,wrap:i}}addNote(e,t,n){const r={actor:e,placement:t,message:n.text,wrap:n.wrap??this.autoWrap()},i=[].concat(e,e);this.state.records.notes.push(r),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:i[0],to:i[1],message:n.text,wrap:n.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:t})}addLinks(e,t){const n=this.getActor(e);try{let e=uIe(t.text,JIe());e=e.replace(/=/g,"="),e=e.replace(/&/g,"&");const r=JSON.parse(e);this.insertLinks(n,r)}catch(jk){ORe.error("error while parsing actor link text",jk)}}addALink(e,t){const n=this.getActor(e);try{const e={};let r=uIe(t.text,JIe());const i=r.indexOf("@");r=r.replace(/=/g,"="),r=r.replace(/&/g,"&");const o=r.slice(0,i-1).trim(),a=r.slice(i+1).trim();e[o]=a,this.insertLinks(n,e)}catch(jk){ORe.error("error while parsing actor link text",jk)}}insertLinks(e,t){if(null==e.links)e.links=t;else for(const n in t)e.links[n]=t[n]}addProperties(e,t){const n=this.getActor(e);try{const e=uIe(t.text,JIe()),r=JSON.parse(e);this.insertProperties(n,r)}catch(jk){ORe.error("error while parsing actor properties text",jk)}}insertProperties(e,t){if(null==e.properties)e.properties=t;else for(const n in t)e.properties[n]=t[n]}boxEnd(){this.state.records.currentBox=void 0}addDetails(e,t){const n=this.getActor(e),r=document.getElementById(t.text);try{const e=r.innerHTML,t=JSON.parse(e);t.properties&&this.insertProperties(n,t.properties),t.links&&this.insertLinks(n,t.links)}catch(jk){ORe.error("error while parsing actor details text",jk)}}getActorProperty(e,t){if(void 0!==(null==e?void 0:e.properties))return e.properties[t]}apply(e){if(Array.isArray(e))e.forEach(e=>{this.apply(e)});else switch(e.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:e.sequenceIndex,step:e.sequenceIndexStep,visible:e.sequenceVisible},wrap:!1,type:e.signalType});break;case"addParticipant":this.addActor(e.actor,e.actor,e.description,e.draw,e.config);break;case"createParticipant":if(this.state.records.actors.has(e.actor))throw new Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");this.state.records.lastCreated=e.actor,this.addActor(e.actor,e.actor,e.description,e.draw,e.config),this.state.records.createdActors.set(e.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=e.actor,this.state.records.destroyedActors.set(e.actor,this.state.records.messages.length);break;case"activeStart":case"centralConnection":case"centralConnectionReverse":case"activeEnd":this.addSignal(e.actor,void 0,void 0,e.signalType);break;case"addNote":this.addNote(e.actor,e.placement,e.text);break;case"addLinks":this.addLinks(e.actor,e.text);break;case"addALink":this.addALink(e.actor,e.text);break;case"addProperties":this.addProperties(e.actor,e.text);break;case"addDetails":this.addDetails(e.actor,e.text);break;case"addMessage":if(this.state.records.lastCreated){if(e.to!==this.state.records.lastCreated)throw new Error("The created participant "+this.state.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");this.state.records.lastCreated=void 0}else if(this.state.records.lastDestroyed){if(e.to!==this.state.records.lastDestroyed&&e.from!==this.state.records.lastDestroyed)throw new Error("The destroyed participant "+this.state.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");this.state.records.lastDestroyed=void 0}this.addSignal(e.from,e.to,e.msg,e.signalType,e.activate,e.centralConnection);break;case"boxStart":this.addBox(e.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,e.loopText,e.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"rectStart":this.addSignal(void 0,void 0,e.color,e.signalType);break;case"optStart":this.addSignal(void 0,void 0,e.optText,e.signalType);break;case"altStart":case"else":this.addSignal(void 0,void 0,e.altText,e.signalType);break;case"setAccTitle":VIe(e.text);break;case"parStart":case"and":this.addSignal(void 0,void 0,e.parText,e.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,e.criticalText,e.signalType);break;case"option":this.addSignal(void 0,void 0,e.optionText,e.signalType);break;case"breakStart":this.addSignal(void 0,void 0,e.breakText,e.signalType)}}getConfig(){return JIe().sequence}},hRe(Ln,"SequenceDB"),Ln),LTn=hRe(e=>{const t=e.dropShadow??"none",{look:n}=JIe();return`.actor {\n stroke: ${e.actorBorder};\n fill: ${e.actorBkg};\n stroke-width: ${e.strokeWidth??1};\n }\n\n rect.actor.outer-path[data-look="neo"] {\n filter: ${t};\n }\n\n rect.note[data-look="neo"] {\n stroke:${e.noteBorderColor};\n fill:${e.noteBkgColor};\n filter: ${t};\n }\n\n text.actor > tspan {\n fill: ${e.actorTextColor};\n stroke: none;\n }\n\n .actor-line {\n stroke: ${e.actorLineColor};\n }\n\n .innerArc {\n stroke-width: 1.5;\n stroke-dasharray: none;\n }\n\n .messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: ${e.signalColor};\n }\n\n .messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: ${e.signalColor};\n }\n\n [id$="-arrowhead"] path {\n fill: ${e.signalColor};\n stroke: ${e.signalColor};\n }\n\n .sequenceNumber {\n fill: ${e.sequenceNumberColor};\n }\n\n [id$="-sequencenumber"] {\n fill: ${e.signalColor};\n }\n\n [id$="-crosshead"] path {\n fill: ${e.signalColor};\n stroke: ${e.signalColor};\n }\n\n .messageText {\n fill: ${e.signalTextColor};\n stroke: none;\n }\n\n .labelBox {\n stroke: ${e.labelBoxBorderColor};\n fill: ${e.labelBoxBkgColor};\n filter: ${"neo"===n?t:"none"};\n }\n\n .labelText, .labelText > tspan {\n fill: ${e.labelTextColor};\n stroke: none;\n }\n\n .loopText, .loopText > tspan {\n fill: ${e.loopTextColor};\n stroke: none;\n }\n\n .sectionTitle, .sectionTitle > tspan {\n fill: ${e.loopTextColor};\n stroke: none;\n }\n\n .loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: ${e.labelBoxBorderColor};\n fill: ${e.labelBoxBorderColor};\n }\n\n .note {\n //stroke: #decc93;\n stroke: ${e.noteBorderColor};\n fill: ${e.noteBkgColor};\n }\n\n .noteText, .noteText > tspan {\n fill: ${e.noteTextColor};\n stroke: none;\n ${e.noteFontWeight?`font-weight: ${e.noteFontWeight};`:""}\n }\n\n .activation0 {\n fill: ${e.activationBkgColor};\n stroke: ${e.activationBorderColor};\n }\n\n .activation1 {\n fill: ${e.activationBkgColor};\n stroke: ${e.activationBorderColor};\n }\n\n .activation2 {\n fill: ${e.activationBkgColor};\n stroke: ${e.activationBorderColor};\n }\n\n .actorPopupMenu {\n position: absolute;\n }\n\n .actorPopupMenuPanel {\n position: absolute;\n fill: ${e.actorBkg};\n box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);\n filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));\n}\n .actor-man circle, line {\n fill: ${e.actorBkg};\n stroke-width: 2px;\n }\n\n g rect.rect {\n filter: ${t};\n stroke: ${e.nodeBorder};\n }\n`},"getStyles"),DTn="actor-top",MTn="actor-bottom",NTn="actor-box",XTn="actor-man",FTn=new Set(["redux-color","redux-dark-color"]),UTn=hRe(function(e,t){const n=bFt(e,t);return"neo"===NBe().look&&n.attr("data-look","neo"),n},"drawRect"),zTn=hRe(function(e,t,n,r,i){if(void 0===t.links||null===t.links||0===Object.keys(t.links).length)return{height:0,width:0};const o=t.links,a=t.actorCnt,s=t.rectData;var l="none";i&&(l="block !important");const c=e.append("g");c.attr("id","actor"+a+"_popup"),c.attr("class","actorPopupMenu"),c.attr("display",l);var u="";void 0!==s.class&&(u=" "+s.class);let h=s.width>n?s.width:n;const d=c.append("rect");if(d.attr("class","actorPopupMenuPanel"+u),d.attr("x",s.x),d.attr("y",s.height),d.attr("fill",s.fill),d.attr("stroke",s.stroke),d.attr("width",h),d.attr("height",s.height),d.attr("rx",s.rx),d.attr("ry",s.ry),null!=o){var p=20;for(let e in o){var f=c.append("a"),g=vVe.sanitizeUrl(o[e]);f.attr("xlink:href",g),f.attr("target","_blank"),b$n(r)(e,f,s.x+10,s.height+p,h,20,{class:"actor"},r),p+=30}}return d.attr("height",p),{height:s.height+p,width:h}},"drawPopup"),qTn=hRe(function(e){return"var pu = document.getElementById('"+e+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),VTn=hRe(async function(e,t,n=null){let r=e.append("foreignObject");const i=await _Ie(t.text,NBe()),o=r.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();if(r.attr("height",Math.round(o.height)).attr("width",Math.round(o.width)),"noteText"===t.class){const n=e.node().firstChild;n.setAttribute("height",o.height+2*t.textMargin);const i=n.getBBox();r.attr("x",Math.round(i.x+i.width/2-o.width/2)).attr("y",Math.round(i.y+i.height/2-o.height/2))}else if(n){let{startx:e,stopx:i,starty:a}=n;if(e>i){const t=e;e=i,i=t}r.attr("x",Math.round(e+Math.abs(e-i)/2-o.width/2)),"loopText"===t.class?r.attr("y",Math.round(a)):r.attr("y",Math.round(a-o.height))}return[r]},"drawKatex"),WTn=hRe(function(e,t){let n=0,r=0;const i=t.text.split(CIe.lineBreakRegex),[o,a]=WWe(t.fontSize);let s=[],l=0,c=hRe(()=>t.y,"yfunc");if(void 0!==t.valign&&void 0!==t.textMargin&&t.textMargin>0)switch(t.valign){case"top":case"start":c=hRe(()=>Math.round(t.y+t.textMargin),"yfunc");break;case"middle":case"center":c=hRe(()=>Math.round(t.y+(n+r+t.textMargin)/2),"yfunc");break;case"bottom":case"end":c=hRe(()=>Math.round(t.y+(n+r+2*t.textMargin)-t.textMargin),"yfunc")}if(void 0!==t.anchor&&void 0!==t.textMargin&&void 0!==t.width)switch(t.anchor){case"left":case"start":t.x=Math.round(t.x+t.textMargin),t.anchor="start",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"middle":case"center":t.x=Math.round(t.x+t.width/2),t.anchor="middle",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"right":case"end":t.x=Math.round(t.x+t.width-t.textMargin),t.anchor="end",t.dominantBaseline="middle",t.alignmentBaseline="middle"}for(let[u,h]of i.entries()){void 0!==t.textMargin&&0===t.textMargin&&void 0!==o&&(l=u*o);const i=e.append("text");i.attr("x",t.x),i.attr("y",c()),void 0!==t.anchor&&i.attr("text-anchor",t.anchor).attr("dominant-baseline",t.dominantBaseline).attr("alignment-baseline",t.alignmentBaseline),void 0!==t.fontFamily&&i.style("font-family",t.fontFamily),void 0!==a&&i.style("font-size",a),void 0!==t.fontWeight&&i.style("font-weight",t.fontWeight),void 0!==t.fill&&i.attr("fill",t.fill),void 0!==t.class&&i.attr("class",t.class),void 0!==t.dy?i.attr("dy",t.dy):0!==l&&i.attr("dy",l);const d=h||"";if(t.tspan){const e=i.append("tspan");e.attr("x",t.x),void 0!==t.fill&&e.attr("fill",t.fill),e.text(d)}else i.text(d);void 0!==t.valign&&void 0!==t.textMargin&&t.textMargin>0&&(r+=(i._groups||i)[0][0].getBBox().height,n=r),s.push(i)}return s},"drawText"),jTn=hRe(function(e,t){function n(e,t,n,r,i){return e+","+t+" "+(e+n)+","+t+" "+(e+n)+","+(t+r-i)+" "+(e+n-1.2*i)+","+(t+r)+" "+e+","+(t+r)}hRe(n,"genPoints");const r=e.append("polygon");return r.attr("points",n(t.x,t.y,t.width,t.height,7)),r.attr("class","labelBox"),t.y=t.y+t.height/2,WTn(e,t),r},"drawLabel"),YTn=-1,ZTn=hRe((e,t,n,r)=>{e.select&&n.forEach(n=>{const i=t.get(n),o=e.select("#actor"+i.actorCnt);!r.mirrorActors&&i.stopy?o.attr("y2",i.stopy+i.height/2):r.mirrorActors&&o.attr("y2",i.stopy)})},"fixLifeLineHeights"),GTn=hRe(function(e,t,n,r,i){var o,a;const s=r?t.stopy:t.starty,l=t.x+t.width/2,c=s+t.height,{look:u,theme:h,themeVariables:d}=n,{bkgColorArray:p,borderColorArray:f}=d,g=e.append("g").lower();var m=g;r||(YTn++,Object.keys(t.links||{}).length&&!n.forceMenus&&m.attr("onclick",qTn(`actor${YTn}_popup`)).attr("cursor","pointer"),m.append("line").attr("id","actor"+YTn).attr("x1",l).attr("y1",c).attr("x2",l).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),m=g.append("g"),t.actorCnt=YTn,null!=t.links&&m.attr("id","root-"+YTn),"neo"===u&&m.attr("data-look","neo"));const O=TFt();var A="actor";(null==(o=t.properties)?void 0:o.class)?A=t.properties.class:O.fill="#eaeaea",A+=r?` ${MTn}`:` ${DTn}`,O.x=t.x,O.y=s,O.width=t.width,O.height=t.height,O.class=A,O.rx=3,O.ry=3,O.name=t.name,"neo"===u&&(O.rx=6,O.ry=6);const y=UTn(m,O),v=i.get(t.name)??0;if(FTn.has(h)&&(y.style("stroke",f[v%f.length]),y.style("fill",p[v%f.length])),"neo"===u&&y.attr("filter","url(#drop-shadow)"),t.rectData=O,null==(a=t.properties)?void 0:a.icon){const e=t.properties.icon.trim();"@"===e.charAt(0)?SFt(m,O.x+O.width-20,O.y+10,e.substr(1)):kFt(m,O.x+O.width-20,O.y+10,e)}r||(m.attr("data-et","participant"),m.attr("data-type","participant"),m.attr("data-id",t.name)),v$n(n,SIe(t.description))(t.description,m,O.x,O.y,O.width,O.height,{class:`actor ${NTn}`},n);let b=t.height;if(y.node){const e=y.node().getBBox();t.height=e.height,b=e.height}return b},"drawActorTypeParticipant"),HTn=hRe(function(e,t,n,r,i){var o,a;const s=r?t.stopy:t.starty,l=t.x+t.width/2,c=s+t.height,{look:u,theme:h,themeVariables:d}=n,{bkgColorArray:p,borderColorArray:f}=d,g=e.append("g").lower();var m=g;r||(YTn++,Object.keys(t.links||{}).length&&!n.forceMenus&&m.attr("onclick",qTn(`actor${YTn}_popup`)).attr("cursor","pointer"),m.append("line").attr("id","actor"+YTn).attr("x1",l).attr("y1",c).attr("x2",l).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),m=g.append("g"),t.actorCnt=YTn,null!=t.links&&m.attr("id","root-"+YTn),"neo"===u&&m.attr("data-look","neo"));const O=TFt();var A="actor";(null==(o=t.properties)?void 0:o.class)?A=t.properties.class:O.fill="#eaeaea",A+=r?` ${MTn}`:` ${DTn}`,O.x=t.x,O.y=s,O.width=t.width,O.height=t.height,O.class=A,O.name=t.name;const y={...O,x:O.x+-6,y:O.y+6,class:"actor"},v=UTn(m,O),b=UTn(m,y);t.rectData=O,"neo"===u&&m.attr("filter","url(#drop-shadow)");const x=i.get(t.name)??0;if(FTn.has(h)&&(v.style("stroke",f[x%f.length]),v.style("fill",p[x%f.length]),b.style("stroke",f[x%f.length]),b.style("fill",p[x%f.length])),null==(a=t.properties)?void 0:a.icon){const e=t.properties.icon.trim();"@"===e.charAt(0)?SFt(m,O.x+O.width-20,O.y+10,e.substr(1)):kFt(m,O.x+O.width-20,O.y+10,e)}v$n(n,SIe(t.description))(t.description,m,O.x-6,O.y+6,O.width,O.height,{class:`actor ${NTn}`},n);let w=t.height;if(v.node){const e=v.node().getBBox();t.height=e.height,w=e.height}return r||(m.attr("data-et","participant"),m.attr("data-type","collections"),m.attr("data-id",t.name)),w},"drawActorTypeCollections"),KTn=hRe(function(e,t,n,r,i){var o,a;const s=r?t.stopy:t.starty,l=t.x+t.width/2,c=s+t.height,{look:u,theme:h,themeVariables:d}=n,{bkgColorArray:p,borderColorArray:f}=d,g=e.append("g").lower();let m=g;r||(YTn++,Object.keys(t.links||{}).length&&!n.forceMenus&&m.attr("onclick",qTn(`actor${YTn}_popup`)).attr("cursor","pointer"),m.append("line").attr("id","actor"+YTn).attr("x1",l).attr("y1",c).attr("x2",l).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),m=g.append("g"),t.actorCnt=YTn,null!=t.links&&m.attr("id","root-"+YTn),"neo"===u&&m.attr("data-look","neo"));const O=TFt();let A="actor";(null==(o=t.properties)?void 0:o.class)?A=t.properties.class:O.fill="#eaeaea",A+=r?` ${MTn}`:` ${DTn}`,m.attr("class",A),O.x=t.x,O.y=s,O.width=t.width,O.height=t.height,O.name=t.name;const y=O.height/2,v=y/(2.5+O.height/50),b=m.append("g"),x=m.append("g"),w=`M ${O.x},${O.y+y}\n a ${v},${y} 0 0 0 0,${O.height}\n h ${O.width-2*v}\n a ${v},${y} 0 0 0 0,-${O.height}\n Z\n `;b.append("path").attr("d",w),x.append("path").attr("d",`M ${O.x},${O.y+y}\n a ${v},${y} 0 0 0 0,${O.height}`),b.attr("transform",`translate(${v}, ${-O.height/2})`),x.attr("transform",`translate(${O.width-v}, ${-O.height/2})`),t.rectData=O,"neo"===u&&b.attr("filter","url(#drop-shadow)");const k=i.get(t.name)??0;if(FTn.has(h)&&(b.style("stroke",f[k%f.length]),b.style("fill",p[k%f.length]),x.style("stroke",f[k%f.length]),x.style("fill",p[k%f.length])),null==(a=t.properties)?void 0:a.icon){const e=t.properties.icon.trim(),n=O.x+O.width-20,r=O.y+10;"@"===e.charAt(0)?SFt(m,n,r,e.substr(1)):kFt(m,n,r,e)}v$n(n,SIe(t.description))(t.description,m,O.x,O.y,O.width,O.height,{class:`actor ${NTn}`},n);let S=t.height;const T=b.select("path:last-child");if(T.node()){const e=T.node().getBBox();t.height=e.height,S=e.height}return r||(m.attr("data-et","participant"),m.attr("data-type","queue"),m.attr("data-id",t.name)),S},"drawActorTypeQueue"),JTn=hRe(function(e,t,n,r,i,o){var a;const s=r?t.stopy:t.starty,l=t.x+t.width/2,c=s+75,{look:u,theme:h,themeVariables:d}=n,{bkgColorArray:p,borderColorArray:f,actorBorder:g,actorBkg:m}=d,O=e.append("g").lower();r||(YTn++,O.append("line").attr("id","actor"+YTn).attr("x1",l).attr("y1",c).attr("x2",l).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),t.actorCnt=YTn);const A=e.append("g");let y=XTn;y+=r?` ${MTn}`:` ${DTn}`,A.attr("class",y),A.attr("name",t.name);const v=TFt();v.x=t.x,v.y=s,v.fill="#eaeaea",v.width=t.width,v.height=t.height,v.class="actor";const b=t.x+t.width/2,x=s+32;A.append("defs").append("marker").attr("id",i+"-filled-head-control").attr("refX",11).attr("refY",5.8).attr("markerWidth",20).attr("markerHeight",28).attr("orient","172.5").attr("stroke-width",1.2).append("path").attr("d","M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"),A.append("circle").attr("cx",b).attr("cy",x).attr("r",22).attr("filter",""+("neo"===u?"url(#drop-shadow)":"")),A.append("line").attr("marker-end","url(#"+i+"-filled-head-control)").attr("transform",`translate(${b}, ${x-22})`);const w=o.get(t.name)??0;FTn.has(h)?(A.style("stroke",f[w%f.length]),A.style("fill",p[w%f.length])):(A.style("stroke",g),A.style("fill",m));const k=A.node().getBBox();return t.height=k.height+2*((null==(a=null==n?void 0:n.sequence)?void 0:a.labelBoxHeight)??0),v$n(n,SIe(t.description))(t.description,A,v.x,v.y+22+(r?5:12),v.width,v.height,{class:`actor ${XTn}`},n),r||(A.attr("data-et","participant"),A.attr("data-type","control"),A.attr("data-id",t.name)),t.height},"drawActorTypeControl"),e$n=hRe(function(e,t,n,r,i){var o;const a=r?t.stopy:t.starty,s=t.x+t.width/2,l=a+75,{look:c,theme:u,themeVariables:h}=n,{bkgColorArray:d,borderColorArray:p}=h,f=e.append("g").lower(),g=e.append("g");let m="actor";m+=r?` ${MTn}`:` ${DTn}`,g.attr("class",m),g.attr("name",t.name);const O=TFt();O.x=t.x,O.y=a,O.fill="#eaeaea",O.width=t.width,O.height=t.height,O.class="actor";const A=t.x+t.width/2,y=a+(r?10:25),v=22;g.append("circle").attr("cx",A).attr("cy",y).attr("r",v).attr("width",t.width).attr("height",t.height),g.append("line").attr("x1",A-v).attr("x2",A+v).attr("y1",y+v).attr("y2",y+v).attr("stroke-width",2),"neo"===c&&g.attr("filter","url(#drop-shadow)");const b=i.get(t.name)??0;FTn.has(u)&&(g.style("stroke",p[b%p.length]),g.style("fill",d[b%p.length]));const x=g.node().getBBox();return t.height=x.height+((null==(o=null==n?void 0:n.sequence)?void 0:o.labelBoxHeight)??0),r||(YTn++,f.append("line").attr("id","actor"+YTn).attr("x1",s).attr("y1",l).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),t.actorCnt=YTn),v$n(n,SIe(t.description))(t.description,g,O.x,O.y+(r?15:30),O.width,O.height,{class:`actor ${XTn}`},n),r?g.attr("transform","translate(0, 22)"):(g.attr("transform","translate(0, 6)"),g.attr("data-et","participant"),g.attr("data-type","entity"),g.attr("data-id",t.name)),t.height},"drawActorTypeEntity"),t$n=hRe(function(e,t,n,r,i){var o;const a=r?t.stopy:t.starty,s=t.x+t.width/2,l=a+t.height+2*n.boxTextMargin,{theme:c,themeVariables:u,look:h}=n,{bkgColorArray:d,borderColorArray:p,actorBorder:f}=u,g=e.append("g").lower();let m=g;r||(YTn++,Object.keys(t.links||{}).length&&!n.forceMenus&&m.attr("onclick",qTn(`actor${YTn}_popup`)).attr("cursor","pointer"),m.append("line").attr("id","actor"+YTn).attr("x1",s).attr("y1",l).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),m=g.append("g"),t.actorCnt=YTn,null!=t.links&&m.attr("id","root-"+YTn),"neo"===h&&m.attr("data-look","neo"));const O=TFt();let A="actor";(null==(o=t.properties)?void 0:o.class)?A=t.properties.class:O.fill="#eaeaea",A+=r?` ${MTn}`:` ${DTn}`,O.x=t.x,O.y=a,O.width=t.width,O.height=t.height,O.class=A,O.name=t.name,O.x=t.x,O.y=a;const y=O.width/3,v=O.width/3,b=y/2,x=b/(2.5+y/50),w=m.append("g");w.attr("class",A);const k=`\n M ${O.x},${O.y+x}\n a ${b},${x} 0 0 0 ${y},0\n a ${b},${x} 0 0 0 -${y},0\n l 0,${v-2*x}\n a ${b},${x} 0 0 0 ${y},0\n l 0,-${v-2*x}\n`;w.append("path").attr("d",k),"neo"===h&&w.attr("filter","url(#drop-shadow)");const S=i.get(t.name)??0;FTn.has(c)?(w.style("stroke",p[S%p.length]),w.style("fill",d[S%p.length])):w.style("stroke",f),w.attr("transform",`translate(${y}, ${x})`),t.rectData=O,v$n(n,SIe(t.description))(t.description,m,O.x,O.y+35,O.width,O.height,{class:`actor ${NTn}`},n);const T=w.select("path:last-child");if(T.node()){const e=T.node().getBBox();t.height=e.height+(n.sequence.labelBoxHeight??0)}return r||(m.attr("data-et","participant"),m.attr("data-type","database"),m.attr("data-id",t.name)),t.height},"drawActorTypeDatabase"),n$n=hRe(function(e,t,n,r,i){const o=r?t.stopy:t.starty,a=t.x+t.width/2,s=o+80,l=e.append("g").lower(),{look:c,theme:u,themeVariables:h}=n,{bkgColorArray:d,borderColorArray:p,actorBorder:f}=h;r||(YTn++,l.append("line").attr("id","actor"+YTn).attr("x1",a).attr("y1",s).attr("x2",a).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),t.actorCnt=YTn);const g=e.append("g");let m=XTn;m+=r?` ${MTn}`:` ${DTn}`,g.attr("class",m),g.attr("name",t.name);const O=TFt();O.x=t.x,O.y=o,O.fill="#eaeaea",O.width=t.width,O.height=t.height,O.class="actor",g.append("line").attr("id","actor-man-torso"+YTn).attr("x1",t.x+t.width/2-55).attr("y1",o+12).attr("x2",t.x+t.width/2-15).attr("y2",o+12),g.append("line").attr("id","actor-man-arms"+YTn).attr("x1",t.x+t.width/2-55).attr("y1",o+2).attr("x2",t.x+t.width/2-55).attr("y2",o+22),g.append("circle").attr("cx",t.x+t.width/2).attr("cy",o+12).attr("r",22),"neo"===c&&g.attr("filter","url(#drop-shadow)");const A=i.get(t.name)??0;FTn.has(u)?(g.style("stroke",p[A%p.length]),g.style("fill",d[A%p.length])):g.style("stroke",f);const y=g.node().getBBox();return t.height=y.height+(n.sequence.labelBoxHeight??0),v$n(n,SIe(t.description))(t.description,g,O.x,O.y+15,O.width,O.height,{class:`actor ${XTn}`},n),g.attr("transform","translate(0,21)"),r||(g.attr("data-et","participant"),g.attr("data-type","boundary"),g.attr("data-id",t.name)),t.height},"drawActorTypeBoundary"),r$n=hRe(function(e,t,n,r,i){const o=r?t.stopy:t.starty,a=t.x+t.width/2,s=o+80,{look:l,theme:c,themeVariables:u}=n,{bkgColorArray:h,borderColorArray:d,actorBorder:p}=u,f=e.append("g").lower();r||(YTn++,f.append("line").attr("id","actor"+YTn).attr("x1",a).attr("y1",s).attr("x2",a).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),t.actorCnt=YTn);const g=e.append("g");let m=XTn;m+=r?` ${MTn}`:` ${DTn}`,g.attr("class",m),g.attr("name",t.name),r||g.attr("data-et","participant").attr("data-type","actor").attr("data-id",t.name);const O="neo"===l?.5:1,A="neo"===l?o+30*(1-O):o;g.append("line").attr("id","actor-man-torso"+YTn).attr("x1",a).attr("y1",A+25*O).attr("x2",a).attr("y2",A+45*O),g.append("line").attr("id","actor-man-arms"+YTn).attr("x1",a-18*O).attr("y1",A+33*O).attr("x2",a+18*O).attr("y2",A+33*O),g.append("line").attr("x1",a-18*O).attr("y1",A+60*O).attr("x2",a).attr("y2",A+45*O),g.append("line").attr("x1",a).attr("y1",A+45*O).attr("x2",a+16*O).attr("y2",A+60*O);const y=g.append("circle");y.attr("cx",t.x+t.width/2),y.attr("cy",A+10*O),y.attr("r",15*O),y.attr("width",t.width*O),y.attr("height",t.height*O);const v=g.node().getBBox();t.height=v.height;const b=TFt();b.x=t.x,b.y=A,b.fill="#eaeaea",b.width=t.width,b.height=t.height/O,b.class="actor",b.rx=3,b.ry=3;const x=i.get(t.name)??0;return FTn.has(c)?(g.style("stroke",d[x%d.length]),g.style("fill",h[x%d.length])):g.style("stroke",p),v$n(n,SIe(t.description))(t.description,g,b.x,A+35*O-("neo"===l?10:0),b.width,b.height,{class:`actor ${XTn}`},n),t.height},"drawActorTypeActor"),i$n=hRe(async function(e,t,n,r,i,o,a){const s=a??new Map([...o.db.getActors().values()].map((e,t)=>[e.name,t]));switch(t.type){case"actor":return await r$n(e,t,n,r,s);case"participant":return await GTn(e,t,n,r,s);case"boundary":return await n$n(e,t,n,r,s);case"control":return await JTn(e,t,n,r,i,s);case"entity":return await e$n(e,t,n,r,s);case"database":return await t$n(e,t,n,r,s);case"collections":return await HTn(e,t,n,r,s);case"queue":return await KTn(e,t,n,r,s)}},"drawActor"),o$n=hRe(function(e,t,n){const r=e.append("g");c$n(r,t),t.name&&v$n(n)(t.name,r,t.x,t.y+n.boxTextMargin+(t.textMaxHeight||0)/2,t.width,0,{class:"text"},n),r.lower()},"drawBox"),a$n=hRe(function(e){return e.append("g")},"anchorElement"),s$n=hRe(function(e,t,n,r,i,o,a){const{theme:s,themeVariables:l}=r,{bkgColorArray:c,borderColorArray:u,mainBkg:h}=l,d=TFt(),p=t.anchored,f=t.actor;d.x=t.startx,d.y=t.starty,d.class="activation"+i%3,d.width=t.stopx-t.startx,d.height=n-t.starty;const g=UTn(p,d),m=(a??new Map([...o.db.getActors().values()].map((e,t)=>[e.name,t]))).get(f)??0;FTn.has(s)&&(g.style("stroke",u[m%u.length]),g.style("fill",c[m%u.length]??h))},"drawActivation"),l$n=hRe(async function(e,t,n,r,i){const{boxMargin:o,boxTextMargin:a,labelBoxHeight:s,labelBoxWidth:l,messageFontFamily:c,messageFontSize:u,messageFontWeight:h}=r,d=e.append("g").attr("data-et","control-structure").attr("data-id","i"+i.id),p=hRe(function(e,t,n,r){return d.append("line").attr("x1",e).attr("y1",t).attr("x2",n).attr("y2",r).attr("class","loopLine")},"drawLoopLine");p(t.startx,t.starty,t.stopx,t.starty),p(t.stopx,t.starty,t.stopx,t.stopy),p(t.startx,t.stopy,t.stopx,t.stopy),p(t.startx,t.starty,t.startx,t.stopy),void 0!==t.sections&&t.sections.forEach(function(e){p(t.startx,e.y,t.stopx,e.y).style("stroke-dasharray","3, 3")});let f=$Ft();f.text=n,f.x=t.startx,f.y=t.starty,f.fontFamily=c,f.fontSize=u,f.fontWeight=h,f.anchor="middle",f.valign="middle",f.tspan=!1,f.width=Math.max(l??0,50),f.height=s+("neo"===r.look?15:0)||20,f.textMargin=a,f.class="labelText",jTn(d,f),f=A$n(),f.text=t.title,f.x=t.startx+l/2+(t.stopx-t.startx)/2,f.y=t.starty+o+a,f.anchor="middle",f.valign="middle",f.textMargin=a,f.class="loopText",f.fontFamily=c,f.fontSize=u,f.fontWeight=h,f.wrap=!0;let g=SIe(f.text)?await VTn(d,f,t):WTn(d,f);if(void 0!==t.sectionTitles)for(const[m,O]of Object.entries(t.sectionTitles))if(O.message){f.text=O.message,f.x=t.startx+(t.stopx-t.startx)/2,f.y=t.sections[m].y+o+a,f.class="sectionTitle",f.anchor="middle",f.valign="middle",f.tspan=!1,f.fontFamily=c,f.fontSize=u,f.fontWeight=h,f.wrap=t.wrap,SIe(f.text)?(t.starty=t.sections[m].y,await VTn(d,f,t)):WTn(d,f);let e=Math.round(g.map(e=>(e._groups||e)[0][0].getBBox().height).reduce((e,t)=>e+t));t.sections[m].height+=e-(o+a)}return t.height=Math.round(t.stopy-t.starty),d},"drawLoop"),c$n=hRe(function(e,t){xFt(e,t)},"drawBackgroundRect"),u$n=hRe(function(e,t){e.append("defs").append("symbol").attr("id",t+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),h$n=hRe(function(e,t){e.append("defs").append("symbol").attr("id",t+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),d$n=hRe(function(e,t){e.append("defs").append("symbol").attr("id",t+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),p$n=hRe(function(e,t){e.append("defs").append("marker").attr("id",t+"-arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M -1 0 L 10 5 L 0 10 z")},"insertArrowHead"),f$n=hRe(function(e,t){e.append("defs").append("marker").attr("id",t+"-filled-head").attr("refX",15.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),g$n=hRe(function(e,t){e.append("defs").append("marker").attr("id",t+"-sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertSequenceNumber"),m$n=hRe(function(e,t){e.append("defs").append("marker").attr("id",t+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},"insertArrowCrossHead"),O$n=hRe(function(e,t){const{theme:n}=t;e.append("defs").append("filter").attr("id","drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",""+("redux"===n||"redux-color"===n?"#000000":"#FFFFFF"))},"insertDropShadow"),A$n=hRe(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},"getTextObj"),y$n=hRe(function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),v$n=function(){function e(e,t,n,r,o,a,s){i(t.append("text").attr("x",n+o/2).attr("y",r+a/2+5).style("text-anchor","middle").text(e),s)}function t(e,t,n,r,o,a,s,l){const{actorFontSize:c,actorFontFamily:u,actorFontWeight:h}=l,[d,p]=WWe(c),f=e.split(CIe.lineBreakRegex);for(let g=0;g<f.length;g++){const e=g*d-d*(f.length-1)/2,l=t.append("text").attr("x",n+o/2).attr("y",r).style("text-anchor","middle").style("font-size",p).style("font-weight",h).style("font-family",u);l.append("tspan").attr("x",n+o/2).attr("dy",e).text(f[g]),l.attr("y",r+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(l,s)}}function n(e,n,r,o,a,s,l,c){const u=n.append("switch"),h=u.append("foreignObject").attr("x",r).attr("y",o).attr("width",a).attr("height",s).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),t(e,u,r,o,a,s,l,c),i(h,l)}async function r(e,n,r,o,a,s,l,c){const u=await TIe(e,NBe()),h=n.append("switch"),d=h.append("foreignObject").attr("x",r+a/2-u.width/2).attr("y",o+s/2-u.height/2).attr("width",u.width).attr("height",u.height).append("xhtml:div").style("height","100%").style("width","100%");d.append("div").style("text-align","center").style("vertical-align","middle").html(await _Ie(e,NBe())),t(e,h,r,o,a,s,l,c),i(d,l)}function i(e,t){for(const n in t)t.hasOwnProperty(n)&&e.attr(n,t[n])}return hRe(e,"byText"),hRe(t,"byTspan"),hRe(n,"byFo"),hRe(r,"byKatex"),hRe(i,"_setTextAttrs"),function(i,o=!1){return o?r:"fo"===i.textPlacement?n:"old"===i.textPlacement?e:t}}(),b$n=function(){function e(e,t,n,i,o,a,s){r(t.append("text").attr("x",n).attr("y",i).style("text-anchor","start").text(e),s)}function t(e,t,n,i,o,a,s,l){const{actorFontSize:c,actorFontFamily:u,actorFontWeight:h}=l,d=e.split(CIe.lineBreakRegex);for(let p=0;p<d.length;p++){const e=p*c-c*(d.length-1)/2,o=t.append("text").attr("x",n).attr("y",i).style("text-anchor","start").style("font-size",c).style("font-weight",h).style("font-family",u);o.append("tspan").attr("x",n).attr("dy",e).text(d[p]),o.attr("y",i+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(o,s)}}function n(e,n,i,o,a,s,l,c){const u=n.append("switch"),h=u.append("foreignObject").attr("x",i).attr("y",o).attr("width",a).attr("height",s).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),t(e,u,i,o,0,s,l,c),r(h,l)}function r(e,t){for(const n in t)t.hasOwnProperty(n)&&e.attr(n,t[n])}return hRe(e,"byText"),hRe(t,"byTspan"),hRe(n,"byFo"),hRe(r,"_setTextAttrs"),function(r){return"fo"===r.textPlacement?n:"old"===r.textPlacement?e:t}}(),x$n=hRe(function(e,t){e.append("defs").append("marker").attr("id",t+"-solidTopArrowHead").attr("refX",7.9).attr("refY",7.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 8 L 0 8 z")},"insertSolidTopArrowHead"),w$n=hRe(function(e,t){e.append("defs").append("marker").attr("id",t+"-solidBottomArrowHead").attr("refX",7.9).attr("refY",.75).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 0 L 0 8 z")},"insertSolidBottomArrowHead"),k$n=hRe(function(e,t){e.append("defs").append("marker").attr("id",t+"-stickTopArrowHead").attr("refX",7.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 7 7").attr("stroke","black").attr("stroke-width",1.5).attr("fill","none")},"insertStickTopArrowHead"),S$n=hRe(function(e,t){e.append("defs").append("marker").attr("id",t+"-stickBottomArrowHead").attr("refX",7.5).attr("refY",0).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 7 L 7 0").attr("stroke","black").attr("stroke-width",1.5).attr("fill","none")},"insertStickBottomArrowHead"),T$n={drawRect:UTn,drawText:WTn,drawLabel:jTn,drawActor:i$n,drawBox:o$n,drawPopup:zTn,anchorElement:a$n,drawActivation:s$n,drawLoop:l$n,drawBackgroundRect:c$n,insertArrowHead:p$n,insertArrowFilledHead:f$n,insertSequenceNumber:g$n,insertArrowCrossHead:m$n,insertDatabaseIcon:u$n,insertComputerIcon:h$n,insertClockIcon:d$n,getTextObj:A$n,getNoteRect:y$n,fixLifeLineHeights:ZTn,sanitizeUrl:vVe.sanitizeUrl,insertDropShadow:O$n,insertSolidTopArrowHead:x$n,insertSolidBottomArrowHead:w$n,insertStickTopArrowHead:k$n,insertStickBottomArrowHead:S$n},$$n={},_$n={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:hRe(function(){return Math.max.apply(null,0===this.actors.length?[0]:this.actors.map(e=>e.height||0))+(0===this.loops.length?0:this.loops.map(e=>e.height||0).reduce((e,t)=>e+t))+(0===this.messages.length?0:this.messages.map(e=>e.height||0).reduce((e,t)=>e+t))+(0===this.notes.length?0:this.notes.map(e=>e.height||0).reduce((e,t)=>e+t))},"getHeight"),clear:hRe(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},"clear"),addBox:hRe(function(e){this.boxes.push(e)},"addBox"),addActor:hRe(function(e){this.actors.push(e)},"addActor"),addLoop:hRe(function(e){this.loops.push(e)},"addLoop"),addMessage:hRe(function(e){this.messages.push(e)},"addMessage"),addNote:hRe(function(e){this.notes.push(e)},"addNote"),lastActor:hRe(function(){return this.actors[this.actors.length-1]},"lastActor"),lastLoop:hRe(function(){return this.loops[this.loops.length-1]},"lastLoop"),lastMessage:hRe(function(){return this.messages[this.messages.length-1]},"lastMessage"),lastNote:hRe(function(){return this.notes[this.notes.length-1]},"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:hRe(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,N$n(JIe())},"init"),updateVal:hRe(function(e,t,n,r){void 0===e[t]?e[t]=n:e[t]=r(n,e[t])},"updateVal"),updateBounds:hRe(function(e,t,n,r){const i=this;let o=0;function a(a){return hRe(function(s){o++;const l=i.sequenceItems.length-o+1;i.updateVal(s,"starty",t-l*$$n.boxMargin,Math.min),i.updateVal(s,"stopy",r+l*$$n.boxMargin,Math.max),i.updateVal(_$n.data,"startx",e-l*$$n.boxMargin,Math.min),i.updateVal(_$n.data,"stopx",n+l*$$n.boxMargin,Math.max),"activation"!==a&&(i.updateVal(s,"startx",e-l*$$n.boxMargin,Math.min),i.updateVal(s,"stopx",n+l*$$n.boxMargin,Math.max),i.updateVal(_$n.data,"starty",t-l*$$n.boxMargin,Math.min),i.updateVal(_$n.data,"stopy",r+l*$$n.boxMargin,Math.max))},"updateItemBounds")}hRe(a,"updateFn"),this.sequenceItems.forEach(a()),this.activations.forEach(a("activation"))},"updateBounds"),insert:hRe(function(e,t,n,r){const i=CIe.getMin(e,n),o=CIe.getMax(e,n),a=CIe.getMin(t,r),s=CIe.getMax(t,r);this.updateVal(_$n.data,"startx",i,Math.min),this.updateVal(_$n.data,"starty",a,Math.min),this.updateVal(_$n.data,"stopx",o,Math.max),this.updateVal(_$n.data,"stopy",s,Math.max),this.updateBounds(i,a,o,s)},"insert"),newActivation:hRe(function(e,t,n){const r=n.get(e.from),i=X$n(e.from).length||0,o=r.x+r.width/2+(i-1)*$$n.activationWidth/2;this.activations.push({startx:o,starty:this.verticalPos+2,stopx:o+$$n.activationWidth,stopy:void 0,actor:e.from,anchored:T$n.anchorElement(t)})},"newActivation"),endActivation:hRe(function(e){const t=this.activations.map(function(e){return e.actor}).lastIndexOf(e.from);return this.activations.splice(t,1)[0]},"endActivation"),createLoop:hRe(function(e={message:void 0,wrap:!1,width:void 0},t){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},"createLoop"),newLoop:hRe(function(e={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(e,t))},"newLoop"),endLoop:hRe(function(){return this.sequenceItems.pop()},"endLoop"),isLoopOverlap:hRe(function(){return!!this.sequenceItems.length&&this.sequenceItems[this.sequenceItems.length-1].overlap},"isLoopOverlap"),addSectionToLoop:hRe(function(e){const t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:_$n.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},"addSectionToLoop"),saveVerticalPos:hRe(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},"saveVerticalPos"),resetVerticalPos:hRe(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},"resetVerticalPos"),bumpVerticalPos:hRe(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=CIe.getMax(this.data.stopy,this.verticalPos)},"bumpVerticalPos"),getVerticalPos:hRe(function(){return this.verticalPos},"getVerticalPos"),getBounds:hRe(function(){return{bounds:this.data,models:this.models}},"getBounds")},C$n=hRe(async function(e,t,n){_$n.bumpVerticalPos($$n.boxMargin),t.height=$$n.boxMargin,t.starty=_$n.getVerticalPos();const r=TFt();r.x=t.startx,r.y=t.starty,r.width=t.width||$$n.width,r.class="note";const i=e.append("g");i.attr("data-et","note"),i.attr("data-id","i"+n);const o=T$n.drawRect(i,r),a=$Ft();a.x=t.startx,a.y=t.starty,a.width=r.width,a.dy="1em",a.text=t.message,a.class="noteText",a.fontFamily=$$n.noteFontFamily,a.fontSize=$$n.noteFontSize,a.fontWeight=$$n.noteFontWeight,a.anchor=$$n.noteAlign,a.textMargin=$$n.noteMargin,a.valign="center";const s=SIe(a.text)?await VTn(i,a):WTn(i,a),l=Math.round(s.map(e=>(e._groups||e)[0][0].getBBox().height).reduce((e,t)=>e+t));o.attr("height",l+2*$$n.noteMargin),t.height+=l+2*$$n.noteMargin,_$n.bumpVerticalPos(l+2*$$n.noteMargin),t.stopy=t.starty+l+2*$$n.noteMargin,t.stopx=t.startx+r.width,_$n.insert(t.startx,t.starty,t.stopx,t.stopy),_$n.models.addNote(t)},"drawNote"),Q$n=hRe(function(e,t,n,r,i,o,a){const s=r.db.getActors(),l=s.get(t.from),c=s.get(t.to),u=n.sequenceVisible;let h=l.x+l.width/2,d=c.x+c.width/2;const p=h<=d,f=H$n(t,r),g=e.append("g"),m=hRe((e,t)=>{const n=e?16.5:-16.5;return t?-n:n},"getCircleOffset"),O=hRe(e=>{g.append("circle").attr("cx",e).attr("cy",a).attr("r",5).attr("width",10).attr("height",10)},"drawCircle"),{CENTRAL_CONNECTION:A,CENTRAL_CONNECTION_REVERSE:y,CENTRAL_CONNECTION_DUAL:v}=r.db.LINETYPE;if(u)switch(t.centralConnection){case A:f&&(d+=m(p,!0));break;case y:f||(h+=m(p,!1));break;case v:f?d+=m(p,!0):h+=m(p,!1)}switch(t.centralConnection){case A:O(d);break;case y:O(h);break;case v:O(h),O(d)}},"drawCentralConnection"),P$n=hRe(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont"),E$n=hRe(e=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),"noteFont"),R$n=hRe(e=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}),"actorFont");async function B$n(e,t){_$n.bumpVerticalPos(10);const{startx:n,stopx:r,message:i}=t,o=CIe.splitBreaks(i).length,a=SIe(i),s=a?await TIe(i,JIe()):YWe.calculateTextDimensions(i,P$n($$n));if(!a){const e=s.height/o;t.height+=e,_$n.bumpVerticalPos(e)}let l,c=s.height-10;const u=s.width;if(n===r){l=_$n.getVerticalPos()+c,$$n.rightAngles||(c+=$$n.boxMargin,l=_$n.getVerticalPos()+c),c+=30;const e=CIe.getMax(u/2,$$n.width/2);_$n.insert(n-e,_$n.getVerticalPos()-10+c,r+e,_$n.getVerticalPos()+30+c)}else c+=$$n.boxMargin,l=_$n.getVerticalPos()+c,_$n.insert(n,l-10,r,l);return _$n.bumpVerticalPos(c),t.height+=c,t.stopy=t.starty+t.height,_$n.insert(t.fromBounds,t.starty,t.toBounds,t.stopy),l}hRe(B$n,"boundMessage");var I$n=hRe(async function(e,t,n,r,i,o){const{startx:a,stopx:s,starty:l,message:c,type:u,sequenceIndex:h,sequenceVisible:d}=t,p=YWe.calculateTextDimensions(c,P$n($$n)),f=$Ft();f.x=Math.min(a,s),f.y=l+10,f.width=Math.abs(s-a),f.class="messageText",f.dy="1em",f.text=c,f.fontFamily=$$n.messageFontFamily,f.fontSize=$$n.messageFontSize,f.fontWeight=$$n.messageFontWeight,f.anchor=$$n.messageAlign,f.valign="center",f.textMargin=$$n.wrapPadding,f.tspan=!1,SIe(f.text)?await VTn(e,f,{startx:a,stopx:s,starty:n}):WTn(e,f);const g=p.width;let m;if(a===s){const o=d||$$n.showSequenceNumbers,l=H$n(i,r),c=K$n(i,r),u=a+(o&&(l||c)?10:0);m=$$n.rightAngles?e.append("path").attr("d",`M ${u},${n} H ${a+CIe.getMax($$n.width/2,g/2)} V ${n+25} H ${a}`):e.append("path").attr("d","M "+u+","+n+" C "+(u+60)+","+(n-10)+" "+(a+60)+","+(n+30)+" "+a+","+(n+20)),Z$n(i,r)&&Q$n(e,i,t,r,a,s,n)}else m=e.append("line"),m.attr("x1",a),m.attr("y1",n),m.attr("x2",s),m.attr("y2",n),Z$n(i,r)&&Q$n(e,i,t,r,a,s,n);u===r.db.LINETYPE.DOTTED||u===r.db.LINETYPE.DOTTED_CROSS||u===r.db.LINETYPE.DOTTED_POINT||u===r.db.LINETYPE.DOTTED_OPEN||u===r.db.LINETYPE.BIDIRECTIONAL_DOTTED||u===r.db.LINETYPE.SOLID_TOP_DOTTED||u===r.db.LINETYPE.SOLID_BOTTOM_DOTTED||u===r.db.LINETYPE.STICK_TOP_DOTTED||u===r.db.LINETYPE.STICK_BOTTOM_DOTTED||u===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||u===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||u===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||u===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED?(m.style("stroke-dasharray","3, 3"),m.attr("class","messageLine1")):m.attr("class","messageLine0"),m.attr("data-et","message"),m.attr("data-id","i"+t.id),m.attr("data-from",t.from),m.attr("data-to",t.to);let O="";if($$n.arrowMarkerAbsolute&&(O=mIe(!0)),m.attr("stroke-width",2),m.attr("stroke","none"),m.style("fill","none"),u!==r.db.LINETYPE.SOLID_TOP&&u!==r.db.LINETYPE.SOLID_TOP_DOTTED||m.attr("marker-end","url("+O+"#"+o+"-solidTopArrowHead)"),u!==r.db.LINETYPE.SOLID_BOTTOM&&u!==r.db.LINETYPE.SOLID_BOTTOM_DOTTED||m.attr("marker-end","url("+O+"#"+o+"-solidBottomArrowHead)"),u!==r.db.LINETYPE.STICK_TOP&&u!==r.db.LINETYPE.STICK_TOP_DOTTED||m.attr("marker-end","url("+O+"#"+o+"-stickTopArrowHead)"),u!==r.db.LINETYPE.STICK_BOTTOM&&u!==r.db.LINETYPE.STICK_BOTTOM_DOTTED||m.attr("marker-end","url("+O+"#"+o+"-stickBottomArrowHead)"),u!==r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE&&u!==r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||m.attr("marker-start","url("+O+"#"+o+"-solidBottomArrowHead)"),u!==r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE&&u!==r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||m.attr("marker-start","url("+O+"#"+o+"-solidTopArrowHead)"),u!==r.db.LINETYPE.STICK_ARROW_TOP_REVERSE&&u!==r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||m.attr("marker-start","url("+O+"#"+o+"-stickBottomArrowHead)"),u!==r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE&&u!==r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED||m.attr("marker-start","url("+O+"#"+o+"-stickTopArrowHead)"),u!==r.db.LINETYPE.SOLID&&u!==r.db.LINETYPE.DOTTED||m.attr("marker-end","url("+O+"#"+o+"-arrowhead)"),u!==r.db.LINETYPE.BIDIRECTIONAL_SOLID&&u!==r.db.LINETYPE.BIDIRECTIONAL_DOTTED||(m.attr("marker-start","url("+O+"#"+o+"-arrowhead)"),m.attr("marker-end","url("+O+"#"+o+"-arrowhead)")),u!==r.db.LINETYPE.SOLID_POINT&&u!==r.db.LINETYPE.DOTTED_POINT||m.attr("marker-end","url("+O+"#"+o+"-filled-head)"),u!==r.db.LINETYPE.SOLID_CROSS&&u!==r.db.LINETYPE.DOTTED_CROSS||m.attr("marker-end","url("+O+"#"+o+"-crosshead)"),d||$$n.showSequenceNumbers){const l=u===r.db.LINETYPE.BIDIRECTIONAL_SOLID||u===r.db.LINETYPE.BIDIRECTIONAL_DOTTED,c=u===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||u===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||u===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||u===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||u===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE||u===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||u===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||u===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,d=6,p=Z$n(i,r);let f=a,g=s;l?(a<s?f=a+2*d:(f=a-d+(p?-5:0),f+=(null==i?void 0:i.centralConnection)===r.db.LINETYPE.CENTRAL_CONNECTION_DUAL||(null==i?void 0:i.centralConnection)===r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),m.attr("x1",f)):c?(s>a?g=s-2*d:(g=s-d,f+=(null==i?void 0:i.centralConnection)===r.db.LINETYPE.CENTRAL_CONNECTION_DUAL||(null==i?void 0:i.centralConnection)===r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),g+=p?15:0,m.attr("x2",g),m.attr("x1",f)):m.attr("x1",a+d);let A=0;const y=a<=s;A=a===s?t.fromBounds+1:c?y?t.toBounds-1:t.fromBounds+1:y?t.fromBounds+1:t.toBounds-1;let v="12px";const b=h.toString().length;b>5?v="7px":b>3&&(v="9px"),e.append("line").attr("x1",A).attr("y1",n).attr("x2",A).attr("y2",n).attr("stroke-width",0).attr("marker-start","url("+O+"#"+o+"-sequencenumber)"),e.append("text").attr("x",A).attr("y",n+4).attr("font-family","sans-serif").attr("font-size",v).attr("text-anchor","middle").attr("class","sequenceNumber").text(h)}},"drawMessage"),L$n=hRe(function(e,t,n,r,i,o,a){let s,l=0,c=0,u=0;for(const h of r){const e=t.get(h),r=e.box;s&&s!=r&&(a||_$n.models.addBox(s),c+=$$n.boxMargin+s.margin),r&&r!=s&&(a||(r.x=l+c,r.y=i),c+=r.margin),e.width=CIe.getMax(e.width||$$n.width,$$n.width),e.height=CIe.getMax(e.height||$$n.height,$$n.height),e.margin=e.margin||$$n.actorMargin,u=CIe.getMax(u,e.height),n.get(e.name)&&(c+=e.width/2),e.x=l+c,e.starty=_$n.getVerticalPos(),_$n.insert(e.x,i,e.x+e.width,e.height),l+=e.width+c,e.box&&(e.box.width=l+r.margin-e.box.x),c=e.margin,s=e.box,_$n.models.addActor(e)}s&&!a&&_$n.models.addBox(s),_$n.bumpVerticalPos(u)},"addActorRenderingData"),D$n=hRe(async function(e,t,n,r,i,o,a){if(r){let r=0;_$n.bumpVerticalPos(2*$$n.boxMargin);for(const s of n){const n=t.get(s);n.stopy||(n.stopy=_$n.getVerticalPos());const l=await T$n.drawActor(e,n,$$n,!0,i,o,a);r=CIe.getMax(r,l)}_$n.bumpVerticalPos(r+$$n.boxMargin)}else for(const s of n){const n=t.get(s);await T$n.drawActor(e,n,$$n,!1,i,o,a)}},"drawActors"),M$n=hRe(function(e,t,n,r){let i=0,o=0;for(const a of n){const n=t.get(a),s=W$n(n),l=T$n.drawPopup(e,n,s,$$n,$$n.forceMenus,r);l.height>i&&(i=l.height),l.width+n.x>o&&(o=l.width+n.x)}return{maxHeight:i,maxWidth:o}},"drawActorsPopup"),N$n=hRe(function(e){jRe($$n,e),e.fontFamily&&($$n.actorFontFamily=$$n.noteFontFamily=$$n.messageFontFamily=e.fontFamily),e.fontSize&&($$n.actorFontSize=$$n.noteFontSize=$$n.messageFontSize=e.fontSize),e.fontWeight&&($$n.actorFontWeight=$$n.noteFontWeight=$$n.messageFontWeight=e.fontWeight)},"setConf"),X$n=hRe(function(e){return _$n.activations.filter(function(t){return t.actor===e})},"actorActivations"),F$n=hRe(function(e,t){const n=t.get(e),r=X$n(e);return[r.reduce(function(e,t){return CIe.getMin(e,t.startx)},n.x+n.width/2-1),r.reduce(function(e,t){return CIe.getMax(e,t.stopx)},n.x+n.width/2+1)]},"activationBounds");function U$n(e,t,n,r,i){_$n.bumpVerticalPos(n);let o=r;if(t.id&&t.message&&e[t.id]){const n=e[t.id].width,i=P$n($$n);t.message=YWe.wrapLabel(`[${t.message}]`,n-2*$$n.wrapPadding,i),t.width=n,t.wrap=!0;const a=YWe.calculateTextDimensions(t.message,i),s=CIe.getMax(a.height,$$n.labelBoxHeight);o=r+s,ORe.debug(`${s} - ${t.message}`)}i(t),_$n.bumpVerticalPos(o)}function z$n(e,t,n,r,i,o,a){function s(n,r){n.x<i.get(e.from).x?(_$n.insert(t.stopx-r,t.starty,t.startx,t.stopy+n.height/2+$$n.noteMargin),t.stopx=t.stopx+r):(_$n.insert(t.startx,t.starty,t.stopx+r,t.stopy+n.height/2+$$n.noteMargin),t.stopx=t.stopx-r)}function l(n,r){n.x<i.get(e.to).x?(_$n.insert(t.startx-r,t.starty,t.stopx,t.stopy+n.height/2+$$n.noteMargin),t.startx=t.startx+r):(_$n.insert(t.stopx,t.starty,t.startx+r,t.stopy+n.height/2+$$n.noteMargin),t.startx=t.startx-r)}hRe(s,"receiverAdjustment"),hRe(l,"senderAdjustment");const c=[PTn,ETn,BTn,RTn];if(o.get(e.to)==r){const t=i.get(e.to);s(t,c.includes(t.type)?21:t.width/2+3),t.starty=n-t.height/2,_$n.bumpVerticalPos(t.height/2)}else if(a.get(e.from)==r){const t=i.get(e.from);if($$n.mirrorActors){l(t,c.includes(t.type)?18:t.width/2)}t.stopy=n-t.height/2,_$n.bumpVerticalPos(t.height/2)}else if(a.get(e.to)==r){const t=i.get(e.to);if($$n.mirrorActors){s(t,c.includes(t.type)?21:t.width/2+3)}t.stopy=n-t.height/2,_$n.bumpVerticalPos(t.height/2)}}hRe(U$n,"adjustLoopHeightForWrap"),hRe(z$n,"adjustCreatedDestroyedData");var q$n=hRe(async function(e,t,n,r){const{securityLevel:i,sequence:o,look:a,themeVariables:s}=JIe();let l;$$n=o,"sandbox"===i&&(l=GDe("#i"+t));const c=GDe("sandbox"===i?l.nodes()[0].contentDocument.body:"body"),u="sandbox"===i?l.nodes()[0].contentDocument:document;_$n.init(),ORe.debug(r.db);const h="sandbox"===i?c.select(`[id="${t}"]`):GDe(`[id="${t}"]`),d=r.db.getActors(),p=r.db.getCreatedActors(),f=r.db.getDestroyedActors(),g=r.db.getBoxes();let m=r.db.getActorKeys();const O=r.db.getMessages(),A=r.db.getDiagramTitle(),y=r.db.hasAtLeastOneBox(),v=r.db.hasAtLeastOneBoxWithTitle(),b=await V$n(d,O,r);if($$n.height=await j$n(d,b,g),T$n.insertComputerIcon(h,t),T$n.insertDatabaseIcon(h,t),T$n.insertClockIcon(h,t),y&&(_$n.bumpVerticalPos($$n.boxMargin),v&&_$n.bumpVerticalPos(g[0].textMaxHeight)),!0===$$n.hideUnusedParticipants){const e=new Set;O.forEach(t=>{e.add(t.from),e.add(t.to)}),m=m.filter(t=>e.has(t))}const x=new Map(m.map((e,t)=>{var n;return[(null==(n=d.get(e))?void 0:n.name)??e,t]}));L$n(h,d,p,m,0,O,!1);const w=await e_n(O,d,b,r);function k(e,t){const n=_$n.endActivation(e);n.starty+18>t&&(n.starty=t-6,t+=12),T$n.drawActivation(h,n,t,$$n,X$n(e.from).length,r,x),_$n.insert(n.startx,t-10,n.stopx,t)}T$n.insertArrowHead(h,t),T$n.insertArrowCrossHead(h,t),T$n.insertArrowFilledHead(h,t),T$n.insertSequenceNumber(h,t),T$n.insertSolidTopArrowHead(h,t),T$n.insertSolidBottomArrowHead(h,t),T$n.insertStickTopArrowHead(h,t),T$n.insertStickBottomArrowHead(h,t),"neo"===a&&T$n.insertDropShadow(h,$$n),hRe(k,"activeEnd");let S=1,T=1;const $=[],_=[];let C=0;for(const M of O){let e,t,n;switch(M.type){case r.db.LINETYPE.NOTE:_$n.resetVerticalPos(),t=M.noteModel,await C$n(h,t,M.id);break;case r.db.LINETYPE.ACTIVE_START:case r.db.LINETYPE.CENTRAL_CONNECTION:case r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:_$n.newActivation(M,h,d);break;case r.db.LINETYPE.ACTIVE_END:k(M,_$n.getVerticalPos());break;case r.db.LINETYPE.LOOP_START:U$n(w,M,$$n.boxMargin,$$n.boxMargin+$$n.boxTextMargin,e=>_$n.newLoop(e));break;case r.db.LINETYPE.LOOP_END:e=_$n.endLoop(),await T$n.drawLoop(h,e,"loop",$$n,M),_$n.bumpVerticalPos(e.stopy-_$n.getVerticalPos()),_$n.models.addLoop(e);break;case r.db.LINETYPE.RECT_START:U$n(w,M,$$n.boxMargin,$$n.boxMargin,e=>{let t=e.message;t||(t=(null==s?void 0:s.rectBkgColor)||(null==s?void 0:s.actorBkg)||"rgba(128, 128, 128, 0.5)"),_$n.newLoop(void 0,t)});break;case r.db.LINETYPE.RECT_END:e=_$n.endLoop(),_.push(e),_$n.models.addLoop(e),_$n.bumpVerticalPos(e.stopy-_$n.getVerticalPos());break;case r.db.LINETYPE.OPT_START:U$n(w,M,$$n.boxMargin,$$n.boxMargin+$$n.boxTextMargin,e=>_$n.newLoop(e));break;case r.db.LINETYPE.OPT_END:e=_$n.endLoop(),await T$n.drawLoop(h,e,"opt",$$n,M),_$n.bumpVerticalPos(e.stopy-_$n.getVerticalPos()),_$n.models.addLoop(e);break;case r.db.LINETYPE.ALT_START:U$n(w,M,$$n.boxMargin,$$n.boxMargin+$$n.boxTextMargin,e=>_$n.newLoop(e));break;case r.db.LINETYPE.ALT_ELSE:U$n(w,M,$$n.boxMargin+$$n.boxTextMargin,$$n.boxMargin,e=>_$n.addSectionToLoop(e));break;case r.db.LINETYPE.ALT_END:e=_$n.endLoop(),await T$n.drawLoop(h,e,"alt",$$n,M),_$n.bumpVerticalPos(e.stopy-_$n.getVerticalPos()),_$n.models.addLoop(e);break;case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:U$n(w,M,$$n.boxMargin,$$n.boxMargin+$$n.boxTextMargin,e=>_$n.newLoop(e)),_$n.saveVerticalPos();break;case r.db.LINETYPE.PAR_AND:U$n(w,M,$$n.boxMargin+$$n.boxTextMargin,$$n.boxMargin,e=>_$n.addSectionToLoop(e));break;case r.db.LINETYPE.PAR_END:e=_$n.endLoop(),await T$n.drawLoop(h,e,"par",$$n,M),_$n.bumpVerticalPos(e.stopy-_$n.getVerticalPos()),_$n.models.addLoop(e);break;case r.db.LINETYPE.AUTONUMBER:S=M.message.start||S,T=M.message.step||T,M.message.visible?r.db.enableSequenceNumbers():r.db.disableSequenceNumbers();break;case r.db.LINETYPE.CRITICAL_START:U$n(w,M,$$n.boxMargin,$$n.boxMargin+$$n.boxTextMargin,e=>_$n.newLoop(e));break;case r.db.LINETYPE.CRITICAL_OPTION:U$n(w,M,$$n.boxMargin+$$n.boxTextMargin,$$n.boxMargin,e=>_$n.addSectionToLoop(e));break;case r.db.LINETYPE.CRITICAL_END:e=_$n.endLoop(),await T$n.drawLoop(h,e,"critical",$$n,M),_$n.bumpVerticalPos(e.stopy-_$n.getVerticalPos()),_$n.models.addLoop(e);break;case r.db.LINETYPE.BREAK_START:U$n(w,M,$$n.boxMargin,$$n.boxMargin+$$n.boxTextMargin,e=>_$n.newLoop(e));break;case r.db.LINETYPE.BREAK_END:e=_$n.endLoop(),await T$n.drawLoop(h,e,"break",$$n,M),_$n.bumpVerticalPos(e.stopy-_$n.getVerticalPos()),_$n.models.addLoop(e);break;default:try{n=M.msgModel,n.starty=_$n.getVerticalPos(),n.sequenceIndex=S,n.sequenceVisible=r.db.showSequenceNumbers(),n.id=M.id,n.from=M.from,n.to=M.to;const e=await B$n(0,n);z$n(M,n,e,C,d,p,f),$.push({messageModel:n,lineStartY:e,msg:M}),_$n.models.addMessage(n)}catch(jk){ORe.error("error while drawing message",jk)}}[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.SOLID_TOP,r.db.LINETYPE.SOLID_BOTTOM,r.db.LINETYPE.STICK_TOP,r.db.LINETYPE.STICK_BOTTOM,r.db.LINETYPE.SOLID_TOP_DOTTED,r.db.LINETYPE.SOLID_BOTTOM_DOTTED,r.db.LINETYPE.STICK_TOP_DOTTED,r.db.LINETYPE.STICK_BOTTOM_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT,r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(M.type)&&(S=Math.round(100*(S+T))/100),C++}ORe.debug("createdActors",p),ORe.debug("destroyedActors",f),await D$n(h,d,m,!1,t,r,x);for(const M of $)await I$n(h,M.messageModel,M.lineStartY,r,M.msg,t);$$n.mirrorActors&&await D$n(h,d,m,!0,t,r,x),_.forEach(e=>T$n.drawBackgroundRect(h,e)),ZTn(h,d,m,$$n);for(const M of _$n.models.boxes){M.height=_$n.getVerticalPos()-M.y,_$n.insert(M.x,M.y,M.x+M.width,M.height);const e=2*$$n.boxMargin;M.startx=M.x-e,M.starty=M.y-.25*e,M.stopx=M.startx+M.width+2*e,M.stopy=M.starty+M.height+.75*e,M.stroke="rgb(0,0,0, 0.5)",T$n.drawBox(h,M,$$n)}y&&_$n.bumpVerticalPos($$n.boxMargin);const Q=M$n(h,d,m,u),{bounds:P}=_$n.getBounds();void 0===P.startx&&(P.startx=0),void 0===P.starty&&(P.starty=0),void 0===P.stopx&&(P.stopx=0),void 0===P.stopy&&(P.stopy=0);let E=P.stopy-P.starty;E<Q.maxHeight&&(E=Q.maxHeight);let R=E+2*$$n.diagramMarginY;$$n.mirrorActors&&(R=R-$$n.boxMargin+$$n.bottomMarginAdj);let B=P.stopx-P.startx;B<Q.maxWidth&&(B=Q.maxWidth);const I=B+2*$$n.diagramMarginX;A&&h.append("text").text(A).attr("x",(P.stopx-P.startx)/2-2*$$n.diagramMarginX).attr("y",-25),EIe(h,R,I,$$n.useMaxWidth);const L=A?40:0,D=d.size&&"neo"===a?30:0;h.attr("viewBox",P.startx-$$n.diagramMarginX+" -"+($$n.diagramMarginY+L)+" "+I+" "+(R+L+D)),ORe.debug("models:",_$n.models)},"draw");async function V$n(e,t,n){const r={};for(const i of t)if(e.get(i.to)&&e.get(i.from)){const t=e.get(i.to);if(i.placement===n.db.PLACEMENT.LEFTOF&&!t.prevActor)continue;if(i.placement===n.db.PLACEMENT.RIGHTOF&&!t.nextActor)continue;const o=void 0!==i.placement,a=!o,s=o?E$n($$n):P$n($$n),l=i.wrap?YWe.wrapLabel(i.message,$$n.width-2*$$n.wrapPadding,s):i.message,c=(SIe(l)?await TIe(i.message,JIe()):YWe.calculateTextDimensions(l,s)).width+2*$$n.wrapPadding;a&&i.from===t.nextActor?r[i.to]=CIe.getMax(r[i.to]||0,c):a&&i.from===t.prevActor?r[i.from]=CIe.getMax(r[i.from]||0,c):a&&i.from===i.to?(r[i.from]=CIe.getMax(r[i.from]||0,c/2),r[i.to]=CIe.getMax(r[i.to]||0,c/2)):i.placement===n.db.PLACEMENT.RIGHTOF?r[i.from]=CIe.getMax(r[i.from]||0,c):i.placement===n.db.PLACEMENT.LEFTOF?r[t.prevActor]=CIe.getMax(r[t.prevActor]||0,c):i.placement===n.db.PLACEMENT.OVER&&(t.prevActor&&(r[t.prevActor]=CIe.getMax(r[t.prevActor]||0,c/2)),t.nextActor&&(r[i.from]=CIe.getMax(r[i.from]||0,c/2)))}return ORe.debug("maxMessageWidthPerActor:",r),r}hRe(V$n,"getMaxMessageWidthPerActor");var W$n=hRe(function(e){let t=0;const n=R$n($$n);for(const r in e.links){const e=YWe.calculateTextDimensions(r,n).width+2*$$n.wrapPadding+2*$$n.boxMargin;t<e&&(t=e)}return t},"getRequiredPopupWidth");async function j$n(e,t,n){let r=0;for(const o of e.keys()){const t=e.get(o);t.wrap&&(t.description=YWe.wrapLabel(t.description,$$n.width-2*$$n.wrapPadding,R$n($$n)));const n=SIe(t.description)?await TIe(t.description,JIe()):YWe.calculateTextDimensions(t.description,R$n($$n));t.width=t.wrap?$$n.width:CIe.getMax($$n.width,n.width+2*$$n.wrapPadding),t.height=t.wrap?CIe.getMax(n.height,$$n.height):$$n.height,r=CIe.getMax(r,t.height)}for(const o in t){const n=e.get(o);if(!n)continue;const r=e.get(n.nextActor);if(!r){const e=t[o]+$$n.actorMargin-n.width/2;n.margin=CIe.getMax(e,$$n.actorMargin);continue}const i=t[o]+$$n.actorMargin-n.width/2-r.width/2;n.margin=CIe.getMax(i,$$n.actorMargin)}let i=0;return n.forEach(t=>{const n=P$n($$n);let r=t.actorKeys.reduce((t,n)=>t+(e.get(n).width+(e.get(n).margin||0)),0);r+=8*$$n.boxMargin,r-=2*$$n.boxTextMargin,t.wrap&&(t.name=YWe.wrapLabel(t.name,r-2*$$n.wrapPadding,n));const o=YWe.calculateTextDimensions(t.name,n);i=CIe.getMax(o.height,i);const a=CIe.getMax(r,o.width+2*$$n.wrapPadding);if(t.margin=$$n.boxTextMargin,r<a){const e=(a-r)/2;t.margin+=e}}),n.forEach(e=>e.textMaxHeight=i),CIe.getMax(r,$$n.height)}hRe(j$n,"calculateActorMargins");var Y$n=hRe(async function(e,t,n){const r=t.get(e.from),i=t.get(e.to),o=r.x,a=i.x,s=e.wrap&&e.message;let l=SIe(e.message)?await TIe(e.message,JIe()):YWe.calculateTextDimensions(s?YWe.wrapLabel(e.message,$$n.width,E$n($$n)):e.message,E$n($$n));const c={width:s?$$n.width:CIe.getMax($$n.width,l.width+2*$$n.noteMargin),height:0,startx:r.x,stopx:0,starty:0,stopy:0,message:e.message};return e.placement===n.db.PLACEMENT.RIGHTOF?(c.width=s?CIe.getMax($$n.width,l.width):CIe.getMax(r.width/2+i.width/2,l.width+2*$$n.noteMargin),c.startx=o+(r.width+$$n.actorMargin)/2):e.placement===n.db.PLACEMENT.LEFTOF?(c.width=s?CIe.getMax($$n.width,l.width+2*$$n.noteMargin):CIe.getMax(r.width/2+i.width/2,l.width+2*$$n.noteMargin),c.startx=o-c.width+(r.width-$$n.actorMargin)/2):e.to===e.from?(l=YWe.calculateTextDimensions(s?YWe.wrapLabel(e.message,CIe.getMax($$n.width,r.width),E$n($$n)):e.message,E$n($$n)),c.width=s?CIe.getMax($$n.width,r.width):CIe.getMax(r.width,$$n.width,l.width+2*$$n.noteMargin),c.startx=o+(r.width-c.width)/2):(c.width=Math.abs(o+r.width/2-(a+i.width/2))+$$n.actorMargin,c.startx=o<a?o+r.width/2-$$n.actorMargin/2:a+i.width/2-$$n.actorMargin/2),s&&(c.message=YWe.wrapLabel(e.message,c.width-2*$$n.wrapPadding,E$n($$n))),ORe.debug(`NM:[${c.startx},${c.stopx},${c.starty},${c.stopy}:${c.width},${c.height}=${e.message}]`),c},"buildNoteModel"),Z$n=hRe(function(e,t){const{CENTRAL_CONNECTION:n,CENTRAL_CONNECTION_REVERSE:r,CENTRAL_CONNECTION_DUAL:i}=t.db.LINETYPE;return[n,r,i].includes(e.centralConnection)},"hasCentralConnection"),G$n=hRe(function(e,t,n){const{CENTRAL_CONNECTION_REVERSE:r,CENTRAL_CONNECTION_DUAL:i,BIDIRECTIONAL_SOLID:o,BIDIRECTIONAL_DOTTED:a}=t.db.LINETYPE;let s=0;return e.centralConnection!==r&&e.centralConnection!==i||(s+=4),e.centralConnection!==r&&e.centralConnection!==i||e.type!==o&&e.type!==a||(s+=n?0:-6),s},"calculateCentralConnectionOffset"),H$n=hRe(function(e,t){const{SOLID_ARROW_TOP_REVERSE:n,SOLID_ARROW_TOP_REVERSE_DOTTED:r,SOLID_ARROW_BOTTOM_REVERSE:i,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:o,STICK_ARROW_TOP_REVERSE:a,STICK_ARROW_TOP_REVERSE_DOTTED:s,STICK_ARROW_BOTTOM_REVERSE:l,STICK_ARROW_BOTTOM_REVERSE_DOTTED:c}=t.db.LINETYPE;return[n,r,i,o,a,s,l,c].includes(e.type)},"isReverseArrowType"),K$n=hRe(function(e,t){const{BIDIRECTIONAL_SOLID:n,BIDIRECTIONAL_DOTTED:r}=t.db.LINETYPE;return[n,r].includes(e.type)},"isBidirectionalArrowType"),J$n=hRe(function(e,t,n){const{look:r}=JIe();if(![n.db.LINETYPE.SOLID_OPEN,n.db.LINETYPE.DOTTED_OPEN,n.db.LINETYPE.SOLID,n.db.LINETYPE.SOLID_TOP,n.db.LINETYPE.SOLID_BOTTOM,n.db.LINETYPE.STICK_TOP,n.db.LINETYPE.STICK_BOTTOM,n.db.LINETYPE.SOLID_TOP_DOTTED,n.db.LINETYPE.SOLID_BOTTOM_DOTTED,n.db.LINETYPE.STICK_TOP_DOTTED,n.db.LINETYPE.STICK_BOTTOM_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,n.db.LINETYPE.STICK_ARROW_TOP_REVERSE,n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.DOTTED,n.db.LINETYPE.SOLID_CROSS,n.db.LINETYPE.DOTTED_CROSS,n.db.LINETYPE.SOLID_POINT,n.db.LINETYPE.DOTTED_POINT,n.db.LINETYPE.BIDIRECTIONAL_SOLID,n.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type))return{};const[i,o]=F$n(e.from,t),[a,s]=F$n(e.to,t),l=i<=a;let c=l?o:i,u=l?a:s;if("neo"===r){const t=3;e.type!==n.db.LINETYPE.SOLID_OPEN&&(u+=l?-t:t),e.type!==n.db.LINETYPE.BIDIRECTIONAL_SOLID&&e.type!==n.db.LINETYPE.BIDIRECTIONAL_DOTTED||(c+=l?t:-t)}c+=G$n(e,n,l);const h=Math.abs(a-s)>2,d=hRe(e=>l?-e:e,"adjustValue");e.from===e.to?u=c:(e.activate&&!h&&(u+=d($$n.activationWidth/2-1)),[n.db.LINETYPE.SOLID_OPEN,n.db.LINETYPE.DOTTED_OPEN,n.db.LINETYPE.STICK_TOP,n.db.LINETYPE.STICK_BOTTOM,n.db.LINETYPE.STICK_TOP_DOTTED,n.db.LINETYPE.STICK_BOTTOM_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.STICK_ARROW_TOP_REVERSE,n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type)||(u+=d(3)),[n.db.LINETYPE.BIDIRECTIONAL_SOLID,n.db.LINETYPE.BIDIRECTIONAL_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type)&&(c-=d(3)));const p=[i,o,a,s],f=Math.abs(c-u);e.wrap&&e.message&&(e.message=YWe.wrapLabel(e.message,CIe.getMax(f+2*$$n.wrapPadding,$$n.width),P$n($$n)));const g=YWe.calculateTextDimensions(e.message,P$n($$n));return{width:CIe.getMax(e.wrap?0:g.width+2*$$n.wrapPadding,f+2*$$n.wrapPadding,$$n.width),height:0,startx:c,stopx:u,starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,p),toBounds:Math.max.apply(null,p)}},"buildMessageModel"),e_n=hRe(async function(e,t,n,r){const i={},o=[];let a,s,l;for(const c of e){switch(c.type){case r.db.LINETYPE.LOOP_START:case r.db.LINETYPE.ALT_START:case r.db.LINETYPE.OPT_START:case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:case r.db.LINETYPE.CRITICAL_START:case r.db.LINETYPE.BREAK_START:o.push({id:c.id,msg:c.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case r.db.LINETYPE.ALT_ELSE:case r.db.LINETYPE.PAR_AND:case r.db.LINETYPE.CRITICAL_OPTION:c.message&&(a=o.pop(),i[a.id]=a,i[c.id]=a,o.push(a));break;case r.db.LINETYPE.LOOP_END:case r.db.LINETYPE.ALT_END:case r.db.LINETYPE.OPT_END:case r.db.LINETYPE.PAR_END:case r.db.LINETYPE.CRITICAL_END:case r.db.LINETYPE.BREAK_END:a=o.pop(),i[a.id]=a;break;case r.db.LINETYPE.ACTIVE_START:{const e=t.get(c.from?c.from:c.to.actor),n=X$n(c.from?c.from:c.to.actor).length,r=e.x+e.width/2+(n-1)*$$n.activationWidth/2,i={startx:r,stopx:r+$$n.activationWidth,actor:c.from,enabled:!0};_$n.activations.push(i)}break;case r.db.LINETYPE.ACTIVE_END:{const e=_$n.activations.map(e=>e.actor).lastIndexOf(c.from);_$n.activations.splice(e,1).splice(0,1)}}void 0!==c.placement?(s=await Y$n(c,t,r),c.noteModel=s,o.forEach(e=>{a=e,a.from=CIe.getMin(a.from,s.startx),a.to=CIe.getMax(a.to,s.startx+s.width),a.width=CIe.getMax(a.width,Math.abs(a.from-a.to))-$$n.labelBoxWidth})):(l=J$n(c,t,r),c.msgModel=l,l.startx&&l.stopx&&o.length>0&&o.forEach(e=>{if(a=e,l.startx===l.stopx){const e=t.get(c.from),n=t.get(c.to);a.from=CIe.getMin(e.x-l.width/2,e.x-e.width/2,a.from),a.to=CIe.getMax(n.x+l.width/2,n.x+e.width/2,a.to),a.width=CIe.getMax(a.width,Math.abs(a.to-a.from))-$$n.labelBoxWidth}else a.from=CIe.getMin(l.startx,a.from),a.to=CIe.getMax(l.stopx,a.to),a.width=CIe.getMax(a.width,l.width)-$$n.labelBoxWidth}))}return _$n.activations=[],ORe.debug("Loop type widths:",i),i},"calculateLoopBounds"),t_n={bounds:_$n,drawActors:D$n,drawActorsPopup:M$n,setConf:N$n,draw:q$n},n_n={parser:$Tn,get db(){return new ITn},renderer:t_n,styles:LTn,init:hRe(e=>{e.sequence||(e.sequence={}),e.wrap&&(e.sequence.wrap=e.wrap,eLe({sequence:{wrap:e.wrap}}))},"init")};const r_n=Object.freeze(Object.defineProperty({__proto__:null,diagram:n_n},Symbol.toStringTag,{value:"Module"}));var i_n=function(){var e=hRe(function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},"o"),t=[1,18],n=[1,19],r=[1,20],i=[1,41],o=[1,26],a=[1,42],s=[1,24],l=[1,25],c=[1,32],u=[1,33],h=[1,34],d=[1,45],p=[1,35],f=[1,36],g=[1,37],m=[1,38],O=[1,27],A=[1,28],y=[1,29],v=[1,30],b=[1,31],x=[1,44],w=[1,46],k=[1,43],S=[1,47],T=[1,9],$=[1,8,9],_=[1,58],C=[1,59],Q=[1,60],P=[1,61],E=[1,62],R=[1,63],B=[1,64],I=[1,8,9,41],L=[1,77],D=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],M=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],N=[13,60,86,100,102,103],X=[13,60,73,74,86,100,102,103],F=[13,60,68,69,70,71,72,86,100,102,103],U=[1,103],z=[1,121],q=[1,117],V=[1,113],W=[1,119],j=[1,114],Y=[1,115],Z=[1,116],G=[1,118],H=[1,120],K=[22,50,60,61,82,86,87,88,89,90],J=[1,128],ee=[12,39],te=[1,8,9,39,41,44,46],ne=[1,8,9,22],re=[1,153],ie=[1,8,9,61],oe=[1,8,9,22,50,60,61,82,86,87,88,89,90],ae={trace:hRe(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:hRe(function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 8:this.$=o[s-1];break;case 9:case 10:case 13:case 15:case 46:this.$=o[s];break;case 11:case 14:this.$=o[s-2]+"."+o[s];break;case 12:case 16:case 110:this.$=o[s-1]+o[s];break;case 17:case 18:this.$=o[s-1]+"~"+o[s]+"~";break;case 19:r.addRelation(o[s]);break;case 20:o[s-1].title=r.cleanupLabel(o[s]),r.addRelation(o[s-1]);break;case 31:this.$=o[s].trim(),r.setAccTitle(this.$);break;case 32:case 33:this.$=o[s].trim(),r.setAccDescription(this.$);break;case 34:r.addClassesToNamespace(o[s-3],o[s-1][0],o[s-1][1]),r.popNamespace();break;case 35:r.addClassesToNamespace(o[s-4],o[s-1][0],o[s-1][1]),r.popNamespace();break;case 36:this.$=r.addNamespace(o[s]);break;case 37:this.$=r.addNamespace(o[s-1],o[s]);break;case 38:this.$=[[o[s]],[]];break;case 39:this.$=[[o[s-1]],[]];break;case 40:o[s][0].unshift(o[s-2]),this.$=o[s];break;case 41:this.$=[[],[o[s]]];break;case 42:this.$=[[],[o[s-1]]];break;case 43:o[s][1].unshift(o[s-2]),this.$=o[s];break;case 44:case 45:this.$=[[],[]];break;case 48:r.setCssClass(o[s-2],o[s]);break;case 49:r.addMembers(o[s-3],o[s-1]);break;case 51:r.setCssClass(o[s-5],o[s-3]),r.addMembers(o[s-5],o[s-1]);break;case 52:r.addAnnotation(o[s-3],o[s-1]);break;case 53:r.addAnnotation(o[s-6],o[s-4]),r.addMembers(o[s-6],o[s-1]);break;case 54:r.addAnnotation(o[s-5],o[s-3]);break;case 55:this.$=o[s],r.addClass(o[s]);break;case 56:this.$=o[s-1],r.addClass(o[s-1]),r.setClassLabel(o[s-1],o[s]);break;case 60:r.addAnnotation(o[s],o[s-2]);break;case 61:case 74:case 107:this.$=[o[s]];break;case 62:o[s].push(o[s-1]),this.$=o[s];break;case 63:case 65:case 66:break;case 64:r.addMember(o[s-1],r.cleanupLabel(o[s]));break;case 67:this.$={id1:o[s-2],id2:o[s],relation:o[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:o[s-3],id2:o[s],relation:o[s-1],relationTitle1:o[s-2],relationTitle2:"none"};break;case 69:this.$={id1:o[s-3],id2:o[s],relation:o[s-2],relationTitle1:"none",relationTitle2:o[s-1]};break;case 70:this.$={id1:o[s-4],id2:o[s],relation:o[s-2],relationTitle1:o[s-3],relationTitle2:o[s-1]};break;case 71:this.$=r.addNote(o[s],o[s-1]);break;case 72:this.$=r.addNote(o[s]);break;case 73:this.$=o[s-2],r.defineClass(o[s-1],o[s]);break;case 75:this.$=o[s-2].concat([o[s]]);break;case 76:r.setDirection("TB");break;case 77:r.setDirection("BT");break;case 78:r.setDirection("RL");break;case 79:r.setDirection("LR");break;case 80:this.$={type1:o[s-2],type2:o[s],lineType:o[s-1]};break;case 81:this.$={type1:"none",type2:o[s],lineType:o[s-1]};break;case 82:this.$={type1:o[s-1],type2:"none",lineType:o[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:o[s]};break;case 84:this.$=r.relationType.AGGREGATION;break;case 85:this.$=r.relationType.EXTENSION;break;case 86:this.$=r.relationType.COMPOSITION;break;case 87:this.$=r.relationType.DEPENDENCY;break;case 88:this.$=r.relationType.LOLLIPOP;break;case 89:this.$=r.lineType.LINE;break;case 90:this.$=r.lineType.DOTTED_LINE;break;case 91:case 97:this.$=o[s-2],r.setClickEvent(o[s-1],o[s]);break;case 92:case 98:this.$=o[s-3],r.setClickEvent(o[s-2],o[s-1]),r.setTooltip(o[s-2],o[s]);break;case 93:this.$=o[s-2],r.setLink(o[s-1],o[s]);break;case 94:this.$=o[s-3],r.setLink(o[s-2],o[s-1],o[s]);break;case 95:this.$=o[s-3],r.setLink(o[s-2],o[s-1]),r.setTooltip(o[s-2],o[s]);break;case 96:this.$=o[s-4],r.setLink(o[s-3],o[s-2],o[s]),r.setTooltip(o[s-3],o[s-1]);break;case 99:this.$=o[s-3],r.setClickEvent(o[s-2],o[s-1],o[s]);break;case 100:this.$=o[s-4],r.setClickEvent(o[s-3],o[s-2],o[s-1]),r.setTooltip(o[s-3],o[s]);break;case 101:this.$=o[s-3],r.setLink(o[s-2],o[s]);break;case 102:this.$=o[s-4],r.setLink(o[s-3],o[s-1],o[s]);break;case 103:this.$=o[s-4],r.setLink(o[s-3],o[s-1]),r.setTooltip(o[s-3],o[s]);break;case 104:this.$=o[s-5],r.setLink(o[s-4],o[s-2],o[s]),r.setTooltip(o[s-4],o[s-1]);break;case 105:this.$=o[s-2],r.setCssStyle(o[s-1],o[s]);break;case 106:r.setCssClass(o[s-1],o[s]);break;case 108:o[s-2].push(o[s]),this.$=o[s-2]}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:n,37:r,38:22,42:i,43:23,46:o,48:a,51:s,52:l,54:c,56:u,57:h,60:d,62:p,63:f,64:g,65:m,75:O,76:A,78:y,82:v,83:b,86:x,100:w,102:k,103:S},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(T,[2,5],{8:[1,48]}),{8:[1,49]},e($,[2,19],{22:[1,50]}),e($,[2,21]),e($,[2,22]),e($,[2,23]),e($,[2,24]),e($,[2,25]),e($,[2,26]),e($,[2,27]),e($,[2,28]),e($,[2,29]),e($,[2,30]),{34:[1,51]},{36:[1,52]},e($,[2,33]),e($,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:_,69:C,70:Q,71:P,72:E,73:R,74:B}),{39:[1,65]},e(I,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),e($,[2,65]),e($,[2,66]),{16:69,60:d,86:x,100:w,102:k},{16:39,17:40,19:70,60:d,86:x,100:w,102:k,103:S},{16:39,17:40,19:71,60:d,86:x,100:w,102:k,103:S},{16:39,17:40,19:72,60:d,86:x,100:w,102:k,103:S},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:d,86:x,100:w,102:k,103:S},{13:L,55:76},{58:78,60:[1,79]},e($,[2,76]),e($,[2,77]),e($,[2,78]),e($,[2,79]),e(D,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:d,86:x,100:w,102:k,103:S}),e(D,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:d,86:x,100:w,102:k,103:S},{16:39,17:40,19:87,60:d,86:x,100:w,102:k,103:S},e(M,[2,133]),e(M,[2,134]),e(M,[2,135]),e(M,[2,136]),e([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),e(T,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:t,35:n,37:r,42:i,46:o,48:a,51:s,52:l,54:c,56:u,57:h,60:d,62:p,63:f,64:g,65:m,75:O,76:A,78:y,82:v,83:b,86:x,100:w,102:k,103:S}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:n,37:r,38:22,42:i,43:23,46:o,48:a,51:s,52:l,54:c,56:u,57:h,60:d,62:p,63:f,64:g,65:m,75:O,76:A,78:y,82:v,83:b,86:x,100:w,102:k,103:S},e($,[2,20]),e($,[2,31]),e($,[2,32]),{13:[1,91],16:39,17:40,19:90,60:d,86:x,100:w,102:k,103:S},{53:92,66:56,67:57,68:_,69:C,70:Q,71:P,72:E,73:R,74:B},e($,[2,64]),{67:93,73:R,74:B},e(N,[2,83],{66:94,68:_,69:C,70:Q,71:P,72:E}),e(X,[2,84]),e(X,[2,85]),e(X,[2,86]),e(X,[2,87]),e(X,[2,88]),e(F,[2,89]),e(F,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:i,43:23,48:a,54:c,56:u},{16:100,60:d,86:x,100:w,102:k},{41:[1,102],45:101,51:U},{16:104,60:d,86:x,100:w,102:k},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:z,50:q,59:110,60:V,82:W,84:111,85:112,86:j,87:Y,88:Z,89:G,90:H},{60:[1,122]},{13:L,55:123},e(I,[2,72]),e(I,[2,138]),{22:z,50:q,59:124,60:V,61:[1,125],82:W,84:111,85:112,86:j,87:Y,88:Z,89:G,90:H},e(K,[2,74]),{16:39,17:40,19:126,60:d,86:x,100:w,102:k,103:S},e(D,[2,16]),e(D,[2,17]),e(D,[2,18]),{11:127,12:J,39:[2,36]},e(ee,[2,9],{16:85,17:86,15:130,18:[1,129],60:d,86:x,100:w,102:k,103:S}),e(ee,[2,10]),e(te,[2,55],{11:131,12:J}),e(T,[2,7]),{9:[1,132]},e(ne,[2,67]),{16:39,17:40,19:133,60:d,86:x,100:w,102:k,103:S},{13:[1,135],16:39,17:40,19:134,60:d,86:x,100:w,102:k,103:S},e(N,[2,82],{66:136,68:_,69:C,70:Q,71:P,72:E}),e(N,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:i,43:23,48:a,54:c,56:u},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},e(I,[2,48],{39:[1,142]}),{41:[1,143]},e(I,[2,50]),{41:[2,61],45:144,51:U},{47:[1,145]},{16:39,17:40,19:146,60:d,86:x,100:w,102:k,103:S},e($,[2,91],{13:[1,147]}),e($,[2,93],{13:[1,149],77:[1,148]}),e($,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},e($,[2,105],{61:re}),e(ie,[2,107],{85:154,22:z,50:q,60:V,82:W,86:j,87:Y,88:Z,89:G,90:H}),e(oe,[2,109]),e(oe,[2,111]),e(oe,[2,112]),e(oe,[2,113]),e(oe,[2,114]),e(oe,[2,115]),e(oe,[2,116]),e(oe,[2,117]),e(oe,[2,118]),e(oe,[2,119]),e($,[2,106]),e(I,[2,71]),e($,[2,73],{61:re}),{60:[1,155]},e(D,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:d,86:x,100:w,102:k,103:S},e(ee,[2,12]),e(te,[2,56]),{1:[2,4]},e(ne,[2,69]),e(ne,[2,68]),{16:39,17:40,19:158,60:d,86:x,100:w,102:k,103:S},e(N,[2,80]),e(I,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:i,43:23,48:a,54:c,56:u},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:i,43:23,48:a,54:c,56:u},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:i,43:23,48:a,54:c,56:u},{45:163,51:U},e(I,[2,49]),{41:[2,62]},e(I,[2,52],{39:[1,164]}),e($,[2,60]),e($,[2,92]),e($,[2,94]),e($,[2,95],{77:[1,165]}),e($,[2,98]),e($,[2,99],{13:[1,166]}),e($,[2,101],{13:[1,168],77:[1,167]}),{22:z,50:q,60:V,82:W,84:169,85:112,86:j,87:Y,88:Z,89:G,90:H},e(oe,[2,110]),e(K,[2,75]),{14:[1,170]},e(ee,[2,11]),e(ne,[2,70]),e(I,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:U},e($,[2,96]),e($,[2,100]),e($,[2,102]),e($,[2,103],{77:[1,174]}),e(ie,[2,108],{85:154,22:z,50:q,60:V,82:W,86:j,87:Y,88:Z,89:G,90:H}),e(te,[2,8]),e(I,[2,51]),{41:[1,175]},e(I,[2,54]),e($,[2,104]),e(I,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:hRe(function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},"parseError"),parse:hRe(function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),h=Object.create(this.lexer),d={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d.yy[p]=this.yy[p]);h.setInput(e,d.yy),d.yy.lexer=h,d.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var f=h.yylloc;o.push(f);var g=h.options&&h.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||h.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,hRe(function(e){n.length=n.length-2*e,i.length=i.length-e,o.length=o.length-e},"popStack"),hRe(m,"lex");for(var O,A,y,v,b,x,w,k,S={};;){if(A=n[n.length-1],this.defaultActions[A]?y=this.defaultActions[A]:(null==O&&(O=m()),y=a[A]&&a[A][O]),void 0===y||!y.length||!y[0]){var T="";for(b in k=[],a[A])this.terminals_[b]&&b>2&&k.push("'"+this.terminals_[b]+"'");T=h.showPosition?"Parse error on line "+(l+1)+":\n"+h.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[O]||O)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==O?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[O]||O,line:h.yylineno,loc:f,expected:k})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+O);switch(y[0]){case 1:n.push(O),i.push(h.yytext),o.push(h.yylloc),n.push(y[1]),O=null,c=h.yyleng,s=h.yytext,l=h.yylineno,f=h.yylloc;break;case 2:if(x=this.productions_[y[1]][1],S.$=i[i.length-x],S._$={first_line:o[o.length-(x||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(x||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(x||1)].range[0],o[o.length-1].range[1]]),void 0!==(v=this.performAction.apply(S,[s,c,l,d.yy,y[1],i,o].concat(u))))return v;x&&(n=n.slice(0,-1*x*2),i=i.slice(0,-1*x),o=o.slice(0,-1*x)),n.push(this.productions_[y[1]][0]),i.push(S.$),o.push(S._$),w=a[n[n.length-2]][n[n.length-1]],n.push(w);break;case 3:return!0}}return!0},"parse")},se=function(){var e={EOF:1,parseError:hRe(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:hRe(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:hRe(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:hRe(function(e){var t=e.length,n=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 r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:hRe(function(){return this._more=!0,this},"more"),reject:hRe(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:hRe(function(e){this.unput(this.match.slice(e))},"less"),pastInput:hRe(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:hRe(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:hRe(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:hRe(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.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],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},"test_match"),next:hRe(function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&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:hRe(function(){var e=this.next();return e||this.lex()},"lex"),begin:hRe(function(e){this.conditionStack.push(e)},"begin"),popState:hRe(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:hRe(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:hRe(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:hRe(function(e){this.begin(e)},"pushState"),stateStackSize:hRe(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:hRe(function(e,t,n,r){switch(n){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:case 5:case 14:case 31:case 37:case 41:case 48:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 19:case 22:case 24:case 59:case 62:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 36:return 8;case 15:case 16:return 7;case 17:case 38:case 46:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 23:return 80;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;case 30:case 40:return this.popState(),8;case 32:return this.begin("namespace-body"),39;case 33:this.popState(),this.less(0);break;case 34:case 44:return this.popState(),41;case 35:case 45:return"EOF_IN_STRUCT";case 39:return this.begin("class"),48;case 42:return this.popState(),this.popState(),41;case 43:return this.begin("class-body"),39;case 47:return"OPEN_IN_STRUCT";case 49:return"MEMBER";case 50:return 83;case 51:return 75;case 52:return 76;case 53:return 78;case 54:return 54;case 55:return 56;case 56:return 46;case 57:return 47;case 58:return 81;case 60:return"GENERICTYPE";case 61:this.begin("generic");break;case 63:return"BQUOTE_STR";case 64:this.begin("bqstring");break;case 65:case 66:case 67:case 68:return 77;case 69:case 70:return 69;case 71:case 72:return 71;case 73:return 70;case 74:return 68;case 75:return 72;case 76:return 73;case 77:return 74;case 78:return 22;case 79:return 44;case 80:return 100;case 81:return 18;case 82:return"PLUS";case 83:return 87;case 84:return 61;case 85:case 86:return 89;case 87:return 90;case 88:case 89:return"EQUALS";case 90:return 60;case 91:return 12;case 92:return 14;case 93:return"PUNCTUATION";case 94:return 86;case 95:return 102;case 96:case 97:return 50;case 98:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,29,34,35,36,37,38,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},namespace:{rules:[26,29,30,31,32,33,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},"class-body":{rules:[26,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},class:{rules:[26,40,41,42,43,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr:{rules:[9,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_title:{rules:[7,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_args:{rules:[22,23,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_name:{rules:[19,20,21,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},href:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},struct:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},generic:{rules:[26,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},bqstring:{rules:[26,50,51,52,53,54,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},string:{rules:[24,25,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],inclusive:!0}}};return e}();function le(){this.yy={}}return ae.lexer=se,hRe(le,"Parser"),le.prototype=ae,ae.Parser=le,new le}();i_n.parser=i_n;var o_n=i_n,a_n=["#","+","~","-",""],s_n=(hRe(Dn=class{constructor(e,t){this.memberType=t,this.visibility="",this.classifier="",this.text="";const n=uIe(e,JIe());this.parseMember(n)}getDisplayDetails(){let e=this.visibility+yIe(this.id);"method"===this.memberType&&(e+=`(${yIe(this.parameters.trim())})`,this.returnType&&(e+=" : "+yIe(this.returnType))),e=e.trim();return{displayText:e,cssStyle:this.parseClassifier()}}parseMember(e){let t="";if("method"===this.memberType){const n=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(e);if(n){const e=n[1]?n[1].trim():"";if(a_n.includes(e)&&(this.visibility=e),this.id=n[2],this.parameters=n[3]?n[3].trim():"",t=n[4]?n[4].trim():"",this.returnType=n[5]?n[5].trim():"",""===t){const e=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(e)&&(t=e,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const n=e.length,r=e.substring(0,1),i=e.substring(n-1);a_n.includes(r)&&(this.visibility=r),/[$*]/.exec(i)&&(t=i),this.id=e.substring(""===this.visibility?0:1,""===t?n:n-1)}this.classifier=t,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();const n=`${this.visibility?"\\"+this.visibility:""}${yIe(this.id)}${"method"===this.memberType?`(${yIe(this.parameters)})${this.returnType?" : "+yIe(this.returnType):""}`:""}`;this.text=n.replaceAll("<","<").replaceAll(">",">"),this.text.startsWith("\\<")&&(this.text=this.text.replace("\\<","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},"ClassMember"),Dn),l_n="classId-",c_n=0,u_n=hRe(e=>CIe.sanitizeText(e,JIe()),"sanitizeText"),h_n=(Mn=class{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=hRe(e=>{const t=_Ft();GDe(e).select("svg").selectAll("g").filter(function(){return null!==GDe(this).attr("title")}).on("mouseover",e=>{const n=GDe(e.currentTarget),r=n.attr("title");if(!r)return;const i=e.currentTarget.getBoundingClientRect();t.transition().duration(200).style("opacity",".9"),t.html(XL.sanitize(r)).style("left",`${window.scrollX+i.left+i.width/2}px`).style("top",`${window.scrollY+i.bottom+4}px`),n.classed("hover",!0)}).on("mouseout",e=>{t.transition().duration(500).style("opacity",0),GDe(e.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=VIe,this.getAccTitle=WIe,this.setAccDescription=jIe,this.getAccDescription=YIe,this.setDiagramTitle=ZIe,this.getDiagramTitle=GIe,this.getConfig=hRe(()=>JIe().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.popNamespace=this.popNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}splitClassNameAndType(e){const t=CIe.sanitizeText(e,JIe());let n="",r=t;if(t.indexOf("~")>0){const e=t.split("~");r=u_n(e[0]),n=u_n(e[1])}return{className:r,type:n}}setClassLabel(e,t){const n=CIe.sanitizeText(e,JIe());t&&(t=u_n(t));const{className:r}=this.splitClassNameAndType(n);this.classes.get(r).label=t,this.classes.get(r).text=`${t}${this.classes.get(r).type?`<${this.classes.get(r).type}>`:""}`}addClass(e){const t=CIe.sanitizeText(e,JIe()),{className:n,type:r}=this.splitClassNameAndType(t);if(this.classes.has(n))return;const i=CIe.sanitizeText(n,JIe());this.classes.set(i,{id:i,type:r,label:i,text:`${i}${r?`<${r}>`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:l_n+i+"-"+c_n}),c_n++}addInterface(e,t){const n={id:`interface${this.interfaces.length}`,label:e,classId:t};this.interfaces.push(n)}setDiagramId(e){this.diagramId=e}lookUpDomId(e){const t=CIe.sanitizeText(e,JIe());if(this.classes.has(t)){const e=this.classes.get(t).domId;return this.diagramId?`${this.diagramId}-${e}`:e}throw new Error("Class not found: "+t)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.direction="TB",qIe()}getClass(e){return this.classes.get(e)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(e){const t="number"==typeof e?`note${e}`:e;return this.notes.get(t)}getNotes(){return this.notes}addRelation(e){ORe.debug("Adding relation: "+JSON.stringify(e));const t=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];e.relation.type1!==this.relationType.LOLLIPOP||t.includes(e.relation.type2)?e.relation.type2!==this.relationType.LOLLIPOP||t.includes(e.relation.type1)?(this.addClass(e.id1),this.addClass(e.id2)):(this.addClass(e.id1),this.addInterface(e.id2,e.id1),e.id2="interface"+(this.interfaces.length-1)):(this.addClass(e.id2),this.addInterface(e.id1,e.id2),e.id1="interface"+(this.interfaces.length-1)),e.id1=this.splitClassNameAndType(e.id1).className,e.id2=this.splitClassNameAndType(e.id2).className,e.relationTitle1=CIe.sanitizeText(e.relationTitle1.trim(),JIe()),e.relationTitle2=CIe.sanitizeText(e.relationTitle2.trim(),JIe()),this.relations.push(e)}addAnnotation(e,t){const n=this.splitClassNameAndType(e).className;this.classes.get(n).annotations.push(t)}addMember(e,t){this.addClass(e);const n=this.splitClassNameAndType(e).className,r=this.classes.get(n);if("string"==typeof t){const e=t.trim();e.startsWith("<<")&&e.endsWith(">>")?r.annotations.push(u_n(e.substring(2,e.length-2))):e.indexOf(")")>0?r.methods.push(new s_n(e,"method")):e&&r.members.push(new s_n(e,"attribute"))}}addMembers(e,t){Array.isArray(t)&&(t.reverse(),t.forEach(t=>this.addMember(e,t)))}addNote(e,t){const n=this.notes.size,r={id:`note${n}`,class:t,text:e,index:n};return this.notes.set(r.id,r),r.id}cleanupLabel(e){return e.startsWith(":")&&(e=e.substring(1)),u_n(e.trim())}setCssClass(e,t){e.split(",").forEach(e=>{let n=e;/\d/.exec(e[0])&&(n=l_n+n),n=this.splitClassNameAndType(n).className;const r=this.classes.get(n);r&&(r.cssClasses+=" "+t)})}defineClass(e,t){for(const n of e){let e=this.styleClasses.get(n);void 0===e&&(e={id:n,styles:[],textStyles:[]},this.styleClasses.set(n,e)),t&&t.forEach(t=>{if(/color/.exec(t)){const n=t.replace("fill","bgFill");e.textStyles.push(n)}e.styles.push(t)}),this.classes.forEach(e=>{e.cssClasses.includes(n)&&e.styles.push(...t.flatMap(e=>e.split(",")))})}}setTooltip(e,t){e.split(",").forEach(e=>{if(void 0!==t){const n=this.splitClassNameAndType(e).className,r=this.classes.get(n);r&&(r.tooltip=u_n(t))}})}getTooltip(e,t){return t&&this.namespaces.has(t)?this.namespaces.get(t).classes.get(e).tooltip:this.classes.get(e).tooltip}setLink(e,t,n){const r=JIe();e.split(",").forEach(e=>{let i=e;/\d/.exec(e[0])&&(i=l_n+i),i=this.splitClassNameAndType(i).className;const o=this.classes.get(i);o&&(o.link=YWe.formatUrl(t,r),"sandbox"===r.securityLevel?o.linkTarget="_top":o.linkTarget="string"==typeof n?u_n(n):"_blank")}),this.setCssClass(e,"clickable")}setClickEvent(e,t,n){e.split(",").forEach(e=>{this.setClickFunc(e,t,n);const r=this.splitClassNameAndType(e).className,i=this.classes.get(r);i&&(i.haveCallback=!0)}),this.setCssClass(e,"clickable")}setClickFunc(e,t,n){const r=CIe.sanitizeText(e,JIe());if("loose"!==JIe().securityLevel)return;if(void 0===t)return;const i=this.splitClassNameAndType(r).className;if(this.classes.has(i)){let e=[];if("string"==typeof n){e=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<e.length;t++){let n=e[t].trim();n.startsWith('"')&&n.endsWith('"')&&(n=n.substr(1,n.length-2)),e[t]=n}}0===e.length&&e.push(i),this.functions.push(()=>{const n=this.lookUpDomId(i),r=document.querySelector(`[id="${n}"]`);null!==r&&r.addEventListener("click",()=>{YWe.runFunc(t,...e)},!1)})}}bindFunctions(e){this.functions.forEach(t=>{t(e)})}escapeHtml(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}getDirection(){return this.direction}setDirection(e){this.direction=e}static resolveQualifiedId(e,t){const n=t.at(-1);return n?`${n}.${e}`:e}static getAncestorIds(e){const t=e.split("."),n=new Array(t.length);n[0]=t[0];for(let r=1;r<t.length;r++)n[r]=`${n[r-1]}.${t[r]}`;return n}createNamespaceNode(e,t,n,r=!1){return{id:e,label:t,classes:new Map,notes:new Map,children:new Map,domId:l_n+e+"-"+this.namespaceCounter++,parent:n,explicit:r}}linkParentChild(e,t){const n=this.namespaces.get(e),r=this.namespaces.get(t);n&&r&&(n.children.has(t)||n.children.set(t,r),r.parent??(r.parent=e))}addNamespace(e,t){const n=Mn.resolveQualifiedId(e,this.namespaceStack);if(this.namespaceStack.push(n),this.namespaces.has(n)){const e=this.namespaces.get(n);return e.explicit=!0,t&&(e.label=t),n}const r=n.split("."),i=Mn.getAncestorIds(n);for(let o=0;o<i.length;o++){const e=i[o],n=o>0?i[o-1]:void 0,a=o===i.length-1,s=a&&t?t:r[o];this.namespaces.has(e)?a&&(this.namespaces.get(e).explicit=!0):this.namespaces.set(e,this.createNamespaceNode(e,s,n,a)),n&&this.linkParentChild(n,e)}return n}popNamespace(){this.namespaceStack.pop()}getNamespace(e){return this.namespaces.get(e)}getNamespaces(){return this.namespaces}addClassesToNamespace(e,t,n){if(this.namespaces.has(e)){for(const n of t){const{className:t}=this.splitClassNameAndType(n),r=this.getClass(t);r.parent=e,this.namespaces.get(e).classes.set(t,r)}for(const t of n){const n=this.getNote(t);n.parent=e,this.namespaces.get(e).notes.set(t,n)}}}setCssStyle(e,t){const n=this.classes.get(e);if(t&&n)for(const r of t)r.includes(",")?n.styles.push(...r.split(",")):n.styles.push(r)}getArrowMarker(e){let t;switch(e){case 0:t="aggregation";break;case 1:t="extension";break;case 2:t="composition";break;case 3:t="dependency";break;case 4:t="lollipop";break;default:t="none"}return t}resolveExplicitAncestor(e){let t=e;for(;t;){const e=this.namespaces.get(t);if(!e)return;if(e.explicit)return t;t=e.parent}}getData(){var e,t;const n=[],r=[],i=JIe(),o=(null==(e=i.class)?void 0:e.hierarchicalNamespaces)??!0;for(const s of this.namespaces.values()){if(!o&&!s.explicit)continue;const e={id:s.id,label:o?s.label:s.id,isGroup:!0,padding:i.class.padding??16,shape:"rect",cssStyles:[],look:i.look,parentId:o?s.parent:void 0};n.push(e)}for(const s of this.classes.values()){const e=o?s.parent:this.resolveExplicitAncestor(s.parent),t={...s,type:void 0,isGroup:!1,parentId:e,look:i.look};n.push(t)}for(const s of this.notes.values()){const e=o?s.parent:this.resolveExplicitAncestor(s.parent),a={id:s.id,label:s.text,isGroup:!1,shape:"note",padding:i.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${i.themeVariables.noteBkgColor}`,`stroke: ${i.themeVariables.noteBorderColor}`],look:i.look,parentId:e,labelType:"markdown"};n.push(a);const l=null==(t=this.classes.get(s.class))?void 0:t.id;if(l){const e={id:`edgeNote${s.index}`,start:s.id,end:l,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:i.look};r.push(e)}}for(const s of this.interfaces){const e={id:s.id,label:s.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:i.look};n.push(e)}let a=0;for(const s of this.relations){a++;const e={id:HWe(s.id1,s.id2,{prefix:"id",counter:a}),start:s.id1,end:s.id2,type:"normal",label:s.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(s.relation.type1),arrowTypeEnd:this.getArrowMarker(s.relation.type2),startLabelRight:"none"===s.relationTitle1?"":s.relationTitle1,endLabelLeft:"none"===s.relationTitle2?"":s.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:s.style||"",pattern:1==s.relation.lineType?"dashed":"solid",look:i.look,labelType:"markdown"};r.push(e)}return{nodes:n,edges:r,other:{},config:i,direction:this.getDirection()}}},hRe(Mn,"ClassDB"),Mn),d_n=hRe(e=>`g.classGroup text {\n fill: ${e.nodeBorder||e.classText};\n stroke: none;\n font-family: ${e.fontFamily};\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n\n}\n\n .cluster-label text {\n fill: ${e.titleColor};\n }\n .cluster-label span {\n color: ${e.titleColor};\n }\n .cluster-label span p {\n background-color: transparent;\n }\n\n .cluster rect {\n fill: ${e.clusterBkg};\n stroke: ${e.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${e.titleColor};\n }\n\n .cluster span {\n color: ${e.titleColor};\n }\n\n.nodeLabel, .edgeLabel {\n color: ${e.classText};\n}\n\n.noteLabel .nodeLabel, .noteLabel .edgeLabel {\n color: ${e.noteTextColor};\n}\n.edgeLabel .label rect {\n fill: ${e.mainBkg};\n}\n.label text {\n fill: ${e.classText};\n}\n\n.labelBkg {\n background: ${e.mainBkg};\n}\n.edgeLabel .label span {\n background: ${e.mainBkg};\n}\n\n.classTitle {\n font-weight: bolder;\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n stroke-width: ${e.strokeWidth};\n }\n\n\n.divider {\n stroke: ${e.nodeBorder};\n stroke-width: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n}\n\ng.classGroup line {\n stroke: ${e.nodeBorder};\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${e.mainBkg};\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ${e.nodeBorder};\n font-size: 10px;\n}\n\n.relation {\n stroke: ${e.lineColor};\n stroke-width: ${e.strokeWidth};\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n.dotted-line{\n stroke-dasharray: 1 2;\n}\n\n[id$="-compositionStart"], .composition {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-compositionEnd"], .composition {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-dependencyStart"], .dependency {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-dependencyEnd"], .dependency {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-extensionStart"], .extension {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-extensionEnd"], .extension {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-aggregationStart"], .aggregation {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-aggregationEnd"], .aggregation {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-lollipopStart"], .lollipop {\n fill: ${e.mainBkg} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-lollipopEnd"], .lollipop {\n fill: ${e.mainBkg} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n.edgeTerminals {\n font-size: 11px;\n line-height: initial;\n}\n\n.classTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.textColor};\n}\n\n.edgeLabel[data-look="neo"] {\n background-color: ${e.edgeLabelBackground};\n p {\n background-color: ${e.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${e.edgeLabelBackground};\n fill: ${e.edgeLabelBackground};\n }\n text-align: center;\n}\n ${fzt()}\n`,"getStyles"),p_n=hRe((e,t="TB")=>{if(!e.doc)return t;let n=t;for(const r of e.doc)"dir"===r.stmt&&(n=r.value);return n},"getDir"),f_n={getClasses:hRe(function(e,t){return t.db.getClasses()},"getClasses"),draw:hRe(async function(e,t,n,r){ORe.info("REF0:"),ORe.info("Drawing class diagram (v3)",t);const{securityLevel:i,state:o,layout:a}=JIe();r.db.setDiagramId(t);const s=r.db.getData(),l=gzt(t,i);s.type=r.type,s.layoutAlgorithm=c2e(a),s.nodeSpacing=(null==o?void 0:o.nodeSpacing)||50,s.rankSpacing=(null==o?void 0:o.rankSpacing)||50,s.markers=["aggregation","extension","composition","dependency","lollipop"],s.diagramId=t,await l2e(s,l);YWe.insertTitle(l,"classDiagramTitleText",(null==o?void 0:o.titleTopMargin)??25,r.db.getDiagramTitle()),mzt(l,8,"classDiagram",(null==o?void 0:o.useMaxWidth)??!0)},"draw"),getDir:p_n},g_n={parser:o_n,get db(){return new h_n},renderer:f_n,styles:d_n,init:hRe(e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};const m_n=Object.freeze(Object.defineProperty({__proto__:null,diagram:g_n},Symbol.toStringTag,{value:"Module"}));var O_n={parser:o_n,get db(){return new h_n},renderer:f_n,styles:d_n,init:hRe(e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};const A_n=Object.freeze(Object.defineProperty({__proto__:null,diagram:O_n},Symbol.toStringTag,{value:"Module"}));var y_n=function(){var e=hRe(function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},"o"),t=[1,2],n=[1,3],r=[1,4],i=[2,4],o=[1,9],a=[1,11],s=[1,16],l=[1,17],c=[1,18],u=[1,19],h=[1,33],d=[1,20],p=[1,21],f=[1,22],g=[1,23],m=[1,24],O=[1,26],A=[1,27],y=[1,28],v=[1,29],b=[1,30],x=[1,31],w=[1,32],k=[1,35],S=[1,36],T=[1,37],$=[1,38],_=[1,34],C=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],Q=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],P=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],E={trace:hRe(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,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$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:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"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],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:hRe(function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 3:return r.setRootDoc(o[s]),o[s];case 4:this.$=[];break;case 5:"nl"!=o[s]&&(o[s-1].push(o[s]),this.$=o[s-1]);break;case 6:case 7:case 12:this.$=o[s];break;case 8:this.$="nl";break;case 13:const e=o[s-1];e.description=r.trimColon(o[s]),this.$=e;break;case 14:this.$={stmt:"relation",state1:o[s-2],state2:o[s]};break;case 15:const t=r.trimColon(o[s]);this.$={stmt:"relation",state1:o[s-3],state2:o[s-1],description:t};break;case 19:this.$={stmt:"state",id:o[s-3],type:"default",description:"",doc:o[s-1]};break;case 20:var l=o[s],c=o[s-2].trim();if(o[s].match(":")){var u=o[s].split(":");l=u[0],c=[c,u[1]]}this.$={stmt:"state",id:l,type:"default",description:c};break;case 21:this.$={stmt:"state",id:o[s-3],type:"default",description:o[s-5],doc:o[s-1]};break;case 22:this.$={stmt:"state",id:o[s],type:"fork"};break;case 23:this.$={stmt:"state",id:o[s],type:"join"};break;case 24:this.$={stmt:"state",id:o[s],type:"choice"};break;case 25:this.$={stmt:"state",id:r.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:o[s-1].trim(),note:{position:o[s-2].trim(),text:o[s].trim()}};break;case 29:this.$=o[s].trim(),r.setAccTitle(this.$);break;case 30:case 31:this.$=o[s].trim(),r.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:o[s-3],url:o[s-2],tooltip:o[s-1]};break;case 33:this.$={stmt:"click",id:o[s-3],url:o[s-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:o[s-1].trim(),classes:o[s].trim()};break;case 36:this.$={stmt:"style",id:o[s-1].trim(),styleClass:o[s].trim()};break;case 37:this.$={stmt:"applyClass",id:o[s-1].trim(),styleClass:o[s].trim()};break;case 38:r.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:r.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:r.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:r.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:o[s].trim(),type:"default",description:""};break;case 46:case 47:this.$={stmt:"state",id:o[s-2].trim(),classes:[o[s].trim()],type:"default",description:""}}},"anonymous"),table:[{3:1,4:t,5:n,6:r},{1:[3]},{3:5,4:t,5:n,6:r},{3:6,4:t,5:n,6:r},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:a,8:8,9:10,10:12,11:13,12:14,13:15,16:s,17:l,19:c,22:u,24:h,25:d,26:p,27:f,28:g,29:m,32:25,33:O,35:A,37:y,38:v,41:b,45:x,48:w,51:k,52:S,53:T,54:$,57:_},e(C,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:s,17:l,19:c,22:u,24:h,25:d,26:p,27:f,28:g,29:m,32:25,33:O,35:A,37:y,38:v,41:b,45:x,48:w,51:k,52:S,53:T,54:$,57:_},e(C,[2,7]),e(C,[2,8]),e(C,[2,9]),e(C,[2,10]),e(C,[2,11]),e(C,[2,12],{14:[1,40],15:[1,41]}),e(C,[2,16]),{18:[1,42]},e(C,[2,18],{20:[1,43]}),{23:[1,44]},e(C,[2,22]),e(C,[2,23]),e(C,[2,24]),e(C,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(C,[2,28]),{34:[1,49]},{36:[1,50]},e(C,[2,31]),{13:51,24:h,57:_},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(Q,[2,44],{58:[1,56]}),e(Q,[2,45],{58:[1,57]}),e(C,[2,38]),e(C,[2,39]),e(C,[2,40]),e(C,[2,41]),e(C,[2,6]),e(C,[2,13]),{13:58,24:h,57:_},e(C,[2,17]),e(P,i,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(C,[2,29]),e(C,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(C,[2,14],{14:[1,71]}),{4:o,5:a,8:8,9:10,10:12,11:13,12:14,13:15,16:s,17:l,19:c,21:[1,72],22:u,24:h,25:d,26:p,27:f,28:g,29:m,32:25,33:O,35:A,37:y,38:v,41:b,45:x,48:w,51:k,52:S,53:T,54:$,57:_},e(C,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(C,[2,34]),e(C,[2,35]),e(C,[2,36]),e(C,[2,37]),e(Q,[2,46]),e(Q,[2,47]),e(C,[2,15]),e(C,[2,19]),e(P,i,{7:78}),e(C,[2,26]),e(C,[2,27]),{5:[1,79]},{5:[1,80]},{4:o,5:a,8:8,9:10,10:12,11:13,12:14,13:15,16:s,17:l,19:c,21:[1,81],22:u,24:h,25:d,26:p,27:f,28:g,29:m,32:25,33:O,35:A,37:y,38:v,41:b,45:x,48:w,51:k,52:S,53:T,54:$,57:_},e(C,[2,32]),e(C,[2,33]),e(C,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:hRe(function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},"parseError"),parse:hRe(function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),h=Object.create(this.lexer),d={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d.yy[p]=this.yy[p]);h.setInput(e,d.yy),d.yy.lexer=h,d.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var f=h.yylloc;o.push(f);var g=h.options&&h.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||h.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,hRe(function(e){n.length=n.length-2*e,i.length=i.length-e,o.length=o.length-e},"popStack"),hRe(m,"lex");for(var O,A,y,v,b,x,w,k,S={};;){if(A=n[n.length-1],this.defaultActions[A]?y=this.defaultActions[A]:(null==O&&(O=m()),y=a[A]&&a[A][O]),void 0===y||!y.length||!y[0]){var T="";for(b in k=[],a[A])this.terminals_[b]&&b>2&&k.push("'"+this.terminals_[b]+"'");T=h.showPosition?"Parse error on line "+(l+1)+":\n"+h.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[O]||O)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==O?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[O]||O,line:h.yylineno,loc:f,expected:k})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+O);switch(y[0]){case 1:n.push(O),i.push(h.yytext),o.push(h.yylloc),n.push(y[1]),O=null,c=h.yyleng,s=h.yytext,l=h.yylineno,f=h.yylloc;break;case 2:if(x=this.productions_[y[1]][1],S.$=i[i.length-x],S._$={first_line:o[o.length-(x||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(x||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(x||1)].range[0],o[o.length-1].range[1]]),void 0!==(v=this.performAction.apply(S,[s,c,l,d.yy,y[1],i,o].concat(u))))return v;x&&(n=n.slice(0,-1*x*2),i=i.slice(0,-1*x),o=o.slice(0,-1*x)),n.push(this.productions_[y[1]][0]),i.push(S.$),o.push(S._$),w=a[n[n.length-2]][n[n.length-1]],n.push(w);break;case 3:return!0}}return!0},"parse")},R=function(){var e={EOF:1,parseError:hRe(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:hRe(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:hRe(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:hRe(function(e){var t=e.length,n=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 r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:hRe(function(){return this._more=!0,this},"more"),reject:hRe(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:hRe(function(e){this.unput(this.match.slice(e))},"less"),pastInput:hRe(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:hRe(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:hRe(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:hRe(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.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],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},"test_match"),next:hRe(function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&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:hRe(function(){var e=this.next();return e||this.lex()},"lex"),begin:hRe(function(e){this.conditionStack.push(e)},"begin"),popState:hRe(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:hRe(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:hRe(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:hRe(function(e){this.begin(e)},"pushState"),stateStackSize:hRe(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:hRe(function(e,t,n,r){function i(){const n=t.yytext.indexOf("%%");if(0===n)return!1;if(n>0){const r=t.yytext.slice(0,n),i=t.yytext.slice(n);i&&e.lexer.unput(i),t.yytext=r}return!0}switch(hRe(i,"processId"),n){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:case 43:return 51;case 5:case 44:return 52;case 6:case 45:return 53;case 7:case 46:return 54;case 8:case 78:return 5;case 9:case 10:case 11:case 12:case 57:case 63:break;case 13:case 33:return this.pushState("SCALE"),17;case 14:case 34:return 18;case 15:case 21:case 35:case 50:case 54:this.popState();break;case 16:return this.begin("acc_title"),33;case 17:return this.popState(),"acc_title_value";case 18:return this.begin("acc_descr"),35;case 19:return this.popState(),"acc_descr_value";case 20:this.begin("acc_descr_multiline");break;case 22:return"acc_descr_multiline_value";case 23:return this.pushState("CLASSDEF"),41;case 24:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 25:return this.popState(),this.pushState("CLASSDEFID"),42;case 26:return this.popState(),43;case 27:return this.pushState("CLASS"),48;case 28:return this.popState(),this.pushState("CLASS_STYLE"),49;case 29:return this.popState(),50;case 30:return this.pushState("STYLE"),45;case 31:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 32:return this.popState(),47;case 36:this.pushState("STATE");break;case 37:case 40:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),25;case 38:case 41:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),26;case 39:case 42:return this.popState(),t.yytext=t.yytext.slice(0,-10).trim(),27;case 47:this.pushState("STATE_STRING");break;case 48:return this.pushState("STATE_ID"),"AS";case 49:case 65:if(!i())return;return this.popState(),"ID";case 51:return"STATE_DESCR";case 52:throw new Error('Error: State name must be a single word. Found: "'+t.yytext.trim()+'"');case 53:return 19;case 55:return this.popState(),this.pushState("struct"),20;case 56:return this.popState(),21;case 58:return this.begin("NOTE"),29;case 59:return this.popState(),this.pushState("NOTE_ID"),59;case 60:return this.popState(),this.pushState("NOTE_ID"),60;case 61:this.popState(),this.pushState("FLOATING_NOTE");break;case 62:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 64:return"NOTE_TEXT";case 66:if(!i())return;return this.popState(),this.pushState("NOTE_TEXT"),24;case 67:return this.popState(),t.yytext=t.yytext.substr(2).trim(),31;case 68:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),31;case 69:case 70:return 6;case 71:return 16;case 72:return 57;case 73:if(!i())return;return 24;case 74:return t.yytext=t.yytext.trim(),14;case 75:return 15;case 76:return 28;case 77:return 58;case 79:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\w+\s+\w+.*?\{)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,56,57,58,72,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[65],inclusive:!1},FLOATING_NOTE:{rules:[62,63,64],inclusive:!1},NOTE_TEXT:{rules:[67,68],inclusive:!1},NOTE_ID:{rules:[66],inclusive:!1},NOTE:{rules:[59,60,61],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54,55],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,55,58,69,70,71,72,73,74,75,77,78,79],inclusive:!0}}};return e}();function B(){this.yy={}}return E.lexer=R,hRe(B,"Parser"),B.prototype=E,E.Parser=B,new B}();y_n.parser=y_n;var v_n=y_n,b_n="state",x_n="root",w_n="relation",k_n="default",S_n="divider",T_n="fill:none",$_n="fill: #333",__n="markdown",C_n="normal",Q_n="rect",P_n="rectWithTitle",E_n="divider",R_n="roundedWithTitle",B_n="statediagram",I_n=`${B_n}-state`,L_n="transition",D_n=`${L_n} note-edge`,M_n=`${B_n}-note`,N_n=`${B_n}-cluster`,X_n=`${B_n}-cluster-alt`,F_n="parent",U_n="note",z_n="----",q_n=`${z_n}${U_n}`,V_n=`${z_n}${F_n}`,W_n=hRe((e,t="TB")=>{if(!e.doc)return t;let n=t;for(const r of e.doc)"dir"===r.stmt&&(n=r.value);return n},"getDir"),j_n={getClasses:hRe(function(e,t){return t.db.getClasses()},"getClasses"),draw:hRe(async function(e,t,n,r){ORe.info("REF0:"),ORe.info("Drawing state diagram (v2)",t);const{securityLevel:i,state:o,layout:a}=JIe();r.db.extract(r.db.getRootDocV2());const s=r.db.getData(),l=gzt(t,i);s.type=r.type,s.layoutAlgorithm=a,s.nodeSpacing=(null==o?void 0:o.nodeSpacing)||50,s.rankSpacing=(null==o?void 0:o.rankSpacing)||50;"neo"===JIe().look?s.markers=["barbNeo"]:s.markers=["barb"],s.diagramId=t,await l2e(s,l);try{("function"==typeof r.db.getLinks?r.db.getLinks():new Map).forEach((e,t)=>{var n;const r="string"==typeof t?t:"string"==typeof(null==t?void 0:t.id)?t.id:"",i=s.nodes.find(e=>e.id===r);if(!r)return void ORe.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(t));const o=null==(n=l.node())?void 0:n.querySelectorAll("g.node, g.rough-node");let a;if(null==o||o.forEach(e=>{var t;const n=null==(t=e.textContent)?void 0:t.trim();e.id!==(null==i?void 0:i.domId)&&n!==r||(a=e)}),!a)return void ORe.warn("⚠️ Could not find node matching text:",r);const c=a.parentNode;if(!c)return void ORe.warn("⚠️ Node has no parent, cannot wrap:",r);const u=document.createElementNS("http://www.w3.org/2000/svg","a"),h=e.url.replace(/^"+|"+$/g,"");if(u.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",h),u.setAttribute("target","_blank"),e.tooltip){const t=e.tooltip.replace(/^"+|"+$/g,"");u.setAttribute("title",t),a.setAttribute("title",t)}c.replaceChild(u,a),u.appendChild(a),ORe.info("🔗 Wrapped node in <a> tag for:",r,e.url)})}catch(c){ORe.error("❌ Error injecting clickable links:",c)}YWe.insertTitle(l,"statediagramTitleText",(null==o?void 0:o.titleTopMargin)??25,r.db.getDiagramTitle()),mzt(l,8,B_n,(null==o?void 0:o.useMaxWidth)??!0)},"draw"),getDir:W_n},Y_n=new Map,Z_n=0;function G_n(e="",t=0,n="",r=z_n){return`state-${e}${null!==n&&n.length>0?`${r}${n}`:""}-${t}`}hRe(G_n,"stateDomId");var H_n=hRe((e,t,n,r,i,o,a,s)=>{ORe.trace("items",t),t.forEach(t=>{switch(t.stmt){case b_n:case k_n:rCn(e,t,n,r,i,o,a,s);break;case w_n:{rCn(e,t.state1,n,r,i,o,a,s),rCn(e,t.state2,n,r,i,o,a,s);const l="neo"===a,c={id:"edge"+Z_n,start:t.state1.id,end:t.state2.id,arrowhead:"normal",arrowTypeEnd:l?"arrow_barb_neo":"arrow_barb",style:T_n,labelStyle:"",label:CIe.sanitizeText(t.description??"",JIe()),arrowheadStyle:$_n,labelpos:"c",labelType:__n,thickness:C_n,classes:L_n,look:a};i.push(c),Z_n++}}})},"setupDoc"),K_n=hRe((e,t="TB")=>{let n=t;if(e.doc)for(const r of e.doc)"dir"===r.stmt&&(n=r.value);return n},"getDir");function J_n(e,t,n){if(!t.id||"</join></fork>"===t.id||"</choice>"===t.id)return;t.cssClasses&&(Array.isArray(t.cssCompiledStyles)||(t.cssCompiledStyles=[]),t.cssClasses.split(" ").forEach(e=>{const r=n.get(e);r&&(t.cssCompiledStyles=[...t.cssCompiledStyles??[],...r.styles])}));const r=e.find(e=>e.id===t.id);r?Object.assign(r,t):e.push(t)}function eCn(e){var t;return(null==(t=null==e?void 0:e.classes)?void 0:t.join(" "))??""}function tCn(e){return(null==e?void 0:e.styles)??[]}hRe(J_n,"insertOrUpdateNode"),hRe(eCn,"getClassesFromDbInfo"),hRe(tCn,"getStylesFromDbInfo");var nCn,rCn=hRe((e,t,n,r,i,o,a,s)=>{var l,c,u;const h=t.id,d=n.get(h),p=eCn(d),f=tCn(d),g=JIe();if(ORe.info("dataFetcher parsedItem",t,d,f),"root"!==h){let n=Q_n;!0===t.start?n="stateStart":!1===t.start&&(n="stateEnd"),t.type!==k_n&&(n=t.type),Y_n.get(h)||Y_n.set(h,{id:h,shape:n,description:CIe.sanitizeText(h,g),cssClasses:`${p} ${I_n}`,cssStyles:f});const d=Y_n.get(h);t.description&&(Array.isArray(d.description)?(d.shape=P_n,d.description.push(t.description)):(null==(l=d.description)?void 0:l.length)&&d.description.length>0?(d.shape=P_n,d.description===h?d.description=[t.description]:d.description=[d.description,t.description]):(d.shape=Q_n,d.description=t.description),d.description=CIe.sanitizeTextOrArray(d.description,g)),1===(null==(c=d.description)?void 0:c.length)&&d.shape===P_n&&("group"===d.type?d.shape=R_n:d.shape=Q_n),!d.type&&t.doc&&(ORe.info("Setting cluster for XCX",h,K_n(t)),d.type="group",d.isGroup=!0,d.dir=K_n(t),d.shape=t.type===S_n?E_n:R_n,d.cssClasses=`${d.cssClasses} ${N_n} ${o?X_n:""}`);const m={labelStyle:"",shape:d.shape,label:d.description,cssClasses:d.cssClasses,cssCompiledStyles:[],cssStyles:d.cssStyles,id:h,dir:d.dir,domId:G_n(h,Z_n),type:d.type,isGroup:"group"===d.type,padding:8,rx:10,ry:10,look:a,labelType:"markdown"};if(m.shape===E_n&&(m.label=""),e&&"root"!==e.id&&(ORe.trace("Setting node ",h," to be child of its parent ",e.id),m.parentId=e.id),m.centerLabel=!0,t.note){const e={labelStyle:"",shape:"note",label:t.note.text,labelType:"markdown",cssClasses:M_n,cssStyles:[],cssCompiledStyles:[],id:h+q_n+"-"+Z_n,domId:G_n(h,Z_n,U_n),type:d.type,isGroup:"group"===d.type,padding:null==(u=g.flowchart)?void 0:u.padding,look:a,position:t.note.position},n=h+V_n,o={labelStyle:"",shape:"noteGroup",label:t.note.text,cssClasses:d.cssClasses,cssStyles:[],id:h+V_n,domId:G_n(h,Z_n,F_n),type:"group",isGroup:!0,padding:16,look:a,position:t.note.position};Z_n++,o.id=n,e.parentId=n,J_n(r,o,s),J_n(r,e,s),J_n(r,m,s);let l=h,c=e.id;"left of"===t.note.position&&(l=e.id,c=h),i.push({id:l+"-"+c,start:l,end:c,arrowhead:"none",arrowTypeEnd:"",style:T_n,labelStyle:"",classes:D_n,arrowheadStyle:$_n,labelpos:"c",labelType:__n,thickness:C_n,look:a})}else J_n(r,m,s)}t.doc&&(ORe.trace("Adding nodes children "),H_n(t,t.doc,n,r,i,!o,a,s))},"dataFetcher"),iCn=hRe(()=>{Y_n.clear(),Z_n=0},"reset"),oCn="[*]",aCn="start",sCn="[*]",lCn="end",cCn="color",uCn="fill",hCn="bgFill",dCn=",",pCn=hRe(()=>new Map,"newClassesList"),fCn=hRe(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),gCn=hRe(e=>JSON.parse(JSON.stringify(e)),"clone"),mCn=(Nn=class{constructor(e){this.version=e,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=pCn(),this.documents={root:fCn()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.funs=[],this.getAccTitle=WIe,this.setAccTitle=VIe,this.getAccDescription=YIe,this.setAccDescription=jIe,this.setDiagramTitle=ZIe,this.getDiagramTitle=GIe,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this),this.bindFunctions=this.bindFunctions.bind(this)}extract(e){this.clear(!0);for(const r of Array.isArray(e)?e:e.doc)switch(r.stmt){case b_n:this.addState(r.id.trim(),r.type,r.doc,r.description,r.note);break;case w_n:this.addRelation(r.state1,r.state2,r.description);break;case"classDef":this.addStyleClass(r.id.trim(),r.classes);break;case"style":this.handleStyleDef(r);break;case"applyClass":this.setCssClass(r.id.trim(),r.styleClass);break;case"click":this.addLink(r.id,r.url,r.tooltip)}const t=this.getStates(),n=JIe();iCn(),rCn(void 0,this.getRootDocV2(),t,this.nodes,this.edges,!0,n.look,this.classes);for(const r of this.nodes)if(Array.isArray(r.label)){if(r.description=r.label.slice(1),r.isGroup&&r.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${r.id}]`);r.label=r.label[0]}}handleStyleDef(e){const t=e.id.trim().split(","),n=e.styleClass.split(",");for(const r of t){let e=this.getState(r);if(!e){const t=r.trim();this.addState(t),e=this.getState(t)}e&&(e.styles=n.map(e=>{var t;return null==(t=e.replace(/;/g,""))?void 0:t.trim()}))}}setRootDoc(e){ORe.info("Setting root doc",e),this.rootDoc=e,1===this.version?this.extract(e):this.extract(this.getRootDocV2())}docTranslator(e,t,n){if(t.stmt===w_n)return this.docTranslator(e,t.state1,!0),void this.docTranslator(e,t.state2,!1);if(t.stmt===b_n&&(t.id===oCn?(t.id=e.id+(n?"_start":"_end"),t.start=n):t.id=t.id.trim()),t.stmt!==x_n&&t.stmt!==b_n||!t.doc)return;const r=[];let i=[];for(const o of t.doc)if(o.type===S_n){const e=gCn(o);e.doc=gCn(i),r.push(e),i=[]}else i.push(o);if(r.length>0&&i.length>0){const e={stmt:b_n,id:PWe(),type:"divider",doc:gCn(i)};r.push(gCn(e)),t.doc=r}t.doc.forEach(e=>this.docTranslator(t,e,!0))}getRootDocV2(){return this.docTranslator({id:x_n,stmt:x_n},{id:x_n,stmt:x_n,doc:this.rootDoc},!0),{id:x_n,doc:this.rootDoc}}addState(e,t=k_n,n=void 0,r=void 0,i=void 0,o=void 0,a=void 0,s=void 0){const l=null==e?void 0:e.trim();if(this.currentDocument.states.has(l)){const e=this.currentDocument.states.get(l);if(!e)throw new Error(`State not found: ${l}`);e.doc||(e.doc=n),e.type||(e.type=t)}else ORe.info("Adding state ",l,r),this.currentDocument.states.set(l,{stmt:b_n,id:l,descriptions:[],type:t,doc:n,note:i,classes:[],styles:[],textStyles:[]});if(r){ORe.info("Setting state description",l,r);(Array.isArray(r)?r:[r]).forEach(e=>this.addDescription(l,e.trim()))}if(i){const e=this.currentDocument.states.get(l);if(!e)throw new Error(`State not found: ${l}`);e.note=i,e.note.text=CIe.sanitizeText(e.note.text,JIe())}if(o){ORe.info("Setting state classes",l,o);(Array.isArray(o)?o:[o]).forEach(e=>this.setCssClass(l,e.trim()))}if(a){ORe.info("Setting state styles",l,a);(Array.isArray(a)?a:[a]).forEach(e=>this.setStyle(l,e.trim()))}if(s){ORe.info("Setting state styles",l,a);(Array.isArray(s)?s:[s]).forEach(e=>this.setTextStyle(l,e.trim()))}}clear(e){this.nodes=[],this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.documents={root:fCn()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=pCn(),e||(this.links=new Map,qIe())}getState(e){return this.currentDocument.states.get(e)}getStates(){return this.currentDocument.states}logDocuments(){ORe.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(e,t,n){this.links.set(e,{url:t,tooltip:n}),ORe.warn("Adding link",e,t,n)}getLinks(){return this.links}startIdIfNeeded(e=""){return e===oCn?(this.startEndCount++,`${aCn}${this.startEndCount}`):e}startTypeIfNeeded(e="",t=k_n){return e===oCn?aCn:t}endIdIfNeeded(e=""){return e===sCn?(this.startEndCount++,`${lCn}${this.startEndCount}`):e}endTypeIfNeeded(e="",t=k_n){return e===sCn?lCn:t}addRelationObjs(e,t,n=""){const r=this.startIdIfNeeded(e.id.trim()),i=this.startTypeIfNeeded(e.id.trim(),e.type),o=this.startIdIfNeeded(t.id.trim()),a=this.startTypeIfNeeded(t.id.trim(),t.type);this.addState(r,i,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.addState(o,a,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.currentDocument.relations.push({id1:r,id2:o,relationTitle:CIe.sanitizeText(n,JIe())})}addRelation(e,t,n){if("object"==typeof e&&"object"==typeof t)this.addRelationObjs(e,t,n);else if("string"==typeof e&&"string"==typeof t){const r=this.startIdIfNeeded(e.trim()),i=this.startTypeIfNeeded(e),o=this.endIdIfNeeded(t.trim()),a=this.endTypeIfNeeded(t);this.addState(r,i),this.addState(o,a),this.currentDocument.relations.push({id1:r,id2:o,relationTitle:n?CIe.sanitizeText(n,JIe()):void 0})}}addDescription(e,t){var n;const r=this.currentDocument.states.get(e),i=t.startsWith(":")?t.replace(":","").trim():t;null==(n=null==r?void 0:r.descriptions)||n.push(CIe.sanitizeText(i,JIe()))}cleanupLabel(e){return e.startsWith(":")?e.slice(2).trim():e.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(e,t=""){this.classes.has(e)||this.classes.set(e,{id:e,styles:[],textStyles:[]});const n=this.classes.get(e);t&&n&&t.split(dCn).forEach(e=>{const t=e.replace(/([^;]*);/,"$1").trim();if(RegExp(cCn).exec(e)){const e=t.replace(uCn,hCn).replace(cCn,uCn);n.textStyles.push(e)}n.styles.push(t)})}getClasses(){return this.classes}setupToolTips(e){const t=_Ft();GDe(e).select("svg").selectAll("g.node, g.rough-node").on("mouseover",e=>{var n;const r=GDe(e.currentTarget),i=r.attr("title");if(null===i)return;const o=null==(n=e.currentTarget)?void 0:n.getBoundingClientRect();t.transition().duration(200).style("opacity",".9"),t.style("left",window.scrollX+o.left+(o.right-o.left)/2+"px").style("top",window.scrollY+o.bottom+"px"),t.html(XL.sanitize(i)),r.classed("hover",!0)}).on("mouseout",e=>{t.transition().duration(500).style("opacity",0);GDe(e.currentTarget).classed("hover",!1)})}setCssClass(e,t){e.split(",").forEach(e=>{var n;let r=this.getState(e);if(!r){const t=e.trim();this.addState(t),r=this.getState(t)}null==(n=null==r?void 0:r.classes)||n.push(t)})}setStyle(e,t){var n,r;null==(r=null==(n=this.getState(e))?void 0:n.styles)||r.push(t)}setTextStyle(e,t){var n,r;null==(r=null==(n=this.getState(e))?void 0:n.textStyles)||r.push(t)}bindFunctions(e){this.funs.forEach(t=>{t(e)})}getDirectionStatement(){return this.rootDoc.find(e=>"dir"===e.stmt)}getDirection(){var e;return(null==(e=this.getDirectionStatement())?void 0:e.value)??"TB"}setDirection(e){const t=this.getDirectionStatement();t?t.value=e:this.rootDoc.unshift({stmt:"dir",value:e})}trimColon(e){return e.startsWith(":")?e.slice(1).trim():e.trim()}getData(){const e=JIe();return{nodes:this.nodes,edges:this.edges,other:{},config:e,direction:W_n(this.getRootDocV2())}}getConfig(){return JIe().state}},hRe(Nn,"StateDB"),Nn.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},Nn),OCn=hRe(e=>`\ndefs [id$="-barbEnd"] {\n fill: ${e.transitionColor};\n stroke: ${e.transitionColor};\n }\ng.stateGroup text {\n fill: ${e.nodeBorder};\n stroke: none;\n font-size: 10px;\n}\ng.stateGroup text {\n fill: ${e.textColor};\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ${e.stateLabelColor};\n}\n\ng.stateGroup rect {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n}\n\ng.stateGroup line {\n stroke: ${e.lineColor};\n stroke-width: ${e.strokeWidth||1};\n}\n\n.transition {\n stroke: ${e.transitionColor};\n stroke-width: ${e.strokeWidth||1};\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ${e.background};\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ${e.noteBorderColor};\n fill: ${e.noteBkgColor};\n\n text {\n fill: ${e.noteTextColor};\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${e.mainBkg};\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ${e.labelBackgroundColor};\n opacity: 0.5;\n}\n.edgeLabel {\n background-color: ${e.edgeLabelBackground};\n p {\n background-color: ${e.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${e.edgeLabelBackground};\n fill: ${e.edgeLabelBackground};\n }\n text-align: center;\n}\n.edgeLabel .label text {\n fill: ${e.transitionLabelColor||e.tertiaryTextColor};\n}\n.label div .edgeLabel {\n color: ${e.transitionLabelColor||e.tertiaryTextColor};\n}\n\n.stateLabel text {\n fill: ${e.stateLabelColor};\n font-size: 10px;\n font-weight: bold;\n}\n\n.node circle.state-start {\n fill: ${e.specialStateColor};\n stroke: ${e.specialStateColor};\n}\n\n.node .fork-join {\n fill: ${e.specialStateColor};\n stroke: ${e.specialStateColor};\n}\n\n.node circle.state-end {\n fill: ${e.innerEndBackground};\n stroke: ${e.background};\n stroke-width: 1.5\n}\n.end-state-inner {\n fill: ${e.compositeBackground||e.background};\n // stroke: ${e.background};\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ${e.stateBkg||e.mainBkg};\n stroke: ${e.stateBorder||e.nodeBorder};\n stroke-width: ${e.strokeWidth||1}px;\n}\n.node polygon {\n fill: ${e.mainBkg};\n stroke: ${e.stateBorder||e.nodeBorder};;\n stroke-width: ${e.strokeWidth||1}px;\n}\n[id$="-barbEnd"] {\n fill: ${e.lineColor};\n}\n\n.statediagram-cluster rect {\n fill: ${e.compositeTitleBackground};\n stroke: ${e.stateBorder||e.nodeBorder};\n stroke-width: ${e.strokeWidth||1}px;\n}\n\n.cluster-label, .nodeLabel {\n color: ${e.stateLabelColor};\n // line-height: 1;\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ${e.stateBorder||e.nodeBorder};\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ${e.compositeBackground||e.background};\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: ${e.altBackground?e.altBackground:"#efefef"};\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ${e.altBackground?e.altBackground:"#efefef"};\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ${e.noteBkgColor};\n stroke: ${e.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ${e.noteBkgColor};\n stroke: ${e.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ${e.noteTextColor};\n}\n\n.statediagram-note .nodeLabel {\n color: ${e.noteTextColor};\n}\n.statediagram .edgeLabel {\n color: red; // ${e.noteTextColor};\n}\n\n[id$="-dependencyStart"], [id$="-dependencyEnd"] {\n fill: ${e.lineColor};\n stroke: ${e.lineColor};\n stroke-width: ${e.strokeWidth||1};\n}\n\n.statediagramTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.textColor};\n}\n\n[data-look="neo"].statediagram-cluster rect {\n fill: ${e.mainBkg};\n stroke: ${e.useGradient?"url("+e.svgId+"-gradient)":e.stateBorder||e.nodeBorder};\n stroke-width: ${e.strokeWidth??1};\n}\n[data-look="neo"].statediagram-cluster rect.outer {\n rx: ${e.radius}px;\n ry: ${e.radius}px;\n filter: ${e.dropShadow?e.dropShadow.replace("url(#drop-shadow)",`url(${e.svgId}-drop-shadow)`):"none"}\n}\n`,"getStyles"),ACn=hRe(e=>e.append("circle").attr("class","start-state").attr("r",JIe().state.sizeUnit).attr("cx",JIe().state.padding+JIe().state.sizeUnit).attr("cy",JIe().state.padding+JIe().state.sizeUnit),"drawStartState"),yCn=hRe(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",JIe().state.textHeight).attr("class","divider").attr("x2",2*JIe().state.textHeight).attr("y1",0).attr("y2",0),"drawDivider"),vCn=hRe((e,t)=>{const n=e.append("text").attr("x",2*JIe().state.padding).attr("y",JIe().state.textHeight+2*JIe().state.padding).attr("font-size",JIe().state.fontSize).attr("class","state-title").text(t.id),r=n.node().getBBox();return e.insert("rect",":first-child").attr("x",JIe().state.padding).attr("y",JIe().state.padding).attr("width",r.width+2*JIe().state.padding).attr("height",r.height+2*JIe().state.padding).attr("rx",JIe().state.radius),n},"drawSimpleState"),bCn=hRe((e,t)=>{const n=hRe(function(e,t,n){const r=e.append("tspan").attr("x",2*JIe().state.padding).text(t);n||r.attr("dy",JIe().state.textHeight)},"addTspan"),r=e.append("text").attr("x",2*JIe().state.padding).attr("y",JIe().state.textHeight+1.3*JIe().state.padding).attr("font-size",JIe().state.fontSize).attr("class","state-title").text(t.descriptions[0]).node().getBBox(),i=r.height,o=e.append("text").attr("x",JIe().state.padding).attr("y",i+.4*JIe().state.padding+JIe().state.dividerMargin+JIe().state.textHeight).attr("class","state-description");let a=!0,s=!0;t.descriptions.forEach(function(e){a||(n(o,e,s),s=!1),a=!1});const l=e.append("line").attr("x1",JIe().state.padding).attr("y1",JIe().state.padding+i+JIe().state.dividerMargin/2).attr("y2",JIe().state.padding+i+JIe().state.dividerMargin/2).attr("class","descr-divider"),c=o.node().getBBox(),u=Math.max(c.width,r.width);return l.attr("x2",u+3*JIe().state.padding),e.insert("rect",":first-child").attr("x",JIe().state.padding).attr("y",JIe().state.padding).attr("width",u+2*JIe().state.padding).attr("height",c.height+i+2*JIe().state.padding).attr("rx",JIe().state.radius),e},"drawDescrState"),xCn=hRe((e,t,n)=>{const r=JIe().state.padding,i=2*JIe().state.padding,o=e.node().getBBox(),a=o.width,s=o.x,l=e.append("text").attr("x",0).attr("y",JIe().state.titleShift).attr("font-size",JIe().state.fontSize).attr("class","state-title").text(t.id),c=l.node().getBBox().width+i;let u,h=Math.max(c,a);h===a&&(h+=i);const d=e.node().getBBox();t.doc,u=s-r,c>a&&(u=(a-h)/2+r),Math.abs(s-d.x)<r&&c>a&&(u=s-(c-a)/2);const p=1-JIe().state.textHeight;return e.insert("rect",":first-child").attr("x",u).attr("y",p).attr("class",n?"alt-composit":"composit").attr("width",h).attr("height",d.height+JIe().state.textHeight+JIe().state.titleShift+1).attr("rx","0"),l.attr("x",u+r),c<=a&&l.attr("x",s+(h-i)/2-c/2+r),e.insert("rect",":first-child").attr("x",u).attr("y",JIe().state.titleShift-JIe().state.textHeight-JIe().state.padding).attr("width",h).attr("height",3*JIe().state.textHeight).attr("rx",JIe().state.radius),e.insert("rect",":first-child").attr("x",u).attr("y",JIe().state.titleShift-JIe().state.textHeight-JIe().state.padding).attr("width",h).attr("height",d.height+3+2*JIe().state.textHeight).attr("rx",JIe().state.radius),e},"addTitleAndBox"),wCn=hRe(e=>(e.append("circle").attr("class","end-state-outer").attr("r",JIe().state.sizeUnit+JIe().state.miniPadding).attr("cx",JIe().state.padding+JIe().state.sizeUnit+JIe().state.miniPadding).attr("cy",JIe().state.padding+JIe().state.sizeUnit+JIe().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",JIe().state.sizeUnit).attr("cx",JIe().state.padding+JIe().state.sizeUnit+2).attr("cy",JIe().state.padding+JIe().state.sizeUnit+2)),"drawEndState"),kCn=hRe((e,t)=>{let n=JIe().state.forkWidth,r=JIe().state.forkHeight;if(t.parentId){let e=n;n=r,r=e}return e.append("rect").style("stroke","black").style("fill","black").attr("width",n).attr("height",r).attr("x",JIe().state.padding).attr("y",JIe().state.padding)},"drawForkJoinState"),SCn=hRe((e,t,n,r)=>{let i=0;const o=r.append("text");o.style("text-anchor","start"),o.attr("class","noteText");let a=e.replace(/\r\n/g,"<br/>");a=a.replace(/\n/g,"<br/>");const s=a.split(CIe.lineBreakRegex);let l=1.25*JIe().state.noteMargin;for(const c of s){const e=c.trim();if(e.length>0){const r=o.append("tspan");if(r.text(e),0===l){l+=r.node().getBBox().height}i+=l,r.attr("x",t+JIe().state.noteMargin),r.attr("y",n+i+1.25*JIe().state.noteMargin)}}return{textWidth:o.node().getBBox().width,textHeight:i}},"_drawLongText"),TCn=hRe((e,t)=>{t.attr("class","state-note");const n=t.append("rect").attr("x",0).attr("y",JIe().state.padding),r=t.append("g"),{textWidth:i,textHeight:o}=SCn(e,0,0,r);return n.attr("height",o+2*JIe().state.noteMargin),n.attr("width",i+2*JIe().state.noteMargin),n},"drawNote"),$Cn=hRe(function(e,t){const n=t.id,r={id:n,label:t.id,width:0,height:0},i=e.append("g").attr("id",n).attr("class","stateGroup");"start"===t.type&&ACn(i),"end"===t.type&&wCn(i),"fork"!==t.type&&"join"!==t.type||kCn(i,t),"note"===t.type&&TCn(t.note.text,i),"divider"===t.type&&yCn(i),"default"===t.type&&0===t.descriptions.length&&vCn(i,t),"default"===t.type&&t.descriptions.length>0&&bCn(i,t);const o=i.node().getBBox();return r.width=o.width+2*JIe().state.padding,r.height=o.height+2*JIe().state.padding,r},"drawState"),_Cn=0,CCn=hRe(function(e,t,n){const r=hRe(function(e){switch(e){case mCn.relationType.AGGREGATION:return"aggregation";case mCn.relationType.EXTENSION:return"extension";case mCn.relationType.COMPOSITION:return"composition";case mCn.relationType.DEPENDENCY:return"dependency"}},"getRelationType");t.points=t.points.filter(e=>!Number.isNaN(e.y));const i=t.points,o=Wze().x(function(e){return e.x}).y(function(e){return e.y}).curve(tqe),a=e.append("path").attr("d",o(i)).attr("id","edge"+_Cn).attr("class","transition");let s="";if(JIe().state.arrowMarkerAbsolute&&(s=mIe(!0)),a.attr("marker-end","url("+s+"#"+r(mCn.relationType.DEPENDENCY)+"End)"),void 0!==n.title){const r=e.append("g").attr("class","stateLabel"),{x:i,y:o}=YWe.calcLabelPosition(t.points),a=CIe.getRows(n.title);let s=0;const l=[];let c=0,u=0;for(let e=0;e<=a.length;e++){const t=r.append("text").attr("text-anchor","middle").text(a[e]).attr("x",i).attr("y",o+s),n=t.node().getBBox();if(c=Math.max(c,n.width),u=Math.min(u,n.x),ORe.info(n.x,i,o+s),0===s){const e=t.node().getBBox();s=e.height,ORe.info("Title height",s,o)}l.push(t)}let h=s*a.length;if(a.length>1){const e=(a.length-1)*s*.5;l.forEach((t,n)=>t.attr("y",o+n*s-e)),h=s*a.length}const d=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",i-c/2-JIe().state.padding/2).attr("y",o-h/2-JIe().state.padding/2-3.5).attr("width",c+JIe().state.padding).attr("height",h+JIe().state.padding),ORe.info(d)}_Cn++},"drawEdge"),QCn={},PCn=hRe(function(){},"setConf"),ECn=hRe(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),RCn=hRe(function(e,t,n,r){nCn=JIe().state;const i=JIe().securityLevel;let o;"sandbox"===i&&(o=GDe("#i"+t));const a=GDe("sandbox"===i?o.nodes()[0].contentDocument.body:"body"),s="sandbox"===i?o.nodes()[0].contentDocument:document;ORe.debug("Rendering diagram "+e);const l=a.select(`[id='${t}']`);ECn(l);const c=r.db.getRootDoc(),u=l.append("g").attr("id",t+"-root");ICn(c,u,void 0,!1,a,s,r);const h=nCn.padding,d=l.node().getBBox(),p=d.width+2*h,f=d.height+2*h;EIe(l,f,1.75*p,nCn.useMaxWidth),l.attr("viewBox",`${d.x-nCn.padding} ${d.y-nCn.padding} `+p+" "+f)},"draw"),BCn=hRe(e=>e?e.length*nCn.fontSizeFactor:1,"getLabelWidth"),ICn=hRe((e,t,n,r,i,o,a)=>{const s=new MJe({compound:!0,multigraph:!0});let l,c=!0;for(l=0;l<e.length;l++)if("relation"===e[l].stmt){c=!1;break}n?s.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:c?1:nCn.edgeLengthFactor,nodeSep:c?1:50,isMultiGraph:!0}):s.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:c?1:nCn.edgeLengthFactor,nodeSep:c?1:50,ranker:"tight-tree",isMultiGraph:!0}),s.setDefaultEdgeLabel(function(){return{}});const u=a.db.getStates(),h=a.db.getRelations(),d=Object.keys(u);for(const O of d){const e=u[O];let l;if(n&&(e.parentId=n),e.doc){let n=t.append("g").attr("id",e.id).attr("class","stateGroup");l=ICn(e.doc,n,e.id,!r,i,o,a);{n=xCn(n,e,r);let t=n.node().getBBox();l.width=t.width,l.height=t.height+nCn.padding/2,QCn[e.id]={y:nCn.compositTitleSize}}}else l=$Cn(t,e,s);if(e.note){const n={descriptions:[],id:e.id+"-note",note:e.note,type:"note"},r=$Cn(t,n,s);"left of"===e.note.position?(s.setNode(l.id+"-note",r),s.setNode(l.id,l)):(s.setNode(l.id,l),s.setNode(l.id+"-note",r)),s.setParent(l.id,l.id+"-group"),s.setParent(l.id+"-note",l.id+"-group")}else s.setNode(l.id,l)}ORe.debug("Count=",s.nodeCount(),s);let p=0;h.forEach(function(e){p++,ORe.debug("Setting edge",e),s.setEdge(e.id1,e.id2,{relation:e,width:BCn(e.title),height:nCn.labelHeight*CIe.getRows(e.title).length,labelpos:"c"},"id"+p)}),jxt(s),ORe.debug("Graph after layout",s.nodes());const f=t.node();s.nodes().forEach(function(e){if(void 0!==e&&void 0!==s.node(e)){ORe.warn("Node "+e+": "+JSON.stringify(s.node(e))),i.select("#"+f.id+" #"+e).attr("transform","translate("+(s.node(e).x-s.node(e).width/2)+","+(s.node(e).y+(QCn[e]?QCn[e].y:0)-s.node(e).height/2)+" )"),i.select("#"+f.id+" #"+e).attr("data-x-shift",s.node(e).x-s.node(e).width/2);o.querySelectorAll("#"+f.id+" #"+e+" .divider").forEach(e=>{const t=e.parentElement;let n=0,r=0;t&&(t.parentElement&&(n=t.parentElement.getBBox().width),r=parseInt(t.getAttribute("data-x-shift"),10),Number.isNaN(r)&&(r=0)),e.setAttribute("x1",0-r+8),e.setAttribute("x2",n-r-8)})}else ORe.debug("No Node "+e+": "+JSON.stringify(s.node(e)))});let g=f.getBBox();s.edges().forEach(function(e){void 0!==e&&void 0!==s.edge(e)&&(ORe.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(s.edge(e))),CCn(t,s.edge(e),s.edge(e).relation))}),g=f.getBBox();const m={id:n||"root",label:n||"root",width:0,height:0};return m.width=g.width+2*nCn.padding,m.height=g.height+2*nCn.padding,ORe.debug("Doc rendered",m,s),m},"renderDoc"),LCn={setConf:PCn,draw:RCn},DCn={parser:v_n,get db(){return new mCn(1)},renderer:LCn,styles:OCn,init:hRe(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};const MCn=Object.freeze(Object.defineProperty({__proto__:null,diagram:DCn},Symbol.toStringTag,{value:"Module"}));var NCn={parser:v_n,get db(){return new mCn(2)},renderer:j_n,styles:OCn,init:hRe(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};const XCn=Object.freeze(Object.defineProperty({__proto__:null,diagram:NCn},Symbol.toStringTag,{value:"Module"}));var FCn=function(){var e=hRe(function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},"o"),t=[6,8,10,11,12,14,16,17,18],n=[1,9],r=[1,10],i=[1,11],o=[1,12],a=[1,13],s=[1,14],l={trace:hRe(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:hRe(function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 1:return o[s-1];case 2:case 6:case 7:this.$=[];break;case 3:o[s-1].push(o[s]),this.$=o[s-1];break;case 4:case 5:this.$=o[s];break;case 8:r.setDiagramTitle(o[s].substr(6)),this.$=o[s].substr(6);break;case 9:this.$=o[s].trim(),r.setAccTitle(this.$);break;case 10:case 11:this.$=o[s].trim(),r.setAccDescription(this.$);break;case 12:r.addSection(o[s].substr(8)),this.$=o[s].substr(8);break;case 13:r.addTask(o[s-1],o[s]),this.$="task"}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:r,14:i,16:o,17:a,18:s},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:15,11:n,12:r,14:i,16:o,17:a,18:s},e(t,[2,5]),e(t,[2,6]),e(t,[2,8]),{13:[1,16]},{15:[1,17]},e(t,[2,11]),e(t,[2,12]),{19:[1,18]},e(t,[2,4]),e(t,[2,9]),e(t,[2,10]),e(t,[2,13])],defaultActions:{},parseError:hRe(function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},"parseError"),parse:hRe(function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),h=Object.create(this.lexer),d={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d.yy[p]=this.yy[p]);h.setInput(e,d.yy),d.yy.lexer=h,d.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var f=h.yylloc;o.push(f);var g=h.options&&h.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||h.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,hRe(function(e){n.length=n.length-2*e,i.length=i.length-e,o.length=o.length-e},"popStack"),hRe(m,"lex");for(var O,A,y,v,b,x,w,k,S={};;){if(A=n[n.length-1],this.defaultActions[A]?y=this.defaultActions[A]:(null==O&&(O=m()),y=a[A]&&a[A][O]),void 0===y||!y.length||!y[0]){var T="";for(b in k=[],a[A])this.terminals_[b]&&b>2&&k.push("'"+this.terminals_[b]+"'");T=h.showPosition?"Parse error on line "+(l+1)+":\n"+h.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[O]||O)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==O?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[O]||O,line:h.yylineno,loc:f,expected:k})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+O);switch(y[0]){case 1:n.push(O),i.push(h.yytext),o.push(h.yylloc),n.push(y[1]),O=null,c=h.yyleng,s=h.yytext,l=h.yylineno,f=h.yylloc;break;case 2:if(x=this.productions_[y[1]][1],S.$=i[i.length-x],S._$={first_line:o[o.length-(x||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(x||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(x||1)].range[0],o[o.length-1].range[1]]),void 0!==(v=this.performAction.apply(S,[s,c,l,d.yy,y[1],i,o].concat(u))))return v;x&&(n=n.slice(0,-1*x*2),i=i.slice(0,-1*x),o=o.slice(0,-1*x)),n.push(this.productions_[y[1]][0]),i.push(S.$),o.push(S._$),w=a[n[n.length-2]][n[n.length-1]],n.push(w);break;case 3:return!0}}return!0},"parse")},c=function(){var e={EOF:1,parseError:hRe(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:hRe(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:hRe(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:hRe(function(e){var t=e.length,n=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 r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:hRe(function(){return this._more=!0,this},"more"),reject:hRe(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:hRe(function(e){this.unput(this.match.slice(e))},"less"),pastInput:hRe(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:hRe(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:hRe(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:hRe(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.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],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},"test_match"),next:hRe(function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&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:hRe(function(){var e=this.next();return e||this.lex()},"lex"),begin:hRe(function(e){this.conditionStack.push(e)},"begin"),popState:hRe(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:hRe(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:hRe(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:hRe(function(e){this.begin(e)},"pushState"),stateStackSize:hRe(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:hRe(function(e,t,n,r){switch(n){case 0:case 1:case 3:case 4:break;case 2:return 10;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return e}();function u(){this.yy={}}return l.lexer=c,hRe(u,"Parser"),u.prototype=l,l.Parser=u,new u}();FCn.parser=FCn;var UCn=FCn,zCn="",qCn=[],VCn=[],WCn=[],jCn=hRe(function(){qCn.length=0,VCn.length=0,zCn="",WCn.length=0,qIe()},"clear"),YCn=hRe(function(e){zCn=e,qCn.push(e)},"addSection"),ZCn=hRe(function(){return qCn},"getSections"),GCn=hRe(function(){let e=eQn();let t=0;for(;!e&&t<100;)e=eQn(),t++;return VCn.push(...WCn),VCn},"getTasks"),HCn=hRe(function(){const e=[];VCn.forEach(t=>{t.people&&e.push(...t.people)});return[...new Set(e)].sort()},"updateActors"),KCn=hRe(function(e,t){const n=t.substr(1).split(":");let r=0,i=[];1===n.length?(r=Number(n[0]),i=[]):(r=Number(n[0]),i=n[1].split(","));const o=i.map(e=>e.trim()),a={section:zCn,type:zCn,people:o,task:e,score:r};WCn.push(a)},"addTask"),JCn=hRe(function(e){const t={section:zCn,type:zCn,description:e,task:e,classes:[]};VCn.push(t)},"addTaskOrg"),eQn=hRe(function(){const e=hRe(function(e){return WCn[e].processed},"compileTask");let t=!0;for(const[n,r]of WCn.entries())e(n),t=t&&r.processed;return t},"compileTasks"),tQn=hRe(function(){return HCn()},"getActors"),nQn={getConfig:hRe(()=>JIe().journey,"getConfig"),clear:jCn,setDiagramTitle:ZIe,getDiagramTitle:GIe,setAccTitle:VIe,getAccTitle:WIe,setAccDescription:jIe,getAccDescription:YIe,addSection:YCn,getSections:ZCn,getTasks:GCn,addTask:KCn,addTaskOrg:JCn,getActors:tQn},rQn=hRe(e=>`.label {\n font-family: ${e.fontFamily};\n color: ${e.textColor};\n }\n .mouth {\n stroke: #666;\n }\n\n line {\n stroke: ${e.textColor}\n }\n\n .legend {\n fill: ${e.textColor};\n font-family: ${e.fontFamily};\n }\n\n .label text {\n fill: #333;\n }\n .label {\n color: ${e.textColor}\n }\n\n .face {\n ${e.faceColor?`fill: ${e.faceColor}`:"fill: #FFF8DC"};\n stroke: #999;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${e.arrowheadColor};\n }\n\n .edgePaths .path {\n stroke: ${e.lineColor};\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ${e.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${e.edgeLabelBackground};\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n }\n\n .cluster text {\n fill: ${e.titleColor};\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${e.fontFamily};\n font-size: 12px;\n background: ${e.tertiaryColor};\n border: 1px solid ${e.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .task-type-0, .section-type-0 {\n ${e.fillType0?`fill: ${e.fillType0}`:""};\n }\n .task-type-1, .section-type-1 {\n ${e.fillType0?`fill: ${e.fillType1}`:""};\n }\n .task-type-2, .section-type-2 {\n ${e.fillType0?`fill: ${e.fillType2}`:""};\n }\n .task-type-3, .section-type-3 {\n ${e.fillType0?`fill: ${e.fillType3}`:""};\n }\n .task-type-4, .section-type-4 {\n ${e.fillType0?`fill: ${e.fillType4}`:""};\n }\n .task-type-5, .section-type-5 {\n ${e.fillType0?`fill: ${e.fillType5}`:""};\n }\n .task-type-6, .section-type-6 {\n ${e.fillType0?`fill: ${e.fillType6}`:""};\n }\n .task-type-7, .section-type-7 {\n ${e.fillType0?`fill: ${e.fillType7}`:""};\n }\n\n .actor-0 {\n ${e.actor0?`fill: ${e.actor0}`:""};\n }\n .actor-1 {\n ${e.actor1?`fill: ${e.actor1}`:""};\n }\n .actor-2 {\n ${e.actor2?`fill: ${e.actor2}`:""};\n }\n .actor-3 {\n ${e.actor3?`fill: ${e.actor3}`:""};\n }\n .actor-4 {\n ${e.actor4?`fill: ${e.actor4}`:""};\n }\n .actor-5 {\n ${e.actor5?`fill: ${e.actor5}`:""};\n }\n ${fzt()}\n`,"getStyles"),iQn=hRe(function(e,t){return bFt(e,t)},"drawRect"),oQn=hRe(function(e,t){const n=15,r=e.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",n).attr("stroke-width",2).attr("overflow","visible"),i=e.append("g");function o(e){const r=Xze().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(n/2.2);e.append("path").attr("class","mouth").attr("d",r).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}function a(e){const r=Xze().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(n/2.2);e.append("path").attr("class","mouth").attr("d",r).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}function s(e){e.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return i.append("circle").attr("cx",t.cx-5).attr("cy",t.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",t.cx+5).attr("cy",t.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),hRe(o,"smile"),hRe(a,"sad"),hRe(s,"ambivalent"),t.score>3?o(i):t.score<3?a(i):s(i),r},"drawFace"),aQn=hRe(function(e,t){const n=e.append("circle");return n.attr("cx",t.cx),n.attr("cy",t.cy),n.attr("class","actor-"+t.pos),n.attr("fill",t.fill),n.attr("stroke",t.stroke),n.attr("r",t.r),void 0!==n.class&&n.attr("class",n.class),void 0!==t.title&&n.append("title").text(t.title),n},"drawCircle"),sQn=hRe(function(e,t){return wFt(e,t)},"drawText"),lQn=hRe(function(e,t){function n(e,t,n,r,i){return e+","+t+" "+(e+n)+","+t+" "+(e+n)+","+(t+r-i)+" "+(e+n-1.2*i)+","+(t+r)+" "+e+","+(t+r)}hRe(n,"genPoints");const r=e.append("polygon");r.attr("points",n(t.x,t.y,50,20,7)),r.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,sQn(e,t)},"drawLabel"),cQn=hRe(function(e,t,n){const r=e.append("g"),i=TFt();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=n.width*t.taskCount+n.diagramMarginX*(t.taskCount-1),i.height=n.height,i.class="journey-section section-type-"+t.num,i.rx=3,i.ry=3,iQn(r,i),pQn(n)(t.text,r,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+t.num},n,t.colour)},"drawSection"),uQn=-1,hQn=hRe(function(e,t,n,r){const i=t.x+n.width/2,o=e.append("g");uQn++;o.append("line").attr("id",r+"-task"+uQn).attr("x1",i).attr("y1",t.y).attr("x2",i).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),oQn(o,{cx:i,cy:300+30*(5-t.score),score:t.score});const a=TFt();a.x=t.x,a.y=t.y,a.fill=t.fill,a.width=n.width,a.height=n.height,a.class="task task-type-"+t.num,a.rx=3,a.ry=3,iQn(o,a);let s=t.x+14;t.people.forEach(e=>{const n=t.actors[e].color,r={cx:s,cy:t.y,r:7,fill:n,stroke:"#000",title:e,pos:t.actors[e].position};aQn(o,r),s+=10}),pQn(n)(t.task,o,a.x,a.y,a.width,a.height,{class:"task"},n,t.colour)},"drawTask"),dQn=hRe(function(e,t){xFt(e,t)},"drawBackgroundRect"),pQn=function(){function e(e,t,n,i,o,a,s,l){r(t.append("text").attr("x",n+o/2).attr("y",i+a/2+5).style("font-color",l).style("text-anchor","middle").text(e),s)}function t(e,t,n,i,o,a,s,l,c){const{taskFontSize:u,taskFontFamily:h}=l,d=e.split(/<br\s*\/?>/gi);for(let p=0;p<d.length;p++){const e=p*u-u*(d.length-1)/2,l=t.append("text").attr("x",n+o/2).attr("y",i).attr("fill",c).style("text-anchor","middle").style("font-size",u).style("font-family",h);l.append("tspan").attr("x",n+o/2).attr("dy",e).text(d[p]),l.attr("y",i+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(l,s)}}function n(e,n,i,o,a,s,l,c){const u=n.append("switch"),h=u.append("foreignObject").attr("x",i).attr("y",o).attr("width",a).attr("height",s).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),t(e,u,i,o,a,s,l,c),r(h,l)}function r(e,t){for(const n in t)n in t&&e.attr(n,t[n])}return hRe(e,"byText"),hRe(t,"byTspan"),hRe(n,"byFo"),hRe(r,"_setTextAttrs"),function(r){return"fo"===r.textPlacement?n:"old"===r.textPlacement?e:t}}(),fQn={drawRect:iQn,drawCircle:aQn,drawSection:cQn,drawText:sQn,drawLabel:lQn,drawTask:hQn,drawBackgroundRect:dQn,initGraphics:hRe(function(e,t){uQn=-1,e.append("defs").append("marker").attr("id",t+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics")},gQn=hRe(function(e){Object.keys(e).forEach(function(t){yQn[t]=e[t]})},"setConf"),mQn={},OQn=0;function AQn(e){const t=JIe().journey,n=t.maxLabelWidth;OQn=0;let r=60;Object.keys(mQn).forEach(i=>{const o=mQn[i].color,a={cx:20,cy:r,r:7,fill:o,stroke:"#000",pos:mQn[i].position};fQn.drawCircle(e,a);let s=e.append("text").attr("visibility","hidden").text(i);const l=s.node().getBoundingClientRect().width;s.remove();let c=[];if(l<=n)c=[i];else{const t=i.split(" ");let r="";s=e.append("text").attr("visibility","hidden"),t.forEach(e=>{const t=r?`${r} ${e}`:e;s.text(t);if(s.node().getBoundingClientRect().width>n){if(r&&c.push(r),r=e,s.text(e),s.node().getBoundingClientRect().width>n){let t="";for(const r of e)t+=r,s.text(t+"-"),s.node().getBoundingClientRect().width>n&&(c.push(t.slice(0,-1)+"-"),t=r);r=t}}else r=t}),r&&c.push(r),s.remove()}c.forEach((n,i)=>{const o={x:40,y:r+7+20*i,fill:"#666",text:n,textMargin:t.boxTextMargin??5},a=fQn.drawText(e,o).node().getBoundingClientRect().width;a>OQn&&a>t.leftMargin-a&&(OQn=a)}),r+=Math.max(20,20*c.length)})}hRe(AQn,"drawActorLegend");var yQn=JIe().journey,vQn=0,bQn=hRe(function(e,t,n,r){const i=JIe(),o=i.journey.titleColor,a=i.journey.titleFontSize,s=i.journey.titleFontFamily,l=i.securityLevel;let c;"sandbox"===l&&(c=GDe("#i"+t));const u=GDe("sandbox"===l?c.nodes()[0].contentDocument.body:"body");xQn.init();const h=u.select("#"+t);fQn.initGraphics(h,t);const d=r.db.getTasks(),p=r.db.getDiagramTitle(),f=r.db.getActors();for(const v in mQn)delete mQn[v];let g=0;f.forEach(e=>{mQn[e]={color:yQn.actorColours[g%yQn.actorColours.length],position:g},g++}),AQn(h),vQn=yQn.leftMargin+OQn,xQn.insert(0,0,vQn,50*Object.keys(mQn).length),SQn(h,d,0,t);const m=xQn.getBounds();p&&h.append("text").text(p).attr("x",vQn).attr("font-size",a).attr("font-weight","bold").attr("y",25).attr("fill",o).attr("font-family",s);const O=m.stopy-m.starty+2*yQn.diagramMarginY,A=vQn+m.stopx+2*yQn.diagramMarginX;EIe(h,O,A,yQn.useMaxWidth),h.append("line").attr("x1",vQn).attr("y1",4*yQn.height).attr("x2",A-vQn-4).attr("y2",4*yQn.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+t+"-arrowhead)");const y=p?70:0;h.attr("viewBox",`${m.startx} -25 ${A} ${O+y}`),h.attr("preserveAspectRatio","xMinYMin meet"),h.attr("height",O+y+25)},"draw"),xQn={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:hRe(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:hRe(function(e,t,n,r){void 0===e[t]?e[t]=n:e[t]=r(n,e[t])},"updateVal"),updateBounds:hRe(function(e,t,n,r){const i=JIe().journey,o=this;let a=0;function s(s){return hRe(function(l){a++;const c=o.sequenceItems.length-a+1;o.updateVal(l,"starty",t-c*i.boxMargin,Math.min),o.updateVal(l,"stopy",r+c*i.boxMargin,Math.max),o.updateVal(xQn.data,"startx",e-c*i.boxMargin,Math.min),o.updateVal(xQn.data,"stopx",n+c*i.boxMargin,Math.max),"activation"!==s&&(o.updateVal(l,"startx",e-c*i.boxMargin,Math.min),o.updateVal(l,"stopx",n+c*i.boxMargin,Math.max),o.updateVal(xQn.data,"starty",t-c*i.boxMargin,Math.min),o.updateVal(xQn.data,"stopy",r+c*i.boxMargin,Math.max))},"updateItemBounds")}hRe(s,"updateFn"),this.sequenceItems.forEach(s())},"updateBounds"),insert:hRe(function(e,t,n,r){const i=Math.min(e,n),o=Math.max(e,n),a=Math.min(t,r),s=Math.max(t,r);this.updateVal(xQn.data,"startx",i,Math.min),this.updateVal(xQn.data,"starty",a,Math.min),this.updateVal(xQn.data,"stopx",o,Math.max),this.updateVal(xQn.data,"stopy",s,Math.max),this.updateBounds(i,a,o,s)},"insert"),bumpVerticalPos:hRe(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:hRe(function(){return this.verticalPos},"getVerticalPos"),getBounds:hRe(function(){return this.data},"getBounds")},wQn=yQn.sectionFills,kQn=yQn.sectionColours,SQn=hRe(function(e,t,n,r){const i=JIe().journey;let o="";const a=n+(2*i.height+i.diagramMarginY);let s=0,l="#CCC",c="black",u=0;for(const[h,d]of t.entries()){if(o!==d.section){l=wQn[s%wQn.length],u=s%wQn.length,c=kQn[s%kQn.length];let n=0;const r=d.section;for(let e=h;e<t.length&&t[e].section==r;e++)n+=1;const a={x:h*i.taskMargin+h*i.width+vQn,y:50,text:d.section,fill:l,num:u,colour:c,taskCount:n};fQn.drawSection(e,a,i),o=d.section,s++}const n=d.people.reduce((e,t)=>(mQn[t]&&(e[t]=mQn[t]),e),{});d.x=h*i.taskMargin+h*i.width+vQn,d.y=a,d.width=i.diagramMarginX,d.height=i.diagramMarginY,d.colour=c,d.fill=l,d.num=u,d.actors=n,fQn.drawTask(e,d,i,r),xQn.insert(d.x,d.y,d.x+d.width+i.taskMargin,450)}},"drawTasks"),TQn={setConf:gQn,draw:bQn},$Qn={parser:UCn,db:nQn,renderer:TQn,styles:rQn,init:hRe(e=>{TQn.setConf(e.journey),nQn.clear()},"init")};const _Qn=Object.freeze(Object.defineProperty({__proto__:null,diagram:$Qn},Symbol.toStringTag,{value:"Module"}));var CQn=function(){var e=hRe(function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},"o"),t=[6,11,13,14,15,17,19,20,23,24],n=[1,12],r=[1,13],i=[1,14],o=[1,15],a=[1,16],s=[1,19],l=[1,20],c={trace:hRe(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:hRe(function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 1:return o[s-1];case 3:r.setDirection("LR");break;case 4:r.setDirection("TD");break;case 5:case 9:case 10:this.$=[];break;case 6:o[s-1].push(o[s]),this.$=o[s-1];break;case 7:case 8:this.$=o[s];break;case 11:r.getCommonDb().setDiagramTitle(o[s].substr(6)),this.$=o[s].substr(6);break;case 12:this.$=o[s].trim(),r.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=o[s].trim(),r.getCommonDb().setAccDescription(this.$);break;case 15:r.addSection(o[s].substr(8)),this.$=o[s].substr(8);break;case 18:r.addTask(o[s],0,""),this.$=o[s];break;case 19:r.addEvent(o[s].substr(2)),this.$=o[s]}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(t,[2,5],{5:6}),e(t,[2,2]),e(t,[2,3]),e(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:n,15:r,17:i,19:o,20:a,21:17,22:18,23:s,24:l},e(t,[2,10],{1:[2,1]}),e(t,[2,6]),{12:21,14:n,15:r,17:i,19:o,20:a,21:17,22:18,23:s,24:l},e(t,[2,8]),e(t,[2,9]),e(t,[2,11]),{16:[1,22]},{18:[1,23]},e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,7]),e(t,[2,12]),e(t,[2,13])],defaultActions:{},parseError:hRe(function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},"parseError"),parse:hRe(function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),h=Object.create(this.lexer),d={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d.yy[p]=this.yy[p]);h.setInput(e,d.yy),d.yy.lexer=h,d.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var f=h.yylloc;o.push(f);var g=h.options&&h.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||h.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,hRe(function(e){n.length=n.length-2*e,i.length=i.length-e,o.length=o.length-e},"popStack"),hRe(m,"lex");for(var O,A,y,v,b,x,w,k,S={};;){if(A=n[n.length-1],this.defaultActions[A]?y=this.defaultActions[A]:(null==O&&(O=m()),y=a[A]&&a[A][O]),void 0===y||!y.length||!y[0]){var T="";for(b in k=[],a[A])this.terminals_[b]&&b>2&&k.push("'"+this.terminals_[b]+"'");T=h.showPosition?"Parse error on line "+(l+1)+":\n"+h.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[O]||O)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==O?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[O]||O,line:h.yylineno,loc:f,expected:k})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+O);switch(y[0]){case 1:n.push(O),i.push(h.yytext),o.push(h.yylloc),n.push(y[1]),O=null,c=h.yyleng,s=h.yytext,l=h.yylineno,f=h.yylloc;break;case 2:if(x=this.productions_[y[1]][1],S.$=i[i.length-x],S._$={first_line:o[o.length-(x||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(x||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(x||1)].range[0],o[o.length-1].range[1]]),void 0!==(v=this.performAction.apply(S,[s,c,l,d.yy,y[1],i,o].concat(u))))return v;x&&(n=n.slice(0,-1*x*2),i=i.slice(0,-1*x),o=o.slice(0,-1*x)),n.push(this.productions_[y[1]][0]),i.push(S.$),o.push(S._$),w=a[n[n.length-2]][n[n.length-1]],n.push(w);break;case 3:return!0}}return!0},"parse")},u=function(){var e={EOF:1,parseError:hRe(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:hRe(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:hRe(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:hRe(function(e){var t=e.length,n=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 r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:hRe(function(){return this._more=!0,this},"more"),reject:hRe(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:hRe(function(e){this.unput(this.match.slice(e))},"less"),pastInput:hRe(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:hRe(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:hRe(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:hRe(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.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],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},"test_match"),next:hRe(function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&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:hRe(function(){var e=this.next();return e||this.lex()},"lex"),begin:hRe(function(e){this.conditionStack.push(e)},"begin"),popState:hRe(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:hRe(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:hRe(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:hRe(function(e){this.begin(e)},"pushState"),stateStackSize:hRe(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:hRe(function(e,t,n,r){switch(n){case 0:case 1:case 3:case 4:break;case 2:return 13;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;case 10:return this.popState(),"acc_title_value";case 11:return this.begin("acc_descr"),17;case 12:return this.popState(),"acc_descr_value";case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}};return e}();function h(){this.yy={}}return c.lexer=u,hRe(h,"Parser"),h.prototype=c,c.Parser=h,new h}();CQn.parser=CQn;var QQn=CQn,PQn={};dRe(PQn,{addEvent:()=>WQn,addSection:()=>UQn,addTask:()=>VQn,addTaskOrg:()=>jQn,clear:()=>NQn,default:()=>ZQn,getCommonDb:()=>MQn,getDirection:()=>FQn,getSections:()=>zQn,getTasks:()=>qQn,setDirection:()=>XQn});var EQn="",RQn=0,BQn="LR",IQn=[],LQn=[],DQn=[],MQn=hRe(()=>NIe,"getCommonDb"),NQn=hRe(function(){IQn.length=0,LQn.length=0,EQn="",DQn.length=0,BQn="LR",qIe()},"clear"),XQn=hRe(function(e){BQn=e},"setDirection"),FQn=hRe(function(){return BQn},"getDirection"),UQn=hRe(function(e){EQn=e,IQn.push(e)},"addSection"),zQn=hRe(function(){return IQn},"getSections"),qQn=hRe(function(){let e=YQn();let t=0;for(;!e&&t<100;)e=YQn(),t++;return LQn.push(...DQn),LQn},"getTasks"),VQn=hRe(function(e,t,n){const r={id:RQn++,section:EQn,type:EQn,task:e,score:t||0,events:n?[n]:[]};DQn.push(r)},"addTask"),WQn=hRe(function(e){DQn.find(e=>e.id===RQn-1).events.push(e)},"addEvent"),jQn=hRe(function(e){const t={section:EQn,type:EQn,description:e,task:e,classes:[]};LQn.push(t)},"addTaskOrg"),YQn=hRe(function(){const e=hRe(function(e){return DQn[e].processed},"compileTask");let t=!0;for(const[n,r]of DQn.entries())e(n),t=t&&r.processed;return t},"compileTasks"),ZQn={clear:NQn,getCommonDb:MQn,getDirection:FQn,setDirection:XQn,addSection:UQn,getSections:zQn,getTasks:qQn,addTask:VQn,addTaskOrg:jQn,addEvent:WQn},GQn=0,HQn=hRe(function(e,t){const n=e.append("rect");return n.attr("x",t.x),n.attr("y",t.y),n.attr("fill",t.fill),n.attr("stroke",t.stroke),n.attr("width",t.width),n.attr("height",t.height),n.attr("rx",t.rx),n.attr("ry",t.ry),void 0!==t.class&&n.attr("class",t.class),n},"drawRect"),KQn=hRe(function(e,t){const n=15,r=e.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",n).attr("stroke-width",2).attr("overflow","visible"),i=e.append("g");function o(e){const r=Xze().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(n/2.2);e.append("path").attr("class","mouth").attr("d",r).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}function a(e){const r=Xze().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(n/2.2);e.append("path").attr("class","mouth").attr("d",r).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}function s(e){e.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return i.append("circle").attr("cx",t.cx-5).attr("cy",t.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",t.cx+5).attr("cy",t.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),hRe(o,"smile"),hRe(a,"sad"),hRe(s,"ambivalent"),t.score>3?o(i):t.score<3?a(i):s(i),r},"drawFace"),JQn=hRe(function(e,t){const n=e.append("circle");return n.attr("cx",t.cx),n.attr("cy",t.cy),n.attr("class","actor-"+t.pos),n.attr("fill",t.fill),n.attr("stroke",t.stroke),n.attr("r",t.r),void 0!==n.class&&n.attr("class",n.class),void 0!==t.title&&n.append("title").text(t.title),n},"drawCircle"),ePn=hRe(function(e,t){const n=t.text.replace(/<br\s*\/?>/gi," "),r=e.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),void 0!==t.class&&r.attr("class",t.class);const i=r.append("tspan");return i.attr("x",t.x+2*t.textMargin),i.text(n),r},"drawText"),tPn=hRe(function(e,t){function n(e,t,n,r,i){return e+","+t+" "+(e+n)+","+t+" "+(e+n)+","+(t+r-i)+" "+(e+n-1.2*i)+","+(t+r)+" "+e+","+(t+r)}hRe(n,"genPoints");const r=e.append("polygon");r.attr("points",n(t.x,t.y,50,20,7)),r.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,ePn(e,t)},"drawLabel"),nPn=hRe(function(e,t,n){const r=e.append("g"),i=sPn();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=n.width,i.height=n.height,i.class="journey-section section-type-"+t.num,i.rx=3,i.ry=3,HQn(r,i),lPn(n)(t.text,r,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+t.num},n,t.colour)},"drawSection"),rPn=-1,iPn=hRe(function(e,t,n,r){const i=t.x+n.width/2,o=e.append("g");rPn++;o.append("line").attr("id",r+"-task"+rPn).attr("x1",i).attr("y1",t.y).attr("x2",i).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),KQn(o,{cx:i,cy:300+30*(5-t.score),score:t.score});const a=sPn();a.x=t.x,a.y=t.y,a.fill=t.fill,a.width=n.width,a.height=n.height,a.class="task task-type-"+t.num,a.rx=3,a.ry=3,HQn(o,a),lPn(n)(t.task,o,a.x,a.y,a.width,a.height,{class:"task"},n,t.colour)},"drawTask"),oPn=hRe(function(e,t){HQn(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},"drawBackgroundRect"),aPn=hRe(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),sPn=hRe(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),lPn=function(){function e(e,t,n,i,o,a,s,l){r(t.append("text").attr("x",n+o/2).attr("y",i+a/2+5).style("font-color",l).style("text-anchor","middle").text(e),s)}function t(e,t,n,i,o,a,s,l,c){const{taskFontSize:u,taskFontFamily:h}=l,d=e.split(/<br\s*\/?>/gi);for(let p=0;p<d.length;p++){const e=p*u-u*(d.length-1)/2,l=t.append("text").attr("x",n+o/2).attr("y",i).attr("fill",c).style("text-anchor","middle").style("font-size",u).style("font-family",h);l.append("tspan").attr("x",n+o/2).attr("dy",e).text(d[p]),l.attr("y",i+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(l,s)}}function n(e,n,i,o,a,s,l,c){const u=n.append("switch"),h=u.append("foreignObject").attr("x",i).attr("y",o).attr("width",a).attr("height",s).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),t(e,u,i,o,a,s,l,c),r(h,l)}function r(e,t){for(const n in t)n in t&&e.attr(n,t[n])}return hRe(e,"byText"),hRe(t,"byTspan"),hRe(n,"byFo"),hRe(r,"_setTextAttrs"),function(r){return"fo"===r.textPlacement?n:"old"===r.textPlacement?e:t}}(),cPn=hRe(function(e,t){GQn=0,rPn=-1,e.append("defs").append("marker").attr("id",t+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function uPn(e,t){e.each(function(){var e,n=GDe(this),r=n.text().split(/(\s+|<br>)/).reverse(),i=[],o=n.attr("y"),a=parseFloat(n.attr("dy")),s=n.text(null).append("tspan").attr("x",0).attr("y",o).attr("dy",a+"em");for(let l=0;l<r.length;l++)e=r[r.length-1-l],i.push(e),s.text(i.join(" ").trim()),(s.node().getComputedTextLength()>t||"<br>"===e)&&(i.pop(),s.text(i.join(" ").trim()),i="<br>"===e?[""]:[e],s=n.append("tspan").attr("x",0).attr("y",o).attr("dy","1.1em").text(e))})}hRe(uPn,"wrap");var hPn=hRe(function(e,t,n,r,i,o=!1){var a,s,l;const{theme:c,look:u}=r,h=null==c?void 0:c.includes("redux"),d=n%((null==(a=null==r?void 0:r.themeVariables)?void 0:a.THEME_COLOR_LIMIT)??12)-1,p=e.append("g");t.section=d,p.attr("class",(t.class?t.class+" ":"")+"timeline-node section-"+d);const f=p.append("g"),g=p.append("g"),m=g.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(uPn,t.width).node().getBBox(),O=(null==(s=r.fontSize)?void 0:s.replace)?r.fontSize.replace("px",""):r.fontSize;if(t.height=m.height+1.1*O*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,g.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),h&&g.attr("transform",`translate(${t.width/2}, ${o?t.padding/2+3:t.padding})`),pPn(f,t,d,i,r),"neo"===u&&(p.attr("data-look","neo"),h)){const t=c.includes("dark"),n=GDe((null==(l=e.node())?void 0:l.ownerSVGElement)??e.node()),r=n.attr("id")??"",i=r?`${r}-drop-shadow`:"drop-shadow";if(n.select(`#${i}`).empty()){const e=n.select("defs");(e.empty()?n.append("defs"):e).append("filter").attr("id",i).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",t?"0.2":"0.06").attr("flood-color",t?"#FFFFFF":"#000000")}}return t},"drawNode"),dPn=hRe(function(e,t,n){var r;const i=e.append("g"),o=i.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(uPn,t.width).node().getBBox(),a=(null==(r=n.fontSize)?void 0:r.replace)?n.fontSize.replace("px",""):n.fontSize;return i.remove(),o.height+1.1*a*.5+t.padding},"getVirtualNodeHeight"),pPn=hRe(function(e,t,n,r,i){const{theme:o}=i,a=(null==o?void 0:o.includes("redux"))?0:5,s=a>0?`M0 ${t.height-5} v${10-t.height} q0,-${a},${a},-${a} h${t.width-10} q${a},0,${a},${a} v${t.height-5} H0 Z`:`M0 ${t.height-5} v${-(t.height-5)} h${t.width} v${t.height} H0 Z`;e.append("path").attr("id",r+"-node-"+GQn++).attr("class","node-bkg node-"+t.type).attr("d",s),(null==o?void 0:o.includes("redux"))||e.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},"defaultBkg"),fPn={drawRect:HQn,drawCircle:JQn,drawSection:nPn,drawText:ePn,drawLabel:tPn,drawTask:iPn,drawBackgroundRect:oPn,getTextObj:aPn,getNoteRect:sPn,initGraphics:cPn,drawNode:hPn,getVirtualNodeHeight:dPn},gPn=hRe(function(e,t,n,r){var i,o,a;const s=JIe(),{look:l,theme:c,themeVariables:u}=s,{useGradient:h,gradientStart:d,gradientStop:p}=u,f=(null==(i=s.timeline)?void 0:i.leftMargin)??50;ORe.debug("timeline",r.db);const g=s.securityLevel;let m;"sandbox"===g&&(m=GDe("#i"+t));const O=GDe("sandbox"===g?m.nodes()[0].contentDocument.body:"body").select("#"+t);O.append("g");const A=r.db.getTasks(),y=r.db.getCommonDb().getDiagramTitle();ORe.debug("task",A),fPn.initGraphics(O,t);const v=r.db.getSections();ORe.debug("sections",v);let b=0,x=0,w=0,k=0,S=50+f,T=50;k=50;let $=0,_=!0;v.forEach(function(e){const t={number:$,descr:e,section:$,width:150,padding:20,maxHeight:b},n=fPn.getVirtualNodeHeight(O,t,s);ORe.debug("sectionHeight before draw",n),b=Math.max(b,n+20)});let C=0,Q=0;ORe.debug("tasks.length",A.length);for(const[E,R]of A.entries()){const e={number:E,descr:R,section:R.section,width:150,padding:20,maxHeight:x},t=fPn.getVirtualNodeHeight(O,e,s);ORe.debug("taskHeight before draw",t),x=Math.max(x,t+20),C=Math.max(C,R.events.length);let n=0;for(const r of R.events){const e={descr:r,section:R.section,number:R.section,width:150,padding:20,maxHeight:50};n+=fPn.getVirtualNodeHeight(O,e,s)}R.events.length>0&&(n+=10*(R.events.length-1)),Q=Math.max(Q,n)}ORe.debug("maxSectionHeight before draw",b),ORe.debug("maxTaskHeight before draw",x),v&&v.length>0?v.forEach(e=>{const n=A.filter(t=>t.section===e),r={number:$,descr:e,section:$,width:200*Math.max(n.length,1)-50,padding:20,maxHeight:b};ORe.debug("sectionNode",r);const i=O.append("g"),o=fPn.drawNode(i,r,$,s,t);ORe.debug("sectionNode output",o),i.attr("transform",`translate(${S}, 50)`),T+=b+50,n.length>0&&mPn(O,n,$,S,T,x,s,C,Q,b,!1,t),S+=200*Math.max(n.length,1),T=50,$++}):(_=!1,mPn(O,A,$,S,T,x,s,C,Q,b,!0,t));const P=O.node().getBBox();ORe.debug("bounds",P),y&&O.append("text").text(y).attr("x","neo"===l?2*P.x+f:P.width/2-f).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),w=_?b+x+150:x+100;if(O.append("g").attr("class","lineWrapper").append("line").attr("x1",f).attr("y1",w).attr("x2",P.width+3*f).attr("y2",w).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${t}-arrowhead)`),"neo"===l&&h&&"neutral"!==c){const e=O.select("defs"),t=(e.empty()?O.append("defs"):e).append("linearGradient").attr("id",O.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("stop").attr("offset","0%").attr("stop-color",d).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color",p).attr("stop-opacity",1)}RIe(void 0,O,(null==(o=s.timeline)?void 0:o.padding)??50,(null==(a=s.timeline)?void 0:a.useMaxWidth)??!1)},"draw"),mPn=hRe(function(e,t,n,r,i,o,a,s,l,c,u,h){var d;for(const p of t){const t={descr:p.task,section:n,number:n,width:150,padding:20,maxHeight:o};ORe.debug("taskNode",t);const s=e.append("g").attr("class","taskWrapper"),c=fPn.drawNode(s,t,n,a,h).height;if(ORe.debug("taskHeight after draw",c),s.attr("transform",`translate(${r}, ${i})`),o=Math.max(o,c),p.events){const t=e.append("g").attr("class","lineWrapper");let s=o;i+=100,s+=OPn(e,p.events,n,r,i,a,h),i-=100,t.append("line").attr("x1",r+95).attr("y1",i+o).attr("x2",r+95).attr("y2",i+o+100+l+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${h}-arrowhead)`).attr("stroke-dasharray","5,5")}r+=200,u&&!(null==(d=a.timeline)?void 0:d.disableMulticolor)&&n++}i-=10},"drawTasks"),OPn=hRe(function(e,t,n,r,i,o,a){let s=0;const l=i;i+=100;for(const c of t){const t={descr:c,section:n,number:n,width:150,padding:20,maxHeight:50};ORe.debug("eventNode",t);const l=e.append("g").attr("class","eventWrapper"),u=fPn.drawNode(l,t,n,o,a,!0).height;s+=u,l.attr("transform",`translate(${r}, ${i})`),i=i+10+u}return i=l,s},"drawEvents"),APn={setConf:hRe(()=>{},"setConf"),draw:gPn},yPn=200,vPn=hRe(function(e,t,n,r){var i,o,a,s,l;const c=JIe(),u=(null==(i=c.timeline)?void 0:i.leftMargin)??50;ORe.debug("timeline",r.db);const h=Mqe(t);h.append("g");const d=r.db.getTasks(),p=r.db.getCommonDb().getDiagramTitle();ORe.debug("task",d),fPn.initGraphics(h);const f=r.db.getSections();ORe.debug("sections",f);let g=0,m=0;const O=50+u;let A=50;const y=A,v=230,b=O+v;let x=0;const w=f&&f.length>0,k=w?b:O+v,S=Math.max(50,580);f.forEach(function(e){const t={number:x,descr:e,section:x,width:S,padding:5,maxHeight:g},n=fPn.getVirtualNodeHeight(h,t,c);ORe.debug("sectionHeight before draw",n),g=Math.max(g,n)});let T=0;ORe.debug("tasks.length",d.length);for(const[R,B]of d.entries()){const e={number:R,descr:B,section:B.section,width:yPn,padding:5,maxHeight:m},t=fPn.getVirtualNodeHeight(h,e,c);ORe.debug("taskHeight before draw",t),m=Math.max(m,t);let n=0;for(const r of B.events){const e={descr:r,section:B.section,number:B.section,width:300,padding:5,maxHeight:50};n+=fPn.getVirtualNodeHeight(h,e,c)}B.events.length>0&&(n+=10*(B.events.length-1)),T=Math.max(T,n)+0}ORe.debug("maxSectionHeight before draw",g),ORe.debug("maxTaskHeight before draw",m);const $=Math.max(m,T)+30;w?f.forEach(e=>{const t=d.filter(t=>t.section===e),n={number:x,descr:e,section:x,width:S,padding:5,maxHeight:g};ORe.debug("sectionNode",n);const r=h.append("g"),i=fPn.drawNode(r,n,x,c);ORe.debug("sectionNode output",i);const o=k-v;r.attr("transform",`translate(${o}, ${A})`);const a=A+i.height+20;t.length>0&&bPn(h,t,x,k,a,m,c,$,!1);const s=t.length,l=i.height+20+$*Math.max(s,1)-(s>0?60:0);A+=l,x++}):bPn(h,d,x,k,A,m,c,$,!0);let _=null==(o=h.node())?void 0:o.getBBox();if(!_)throw new Error("bbox not found");if(ORe.debug("bounds",_),p){if(h.append("text").text(p).attr("x",_.width/2-u).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),_=null==(a=h.node())?void 0:a.getBBox(),!_)throw new Error("bbox not found");ORe.debug("bounds after title",_)}const[C]=WWe(c.fontSize),Q=2*(C??16),P=.5*(C??16)+20,E=h.append("g").attr("class","lineWrapper");E.append("line").attr("x1",k).attr("y1",y-Q).attr("x2",k).attr("y2",_.y+_.height+P).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),E.lower(),RIe(void 0,h,(null==(s=c.timeline)?void 0:s.padding)??50,(null==(l=c.timeline)?void 0:l.useMaxWidth)??!1)},"draw"),bPn=hRe(function(e,t,n,r,i,o,a,s,l){var c;for(const u of t){const t={descr:u.task,section:n,number:n,width:yPn,padding:5,maxHeight:o};ORe.debug("taskNode",t);const h=e.append("g").attr("class","taskWrapper"),d=fPn.drawNode(h,t,n,a),p=d.height;ORe.debug("taskHeight after draw",p);const f=r-20-d.width;if(h.attr("transform",`translate(${f}, ${i})`),o=Math.max(o,p),u.events&&u.events.length>0){const t=i,o=r+50;xPn(e,u.events,n,r,o,t,a)}i+=s,l&&!(null==(c=a.timeline)?void 0:c.disableMulticolor)&&n++}},"drawTasks"),xPn=hRe(function(e,t,n,r,i,o,a){let s=o;for(const l of t){const t={descr:l,section:n,number:n,width:300,padding:5,maxHeight:0};ORe.debug("eventNode",t);const o=e.append("g").attr("class","eventWrapper"),c=fPn.drawNode(o,t,n,a).height;o.attr("transform",`translate(${i}, ${s})`);const u=s+c/2;e.append("g").attr("class","lineWrapper").append("line").attr("x1",r).attr("y1",u).attr("x2",i).attr("y2",u).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),s=s+c+10}return s-o},"drawEvents"),wPn={setConf:hRe(()=>{},"setConf"),draw:vPn},kPn=hRe(e=>{var t;const{theme:n}=NBe(),r=null==n?void 0:n.includes("dark"),i=null==n?void 0:n.includes("color"),o=(null==(t=e.svgId)?void 0:t.replace(/^#/,""))??"",a=o?`url(#${o}-drop-shadow)`:e.dropShadow??"none";let s="";for(let l=0;l<e.THEME_COLOR_LIMIT;l++){const t=""+(17-3*l),n=i?e.borderColorArray[l]:e.mainBkg,o=i?e.borderColorArray[l]:e.nodeBorder;s+=`\n .section-${l-1} rect,\n .section-${l-1} path,\n .section-${l-1} circle {\n fill: ${r&&i?e.mainBkg:n};\n stroke: ${o};\n stroke-width: ${e.strokeWidth};\n filter: ${a};\n }\n\n .section-${l-1} text {\n fill: ${e.nodeBorder};\n font-weight: ${e.fontWeight}\n }\n\n .node-icon-${l-1} {\n font-size: 40px;\n color: ${e["cScaleLabel"+l]};\n }\n\n .section-edge-${l-1} {\n stroke: ${e["cScale"+l]};\n }\n\n .edge-depth-${l-1} {\n stroke-width: ${t};\n }\n\n .section-${l-1} line {\n stroke: ${e["cScaleInv"+l]};\n stroke-width: 3;\n }\n\n .lineWrapper line {\n stroke: ${e.nodeBorder};\n stroke-width:${e.strokeWidth}\n }\n\n .disabled,\n .disabled circle,\n .disabled text {\n fill: ${e.tertiaryColor??"lightgray"};\n }\n\n .disabled text {\n fill: ${e.clusterBorder??"#efefef"};\n }\n `}return s},"genReduxSections"),SPn=hRe(e=>{let t="";for(let n=0;n<e.THEME_COLOR_LIMIT;n++)e["lineColor"+n]=e["lineColor"+n]||e["cScaleInv"+n],MRe(e["lineColor"+n])?e["lineColor"+n]=XRe(e["lineColor"+n],20):e["lineColor"+n]=FRe(e["lineColor"+n],20);for(let n=0;n<e.THEME_COLOR_LIMIT;n++){const r=""+(17-3*n);t+=`\n .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} path {\n fill: ${e["cScale"+n]};\n }\n .section-${n-1} text {\n fill: ${e["cScaleLabel"+n]};\n }\n .node-icon-${n-1} {\n font-size: 40px;\n color: ${e["cScaleLabel"+n]};\n }\n .section-edge-${n-1}{\n stroke: ${e["cScale"+n]};\n }\n .edge-depth-${n-1}{\n stroke-width: ${r};\n }\n .section-${n-1} line {\n stroke: ${e["cScaleInv"+n]} ;\n stroke-width: 3;\n }\n\n .lineWrapper line{\n stroke: ${e["cScaleLabel"+n]} ;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: ${e.tertiaryColor??"lightgray"};\n }\n .disabled text {\n fill: ${e.clusterBorder??"#efefef"};\n }\n `}return t},"genSections"),TPn=hRe(e=>{var t;const{theme:n}=NBe(),r=null==n?void 0:n.includes("redux"),i="neutral"===n,o=(null==(t=e.svgId)?void 0:t.replace(/^#/,""))??"";let a="";if(e.useGradient&&o&&e.THEME_COLOR_LIMIT&&!i)for(let s=0;s<e.THEME_COLOR_LIMIT;s++)a+=`\n .section-${s-1}[data-look="neo"] rect,\n .section-${s-1}[data-look="neo"] path,\n .section-${s-1}[data-look="neo"] circle {\n fill: ${e.mainBkg};\n stroke: url(#${o}-gradient);\n stroke-width: 2;\n }\n .section-${s-1}[data-look="neo"] line {\n stroke: url(#${o}-gradient);\n stroke-width: 2;\n }`;return`\n .edge {\n stroke-width: 3;\n }\n ${r?kPn(e):SPn(e)}\n ${a}\n .section-root rect, .section-root path, .section-root circle {\n fill: ${e.git0};\n }\n .section-root text {\n fill: ${e.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .eventWrapper {\n filter: brightness(120%);\n }\n`},"getStyles"),$Pn=TPn,_Pn={db:PQn,renderer:{setConf:hRe(()=>{},"setConf"),draw:hRe((e,t,n,r)=>{var i,o;return"TD"===((null==(o=null==(i=null==r?void 0:r.db)?void 0:i.getDirection)?void 0:o.call(i))??"LR")?wPn.draw(e,t,n,r):APn.draw(e,t,n,r)},"draw")},parser:QQn,styles:$Pn};const CPn=Object.freeze(Object.defineProperty({__proto__:null,diagram:_Pn},Symbol.toStringTag,{value:"Module"})),QPn=[];for(let c=0;c<256;++c)QPn.push((c+256).toString(16).slice(1));const PPn=new Uint8Array(16);function EPn(e,t,n){return crypto.randomUUID?crypto.randomUUID():function(e){var t;e=e||{};const n=e.random??(null==(t=e.rng)?void 0:t.call(e))??crypto.getRandomValues(PPn);if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(QPn[e[t+0]]+QPn[e[t+1]]+QPn[e[t+2]]+QPn[e[t+3]]+"-"+QPn[e[t+4]]+QPn[e[t+5]]+"-"+QPn[e[t+6]]+QPn[e[t+7]]+"-"+QPn[e[t+8]]+QPn[e[t+9]]+"-"+QPn[e[t+10]]+QPn[e[t+11]]+QPn[e[t+12]]+QPn[e[t+13]]+QPn[e[t+14]]+QPn[e[t+15]]).toLowerCase()}(n)}(e)}var RPn=function(){var e=hRe(function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},"o"),t=[1,4],n=[1,13],r=[1,12],i=[1,15],o=[1,16],a=[1,20],s=[1,19],l=[6,7,8],c=[1,26],u=[1,24],h=[1,25],d=[6,7,11],p=[1,6,13,15,16,19,22],f=[1,33],g=[1,34],m=[1,6,7,11,13,15,16,19,22],O={trace:hRe(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:hRe(function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace("Stop NL ");break;case 9:r.getLogger().trace("Stop EOF ");break;case 11:r.getLogger().trace("Stop NL2 ");break;case 12:r.getLogger().trace("Stop EOF2 ");break;case 15:r.getLogger().info("Node: ",o[s].id),r.addNode(o[s-1].length,o[s].id,o[s].descr,o[s].type);break;case 16:r.getLogger().trace("Icon: ",o[s]),r.decorateNode({icon:o[s]});break;case 17:case 21:r.decorateNode({class:o[s]});break;case 18:r.getLogger().trace("SPACELIST");break;case 19:r.getLogger().trace("Node: ",o[s].id),r.addNode(0,o[s].id,o[s].descr,o[s].type);break;case 20:r.decorateNode({icon:o[s]});break;case 25:r.getLogger().trace("node found ..",o[s-2]),this.$={id:o[s-1],descr:o[s-1],type:r.getType(o[s-2],o[s])};break;case 26:this.$={id:o[s],descr:o[s],type:r.nodeType.DEFAULT};break;case 27:r.getLogger().trace("node found ..",o[s-3]),this.$={id:o[s-3],descr:o[s-1],type:r.getType(o[s-2],o[s])}}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:r,14:14,15:i,16:o,17:17,18:18,19:a,22:s},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:n,12:21,13:r,14:14,15:i,16:o,17:17,18:18,19:a,22:s},{6:n,9:22,12:11,13:r,14:14,15:i,16:o,17:17,18:18,19:a,22:s},{6:c,7:u,10:23,11:h},e(d,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:a,22:s}),e(d,[2,18]),e(d,[2,19]),e(d,[2,20]),e(d,[2,21]),e(d,[2,23]),e(d,[2,24]),e(d,[2,26],{19:[1,30]}),{20:[1,31]},{6:c,7:u,10:32,11:h},{1:[2,7],6:n,12:21,13:r,14:14,15:i,16:o,17:17,18:18,19:a,22:s},e(p,[2,14],{7:f,11:g}),e(m,[2,8]),e(m,[2,9]),e(m,[2,10]),e(d,[2,15]),e(d,[2,16]),e(d,[2,17]),{20:[1,35]},{21:[1,36]},e(p,[2,13],{7:f,11:g}),e(m,[2,11]),e(m,[2,12]),{21:[1,37]},e(d,[2,25]),e(d,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:hRe(function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},"parseError"),parse:hRe(function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),h=Object.create(this.lexer),d={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d.yy[p]=this.yy[p]);h.setInput(e,d.yy),d.yy.lexer=h,d.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var f=h.yylloc;o.push(f);var g=h.options&&h.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||h.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,hRe(function(e){n.length=n.length-2*e,i.length=i.length-e,o.length=o.length-e},"popStack"),hRe(m,"lex");for(var O,A,y,v,b,x,w,k,S={};;){if(A=n[n.length-1],this.defaultActions[A]?y=this.defaultActions[A]:(null==O&&(O=m()),y=a[A]&&a[A][O]),void 0===y||!y.length||!y[0]){var T="";for(b in k=[],a[A])this.terminals_[b]&&b>2&&k.push("'"+this.terminals_[b]+"'");T=h.showPosition?"Parse error on line "+(l+1)+":\n"+h.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[O]||O)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==O?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[O]||O,line:h.yylineno,loc:f,expected:k})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+O);switch(y[0]){case 1:n.push(O),i.push(h.yytext),o.push(h.yylloc),n.push(y[1]),O=null,c=h.yyleng,s=h.yytext,l=h.yylineno,f=h.yylloc;break;case 2:if(x=this.productions_[y[1]][1],S.$=i[i.length-x],S._$={first_line:o[o.length-(x||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(x||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(x||1)].range[0],o[o.length-1].range[1]]),void 0!==(v=this.performAction.apply(S,[s,c,l,d.yy,y[1],i,o].concat(u))))return v;x&&(n=n.slice(0,-1*x*2),i=i.slice(0,-1*x),o=o.slice(0,-1*x)),n.push(this.productions_[y[1]][0]),i.push(S.$),o.push(S._$),w=a[n[n.length-2]][n[n.length-1]],n.push(w);break;case 3:return!0}}return!0},"parse")},A=function(){var e={EOF:1,parseError:hRe(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:hRe(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:hRe(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:hRe(function(e){var t=e.length,n=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 r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:hRe(function(){return this._more=!0,this},"more"),reject:hRe(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:hRe(function(e){this.unput(this.match.slice(e))},"less"),pastInput:hRe(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:hRe(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:hRe(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:hRe(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.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],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},"test_match"),next:hRe(function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&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:hRe(function(){var e=this.next();return e||this.lex()},"lex"),begin:hRe(function(e){this.conditionStack.push(e)},"begin"),popState:hRe(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:hRe(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:hRe(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:hRe(function(e){this.begin(e)},"pushState"),stateStackSize:hRe(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:hRe(function(e,t,n,r){switch(n){case 0:return e.getLogger().trace("Found comment",t.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:case 23:case 26:this.popState();break;case 5:e.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return e.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:e.getLogger().trace("end icon"),this.popState();break;case 10:return e.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return e.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return e.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return e.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16:case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 24:e.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return e.getLogger().trace("description:",t.yytext),"NODE_DESCR";case 27:return this.popState(),e.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),e.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),e.getLogger().trace("node end ...",t.yytext),"NODE_DEND";case 30:case 33:case 34:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 31:case 32:return this.popState(),e.getLogger().trace("node end (-"),"NODE_DEND";case 35:case 36:return e.getLogger().trace("Long description:",t.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return e}();function y(){this.yy={}}return O.lexer=A,hRe(y,"Parser"),y.prototype=O,O.Parser=y,new y}();RPn.parser=RPn;var BPn=RPn,IPn={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},LPn=(Xn=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=IPn,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let t=this.nodes.length-1;t>=0;t--)if(this.nodes[t].level<e)return this.nodes[t];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(e,t,n,r){var i,o;ORe.info("addNode",e,t,n,r);let a=!1;0===this.nodes.length?(this.baseLevel=e,e=0,a=!0):void 0!==this.baseLevel&&(e-=this.baseLevel,a=!1);const s=JIe();let l=(null==(i=s.mindmap)?void 0:i.padding)??wBe.mindmap.padding;switch(r){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:l*=2}const c={id:this.count++,nodeId:uIe(t,s),level:e,descr:uIe(n,s),type:r,children:[],width:(null==(o=s.mindmap)?void 0:o.maxNodeWidth)??wBe.mindmap.maxNodeWidth,padding:l,isRoot:a},u=this.getParent(e);if(u)u.children.push(c),this.nodes.push(c);else{if(!a)throw new Error(`There can be only one root. No parent could be found for ("${c.descr}")`);this.nodes.push(c)}}getType(e,t){switch(ORe.debug("In get type",e,t),e){case"[":return this.nodeType.RECT;case"(":return")"===t?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,t){this.elements[e]=t}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;const t=JIe(),n=this.nodes[this.nodes.length-1];e.icon&&(n.icon=uIe(e.icon,t)),e.class&&(n.class=uIe(e.class,t))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(e,t){if(0===e.level?e.section=void 0:e.section=t,e.children)for(const[n,r]of e.children.entries()){const i=0===e.level?n%11:t;this.assignSections(r,i)}}flattenNodes(e,t){const n=JIe(),r=["mindmap-node"];!0===e.isRoot?r.push("section-root","section--1"):void 0!==e.section&&r.push(`section-${e.section}`),e.class&&r.push(e.class);const i=r.join(" "),o=hRe(e=>{var t;const r=((null==(t=n.theme)?void 0:t.toLowerCase())??"").includes("redux");switch(e){case IPn.CIRCLE:return"mindmapCircle";case IPn.RECT:return"rect";case IPn.ROUNDED_RECT:return"rounded";case IPn.CLOUD:return"cloud";case IPn.BANG:return"bang";case IPn.HEXAGON:return"hexagon";case IPn.DEFAULT:return r?"rounded":"defaultMindmapNode";default:return"rect"}},"getShapeFromType"),a={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,labelType:"markdown",isGroup:!1,shape:o(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:i,cssStyles:[],look:n.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(t.push(a),e.children)for(const s of e.children)this.flattenNodes(s,t)}generateEdges(e,t){if(!e.children)return;const n=JIe();for(const r of e.children){let i="edge";void 0!==r.section&&(i+=` section-edge-${r.section}`);i+=` edge-depth-${e.level+1}`;const o={id:`edge_${e.id}_${r.id}`,start:e.id.toString(),end:r.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:n.look,classes:i,depth:e.level,section:r.section};t.push(o),this.generateEdges(r,t)}}getData(){const e=this.getMindmap(),t=JIe(),n=t;if(void 0!==jBe().layout||(n.layout="cose-bilkent"),!e)return{nodes:[],edges:[],config:n};ORe.debug("getData: mindmapRoot",e,t),this.assignSections(e);const r=[],i=[];this.flattenNodes(e,r),this.generateEdges(e,i),ORe.debug(`getData: processed ${r.length} nodes and ${i.length} edges`);const o=new Map;for(const a of r)o.set(a.id,{shape:a.shape,width:a.width,height:a.height,padding:a.padding});return{nodes:r,edges:i,config:n,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(o),type:"mindmap",diagramId:"mindmap-"+EPn()}}getLogger(){return ORe}},hRe(Xn,"MindmapDB"),Xn),DPn={draw:hRe(async(e,t,n,r)=>{var i,o;ORe.debug("Rendering mindmap diagram\n"+e);const a=r.db,s=a.getData(),l=gzt(t,s.config.securityLevel);s.type=r.type,s.layoutAlgorithm=c2e(s.config.layout,{fallback:"cose-bilkent"}),s.diagramId=t;if(!a.getMindmap())return;s.nodes.forEach(e=>{"rounded"===e.shape?(e.radius=15,e.taper=15,e.stroke="none",e.width=0,e.padding=15):"circle"===e.shape?e.padding=10:"rect"===e.shape?(e.width=0,e.padding=10):"hexagon"===e.shape&&(e.width=0,e.height=0)}),await l2e(s,l);const{themeVariables:c}=NBe(),{useGradient:u,gradientStart:h,gradientStop:d}=c;if(u&&h&&d){const e=l.attr("id"),t=l.append("defs").append("linearGradient").attr("id",`${e}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("stop").attr("offset","0%").attr("stop-color",h).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color",d).attr("stop-opacity",1)}mzt(l,(null==(i=s.config.mindmap)?void 0:i.padding)??wBe.mindmap.padding,"mindmapDiagram",(null==(o=s.config.mindmap)?void 0:o.useMaxWidth)??wBe.mindmap.useMaxWidth)},"draw")},MPn=hRe(e=>{const{theme:t,look:n}=e;let r="";for(let i=0;i<e.THEME_COLOR_LIMIT;i++)e["lineColor"+i]=e["lineColor"+i]||e["cScaleInv"+i],MRe(e["lineColor"+i])?e["lineColor"+i]=XRe(e["lineColor"+i],20):e["lineColor"+i]=FRe(e["lineColor"+i],20);for(let i=0;i<e.THEME_COLOR_LIMIT;i++){const o=""+("neo"===n?Math.max(10-2*(i-1),2):17-3*i);r+=`\n .section-${i-1} rect, .section-${i-1} path, .section-${i-1} circle, .section-${i-1} polygon, .section-${i-1} path {\n fill: ${e["cScale"+i]};\n }\n .section-${i-1} text {\n fill: ${e["cScaleLabel"+i]};\n }\n .section-${i-1} span {\n color: ${e["cScaleLabel"+i]};\n }\n .node-icon-${i-1} {\n font-size: 40px;\n color: ${e["cScaleLabel"+i]};\n }\n .section-edge-${i-1}{\n stroke: ${e["cScale"+i]};\n }\n .edge-depth-${i-1}{\n stroke-width: ${o};\n }\n .section-${i-1} line {\n stroke: ${e["cScaleInv"+i]} ;\n stroke-width: 3;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: lightgray;\n }\n .disabled text {\n fill: #efefef;\n }\n [data-look="neo"].mindmap-node.section-${i-1} rect, [data-look="neo"].mindmap-node.section-${i-1} path, [data-look="neo"].mindmap-node.section-${i-1} circle, [data-look="neo"].mindmap-node.section-${i-1} polygon {\n fill: ${"redux"===t||"redux-dark"===t||"neutral"===t?e.mainBkg:e["cScale"+i]};\n stroke: ${"redux"===t||"redux-dark"===t?e.nodeBorder:e["cScale"+i]};\n stroke-width: ${e.strokeWidth??2}px;\n }\n [data-look="neo"].section-edge-${i-1}{\n stroke: ${(null==t?void 0:t.includes("redux"))||"neo-dark"===t?e.nodeBorder:e["cScale"+i]};\n }\n [data-look="neo"].mindmap-node.section-${i-1} text {\n fill: ${"redux"===t||"redux-dark"===t?e.nodeBorder:e["cScaleLabel"+("neutral"===t?1:i)]};\n }\n `}return r},"genSections"),NPn=hRe((e,t,n)=>{let r="";for(let i=0;i<e;i++)r+=`\n [data-look="neo"].mindmap-node.section-${i-1} rect, [data-look="neo"].mindmap-node.section-${i-1} path, [data-look="neo"].mindmap-node.section-${i-1} circle, [data-look="neo"].mindmap-node.section-${i-1} polygon {\n stroke: url(${t}-gradient);\n fill: ${n};\n }\n .section-${i-1} line {\n stroke-width: 0;\n }`;return r},"genGradient"),XPn=hRe(e=>{const{theme:t}=e,n=e.svgId,r=e.dropShadow?e.dropShadow.replace("url(#drop-shadow)",`url(${n}-drop-shadow)`):"none";return`\n .edge {\n stroke-width: 3;\n }\n ${MPn(e)}\n .section-root rect, .section-root path, .section-root circle, .section-root polygon {\n fill: ${e.git0};\n }\n .section-root text {\n fill: ${e.gitBranchLabel0};\n }\n .section-root span {\n color: ${(null==t?void 0:t.includes("redux"))?e.nodeBorder:e.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .mindmap-node-label {\n dy: 1em;\n alignment-baseline: middle;\n text-anchor: middle;\n dominant-baseline: middle;\n text-align: center;\n }\n [data-look="neo"].mindmap-node {\n filter: ${r};\n }\n [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {\n fill: ${(null==t?void 0:t.includes("redux"))?e.mainBkg:e.git0};\n }\n [data-look="neo"].mindmap-node.section-root .text-inner-tspan {\n fill: ${(null==t?void 0:t.includes("redux"))?e.nodeBorder:e["cScaleLabel"+("neutral"===t?1:0)]};\n }\n ${e.useGradient&&n&&e.mainBkg?NPn(e.THEME_COLOR_LIMIT,n,e.mainBkg):""}\n`},"getStyles"),FPn={get db(){return new LPn},renderer:DPn,parser:BPn,styles:XPn};const UPn=Object.freeze(Object.defineProperty({__proto__:null,diagram:FPn},Symbol.toStringTag,{value:"Module"}));var zPn=function(){var e=hRe(function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},"o"),t=[1,4],n=[1,13],r=[1,12],i=[1,15],o=[1,16],a=[1,20],s=[1,19],l=[6,7,8],c=[1,26],u=[1,24],h=[1,25],d=[6,7,11],p=[1,31],f=[6,7,11,24],g=[1,6,13,16,17,20,23],m=[1,35],O=[1,36],A=[1,6,7,11,13,16,17,20,23],y=[1,38],v={trace:hRe(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:hRe(function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace("Stop NL ");break;case 9:r.getLogger().trace("Stop EOF ");break;case 11:r.getLogger().trace("Stop NL2 ");break;case 12:r.getLogger().trace("Stop EOF2 ");break;case 15:r.getLogger().info("Node: ",o[s-1].id),r.addNode(o[s-2].length,o[s-1].id,o[s-1].descr,o[s-1].type,o[s]);break;case 16:r.getLogger().info("Node: ",o[s].id),r.addNode(o[s-1].length,o[s].id,o[s].descr,o[s].type);break;case 17:r.getLogger().trace("Icon: ",o[s]),r.decorateNode({icon:o[s]});break;case 18:case 23:r.decorateNode({class:o[s]});break;case 19:r.getLogger().trace("SPACELIST");break;case 20:r.getLogger().trace("Node: ",o[s-1].id),r.addNode(0,o[s-1].id,o[s-1].descr,o[s-1].type,o[s]);break;case 21:r.getLogger().trace("Node: ",o[s].id),r.addNode(0,o[s].id,o[s].descr,o[s].type);break;case 22:r.decorateNode({icon:o[s]});break;case 27:r.getLogger().trace("node found ..",o[s-2]),this.$={id:o[s-1],descr:o[s-1],type:r.getType(o[s-2],o[s])};break;case 28:this.$={id:o[s],descr:o[s],type:0};break;case 29:r.getLogger().trace("node found ..",o[s-3]),this.$={id:o[s-3],descr:o[s-1],type:r.getType(o[s-2],o[s])};break;case 30:this.$=o[s-1]+o[s];break;case 31:this.$=o[s]}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:r,14:14,16:i,17:o,18:17,19:18,20:a,23:s},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:n,12:21,13:r,14:14,16:i,17:o,18:17,19:18,20:a,23:s},{6:n,9:22,12:11,13:r,14:14,16:i,17:o,18:17,19:18,20:a,23:s},{6:c,7:u,10:23,11:h},e(d,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:a,23:s}),e(d,[2,19]),e(d,[2,21],{15:30,24:p}),e(d,[2,22]),e(d,[2,23]),e(f,[2,25]),e(f,[2,26]),e(f,[2,28],{20:[1,32]}),{21:[1,33]},{6:c,7:u,10:34,11:h},{1:[2,7],6:n,12:21,13:r,14:14,16:i,17:o,18:17,19:18,20:a,23:s},e(g,[2,14],{7:m,11:O}),e(A,[2,8]),e(A,[2,9]),e(A,[2,10]),e(d,[2,16],{15:37,24:p}),e(d,[2,17]),e(d,[2,18]),e(d,[2,20],{24:y}),e(f,[2,31]),{21:[1,39]},{22:[1,40]},e(g,[2,13],{7:m,11:O}),e(A,[2,11]),e(A,[2,12]),e(d,[2,15],{24:y}),e(f,[2,30]),{22:[1,41]},e(f,[2,27]),e(f,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:hRe(function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},"parseError"),parse:hRe(function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),h=Object.create(this.lexer),d={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d.yy[p]=this.yy[p]);h.setInput(e,d.yy),d.yy.lexer=h,d.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var f=h.yylloc;o.push(f);var g=h.options&&h.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||h.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,hRe(function(e){n.length=n.length-2*e,i.length=i.length-e,o.length=o.length-e},"popStack"),hRe(m,"lex");for(var O,A,y,v,b,x,w,k,S={};;){if(A=n[n.length-1],this.defaultActions[A]?y=this.defaultActions[A]:(null==O&&(O=m()),y=a[A]&&a[A][O]),void 0===y||!y.length||!y[0]){var T="";for(b in k=[],a[A])this.terminals_[b]&&b>2&&k.push("'"+this.terminals_[b]+"'");T=h.showPosition?"Parse error on line "+(l+1)+":\n"+h.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[O]||O)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==O?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[O]||O,line:h.yylineno,loc:f,expected:k})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+O);switch(y[0]){case 1:n.push(O),i.push(h.yytext),o.push(h.yylloc),n.push(y[1]),O=null,c=h.yyleng,s=h.yytext,l=h.yylineno,f=h.yylloc;break;case 2:if(x=this.productions_[y[1]][1],S.$=i[i.length-x],S._$={first_line:o[o.length-(x||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(x||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(x||1)].range[0],o[o.length-1].range[1]]),void 0!==(v=this.performAction.apply(S,[s,c,l,d.yy,y[1],i,o].concat(u))))return v;x&&(n=n.slice(0,-1*x*2),i=i.slice(0,-1*x),o=o.slice(0,-1*x)),n.push(this.productions_[y[1]][0]),i.push(S.$),o.push(S._$),w=a[n[n.length-2]][n[n.length-1]],n.push(w);break;case 3:return!0}}return!0},"parse")},b=function(){var e={EOF:1,parseError:hRe(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:hRe(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:hRe(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:hRe(function(e){var t=e.length,n=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 r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:hRe(function(){return this._more=!0,this},"more"),reject:hRe(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:hRe(function(e){this.unput(this.match.slice(e))},"less"),pastInput:hRe(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:hRe(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:hRe(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:hRe(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.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],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},"test_match"),next:hRe(function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&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:hRe(function(){var e=this.next();return e||this.lex()},"lex"),begin:hRe(function(e){this.conditionStack.push(e)},"begin"),popState:hRe(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:hRe(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:hRe(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:hRe(function(e){this.begin(e)},"pushState"),stateStackSize:hRe(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:hRe(function(e,t,n,r){switch(n){case 0:return this.pushState("shapeData"),t.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:const n=/\n\s*/g;return t.yytext=t.yytext.replace(n,"<br/>"),24;case 4:return 24;case 5:case 10:case 29:case 32:this.popState();break;case 6:return e.getLogger().trace("Found comment",t.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 11:e.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return e.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:e.getLogger().trace("end icon"),this.popState();break;case 16:return e.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return e.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return e.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return e.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:case 21:case 22:case 23:return this.begin("NODE"),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 30:e.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return e.getLogger().trace("description:",t.yytext),"NODE_DESCR";case 33:return this.popState(),e.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),e.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),e.getLogger().trace("node end ...",t.yytext),"NODE_DEND";case 36:case 39:case 40:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 37:case 38:return this.popState(),e.getLogger().trace("node end (-"),"NODE_DEND";case 41:case 42:return e.getLogger().trace("Long description:",t.yytext),21}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return e}();function x(){this.yy={}}return v.lexer=b,hRe(x,"Parser"),x.prototype=v,v.Parser=x,new x}();zPn.parser=zPn;var qPn=zPn,VPn=[],WPn=[],jPn=0,YPn={},ZPn=hRe(()=>{VPn=[],WPn=[],jPn=0,YPn={}},"clear"),GPn=hRe(e=>{if(0===VPn.length)return null;const t=VPn[0].level;let n=null;for(let r=VPn.length-1;r>=0;r--)if(VPn[r].level!==t||n||(n=VPn[r]),VPn[r].level<t)throw new Error('Items without section detected, found section ("'+VPn[r].label+'")');return e===(null==n?void 0:n.level)?null:n},"getSection"),HPn=hRe(function(){return WPn},"getSections"),KPn=hRe(function(){const e=[],t=HPn(),n=JIe();for(const r of t){const t={id:r.id,label:uIe(r.label??"",n),labelType:"markdown",isGroup:!0,ticket:r.ticket,shape:"kanbanSection",level:r.level,look:n.look};e.push(t);const i=VPn.filter(e=>e.parentId===r.id);for(const o of i){const t={id:o.id,parentId:r.id,label:uIe(o.label??"",n),labelType:"markdown",isGroup:!1,ticket:null==o?void 0:o.ticket,priority:null==o?void 0:o.priority,assigned:null==o?void 0:o.assigned,icon:null==o?void 0:o.icon,shape:"kanbanItem",level:o.level,rx:5,ry:5,cssStyles:["text-align: left"]};e.push(t)}}return{nodes:e,edges:[],other:{},config:JIe()}},"getData"),JPn=hRe((e,t,n,r,i)=>{var o,a;const s=JIe();let l=(null==(o=s.mindmap)?void 0:o.padding)??wBe.mindmap.padding;switch(r){case eEn.ROUNDED_RECT:case eEn.RECT:case eEn.HEXAGON:l*=2}const c={id:uIe(t,s)||"kbn"+jPn++,level:e,label:uIe(n,s),width:(null==(a=s.mindmap)?void 0:a.maxNodeWidth)??wBe.mindmap.maxNodeWidth,padding:l,isGroup:!1};if(void 0!==i){let e;e=i.includes("\n")?i+"\n":"{\n"+i+"\n}";const t=H1e(e,{schema:Y1e});if(t.shape&&(t.shape!==t.shape.toLowerCase()||t.shape.includes("_")))throw new Error(`No such shape: ${t.shape}. Shape names should be lowercase.`);(null==t?void 0:t.shape)&&"kanbanItem"===t.shape&&(c.shape=null==t?void 0:t.shape),(null==t?void 0:t.label)&&(c.label=null==t?void 0:t.label),(null==t?void 0:t.icon)&&(c.icon=null==t?void 0:t.icon.toString()),(null==t?void 0:t.assigned)&&(c.assigned=null==t?void 0:t.assigned.toString()),(null==t?void 0:t.ticket)&&(c.ticket=null==t?void 0:t.ticket.toString()),(null==t?void 0:t.priority)&&(c.priority=null==t?void 0:t.priority)}const u=GPn(e);u?c.parentId=u.id||"kbn"+jPn++:WPn.push(c),VPn.push(c)},"addNode"),eEn={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},tEn={clear:ZPn,addNode:JPn,getSections:HPn,getData:KPn,nodeType:eEn,getType:hRe((e,t)=>{switch(ORe.debug("In get type",e,t),e){case"[":return eEn.RECT;case"(":return")"===t?eEn.ROUNDED_RECT:eEn.CLOUD;case"((":return eEn.CIRCLE;case")":return eEn.CLOUD;case"))":return eEn.BANG;case"{{":return eEn.HEXAGON;default:return eEn.DEFAULT}},"getType"),setElementForId:hRe((e,t)=>{YPn[e]=t},"setElementForId"),decorateNode:hRe(e=>{if(!e)return;const t=JIe(),n=VPn[VPn.length-1];e.icon&&(n.icon=uIe(e.icon,t)),e.class&&(n.cssClasses=uIe(e.class,t))},"decorateNode"),type2Str:hRe(e=>{switch(e){case eEn.DEFAULT:return"no-border";case eEn.RECT:return"rect";case eEn.ROUNDED_RECT:return"rounded-rect";case eEn.CIRCLE:return"circle";case eEn.CLOUD:return"cloud";case eEn.BANG:return"bang";case eEn.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),getLogger:hRe(()=>ORe,"getLogger"),getElementById:hRe(e=>YPn[e],"getElementById")},nEn=hRe(async(e,t,n,r)=>{var i,o,a,s,l;ORe.debug("Rendering kanban diagram\n"+e);const c=r.db.getData(),u=JIe();u.htmlLabels=!1;const h=Mqe(t);for(const y of c.nodes)y.domId=`${t}-${y.id}`;const d=h.append("g");d.attr("class","sections");const p=h.append("g");p.attr("class","items");const f=c.nodes.filter(e=>e.isGroup);let g=0;const m=[];let O=25;for(const y of f){const e=(null==(i=null==u?void 0:u.kanban)?void 0:i.sectionWidth)||200;g+=1,y.x=e*g+10*(g-1)/2,y.width=e,y.y=0,y.height=3*e,y.rx=5,y.ry=5,y.cssClasses=y.cssClasses+" section-"+g;const t=await IKe(d,y);O=Math.max(O,null==(o=null==t?void 0:t.labelBBox)?void 0:o.height),m.push(t)}let A=0;for(const y of f){const e=m[A];A+=1;const t=(null==(a=null==u?void 0:u.kanban)?void 0:a.sectionWidth)||200,n=3*-t/2+O;let r=n;const i=c.nodes.filter(e=>e.parentId===y.id);for(const a of i){if(a.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");a.x=y.x,a.width=t-15;const e=(await kKe(p,a,{config:u})).node().getBBox();a.y=r+e.height/2,await $Ke(a),r=a.y+e.height/2+5}const o=e.cluster.select("rect"),s=Math.max(r-n+30,50)+(O-25);o.attr("height",s)}RIe(void 0,h,(null==(s=u.mindmap)?void 0:s.padding)??wBe.kanban.padding,(null==(l=u.mindmap)?void 0:l.useMaxWidth)??wBe.kanban.useMaxWidth)},"draw"),rEn={draw:nEn},iEn=hRe(e=>{let t="";for(let r=0;r<e.THEME_COLOR_LIMIT;r++)e["lineColor"+r]=e["lineColor"+r]||e["cScaleInv"+r],MRe(e["lineColor"+r])?e["lineColor"+r]=XRe(e["lineColor"+r],20):e["lineColor"+r]=FRe(e["lineColor"+r],20);const n=hRe((t,n)=>e.darkMode?FRe(t,n):XRe(t,n),"adjuster");for(let r=0;r<e.THEME_COLOR_LIMIT;r++){const i=""+(17-3*r);t+=`\n .section-${r-1} rect, .section-${r-1} path, .section-${r-1} circle, .section-${r-1} polygon, .section-${r-1} path {\n fill: ${n(e["cScale"+r],10)};\n stroke: ${n(e["cScale"+r],10)};\n\n }\n .section-${r-1} text {\n fill: ${e["cScaleLabel"+r]};\n }\n .node-icon-${r-1} {\n font-size: 40px;\n color: ${e["cScaleLabel"+r]};\n }\n .section-edge-${r-1}{\n stroke: ${e["cScale"+r]};\n }\n .edge-depth-${r-1}{\n stroke-width: ${i};\n }\n .section-${r-1} line {\n stroke: ${e["cScaleInv"+r]} ;\n stroke-width: 3;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: lightgray;\n }\n .disabled text {\n fill: #efefef;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${e.background};\n stroke: ${e.nodeBorder};\n stroke-width: 1px;\n }\n\n .kanban-ticket-link {\n fill: ${e.background};\n stroke: ${e.nodeBorder};\n text-decoration: underline;\n }\n `}return t},"genSections"),oEn={db:tEn,renderer:rEn,parser:qPn,styles:hRe(e=>`\n .edge {\n stroke-width: 3;\n }\n ${iEn(e)}\n .section-root rect, .section-root path, .section-root circle, .section-root polygon {\n fill: ${e.git0};\n }\n .section-root text {\n fill: ${e.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .cluster-label, .label {\n color: ${e.textColor};\n fill: ${e.textColor};\n }\n .kanban-label {\n dy: 1em;\n alignment-baseline: middle;\n text-anchor: middle;\n dominant-baseline: middle;\n text-align: center;\n }\n ${fzt()}\n`,"getStyles")};const aEn=Object.freeze(Object.defineProperty({__proto__:null,diagram:oEn},Symbol.toStringTag,{value:"Module"}));function sEn(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function lEn(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function cEn(e,t){let n=0;if(void 0===t)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}function uEn(e){return e.target.depth}function hEn(e,t){return e.sourceLinks.length?e.depth:t-1}function dEn(e){return function(){return e}}function pEn(e,t){return gEn(e.source,t.source)||e.index-t.index}function fEn(e,t){return gEn(e.target,t.target)||e.index-t.index}function gEn(e,t){return e.y0-t.y0}function mEn(e){return e.value}function OEn(e){return e.index}function AEn(e){return e.nodes}function yEn(e){return e.links}function vEn(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function bEn({nodes:e}){for(const t of e){let e=t.y0,n=e;for(const r of t.sourceLinks)r.y0=e+r.width/2,e+=r.width;for(const r of t.targetLinks)r.y1=n+r.width/2,n+=r.width}}function xEn(){let e,t,n,r=0,i=0,o=1,a=1,s=24,l=8,c=OEn,u=hEn,h=AEn,d=yEn,p=6;function f(){const f={nodes:h.apply(null,arguments),links:d.apply(null,arguments)};return function({nodes:e,links:t}){for(const[n,i]of e.entries())i.index=n,i.sourceLinks=[],i.targetLinks=[];const r=new Map(e.map((t,n)=>[c(t,n,e),t]));for(const[n,i]of t.entries()){i.index=n;let{source:e,target:t}=i;"object"!=typeof e&&(e=i.source=vEn(r,e)),"object"!=typeof t&&(t=i.target=vEn(r,t)),e.sourceLinks.push(i),t.targetLinks.push(i)}if(null!=n)for(const{sourceLinks:i,targetLinks:o}of e)i.sort(n),o.sort(n)}(f),function({nodes:e}){for(const t of e)t.value=void 0===t.fixedValue?Math.max(cEn(t.sourceLinks,mEn),cEn(t.targetLinks,mEn)):t.fixedValue}(f),function({nodes:e}){const t=e.length;let n=new Set(e),r=new Set,i=0;for(;n.size;){for(const e of n){e.depth=i;for(const{target:t}of e.sourceLinks)r.add(t)}if(++i>t)throw new Error("circular link");n=r,r=new Set}}(f),function({nodes:e}){const t=e.length;let n=new Set(e),r=new Set,i=0;for(;n.size;){for(const e of n){e.height=i;for(const{source:t}of e.targetLinks)r.add(t)}if(++i>t)throw new Error("circular link");n=r,r=new Set}}(f),function(n){const c=function({nodes:e}){const n=sEn(e,e=>e.depth)+1,i=(o-r-s)/(n-1),a=new Array(n);for(const t of e){const e=Math.max(0,Math.min(n-1,Math.floor(u.call(null,t,n))));t.layer=e,t.x0=r+e*i,t.x1=t.x0+s,a[e]?a[e].push(t):a[e]=[t]}if(t)for(const r of a)r.sort(t);return a}(n);e=Math.min(l,(a-i)/(sEn(c,e=>e.length)-1)),function(t){const n=lEn(t,t=>(a-i-(t.length-1)*e)/cEn(t,mEn));for(const r of t){let t=i;for(const i of r){i.y0=t,i.y1=t+i.value*n,t=i.y1+e;for(const e of i.sourceLinks)e.width=e.value*n}t=(a-t+e)/(r.length+1);for(let e=0;e<r.length;++e){const n=r[e];n.y0+=t*(e+1),n.y1+=t*(e+1)}b(r)}}(c);for(let e=0;e<p;++e){const t=Math.pow(.99,e),n=Math.max(1-t,(e+1)/p);m(c,t,n),g(c,t,n)}}(f),bEn(f),f}function g(e,n,r){for(let i=1,o=e.length;i<o;++i){const o=e[i];for(const e of o){let t=0,r=0;for(const{source:n,value:o}of e.targetLinks){let i=o*(e.layer-n.layer);t+=x(n,e)*i,r+=i}if(!(r>0))continue;let i=(t/r-e.y0)*n;e.y0+=i,e.y1+=i,v(e)}void 0===t&&o.sort(gEn),O(o,r)}}function m(e,n,r){for(let i=e.length-2;i>=0;--i){const o=e[i];for(const e of o){let t=0,r=0;for(const{target:n,value:o}of e.sourceLinks){let i=o*(n.layer-e.layer);t+=w(e,n)*i,r+=i}if(!(r>0))continue;let i=(t/r-e.y0)*n;e.y0+=i,e.y1+=i,v(e)}void 0===t&&o.sort(gEn),O(o,r)}}function O(t,n){const r=t.length>>1,o=t[r];y(t,o.y0-e,r-1,n),A(t,o.y1+e,r+1,n),y(t,a,t.length-1,n),A(t,i,0,n)}function A(t,n,r,i){for(;r<t.length;++r){const o=t[r],a=(n-o.y0)*i;a>1e-6&&(o.y0+=a,o.y1+=a),n=o.y1+e}}function y(t,n,r,i){for(;r>=0;--r){const o=t[r],a=(o.y1-n)*i;a>1e-6&&(o.y0-=a,o.y1-=a),n=o.y0-e}}function v({sourceLinks:e,targetLinks:t}){if(void 0===n){for(const{source:{sourceLinks:e}}of t)e.sort(fEn);for(const{target:{targetLinks:t}}of e)t.sort(pEn)}}function b(e){if(void 0===n)for(const{sourceLinks:t,targetLinks:n}of e)t.sort(fEn),n.sort(pEn)}function x(t,n){let r=t.y0-(t.sourceLinks.length-1)*e/2;for(const{target:i,width:o}of t.sourceLinks){if(i===n)break;r+=o+e}for(const{source:e,width:i}of n.targetLinks){if(e===t)break;r-=i}return r}function w(t,n){let r=n.y0-(n.targetLinks.length-1)*e/2;for(const{source:i,width:o}of n.targetLinks){if(i===t)break;r+=o+e}for(const{target:e,width:i}of t.sourceLinks){if(e===n)break;r-=i}return r}return f.update=function(e){return bEn(e),e},f.nodeId=function(e){return arguments.length?(c="function"==typeof e?e:dEn(e),f):c},f.nodeAlign=function(e){return arguments.length?(u="function"==typeof e?e:dEn(e),f):u},f.nodeSort=function(e){return arguments.length?(t=e,f):t},f.nodeWidth=function(e){return arguments.length?(s=+e,f):s},f.nodePadding=function(t){return arguments.length?(l=e=+t,f):l},f.nodes=function(e){return arguments.length?(h="function"==typeof e?e:dEn(e),f):h},f.links=function(e){return arguments.length?(d="function"==typeof e?e:dEn(e),f):d},f.linkSort=function(e){return arguments.length?(n=e,f):n},f.size=function(e){return arguments.length?(r=i=0,o=+e[0],a=+e[1],f):[o-r,a-i]},f.extent=function(e){return arguments.length?(r=+e[0][0],o=+e[1][0],i=+e[0][1],a=+e[1][1],f):[[r,i],[o,a]]},f.iterations=function(e){return arguments.length?(p=+e,f):p},f}var wEn=Math.PI,kEn=2*wEn,SEn=1e-6,TEn=kEn-SEn;function $En(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function _En(){return new $En}function CEn(e){return function(){return e}}function QEn(e){return e[0]}function PEn(e){return e[1]}$En.prototype=_En.prototype={constructor:$En,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-e,l=r-t,c=o-e,u=a-t,h=c*c+u*u;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(h>SEn)if(Math.abs(u*s-l*c)>SEn&&i){var d=n-o,p=r-a,f=s*s+l*l,g=d*d+p*p,m=Math.sqrt(f),O=Math.sqrt(h),A=i*Math.tan((wEn-Math.acos((f+h-g)/(2*m*O)))/2),y=A/O,v=A/m;Math.abs(y-1)>SEn&&(this._+="L"+(e+y*c)+","+(t+y*u)),this._+="A"+i+","+i+",0,0,"+ +(u*d>c*p)+","+(this._x1=e+v*s)+","+(this._y1=t+v*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,i,o){e=+e,t=+t,o=!!o;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=e+a,c=t+s,u=1^o,h=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>SEn||Math.abs(this._y1-c)>SEn)&&(this._+="L"+l+","+c),n&&(h<0&&(h=h%kEn+kEn),h>TEn?this._+="A"+n+","+n+",0,1,"+u+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):h>SEn&&(this._+="A"+n+","+n+",0,"+ +(h>=wEn)+","+u+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var EEn=Array.prototype.slice;function REn(e){return e.source}function BEn(e){return e.target}function IEn(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function LEn(){return function(e){var t=REn,n=BEn,r=QEn,i=PEn,o=null;function a(){var a,s=EEn.call(arguments),l=t.apply(this,s),c=n.apply(this,s);if(o||(o=a=_En()),e(o,+r.apply(this,(s[0]=l,s)),+i.apply(this,s),+r.apply(this,(s[0]=c,s)),+i.apply(this,s)),a)return o=null,a+""||null}return a.source=function(e){return arguments.length?(t=e,a):t},a.target=function(e){return arguments.length?(n=e,a):n},a.x=function(e){return arguments.length?(r="function"==typeof e?e:CEn(+e),a):r},a.y=function(e){return arguments.length?(i="function"==typeof e?e:CEn(+e),a):i},a.context=function(e){return arguments.length?(o=null==e?null:e,a):o},a}(IEn)}function DEn(e){return[e.source.x1,e.y0]}function MEn(e){return[e.target.x0,e.y1]}var NEn=function(){var e=hRe(function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},"o"),t=[1,9],n=[1,10],r=[1,5,10,12],i={trace:hRe(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:hRe(function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 7:const e=r.findOrCreateNode(o[s-4].trim().replaceAll('""','"')),t=r.findOrCreateNode(o[s-2].trim().replaceAll('""','"')),n=parseFloat(o[s].trim());r.addLink(e,t,n);break;case 8:case 9:case 11:this.$=o[s];break;case 10:this.$=o[s-1]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:t,20:n},{1:[2,6],7:11,10:[1,12]},e(n,[2,4],{9:13,5:[1,14]}),{12:[1,15]},e(r,[2,8]),e(r,[2,9]),{19:[1,16]},e(r,[2,11]),{1:[2,1]},{1:[2,5]},e(n,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:t,20:n},{15:18,16:7,17:8,18:t,20:n},{18:[1,19]},e(n,[2,3]),{12:[1,20]},e(r,[2,10]),{15:21,16:7,17:8,18:t,20:n},e([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:hRe(function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},"parseError"),parse:hRe(function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),h=Object.create(this.lexer),d={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d.yy[p]=this.yy[p]);h.setInput(e,d.yy),d.yy.lexer=h,d.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var f=h.yylloc;o.push(f);var g=h.options&&h.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||h.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,hRe(function(e){n.length=n.length-2*e,i.length=i.length-e,o.length=o.length-e},"popStack"),hRe(m,"lex");for(var O,A,y,v,b,x,w,k,S={};;){if(A=n[n.length-1],this.defaultActions[A]?y=this.defaultActions[A]:(null==O&&(O=m()),y=a[A]&&a[A][O]),void 0===y||!y.length||!y[0]){var T="";for(b in k=[],a[A])this.terminals_[b]&&b>2&&k.push("'"+this.terminals_[b]+"'");T=h.showPosition?"Parse error on line "+(l+1)+":\n"+h.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[O]||O)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==O?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[O]||O,line:h.yylineno,loc:f,expected:k})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+O);switch(y[0]){case 1:n.push(O),i.push(h.yytext),o.push(h.yylloc),n.push(y[1]),O=null,c=h.yyleng,s=h.yytext,l=h.yylineno,f=h.yylloc;break;case 2:if(x=this.productions_[y[1]][1],S.$=i[i.length-x],S._$={first_line:o[o.length-(x||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(x||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(x||1)].range[0],o[o.length-1].range[1]]),void 0!==(v=this.performAction.apply(S,[s,c,l,d.yy,y[1],i,o].concat(u))))return v;x&&(n=n.slice(0,-1*x*2),i=i.slice(0,-1*x),o=o.slice(0,-1*x)),n.push(this.productions_[y[1]][0]),i.push(S.$),o.push(S._$),w=a[n[n.length-2]][n[n.length-1]],n.push(w);break;case 3:return!0}}return!0},"parse")},o=function(){var e={EOF:1,parseError:hRe(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:hRe(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:hRe(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:hRe(function(e){var t=e.length,n=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 r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:hRe(function(){return this._more=!0,this},"more"),reject:hRe(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:hRe(function(e){this.unput(this.match.slice(e))},"less"),pastInput:hRe(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:hRe(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:hRe(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:hRe(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.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],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},"test_match"),next:hRe(function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&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:hRe(function(){var e=this.next();return e||this.lex()},"lex"),begin:hRe(function(e){this.conditionStack.push(e)},"begin"),popState:hRe(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:hRe(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:hRe(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:hRe(function(e){this.begin(e)},"pushState"),stateStackSize:hRe(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:hRe(function(e,t,n,r){switch(n){case 0:case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return e}();function a(){this.yy={}}return i.lexer=o,hRe(a,"Parser"),a.prototype=i,i.Parser=a,new a}();NEn.parser=NEn;var XEn=NEn,FEn=[],UEn=[],zEn=new Map,qEn=hRe(()=>{FEn=[],UEn=[],zEn=new Map,qIe()},"clear"),VEn=(hRe(Fn=class{constructor(e,t,n=0){this.source=e,this.target=t,this.value=n}},"SankeyLink"),Fn),WEn=hRe((e,t,n)=>{FEn.push(new VEn(e,t,n))},"addLink"),jEn=(hRe(Un=class{constructor(e){this.ID=e}},"SankeyNode"),Un),YEn=hRe(e=>{e=CIe.sanitizeText(e,JIe());let t=zEn.get(e);return void 0===t&&(t=new jEn(e),zEn.set(e,t),UEn.push(t)),t},"findOrCreateNode"),ZEn=hRe(()=>UEn,"getNodes"),GEn=hRe(()=>FEn,"getLinks"),HEn=hRe(()=>({nodes:UEn.map(e=>({id:e.ID})),links:FEn.map(e=>({source:e.source.ID,target:e.target.ID,value:e.value}))}),"getGraph"),KEn={nodesMap:zEn,getConfig:hRe(()=>JIe().sankey,"getConfig"),getNodes:ZEn,getLinks:GEn,getGraph:HEn,addLink:WEn,findOrCreateNode:YEn,getAccTitle:WIe,setAccTitle:VIe,getAccDescription:YIe,setAccDescription:jIe,getDiagramTitle:GIe,setDiagramTitle:ZIe,clear:qEn},JEn=(hRe(zn=class{static next(e){return new zn(e+ ++zn.count)}constructor(e){this.id=e,this.href=`#${e}`}toString(){return"url("+this.href+")"}},"Uid"),zn.count=0,zn),eRn={left:function(e){return e.depth},right:function(e,t){return t-1-e.height},center:function(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?lEn(e.sourceLinks,uEn)-1:0},justify:hEn},tRn=hRe(e=>{let t=0,n=0;for(const r of e){const e=r.value??0;e>t&&(t=e,n=r.layer??0)}return n},"findCentralNodeLayer"),nRn={draw:hRe(function(e,t,n,r){const{securityLevel:i,sankey:o}=JIe(),a=tLe.sankey;let s;"sandbox"===i&&(s=GDe("#i"+t));const l=GDe("sandbox"===i?s.nodes()[0].contentDocument.body:"body"),c="sandbox"===i?l.select(`[id="${t}"]`):GDe(`[id="${t}"]`),u=(null==o?void 0:o.width)??a.width,h=(null==o?void 0:o.height)??a.width,d=(null==o?void 0:o.useMaxWidth)??a.useMaxWidth,p=(null==o?void 0:o.nodeAlignment)??a.nodeAlignment,f=(null==o?void 0:o.prefix)??a.prefix,g=(null==o?void 0:o.suffix)??a.suffix,m=(null==o?void 0:o.showValues)??a.showValues,O=(null==o?void 0:o.nodeWidth)??a.nodeWidth??10,A=(null==o?void 0:o.nodePadding)??a.nodePadding??12,y=(null==o?void 0:o.labelStyle)??a.labelStyle??"legacy",v=(null==o?void 0:o.nodeColors)??{},b=r.db.getGraph(),x=eRn[p];xEn().nodeId(e=>e.id).nodeWidth(O).nodePadding(A+(m?15:0)).nodeAlign(x).extent([[0,0],[u,h]])(b);const w=tRn(b.nodes),k=GXe(yze),S=hRe(e=>v[e]??k(e),"getNodeColor");c.append("g").attr("class","nodes").selectAll(".node").data(b.nodes).join("g").attr("class","node").attr("id",e=>(e.uid=JEn.next("node-")).id).attr("transform",function(e){return"translate("+e.x0+","+e.y0+")"}).attr("x",e=>e.x0).attr("y",e=>e.y0).append("rect").attr("height",e=>e.y1-e.y0).attr("width",e=>e.x1-e.x0).attr("fill",e=>S(e.id));const T=hRe(({id:e,value:t})=>m?`${e}\n${f}${Math.round(100*t)/100}${g}`:e,"getText"),$=hRe(e=>{if("outlined"===y){return(e.layer??0)<w?{x:e.x0-6,anchor:"end"}:{x:e.x1+6,anchor:"start"}}return e.x0<u/2?{x:e.x1+6,anchor:"start"}:{x:e.x0-6,anchor:"end"}},"getLabelPosition"),_=c.append("g").attr("class","node-labels").attr("font-size",14),C=hRe(e=>_.selectAll(e?`.${e}`:"text").data(b.nodes).join("text").attr("class",e??null).attr("x",e=>$(e).x).attr("y",e=>(e.y1+e.y0)/2).attr("dy",(m?"0":"0.35")+"em").attr("text-anchor",e=>$(e).anchor).text(T),"appendLabel");"outlined"===y?(C("sankey-label-bg"),C("sankey-label-fg")):C();const Q=c.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(b.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),P=(null==o?void 0:o.linkColor)??"gradient";if("gradient"===P){const e=Q.append("linearGradient").attr("id",e=>(e.uid=JEn.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",e=>e.source.x1).attr("x2",e=>e.target.x0);e.append("stop").attr("offset","0%").attr("stop-color",e=>S(e.source.id)),e.append("stop").attr("offset","100%").attr("stop-color",e=>S(e.target.id))}let E;switch(P){case"gradient":E=hRe(e=>e.uid,"coloring");break;case"source":E=hRe(e=>S(e.source.id),"coloring");break;case"target":E=hRe(e=>S(e.target.id),"coloring");break;default:E=P}Q.append("path").attr("d",LEn().source(DEn).target(MEn)).attr("stroke",E).attr("stroke-width",e=>Math.max(1,e.width)),RIe(void 0,c,0,d)},"draw")},rRn=hRe(e=>e.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,"\n").trim(),"prepareTextForParsing"),iRn=hRe(e=>`.label {\n font-family: ${e.fontFamily};\n }\n\n .node-labels {\n font-family: ${e.fontFamily};\n }\n\n /* Outlined label style - background stroke for better readability */\n .sankey-label-bg {\n stroke: ${e.mainBkg||e.background||"#fff"};\n stroke-width: 4px;\n stroke-linejoin: round;\n paint-order: stroke;\n }\n\n /* Foreground label text */\n .sankey-label-fg {\n fill: ${e.textColor};\n }\n\n /* Node styling */\n .node rect {\n shape-rendering: crispEdges;\n }\n\n /* Link styling */\n .link {\n fill: none;\n stroke-opacity: 0.5;\n mix-blend-mode: multiply;\n }\n`,"getStyles"),oRn=XEn.parse.bind(XEn);XEn.parse=e=>oRn(rRn(e));var aRn={styles:iRn,parser:XEn,db:KEn,renderer:nRn};const sRn=Object.freeze(Object.defineProperty({__proto__:null,diagram:aRn},Symbol.toStringTag,{value:"Module"}));var lRn=wBe.packet,cRn=(hRe(qn=class{constructor(){this.packet=[],this.setAccTitle=VIe,this.getAccTitle=WIe,this.setDiagramTitle=ZIe,this.getDiagramTitle=GIe,this.getAccDescription=YIe,this.setAccDescription=jIe}getConfig(){const e=jWe({...lRn,...NBe().packet});return e.showBits&&(e.paddingY+=10),e}getPacket(){return this.packet}pushWord(e){e.length>0&&this.packet.push(e)}clear(){qIe(),this.packet=[]}},"PacketDB"),qn),uRn=hRe((e,t)=>{qzt(e,t);let n=-1,r=[],i=1;const{bitsPerRow:o}=t.getConfig();for(let{start:a,end:s,bits:l,label:c}of e.blocks){if(void 0!==a&&void 0!==s&&s<a)throw new Error(`Packet block ${a} - ${s} is invalid. End must be greater than start.`);if(a??(a=n+1),a!==n+1)throw new Error(`Packet block ${a} - ${s??a} is not contiguous. It should start from ${n+1}.`);if(0===l)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(s??(s=a+(l??1)-1),l??(l=s-a+1),n=s,ORe.debug(`Packet block ${a} - ${n} with label ${c}`);r.length<=o+1&&t.getPacket().length<1e4;){const[e,n]=hRn({start:a,end:s,bits:l,label:c},i,o);if(r.push(e),e.end+1===i*o&&(t.pushWord(r),r=[],i++),!n)break;({start:a,end:s,bits:l,label:c}=n)}}t.pushWord(r)},"populate"),hRn=hRe((e,t,n)=>{if(void 0===e.start)throw new Error("start should have been set during first phase");if(void 0===e.end)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*n)return[e,void 0];const r=t*n-1,i=t*n;return[{start:e.start,end:r,label:e.label,bits:r-e.start},{start:i,end:e.end,label:e.label,bits:e.end-i}]},"getNextFittingBlock"),dRn={parser:{yy:void 0},parse:hRe(async e=>{var t;const n=await gbn("packet",e),r=null==(t=dRn.parser)?void 0:t.yy;if(!(r instanceof cRn))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");ORe.debug(n),uRn(n,r)},"parse")},pRn=hRe((e,t,n,r)=>{const i=r.db,o=i.getConfig(),{rowHeight:a,paddingY:s,bitWidth:l,bitsPerRow:c}=o,u=i.getPacket(),h=i.getDiagramTitle(),d=a+s,p=d*(u.length+1)-(h?0:a),f=l*c+2,g=Mqe(t);g.attr("viewBox",`0 0 ${f} ${p}`),EIe(g,p,f,o.useMaxWidth);for(const[m,O]of u.entries())fRn(g,O,m,o);g.append("text").text(h).attr("x",f/2).attr("y",p-d/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),fRn=hRe((e,t,n,{rowHeight:r,paddingX:i,paddingY:o,bitWidth:a,bitsPerRow:s,showBits:l})=>{const c=e.append("g"),u=n*(r+o)+o;for(const h of t){const e=h.start%s*a+1,t=(h.end-h.start+1)*a-i;if(c.append("rect").attr("x",e).attr("y",u).attr("width",t).attr("height",r).attr("class","packetBlock"),c.append("text").attr("x",e+t/2).attr("y",u+r/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(h.label),!l)continue;const n=h.end===h.start,o=u-2;c.append("text").attr("x",e+(n?t/2:0)).attr("y",o).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",n?"middle":"start").text(h.start),n||c.append("text").attr("x",e+t).attr("y",o).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(h.end)}},"drawWord"),gRn={draw:pRn},mRn={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},ORn=hRe(({packet:e}={})=>{const t=jWe(mRn,e);return`\n\t.packetByte {\n\t\tfont-size: ${t.byteFontSize};\n\t}\n\t.packetByte.start {\n\t\tfill: ${t.startByteColor};\n\t}\n\t.packetByte.end {\n\t\tfill: ${t.endByteColor};\n\t}\n\t.packetLabel {\n\t\tfill: ${t.labelColor};\n\t\tfont-size: ${t.labelFontSize};\n\t}\n\t.packetTitle {\n\t\tfill: ${t.titleColor};\n\t\tfont-size: ${t.titleFontSize};\n\t}\n\t.packetBlock {\n\t\tstroke: ${t.blockStrokeColor};\n\t\tstroke-width: ${t.blockStrokeWidth};\n\t\tfill: ${t.blockFillColor};\n\t}\n\t`},"styles"),ARn={parser:dRn,get db(){return new cRn},renderer:gRn,styles:ORn};const yRn=Object.freeze(Object.defineProperty({__proto__:null,diagram:ARn},Symbol.toStringTag,{value:"Module"}));var vRn={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},bRn={axes:[],curves:[],options:vRn},xRn=structuredClone(bRn),wRn=wBe.radar,kRn=hRe(()=>jWe({...wRn,...NBe().radar}),"getConfig"),SRn=hRe(()=>xRn.axes,"getAxes"),TRn=hRe(()=>xRn.curves,"getCurves"),$Rn=hRe(()=>xRn.options,"getOptions"),_Rn=hRe(e=>{xRn.axes=e.map(e=>({name:e.name,label:e.label??e.name}))},"setAxes"),CRn=hRe(e=>{xRn.curves=e.map(e=>({name:e.name,label:e.label??e.name,entries:QRn(e.entries)}))},"setCurves"),QRn=hRe(e=>{if(null==e[0].axis)return e.map(e=>e.value);const t=SRn();if(0===t.length)throw new Error("Axes must be populated before curves for reference entries");return t.map(t=>{const n=e.find(e=>{var n;return(null==(n=e.axis)?void 0:n.$refText)===t.name});if(void 0===n)throw new Error("Missing entry for axis "+t.label);return n.value})},"computeCurveEntries"),PRn={getAxes:SRn,getCurves:TRn,getOptions:$Rn,setAxes:_Rn,setCurves:CRn,setOptions:hRe(e=>{var t,n,r,i,o;const a=e.reduce((e,t)=>(e[t.name]=t,e),{});xRn.options={showLegend:(null==(t=a.showLegend)?void 0:t.value)??vRn.showLegend,ticks:(null==(n=a.ticks)?void 0:n.value)??vRn.ticks,max:(null==(r=a.max)?void 0:r.value)??vRn.max,min:(null==(i=a.min)?void 0:i.value)??vRn.min,graticule:(null==(o=a.graticule)?void 0:o.value)??vRn.graticule},xRn.options.ticks>32&&(ORe.warn(`Radar diagram ticks (${xRn.options.ticks}) exceeds maximum allowed (32). Using 32 instead.`),xRn.options.ticks=32)},"setOptions"),getConfig:kRn,clear:hRe(()=>{qIe(),xRn=structuredClone(bRn)},"clear"),setAccTitle:VIe,getAccTitle:WIe,setDiagramTitle:ZIe,getDiagramTitle:GIe,getAccDescription:YIe,setAccDescription:jIe},ERn=hRe(e=>{qzt(e,PRn);const{axes:t,curves:n,options:r}=e;PRn.setAxes(t),PRn.setCurves(n),PRn.setOptions(r)},"populate"),RRn={parse:hRe(async e=>{const t=await gbn("radar",e);ORe.debug(t),ERn(t)},"parse")},BRn=hRe((e,t,n,r)=>{const i=r.db,o=i.getAxes(),a=i.getCurves(),s=i.getOptions(),l=i.getConfig(),c=i.getDiagramTitle(),u=Mqe(t),h=IRn(u,l),d=s.max??Math.max(...a.map(e=>Math.max(...e.entries))),p=s.min,f=Math.min(l.width,l.height)/2;LRn(h,o,f,s.ticks,s.graticule),DRn(h,o,f,l),MRn(h,o,a,p,d,s.graticule,l),FRn(h,a,s.showLegend,l),h.append("text").attr("class","radarTitle").text(c).attr("x",0).attr("y",-l.height/2-l.marginTop)},"draw"),IRn=hRe((e,t)=>{const n=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,i=t.marginLeft+t.width/2,o=t.marginTop+t.height/2;return EIe(e,r,n,t.useMaxWidth??!0),e.attr("viewBox",`0 0 ${n} ${r}`).attr("overflow","visible"),e.append("g").attr("transform",`translate(${i}, ${o})`)},"drawFrame"),LRn=hRe((e,t,n,r,i)=>{if("circle"===i)for(let o=0;o<r;o++){const t=n*(o+1)/r;e.append("circle").attr("r",t).attr("class","radarGraticule")}else if("polygon"===i){const i=t.length;for(let o=0;o<r;o++){const a=n*(o+1)/r,s=t.map((e,t)=>{const n=2*t*Math.PI/i-Math.PI/2;return`${a*Math.cos(n)},${a*Math.sin(n)}`}).join(" ");e.append("polygon").attr("points",s).attr("class","radarGraticule")}}},"drawGraticule"),DRn=hRe((e,t,n,r)=>{const i=t.length;for(let o=0;o<i;o++){const a=t[o].label,s=2*o*Math.PI/i-Math.PI/2,l=Math.cos(s),c=Math.sin(s);e.append("line").attr("x1",0).attr("y1",0).attr("x2",n*r.axisScaleFactor*l).attr("y2",n*r.axisScaleFactor*c).attr("class","radarAxisLine");const u=l>.01?"start":l<-.01?"end":"middle",h=c>.01?"hanging":c<-.01?"auto":"central",d=4;e.append("text").text(a).attr("x",n*r.axisLabelFactor*l+d*l).attr("y",n*r.axisLabelFactor*c+d*c).attr("text-anchor",u).attr("dominant-baseline",h).attr("class","radarAxisLabel")}},"drawAxes");function MRn(e,t,n,r,i,o,a){const s=t.length,l=Math.min(a.width,a.height)/2;n.forEach((t,n)=>{if(t.entries.length!==s)return;const c=t.entries.map((e,t)=>{const n=2*Math.PI*t/s-Math.PI/2,o=NRn(e,r,i,l);return{x:o*Math.cos(n),y:o*Math.sin(n)}});"circle"===o?e.append("path").attr("d",XRn(c,a.curveTension)).attr("class",`radarCurve-${n}`):"polygon"===o&&e.append("polygon").attr("points",c.map(e=>`${e.x},${e.y}`).join(" ")).attr("class",`radarCurve-${n}`)})}function NRn(e,t,n,r){return r*(Math.min(Math.max(e,t),n)-t)/(n-t)}function XRn(e,t){const n=e.length;let r=`M${e[0].x},${e[0].y}`;for(let i=0;i<n;i++){const o=e[(i-1+n)%n],a=e[i],s=e[(i+1)%n],l=e[(i+2)%n],c={x:a.x+(s.x-o.x)*t,y:a.y+(s.y-o.y)*t},u={x:s.x-(l.x-a.x)*t,y:s.y-(l.y-a.y)*t};r+=` C${c.x},${c.y} ${u.x},${u.y} ${s.x},${s.y}`}return`${r} Z`}function FRn(e,t,n,r){if(!n)return;const i=3*(r.width/2+r.marginRight)/4,o=3*-(r.height/2+r.marginTop)/4;t.forEach((t,n)=>{const r=e.append("g").attr("transform",`translate(${i}, ${o+20*n})`);r.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${n}`),r.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(t.label)})}hRe(MRn,"drawCurves"),hRe(NRn,"relativeRadius"),hRe(XRn,"closedRoundCurve"),hRe(FRn,"drawLegend");var URn={draw:BRn},zRn=hRe((e,t)=>{let n="";for(let r=0;r<e.THEME_COLOR_LIMIT;r++){const i=e[`cScale${r}`];n+=`\n\t\t.radarCurve-${r} {\n\t\t\tcolor: ${i};\n\t\t\tfill: ${i};\n\t\t\tfill-opacity: ${t.curveOpacity};\n\t\t\tstroke: ${i};\n\t\t\tstroke-width: ${t.curveStrokeWidth};\n\t\t}\n\t\t.radarLegendBox-${r} {\n\t\t\tfill: ${i};\n\t\t\tfill-opacity: ${t.curveOpacity};\n\t\t\tstroke: ${i};\n\t\t}\n\t\t`}return n},"genIndexStyles"),qRn=hRe(e=>{const t=jWe(nBe(),NBe().themeVariables);return{themeVariables:t,radarOptions:jWe(t.radar,e)}},"buildRadarStyleOptions"),VRn={parser:RRn,db:PRn,renderer:URn,styles:hRe(({radar:e}={})=>{const{themeVariables:t,radarOptions:n}=qRn(e);return`\n\t.radarTitle {\n\t\tfont-size: ${t.fontSize};\n\t\tcolor: ${t.titleColor};\n\t\tdominant-baseline: hanging;\n\t\ttext-anchor: middle;\n\t}\n\t.radarAxisLine {\n\t\tstroke: ${n.axisColor};\n\t\tstroke-width: ${n.axisStrokeWidth};\n\t}\n\t.radarAxisLabel {\n\t\tfont-size: ${n.axisLabelFontSize}px;\n\t\tcolor: ${n.axisColor};\n\t}\n\t.radarGraticule {\n\t\tfill: ${n.graticuleColor};\n\t\tfill-opacity: ${n.graticuleOpacity};\n\t\tstroke: ${n.graticuleColor};\n\t\tstroke-width: ${n.graticuleStrokeWidth};\n\t}\n\t.radarLegendText {\n\t\ttext-anchor: start;\n\t\tfont-size: ${n.legendFontSize}px;\n\t\tdominant-baseline: hanging;\n\t}\n\t${zRn(t,n)}\n\t`},"styles")};const WRn=Object.freeze(Object.defineProperty({__proto__:null,diagram:VRn},Symbol.toStringTag,{value:"Module"}));var jRn=function(){var e=hRe(function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},"o"),t=[1,15],n=[1,7],r=[1,13],i=[1,14],o=[1,19],a=[1,16],s=[1,17],l=[1,18],c=[8,30],u=[8,10,21,28,29,30,31,39,43,46],h=[1,23],d=[1,24],p=[8,10,15,16,21,28,29,30,31,39,43,46],f=[8,10,15,16,21,27,28,29,30,31,39,43,46],g=[1,49],m={trace:hRe(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:hRe(function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 4:r.getLogger().debug("Rule: separator (NL) ");break;case 5:r.getLogger().debug("Rule: separator (Space) ");break;case 6:r.getLogger().debug("Rule: separator (EOF) ");break;case 7:r.getLogger().debug("Rule: hierarchy: ",o[s-1]),r.setHierarchy(o[s-1]);break;case 8:r.getLogger().debug("Stop NL ");break;case 9:r.getLogger().debug("Stop EOF ");break;case 10:r.getLogger().debug("Stop NL2 ");break;case 11:r.getLogger().debug("Stop EOF2 ");break;case 12:r.getLogger().debug("Rule: statement: ",o[s]),"number"==typeof o[s].length?this.$=o[s]:this.$=[o[s]];break;case 13:r.getLogger().debug("Rule: statement #2: ",o[s-1]),this.$=[o[s-1]].concat(o[s]);break;case 14:r.getLogger().debug("Rule: link: ",o[s],e),this.$={edgeTypeStr:o[s],label:""};break;case 15:r.getLogger().debug("Rule: LABEL link: ",o[s-3],o[s-1],o[s]),this.$={edgeTypeStr:o[s],label:o[s-1]};break;case 18:const t=parseInt(o[s]),n=r.generateId();this.$={id:n,type:"space",label:"",width:t,children:[]};break;case 23:r.getLogger().debug("Rule: (nodeStatement link node) ",o[s-2],o[s-1],o[s]," typestr: ",o[s-1].edgeTypeStr);const i=r.edgeStrToEdgeData(o[s-1].edgeTypeStr),a=r.edgeStrToEdgeStartData(o[s-1].edgeTypeStr),l=r.edgeStrToThickness(o[s-1].edgeTypeStr),c=r.edgeStrToPattern(o[s-1].edgeTypeStr);this.$=[{id:o[s-2].id,label:o[s-2].label,type:o[s-2].type,directions:o[s-2].directions},{id:o[s-2].id+"-"+o[s].id,start:o[s-2].id,end:o[s].id,label:o[s-1].label,type:"edge",thickness:l,pattern:c,directions:o[s].directions,arrowTypeEnd:i,arrowTypeStart:a},{id:o[s].id,label:o[s].label,type:r.typeStr2Type(o[s].typeStr),directions:o[s].directions}];break;case 24:r.getLogger().debug("Rule: nodeStatement (abc88 node size) ",o[s-1],o[s]),this.$={id:o[s-1].id,label:o[s-1].label,type:r.typeStr2Type(o[s-1].typeStr),directions:o[s-1].directions,widthInColumns:parseInt(o[s],10)};break;case 25:r.getLogger().debug("Rule: nodeStatement (node) ",o[s]),this.$={id:o[s].id,label:o[s].label,type:r.typeStr2Type(o[s].typeStr),directions:o[s].directions,widthInColumns:1};break;case 26:r.getLogger().debug("APA123",this?this:"na"),r.getLogger().debug("COLUMNS: ",o[s]),this.$={type:"column-setting",columns:"auto"===o[s]?-1:parseInt(o[s])};break;case 27:r.getLogger().debug("Rule: id-block statement : ",o[s-2],o[s-1]),r.generateId(),this.$={...o[s-2],type:"composite",children:o[s-1]};break;case 28:r.getLogger().debug("Rule: blockStatement : ",o[s-2],o[s-1],o[s]);const u=r.generateId();this.$={id:u,type:"composite",label:"",children:o[s-1]};break;case 29:r.getLogger().debug("Rule: node (NODE_ID separator): ",o[s]),this.$={id:o[s]};break;case 30:r.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",o[s-1],o[s]),this.$={id:o[s-1],label:o[s].label,typeStr:o[s].typeStr,directions:o[s].directions};break;case 31:r.getLogger().debug("Rule: dirList: ",o[s]),this.$=[o[s]];break;case 32:r.getLogger().debug("Rule: dirList: ",o[s-1],o[s]),this.$=[o[s-1]].concat(o[s]);break;case 33:r.getLogger().debug("Rule: nodeShapeNLabel: ",o[s-2],o[s-1],o[s]),this.$={typeStr:o[s-2]+o[s],label:o[s-1]};break;case 34:r.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",o[s-3],o[s-2]," #3:",o[s-1],o[s]),this.$={typeStr:o[s-3]+o[s],label:o[s-2],directions:o[s-1]};break;case 35:case 36:this.$={type:"classDef",id:o[s-1].trim(),css:o[s].trim()};break;case 37:this.$={type:"applyClass",id:o[s-1].trim(),styleClass:o[s].trim()};break;case 38:this.$={type:"applyStyles",id:o[s-1].trim(),stylesStr:o[s].trim()}}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:o,39:a,43:s,46:l},{8:[1,20]},e(c,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:n,28:r,29:i,31:o,39:a,43:s,46:l}),e(u,[2,16],{14:22,15:h,16:d}),e(u,[2,17]),e(u,[2,18]),e(u,[2,19]),e(u,[2,20]),e(u,[2,21]),e(u,[2,22]),e(p,[2,25],{27:[1,25]}),e(u,[2,26]),{19:26,26:12,31:o},{10:t,11:27,13:4,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:o,39:a,43:s,46:l},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(f,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(c,[2,13]),{26:35,31:o},{31:[2,14]},{17:[1,36]},e(p,[2,24]),{10:t,11:37,13:4,14:22,15:h,16:d,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:o,39:a,43:s,46:l},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(f,[2,30]),{18:[1,43]},{18:[1,44]},e(p,[2,23]),{18:[1,45]},{30:[1,46]},e(u,[2,28]),e(u,[2,35]),e(u,[2,36]),e(u,[2,37]),e(u,[2,38]),{36:[1,47]},{33:48,34:g},{15:[1,50]},e(u,[2,27]),e(f,[2,33]),{38:[1,51]},{33:52,34:g,38:[2,31]},{31:[2,15]},e(f,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:hRe(function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},"parseError"),parse:hRe(function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),h=Object.create(this.lexer),d={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d.yy[p]=this.yy[p]);h.setInput(e,d.yy),d.yy.lexer=h,d.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var f=h.yylloc;o.push(f);var g=h.options&&h.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||h.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,hRe(function(e){n.length=n.length-2*e,i.length=i.length-e,o.length=o.length-e},"popStack"),hRe(m,"lex");for(var O,A,y,v,b,x,w,k,S={};;){if(A=n[n.length-1],this.defaultActions[A]?y=this.defaultActions[A]:(null==O&&(O=m()),y=a[A]&&a[A][O]),void 0===y||!y.length||!y[0]){var T="";for(b in k=[],a[A])this.terminals_[b]&&b>2&&k.push("'"+this.terminals_[b]+"'");T=h.showPosition?"Parse error on line "+(l+1)+":\n"+h.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[O]||O)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==O?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[O]||O,line:h.yylineno,loc:f,expected:k})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+O);switch(y[0]){case 1:n.push(O),i.push(h.yytext),o.push(h.yylloc),n.push(y[1]),O=null,c=h.yyleng,s=h.yytext,l=h.yylineno,f=h.yylloc;break;case 2:if(x=this.productions_[y[1]][1],S.$=i[i.length-x],S._$={first_line:o[o.length-(x||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(x||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(x||1)].range[0],o[o.length-1].range[1]]),void 0!==(v=this.performAction.apply(S,[s,c,l,d.yy,y[1],i,o].concat(u))))return v;x&&(n=n.slice(0,-1*x*2),i=i.slice(0,-1*x),o=o.slice(0,-1*x)),n.push(this.productions_[y[1]][0]),i.push(S.$),o.push(S._$),w=a[n[n.length-2]][n[n.length-1]],n.push(w);break;case 3:return!0}}return!0},"parse")},O=function(){var e={EOF:1,parseError:hRe(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:hRe(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:hRe(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:hRe(function(e){var t=e.length,n=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 r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:hRe(function(){return this._more=!0,this},"more"),reject:hRe(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:hRe(function(e){this.unput(this.match.slice(e))},"less"),pastInput:hRe(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:hRe(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:hRe(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:hRe(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.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],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},"test_match"),next:hRe(function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&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:hRe(function(){var e=this.next();return e||this.lex()},"lex"),begin:hRe(function(e){this.conditionStack.push(e)},"begin"),popState:hRe(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:hRe(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:hRe(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:hRe(function(e){this.begin(e)},"pushState"),stateStackSize:hRe(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:hRe(function(e,t,n,r){switch(n){case 0:return e.getLogger().debug("Found block-beta"),10;case 1:return e.getLogger().debug("Found id-block"),29;case 2:return e.getLogger().debug("Found block"),10;case 3:e.getLogger().debug(".",t.yytext);break;case 4:e.getLogger().debug("_",t.yytext);break;case 5:return 5;case 6:return t.yytext=-1,28;case 7:return t.yytext=t.yytext.replace(/columns\s+/,""),e.getLogger().debug("COLUMNS (LEX)",t.yytext),28;case 8:case 76:case 77:case 99:this.pushState("md_string");break;case 9:return"MD_STR";case 10:case 34:case 79:this.popState();break;case 11:this.pushState("string");break;case 12:e.getLogger().debug("LEX: POPPING STR:",t.yytext),this.popState();break;case 13:return e.getLogger().debug("LEX: STR end:",t.yytext),"STR";case 14:return t.yytext=t.yytext.replace(/space\:/,""),e.getLogger().debug("SPACE NUM (LEX)",t.yytext),21;case 15:return t.yytext="1",e.getLogger().debug("COLUMNS (LEX)",t.yytext),21;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 21:return this.popState(),this.pushState("CLASSDEFID"),40;case 22:return this.popState(),41;case 23:return this.pushState("CLASS"),43;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;case 25:return this.popState(),45;case 26:return this.pushState("STYLE_STMNT"),46;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;case 28:return this.popState(),48;case 29:return this.pushState("acc_title"),"acc_title";case 30:return this.popState(),"acc_title_value";case 31:return this.pushState("acc_descr"),"acc_descr";case 32:return this.popState(),"acc_descr_value";case 33:this.pushState("acc_descr_multiline");break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:case 38:case 40:case 41:case 44:return this.popState(),e.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),e.getLogger().debug("Lex: ))"),"NODE_DEND";case 42:return this.popState(),e.getLogger().debug("Lex: (-"),"NODE_DEND";case 43:return this.popState(),e.getLogger().debug("Lex: -)"),"NODE_DEND";case 45:return this.popState(),e.getLogger().debug("Lex: ]]"),"NODE_DEND";case 46:return this.popState(),e.getLogger().debug("Lex: ("),"NODE_DEND";case 47:return this.popState(),e.getLogger().debug("Lex: ])"),"NODE_DEND";case 48:case 49:return this.popState(),e.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),e.getLogger().debug("Lex: )]"),"NODE_DEND";case 51:return this.popState(),e.getLogger().debug("Lex: )"),"NODE_DEND";case 52:return this.popState(),e.getLogger().debug("Lex: ]>"),"NODE_DEND";case 53:return this.popState(),e.getLogger().debug("Lex: ]"),"NODE_DEND";case 54:return e.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;case 55:return e.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;case 56:return e.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;case 57:case 59:case 60:case 61:case 64:return e.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 58:return e.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;case 62:return e.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;case 63:return e.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;case 65:case 66:case 67:case 68:case 69:case 70:case 71:return this.pushState("NODE"),35;case 72:return e.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;case 73:return this.pushState("BLOCK_ARROW"),e.getLogger().debug("LEX ARR START"),37;case 74:return e.getLogger().debug("Lex: NODE_ID",t.yytext),31;case 75:return e.getLogger().debug("Lex: EOF",t.yytext),8;case 78:return"NODE_DESCR";case 80:e.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:e.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return e.getLogger().debug("LEX: NODE_DESCR:",t.yytext),"NODE_DESCR";case 83:e.getLogger().debug("LEX POPPING"),this.popState();break;case 84:e.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (right): dir:",t.yytext),"DIR";case 86:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (left):",t.yytext),"DIR";case 87:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (x):",t.yytext),"DIR";case 88:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (y):",t.yytext),"DIR";case 89:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (up):",t.yytext),"DIR";case 90:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (down):",t.yytext),"DIR";case 91:return t.yytext="]>",e.getLogger().debug("Lex (ARROW_DIR end):",t.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 92:return e.getLogger().debug("Lex: LINK","#"+t.yytext+"#"),15;case 93:case 94:case 95:return e.getLogger().debug("Lex: LINK",t.yytext),15;case 96:case 97:case 98:return e.getLogger().debug("Lex: START_LINK",t.yytext),this.pushState("LLABEL"),16;case 100:return e.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 101:return this.popState(),e.getLogger().debug("Lex: LINK","#"+t.yytext+"#"),15;case 102:case 103:return this.popState(),e.getLogger().debug("Lex: LINK",t.yytext),15;case 104:return e.getLogger().debug("Lex: COLON",t.yytext),t.yytext=t.yytext.slice(1),27}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/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]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}};return e}();function A(){this.yy={}}return m.lexer=O,hRe(A,"Parser"),A.prototype=m,m.Parser=A,new A}();jRn.parser=jRn;var YRn=jRn,ZRn=new Map,GRn=[],HRn=new Map,KRn="color",JRn="fill",eBn=new Map,tBn="",nBn=hRe(e=>CIe.sanitizeText(e,JIe()),"sanitizeText"),rBn=hRe(function(e,t=""){let n=eBn.get(e);n||(n={id:e,styles:[],textStyles:[]},eBn.set(e,n)),null!=t&&t.split(",").forEach(e=>{const t=e.replace(/([^;]*);/,"$1").trim();if(RegExp(KRn).exec(e)){const e=t.replace(JRn,"bgFill").replace(KRn,JRn);n.textStyles.push(e)}n.styles.push(t)})},"addStyleClass"),iBn=hRe(function(e,t=""){const n=ZRn.get(e);null!=t&&(n.styles=t.split(","))},"addStyle2Node"),oBn=hRe(function(e,t){e.split(",").forEach(function(e){let n=ZRn.get(e);if(void 0===n){const t=e.trim();n={id:t,type:"na",children:[]},ZRn.set(t,n)}n.classes||(n.classes=[]),n.classes.push(t)})},"setCssClass"),aBn=hRe((e,t)=>{const n=e.flat(),r=[],i=n.find(e=>"column-setting"===(null==e?void 0:e.type)),o=(null==i?void 0:i.columns)??-1;for(const a of n)if("number"==typeof o&&o>0&&"column-setting"!==a.type&&"number"==typeof a.widthInColumns&&a.widthInColumns>o&&ORe.warn(`Block ${a.id} width ${a.widthInColumns} exceeds configured column width ${o}`),a.label&&(a.label=nBn(a.label)),"classDef"!==a.type)if("applyClass"!==a.type)if("applyStyles"!==a.type)if("column-setting"===a.type)t.columns=a.columns??-1;else if("edge"===a.type){const e=(HRn.get(a.id)??0)+1;HRn.set(a.id,e),a.id=e+"-"+a.id,GRn.push(a)}else{a.label||("composite"===a.type?a.label="":a.label=a.id);const e=ZRn.get(a.id);if(void 0===e?ZRn.set(a.id,a):("na"!==a.type&&(e.type=a.type),a.label!==a.id&&(e.label=a.label)),a.children&&aBn(a.children,a),"space"===a.type){const e=a.width??1;for(let t=0;t<e;t++){const e=lWe(a);e.id=e.id+"-"+t,ZRn.set(e.id,e),r.push(e)}}else void 0===e&&r.push(a)}else(null==a?void 0:a.stylesStr)&&iBn(a.id,null==a?void 0:a.stylesStr);else oBn(a.id,(null==a?void 0:a.styleClass)??"");else rBn(a.id,a.css);t.children=r},"populateBlockDatabase"),sBn=[],lBn={id:"root",type:"composite",children:[],columns:-1},cBn=hRe(()=>{ORe.debug("Clear called"),qIe(),lBn={id:"root",type:"composite",children:[],columns:-1},ZRn=new Map([["root",lBn]]),sBn=[],eBn=new Map,GRn=[],HRn=new Map,tBn=""},"clear");function uBn(e){switch(ORe.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return ORe.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function hBn(e){return ORe.debug("typeStr2Type",e),"=="===e?"thick":"normal"}function dBn(e){switch(e.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}function pBn(e){switch(e.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}function fBn(e){return e.includes("==")?"thick":"normal"}function gBn(e){return e.includes(".-")?"dotted":"solid"}hRe(uBn,"typeStr2Type"),hRe(hBn,"edgeTypeStr2Type"),hRe(dBn,"edgeStrToEdgeData"),hRe(pBn,"edgeStrToEdgeStartData"),hRe(fBn,"edgeStrToThickness"),hRe(gBn,"edgeStrToPattern");var mBn=0,OBn=hRe(()=>(mBn++,"id-"+Math.random().toString(36).substr(2,12)+"-"+mBn),"generateId"),ABn=hRe(e=>{lBn.children=e,aBn(e,lBn),sBn=lBn.children},"setHierarchy"),yBn=hRe(e=>{const t=ZRn.get(e);return t?t.columns?t.columns:t.children?t.children.length:-1:-1},"getColumns"),vBn=hRe(()=>[...ZRn.values()],"getBlocksFlat"),bBn=hRe(()=>sBn||[],"getBlocks"),xBn=hRe(()=>GRn,"getEdges"),wBn=hRe(e=>ZRn.get(e),"getBlock"),kBn=hRe(e=>{ZRn.set(e.id,e)},"setBlock"),SBn=hRe(e=>{tBn=e},"setDiagramId"),TBn=hRe(()=>tBn,"getDiagramId"),$Bn=hRe(()=>ORe,"getLogger"),_Bn=hRe(function(){return eBn},"getClasses"),CBn={getConfig:hRe(()=>NBe().block,"getConfig"),typeStr2Type:uBn,edgeTypeStr2Type:hBn,edgeStrToEdgeData:dBn,edgeStrToEdgeStartData:pBn,edgeStrToThickness:fBn,edgeStrToPattern:gBn,getLogger:$Bn,getBlocksFlat:vBn,getBlocks:bBn,getEdges:xBn,setHierarchy:ABn,getBlock:wBn,setBlock:kBn,getColumns:yBn,getClasses:_Bn,clear:cBn,generateId:OBn,setDiagramId:SBn,getDiagramId:TBn},QBn=hRe((e,t)=>{const n=LRe,r=n(e,"r"),i=n(e,"g"),o=n(e,"b");return IRe(r,i,o,t)},"fade"),PBn=hRe(e=>`.label {\n font-family: ${e.fontFamily};\n color: ${e.nodeTextColor||e.textColor};\n }\n .cluster-label text {\n fill: ${e.titleColor};\n }\n .cluster-label span {\n color: ${e.titleColor};\n }\n\n\n\n .label text,span {\n fill: ${e.nodeTextColor||e.textColor};\n color: ${e.nodeTextColor||e.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n stroke-width: 1px;\n }\n .flowchart-label text {\n text-anchor: middle;\n }\n // .flowchart-label .text-outer-tspan {\n // text-anchor: middle;\n // }\n // .flowchart-label .text-inner-tspan {\n // text-anchor: start;\n // }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${e.arrowheadColor};\n }\n\n .edgePaths .path {\n stroke: ${e.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${e.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${e.edgeLabelBackground};\n /*\n * This is for backward compatibility with existing code that didn't\n * add a \`<p>\` around edge labels.\n *\n * TODO: We should probably remove this in a future release.\n */\n p {\n margin: 0;\n padding: 0;\n display: inline;\n }\n rect {\n opacity: 0.5;\n background-color: ${e.edgeLabelBackground};\n fill: ${e.edgeLabelBackground};\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ${e.edgeLabelBackground};\n }\n\n .node .cluster {\n // fill: ${QBn(e.mainBkg,.5)};\n fill: ${QBn(e.clusterBkg,.5)};\n stroke: ${QBn(e.clusterBorder,.2)};\n box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${e.titleColor};\n }\n\n .cluster span {\n color: ${e.titleColor};\n }\n /* .cluster div {\n color: ${e.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${e.fontFamily};\n font-size: 12px;\n background: ${e.tertiaryColor};\n border: 1px solid ${e.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.textColor};\n }\n ${fzt()}\n`,"getStyles");function EBn(e,t){if(0===e||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(t<0||!Number.isInteger(t))throw new Error("Position must be a non-negative integer."+t);if(e<0)return{px:t,py:0};if(1===e)return{px:0,py:t};return{px:t%e,py:Math.floor(t/e)}}hRe(EBn,"calculateBlockPosition");var RBn=hRe(e=>{let t=0,n=0;for(const r of e.children){const{width:e,height:i,x:o,y:a}=r.size??{width:0,height:0,x:0,y:0};if(ORe.debug("getMaxChildSize abc95 child:",r.id,"width:",e,"height:",i,"x:",o,"y:",a,r.type),"space"===r.type)continue;const s=e/(r.widthInColumns??1);s>t&&(t=s),i>n&&(n=i)}return{width:t,height:n}},"getMaxChildSize");function BBn(e,t,n=0,r=0,i=8){var o,a,s,l,c,u,h,d,p,f,g;ORe.debug("setBlockSizes abc95 (start)",e.id,null==(o=null==e?void 0:e.size)?void 0:o.x,"block width =",null==e?void 0:e.size,"siblingWidth",n),(null==(a=null==e?void 0:e.size)?void 0:a.width)||(e.size={width:n,height:r,x:0,y:0});let m=0,O=0;if((null==(s=e.children)?void 0:s.length)>0){for(const n of e.children)BBn(n,t,0,0,i);const o=RBn(e);m=o.width,O=o.height,ORe.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",m,O);for(const t of e.children)t.size&&(ORe.debug(`abc95 Setting size of children of ${e.id} id=${t.id} ${m} ${O} ${JSON.stringify(t.size)}`),t.size.width=m*(t.widthInColumns??1)+i*((t.widthInColumns??1)-1),t.size.height=O,t.size.x=0,t.size.y=0,ORe.debug(`abc95 updating size of ${e.id} children child:${t.id} maxWidth:${m} maxHeight:${O}`));for(const n of e.children)BBn(n,t,m,O,i);const a=e.columns??-1;let s=0;for(const t of e.children)s+=t.widthInColumns??1;let d=e.children.length;a>0&&a<s&&(d=a);const p=Math.ceil(s/d);let f=d*(m+i)+i,g=p*(O+i)+i;if(f<n){ORe.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${n} siblingHeight ${r} width ${f}`),f=n,g=r;const t=(n-d*i-i)/d,o=(r-p*i-i)/p;ORe.debug("Size indata abc88",e.id,"childWidth",t,"maxWidth",m),ORe.debug("Size indata abc88",e.id,"childHeight",o,"maxHeight",O),ORe.debug("Size indata abc88 xSize",d,"padding",i);for(const n of e.children)n.size&&(n.size.width=t,n.size.height=o,n.size.x=0,n.size.y=0)}if(ORe.debug(`abc95 (finale calc) ${e.id} xSize ${d} ySize ${p} columns ${a}${e.children.length} width=${Math.max(f,(null==(l=e.size)?void 0:l.width)||0)}`),f<((null==(c=null==e?void 0:e.size)?void 0:c.width)||0)){f=(null==(u=null==e?void 0:e.size)?void 0:u.width)||0;const t=a>0?Math.min(e.children.length,a):e.children.length;if(t>0){const n=(f-t*i-i)/t;ORe.debug("abc95 (growing to fit) width",e.id,f,null==(h=e.size)?void 0:h.width,n);for(const t of e.children)t.size&&(t.size.width=n)}}e.size={width:f,height:g,x:0,y:0}}ORe.debug("setBlockSizes abc94 (done)",e.id,null==(d=null==e?void 0:e.size)?void 0:d.x,null==(p=null==e?void 0:e.size)?void 0:p.width,null==(f=null==e?void 0:e.size)?void 0:f.y,null==(g=null==e?void 0:e.size)?void 0:g.height)}function IBn(e,t,n=8){var r,i,o,a,s,l,c,u,h,d,p,f,g,m,O,A,y;ORe.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${null==(r=null==e?void 0:e.size)?void 0:r.x} y: ${null==(i=null==e?void 0:e.size)?void 0:i.y} width: ${null==(o=null==e?void 0:e.size)?void 0:o.width}`);const v=e.columns??-1;if(ORe.debug("layoutBlocks columns abc95",e.id,"=>",v,e),e.children&&e.children.length>0){const r=(null==(s=null==(a=null==e?void 0:e.children[0])?void 0:a.size)?void 0:s.width)??0,i=e.children.length*r+(e.children.length-1)*n;ORe.debug("widthOfChildren 88",i,"posX");const o=new Map;{let t=0;for(const n of e.children){if(!n.size)continue;const{py:e}=EBn(v,t),r=o.get(e)??0;n.size.height>r&&o.set(e,n.size.height);let i=(null==n?void 0:n.widthInColumns)??1;v>0&&(i=Math.min(i,v-t%v)),t+=i}}const O=new Map;{let e=0;const t=[...o.keys()].sort((e,t)=>e-t);for(const r of t)O.set(r,e),e+=(o.get(r)??0)+n}let A=0;ORe.debug("abc91 block?.size?.x",e.id,null==(l=null==e?void 0:e.size)?void 0:l.x);let y=(null==(c=null==e?void 0:e.size)?void 0:c.x)?(null==(u=null==e?void 0:e.size)?void 0:u.x)+(-(null==(h=null==e?void 0:e.size)?void 0:h.width)/2||0):-n,b=0;for(const a of e.children){const r=e;if(!a.size)continue;const{width:i,height:s}=a.size,{px:l,py:c}=EBn(v,A);if(c!=b&&(b=c,y=(null==(d=null==e?void 0:e.size)?void 0:d.x)?(null==(p=null==e?void 0:e.size)?void 0:p.x)+(-(null==(f=null==e?void 0:e.size)?void 0:f.width)/2||0):-n,ORe.debug("New row in layout for block",e.id," and child ",a.id,b)),ORe.debug(`abc89 layout blocks (child) id: ${a.id} Pos: ${A} (px, py) ${l},${c} (${null==(g=null==r?void 0:r.size)?void 0:g.x},${null==(m=null==r?void 0:r.size)?void 0:m.y}) parent: ${r.id} width: ${i}${n}`),r.size){const e=i/2;a.size.x=y+n+e,ORe.debug(`abc91 layout blocks (calc) px, pyid:${a.id} startingPos=X${y} new startingPosX${a.size.x} ${e} padding=${n} width=${i} halfWidth=${e} => x:${a.size.x} y:${a.size.y} ${a.widthInColumns} (width * (child?.w || 1)) / 2 ${i*((null==a?void 0:a.widthInColumns)??1)/2}`),y=a.size.x+e;const t=O.get(c)??0,l=o.get(c)??s;a.size.y=r.size.y-r.size.height/2+t+l/2+n,ORe.debug(`abc88 layout blocks (calc) px, pyid:${a.id}startingPosX${y}${n}${e}=>x:${a.size.x}y:${a.size.y}${a.widthInColumns}(width * (child?.w || 1)) / 2${i*((null==a?void 0:a.widthInColumns)??1)/2}`)}a.children&&IBn(a,t,n);let u=(null==a?void 0:a.widthInColumns)??1;v>0&&(u=Math.min(u,v-A%v)),A+=u,ORe.debug("abc88 columnsPos",a,A)}}ORe.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${null==(O=null==e?void 0:e.size)?void 0:O.x} y: ${null==(A=null==e?void 0:e.size)?void 0:A.y} width: ${null==(y=null==e?void 0:e.size)?void 0:y.width}`)}function LBn(e,{minX:t,minY:n,maxX:r,maxY:i}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&"root"!==e.id){const{x:o,y:a,width:s,height:l}=e.size;o-s/2<t&&(t=o-s/2),a-l/2<n&&(n=a-l/2),o+s/2>r&&(r=o+s/2),a+l/2>i&&(i=a+l/2)}if(e.children)for(const o of e.children)({minX:t,minY:n,maxX:r,maxY:i}=LBn(o,{minX:t,minY:n,maxX:r,maxY:i}));return{minX:t,minY:n,maxX:r,maxY:i}}function DBn(e){var t,n;const r=e.getBlock("root");if(!r)return;const i=(null==(n=null==(t=JIe())?void 0:t.block)?void 0:n.padding)??8;BBn(r,e,0,0,i),IBn(r,e,i),ORe.debug("getBlocks",JSON.stringify(r,null,2));const{minX:o,minY:a,maxX:s,maxY:l}=LBn(r);return{x:o,y:a,width:s-o,height:l-a}}function MBn(e,t,n=!1){var r,i,o;const a=e;let s="default";((null==(r=null==a?void 0:a.classes)?void 0:r.length)||0)>0&&(s=((null==a?void 0:a.classes)??[]).join(" ")),s+=" flowchart-label";const l=((null==a?void 0:a.classes)??[]).flatMap(e=>{var n;return(null==(n=t.getClasses().get(e))?void 0:n.styles)??[]});let c,u=0,h="rect";switch(a.type){case"round":u=5,h="rect";break;case"composite":u=0,h="composite",c=0;break;case"square":case"group":default:h="rect";break;case"diamond":h="question";break;case"hexagon":h="hexagon";break;case"block_arrow":h="block_arrow";break;case"odd":case"rect_left_inv_arrow":h="rect_left_inv_arrow";break;case"lean_right":h="lean_right";break;case"lean_left":h="lean_left";break;case"trapezoid":h="trapezoid";break;case"inv_trapezoid":h="inv_trapezoid";break;case"circle":h="circle";break;case"ellipse":h="ellipse";break;case"stadium":h="stadium";break;case"subroutine":h="subroutine";break;case"cylinder":h="cylinder";break;case"doublecircle":h="doublecircle"}const d=CWe((null==a?void 0:a.styles)??[]),p=a.label,f=a.size??{width:0,height:0,x:0,y:0},g=t.getDiagramId();return{labelStyle:d.labelStyle,shape:h,label:p,labelText:p,rx:u,ry:u,class:s,cssClasses:s,cssStyles:(null==a?void 0:a.styles)??[],cssCompiledStyles:l,style:d.style,id:a.id,domId:g?`${g}-${a.id}`:a.id,isGroup:!1,directions:a.directions,width:f.width||void 0,height:f.height||void 0,wrappingWidth:f.width||Number.POSITIVE_INFINITY,x:f.x,y:f.y,positioned:n,intersect:void 0,padding:c??(null==(o=null==(i=NBe())?void 0:i.block)?void 0:o.padding)??0,widthInColumns:a.widthInColumns??1}}async function NBn(e,t,n){var r;const i=MBn(t,n,!1);if("group"===t.type)return;const o=NBe(),a=await kKe(e,i,{config:o}),s=(null==(r=a.node())?void 0:r.getBBox())??{width:0,height:0},l=n.getBlock(i.id);l.size={width:s.width,height:s.height,x:0,y:0,node:a},n.setBlock(l),a.remove()}async function XBn(e,t,n){const r=MBn(t,n,!0);if("space"!==n.getBlock(r.id).type){const n=NBe();await kKe(e,r,{config:n}),t.intersect=null==r?void 0:r.intersect,$Ke(r)}}async function FBn(e,t,n,r){for(const i of t)await r(e,i,n),i.children&&await FBn(e,i.children,n,r)}async function UBn(e,t,n){await FBn(e,t,n,NBn)}async function zBn(e,t,n){await FBn(e,t,n,XBn)}async function qBn(e,t,n,r,i){const o=new MJe({multigraph:!0,compound:!0});o.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const a of n)a.size&&o.setNode(a.id,{width:a.size.width,height:a.size.height,intersect:a.intersect});for(const a of t)if(a.start&&a.end){const t=r.getBlock(a.start),n=r.getBlock(a.end);if((null==t?void 0:t.size)&&(null==n?void 0:n.size)){const r=t.size,s=n.size,l=[{x:r.x,y:r.y},{x:r.x+(s.x-r.x)/2,y:r.y+(s.y-r.y)/2},{x:s.x,y:s.y}],c=i?`${i}-${a.id}`:a.id,u=`${"thick"===a.thickness?"edge-thickness-thick":"edge-thickness-normal"} ${"dotted"===a.pattern?"edge-pattern-dotted":"edge-pattern-solid"} flowchart-link LS-a1 LE-b1`;uJe(e,{...a,id:c,arrowTypeEnd:a.arrowTypeEnd,arrowTypeStart:a.arrowTypeStart,points:l,classes:u},{},"block",o.node(a.start),o.node(a.end),i),a.label&&(await JKe(e,{...a,label:a.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:a.arrowTypeEnd,arrowTypeStart:a.arrowTypeStart,points:l,classes:u}),tJe({...a,x:l[1].x,y:l[1].y},{originalPath:l}))}}}hRe(BBn,"setBlockSizes"),hRe(IBn,"layoutBlocks"),hRe(LBn,"findBounds"),hRe(DBn,"layout"),hRe(MBn,"getNodeFromBlock"),hRe(NBn,"calculateBlockSize"),hRe(XBn,"insertBlockPositioned"),hRe(FBn,"performOperations"),hRe(UBn,"calculateBlockSizes"),hRe(zBn,"insertBlocks"),hRe(qBn,"insertEdges");var VBn=hRe(function(e,t){return t.db.getClasses()},"getClasses"),WBn={parser:YRn,db:CBn,renderer:{draw:hRe(async function(e,t,n,r){var i;const{securityLevel:o,block:a}=NBe(),s=r.db;let l;s.setDiagramId(t),"sandbox"===o&&(l=GDe("#i"+t));const c=GDe("sandbox"===o?l.nodes()[0].contentDocument.body:"body"),u="sandbox"===o?c.select(`[id="${t}"]`):GDe(`[id="${t}"]`);LJe(u,["point","circle","cross"],r.type,t);const h=s.getBlocks(),d=s.getBlocksFlat(),p=s.getEdges(),f=u.insert("g").attr("class","block");await UBn(f,h,s);const g=DBn(s);await zBn(f,h,s),await qBn(f,p,d,s,t);const m=null==(i=f.node())?void 0:i.getBBox(),O=m&&Number.isFinite(m.width)&&Number.isFinite(m.height)?m:g;if(O){const e=Math.max(1,Math.round(O.width/O.height*.125)),t=O.height+e+10,n=O.width+10,{useMaxWidth:r}=a;EIe(u,t,n,!!r),ORe.debug("Here Bounds",g,O),u.attr("viewBox",`${O.x-5} ${O.y-5} ${O.width+10} ${O.height+10}`)}},"draw"),getClasses:VBn},styles:PBn};const jBn=Object.freeze(Object.defineProperty({__proto__:null,diagram:WBn},Symbol.toStringTag,{value:"Module"}));var YBn=/[─━│┃└┗├┣]/,ZBn=/[└┗├┣]/,GBn=/[─━]/,HBn=/^[\s│┃]+$/,KBn=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,JBn=/^\s*%%/;function eIn(e){return e.some(e=>YBn.test(e))}function tIn(e){for(const t of e){const e=ZBn.exec(t);if((null==e?void 0:e.index)&&e.index>0)return e.index}return 4}function nIn(e,t){return e.replace(/\bline\s+(\d+)\b/gi,(e,n)=>{const r=parseInt(n,10),i=t.get(r);return i?`line ${i}`:e})}function rIn(e){const t=e.split("\n"),n=new Map;let r=-1;for(const[l,c]of t.entries())if("treeView-beta"===c.trim()){r=l;break}if(-1===r)return{text:e,lineMap:n};const i=[];for(let l=r+1;l<t.length;l++){const e=t[l];""===e.trim()||JBn.test(e)||KBn.test(e)||(HBn.test(e)||i.push(e.replace(/\t/g," ")))}if(!eIn(i))return{text:e,lineMap:n};const o=tIn(i),a=[];let s=0;for(let l=0;l<=r;l++)a.push(t[l]),s++,n.set(s,l+1);for(let l=r+1;l<t.length;l++){const e=t[l],r=l+1;if(""===e.trim()){a.push(e),s++,n.set(s,r);continue}if(JBn.test(e)){a.push(e),s++,n.set(s,r);continue}if(KBn.test(e)){a.push(e),s++,n.set(s,r);continue}if(HBn.test(e))continue;const i=e.replace(/\t/g," "),c=ZBn.exec(i);if(void 0!==(null==c?void 0:c.index)){const e=c.index,t=Math.round(e/o)+1;let l=e+1;for(;l<i.length&&GBn.test(i[l]);)l++;for(;l<i.length&&" "===i[l];)l++;const u=i.slice(l).trimEnd();if(!u)throw new Error(`Line ${r}: Empty node — expected a filename or directory name after the box-drawing prefix`);const h=" ".repeat(t);a.push(h+u),s++,n.set(s,r)}else{if(/^[\s─━│┃└┗├┣]+$/.test(i))continue;if(YBn.test(i))a.push(e),s++,n.set(s,r);else{if(/^\s+/.test(i))throw new Error(`Line ${r}: Unexpected indentation without box-drawing characters. In box-drawing format, use ├── or └── prefixes for indented nodes.`);a.push(e),s++,n.set(s,r)}}}return{text:a.join("\n"),lineMap:n}}hRe(eIn,"isBoxDrawingFormat"),hRe(tIn,"inferSegmentWidth"),hRe(nIn,"remapErrorLines"),hRe(rIn,"preprocessBoxDrawing");var iIn=new zzt(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),oIn=hRe(()=>{iIn.reset(),qIe()},"clear"),aIn=hRe(()=>iIn.records.stack[0],"getRoot"),sIn=hRe(()=>iIn.records.cnt,"getCount"),lIn=wBe.treeView,cIn=hRe(()=>jWe(lIn,NBe().treeView),"getConfig"),uIn={clear:oIn,addNode:hRe((e,t,n,r,i,o)=>{for(;e<=iIn.records.stack[iIn.records.stack.length-1].level;)iIn.records.stack.pop();const a={id:iIn.records.cnt++,level:e,name:t,nodeType:n,icon:i,cssClass:r,description:o,children:[]};iIn.records.stack[iIn.records.stack.length-1].children.push(a),iIn.records.stack.push(a)},"addNode"),getRoot:aIn,getCount:sIn,getConfig:cIn,getAccTitle:WIe,getAccDescription:YIe,getDiagramTitle:GIe,setAccDescription:jIe,setAccTitle:VIe,setDiagramTitle:ZIe},hIn=hRe(e=>{qzt(e,uIn);for(const t of e.nodes){const e="number"==typeof t.indent?t.indent:0;let n=t.name;const r=n.endsWith("/");r&&(n=n.slice(0,-1));const i=r?"directory":"file",o=t.classAnnotation||void 0,a=t.iconAnnotation,s=void 0!==a?a||"none":void 0,l=t.descAnnotation||void 0,c=l?uIe(l,NBe()):void 0;uIn.addNode(e,n,i,o,s,c)}},"populate"),dIn={parse:hRe(async e=>{const{text:t,lineMap:n}=rIn(e);try{const e=await gbn("treeView",t);ORe.debug(e),hIn(e)}catch(r){throw n.size>0&&r instanceof Error&&(r.message=nIn(r.message,n)),r}},"parse")},pIn={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function fIn(e,t){var n;const r=null==(n=null==t?void 0:t.filenameIcons)?void 0:n[e];if(r)return r;const i=e.lastIndexOf(".");if(i>0){const n=e.substring(i).toLowerCase(),r=null==t?void 0:t.extensionIcons;return(null==r?void 0:r[n])??(null==r?void 0:r[n.slice(1)])}}function gIn(e,t){return e.includes(":")?e:e in pIn.icons||!t?`${pIn.prefix}:${e}`:`${t}:${e}`}function mIn(e,t){if("none"!==e.icon){if(e.icon)return gIn(e.icon,t.defaultIconPack);if(t.showIcons){if("file"===e.nodeType){const n=fIn(e.name,t);if("none"===n)return;if(n)return gIn(n,t.defaultIconPack)}return`${pIn.prefix}:${"directory"===e.nodeType?"folder":"file"}`}}}hRe(fIn,"detectIcon"),hRe(gIn,"qualifyIcon"),hRe(mIn,"getNodeIcon"),fVe([{name:pIn.prefix,icons:pIn}]);var OIn=hRe(async(e,t)=>{const n=[],r=hRe(e=>{const i=mIn(e,t);i&&n.push({icon:i,node:e}),e.children.forEach(r)},"collect");r(e);const i=await Promise.all(n.map(async({icon:e,node:t})=>({id:t.id,svg:await OVe(e,{height:14,width:14})})));return new Map(i.map(({id:e,svg:t})=>[e,t]))},"resolveNodeIcons"),AIn=hRe((e,t,n,r,i,o)=>{var a;const s=r.append("g");let l="treeView-node-label";"directory"===n.nodeType&&(l+=" treeView-node-dir"),n.cssClass&&(l+=` ${n.cssClass}`);const c=mIn(n,i),u=void 0!==c;c&&s.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${e+i.paddingX}, ${t+i.paddingY})`).html(o.get(n.id)??"");const h=s.append("text").text(n.name).attr("dominant-baseline","middle").attr("class",l),{height:d,width:p}=h.node().getBBox(),f=d+2*i.paddingY,g=e+i.paddingX+(u?18:0);h.attr("x",g),h.attr("y",t+f/2);const m=g+p,O=p+2*i.paddingX+(u?18:0);return n.BBox={x:e,y:t,width:O,height:f},(null==(a=n.cssClass)?void 0:a.split(/\s+/).includes("highlight"))&&s.insert("rect",":first-child").attr("x",e).attr("y",t+1).attr("width",0).attr("height",f-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:n,nodeGroup:s,labelRightEdge:m,centerY:t+f/2}},"positionLabel"),yIn=hRe((e,t,n,r,i,o)=>e.append("line").attr("x1",t).attr("y1",n).attr("x2",r).attr("y2",i).attr("stroke-width",o).attr("class","treeView-node-line"),"positionLine"),vIn=hRe((e,t,n,r)=>{var i;let o=0,a=0;const s=[],l=hRe((e,t,n,i)=>{const l=i*(n.rowIndent+n.paddingX),c=AIn(l,o,t,e,n,r);s.push(c);const{height:u,width:h}=t.BBox;yIn(e,l-n.rowIndent,o+u/2,l,o+u/2,n.lineThickness),a=Math.max(a,l+h),o+=u},"drawNode"),c=hRe((t,r=0)=>{l(e,t,n,r),t.children.forEach(e=>{c(e,r+1)});const{x:i,y:o,height:a}=t.BBox;if(t.children.length){const{y:r,height:s}=t.children[t.children.length-1].BBox;yIn(e,i+n.paddingX,o+a,i+n.paddingX,r+s/2+n.lineThickness/2,n.lineThickness)}},"processNode");c(t);const u=s.filter(e=>e.node.description);if(u.length>0){const e=Math.max(...s.map(e=>e.labelRightEdge))+16;for(const t of u){const r=t.nodeGroup.append("text").text(t.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",e).attr("y",t.centerY).node().getBBox();a=Math.max(a,e+r.width+n.paddingX)}}for(const h of s)if(null==(i=h.node.cssClass)?void 0:i.split(/\s+/).includes("highlight")){const e=h.nodeGroup.select(".treeView-highlight-bg");if(!e.empty()){const t=a-h.node.BBox.x+8;e.attr("width",t),a=Math.max(a,h.node.BBox.x+t+2)}}return{totalHeight:o,totalWidth:a}},"drawTree"),bIn={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},xIn={db:uIn,renderer:{draw:hRe(async(e,t,n,r)=>{ORe.debug("Rendering treeView diagram\n"+e);const i=r.db,o=i.getRoot(),a=i.getConfig(),s=Mqe(t),l=s.append("g");l.attr("class","tree-view");const c=await OIn(o,a),{totalHeight:u,totalWidth:h}=vIn(l,o,a,c);s.attr("viewBox",`-${a.lineThickness/2} 0 ${h} ${u}`),EIe(s,u,h,a.useMaxWidth)},"draw")},parser:dIn,styles:hRe(({treeView:e})=>{const{labelFontSize:t,labelColor:n,lineColor:r,iconColor:i,descriptionColor:o,highlightBg:a,highlightStroke:s}=jWe(bIn,e);return`\n .treeView-node-label {\n font-size: ${t};\n fill: ${n};\n white-space: pre;\n }\n .treeView-node-dir {\n font-weight: bold;\n }\n .treeView-node-line {\n stroke: ${r};\n }\n .treeView-node-icon {\n color: ${i};\n }\n .treeView-node-description {\n font-size: ${t};\n fill: ${o};\n font-style: italic;\n white-space: pre;\n }\n .treeView-highlight-bg {\n fill: ${a};\n stroke: ${s};\n stroke-width: 1;\n }\n `},"styles")};const wIn=Object.freeze(Object.defineProperty({__proto__:null,diagram:xIn},Symbol.toStringTag,{value:"Module"}));var kIn,SIn={exports:{}},TIn={exports:{}},$In={exports:{}};function _In(){return kIn||(kIn=1,function(e){!function(t,n){e.exports=n()}(0,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=28)}([function(e,t,n){function r(){}r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,e.exports=r},function(e,t,n){var r=n(2),i=n(8),o=n(9);function a(e,t,n){r.call(this,n),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=n,this.bendpoints=[],this.source=e,this.target=t}for(var s in a.prototype=Object.create(r.prototype),r)a[s]=r[s];a.prototype.getSource=function(){return this.source},a.prototype.getTarget=function(){return this.target},a.prototype.isInterGraph=function(){return this.isInterGraph},a.prototype.getLength=function(){return this.length},a.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},a.prototype.getBendpoints=function(){return this.bendpoints},a.prototype.getLca=function(){return this.lca},a.prototype.getSourceInLca=function(){return this.sourceInLca},a.prototype.getTargetInLca=function(){return this.targetInLca},a.prototype.getOtherEnd=function(e){if(this.source===e)return this.target;if(this.target===e)return this.source;throw"Node is not incident with this edge"},a.prototype.getOtherEndInGraph=function(e,t){for(var n=this.getOtherEnd(e),r=t.getGraphManager().getRoot();;){if(n.getOwner()==t)return n;if(n.getOwner()==r)break;n=n.getOwner().getParent()}return null},a.prototype.updateLength=function(){var e=new Array(4);this.isOverlapingSourceAndTarget=i.getIntersection(this.target.getRect(),this.source.getRect(),e),this.isOverlapingSourceAndTarget||(this.lengthX=e[0]-e[2],this.lengthY=e[1]-e[3],Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},a.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},e.exports=a},function(e,t,n){e.exports=function(e){this.vGraphObject=e}},function(e,t,n){var r=n(2),i=n(10),o=n(13),a=n(0),s=n(16),l=n(5);function c(e,t,n,a){null==n&&null==a&&(a=t),r.call(this,a),null!=e.graphManager&&(e=e.graphManager),this.estimatedSize=i.MIN_VALUE,this.inclusionTreeDepth=i.MAX_VALUE,this.vGraphObject=a,this.edges=[],this.graphManager=e,this.rect=null!=n&&null!=t?new o(t.x,t.y,n.width,n.height):new o}for(var u in c.prototype=Object.create(r.prototype),r)c[u]=r[u];c.prototype.getEdges=function(){return this.edges},c.prototype.getChild=function(){return this.child},c.prototype.getOwner=function(){return this.owner},c.prototype.getWidth=function(){return this.rect.width},c.prototype.setWidth=function(e){this.rect.width=e},c.prototype.getHeight=function(){return this.rect.height},c.prototype.setHeight=function(e){this.rect.height=e},c.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},c.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},c.prototype.getCenter=function(){return new l(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},c.prototype.getLocation=function(){return new l(this.rect.x,this.rect.y)},c.prototype.getRect=function(){return this.rect},c.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},c.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},c.prototype.setRect=function(e,t){this.rect.x=e.x,this.rect.y=e.y,this.rect.width=t.width,this.rect.height=t.height},c.prototype.setCenter=function(e,t){this.rect.x=e-this.rect.width/2,this.rect.y=t-this.rect.height/2},c.prototype.setLocation=function(e,t){this.rect.x=e,this.rect.y=t},c.prototype.moveBy=function(e,t){this.rect.x+=e,this.rect.y+=t},c.prototype.getEdgeListToNode=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.target==e){if(r.source!=n)throw"Incorrect edge source!";t.push(r)}}),t},c.prototype.getEdgesBetween=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.source!=n&&r.target!=n)throw"Incorrect edge source and/or target";r.target!=e&&r.source!=e||t.push(r)}),t},c.prototype.getNeighborsList=function(){var e=new Set,t=this;return t.edges.forEach(function(n){if(n.source==t)e.add(n.target);else{if(n.target!=t)throw"Incorrect incidency!";e.add(n.source)}}),e},c.prototype.withChildren=function(){var e=new Set;if(e.add(this),null!=this.child)for(var t=this.child.getNodes(),n=0;n<t.length;n++)t[n].withChildren().forEach(function(t){e.add(t)});return e},c.prototype.getNoOfChildren=function(){var e=0;if(null==this.child)e=1;else for(var t=this.child.getNodes(),n=0;n<t.length;n++)e+=t[n].getNoOfChildren();return 0==e&&(e=1),e},c.prototype.getEstimatedSize=function(){if(this.estimatedSize==i.MIN_VALUE)throw"assert failed";return this.estimatedSize},c.prototype.calcEstimatedSize=function(){return null==this.child?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},c.prototype.scatter=function(){var e,t,n=-a.INITIAL_WORLD_BOUNDARY,r=a.INITIAL_WORLD_BOUNDARY;e=a.WORLD_CENTER_X+s.nextDouble()*(r-n)+n;var i=-a.INITIAL_WORLD_BOUNDARY,o=a.INITIAL_WORLD_BOUNDARY;t=a.WORLD_CENTER_Y+s.nextDouble()*(o-i)+i,this.rect.x=e,this.rect.y=t},c.prototype.updateBounds=function(){if(null==this.getChild())throw"assert failed";if(0!=this.getChild().getNodes().length){var e=this.getChild();if(e.updateBounds(!0),this.rect.x=e.getLeft(),this.rect.y=e.getTop(),this.setWidth(e.getRight()-e.getLeft()),this.setHeight(e.getBottom()-e.getTop()),a.NODE_DIMENSIONS_INCLUDE_LABELS){var t=e.getRight()-e.getLeft(),n=e.getBottom()-e.getTop();this.labelWidth&&("left"==this.labelPosHorizontal?(this.rect.x-=this.labelWidth,this.setWidth(t+this.labelWidth)):"center"==this.labelPosHorizontal&&this.labelWidth>t?(this.rect.x-=(this.labelWidth-t)/2,this.setWidth(this.labelWidth)):"right"==this.labelPosHorizontal&&this.setWidth(t+this.labelWidth)),this.labelHeight&&("top"==this.labelPosVertical?(this.rect.y-=this.labelHeight,this.setHeight(n+this.labelHeight)):"center"==this.labelPosVertical&&this.labelHeight>n?(this.rect.y-=(this.labelHeight-n)/2,this.setHeight(this.labelHeight)):"bottom"==this.labelPosVertical&&this.setHeight(n+this.labelHeight))}}},c.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==i.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},c.prototype.transform=function(e){var t=this.rect.x;t>a.WORLD_BOUNDARY?t=a.WORLD_BOUNDARY:t<-a.WORLD_BOUNDARY&&(t=-a.WORLD_BOUNDARY);var n=this.rect.y;n>a.WORLD_BOUNDARY?n=a.WORLD_BOUNDARY:n<-a.WORLD_BOUNDARY&&(n=-a.WORLD_BOUNDARY);var r=new l(t,n),i=e.inverseTransformPoint(r);this.setLocation(i.x,i.y)},c.prototype.getLeft=function(){return this.rect.x},c.prototype.getRight=function(){return this.rect.x+this.rect.width},c.prototype.getTop=function(){return this.rect.y},c.prototype.getBottom=function(){return this.rect.y+this.rect.height},c.prototype.getParent=function(){return null==this.owner?null:this.owner.getParent()},e.exports=c},function(e,t,n){var r=n(0);function i(){}for(var o in r)i[o]=r[o];i.MAX_ITERATIONS=2500,i.DEFAULT_EDGE_LENGTH=50,i.DEFAULT_SPRING_STRENGTH=.45,i.DEFAULT_REPULSION_STRENGTH=4500,i.DEFAULT_GRAVITY_STRENGTH=.4,i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,i.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,i.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,i.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,i.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,i.COOLING_ADAPTATION_FACTOR=.33,i.ADAPTATION_LOWER_NODE_LIMIT=1e3,i.ADAPTATION_UPPER_NODE_LIMIT=5e3,i.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,i.MAX_NODE_DISPLACEMENT=3*i.MAX_NODE_DISPLACEMENT_INCREMENTAL,i.MIN_REPULSION_DIST=i.DEFAULT_EDGE_LENGTH/10,i.CONVERGENCE_CHECK_PERIOD=100,i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,i.MIN_EDGE_LENGTH=1,i.GRID_CALCULATION_CHECK_PERIOD=10,e.exports=i},function(e,t,n){function r(e,t){null==e&&null==t?(this.x=0,this.y=0):(this.x=e,this.y=t)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(e){this.x=e},r.prototype.setY=function(e){this.y=e},r.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},e.exports=r},function(e,t,n){var r=n(2),i=n(10),o=n(0),a=n(7),s=n(3),l=n(1),c=n(13),u=n(12),h=n(11);function d(e,t,n){r.call(this,n),this.estimatedSize=i.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=e,null!=t&&t instanceof a?this.graphManager=t:null!=t&&t instanceof Layout&&(this.graphManager=t.graphManager)}for(var p in d.prototype=Object.create(r.prototype),r)d[p]=r[p];d.prototype.getNodes=function(){return this.nodes},d.prototype.getEdges=function(){return this.edges},d.prototype.getGraphManager=function(){return this.graphManager},d.prototype.getParent=function(){return this.parent},d.prototype.getLeft=function(){return this.left},d.prototype.getRight=function(){return this.right},d.prototype.getTop=function(){return this.top},d.prototype.getBottom=function(){return this.bottom},d.prototype.isConnected=function(){return this.isConnected},d.prototype.add=function(e,t,n){if(null==t&&null==n){var r=e;if(null==this.graphManager)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(r)>-1)throw"Node already in graph!";return r.owner=this,this.getNodes().push(r),r}var i=e;if(!(this.getNodes().indexOf(t)>-1&&this.getNodes().indexOf(n)>-1))throw"Source or target not in graph!";if(t.owner!=n.owner||t.owner!=this)throw"Both owners must be this graph!";return t.owner!=n.owner?null:(i.source=t,i.target=n,i.isInterGraph=!1,this.getEdges().push(i),t.edges.push(i),n!=t&&n.edges.push(i),i)},d.prototype.remove=function(e){var t=e;if(e instanceof s){if(null==t)throw"Node is null!";if(null==t.owner||t.owner!=this)throw"Owner graph is invalid!";if(null==this.graphManager)throw"Owner graph manager is invalid!";for(var n=t.edges.slice(),r=n.length,i=0;i<r;i++)(o=n[i]).isInterGraph?this.graphManager.remove(o):o.source.owner.remove(o);if(-1==(a=this.nodes.indexOf(t)))throw"Node not in owner node list!";this.nodes.splice(a,1)}else if(e instanceof l){var o;if(null==(o=e))throw"Edge is null!";if(null==o.source||null==o.target)throw"Source and/or target is null!";if(null==o.source.owner||null==o.target.owner||o.source.owner!=this||o.target.owner!=this)throw"Source and/or target owner is invalid!";var a,c=o.source.edges.indexOf(o),u=o.target.edges.indexOf(o);if(!(c>-1&&u>-1))throw"Source and/or target doesn't know this edge!";if(o.source.edges.splice(c,1),o.target!=o.source&&o.target.edges.splice(u,1),-1==(a=o.source.owner.getEdges().indexOf(o)))throw"Not in owner's edge list!";o.source.owner.getEdges().splice(a,1)}},d.prototype.updateLeftTop=function(){for(var e,t,n,r=i.MAX_VALUE,o=i.MAX_VALUE,a=this.getNodes(),s=a.length,l=0;l<s;l++){var c=a[l];r>(e=c.getTop())&&(r=e),o>(t=c.getLeft())&&(o=t)}return r==i.MAX_VALUE?null:(n=null!=a[0].getParent().paddingLeft?a[0].getParent().paddingLeft:this.margin,this.left=o-n,this.top=r-n,new u(this.left,this.top))},d.prototype.updateBounds=function(e){for(var t,n,r,o,a,s=i.MAX_VALUE,l=-i.MAX_VALUE,u=i.MAX_VALUE,h=-i.MAX_VALUE,d=this.nodes,p=d.length,f=0;f<p;f++){var g=d[f];e&&null!=g.child&&g.updateBounds(),s>(t=g.getLeft())&&(s=t),l<(n=g.getRight())&&(l=n),u>(r=g.getTop())&&(u=r),h<(o=g.getBottom())&&(h=o)}var m=new c(s,u,l-s,h-u);s==i.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),a=null!=d[0].getParent().paddingLeft?d[0].getParent().paddingLeft:this.margin,this.left=m.x-a,this.right=m.x+m.width+a,this.top=m.y-a,this.bottom=m.y+m.height+a},d.calculateBounds=function(e){for(var t,n,r,o,a=i.MAX_VALUE,s=-i.MAX_VALUE,l=i.MAX_VALUE,u=-i.MAX_VALUE,h=e.length,d=0;d<h;d++){var p=e[d];a>(t=p.getLeft())&&(a=t),s<(n=p.getRight())&&(s=n),l>(r=p.getTop())&&(l=r),u<(o=p.getBottom())&&(u=o)}return new c(a,l,s-a,u-l)},d.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},d.prototype.getEstimatedSize=function(){if(this.estimatedSize==i.MIN_VALUE)throw"assert failed";return this.estimatedSize},d.prototype.calcEstimatedSize=function(){for(var e=0,t=this.nodes,n=t.length,r=0;r<n;r++){e+=t[r].calcEstimatedSize()}return this.estimatedSize=0==e?o.EMPTY_COMPOUND_NODE_SIZE:e/Math.sqrt(this.nodes.length),this.estimatedSize},d.prototype.updateConnected=function(){var e=this;if(0!=this.nodes.length){var t,n,r=new h,i=new Set,o=this.nodes[0];for(o.withChildren().forEach(function(e){r.push(e),i.add(e)});0!==r.length;)for(var a=(t=(o=r.shift()).getEdges()).length,s=0;s<a;s++){if(null!=(n=t[s].getOtherEndInGraph(o,this))&&!i.has(n))n.withChildren().forEach(function(e){r.push(e),i.add(e)})}if(this.isConnected=!1,i.size>=this.nodes.length){var l=0;i.forEach(function(t){t.owner==e&&l++}),l==this.nodes.length&&(this.isConnected=!0)}}else this.isConnected=!0},e.exports=d},function(e,t,n){var r,i=n(1);function o(e){r=n(6),this.layout=e,this.graphs=[],this.edges=[]}o.prototype.addRoot=function(){var e=this.layout.newGraph(),t=this.layout.newNode(null),n=this.add(e,t);return this.setRootGraph(n),this.rootGraph},o.prototype.add=function(e,t,n,r,i){if(null==n&&null==r&&null==i){if(null==e)throw"Graph is null!";if(null==t)throw"Parent node is null!";if(this.graphs.indexOf(e)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(e),null!=e.parent)throw"Already has a parent!";if(null!=t.child)throw"Already has a child!";return e.parent=t,t.child=e,e}i=n,n=e;var o=(r=t).getOwner(),a=i.getOwner();if(null==o||o.getGraphManager()!=this)throw"Source not in this graph mgr!";if(null==a||a.getGraphManager()!=this)throw"Target not in this graph mgr!";if(o==a)return n.isInterGraph=!1,o.add(n,r,i);if(n.isInterGraph=!0,n.source=r,n.target=i,this.edges.indexOf(n)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(n),null==n.source||null==n.target)throw"Edge source and/or target is null!";if(-1!=n.source.edges.indexOf(n)||-1!=n.target.edges.indexOf(n))throw"Edge already in source and/or target incidency list!";return n.source.edges.push(n),n.target.edges.push(n),n},o.prototype.remove=function(e){if(e instanceof r){var t=e;if(t.getGraphManager()!=this)throw"Graph not in this graph mgr";if(t!=this.rootGraph&&(null==t.parent||t.parent.graphManager!=this))throw"Invalid parent node!";for(var n,o=[],a=(o=o.concat(t.getEdges())).length,s=0;s<a;s++)n=o[s],t.remove(n);var l,c=[];a=(c=c.concat(t.getNodes())).length;for(s=0;s<a;s++)l=c[s],t.remove(l);t==this.rootGraph&&this.setRootGraph(null);var u=this.graphs.indexOf(t);this.graphs.splice(u,1),t.parent=null}else if(e instanceof i){if(null==(n=e))throw"Edge is null!";if(!n.isInterGraph)throw"Not an inter-graph edge!";if(null==n.source||null==n.target)throw"Source and/or target is null!";if(-1==n.source.edges.indexOf(n)||-1==n.target.edges.indexOf(n))throw"Source and/or target doesn't know this edge!";u=n.source.edges.indexOf(n);if(n.source.edges.splice(u,1),u=n.target.edges.indexOf(n),n.target.edges.splice(u,1),null==n.source.owner||null==n.source.owner.getGraphManager())throw"Edge owner graph or owner graph manager is null!";if(-1==n.source.owner.getGraphManager().edges.indexOf(n))throw"Not in owner graph manager's edge list!";u=n.source.owner.getGraphManager().edges.indexOf(n);n.source.owner.getGraphManager().edges.splice(u,1)}},o.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},o.prototype.getGraphs=function(){return this.graphs},o.prototype.getAllNodes=function(){if(null==this.allNodes){for(var e=[],t=this.getGraphs(),n=t.length,r=0;r<n;r++)e=e.concat(t[r].getNodes());this.allNodes=e}return this.allNodes},o.prototype.resetAllNodes=function(){this.allNodes=null},o.prototype.resetAllEdges=function(){this.allEdges=null},o.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},o.prototype.getAllEdges=function(){if(null==this.allEdges){var e=[],t=this.getGraphs();t.length;for(var n=0;n<t.length;n++)e=e.concat(t[n].getEdges());e=e.concat(this.edges),this.allEdges=e}return this.allEdges},o.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},o.prototype.setAllNodesToApplyGravitation=function(e){if(null!=this.allNodesToApplyGravitation)throw"assert failed";this.allNodesToApplyGravitation=e},o.prototype.getRoot=function(){return this.rootGraph},o.prototype.setRootGraph=function(e){if(e.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=e,null==e.parent&&(e.parent=this.layout.newNode("Root node"))},o.prototype.getLayout=function(){return this.layout},o.prototype.isOneAncestorOfOther=function(e,t){if(null==e||null==t)throw"assert failed";if(e==t)return!0;for(var n,r=e.getOwner();;){if(null==(n=r.getParent()))break;if(n==t)return!0;if(null==(r=n.getOwner()))break}for(r=t.getOwner();;){if(null==(n=r.getParent()))break;if(n==e)return!0;if(null==(r=n.getOwner()))break}return!1},o.prototype.calcLowestCommonAncestors=function(){for(var e,t,n,r,i,o=this.getAllEdges(),a=o.length,s=0;s<a;s++)if(t=(e=o[s]).source,n=e.target,e.lca=null,e.sourceInLca=t,e.targetInLca=n,t!=n){for(r=t.getOwner();null==e.lca;){for(e.targetInLca=n,i=n.getOwner();null==e.lca;){if(i==r){e.lca=i;break}if(i==this.rootGraph)break;if(null!=e.lca)throw"assert failed";e.targetInLca=i.getParent(),i=e.targetInLca.getOwner()}if(r==this.rootGraph)break;null==e.lca&&(e.sourceInLca=r.getParent(),r=e.sourceInLca.getOwner())}if(null==e.lca)throw"assert failed"}else e.lca=t.getOwner()},o.prototype.calcLowestCommonAncestor=function(e,t){if(e==t)return e.getOwner();for(var n=e.getOwner();;){if(null==n)break;for(var r=t.getOwner();;){if(null==r)break;if(r==n)return r;r=r.getParent().getOwner()}n=n.getParent().getOwner()}return n},o.prototype.calcInclusionTreeDepths=function(e,t){var n;null==e&&null==t&&(e=this.rootGraph,t=1);for(var r=e.getNodes(),i=r.length,o=0;o<i;o++)(n=r[o]).inclusionTreeDepth=t,null!=n.child&&this.calcInclusionTreeDepths(n.child,t+1)},o.prototype.includesInvalidEdge=function(){for(var e,t=[],n=this.edges.length,r=0;r<n;r++)e=this.edges[r],this.isOneAncestorOfOther(e.source,e.target)&&t.push(e);for(r=0;r<t.length;r++)this.remove(t[r]);return!1},e.exports=o},function(e,t,n){var r=n(12);function i(){}i.calcSeparationAmount=function(e,t,n,r){if(!e.intersects(t))throw"assert failed";var i=new Array(2);this.decideDirectionsForOverlappingNodes(e,t,i),n[0]=Math.min(e.getRight(),t.getRight())-Math.max(e.x,t.x),n[1]=Math.min(e.getBottom(),t.getBottom())-Math.max(e.y,t.y),e.getX()<=t.getX()&&e.getRight()>=t.getRight()?n[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight()):t.getX()<=e.getX()&&t.getRight()>=e.getRight()&&(n[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight())),e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()?n[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()):t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()&&(n[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()));var o=Math.abs((t.getCenterY()-e.getCenterY())/(t.getCenterX()-e.getCenterX()));t.getCenterY()===e.getCenterY()&&t.getCenterX()===e.getCenterX()&&(o=1);var a=o*n[0],s=n[1]/o;n[0]<s?s=n[0]:a=n[1],n[0]=-1*i[0]*(s/2+r),n[1]=-1*i[1]*(a/2+r)},i.decideDirectionsForOverlappingNodes=function(e,t,n){e.getCenterX()<t.getCenterX()?n[0]=-1:n[0]=1,e.getCenterY()<t.getCenterY()?n[1]=-1:n[1]=1},i.getIntersection2=function(e,t,n){var r=e.getCenterX(),i=e.getCenterY(),o=t.getCenterX(),a=t.getCenterY();if(e.intersects(t))return n[0]=r,n[1]=i,n[2]=o,n[3]=a,!0;var s=e.getX(),l=e.getY(),c=e.getRight(),u=e.getX(),h=e.getBottom(),d=e.getRight(),p=e.getWidthHalf(),f=e.getHeightHalf(),g=t.getX(),m=t.getY(),O=t.getRight(),A=t.getX(),y=t.getBottom(),v=t.getRight(),b=t.getWidthHalf(),x=t.getHeightHalf(),w=!1,k=!1;if(r===o){if(i>a)return n[0]=r,n[1]=l,n[2]=o,n[3]=y,!1;if(i<a)return n[0]=r,n[1]=h,n[2]=o,n[3]=m,!1}else if(i===a){if(r>o)return n[0]=s,n[1]=i,n[2]=O,n[3]=a,!1;if(r<o)return n[0]=c,n[1]=i,n[2]=g,n[3]=a,!1}else{var S=e.height/e.width,T=t.height/t.width,$=(a-i)/(o-r),_=void 0,C=void 0,Q=void 0,P=void 0,E=void 0,R=void 0;if(-S===$?r>o?(n[0]=u,n[1]=h,w=!0):(n[0]=c,n[1]=l,w=!0):S===$&&(r>o?(n[0]=s,n[1]=l,w=!0):(n[0]=d,n[1]=h,w=!0)),-T===$?o>r?(n[2]=A,n[3]=y,k=!0):(n[2]=O,n[3]=m,k=!0):T===$&&(o>r?(n[2]=g,n[3]=m,k=!0):(n[2]=v,n[3]=y,k=!0)),w&&k)return!1;if(r>o?i>a?(_=this.getCardinalDirection(S,$,4),C=this.getCardinalDirection(T,$,2)):(_=this.getCardinalDirection(-S,$,3),C=this.getCardinalDirection(-T,$,1)):i>a?(_=this.getCardinalDirection(-S,$,1),C=this.getCardinalDirection(-T,$,3)):(_=this.getCardinalDirection(S,$,2),C=this.getCardinalDirection(T,$,4)),!w)switch(_){case 1:P=l,Q=r+-f/$,n[0]=Q,n[1]=P;break;case 2:Q=d,P=i+p*$,n[0]=Q,n[1]=P;break;case 3:P=h,Q=r+f/$,n[0]=Q,n[1]=P;break;case 4:Q=u,P=i+-p*$,n[0]=Q,n[1]=P}if(!k)switch(C){case 1:R=m,E=o+-x/$,n[2]=E,n[3]=R;break;case 2:E=v,R=a+b*$,n[2]=E,n[3]=R;break;case 3:R=y,E=o+x/$,n[2]=E,n[3]=R;break;case 4:E=A,R=a+-b*$,n[2]=E,n[3]=R}}return!1},i.getCardinalDirection=function(e,t,n){return e>t?n:1+n%4},i.getIntersection=function(e,t,n,i){if(null==i)return this.getIntersection2(e,t,n);var o,a,s,l,c,u,h,d=e.x,p=e.y,f=t.x,g=t.y,m=n.x,O=n.y,A=i.x,y=i.y;return 0===(h=(o=g-p)*(l=m-A)-(a=y-O)*(s=d-f))?null:new r((s*(u=A*O-m*y)-l*(c=f*p-d*g))/h,(a*c-o*u)/h)},i.angleOfVector=function(e,t,n,r){var i=void 0;return e!==n?(i=Math.atan((r-t)/(n-e)),n<e?i+=Math.PI:r<t&&(i+=this.TWO_PI)):i=r<t?this.ONE_AND_HALF_PI:this.HALF_PI,i},i.doIntersect=function(e,t,n,r){var i=e.x,o=e.y,a=t.x,s=t.y,l=n.x,c=n.y,u=r.x,h=r.y,d=(a-i)*(h-c)-(u-l)*(s-o);if(0===d)return!1;var p=((h-c)*(u-i)+(l-u)*(h-o))/d,f=((o-s)*(u-i)+(a-i)*(h-o))/d;return 0<p&&p<1&&0<f&&f<1},i.findCircleLineIntersections=function(e,t,n,r,i,o,a){var s=(n-e)*(n-e)+(r-t)*(r-t),l=2*((e-i)*(n-e)+(t-o)*(r-t)),c=(e-i)*(e-i)+(t-o)*(t-o)-a*a;if(l*l-4*s*c>=0){var u=(-l+Math.sqrt(l*l-4*s*c))/(2*s),h=(-l-Math.sqrt(l*l-4*s*c))/(2*s);return u>=0&&u<=1?[u]:h>=0&&h<=1?[h]:null}return null},i.HALF_PI=.5*Math.PI,i.ONE_AND_HALF_PI=1.5*Math.PI,i.TWO_PI=2*Math.PI,i.THREE_PI=3*Math.PI,e.exports=i},function(e,t,n){function r(){}r.sign=function(e){return e>0?1:e<0?-1:0},r.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},r.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},e.exports=r},function(e,t,n){function r(){}r.MAX_VALUE=2147483647,r.MIN_VALUE=-2147483648,e.exports=r},function(e,t,n){var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var i=function(e){return{value:e,next:null,prev:null}},o=function(e,t,n,r){return null!==e?e.next=t:r.head=t,null!==n?n.prev=t:r.tail=t,t.prev=e,t.next=n,r.length++,t},a=function(e,t){var n=e.prev,r=e.next;return null!==n?n.next=r:t.head=r,null!==r?r.prev=n:t.tail=n,e.prev=e.next=null,t.length--,e},s=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.length=0,this.head=null,this.tail=null,null!=t&&t.forEach(function(e){return n.push(e)})}return r(e,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(e,t){return o(t.prev,i(e),t,this)}},{key:"insertAfter",value:function(e,t){return o(t,i(e),t.next,this)}},{key:"insertNodeBefore",value:function(e,t){return o(t.prev,e,t,this)}},{key:"insertNodeAfter",value:function(e,t){return o(t,e,t.next,this)}},{key:"push",value:function(e){return o(this.tail,i(e),null,this)}},{key:"unshift",value:function(e){return o(null,i(e),this.head,this)}},{key:"remove",value:function(e){return a(e,this)}},{key:"pop",value:function(){return a(this.tail,this).value}},{key:"popNode",value:function(){return a(this.tail,this)}},{key:"shift",value:function(){return a(this.head,this).value}},{key:"shiftNode",value:function(){return a(this.head,this)}},{key:"get_object_at",value:function(e){if(e<=this.length()){for(var t=1,n=this.head;t<e;)n=n.next,t++;return n.value}}},{key:"set_object_at",value:function(e,t){if(e<=this.length()){for(var n=1,r=this.head;n<e;)r=r.next,n++;r.value=t}}}]),e}();e.exports=s},function(e,t,n){function r(e,t,n){this.x=null,this.y=null,null==e&&null==t&&null==n?(this.x=0,this.y=0):"number"==typeof e&&"number"==typeof t&&null==n?(this.x=e,this.y=t):"Point"==e.constructor.name&&null==t&&null==n&&(n=e,this.x=n.x,this.y=n.y)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.getLocation=function(){return new r(this.x,this.y)},r.prototype.setLocation=function(e,t,n){"Point"==e.constructor.name&&null==t&&null==n?(n=e,this.setLocation(n.x,n.y)):"number"==typeof e&&"number"==typeof t&&null==n&&(parseInt(e)==e&&parseInt(t)==t?this.move(e,t):(this.x=Math.floor(e+.5),this.y=Math.floor(t+.5)))},r.prototype.move=function(e,t){this.x=e,this.y=t},r.prototype.translate=function(e,t){this.x+=e,this.y+=t},r.prototype.equals=function(e){if("Point"==e.constructor.name){var t=e;return this.x==t.x&&this.y==t.y}return this==e},r.prototype.toString=function(){return(new r).constructor.name+"[x="+this.x+",y="+this.y+"]"},e.exports=r},function(e,t,n){function r(e,t,n,r){this.x=0,this.y=0,this.width=0,this.height=0,null!=e&&null!=t&&null!=n&&null!=r&&(this.x=e,this.y=t,this.width=n,this.height=r)}r.prototype.getX=function(){return this.x},r.prototype.setX=function(e){this.x=e},r.prototype.getY=function(){return this.y},r.prototype.setY=function(e){this.y=e},r.prototype.getWidth=function(){return this.width},r.prototype.setWidth=function(e){this.width=e},r.prototype.getHeight=function(){return this.height},r.prototype.setHeight=function(e){this.height=e},r.prototype.getRight=function(){return this.x+this.width},r.prototype.getBottom=function(){return this.y+this.height},r.prototype.intersects=function(e){return!(this.getRight()<e.x)&&(!(this.getBottom()<e.y)&&(!(e.getRight()<this.x)&&!(e.getBottom()<this.y)))},r.prototype.getCenterX=function(){return this.x+this.width/2},r.prototype.getMinX=function(){return this.getX()},r.prototype.getMaxX=function(){return this.getX()+this.width},r.prototype.getCenterY=function(){return this.y+this.height/2},r.prototype.getMinY=function(){return this.getY()},r.prototype.getMaxY=function(){return this.getY()+this.height},r.prototype.getWidthHalf=function(){return this.width/2},r.prototype.getHeightHalf=function(){return this.height/2},e.exports=r},function(e,t,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function i(){}i.lastID=0,i.createID=function(e){return i.isPrimitive(e)?e:(null!=e.uniqueID||(e.uniqueID=i.getString(),i.lastID++),e.uniqueID)},i.getString=function(e){return null==e&&(e=i.lastID),"Object#"+e},i.isPrimitive=function(e){var t=void 0===e?"undefined":r(e);return null==e||"object"!=t&&"function"!=t},e.exports=i},function(e,t,n){function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i=n(0),o=n(7),a=n(3),s=n(1),l=n(6),c=n(5),u=n(17),h=n(29);function d(e){h.call(this),this.layoutQuality=i.QUALITY,this.createBendsAsNeeded=i.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=i.DEFAULT_INCREMENTAL,this.animationOnLayout=i.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=i.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=i.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=i.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new o(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,null!=e&&(this.isRemoteUse=e)}d.RANDOM_SEED=1,d.prototype=Object.create(h.prototype),d.prototype.getGraphManager=function(){return this.graphManager},d.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},d.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},d.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},d.prototype.newGraphManager=function(){var e=new o(this);return this.graphManager=e,e},d.prototype.newGraph=function(e){return new l(null,this.graphManager,e)},d.prototype.newNode=function(e){return new a(this.graphManager,e)},d.prototype.newEdge=function(e){return new s(null,null,e)},d.prototype.checkLayoutSuccess=function(){return null==this.graphManager.getRoot()||0==this.graphManager.getRoot().getNodes().length||this.graphManager.includesInvalidEdge()},d.prototype.runLayout=function(){var e;return this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters(),e=!this.checkLayoutSuccess()&&this.layout(),"during"!==i.ANIMATE&&(e&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,e)},d.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},d.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var e=this.graphManager.getAllEdges(),t=0;t<e.length;t++)e[t];var n=this.graphManager.getRoot().getNodes();for(t=0;t<n.length;t++)n[t];this.update(this.graphManager.getRoot())}},d.prototype.update=function(e){if(null==e)this.update2();else if(e instanceof a){var t=e;if(null!=t.getChild())for(var n=t.getChild().getNodes(),r=0;r<n.length;r++)update(n[r]);if(null!=t.vGraphObject)t.vGraphObject.update(t)}else if(e instanceof s){var i=e;if(null!=i.vGraphObject)i.vGraphObject.update(i)}else if(e instanceof l){var o=e;if(null!=o.vGraphObject)o.vGraphObject.update(o)}},d.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=i.QUALITY,this.animationDuringLayout=i.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=i.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=i.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=i.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=i.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=i.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},d.prototype.transform=function(e){if(null==e)this.transform(new c(0,0));else{var t=new u,n=this.graphManager.getRoot().updateLeftTop();if(null!=n){t.setWorldOrgX(e.x),t.setWorldOrgY(e.y),t.setDeviceOrgX(n.x),t.setDeviceOrgY(n.y);for(var r=this.getAllNodes(),i=0;i<r.length;i++)r[i].transform(t)}}},d.prototype.positionNodesRandomly=function(e){if(null==e)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var t,n,r=e.getNodes(),i=0;i<r.length;i++)null==(n=(t=r[i]).getChild())||0==n.getNodes().length?t.scatter():(this.positionNodesRandomly(n),t.updateBounds())},d.prototype.getFlatForest=function(){for(var e=[],t=!0,n=this.graphManager.getRoot().getNodes(),i=!0,o=0;o<n.length;o++)null!=n[o].getChild()&&(i=!1);if(!i)return e;var a=new Set,s=[],l=new Map,c=[];for(c=c.concat(n);c.length>0&&t;){for(s.push(c[0]);s.length>0&&t;){var u=s[0];s.splice(0,1),a.add(u);var h=u.getEdges();for(o=0;o<h.length;o++){var d=h[o].getOtherEnd(u);if(l.get(u)!=d){if(a.has(d)){t=!1;break}s.push(d),l.set(d,u)}}}if(t){var p=[].concat(r(a));e.push(p);for(o=0;o<p.length;o++){var f=p[o],g=c.indexOf(f);g>-1&&c.splice(g,1)}a=new Set,l=new Map}else e=[]}return e},d.prototype.createDummyNodesForBendpoints=function(e){for(var t=[],n=e.source,r=this.graphManager.calcLowestCommonAncestor(e.source,e.target),i=0;i<e.bendpoints.length;i++){var o=this.newNode(null);o.setRect(new Point(0,0),new Dimension(1,1)),r.add(o);var a=this.newEdge(null);this.graphManager.add(a,n,o),t.add(o),n=o}a=this.newEdge(null);return this.graphManager.add(a,n,e.target),this.edgeToDummyNodes.set(e,t),e.isInterGraph()?this.graphManager.remove(e):r.remove(e),t},d.prototype.createBendpointsFromDummyNodes=function(){var e=[];e=e.concat(this.graphManager.getAllEdges()),e=[].concat(r(this.edgeToDummyNodes.keys())).concat(e);for(var t=0;t<e.length;t++){var n=e[t];if(n.bendpoints.length>0){for(var i=this.edgeToDummyNodes.get(n),o=0;o<i.length;o++){var a=i[o],s=new c(a.getCenterX(),a.getCenterY()),l=n.bendpoints.get(o);l.x=s.x,l.y=s.y,a.getOwner().remove(a)}this.graphManager.add(n,n.source,n.target)}}},d.transform=function(e,t,n,r){if(null!=n&&null!=r){var i=t;if(e<=50)i-=(t-t/n)/50*(50-e);else i+=(t*r-t)/50*(e-50);return i}var o,a;return e<=50?(o=9*t/500,a=t/10):(o=9*t/50,a=-8*t),o*e+a},d.findCenterOfTree=function(e){var t=[];t=t.concat(e);var n=[],r=new Map,i=!1,o=null;1!=t.length&&2!=t.length||(i=!0,o=t[0]);for(var a=0;a<t.length;a++){var s=(u=t[a]).getNeighborsList().size;r.set(u,u.getNeighborsList().size),1==s&&n.push(u)}var l=[];for(l=l.concat(n);!i;){var c=[];c=c.concat(l),l=[];for(a=0;a<t.length;a++){var u=t[a],h=t.indexOf(u);h>=0&&t.splice(h,1),u.getNeighborsList().forEach(function(e){if(n.indexOf(e)<0){var t=r.get(e)-1;1==t&&l.push(e),r.set(e,t)}})}n=n.concat(l),1!=t.length&&2!=t.length||(i=!0,o=t[0])}return o},d.prototype.setGraphManager=function(e){this.graphManager=e},e.exports=d},function(e,t,n){function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=1e4*Math.sin(r.seed++),r.x-Math.floor(r.x)},e.exports=r},function(e,t,n){var r=n(5);function i(e,t){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}i.prototype.getWorldOrgX=function(){return this.lworldOrgX},i.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},i.prototype.getWorldOrgY=function(){return this.lworldOrgY},i.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},i.prototype.getWorldExtX=function(){return this.lworldExtX},i.prototype.setWorldExtX=function(e){this.lworldExtX=e},i.prototype.getWorldExtY=function(){return this.lworldExtY},i.prototype.setWorldExtY=function(e){this.lworldExtY=e},i.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},i.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},i.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},i.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},i.prototype.getDeviceExtX=function(){return this.ldeviceExtX},i.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},i.prototype.getDeviceExtY=function(){return this.ldeviceExtY},i.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},i.prototype.transformX=function(e){var t=0,n=this.lworldExtX;return 0!=n&&(t=this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/n),t},i.prototype.transformY=function(e){var t=0,n=this.lworldExtY;return 0!=n&&(t=this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/n),t},i.prototype.inverseTransformX=function(e){var t=0,n=this.ldeviceExtX;return 0!=n&&(t=this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/n),t},i.prototype.inverseTransformY=function(e){var t=0,n=this.ldeviceExtY;return 0!=n&&(t=this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/n),t},i.prototype.inverseTransformPoint=function(e){return new r(this.inverseTransformX(e.x),this.inverseTransformY(e.y))},e.exports=i},function(e,t,n){var r=n(15),i=n(4),o=n(0),a=n(8),s=n(9);function l(){r.call(this),this.useSmartIdealEdgeLengthCalculation=i.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=i.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=i.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=i.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*i.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=i.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=i.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=i.MAX_ITERATIONS}for(var c in l.prototype=Object.create(r.prototype),r)l[c]=r[c];l.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=i.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},l.prototype.calcIdealEdgeLengths=function(){for(var e,t,n,r,a,s,l,c=this.getGraphManager().getAllEdges(),u=0;u<c.length;u++)t=(e=c[u]).idealLength,e.isInterGraph&&(r=e.getSource(),a=e.getTarget(),s=e.getSourceInLca().getEstimatedSize(),l=e.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(e.idealLength+=s+l-2*o.SIMPLE_NODE_SIZE),n=e.getLca().getInclusionTreeDepth(),e.idealLength+=t*i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(r.getInclusionTreeDepth()+a.getInclusionTreeDepth()-2*n))},l.prototype.initSpringEmbedder=function(){var e=this.getAllNodes().length;this.incremental?(e>i.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*i.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(e-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-i.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT_INCREMENTAL):(e>i.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(i.COOLING_ADAPTATION_FACTOR,1-(e-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*(1-i.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(5*this.getAllNodes().length,this.maxIterations),this.displacementThresholdPerNode=3*i.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},l.prototype.calcSpringForces=function(){for(var e,t=this.getAllEdges(),n=0;n<t.length;n++)e=t[n],this.calcSpringForce(e,e.idealLength)},l.prototype.calcRepulsionForces=function(){var e,t,n,r,o,a=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=this.getAllNodes();if(this.useFRGridVariant)for(this.totalIterations%i.GRID_CALCULATION_CHECK_PERIOD==1&&a&&this.updateGrid(),o=new Set,e=0;e<l.length;e++)n=l[e],this.calculateRepulsionForceOfANode(n,o,a,s),o.add(n);else for(e=0;e<l.length;e++)for(n=l[e],t=e+1;t<l.length;t++)r=l[t],n.getOwner()==r.getOwner()&&this.calcRepulsionForce(n,r)},l.prototype.calcGravitationalForces=function(){for(var e,t=this.getAllNodesToApplyGravitation(),n=0;n<t.length;n++)e=t[n],this.calcGravitationalForce(e)},l.prototype.moveNodes=function(){for(var e=this.getAllNodes(),t=0;t<e.length;t++)e[t].move()},l.prototype.calcSpringForce=function(e,t){var n,r,i,o,a=e.getSource(),s=e.getTarget();if(this.uniformLeafNodeSizes&&null==a.getChild()&&null==s.getChild())e.updateLengthSimple();else if(e.updateLength(),e.isOverlapingSourceAndTarget)return;0!=(n=e.getLength())&&(i=(r=e.edgeElasticity*(n-t))*(e.lengthX/n),o=r*(e.lengthY/n),a.springForceX+=i,a.springForceY+=o,s.springForceX-=i,s.springForceY-=o)},l.prototype.calcRepulsionForce=function(e,t){var n,r,o,l,c,u,h,d=e.getRect(),p=t.getRect(),f=new Array(2),g=new Array(4);if(d.intersects(p)){a.calcSeparationAmount(d,p,f,i.DEFAULT_EDGE_LENGTH/2),u=2*f[0],h=2*f[1];var m=e.noOfChildren*t.noOfChildren/(e.noOfChildren+t.noOfChildren);e.repulsionForceX-=m*u,e.repulsionForceY-=m*h,t.repulsionForceX+=m*u,t.repulsionForceY+=m*h}else this.uniformLeafNodeSizes&&null==e.getChild()&&null==t.getChild()?(n=p.getCenterX()-d.getCenterX(),r=p.getCenterY()-d.getCenterY()):(a.getIntersection(d,p,g),n=g[2]-g[0],r=g[3]-g[1]),Math.abs(n)<i.MIN_REPULSION_DIST&&(n=s.sign(n)*i.MIN_REPULSION_DIST),Math.abs(r)<i.MIN_REPULSION_DIST&&(r=s.sign(r)*i.MIN_REPULSION_DIST),o=n*n+r*r,l=Math.sqrt(o),u=(c=(e.nodeRepulsion/2+t.nodeRepulsion/2)*e.noOfChildren*t.noOfChildren/o)*n/l,h=c*r/l,e.repulsionForceX-=u,e.repulsionForceY-=h,t.repulsionForceX+=u,t.repulsionForceY+=h},l.prototype.calcGravitationalForce=function(e){var t,n,r,i,o,a,s,l;n=((t=e.getOwner()).getRight()+t.getLeft())/2,r=(t.getTop()+t.getBottom())/2,i=e.getCenterX()-n,o=e.getCenterY()-r,a=Math.abs(i)+e.getWidth()/2,s=Math.abs(o)+e.getHeight()/2,e.getOwner()==this.graphManager.getRoot()?(a>(l=t.getEstimatedSize()*this.gravityRangeFactor)||s>l)&&(e.gravitationForceX=-this.gravityConstant*i,e.gravitationForceY=-this.gravityConstant*o):(a>(l=t.getEstimatedSize()*this.compoundGravityRangeFactor)||s>l)&&(e.gravitationForceX=-this.gravityConstant*i*this.compoundGravityConstant,e.gravitationForceY=-this.gravityConstant*o*this.compoundGravityConstant)},l.prototype.isConverged=function(){var e,t=!1;return this.totalIterations>this.maxIterations/3&&(t=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),e=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,e||t},l.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},l.prototype.calcNoOfChildrenForAllNodes=function(){for(var e,t=this.graphManager.getAllNodes(),n=0;n<t.length;n++)(e=t[n]).noOfChildren=e.getNoOfChildren()},l.prototype.calcGrid=function(e){var t,n;t=parseInt(Math.ceil((e.getRight()-e.getLeft())/this.repulsionRange)),n=parseInt(Math.ceil((e.getBottom()-e.getTop())/this.repulsionRange));for(var r=new Array(t),i=0;i<t;i++)r[i]=new Array(n);for(i=0;i<t;i++)for(var o=0;o<n;o++)r[i][o]=new Array;return r},l.prototype.addNodeToGrid=function(e,t,n){var r,i,o,a;r=parseInt(Math.floor((e.getRect().x-t)/this.repulsionRange)),i=parseInt(Math.floor((e.getRect().width+e.getRect().x-t)/this.repulsionRange)),o=parseInt(Math.floor((e.getRect().y-n)/this.repulsionRange)),a=parseInt(Math.floor((e.getRect().height+e.getRect().y-n)/this.repulsionRange));for(var s=r;s<=i;s++)for(var l=o;l<=a;l++)this.grid[s][l].push(e),e.setGridCoordinates(r,i,o,a)},l.prototype.updateGrid=function(){var e,t,n=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),e=0;e<n.length;e++)t=n[e],this.addNodeToGrid(t,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},l.prototype.calculateRepulsionForceOfANode=function(e,t,n,r){if(this.totalIterations%i.GRID_CALCULATION_CHECK_PERIOD==1&&n||r){var o,a=new Set;e.surrounding=new Array;for(var s=this.grid,l=e.startX-1;l<e.finishX+2;l++)for(var c=e.startY-1;c<e.finishY+2;c++)if(!(l<0||c<0||l>=s.length||c>=s[0].length))for(var u=0;u<s[l][c].length;u++)if(o=s[l][c][u],e.getOwner()==o.getOwner()&&e!=o&&!t.has(o)&&!a.has(o)){var h=Math.abs(e.getCenterX()-o.getCenterX())-(e.getWidth()/2+o.getWidth()/2),d=Math.abs(e.getCenterY()-o.getCenterY())-(e.getHeight()/2+o.getHeight()/2);h<=this.repulsionRange&&d<=this.repulsionRange&&a.add(o)}e.surrounding=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(a))}for(l=0;l<e.surrounding.length;l++)this.calcRepulsionForce(e,e.surrounding[l])},l.prototype.calcRepulsionRange=function(){return 0},e.exports=l},function(e,t,n){var r=n(1),i=n(4);function o(e,t,n){r.call(this,e,t,n),this.idealLength=i.DEFAULT_EDGE_LENGTH,this.edgeElasticity=i.DEFAULT_SPRING_STRENGTH}for(var a in o.prototype=Object.create(r.prototype),r)o[a]=r[a];e.exports=o},function(e,t,n){var r=n(3),i=n(4);function o(e,t,n,o){r.call(this,e,t,n,o),this.nodeRepulsion=i.DEFAULT_REPULSION_STRENGTH,this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}for(var a in o.prototype=Object.create(r.prototype),r)o[a]=r[a];o.prototype.setGridCoordinates=function(e,t,n,r){this.startX=e,this.finishX=t,this.startY=n,this.finishY=r},e.exports=o},function(e,t,n){function r(e,t){this.width=0,this.height=0,null!==e&&null!==t&&(this.height=t,this.width=e)}r.prototype.getWidth=function(){return this.width},r.prototype.setWidth=function(e){this.width=e},r.prototype.getHeight=function(){return this.height},r.prototype.setHeight=function(e){this.height=e},e.exports=r},function(e,t,n){var r=n(14);function i(){this.map={},this.keys=[]}i.prototype.put=function(e,t){var n=r.createID(e);this.contains(n)||(this.map[n]=t,this.keys.push(e))},i.prototype.contains=function(e){return r.createID(e),null!=this.map[e]},i.prototype.get=function(e){var t=r.createID(e);return this.map[t]},i.prototype.keySet=function(){return this.keys},e.exports=i},function(e,t,n){var r=n(14);function i(){this.set={}}i.prototype.add=function(e){var t=r.createID(e);this.contains(t)||(this.set[t]=e)},i.prototype.remove=function(e){delete this.set[r.createID(e)]},i.prototype.clear=function(){this.set={}},i.prototype.contains=function(e){return this.set[r.createID(e)]==e},i.prototype.isEmpty=function(){return 0===this.size()},i.prototype.size=function(){return Object.keys(this.set).length},i.prototype.addAllTo=function(e){for(var t=Object.keys(this.set),n=t.length,r=0;r<n;r++)e.push(this.set[t[r]])},i.prototype.size=function(){return Object.keys(this.set).length},i.prototype.addAll=function(e){for(var t=e.length,n=0;n<t;n++){var r=e[n];this.add(r)}},e.exports=i},function(e,t,n){function r(){}r.multMat=function(e,t){for(var n=[],r=0;r<e.length;r++){n[r]=[];for(var i=0;i<t[0].length;i++){n[r][i]=0;for(var o=0;o<e[0].length;o++)n[r][i]+=e[r][o]*t[o][i]}}return n},r.transpose=function(e){for(var t=[],n=0;n<e[0].length;n++){t[n]=[];for(var r=0;r<e.length;r++)t[n][r]=e[r][n]}return t},r.multCons=function(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=e[r]*t;return n},r.minusOp=function(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=e[r]-t[r];return n},r.dotProduct=function(e,t){for(var n=0,r=0;r<e.length;r++)n+=e[r]*t[r];return n},r.mag=function(e){return Math.sqrt(this.dotProduct(e,e))},r.normalize=function(e){for(var t=[],n=this.mag(e),r=0;r<e.length;r++)t[r]=e[r]/n;return t},r.multGamma=function(e){for(var t=[],n=0,r=0;r<e.length;r++)n+=e[r];n*=-1/e.length;for(var i=0;i<e.length;i++)t[i]=n+e[i];return t},r.multL=function(e,t,n){for(var r=[],i=[],o=[],a=0;a<t[0].length;a++){for(var s=0,l=0;l<t.length;l++)s+=-.5*t[l][a]*e[l];i[a]=s}for(var c=0;c<n.length;c++){for(var u=0,h=0;h<n.length;h++)u+=n[c][h]*i[h];o[c]=u}for(var d=0;d<t.length;d++){for(var p=0,f=0;f<t[0].length;f++)p+=t[d][f]*o[f];r[d]=p}return r},e.exports=r},function(e,t,n){var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var i=n(11),o=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),null===n&&void 0===n||(this.compareFunction=this._defaultCompareFunction);var r=void 0;r=t instanceof i?t.size():t.length,this._quicksort(t,0,r-1)}return r(e,[{key:"_quicksort",value:function(e,t,n){if(t<n){var r=this._partition(e,t,n);this._quicksort(e,t,r),this._quicksort(e,r+1,n)}}},{key:"_partition",value:function(e,t,n){for(var r=this._get(e,t),i=t,o=n;;){for(;this.compareFunction(r,this._get(e,o));)o--;for(;this.compareFunction(this._get(e,i),r);)i++;if(!(i<o))return o;this._swap(e,i,o),i++,o--}}},{key:"_get",value:function(e,t){return e instanceof i?e.get_object_at(t):e[t]}},{key:"_set",value:function(e,t,n){e instanceof i?e.set_object_at(t,n):e[t]=n}},{key:"_swap",value:function(e,t,n){var r=this._get(e,t);this._set(e,t,this._get(e,n)),this._set(e,n,r)}},{key:"_defaultCompareFunction",value:function(e,t){return t>e}}]),e}();e.exports=o},function(e,t,n){function r(){}r.svd=function(e){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=e.length,this.n=e[0].length;var t=Math.min(this.m,this.n);this.s=function(e){for(var t=[];e-- >0;)t.push(0);return t}(Math.min(this.m+1,this.n)),this.U=function e(t){if(0==t.length)return 0;for(var n=[],r=0;r<t[0];r++)n.push(e(t.slice(1)));return n}([this.m,t]),this.V=function(e){return function e(t){if(0==t.length)return 0;for(var n=[],r=0;r<t[0];r++)n.push(e(t.slice(1)));return n}(e)}([this.n,this.n]);for(var n=function(e){for(var t=[];e-- >0;)t.push(0);return t}(this.n),i=function(e){for(var t=[];e-- >0;)t.push(0);return t}(this.m),o=Math.min(this.m-1,this.n),a=Math.max(0,Math.min(this.n-2,this.m)),s=0;s<Math.max(o,a);s++){if(s<o){this.s[s]=0;for(var l=s;l<this.m;l++)this.s[s]=r.hypot(this.s[s],e[l][s]);if(0!==this.s[s]){e[s][s]<0&&(this.s[s]=-this.s[s]);for(var c=s;c<this.m;c++)e[c][s]/=this.s[s];e[s][s]+=1}this.s[s]=-this.s[s]}for(var u=s+1;u<this.n;u++){if(function(e,t){return e&&t}(s<o,0!==this.s[s])){for(var h=0,d=s;d<this.m;d++)h+=e[d][s]*e[d][u];h=-h/e[s][s];for(var p=s;p<this.m;p++)e[p][u]+=h*e[p][s]}n[u]=e[s][u]}if(function(e,t){return t}(0,s<o))for(var f=s;f<this.m;f++)this.U[f][s]=e[f][s];if(s<a){n[s]=0;for(var g=s+1;g<this.n;g++)n[s]=r.hypot(n[s],n[g]);if(0!==n[s]){n[s+1]<0&&(n[s]=-n[s]);for(var m=s+1;m<this.n;m++)n[m]/=n[s];n[s+1]+=1}if(n[s]=-n[s],function(e,t){return e&&t}(s+1<this.m,0!==n[s])){for(var O=s+1;O<this.m;O++)i[O]=0;for(var A=s+1;A<this.n;A++)for(var y=s+1;y<this.m;y++)i[y]+=n[A]*e[y][A];for(var v=s+1;v<this.n;v++)for(var b=-n[v]/n[s+1],x=s+1;x<this.m;x++)e[x][v]+=b*i[x]}for(var w=s+1;w<this.n;w++)this.V[w][s]=n[w]}}var k=Math.min(this.n,this.m+1);o<this.n&&(this.s[o]=e[o][o]),this.m<k&&(this.s[k-1]=0),a+1<k&&(n[a]=e[a][k-1]),n[k-1]=0;for(var S=o;S<t;S++){for(var T=0;T<this.m;T++)this.U[T][S]=0;this.U[S][S]=1}for(var $=o-1;$>=0;$--)if(0!==this.s[$]){for(var _=$+1;_<t;_++){for(var C=0,Q=$;Q<this.m;Q++)C+=this.U[Q][$]*this.U[Q][_];C=-C/this.U[$][$];for(var P=$;P<this.m;P++)this.U[P][_]+=C*this.U[P][$]}for(var E=$;E<this.m;E++)this.U[E][$]=-this.U[E][$];this.U[$][$]=1+this.U[$][$];for(var R=0;R<$-1;R++)this.U[R][$]=0}else{for(var B=0;B<this.m;B++)this.U[B][$]=0;this.U[$][$]=1}for(var I=this.n-1;I>=0;I--){if(function(e,t){return e&&t}(I<a,0!==n[I]))for(var L=I+1;L<t;L++){for(var D=0,M=I+1;M<this.n;M++)D+=this.V[M][I]*this.V[M][L];D=-D/this.V[I+1][I];for(var N=I+1;N<this.n;N++)this.V[N][L]+=D*this.V[N][I]}for(var X=0;X<this.n;X++)this.V[X][I]=0;this.V[I][I]=1}for(var F=k-1,U=Math.pow(2,-52),z=Math.pow(2,-966);k>0;){var q=void 0,V=void 0;for(q=k-2;q>=-1&&-1!==q;q--)if(Math.abs(n[q])<=z+U*(Math.abs(this.s[q])+Math.abs(this.s[q+1]))){n[q]=0;break}if(q===k-2)V=4;else{var W=void 0;for(W=k-1;W>=q&&W!==q;W--){var j=(W!==k?Math.abs(n[W]):0)+(W!==q+1?Math.abs(n[W-1]):0);if(Math.abs(this.s[W])<=z+U*j){this.s[W]=0;break}}W===q?V=3:W===k-1?V=1:(V=2,q=W)}switch(q++,V){case 1:var Y=n[k-2];n[k-2]=0;for(var Z=k-2;Z>=q;Z--){var G=r.hypot(this.s[Z],Y),H=this.s[Z]/G,K=Y/G;this.s[Z]=G,Z!==q&&(Y=-K*n[Z-1],n[Z-1]=H*n[Z-1]);for(var J=0;J<this.n;J++)G=H*this.V[J][Z]+K*this.V[J][k-1],this.V[J][k-1]=-K*this.V[J][Z]+H*this.V[J][k-1],this.V[J][Z]=G}break;case 2:var ee=n[q-1];n[q-1]=0;for(var te=q;te<k;te++){var ne=r.hypot(this.s[te],ee),re=this.s[te]/ne,ie=ee/ne;this.s[te]=ne,ee=-ie*n[te],n[te]=re*n[te];for(var oe=0;oe<this.m;oe++)ne=re*this.U[oe][te]+ie*this.U[oe][q-1],this.U[oe][q-1]=-ie*this.U[oe][te]+re*this.U[oe][q-1],this.U[oe][te]=ne}break;case 3:var ae=Math.max(Math.max(Math.max(Math.max(Math.abs(this.s[k-1]),Math.abs(this.s[k-2])),Math.abs(n[k-2])),Math.abs(this.s[q])),Math.abs(n[q])),se=this.s[k-1]/ae,le=this.s[k-2]/ae,ce=n[k-2]/ae,ue=this.s[q]/ae,he=n[q]/ae,de=((le+se)*(le-se)+ce*ce)/2,pe=se*ce*(se*ce),fe=0;(function(e,t){return e||t})(0!==de,0!==pe)&&(fe=Math.sqrt(de*de+pe),de<0&&(fe=-fe),fe=pe/(de+fe));for(var ge=(ue+se)*(ue-se)+fe,me=ue*he,Oe=q;Oe<k-1;Oe++){var Ae=r.hypot(ge,me),ye=ge/Ae,ve=me/Ae;Oe!==q&&(n[Oe-1]=Ae),ge=ye*this.s[Oe]+ve*n[Oe],n[Oe]=ye*n[Oe]-ve*this.s[Oe],me=ve*this.s[Oe+1],this.s[Oe+1]=ye*this.s[Oe+1];for(var be=0;be<this.n;be++)Ae=ye*this.V[be][Oe]+ve*this.V[be][Oe+1],this.V[be][Oe+1]=-ve*this.V[be][Oe]+ye*this.V[be][Oe+1],this.V[be][Oe]=Ae;if(ye=ge/(Ae=r.hypot(ge,me)),ve=me/Ae,this.s[Oe]=Ae,ge=ye*n[Oe]+ve*this.s[Oe+1],this.s[Oe+1]=-ve*n[Oe]+ye*this.s[Oe+1],me=ve*n[Oe+1],n[Oe+1]=ye*n[Oe+1],Oe<this.m-1)for(var xe=0;xe<this.m;xe++)Ae=ye*this.U[xe][Oe]+ve*this.U[xe][Oe+1],this.U[xe][Oe+1]=-ve*this.U[xe][Oe]+ye*this.U[xe][Oe+1],this.U[xe][Oe]=Ae}n[k-2]=ge;break;case 4:if(this.s[q]<=0){this.s[q]=this.s[q]<0?-this.s[q]:0;for(var we=0;we<=F;we++)this.V[we][q]=-this.V[we][q]}for(;q<F&&!(this.s[q]>=this.s[q+1]);){var ke=this.s[q];if(this.s[q]=this.s[q+1],this.s[q+1]=ke,q<this.n-1)for(var Se=0;Se<this.n;Se++)ke=this.V[Se][q+1],this.V[Se][q+1]=this.V[Se][q],this.V[Se][q]=ke;if(q<this.m-1)for(var Te=0;Te<this.m;Te++)ke=this.U[Te][q+1],this.U[Te][q+1]=this.U[Te][q],this.U[Te][q]=ke;q++}k--}}return{U:this.U,V:this.V,S:this.s}},r.hypot=function(e,t){var n=void 0;return Math.abs(e)>Math.abs(t)?(n=t/e,n=Math.abs(e)*Math.sqrt(1+n*n)):0!=t?(n=e/t,n=Math.abs(t)*Math.sqrt(1+n*n)):n=0,n},e.exports=r},function(e,t,n){var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var i=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sequence1=t,this.sequence2=n,this.match_score=r,this.mismatch_penalty=i,this.gap_penalty=o,this.iMax=t.length+1,this.jMax=n.length+1,this.grid=new Array(this.iMax);for(var a=0;a<this.iMax;a++){this.grid[a]=new Array(this.jMax);for(var s=0;s<this.jMax;s++)this.grid[a][s]=0}this.tracebackGrid=new Array(this.iMax);for(var l=0;l<this.iMax;l++){this.tracebackGrid[l]=new Array(this.jMax);for(var c=0;c<this.jMax;c++)this.tracebackGrid[l][c]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return r(e,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var e=1;e<this.jMax;e++)this.grid[0][e]=this.grid[0][e-1]+this.gap_penalty,this.tracebackGrid[0][e]=[!1,!1,!0];for(var t=1;t<this.iMax;t++)this.grid[t][0]=this.grid[t-1][0]+this.gap_penalty,this.tracebackGrid[t][0]=[!1,!0,!1];for(var n=1;n<this.iMax;n++)for(var r=1;r<this.jMax;r++){var i=[this.sequence1[n-1]===this.sequence2[r-1]?this.grid[n-1][r-1]+this.match_score:this.grid[n-1][r-1]+this.mismatch_penalty,this.grid[n-1][r]+this.gap_penalty,this.grid[n][r-1]+this.gap_penalty],o=this.arrayAllMaxIndexes(i);this.grid[n][r]=i[o[0]],this.tracebackGrid[n][r]=[o.includes(0),o.includes(1),o.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var e=[];for(e.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});e[0];){var t=e[0],n=this.tracebackGrid[t.pos[0]][t.pos[1]];n[0]&&e.push({pos:[t.pos[0]-1,t.pos[1]-1],seq1:this.sequence1[t.pos[0]-1]+t.seq1,seq2:this.sequence2[t.pos[1]-1]+t.seq2}),n[1]&&e.push({pos:[t.pos[0]-1,t.pos[1]],seq1:this.sequence1[t.pos[0]-1]+t.seq1,seq2:"-"+t.seq2}),n[2]&&e.push({pos:[t.pos[0],t.pos[1]-1],seq1:"-"+t.seq1,seq2:this.sequence2[t.pos[1]-1]+t.seq2}),0===t.pos[0]&&0===t.pos[1]&&this.alignments.push({sequence1:t.seq1,sequence2:t.seq2}),e.shift()}return this.alignments}},{key:"getAllIndexes",value:function(e,t){for(var n=[],r=-1;-1!==(r=e.indexOf(t,r+1));)n.push(r);return n}},{key:"arrayAllMaxIndexes",value:function(e){return this.getAllIndexes(e,Math.max.apply(null,e))}}]),e}();e.exports=i},function(e,t,n){var r=function(){};r.FDLayout=n(18),r.FDLayoutConstants=n(4),r.FDLayoutEdge=n(19),r.FDLayoutNode=n(20),r.DimensionD=n(21),r.HashMap=n(22),r.HashSet=n(23),r.IGeometry=n(8),r.IMath=n(9),r.Integer=n(10),r.Point=n(12),r.PointD=n(5),r.RandomSeed=n(16),r.RectangleD=n(13),r.Transform=n(17),r.UniqueIDGeneretor=n(14),r.Quicksort=n(25),r.LinkedList=n(11),r.LGraphObject=n(2),r.LGraph=n(6),r.LEdge=n(1),r.LGraphManager=n(7),r.LNode=n(3),r.Layout=n(15),r.LayoutConstants=n(0),r.NeedlemanWunsch=n(27),r.Matrix=n(24),r.SVD=n(26),e.exports=r},function(e,t,n){function r(){this.listeners=[]}var i=r.prototype;i.addListener=function(e,t){this.listeners.push({event:e,callback:t})},i.removeListener=function(e,t){for(var n=this.listeners.length;n>=0;n--){var r=this.listeners[n];r.event===e&&r.callback===t&&this.listeners.splice(n,1)}},i.emit=function(e,t){for(var n=0;n<this.listeners.length;n++){var r=this.listeners[n];e===r.event&&r.callback(t)}},e.exports=r}])})}($In)),$In.exports}var CIn;function QIn(){return CIn||(CIn=1,function(e){!function(t,n){e.exports=n(_In())}(0,function(e){return t={45:(e,t,n)=>{var r={};r.layoutBase=n(551),r.CoSEConstants=n(806),r.CoSEEdge=n(767),r.CoSEGraph=n(880),r.CoSEGraphManager=n(578),r.CoSELayout=n(765),r.CoSENode=n(991),r.ConstraintHandler=n(902),e.exports=r},806:(e,t,n)=>{var r=n(551).FDLayoutConstants;function i(){}for(var o in r)i[o]=r[o];i.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,i.DEFAULT_RADIAL_SEPARATION=r.DEFAULT_EDGE_LENGTH,i.DEFAULT_COMPONENT_SEPERATION=60,i.TILE=!0,i.TILING_PADDING_VERTICAL=10,i.TILING_PADDING_HORIZONTAL=10,i.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,i.ENFORCE_CONSTRAINTS=!0,i.APPLY_LAYOUT=!0,i.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,i.TREE_REDUCTION_ON_INCREMENTAL=!0,i.PURE_INCREMENTAL=i.DEFAULT_INCREMENTAL,e.exports=i},767:(e,t,n)=>{var r=n(551).FDLayoutEdge;function i(e,t,n){r.call(this,e,t,n)}for(var o in i.prototype=Object.create(r.prototype),r)i[o]=r[o];e.exports=i},880:(e,t,n)=>{var r=n(551).LGraph;function i(e,t,n){r.call(this,e,t,n)}for(var o in i.prototype=Object.create(r.prototype),r)i[o]=r[o];e.exports=i},578:(e,t,n)=>{var r=n(551).LGraphManager;function i(e){r.call(this,e)}for(var o in i.prototype=Object.create(r.prototype),r)i[o]=r[o];e.exports=i},765:(e,t,n)=>{var r=n(551).FDLayout,i=n(578),o=n(880),a=n(991),s=n(767),l=n(806),c=n(902),u=n(551).FDLayoutConstants,h=n(551).LayoutConstants,d=n(551).Point,p=n(551).PointD,f=n(551).DimensionD,g=n(551).Layout,m=n(551).Integer,O=n(551).IGeometry,A=n(551).LGraph,y=n(551).Transform,v=n(551).LinkedList;function b(){r.call(this),this.toBeTiled={},this.constraints={}}for(var x in b.prototype=Object.create(r.prototype),r)b[x]=r[x];b.prototype.newGraphManager=function(){var e=new i(this);return this.graphManager=e,e},b.prototype.newGraph=function(e){return new o(null,this.graphManager,e)},b.prototype.newNode=function(e){return new a(this.graphManager,e)},b.prototype.newEdge=function(e){return new s(null,null,e)},b.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.isSubLayout||(l.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=l.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=l.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=u.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=u.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=u.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=u.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},b.prototype.initSpringEmbedder=function(){r.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/u.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},b.prototype.layout=function(){return h.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},b.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental)l.TREE_REDUCTION_ON_INCREMENTAL&&(this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation(),t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)}),this.graphManager.setAllNodesToApplyGravitation(n));else{var e=this.getFlatForest();if(e.length>0)this.positionNodesRadially(e);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(c.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),l.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},b.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}if(this.totalIterations%u.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged()){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}this.coolingCycle++,0==this.layoutQuality?this.coolingAdjuster=this.coolingCycle:1==this.layoutQuality&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var e=new Set(this.getAllNodes()),t=this.nodesWithGravity.filter(function(t){return e.has(t)});this.graphManager.setAllNodesToApplyGravitation(t),this.graphManager.updateBounds(),this.updateGrid(),l.PURE_INCREMENTAL?this.coolingFactor=u.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=u.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),l.PURE_INCREMENTAL?this.coolingFactor=u.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=u.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var n=!this.isTreeGrowing&&!this.isGrowthFinished,r=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(n,r),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},b.prototype.getPositionsData=function(){for(var e=this.graphManager.getAllNodes(),t={},n=0;n<e.length;n++){var r=e[n].rect,i=e[n].id;t[i]={id:i,x:r.getCenterX(),y:r.getCenterY(),w:r.width,h:r.height}}return t},b.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var e=!1;if("during"===u.ANIMATE)this.emit("layoutstarted");else{for(;!e;)e=this.tick();this.graphManager.updateBounds()}},b.prototype.moveNodes=function(){for(var e=this.getAllNodes(),t=0;t<e.length;t++)e[t].calculateDisplacement();for(Object.keys(this.constraints).length>0&&this.updateDisplacements(),t=0;t<e.length;t++)e[t].move()},b.prototype.initConstraintVariables=function(){var e=this;this.idToNodeMap=new Map,this.fixedNodeSet=new Set;for(var t=this.graphManager.getAllNodes(),n=0;n<t.length;n++){var r=t[n];this.idToNodeMap.set(r.id,r)}var i=function t(n){for(var r,i=n.getChild().getNodes(),o=0,a=0;a<i.length;a++)null==(r=i[a]).getChild()?e.fixedNodeSet.has(r.id)&&(o+=100):o+=t(r);return o};if(this.constraints.fixedNodeConstraint)for(this.constraints.fixedNodeConstraint.forEach(function(t){e.fixedNodeSet.add(t.nodeId)}),t=this.graphManager.getAllNodes(),n=0;n<t.length;n++)if(null!=(r=t[n]).getChild()){var o=i(r);o>0&&(r.fixedNodeWeight=o)}if(this.constraints.relativePlacementConstraint){var a=new Map,s=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(t){e.fixedNodesOnHorizontal.add(t),e.fixedNodesOnVertical.add(t)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical){var c=this.constraints.alignmentConstraint.vertical;for(n=0;n<c.length;n++)this.dummyToNodeForVerticalAlignment.set("dummy"+n,[]),c[n].forEach(function(t){a.set(t,"dummy"+n),e.dummyToNodeForVerticalAlignment.get("dummy"+n).push(t),e.fixedNodeSet.has(t)&&e.fixedNodesOnHorizontal.add("dummy"+n)})}if(this.constraints.alignmentConstraint.horizontal){var u=this.constraints.alignmentConstraint.horizontal;for(n=0;n<u.length;n++)this.dummyToNodeForHorizontalAlignment.set("dummy"+n,[]),u[n].forEach(function(t){s.set(t,"dummy"+n),e.dummyToNodeForHorizontalAlignment.get("dummy"+n).push(t),e.fixedNodeSet.has(t)&&e.fixedNodesOnVertical.add("dummy"+n)})}}if(l.RELAX_MOVEMENT_ON_CONSTRAINTS)this.shuffle=function(e){var t,n,r;for(r=e.length-1;r>=2*e.length/3;r--)t=Math.floor(Math.random()*(r+1)),n=e[r],e[r]=e[t],e[t]=n;return e},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(t){if(t.left){var n=a.has(t.left)?a.get(t.left):t.left,r=a.has(t.right)?a.get(t.right):t.right;e.nodesInRelativeHorizontal.includes(n)||(e.nodesInRelativeHorizontal.push(n),e.nodeToRelativeConstraintMapHorizontal.set(n,[]),e.dummyToNodeForVerticalAlignment.has(n)?e.nodeToTempPositionMapHorizontal.set(n,e.idToNodeMap.get(e.dummyToNodeForVerticalAlignment.get(n)[0]).getCenterX()):e.nodeToTempPositionMapHorizontal.set(n,e.idToNodeMap.get(n).getCenterX())),e.nodesInRelativeHorizontal.includes(r)||(e.nodesInRelativeHorizontal.push(r),e.nodeToRelativeConstraintMapHorizontal.set(r,[]),e.dummyToNodeForVerticalAlignment.has(r)?e.nodeToTempPositionMapHorizontal.set(r,e.idToNodeMap.get(e.dummyToNodeForVerticalAlignment.get(r)[0]).getCenterX()):e.nodeToTempPositionMapHorizontal.set(r,e.idToNodeMap.get(r).getCenterX())),e.nodeToRelativeConstraintMapHorizontal.get(n).push({right:r,gap:t.gap}),e.nodeToRelativeConstraintMapHorizontal.get(r).push({left:n,gap:t.gap})}else{var i=s.has(t.top)?s.get(t.top):t.top,o=s.has(t.bottom)?s.get(t.bottom):t.bottom;e.nodesInRelativeVertical.includes(i)||(e.nodesInRelativeVertical.push(i),e.nodeToRelativeConstraintMapVertical.set(i,[]),e.dummyToNodeForHorizontalAlignment.has(i)?e.nodeToTempPositionMapVertical.set(i,e.idToNodeMap.get(e.dummyToNodeForHorizontalAlignment.get(i)[0]).getCenterY()):e.nodeToTempPositionMapVertical.set(i,e.idToNodeMap.get(i).getCenterY())),e.nodesInRelativeVertical.includes(o)||(e.nodesInRelativeVertical.push(o),e.nodeToRelativeConstraintMapVertical.set(o,[]),e.dummyToNodeForHorizontalAlignment.has(o)?e.nodeToTempPositionMapVertical.set(o,e.idToNodeMap.get(e.dummyToNodeForHorizontalAlignment.get(o)[0]).getCenterY()):e.nodeToTempPositionMapVertical.set(o,e.idToNodeMap.get(o).getCenterY())),e.nodeToRelativeConstraintMapVertical.get(i).push({bottom:o,gap:t.gap}),e.nodeToRelativeConstraintMapVertical.get(o).push({top:i,gap:t.gap})}});else{var h=new Map,d=new Map;this.constraints.relativePlacementConstraint.forEach(function(e){if(e.left){var t=a.has(e.left)?a.get(e.left):e.left,n=a.has(e.right)?a.get(e.right):e.right;h.has(t)?h.get(t).push(n):h.set(t,[n]),h.has(n)?h.get(n).push(t):h.set(n,[t])}else{var r=s.has(e.top)?s.get(e.top):e.top,i=s.has(e.bottom)?s.get(e.bottom):e.bottom;d.has(r)?d.get(r).push(i):d.set(r,[i]),d.has(i)?d.get(i).push(r):d.set(i,[r])}});var p=function(e,t){var n=[],r=[],i=new v,o=new Set,a=0;return e.forEach(function(s,l){if(!o.has(l)){n[a]=[],r[a]=!1;var c=l;for(i.push(c),o.add(c),n[a].push(c);0!=i.length;)c=i.shift(),t.has(c)&&(r[a]=!0),e.get(c).forEach(function(e){o.has(e)||(i.push(e),o.add(e),n[a].push(e))});a++}}),{components:n,isFixed:r}},f=p(h,e.fixedNodesOnHorizontal);this.componentsOnHorizontal=f.components,this.fixedComponentsOnHorizontal=f.isFixed;var g=p(d,e.fixedNodesOnVertical);this.componentsOnVertical=g.components,this.fixedComponentsOnVertical=g.isFixed}}},b.prototype.updateDisplacements=function(){var e=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(t){var n=e.idToNodeMap.get(t.nodeId);n.displacementX=0,n.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var t=this.constraints.alignmentConstraint.vertical,n=0;n<t.length;n++){for(var r=0,i=0;i<t[n].length;i++){if(this.fixedNodeSet.has(t[n][i])){r=0;break}r+=this.idToNodeMap.get(t[n][i]).displacementX}var o=r/t[n].length;for(i=0;i<t[n].length;i++)this.idToNodeMap.get(t[n][i]).displacementX=o}if(this.constraints.alignmentConstraint.horizontal){var a=this.constraints.alignmentConstraint.horizontal;for(n=0;n<a.length;n++){var s=0;for(i=0;i<a[n].length;i++){if(this.fixedNodeSet.has(a[n][i])){s=0;break}s+=this.idToNodeMap.get(a[n][i]).displacementY}var c=s/a[n].length;for(i=0;i<a[n].length;i++)this.idToNodeMap.get(a[n][i]).displacementY=c}}}if(this.constraints.relativePlacementConstraint)if(l.RELAX_MOVEMENT_ON_CONSTRAINTS)this.totalIterations%10==0&&(this.shuffle(this.nodesInRelativeHorizontal),this.shuffle(this.nodesInRelativeVertical)),this.nodesInRelativeHorizontal.forEach(function(t){if(!e.fixedNodesOnHorizontal.has(t)){var n=0;n=e.dummyToNodeForVerticalAlignment.has(t)?e.idToNodeMap.get(e.dummyToNodeForVerticalAlignment.get(t)[0]).displacementX:e.idToNodeMap.get(t).displacementX,e.nodeToRelativeConstraintMapHorizontal.get(t).forEach(function(r){var i;r.right?(i=e.nodeToTempPositionMapHorizontal.get(r.right)-e.nodeToTempPositionMapHorizontal.get(t)-n)<r.gap&&(n-=r.gap-i):(i=e.nodeToTempPositionMapHorizontal.get(t)-e.nodeToTempPositionMapHorizontal.get(r.left)+n)<r.gap&&(n+=r.gap-i)}),e.nodeToTempPositionMapHorizontal.set(t,e.nodeToTempPositionMapHorizontal.get(t)+n),e.dummyToNodeForVerticalAlignment.has(t)?e.dummyToNodeForVerticalAlignment.get(t).forEach(function(t){e.idToNodeMap.get(t).displacementX=n}):e.idToNodeMap.get(t).displacementX=n}}),this.nodesInRelativeVertical.forEach(function(t){if(!e.fixedNodesOnHorizontal.has(t)){var n=0;n=e.dummyToNodeForHorizontalAlignment.has(t)?e.idToNodeMap.get(e.dummyToNodeForHorizontalAlignment.get(t)[0]).displacementY:e.idToNodeMap.get(t).displacementY,e.nodeToRelativeConstraintMapVertical.get(t).forEach(function(r){var i;r.bottom?(i=e.nodeToTempPositionMapVertical.get(r.bottom)-e.nodeToTempPositionMapVertical.get(t)-n)<r.gap&&(n-=r.gap-i):(i=e.nodeToTempPositionMapVertical.get(t)-e.nodeToTempPositionMapVertical.get(r.top)+n)<r.gap&&(n+=r.gap-i)}),e.nodeToTempPositionMapVertical.set(t,e.nodeToTempPositionMapVertical.get(t)+n),e.dummyToNodeForHorizontalAlignment.has(t)?e.dummyToNodeForHorizontalAlignment.get(t).forEach(function(t){e.idToNodeMap.get(t).displacementY=n}):e.idToNodeMap.get(t).displacementY=n}});else{for(n=0;n<this.componentsOnHorizontal.length;n++){var u=this.componentsOnHorizontal[n];if(this.fixedComponentsOnHorizontal[n])for(i=0;i<u.length;i++)this.dummyToNodeForVerticalAlignment.has(u[i])?this.dummyToNodeForVerticalAlignment.get(u[i]).forEach(function(t){e.idToNodeMap.get(t).displacementX=0}):this.idToNodeMap.get(u[i]).displacementX=0;else{var h=0,d=0;for(i=0;i<u.length;i++)this.dummyToNodeForVerticalAlignment.has(u[i])?(h+=(f=this.dummyToNodeForVerticalAlignment.get(u[i])).length*this.idToNodeMap.get(f[0]).displacementX,d+=f.length):(h+=this.idToNodeMap.get(u[i]).displacementX,d++);var p=h/d;for(i=0;i<u.length;i++)this.dummyToNodeForVerticalAlignment.has(u[i])?this.dummyToNodeForVerticalAlignment.get(u[i]).forEach(function(t){e.idToNodeMap.get(t).displacementX=p}):this.idToNodeMap.get(u[i]).displacementX=p}}for(n=0;n<this.componentsOnVertical.length;n++)if(u=this.componentsOnVertical[n],this.fixedComponentsOnVertical[n])for(i=0;i<u.length;i++)this.dummyToNodeForHorizontalAlignment.has(u[i])?this.dummyToNodeForHorizontalAlignment.get(u[i]).forEach(function(t){e.idToNodeMap.get(t).displacementY=0}):this.idToNodeMap.get(u[i]).displacementY=0;else{for(h=0,d=0,i=0;i<u.length;i++){var f;this.dummyToNodeForHorizontalAlignment.has(u[i])?(h+=(f=this.dummyToNodeForHorizontalAlignment.get(u[i])).length*this.idToNodeMap.get(f[0]).displacementY,d+=f.length):(h+=this.idToNodeMap.get(u[i]).displacementY,d++)}for(p=h/d,i=0;i<u.length;i++)this.dummyToNodeForHorizontalAlignment.has(u[i])?this.dummyToNodeForHorizontalAlignment.get(u[i]).forEach(function(t){e.idToNodeMap.get(t).displacementY=p}):this.idToNodeMap.get(u[i]).displacementY=p}}},b.prototype.calculateNodesToApplyGravitationTo=function(){var e,t,n=[],r=this.graphManager.getGraphs(),i=r.length;for(t=0;t<i;t++)(e=r[t]).updateConnected(),e.isConnected||(n=n.concat(e.getNodes()));return n},b.prototype.createBendpoints=function(){var e=[];e=e.concat(this.graphManager.getAllEdges());var t,n=new Set;for(t=0;t<e.length;t++){var r=e[t];if(!n.has(r)){var i=r.getSource(),o=r.getTarget();if(i==o)r.getBendpoints().push(new p),r.getBendpoints().push(new p),this.createDummyNodesForBendpoints(r),n.add(r);else{var a=[];if(a=(a=a.concat(i.getEdgeListToNode(o))).concat(o.getEdgeListToNode(i)),!n.has(a[0])){var s;if(a.length>1)for(s=0;s<a.length;s++){var l=a[s];l.getBendpoints().push(new p),this.createDummyNodesForBendpoints(l)}a.forEach(function(e){n.add(e)})}}}if(n.size==e.length)break}},b.prototype.positionNodesRadially=function(e){for(var t=new d(0,0),n=Math.ceil(Math.sqrt(e.length)),r=0,i=0,o=0,a=new p(0,0),s=0;s<e.length;s++){s%n==0&&(o=0,i=r,0!=s&&(i+=l.DEFAULT_COMPONENT_SEPERATION),r=0);var c=e[s],u=g.findCenterOfTree(c);t.x=o,t.y=i,(a=b.radialLayout(c,u,t)).y>r&&(r=Math.floor(a.y)),o=Math.floor(a.x+l.DEFAULT_COMPONENT_SEPERATION)}this.transform(new p(h.WORLD_CENTER_X-a.x/2,h.WORLD_CENTER_Y-a.y/2))},b.radialLayout=function(e,t,n){var r=Math.max(this.maxDiagonalInTree(e),l.DEFAULT_RADIAL_SEPARATION);b.branchRadialLayout(t,null,0,359,0,r);var i=A.calculateBounds(e),o=new y;o.setDeviceOrgX(i.getMinX()),o.setDeviceOrgY(i.getMinY()),o.setWorldOrgX(n.x),o.setWorldOrgY(n.y);for(var a=0;a<e.length;a++)e[a].transform(o);var s=new p(i.getMaxX(),i.getMaxY());return o.inverseTransformPoint(s)},b.branchRadialLayout=function(e,t,n,r,i,o){var a=(r-n+1)/2;a<0&&(a+=180);var s=(a+n)%360*O.TWO_PI/360,l=i*Math.cos(s),c=i*Math.sin(s);e.setCenter(l,c);var u=[],h=(u=u.concat(e.getEdges())).length;null!=t&&h--;for(var d,p=0,f=u.length,g=e.getEdgesBetween(t);g.length>1;){var m=g[0];g.splice(0,1);var A=u.indexOf(m);A>=0&&u.splice(A,1),f--,h--}d=null!=t?(u.indexOf(g[0])+1)%f:0;for(var y=Math.abs(r-n)/h,v=d;p!=h;v=++v%f){var x=u[v].getOtherEnd(e);if(x!=t){var w=(n+p*y)%360,k=(w+y)%360;b.branchRadialLayout(x,e,w,k,i+o,o),p++}}},b.maxDiagonalInTree=function(e){for(var t=m.MIN_VALUE,n=0;n<e.length;n++){var r=e[n].getDiagonal();r>t&&(t=r)}return t},b.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},b.prototype.groupZeroDegreeMembers=function(){var e=this,t={};this.memberGroups={},this.idToDummyNode={};for(var n=[],r=this.graphManager.getAllNodes(),i=0;i<r.length;i++){var o=(s=r[i]).getParent();0!==this.getNodeDegreeWithChildren(s)||null!=o.id&&this.getToBeTiled(o)||n.push(s)}for(i=0;i<n.length;i++){var s,l=(s=n[i]).getParent().id;void 0===t[l]&&(t[l]=[]),t[l]=t[l].concat(s)}Object.keys(t).forEach(function(n){if(t[n].length>1){var r="DummyCompound_"+n;e.memberGroups[r]=t[n];var i=t[n][0].getParent(),o=new a(e.graphManager);o.id=r,o.paddingLeft=i.paddingLeft||0,o.paddingRight=i.paddingRight||0,o.paddingBottom=i.paddingBottom||0,o.paddingTop=i.paddingTop||0,e.idToDummyNode[r]=o;var s=e.getGraphManager().add(e.newGraph(),o),l=i.getChild();l.add(o);for(var c=0;c<t[n].length;c++){var u=t[n][c];l.remove(u),s.add(u)}}})},b.prototype.clearCompounds=function(){var e={},t={};this.performDFSOnCompounds();for(var n=0;n<this.compoundOrder.length;n++)t[this.compoundOrder[n].id]=this.compoundOrder[n],e[this.compoundOrder[n].id]=[].concat(this.compoundOrder[n].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[n].getChild()),this.compoundOrder[n].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(e,t)},b.prototype.clearZeroDegreeMembers=function(){var e=this,t=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(n){var r=e.idToDummyNode[n];if(t[n]=e.tileNodes(e.memberGroups[n],r.paddingLeft+r.paddingRight),r.rect.width=t[n].width,r.rect.height=t[n].height,r.setCenter(t[n].centerX,t[n].centerY),r.labelMarginLeft=0,r.labelMarginTop=0,l.NODE_DIMENSIONS_INCLUDE_LABELS){var i=r.rect.width,o=r.rect.height;r.labelWidth&&("left"==r.labelPosHorizontal?(r.rect.x-=r.labelWidth,r.setWidth(i+r.labelWidth),r.labelMarginLeft=r.labelWidth):"center"==r.labelPosHorizontal&&r.labelWidth>i?(r.rect.x-=(r.labelWidth-i)/2,r.setWidth(r.labelWidth),r.labelMarginLeft=(r.labelWidth-i)/2):"right"==r.labelPosHorizontal&&r.setWidth(i+r.labelWidth)),r.labelHeight&&("top"==r.labelPosVertical?(r.rect.y-=r.labelHeight,r.setHeight(o+r.labelHeight),r.labelMarginTop=r.labelHeight):"center"==r.labelPosVertical&&r.labelHeight>o?(r.rect.y-=(r.labelHeight-o)/2,r.setHeight(r.labelHeight),r.labelMarginTop=(r.labelHeight-o)/2):"bottom"==r.labelPosVertical&&r.setHeight(o+r.labelHeight))}})},b.prototype.repopulateCompounds=function(){for(var e=this.compoundOrder.length-1;e>=0;e--){var t=this.compoundOrder[e],n=t.id,r=t.paddingLeft,i=t.paddingTop,o=t.labelMarginLeft,a=t.labelMarginTop;this.adjustLocations(this.tiledMemberPack[n],t.rect.x,t.rect.y,r,i,o,a)}},b.prototype.repopulateZeroDegreeMembers=function(){var e=this,t=this.tiledZeroDegreePack;Object.keys(t).forEach(function(n){var r=e.idToDummyNode[n],i=r.paddingLeft,o=r.paddingTop,a=r.labelMarginLeft,s=r.labelMarginTop;e.adjustLocations(t[n],r.rect.x,r.rect.y,i,o,a,s)})},b.prototype.getToBeTiled=function(e){var t=e.id;if(null!=this.toBeTiled[t])return this.toBeTiled[t];var n=e.getChild();if(null==n)return this.toBeTiled[t]=!1,!1;for(var r=n.getNodes(),i=0;i<r.length;i++){var o=r[i];if(this.getNodeDegree(o)>0)return this.toBeTiled[t]=!1,!1;if(null!=o.getChild()){if(!this.getToBeTiled(o))return this.toBeTiled[t]=!1,!1}else this.toBeTiled[o.id]=!1}return this.toBeTiled[t]=!0,!0},b.prototype.getNodeDegree=function(e){e.id;for(var t=e.getEdges(),n=0,r=0;r<t.length;r++){var i=t[r];i.getSource().id!==i.getTarget().id&&(n+=1)}return n},b.prototype.getNodeDegreeWithChildren=function(e){var t=this.getNodeDegree(e);if(null==e.getChild())return t;for(var n=e.getChild().getNodes(),r=0;r<n.length;r++){var i=n[r];t+=this.getNodeDegreeWithChildren(i)}return t},b.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},b.prototype.fillCompexOrderByDFS=function(e){for(var t=0;t<e.length;t++){var n=e[t];null!=n.getChild()&&this.fillCompexOrderByDFS(n.getChild().getNodes()),this.getToBeTiled(n)&&this.compoundOrder.push(n)}},b.prototype.adjustLocations=function(e,t,n,r,i,o,a){n+=i+a;for(var s=t+=r+o,l=0;l<e.rows.length;l++){var c=e.rows[l];t=s;for(var u=0,h=0;h<c.length;h++){var d=c[h];d.rect.x=t,d.rect.y=n,t+=d.rect.width+e.horizontalPadding,d.rect.height>u&&(u=d.rect.height)}n+=u+e.verticalPadding}},b.prototype.tileCompoundMembers=function(e,t){var n=this;this.tiledMemberPack=[],Object.keys(e).forEach(function(r){var i=t[r];if(n.tiledMemberPack[r]=n.tileNodes(e[r],i.paddingLeft+i.paddingRight),i.rect.width=n.tiledMemberPack[r].width,i.rect.height=n.tiledMemberPack[r].height,i.setCenter(n.tiledMemberPack[r].centerX,n.tiledMemberPack[r].centerY),i.labelMarginLeft=0,i.labelMarginTop=0,l.NODE_DIMENSIONS_INCLUDE_LABELS){var o=i.rect.width,a=i.rect.height;i.labelWidth&&("left"==i.labelPosHorizontal?(i.rect.x-=i.labelWidth,i.setWidth(o+i.labelWidth),i.labelMarginLeft=i.labelWidth):"center"==i.labelPosHorizontal&&i.labelWidth>o?(i.rect.x-=(i.labelWidth-o)/2,i.setWidth(i.labelWidth),i.labelMarginLeft=(i.labelWidth-o)/2):"right"==i.labelPosHorizontal&&i.setWidth(o+i.labelWidth)),i.labelHeight&&("top"==i.labelPosVertical?(i.rect.y-=i.labelHeight,i.setHeight(a+i.labelHeight),i.labelMarginTop=i.labelHeight):"center"==i.labelPosVertical&&i.labelHeight>a?(i.rect.y-=(i.labelHeight-a)/2,i.setHeight(i.labelHeight),i.labelMarginTop=(i.labelHeight-a)/2):"bottom"==i.labelPosVertical&&i.setHeight(a+i.labelHeight))}})},b.prototype.tileNodes=function(e,t){var n=this.tileNodesByFavoringDim(e,t,!0),r=this.tileNodesByFavoringDim(e,t,!1),i=this.getOrgRatio(n);return this.getOrgRatio(r)<i?r:n},b.prototype.getOrgRatio=function(e){var t=e.width/e.height;return t<1&&(t=1/t),t},b.prototype.calcIdealRowWidth=function(e,t){var n=l.TILING_PADDING_VERTICAL,r=l.TILING_PADDING_HORIZONTAL,i=e.length,o=0,a=0,s=0;e.forEach(function(e){o+=e.getWidth(),a+=e.getHeight(),e.getWidth()>s&&(s=e.getWidth())});var c,u=o/i,h=a/i,d=Math.pow(n-r,2)+4*(u+r)*(h+n)*i,p=(r-n+Math.sqrt(d))/(2*(u+r));t?(c=Math.ceil(p))==p&&c++:c=Math.floor(p);var f=c*(u+r)-r;return s>f&&(f=s),f+=2*r},b.prototype.tileNodesByFavoringDim=function(e,t,n){var r=l.TILING_PADDING_VERTICAL,i=l.TILING_PADDING_HORIZONTAL,o=l.TILING_COMPARE_BY,a={rows:[],rowWidth:[],rowHeight:[],width:0,height:t,verticalPadding:r,horizontalPadding:i,centerX:0,centerY:0};o&&(a.idealRowWidth=this.calcIdealRowWidth(e,n));var s=function(e){return e.rect.width*e.rect.height},c=function(e,t){return s(t)-s(e)};e.sort(function(e,t){var n=c;return a.idealRowWidth?(n=o)(e.id,t.id):n(e,t)});for(var u=0,h=0,d=0;d<e.length;d++)u+=(p=e[d]).getCenterX(),h+=p.getCenterY();for(a.centerX=u/e.length,a.centerY=h/e.length,d=0;d<e.length;d++){var p=e[d];if(0==a.rows.length)this.insertNodeToRow(a,p,0,t);else if(this.canAddHorizontal(a,p.rect.width,p.rect.height)){var f=a.rows.length-1;a.idealRowWidth||(f=this.getShortestRowIndex(a)),this.insertNodeToRow(a,p,f,t)}else this.insertNodeToRow(a,p,a.rows.length,t);this.shiftToLastRow(a)}return a},b.prototype.insertNodeToRow=function(e,t,n,r){var i=r;n==e.rows.length&&(e.rows.push([]),e.rowWidth.push(i),e.rowHeight.push(0));var o=e.rowWidth[n]+t.rect.width;e.rows[n].length>0&&(o+=e.horizontalPadding),e.rowWidth[n]=o,e.width<o&&(e.width=o);var a=t.rect.height;n>0&&(a+=e.verticalPadding);var s=0;a>e.rowHeight[n]&&(s=e.rowHeight[n],e.rowHeight[n]=a,s=e.rowHeight[n]-s),e.height+=s,e.rows[n].push(t)},b.prototype.getShortestRowIndex=function(e){for(var t=-1,n=Number.MAX_VALUE,r=0;r<e.rows.length;r++)e.rowWidth[r]<n&&(t=r,n=e.rowWidth[r]);return t},b.prototype.getLongestRowIndex=function(e){for(var t=-1,n=Number.MIN_VALUE,r=0;r<e.rows.length;r++)e.rowWidth[r]>n&&(t=r,n=e.rowWidth[r]);return t},b.prototype.canAddHorizontal=function(e,t,n){if(e.idealRowWidth){var r=e.rows.length-1;return e.rowWidth[r]+t+e.horizontalPadding<=e.idealRowWidth}var i=this.getShortestRowIndex(e);if(i<0)return!0;var o=e.rowWidth[i];if(o+e.horizontalPadding+t<=e.width)return!0;var a,s,l=0;return e.rowHeight[i]<n&&i>0&&(l=n+e.verticalPadding-e.rowHeight[i]),a=e.width-o>=t+e.horizontalPadding?(e.height+l)/(o+t+e.horizontalPadding):(e.height+l)/e.width,l=n+e.verticalPadding,(s=e.width<t?(e.height+l)/t:(e.height+l)/e.width)<1&&(s=1/s),a<1&&(a=1/a),a<s},b.prototype.shiftToLastRow=function(e){var t=this.getLongestRowIndex(e),n=e.rowWidth.length-1,r=e.rows[t],i=r[r.length-1],o=i.width+e.horizontalPadding;if(e.width-e.rowWidth[n]>o&&t!=n){r.splice(-1,1),e.rows[n].push(i),e.rowWidth[t]=e.rowWidth[t]-o,e.rowWidth[n]=e.rowWidth[n]+o,e.width=e.rowWidth[instance.getLongestRowIndex(e)];for(var a=Number.MIN_VALUE,s=0;s<r.length;s++)r[s].height>a&&(a=r[s].height);t>0&&(a+=e.verticalPadding);var l=e.rowHeight[t]+e.rowHeight[n];e.rowHeight[t]=a,e.rowHeight[n]<i.height+e.verticalPadding&&(e.rowHeight[n]=i.height+e.verticalPadding);var c=e.rowHeight[t]+e.rowHeight[n];e.height+=c-l,this.shiftToLastRow(e)}},b.prototype.tilingPreLayout=function(){l.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},b.prototype.tilingPostLayout=function(){l.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},b.prototype.reduceTrees=function(){for(var e,t=[],n=!0;n;){var r=this.graphManager.getAllNodes(),i=[];n=!1;for(var o=0;o<r.length;o++)if(1==(e=r[o]).getEdges().length&&!e.getEdges()[0].isInterGraph&&null==e.getChild()){if(l.PURE_INCREMENTAL){var a=e.getEdges()[0].getOtherEnd(e),s=new f(e.getCenterX()-a.getCenterX(),e.getCenterY()-a.getCenterY());i.push([e,e.getEdges()[0],e.getOwner(),s])}else i.push([e,e.getEdges()[0],e.getOwner()]);n=!0}if(1==n){for(var c=[],u=0;u<i.length;u++)1==i[u][0].getEdges().length&&(c.push(i[u]),i[u][0].getOwner().remove(i[u][0]));t.push(c),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=t},b.prototype.growTree=function(e){for(var t,n=e[e.length-1],r=0;r<n.length;r++)t=n[r],this.findPlaceforPrunedNode(t),t[2].add(t[0]),t[2].add(t[1],t[1].source,t[1].target);e.splice(e.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},b.prototype.findPlaceforPrunedNode=function(e){var t,n,r=e[0];if(n=r==e[1].source?e[1].target:e[1].source,l.PURE_INCREMENTAL)r.setCenter(n.getCenterX()+e[3].getWidth(),n.getCenterY()+e[3].getHeight());else{var i=n.startX,o=n.finishX,a=n.startY,s=n.finishY,c=[0,0,0,0];if(a>0)for(var h=i;h<=o;h++)c[0]+=this.grid[h][a-1].length+this.grid[h][a].length-1;if(o<this.grid.length-1)for(h=a;h<=s;h++)c[1]+=this.grid[o+1][h].length+this.grid[o][h].length-1;if(s<this.grid[0].length-1)for(h=i;h<=o;h++)c[2]+=this.grid[h][s+1].length+this.grid[h][s].length-1;if(i>0)for(h=a;h<=s;h++)c[3]+=this.grid[i-1][h].length+this.grid[i][h].length-1;for(var d,p,f=m.MAX_VALUE,g=0;g<c.length;g++)c[g]<f?(f=c[g],d=1,p=g):c[g]==f&&d++;if(3==d&&0==f)0==c[0]&&0==c[1]&&0==c[2]?t=1:0==c[0]&&0==c[1]&&0==c[3]?t=0:0==c[0]&&0==c[2]&&0==c[3]?t=3:0==c[1]&&0==c[2]&&0==c[3]&&(t=2);else if(2==d&&0==f){var O=Math.floor(2*Math.random());t=0==c[0]&&0==c[1]?0==O?0:1:0==c[0]&&0==c[2]?0==O?0:2:0==c[0]&&0==c[3]?0==O?0:3:0==c[1]&&0==c[2]?0==O?1:2:0==c[1]&&0==c[3]?0==O?1:3:0==O?2:3}else t=4==d&&0==f?O=Math.floor(4*Math.random()):p;0==t?r.setCenter(n.getCenterX(),n.getCenterY()-n.getHeight()/2-u.DEFAULT_EDGE_LENGTH-r.getHeight()/2):1==t?r.setCenter(n.getCenterX()+n.getWidth()/2+u.DEFAULT_EDGE_LENGTH+r.getWidth()/2,n.getCenterY()):2==t?r.setCenter(n.getCenterX(),n.getCenterY()+n.getHeight()/2+u.DEFAULT_EDGE_LENGTH+r.getHeight()/2):r.setCenter(n.getCenterX()-n.getWidth()/2-u.DEFAULT_EDGE_LENGTH-r.getWidth()/2,n.getCenterY())}},e.exports=b},991:(e,t,n)=>{var r=n(551).FDLayoutNode,i=n(551).IMath;function o(e,t,n,i){r.call(this,e,t,n,i)}for(var a in o.prototype=Object.create(r.prototype),r)o[a]=r[a];o.prototype.calculateDisplacement=function(){var e=this.graphManager.getLayout();null!=this.getChild()&&this.fixedNodeWeight?(this.displacementX+=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementX=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementX)),Math.abs(this.displacementY)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementY=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},o.prototype.propogateDisplacementToChildren=function(e,t){for(var n,r=this.getChild().getNodes(),i=0;i<r.length;i++)null==(n=r[i]).getChild()?(n.displacementX+=e,n.displacementY+=t):n.propogateDisplacementToChildren(e,t)},o.prototype.move=function(){var e=this.graphManager.getLayout();null!=this.child&&0!=this.child.getNodes().length||(this.moveBy(this.displacementX,this.displacementY),e.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY)),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},o.prototype.setPred1=function(e){this.pred1=e},o.prototype.getPred1=function(){return pred1},o.prototype.getPred2=function(){return pred2},o.prototype.setNext=function(e){this.next=e},o.prototype.getNext=function(){return next},o.prototype.setProcessed=function(e){this.processed=e},o.prototype.isProcessed=function(){return processed},e.exports=o},902:(e,t,n)=>{function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i=n(806),o=n(551).LinkedList,a=n(551).Matrix,s=n(551).SVD;function l(){}l.handleConstraints=function(e){var t={};t.fixedNodeConstraint=e.constraints.fixedNodeConstraint,t.alignmentConstraint=e.constraints.alignmentConstraint,t.relativePlacementConstraint=e.constraints.relativePlacementConstraint;for(var n=new Map,l=new Map,c=[],u=[],h=e.getAllNodes(),d=0,p=0;p<h.length;p++){var f=h[p];null==f.getChild()&&(l.set(f.id,d++),c.push(f.getCenterX()),u.push(f.getCenterY()),n.set(f.id,f))}t.relativePlacementConstraint&&t.relativePlacementConstraint.forEach(function(e){e.gap||0==e.gap||(e.left?e.gap=i.DEFAULT_EDGE_LENGTH+n.get(e.left).getWidth()/2+n.get(e.right).getWidth()/2:e.gap=i.DEFAULT_EDGE_LENGTH+n.get(e.top).getHeight()/2+n.get(e.bottom).getHeight()/2)});var g=function(e){var t=0,n=0;return e.forEach(function(e){t+=c[l.get(e)],n+=u[l.get(e)]}),{x:t/e.size,y:n/e.size}},m=function(e,t,n,i,a){var s=new Map;e.forEach(function(e,t){s.set(t,0)}),e.forEach(function(e,t){e.forEach(function(e){s.set(e.id,s.get(e.id)+1)})});var h=new Map,d=new Map,p=new o;s.forEach(function(e,r){0==e?(p.push(r),n||("horizontal"==t?h.set(r,l.has(r)?c[l.get(r)]:i.get(r)):h.set(r,l.has(r)?u[l.get(r)]:i.get(r)))):h.set(r,Number.NEGATIVE_INFINITY),n&&d.set(r,new Set([r]))}),n&&a.forEach(function(e){var r=[];if(e.forEach(function(e){n.has(e)&&r.push(e)}),r.length>0){var o=0;r.forEach(function(e){"horizontal"==t?(h.set(e,l.has(e)?c[l.get(e)]:i.get(e)),o+=h.get(e)):(h.set(e,l.has(e)?u[l.get(e)]:i.get(e)),o+=h.get(e))}),o/=r.length,e.forEach(function(e){n.has(e)||h.set(e,o)})}else{var a=0;e.forEach(function(e){a+="horizontal"==t?l.has(e)?c[l.get(e)]:i.get(e):l.has(e)?u[l.get(e)]:i.get(e)}),a/=e.length,e.forEach(function(e){h.set(e,a)})}});for(var f=function(){var r=p.shift();e.get(r).forEach(function(e){if(h.get(e.id)<h.get(r)+e.gap)if(n&&n.has(e.id)){var o=void 0;if(o="horizontal"==t?l.has(e.id)?c[l.get(e.id)]:i.get(e.id):l.has(e.id)?u[l.get(e.id)]:i.get(e.id),h.set(e.id,o),o<h.get(r)+e.gap){var a=h.get(r)+e.gap-o;d.get(r).forEach(function(e){h.set(e,h.get(e)-a)})}}else h.set(e.id,h.get(r)+e.gap);s.set(e.id,s.get(e.id)-1),0==s.get(e.id)&&p.push(e.id),n&&d.set(e.id,function(e,t){var n=new Set(e),r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;n.add(l)}}catch(c){i=!0,o=c}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(d.get(r),d.get(e.id)))})};0!=p.length;)f();if(n){var g=new Set;e.forEach(function(e,t){0==e.length&&g.add(t)});var m=[];d.forEach(function(e,t){if(g.has(t)){var i=!1,o=!0,a=!1,s=void 0;try{for(var l,c=e[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var u=l.value;n.has(u)&&(i=!0)}}catch(p){a=!0,s=p}finally{try{!o&&c.return&&c.return()}finally{if(a)throw s}}if(!i){var h=!1,d=void 0;m.forEach(function(t,n){t.has([].concat(r(e))[0])&&(h=!0,d=n)}),h?e.forEach(function(e){m[d].add(e)}):m.push(new Set(e))}}}),m.forEach(function(e,n){var r=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY,s=Number.NEGATIVE_INFINITY,d=!0,p=!1,f=void 0;try{for(var g,m=e[Symbol.iterator]();!(d=(g=m.next()).done);d=!0){var O=g.value,A=void 0;A="horizontal"==t?l.has(O)?c[l.get(O)]:i.get(O):l.has(O)?u[l.get(O)]:i.get(O);var y=h.get(O);A<r&&(r=A),A>a&&(a=A),y<o&&(o=y),y>s&&(s=y)}}catch($){p=!0,f=$}finally{try{!d&&m.return&&m.return()}finally{if(p)throw f}}var v=(r+a)/2-(o+s)/2,b=!0,x=!1,w=void 0;try{for(var k,S=e[Symbol.iterator]();!(b=(k=S.next()).done);b=!0){var T=k.value;h.set(T,h.get(T)+v)}}catch($){x=!0,w=$}finally{try{!b&&S.return&&S.return()}finally{if(x)throw w}}})}return h},O=function(e){var t=0,n=0,r=0,i=0;if(e.forEach(function(e){e.left?c[l.get(e.left)]-c[l.get(e.right)]>=0?t++:n++:u[l.get(e.top)]-u[l.get(e.bottom)]>=0?r++:i++}),t>n&&r>i)for(var o=0;o<l.size;o++)c[o]=-1*c[o],u[o]=-1*u[o];else if(t>n)for(var a=0;a<l.size;a++)c[a]=-1*c[a];else if(r>i)for(var s=0;s<l.size;s++)u[s]=-1*u[s]},A=function(e){var t=[],n=new o,r=new Set,i=0;return e.forEach(function(o,a){if(!r.has(a)){t[i]=[];var s=a;for(n.push(s),r.add(s),t[i].push(s);0!=n.length;)s=n.shift(),e.get(s).forEach(function(e){r.has(e.id)||(n.push(e.id),r.add(e.id),t[i].push(e.id))});i++}}),t},y=function(e){var t=new Map;return e.forEach(function(e,n){t.set(n,[])}),e.forEach(function(e,n){e.forEach(function(e){t.get(n).push(e),t.get(e.id).push({id:n,gap:e.gap,direction:e.direction})})}),t},v=function(e){var t=new Map;return e.forEach(function(e,n){t.set(n,[])}),e.forEach(function(e,n){e.forEach(function(e){t.get(e.id).push({id:n,gap:e.gap,direction:e.direction})})}),t},b=[],x=[],w=!1,k=!1,S=new Set,T=new Map,$=new Map,_=[];if(t.fixedNodeConstraint&&t.fixedNodeConstraint.forEach(function(e){S.add(e.nodeId)}),t.relativePlacementConstraint&&(t.relativePlacementConstraint.forEach(function(e){e.left?(T.has(e.left)?T.get(e.left).push({id:e.right,gap:e.gap,direction:"horizontal"}):T.set(e.left,[{id:e.right,gap:e.gap,direction:"horizontal"}]),T.has(e.right)||T.set(e.right,[])):(T.has(e.top)?T.get(e.top).push({id:e.bottom,gap:e.gap,direction:"vertical"}):T.set(e.top,[{id:e.bottom,gap:e.gap,direction:"vertical"}]),T.has(e.bottom)||T.set(e.bottom,[]))}),$=y(T),_=A($)),i.TRANSFORM_ON_CONSTRAINT_HANDLING){if(t.fixedNodeConstraint&&t.fixedNodeConstraint.length>1)t.fixedNodeConstraint.forEach(function(e,t){b[t]=[e.position.x,e.position.y],x[t]=[c[l.get(e.nodeId)],u[l.get(e.nodeId)]]}),w=!0;else if(t.alignmentConstraint)!function(){var e=0;if(t.alignmentConstraint.vertical){for(var n=t.alignmentConstraint.vertical,i=function(t){var i=new Set;n[t].forEach(function(e){i.add(e)});var o=new Set([].concat(r(i)).filter(function(e){return S.has(e)})),a=void 0;a=o.size>0?c[l.get(o.values().next().value)]:g(i).x,n[t].forEach(function(t){b[e]=[a,u[l.get(t)]],x[e]=[c[l.get(t)],u[l.get(t)]],e++})},o=0;o<n.length;o++)i(o);w=!0}if(t.alignmentConstraint.horizontal){for(var a=t.alignmentConstraint.horizontal,s=function(t){var n=new Set;a[t].forEach(function(e){n.add(e)});var i=new Set([].concat(r(n)).filter(function(e){return S.has(e)})),o=void 0;o=i.size>0?c[l.get(i.values().next().value)]:g(n).y,a[t].forEach(function(t){b[e]=[c[l.get(t)],o],x[e]=[c[l.get(t)],u[l.get(t)]],e++})},h=0;h<a.length;h++)s(h);w=!0}t.relativePlacementConstraint&&(k=!0)}();else if(t.relativePlacementConstraint){for(var C=0,Q=0,P=0;P<_.length;P++)_[P].length>C&&(C=_[P].length,Q=P);if(C<$.size/2)O(t.relativePlacementConstraint),w=!1,k=!1;else{var E=new Map,R=new Map,B=[];_[Q].forEach(function(e){T.get(e).forEach(function(t){"horizontal"==t.direction?(E.has(e)?E.get(e).push(t):E.set(e,[t]),E.has(t.id)||E.set(t.id,[]),B.push({left:e,right:t.id})):(R.has(e)?R.get(e).push(t):R.set(e,[t]),R.has(t.id)||R.set(t.id,[]),B.push({top:e,bottom:t.id}))})}),O(B),k=!1;var I=m(E,"horizontal"),L=m(R,"vertical");_[Q].forEach(function(e,t){x[t]=[c[l.get(e)],u[l.get(e)]],b[t]=[],I.has(e)?b[t][0]=I.get(e):b[t][0]=c[l.get(e)],L.has(e)?b[t][1]=L.get(e):b[t][1]=u[l.get(e)]}),w=!0}}if(w){for(var D,M=a.transpose(b),N=a.transpose(x),X=0;X<M.length;X++)M[X]=a.multGamma(M[X]),N[X]=a.multGamma(N[X]);var F=a.multMat(M,a.transpose(N)),U=s.svd(F);D=a.multMat(U.V,a.transpose(U.U));for(var z=0;z<l.size;z++){var q=[c[z],u[z]],V=[D[0][0],D[1][0]],W=[D[0][1],D[1][1]];c[z]=a.dotProduct(q,V),u[z]=a.dotProduct(q,W)}k&&O(t.relativePlacementConstraint)}}if(i.ENFORCE_CONSTRAINTS){if(t.fixedNodeConstraint&&t.fixedNodeConstraint.length>0){var j={x:0,y:0};t.fixedNodeConstraint.forEach(function(e,t){var n,r,i={x:c[l.get(e.nodeId)],y:u[l.get(e.nodeId)]},o=e.position,a=(r=i,{x:(n=o).x-r.x,y:n.y-r.y});j.x+=a.x,j.y+=a.y}),j.x/=t.fixedNodeConstraint.length,j.y/=t.fixedNodeConstraint.length,c.forEach(function(e,t){c[t]+=j.x}),u.forEach(function(e,t){u[t]+=j.y}),t.fixedNodeConstraint.forEach(function(e){c[l.get(e.nodeId)]=e.position.x,u[l.get(e.nodeId)]=e.position.y})}if(t.alignmentConstraint){if(t.alignmentConstraint.vertical)for(var Y=t.alignmentConstraint.vertical,Z=function(e){var t=new Set;Y[e].forEach(function(e){t.add(e)});var n=new Set([].concat(r(t)).filter(function(e){return S.has(e)})),i=void 0;i=n.size>0?c[l.get(n.values().next().value)]:g(t).x,t.forEach(function(e){S.has(e)||(c[l.get(e)]=i)})},G=0;G<Y.length;G++)Z(G);if(t.alignmentConstraint.horizontal)for(var H=t.alignmentConstraint.horizontal,K=function(e){var t=new Set;H[e].forEach(function(e){t.add(e)});var n=new Set([].concat(r(t)).filter(function(e){return S.has(e)})),i=void 0;i=n.size>0?u[l.get(n.values().next().value)]:g(t).y,t.forEach(function(e){S.has(e)||(u[l.get(e)]=i)})},J=0;J<H.length;J++)K(J)}t.relativePlacementConstraint&&function(){var e=new Map,n=new Map,r=new Map,i=new Map,o=new Map,a=new Map,s=new Set,h=new Set;if(S.forEach(function(e){s.add(e),h.add(e)}),t.alignmentConstraint){if(t.alignmentConstraint.vertical)for(var d=t.alignmentConstraint.vertical,p=function(t){r.set("dummy"+t,[]),d[t].forEach(function(n){e.set(n,"dummy"+t),r.get("dummy"+t).push(n),S.has(n)&&s.add("dummy"+t)}),o.set("dummy"+t,c[l.get(d[t][0])])},f=0;f<d.length;f++)p(f);if(t.alignmentConstraint.horizontal)for(var g=t.alignmentConstraint.horizontal,O=function(e){i.set("dummy"+e,[]),g[e].forEach(function(t){n.set(t,"dummy"+e),i.get("dummy"+e).push(t),S.has(t)&&h.add("dummy"+e)}),a.set("dummy"+e,u[l.get(g[e][0])])},b=0;b<g.length;b++)O(b)}var x=new Map,w=new Map,k=function(t){T.get(t).forEach(function(r){var i=void 0,o=void 0;"horizontal"==r.direction?(i=e.get(t)?e.get(t):t,o=e.get(r.id)?{id:e.get(r.id),gap:r.gap,direction:r.direction}:r,x.has(i)?x.get(i).push(o):x.set(i,[o]),x.has(o.id)||x.set(o.id,[])):(i=n.get(t)?n.get(t):t,o=n.get(r.id)?{id:n.get(r.id),gap:r.gap,direction:r.direction}:r,w.has(i)?w.get(i).push(o):w.set(i,[o]),w.has(o.id)||w.set(o.id,[]))})},$=!0,_=!1,C=void 0;try{for(var Q,P=T.keys()[Symbol.iterator]();!($=(Q=P.next()).done);$=!0)k(Q.value)}catch(ee){_=!0,C=ee}finally{try{!$&&P.return&&P.return()}finally{if(_)throw C}}var E=y(x),R=y(w),B=A(E),I=A(R),L=v(x),D=v(w),M=[],N=[];B.forEach(function(e,t){M[t]=[],e.forEach(function(e){0==L.get(e).length&&M[t].push(e)})}),I.forEach(function(e,t){N[t]=[],e.forEach(function(e){0==D.get(e).length&&N[t].push(e)})});var X=m(x,"horizontal",s,o,M),F=m(w,"vertical",h,a,N),U=function(e){r.get(e)?r.get(e).forEach(function(t){c[l.get(t)]=X.get(e)}):c[l.get(e)]=X.get(e)},z=!0,q=!1,V=void 0;try{for(var W,j=X.keys()[Symbol.iterator]();!(z=(W=j.next()).done);z=!0)U(W.value)}catch(ee){q=!0,V=ee}finally{try{!z&&j.return&&j.return()}finally{if(q)throw V}}var Y=function(e){i.get(e)?i.get(e).forEach(function(t){u[l.get(t)]=F.get(e)}):u[l.get(e)]=F.get(e)},Z=!0,G=!1,H=void 0;try{for(var K,J=F.keys()[Symbol.iterator]();!(Z=(K=J.next()).done);Z=!0)Y(K.value)}catch(ee){G=!0,H=ee}finally{try{!Z&&J.return&&J.return()}finally{if(G)throw H}}}()}for(var ee=0;ee<h.length;ee++){var te=h[ee];null==te.getChild()&&te.setCenter(c[l.get(te.id)],u[l.get(te.id)])}},e.exports=l},551:t=>{t.exports=e}},n={},function e(r){var i=n[r];if(void 0!==i)return i.exports;var o=n[r]={exports:{}};return t[r](o,o.exports,e),o.exports}(45);var t,n})}(TIn)),TIn.exports}var PIn;var EIn=(PIn||(PIn=1,function(e){!function(t,n){e.exports=n(QIn())}(0,function(e){return t={658:e=>{e.exports=null!=Object.assign?Object.assign.bind(Object):function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.forEach(function(t){Object.keys(t).forEach(function(n){return e[n]=t[n]})}),e}},548:(e,t,n)=>{var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=n(140).layoutBase.LinkedList,o={getTopMostNodes:function(e){for(var t={},n=0;n<e.length;n++)t[e[n].id()]=!0;return e.filter(function(e,n){"number"==typeof e&&(e=n);for(var r=e.parent()[0];null!=r;){if(t[r.id()])return!1;r=r.parent()[0]}return!0})},connectComponents:function(e,t,n,r){var o=new i,a=new Set,s=[],l=void 0,c=void 0,u=void 0,h=!1,d=1,p=[],f=[],g=function(){var r=e.collection();f.push(r);var i=n[0],g=e.collection();g.merge(i).merge(i.descendants().intersection(t)),s.push(i),g.forEach(function(e){o.push(e),a.add(e),r.merge(e)});for(var m=function(){i=o.shift();var c=e.collection();i.neighborhood().nodes().forEach(function(e){t.intersection(i.edgesWith(e)).length>0&&c.merge(e)});for(var u=0;u<c.length;u++){var h=c[u];null==(l=n.intersection(h.union(h.ancestors())))||a.has(l[0])||l.union(l.descendants()).forEach(function(e){o.push(e),a.add(e),r.merge(e),n.has(e)&&s.push(e)})}};0!=o.length;)m();if(r.forEach(function(e){t.intersection(e.connectedEdges()).forEach(function(e){r.has(e.source())&&r.has(e.target())&&r.merge(e)})}),s.length==n.length&&(h=!0),!h||h&&d>1){c=s[0],u=c.connectedEdges().length,s.forEach(function(e){e.connectedEdges().length<u&&(u=e.connectedEdges().length,c=e)}),p.push(c.id());var O=e.collection();O.merge(s[0]),s.forEach(function(e){O.merge(e)}),s=[],n=n.difference(O),d++}};do{g()}while(!h);return r&&p.length>0&&r.set("dummy"+(r.size+1),p),f},relocateComponent:function(e,t,n){if(!n.fixedNodeConstraint){var i=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY;if("draft"==n.quality){var l=!0,c=!1,u=void 0;try{for(var h,d=t.nodeIndexes[Symbol.iterator]();!(l=(h=d.next()).done);l=!0){var p=h.value,f=r(p,2),g=f[0],m=f[1],O=n.cy.getElementById(g);if(O){var A=O.boundingBox(),y=t.xCoords[m]-A.w/2,v=t.xCoords[m]+A.w/2,b=t.yCoords[m]-A.h/2,x=t.yCoords[m]+A.h/2;y<i&&(i=y),v>o&&(o=v),b<a&&(a=b),x>s&&(s=x)}}}catch($){c=!0,u=$}finally{try{!l&&d.return&&d.return()}finally{if(c)throw u}}var w=e.x-(o+i)/2,k=e.y-(s+a)/2;t.xCoords=t.xCoords.map(function(e){return e+w}),t.yCoords=t.yCoords.map(function(e){return e+k})}else{Object.keys(t).forEach(function(e){var n=t[e],r=n.getRect().x,l=n.getRect().x+n.getRect().width,c=n.getRect().y,u=n.getRect().y+n.getRect().height;r<i&&(i=r),l>o&&(o=l),c<a&&(a=c),u>s&&(s=u)});var S=e.x-(o+i)/2,T=e.y-(s+a)/2;Object.keys(t).forEach(function(e){var n=t[e];n.setCenter(n.getCenterX()+S,n.getCenterY()+T)})}}},calcBoundingBox:function(e,t,n,r){for(var i=Number.MAX_SAFE_INTEGER,o=Number.MIN_SAFE_INTEGER,a=Number.MAX_SAFE_INTEGER,s=Number.MIN_SAFE_INTEGER,l=void 0,c=void 0,u=void 0,h=void 0,d=e.descendants().not(":parent"),p=d.length,f=0;f<p;f++){var g=d[f];i>(l=t[r.get(g.id())]-g.width()/2)&&(i=l),o<(c=t[r.get(g.id())]+g.width()/2)&&(o=c),a>(u=n[r.get(g.id())]-g.height()/2)&&(a=u),s<(h=n[r.get(g.id())]+g.height()/2)&&(s=h)}var m={};return m.topLeftX=i,m.topLeftY=a,m.width=o-i,m.height=s-a,m},calcParentsWithoutChildren:function(e,t){var n=e.collection();return t.nodes(":parent").forEach(function(e){var t=!1;e.children().forEach(function(e){"none"!=e.css("display")&&(t=!0)}),t||n.merge(e)}),n}};e.exports=o},816:(e,t,n)=>{var r=n(548),i=n(140).CoSELayout,o=n(140).CoSENode,a=n(140).layoutBase.PointD,s=n(140).layoutBase.DimensionD,l=n(140).layoutBase.LayoutConstants,c=n(140).layoutBase.FDLayoutConstants,u=n(140).CoSEConstants;e.exports={coseLayout:function(e,t){var n=e.cy,h=e.eles,d=h.nodes(),p=h.edges(),f=void 0,g=void 0,m=void 0,O={};e.randomize&&(f=t.nodeIndexes,g=t.xCoords,m=t.yCoords);var A=function(e){return"function"==typeof e},y=function(e,t){return A(e)?e(t):e},v=r.calcParentsWithoutChildren(n,h);null!=e.nestingFactor&&(u.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=e.nestingFactor),null!=e.gravity&&(u.DEFAULT_GRAVITY_STRENGTH=c.DEFAULT_GRAVITY_STRENGTH=e.gravity),null!=e.numIter&&(u.MAX_ITERATIONS=c.MAX_ITERATIONS=e.numIter),null!=e.gravityRange&&(u.DEFAULT_GRAVITY_RANGE_FACTOR=c.DEFAULT_GRAVITY_RANGE_FACTOR=e.gravityRange),null!=e.gravityCompound&&(u.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH=e.gravityCompound),null!=e.gravityRangeCompound&&(u.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=e.gravityRangeCompound),null!=e.initialEnergyOnIncremental&&(u.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.DEFAULT_COOLING_FACTOR_INCREMENTAL=e.initialEnergyOnIncremental),null!=e.tilingCompareBy&&(u.TILING_COMPARE_BY=e.tilingCompareBy),"proof"==e.quality?l.QUALITY=2:l.QUALITY=0,u.NODE_DIMENSIONS_INCLUDE_LABELS=c.NODE_DIMENSIONS_INCLUDE_LABELS=l.NODE_DIMENSIONS_INCLUDE_LABELS=e.nodeDimensionsIncludeLabels,u.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=l.DEFAULT_INCREMENTAL=!e.randomize,u.ANIMATE=c.ANIMATE=l.ANIMATE=e.animate,u.TILE=e.tile,u.TILING_PADDING_VERTICAL="function"==typeof e.tilingPaddingVertical?e.tilingPaddingVertical.call():e.tilingPaddingVertical,u.TILING_PADDING_HORIZONTAL="function"==typeof e.tilingPaddingHorizontal?e.tilingPaddingHorizontal.call():e.tilingPaddingHorizontal,u.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=l.DEFAULT_INCREMENTAL=!0,u.PURE_INCREMENTAL=!e.randomize,l.DEFAULT_UNIFORM_LEAF_NODE_SIZES=e.uniformNodeDimensions,"transformed"==e.step&&(u.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,u.ENFORCE_CONSTRAINTS=!1,u.APPLY_LAYOUT=!1),"enforced"==e.step&&(u.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,u.ENFORCE_CONSTRAINTS=!0,u.APPLY_LAYOUT=!1),"cose"==e.step&&(u.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,u.ENFORCE_CONSTRAINTS=!1,u.APPLY_LAYOUT=!0),"all"==e.step&&(e.randomize?u.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:u.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,u.ENFORCE_CONSTRAINTS=!0,u.APPLY_LAYOUT=!0),e.fixedNodeConstraint||e.alignmentConstraint||e.relativePlacementConstraint?u.TREE_REDUCTION_ON_INCREMENTAL=!1:u.TREE_REDUCTION_ON_INCREMENTAL=!0;var b,x,w=new i,k=w.newGraphManager();return function e(t,n,i,l){for(var c=n.length,u=0;u<c;u++){var h=n[u],d=null;0==h.intersection(v).length&&(d=h.children());var p=void 0,A=h.layoutDimensions({nodeDimensionsIncludeLabels:l.nodeDimensionsIncludeLabels});if(null!=h.outerWidth()&&null!=h.outerHeight())if(l.randomize)if(h.isParent()){var b=r.calcBoundingBox(h,g,m,f);p=0==h.intersection(v).length?t.add(new o(i.graphManager,new a(b.topLeftX,b.topLeftY),new s(b.width,b.height))):t.add(new o(i.graphManager,new a(b.topLeftX,b.topLeftY),new s(parseFloat(A.w),parseFloat(A.h))))}else p=t.add(new o(i.graphManager,new a(g[f.get(h.id())]-A.w/2,m[f.get(h.id())]-A.h/2),new s(parseFloat(A.w),parseFloat(A.h))));else p=t.add(new o(i.graphManager,new a(h.position("x")-A.w/2,h.position("y")-A.h/2),new s(parseFloat(A.w),parseFloat(A.h))));else p=t.add(new o(this.graphManager));p.id=h.data("id"),p.nodeRepulsion=y(l.nodeRepulsion,h),p.paddingLeft=parseInt(h.css("padding")),p.paddingTop=parseInt(h.css("padding")),p.paddingRight=parseInt(h.css("padding")),p.paddingBottom=parseInt(h.css("padding")),l.nodeDimensionsIncludeLabels&&(p.labelWidth=h.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).w,p.labelHeight=h.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).h,p.labelPosVertical=h.css("text-valign"),p.labelPosHorizontal=h.css("text-halign")),O[h.data("id")]=p,isNaN(p.rect.x)&&(p.rect.x=0),isNaN(p.rect.y)&&(p.rect.y=0),null!=d&&d.length>0&&e(i.getGraphManager().add(i.newGraph(),p),d,i,l)}}(k.addRoot(),r.getTopMostNodes(d),w,e),function(t,n,r){for(var i=0,o=0,a=0;a<r.length;a++){var s=r[a],l=O[s.data("source")],h=O[s.data("target")];if(l&&h&&l!==h&&0==l.getEdgesBetween(h).length){var d=n.add(t.newEdge(),l,h);d.id=s.id(),d.idealLength=y(e.idealEdgeLength,s),d.edgeElasticity=y(e.edgeElasticity,s),i+=d.idealLength,o++}}null!=e.idealEdgeLength&&(o>0?u.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=i/o:A(e.idealEdgeLength)?u.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=50:u.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=e.idealEdgeLength,u.MIN_REPULSION_DIST=c.MIN_REPULSION_DIST=c.DEFAULT_EDGE_LENGTH/10,u.DEFAULT_RADIAL_SEPARATION=c.DEFAULT_EDGE_LENGTH)}(w,k,p),b=w,(x=e).fixedNodeConstraint&&(b.constraints.fixedNodeConstraint=x.fixedNodeConstraint),x.alignmentConstraint&&(b.constraints.alignmentConstraint=x.alignmentConstraint),x.relativePlacementConstraint&&(b.constraints.relativePlacementConstraint=x.relativePlacementConstraint),w.runLayout(),O}}},212:(e,t,n)=>{var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(658),o=n(548),a=n(657).spectralLayout,s=n(816).coseLayout,l=Object.freeze({quality:"default",randomize:!0,animate:!0,animationDuration:1e3,animationEasing:void 0,fit:!0,padding:30,nodeDimensionsIncludeLabels:!1,uniformNodeDimensions:!1,packComponents:!0,step:"all",samplingType:!0,sampleSize:25,nodeSeparation:75,piTol:1e-7,nodeRepulsion:function(e){return 4500},idealEdgeLength:function(e){return 50},edgeElasticity:function(e){return.45},nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,tilingCompareBy:void 0,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.3,fixedNodeConstraint:void 0,alignmentConstraint:void 0,relativePlacementConstraint:void 0,ready:function(){},stop:function(){}}),c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=i({},l,t)}return r(e,[{key:"run",value:function(){var e=this.options,t=e.cy,n=e.eles,r=[],i=[],l=void 0,c=[];!e.fixedNodeConstraint||Array.isArray(e.fixedNodeConstraint)&&0!=e.fixedNodeConstraint.length||(e.fixedNodeConstraint=void 0),e.alignmentConstraint&&(!e.alignmentConstraint.vertical||Array.isArray(e.alignmentConstraint.vertical)&&0!=e.alignmentConstraint.vertical.length||(e.alignmentConstraint.vertical=void 0),!e.alignmentConstraint.horizontal||Array.isArray(e.alignmentConstraint.horizontal)&&0!=e.alignmentConstraint.horizontal.length||(e.alignmentConstraint.horizontal=void 0)),!e.relativePlacementConstraint||Array.isArray(e.relativePlacementConstraint)&&0!=e.relativePlacementConstraint.length||(e.relativePlacementConstraint=void 0),(e.fixedNodeConstraint||e.alignmentConstraint||e.relativePlacementConstraint)&&(e.tile=!1,e.packComponents=!1);var u=void 0,h=!1;if(t.layoutUtilities&&e.packComponents&&((u=t.layoutUtilities("get"))||(u=t.layoutUtilities()),h=!0),n.nodes().length>0)if(h){var d=o.getTopMostNodes(e.eles.nodes());if((l=o.connectComponents(t,e.eles,d)).forEach(function(e){var t=e.boundingBox();c.push({x:t.x1+t.w/2,y:t.y1+t.h/2})}),e.randomize&&l.forEach(function(t){e.eles=t,r.push(a(e))}),"default"==e.quality||"proof"==e.quality){var p=t.collection();if(e.tile){var f=0,g={nodeIndexes:new Map,xCoords:[],yCoords:[]},m=[];if(l.forEach(function(e,t){0==e.edges().length&&(e.nodes().forEach(function(t,n){p.merge(e.nodes()[n]),t.isParent()||(g.nodeIndexes.set(e.nodes()[n].id(),f++),g.xCoords.push(e.nodes()[0].position().x),g.yCoords.push(e.nodes()[0].position().y))}),m.push(t))}),p.length>1){var O=p.boundingBox();c.push({x:O.x1+O.w/2,y:O.y1+O.h/2}),l.push(p),r.push(g);for(var A=m.length-1;A>=0;A--)l.splice(m[A],1),r.splice(m[A],1),c.splice(m[A],1)}}l.forEach(function(t,n){e.eles=t,i.push(s(e,r[n])),o.relocateComponent(c[n],i[n],e)})}else l.forEach(function(t,n){o.relocateComponent(c[n],r[n],e)});var y=new Set;if(l.length>1){var v=[],b=n.filter(function(e){return"none"==e.css("display")});l.forEach(function(t,n){var a=void 0;if("draft"==e.quality&&(a=r[n].nodeIndexes),t.nodes().not(b).length>0){var s={edges:[],nodes:[]},l=void 0;t.nodes().not(b).forEach(function(t){if("draft"==e.quality)if(t.isParent()){var c=o.calcBoundingBox(t,r[n].xCoords,r[n].yCoords,a);s.nodes.push({x:c.topLeftX,y:c.topLeftY,width:c.width,height:c.height})}else l=a.get(t.id()),s.nodes.push({x:r[n].xCoords[l]-t.boundingbox().w/2,y:r[n].yCoords[l]-t.boundingbox().h/2,width:t.boundingbox().w,height:t.boundingbox().h});else i[n][t.id()]&&s.nodes.push({x:i[n][t.id()].getLeft(),y:i[n][t.id()].getTop(),width:i[n][t.id()].getWidth(),height:i[n][t.id()].getHeight()})}),t.edges().forEach(function(t){var l=t.source(),c=t.target();if("none"!=l.css("display")&&"none"!=c.css("display"))if("draft"==e.quality){var u=a.get(l.id()),h=a.get(c.id()),d=[],p=[];if(l.isParent()){var f=o.calcBoundingBox(l,r[n].xCoords,r[n].yCoords,a);d.push(f.topLeftX+f.width/2),d.push(f.topLeftY+f.height/2)}else d.push(r[n].xCoords[u]),d.push(r[n].yCoords[u]);if(c.isParent()){var g=o.calcBoundingBox(c,r[n].xCoords,r[n].yCoords,a);p.push(g.topLeftX+g.width/2),p.push(g.topLeftY+g.height/2)}else p.push(r[n].xCoords[h]),p.push(r[n].yCoords[h]);s.edges.push({startX:d[0],startY:d[1],endX:p[0],endY:p[1]})}else i[n][l.id()]&&i[n][c.id()]&&s.edges.push({startX:i[n][l.id()].getCenterX(),startY:i[n][l.id()].getCenterY(),endX:i[n][c.id()].getCenterX(),endY:i[n][c.id()].getCenterY()})}),s.nodes.length>0&&(v.push(s),y.add(n))}});var x=u.packComponents(v,e.randomize).shifts;if("draft"==e.quality)r.forEach(function(e,t){var n=e.xCoords.map(function(e){return e+x[t].dx}),r=e.yCoords.map(function(e){return e+x[t].dy});e.xCoords=n,e.yCoords=r});else{var w=0;y.forEach(function(e){Object.keys(i[e]).forEach(function(t){var n=i[e][t];n.setCenter(n.getCenterX()+x[w].dx,n.getCenterY()+x[w].dy)}),w++})}}}else{var k=e.eles.boundingBox();if(c.push({x:k.x1+k.w/2,y:k.y1+k.h/2}),e.randomize){var S=a(e);r.push(S)}"default"==e.quality||"proof"==e.quality?(i.push(s(e,r[0])),o.relocateComponent(c[0],i[0],e)):o.relocateComponent(c[0],r[0],e)}var T=function(t,n){if("default"==e.quality||"proof"==e.quality){"number"==typeof t&&(t=n);var o=void 0,a=void 0,s=t.data("id");return i.forEach(function(e){s in e&&(o={x:e[s].getRect().getCenterX(),y:e[s].getRect().getCenterY()},a=e[s])}),e.nodeDimensionsIncludeLabels&&(a.labelWidth&&("left"==a.labelPosHorizontal?o.x+=a.labelWidth/2:"right"==a.labelPosHorizontal&&(o.x-=a.labelWidth/2)),a.labelHeight&&("top"==a.labelPosVertical?o.y+=a.labelHeight/2:"bottom"==a.labelPosVertical&&(o.y-=a.labelHeight/2))),null==o&&(o={x:t.position("x"),y:t.position("y")}),{x:o.x,y:o.y}}var l=void 0;return r.forEach(function(e){var n=e.nodeIndexes.get(t.id());null!=n&&(l={x:e.xCoords[n],y:e.yCoords[n]})}),null==l&&(l={x:t.position("x"),y:t.position("y")}),{x:l.x,y:l.y}};if("default"==e.quality||"proof"==e.quality||e.randomize){var $=o.calcParentsWithoutChildren(t,n),_=n.filter(function(e){return"none"==e.css("display")});e.eles=n.not(_),n.nodes().not(":parent").not(_).layoutPositions(this,e,T),$.length>0&&$.forEach(function(e){e.position(T(e))})}}}]),e}();e.exports=c},657:(e,t,n)=>{var r=n(548),i=n(140).layoutBase.Matrix,o=n(140).layoutBase.SVD;e.exports={spectralLayout:function(e){var t=e.cy,n=e.eles,a=n.nodes(),s=n.nodes(":parent"),l=new Map,c=new Map,u=new Map,h=[],d=[],p=[],f=[],g=[],m=[],O=[],A=[],y=void 0,v=1e8,b=1e-9,x=e.piTol,w=e.samplingType,k=e.nodeSeparation,S=void 0,T=function(e,t,n){for(var r=[],i=0,o=0,a=0,s=void 0,l=[],u=0,d=1,p=0;p<y;p++)l[p]=v;for(r[o]=e,l[e]=0;o>=i;){a=r[i++];for(var f=h[a],O=0;O<f.length;O++)l[s=c.get(f[O])]==v&&(l[s]=l[a]+1,r[++o]=s);m[a][t]=l[a]*k}if(n){for(var A=0;A<y;A++)m[A][t]<g[A]&&(g[A]=m[A][t]);for(var b=0;b<y;b++)g[b]>u&&(u=g[b],d=b)}return d};r.connectComponents(t,n,r.getTopMostNodes(a),l),s.forEach(function(e){r.connectComponents(t,n,r.getTopMostNodes(e.descendants().intersection(n)),l)});for(var $=0,_=0;_<a.length;_++)a[_].isParent()||c.set(a[_].id(),$++);var C=!0,Q=!1,P=void 0;try{for(var E,R=l.keys()[Symbol.iterator]();!(C=(E=R.next()).done);C=!0){var B=E.value;c.set(B,$++)}}catch(G){Q=!0,P=G}finally{try{!C&&R.return&&R.return()}finally{if(Q)throw P}}for(var I=0;I<c.size;I++)h[I]=[];s.forEach(function(e){for(var t=e.children().intersection(n);0==t.nodes(":childless").length;)t=t.nodes()[0].children().intersection(n);var r=0,i=t.nodes(":childless")[0].connectedEdges().length;t.nodes(":childless").forEach(function(e,t){e.connectedEdges().length<i&&(i=e.connectedEdges().length,r=t)}),u.set(e.id(),t.nodes(":childless")[r].id())}),a.forEach(function(e){var t=void 0;t=e.isParent()?c.get(u.get(e.id())):c.get(e.id()),e.neighborhood().nodes().forEach(function(r){n.intersection(e.edgesWith(r)).length>0&&(r.isParent()?h[t].push(u.get(r.id())):h[t].push(r.id()))})});var L=function(e){var n=c.get(e),r=void 0;l.get(e).forEach(function(i){r=t.getElementById(i).isParent()?u.get(i):i,h[n].push(r),h[c.get(r)].push(e)})},D=!0,M=!1,N=void 0;try{for(var X,F=l.keys()[Symbol.iterator]();!(D=(X=F.next()).done);D=!0)L(X.value)}catch(G){M=!0,N=G}finally{try{!D&&F.return&&F.return()}finally{if(M)throw N}}var U=void 0;if((y=c.size)>2){S=y<e.sampleSize?y:e.sampleSize;for(var z=0;z<y;z++)m[z]=[];for(var q=0;q<S;q++)A[q]=[];return"draft"==e.quality||"all"==e.step?(function(e){var t=void 0;if(e){t=Math.floor(Math.random()*y);for(var n=0;n<y;n++)g[n]=v;for(var r=0;r<S;r++)f[r]=t,t=T(t,r,e)}else{!function(){for(var e=0,t=0,n=!1;t<S;){e=Math.floor(Math.random()*y),n=!1;for(var r=0;r<t;r++)if(f[r]==e){n=!0;break}n||(f[t]=e,t++)}}();for(var i=0;i<S;i++)T(f[i],i,e)}for(var o=0;o<y;o++)for(var a=0;a<S;a++)m[o][a]*=m[o][a];for(var s=0;s<S;s++)O[s]=[];for(var l=0;l<S;l++)for(var c=0;c<S;c++)O[l][c]=m[f[c]][l]}(w),function(){for(var e=o.svd(O),t=e.S,n=e.U,r=e.V,a=t[0]*t[0]*t[0],s=[],l=0;l<S;l++){s[l]=[];for(var c=0;c<S;c++)s[l][c]=0,l==c&&(s[l][c]=t[l]/(t[l]*t[l]+a/(t[l]*t[l])))}A=i.multMat(i.multMat(r,s),i.transpose(n))}(),function(){for(var e=void 0,t=void 0,n=[],r=[],o=[],a=[],s=0;s<y;s++)n[s]=Math.random(),r[s]=Math.random();n=i.normalize(n),r=i.normalize(r);for(var l=b,c=b,u=void 0;;){for(var h=0;h<y;h++)o[h]=n[h];if(n=i.multGamma(i.multL(i.multGamma(o),m,A)),e=i.dotProduct(o,n),n=i.normalize(n),l=i.dotProduct(o,n),(u=Math.abs(l/c))<=1+x&&u>=1)break;c=l}for(var f=0;f<y;f++)o[f]=n[f];for(c=b;;){for(var g=0;g<y;g++)a[g]=r[g];if(a=i.minusOp(a,i.multCons(o,i.dotProduct(o,a))),r=i.multGamma(i.multL(i.multGamma(a),m,A)),t=i.dotProduct(a,r),r=i.normalize(r),l=i.dotProduct(a,r),(u=Math.abs(l/c))<=1+x&&u>=1)break;c=l}for(var O=0;O<y;O++)a[O]=r[O];d=i.multCons(o,Math.sqrt(Math.abs(e))),p=i.multCons(a,Math.sqrt(Math.abs(t)))}(),U={nodeIndexes:c,xCoords:d,yCoords:p}):(c.forEach(function(e,n){d.push(t.getElementById(n).position("x")),p.push(t.getElementById(n).position("y"))}),U={nodeIndexes:c,xCoords:d,yCoords:p}),U}var V=c.keys(),W=t.getElementById(V.next().value),j=W.position(),Y=W.outerWidth();if(d.push(j.x),p.push(j.y),2==y){var Z=t.getElementById(V.next().value).outerWidth();d.push(j.x+Y/2+Z/2+e.idealEdgeLength),p.push(j.y)}return U={nodeIndexes:c,xCoords:d,yCoords:p}}}},579:(e,t,n)=>{var r=n(212),i=function(e){e&&e("layout","fcose",r)};"undefined"!=typeof cytoscape&&i(cytoscape),e.exports=i},140:t=>{t.exports=e}},n={},function e(r){var i=n[r];if(void 0!==i)return i.exports;var o=n[r]={exports:{}};return t[r](o,o.exports,e),o.exports}(579);var t,n})}(SIn)),SIn.exports);const RIn=rk(EIn);var BIn={L:"left",R:"right",T:"top",B:"bottom"},IIn={L:hRe(e=>`${e},${e/2} 0,${e} 0,0`,"L"),R:hRe(e=>`0,${e/2} ${e},0 ${e},${e}`,"R"),T:hRe(e=>`0,0 ${e},0 ${e/2},${e}`,"T"),B:hRe(e=>`${e/2},0 ${e},${e} 0,${e}`,"B")},LIn={L:hRe((e,t)=>e-t+2,"L"),R:hRe((e,t)=>e-2,"R"),T:hRe((e,t)=>e-t+2,"T"),B:hRe((e,t)=>e-2,"B")},DIn=hRe(function(e){return NIn(e)?"L"===e?"R":"L":"T"===e?"B":"T"},"getOppositeArchitectureDirection"),MIn=hRe(function(e){return"L"===e||"R"===e||"T"===e||"B"===e},"isArchitectureDirection"),NIn=hRe(function(e){return"L"===e||"R"===e},"isArchitectureDirectionX"),XIn=hRe(function(e){return"T"===e||"B"===e},"isArchitectureDirectionY"),FIn=hRe(function(e,t){const n=NIn(e)&&XIn(t),r=XIn(e)&&NIn(t);return n||r},"isArchitectureDirectionXY"),UIn=hRe(function(e){const t=e[0],n=e[1],r=NIn(t)&&XIn(n),i=XIn(t)&&NIn(n);return r||i},"isArchitecturePairXY"),zIn=hRe(function(e){return"LL"!==e&&"RR"!==e&&"TT"!==e&&"BB"!==e},"isValidArchitectureDirectionPair"),qIn=hRe(function(e,t){const n=`${e}${t}`;return zIn(n)?n:void 0},"getArchitectureDirectionPair"),VIn=hRe(function([e,t],n){const r=n[0],i=n[1];return NIn(r)?XIn(i)?[e+("L"===r?-1:1),t+("T"===i?1:-1)]:[e+("L"===r?-1:1),t]:NIn(i)?[e+("L"===i?1:-1),t+("T"===r?1:-1)]:[e,t+("T"===r?1:-1)]},"shiftPositionByArchitectureDirectionPair"),WIn=hRe(function(e){return"LT"===e||"TL"===e?[1,1]:"BL"===e||"LB"===e?[1,-1]:"BR"===e||"RB"===e?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),jIn=hRe(function(e,t){return FIn(e,t)?"bend":NIn(e)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),YIn=hRe(function(e){return"service"===e.type},"isArchitectureService"),ZIn=hRe(function(e){return"junction"===e.type},"isArchitectureJunction"),GIn=hRe((e,t)=>{const[n,r]=[e,t].sort();return`${JSON.stringify(n)}-${JSON.stringify(r)}`},"architectureGroupAlignmentKey"),HIn=hRe(e=>e.data(),"edgeData"),KIn=hRe(e=>e.data(),"nodeData"),JIn=wBe.architecture,eLn=(hRe(Vn=class{constructor(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.elements=new Map,this.diagramId="",this.setAccTitle=VIe,this.getAccTitle=WIe,this.setDiagramTitle=ZIe,this.getDiagramTitle=GIe,this.getAccDescription=YIe,this.setAccDescription=jIe,this.clear()}setDiagramId(e){this.diagramId=e}getDiagramId(){return this.diagramId}clear(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.dataStructures=void 0,this.elements=new Map,this.diagramId="",qIe()}addService({id:e,icon:t,in:n,title:r,iconText:i}){if(this.registeredIds.has(e))throw new Error(`The service id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(void 0!==n){if(e===n)throw new Error(`The service [${e}] cannot be placed within itself`);if(!this.registeredIds.has(n))throw new Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);if("node"===this.registeredIds.get(n))throw new Error(`The service [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"service",icon:t,iconText:i,title:r,edges:[],in:n})}getServices(){return[...this.nodes.values()].filter(YIn)}addJunction({id:e,in:t}){if(this.registeredIds.has(e))throw new Error(`The junction id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(void 0!==t){if(e===t)throw new Error(`The junction [${e}] cannot be placed within itself`);if(!this.registeredIds.has(t))throw new Error(`The junction [${e}]'s parent does not exist. Please make sure the parent is created before this junction`);if("node"===this.registeredIds.get(t))throw new Error(`The junction [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"junction",edges:[],in:t})}getJunctions(){return[...this.nodes.values()].filter(ZIn)}getNodes(){return[...this.nodes.values()]}getNode(e){return this.nodes.get(e)??null}addGroup({id:e,icon:t,in:n,title:r}){if(this.registeredIds.has(e))throw new Error(`The group id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(void 0!==n){if(e===n)throw new Error(`The group [${e}] cannot be placed within itself`);if(!this.registeredIds.has(n))throw new Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);if("node"===this.registeredIds.get(n))throw new Error(`The group [${e}]'s parent is not a group`)}this.registeredIds.set(e,"group"),this.groups.set(e,{id:e,icon:t,title:r,in:n})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:e,rhsId:t,lhsDir:n,rhsDir:r,lhsInto:i,rhsInto:o,lhsGroup:a,rhsGroup:s,title:l}){if(!MIn(n))throw new Error(`Invalid direction given for left hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(n)}`);if(!MIn(r))throw new Error(`Invalid direction given for right hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(r)}`);if(!this.nodes.has(e)&&!this.groups.has(e))throw new Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(!this.nodes.has(t)&&!this.groups.has(t))throw new Error(`The right-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`);const c=this.nodes.get(e).in,u=this.nodes.get(t).in;if(a&&c&&u&&c==u)throw new Error(`The left-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(s&&c&&u&&c==u)throw new Error(`The right-hand id [${t}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const h={lhsId:e,lhsDir:n,lhsInto:i,lhsGroup:a,rhsId:t,rhsDir:r,rhsInto:o,rhsGroup:s,title:l};this.edges.push(h);const d=this.nodes.get(e),p=this.nodes.get(t);d&&p&&(d.edges.push(this.edges[this.edges.length-1]),p.edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}addLayoutHint(e){if(e.members.length<2)throw new Error(`An align directive requires at least two members; got ${e.members.length}`);const t=new Set;e.members.forEach(n=>{if("node"!==this.registeredIds.get(n))throw new Error(`align ${e.direction} references [${n}], which is not a service or junction`);if(t.has(n))throw new Error(`align ${e.direction} lists [${n}] more than once`);t.add(n)}),this.layoutHints.push(e)}getLayoutHints(){return this.layoutHints}getDataStructures(){var e,t;if(void 0===this.dataStructures){const n=new Map,r=new Map;for(const[l,c]of this.nodes.entries()){const i=new Map;for(const r of c.edges){const o=null==(e=this.getNode(r.lhsId))?void 0:e.in,a=null==(t=this.getNode(r.rhsId))?void 0:t.in;if(o&&a&&o!==a){const e=jIn(r.lhsDir,r.rhsDir);"bend"!==e&&n.set(GIn(o,a),e)}if(r.lhsId===l){const e=qIn(r.lhsDir,r.rhsDir);e&&i.set(e,r.rhsId)}else{const e=qIn(r.rhsDir,r.lhsDir);e&&i.set(e,r.lhsId)}}r.set(l,i)}const i=new Set,o=new Set(r.keys()),a=hRe(e=>{const t=new Map([[e,[0,0]]]),n=[e];for(;n.length>0;){const e=n.shift();if(e){i.add(e),o.delete(e);const a=r.get(e);if(!a)throw new Error(`BFS error: adjacency list for id ${e} not found. Please report this as a bug.`);const s=t.get(e);if(!s)throw new Error(`BFS error: position for id ${e} not found in spatial map. Please report this as a bug.`);const[l,c]=s;a.forEach((e,r)=>{i.has(e)||(t.set(e,VIn([l,c],r)),n.push(e))})}}return t},"BFS"),s=[];for(;o.size>0;){const e=o.values().next().value;s.push(a(e))}this.dataStructures={adjList:r,spatialMaps:s,groupAlignments:n}}return this.dataStructures}setElementForId(e,t){this.elements.set(e,t)}getElementById(e){return this.elements.get(e)}getConfig(){return jWe({...JIn,...NBe().architecture})}getConfigField(e){return this.getConfig()[e]}},"ArchitectureDB"),Vn),tLn=hRe((e,t)=>{var n;qzt(e,t),e.groups.map(e=>t.addGroup(e)),e.services.map(e=>t.addService({...e,type:"service"})),e.junctions.map(e=>t.addJunction({...e,type:"junction"})),e.edges.map(e=>t.addEdge(e)),null==(n=e.alignments)||n.map(e=>t.addLayoutHint({direction:e.direction,members:[...e.members]}))},"populateDb"),nLn={parser:{yy:void 0},parse:hRe(async e=>{var t;const n=await gbn("architecture",e);ORe.debug(n);const r=null==(t=nLn.parser)?void 0:t.yy;if(!(r instanceof eLn))throw new Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");tLn(n,r)},"parse")},rLn=hRe(e=>`\n .edge {\n stroke-width: ${e.archEdgeWidth};\n stroke: ${e.archEdgeColor};\n fill: none;\n }\n\n .arrow {\n fill: ${e.archEdgeArrowColor};\n }\n\n .node-bkg {\n fill: none;\n stroke: ${e.archGroupBorderColor};\n stroke-width: ${e.archGroupBorderWidth};\n stroke-dasharray: 8;\n }\n .node-icon-text {\n display: flex; \n align-items: center;\n }\n \n .node-icon-text > div {\n color: #fff;\n margin: 1px;\n height: fit-content;\n text-align: center;\n overflow: hidden;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n }\n`,"getStyles");function iLn(e,t){if(0===e)return t();const n=Math.random;let r=e>>>0;Math.random=function(){r=r+1831565813>>>0;let e=r;return e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296};try{return t()}finally{Math.random=n}}hRe(iLn,"withSeededRandom");var oLn=hRe(e=>`<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/>${e}</g>`,"wrapIcon"),aLn={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:oLn('<path id="b" data-name="4" d="m20,57.86c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="c" data-name="3" d="m20,45.95c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="d" data-name="2" d="m20,34.05c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse id="e" data-name="1" cx="40" cy="22.14" rx="20" ry="7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="20" y1="57.86" x2="20" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="60" y1="57.86" x2="60" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},server:{body:oLn('<rect x="17.5" y="17.5" width="45" height="45" rx="2" ry="2" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="32.5" x2="62.5" y2="32.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="47.5" x2="62.5" y2="47.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><g><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g>')},disk:{body:oLn('<rect x="20" y="15" width="40" height="50" rx="1" ry="1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="14" ry="14.58" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="4" ry="4.17" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m37.51,42.52l-4.83,13.22c-.26.71-1.1,1.02-1.76.64l-4.18-2.42c-.66-.38-.81-1.26-.33-1.84l9.01-10.8c.88-1.05,2.56-.08,2.09,1.2Z" style="fill: #fff; stroke-width: 0px;"/>')},internet:{body:oLn('<circle cx="40" cy="40" r="22.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="40" y1="17.5" x2="40" y2="62.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="40" x2="62.5" y2="40" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m39.99,17.51c-15.28,11.1-15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m40.01,17.51c15.28,11.1,15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="30.1" x2="60.25" y2="30.1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="49.9" x2="60.25" y2="49.9" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},cloud:{body:oLn('<path d="m65,47.5c0,2.76-2.24,5-5,5H20c-2.76,0-5-2.24-5-5,0-1.87,1.03-3.51,2.56-4.36-.04-.21-.06-.42-.06-.64,0-2.6,2.48-4.74,5.65-4.97,1.65-4.51,6.34-7.76,11.85-7.76.86,0,1.69.08,2.5.23,2.09-1.57,4.69-2.5,7.5-2.5,6.1,0,11.19,4.38,12.28,10.17,2.14.56,3.72,2.51,3.72,4.83,0,.03,0,.07-.01.1,2.29.46,4.01,2.48,4.01,4.9Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},unknown:hVe,blank:{body:oLn("")}}},sLn=hRe(async function(e,t,n,r){const i=n.getConfigField("padding"),o=n.getConfigField("iconSize"),a=o/2,s=o/6,l=s/2;await Promise.all(t.edges().map(async t=>{var o,c;const{source:u,sourceDir:h,sourceArrow:d,sourceGroup:p,target:f,targetDir:g,targetArrow:m,targetGroup:O,label:A}=HIn(t);let{x:y,y:v}=t[0].sourceEndpoint();const{x:b,y:x}=t[0].midpoint();let{x:w,y:k}=t[0].targetEndpoint();const S=i+4;if(p&&(NIn(h)?y+="L"===h?-S:S:v+="T"===h?-S:S+18),O&&(NIn(g)?w+="L"===g?-S:S:k+="T"===g?-S:S+18),p||"junction"!==(null==(o=n.getNode(u))?void 0:o.type)||(NIn(h)?y+="L"===h?a:-a:v+="T"===h?a:-a),O||"junction"!==(null==(c=n.getNode(f))?void 0:c.type)||(NIn(g)?w+="L"===g?a:-a:k+="T"===g?a:-a),t[0]._private.rscratch){const t=e.insert("g");if(t.insert("path").attr("d",`M ${y},${v} L ${b},${x} L${w},${k} `).attr("class","edge").attr("id",`${r}-${HWe(u,f,{prefix:"L"})}`),d){const e=NIn(h)?LIn[h](y,s):y-l,n=XIn(h)?LIn[h](v,s):v-l;t.insert("polygon").attr("points",IIn[h](s)).attr("transform",`translate(${e},${n})`).attr("class","arrow")}if(m){const e=NIn(g)?LIn[g](w,s):w-l,n=XIn(g)?LIn[g](k,s):k-l;t.insert("polygon").attr("points",IIn[g](s)).attr("transform",`translate(${e},${n})`).attr("class","arrow")}if(A){const e=FIn(h,g)?"XY":NIn(h)?"X":"Y";let n=0;n="X"===e?Math.abs(y-w):"Y"===e?Math.abs(v-k)/1.5:Math.abs(y-w)/2;const r=t.append("g");if(await jYe(r,A,{useHtmlLabels:!1,width:n,classes:"architecture-service-label"},JIe()),r.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),"X"===e)r.attr("transform","translate("+b+", "+x+")");else if("Y"===e)r.attr("transform","translate("+b+", "+x+") rotate(-90)");else if("XY"===e){const e=qIn(h,g);if(e&&UIn(e)){const t=r.node().getBoundingClientRect(),[n,i]=WIn(e);r.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*n*i*45})`);const o=r.node().getBoundingClientRect();r.attr("transform",`\n translate(${b}, ${x-t.height/2})\n translate(${n*o.width/2}, ${i*o.height/2})\n rotate(${-1*n*i*45}, 0, ${t.height/2})\n `)}}}}}))},"drawEdges"),lLn=hRe(async function(e,t,n,r){const i=.75*n.getConfigField("padding"),o=n.getConfigField("fontSize"),a=n.getConfigField("iconSize")/2;await Promise.all(t.nodes().map(async t=>{const s=KIn(t);if("group"===s.type){const{h:l,w:c,x1:u,y1:h}=t.boundingBox(),d=e.append("rect");d.attr("id",`${r}-group-${s.id}`).attr("x",u+a).attr("y",h+a).attr("width",c).attr("height",l).attr("class","node-bkg");const p=e.append("g");let f=u,g=h;if(s.icon){const e=p.append("g");e.html(`<g>${await OVe(s.icon,{height:i,width:i,fallbackPrefix:aLn.prefix})}</g>`),e.attr("transform","translate("+(f+a+1)+", "+(g+a+1)+")"),f+=i,g+=o/2-1-2}if(s.label){const e=p.append("g");await jYe(e,s.label,{useHtmlLabels:!1,width:c,classes:"architecture-service-label"},JIe()),e.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),e.attr("transform","translate("+(f+a+4)+", "+(g+a+2)+")")}n.setElementForId(s.id,d)}}))},"drawGroups"),cLn=hRe(async function(e,t,n,r){const i=JIe();for(const o of n){const n=t.append("g"),a=e.getConfigField("iconSize");if(o.title){const e=n.append("g");await jYe(e,o.title,{useHtmlLabels:!1,width:1.5*a,classes:"architecture-service-label"},i),e.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),e.attr("transform","translate("+a/2+", "+a+")")}const s=n.append("g");if(o.icon)s.html(`<g>${await OVe(o.icon,{height:a,width:a,fallbackPrefix:aLn.prefix})}</g>`);else if(o.iconText){s.html(`<g>${await OVe("blank",{height:a,width:a,fallbackPrefix:aLn.prefix})}</g>`);const e=s.append("g").append("foreignObject").attr("width",a).attr("height",a).append("div").attr("class","node-icon-text").attr("style",`height: ${a}px;`).append("div").html(uIe(o.iconText,i)),t=parseInt(window.getComputedStyle(e.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;e.attr("style",`-webkit-line-clamp: ${Math.floor((a-2)/t)};`)}else s.append("path").attr("class","node-bkg").attr("id",`${r}-node-${o.id}`).attr("d",`M0,${a} V5 Q0,0 5,0 H${a-5} Q${a},0 ${a},5 V${a} Z`);n.attr("id",`${r}-service-${o.id}`).attr("class","architecture-service");const{width:l,height:c}=n.node().getBBox();o.width=l,o.height=c,e.setElementForId(o.id,n)}return 0},"drawServices"),uLn=hRe(function(e,t,n,r){n.forEach(n=>{const i=t.append("g"),o=e.getConfigField("iconSize");i.append("g").append("rect").attr("id",`${r}-node-${n.id}`).attr("fill-opacity","0").attr("width",o).attr("height",o),i.attr("class","architecture-junction");const{width:a,height:s}=i._groups[0][0].getBBox();i.width=a,i.height=s,e.setElementForId(n.id,i)})},"drawJunctions");function hLn(e,t,n){e.forEach(e=>{t.add({group:"nodes",data:{type:"service",id:e.id,icon:e.icon,label:e.title,parent:e.in,width:n.getConfigField("iconSize"),height:n.getConfigField("iconSize")},classes:"node-service"})})}function dLn(e,t,n){e.forEach(e=>{t.add({group:"nodes",data:{type:"junction",id:e.id,parent:e.in,width:n.getConfigField("iconSize"),height:n.getConfigField("iconSize")},classes:"node-junction"})})}function pLn(e,t){t.nodes().map(t=>{const n=KIn(t);if("group"===n.type)return;n.x=t.position().x,n.y=t.position().y;e.getElementById(n.id).attr("transform","translate("+(n.x||0)+","+(n.y||0)+")")})}function fLn(e,t){e.forEach(e=>{t.add({group:"nodes",data:{type:"group",id:e.id,icon:e.icon,label:e.title,parent:e.in},classes:"node-group"})})}function gLn(e,t){e.forEach(e=>{const{lhsId:n,rhsId:r,lhsInto:i,lhsGroup:o,rhsInto:a,lhsDir:s,rhsDir:l,rhsGroup:c,title:u}=e,h=FIn(e.lhsDir,e.rhsDir)?"segments":"straight",d={id:`${n}-${r}`,label:u,source:n,sourceDir:s,sourceArrow:i,sourceGroup:o,sourceEndpoint:"L"===s?"0 50%":"R"===s?"100% 50%":"T"===s?"50% 0":"50% 100%",target:r,targetDir:l,targetArrow:a,targetGroup:c,targetEndpoint:"L"===l?"0 50%":"R"===l?"100% 50%":"T"===l?"50% 0":"50% 100%"};t.add({group:"edges",data:d,classes:h})})}function mLn(e,t,n,r=[]){const i=hRe((e,t)=>{const r=new Map;for(const[i,o]of e.entries()){const e=`${i}`;let a=0;const s=[...o.entries()];if(1!==s.length)for(let i=0;i<s.length-1;i++)for(let o=i+1;o<s.length;o++){const[l,c]=s[i],[u,h]=s[o];if(n.get(GIn(l,u))===t)r.set(e,[...r.get(e)??[],...c,...h]);else if("default"===l||"default"===u)r.set(e,[...r.get(e)??[],...c,...h]);else{const t=`${e}-${a++}`;r.set(t,c);const n=`${e}-${a++}`;r.set(n,h)}}else r.set(e,s[0][1])}return r},"flattenAlignments"),o=t.map(t=>{const n=new Map,r=new Map;return t.forEach(([t,i],o)=>{var a;const s=(null==(a=e.getNode(o))?void 0:a.in)??"default",l=n.get(i)??new Map;n.has(i)||n.set(i,l);const c=r.get(t)??new Map;r.has(t)||r.set(t,c);for(const e of[l,c]){const t=e.get(s)??[];e.has(s)||e.set(s,t),t.push(o)}}),{horiz:[...i(n,"horizontal").values()].filter(e=>e.length>1),vert:[...i(r,"vertical").values()].filter(e=>e.length>1)}}),[a,s]=o.reduce(([e,t],{horiz:n,vert:r})=>[[...e,...n],[...t,...r]],[[],[]]),l=new Set;r.forEach(e=>e.members.forEach(e=>l.add(e)));const c=hRe(e=>e.filter(e=>!e.some(e=>l.has(e))),"dropOverlapping"),u=c(a),h=c(s);return r.forEach(e=>{e.members.length<2||("row"===e.direction?u.push([...e.members]):h.push([...e.members]))}),{horizontal:u,vertical:h}}function OLn(e,t,n=[]){const r=[],i=t.getConfigField("iconSize"),o=t.getConfigField("idealEdgeLengthMultiplier"),a=o*i,s=new Set;n.forEach(e=>{for(let t=0;t<e.members.length-1;t++){const n=e.members[t],i=e.members[t+1];s.add(`${n}|${i}`),s.add(`${i}|${n}`),"row"===e.direction?r.push({left:n,right:i,gap:a}):r.push({top:n,bottom:i,gap:a})}});const l=hRe(e=>`${e[0]},${e[1]}`,"posToStr"),c=hRe(e=>e.split(",").map(e=>parseInt(e)),"strToPos");return e.forEach(e=>{const t=new Map([...e.entries()].map(([e,t])=>[l(t),e])),n=[l([0,0])],a={},u={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;n.length>0;){const e=n.shift();if(e){a[e]=1;const h=t.get(e);if(h){const d=c(e);Object.entries(u).forEach(([e,c])=>{const u=l([d[0]+c[0],d[1]+c[1]]),p=t.get(u);if(p&&!a[u]){if(n.push(u),s.has(`${h}|${p}`))return;r.push({[BIn[e]]:p,[BIn[DIn(e)]]:h,gap:o*i})}})}}}}),r}function ALn(e,t,n,r,i,{spatialMaps:o,groupAlignments:a}){return new Promise(s=>{const l=GDe("body").append("div").attr("id","cy").attr("style","display:none"),c=nFt({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge[label]",style:{label:"data(label)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":`${i.getConfigField("fontSize")}px`}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:`${i.getConfigField("padding")}px`}}],layout:{name:"grid",boundingBox:{x1:0,x2:100,y1:0,y2:100}}});l.remove(),fLn(n,c),hLn(e,c,i),dLn(t,c,i),gLn(r,c);const u=i.getLayoutHints(),h=mLn(i,o,a,u),d=OLn(o,i,u),p=i.getConfigField("iconSize"),f=i.getConfigField("idealEdgeLengthMultiplier")*p,g=.5*p,m=i.getConfigField("edgeElasticity"),O=i.getConfigField("seed"),A=c.layout({name:"fcose",quality:"proof",randomize:i.getConfigField("randomize"),nodeSeparation:i.getConfigField("nodeSeparation"),numIter:i.getConfigField("numIter"),styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(e){const[t,n]=e.connectedNodes(),{parent:r}=KIn(t),{parent:i}=KIn(n);return r===i?f:g},edgeElasticity(e){const[t,n]=e.connectedNodes(),{parent:r}=KIn(t),{parent:i}=KIn(n);return r===i?m:.001},alignmentConstraint:h,relativePlacementConstraint:d});A.one("layoutstop",()=>{var e;function t(e,t,n,r){let i,o;const{x:a,y:s}=e,{x:l,y:c}=t;o=(r-s+(a-n)*(s-c)/(a-l))/Math.sqrt(1+Math.pow((s-c)/(a-l),2)),i=Math.sqrt(Math.pow(r-s,2)+Math.pow(n-a,2)-Math.pow(o,2));i/=Math.sqrt(Math.pow(l-a,2)+Math.pow(c-s,2));let u=(l-a)*(r-s)-(c-s)*(n-a);switch(!0){case u>=0:u=1;break;case u<0:u=-1}let h=(l-a)*(n-a)+(c-s)*(r-s);switch(!0){case h>=0:h=1;break;case h<0:h=-1}return o=Math.abs(o)*u,i*=h,{distances:o,weights:i}}hRe(t,"getSegmentWeights"),c.startBatch();for(const n of Object.values(c.edges()))if(null==(e=n.data)?void 0:e.call(n)){const{x:e,y:r}=n.source().position(),{x:i,y:o}=n.target().position();if(e!==i&&r!==o){const e=n.sourceEndpoint(),r=n.targetEndpoint(),{sourceDir:i}=HIn(n),[o,a]=XIn(i)?[e.x,r.y]:[r.x,e.y],{weights:s,distances:l}=t(e,r,o,a);n.style("segment-distances",l),n.style("segment-weights",s)}}c.endBatch(),iLn(O,()=>A.run())});try{iLn(O,()=>A.run())}catch(y){if(y instanceof RangeError&&y.message.includes("Invalid array length"))throw new Error("Architecture layout failed: a declared `align row|column` directive likely contradicts the edge directions, or two declared alignments overlap on a shared node. Check that the order of members in each `align` chain is consistent with the edges between them, and that no node appears in two `align` directives along the same axis.");throw y}c.ready(e=>{ORe.info("Ready",e),s(c)})})}fVe([{name:aLn.prefix,icons:aLn}]),nFt.use(RIn),hRe(hLn,"addServices"),hRe(dLn,"addJunctions"),hRe(pLn,"positionNodes"),hRe(fLn,"addGroups"),hRe(gLn,"addEdges"),hRe(mLn,"getAlignments"),hRe(OLn,"getRelativeConstraints"),hRe(ALn,"layoutArchitecture");var yLn={draw:hRe(async(e,t,n,r)=>{const i=r.db;i.setDiagramId(t);const o=i.getServices(),a=i.getJunctions(),s=i.getGroups(),l=i.getEdges(),c=i.getDataStructures(),u=Mqe(t),h=u.append("g");h.attr("class","architecture-edges");const d=u.append("g");d.attr("class","architecture-services");const p=u.append("g");p.attr("class","architecture-groups"),await cLn(i,d,o,t),uLn(i,d,a,t);const f=await ALn(o,a,s,l,i,c);await sLn(h,f,i,t),await lLn(p,f,i,t),pLn(i,f),RIe(void 0,u,i.getConfigField("padding"),i.getConfigField("useMaxWidth"))},"draw")},vLn={parser:nLn,get db(){return new eLn},renderer:yLn,styles:rLn};const bLn=Object.freeze(Object.defineProperty({__proto__:null,diagram:vLn},Symbol.toStringTag,{value:"Module"}));var xLn="position frame",wLn="frame positioned",kLn="position relation",SLn="relation positioned",TLn=hRe(function(e){ORe.debug("options str",e)},"setOptions"),$Ln=hRe(function(){return{}},"getOptions"),_Ln=hRe(function(){CLn(),qIe()},"clear");function CLn(){ELn={}}hRe(CLn,"reset");var QLn=wBe.eventmodeling,PLn=hRe(()=>jWe({...QLn,...NBe().eventmodeling}),"getConfig"),ELn={};function RLn(){let e=DLn;const{ast:t}=ELn,n=LLn();if(!t)throw new Error("No data for EventModel");return t.frames.forEach((r,i)=>{const o=qLn(r,t.dataEntities,n);let a;e=aDn(e,{$kind:xLn,index:i,frame:r,textProps:o}),HLn(r)?(ORe.debug("source frame",r.sourceFrames),a=t.frames.filter(e=>r.sourceFrames.some(t=>t.$refText===e.name)),a.forEach(t=>{e=aDn(e,{$kind:kLn,index:i,frame:r,sourceFrame:t})})):e=aDn(e,{$kind:kLn,index:i,frame:r})}),e={...e,sortedSwimlanesArray:YLn(e.swimlanes)},e}function BLn(e){ELn.ast=e}hRe(RLn,"getState"),hRe(BLn,"setAst");var ILn={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function LLn(){return ILn}hRe(LLn,"getDiagramProps");var DLn={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function MLn(e){const t=e.split(".");if(2===t.length)return t[0]}function NLn(e){const t=e.split(".");return 2===t.length?t[1]:e}function XLn(e,t){if(t&&0!==t.length)return Object.values(e).find(e=>e.namespace===t)}function FLn(e,t,n){return Math.max(t,...Object.keys(e).filter(e=>{const r=Number.parseInt(e);return r>t&&r<n}).map(e=>Number.parseInt(e)))+1}function ULn(e,t){const n=MLn(e.entityIdentifier),r=XLn(t,n);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return r?{index:r.index,label:r.namespace||ILn.labelUiAutomation}:n?{index:FLn(t,0,100),label:ILn.labelUiAutomationPrefix+n}:{index:0,label:ILn.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return r?{index:r.index,label:r.namespace||ILn.labelCommandReadModel}:n?{index:FLn(t,100,200),label:ILn.labelCommandReadModelPrefix+n}:{index:100,label:ILn.labelCommandReadModel};default:return r?{index:r.index,label:r.namespace||ILn.labelEvents}:n?{index:FLn(t,200,300),label:ILn.labelEventsPrefix+n}:{index:200,label:ILn.labelEvents}}}function zLn(e){const{themeVariables:t}=NBe();switch(e.modelEntityType){case"ui":return{fill:t.emUiFill??"white",stroke:t.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:t.emProcessorFill??"#edb3f6",stroke:t.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:t.emReadModelFill??"#d3f1a2",stroke:t.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:t.emCommandFill??"#bcd6fe",stroke:t.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:t.emEventFill??"#ffb778",stroke:t.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}function qLn(e,t,n){const r=NBe(),i=uIe(NLn(e.entityIdentifier)??"",r);let o;const a={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"};let s=`<b>${LWe(i,n.textMaxWidth,a)}</b>`;if(e.dataInlineValue&&(o=e.dataInlineValue,o=o.substring(o.indexOf("{")+1),o=o.substring(0,o.lastIndexOf("}")-1),o=uIe(o,r),o=LWe(o,n.textMaxWidth,a),o=o.replaceAll(" "," ")),e.dataReference){const i=t.find(t=>{var n;return t.name===(null==(n=e.dataReference)?void 0:n.$refText)});i&&(o=i.dataBlockValue,o=o.substring(o.indexOf("{\n")+2),o=o.substring(0,o.lastIndexOf("}")-1),o=uIe(o,r),o=LWe(o,n.textMaxWidth,a),o=o.replaceAll(" "," "),o+="<br/>")}const l=void 0!==o;l&&(s+=`<br/><br/><code style="text-align: left; display: block;max-width:${n.textMaxWidth}px">${o}</code>`);const c=FWe(s,{fontSize:a.fontSize,fontWeight:a.fontWeight,fontFamily:a.fontFamily}),u={content:s,width:l?c.width/3:c.width,height:c.height};return ORe.debug(`[${e.name}] ${e.entityIdentifier} text`,u),u}function VLn(e,t){const n=t,r=zLn(n.frame),i={width:n.textProps.width+2*ILn.boxTextPadding,height:n.textProps.height+2*ILn.boxTextPadding};return[{$kind:wLn,frame:n.frame,index:n.index,visual:r,dimension:i,textProps:n.textProps}]}function WLn(e,t,n){return void 0===t?ILn.contentStartX:t.index===e.index&&e.r?e.r+ILn.boxPadding:void 0===n?ILn.contentStartX:n.r-ILn.boxOverlap+ILn.boxPadding}function jLn(e,t){const n=[...e.map(e=>e.r),t];return Math.max(...n)}function YLn(e){return Object.values(e).sort((e,t)=>e.index-t.index)}function ZLn(e,t){const n=t,r=ULn(n.frame,e.swimlanes);let i;i=r.index in e.swimlanes?e.swimlanes[r.index]:{index:r.index,label:r.label,r:0,y:r.index*ILn.swimlaneMinHeight+ILn.swimlaneGap,height:ILn.swimlaneMinHeight,maxHeight:ILn.swimlaneMinHeight};const o=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,a=void 0!==e.previousSwimlaneNumber?e.swimlanes[e.previousSwimlaneNumber]:void 0,s={width:Math.max(ILn.boxMinWidth,Math.min(ILn.boxMaxWidth,n.dimension.width))+2*ILn.boxPadding,height:Math.max(ILn.boxMinHeight,Math.min(ILn.boxMaxHeight,n.dimension.height))+2*ILn.boxPadding},l=WLn(i,a,o),c=l+s.width+ILn.boxPadding,u=jLn(Object.values(e.swimlanes),c);i.r=l+s.width,i.maxHeight=Math.max(i.maxHeight,s.height),i.height=Math.max(ILn.swimlaneMinHeight,i.maxHeight)+2*ILn.swimlanePadding;const h={x:l,y:ILn.swimlanePadding+i.y,r:c,dimension:s,leftSibling:!1,swimlane:i,visual:n.visual,text:n.textProps.content,frame:n.frame,index:n.index},d={...e,boxes:[...e.boxes,h],swimlanes:{...e.swimlanes,[`${i.index}`]:i},previousSwimlaneNumber:r.index,previousFrame:n.frame,maxR:u},p=YLn(d.swimlanes);p.length>0&&(p[0].y=0);for(let f=1;f<p.length;f++){const e=p[f],t=p[f-1];e.y=t.y+t.height+ILn.swimlaneGap}return d}function GLn(e,t){return 0===e&&0===t.sourceFrames.length}function HLn(e){return void 0!==e.sourceFrames&&null!==e.sourceFrames&&e.sourceFrames.length>0}function KLn(e,t){if(null!=t)return e.find(e=>e.frame.name===t.name)}function JLn(e,t,n){if(!(n<0))for(let r=n;r>=0;r--){const n=e[r];if(n.swimlane.index!==t)return n}}function eDn(e,t){const n=t;if(Rfn(n.frame)||GLn(n.index,n.frame))return[];const r=KLn(e.boxes,n.frame);if(void 0===r)throw new Error(`Target box not found for frame ${n.frame.name}`);let i;if(i=n.sourceFrame?KLn(e.boxes,n.sourceFrame):JLn(e.boxes,r.swimlane.index,n.index-1),void 0===i)return[];return[{$kind:SLn,frame:n.frame,index:n.index,sourceBox:i,targetBox:r}]}function tDn(e,t){const n=t,r={visual:{fill:"none",stroke:"#000"},source:{x:n.sourceBox.x,y:n.sourceBox.y},target:{x:n.targetBox.x,y:n.targetBox.y},sourceBox:n.sourceBox,targetBox:n.targetBox};return{...e,relations:[...e.relations,r]}}hRe(MLn,"extractNamespace"),hRe(NLn,"extractName"),hRe(XLn,"findSwimlaneByNamespace"),hRe(FLn,"findNextAvailableIndex"),hRe(ULn,"calculateSwimlaneProps"),hRe(zLn,"calculateEntityVisualProps"),hRe(qLn,"calculateTextProps"),hRe(VLn,"decidePositionFrame"),hRe(WLn,"calculateX"),hRe(jLn,"calculateMaxRight"),hRe(YLn,"sortedSwimlanesArray"),hRe(ZLn,"evolveFramePositioned"),hRe(GLn,"isFirstFrame"),hRe(HLn,"hasSourceFrame"),hRe(KLn,"findBoxByFrame"),hRe(JLn,"findBoxByLineIndex"),hRe(eDn,"decidePositionRelation"),hRe(tDn,"evolveRelationPositioned");var nDn={[xLn]:VLn,[kLn]:eDn},rDn={[wLn]:ZLn,[SLn]:tDn};function iDn(e,t){const n=nDn[t.$kind];if(null==n)return[];const r=n(e,t);return ORe.debug("decided events",r),r}function oDn(e,t){const n=t.reduce((e,t)=>{const n=rDn[t.$kind];return null==n?e:n(e,t)},e);return ORe.debug("evolve events",{state:e,newState:n,events:t}),n}function aDn(e,t){return oDn(e,iDn(e,t))}hRe(iDn,"decide"),hRe(oDn,"evolve"),hRe(aDn,"dispatch");var sDn={getConfig:PLn,setOptions:TLn,getOptions:$Ln,clear:_Ln,setAccTitle:VIe,getAccTitle:WIe,getAccDescription:YIe,setAccDescription:jIe,setDiagramTitle:ZIe,getDiagramTitle:GIe,setAst:BLn,getDiagramProps:LLn,getState:RLn},lDn={parse:hRe(async e=>{const t=await gbn("eventmodeling",e);ORe.debug(t),sDn.setAst(t),qzt(t,sDn)},"parse")},cDn=JIe(),uDn=null==cDn?void 0:cDn.eventmodeling;function hDn(e,t){return n=>{const r=n.swimlane.y+t.swimlanePadding,i=e.append("g").attr("class","em-box");i.append("rect").attr("x",n.x).attr("y",r).attr("rx","3").attr("width",n.dimension.width).attr("height",n.dimension.height).attr("stroke",n.visual.stroke).attr("fill",n.visual.fill);i.append("foreignObject").attr("x",n.x+t.boxPadding).attr("y",r+10).attr("width",n.dimension.width-2*t.boxPadding).attr("height",n.dimension.height-2*t.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(n.text)}}function dDn(e,t){return e>t}function pDn(e,t,n,r){return i=>{const o=i.sourceBox.swimlane.y+t.swimlanePadding,a=i.targetBox.swimlane.y+t.swimlanePadding,s=dDn(o,a),l=i.sourceBox.x+2*i.sourceBox.dimension.width/3,c=i.targetBox.x+i.targetBox.dimension.width/3;let u,h;ORe.debug(`rendering relation up=${s} for `,{sourceBox:i.sourceBox,targetBox:i.targetBox}),s?(u=o,h=a+i.targetBox.dimension.height):(u=o+i.sourceBox.dimension.height,h=a);const d=r.emRelationStroke??i.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",i.visual.fill).attr("stroke",d).attr("stroke-width","1").attr("marker-end",`url(#${n})`).attr("d",`M${l} ${u} L${c} ${h}`)}}function fDn(e,t,n,r){return i=>{const o=e.append("g").attr("class","em-swimlane"),a=r.emSwimlaneBackgroundOdd??"rgb(250,250,250)",s=r.emSwimlaneBackgroundStroke??"rgb(240,240,240)";o.append("rect").attr("x",0).attr("y",i.y).attr("rx","3").attr("width",t+n.swimlanePadding).attr("height",i.height).attr("fill",a).attr("stroke",s),o.append("text").attr("font-weight",n.swimlaneTextFontWeight).attr("x",30).attr("y",i.y+30).text(i.label)}}hRe(hDn,"renderD3Box"),hRe(dDn,"dirUpwards"),hRe(pDn,"renderD3Relation"),hRe(fDn,"renderD3Swimlane");var gDn={parser:lDn,db:sDn,renderer:{draw:hRe(function(e,t,n,r){if(ORe.debug("in eventmodeling renderer",e+"\n","id:",t,n),!uDn)throw new Error("EventModeling config not found");const i=r.db,{themeVariables:o,eventmodeling:a}=JIe(),s=GDe(`[id="${t}"]`),l=i.getDiagramProps(),c=i.getState(),u=`em-arrowhead-${t}`,h=o.emArrowhead??"#000000";c.sortedSwimlanesArray.forEach(fDn(s,c.maxR,l,o)),c.boxes.forEach(hDn(s,l)),c.relations.forEach(pDn(s,l,u,o));s.append("defs").append("marker").attr("id",u).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",h),rLe(void 0,s,(null==a?void 0:a.padding)??30,null==a?void 0:a.useMaxWidth)},"draw")},styles:hRe(e=>"","getStyles")};const mDn=Object.freeze(Object.defineProperty({__proto__:null,diagram:gDn},Symbol.toStringTag,{value:"Module"}));var ODn=function(){var e=hRe(function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},"o"),t=[1,4],n=[1,14],r=[1,12],i=[1,13],o=[6,7,8],a=[1,20],s=[1,18],l=[1,19],c=[6,7,11],u=[1,6,13,14],h=[1,23],d=[1,24],p=[1,6,7,11,13,14],f={trace:hRe(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:hRe(function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 6:case 7:return r;case 15:r.addNode(o[s-1].length,o[s].trim());break;case 16:r.addNode(0,o[s].trim())}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:r,14:i},e(o,[2,3]),{1:[2,2]},e(o,[2,4]),e(o,[2,5]),{1:[2,6],6:n,12:15,13:r,14:i},{6:n,9:16,12:11,13:r,14:i},{6:a,7:s,10:17,11:l},e(c,[2,18],{14:[1,21]}),e(c,[2,16]),e(c,[2,17]),{6:a,7:s,10:22,11:l},{1:[2,7],6:n,12:15,13:r,14:i},e(u,[2,14],{7:h,11:d}),e(p,[2,8]),e(p,[2,9]),e(p,[2,10]),e(c,[2,15]),e(u,[2,13],{7:h,11:d}),e(p,[2,11]),e(p,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:hRe(function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},"parseError"),parse:hRe(function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),h=Object.create(this.lexer),d={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d.yy[p]=this.yy[p]);h.setInput(e,d.yy),d.yy.lexer=h,d.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var f=h.yylloc;o.push(f);var g=h.options&&h.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||h.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,hRe(function(e){n.length=n.length-2*e,i.length=i.length-e,o.length=o.length-e},"popStack"),hRe(m,"lex");for(var O,A,y,v,b,x,w,k,S={};;){if(A=n[n.length-1],this.defaultActions[A]?y=this.defaultActions[A]:(null==O&&(O=m()),y=a[A]&&a[A][O]),void 0===y||!y.length||!y[0]){var T="";for(b in k=[],a[A])this.terminals_[b]&&b>2&&k.push("'"+this.terminals_[b]+"'");T=h.showPosition?"Parse error on line "+(l+1)+":\n"+h.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[O]||O)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==O?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[O]||O,line:h.yylineno,loc:f,expected:k})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+O);switch(y[0]){case 1:n.push(O),i.push(h.yytext),o.push(h.yylloc),n.push(y[1]),O=null,c=h.yyleng,s=h.yytext,l=h.yylineno,f=h.yylloc;break;case 2:if(x=this.productions_[y[1]][1],S.$=i[i.length-x],S._$={first_line:o[o.length-(x||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(x||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(x||1)].range[0],o[o.length-1].range[1]]),void 0!==(v=this.performAction.apply(S,[s,c,l,d.yy,y[1],i,o].concat(u))))return v;x&&(n=n.slice(0,-1*x*2),i=i.slice(0,-1*x),o=o.slice(0,-1*x)),n.push(this.productions_[y[1]][0]),i.push(S.$),o.push(S._$),w=a[n[n.length-2]][n[n.length-1]],n.push(w);break;case 3:return!0}}return!0},"parse")},g=function(){var e={EOF:1,parseError:hRe(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:hRe(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:hRe(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:hRe(function(e){var t=e.length,n=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 r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:hRe(function(){return this._more=!0,this},"more"),reject:hRe(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:hRe(function(e){this.unput(this.match.slice(e))},"less"),pastInput:hRe(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:hRe(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:hRe(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:hRe(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.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],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},"test_match"),next:hRe(function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&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:hRe(function(){var e=this.next();return e||this.lex()},"lex"),begin:hRe(function(e){this.conditionStack.push(e)},"begin"),popState:hRe(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:hRe(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:hRe(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:hRe(function(e){this.begin(e)},"pushState"),stateStackSize:hRe(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:hRe(function(e,t,n,r){switch(n){case 0:case 3:return 6;case 1:case 2:return 8;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return e}();function m(){this.yy={}}return f.lexer=g,hRe(m,"Parser"),m.prototype=f,f.Parser=m,new m}();ODn.parser=ODn;var ADn=ODn,yDn=(hRe(Wn=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,qIe()}getRoot(){return this.root}addNode(e,t){const n=CIe.sanitizeText(t,JIe());if(!this.root)return this.root={text:n,children:[]},this.stack=[{level:0,node:this.root}],void ZIe(n);this.baseLevel??(this.baseLevel=e);let r=e-this.baseLevel+1;for(r<=0&&(r=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=r;)this.stack.pop();const i={text:n,children:[]};this.stack[this.stack.length-1].node.children.push(i),this.stack.push({level:r,node:i})}getAccTitle(){return WIe()}setAccTitle(e){VIe(e)}getAccDescription(){return YIe()}setAccDescription(e){jIe(e)}getDiagramTitle(){return GIe()}setDiagramTitle(e){ZIe(e)}},"IshikawaDB"),Wn),vDn=250,bDn=82*Math.PI/180,xDn=Math.cos(bDn),wDn=Math.sin(bDn),kDn=hRe((e,t,n)=>{const r=e.node().getBBox(),i=r.width+2*t,o=r.height+2*t;EIe(e,o,i,n),e.attr("viewBox",`${r.x-t} ${r.y-t} ${i} ${o}`)},"applyPaddedViewBox"),SDn=hRe((e,t,n,r)=>{var i,o;const a=r.db.getRoot();if(!a)return;const s=JIe(),{look:l,handDrawnSeed:c,themeVariables:u}=s,h=WWe(s.fontSize)[0]??14,d="handDrawn"===l,p=a.children??[],f=(null==(i=s.ishikawa)?void 0:i.diagramPadding)??20,g=(null==(o=s.ishikawa)?void 0:o.useMaxWidth)??!1,m=Mqe(t),O=m.append("g").attr("class","ishikawa"),A=d?jZe(m.node()):void 0,y=A?{roughSvg:A,seed:c??0,lineColor:(null==u?void 0:u.lineColor)??"#333",fillColor:(null==u?void 0:u.mainBkg)??"#fff"}:void 0,v=`ishikawa-arrow-${t}`;d||O.append("defs").append("marker").attr("id",v).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 Z").attr("class","ishikawa-arrow");let b=0,x=vDn;const w=d?void 0:LDn(O,b,x,b,x,"ishikawa-spine");if($Dn(O,b,x,a.text,h,y),!p.length)return d&&LDn(O,b,x,b,x,"ishikawa-spine",y),void kDn(m,f,g);b-=20;const k=p.filter((e,t)=>t%2==0),S=p.filter((e,t)=>t%2==1),T=TDn(k),$=TDn(S),_=T.total+$.total;let C=vDn,Q=vDn;if(_>0){const e=500,t=75;C=Math.max(t,e*(T.total/_)),Q=Math.max(t,e*($.total/_))}const P=2*h;C=Math.max(C,T.max*P),Q=Math.max(Q,$.max*P),x=Math.max(C,vDn),w&&w.attr("y1",x).attr("y2",x),O.select(".ishikawa-head-group").attr("transform",`translate(0,${x})`);const E=Math.ceil(p.length/2);for(let R=0;R<E;R++){const e=O.append("g").attr("class","ishikawa-pair");for(const[t,n,r]of[[p[2*R],-1,C],[p[2*R+1],1,Q]])t&&PDn(e,t,b,x,n,r,h,y);b=e.selectAll("text").nodes().reduce((e,t)=>Math.min(e,t.getBBox().x),1/0)}if(d)LDn(O,b,x,0,x,"ishikawa-spine",y);else{w.attr("x1",b);const e=`url(#${v})`;O.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start",e)}kDn(m,f,g)},"draw"),TDn=hRe(e=>{const t=hRe(e=>e.children.reduce((e,n)=>e+1+t(n),0),"countDescendants");return e.reduce((e,n)=>{const r=t(n);return e.total+=r,e.max=Math.max(e.max,r),e},{total:0,max:0})},"sideStats"),$Dn=hRe((e,t,n,r,i,o)=>{const a=Math.max(6,Math.floor(110/(.6*i))),s=e.append("g").attr("class","ishikawa-head-group").attr("transform",`translate(${t},${n})`),l=BDn(s,RDn(r,a),0,0,"ishikawa-head-label","start",i),c=l.node().getBBox(),u=Math.max(60,c.width+6),h=Math.max(40,2*c.height+40),d=`M 0 ${-h/2} L 0 ${h/2} Q ${2.4*u} 0 0 ${-h/2} Z`;if(o){const e=o.roughSvg.path(d,{roughness:1.5,seed:o.seed,fill:o.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:o.lineColor,strokeWidth:2});s.insert(()=>e,":first-child").attr("class","ishikawa-head")}else s.insert("path",":first-child").attr("class","ishikawa-head").attr("d",d);l.attr("transform",`translate(${(u-c.width)/2-c.x+3},${-c.y-c.height/2})`)},"drawHead"),_Dn=hRe((e,t)=>{const n=[],r=[],i=hRe((e,o,a)=>{const s=-1===t?[...e].reverse():e;for(const t of s){const e=n.length,s=t.children??[];n.push({depth:a,text:RDn(t.text,15),parentIndex:o,childCount:s.length}),a%2==0?(r.push(e),s.length&&i(s,e,a+1)):(s.length&&i(s,e,a+1),r.push(e))}},"walk");return i(e,-1,2),{entries:n,yOrder:r}},"flattenTree"),CDn=hRe((e,t,n,r,i,o,a)=>{const s=e.append("g").attr("class","ishikawa-label-group"),l=BDn(s,t,n,r+11*i,"ishikawa-label cause","middle",o).node().getBBox();if(a){const e=a.roughSvg.rectangle(l.x-20,l.y-2,l.width+40,l.height+4,{roughness:1.5,seed:a.seed,fill:a.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:a.lineColor,strokeWidth:2});s.insert(()=>e,":first-child").attr("class","ishikawa-label-box")}else s.insert("rect",":first-child").attr("class","ishikawa-label-box").attr("x",l.x-20).attr("y",l.y-2).attr("width",l.width+40).attr("height",l.height+4)},"drawCauseLabel"),QDn=hRe((e,t,n,r,i,o)=>{const a=Math.sqrt(r*r+i*i);if(0===a)return;const s=r/a,l=i/a,c=6*-l,u=6*s,h=`M ${t} ${n} L ${t-6*s*2+c} ${n-6*l*2+u} L ${t-6*s*2-c} ${n-6*l*2-u} Z`,d=o.roughSvg.path(h,{roughness:1,seed:o.seed,fill:o.lineColor,fillStyle:"solid",stroke:o.lineColor,strokeWidth:1});e.append(()=>d)},"drawArrowMarker"),PDn=hRe((e,t,n,r,i,o,a,s)=>{const l=t.children??[],c=o*(l.length?1:.2),u=wDn*c*i,h=n+-xDn*c,d=r+u;if(LDn(e,n,r,h,d,"ishikawa-branch",s),s&&QDn(e,n,r,n-h,r-d,s),CDn(e,t.text,h,d,i,a,s),!l.length)return;const{entries:p,yOrder:f}=_Dn(l,i),g=p.length,m=new Array(g);for(const[b,x]of f.entries())m[x]=r+u*((b+1)/(g+1));const O=new Map;O.set(-1,{x0:n,y0:r,x1:h,y1:d,childCount:l.length,childrenDrawn:0});const A=-xDn,y=wDn*i,v=i<0?"ishikawa-label up":"ishikawa-label down";for(const[b,x]of p.entries()){const t=m[b],n=O.get(x.parentIndex),r=e.append("g").attr("class","ishikawa-sub-group");let i=0,o=0,l=0;if(x.depth%2==0){const e=n.y1-n.y0;i=IDn(n.x0,n.x1,e?(t-n.y0)/e:.5),o=t,l=i-(x.childCount>0?60+5*x.childCount:30),LDn(r,i,t,l,t,"ishikawa-sub-branch",s),s&&QDn(r,i,t,1,0,s),BDn(r,x.text,l,t,"ishikawa-label align","end",a)}else{const e=n.childrenDrawn++;i=IDn(n.x0,n.x1,(n.childCount-e)/(n.childCount+1)),o=n.y0,l=i+A*((t-o)/y),LDn(r,i,o,l,t,"ishikawa-sub-branch",s),s&&QDn(r,i,o,i-l,o-t,s),BDn(r,x.text,l,t,v,"end",a)}x.childCount>0&&O.set(b,{x0:i,y0:o,x1:l,y1:t,childCount:x.childCount,childrenDrawn:0})}},"drawBranch"),EDn=hRe(e=>e.split(/<br\s*\/?>|\n/),"splitLines"),RDn=hRe((e,t)=>{if(e.length<=t)return e;const n=[];for(const r of e.split(/\s+/)){const e=n.length-1;e>=0&&n[e].length+1+r.length<=t?n[e]+=" "+r:n.push(r)}return n.join("\n")},"wrapText"),BDn=hRe((e,t,n,r,i,o,a)=>{const s=EDn(t),l=1.05*a,c=e.append("text").attr("class",i).attr("text-anchor",o).attr("x",n).attr("y",r-(s.length-1)*l/2);for(const[u,h]of s.entries())c.append("tspan").attr("x",n).attr("dy",0===u?0:l).text(h);return c},"drawMultilineText"),IDn=hRe((e,t,n)=>e+(t-e)*n,"lerp"),LDn=hRe((e,t,n,r,i,o,a)=>{if(a){const s=a.roughSvg.line(t,n,r,i,{roughness:1.5,seed:a.seed,stroke:a.lineColor,strokeWidth:2});return void e.append(()=>s).attr("class",o)}return e.append("line").attr("class",o).attr("x1",t).attr("y1",n).attr("x2",r).attr("y2",i)},"drawLine"),DDn={draw:SDn},MDn=hRe(e=>`\n.ishikawa .ishikawa-spine,\n.ishikawa .ishikawa-branch,\n.ishikawa .ishikawa-sub-branch {\n stroke: ${e.lineColor};\n stroke-width: 2;\n fill: none;\n}\n\n.ishikawa .ishikawa-sub-branch {\n stroke-width: 1;\n}\n\n.ishikawa .ishikawa-arrow {\n fill: ${e.lineColor};\n}\n\n.ishikawa .ishikawa-head {\n fill: ${e.mainBkg};\n stroke: ${e.lineColor};\n stroke-width: 2;\n}\n\n.ishikawa .ishikawa-label-box {\n fill: ${e.mainBkg};\n stroke: ${e.lineColor};\n stroke-width: 2;\n}\n\n.ishikawa text {\n font-family: ${e.fontFamily};\n font-size: ${e.fontSize};\n fill: ${e.textColor};\n}\n\n.ishikawa .ishikawa-head-label {\n font-weight: 600;\n text-anchor: middle;\n dominant-baseline: middle;\n font-size: 14px;\n}\n\n.ishikawa .ishikawa-label {\n text-anchor: end;\n}\n\n.ishikawa .ishikawa-label.cause {\n text-anchor: middle;\n dominant-baseline: middle;\n}\n\n.ishikawa .ishikawa-label.align {\n text-anchor: end;\n dominant-baseline: middle;\n}\n\n.ishikawa .ishikawa-label.up {\n dominant-baseline: baseline;\n}\n\n.ishikawa .ishikawa-label.down {\n dominant-baseline: hanging;\n}\n`,"getStyles"),NDn={parser:ADn,get db(){return new yDn},renderer:DDn,styles:MDn};const XDn=Object.freeze(Object.defineProperty({__proto__:null,diagram:NDn},Symbol.toStringTag,{value:"Module"})),FDn=1e-10;function UDn(e,t){const n=function(e){const t=[];for(let n=0;n<e.length;++n)for(let r=n+1;r<e.length;++r){const i=WDn(e[n],e[r]);for(const e of i)e.parentIndex=[n,r],t.push(e)}return t}(e),r=n.filter(t=>function(e,t){return t.every(t=>qDn(e,t)<t.radius+FDn)}(t,e));let i=0,o=0;const a=[];if(r.length>1){const t=jDn(r);for(let e=0;e<r.length;++e){const n=r[e];n.angle=Math.atan2(n.x-t.x,n.y-t.y)}r.sort((e,t)=>t.angle-e.angle);let n=r[r.length-1];for(let s=0;s<r.length;++s){const t=r[s];o+=(n.x+t.x)*(t.y-n.y);const l={x:(t.x+n.x)/2,y:(t.y+n.y)/2};let c=null;for(let r=0;r<t.parentIndex.length;++r)if(n.parentIndex.includes(t.parentIndex[r])){const i=e[t.parentIndex[r]],o=Math.atan2(t.x-i.x,t.y-i.y),a=Math.atan2(n.x-i.x,n.y-i.y);let s=a-o;s<0&&(s+=2*Math.PI);const u=a-s/2;let h=qDn(l,{x:i.x+i.radius*Math.sin(u),y:i.y+i.radius*Math.cos(u)});h>2*i.radius&&(h=2*i.radius),(null==c||c.width>h)&&(c={circle:i,width:h,p1:t,p2:n,large:h>i.radius,sweep:!0})}null!=c&&(a.push(c),i+=zDn(c.circle.radius,c.width),n=t)}}else{let t=e[0];for(let r=1;r<e.length;++r)e[r].radius<t.radius&&(t=e[r]);let n=!1;for(let r=0;r<e.length;++r)if(qDn(e[r],t)>Math.abs(t.radius-e[r].radius)){n=!0;break}n?i=o=0:(i=t.radius*t.radius*Math.PI,a.push({circle:t,p1:{x:t.x,y:t.y+t.radius},p2:{x:t.x-FDn,y:t.y+t.radius},width:2*t.radius,large:!0,sweep:!0}))}return o/=2,t&&(t.area=i+o,t.arcArea=i,t.polygonArea=o,t.arcs=a,t.innerPoints=r,t.intersectionPoints=n),i+o}function zDn(e,t){return e*e*Math.acos(1-t/e)-(e-t)*Math.sqrt(t*(2*e-t))}function qDn(e,t){return Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))}function VDn(e,t,n){if(n>=e+t)return 0;if(n<=Math.abs(e-t))return Math.PI*Math.min(e,t)*Math.min(e,t);const r=t-(n*n-e*e+t*t)/(2*n);return zDn(e,e-(n*n-t*t+e*e)/(2*n))+zDn(t,r)}function WDn(e,t){const n=qDn(e,t),r=e.radius,i=t.radius;if(n>=r+i||n<=Math.abs(r-i))return[];const o=(r*r-i*i+n*n)/(2*n),a=Math.sqrt(r*r-o*o),s=e.x+o*(t.x-e.x)/n,l=e.y+o*(t.y-e.y)/n,c=-(t.y-e.y)*(a/n),u=-(t.x-e.x)*(a/n);return[{x:s+c,y:l-u},{x:s-c,y:l+u}]}function jDn(e){const t={x:0,y:0};for(const n of e)t.x+=n.x,t.y+=n.y;return t.x/=e.length,t.y/=e.length,t}function YDn(e){const t=new Array(e);for(let n=0;n<e;++n)t[n]=0;return t}function ZDn(e,t){return YDn(e).map(()=>YDn(t))}function GDn(e,t){let n=0;for(let r=0;r<e.length;++r)n+=e[r]*t[r];return n}function HDn(e){return Math.sqrt(GDn(e,e))}function KDn(e,t,n){for(let r=0;r<t.length;++r)e[r]=t[r]*n}function JDn(e,t,n,r,i){for(let o=0;o<e.length;++o)e[o]=t*n[o]+r*i[o]}function eMn(e,t,n){const r=(n=n||{}).maxIterations||200*t.length,i=n.nonZeroDelta||1.05,o=n.zeroDelta||.001,a=n.minErrorDelta||1e-6,s=n.minErrorDelta||1e-5,l=void 0!==n.rho?n.rho:1,c=void 0!==n.chi?n.chi:2,u=void 0!==n.psi?n.psi:-.5,h=void 0!==n.sigma?n.sigma:.5;let d;const p=t.length,f=new Array(p+1);f[0]=t,f[0].fx=e(t),f[0].id=0;for(let b=0;b<p;++b){const n=t.slice();n[b]=n[b]?n[b]*i:o,f[b+1]=n,f[b+1].fx=e(n),f[b+1].id=b+1}function g(e){for(let t=0;t<e.length;t++)f[p][t]=e[t];f[p].fx=e.fx}const m=(e,t)=>e.fx-t.fx,O=t.slice(),A=t.slice(),y=t.slice(),v=t.slice();for(let b=0;b<r;++b){if(f.sort(m),n.history){const e=f.map(e=>{const t=e.slice();return t.fx=e.fx,t.id=e.id,t});e.sort((e,t)=>e.id-t.id),n.history.push({x:f[0].slice(),fx:f[0].fx,simplex:e})}d=0;for(let e=0;e<p;++e)d=Math.max(d,Math.abs(f[0][e]-f[1][e]));if(Math.abs(f[0].fx-f[p].fx)<a&&d<s)break;for(let e=0;e<p;++e){O[e]=0;for(let t=0;t<p;++t)O[e]+=f[t][e];O[e]/=p}const t=f[p];if(JDn(A,1+l,O,-l,t),A.fx=e(A),A.fx<f[0].fx)JDn(v,1+c,O,-c,t),v.fx=e(v),v.fx<A.fx?g(v):g(A);else if(A.fx>=f[p-1].fx){let n=!1;if(A.fx>t.fx?(JDn(y,1+u,O,-u,t),y.fx=e(y),y.fx<t.fx?g(y):n=!0):(JDn(y,1-u*l,O,u*l,t),y.fx=e(y),y.fx<A.fx?g(y):n=!0),n){if(h>=1)break;for(let t=1;t<f.length;++t)JDn(f[t],1-h,f[0],h,f[t]),f[t].fx=e(f[t])}}else g(A)}return f.sort(m),{fx:f[0].fx,x:f[0]}}function tMn(e,t,n,r,i,o,a){const s=n.fx,l=GDn(n.fxprime,t);let c=s,u=s,h=l,d=0;function p(u,d,p){for(let f=0;f<16;++f)if(i=(u+d)/2,JDn(r.x,1,n.x,i,t),c=r.fx=e(r.x,r.fxprime),h=GDn(r.fxprime,t),c>s+o*i*l||c>=p)d=i;else{if(Math.abs(h)<=-a*l)return i;h*(d-u)>=0&&(d=u),u=i,p=c}return 0}i=i||1,o=o||1e-6,a=a||.1;for(let f=0;f<10;++f){if(JDn(r.x,1,n.x,i,t),c=r.fx=e(r.x,r.fxprime),h=GDn(r.fxprime,t),c>s+o*i*l||f&&c>=u)return p(d,i,u);if(Math.abs(h)<=-a*l)return i;if(h>=0)return p(i,d,c);u=c,d=i,i*=2}return i}function nMn(e,t,n){let r={x:t.slice(),fx:0,fxprime:t.slice()},i={x:t.slice(),fx:0,fxprime:t.slice()};const o=t.slice();let a,s,l,c=1;l=(n=n||{}).maxIterations||20*t.length,r.fx=e(r.x,r.fxprime),a=r.fxprime.slice(),KDn(a,r.fxprime,-1);for(let u=0;u<l;++u){if(c=tMn(e,a,r,i,c),n.history&&n.history.push({x:r.x.slice(),fx:r.fx,fxprime:r.fxprime.slice(),alpha:c}),c){JDn(o,1,i.fxprime,-1,r.fxprime);const e=GDn(r.fxprime,r.fxprime);JDn(a,Math.max(0,GDn(o,i.fxprime)/e),a,-1,i.fxprime),s=r,r=i,i=s}else KDn(a,r.fxprime,-1);if(HDn(r.fxprime)<=1e-5)break}return n.history&&n.history.push({x:r.x.slice(),fx:r.fx,fxprime:r.fxprime.slice(),alpha:c}),r}function rMn(e,t={}){t.maxIterations=t.maxIterations||500;const n=t.initialLayout||aMn,r=t.lossFunction||sMn,i=function(e,t={}){const n=t.distinct,r=e.map(e=>Object.assign({},e));function i(e){return e.join(";")}if(n){const e=new Map;for(const t of r)for(let n=0;n<t.sets.length;n++){const r=String(t.sets[n]);e.set(r,t.size+(e.get(r)||0));for(let i=n+1;i<t.sets.length;i++){const n=String(t.sets[i]),o=`${r};${n}`,a=`${n};${r}`;e.set(o,t.size+(e.get(o)||0)),e.set(a,t.size+(e.get(a)||0))}}for(const t of r)t.sets.length<3&&(t.size=e.get(i(t.sets)))}const o=[],a=new Set;for(const s of r)if(1===s.sets.length)o.push(s.sets[0]);else if(2===s.sets.length){const e=s.sets[0],t=s.sets[1];a.add(i(s.sets)),a.add(i([t,e]))}o.sort((e,t)=>e===t?0:e<t?-1:1);for(let s=0;s<o.length;++s){const e=o[s];for(let t=s+1;t<o.length;++t){const n=o[t];a.has(i([e,n]))||r.push({sets:[e,n],size:0})}}return r}(e,t),o=n(i,t),a=Object.keys(o),s=[];for(const u of a)s.push(o[u].x),s.push(o[u].y);const l=eMn(e=>{const t={};for(let n=0;n<a.length;++n){const r=a[n];t[r]={x:e[2*n],y:e[2*n+1],radius:o[r].radius}}return r(t,i)},s,t),c=l.x;for(let u=0;u<a.length;++u){const e=a[u];o[e].x=c[2*u],o[e].y=c[2*u+1]}return o}const iMn=1e-10;function oMn(e,t,n){return Math.min(e,t)*Math.min(e,t)*Math.PI<=n+iMn?Math.abs(e-t):function(e,t,n,r){const i=(r=r||{}).maxIterations||100,o=r.tolerance||1e-10,a=e(t),s=e(n);let l=n-t;if(a*s>0)throw"Initial bisect points must have opposite signs";if(0===a)return t;if(0===s)return n;for(let c=0;c<i;++c){l/=2;const n=t+l,r=e(n);if(r*a>=0&&(t=n),Math.abs(l)<o||0===r)return n}return t+l}(r=>VDn(e,t,r)-n,0,e+t)}function aMn(e,t={}){let n=function(e,t){const n=t&&t.lossFunction?t.lossFunction:sMn,r={},i={};for(const h of e)if(1===h.sets.length){const e=h.sets[0];r[e]={x:1e10,y:1e10,rowid:r.length,size:h.size,radius:Math.sqrt(h.size/Math.PI)},i[e]=[]}e=e.filter(e=>2===e.sets.length);for(const h of e){let e=null!=h.weight?h.weight:1;const t=h.sets[0],n=h.sets[1];h.size+iMn>=Math.min(r[t].size,r[n].size)&&(e=0),i[t].push({set:n,size:h.size,weight:e}),i[n].push({set:t,size:h.size,weight:e})}const o=[];function a(e,t){return t.size-e.size}Object.keys(i).forEach(e=>{let t=0;for(let n=0;n<i[e].length;++n)t+=i[e][n].size*i[e][n].weight;o.push({set:e,size:t})}),o.sort(a);const s={};function l(e){return e.set in s}function c(e,t){r[t].x=e.x,r[t].y=e.y,s[t]=!0}c({x:0,y:0},o[0].set);for(let h=1;h<o.length;++h){const t=o[h].set,s=i[t].filter(l),d=r[t];if(s.sort(a),0===s.length)throw"ERROR: missing pairwise overlap information";const p=[];for(var u=0;u<s.length;++u){const e=r[s[u].set],t=oMn(d.radius,e.radius,s[u].size);p.push({x:e.x+t,y:e.y}),p.push({x:e.x-t,y:e.y}),p.push({y:e.y+t,x:e.x}),p.push({y:e.y-t,x:e.x});for(let n=u+1;n<s.length;++n){const i=r[s[n].set],o=oMn(d.radius,i.radius,s[n].size),a=WDn({x:e.x,y:e.y,radius:t},{x:i.x,y:i.y,radius:o});p.push(...a)}}let f=1e50,g=p[0];for(const i of p){r[t].x=i.x,r[t].y=i.y;const o=n(r,e);o<f&&(f=o,g=i)}c(g,t)}return r}(e,t);const r=t.lossFunction||sMn;if(e.length>=8){const i=function(e,t={}){const n=t.restarts||10,r=[],i={};for(const d of e)1===d.sets.length&&(i[d.sets[0]]=r.length,r.push(d));let{distances:o,constraints:a}=function(e,t,n){const r=ZDn(t.length,t.length),i=ZDn(t.length,t.length);return e.filter(e=>2===e.sets.length).forEach(e=>{const o=n[e.sets[0]],a=n[e.sets[1]],s=oMn(Math.sqrt(t[o].size/Math.PI),Math.sqrt(t[a].size/Math.PI),e.size);r[o][a]=r[a][o]=s;let l=0;e.size+1e-10>=Math.min(t[o].size,t[a].size)?l=1:e.size<=1e-10&&(l=-1),i[o][a]=i[a][o]=l}),{distances:r,constraints:i}}(e,r,i);const s=HDn(o.map(HDn))/o.length;o=o.map(e=>e.map(e=>e/s));const l=(e,t)=>function(e,t,n,r){for(let o=0;o<t.length;++o)t[o]=0;let i=0;for(let o=0;o<n.length;++o){const a=e[2*o],s=e[2*o+1];for(let l=o+1;l<n.length;++l){const c=e[2*l],u=e[2*l+1],h=n[o][l],d=r[o][l],p=(c-a)*(c-a)+(u-s)*(u-s),f=Math.sqrt(p),g=p-h*h;d>0&&f<=h||d<0&&f>=h||(i+=2*g*g,t[2*o]+=4*g*(a-c),t[2*o+1]+=4*g*(s-u),t[2*l]+=4*g*(c-a),t[2*l+1]+=4*g*(u-s))}}return i}(e,t,o,a);let c=null;for(let d=0;d<n;++d){const e=nMn(l,YDn(2*o.length).map(Math.random),t);(!c||e.fx<c.fx)&&(c=e)}const u=c.x,h={};for(let d=0;d<r.length;++d){const e=r[d];h[e.sets[0]]={x:u[2*d]*s,y:u[2*d+1]*s,radius:Math.sqrt(e.size/Math.PI)}}if(t.history)for(const d of t.history)KDn(d.x,s);return h}(e,t);r(i,e)+1e-8<r(n,e)&&(n=i)}return n}function sMn(e,t){let n=0;for(const r of t){if(1===r.sets.length)continue;let t;if(2===r.sets.length){const n=e[r.sets[0]],i=e[r.sets[1]];t=VDn(n.radius,i.radius,qDn(n,i))}else t=UDn(r.sets.map(t=>e[t]));n+=(null!=r.weight?r.weight:1)*(t-r.size)*(t-r.size)}return n}function lMn(e,t){let n=0;for(const r of t){if(1===r.sets.length)continue;let t;if(2===r.sets.length){const n=e[r.sets[0]],i=e[r.sets[1]];t=VDn(n.radius,i.radius,qDn(n,i))}else t=UDn(r.sets.map(t=>e[t]));const i=null!=r.weight?r.weight:1,o=Math.log((t+1)/(r.size+1));n+=i*o*o}return n}function cMn(e,t,n){if(null==n?e.sort((e,t)=>t.radius-e.radius):e.sort(n),e.length>0){const t=e[0].x,n=e[0].y;for(const r of e)r.x-=t,r.y-=n}if(2===e.length){qDn(e[0],e[1])<Math.abs(e[1].radius-e[0].radius)&&(e[1].x=e[0].x+e[0].radius-e[1].radius-1e-10,e[1].y=e[0].y)}if(e.length>1){const n=Math.atan2(e[1].x,e[1].y)-t,r=Math.cos(n),i=Math.sin(n);for(const t of e){const e=t.x,n=t.y;t.x=r*e-i*n,t.y=i*e+r*n}}if(e.length>2){let n=Math.atan2(e[2].x,e[2].y)-t;for(;n<0;)n+=2*Math.PI;for(;n>2*Math.PI;)n-=2*Math.PI;if(n>Math.PI){const t=e[1].y/(1e-10+e[1].x);for(const n of e){var r=(n.x+t*n.y)/(1+t*t);n.x=2*r-n.x,n.y=2*r*t-n.y}}}}function uMn(e){const t=t=>({max:e.reduce((e,n)=>Math.max(e,n[t]+n.radius),Number.NEGATIVE_INFINITY),min:e.reduce((e,n)=>Math.min(e,n[t]-n.radius),Number.POSITIVE_INFINITY)});return{xRange:t("x"),yRange:t("y")}}function hMn(e,t,n){null==t&&(t=Math.PI/2);let r=fMn(e).map(e=>Object.assign({},e));const i=function(e){function t(e){return e.parent!==e&&(e.parent=t(e.parent)),e.parent}function n(e,n){const r=t(e),i=t(n);r.parent=i}e.forEach(e=>{e.parent=e});for(let i=0;i<e.length;++i)for(let t=i+1;t<e.length;++t){const r=e[i].radius+e[t].radius;qDn(e[i],e[t])+1e-10<r&&n(e[t],e[i])}const r=new Map;for(let i=0;i<e.length;++i){const n=t(e[i]).parent.setid;r.has(n)||r.set(n,[]),r.get(n).push(e[i])}return e.forEach(e=>{delete e.parent}),Array.from(r.values())}(r);for(const c of i){cMn(c,t,n);const e=uMn(c);c.size=(e.xRange.max-e.xRange.min)*(e.yRange.max-e.yRange.min),c.bounds=e}i.sort((e,t)=>t.size-e.size),r=i[0];let o=r.bounds;const a=(o.xRange.max-o.xRange.min)/50;function s(e,t,n){if(!e)return;const i=e.bounds;let s,l;if(t)s=o.xRange.max-i.xRange.min+a;else{s=o.xRange.max-i.xRange.max;const e=(i.xRange.max-i.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;e<0&&(s+=e)}if(n)l=o.yRange.max-i.yRange.min+a;else{l=o.yRange.max-i.yRange.max;const e=(i.yRange.max-i.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;e<0&&(l+=e)}for(const o of e)o.x+=s,o.y+=l,r.push(o)}let l=1;for(;l<i.length;)s(i[l],!0,!1),s(i[l+1],!1,!0),s(i[l+2],!0,!0),l+=3,o=uMn(r);return pMn(r)}function dMn(e,t,n,r,i){const o=fMn(e);t-=2*r,n-=2*r;const{xRange:a,yRange:s}=uMn(o);if(a.max===a.min||s.max===s.min)return e;let l,c;if(i){const e=2*Math.sqrt(i/Math.PI);l=t/e,c=n/e}else l=t/(a.max-a.min),c=n/(s.max-s.min);const u=Math.min(c,l),h=(t-(a.max-a.min)*u)/2,d=(n-(s.max-s.min)*u)/2;return pMn(o.map(e=>({radius:u*e.radius,x:r+h+(e.x-a.min)*u,y:r+d+(e.y-s.min)*u,setid:e.setid})))}function pMn(e){const t={};for(const n of e)t[n.setid]=n;return t}function fMn(e){return Object.keys(e).map(t=>Object.assign(e[t],{setid:t}))}function gMn(e={}){let t=!1,n=600,r=350,i=15,o=1e3,a=Math.PI/2,s=!0,l=null,c=!0,u=!0,h=null,d=null,p=!1,f=null,g=!(!e||!e.symmetricalTextCentre)&&e.symmetricalTextCentre,m={},O=e&&e.colourScheme?e.colourScheme:e&&e.colorScheme?e.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],A=0,y=function(e){if(e in m)return m[e];var t=m[e]=O[A];return A+=1,A>=O.length&&(A=0),t},v=rMn,b=sMn;function x(m){let O=m.datum();const A=new Set;O.forEach(e=>{0==e.size&&1==e.sets.length&&A.add(e.sets[0])}),O=O.filter(e=>!e.sets.some(e=>A.has(e)));let x={},w={};if(O.length>0){let e=v(O,{lossFunction:b,distinct:p});s&&(e=hMn(e,a,d)),x=dMn(e,n,r,i,l),w=yMn(x,O,g)}const k={};function S(e){return e.sets in k?k[e.sets]:1==e.sets.length?""+e.sets[0]:void 0}O.forEach(e=>{e.label&&(k[e.sets]=e.label)}),m.selectAll("svg").data([x]).enter().append("svg");const T=m.select("svg");t?T.attr("viewBox",`0 0 ${n} ${r}`):T.attr("width",n).attr("height",r);const $={};let _=!1;function C(e){return t=>xMn(e.sets.map(e=>{let i=$[e],o=x[e];return i||(i={x:n/2,y:r/2,radius:1}),o||(o={x:n/2,y:r/2,radius:1}),{x:i.x*(1-t)+o.x*t,y:i.y*(1-t)+o.y*t,radius:i.radius*(1-t)+o.radius*t}}),f)}T.selectAll(".venn-area path").each(function(e){const t=this.getAttribute("d");1==e.sets.length&&t&&!p&&(_=!0,$[e.sets[0]]=function(e){const t=e.split(" ");return{x:Number.parseFloat(t[1]),y:Number.parseFloat(t[2]),radius:-Number.parseFloat(t[4])}}(t))});const Q=T.selectAll(".venn-area").data(O,e=>e.sets),P=Q.enter().append("g").attr("class",e=>`venn-area venn-${1==e.sets.length?"circle":"intersection"}${e.colour||e.color?" venn-coloured":""}`).attr("data-venn-sets",e=>e.sets.join("_")),E=P.append("path"),R=P.append("text").attr("class","label").text(e=>S(e)).attr("text-anchor","middle").attr("dy",".35em").attr("x",n/2).attr("y",r/2);function B(e){return"function"==typeof e.transition?e.transition("venn").duration(o):e}u&&(E.style("fill-opacity","0").filter(e=>1==e.sets.length).style("fill",e=>e.colour?e.colour:e.color?e.color:y(e.sets)).style("fill-opacity",".25"),R.style("fill",t=>t.colour||t.color?"#FFF":e.textFill?e.textFill:1==t.sets.length?y(t.sets):"#444"));let I=m;_&&"function"==typeof I.transition?(I=B(m),I.selectAll("path").attrTween("d",C)):I.selectAll("path").attr("d",e=>xMn(e.sets.map(e=>x[e])),f);const L=I.selectAll("text").filter(e=>e.sets in w).text(e=>S(e)).attr("x",e=>Math.floor(w[e.sets].x)).attr("y",e=>Math.floor(w[e.sets].y));c&&(_?"on"in L?L.on("end",mMn(x,S)):L.each("end",mMn(x,S)):L.each(mMn(x,S)));const D=B(Q.exit()).remove();"function"==typeof Q.transition&&D.selectAll("path").attrTween("d",C);const M=D.selectAll("text").attr("x",n/2).attr("y",r/2);return null!==h&&(R.style("font-size","0px"),L.style("font-size",h),M.style("font-size","0px")),{circles:x,textCentres:w,nodes:Q,enter:P,update:I,exit:D}}return x.wrap=function(e){return arguments.length?(c=e,x):c},x.useViewBox=function(){return t=!0,x},x.width=function(e){return arguments.length?(n=e,x):n},x.height=function(e){return arguments.length?(r=e,x):r},x.padding=function(e){return arguments.length?(i=e,x):i},x.distinct=function(e){return arguments.length?(p=e,x):p},x.colours=function(e){return arguments.length?(y=e,x):y},x.colors=function(e){return arguments.length?(y=e,x):y},x.fontSize=function(e){return arguments.length?(h=e,x):h},x.round=function(e){return arguments.length?(f=e,x):f},x.duration=function(e){return arguments.length?(o=e,x):o},x.layoutFunction=function(e){return arguments.length?(v=e,x):v},x.normalize=function(e){return arguments.length?(s=e,x):s},x.scaleToFit=function(e){return arguments.length?(l=e,x):l},x.styled=function(e){return arguments.length?(u=e,x):u},x.orientation=function(e){return arguments.length?(a=e,x):a},x.orientationOrder=function(e){return arguments.length?(d=e,x):d},x.lossFunction=function(e){return arguments.length?(b="default"===e?sMn:"logRatio"===e?lMn:e,x):b},x}function mMn(e,t){return function(n){const r=this,i=e[n.sets[0]].radius||50,o=t(n)||"",a=o.split(/\s+/).reverse(),s=(o.length+a.length)/3;let l=a.pop(),c=[l],u=0;r.textContent=null;const h=[];function d(e){const t=r.ownerDocument.createElementNS(r.namespaceURI,"tspan");return t.textContent=e,h.push(t),r.append(t),t}let p=d(l);for(;l=a.pop(),l;){c.push(l);const e=c.join(" ");p.textContent=e,e.length>s&&p.getComputedTextLength()>i&&(c.pop(),p.textContent=c.join(" "),c=[l],p=d(l),u++)}const f=.35-1.1*u/2,g=r.getAttribute("x"),m=r.getAttribute("y");h.forEach((e,t)=>{e.setAttribute("x",g),e.setAttribute("y",m),e.setAttribute("dy",`${f+1.1*t}em`)})}}function OMn(e,t,n){let r=t[0].radius-qDn(t[0],e);for(let i=1;i<t.length;++i){const n=t[i].radius-qDn(t[i],e);n<=r&&(r=n)}for(let i=0;i<n.length;++i){const t=qDn(n[i],e)-n[i].radius;t<=r&&(r=t)}return r}function AMn(e,t,n){const r=[];for(const u of e)r.push({x:u.x,y:u.y}),r.push({x:u.x+u.radius/2,y:u.y}),r.push({x:u.x-u.radius/2,y:u.y}),r.push({x:u.x,y:u.y+u.radius/2}),r.push({x:u.x,y:u.y-u.radius/2});let i=r[0],o=OMn(r[0],e,t);for(let u=1;u<r.length;++u){const n=OMn(r[u],e,t);n>=o&&(i=r[u],o=n)}const a=eMn(n=>-1*OMn({x:n[0],y:n[1]},e,t),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,s={x:n?0:a[0],y:a[1]};let l=!0;for(const u of e)if(qDn(s,u)>u.radius){l=!1;break}for(const u of t)if(qDn(s,u)<u.radius){l=!1;break}if(l)return s;if(1==e.length)return{x:e[0].x,y:e[0].y};const c={};return UDn(e,c),0===c.arcs.length?{x:0,y:-1e3,disjoint:!0}:1==c.arcs.length?{x:c.arcs[0].circle.x,y:c.arcs[0].circle.y}:t.length?AMn(e,[]):jDn(c.arcs.map(e=>e.p1))}function yMn(e,t,n){const r={},i=function(e){const t={},n=Object.keys(e);for(const r of n)t[r]=[];for(let r=0;r<n.length;r++){const i=n[r],o=e[i];for(let a=r+1;a<n.length;++a){const r=n[a],s=e[r],l=qDn(o,s);l+s.radius<=o.radius+1e-10?t[r].push(i):l+o.radius<=s.radius+1e-10&&t[i].push(r)}}return t}(e);for(let o=0;o<t.length;++o){const a=t[o].sets,s={},l={};for(let e=0;e<a.length;++e){s[a[e]]=!0;const t=i[a[e]];for(let e=0;e<t.length;++e)l[t[e]]=!0}const c=[],u=[];for(let t in e)t in s?c.push(e[t]):t in l||u.push(e[t]);const h=AMn(c,u,n);r[a]=h,h.disjoint&&t[o].size}return r}function vMn(e){if(0===e.length)return[];const t={};return UDn(e,t),t.arcs}function bMn(e,t){if(0===e.length)return"M 0 0";const n=Math.pow(10,t||0),r=null!=t?e=>Math.round(e*n)/n:e=>e;if(1==e.length){const t=e[0].circle;return function(e,t,n){const r=[];return r.push("\nM",e,t),r.push("\nm",-n,0),r.push("\na",n,n,0,1,0,2*n,0),r.push("\na",n,n,0,1,0,2*-n,0),r.join(" ")}(r(t.x),r(t.y),r(t.radius))}const i=["\nM",r(e[0].p2.x),r(e[0].p2.y)];for(const o of e){const e=r(o.circle.radius);i.push("\nA",e,e,0,o.large?1:0,o.sweep?1:0,r(o.p1.x),r(o.p1.y))}return i.join(" ")}function xMn(e,t){return bMn(vMn(e),t)}var wMn=function(){var e=hRe(function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},"o"),t=[5,8],n=[7,8,11,12,17,19,22,24],r=[1,17],i=[1,18],o=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],a=[1,31],s=[1,39],l=[7,8,11,12,17,19,22,24,27],c=[1,57],u=[1,56],h=[1,58],d=[1,59],p=[1,60],f=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],g={trace:hRe(function(){},"trace"),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33,$accept:0,$end:1},terminals_:{2:"error",5:"VENN",7:"EOF",8:"NEWLINE",11:"TITLE",12:"SET",14:"BRACKET_LABEL",15:"COLON",16:"NUMERIC",17:"UNION",19:"TEXT",20:"IDENTIFIER",21:"STRING",22:"INDENT_TEXT",24:"STYLE",27:"COMMA",31:"HEXCOLOR",32:"RGBCOLOR",33:"RGBACOLOR"},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:hRe(function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 1:return o[s-1];case 2:case 3:case 4:case 6:this.$=[];break;case 5:case 35:o[s-1].push(o[s]),this.$=o[s-1];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:case 43:case 44:this.$=o[s];break;case 8:r.setDiagramTitle(o[s].substr(6)),this.$=o[s].substr(6);break;case 9:r.addSubsetData([o[s]],void 0,void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 10:r.addSubsetData([o[s-1]],o[s],void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 11:r.addSubsetData([o[s-2]],void 0,parseFloat(o[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 12:r.addSubsetData([o[s-3]],o[s-2],parseFloat(o[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 13:if(o[s].length<2)throw new Error("union requires multiple identifiers");r.validateUnionIdentifiers&&r.validateUnionIdentifiers(o[s]),r.addSubsetData(o[s],void 0,void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 14:if(o[s-1].length<2)throw new Error("union requires multiple identifiers");r.validateUnionIdentifiers&&r.validateUnionIdentifiers(o[s-1]),r.addSubsetData(o[s-1],o[s],void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 15:if(o[s-2].length<2)throw new Error("union requires multiple identifiers");r.validateUnionIdentifiers&&r.validateUnionIdentifiers(o[s-2]),r.addSubsetData(o[s-2],void 0,parseFloat(o[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 16:if(o[s-3].length<2)throw new Error("union requires multiple identifiers");r.validateUnionIdentifiers&&r.validateUnionIdentifiers(o[s-3]),r.addSubsetData(o[s-3],o[s-2],parseFloat(o[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 17:case 18:case 19:r.addTextData(o[s-1],o[s],void 0);break;case 20:case 21:r.addTextData(o[s-2],o[s-1],o[s]);break;case 23:r.addStyleData(o[s-1],o[s]);break;case 24:case 25:case 26:if(!(l=r.getCurrentSets()))throw new Error("text requires set");r.addTextData(l,o[s],void 0);break;case 27:case 28:var l;if(!(l=r.getCurrentSets()))throw new Error("text requires set");r.addTextData(l,o[s-1],o[s]);break;case 29:case 41:case 34:this.$=[o[s]];break;case 30:case 42:this.$=[...o[s-2],o[s]];break;case 31:this.$=[o[s-2],o[s]];break;case 33:this.$=o[s].join(" ")}},"anonymous"),table:[e(t,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},e(n,[2,4],{6:5}),e(t,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},e(n,[2,5]),e(n,[2,6]),e(n,[2,7]),e(n,[2,8]),{13:16,20:r,21:i},{13:20,18:19,20:r,21:i},{13:20,18:21,20:r,21:i},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:r,21:i},e(n,[2,9],{14:[1,27],15:[1,28]}),e(o,[2,43]),e(o,[2,44]),e(n,[2,13],{14:[1,29],15:[1,30],27:a}),e(o,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:a},e(n,[2,22]),e(n,[2,24],{14:[1,35]}),e(n,[2,25],{14:[1,36]}),e(n,[2,26]),{20:s,25:37,26:38,27:a},e(n,[2,10],{15:[1,40]}),{16:[1,41]},e(n,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:r,21:i},e(n,[2,17],{14:[1,45]}),e(n,[2,18],{14:[1,46]}),e(n,[2,19]),e(n,[2,27]),e(n,[2,28]),e(n,[2,23],{27:[1,47]}),e(l,[2,29]),{15:[1,48]},{16:[1,49]},e(n,[2,11]),{16:[1,50]},e(n,[2,15]),e(o,[2,42]),e(n,[2,20]),e(n,[2,21]),{20:s,26:51},{16:c,20:u,21:[1,53],28:52,29:54,30:55,31:h,32:d,33:p},e(n,[2,12]),e(n,[2,16]),e(l,[2,30]),e(l,[2,31]),e(l,[2,32]),e(l,[2,33],{30:61,16:c,20:u,31:h,32:d,33:p}),e(f,[2,34]),e(f,[2,36]),e(f,[2,37]),e(f,[2,38]),e(f,[2,39]),e(f,[2,40]),e(f,[2,35])],defaultActions:{6:[2,1]},parseError:hRe(function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},"parseError"),parse:hRe(function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),h=Object.create(this.lexer),d={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d.yy[p]=this.yy[p]);h.setInput(e,d.yy),d.yy.lexer=h,d.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var f=h.yylloc;o.push(f);var g=h.options&&h.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||h.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,hRe(function(e){n.length=n.length-2*e,i.length=i.length-e,o.length=o.length-e},"popStack"),hRe(m,"lex");for(var O,A,y,v,b,x,w,k,S={};;){if(A=n[n.length-1],this.defaultActions[A]?y=this.defaultActions[A]:(null==O&&(O=m()),y=a[A]&&a[A][O]),void 0===y||!y.length||!y[0]){var T="";for(b in k=[],a[A])this.terminals_[b]&&b>2&&k.push("'"+this.terminals_[b]+"'");T=h.showPosition?"Parse error on line "+(l+1)+":\n"+h.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[O]||O)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==O?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[O]||O,line:h.yylineno,loc:f,expected:k})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+O);switch(y[0]){case 1:n.push(O),i.push(h.yytext),o.push(h.yylloc),n.push(y[1]),O=null,c=h.yyleng,s=h.yytext,l=h.yylineno,f=h.yylloc;break;case 2:if(x=this.productions_[y[1]][1],S.$=i[i.length-x],S._$={first_line:o[o.length-(x||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(x||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(x||1)].range[0],o[o.length-1].range[1]]),void 0!==(v=this.performAction.apply(S,[s,c,l,d.yy,y[1],i,o].concat(u))))return v;x&&(n=n.slice(0,-1*x*2),i=i.slice(0,-1*x),o=o.slice(0,-1*x)),n.push(this.productions_[y[1]][0]),i.push(S.$),o.push(S._$),w=a[n[n.length-2]][n[n.length-1]],n.push(w);break;case 3:return!0}}return!0},"parse")},m=function(){var e={EOF:1,parseError:hRe(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:hRe(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:hRe(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:hRe(function(e){var t=e.length,n=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 r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:hRe(function(){return this._more=!0,this},"more"),reject:hRe(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:hRe(function(e){this.unput(this.match.slice(e))},"less"),pastInput:hRe(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:hRe(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:hRe(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:hRe(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.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],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},"test_match"),next:hRe(function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&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:hRe(function(){var e=this.next();return e||this.lex()},"lex"),begin:hRe(function(e){this.conditionStack.push(e)},"begin"),popState:hRe(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:hRe(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:hRe(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:hRe(function(e){this.begin(e)},"pushState"),stateStackSize:hRe(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:hRe(function(e,t,n,r){switch(n){case 0:case 1:case 2:case 4:case 7:case 8:break;case 3:if(e.getIndentMode&&e.getIndentMode())return e.consumeIndentText=!0,this.begin("INITIAL"),22;break;case 5:e.setIndentMode&&e.setIndentMode(!1),this.begin("INITIAL"),this.unput(t.yytext);break;case 6:return this.begin("bol"),8;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(!e.consumeIndentText)return 19;e.consumeIndentText=!1;break;case 15:return 24;case 16:return t.yytext=t.yytext.slice(2,-2),14;case 17:return t.yytext=t.yytext.slice(1,-1).trim(),14;case 18:return 16;case 19:return 31;case 20:return 33;case 21:return 32;case 22:return 20;case 23:return 21;case 24:return 27;case 25:return 15}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[ \t]+(?=[\n\r]))/i,/^(?:[ \t]+(?=text\b))/i,/^(?:[ \t]+)/i,/^(?:[^ \t\n\r])/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[ \t]+)/i,/^(?:$)/i,/^(?:title\s[^#\n;]+)/i,/^(?:venn-beta\b)/i,/^(?:set\b)/i,/^(?:union\b)/i,/^(?:text\b)/i,/^(?:style\b)/i,/^(?:\["[^\"]*"\])/i,/^(?:\[[^\]\"]+\])/i,/^(?:[+-]?(\d+(\.\d+)?|\.\d+))/i,/^(?:#[0-9a-fA-F]{3,8})/i,/^(?:rgba\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:rgb\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:"[^\"]*")/i,/^(?:,)/i,/^(?::)/i],conditions:{bol:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0},INITIAL:{rules:[0,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}};return e}();function O(){this.yy={}}return g.lexer=m,hRe(O,"Parser"),O.prototype=g,g.Parser=O,new O}();wMn.parser=wMn;var kMn,SMn=wMn,TMn=[],$Mn=[],_Mn=[],CMn=new Set,QMn=!1,PMn=hRe((e,t,n)=>{const r=MMn(e).sort(),i=n??10/Math.pow(e.length,2);kMn=r,1===r.length&&CMn.add(r[0]),TMn.push({sets:r,size:i,label:t?RMn(t):void 0})},"addSubsetData"),EMn=hRe(()=>TMn,"getSubsetData"),RMn=hRe(e=>{const t=e.trim();return t.length>=2&&t.startsWith('"')&&t.endsWith('"')?t.slice(1,-1):t},"normalizeText"),BMn=hRe(e=>e?RMn(e):e,"normalizeStyleValue"),IMn=hRe((e,t,n)=>{const r=RMn(t);$Mn.push({sets:MMn(e).sort(),id:r,label:n?RMn(n):void 0})},"addTextData"),LMn=hRe((e,t)=>{const n=MMn(e).sort(),r={};for(const[i,o]of t)r[i]=BMn(o)??o;_Mn.push({targets:n,styles:r})},"addStyleData"),DMn=hRe(()=>_Mn,"getStyleData"),MMn=hRe(e=>e.map(e=>RMn(e)),"normalizeIdentifierList"),NMn=hRe(e=>{const t=MMn(e).filter(e=>!CMn.has(e));if(t.length>0)throw new Error(`unknown set identifier: ${t.join(", ")}`)},"validateUnionIdentifiers"),XMn=hRe(()=>$Mn,"getTextData"),FMn=hRe(()=>kMn,"getCurrentSets"),UMn=hRe(()=>QMn,"getIndentMode"),zMn=hRe(e=>{QMn=e},"setIndentMode"),qMn=wBe.venn;function VMn(){return jWe(qMn,NBe().venn)}hRe(VMn,"getConfig");var WMn={getConfig:VMn,clear:hRe(()=>{qIe(),TMn.length=0,$Mn.length=0,_Mn.length=0,CMn.clear(),kMn=void 0,QMn=!1},"customClear"),setAccTitle:VIe,getAccTitle:WIe,setDiagramTitle:ZIe,getDiagramTitle:GIe,getAccDescription:YIe,setAccDescription:jIe,addSubsetData:PMn,getSubsetData:EMn,addTextData:IMn,addStyleData:LMn,validateUnionIdentifiers:NMn,getTextData:XMn,getStyleData:DMn,getCurrentSets:FMn,getIndentMode:UMn,setIndentMode:zMn},jMn=hRe(e=>`\n .venn-title {\n font-size: 32px;\n fill: ${e.vennTitleTextColor};\n font-family: ${e.fontFamily};\n }\n\n .venn-circle text {\n font-size: 48px;\n font-family: ${e.fontFamily};\n }\n\n .venn-intersection text {\n font-size: 48px;\n fill: ${e.vennSetTextColor};\n font-family: ${e.fontFamily};\n }\n\n .venn-text-node {\n font-family: ${e.fontFamily};\n color: ${e.vennSetTextColor};\n }\n`,"getStyles");function YMn(e){const t=new Map;for(const n of e){const e=n.targets.join("|"),r=t.get(e);r?Object.assign(r,n.styles):t.set(e,{...n.styles})}return t}hRe(YMn,"buildStyleByKey");var ZMn=hRe((e,t,n,r)=>{var i,o,a;const s=r.db,l=null==(i=s.getConfig)?void 0:i.call(s),{themeVariables:c,look:u,handDrawnSeed:h}=NBe(),d="handDrawn"===u,p=[c.venn1,c.venn2,c.venn3,c.venn4,c.venn5,c.venn6,c.venn7,c.venn8].filter(Boolean),f=null==(o=s.getDiagramTitle)?void 0:o.call(s),g=s.getSubsetData(),m=s.getTextData(),O=YMn(s.getStyleData()),A=KMn(g),y=(null==l?void 0:l.width)??800,v=(null==l?void 0:l.height)??450,b=y/1600,x=f?48*b:0,w=c.primaryTextColor??c.textColor,k=Mqe(t);k.attr("viewBox",`0 0 ${y} ${v}`),f&&k.append("text").text(f).attr("class","venn-title").attr("font-size",32*b+"px").attr("text-anchor","middle").attr("dominant-baseline","middle").attr("x","50%").attr("y",32*b).style("fill",c.vennTitleTextColor||c.titleColor);const S=GDe(document.createElement("div")),T=gMn().width(y).height(v-x);S.datum(A).call(T);const $=d?jZe(S.select("svg").node()):void 0,_=function(e,t={}){const{lossFunction:n,layoutFunction:r=rMn,normalize:i=!0,orientation:o=Math.PI/2,orientationOrder:a,width:s=600,height:l=350,padding:c=15,scaleToFit:u=!1,symmetricalTextCentre:h=!1,distinct:d,round:p=2}=t;let f=r(e,{lossFunction:"default"!==n&&n?"logRatio"===n?lMn:n:sMn,distinct:d});i&&(f=hMn(f,o,a));const g=dMn(f,s,l,c,u),m=yMn(g,e,h),O=new Map(Object.keys(g).map(e=>[e,{set:e,x:g[e].x,y:g[e].y,radius:g[e].radius}])),A=e.map(e=>{const t=e.sets.map(e=>O.get(e)),n=vMn(t);return{circles:t,arcs:n,path:bMn(n,p),area:e,has:new Set(e.sets)}});function y(e){let t="";for(const n of A)n.has.size>e.length&&e.every(e=>n.has.has(e))&&(t+=" "+n.path);return t}return A.map(({circles:e,arcs:t,path:n,area:r})=>({data:r,text:m[r.sets],circles:e,arcs:t,path:n,distinctPath:n+y(r.sets)}))}(A,{width:y,height:v-x,padding:(null==l?void 0:l.padding)??15}),C=new Map;for(const R of _){const e=GMn([...R.data.sets].sort());C.set(e,R)}m.length>0&&HMn(l,C,S,m,b,O);const Q=MRe(c.background||"#f4f4f4");S.selectAll(".venn-circle").each(function(e,t){var n;const r=GDe(this),i=GMn([...e.sets].sort()),o=O.get(i),a=(null==o?void 0:o.fill)||p[t%p.length]||c.primaryColor;r.classed("venn-set-"+t%8,!0);const s=(null==o?void 0:o["fill-opacity"])??.1,l=(null==o?void 0:o.stroke)||a,u=(null==o?void 0:o["stroke-width"])||""+5*b;if(d&&$){const e=C.get(i);if(e&&e.circles.length>0){const i=e.circles[0],o=$.circle(i.x,i.y,2*i.radius,{roughness:.7,seed:h,fill:URe(a,.7),fillStyle:"hachure",fillWeight:2,hachureGap:8,hachureAngle:60*t-41,stroke:l,strokeWidth:parseFloat(String(u))});r.select("path").remove(),null==(n=r.node())||n.insertBefore(o,r.select("text").node())}}else r.select("path").style("fill",a).style("fill-opacity",s).style("stroke",l).style("stroke-width",u).style("stroke-opacity",.95);const f=(null==o?void 0:o.color)||(Q?XRe(a,30):FRe(a,30));r.select("text").style("font-size",48*b+"px").style("fill",f)}),d&&$?S.selectAll(".venn-intersection").each(function(e){var t;const n=GDe(this),r=GMn([...e.sets].sort()),i=O.get(r),o=null==i?void 0:i.fill;if(o){const e=n.select("path"),r=e.attr("d");if(r){const n=$.path(r,{roughness:.7,seed:h,fill:URe(o,.3),fillStyle:"cross-hatch",fillWeight:2,hachureGap:6,hachureAngle:60,stroke:"none"}),i=e.node();null==(t=null==i?void 0:i.parentNode)||t.insertBefore(n,i),e.remove()}}else n.select("path").style("fill-opacity",0);n.select("text").style("font-size",48*b+"px").style("fill",(null==i?void 0:i.color)??c.vennSetTextColor??w)}):(S.selectAll(".venn-intersection text").style("font-size",48*b+"px").style("fill",e=>{var t;const n=GMn([...e.sets].sort());return(null==(t=O.get(n))?void 0:t.color)??c.vennSetTextColor??w}),S.selectAll(".venn-intersection path").style("fill-opacity",e=>{var t;const n=GMn([...e.sets].sort());return(null==(t=O.get(n))?void 0:t.fill)?1:0}).style("fill",e=>{var t;const n=GMn([...e.sets].sort());return(null==(t=O.get(n))?void 0:t.fill)??"transparent"}));const P=k.append("g").attr("transform",`translate(0, ${x})`),E=S.select("svg").node();if(E&&"childNodes"in E)for(const R of[...E.childNodes])null==(a=P.node())||a.appendChild(R);EIe(k,v,y,(null==l?void 0:l.useMaxWidth)??!0)},"draw");function GMn(e){return e.join("|")}function HMn(e,t,n,r,i,o){var a;const s=(null==e?void 0:e.useDebugLayout)??!1,l=n.select("svg").append("g").attr("class","venn-text-nodes"),c=new Map;for(const u of r){const e=GMn(u.sets),t=c.get(e);t?t.push(u):c.set(e,[u])}for(const[u,h]of c.entries()){const e=t.get(u);if(!(null==e?void 0:e.text))continue;const n=e.text.x,r=e.text.y,c=Math.min(...e.circles.map(e=>e.radius)),d=Math.min(...e.circles.map(e=>e.radius-Math.hypot(n-e.x,r-e.y)));let p=Number.isFinite(d)?Math.max(0,d):0;0===p&&Number.isFinite(c)&&(p=.6*c);const f=l.append("g").attr("class","venn-text-area").attr("font-size",40*i+"px");s&&f.append("circle").attr("class","venn-text-debug-circle").attr("cx",n).attr("cy",r).attr("r",p).attr("fill","none").attr("stroke","purple").attr("stroke-width",1.5*i).attr("stroke-dasharray",`${6*i} ${4*i}`);const g=Math.max(80*i,2*p*.95),m=Math.max(60*i,2*p*.95),O=(e.data.label&&e.data.label.length>0?Math.min(32*i,.25*p):0)+(h.length<=2?30*i:0),A=n-g/2,y=r-m/2+O,v=Math.max(1,Math.ceil(Math.sqrt(h.length))),b=g/v,x=m/Math.max(1,Math.ceil(h.length/v));for(const[t,l]of h.entries()){const e=t%v,n=Math.floor(t/v),r=A+b*(e+.5),c=y+x*(n+.5);s&&f.append("rect").attr("class","venn-text-debug-cell").attr("x",A+b*e).attr("y",y+x*n).attr("width",b).attr("height",x).attr("fill","none").attr("stroke","teal").attr("stroke-width",1*i).attr("stroke-dasharray",`${4*i} ${3*i}`);const u=.9*b,h=.9*x,d=f.append("foreignObject").attr("class","venn-text-node-fo").attr("width",u).attr("height",h).attr("x",r-u/2).attr("y",c-h/2).attr("overflow","visible"),p=null==(a=o.get(l.id))?void 0:a.color,g=d.append("xhtml:span").attr("class","venn-text-node").style("display","flex").style("width","100%").style("height","100%").style("white-space","normal").style("align-items","center").style("justify-content","center").style("text-align","center").style("overflow-wrap","normal").style("word-break","normal").text(l.label??l.id);p&&g.style("color",p)}}}function KMn(e){const t=new Set(e.map(e=>[...e.sets].sort().join("|"))),n=new Map(e.filter(e=>1===e.sets.length&&void 0!==e.size).map(e=>[e.sets[0],e.size])),r=[];for(const i of e){if(i.sets.length<3)continue;const e=[...i.sets].sort();for(let i=0;i<e.length-1;i++)for(let o=i+1;o<e.length;o++){const a=[e[i],e[o]],s=a.join("|");if(!t.has(s)){t.add(s);const e=n.get(a[0]),i=n.get(a[1]),o=void 0!==e&&void 0!==i?Math.min(e,i)/4:2.5;r.push({sets:a,size:o,label:""})}}}return r.length>0?[...e,...r]:e}hRe(GMn,"stableSetsKey"),hRe(HMn,"renderTextNodes"),hRe(KMn,"ensurePairwiseSubsets");var JMn={parser:SMn,db:WMn,renderer:{draw:ZMn},styles:jMn};const eNn=Object.freeze(Object.defineProperty({__proto__:null,diagram:JMn},Symbol.toStringTag,{value:"Module"}));var tNn=(hRe(jn=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=VIe,this.getAccTitle=WIe,this.setDiagramTitle=ZIe,this.getDiagramTitle=GIe,this.getAccDescription=YIe,this.setAccDescription=jIe}getNodes(){return this.nodes}getConfig(){const e=wBe,t=NBe();return jWe({...e.treemap,...t.treemap??{}})}addNode(e,t){this.nodes.push(e),this.levels.set(e,t),0===t&&(this.outerNodes.push(e),this.root??(this.root=e))}getRoot(){return{name:"",children:this.outerNodes}}addClass(e,t){const n=this.classes.get(e)??{id:e,styles:[],textStyles:[]},r=t.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");r&&r.forEach(e=>{zqe(e)&&((null==n?void 0:n.textStyles)?n.textStyles.push(e):n.textStyles=[e]),(null==n?void 0:n.styles)?n.styles.push(e):n.styles=[e]}),this.classes.set(e,n)}getClasses(){return this.classes}getStylesForClass(e){var t;return(null==(t=this.classes.get(e))?void 0:t.styles)??[]}clear(){qIe(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},"TreeMapDB"),jn);function nNn(e){if(!e.length)return[];const t=[],n=[];return e.forEach(e=>{const r={name:e.name,children:"Leaf"===e.type?void 0:[]};for(r.classSelector=null==e?void 0:e.classSelector,(null==e?void 0:e.cssCompiledStyles)&&(r.cssCompiledStyles=e.cssCompiledStyles),"Leaf"===e.type&&void 0!==e.value&&(r.value=e.value);n.length>0&&n[n.length-1].level>=e.level;)n.pop();if(0===n.length)t.push(r);else{const e=n[n.length-1].node;e.children?e.children.push(r):e.children=[r]}"Leaf"!==e.type&&n.push({node:r,level:e.level})}),t}hRe(nNn,"buildHierarchy");var rNn=hRe((e,t)=>{qzt(e,t);const n=[];for(const o of e.TreemapRows??[])"ClassDefStatement"===o.$type&&t.addClass(o.className??"",o.styleText??"");for(const o of e.TreemapRows??[]){const e=o.item;if(!e)continue;const r=o.indent?parseInt(o.indent):0,i=iNn(e),a=e.classSelector?t.getStylesForClass(e.classSelector):[],s=a.length>0?a:void 0,l={level:r,name:i,type:e.$type,value:e.value,classSelector:e.classSelector,cssCompiledStyles:s};n.push(l)}const r=nNn(n),i=hRe((e,n)=>{for(const r of e)t.addNode(r,n),r.children&&r.children.length>0&&i(r.children,n+1)},"addNodesRecursively");i(r,0)},"populate"),iNn=hRe(e=>e.name?String(e.name):"","getItemName"),oNn={parser:{yy:void 0},parse:hRe(async e=>{var t;try{const n=gbn,r=await n("treemap",e);ORe.debug("Treemap AST:",r);const i=null==(t=oNn.parser)?void 0:t.yy;if(!(i instanceof tNn))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");rNn(r,i)}catch(n){throw ORe.error("Error parsing treemap:",n),n}},"parse")},aNn=10,sNn=hRe((e,t,n,r)=>{const i=r.db,o=i.getConfig(),a=o.padding??10,s=i.getDiagramTitle(),l=i.getRoot(),{themeVariables:c}=NBe();if(!l)return;const u=s?30:0,h=Mqe(t),d=o.nodeWidth?o.nodeWidth*aNn:960,p=o.nodeHeight?o.nodeHeight*aNn:500,f=d,g=p+u;let m;h.attr("viewBox",`0 0 ${f} ${g}`),EIe(h,g,f,o.useMaxWidth);try{const e=o.valueFormat||",";if("$0,0"===e)m=hRe(e=>"$"+CXe(",")(e),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const t=/\.\d+/.exec(e),n=t?t[0]:"";m=hRe(e=>"$"+CXe(","+n)(e),"valueFormat")}else if(e.startsWith("$")){const t=e.substring(1);m=hRe(e=>"$"+CXe(t||"")(e),"valueFormat")}else m=CXe(e)}catch(D){ORe.error("Error creating format function:",D),m=CXe(",")}const O=GXe().range(["transparent",c.cScale0,c.cScale1,c.cScale2,c.cScale3,c.cScale4,c.cScale5,c.cScale6,c.cScale7,c.cScale8,c.cScale9,c.cScale10,c.cScale11]),A=GXe().range(["transparent",c.cScalePeer0,c.cScalePeer1,c.cScalePeer2,c.cScalePeer3,c.cScalePeer4,c.cScalePeer5,c.cScalePeer6,c.cScalePeer7,c.cScalePeer8,c.cScalePeer9,c.cScalePeer10,c.cScalePeer11]),y=GXe().range([c.cScaleLabel0,c.cScaleLabel1,c.cScaleLabel2,c.cScaleLabel3,c.cScaleLabel4,c.cScaleLabel5,c.cScaleLabel6,c.cScaleLabel7,c.cScaleLabel8,c.cScaleLabel9,c.cScaleLabel10,c.cScaleLabel11]);s&&h.append("text").attr("x",f/2).attr("y",u/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(s);const v=h.append("g").attr("transform",`translate(0, ${u})`).attr("class","treemapContainer"),b=IXe(l).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),x=jXe().size([d,p]).paddingTop(e=>e.children&&e.children.length>0?35:0).paddingInner(a).paddingLeft(e=>e.children&&e.children.length>0?aNn:0).paddingRight(e=>e.children&&e.children.length>0?aNn:0).paddingBottom(e=>e.children&&e.children.length>0?aNn:0).round(!0)(b),w=x.descendants().filter(e=>e.children&&e.children.length>0),k=v.selectAll(".treemapSection").data(w).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);k.append("rect").attr("width",e=>e.x1-e.x0).attr("height",25).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>0===e.depth?"display: none;":""),k.append("clipPath").attr("id",(e,n)=>`clip-section-${t}-${n}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",25),k.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>O(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>A(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(0===e.depth)return"display: none;";const t=qqe({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),k.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",12.5).attr("dominant-baseline","middle").text(e=>0===e.depth?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,n)=>`url(#clip-section-${t}-${n})`).attr("style",e=>{if(0===e.depth)return"display: none;";return"dominant-baseline: middle; font-size: 12px; fill:"+y(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"+qqe({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")}).each(function(e){if(0===e.depth)return;const t=GDe(this),n=e.data.name;t.text(n);const r=e.x1-e.x0;let i;if(!1!==o.showValues&&e.value){i=r-10-30-10-6}else{i=r-6-6}const a=Math.max(15,i),s=t.node();if(s.getComputedTextLength()>a){const e="...";let r=n;for(;r.length>0;){if(r=n.substring(0,r.length-1),0===r.length){t.text(e),s.getComputedTextLength()>a&&t.text("");break}if(t.text(r+e),s.getComputedTextLength()<=a)break}}}),!1!==o.showValues&&k.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",12.5).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?m(e.value):"").attr("font-style","italic").attr("style",e=>{if(0===e.depth)return"display: none;";return"text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+y(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"+qqe({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")});const S=x.leaves(),T=S.length>20,$=T?16:38,_=T?14:28,C=T?4:8,Q=T?4:6,P=T?2:4,E=T?8:10,R=T?1:2,B=v.selectAll(".treemapLeafGroup").data(S).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);B.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?O(e.parent.data.name):O(e.data.name)).attr("style",e=>qqe({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?O(e.parent.data.name):O(e.data.name)).attr("stroke-width",3),B.append("clipPath").attr("id",(e,n)=>`clip-${t}-${n}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4));const I=B.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>`text-anchor: middle; dominant-baseline: middle; font-size: ${$}px;fill:`+y(e.data.name)+";"+qqe({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).attr("clip-path",(e,n)=>`url(#clip-${t}-${n})`).text(e=>e.data.name);if(I.each(function(e){const t=GDe(this),n=e.x1-e.x0,r=e.y1-e.y0,i=t.node(),o=n-2*P,a=r-2*P;if(o<E||a<E)return void t.style("display","none");let s=parseInt(t.style("font-size"),10);for(;i.getComputedTextLength()>o&&s>C;)s--,t.style("font-size",`${s}px`);let l=Math.max(Q,Math.min(_,Math.round(.6*s))),c=s+R+l;for(;c>a&&s>C&&(s--,l=Math.max(Q,Math.min(_,Math.round(.6*s))),!(l<Q&&s===C));)t.style("font-size",`${s}px`),c=s+R+l;t.style("font-size",`${s}px`),T?(s<C||a<C)&&t.style("display","none"):(i.getComputedTextLength()>o||s<C||a<s)&&t.style("display","none")}),!1!==o.showValues){const e=B.append("text").attr("class","treemapValue").attr("x",e=>(e.x1-e.x0)/2).attr("y",function(e){return(e.y1-e.y0)/2}).attr("style",e=>`text-anchor: middle; dominant-baseline: hanging; font-size: ${_}px;fill:`+y(e.data.name)+";"+qqe({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).attr("clip-path",(e,n)=>`url(#clip-${t}-${n})`).text(e=>e.value?m(e.value):"");e.each(function(e){const t=GDe(this),n=this.parentNode;if(!n)return void t.style("display","none");const r=GDe(n).select(".treemapLabel");if(r.empty()||"none"===r.style("display"))return void t.style("display","none");const i=parseFloat(r.style("font-size")),o=Math.max(Q,Math.min(_,Math.round(.6*i)));t.style("font-size",`${o}px`);const a=(e.y1-e.y0)/2+i/2+R;t.attr("y",a);const s=e.x1-e.x0,l=e.y1-e.y0-4,c=s-2*P;t.node().getComputedTextLength()>c||a+o>l||o<Q?t.style("display","none"):t.style("display",null)})}const L=o.diagramPadding??8;mzt(h,L,"flowchart",(null==o?void 0:o.useMaxWidth)||!1)},"draw"),lNn={draw:sNn,getClasses:hRe(function(e,t){return t.db.getClasses()},"getClasses")},cNn={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},uNn=hRe(({treemap:e}={})=>{const t=jWe(nBe(),NBe().themeVariables),n=jWe(cNn,e),r=n.titleColor??t.titleColor,i=n.labelColor??t.textColor,o=n.valueColor??t.textColor;return`\n .treemapNode.section {\n stroke: ${n.sectionStrokeColor};\n stroke-width: ${n.sectionStrokeWidth};\n fill: ${n.sectionFillColor};\n }\n .treemapNode.leaf {\n stroke: ${n.leafStrokeColor};\n stroke-width: ${n.leafStrokeWidth};\n fill: ${n.leafFillColor};\n }\n .treemapLabel {\n fill: ${i};\n font-size: ${n.labelFontSize};\n }\n .treemapValue {\n fill: ${o};\n font-size: ${n.valueFontSize};\n }\n .treemapTitle {\n fill: ${r};\n font-size: ${n.titleFontSize};\n }\n `},"getStyles"),hNn={parser:oNn,get db(){return new tNn},renderer:lNn,styles:uNn};const dNn=Object.freeze(Object.defineProperty({__proto__:null,diagram:hNn},Symbol.toStringTag,{value:"Module"}));var pNn=hRe((e,t)=>{const n=e<=1?100*e:e;if(n<0||n>100)throw new Error(`${t} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);return n},"toPercent"),fNn=hRe((e,t,n)=>({x:pNn(t,`${n} evolution`),y:pNn(e,`${n} visibility`)}),"toCoordinates"),gNn=hRe(e=>{if(e)return"+<>"===e?"bidirectional":"+<"===e?"backward":"+>"===e?"forward":void 0},"getFlowFromPort"),mNn=hRe(e=>{if(!(null==e?void 0:e.startsWith("+")))return{};const t=/^\+'([^']*)'/.exec(e),n=null==t?void 0:t[1];return e.includes("<>")?{flow:"bidirectional",label:n}:e.includes("<")?{flow:"backward",label:n}:e.includes(">")?{flow:"forward",label:n}:{label:n}},"extractFlowFromArrow"),ONn=hRe((e,t)=>{if(qzt(e,t),e.size&&t.setSize(e.size.width,e.size.height),e.evolution){const n=e.evolution.stages.map(e=>e.secondName?`${e.name.trim()} / ${e.secondName.trim()}`:e.name.trim()),r=e.evolution.stages.filter(e=>void 0!==e.boundary).map(e=>e.boundary);t.updateAxes({stages:n,stageBoundaries:r})}if(e.anchors.forEach(e=>{const n=fNn(e.visibility,e.evolution,`Anchor "${e.name}"`);t.addNode(e.name,e.name,n.x,n.y,"anchor")}),e.components.forEach(e=>{var n;const r=fNn(e.visibility,e.evolution,`Component "${e.name}"`),i=e.label?(e.label.negX?-1:1)*e.label.offsetX:void 0,o=e.label?(e.label.negY?-1:1)*e.label.offsetY:void 0,a=null==(n=e.decorator)?void 0:n.strategy;t.addNode(e.name,e.name,r.x,r.y,"component",i,o,e.inertia,a)}),e.notes.forEach(e=>{const n=fNn(e.visibility,e.evolution,`Note "${e.text}"`);t.addNote(e.text,n.x,n.y)}),e.pipelines.forEach(e=>{const n=t.getNode(e.parent);if(!n||"number"!=typeof n.y)throw new Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);const r=n.y;t.startPipeline(e.parent),e.components.forEach(n=>{const i=`${e.parent}_${n.name}`,o=n.label?(n.label.negX?-1:1)*n.label.offsetX:void 0,a=n.label?(n.label.negY?-1:1)*n.label.offsetY:void 0,s=pNn(n.evolution,`Pipeline component "${n.name}" evolution`);t.addNode(i,n.name,s,r,"pipeline-component",o,a),t.addPipelineComponent(e.parent,i)})}),e.links.forEach(e=>{const n=!!e.arrow&&(e.arrow.includes("-.->")||e.arrow.includes(".-."));let r=gNn(e.fromPort)??gNn(e.toPort);const{flow:i,label:o}=mNn(e.arrow);!r&&i&&(r=i);const a=e.linkLabel,s=o??a;t.addLink(t.resolveNodeId(e.from),t.resolveNodeId(e.to),n,s,r)}),e.evolves.forEach(e=>{const n=t.getNode(e.component);if(void 0!==(null==n?void 0:n.y)){const r=pNn(e.target,`Evolve target for "${e.component}"`);t.addTrend(e.component,r,n.y)}}),e.annotations.length>0){const n=e.annotations[0],r=fNn(n.x,n.y,"Annotations box");t.setAnnotationsBox(r.x,r.y)}e.annotation.forEach(e=>{const n=fNn(e.x,e.y,`Annotation ${e.number}`);t.addAnnotation(e.number,[{x:n.x,y:n.y}],e.text)}),e.accelerators.forEach(e=>{const n=fNn(e.x,e.y,`Accelerator "${e.name}"`);t.addAccelerator(e.name,n.x,n.y)}),e.deaccelerators.forEach(e=>{const n=fNn(e.x,e.y,`Deaccelerator "${e.name}"`);t.addDeaccelerator(e.name,n.x,n.y)})},"populateDb"),ANn={parser:{yy:void 0},parse:hRe(async e=>{var t;const n=await gbn("wardley",e);ORe.debug(n);const r=null==(t=ANn.parser)?void 0:t.yy;if(!r||"function"!=typeof r.addNode)throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");ONn(n,r)},"parse")},yNn=new(hRe(Yn=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}addNode(e){const t=this.nodes.get(e.id)??{id:e.id,label:e.label},n={...t,...e,className:e.className??t.className,labelOffsetX:e.labelOffsetX??t.labelOffsetX,labelOffsetY:e.labelOffsetY??t.labelOffsetY};this.nodes.set(e.id,n)}addLink(e){this.links.push(e)}addTrend(e){this.trends.set(e.nodeId,e)}startPipeline(e){this.pipelines.set(e,{nodeId:e,componentIds:[]});const t=this.nodes.get(e);t&&(t.isPipelineParent=!0)}addPipelineComponent(e,t){const n=this.pipelines.get(e);n&&n.componentIds.push(t);const r=this.nodes.get(t);r&&(r.inPipeline=!0)}addAnnotation(e){this.annotations.push(e)}addNote(e){this.notes.push(e)}addAccelerator(e){this.accelerators.push(e)}addDeaccelerator(e){this.deaccelerators.push(e)}setAnnotationsBox(e,t){this.annotationsBox={x:e,y:t}}setAxes(e){this.axes={...this.axes,...e}}setSize(e,t){this.size={width:e,height:t}}getNode(e){return this.nodes.get(e)}resolveNodeId(e){if(this.nodes.has(e))return e;for(const[t,n]of this.nodes)if(n.label===e)return t;return e}build(){const e=[];for(const t of this.nodes.values()){if("number"!=typeof t.x||"number"!=typeof t.y)throw new Error(`Node "${t.label}" is missing coordinates`);e.push(t)}return{nodes:e,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},"WardleyBuilder"),Yn);function vNn(){return JIe()["wardley-beta"]}function bNn(e,t,n,r,i,o,a,s,l){yNn.addNode({id:e,label:t,x:n,y:r,className:i,labelOffsetX:o,labelOffsetY:a,inertia:s,sourceStrategy:l})}function xNn(e,t,n=!1,r,i){yNn.addLink({source:e,target:t,dashed:n,label:r,flow:i})}function wNn(e,t,n){yNn.addTrend({nodeId:e,targetX:t,targetY:n})}function kNn(e,t,n){yNn.addAnnotation({number:e,coordinates:t,text:n})}function SNn(e,t,n){yNn.addNote({text:e,x:t,y:n})}function TNn(e,t,n){yNn.addAccelerator({name:e,x:t,y:n})}function $Nn(e,t,n){yNn.addDeaccelerator({name:e,x:t,y:n})}function _Nn(e,t){yNn.setAnnotationsBox(e,t)}function CNn(e,t){yNn.setSize(e,t)}function QNn(e){yNn.startPipeline(e)}function PNn(e,t){yNn.addPipelineComponent(e,t)}function ENn(e){yNn.setAxes(e)}function RNn(e){return yNn.getNode(e)}function BNn(e){return yNn.resolveNodeId(e)}function INn(){return yNn.build()}function LNn(){yNn.clear(),qIe()}hRe(vNn,"getConfig"),hRe(bNn,"addNode"),hRe(xNn,"addLink"),hRe(wNn,"addTrend"),hRe(kNn,"addAnnotation"),hRe(SNn,"addNote"),hRe(TNn,"addAccelerator"),hRe($Nn,"addDeaccelerator"),hRe(_Nn,"setAnnotationsBox"),hRe(CNn,"setSize"),hRe(QNn,"startPipeline"),hRe(PNn,"addPipelineComponent"),hRe(ENn,"updateAxes"),hRe(RNn,"getNode"),hRe(BNn,"resolveNodeId"),hRe(INn,"getWardleyData"),hRe(LNn,"clear");var DNn={getConfig:vNn,addNode:bNn,addLink:xNn,addTrend:wNn,addAnnotation:kNn,addNote:SNn,addAccelerator:TNn,addDeaccelerator:$Nn,setAnnotationsBox:_Nn,setSize:CNn,startPipeline:QNn,addPipelineComponent:PNn,updateAxes:ENn,getNode:RNn,resolveNodeId:BNn,getWardleyData:INn,clear:LNn,setAccTitle:VIe,getAccTitle:WIe,setDiagramTitle:ZIe,getDiagramTitle:GIe,getAccDescription:YIe,setAccDescription:jIe},MNn=["Genesis","Custom Built","Product","Commodity"],NNn=hRe(()=>{var e,t,n,r,i,o,a,s,l,c,u,h;const{themeVariables:d}=JIe();return{backgroundColor:(null==(e=d.wardley)?void 0:e.backgroundColor)??d.background??"#fff",axisColor:(null==(t=d.wardley)?void 0:t.axisColor)??"#000",axisTextColor:(null==(n=d.wardley)?void 0:n.axisTextColor)??d.primaryTextColor??"#222",gridColor:(null==(r=d.wardley)?void 0:r.gridColor)??"rgba(100, 100, 100, 0.2)",componentFill:(null==(i=d.wardley)?void 0:i.componentFill)??"#fff",componentStroke:(null==(o=d.wardley)?void 0:o.componentStroke)??"#000",componentLabelColor:(null==(a=d.wardley)?void 0:a.componentLabelColor)??d.primaryTextColor??"#222",linkStroke:(null==(s=d.wardley)?void 0:s.linkStroke)??"#000",evolutionStroke:(null==(l=d.wardley)?void 0:l.evolutionStroke)??"#dc3545",annotationStroke:(null==(c=d.wardley)?void 0:c.annotationStroke)??"#000",annotationTextColor:(null==(u=d.wardley)?void 0:u.annotationTextColor)??d.primaryTextColor??"#222",annotationFill:(null==(h=d.wardley)?void 0:h.annotationFill)??d.background??"#fff"}},"getTheme"),XNn=hRe(()=>{const e=JIe()["wardley-beta"];return{width:(null==e?void 0:e.width)??900,height:(null==e?void 0:e.height)??600,padding:(null==e?void 0:e.padding)??48,nodeRadius:(null==e?void 0:e.nodeRadius)??6,nodeLabelOffset:(null==e?void 0:e.nodeLabelOffset)??8,axisFontSize:(null==e?void 0:e.axisFontSize)??12,labelFontSize:(null==e?void 0:e.labelFontSize)??10,showGrid:(null==e?void 0:e.showGrid)??!1,useMaxWidth:(null==e?void 0:e.useMaxWidth)??!0}},"getConfigValues"),FNn=hRe((e,t,n,r)=>{var i,o;ORe.debug("Rendering Wardley map\n"+e);const a=XNn(),s=NNn(),l=1.6*a.nodeRadius,c=r.db,u=c.getWardleyData(),h=c.getDiagramTitle(),d=(null==(i=u.size)?void 0:i.width)??a.width,p=(null==(o=u.size)?void 0:o.height)??a.height,f=Mqe(t);f.selectAll("*").remove(),EIe(f,p,d,a.useMaxWidth),f.attr("viewBox",`0 0 ${d} ${p}`);const g=f.append("g").attr("class","wardley-map"),m=f.append("defs");m.append("marker").attr("id",`arrow-${t}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",s.evolutionStroke).attr("stroke","none"),m.append("marker").attr("id",`link-arrow-end-${t}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",s.linkStroke).attr("stroke","none"),m.append("marker").attr("id",`link-arrow-start-${t}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",s.linkStroke).attr("stroke","none"),g.append("rect").attr("class","wardley-background").attr("width",d).attr("height",p).attr("fill",s.backgroundColor);const O=d-2*a.padding,A=p-2*a.padding;h&&g.append("text").attr("class","wardley-title").attr("x",d/2).attr("y",a.padding/2).attr("fill",s.axisTextColor).attr("font-size",1.05*a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const y=hRe(e=>a.padding+e/100*O,"projectX"),v=hRe(e=>p-a.padding-e/100*A,"projectY"),b=g.append("g").attr("class","wardley-axes");b.append("line").attr("x1",a.padding).attr("x2",d-a.padding).attr("y1",p-a.padding).attr("y2",p-a.padding).attr("stroke",s.axisColor).attr("stroke-width",1),b.append("line").attr("x1",a.padding).attr("x2",a.padding).attr("y1",a.padding).attr("y2",p-a.padding).attr("stroke",s.axisColor).attr("stroke-width",1);const x=u.axes.xLabel??"Evolution",w=u.axes.yLabel??"Visibility";b.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",a.padding+O/2).attr("y",p-a.padding/4).attr("fill",s.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(x),b.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",a.padding/3).attr("y",a.padding+A/2).attr("fill",s.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${a.padding/3} ${a.padding+A/2})`).text(w);const k=u.axes.stages&&u.axes.stages.length>0?u.axes.stages:MNn;if(k.length>0){const e=g.append("g").attr("class","wardley-stages"),t=u.axes.stageBoundaries,n=[];if(t&&t.length===k.length){let e=0;t.forEach(t=>{n.push({start:e,end:t}),e=t})}else{const e=1/k.length;k.forEach((t,r)=>{n.push({start:r*e,end:(r+1)*e})})}k.forEach((t,r)=>{const i=n[r],o=a.padding+i.start*O,l=(o+(a.padding+i.end*O))/2;r>0&&e.append("line").attr("x1",o).attr("x2",o).attr("y1",a.padding).attr("y2",p-a.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),e.append("text").attr("class","wardley-stage-label").attr("x",l).attr("y",p-a.padding/1.5).attr("fill",s.axisTextColor).attr("font-size",a.axisFontSize-2).attr("text-anchor","middle").text(t)})}if(a.showGrid){const e=g.append("g").attr("class","wardley-grid");for(let t=1;t<4;t++){const n=t/4,r=a.padding+O*n;e.append("line").attr("x1",r).attr("x2",r).attr("y1",a.padding).attr("y2",p-a.padding).attr("stroke",s.gridColor).attr("stroke-dasharray","2 6"),e.append("line").attr("x1",a.padding).attr("x2",d-a.padding).attr("y1",p-a.padding-A*n).attr("y2",p-a.padding-A*n).attr("stroke",s.gridColor).attr("stroke-dasharray","2 6")}}const S=new Map;if(u.nodes.forEach(e=>{S.set(e.id,{x:y(e.x),y:v(e.y),node:e})}),u.pipelines.length>0){const e=g.append("g").attr("class","wardley-pipelines"),t=g.append("g").attr("class","wardley-pipeline-links");u.pipelines.forEach(n=>{if(0===n.componentIds.length)return;const r=n.componentIds.map(e=>({id:e,pos:S.get(e),node:u.nodes.find(t=>t.id===e)})).filter(e=>e.pos&&e.node).sort((e,t)=>e.node.x-t.node.x);for(let e=0;e<r.length-1;e++){const n=r[e],i=r[e+1];t.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",n.pos.x).attr("y1",n.pos.y).attr("x2",i.pos.x).attr("y2",i.pos.y).attr("stroke",s.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let i=1/0,o=-1/0,c=0;if(n.componentIds.forEach(e=>{const t=S.get(e);t&&(i=Math.min(i,t.x),o=Math.max(o,t.x),c=t.y)}),i!==1/0&&o!==-1/0){const t=15,r=4*a.nodeRadius,u=c-r/2,h=S.get(n.nodeId);if(h){const e=(i+o)/2;h.x=e,h.y=u-l/6}e.append("rect").attr("class","wardley-pipeline-box").attr("x",i-t).attr("y",u).attr("width",o-i+2*t).attr("height",r).attr("fill","none").attr("stroke",s.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}const T=g.append("g").attr("class","wardley-links"),$=new Map;u.pipelines.forEach(e=>{$.set(e.nodeId,new Set(e.componentIds))});const _=u.links.filter(e=>{if(!S.has(e.source)||!S.has(e.target))return!1;const t=$.get(e.target);return!(null==t?void 0:t.has(e.source))});T.selectAll("line").data(_).enter().append("line").attr("class",e=>"wardley-link"+(e.dashed?" wardley-link--dashed":"")).attr("x1",e=>{const t=S.get(e.source),n=S.get(e.target),r=u.nodes.find(t=>t.id===e.source),i=r.isPipelineParent?l/Math.sqrt(2):a.nodeRadius,o=n.x-t.x,s=n.y-t.y,c=Math.sqrt(o*o+s*s);return t.x+o/c*i}).attr("y1",e=>{const t=S.get(e.source),n=S.get(e.target),r=u.nodes.find(t=>t.id===e.source),i=r.isPipelineParent?l/Math.sqrt(2):a.nodeRadius,o=n.x-t.x,s=n.y-t.y,c=Math.sqrt(o*o+s*s);return t.y+s/c*i}).attr("x2",e=>{const t=S.get(e.source),n=S.get(e.target),r=u.nodes.find(t=>t.id===e.target),i=r.isPipelineParent?l/Math.sqrt(2):a.nodeRadius,o=t.x-n.x,s=t.y-n.y,c=Math.sqrt(o*o+s*s);return n.x+o/c*i}).attr("y2",e=>{const t=S.get(e.source),n=S.get(e.target),r=u.nodes.find(t=>t.id===e.target),i=r.isPipelineParent?l/Math.sqrt(2):a.nodeRadius,o=t.x-n.x,s=t.y-n.y,c=Math.sqrt(o*o+s*s);return n.y+s/c*i}).attr("stroke",s.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",e=>e.dashed?"6 6":null).attr("marker-end",e=>"forward"===e.flow||"bidirectional"===e.flow?`url(#link-arrow-end-${t})`:null).attr("marker-start",e=>"backward"===e.flow||"bidirectional"===e.flow?`url(#link-arrow-start-${t})`:null),T.selectAll("text").data(_.filter(e=>e.label)).enter().append("text").attr("class","wardley-link-label").attr("x",e=>{const t=S.get(e.source),n=S.get(e.target),r=(t.x+n.x)/2,i=n.y-t.y,o=n.x-t.x;return r+8*(i/Math.sqrt(o*o+i*i))}).attr("y",e=>{const t=S.get(e.source),n=S.get(e.target),r=(t.y+n.y)/2,i=n.x-t.x,o=n.y-t.y;return r+8*(-i/Math.sqrt(i*i+o*o))}).attr("fill",s.axisTextColor).attr("font-size",a.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",e=>{const t=S.get(e.source),n=S.get(e.target),r=(t.x+n.x)/2,i=(t.y+n.y)/2,o=n.x-t.x,a=n.y-t.y,s=Math.sqrt(o*o+a*a),l=r+8*(a/s),c=i+8*(-o/s);let u=180*Math.atan2(a,o)/Math.PI;return(u>90||u<-90)&&(u+=180),`rotate(${u} ${l} ${c})`}).text(e=>e.label);const C=g.append("g").attr("class","wardley-trends"),Q=u.trends.map(e=>{const t=S.get(e.nodeId);if(!t)return null;const n=y(e.targetX),r=v(e.targetY),i=n-t.x,o=r-t.y,s=Math.sqrt(i*i+o*o),l=a.nodeRadius+2;return{origin:t,targetX:n,targetY:r,adjustedX2:s>l?n-i/s*l:n,adjustedY2:s>l?r-o/s*l:r}}).filter(e=>null!==e);C.selectAll("line").data(Q).enter().append("line").attr("class","wardley-trend").attr("x1",e=>e.origin.x).attr("y1",e=>e.origin.y).attr("x2",e=>e.adjustedX2).attr("y2",e=>e.adjustedY2).attr("stroke",s.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${t})`);const P=g.append("g").attr("class","wardley-nodes").selectAll("g").data(u.nodes).enter().append("g").attr("class",e=>["wardley-node",e.className?`wardley-node--${e.className}`:""].filter(Boolean).join(" "));P.filter(e=>"outsource"===e.sourceStrategy).append("circle").attr("class","wardley-outsource-overlay").attr("cx",e=>S.get(e.id).x).attr("cy",e=>S.get(e.id).y).attr("r",2*a.nodeRadius).attr("fill","#666").attr("stroke",s.componentStroke).attr("stroke-width",1),P.filter(e=>"buy"===e.sourceStrategy).append("circle").attr("class","wardley-buy-overlay").attr("cx",e=>S.get(e.id).x).attr("cy",e=>S.get(e.id).y).attr("r",2*a.nodeRadius).attr("fill","#ccc").attr("stroke",s.componentStroke).attr("stroke-width",1),P.filter(e=>"build"===e.sourceStrategy).append("circle").attr("class","wardley-build-overlay").attr("cx",e=>S.get(e.id).x).attr("cy",e=>S.get(e.id).y).attr("r",2*a.nodeRadius).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);const E=P.filter(e=>"market"===e.sourceStrategy);E.append("circle").attr("class","wardley-market-overlay").attr("cx",e=>S.get(e.id).x).attr("cy",e=>S.get(e.id).y).attr("r",2*a.nodeRadius).attr("fill","white").attr("stroke",s.componentStroke).attr("stroke-width",1),P.filter(e=>!e.isPipelineParent&&"market"!==e.sourceStrategy&&"anchor"!==e.className).append("circle").attr("cx",e=>S.get(e.id).x).attr("cy",e=>S.get(e.id).y).attr("r",a.nodeRadius).attr("fill",s.componentFill).attr("stroke",s.componentStroke).attr("stroke-width",1);const R=.7*a.nodeRadius,B=1.2*a.nodeRadius;if(E.append("line").attr("class","wardley-market-line").attr("x1",e=>S.get(e.id).x).attr("y1",e=>S.get(e.id).y-B).attr("x2",e=>S.get(e.id).x-B*Math.cos(Math.PI/6)).attr("y2",e=>S.get(e.id).y+B*Math.sin(Math.PI/6)).attr("stroke",s.componentStroke).attr("stroke-width",1),E.append("line").attr("class","wardley-market-line").attr("x1",e=>S.get(e.id).x-B*Math.cos(Math.PI/6)).attr("y1",e=>S.get(e.id).y+B*Math.sin(Math.PI/6)).attr("x2",e=>S.get(e.id).x+B*Math.cos(Math.PI/6)).attr("y2",e=>S.get(e.id).y+B*Math.sin(Math.PI/6)).attr("stroke",s.componentStroke).attr("stroke-width",1),E.append("line").attr("class","wardley-market-line").attr("x1",e=>S.get(e.id).x+B*Math.cos(Math.PI/6)).attr("y1",e=>S.get(e.id).y+B*Math.sin(Math.PI/6)).attr("x2",e=>S.get(e.id).x).attr("y2",e=>S.get(e.id).y-B).attr("stroke",s.componentStroke).attr("stroke-width",1),E.append("circle").attr("class","wardley-market-dot").attr("cx",e=>S.get(e.id).x).attr("cy",e=>S.get(e.id).y-B).attr("r",R).attr("fill","white").attr("stroke",s.componentStroke).attr("stroke-width",2),E.append("circle").attr("class","wardley-market-dot").attr("cx",e=>S.get(e.id).x-B*Math.cos(Math.PI/6)).attr("cy",e=>S.get(e.id).y+B*Math.sin(Math.PI/6)).attr("r",R).attr("fill","white").attr("stroke",s.componentStroke).attr("stroke-width",2),E.append("circle").attr("class","wardley-market-dot").attr("cx",e=>S.get(e.id).x+B*Math.cos(Math.PI/6)).attr("cy",e=>S.get(e.id).y+B*Math.sin(Math.PI/6)).attr("r",R).attr("fill","white").attr("stroke",s.componentStroke).attr("stroke-width",2),P.filter(e=>!0===e.isPipelineParent).append("rect").attr("x",e=>S.get(e.id).x-l/2).attr("y",e=>S.get(e.id).y-l/2).attr("width",l).attr("height",l).attr("fill",s.componentFill).attr("stroke",s.componentStroke).attr("stroke-width",1),P.filter(e=>!0===e.inertia).append("line").attr("class","wardley-inertia").attr("x1",e=>{const t=S.get(e.id);let n=e.isPipelineParent?l/2+15:a.nodeRadius+15;return e.sourceStrategy&&(n+=a.nodeRadius+10),t.x+n}).attr("y1",e=>{const t=S.get(e.id),n=e.isPipelineParent?l:2*a.nodeRadius;return t.y-n/2}).attr("x2",e=>{const t=S.get(e.id);let n=e.isPipelineParent?l/2+15:a.nodeRadius+15;return e.sourceStrategy&&(n+=a.nodeRadius+10),t.x+n}).attr("y2",e=>{const t=S.get(e.id),n=e.isPipelineParent?l:2*a.nodeRadius;return t.y+n/2}).attr("stroke",s.componentStroke).attr("stroke-width",6),P.append("text").attr("x",e=>{const t=S.get(e.id);if("anchor"===e.className)return void 0!==e.labelOffsetX?t.x+e.labelOffsetX:t.x;let n=a.nodeLabelOffset;e.sourceStrategy&&void 0===e.labelOffsetX&&(n+=10);const r=e.labelOffsetX??n;return t.x+r}).attr("y",e=>{const t=S.get(e.id);if("anchor"===e.className)return void 0!==e.labelOffsetY?t.y+e.labelOffsetY:t.y-3;let n=-a.nodeLabelOffset;e.sourceStrategy&&void 0===e.labelOffsetY&&(n-=10);const r=e.labelOffsetY??n;return t.y+r}).attr("class","wardley-node-label").attr("fill",e=>"evolved"===e.className?s.evolutionStroke:"anchor"===e.className?"#000":s.componentLabelColor).attr("font-size",a.labelFontSize).attr("font-weight",e=>"anchor"===e.className?"bold":"normal").attr("text-anchor",e=>"anchor"===e.className?"middle":"start").attr("dominant-baseline",e=>"anchor"===e.className?"middle":"auto").text(e=>e.label),u.annotations.length>0){const e=g.append("g").attr("class","wardley-annotations");if(u.annotations.forEach(t=>{const n=t.coordinates.map(e=>({x:y(e.x),y:v(e.y)}));if(n.length>1)for(let r=0;r<n.length-1;r++)e.append("line").attr("class","wardley-annotation-line").attr("x1",n[r].x).attr("y1",n[r].y).attr("x2",n[r+1].x).attr("y2",n[r+1].y).attr("stroke",s.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");n.forEach(n=>{const r=e.append("g").attr("class","wardley-annotation");r.append("circle").attr("cx",n.x).attr("cy",n.y).attr("r",10).attr("fill","white").attr("stroke",s.axisColor).attr("stroke-width",1.5),r.append("text").attr("x",n.x).attr("y",n.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",s.axisTextColor).attr("font-weight","bold").text(t.number)})}),u.annotationsBox){let t=y(u.annotationsBox.x),n=v(u.annotationsBox.y);const r=10,i=16,o=11,l=e.append("g").attr("class","wardley-annotations-box"),c=[...u.annotations].filter(e=>e.text).sort((e,t)=>e.number-t.number),h=[];if(c.forEach((e,a)=>{const c=l.append("text").attr("x",t+r).attr("y",n+r+(a+1)*i).attr("font-size",o).attr("fill",s.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${e.number}. ${e.text}`);h.push(c)}),h.length>0){let e=0,o=0;h.forEach(t=>{const n=t.node(),r=n.getComputedTextLength();e=Math.max(e,r);const i=n.getBBox();o=Math.max(o,i.height)});const u=e+2*r+105,f=c.length*i+2*r+o/2,g=a.padding,m=d-a.padding-u,O=a.padding,A=p-a.padding-f;t=Math.max(g,Math.min(t,m)),n=Math.max(O,Math.min(n,A)),h.forEach((e,o)=>{e.attr("x",t+r).attr("y",n+r+(o+1)*i)}),l.insert("rect","text").attr("x",t).attr("y",n).attr("width",u).attr("height",f).attr("fill","white").attr("stroke",s.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(u.notes.length>0){const e=g.append("g").attr("class","wardley-notes");u.notes.forEach(t=>{const n=y(t.x),r=v(t.y);e.append("text").attr("x",n).attr("y",r).attr("text-anchor","start").attr("font-size",11).attr("fill",s.axisTextColor).attr("font-weight","bold").text(t.text)})}if(u.accelerators.length>0){const e=g.append("g").attr("class","wardley-accelerators");u.accelerators.forEach(t=>{const n=y(t.x),r=v(t.y),i=60,o=`\n M ${n} ${r-15}\n L ${n+i-20} ${r-15}\n L ${n+i-20} ${r-15-8}\n L ${n+i} ${r}\n L ${n+i-20} ${r+15+8}\n L ${n+i-20} ${r+15}\n L ${n} ${r+15}\n Z\n `;e.append("path").attr("d",o).attr("fill","white").attr("stroke",s.componentStroke).attr("stroke-width",1),e.append("text").attr("x",n+30).attr("y",r+15+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",s.axisTextColor).attr("font-weight","bold").text(t.name)})}if(u.deaccelerators.length>0){const e=g.append("g").attr("class","wardley-deaccelerators");u.deaccelerators.forEach(t=>{const n=y(t.x),r=v(t.y),i=`\n M ${n+60} ${r-15}\n L ${n+20} ${r-15}\n L ${n+20} ${r-15-8}\n L ${n} ${r}\n L ${n+20} ${r+15+8}\n L ${n+20} ${r+15}\n L ${n+60} ${r+15}\n Z\n `;e.append("path").attr("d",i).attr("fill","white").attr("stroke",s.componentStroke).attr("stroke-width",1),e.append("text").attr("x",n+30).attr("y",r+15+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",s.axisTextColor).attr("font-weight","bold").text(t.name)})}},"draw"),UNn={draw:FNn},zNn=hRe(({wardley:e}={})=>{const t=jWe(nBe(),NBe().themeVariables),n=jWe(t.wardley,e);return`\n .wardley-background {\n fill: ${n.backgroundColor};\n }\n .wardley-axes line, .wardley-axes path {\n stroke: ${n.axisColor};\n }\n .wardley-axis-label {\n fill: ${n.axisTextColor};\n }\n .wardley-stage-label {\n fill: ${n.axisTextColor};\n }\n .wardley-grid line {\n stroke: ${n.gridColor};\n }\n .wardley-node circle {\n fill: ${n.componentFill};\n stroke: ${n.componentStroke};\n }\n .wardley-node-label {\n fill: ${n.componentLabelColor};\n }\n .wardley-link {\n stroke: ${n.linkStroke};\n }\n .wardley-link--dashed {\n stroke-dasharray: 4 4;\n }\n .wardley-link-label {\n fill: ${n.axisTextColor};\n }\n .wardley-trend line {\n stroke: ${n.evolutionStroke};\n }\n .wardley-annotation-line {\n stroke: ${n.annotationStroke};\n }\n .wardley-annotation circle {\n fill: ${n.annotationFill};\n stroke: ${n.annotationStroke};\n }\n .wardley-annotation text {\n fill: ${n.annotationTextColor};\n }\n .wardley-annotations-box rect {\n fill: ${n.annotationFill};\n stroke: ${n.annotationStroke};\n }\n .wardley-annotations-box text {\n fill: ${n.annotationTextColor};\n }\n .wardley-pipeline-box {\n stroke: ${n.componentStroke};\n }\n .wardley-notes text {\n fill: ${n.axisTextColor};\n }\n `},"styles"),qNn={parser:ANn,db:DNn,renderer:UNn,styles:zNn};const VNn=Object.freeze(Object.defineProperty({__proto__:null,diagram:qNn},Symbol.toStringTag,{value:"Module"}));var WNn=hRe(()=>({domains:new Map,transitions:[]}),"createDefaultData"),jNn=WNn(),YNn=hRe(()=>jNn.domains,"getDomains"),ZNn=hRe(()=>jNn.transitions,"getTransitions"),GNn=hRe(e=>{if(e)for(const t of e){const e=t.domain,n=(t.items??[]).map(e=>({label:e.label}));jNn.domains.set(e,{name:e,items:n})}},"setDomains"),HNn=hRe(e=>{e&&(jNn.transitions=e.filter(e=>e.from!==e.to||(ORe.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1)).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},"setTransitions"),KNn={getDomains:YNn,getTransitions:ZNn,setDomains:GNn,setTransitions:HNn,getConfig:hRe(()=>jWe({...wBe.cynefin,...NBe().cynefin}),"getConfig"),clear:hRe(()=>{qIe(),jNn=WNn()},"clear"),setAccTitle:VIe,getAccTitle:WIe,setDiagramTitle:ZIe,getDiagramTitle:GIe,getAccDescription:YIe,setAccDescription:jIe},JNn=hRe(e=>{qzt(e,KNn),KNn.setDomains(e.domains),KNn.setTransitions(e.transitions)},"populate"),eXn={parse:hRe(async e=>{const t=await gbn("cynefin",e);ORe.debug(t),JNn(t)},"parse")};function tXn(e){let t=e+1831565813|0;return t=Math.imul(t^t>>>15,1|t),t^=t+Math.imul(t^t>>>7,61|t),((t^t>>>14)>>>0)/4294967296}function nXn(e){let t=0;for(let n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n),t|=0}return t}function rXn(e,t){return"number"==typeof e&&Number.isFinite(e)&&0!==e?e:nXn(t)}function iXn(e,t,n,r){const i=e/2,o=r??.015*e,a=t/7,s=[];for(let c=0;c<=7;c++){const e=tXn(n+17*c)*o*2-o;s.push({x:i+e,y:c*a})}let l=`M${s[0].x},${s[0].y}`;for(let c=0;c<s.length-1;c++){const e=s[c],t=s[c+1],r=(e.y+t.y)/2,i=1.5*o*(c%2==0?1:-1)*tXn(n+31*c+7);l+=` C${e.x+i},${r} ${t.x-i},${r} ${t.x},${t.y}`}return l}function oXn(e,t,n,r){const i=t/2,o=r??.015*t,a=e/7,s=[];for(let c=0;c<=7;c++){const e=tXn(n+23*c)*o*2-o;s.push({x:c*a,y:i+e})}let l=`M${s[0].x},${s[0].y}`;for(let c=0;c<s.length-1;c++){const e=s[c],t=s[c+1],r=(e.x+t.x)/2,i=1.5*o*(c%2==0?1:-1)*tXn(n+37*c+11);l+=` C${r},${e.y+i} ${r},${t.y-i} ${t.x},${t.y}`}return l}function aXn(e,t){const n=e/2,r=.5*t,i=.03*e;return[`M${n},${r}`,`C${n+i},${r+.2*(t-r)}`,`${n-1.5*i},${r+.55*(t-r)}`,`${n+.5*i},${r+.75*(t-r)}`,`C${n-i},${r+.85*(t-r)}`,`${n+.3*i},${r+.95*(t-r)}`,`${n},${t}`].join(" ")}function sXn(e,t,n,r){return[`M${e-n},${t}`,`A${n},${r} 0 1,1 ${e+n},${t}`,`A${n},${r} 0 1,1 ${e-n},${t}`,"Z"].join(" ")}hRe(tXn,"seededRandom"),hRe(nXn,"hashString"),hRe(rXn,"resolveSeed"),hRe(iXn,"generateFoldPath"),hRe(oXn,"generateHorizontalBoundary"),hRe(aXn,"generateCliffPath"),hRe(sXn,"generateConfusionPath");var lXn={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},cXn=hRe((e,t)=>{const n=e/2,r=t/2;return{complex:{cx:n/2,cy:r/2,x:0,y:0,w:n,h:r},complicated:{cx:n+n/2,cy:r/2,x:n,y:0,w:n,h:r},chaotic:{cx:n/2,cy:r+r/2,x:0,y:r,w:n,h:r},clear:{cx:n+n/2,cy:r+r/2,x:n,y:r,w:n,h:r},confusion:{cx:n,cy:r,x:.7*n,y:.7*r,w:.6*n,h:.6*r}}},"getDomainLayouts"),uXn=hRe(()=>jWe(nBe(),NBe().themeVariables).cynefin,"getCynefinDomainColors"),hXn=hRe((e,t,n,r)=>{const i=r.db,o=i.getDomains(),a=i.getTransitions(),s=i.getDiagramTitle(),l=i.getAccTitle(),c=i.getAccDescription(),u=i.getConfig(),h=uXn();ORe.debug("Rendering Cynefin diagram");const d=u.width,p=u.height,f=u.padding,g=u.showDomainDescriptions,m=u.boundaryAmplitude,O=d+2*f,A=p+2*f,y={complex:h.complexBg,complicated:h.complicatedBg,clear:h.clearBg,chaotic:h.chaoticBg,confusion:h.confusionBg},v=Mqe(t);EIe(v,A,O,u.useMaxWidth??!0),v.attr("viewBox",`0 0 ${O} ${A}`),l&&v.append("title").text(l),c&&v.append("desc").text(c);const b=v.append("g").attr("transform",`translate(${f}, ${f})`),x=cXn(d,p),w=rXn(u.seed,t),k=b.append("g").attr("class","cynefin-backgrounds"),S=["complex","complicated","chaotic","clear"];for(const R of S){const e=x[R];k.append("rect").attr("class","cynefinDomain").attr("x",e.x).attr("y",e.y).attr("width",e.w).attr("height",e.h).attr("fill",y[R]).attr("fill-opacity",.4).attr("stroke","none")}const T=b.append("g").attr("class","cynefin-boundaries");T.append("path").attr("class","cynefinBoundary").attr("d",iXn(d,p,w,m)).attr("fill","none"),T.append("path").attr("class","cynefinBoundary").attr("d",oXn(d,p,w+100,m)).attr("fill","none"),T.append("path").attr("class","cynefinCliff").attr("d",aXn(d,p)).attr("fill","none");const $=.15*d,_=.15*p;b.append("path").attr("class","cynefinConfusion").attr("d",sXn(d/2,p/2,$,_)).attr("fill",y.confusion).attr("fill-opacity",.5);const C=b.append("g").attr("class","cynefin-labels");for(const R of S){const e=x[R];C.append("text").attr("class","cynefinDomainLabel").attr("x",e.cx).attr("y",g?e.cy-30:e.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(R.charAt(0).toUpperCase()+R.slice(1))}if(C.append("text").attr("class","cynefinDomainLabel").attr("x",d/2).attr("y",g?p/2-10:p/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),g){const e=b.append("g").attr("class","cynefin-subtitles");for(const t of S){const n=x[t],r=lXn[t];e.append("text").attr("class","cynefinSubtitle").attr("x",n.cx).attr("y",n.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(r.model),e.append("text").attr("class","cynefinSubtitle").attr("x",n.cx).attr("y",n.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(r.practice)}e.append("text").attr("class","cynefinSubtitle").attr("x",d/2).attr("y",p/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(lXn.confusion.practice)}const Q=b.append("g").attr("class","cynefin-items"),P=26,E=["complex","complicated","chaotic","clear","confusion"];for(const R of E){const e=o.get(R);if(!e||0===e.items.length)continue;const t=x[R],n="confusion"===R;let r,i=e.items,a=0;if(n&&e.items.length>3&&(a=e.items.length-3,i=e.items.slice(0,3)),n){const e=g?22:14;r=t.cy+e}else r=t.cy+(g?25:15);if([...i].forEach((e,n)=>{const i=r+30*n,o=Q.append("g"),a=o.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",13).attr("text-anchor","middle").attr("dominant-baseline","central").text(e.label);let s=7*e.label.length;const l=a.node();if(l&&"function"==typeof l.getBBox){const e=l.getBBox();e.width>0&&(s=e.width)}const c=s+20,u=t.cx-c/2;o.attr("transform",`translate(${u}, ${i})`),o.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",c).attr("height",P).attr("rx",4).attr("ry",4).attr("fill",y[R]).attr("fill-opacity",.95),a.attr("x",c/2).attr("y",13)}),a>0){const e=r+30*i.length,n=`+${a} more`,o=Q.append("g"),s=o.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",13).attr("text-anchor","middle").attr("dominant-baseline","central").text(n);let l=7*n.length;const c=s.node();if(c&&"function"==typeof c.getBBox){const e=c.getBBox();e.width>0&&(l=e.width)}const u=l+20,h=t.cx-u/2;o.attr("transform",`translate(${h}, ${e})`),o.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",u).attr("height",P).attr("rx",4).attr("ry",4).attr("fill",y[R]).attr("fill-opacity",.6),s.attr("x",u/2).attr("y",13)}}if(a.length>0){const e=v.select("defs").empty()?v.append("defs"):v.select("defs"),n=`cynefin-arrow-${t}`;e.append("marker").attr("id",n).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");const r=b.append("g").attr("class","cynefin-arrows");a.forEach(e=>{const t=x[e.from],i=x[e.to];if(!t||!i)return;if(e.from===e.to)return void ORe.warn(`Cynefin renderer: skipping self-loop on domain "${e.from}"`);const o=t.cx,a=t.cy,s=i.cx,l=i.cy,c=(o+s)/2,u=(a+l)/2,h=s-o,d=l-a,p=Math.sqrt(h*h+d*d),f=.15*p,g=c+-d/p*f,m=u+h/p*f;r.append("path").attr("class","cynefinArrowLine").attr("d",`M${o},${a} Q${g},${m} ${s},${l}`).attr("fill","none").attr("marker-end",`url(#${n})`),e.label&&r.append("text").attr("class","cynefinArrowLabel").attr("x",g).attr("y",m-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(e.label)})}s&&b.append("text").attr("class","cynefinTitle").attr("x",d/2).attr("y",-f/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(s)},"draw"),dXn={draw:hXn},pXn=hRe(()=>jWe(nBe(),NBe().themeVariables).cynefin,"getCynefinTheme"),fXn=hRe(()=>{const e=pXn();return`\n\t.cynefinDomain {\n\t\tstroke: none;\n\t}\n\t.cynefinDomainLabel {\n\t\tfont-size: ${e.domainFontSize}px;\n\t\tfont-weight: bold;\n\t\tfill: ${e.labelColor};\n\t}\n\t.cynefinSubtitle {\n\t\tfont-size: ${e.itemFontSize-1}px;\n\t\tfill: ${e.textColor};\n\t\tfont-style: italic;\n\t}\n\t.cynefinItem {\n\t\tfill-opacity: 0.95;\n\t\tstroke: ${e.boundaryColor};\n\t\tstroke-width: 1;\n\t}\n\t.cynefinItemText {\n\t\tfont-size: ${e.itemFontSize}px;\n\t\tfill: ${e.textColor};\n\t}\n\t.cynefinItemOverflow {\n\t\tfill-opacity: 0.6;\n\t\tstroke: ${e.boundaryColor};\n\t\tstroke-width: 1;\n\t\tstroke-dasharray: 3 2;\n\t}\n\t.cynefinBoundary {\n\t\tstroke: ${e.boundaryColor};\n\t\tstroke-width: ${e.boundaryWidth};\n\t\tstroke-dasharray: 6 3;\n\t}\n\t.cynefinCliff {\n\t\tstroke: ${e.cliffColor};\n\t\tstroke-width: ${e.cliffWidth};\n\t}\n\t.cynefinConfusion {\n\t\tstroke: ${e.boundaryColor};\n\t\tstroke-width: 1.5;\n\t\tstroke-dasharray: 4 2;\n\t}\n\t.cynefinArrowLine {\n\t\tstroke: ${e.arrowColor};\n\t\tstroke-width: ${e.arrowWidth};\n\t\tfill: none;\n\t}\n\t.cynefinArrowHead {\n\t\tfill: ${e.arrowColor};\n\t\tstroke: none;\n\t}\n\t.cynefinArrowLabel {\n\t\tfont-size: ${e.itemFontSize-1}px;\n\t\tfill: ${e.textColor};\n\t}\n\t.cynefinTitle {\n\t\tfont-size: ${e.domainFontSize+2}px;\n\t\tfont-weight: bold;\n\t\tfill: ${e.labelColor};\n\t}\n\t`},"styles"),gXn={parser:eXn,db:KNn,renderer:dXn,styles:fXn};const mXn=Object.freeze(Object.defineProperty({__proto__:null,diagram:gXn},Symbol.toStringTag,{value:"Module"}));var OXn="",AXn="",yXn="",vXn=[],bXn=new Map,xXn=hRe(e=>uIe(e,JIe()),"sanitizeText"),wXn=hRe(e=>{switch(e.type){case"terminal":return{...e,value:xXn(e.value)};case"nonterminal":return{...e,name:xXn(e.name)};case"sequence":return{...e,elements:e.elements.map(wXn)};case"choice":return{...e,alternatives:e.alternatives.map(wXn)};case"optional":return{...e,element:wXn(e.element)};case"repetition":return{...e,element:wXn(e.element),separator:e.separator?wXn(e.separator):void 0};case"special":return{...e,text:xXn(e.text)}}},"sanitizeAstNode"),kXn=hRe(()=>{OXn="",AXn="",yXn="",vXn.length=0,bXn.clear(),qIe(),ORe.debug("[Railroad] Database cleared")},"clear"),SXn=hRe(e=>{OXn=xXn(e),ORe.debug("[Railroad] Title set:",e)},"setTitle"),TXn=hRe(()=>OXn,"getTitle"),$Xn={clear:kXn,setTitle:SXn,getTitle:TXn,addRule:hRe(e=>{const t={...e,name:xXn(e.name),definition:wXn(e.definition),comment:e.comment?xXn(e.comment):void 0};ORe.debug("[Railroad] Adding rule:",t.name),bXn.has(t.name)&&ORe.warn(`[Railroad] Rule '${t.name}' is already defined. Overwriting.`),vXn.push(t),bXn.set(t.name,t)},"addRule"),getRules:hRe(()=>vXn,"getRules"),getRule:hRe(e=>bXn.get(e),"getRule"),setAccTitle:hRe(e=>{AXn=xXn(e).replace(/^\s+/g,""),ORe.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),getAccTitle:hRe(()=>AXn,"getAccTitle"),setAccDescription:hRe(e=>{yXn=xXn(e).replace(/\n\s+/g,"\n"),ORe.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),getAccDescription:hRe(()=>yXn,"getAccDescription"),setDiagramTitle:SXn,getDiagramTitle:TXn},_Xn={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},CXn=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,QXn=/^[\w "',.-]+$/,PXn=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),EXn=hRe(e=>!!e&&Object.keys(e).every(e=>"railroad"===e||PXn.has(e)),"isRailroadStyleOptions"),RXn=hRe(e=>e?"railroad"in e&&e.railroad?e.railroad:EXn(e)?e:{}:{},"extractRailroadOverrides"),BXn=hRe(e=>{if(!e||EXn(e))return{};const{railroad:t,svgId:n,theme:r,look:i,...o}=e;return o},"extractThemeOverrides"),IXn=hRe((e,t)=>{if("string"!=typeof e)return t;const n=e.trim();return CXn.test(n)?n:t},"sanitizeColorValue"),LXn=hRe((e,t)=>{if("string"!=typeof e)return t;const n=e.trim();return QXn.test(n)?n:t},"sanitizeFontFamilyValue"),DXn=hRe((e,t)=>{const n="number"==typeof e?e:"string"==typeof e?Number.parseFloat(e):Number.NaN;return Number.isFinite(n)&&n>=0?n:t},"sanitizeNumberValue"),MXn=hRe(e=>{const t="number"==typeof e?e:"string"==typeof e?Number.parseFloat(e):Number.NaN;return Number.isFinite(t)&&t>0?t:void 0},"parseThemeFontSize"),NXn=hRe(e=>{const t=LXn(e.fontFamily,_Xn.fontFamily),n=MXn(e.fontSize)??_Xn.fontSize;return{..._Xn,fontFamily:t,fontSize:n,terminalFill:IXn(e.secondBkg??e.secondaryColor,_Xn.terminalFill),terminalStroke:IXn(e.secondaryBorderColor??e.lineColor,_Xn.terminalStroke),terminalTextColor:IXn(e.secondaryTextColor??e.textColor,_Xn.terminalTextColor),nonTerminalFill:IXn(e.mainBkg??e.background,_Xn.nonTerminalFill),nonTerminalStroke:IXn(e.primaryBorderColor??e.lineColor,_Xn.nonTerminalStroke),nonTerminalTextColor:IXn(e.primaryTextColor??e.textColor,_Xn.nonTerminalTextColor),lineColor:IXn(e.lineColor,_Xn.lineColor),markerFill:IXn(e.lineColor,_Xn.markerFill),commentFill:IXn(e.labelBackground??e.tertiaryColor,_Xn.commentFill),commentStroke:IXn(e.tertiaryBorderColor??e.lineColor,_Xn.commentStroke),commentTextColor:IXn(e.tertiaryTextColor??e.textColor,_Xn.commentTextColor),specialFill:IXn(e.tertiaryColor??e.secondaryColor,_Xn.specialFill),specialStroke:IXn(e.tertiaryBorderColor??e.secondaryBorderColor,_Xn.specialStroke),ruleNameColor:IXn(e.titleColor??e.textColor,_Xn.ruleNameColor)}},"buildThemeDefaults"),XXn=hRe(e=>{const t=NBe(),n={...nBe(),...t.themeVariables??{},...BXn(e)},r=NXn(n),i={...t.railroad??{},...RXn(e)};return{compactMode:i.compactMode??r.compactMode,padding:DXn(i.padding,r.padding),verticalSeparation:DXn(i.verticalSeparation,r.verticalSeparation),horizontalSeparation:DXn(i.horizontalSeparation,r.horizontalSeparation),arcRadius:DXn(i.arcRadius,r.arcRadius),fontSize:DXn(i.fontSize,r.fontSize),fontFamily:LXn(i.fontFamily,r.fontFamily),terminalFill:IXn(i.terminalFill,r.terminalFill),terminalStroke:IXn(i.terminalStroke,r.terminalStroke),terminalTextColor:IXn(i.terminalTextColor,r.terminalTextColor),nonTerminalFill:IXn(i.nonTerminalFill,r.nonTerminalFill),nonTerminalStroke:IXn(i.nonTerminalStroke,r.nonTerminalStroke),nonTerminalTextColor:IXn(i.nonTerminalTextColor,r.nonTerminalTextColor),lineColor:IXn(i.lineColor,r.lineColor),strokeWidth:DXn(i.strokeWidth,r.strokeWidth),markerFill:IXn(i.markerFill,r.markerFill),commentFill:IXn(i.commentFill,r.commentFill),commentStroke:IXn(i.commentStroke,r.commentStroke),commentTextColor:IXn(i.commentTextColor,r.commentTextColor),specialFill:IXn(i.specialFill,r.specialFill),specialStroke:IXn(i.specialStroke,r.specialStroke),ruleNameColor:IXn(i.ruleNameColor,r.ruleNameColor),showMarkers:i.showMarkers??r.showMarkers,markerRadius:DXn(i.markerRadius,r.markerRadius)}},"buildRailroadStyleOptions"),FXn=hRe(e=>{const{fontFamily:t,fontSize:n,terminalFill:r,terminalStroke:i,terminalTextColor:o,nonTerminalFill:a,nonTerminalStroke:s,nonTerminalTextColor:l,lineColor:c,strokeWidth:u,markerFill:h,commentFill:d,commentStroke:p,commentTextColor:f,specialFill:g,specialStroke:m,ruleNameColor:O}=XXn(e);return`\n .railroad-diagram {\n font-family: ${t};\n font-size: ${n}px;\n }\n\n .railroad-terminal rect {\n fill: ${r};\n stroke: ${i};\n stroke-width: ${u}px;\n }\n\n .railroad-terminal text {\n fill: ${o};\n font-family: ${t};\n font-size: ${n}px;\n text-anchor: middle;\n dominant-baseline: middle;\n }\n\n .railroad-nonterminal rect {\n fill: ${a};\n stroke: ${s};\n stroke-width: ${u}px;\n }\n\n .railroad-nonterminal text {\n fill: ${l};\n font-family: ${t};\n font-size: ${n}px;\n text-anchor: middle;\n dominant-baseline: middle;\n }\n\n .railroad-line {\n stroke: ${c};\n stroke-width: ${u}px;\n fill: none;\n }\n\n .railroad-start circle,\n .railroad-end circle {\n fill: ${h};\n }\n\n .railroad-comment ellipse {\n fill: ${d};\n stroke: ${p};\n stroke-width: ${u}px;\n }\n\n .railroad-comment text {\n fill: ${f};\n font-style: italic;\n font-family: ${t};\n font-size: ${n}px;\n text-anchor: middle;\n dominant-baseline: middle;\n }\n\n .railroad-special rect {\n fill: ${g};\n stroke: ${m};\n stroke-width: ${u}px;\n stroke-dasharray: 5,3;\n }\n\n .railroad-special text {\n fill: ${l};\n font-family: ${t};\n font-size: ${n}px;\n text-anchor: middle;\n dominant-baseline: middle;\n }\n\n .railroad-rule-name {\n font-weight: bold;\n fill: ${O};\n font-family: ${t};\n font-size: ${n}px;\n }\n\n .railroad-group {\n /* Grouping container, no specific styles */\n }\n`},"getStyles"),UXn=(hRe(Zn=class{constructor(){this.d=""}moveTo(e,t){return this.d+=`M ${e} ${t} `,this}lineTo(e,t){return this.d+=`L ${e} ${t} `,this}horizontalTo(e){return this.d+=`H ${e} `,this}verticalTo(e){return this.d+=`V ${e} `,this}arcTo(e,t,n,r,i,o,a){return this.d+=`A ${e} ${t} ${n} ${r?1:0} ${i?1:0} ${o} ${a} `,this}build(){return this.d.trim()}},"PathBuilder"),Zn),zXn=(Gn=class{constructor(e,t=XXn()){this.textCache=new Map,this.svg=e,this.config=t}measureText(e){if(this.textCache.has(e))return this.textCache.get(e);const t=this.svg.append("text").attr("font-family",this.config.fontFamily).attr("font-size",this.config.fontSize).text(e),n=t.node().getBBox(),r={width:n.width,height:n.height};return t.remove(),this.textCache.set(e,r),r}renderTerminal(e,t){const n=this.measureText(t),r=n.width+2*this.config.padding,i=n.height+2*this.config.padding,o=e.append("g").attr("class","railroad-terminal");return o.append("rect").attr("x",0).attr("y",0).attr("width",r).attr("height",i).attr("rx",10).attr("ry",10),o.append("text").attr("x",r/2).attr("y",i/2).text(t),{element:o.node(),dimensions:{width:r,height:i,up:i/2,down:i/2}}}renderNonTerminal(e,t){const n=this.measureText(t),r=n.width+2*this.config.padding,i=n.height+2*this.config.padding,o=e.append("g").attr("class","railroad-nonterminal");return o.append("rect").attr("x",0).attr("y",0).attr("width",r).attr("height",i),o.append("text").attr("x",r/2).attr("y",i/2).text(t),{element:o.node(),dimensions:{width:r,height:i,up:i/2,down:i/2}}}renderSequence(e,t){const n=t.map(t=>this.renderExpression(e,t));let r=0,i=0,o=0;for(const l of n)r+=l.dimensions.width,i=Math.max(i,l.dimensions.up),o=Math.max(o,l.dimensions.down);r+=(n.length-1)*this.config.horizontalSeparation;const a=e.append("g").attr("class","railroad-sequence");let s=0;for(let l=0;l<n.length;l++){const e=n[l],t=i-e.dimensions.up;if(a.node().appendChild(e.element).setAttribute("transform",`translate(${s}, ${t})`),l<n.length-1){const t=s+e.dimensions.width,n=t+this.config.horizontalSeparation,r=i;a.append("path").attr("class","railroad-line").attr("d",(new UXn).moveTo(t,r).lineTo(n,r).build())}s+=e.dimensions.width+this.config.horizontalSeparation}return{element:a.node(),dimensions:{width:r,height:i+o,up:i,down:o}}}renderChoice(e,t){const n=t.map(t=>this.renderExpression(e,t));let r=0,i=0;for(const u of n)r=Math.max(r,u.dimensions.width),i+=u.dimensions.height;i+=(n.length-1)*this.config.verticalSeparation;const o=this.config.arcRadius,a=r+4*o,s=e.append("g").attr("class","railroad-choice");let l=0;const c=i/2;for(const u of n){const e=l,t=e+u.dimensions.up,n=2*o+(r-u.dimensions.width)/2;s.node().appendChild(u.element).setAttribute("transform",`translate(${n}, ${e})`);const i=new UXn,h=t>c;t===c?i.moveTo(0,c).lineTo(n,t):i.moveTo(0,c).arcTo(o,o,0,!1,h,o,c+(h?o:-o)).lineTo(o,t-(h?o:-o)).arcTo(o,o,0,!1,!h,2*o,t).lineTo(n,t),s.append("path").attr("class","railroad-line").attr("d",i.build());const d=new UXn,p=n+u.dimensions.width,f=a-2*o;t===c?d.moveTo(p,t).lineTo(a,c):d.moveTo(p,t).lineTo(f,t).arcTo(o,o,0,!1,!h,a-o,t+(h?-o:o)).lineTo(a-o,c+(h?o:-o)).arcTo(o,o,0,!1,h,a,c),s.append("path").attr("class","railroad-line").attr("d",d.build()),l+=u.dimensions.height+this.config.verticalSeparation}return{element:s.node(),dimensions:{width:a,height:i,up:c,down:i-c}}}renderOptional(e,t){const n=this.renderExpression(e,t),r=this.config.arcRadius,i=2*r,o=n.dimensions.width+4*r,a=n.dimensions.height+i,s=e.append("g").attr("class","railroad-optional"),l=2*r,c=i;s.node().appendChild(n.element).setAttribute("transform",`translate(${l}, ${c})`);const u=c+n.dimensions.up,h=(new UXn).moveTo(0,u).lineTo(2*r,u);s.append("path").attr("class","railroad-line").attr("d",h.build());const d=(new UXn).moveTo(l+n.dimensions.width,u).lineTo(o,u);s.append("path").attr("class","railroad-line").attr("d",d.build());const p=(new UXn).moveTo(0,u).arcTo(r,r,0,!1,!1,r,u-r).lineTo(r,r).arcTo(r,r,0,!1,!0,2*r,0).lineTo(o-2*r,0).arcTo(r,r,0,!1,!0,o-r,r).lineTo(o-r,u-r).arcTo(r,r,0,!1,!1,o,u);return s.append("path").attr("class","railroad-line").attr("d",p.build()),{element:s.node(),dimensions:{width:o,height:a,up:u,down:a-u}}}renderRepetition(e,t,n){const r=this.renderExpression(e,t),i=this.config.arcRadius,o=2*i,a=r.dimensions.width+4*i,s=0===n,l=r.dimensions.height+o+(s?o:0),c=e.append("g").attr("class","railroad-repetition"),u=2*i,h=s?o:0;c.node().appendChild(r.element).setAttribute("transform",`translate(${u}, ${h})`);const d=h+r.dimensions.up;c.append("path").attr("class","railroad-line").attr("d",(new UXn).moveTo(0,d).lineTo(2*i,d).build()),c.append("path").attr("class","railroad-line").attr("d",(new UXn).moveTo(u+r.dimensions.width,d).lineTo(a,d).build());const p=h+r.dimensions.height+i,f=(new UXn).moveTo(u+r.dimensions.width,d).arcTo(i,i,0,!1,!0,u+r.dimensions.width+i,d+i).lineTo(u+r.dimensions.width+i,p).arcTo(i,i,0,!1,!0,u+r.dimensions.width,p+i).lineTo(2*i,p+i).arcTo(i,i,0,!1,!0,i,p).lineTo(i,d+i).arcTo(i,i,0,!1,!0,2*i,d);if(c.append("path").attr("class","railroad-line").attr("d",f.build()),s){const e=(new UXn).moveTo(0,d).arcTo(i,i,0,!1,!1,i,d-i).lineTo(i,i).arcTo(i,i,0,!1,!0,2*i,0).lineTo(a-2*i,0).arcTo(i,i,0,!1,!0,a-i,i).lineTo(a-i,d-i).arcTo(i,i,0,!1,!1,a,d);c.append("path").attr("class","railroad-line").attr("d",e.build())}return{element:c.node(),dimensions:{width:a,height:l,up:d,down:l-d}}}renderSpecial(e,t){const n=this.measureText("? "+t+" ?"),r=n.width+2*this.config.padding,i=n.height+2*this.config.padding,o=e.append("g").attr("class","railroad-special");return o.append("rect").attr("x",0).attr("y",0).attr("width",r).attr("height",i),o.append("text").attr("x",r/2).attr("y",i/2).text("? "+t+" ?"),{element:o.node(),dimensions:{width:r,height:i,up:i/2,down:i/2}}}renderExpression(e,t){switch(t.type){case"terminal":return this.renderTerminal(e,t.value);case"nonterminal":return this.renderNonTerminal(e,t.name);case"sequence":return this.renderSequence(e,t.elements);case"choice":return this.renderChoice(e,t.alternatives);case"optional":return this.renderOptional(e,t.element);case"repetition":return this.renderRepetition(e,t.element,t.min);case"special":return this.renderSpecial(e,t.text);default:throw new Error(`Unknown node type: ${t.type}`)}}renderRule(e,t){const n=this.svg.append("g").attr("class","railroad-rule").attr("transform",`translate(0, ${t})`),r=e.name+" =",i=this.measureText(r).width+20,o=i+20,a=n.append("g"),s=this.renderExpression(a,e.definition),l=Math.max(20,s.dimensions.up),c=l-s.dimensions.up;a.attr("transform",`translate(${o}, ${c})`);n.append("g").attr("class","railroad-rule-name-group").append("text").attr("class","railroad-rule-name").attr("x",0).attr("y",l).text(r);n.append("g").attr("class","railroad-start").append("circle").attr("cx",i).attr("cy",l).attr("r",this.config.markerRadius);return n.append("g").attr("class","railroad-end").append("circle").attr("cx",o+s.dimensions.width+10).attr("cy",l).attr("r",this.config.markerRadius),n.append("path").attr("class","railroad-line").attr("d",(new UXn).moveTo(i+this.config.markerRadius,l).lineTo(o,l).build()),n.append("path").attr("class","railroad-line").attr("d",(new UXn).moveTo(o+s.dimensions.width,l).lineTo(o+s.dimensions.width+10-this.config.markerRadius,l).build()),{height:Math.max(40,c+s.dimensions.height+2*this.config.padding),width:o+s.dimensions.width+10+this.config.markerRadius}}renderDiagram(e){let t=this.config.padding,n=0;for(const r of e){const e=this.renderRule(r,t);t+=e.height+this.config.verticalSeparation,n=Math.max(n,e.width)}return{width:n+2*this.config.padding,height:t+this.config.padding}}},hRe(Gn,"RailroadRenderer"),Gn),qXn=hRe((e,t,n)=>{EIe(e,t.height,t.width,n),e.attr("viewBox",`0 0 ${t.width} ${t.height}`)},"configureRailroadSvgSize"),VXn={draw:hRe((e,t,n)=>{ORe.debug("[Railroad] Rendering diagram\n"+e);try{const e=Mqe(t);e.attr("class","railroad-diagram");const n=NBe().railroad,r=(null==n?void 0:n.useMaxWidth)??!0,i=$Xn.getRules();if(ORe.debug(`[Railroad] Rendering ${i.length} rules`),0===i.length)return ORe.warn("[Railroad] No rules to render"),void qXn(e,{height:100,width:200},r);const o=new zXn(e,XXn()).renderDiagram(i);qXn(e,o,r),ORe.debug("[Railroad] Render complete")}catch(r){throw ORe.error("[Railroad] Render error:",r),r}},"draw")},WXn=lvn().Railroad.parser.LangiumParser,jXn=hRe(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{const t=e.elements.map(jXn);return 1===t.length?t[0]:{type:"sequence",elements:t}}case"RailroadChoiceExpr":{const t=e.alternatives.map(jXn);return 1===t.length?t[0]:{type:"choice",alternatives:t}}case"RailroadOptionalExpr":return{type:"optional",element:jXn(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:jXn(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:jXn(e.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),YXn=hRe(e=>({name:e.name,definition:jXn(e.definition)}),"transformRule"),ZXn=hRe(e=>{qzt(e,$Xn),e.title&&$Xn.setTitle(e.title),e.rules.map(e=>$Xn.addRule(YXn(e)))},"populateDb"),GXn={parser:{parse:hRe(e=>{$Xn.clear(),ORe.debug("[Railroad Parser] Starting Langium parse");const t=WXn.parse(e);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new mbn(t);const n=t.value;ORe.debug("[Railroad Parser] Parsed rules:",n.rules.length),ZXn(n),ORe.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:$Xn}},db:$Xn,renderer:VXn,styles:FXn};const HXn=Object.freeze(Object.defineProperty({__proto__:null,diagram:GXn},Symbol.toStringTag,{value:"Module"}));var KXn=pvn().RailroadEbnf.parser.LangiumParser,JXn=hRe(e=>{const t=e.alternatives.map(eFn);return 1===t.length?t[0]:{type:"choice",alternatives:t}},"transformChoice"),eFn=hRe(e=>{const t=e.elements.map(rFn);return 1===t.length?t[0]:{type:"sequence",elements:t}},"transformSequence"),tFn=hRe(e=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return JXn(e.element);case"EbnfOptional":return{type:"optional",element:JXn(e.element)};case"EbnfRepetition":return{type:"repetition",element:JXn(e.element),min:0,max:1/0};default:throw new Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),nFn=hRe((e,t)=>{switch(t.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},tFn(t.except)]};default:throw new Error(`Unsupported EBNF postfix node: ${t.$type}`)}},"transformPostfix"),rFn=hRe(e=>e.postfixes.reduce((e,t)=>nFn(e,t),tFn(e.base)),"transformTerm"),iFn=hRe(e=>({name:e.name,definition:JXn(e.definition)}),"transformRule"),oFn=hRe(e=>{qzt(e,$Xn),e.title&&$Xn.setTitle(e.title),e.rules.map(e=>$Xn.addRule(iFn(e)))},"populateDb"),aFn={parser:{parse:hRe(e=>{$Xn.clear(),ORe.debug("[EBNF Parser] Starting Langium parse");const t=KXn.parse(e);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new mbn(t);const n=t.value;ORe.debug("[EBNF Parser] Parsed rules:",n.rules.length),oFn(n),ORe.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:$Xn}},db:$Xn,renderer:VXn,styles:FXn};const sFn=Object.freeze(Object.defineProperty({__proto__:null,diagram:aFn},Symbol.toStringTag,{value:"Module"}));var lFn=Ovn().RailroadAbnf.parser.LangiumParser,cFn=hRe(e=>{const t=e.alternatives.map(uFn);return 1===t.length?t[0]:{type:"choice",alternatives:t}},"transformAlternation"),uFn=hRe(e=>{const t=e.elements.map(dFn);return 1===t.length?t[0]:{type:"sequence",elements:t}},"transformConcatenation"),hFn=hRe(e=>{if(e.includes("*")){const[t,n]=e.split("*");return{min:t?parseInt(t,10):0,max:n?parseInt(n,10):1/0}}const t=parseInt(e,10);return{min:t,max:t}},"parseRepeat"),dFn=hRe(e=>{const t=pFn(e.primary);if(!e.repeat)return t;const{min:n,max:r}=hFn(e.repeat);return 0===n&&1===r?{type:"optional",element:t}:{type:"repetition",element:t,min:n,max:r}},"transformElement"),pFn=hRe(e=>{switch(e.$type){case"AbnfStringLiteral":case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return cFn(e.element);case"AbnfOptionalGroup":return{type:"optional",element:cFn(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),fFn=hRe(e=>({name:e.name,definition:cFn(e.definition)}),"transformRule"),gFn=hRe(e=>{qzt(e,$Xn),e.title&&$Xn.setTitle(e.title),e.rules.map(e=>$Xn.addRule(fFn(e)))},"populateDb"),mFn={parser:{parse:hRe(e=>{$Xn.clear(),ORe.debug("[ABNF Parser] Starting Langium parse");const t=lFn.parse(e);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new mbn(t);const n=t.value;ORe.debug("[ABNF Parser] Parsed rules:",n.rules.length),gFn(n),ORe.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:$Xn}},db:$Xn,renderer:VXn,styles:FXn};const OFn=Object.freeze(Object.defineProperty({__proto__:null,diagram:mFn},Symbol.toStringTag,{value:"Module"}));var AFn=xvn().RailroadPeg.parser.LangiumParser,yFn=hRe(e=>{const t=e.alternatives.map(vFn);return 1===t.length?t[0]:{type:"choice",alternatives:t}},"transformOrderedChoice"),vFn=hRe(e=>{const t=e.elements.map(bFn);return 1===t.length?t[0]:{type:"sequence",elements:t}},"transformSequence"),bFn=hRe(e=>{const t=wFn(e.suffix);if(!e.operator)return t;return{type:"special",text:"&"===e.operator?`&${xFn(t)}`:`!${xFn(t)}`}},"transformPrefix"),xFn=hRe(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),wFn=hRe(e=>{const t=kFn(e.primary);if(!e.operator)return t;switch(e.operator){case"?":return{type:"optional",element:t};case"*":return{type:"repetition",element:t,min:0,max:1/0};case"+":return{type:"repetition",element:t,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),kFn=hRe(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return yFn(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),SFn=hRe(e=>({name:e.name,definition:yFn(e.definition)}),"transformRule"),TFn=hRe(e=>{qzt(e,$Xn),e.title&&$Xn.setTitle(e.title),e.rules.map(e=>$Xn.addRule(SFn(e)))},"populateDb"),$Fn={parser:{parse:hRe(e=>{$Xn.clear(),ORe.debug("[PEG Parser] Starting Langium parse");const t=AFn.parse(e);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new mbn(t);const n=t.value;ORe.debug("[PEG Parser] Parsed rules:",n.rules.length),TFn(n),ORe.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:$Xn}},db:$Xn,renderer:VXn,styles:FXn};const _Fn=Object.freeze(Object.defineProperty({__proto__:null,diagram:$Fn},Symbol.toStringTag,{value:"Module"}));function CFn(e){return new fot(Qat.define(e))}function QFn(e){return Pf(()=>Promise.resolve().then(()=>$zn),void 0,import.meta.url).then(t=>t.sql({dialect:t[e]}))}const PFn=[got.of({name:"C",extensions:["c","h","ino"],load:()=>Pf(()=>Promise.resolve().then(()=>Dzn),void 0,import.meta.url).then(e=>e.cpp())}),got.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load:()=>Pf(()=>Promise.resolve().then(()=>Dzn),void 0,import.meta.url).then(e=>e.cpp())}),got.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load:()=>QFn("Cassandra")}),got.of({name:"CSS",extensions:["css"],load:()=>Pf(()=>Promise.resolve().then(()=>mqn),void 0,import.meta.url).then(e=>e.css())}),got.of({name:"Go",extensions:["go"],load:()=>Pf(()=>Promise.resolve().then(()=>Iqn),void 0,import.meta.url).then(e=>e.go())}),got.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load:()=>Pf(()=>Promise.resolve().then(()=>wWn),void 0,import.meta.url).then(e=>e.html())}),got.of({name:"Java",extensions:["java"],load:()=>Pf(()=>Promise.resolve().then(()=>_Wn),void 0,import.meta.url).then(e=>e.java())}),got.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load:()=>Pf(()=>Promise.resolve().then(()=>YVn),void 0,import.meta.url).then(e=>e.javascript())}),got.of({name:"Jinja",extensions:["j2","jinja","jinja2"],load:()=>Pf(()=>Promise.resolve().then(()=>ZWn),void 0,import.meta.url).then(e=>e.jinja())}),got.of({name:"JSON",alias:["json5"],extensions:["json","map"],load:()=>Pf(()=>Promise.resolve().then(()=>JWn),void 0,import.meta.url).then(e=>e.json())}),got.of({name:"JSX",extensions:["jsx"],load:()=>Pf(()=>Promise.resolve().then(()=>YVn),void 0,import.meta.url).then(e=>e.javascript({jsx:!0}))}),got.of({name:"LESS",extensions:["less"],load:()=>Pf(()=>Promise.resolve().then(()=>hjn),void 0,import.meta.url).then(e=>e.less())}),got.of({name:"Liquid",extensions:["liquid"],load:()=>Pf(()=>Promise.resolve().then(()=>Bjn),void 0,import.meta.url).then(e=>e.liquid())}),got.of({name:"MariaDB SQL",load:()=>QFn("MariaSQL")}),got.of({name:"Markdown",extensions:["md","markdown","mkd"],load:()=>Pf(()=>Promise.resolve().then(()=>MZn),void 0,import.meta.url).then(e=>e.markdown())}),got.of({name:"MS SQL",load:()=>QFn("MSSQL")}),got.of({name:"MySQL",load:()=>QFn("MySQL")}),got.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load:()=>Pf(()=>Promise.resolve().then(()=>tGn),void 0,import.meta.url).then(e=>e.php())}),got.of({name:"PLSQL",extensions:["pls"],load:()=>QFn("PLSQL")}),got.of({name:"PostgreSQL",load:()=>QFn("PostgreSQL")}),got.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load:()=>Pf(()=>Promise.resolve().then(()=>DGn),void 0,import.meta.url).then(e=>e.python())}),got.of({name:"Rust",extensions:["rs"],load:()=>Pf(()=>Promise.resolve().then(()=>jGn),void 0,import.meta.url).then(e=>e.rust())}),got.of({name:"Sass",extensions:["sass"],load:()=>Pf(()=>Promise.resolve().then(()=>AHn),void 0,import.meta.url).then(e=>e.sass({indented:!0}))}),got.of({name:"SCSS",extensions:["scss"],load:()=>Pf(()=>Promise.resolve().then(()=>AHn),void 0,import.meta.url).then(e=>e.sass())}),got.of({name:"SQL",extensions:["sql"],load:()=>QFn("StandardSQL")}),got.of({name:"SQLite",load:()=>QFn("SQLite")}),got.of({name:"TSX",extensions:["tsx"],load:()=>Pf(()=>Promise.resolve().then(()=>YVn),void 0,import.meta.url).then(e=>e.javascript({jsx:!0,typescript:!0}))}),got.of({name:"TypeScript",alias:["ts"],extensions:["ts","mts","cts"],load:()=>Pf(()=>Promise.resolve().then(()=>YVn),void 0,import.meta.url).then(e=>e.javascript({typescript:!0}))}),got.of({name:"WebAssembly",extensions:["wat","wast"],load:()=>Pf(()=>Promise.resolve().then(()=>xHn),void 0,import.meta.url).then(e=>e.wast())}),got.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load:()=>Pf(()=>Promise.resolve().then(()=>ZHn),void 0,import.meta.url).then(e=>e.xml())}),got.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load:()=>Pf(()=>Promise.resolve().then(()=>kKn),void 0,import.meta.url).then(e=>e.yaml())}),got.of({name:"APL",extensions:["dyalog","apl"],load:()=>Pf(()=>Promise.resolve().then(()=>EKn),void 0,import.meta.url).then(e=>CFn(e.apl))}),got.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load:()=>Pf(()=>Promise.resolve().then(()=>IKn),void 0,import.meta.url).then(e=>CFn(e.asciiArmor))}),got.of({name:"ASN.1",extensions:["asn","asn1"],load:()=>Pf(()=>Promise.resolve().then(()=>MKn),void 0,import.meta.url).then(e=>CFn(e.asn1({})))}),got.of({name:"Asterisk",filename:/^extensions\.conf$/i,load:()=>Pf(()=>Promise.resolve().then(()=>zKn),void 0,import.meta.url).then(e=>CFn(e.asterisk))}),got.of({name:"Brainfuck",extensions:["b","bf"],load:()=>Pf(()=>Promise.resolve().then(()=>WKn),void 0,import.meta.url).then(e=>CFn(e.brainfuck))}),got.of({name:"Cobol",extensions:["cob","cpy"],load:()=>Pf(()=>Promise.resolve().then(()=>tJn),void 0,import.meta.url).then(e=>CFn(e.cobol))}),got.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load:()=>Pf(()=>Promise.resolve().then(()=>GJn),void 0,import.meta.url).then(e=>CFn(e.csharp))}),got.of({name:"Clojure",extensions:["clj","cljc","cljx"],load:()=>Pf(()=>Promise.resolve().then(()=>f0n),void 0,import.meta.url).then(e=>CFn(e.clojure))}),got.of({name:"ClojureScript",extensions:["cljs"],load:()=>Pf(()=>Promise.resolve().then(()=>f0n),void 0,import.meta.url).then(e=>CFn(e.clojure))}),got.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load:()=>Pf(()=>Promise.resolve().then(()=>q0n),void 0,import.meta.url).then(e=>CFn(e.gss))}),got.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load:()=>Pf(()=>Promise.resolve().then(()=>Y0n),void 0,import.meta.url).then(e=>CFn(e.cmake))}),got.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load:()=>Pf(()=>Promise.resolve().then(()=>p1n),void 0,import.meta.url).then(e=>CFn(e.coffeeScript))}),got.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load:()=>Pf(()=>Promise.resolve().then(()=>k1n),void 0,import.meta.url).then(e=>CFn(e.commonLisp))}),got.of({name:"Cypher",extensions:["cyp","cypher"],load:()=>Pf(()=>Promise.resolve().then(()=>L1n),void 0,import.meta.url).then(e=>CFn(e.cypher))}),got.of({name:"Cython",extensions:["pyx","pxd","pxi"],load:()=>Pf(()=>Promise.resolve().then(()=>W1n),void 0,import.meta.url).then(e=>CFn(e.cython))}),got.of({name:"Crystal",extensions:["cr"],load:()=>Pf(()=>Promise.resolve().then(()=>A2n),void 0,import.meta.url).then(e=>CFn(e.crystal))}),got.of({name:"D",extensions:["d"],load:()=>Pf(()=>Promise.resolve().then(()=>M2n),void 0,import.meta.url).then(e=>CFn(e.d))}),got.of({name:"Dart",extensions:["dart"],load:()=>Pf(()=>Promise.resolve().then(()=>GJn),void 0,import.meta.url).then(e=>CFn(e.dart))}),got.of({name:"diff",extensions:["diff","patch"],load:()=>Pf(()=>Promise.resolve().then(()=>F2n),void 0,import.meta.url).then(e=>CFn(e.diff))}),got.of({name:"Dockerfile",filename:/^Dockerfile$/,load:()=>Pf(()=>Promise.resolve().then(()=>t5n),void 0,import.meta.url).then(e=>CFn(e.dockerFile))}),got.of({name:"DTD",extensions:["dtd"],load:()=>Pf(()=>Promise.resolve().then(()=>s5n),void 0,import.meta.url).then(e=>CFn(e.dtd))}),got.of({name:"Dylan",extensions:["dylan","dyl","intr"],load:()=>Pf(()=>Promise.resolve().then(()=>k5n),void 0,import.meta.url).then(e=>CFn(e.dylan))}),got.of({name:"EBNF",load:()=>Pf(()=>Promise.resolve().then(()=>P5n),void 0,import.meta.url).then(e=>CFn(e.ebnf))}),got.of({name:"ECL",extensions:["ecl"],load:()=>Pf(()=>Promise.resolve().then(()=>Z5n),void 0,import.meta.url).then(e=>CFn(e.ecl))}),got.of({name:"edn",extensions:["edn"],load:()=>Pf(()=>Promise.resolve().then(()=>f0n),void 0,import.meta.url).then(e=>CFn(e.clojure))}),got.of({name:"Eiffel",extensions:["e"],load:()=>Pf(()=>Promise.resolve().then(()=>t4n),void 0,import.meta.url).then(e=>CFn(e.eiffel))}),got.of({name:"Elm",extensions:["elm"],load:()=>Pf(()=>Promise.resolve().then(()=>y4n),void 0,import.meta.url).then(e=>CFn(e.elm))}),got.of({name:"Erlang",extensions:["erl"],load:()=>Pf(()=>Promise.resolve().then(()=>G4n),void 0,import.meta.url).then(e=>CFn(e.erlang))}),got.of({name:"Esper",load:()=>Pf(()=>Promise.resolve().then(()=>O3n),void 0,import.meta.url).then(e=>CFn(e.esper))}),got.of({name:"Factor",extensions:["factor"],load:()=>Pf(()=>Promise.resolve().then(()=>y3n),void 0,import.meta.url).then(e=>CFn(e.factor))}),got.of({name:"FCL",load:()=>Pf(()=>Promise.resolve().then(()=>C3n),void 0,import.meta.url).then(e=>CFn(e.fcl))}),got.of({name:"Forth",extensions:["forth","fth","4th"],load:()=>Pf(()=>Promise.resolve().then(()=>I3n),void 0,import.meta.url).then(e=>CFn(e.forth))}),got.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load:()=>Pf(()=>Promise.resolve().then(()=>q3n),void 0,import.meta.url).then(e=>CFn(e.fortran))}),got.of({name:"F#",alias:["fsharp"],extensions:["fs"],load:()=>Pf(()=>Promise.resolve().then(()=>Z3n),void 0,import.meta.url).then(e=>CFn(e.fSharp))}),got.of({name:"Gas",extensions:["s"],load:()=>Pf(()=>Promise.resolve().then(()=>J3n),void 0,import.meta.url).then(e=>CFn(e.gas))}),got.of({name:"Gherkin",extensions:["feature"],load:()=>Pf(()=>Promise.resolve().then(()=>e6n),void 0,import.meta.url).then(e=>CFn(e.gherkin))}),got.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load:()=>Pf(()=>Promise.resolve().then(()=>O6n),void 0,import.meta.url).then(e=>CFn(e.groovy))}),got.of({name:"Haskell",extensions:["hs"],load:()=>Pf(()=>Promise.resolve().then(()=>B6n),void 0,import.meta.url).then(e=>CFn(e.haskell))}),got.of({name:"Haxe",extensions:["hx"],load:()=>Pf(()=>Promise.resolve().then(()=>D7n),void 0,import.meta.url).then(e=>CFn(e.haxe))}),got.of({name:"HXML",extensions:["hxml"],load:()=>Pf(()=>Promise.resolve().then(()=>D7n),void 0,import.meta.url).then(e=>CFn(e.hxml))}),got.of({name:"HTTP",load:()=>Pf(()=>Promise.resolve().then(()=>j7n),void 0,import.meta.url).then(e=>CFn(e.http))}),got.of({name:"IDL",extensions:["pro"],load:()=>Pf(()=>Promise.resolve().then(()=>r8n),void 0,import.meta.url).then(e=>CFn(e.idl))}),got.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load:()=>Pf(()=>Promise.resolve().then(()=>c8n),void 0,import.meta.url).then(e=>CFn(e.jsonld))}),got.of({name:"Julia",extensions:["jl"],load:()=>Pf(()=>Promise.resolve().then(()=>B8n),void 0,import.meta.url).then(e=>CFn(e.julia))}),got.of({name:"Kotlin",extensions:["kt","kts"],load:()=>Pf(()=>Promise.resolve().then(()=>GJn),void 0,import.meta.url).then(e=>CFn(e.kotlin))}),got.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load:()=>Pf(()=>Promise.resolve().then(()=>j8n),void 0,import.meta.url).then(e=>CFn(e.liveScript))}),got.of({name:"Lua",extensions:["lua"],load:()=>Pf(()=>Promise.resolve().then(()=>i9n),void 0,import.meta.url).then(e=>CFn(e.lua))}),got.of({name:"mIRC",extensions:["mrc"],load:()=>Pf(()=>Promise.resolve().then(()=>g9n),void 0,import.meta.url).then(e=>CFn(e.mirc))}),got.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load:()=>Pf(()=>Promise.resolve().then(()=>T9n),void 0,import.meta.url).then(e=>CFn(e.mathematica))}),got.of({name:"Modelica",extensions:["mo"],load:()=>Pf(()=>Promise.resolve().then(()=>z9n),void 0,import.meta.url).then(e=>CFn(e.modelica))}),got.of({name:"MUMPS",extensions:["mps"],load:()=>Pf(()=>Promise.resolve().then(()=>J9n),void 0,import.meta.url).then(e=>CFn(e.mumps))}),got.of({name:"Mbox",extensions:["mbox"],load:()=>Pf(()=>Promise.resolve().then(()=>der),void 0,import.meta.url).then(e=>CFn(e.mbox))}),got.of({name:"Nginx",filename:/nginx.*\.conf$/i,load:()=>Pf(()=>Promise.resolve().then(()=>wer),void 0,import.meta.url).then(e=>CFn(e.nginx))}),got.of({name:"NSIS",extensions:["nsh","nsi"],load:()=>Pf(()=>Promise.resolve().then(()=>Ser),void 0,import.meta.url).then(e=>CFn(e.nsis))}),got.of({name:"NTriples",extensions:["nt","nq"],load:()=>Pf(()=>Promise.resolve().then(()=>Fer),void 0,import.meta.url).then(e=>CFn(e.ntriples))}),got.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load:()=>Pf(()=>Promise.resolve().then(()=>GJn),void 0,import.meta.url).then(e=>CFn(e.objectiveC))}),got.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load:()=>Pf(()=>Promise.resolve().then(()=>GJn),void 0,import.meta.url).then(e=>CFn(e.objectiveCpp))}),got.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load:()=>Pf(()=>Promise.resolve().then(()=>Z3n),void 0,import.meta.url).then(e=>CFn(e.oCaml))}),got.of({name:"Octave",extensions:["m"],load:()=>Pf(()=>Promise.resolve().then(()=>ntr),void 0,import.meta.url).then(e=>CFn(e.octave))}),got.of({name:"Oz",extensions:["oz"],load:()=>Pf(()=>Promise.resolve().then(()=>btr),void 0,import.meta.url).then(e=>CFn(e.oz))}),got.of({name:"Pascal",extensions:["p","pas"],load:()=>Pf(()=>Promise.resolve().then(()=>Ctr),void 0,import.meta.url).then(e=>CFn(e.pascal))}),got.of({name:"Perl",extensions:["pl","pm"],load:()=>Pf(()=>Promise.resolve().then(()=>Ftr),void 0,import.meta.url).then(e=>CFn(e.perl))}),got.of({name:"Pig",extensions:["pig"],load:()=>Pf(()=>Promise.resolve().then(()=>enr),void 0,import.meta.url).then(e=>CFn(e.pig))}),got.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load:()=>Pf(()=>Promise.resolve().then(()=>bnr),void 0,import.meta.url).then(e=>CFn(e.powerShell))}),got.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load:()=>Pf(()=>Promise.resolve().then(()=>xnr),void 0,import.meta.url).then(e=>CFn(e.properties))}),got.of({name:"ProtoBuf",extensions:["proto"],load:()=>Pf(()=>Promise.resolve().then(()=>$nr),void 0,import.meta.url).then(e=>CFn(e.protobuf))}),got.of({name:"Pug",alias:["jade"],extensions:["pug","jade"],load:()=>Pf(()=>Promise.resolve().then(()=>Lnr),void 0,import.meta.url).then(e=>CFn(e.pug))}),got.of({name:"Puppet",extensions:["pp"],load:()=>Pf(()=>Promise.resolve().then(()=>Unr),void 0,import.meta.url).then(e=>CFn(e.puppet))}),got.of({name:"Q",extensions:["q"],load:()=>Pf(()=>Promise.resolve().then(()=>err),void 0,import.meta.url).then(e=>CFn(e.q))}),got.of({name:"R",alias:["rscript"],extensions:["r","R"],load:()=>Pf(()=>Promise.resolve().then(()=>mrr),void 0,import.meta.url).then(e=>CFn(e.r))}),got.of({name:"RPM Changes",load:()=>Pf(()=>Promise.resolve().then(()=>_rr),void 0,import.meta.url).then(e=>CFn(e.rpmChanges))}),got.of({name:"RPM Spec",extensions:["spec"],load:()=>Pf(()=>Promise.resolve().then(()=>_rr),void 0,import.meta.url).then(e=>CFn(e.rpmSpec))}),got.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],filename:/^(Gemfile|Rakefile)$/,load:()=>Pf(()=>Promise.resolve().then(()=>qrr),void 0,import.meta.url).then(e=>CFn(e.ruby))}),got.of({name:"SAS",extensions:["sas"],load:()=>Pf(()=>Promise.resolve().then(()=>Hrr),void 0,import.meta.url).then(e=>CFn(e.sas))}),got.of({name:"Scala",extensions:["scala"],load:()=>Pf(()=>Promise.resolve().then(()=>GJn),void 0,import.meta.url).then(e=>CFn(e.scala))}),got.of({name:"Scheme",extensions:["scm","ss"],load:()=>Pf(()=>Promise.resolve().then(()=>yir),void 0,import.meta.url).then(e=>CFn(e.scheme))}),got.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load:()=>Pf(()=>Promise.resolve().then(()=>Pir),void 0,import.meta.url).then(e=>CFn(e.shell))}),got.of({name:"Sieve",extensions:["siv","sieve"],load:()=>Pf(()=>Promise.resolve().then(()=>Nir),void 0,import.meta.url).then(e=>CFn(e.sieve))}),got.of({name:"Smalltalk",extensions:["st"],load:()=>Pf(()=>Promise.resolve().then(()=>Hir),void 0,import.meta.url).then(e=>CFn(e.smalltalk))}),got.of({name:"Solr",load:()=>Pf(()=>Promise.resolve().then(()=>ior),void 0,import.meta.url).then(e=>CFn(e.solr))}),got.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load:()=>Pf(()=>Promise.resolve().then(()=>Z3n),void 0,import.meta.url).then(e=>CFn(e.sml))}),got.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load:()=>Pf(()=>Promise.resolve().then(()=>yor),void 0,import.meta.url).then(e=>CFn(e.sparql))}),got.of({name:"Spreadsheet",alias:["excel","formula"],load:()=>Pf(()=>Promise.resolve().then(()=>vor),void 0,import.meta.url).then(e=>CFn(e.spreadsheet))}),got.of({name:"Squirrel",extensions:["nut"],load:()=>Pf(()=>Promise.resolve().then(()=>GJn),void 0,import.meta.url).then(e=>CFn(e.squirrel))}),got.of({name:"Stylus",extensions:["styl"],load:()=>Pf(()=>Promise.resolve().then(()=>Sar),void 0,import.meta.url).then(e=>CFn(e.stylus))}),got.of({name:"Swift",extensions:["swift"],load:()=>Pf(()=>Promise.resolve().then(()=>jar),void 0,import.meta.url).then(e=>CFn(e.swift))}),got.of({name:"sTeX",load:()=>Pf(()=>Promise.resolve().then(()=>Har),void 0,import.meta.url).then(e=>CFn(e.stex))}),got.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load:()=>Pf(()=>Promise.resolve().then(()=>Har),void 0,import.meta.url).then(e=>CFn(e.stex))}),got.of({name:"SystemVerilog",extensions:["v","sv","svh"],load:()=>Pf(()=>Promise.resolve().then(()=>asr),void 0,import.meta.url).then(e=>CFn(e.verilog))}),got.of({name:"Tcl",extensions:["tcl"],load:()=>Pf(()=>Promise.resolve().then(()=>msr),void 0,import.meta.url).then(e=>CFn(e.tcl))}),got.of({name:"Textile",extensions:["textile"],load:()=>Pf(()=>Promise.resolve().then(()=>Tsr),void 0,import.meta.url).then(e=>CFn(e.textile))}),got.of({name:"TiddlyWiki",load:()=>Pf(()=>Promise.resolve().then(()=>Hsr),void 0,import.meta.url).then(e=>CFn(e.tiddlyWiki))}),got.of({name:"Tiki wiki",load:()=>Pf(()=>Promise.resolve().then(()=>glr),void 0,import.meta.url).then(e=>CFn(e.tiki))}),got.of({name:"TOML",extensions:["toml"],load:()=>Pf(()=>Promise.resolve().then(()=>mlr),void 0,import.meta.url).then(e=>CFn(e.toml))}),got.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load:()=>Pf(()=>Promise.resolve().then(()=>blr),void 0,import.meta.url).then(e=>CFn(e.troff))}),got.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load:()=>Pf(()=>Promise.resolve().then(()=>Zlr),void 0,import.meta.url).then(e=>CFn(e.ttcn))}),got.of({name:"TTCN_CFG",extensions:["cfg"],load:()=>Pf(()=>Promise.resolve().then(()=>ccr),void 0,import.meta.url).then(e=>CFn(e.ttcnCfg))}),got.of({name:"Turtle",extensions:["ttl"],load:()=>Pf(()=>Promise.resolve().then(()=>Acr),void 0,import.meta.url).then(e=>CFn(e.turtle))}),got.of({name:"Web IDL",extensions:["webidl"],load:()=>Pf(()=>Promise.resolve().then(()=>Xcr),void 0,import.meta.url).then(e=>CFn(e.webIDL))}),got.of({name:"VB.NET",extensions:["vb"],load:()=>Pf(()=>Promise.resolve().then(()=>pur),void 0,import.meta.url).then(e=>CFn(e.vb))}),got.of({name:"VBScript",extensions:["vbs"],load:()=>Pf(()=>Promise.resolve().then(()=>Our),void 0,import.meta.url).then(e=>CFn(e.vbScript))}),got.of({name:"Velocity",extensions:["vtl"],load:()=>Pf(()=>Promise.resolve().then(()=>Cur),void 0,import.meta.url).then(e=>CFn(e.velocity))}),got.of({name:"Verilog",extensions:["v"],load:()=>Pf(()=>Promise.resolve().then(()=>asr),void 0,import.meta.url).then(e=>CFn(e.verilog))}),got.of({name:"VHDL",extensions:["vhd","vhdl"],load:()=>Pf(()=>Promise.resolve().then(()=>zur),void 0,import.meta.url).then(e=>CFn(e.vhdl))}),got.of({name:"XQuery",extensions:["xy","xquery","xq","xqm","xqy"],load:()=>Pf(()=>Promise.resolve().then(()=>ahr),void 0,import.meta.url).then(e=>CFn(e.xQuery))}),got.of({name:"Yacas",extensions:["ys"],load:()=>Pf(()=>Promise.resolve().then(()=>Ahr),void 0,import.meta.url).then(e=>CFn(e.yacas))}),got.of({name:"Z80",extensions:["z80"],load:()=>Pf(()=>Promise.resolve().then(()=>xhr),void 0,import.meta.url).then(e=>CFn(e.z80))}),got.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load:()=>Pf(()=>Promise.resolve().then(()=>Phr),void 0,import.meta.url).then(e=>CFn(e.mscgen))}),got.of({name:"Xù",extensions:["xu"],load:()=>Pf(()=>Promise.resolve().then(()=>Phr),void 0,import.meta.url).then(e=>CFn(e.xu))}),got.of({name:"MsGenny",extensions:["msgenny"],load:()=>Pf(()=>Promise.resolve().then(()=>Phr),void 0,import.meta.url).then(e=>CFn(e.msgenny))}),got.of({name:"Vue",extensions:["vue"],load:()=>Pf(()=>Promise.resolve().then(()=>Uhr),void 0,import.meta.url).then(e=>e.vue())}),got.of({name:"Angular Template",load:()=>Pf(()=>Promise.resolve().then(()=>adr),void 0,import.meta.url).then(e=>e.angular())})],EFn=Object.freeze(Object.defineProperty({__proto__:null,languages:PFn},Symbol.toStringTag,{value:"Module"})),RFn="#e06c75",BFn="#abb2bf",IFn="#7d8799",LFn="#d19a66",DFn="#2c313a",MFn="#282c34",NFn="#353a42",XFn="#528bff",FFn=vtt.theme({"&":{color:BFn,backgroundColor:MFn},".cm-content":{caretColor:XFn},".cm-cursor, .cm-dropCursor":{borderLeftColor:XFn},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"#3E4451"},".cm-panels":{backgroundColor:"#21252b",color:BFn},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:MFn,color:IFn,border:"none"},".cm-activeLineGutter":{backgroundColor:DFn},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:NFn},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:NFn,borderBottomColor:NFn},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:DFn,color:BFn}}},{dark:!0}),UFn=iat.define([{tag:Git.keyword,color:"#c678dd"},{tag:[Git.name,Git.deleted,Git.character,Git.propertyName,Git.macroName],color:RFn},{tag:[Git.function(Git.variableName),Git.labelName],color:"#61afef"},{tag:[Git.color,Git.constant(Git.name),Git.standard(Git.name)],color:LFn},{tag:[Git.definition(Git.name),Git.separator],color:BFn},{tag:[Git.typeName,Git.className,Git.number,Git.changed,Git.annotation,Git.modifier,Git.self,Git.namespace],color:"#e5c07b"},{tag:[Git.operator,Git.operatorKeyword,Git.url,Git.escape,Git.regexp,Git.link,Git.special(Git.string)],color:"#56b6c2"},{tag:[Git.meta,Git.comment],color:IFn},{tag:Git.strong,fontWeight:"bold"},{tag:Git.emphasis,fontStyle:"italic"},{tag:Git.strikethrough,textDecoration:"line-through"},{tag:Git.link,color:IFn,textDecoration:"underline"},{tag:Git.heading,fontWeight:"bold",color:RFn},{tag:[Git.atom,Git.bool,Git.special(Git.variableName)],color:LFn},{tag:[Git.processingInstruction,Git.string,Git.inserted],color:"#98c379"},{tag:Git.invalid,color:"#ffffff"}]),zFn=[FFn,lat(UFn)],qFn=Object.freeze(Object.defineProperty({__proto__:null,oneDark:zFn,oneDarkHighlightStyle:UFn,oneDarkTheme:FFn},Symbol.toStringTag,{value:"Module"})),VFn=Object.freeze(Object.defineProperty({__proto__:null,InfoModule:Xvn,createInfoServices:Fvn},Symbol.toStringTag,{value:"Module"})),WFn=Object.freeze(Object.defineProperty({__proto__:null,PacketModule:zvn,createPacketServices:qvn},Symbol.toStringTag,{value:"Module"})),jFn=Object.freeze(Object.defineProperty({__proto__:null,PieModule:jvn,createPieServices:Yvn},Symbol.toStringTag,{value:"Module"})),YFn=Object.freeze(Object.defineProperty({__proto__:null,TreeViewModule:Hvn,createTreeViewServices:Kvn},Symbol.toStringTag,{value:"Module"})),ZFn=Object.freeze(Object.defineProperty({__proto__:null,ArchitectureModule:tbn,createArchitectureServices:nbn},Symbol.toStringTag,{value:"Module"})),GFn=Object.freeze(Object.defineProperty({__proto__:null,GitGraphModule:Dvn,createGitGraphServices:Mvn},Symbol.toStringTag,{value:"Module"})),HFn=Object.freeze(Object.defineProperty({__proto__:null,EventModelingModule:hbn,createEventModelingServices:dbn},Symbol.toStringTag,{value:"Module"})),KFn=Object.freeze(Object.defineProperty({__proto__:null,RadarModule:nvn,createRadarServices:rvn},Symbol.toStringTag,{value:"Module"})),JFn=Object.freeze(Object.defineProperty({__proto__:null,RailroadModule:svn,createRailroadServices:lvn},Symbol.toStringTag,{value:"Module"})),eUn=Object.freeze(Object.defineProperty({__proto__:null,RailroadEbnfModule:dvn,createRailroadEbnfServices:pvn},Symbol.toStringTag,{value:"Module"})),tUn=Object.freeze(Object.defineProperty({__proto__:null,RailroadAbnfModule:mvn,createRailroadAbnfServices:Ovn},Symbol.toStringTag,{value:"Module"})),nUn=Object.freeze(Object.defineProperty({__proto__:null,RailroadPegModule:bvn,createRailroadPegServices:xvn},Symbol.toStringTag,{value:"Module"})),rUn=Object.freeze(Object.defineProperty({__proto__:null,TreemapModule:_vn,createTreemapServices:Cvn},Symbol.toStringTag,{value:"Module"})),iUn=Object.freeze(Object.defineProperty({__proto__:null,WardleyModule:Pvn,createWardleyServices:Evn},Symbol.toStringTag,{value:"Module"})),oUn=Object.freeze(Object.defineProperty({__proto__:null,CynefinModule:Bvn,createCynefinServices:Ivn},Symbol.toStringTag,{value:"Module"}));var aUn={};class sUn{constructor(e,t,n,r,i,o,a,s,l,c=0,u){this.p=e,this.stack=t,this.state=n,this.reducePos=r,this.pos=i,this.score=o,this.buffer=a,this.bufferBase=s,this.curContext=l,this.lookAhead=c,this.parent=u}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let r=e.parser.context;return new sUn(e,[],t,n,n,0,[],0,r?new lUn(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,r=65535&e,{parser:i}=this.p,o=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),a=i.dynamicPrecedence(r);if(a&&(this.score+=a),0==n)return r<i.minRepeatTerm&&this.reducePos<this.pos&&(this.reducePos=this.pos),this.pushState(i.getGoto(this.state,r,!0),this.reducePos),r<i.minRepeatTerm&&this.storeNode(r,this.reducePos,this.reducePos,o?8:4,!0),void this.reduceContext(r,this.reducePos);let s=this.stack.length-3*(n-1)-(262144&e?6:0),l=s?this.stack[s-2]:this.p.ranges[0].from;r<i.minRepeatTerm&&l==this.reducePos&&this.reducePos<this.pos&&(this.reducePos=this.pos);let c=this.reducePos-l;c>=2e3&&!(null===(t=this.p.parser.nodeSet.types[r])||void 0===t?void 0:t.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSize<c&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=l,this.p.lastBigReductionSize=c));let u=s?this.stack[s-1]:0,h=this.bufferBase+this.buffer.length-u;if(r<i.minRepeatTerm||131072&e){let e=i.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(r,l,e,h+4,!0)}if(262144&e)this.state=this.stack[s];else{let e=this.stack[s-3];this.state=i.getGoto(e,r,!0)}for(;this.stack.length>s;)this.stack.pop();this.reduceContext(r,l)}storeNode(e,t,n,r=4,i=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let e=this.buffer.length;if(e>0&&0==this.buffer[e-4]&&this.buffer[e-1]>-1){if(t==n)return;if(this.buffer[e-2]>=t)return void(this.buffer[e-2]=n)}}if(i&&this.pos!=n){let i=this.buffer.length;if(i>0&&(0!=this.buffer[i-4]||this.buffer[i-1]<0)){let e=!1;for(let t=i;t>0&&this.buffer[t-2]>n;t-=4)if(this.buffer[t-1]>=0){e=!0;break}if(e)for(;i>0&&this.buffer[i-2]>n;)this.buffer[i]=this.buffer[i-4],this.buffer[i+1]=this.buffer[i-3],this.buffer[i+2]=this.buffer[i-2],this.buffer[i+3]=this.buffer[i-1],i-=4,r>4&&(r-=4)}this.buffer[i]=e,this.buffer[i+1]=t,this.buffer[i+2]=n,this.buffer[i+3]=r}else this.buffer.push(e,t,n,r)}shift(e,t,n,r){if(131072&e)this.pushState(65535&e,this.pos);else if(262144&e)this.pos=r,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,r,4);else{let i=e,{parser:o}=this.p;this.pos=r;let a=o.stateFlag(i,1);!a&&(r>n||t<=o.maxNode)&&(this.reducePos=r),this.pushState(i,a?n:Math.min(n,this.reducePos)),this.shiftContext(t,n),t<=o.maxNode&&this.buffer.push(t,n,r,4)}}apply(e,t,n,r){65536&e?this.reduce(e):this.shift(e,t,n,r)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let r=this.pos;this.reducePos=this.pos=r+e.length,this.pushState(t,r),this.buffer.push(n,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(t&&0==e.buffer[t-4]&&(t-=4);t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),r=e.bufferBase+t;for(;e&&r==e.bufferBase;)e=e.parent;return new sUn(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,r,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new cUn(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==n)return!1;if(!(65536&n))return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let r,i=0;i<t.length;i+=2)(r=t[i+1])!=this.state&&this.p.parser.hasAction(r,e)&&n.push(t[i],r);if(this.stack.length<120)for(let e=0;n.length<8&&e<t.length;e+=2){let r=t[e+1];n.some((e,t)=>1&t&&e==r)||n.push(t[e],r)}t=n}let n=[];for(let r=0;r<t.length&&n.length<4;r+=2){let e=t[r+1];if(e==this.state)continue;let i=this.split();i.pushState(e,this.pos),i.storeNode(0,i.pos,i.pos,4,!0),i.shiftContext(t[r],this.pos),i.reducePos=this.pos,i.score-=200,n.push(i)}return n}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if(!(65536&t))return!1;if(!e.validAction(this.state,t)){let n=t>>19,r=65535&t,i=this.stack.length-3*n;if(i<0||e.getGoto(this.stack[i],r,!1)<0){let e=this.findForcedReduction();if(null==e)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(r,i)=>{if(!t.includes(r))return t.push(r),e.allActions(r,t=>{if(393216&t);else if(65536&t){let n=(t>>19)-i;if(n>1){let r=65535&t,i=this.stack.length-3*n;if(i>=0&&e.getGoto(this.stack[i],r,!1)>=0)return n<<19|65536|r}}else{let e=n(t,i+1);if(null!=e)return e}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||-3!=this.buffer[e])&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||-4!=this.buffer[e])&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new lUn(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){return!(e<=this.lookAhead)&&(this.emitLookAhead(),this.lookAhead=e,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class lUn{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class cUn{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=65535&e,n=e>>19;0==n?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(n-1);let r=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=r}}class uUn{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new uUn(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new uUn(this.stack,this.pos,this.index)}}function hUn(e,t=Uint16Array){if("string"!=typeof e)return e;let n=null;for(let r=0,i=0;r<e.length;){let o=0;for(;;){let t=e.charCodeAt(r++),n=!1;if(126==t){o=65535;break}t>=92&&t--,t>=34&&t--;let i=t-32;if(i>=46&&(i-=46,n=!0),o+=i,n)break;o*=46}n?n[i++]=o:n=new t(o)}return n}class dUn{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const pUn=new dUn;class fUn{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=pUn,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,r=this.rangeIndex,i=this.pos+e;for(;i<n.from;){if(!r)return null;let e=this.ranges[--r];i-=n.from-e.to,n=e}for(;t<0?i>n.to:i>=n.to;){if(r==this.ranges.length-1)return null;let e=this.ranges[++r];i+=e.from-n.to,n=e}return i}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t,n,r=this.chunkOff+e;if(r>=0&&r<this.chunk.length)t=this.pos+e,n=this.chunk.charCodeAt(r);else{let r=this.resolveOffset(e,1);if(null==r)return-1;if(t=r,t>=this.chunk2Pos&&t<this.chunk2Pos+this.chunk2.length)n=this.chunk2.charCodeAt(t-this.chunk2Pos);else{let e=this.rangeIndex,r=this.range;for(;r.to<=t;)r=this.ranges[++e];this.chunk2=this.input.chunk(this.chunk2Pos=t),t+this.chunk2.length>r.to&&(this.chunk2=this.chunk2.slice(0,r.to-t)),n=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),n}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(null==n||n<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=n}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=pUn,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let r of this.ranges){if(r.from>=t)break;r.to>e&&(n+=this.input.read(Math.max(r.from,e),Math.min(r.to,t)))}return n}}class gUn{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;AUn(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}gUn.prototype.contextual=gUn.prototype.fallback=gUn.prototype.extend=!1;class mUn{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data="string"==typeof e?hUn(e):e}token(e,t){let n=e.pos,r=0;for(;;){let n=e.next<0,i=e.resolveOffset(1,1);if(AUn(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(null==this.elseToken)return;if(n||r++,null==i)break;e.reset(i,e.token)}r&&(e.reset(n,e.token),e.acceptToken(this.elseToken,r))}}mUn.prototype.contextual=gUn.prototype.fallback=gUn.prototype.extend=!1;class OUn{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function AUn(e,t,n,r,i,o){let a=0,s=1<<r,{dialect:l}=n.p.parser;e:for(;0!=(s&e[a]);){let n=e[a+1];for(let h=a+3;h<n;h+=2)if((e[h+1]&s)>0){let n=e[h];if(l.allows(n)&&(-1==t.token.value||t.token.value==n||vUn(n,t.token.value,i,o))){t.acceptToken(n);break}}let r=t.next,c=0,u=e[a+2];if(!(t.next<0&&u>c&&65535==e[n+3*u-3])){for(;c<u;){let i=c+u>>1,o=n+i+(i<<1),s=e[o],l=e[o+1]||65536;if(r<s)u=i;else{if(!(r>=l)){a=e[o+2],t.advance();continue e}c=i+1}}break}a=e[n+3*u-1]}}function yUn(e,t,n){for(let r,i=t;65535!=(r=e[i]);i++)if(r==n)return i-t;return-1}function vUn(e,t,n,r){let i=yUn(n,r,t);return i<0||yUn(n,r,e)<i}const bUn="undefined"!=typeof process&&aUn&&/\bparse\b/.test(aUn.LOG);let xUn=null;function wUn(e,t,n){let r=e.cursor(Frt.IncludeAnonymous);for(r.moveTo(t);;)if(!(n<0?r.childBefore(t):r.childAfter(t)))for(;;){if((n<0?r.to<t:r.from>t)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:e.length}}let kUn=class{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?wUn(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?wUn(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let n=this.trees[t],r=this.index[t];if(r==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let i=n.children[r],o=this.start[t]+n.positions[r];if(o>e)return this.nextStart=o,null;if(i instanceof zrt){if(o==e){if(o<this.safeFrom)return null;let e=o+i.length;if(e<=this.safeTo){let t=i.prop(Brt.lookAhead);if(!t||e+t<this.fragment.to)return i}}this.index[t]++,o+i.length>=Math.max(this.safeFrom,e)&&(this.trees.push(i),this.start.push(o),this.index.push(0))}else this.index[t]++,this.nextStart=o+i.length}}};class SUn{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(e=>new dUn)}getActions(e){let t=0,n=null,{parser:r}=e.p,{tokenizers:i}=r,o=r.stateSlot(e.state,3),a=e.curContext?e.curContext.hash:0,s=0;for(let l=0;l<i.length;l++){if(!(1<<l&o))continue;let r=i[l],c=this.tokens[l];if((!n||r.fallback)&&((r.contextual||c.start!=e.pos||c.mask!=o||c.context!=a)&&(this.updateCachedToken(c,r,e),c.mask=o,c.context=a),c.lookAhead>c.end+25&&(s=Math.max(c.lookAhead,s)),0!=c.value)){let i=t;if(c.extended>-1&&(t=this.addActions(e,c.extended,c.end,t)),t=this.addActions(e,c.value,c.end,t),!r.extend&&(n=c,t>i))break}}for(;this.actions.length>t;)this.actions.pop();return s&&e.setLookAhead(s),n||e.pos!=this.stream.end||(n=new dUn,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new dUn,{pos:n,p:r}=e;return t.start=n,t.end=Math.min(n+1,r.stream.end),t.value=n==r.stream.end?r.parser.eofTerm:0,t}updateCachedToken(e,t,n){let r=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(r,e),n),e.value>-1){let{parser:t}=n.p;for(let r=0;r<t.specialized.length;r++)if(t.specialized[r]==e.value){let i=t.specializers[r](this.stream.read(e.start,e.end),n);if(i>=0&&n.p.parser.dialect.allows(i>>1)){1&i?e.extended=i>>1:e.value=i>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,t,n,r){for(let i=0;i<r;i+=3)if(this.actions[i]==e)return r;return this.actions[r++]=e,this.actions[r++]=t,this.actions[r++]=n,r}addActions(e,t,n,r){let{state:i}=e,{parser:o}=e.p,{data:a}=o;for(let s=0;s<2;s++)for(let e=o.stateSlot(i,s?2:1);;e+=3){if(65535==a[e]){if(1!=a[e+1]){0==r&&2==a[e+1]&&(r=this.putAction(EUn(a,e+2),t,n,r));break}e=EUn(a,e+2)}a[e]==t&&(r=this.putAction(EUn(a,e+1),t,n,r))}return r}}class TUn{constructor(e,t,n,r){this.parser=e,this.input=t,this.ranges=r,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new fUn(t,r),this.tokens=new SUn(e,this.stream),this.topTerm=e.top[1];let{from:i}=r[0];this.stacks=[sUn.start(this,e.top[0],i)],this.fragments=n.length&&this.stream.end-i>4*e.bufferLength?new kUn(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,n=this.stacks,r=this.minStackPos,i=this.stacks=[];if(this.bigReductionCount>300&&1==n.length){let[e]=n;for(;e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;o<n.length;o++){let a=n[o];for(;;){if(this.tokens.mainToken=null,a.pos>r)i.push(a);else{if(this.advanceStack(a,i,n))continue;{e||(e=[],t=[]),e.push(a);let n=this.tokens.getMainToken(a);t.push(n.value,n.end)}}break}}if(!i.length){let t=e&&function(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=e&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.score<n.score)&&(t=n)}return t}(e);if(t)return this.stackToTree(t);if(this.parser.strict)throw new SyntaxError("No parse at "+r);this.recovering||(this.recovering=5)}if(this.recovering&&e){let n=null!=this.stoppedAt&&e[0].pos>this.stoppedAt?e[0]:this.runRecovery(e,t,i);if(n)return this.stackToTree(n.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(i.length>e)for(i.sort((e,t)=>t.score-e.score);i.length>e;)i.pop();i.some(e=>e.reducePos>r)&&this.recovering--}else if(i.length>1){e:for(let e=0;e<i.length-1;e++){let t=i[e];for(let n=e+1;n<i.length;n++){let r=i[n];if(t.sameState(r)||t.buffer.length>500&&r.buffer.length>500){if(!((t.score-r.score||t.buffer.length-r.buffer.length)>0)){i.splice(e--,1);continue e}i.splice(n--,1)}}}i.length>12&&(i.sort((e,t)=>t.score-e.score),i.splice(12,i.length-12))}this.minStackPos=i[0].pos;for(let o=1;o<i.length;o++)i[o].pos<this.minStackPos&&(this.minStackPos=i[o].pos);return null}stopAt(e){if(null!=this.stoppedAt&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,n){let r=e.pos,{parser:i}=this;bUn&&this.stackID(e);if(null!=this.stoppedAt&&r>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,n=t?e.curContext.hash:0;for(let o=this.fragments.nodeAt(r);o;){let r=this.parser.nodeSet.types[o.type.id]==o.type?i.getGoto(e.state,o.type.id):-1;if(r>-1&&o.length&&(!t||(o.prop(Brt.contextHash)||0)==n))return e.useNode(o,r),!0;if(!(o instanceof zrt)||0==o.children.length||o.positions[0]>0)break;let a=o.children[0];if(!(a instanceof zrt&&0==o.positions[0]))break;o=a}}let o=i.stateSlot(e.state,4);if(o>0)return e.reduce(o),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let a=this.tokens.getActions(e);for(let s=0;s<a.length;){let i=a[s++],o=a[s++],l=a[s++],c=s==a.length||!n,u=c?e:e.split(),h=this.tokens.mainToken;if(u.apply(i,o,h?h.start:u.pos,l),c)return!0;u.pos>r?t.push(u):n.push(u)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return $Un(e,t),!0}}runRecovery(e,t,n){let r=null,i=!1;for(let o=0;o<e.length;o++){let a=e[o],s=t[o<<1],l=t[1+(o<<1)],c=bUn?this.stackID(a)+" -> ":"";if(a.deadEnd){if(i)continue;if(i=!0,a.restart(),this.advanceFully(a,n))continue}let u=a.split(),h=c;for(let e=0;e<10&&u.forceReduce();e++){if(this.advanceFully(u,n))break;bUn&&(h=this.stackID(u)+" -> ")}for(let e of a.recoverByInsert(s))this.advanceFully(e,n);this.stream.end>a.pos?(l==a.pos&&(l++,s=0),a.recoverByDelete(s,l),$Un(a,n)):(!r||r.score<u.score)&&(r=u)}return r}stackToTree(e){return e.close(),zrt.build({buffer:uUn.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(xUn||(xUn=new WeakMap)).get(e);return t||xUn.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function $Un(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(r.pos==e.pos&&r.sameState(e))return void(t[n].score<e.score&&(t[n]=e))}t.push(e)}class _Un{constructor(e,t,n){this.source=e,this.flags=t,this.disabled=n}allows(e){return!this.disabled||0==this.disabled[e]}}const CUn=e=>e;class QUn{constructor(e){this.start=e.start,this.shift=e.shift||CUn,this.reduce=e.reduce||CUn,this.reuse=e.reuse||CUn,this.hash=e.hash||(()=>0),this.strict=!1!==e.strict}}class PUn extends cit{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let a=0;a<e.repeatNodeCount;a++)t.push("");let n=Object.keys(e.topRules).map(t=>e.topRules[t][1]),r=[];for(let a=0;a<t.length;a++)r.push([]);function i(e,t,n){r[e].push([t,t.deserialize(String(n))])}if(e.nodeProps)for(let a of e.nodeProps){let e=a[0];"string"==typeof e&&(e=Brt[e]);for(let t=1;t<a.length;){let n=a[t++];if(n>=0)i(n,e,a[t++]);else{let r=a[t+-n];for(let o=-n;o>0;o--)i(a[t++],e,r);t++}}}this.nodeSet=new Mrt(t.map((t,i)=>Drt.define({name:i>=this.minRepeatTerm?void 0:t,id:i,props:r[i],top:n.indexOf(i)>-1,error:0==i,skipped:e.skippedNodes&&e.skippedNodes.indexOf(i)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=Prt;let o=hUn(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;a<this.specializerSpecs.length;a++)this.specialized[a]=this.specializerSpecs[a].term;this.specializers=this.specializerSpecs.map(RUn),this.states=hUn(e.states,Uint32Array),this.data=hUn(e.stateData),this.goto=hUn(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(e=>"number"==typeof e?new gUn(o,e):e),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let r=new TUn(this,e,t,n);for(let i of this.wrappers)r=i(r,e,t,n);return r}getGoto(e,t,n=!1){let r=this.goto;if(t>=r[0])return-1;for(let i=r[t+1];;){let t=r[i++],o=1&t,a=r[i++];if(o&&n)return a;for(let n=i+(t>>1);i<n;i++)if(r[i]==e)return a;if(o)return-1}}hasAction(e,t){let n=this.data;for(let r=0;r<2;r++)for(let i,o=this.stateSlot(e,r?2:1);;o+=3){if(65535==(i=n[o])){if(1!=n[o+1]){if(2==n[o+1])return EUn(n,o+2);break}i=n[o=EUn(n,o+2)]}if(i==t||0==i)return EUn(n,o+1)}return 0}stateSlot(e,t){return this.states[6*e+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,e=>e==t||null)}allActions(e,t){let n=this.stateSlot(e,4),r=n?t(n):void 0;for(let i=this.stateSlot(e,1);null==r;i+=3){if(65535==this.data[i]){if(1!=this.data[i+1])break;i=EUn(this.data,i+2)}r=t(EUn(this.data,i+1))}return r}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=EUn(this.data,n+2)}if(!(1&this.data[n+2])){let e=this.data[n+1];t.some((t,n)=>1&n&&t==e)||t.push(this.data[n],e)}}return t}configure(e){let t=Object.assign(Object.create(PUn.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(t=>{let n=e.tokenizers.find(e=>e.from==t);return n?n.to:t})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((n,r)=>{let i=e.specializers.find(e=>e.from==n.external);if(!i)return n;let o=Object.assign(Object.assign({},n),{external:i.to});return t.specializers[r]=RUn(o),o})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map(()=>!1);if(e)for(let i of e.split(" ")){let e=t.indexOf(i);e>=0&&(n[e]=!0)}let r=null;for(let i=0;i<t.length;i++)if(!n[i])for(let e,n=this.dialects[t[i]];65535!=(e=this.data[n++]);)(r||(r=new Uint8Array(this.maxTerm+1)))[e]=1;return new _Un(e,n,r)}static deserialize(e){return new PUn(e)}}function EUn(e,t){return e[t]|e[t+1]<<16}function RUn(e){if(e.external){let t=e.extend?1:0;return(n,r)=>e.external(n,r)<<1|t}return e.get}function BUn(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57}function IUn(e){return e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70}function LUn(e,t,n){for(let r=!1;;){if(e.next<0)return;if(e.next==t&&!r)return void e.advance();r=n&&!r&&92==e.next,e.advance()}}function DUn(e,t){for(;95==e.next||BUn(e.next);)null!=t&&(t+=String.fromCharCode(e.next)),e.advance();return t}function MUn(e,t){for(;48==e.next||49==e.next;)e.advance();t&&e.next==t&&e.advance()}function NUn(e,t){for(;;){if(46==e.next){if(t)break;t=!0}else if(e.next<48||e.next>57)break;e.advance()}if(69==e.next||101==e.next)for(e.advance(),43!=e.next&&45!=e.next||e.advance();e.next>=48&&e.next<=57;)e.advance()}function XUn(e){for(;!(e.next<0||10==e.next);)e.advance()}function FUn(e,t){for(let n=0;n<t.length;n++)if(t.charCodeAt(n)==e)return!0;return!1}const UUn=" \t\r\n";function zUn(e,t,n){let r=Object.create(null);r.true=r.false=5,r.null=r.unknown=6;for(let i of e.split(" "))i&&(r[i]=20);for(let i of t.split(" "))i&&(r[i]=21);for(let i of(n||"").split(" "))i&&(r[i]=24);return r}const qUn="array binary bit boolean char character clob date decimal double float int integer interval large national nchar nclob numeric object precision real smallint time timestamp varchar varying ",VUn="absolute action add after all allocate alter and any are as asc assertion at authorization before begin between both breadth by call cascade cascaded case cast catalog check close collate collation column commit condition connect connection constraint constraints constructor continue corresponding count create cross cube current current_date current_default_transform_group current_transform_group_for_type current_path current_role current_time current_timestamp current_user cursor cycle data day deallocate declare default deferrable deferred delete depth deref desc describe descriptor deterministic diagnostics disconnect distinct do domain drop dynamic each else elseif end end-exec equals escape except exception exec execute exists exit external fetch first for foreign found from free full function general get global go goto grant group grouping handle having hold hour identity if immediate in indicator initially inner inout input insert intersect into is isolation join key language last lateral leading leave left level like limit local localtime localtimestamp locator loop map match method minute modifies module month names natural nesting new next no none not of old on only open option or order ordinality out outer output overlaps pad parameter partial path prepare preserve primary prior privileges procedure public read reads recursive redo ref references referencing relative release repeat resignal restrict result return returns revoke right role rollback rollup routine row rows savepoint schema scroll search second section select session session_user set sets signal similar size some space specific specifictype sql sqlexception sqlstate sqlwarning start state static system_user table temporary then timezone_hour timezone_minute to trailing transaction translation treat trigger under undo union unique unnest until update usage user using value values view when whenever where while with without work write year zone ",WUn={backslashEscapes:!1,hashComments:!1,spaceAfterDashes:!1,slashComments:!1,doubleQuotedStrings:!1,doubleDollarQuotedStrings:!1,unquotedBitLiterals:!1,treatBitsAsBytes:!1,charSetCasts:!1,plsqlQuotingMechanism:!1,operatorChars:"*+-%<>!=&|~^/",specialVar:"?",identifierQuotes:'"',caseInsensitiveIdentifiers:!1,words:zUn(VUn,qUn)};function jUn(e){return new OUn(t=>{var n;let{next:r}=t;if(t.advance(),FUn(r,UUn)){for(;FUn(t.next,UUn);)t.advance();t.acceptToken(36)}else if(36==r&&e.doubleDollarQuotedStrings){let e=DUn(t,"");36==t.next&&(t.advance(),function(e,t){e:for(;;){if(e.next<0)return;if(36==e.next){e.advance();for(let n=0;n<t.length;n++){if(e.next!=t.charCodeAt(n))continue e;e.advance()}if(36==e.next)return void e.advance()}else e.advance()}}(t,e),t.acceptToken(3))}else if(39==r||34==r&&e.doubleQuotedStrings)LUn(t,r,e.backslashEscapes),t.acceptToken(3);else if(35==r&&e.hashComments||47==r&&47==t.next&&e.slashComments)XUn(t),t.acceptToken(1);else if(45!=r||45!=t.next||e.spaceAfterDashes&&32!=t.peek(1))if(47==r&&42==t.next){t.advance();for(let e=1;;){let n=t.next;if(t.next<0)break;if(t.advance(),42==n&&47==t.next){if(e--,t.advance(),!e)break}else 47==n&&42==t.next&&(e++,t.advance())}t.acceptToken(2)}else if(101!=r&&69!=r||39!=t.next)if(110!=r&&78!=r||39!=t.next||!e.charSetCasts)if(95==r&&e.charSetCasts)for(let i=0;;i++){if(39==t.next&&i>1){t.advance(),LUn(t,39,e.backslashEscapes),t.acceptToken(3);break}if(!BUn(t.next))break;t.advance()}else if(e.plsqlQuotingMechanism&&(113==r||81==r)&&39==t.next&&t.peek(1)>0&&!FUn(t.peek(1),UUn)){let e=t.peek(1);t.advance(2),function(e,t){let n="[{<(".indexOf(String.fromCharCode(t)),r=n<0?t:"]}>)".charCodeAt(n);for(;;){if(e.next<0)return;if(e.next==r&&39==e.peek(1))return void e.advance(2);e.advance()}}(t,e),t.acceptToken(3)}else if(FUn(r,e.identifierQuotes)){LUn(t,91==r?93:r,!1),t.acceptToken(19)}else if(40==r)t.acceptToken(7);else if(41==r)t.acceptToken(8);else if(123==r)t.acceptToken(9);else if(125==r)t.acceptToken(10);else if(91==r)t.acceptToken(11);else if(93==r)t.acceptToken(12);else if(59==r)t.acceptToken(13);else if(e.unquotedBitLiterals&&48==r&&98==t.next)t.advance(),MUn(t),t.acceptToken(22);else if(98!=r&&66!=r||39!=t.next&&34!=t.next){if(48==r&&(120==t.next||88==t.next)||(120==r||88==r)&&39==t.next){let e=39==t.next;for(t.advance();IUn(t.next);)t.advance();e&&39==t.next&&t.advance(),t.acceptToken(4)}else if(46==r&&t.next>=48&&t.next<=57)NUn(t,!0),t.acceptToken(4);else if(46==r)t.acceptToken(14);else if(r>=48&&r<=57)NUn(t,!1),t.acceptToken(4);else if(FUn(r,e.operatorChars)){for(;FUn(t.next,e.operatorChars);)t.advance();t.acceptToken(15)}else if(FUn(r,e.specialVar))t.next==r&&t.advance(),function(e){if(39==e.next||34==e.next||96==e.next){let t=e.next;e.advance(),LUn(e,t,!1)}else DUn(e)}(t),t.acceptToken(17);else if(58==r||44==r)t.acceptToken(16);else if(BUn(r)){let i=DUn(t,String.fromCharCode(r));t.acceptToken(46==t.next||46==t.peek(-i.length-1)?18:null!==(n=e.words[i.toLowerCase()])&&void 0!==n?n:18)}}else{const n=t.next;t.advance(),e.treatBitsAsBytes?(LUn(t,n,e.backslashEscapes),t.acceptToken(23)):(MUn(t,n),t.acceptToken(22))}else t.advance(),LUn(t,39,e.backslashEscapes),t.acceptToken(3);else t.advance(),LUn(t,39,!0),t.acceptToken(3);else XUn(t),t.acceptToken(1)})}const YUn=jUn(WUn),ZUn=PUn.deserialize({version:14,states:"%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",stateData:",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",goto:"#hwPPPPPPPPPPPPPPPPPPPPPPPPPPx||||!Y!^!d!xPPP#[TYOZeUORSTWZbdfqT[OZQZORiZSWOZQbRQdSQfTZgWbdfqQ^PWk^lmrQl_Qm`RrseVORSTWZbdfq",nodeNames:"⚠ LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",maxTerm:38,nodeProps:[["isolate",-4,1,2,3,19,""]],skippedNodes:[0,1,2],repeatNodeCount:3,tokenData:"RORO",tokenizers:[0,YUn],topRules:{Script:[0,25]},tokenPrec:0});function GUn(e){let t=e.cursor().moveTo(e.from,-1);for(;/Comment/.test(t.name);)t.moveTo(t.from,-1);return t.node}function HUn(e,t){let n=e.sliceString(t.from,t.to),r=/^([`'"\[])(.*)([`'"\]])$/.exec(n);return r?r[2]:n}function KUn(e){return e&&("Identifier"==e.name||"QuotedIdentifier"==e.name)}function JUn(e,t){if("CompositeIdentifier"==t.name){let n=[];for(let r=t.firstChild;r;r=r.nextSibling)KUn(r)&&n.push(HUn(e,r));return n}return[HUn(e,t)]}function ezn(e,t){for(let n=[];;){if(!t||"."!=t.name)return n;let r=GUn(t);if(!KUn(r))return n;n.unshift(HUn(e,r)),t=GUn(r)}}function tzn(e,t){let n=iot(e).resolveInner(t,-1),r=function(e,t){let n;for(let i=t;!n;i=i.parent){if(!i)return null;"Statement"==i.name&&(n=i)}let r=null;for(let i=n.firstChild,o=!1,a=null;i;i=i.nextSibling){let t="Keyword"==i.name?e.sliceString(i.from,i.to).toLowerCase():null,n=null;if(o)if("as"==t&&a&&KUn(i.nextSibling))n=HUn(e,i.nextSibling);else{if(t&&nzn.has(t))break;a&&KUn(i)&&(n=HUn(e,i))}else o="from"==t;n&&(r||(r=Object.create(null)),r[n]=JUn(e,a)),a=/Identifier$/.test(i.name)?i:null}return r}(e.doc,n);return"Identifier"==n.name||"QuotedIdentifier"==n.name||"Keyword"==n.name?{from:n.from,quoted:"QuotedIdentifier"==n.name?e.doc.sliceString(n.from,n.from+1):null,parents:ezn(e.doc,GUn(n)),aliases:r}:"."==n.name?{from:t,quoted:null,parents:ezn(e.doc,n),aliases:r}:{from:t,quoted:null,parents:[],empty:!0,aliases:r}}const nzn=new Set("where group having order union intersect except all distinct limit offset fetch for".split(" "));function rzn(e,t,n){return n.map(n=>({...n,label:n.label[0]==e?n.label:e+n.label+t,apply:void 0}))}const izn=/^\w*$/,ozn=/^[`'"\[]?\w*[`'"\]]?$/;function azn(e){return e.self&&"string"==typeof e.self.label}class szn{constructor(e,t){this.idQuote=e,this.idCaseInsensitive=t,this.list=[],this.children=void 0}child(e){let t=this.children||(this.children=Object.create(null)),n=t[e];return n||(e&&!this.list.some(t=>t.label==e)&&this.list.push(lzn(e,"type",this.idQuote,this.idCaseInsensitive)),t[e]=new szn(this.idQuote,this.idCaseInsensitive))}maybeChild(e){return this.children?this.children[e]:null}addCompletion(e){let t=this.list.findIndex(t=>t.label==e.label);t>-1?this.list[t]=e:this.list.push(e)}addCompletions(e){for(let t of e)this.addCompletion("string"==typeof t?lzn(t,"property",this.idQuote,this.idCaseInsensitive):t)}addNamespace(e){Array.isArray(e)?this.addCompletions(e):azn(e)?this.addNamespace(e.children):this.addNamespaceObject(e)}addNamespaceObject(e){for(let t of Object.keys(e)){let n=e[t],r=null,i=t.replace(/\\?\./g,e=>"."==e?"\0":e).split("\0"),o=this;azn(n)&&(r=n.self,n=n.children);for(let e=0;e<i.length;e++)r&&e==i.length-1&&o.addCompletion(r),o=o.child(i[e].replace(/\\\./g,"."));o.addNamespace(n)}}}function lzn(e,t,n,r){return new RegExp("^[a-z_][a-z_\\d]*$",r?"i":"").test(e)?{label:e,type:t}:{label:e,type:t,apply:n+e+czn(n)}}function czn(e){return"["===e?"]":e}let uzn=ZUn.configure({props:[xot.add({Statement:Pot()}),Rot.add({Statement:(e,t)=>({from:Math.min(e.from+100,t.doc.lineAt(e.from).to),to:e.to}),BlockComment:e=>({from:e.from+2,to:e.to-2})}),Cit({Keyword:Git.keyword,Type:Git.typeName,Builtin:Git.standard(Git.name),Bits:Git.number,Bytes:Git.string,Bool:Git.bool,Null:Git.null,Number:Git.number,String:Git.string,Identifier:Git.name,QuotedIdentifier:Git.special(Git.string),SpecialVar:Git.special(Git.name),LineComment:Git.lineComment,BlockComment:Git.blockComment,Operator:Git.operator,"Semi Punctuation":Git.punctuation,"( )":Git.paren,"{ }":Git.brace,"[ ]":Git.squareBracket})]});class hzn{constructor(e,t,n){this.dialect=e,this.language=t,this.spec=n}get extension(){return this.language.extension}configureLanguage(e,t){return new hzn(this.dialect,this.language.configure(e,t),this.spec)}static define(e){let t=function(e,t,n,r){let i={};for(let o in WUn)i[o]=(e.hasOwnProperty(o)?e:WUn)[o];return t&&(i.words=zUn(t,n||"",r)),i}(e,e.keywords,e.types,e.builtin),n=rot.define({name:"sql",parser:uzn.configure({tokenizers:[{from:YUn,to:jUn(t)}]}),languageData:{commentTokens:{line:"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}});return new hzn(t,n,e)}}function dzn(e,t){return{label:e,type:t,boost:-1}}function pzn(e,t=!1,n){return function(e,t,n){return bct(["QuotedIdentifier","String","LineComment","BlockComment","."],vct(Object.keys(e).map(r=>{return n(t?r.toUpperCase():r,21==(i=e[r])?"type":20==i?"keyword":"variable");var i})))}(e.dialect.words,t,n||dzn)}function fzn(e){return e.schema?function(e,t,n,r,i,o){var a;let s=(null===(a=null==o?void 0:o.spec.identifierQuotes)||void 0===a?void 0:a[0])||'"',l=new szn(s,!!(null==o?void 0:o.spec.caseInsensitiveIdentifiers)),c=i?l.child(i):null;return l.addNamespace(e),t&&(c||l).addCompletions(t),n&&l.addCompletions(n),c&&l.addCompletions(c.list),r&&l.addCompletions((c||l).child(r).list),e=>{let{parents:t,from:n,quoted:i,empty:o,aliases:a}=tzn(e.state,e.pos);if(o&&!e.explicit)return null;a&&1==t.length&&(t=a[t[0]]||t);let s=l;for(let h of t){for(;!s.children||!s.children[h];)if(s==l&&c)s=c;else{if(s!=c||!r)return null;s=s.child(r)}let e=s.maybeChild(h);if(!e)return null;s=e}let u=s.list;if(s==l&&a&&(u=u.concat(Object.keys(a).map(e=>({label:e,type:"constant"})))),i){let t=i[0],r=czn(t);return{from:n,to:e.state.sliceDoc(e.pos,e.pos+1)==r?e.pos+1:void 0,options:rzn(t,r,u),validFor:ozn}}return{from:n,options:u,validFor:izn}}}(e.schema,e.tables,e.schemas,e.defaultTable,e.defaultSchema,e.dialect||mzn):()=>null}function gzn(e){return e.schema?(e.dialect||mzn).language.data.of({autocomplete:fzn(e)}):[]}const mzn=hzn.define({}),Ozn=hzn.define({charSetCasts:!0,doubleDollarQuotedStrings:!0,operatorChars:"+-*/<>=~!@#%^&|`?",specialVar:"",keywords:VUn+"abort abs absent access according ada admin aggregate alias also always analyse analyze array_agg array_max_cardinality asensitive assert assignment asymmetric atomic attach attribute attributes avg backward base64 begin_frame begin_partition bernoulli bit_length blocked bom cache called cardinality catalog_name ceil ceiling chain char_length character_length character_set_catalog character_set_name character_set_schema characteristics characters checkpoint class class_origin cluster coalesce cobol collation_catalog collation_name collation_schema collect column_name columns command_function command_function_code comment comments committed concurrently condition_number configuration conflict connection_name constant constraint_catalog constraint_name constraint_schema contains content control conversion convert copy corr cost covar_pop covar_samp csv cume_dist current_catalog current_row current_schema cursor_name database datalink datatype datetime_interval_code datetime_interval_precision db debug defaults defined definer degree delimiter delimiters dense_rank depends derived detach detail dictionary disable discard dispatch dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue document dump dynamic_function dynamic_function_code element elsif empty enable encoding encrypted end_frame end_partition endexec enforced enum errcode error event every exclude excluding exclusive exp explain expression extension extract family file filter final first_value flag floor following force foreach fortran forward frame_row freeze fs functions fusion generated granted greatest groups handler header hex hierarchy hint id ignore ilike immediately immutable implementation implicit import include including increment indent index indexes info inherit inherits inline insensitive instance instantiable instead integrity intersection invoker isnull key_member key_type label lag last_value lead leakproof least length library like_regex link listen ln load location lock locked log logged lower mapping matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text min minvalue mod mode more move multiset mumps name namespace nfc nfd nfkc nfkd nil normalize normalized nothing notice notify notnull nowait nth_value ntile nullable nullif nulls number occurrences_regex octet_length octets off offset oids operator options ordering others over overlay overriding owned owner parallel parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partition pascal passing passthrough password percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding prepared print_strict_params procedural procedures program publication query quote raise range rank reassign recheck recovery refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex rename repeatable replace replica requiring reset respect restart restore result_oid returned_cardinality returned_length returned_octet_length returned_sqlstate returning reverse routine_catalog routine_name routine_schema routines row_count row_number rowtype rule scale schema_name schemas scope scope_catalog scope_name scope_schema security selective self sensitive sequence sequences serializable server server_name setof share show simple skip slice snapshot source specific_name sqlcode sqlerror sqrt stable stacked standalone statement statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time table_name tables tablesample tablespace temp template ties token top_level_count transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex trigger_catalog trigger_name trigger_schema trim trim_array truncate trusted type types uescape unbounded uncommitted unencrypted unlink unlisten unlogged unnamed untyped upper uri use_column use_variable user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema vacuum valid validate validator value_of var_pop var_samp varbinary variable_conflict variadic verbose version versioning views volatile warning whitespace width_bucket window within wrapper xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate yes",types:qUn+"bigint int8 bigserial serial8 varbit bool box bytea cidr circle precision float8 inet int4 json jsonb line lseg macaddr macaddr8 money numeric pg_lsn point polygon float4 int2 smallserial serial2 serial serial4 text timetz timestamptz tsquery tsvector txid_snapshot uuid xml"}),Azn="accessible algorithm analyze asensitive authors auto_increment autocommit avg avg_row_length binlog btree cache catalog_name chain change changed checkpoint checksum class_origin client_statistics coalesce code collations columns comment committed completion concurrent consistent contains contributors convert database databases day_hour day_microsecond day_minute day_second delay_key_write delayed delimiter des_key_file dev_pop dev_samp deviance directory disable discard distinctrow div dual dumpfile enable enclosed ends engine engines enum errors escaped even event events every explain extended fast field fields flush force found_rows fulltext grants handler hash high_priority hosts hour_microsecond hour_minute hour_second ignore ignore_server_ids import index index_statistics infile innodb insensitive insert_method install invoker iterate keys kill linear lines list load lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modify mutex mysql_errno no_write_to_binlog offline offset one online optimize optionally outfile pack_keys parser partition partitions password phase plugin plugins prev processlist profile profiles purge query quick range read_write rebuild recover regexp relaylog remove rename reorganize repair repeatable replace require resume rlike row_format rtree schedule schema_name schemas second_microsecond security sensitive separator serializable server share show slave slow snapshot soname spatial sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result ssl starting starts std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace terminated triggers truncate uncommitted uninstall unlock upgrade use use_frm user_resources user_statistics utc_date utc_time utc_timestamp variables views warnings xa xor year_month zerofill",yzn=qUn+"bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int1 int2 int3 int4 int8 float4 float8 varbinary varcharacter precision datetime unsigned signed",vzn="charset clear edit ego help nopager notee nowarning pager print prompt quit rehash source status system tee",bzn=hzn.define({operatorChars:"*+-%<>!=&|^",charSetCasts:!0,doubleQuotedStrings:!0,unquotedBitLiterals:!0,hashComments:!0,spaceAfterDashes:!0,specialVar:"@?",identifierQuotes:"`",keywords:VUn+"group_concat "+Azn,types:yzn,builtin:vzn}),xzn=hzn.define({operatorChars:"*+-%<>!=&|^",charSetCasts:!0,doubleQuotedStrings:!0,unquotedBitLiterals:!0,hashComments:!0,spaceAfterDashes:!0,specialVar:"@?",identifierQuotes:"`",keywords:VUn+"always generated groupby_concat hard persistent shutdown soft virtual "+Azn,types:yzn,builtin:vzn});const wzn=hzn.define({keywords:VUn+"add external procedure all fetch public alter file raiserror and fillfactor read any for readtext as foreign reconfigure asc freetext references authorization freetexttable replication backup from restore begin full restrict between function return break goto revert browse grant revoke bulk group right by having rollback cascade holdlock rowcount case identity rowguidcol check identity_insert rule checkpoint identitycol save close if schema clustered in securityaudit coalesce index select collate inner semantickeyphrasetable column insert semanticsimilaritydetailstable commit intersect semanticsimilaritytable compute into session_user constraint is set contains join setuser containstable key shutdown continue kill some convert left statistics create like system_user cross lineno table current load tablesample current_date merge textsize current_time national then current_timestamp nocheck to current_user nonclustered top cursor not tran database null transaction dbcc nullif trigger deallocate of truncate declare off try_convert default offsets tsequal delete on union deny open unique desc opendatasource unpivot disk openquery update distinct openrowset updatetext distributed openxml use double option user drop or values dump order varying else outer view end over waitfor errlvl percent when escape pivot where except plan while exec precision with execute primary within group exists print writetext exit proc noexpand index forceseek forcescan holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot spatial_window_max_cells tablock tablockx updlock xlock keepidentity keepdefaults ignore_constraints ignore_triggers",types:qUn+"smalldatetime datetimeoffset datetime2 datetime bigint smallint smallmoney tinyint money real text nvarchar ntext varbinary image hierarchyid uniqueidentifier sql_variant xml",builtin:"approx_count_distinct approx_percentile_cont approx_percentile_disc avg checksum_agg count count_big grouping grouping_id max min product stdev stdevp sum var varp ai_generate_embeddings ai_generate_chunks cume_dist first_value lag last_value lead percentile_cont percentile_disc percent_rank left_shift right_shift bit_count get_bit set_bit collationproperty tertiary_weights @@datefirst @@dbts @@langid @@language @@lock_timeout @@max_connections @@max_precision @@nestlevel @@options @@remserver @@servername @@servicename @@spid @@textsize @@version cast convert parse try_cast try_convert try_parse asymkey_id asymkeyproperty certproperty cert_id crypt_gen_random decryptbyasymkey decryptbycert decryptbykey decryptbykeyautoasymkey decryptbykeyautocert decryptbypassphrase encryptbyasymkey encryptbycert encryptbykey encryptbypassphrase hashbytes is_objectsigned key_guid key_id key_name signbyasymkey signbycert symkeyproperty verifysignedbycert verifysignedbyasymkey @@cursor_rows @@fetch_status cursor_status datalength ident_current ident_incr ident_seed identity sql_variant_property @@datefirst current_timestamp current_timezone current_timezone_id date_bucket dateadd datediff datediff_big datefromparts datename datepart datetime2fromparts datetimefromparts datetimeoffsetfromparts datetrunc day eomonth getdate getutcdate isdate month smalldatetimefromparts switchoffset sysdatetime sysdatetimeoffset sysutcdatetime timefromparts todatetimeoffset year edit_distance edit_distance_similarity jaro_winkler_distance jaro_winkler_similarity edge_id_from_parts graph_id_from_edge_id graph_id_from_node_id node_id_from_parts object_id_from_edge_id object_id_from_node_id json isjson json_array json_contains json_modify json_object json_path_exists json_query json_value regexp_like regexp_replace regexp_substr regexp_instr regexp_count regexp_matches regexp_split_to_table abs acos asin atan atn2 ceiling cos cot degrees exp floor log log10 pi power radians rand round sign sin sqrt square tan choose greatest iif least @@procid app_name applock_mode applock_test assemblyproperty col_length col_name columnproperty databasepropertyex db_id db_name file_id file_idex file_name filegroup_id filegroup_name filegroupproperty fileproperty filepropertyex fulltextcatalogproperty fulltextserviceproperty index_col indexkey_property indexproperty next value for object_definition object_id object_name object_schema_name objectproperty objectpropertyex original_db_name parsename schema_id schema_name scope_identity serverproperty stats_date type_id type_name typeproperty dense_rank ntile rank row_number publishingservername certenclosed certprivatekey current_user database_principal_id has_dbaccess has_perms_by_name is_member is_rolemember is_srvrolemember loginproperty original_login permissions pwdencrypt pwdcompare session_user sessionproperty suser_id suser_name suser_sid suser_sname system_user user user_id user_name ascii char charindex concat concat_ws difference format left len lower ltrim nchar patindex quotename replace replicate reverse right rtrim soundex space str string_agg string_escape stuff substring translate trim unicode upper $partition @@error @@identity @@pack_received @@rowcount @@trancount binary_checksum checksum compress connectionproperty context_info current_request_id current_transaction_id decompress error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big session_context xact_state @@connections @@cpu_busy @@idle @@io_busy @@pack_sent @@packet_errors @@timeticks @@total_errors @@total_read @@total_write textptr textvalid columns_updated eventdata trigger_nestlevel vector_distance vectorproperty vector_search generate_series opendatasource openjson openquery openrowset openxml predict string_split coalesce nullif apply catch filter force include keep keepfixed modify optimize parameterization parameters partition recompile sequence set",operatorChars:"*+-%<>!=^&|/",specialVar:"@",identifierQuotes:'"['}),kzn=hzn.define({keywords:VUn+"abort analyze attach autoincrement conflict database detach exclusive fail glob ignore index indexed instead isnull notnull offset plan pragma query raise regexp reindex rename replace temp vacuum virtual",types:qUn+"bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int2 int8 unsigned signed real",builtin:"auth backup bail changes clone databases dbinfo dump echo eqp explain fullschema headers help import imposter indexes iotrace lint load log mode nullvalue once print prompt quit restore save scanstats separator shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width",operatorChars:"*+-%<>!=&|/~",identifierQuotes:'`"',specialVar:"@:?$"}),Szn=hzn.define({keywords:"add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime infinity NaN",types:qUn+"ascii bigint blob counter frozen inet list map static text timeuuid tuple uuid varint",slashComments:!0}),Tzn=hzn.define({keywords:VUn+"abort accept access add all alter and any arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body by case cast char_base check close cluster clusters colauth column comment commit compress connected constant constraint crash create current currval cursor data_base database dba deallocate debugoff debugon declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry exception exception_init exchange exclusive exists external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base of off offline on online only option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw rebuild record ref references refresh rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work",builtin:"appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define echo editfile embedded feedback flagger flush heading headsep instance linesize lno loboffset logsource longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar repfooter repheader serveroutput shiftinout show showmode spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout timing trimout trimspool ttitle underline verify version wrap",types:qUn+"ascii bfile bfilename bigserial bit blob dec long number nvarchar nvarchar2 serial smallint string text uid varchar2 xml",operatorChars:"*/+-%<>!=~",doubleQuotedStrings:!0,charSetCasts:!0,plsqlQuotingMechanism:!0}),$zn=Object.freeze(Object.defineProperty({__proto__:null,Cassandra:Szn,MSSQL:wzn,MariaSQL:xzn,MySQL:bzn,PLSQL:Tzn,PostgreSQL:Ozn,SQLDialect:hzn,SQLite:kzn,StandardSQL:mzn,keywordCompletionSource:pzn,schemaCompletionSource:fzn,sql:function(e={}){let t=e.dialect||mzn;return new fot(t.language,[gzn(e),t.language.data.of({autocomplete:pzn(t,e.upperCaseKeywords,e.keywordCompletion)})])}},Symbol.toStringTag,{value:"Module"})),_zn=new OUn(e=>{if(76==e.next||85==e.next?e.advance():117==e.next&&(e.advance(),56==e.next&&e.advance()),82!=e.next)return;if(e.advance(),34!=e.next)return;e.advance();let t="";for(;40!=e.next;){if(32==e.next||e.next<=13||41==e.next)return;t+=String.fromCharCode(e.next),e.advance()}for(e.advance();;){if(e.next<0)return e.acceptToken(1);if(41==e.next){let n=!0;for(let r=0;n&&r<t.length;r++)e.peek(r+1)!=t.charCodeAt(r)&&(n=!1);if(n&&34==e.peek(t.length+1))return e.acceptToken(1,2+t.length)}e.advance()}}),Czn=new OUn(e=>{if(62==e.next)62==e.peek(1)&&e.acceptToken(2,1);else{let t=!1,n=0;for(;;n++){if(e.next>=65&&e.next<=90)t=!0;else{if(e.next>=97&&e.next<=122)return;if(95!=e.next&&!(e.next>=48&&e.next<=57))break}e.advance()}t&&n>1&&e.acceptToken(3)}},{extend:!0}),Qzn=Cit({"typedef struct union enum class typename decltype auto template operator friend noexcept namespace using requires concept import export module __attribute__ __declspec __based":Git.definitionKeyword,"extern MsCallModifier MsPointerModifier extern static register thread_local inline const volatile restrict _Atomic mutable constexpr constinit consteval virtual explicit VirtualSpecifier Access":Git.modifier,"if else switch for while do case default return break continue goto throw try catch":Git.controlKeyword,"co_return co_yield co_await":Git.controlKeyword,"new sizeof delete static_assert":Git.operatorKeyword,"NULL nullptr":Git.null,this:Git.self,"True False":Git.bool,"TypeSize PrimitiveType":Git.standard(Git.typeName),TypeIdentifier:Git.typeName,FieldIdentifier:Git.propertyName,"CallExpression/FieldExpression/FieldIdentifier":Git.function(Git.propertyName),"ModuleName/Identifier":Git.namespace,PartitionName:Git.labelName,StatementIdentifier:Git.labelName,"Identifier DestructorName":Git.variableName,"CallExpression/Identifier":Git.function(Git.variableName),"CallExpression/ScopedIdentifier/Identifier":Git.function(Git.variableName),"FunctionDeclarator/Identifier FunctionDeclarator/DestructorName":Git.function(Git.definition(Git.variableName)),NamespaceIdentifier:Git.namespace,OperatorName:Git.operator,ArithOp:Git.arithmeticOperator,LogicOp:Git.logicOperator,BitOp:Git.bitwiseOperator,CompareOp:Git.compareOperator,AssignOp:Git.definitionOperator,UpdateOp:Git.updateOperator,LineComment:Git.lineComment,BlockComment:Git.blockComment,Number:Git.number,String:Git.string,"RawString SystemLibString":Git.special(Git.string),CharLiteral:Git.character,EscapeSequence:Git.escape,"UserDefinedLiteral/Identifier":Git.literal,PreprocArg:Git.meta,"PreprocDirectiveName #include #ifdef #ifndef #if #define #else #endif #elif":Git.processingInstruction,MacroName:Git.special(Git.name),"( )":Git.paren,"[ ]":Git.squareBracket,"{ }":Git.brace,"< >":Git.angleBracket,". ->":Git.derefOperator,", ;":Git.separator}),Pzn={__proto__:null,bool:36,char:36,int:36,float:36,double:36,void:36,size_t:36,ssize_t:36,intptr_t:36,uintptr_t:36,charptr_t:36,int8_t:36,int16_t:36,int32_t:36,int64_t:36,uint8_t:36,uint16_t:36,uint32_t:36,uint64_t:36,char8_t:36,char16_t:36,char32_t:36,char64_t:36,const:70,volatile:72,restrict:74,_Atomic:76,mutable:78,constexpr:80,constinit:82,consteval:84,struct:88,__declspec:92,final:148,override:148,public:152,private:152,protected:152,virtual:154,extern:160,static:162,register:164,inline:166,thread_local:168,__attribute__:172,__based:178,__restrict:180,__uptr:180,__sptr:180,_unaligned:180,__unaligned:180,noexcept:194,requires:198,TRUE:798,true:798,FALSE:800,false:800,typename:218,class:220,template:234,throw:248,__cdecl:256,__clrcall:256,__stdcall:256,__fastcall:256,__thiscall:256,__vectorcall:256,try:260,catch:264,export:282,import:286,case:296,default:298,if:308,else:314,switch:318,do:322,while:324,for:330,return:334,break:338,continue:342,goto:346,co_return:350,co_yield:354,using:362,typedef:366,namespace:380,new:398,delete:400,co_await:402,concept:406,enum:410,static_assert:414,friend:422,union:424,explicit:430,operator:444,module:456,signed:518,unsigned:518,long:518,short:518,decltype:528,auto:530,sizeof:566,NULL:572,nullptr:586,this:588},Ezn={__proto__:null,"<":767},Rzn={__proto__:null,">":135},Bzn={__proto__:null,operator:388,new:576,delete:582},Izn=PUn.deserialize({version:14,states:"$<[Q!QQVOOP'gOUOOO([OWO'#CdO,UQUO'#CgO,`QUO'#FjO-vQbO'#CxO.XQUO'#CxO0WQUO'#KaO0_QUO'#CwO0jOpO'#DvO0rQ!dO'#D]OOQR'#JP'#JPO5[QVO'#GUO5iQUO'#JWOOQQ'#JW'#JWO8}QUO'#KtO<hQUO'#KtO?OQVO'#E^O?`QUO'#E^OOQQ'#Ed'#EdOOQQ'#Ee'#EeO?eQVO'#EfO@[QVO'#EiOBXQUO'#FPOByQUO'#FhOOQR'#Fj'#FjOCOQUO'#FjOOQR'#LX'#LXOOQR'#LW'#LWOEWQVO'#KWOF{QUO'#L_OGYQUO'#KxOGnQUO'#L_OH`QUO'#LaOOQR'#HU'#HUOOQR'#HV'#HVOOQR'#HW'#HWOOQR'#LT'#LTOOQR'#J`'#J`Q!QQVOOOHnQVO'#FOOIZQUO'#Eh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Q7R3QS8y6{6|R9}8zQ'`!tR-Z'a[rOwx!g&U*vS-x'w.OT.o(T.tR+X%{[sOwx!g&U*vS-z'w.OT.p(T.t[tOwx!g&U*vT.q(T.tT.['|.]X%cf%m0p1YQ/O(_R4i/PR.{(^R(g#XQ(w#bU/[(p(q(rS4o/]/_R8X4rR/_(rR4q/^",nodeNames:"⚠ RawString > MacroName LineComment BlockComment PreprocDirective #include String EscapeSequence SystemLibString Identifier ) ( ArgumentList ConditionalExpression AssignmentExpression CallExpression PrimitiveType FieldExpression FieldIdentifier DestructorName TemplateMethod ScopedFieldIdentifier NamespaceIdentifier TemplateType TypeIdentifier ScopedTypeIdentifier ScopedNamespaceIdentifier :: NamespaceIdentifier TypeIdentifier TemplateArgumentList < TypeDescriptor const volatile restrict _Atomic mutable constexpr constinit consteval StructSpecifier struct MsDeclspecModifier __declspec Attribute AttributeName Identifier AttributeArgs { } [ ] UpdateOp ArithOp ArithOp ArithOp LogicOp BitOp BitOp BitOp CompareOp CompareOp CompareOp > CompareOp BitOp UpdateOp , Number CharLiteral AttributeArgs VirtualSpecifier BaseClassClause Access virtual FieldDeclarationList FieldDeclaration extern static register inline thread_local AttributeSpecifier __attribute__ PointerDeclarator MsBasedModifier __based MsPointerModifier FunctionDeclarator ParameterList ParameterDeclaration PointerDeclarator FunctionDeclarator Noexcept noexcept RequiresClause requires True False ParenthesizedExpression CommaExpression LambdaExpression LambdaCaptureSpecifier TemplateParameterList OptionalParameterDeclaration TypeParameterDeclaration typename class VariadicParameterDeclaration VariadicDeclarator ReferenceDeclarator OptionalTypeParameterDeclaration VariadicTypeParameterDeclaration TemplateTemplateParameterDeclaration template AbstractFunctionDeclarator AbstractPointerDeclarator AbstractArrayDeclarator AbstractParenthesizedDeclarator AbstractReferenceDeclarator ThrowSpecifier throw TrailingReturnType CompoundStatement FunctionDefinition MsCallModifier TryStatement try CatchClause catch LinkageSpecification Declaration InitDeclarator InitializerList InitializerPair SubscriptDesignator FieldDesignator ExportDeclaration export ImportDeclaration import ModuleName PartitionName HeaderName CaseStatement case default LabeledStatement StatementIdentifier ExpressionStatement IfStatement if ConditionClause Declaration else SwitchStatement switch DoStatement do while WhileStatement ForStatement for ReturnStatement return BreakStatement break ContinueStatement continue GotoStatement goto CoReturnStatement co_return CoYieldStatement co_yield AttributeStatement ForRangeLoop AliasDeclaration using TypeDefinition typedef PointerDeclarator FunctionDeclarator ArrayDeclarator ParenthesizedDeclarator ThrowStatement NamespaceDefinition namespace ScopedIdentifier Identifier OperatorName operator ArithOp BitOp CompareOp LogicOp new delete co_await ConceptDefinition concept UsingDeclaration enum StaticAssertDeclaration static_assert ConcatenatedString TemplateDeclaration FriendDeclaration friend union FunctionDefinition ExplicitFunctionSpecifier explicit FieldInitializerList FieldInitializer DefaultMethodClause DeleteMethodClause FunctionDefinition OperatorCast operator TemplateInstantiation FunctionDefinition FunctionDefinition Declaration ModuleDeclaration module RequiresExpression RequirementList SimpleRequirement TypeRequirement CompoundRequirement ReturnTypeRequirement ConstraintConjuction LogicOp ConstraintDisjunction LogicOp ArrayDeclarator ParenthesizedDeclarator ReferenceDeclarator TemplateFunction OperatorName StructuredBindingDeclarator ArrayDeclarator ParenthesizedDeclarator ReferenceDeclarator BitfieldClause FunctionDefinition FunctionDefinition Declaration FunctionDefinition Declaration AccessSpecifier UnionSpecifier ClassSpecifier EnumSpecifier SizedTypeSpecifier TypeSize EnumeratorList Enumerator DependentType Decltype decltype auto PlaceholderTypeSpecifier ParameterPackExpansion ParameterPackExpansion FieldIdentifier PointerExpression SubscriptExpression BinaryExpression ArithOp LogicOp LogicOp BitOp UnaryExpression LogicOp BitOp UpdateExpression CastExpression SizeofExpression sizeof CoAwaitExpression CompoundLiteralExpression NULL NewExpression new NewDeclarator DeleteExpression delete ParameterPackExpansion nullptr this UserDefinedLiteral ParamPack #define PreprocArg #if #ifdef #ifndef #else #endif #elif PreprocDirectiveName Macro Program",maxTerm:433,nodeProps:[["group",-35,1,8,11,15,16,17,19,71,72,100,101,102,104,191,208,229,242,243,270,271,272,277,280,281,282,284,285,286,287,290,292,293,294,295,296,"Expression",-13,18,25,26,27,43,255,256,257,258,262,263,265,266,"Type",-19,126,129,147,150,152,153,158,160,163,164,166,168,170,172,174,176,178,179,188,"Statement"],["isolate",-4,4,5,8,10,""],["openedBy",12,"(",52,"{",54,"["],["closedBy",13,")",51,"}",53,"]"]],propSources:[Qzn],skippedNodes:[0,3,4,5,6,7,10,297,298,299,300,301,302,303,304,305,306,308,349,350],repeatNodeCount:43,tokenData:"&AbMfR!UOX$eXY/]YZ5gZ]$e]^1g^p$epq/]qr5}rs8Zst:Ttu$euv!AWvw!Cbwx!Eqxy!Flyz!Gmz{!Hn{|!Iw|}!LX}!O!MY!O!P# m!P!Q#8a!Q!R#@T!R![$'k![!]$@f!]!^$Bn!^!_$Co!_!`%C`!`!a%Dg!a!b%HP!b!c$e!c!n%IQ!n!o%Jl!o!w%IQ!w!x%Jl!x!}%IQ!}#O%Mx#O#P& }#P#Q&3[#Q#R&5a#R#S%IQ#S#T$e#T#i%IQ#i#j&6j#j#o%IQ#o#p&8[#p#q&9]#q#r&;o#r#s&<p#s;'S$e;'S;=`/V<%lO$e,j$n[)d`(wS'f,UOY$eZr$ers%dsw$ewx*mx!P$e!P!Q-V!Q#O$e#O#P'b#P;'S$e;'S;=`/V<%lO$e,f%kY)d`'f,UOY%dZw%dwx&Zx!P%d!P!Q(z!Q#O%d#O#P'b#P;'S%d;'S;=`*g<%lO%d,U&`W'f,UOY&ZZ!P&Z!P!Q&x!Q#O&Z#O#P'b#P;'S&Z;'S;=`'[<%lO&Z,U&{TOz&Z{!P&Z!Q;'S&Z;'S;=`'[<%lO&Z,U'_P;=`<%l&Z,U'gZ'f,UOY&ZYZ&ZZ]&Z]^(Y^!P&Z!P!Q&x!Q#O&Z#O#P'b#P;'S&Z;'S;=`'[<%lO&Z,U(_X'f,UOY&ZYZ&ZZ!P&Z!P!Q&x!Q#O&Z#O#P'b#P;'S&Z;'S;=`'[<%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{17:1,65:1,87:1,94:1,119:1,184:1,187:-10,240:-10,241:1,244:-1,246:-10,247:1,262:-1,267:2,268:2,306:-10,371:3,425:1,426:3,427:1,428:1},specialized:[{term:362,get:e=>Pzn[e]||-1},{term:33,get:e=>Ezn[e]||-1},{term:66,get:e=>Rzn[e]||-1},{term:369,get:e=>Bzn[e]||-1}],tokenPrec:24852}),Lzn=rot.define({name:"cpp",parser:Izn.configure({props:[xot.add({IfStatement:Pot({except:/^\s*({|else\b)/}),TryStatement:Pot({except:/^\s*({|catch)\b/}),LabeledStatement:Qot,CaseStatement:e=>e.baseIndent+e.unit,BlockComment:()=>null,CompoundStatement:_ot({closing:"}"}),Statement:Pot({except:/^{/})}),Rot.add({"DeclarationList CompoundStatement EnumeratorList FieldDeclarationList InitializerList":Bot,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/,closeBrackets:{stringPrefixes:["L","u","U","u8","LR","UR","uR","u8R","R"]}}});const Dzn=Object.freeze(Object.defineProperty({__proto__:null,cpp:function(){return new fot(Lzn)},cppLanguage:Lzn},Symbol.toStringTag,{value:"Module"})),Mzn=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function Nzn(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function Xzn(e){return e>=48&&e<=57}function Fzn(e){return Xzn(e)||e>=97&&e<=102||e>=65&&e<=70}const Uzn=(e,t,n)=>(r,i)=>{for(let o=!1,a=0,s=0;;s++){let{next:l}=r;if(Nzn(l)||45==l||95==l||o&&Xzn(l))!o&&(45!=l||s>0)&&(o=!0),a===s&&45==l&&a++,r.advance();else{if(92!=l||10==r.peek(1)){o&&r.acceptToken(2==a&&i.canShift(2)?t:40==l?n:e);break}if(r.advance(),Fzn(r.next)){do{r.advance()}while(Fzn(r.next));32==r.next&&r.advance()}else r.next>-1&&r.advance();o=!0}}},zzn=new OUn(Uzn(136,2,137),{contextual:!0}),qzn=new OUn(Uzn(138,3,4),{contextual:!0}),Vzn=new OUn(e=>{if(Mzn.includes(e.peek(-1))){let{next:t}=e;(Nzn(t)||95==t||35==t||46==t||42==t||91==t||58==t&&Nzn(e.peek(1))||45==t||38==t)&&e.acceptToken(135)}}),Wzn=new OUn(e=>{if(!Mzn.includes(e.peek(-1))){let{next:t}=e;if(37==t&&(e.advance(),e.acceptToken(1)),Nzn(t)){do{e.advance()}while(Nzn(e.next)||Xzn(e.next));e.acceptToken(1)}}}),jzn=Cit({"AtKeyword import charset namespace keyframes media supports font-feature-values":Git.definitionKeyword,"from to selector scope MatchFlag":Git.keyword,NamespaceName:Git.namespace,KeyframeName:Git.labelName,KeyframeRangeName:Git.operatorKeyword,TagName:Git.tagName,ClassName:Git.className,PseudoClassName:Git.constant(Git.className),IdName:Git.labelName,"FeatureName PropertyName":Git.propertyName,AttributeName:Git.attributeName,NumberLiteral:Git.number,KeywordQuery:Git.keyword,UnaryQueryOp:Git.operatorKeyword,"CallTag ValueName FontName":Git.atom,VariableName:Git.variableName,Callee:Git.operatorKeyword,Unit:Git.unit,"UniversalSelector NestingSelector":Git.definitionOperator,"MatchOp CompareOp":Git.compareOperator,"ChildOp SiblingOp, LogicOp":Git.logicOperator,BinOp:Git.arithmeticOperator,Important:Git.modifier,Comment:Git.blockComment,ColorLiteral:Git.color,"ParenthesizedContent StringLiteral":Git.string,":":Git.punctuation,"PseudoOp #":Git.derefOperator,"; , |":Git.separator,"( )":Git.paren,"[ ]":Git.squareBracket,"{ }":Git.brace}),Yzn={__proto__:null,lang:44,"nth-child":44,"nth-last-child":44,"nth-of-type":44,"nth-last-of-type":44,dir:44,"host-context":44,if:90,url:132,"url-prefix":132,domain:132,regexp:132},Zzn={__proto__:null,or:104,and:104,not:112,only:112,layer:186},Gzn={__proto__:null,selector:118,layer:182},Hzn={__proto__:null,"@import":178,"@media":190,"@charset":194,"@namespace":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&h%`R'j'YR%i$RR%X#oQpPR#n!RQ!yeQ$d!qR%q$e",nodeNames:"⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NamespacedTagSelector NamespaceName TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword # ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector CallQuery ArgList , PseudoQuery CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName NamespacedAttribute NamespaceName AttributeName MatchOp MatchFlag ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to FontFeatureStatement font-feature-values FontName AtRule Styles",maxTerm:159,nodeProps:[["isolate",-2,5,39,""],["openedBy",23,"(",31,"[",34,"{"],["closedBy",24,")",32,"]",35,"}"]],propSources:[jzn],skippedNodes:[0,5,117],repeatNodeCount:17,tokenData:"K`~R!bOX%ZX^&R^p%Zpq&Rqr)ers)vst+jtu2Xuv%Zvw3Rwx3dxy5Ryz5dz{5i{|6S|}:u}!O;W!O!P;u!P!Q<^!Q![=V![!]>Q!]!^>|!^!_?_!_!`@Z!`!a@n!a!b%Z!b!cAo!c!k%Z!k!lC|!l!u%Z!u!vC|!v!}%Z!}#OD_#O#P%Z#P#QDp#Q#R2X#R#]%Z#]#^ER#^#g%Z#g#hC|#h#o%Z#o#pIf#p#qIw#q#rJ`#r#sJq#s#y%Z#y#z&R#z$f%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%jz#f%j#f#gGR#g;'S%j;'S;=`%{<%lO%jbGWU!e`Oy%jz#h%j#h#iGj#i;'S%j;'S;=`%{<%lO%jbGoU!e`Oy%jz#T%j#T#UHR#U;'S%j;'S;=`%{<%lO%jbHWU!e`Oy%jz#b%j#b#cHj#c;'S%j;'S;=`%{<%lO%jbHoU!e`Oy%jz#h%j#h#iIR#i;'S%j;'S;=`%{<%lO%jbIYS$cQ!e`Oy%jz;'S%j;'S;=`%{<%lO%jjIkSsYOy%jz;'S%j;'S;=`%{<%lO%jfI|U$XUOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%jjJeSrYOy%jz;'S%j;'S;=`%{<%lO%jfJvU!uQOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%j`K]P;=`<%l%Z",tokenizers:[Vzn,Wzn,zzn,qzn,1,2,3,4,new mUn("m~RRYZ[z{a~~g~aO$T~~dP!P!Qg~lO$U~~",28,142)],topRules:{StyleSheet:[0,6],Styles:[1,116]},dynamicPrecedences:{84:1},specialized:[{term:137,get:e=>Yzn[e]||-1},{term:138,get:e=>Zzn[e]||-1},{term:4,get:e=>Gzn[e]||-1},{term:28,get:e=>Hzn[e]||-1},{term:136,get:e=>Kzn[e]||-1}],tokenPrec:2256});let eqn=null;function tqn(){if(!eqn&&"object"==typeof document&&document.body){let{style:e}=document.body,t=[],n=new Set;for(let r in e)"cssText"!=r&&"cssFloat"!=r&&"string"==typeof e[r]&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())),n.has(r)||(t.push(r),n.add(r)));eqn=t.sort().map(e=>({type:"property",label:e,apply:e+": "}))}return eqn||[]}const nqn=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(e=>({type:"class",label:e})),rqn=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(e=>({type:"keyword",label:e})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","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","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(e=>({type:"constant",label:e}))),iqn=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(e=>({type:"type",label:e})),oqn=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(e=>({type:"keyword",label:e})),aqn=/^(\w[\w-]*|-\w[\w-]*|)$/,sqn=/^-(-[\w-]*)?$/;const lqn=new sit,cqn=["Declaration"];function uqn(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function hqn(e,t,n){if(t.to-t.from>4096){let r=lqn.get(t);if(r)return r;let i=[],o=new Set,a=t.cursor(Frt.IncludeAnonymous);if(a.firstChild())do{for(let t of hqn(e,a.node,n))o.has(t.label)||(o.add(t.label),i.push(t))}while(a.nextSibling());return lqn.set(t,i),i}{let r=[],i=new Set;return t.cursor().iterate(t=>{var o;if(n(t)&&t.matchContext(cqn)&&":"==(null===(o=t.node.nextSibling)||void 0===o?void 0:o.name)){let n=e.sliceString(t.from,t.to);i.has(n)||(i.add(n),r.push({label:n,type:"variable"}))}}),r}}const dqn=e=>t=>{let{state:n,pos:r}=t,i=iot(n).resolveInner(r,-1),o=i.type.isError&&i.from==i.to-1&&"-"==n.doc.sliceString(i.from,i.to);if("PropertyName"==i.name||(o||"TagName"==i.name)&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:tqn(),validFor:aqn};if("ValueName"==i.name)return{from:i.from,options:rqn,validFor:aqn};if("PseudoClassName"==i.name)return{from:i.from,options:nqn,validFor:aqn};if(e(i)||(t.explicit||o)&&function(e,t){var n;if(("("==e.name||e.type.isError)&&(e=e.parent||e),"ArgList"!=e.name)return!1;let r=null===(n=e.parent)||void 0===n?void 0:n.firstChild;return"Callee"==(null==r?void 0:r.name)&&"var"==t.sliceString(r.from,r.to)}(i,n.doc))return{from:e(i)||o?i.from:r,options:hqn(n.doc,uqn(i),e),validFor:sqn};if("TagName"==i.name){for(let{parent:e}=i;e;e=e.parent)if("Block"==e.name)return{from:i.from,options:tqn(),validFor:aqn};return{from:i.from,options:iqn,validFor:aqn}}if("AtKeyword"==i.name)return{from:i.from,options:oqn,validFor:aqn};if(!t.explicit)return null;let a=i.resolve(r),s=a.childBefore(r);return s&&":"==s.name&&"PseudoClassSelector"==a.name?{from:r,options:nqn,validFor:aqn}:s&&":"==s.name&&"Declaration"==a.name||"ArgList"==a.name?{from:r,options:rqn,validFor:aqn}:"Block"==a.name||"Styles"==a.name?{from:r,options:tqn(),validFor:aqn}:null},pqn=dqn(e=>"VariableName"==e.name),fqn=rot.define({name:"css",parser:Jzn.configure({props:[xot.add({Declaration:Pot()}),Rot.add({"Block KeyframeList":Bot})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function gqn(){return new fot(fqn,fqn.data.of({autocomplete:pqn}))}const mqn=Object.freeze(Object.defineProperty({__proto__:null,css:gqn,cssCompletionSource:pqn,cssLanguage:fqn,defineCSSCompletionSource:dqn},Symbol.toStringTag,{value:"Module"})),Oqn=new OUn((e,t)=>{for(let n=0,r=e.next;(t.context&&(r<0||10==r||13==r||47==r&&47==e.peek(n+1))||41==r||125==r)&&e.acceptToken(177),32==r||9==r;)r=e.peek(++n)},{contextual:!0});let Aqn=new Set([95,184,20,12,17,144,145,142,148,13,53,25]);const yqn=new QUn({start:!1,shift:(e,t)=>179==t?e:Aqn.has(t)}),vqn=Cit({"func interface struct chan map const type var":Git.definitionKeyword,"import package":Git.moduleKeyword,"switch for go select return break continue goto fallthrough case if else defer":Git.controlKeyword,range:Git.keyword,Bool:Git.bool,String:Git.string,Rune:Git.character,Number:Git.number,Nil:Git.null,VariableName:Git.variableName,DefName:Git.definition(Git.variableName),TypeName:Git.typeName,LabelName:Git.labelName,FieldName:Git.propertyName,"FunctionDecl/DefName":Git.function(Git.definition(Git.variableName)),"TypeSpec/DefName":Git.definition(Git.typeName),"CallExpr/VariableName":Git.function(Git.variableName),LineComment:Git.lineComment,BlockComment:Git.blockComment,LogicOp:Git.logicOperator,ArithOp:Git.arithmeticOperator,BitOp:Git.bitwiseOperator,"DerefOp .":Git.derefOperator,"UpdateOp IncDecOp":Git.updateOperator,CompareOp:Git.compareOperator,"= :=":Git.definitionOperator,"<-":Git.operator,'~ "*"':Git.modifier,"; ,":Git.separator,"... :":Git.punctuation,"( )":Git.paren,"[ ]":Git.squareBracket,"{ }":Git.brace}),bqn={__proto__:null,package:10,import:18,true:380,false:380,nil:383,struct:48,func:68,interface:78,chan:94,map:118,make:157,new:159,const:204,type:212,var:224,if:236,else:238,switch:242,case:248,default:250,for:260,range:266,go:270,select:274,return:284,break:288,continue:290,goto:292,fallthrough:296,defer:300},xqn=PUn.deserialize({version:14,states:"!=xO#{QQOOP$SOQOOO&UQTO'#CbO&]QRO'#FlO]QQOOOOQP'#Cn'#CnOOQP'#Co'#CoO&eQQO'#C|O(kQQO'#C{O)]QRO'#GiO+tQQO'#D_OOQP'#Ge'#GeO+{QQO'#GeO.aQTO'#GaO.hQQO'#D`OOQP'#Gm'#GmO.mQRO'#GdO/hQQO'#DgOOQP'#Gd'#GdO/uQQO'#DrO2bQQO'#DsO4QQTO'#GqO,^QTO'#GaO4XQQO'#DxO4^QQO'#D{OOQO'#EQ'#EQOOQO'#ER'#EROOQO'#ES'#ESOOQO'#ET'#ETO4cQQO'#EPO5}QQO'#EPOOQP'#Ga'#GaO6UQQO'#E`O6^QQO'#EcOOQP'#G`'#G`O6cQQO'#EsOOQP'#G_'#G_O&]QRO'#FnOOQO'#Fn'#FnO9QQQO'#G^QOQQOOO&]QROOO9XQQO'#C`O9^QSO'#CdO9lQQO'#C}O9tQQO'#DSO9yQQO'#D[O:kQQO'#CsO:pQQO'#DhO:uQQO'#EeO:}QQO'#EiO;VQQO'#EoO;_QQO'#EuO<uQQO'#ExO<|QQO'#FRO4cQQO'#FWO=WQQO'#FYO=]QRO'#F_O=jQRO'#FaO=uQQO'#FaOOQP'#Fe'#FeO4cQQO'#FgP=zOWO'#C^POOO)CAz)CAzOOQO'#G]'#G]OOQO,5<W,5<WOOQO-E9j-E9jO?TQT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Q(o&lR*x*PS%U!t*`R+q+jR%S!qQ#PcQ(}&|Q)Z'YR+n+ghpOScw!U!V#O#k#n&|'Y+gQ$d!WQ$n!ZQ%g#VU%p#i'T,bU%q#j'U,cQ(j&gQ(u&sQ)Q'PQ)_']Q)y'wQ*_(kQ*a(tV-R'W)W*kT(U&S&l",nodeNames:"⚠ LineComment BlockComment SourceFile PackageClause package DefName ; ImportDecl import ImportSpec . String ) ( SpecList ExprStatement Number Bool Nil Rune VariableName TypedLiteral StructType struct } { StructBody FieldDecl FieldName , PointerType * FunctionType func Parameters Parameter ... InterfaceType interface InterfaceBody MethodElem UnderlyingType ~ TypeElem LogicOp ChannelType chan <- ParenthesizedType QualifiedType TypeName ParameterizedType ] [ TypeArgs ArrayType SliceType MapType map LiteralValue Element Key : Element Key ParenthesizedExpr FunctionLiteral Block Conversion SelectorExpr IndexExpr SliceExpr TypeAssertion CallExpr ParameterizedExpr Arguments CallExpr make new Arguments UnaryExp ArithOp LogicOp BitOp DerefOp BinaryExp ArithOp BitOp BitOp CompareOp LogicOp LogicOp SendStatement IncDecStatement IncDecOp Assignment = UpdateOp VarDecl := ConstDecl const ConstSpec SpecList TypeDecl type TypeSpec TypeParams TypeParam SpecList VarDecl var VarSpec SpecList LabeledStatement LabelName IfStatement if else SwitchStatement switch SwitchBlock Case case default TypeSwitchStatement SwitchBlock Case ForStatement for ForClause RangeClause range GoStatement go SelectStatement select SelectBlock Case ReceiveStatement ReturnStatement return GotoStatement break continue goto FallthroughStatement fallthrough DeferStatement defer FunctionDecl MethodDecl",maxTerm:218,context:yqn,nodeProps:[["isolate",-3,2,12,20,""],["group",-18,12,17,18,19,20,21,22,66,67,69,70,71,72,73,74,77,81,86,"Expr",-20,16,68,93,94,96,99,101,105,111,115,117,120,126,129,134,136,141,143,147,149,"Statement",-12,23,31,33,38,46,49,50,51,52,56,57,58,"Type"],["openedBy",13,"(",25,"{",53,"["],["closedBy",14,")",26,"}",54,"]"]],propSources:[vqn],skippedNodes:[0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S3x;'S;=`4d<%lO3x~9[TO#S9X#S#T$v#T;'S9X;'S;=`9k<%lO9X~9nP;=`<%l9X~9vOj~~9{Q%`~!_!`&X#p#q:R~:WO%q~~:]Oi~~:bO{~",tokenizers:[Oqn,1,2,new mUn("j~RQYZXz{^~^O$|~~aP!P!Qd~iO$}~~",25,181)],topRules:{SourceFile:[0,3]},dynamicPrecedences:{19:1,51:-1,55:2,69:-1,108:-1},specialized:[{term:184,get:e=>bqn[e]||-1}],tokenPrec:5451}),wqn=[xut("func ${name}(${params}) ${type} {\n\t${}\n}",{label:"func",detail:"declaration",type:"keyword"}),xut("func (${receiver}) ${name}(${params}) ${type} {\n\t${}\n}",{label:"func",detail:"method declaration",type:"keyword"}),xut("var ${name} = ${value}",{label:"var",detail:"declaration",type:"keyword"}),xut("type ${name} ${type}",{label:"type",detail:"declaration",type:"keyword"}),xut("const ${name} = ${value}",{label:"const",detail:"declaration",type:"keyword"}),xut("type ${name} = ${type}",{label:"type",detail:"alias declaration",type:"keyword"}),xut("for ${init}; ${test}; ${update} {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),xut("for ${i} := range ${value} {\n\t${}\n}",{label:"for",detail:"range",type:"keyword"}),xut("select {\n\t${}\n}",{label:"select",detail:"statement",type:"keyword"}),xut("case ${}:\n${}",{label:"case",type:"keyword"}),xut("switch ${} {\n\t${}\n}",{label:"switch",detail:"statement",type:"keyword"}),xut("switch ${}.(${type}) {\n\t${}\n}",{label:"switch",detail:"type statement",type:"keyword"}),xut("if ${} {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),xut("if ${} {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),xut('import ${name} "${module}"\n${}',{label:"import",detail:"declaration",type:"keyword"})],kqn=new sit,Sqn=new Set(["SourceFile","Block","FunctionDecl","MethodDecl","FunctionLiteral","ForStatement","SwitchStatement","TypeSwitchStatement","IfStatement"]);function Tqn(e,t){return(n,r)=>{e:for(let i=n.node.firstChild,o=0,a=null;;){for(;!i;){if(!o)break e;o--,i=a.nextSibling,a=a.parent}t&&i.name==t||"SpecList"==i.name?(o++,a=i,i=i.firstChild):("DefName"==i.name&&r(i,e),i=i.nextSibling)}return!0}}const $qn={FunctionDecl:Tqn("function"),VarDecl:Tqn("var","VarSpec"),ConstDecl:Tqn("constant","ConstSpec"),TypeDecl:Tqn("type","TypeSpec"),ImportDecl:Tqn("constant","ImportSpec"),Parameter:Tqn("var"),__proto__:null};function _qn(e,t){let n=kqn.get(t);if(n)return n;let r=[],i=!0;function o(t,n){let i=e.sliceString(t.from,t.to);r.push({label:i,type:n})}return t.cursor(Frt.IncludeAnonymous).iterate(t=>{if(i)i=!1;else if(t.name){let e=$qn[t.name];if(e&&e(t,o)||Sqn.has(t.name))return!1}else if(t.to-t.from>8192){for(let n of _qn(e,t.node))r.push(n);return!1}}),kqn.set(t,r),r}const Cqn=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Qqn=["String","LineComment","BlockComment","DefName","LabelName","FieldName",".","?."],Pqn=e=>{let t=iot(e.state).resolveInner(e.pos,-1);if(Qqn.indexOf(t.name)>-1)return null;let n="VariableName"==t.name||t.to-t.from<20&&Cqn.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)Sqn.has(i.name)&&(r=r.concat(_qn(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:Cqn}},Eqn=rot.define({name:"go",parser:xqn.configure({props:[xot.add({IfStatement:Pot({except:/^\s*({|else\b)/}),LabeledStatement:Qot,"SwitchBlock SelectBlock":e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n||r?0:e.unit)},Block:_ot({closing:"}"}),BlockComment:()=>null,Statement:Pot({except:/^{/})}),Rot.add({"Block SwitchBlock SelectBlock LiteralValue InterfaceType StructType SpecList":Bot,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case\b|default\b|\})$/}});let Rqn=e=>({label:e,type:"keyword"});const Bqn="interface struct chan map package go return break continue goto fallthrough else defer range true false nil".split(" ").map(Rqn);const Iqn=Object.freeze(Object.defineProperty({__proto__:null,go:function(){let e=wqn.concat(Bqn);return new fot(Eqn,[Eqn.data.of({autocomplete:bct(Qqn,vct(e))}),Eqn.data.of({autocomplete:Pqn})])},goLanguage:Eqn,localCompletionSource:Pqn,snippets:wqn},Symbol.toStringTag,{value:"Module"})),Lqn={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},Dqn={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},Mqn={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}};function Nqn(e){return 45==e||46==e||58==e||e>=65&&e<=90||95==e||e>=97&&e<=122||e>=161}let Xqn=null,Fqn=null,Uqn=0;function zqn(e,t){let n=e.pos+t;if(Uqn==n&&Fqn==e)return Xqn;let r=e.peek(t),i="";for(;Nqn(r);)i+=String.fromCharCode(r),r=e.peek(++t);return Fqn=e,Uqn=n,Xqn=i?i.toLowerCase():r==qqn||r==Vqn?void 0:null}const qqn=63,Vqn=33;function Wqn(e,t){this.name=e,this.parent=t}const jqn=[6,10,7,8,9],Yqn=new QUn({start:null,shift:(e,t,n,r)=>jqn.indexOf(t)>-1?new Wqn(zqn(r,1)||"",e):e,reduce:(e,t)=>21==t&&e?e.parent:e,reuse(e,t,n,r){let i=t.type.id;return 6==i||37==i?new Wqn(zqn(r,1)||"",e):e},strict:!1}),Zqn=new OUn((e,t)=>{if(60!=e.next)return void(e.next<0&&t.context&&e.acceptToken(58));e.advance();let n=47==e.next;n&&e.advance();let r=zqn(e,0);if(void 0===r)return;if(!r)return e.acceptToken(n?15:14);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(11);if(i&&Dqn[i])return e.acceptToken(58,-2);if(t.dialectEnabled(0))return e.acceptToken(12);for(let e=t.context;e;e=e.parent)if(e.name==r)return;e.acceptToken(13)}else{if("script"==r)return e.acceptToken(7);if("style"==r)return e.acceptToken(8);if("textarea"==r)return e.acceptToken(9);if(Lqn.hasOwnProperty(r))return e.acceptToken(10);i&&Mqn[i]&&Mqn[i][r]?e.acceptToken(58,-1):e.acceptToken(6)}},{contextual:!0}),Gqn=new OUn(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(59);break}if(45==e.next)t++;else{if(62==e.next&&t>=2){n>=3&&e.acceptToken(59,-2);break}t=0}e.advance()}});const Hqn=new OUn((e,t)=>{if(47==e.next&&62==e.peek(1)){let n=t.dialectEnabled(1)||function(e){for(;e;e=e.parent)if("svg"==e.name||"math"==e.name)return!0;return!1}(t.context);e.acceptToken(n?5:4,2)}else 62==e.next&&e.acceptToken(4,1)});function Kqn(e,t,n){let r=2+e.length;return new OUn(i=>{for(let o=0,a=0,s=0;;s++){if(i.next<0){s&&i.acceptToken(t);break}if(0==o&&60==i.next||1==o&&47==i.next||o>=2&&o<r&&i.next==e.charCodeAt(o-2))o++,a++;else{if(o==r&&62==i.next){s>a?i.acceptToken(t,-a):i.acceptToken(n,-(a-2));break}if((10==i.next||13==i.next)&&s){i.acceptToken(t,1);break}o=a=0}i.advance()}})}const Jqn=Kqn("script",55,1),eVn=Kqn("style",56,2),tVn=Kqn("textarea",57,3),nVn=Cit({"Text RawText IncompleteTag IncompleteCloseTag":Git.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":Git.angleBracket,TagName:Git.tagName,"MismatchedCloseTag/TagName":[Git.tagName,Git.invalid],AttributeName:Git.attributeName,"AttributeValue UnquotedAttributeValue":Git.attributeValue,Is:Git.definitionOperator,"EntityReference CharacterReference":Git.character,Comment:Git.blockComment,ProcessingInst:Git.processingInstruction,DoctypeDecl:Git.documentMeta}),rVn=PUn.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO'#CtOOQW'#D['#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1G/ROOOb1G/R1G/RO)OQ&rO1G/UOOOd1G/U1G/UO)ZQ&rO1G/XOOO`1G/X1G/XO)fQ&rO1G/ZOOOa-E7]-E7]O)qQ#tO'#CzOOO`1G.w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OT~cbd!ey|!e~",goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:68,context:Yqn,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,22,31,34,37,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,30,33,36,38,"OpenTag"],["group",-10,14,15,18,19,20,21,40,41,42,43,"Entity",17,"Entity TextContent",-3,29,32,35,"TextContent Entity"],["isolate",-11,22,30,31,33,34,36,37,38,39,42,43,"ltr",-3,27,28,40,""]],propSources:[nVn],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f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4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[Jqn,eVn,tVn,Hqn,Zqn,Gqn,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function iVn(e,t){let n=Object.create(null);for(let r of e.getChildren(24)){let e=r.getChild(25),i=r.getChild(27)||r.getChild(28);e&&(n[t.read(e.from,e.to)]=i?27==i.type.id?t.read(i.from+1,i.to-1):t.read(i.from,i.to):"")}return n}function oVn(e,t){let n=e.getChild(23);return n?t.read(n.from,n.to):" "}function aVn(e,t,n){let r;for(let i of n)if(!i.attrs||i.attrs(r||(r=iVn(e.node.parent.firstChild,t))))return{parser:i.parser,bracketed:!0};return null}function sVn(e=[],t=[]){let n=[],r=[],i=[],o=[];for(let s of e){("script"==s.tag?n:"style"==s.tag?r:"textarea"==s.tag?i:o).push(s)}let a=t.length?Object.create(null):null;for(let s of t)(a[s.name]||(a[s.name]=[])).push(s);return hit((e,t)=>{let s=e.type.id;if(29==s)return aVn(e,t,n);if(32==s)return aVn(e,t,r);if(35==s)return aVn(e,t,i);if(21==s&&o.length){let n,r=e.node,i=r.firstChild,a=i&&oVn(i,t);if(a)for(let e of o)if(e.tag==a&&(!e.attrs||e.attrs(n||(n=iVn(i,t))))){let t=r.lastChild,n=38==t.type.id?t.from:r.to;if(n>i.to)return{parser:e.parser,overlay:[{from:i.to,to:n}]}}}if(a&&24==s){let n,r=e.node;if(n=r.firstChild){let e=a[t.read(n.from,n.to)];if(e)for(let n of e){if(n.tagName&&n.tagName!=oVn(r.parent,t))continue;let e=r.lastChild;if(27==e.type.id){let t=e.from+1,r=e.lastChild,i=e.to-(r&&r.isError?0:1);if(i>t)return{parser:n.parser,overlay:[{from:t,to:i}],bracketed:!0}}else if(28==e.type.id)return{parser:n.parser,overlay:[{from:e.from,to:e.to}]}}}}return null})}const lVn=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],cVn=new QUn({start:!1,shift:(e,t)=>5==t||6==t||320==t?e:321==t,strict:!1}),uVn=new OUn((e,t)=>{let{next:n}=e;(125==n||-1==n||t.context)&&e.acceptToken(318)},{contextual:!0,fallback:!0}),hVn=new OUn((e,t)=>{let n,{next:r}=e;lVn.indexOf(r)>-1||(47!=r||47!=(n=e.peek(1))&&42!=n)&&(125==r||59==r||-1==r||t.context||e.acceptToken(316))},{contextual:!0}),dVn=new OUn((e,t)=>{91!=e.next||t.context||e.acceptToken(317)},{contextual:!0}),pVn=new OUn((e,t)=>{let{next:n}=e;if(43==n||45==n){if(e.advance(),n==e.next){e.advance();let n=!t.context&&t.canShift(1);e.acceptToken(n?1:2)}}else 63==n&&46==e.peek(1)&&(e.advance(),e.advance(),(e.next<48||e.next>57)&&e.acceptToken(3))},{contextual:!0});function fVn(e,t){return e>=65&&e<=90||e>=97&&e<=122||95==e||e>=192||!t&&e>=48&&e<=57}const gVn=new OUn((e,t)=>{if(60!=e.next||!t.dialectEnabled(0))return;if(e.advance(),47==e.next)return;let n=0;for(;lVn.indexOf(e.next)>-1;)e.advance(),n++;if(fVn(e.next,!0)){for(e.advance(),n++;fVn(e.next,!1);)e.advance(),n++;for(;lVn.indexOf(e.next)>-1;)e.advance(),n++;if(44==e.next)return;for(let t=0;;t++){if(7==t){if(!fVn(e.next,!0))return;break}if(e.next!="extends".charCodeAt(t))break;e.advance(),n++}}e.acceptToken(4,-n)}),mVn=Cit({"get set async static":Git.modifier,"for while do if else switch try catch finally return throw break continue default case defer":Git.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":Git.operatorKeyword,"let var const using function class extends":Git.definitionKeyword,"import export from":Git.moduleKeyword,"with debugger new":Git.keyword,TemplateString:Git.special(Git.string),super:Git.atom,BooleanLiteral:Git.bool,this:Git.self,null:Git.null,Star:Git.modifier,VariableName:Git.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Git.function(Git.variableName),VariableDefinition:Git.definition(Git.variableName),Label:Git.labelName,PropertyName:Git.propertyName,PrivatePropertyName:Git.special(Git.propertyName),"CallExpression/MemberExpression/PropertyName":Git.function(Git.propertyName),"FunctionDeclaration/VariableDefinition":Git.function(Git.definition(Git.variableName)),"ClassDeclaration/VariableDefinition":Git.definition(Git.className),"NewExpression/VariableName":Git.className,PropertyDefinition:Git.definition(Git.propertyName),PrivatePropertyDefinition:Git.definition(Git.special(Git.propertyName)),UpdateOp:Git.updateOperator,"LineComment Hashbang":Git.lineComment,BlockComment:Git.blockComment,Number:Git.number,String:Git.string,Escape:Git.escape,ArithOp:Git.arithmeticOperator,LogicOp:Git.logicOperator,BitOp:Git.bitwiseOperator,CompareOp:Git.compareOperator,RegExp:Git.regexp,Equals:Git.definitionOperator,Arrow:Git.function(Git.punctuation),": Spread":Git.punctuation,"( )":Git.paren,"[ ]":Git.squareBracket,"{ }":Git.brace,"InterpolationStart InterpolationEnd":Git.special(Git.brace),".":Git.derefOperator,", ;":Git.separator,"@":Git.meta,TypeName:Git.typeName,TypeDefinition:Git.definition(Git.typeName),"type enum interface implements namespace module declare":Git.definitionKeyword,"abstract global Privacy readonly override":Git.modifier,"is keyof unique infer asserts":Git.operatorKeyword,JSXAttributeValue:Git.attributeValue,JSXText:Git.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Git.angleBracket,"JSXIdentifier JSXNameSpacedName":Git.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Git.attributeName,"JSXBuiltin/JSXIdentifier":Git.standard(Git.tagName)}),OVn={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:235,private:235,protected:235,readonly:237,instanceof:256,satisfies:259,import:292,keyof:349,unique:353,infer:359,asserts:395,is:397,abstract:417,implements:419,type:421,let:424,var:426,using:429,interface:435,enum:439,namespace:445,module:447,declare:451,global:455,defer:471,for:476,of:485,while:488,with:492,do:496,if:500,else:502,switch:506,case:512,try:518,catch:522,finally:526,return:530,throw:534,break:538,continue:542,debugger:546},AVn={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:401},yVn={__proto__:null,"<":193},vVn=PUn.deserialize({version:14,states:"$F|Q%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[O1PQ`O'#EXOOQO'#Ep'#EpOOQO'#Il'#IlO1XQ`O'#GsO1dQ`O'#EoO1iQ`O'#EoO3hQ!0MxO'#JrO6[Q!0MxO'#JsO6uQ`O'#F]O6zQ,UO'#FtOOQ!0Lf'#Ff'#FfO7VO7dO'#FfO9XQMhO'#F|O9`Q`O'#F{OOQ!0Lf'#Js'#JsOOQ!0Lb'#Jr'#JrO9eQ`O'#GwOOQ['#K_'#K_O9pQ`O'#IYO9uQ!0LrO'#IZOOQ['#J`'#J`OOQ['#I_'#I_Q`QlOOQ`QlOOO9}Q!L^O'#DvO:UQlO'#EOO:]QlO'#EQO9kQ`O'#GsO:dQMhO'#CoO:rQ`O'#EnO:}Q`O'#EyO;hQMhO'#FeO;xQ`O'#GsOOQO'#K`'#K`O;}Q`O'#K`O<]Q`O'#G{O<]Q`O'#G|O<]Q`O'#HOO9kQ`O'#HRO=SQ`O'#HUO>kQ`O'#CeO>{Q`O'#HcO?TQ`O'#HiO?TQ`O'#HkO`QlO'#HmO?TQ`O'#HoO?TQ`O'#HrO?YQ`O'#HxO?_Q!0LsO'#IOO%[Q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$l)nR4V/UT*_$x*bT*h${*YQ0w+fQ1g,VQ3_.fQ5t1iQ6P1qQ7X3cQ8r6SQ9c7WQ:^8qQ:p9bQ;Z:`Q;c:rQ;n;[R;q;dnqOXst!Z#d%m&r&t&u&w,s,x2[2_Q&l!VR,h&itmOXst!U!V!Z#d%m&i&r&t&u&w,s,x2[2_R,o&oT%lm,oR1k,XR,g&gQ&U|S+}&V&WR1^,OR+s&PT&p!W&sT&q!W&sT2^,x2_",nodeNames:"⚠ ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration defer ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:380,context:cVn,nodeProps:[["isolate",-8,5,6,14,37,39,51,53,55,""],["group",-26,9,17,19,68,207,211,215,216,218,221,224,234,237,243,245,247,249,252,258,264,266,268,270,272,274,275,"Statement",-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,120,121,136,139,141,142,143,144,145,147,148,167,169,171,"Expression",-23,31,33,37,41,43,45,173,175,177,178,180,181,182,184,185,186,188,189,190,201,203,205,206,"Type",-3,88,103,109,"ClassItem"],["openedBy",23,"<",38,"InterpolationStart",56,"[",60,"{",73,"(",160,"JSXStartCloseTag"],["closedBy",-2,24,168,">",40,"InterpolationEnd",50,"]",61,"}",74,")",165,"JSXEndTag"]],propSources:[mVn],skippedNodes:[0,5,6,278],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q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[{term:327,get:e=>OVn[e]||-1},{term:343,get:e=>AVn[e]||-1},{term:95,get:e=>yVn[e]||-1}],tokenPrec:15201}),bVn=[xut("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),xut("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),xut("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),xut("do {\n\t${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),xut("while (${}) {\n\t${}\n}",{label:"while",detail:"loop",type:"keyword"}),xut("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),xut("if (${}) {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),xut("if (${}) {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),xut("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),xut('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),xut('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],xVn=bVn.concat([xut("interface ${name} {\n\t${}\n}",{label:"interface",detail:"definition",type:"keyword"}),xut("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),xut("enum ${name} {\n\t${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),wVn=new sit,kVn=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function SVn(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const TVn=["FunctionDeclaration"],$Vn={FunctionDeclaration:SVn("function"),ClassDeclaration:SVn("class"),ClassExpression:()=>!0,EnumDeclaration:SVn("constant"),TypeAliasDeclaration:SVn("type"),NamespaceDeclaration:SVn("namespace"),VariableDefinition(e,t){e.matchContext(TVn)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function _Vn(e,t){let n=wVn.get(t);if(n)return n;let r=[],i=!0;function o(t,n){let i=e.sliceString(t.from,t.to);r.push({label:i,type:n})}return t.cursor(Frt.IncludeAnonymous).iterate(t=>{if(i)i=!1;else if(t.name){let e=$Vn[t.name];if(e&&e(t,o)||kVn.has(t.name))return!1}else if(t.to-t.from>8192){for(let n of _Vn(e,t.node))r.push(n);return!1}}),wVn.set(t,r),r}const CVn=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,QVn=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function PVn(e){let t=iot(e.state).resolveInner(e.pos,-1);if(QVn.indexOf(t.name)>-1)return null;let n="VariableName"==t.name||t.to-t.from<20&&CVn.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)kVn.has(i.name)&&(r=r.concat(_Vn(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:CVn}}function EVn(e,t,n){var r;let i=[];for(;;){let o,a=t.firstChild;if("VariableName"==(null==a?void 0:a.name))return i.push(e(a)),{path:i.reverse(),name:n};if("MemberExpression"!=(null==a?void 0:a.name)||"PropertyName"!=(null===(r=o=a.lastChild)||void 0===r?void 0:r.name))return null;i.push(e(o)),t=a}}function RVn(e){let t=t=>e.state.doc.sliceString(t.from,t.to),n=iot(e.state).resolveInner(e.pos,-1);return"PropertyName"==n.name?EVn(t,n.parent,t(n)):"."!=n.name&&"?."!=n.name||"MemberExpression"!=n.parent.name?QVn.indexOf(n.name)>-1?null:"VariableName"==n.name||n.to-n.from<20&&CVn.test(t(n))?{path:[],name:t(n)}:"MemberExpression"==n.name?EVn(t,n,""):e.explicit?{path:[],name:""}:null:EVn(t,n.parent,"")}const BVn=rot.define({name:"javascript",parser:vVn.configure({props:[xot.add({IfStatement:Pot({except:/^\s*({|else\b)/}),TryStatement:Pot({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Qot,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:_ot({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":Pot({except:/^\s*{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag":e=>e.column(e.node.from)+e.unit}),Rot.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Bot,BlockComment:e=>({from:e.from+2,to:e.to-2}),JSXElement(e){let t=e.firstChild;if(!t||"JSXSelfClosingTag"==t.name)return null;let n=e.lastChild;return{from:t.to,to:n.type.isError?e.to:n.from}},"JSXSelfClosingTag JSXOpenTag"(e){var t;let n=null===(t=e.firstChild)||void 0===t?void 0:t.nextSibling,r=e.lastChild;return!n||n.type.isError?null:{from:n.to,to:r.type.isError?e.to:r.from}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),IVn={test:e=>/^JSX/.test(e.name),facet:Jit({commentTokens:{block:{open:"{/*",close:"*/}"}}})},LVn=BVn.configure({dialect:"ts"},"typescript"),DVn=BVn.configure({dialect:"jsx",props:[eot.add(e=>e.isTop?[IVn]:void 0)]}),MVn=BVn.configure({dialect:"jsx ts",props:[eot.add(e=>e.isTop?[IVn]:void 0)]},"typescript");let NVn=e=>({label:e,type:"keyword"});const XVn="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(NVn),FVn=XVn.concat(["declare","implements","private","protected","public"].map(NVn));function UVn(e={}){let t=e.jsx?e.typescript?MVn:DVn:e.typescript?LVn:BVn,n=e.typescript?xVn.concat(FVn):bVn.concat(XVn);return new fot(t,[BVn.data.of({autocomplete:bct(QVn,vct(n))}),BVn.data.of({autocomplete:PVn}),e.jsx?VVn:[]])}function zVn(e,t,n=e.length){for(let r=null==t?void 0:t.firstChild;r;r=r.nextSibling)if("JSXIdentifier"==r.name||"JSXBuiltin"==r.name||"JSXNamespacedName"==r.name||"JSXMemberExpression"==r.name)return e.sliceString(r.from,Math.min(r.to,n));return""}const qVn="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),VVn=vtt.inputHandler.of((e,t,n,r,i)=>{if((qVn?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||">"!=r&&"/"!=r||!BVn.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:a}=o,s=a.changeByRange(e=>{var t;let n,{head:i}=e,o=iot(a).resolveInner(i-1,-1);if("JSXStartTag"==o.name&&(o=o.parent),a.doc.sliceString(i-1,i)!=r||"JSXAttributeValue"==o.name&&o.to>i);else{if(">"==r&&"JSXFragmentTag"==o.name)return{range:e,changes:{from:i,insert:"</>"}};if("/"==r&&"JSXStartCloseTag"==o.name){let e=o.parent,r=e.parent;if(r&&e.from==i-2&&((n=zVn(a.doc,r.firstChild,i))||"JSXFragmentTag"==(null===(t=r.firstChild)||void 0===t?void 0:t.name))){let e=`${n}>`;return{range:Z3e.cursor(i+e.length,-1),changes:{from:i,insert:e}}}}else if(">"==r){let t=function(e){for(;;){if("JSXOpenTag"==e.name||"JSXSelfClosingTag"==e.name||"JSXFragmentTag"==e.name)return e;if("JSXEscape"==e.name||!e.parent)return null;e=e.parent}}(o);if(t&&"JSXOpenTag"==t.name&&!/^\/?>|^<\//.test(a.doc.sliceString(i,i+2))&&(n=zVn(a.doc,t,i)))return{range:e,changes:{from:i,insert:`</${n}>`}}}}return{range:e}});return!s.changes.empty&&(e.dispatch([o,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});function WVn(e,t,n,r){return n.line(e+r.line).from+t+(1==e?r.col-1:-1)}function jVn(e,t,n){let r=WVn(e.line,e.column,t,n),i={from:r,to:null!=e.endLine&&1!=e.endColumn?WVn(e.endLine,e.endColumn,t,n):r,message:e.message,source:e.ruleId?"eslint:"+e.ruleId:"eslint",severity:1==e.severity?"warning":"error"};if(e.fix){let{range:t,text:o}=e.fix,a=t[0]+n.pos-r,s=t[1]+n.pos-r;i.actions=[{name:"fix",apply(e,t){e.dispatch({changes:{from:t+a,to:t+s,insert:o},scrollIntoView:!0})}}]}return i}const YVn=Object.freeze(Object.defineProperty({__proto__:null,autoCloseTags:VVn,completionPath:RVn,esLint:function(e,t){return t||(t={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:!0,node:!0,es6:!0,es2015:!0,es2017:!0,es2020:!0},rules:{}},e.getRules().forEach((e,n)=>{var r;(null===(r=e.meta.docs)||void 0===r?void 0:r.recommended)&&(t.rules[n]=2)})),n=>{let{state:r}=n,i=[];for(let{from:o,to:a}of BVn.findRegions(r)){let n=r.doc.lineAt(o),s={line:n.number-1,col:o-n.from,pos:o};for(let l of e.verify(r.sliceDoc(o,a),t))i.push(jVn(l,r.doc,s))}return i}},javascript:UVn,javascriptLanguage:BVn,jsxLanguage:DVn,localCompletionSource:PVn,scopeCompletionSource:function(e){let t=new Map;return n=>{let r=RVn(n);if(!r)return null;let i=e;for(let e of r.path)if(i=i[e],!i)return null;let o=t.get(i);return o||t.set(i,o=function(e,t){let n=e,r=[],i=new Set;for(let o=0;;o++){for(let s of(Object.getOwnPropertyNames||Object.keys)(e)){if(!/^[a-zA-Z_$\xaa-\uffdc][\w$\xaa-\uffdc]*$/.test(s)||i.has(s))continue;let e;i.add(s);try{e=n[s]}catch(sdr){continue}r.push({label:s,type:"function"==typeof e?/^[A-Z]/.test(s)?"class":t?"function":"method":t?"variable":"property",boost:-o})}let a=Object.getPrototypeOf(e);if(!a)return r;e=a}}(i,!r.path.length)),{from:n.pos-r.name.length,options:o,validFor:CVn}}},snippets:bVn,tsxLanguage:MVn,typescriptLanguage:LVn,typescriptSnippets:xVn},Symbol.toStringTag,{value:"Module"})),ZVn=["_blank","_self","_top","_parent"],GVn=["ascii","utf-8","utf-16","latin1","latin1"],HVn=["get","post","put","delete"],KVn=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],JVn=["true","false"],eWn={},tWn={a:{attrs:{href:null,ping:null,type:null,media:null,target:ZVn,hreflang:null}},abbr:eWn,address:eWn,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:eWn,aside:eWn,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:eWn,base:{attrs:{href:null,target:ZVn}},bdi:eWn,bdo:eWn,blockquote:{attrs:{cite:null}},body:eWn,br:eWn,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:KVn,formmethod:HVn,formnovalidate:["novalidate"],formtarget:ZVn,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:eWn,center:eWn,cite:eWn,code:eWn,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:eWn,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:eWn,div:eWn,dl:eWn,dt:eWn,em:eWn,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:eWn,figure:eWn,footer:eWn,form:{attrs:{action:null,name:null,"accept-charset":GVn,autocomplete:["on","off"],enctype:KVn,method:HVn,novalidate:["novalidate"],target:ZVn}},h1:eWn,h2:eWn,h3:eWn,h4:eWn,h5:eWn,h6:eWn,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:eWn,hgroup:eWn,hr:eWn,html:{attrs:{manifest:null}},i:eWn,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:KVn,formmethod:HVn,formnovalidate:["novalidate"],formtarget:ZVn,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:eWn,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:eWn,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:eWn,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:GVn,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:eWn,noscript:eWn,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:eWn,param:{attrs:{name:null,value:null}},pre:eWn,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:eWn,rt:eWn,ruby:eWn,samp:eWn,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:GVn}},section:eWn,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:eWn,source:{attrs:{src:null,type:null,media:null}},span:eWn,strong:eWn,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:eWn,summary:eWn,sup:eWn,table:eWn,tbody:eWn,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:eWn,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:eWn,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:eWn,time:{attrs:{datetime:null}},title:eWn,tr:eWn,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:eWn,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:eWn},nWn={accesskey:null,class:null,contenteditable:JVn,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:JVn,autocorrect:JVn,autocapitalize:JVn,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":JVn,"aria-autocomplete":["inline","list","both","none"],"aria-busy":JVn,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":JVn,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":JVn,"aria-hidden":JVn,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":JVn,"aria-multiselectable":JVn,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":JVn,"aria-relevant":null,"aria-required":JVn,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},rWn="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(e=>"on"+e);for(let c of rWn)nWn[c]=null;class iWn{constructor(e,t){this.tags={...tWn,...e},this.globalAttrs={...nWn,...t},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}function oWn(e,t,n=e.length){if(!t)return"";let r=t.firstChild,i=r&&r.getChild("TagName");return i?e.sliceString(i.from,Math.min(i.to,n)):""}function aWn(e,t=!1){for(;e;e=e.parent)if("Element"==e.name){if(!t)return e;t=!1}return null}function sWn(e,t,n){let r=n.tags[oWn(e,aWn(t))];return(null==r?void 0:r.children)||n.allTags}function lWn(e,t){let n=[];for(let r=aWn(t);r&&!r.type.isTop;r=aWn(r.parent)){let i=oWn(e,r);if(i&&"CloseTag"==r.lastChild.name)break;i&&n.indexOf(i)<0&&("EndTag"==t.name||t.from>=r.firstChild.to)&&n.push(i)}return n}iWn.default=new iWn;const cWn=/^[:\-\.\w\u00b7-\uffff]*$/;function uWn(e,t,n,r,i){let o=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",a=aWn(n,"StartTag"==n.name||"TagName"==n.name);return{from:r,to:i,options:sWn(e.doc,a,t).map(e=>({label:e,type:"type"})).concat(lWn(e.doc,n).map((e,t)=>({label:"/"+e,apply:"/"+e+o,type:"type",boost:99-t}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function hWn(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:lWn(e.doc,t).map((e,t)=>({label:e,apply:e+i,type:"type",boost:99-t})),validFor:cWn}}function dWn(e,t){let{state:n,pos:r}=t,i=iot(n).resolveInner(r,-1),o=i.resolve(r);for(let a,s=r;o==i&&(a=i.childBefore(s));){let e=a.lastChild;if(!e||!e.type.isError||e.from<e.to)break;o=i=a,s=e.from}return"TagName"==i.name?i.parent&&/CloseTag$/.test(i.parent.name)?hWn(n,i,i.from,r):uWn(n,e,i,i.from,r):"StartTag"==i.name||"IncompleteTag"==i.name?uWn(n,e,i,r,r):"StartCloseTag"==i.name||"IncompleteCloseTag"==i.name?hWn(n,i,r,r):"OpenTag"==i.name||"SelfClosingTag"==i.name||"AttributeName"==i.name?function(e,t,n,r,i){let o=aWn(n),a=o?t.tags[oWn(e.doc,o)]:null,s=a&&a.attrs?Object.keys(a.attrs):[];return{from:r,to:i,options:(a&&!1===a.globalAttrs?s:s.length?s.concat(t.globalAttrNames):t.globalAttrNames).map(e=>({label:e,type:"property"})),validFor:cWn}}(n,e,i,"AttributeName"==i.name?i.from:r,r):"Is"==i.name||"AttributeValue"==i.name||"UnquotedAttributeValue"==i.name?function(e,t,n,r,i){var o;let a,s=null===(o=n.parent)||void 0===o?void 0:o.getChild("AttributeName"),l=[];if(s){let o=e.sliceDoc(s.from,s.to),c=t.globalAttrs[o];if(!c){let r=aWn(n),i=r?t.tags[oWn(e.doc,r)]:null;c=(null==i?void 0:i.attrs)&&i.attrs[o]}if(c){let t=e.sliceDoc(r,i).toLowerCase(),n='"',o='"';/^['"]/.test(t)?(a='"'==t[0]?/^[^"]*$/:/^[^']*$/,n="",o=e.sliceDoc(i,i+1)==t[0]?"":t[0],t=t.slice(1),r++):a=/^[^\s<>='"]*$/;for(let e of c)l.push({label:e,apply:n+e+o,type:"constant"})}}return{from:r,to:i,options:l,validFor:a}}(n,e,i,"Is"==i.name?r:i.from,r):!t.explicit||"Element"!=o.name&&"Text"!=o.name&&"Document"!=o.name?null:function(e,t,n,r){let i=[],o=0;for(let a of sWn(e.doc,n,t))i.push({label:"<"+a,type:"type"});for(let a of lWn(e.doc,n))i.push({label:"</"+a+">",type:"type",boost:99-o++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}(n,e,i,r)}function pWn(e){return dWn(iWn.default,e)}function fWn(e){let{extraTags:t,extraGlobalAttributes:n}=e,r=n||t?new iWn(t,n):iWn.default;return e=>dWn(r,e)}const gWn=BVn.parser.configure({top:"SingleExpression"}),mWn=[{tag:"script",attrs:e=>"text/typescript"==e.type||"ts"==e.lang,parser:LVn.parser},{tag:"script",attrs:e=>"text/babel"==e.type||"text/jsx"==e.type,parser:DVn.parser},{tag:"script",attrs:e=>"text/typescript-jsx"==e.type,parser:MVn.parser},{tag:"script",attrs:e=>/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type),parser:gWn},{tag:"script",attrs:e=>!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type),parser:BVn.parser},{tag:"style",attrs:e=>(!e.lang||"css"==e.lang)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type)),parser:fqn.parser}],OWn=[{name:"style",parser:fqn.parser.configure({top:"Styles"})}].concat(rWn.map(e=>({name:e,parser:BVn.parser}))),AWn=rot.define({name:"html",parser:rVn.configure({props:[xot.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit,Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length<e.node.to)return e.continue();let t,n=null;for(let r=e.node;;){let e=r.lastChild;if(!e||"Element"!=e.name||e.to!=r.to)break;n=r=e}return n&&(!(t=n.lastChild)||"CloseTag"!=t.name&&"SelfClosingTag"!=t.name)?e.lineIndent(n.from)+e.unit:null}}),Rot.add({Element(e){let t=e.firstChild,n=e.lastChild;return t&&"OpenTag"==t.name?{from:t.to,to:"CloseTag"==n.name?n.from:e.to}:null}}),bat.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),yWn=AWn.configure({wrap:sVn(mWn,OWn)});function vWn(e={}){let t,n="";!1===e.matchClosingTags&&(n="noMatch"),!0===e.selfClosingTags&&(n=(n?n+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(t=sVn((e.nestedLanguages||[]).concat(mWn),(e.nestedAttributes||[]).concat(OWn)));let r=t?AWn.configure({wrap:t,dialect:n}):n?yWn.configure({dialect:n}):yWn;return new fot(r,[yWn.data.of({autocomplete:fWn(e)}),!1!==e.autoCloseTags?xWn:[],UVn().support,gqn().support])}const bWn=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),xWn=vtt.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||">"!=r&&"/"!=r||!yWn.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:a}=o,s=a.changeByRange(e=>{var t,n,i;let o,s=a.doc.sliceString(e.from-1,e.to)==r,{head:l}=e,c=iot(a).resolveInner(l,-1);if(s&&">"==r&&"EndTag"==c.name){let r=c.parent;if("CloseTag"!=(null===(n=null===(t=r.parent)||void 0===t?void 0:t.lastChild)||void 0===n?void 0:n.name)&&(o=oWn(a.doc,r.parent,l))&&!bWn.has(o)){return{range:e,changes:{from:l,to:l+(">"===a.doc.sliceString(l,l+1)?1:0),insert:`</${o}>`}}}}else if(s&&"/"==r&&"IncompleteCloseTag"==c.name){let e=c.parent;if(c.from==l-2&&"CloseTag"!=(null===(i=e.lastChild)||void 0===i?void 0:i.name)&&(o=oWn(a.doc,e,l))&&!bWn.has(o)){let e=l+(">"===a.doc.sliceString(l,l+1)?1:0),t=`${o}>`;return{range:Z3e.cursor(l+t.length,-1),changes:{from:l,to:e,insert:t}}}}return{range:e}});return!s.changes.empty&&(e.dispatch([o,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),wWn=Object.freeze(Object.defineProperty({__proto__:null,autoCloseTags:xWn,html:vWn,htmlCompletionSource:pWn,htmlCompletionSourceWith:fWn,htmlLanguage:yWn},Symbol.toStringTag,{value:"Module"})),kWn=Cit({null:Git.null,instanceof:Git.operatorKeyword,this:Git.self,"new super assert open to with void":Git.keyword,"class interface extends implements enum var":Git.definitionKeyword,"module package import":Git.moduleKeyword,"switch while for if else case default do break continue return try catch finally throw":Git.controlKeyword,"requires exports opens uses provides public private protected static transitive abstract final strictfp synchronized native transient volatile throws":Git.modifier,IntegerLiteral:Git.integer,FloatingPointLiteral:Git.float,"StringLiteral TextBlock":Git.string,CharacterLiteral:Git.character,LineComment:Git.lineComment,BlockComment:Git.blockComment,BooleanLiteral:Git.bool,PrimitiveType:Git.standard(Git.typeName),TypeName:Git.typeName,Identifier:Git.variableName,"MethodName/Identifier":Git.function(Git.variableName),Definition:Git.definition(Git.variableName),ArithOp:Git.arithmeticOperator,LogicOp:Git.logicOperator,BitOp:Git.bitwiseOperator,CompareOp:Git.compareOperator,AssignOp:Git.definitionOperator,UpdateOp:Git.updateOperator,Asterisk:Git.punctuation,Label:Git.labelName,"( )":Git.paren,"[ ]":Git.squareBracket,"{ }":Git.brace,".":Git.derefOperator,", ;":Git.separator}),SWn={__proto__:null,true:34,false:34,null:42,void:46,byte:48,short:48,int:48,long:48,char:48,float:48,double:48,boolean:48,extends:62,super:64,class:76,this:78,new:84,public:100,protected:102,private:104,abstract:106,static:108,final:110,strictfp:112,default:114,synchronized:116,native:118,transient:120,volatile:122,throws:150,implements:160,interface:166,enum:176,instanceof:238,open:267,module:269,requires:274,transitive:276,exports:278,to:280,opens:282,uses:284,provides:286,with:288,package:292,import:296,if:308,else:310,while:314,for:318,var:325,assert:332,switch:336,case:342,do:346,break:350,continue:354,return:358,throw:364,try:368,catch:372,finally:380},TWn=PUn.deserialize({version:14,states:"##jQ]QPOOQ$wQPOOO(bQQO'#H^O*iQQO'#CbOOQO'#Cb'#CbO*pQPO'#CaO*xOSO'#CpOOQO'#Hc'#HcOOQO'#Cu'#CuO,eQPO'#D_O-OQQO'#HmOOQO'#Hm'#HmO/gQQO'#HhO/nQQO'#HhOOQO'#Hh'#HhOOQO'#Hg'#HgO1rQPO'#DUO2PQPO'#GnO4wQPO'#D_O5OQPO'#DzO*pQPO'#E[O5qQPO'#E[OOQO'#DV'#DVO7SQQO'#HaO9^QQO'#EeO9eQPO'#EdO9jQPO'#EfOOQO'#Hb'#HbO7jQQO'#HbO:pQQO'#FhO:wQPO'#ExO:|QPO'#E}O:|QPO'#FPOOQO'#Ha'#HaOOQO'#HY'#HYOOQO'#Gh'#GhOOQO'#HX'#HXO<^QPO'#FiOOQO'#HW'#HWOOQO'#Gg'#GgQ]QPOOOOQO'#Hs'#HsO<cQPO'#HsO<hQPO'#D{O<hQPO'#EVO<hQPO'#EQO<pQPO'#HpO=RQQO'#EfO*pQPO'#C`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*zT.s,u-aj#UY!W!e#n#s%V%w&W)y*T*z,u-aU&V#`&`(}Q)x&[Q+e'|Q+q(`Q-s+fQ.O+rQ/g.WR0U/hQ)i%vQ,g)fR/o.mR,h)f`!jP!o'^'h*q+O-^/OT%W!g*|R%]!hW%U!e%V*z-aQ(z%^R,V({S#d`%bR&a#eQ)X%gT*t'`'iR*y'e[!lP!o'^*q-^/OR%X!gR#h`R,b)]R)a%kT-j+]-kQ/V-mR/z/WR/z/X",nodeNames:"⚠ LineComment BlockComment Program ModuleDeclaration MarkerAnnotation Identifier ScopedIdentifier . Annotation ) ( AnnotationArgumentList AssignmentExpression FieldAccess IntegerLiteral FloatingPointLiteral BooleanLiteral CharacterLiteral StringLiteral TextBlock null ClassLiteral void PrimitiveType TypeName ScopedTypeName GenericType TypeArguments AnnotatedType Wildcard extends super , ArrayType ] Dimension [ class this ParenthesizedExpression ObjectCreationExpression new ArgumentList } { ClassBody ; FieldDeclaration Modifiers public protected private abstract static final strictfp default synchronized native transient volatile VariableDeclarator Definition AssignOp ArrayInitializer MethodDeclaration TypeParameters TypeParameter TypeBound FormalParameters ReceiverParameter FormalParameter SpreadParameter Throws throws Block ClassDeclaration Superclass SuperInterfaces implements InterfaceTypeList InterfaceDeclaration interface ExtendsInterfaces InterfaceBody ConstantDeclaration EnumDeclaration enum EnumBody EnumConstant EnumBodyDeclarations AnnotationTypeDeclaration AnnotationTypeBody AnnotationTypeElementDeclaration StaticInitializer ConstructorDeclaration ConstructorBody ExplicitConstructorInvocation ArrayAccess MethodInvocation MethodName MethodReference ArrayCreationExpression Dimension AssignOp BinaryExpression CompareOp CompareOp LogicOp LogicOp BitOp BitOp BitOp ArithOp ArithOp ArithOp BitOp InstanceofExpression instanceof LambdaExpression InferredParameters TernaryExpression LogicOp : UpdateExpression UpdateOp UnaryExpression LogicOp BitOp CastExpression ElementValueArrayInitializer ElementValuePair open module ModuleBody ModuleDirective requires transitive exports to opens uses provides with PackageDeclaration package ImportDeclaration import Asterisk ExpressionStatement LabeledStatement Label IfStatement if else WhileStatement while ForStatement for ForSpec LocalVariableDeclaration var EnhancedForStatement ForSpec AssertStatement assert SwitchStatement switch SwitchBlock SwitchLabel case DoStatement do BreakStatement break ContinueStatement continue ReturnStatement return SynchronizedStatement ThrowStatement throw TryStatement try CatchClause catch CatchFormalParameter CatchType FinallyClause finally TryWithResourcesStatement ResourceSpecification Resource ClassContent",maxTerm:276,nodeProps:[["isolate",-4,1,2,18,19,""],["group",-26,4,47,76,77,82,87,92,145,147,150,151,153,156,158,161,163,165,167,172,174,176,178,180,181,183,191,"Statement",-25,6,13,14,15,16,17,18,19,20,21,22,39,40,41,99,100,102,103,106,118,120,122,125,127,130,"Expression",-7,23,24,25,26,27,29,34,"Type"],["openedBy",10,"(",44,"{"],["closedBy",11,")",45,"}"]],propSources:[kWn],skippedNodes:[0,1,2],repeatNodeCount:28,tokenData:"#'f_R!_OX%QXY'fYZ)bZ^'f^p%Qpq'fqr*|rs,^st%Qtu4euv5zvw7[wx8rxyAZyzAwz{Be{|CZ|}Dq}!OE_!O!PFx!P!Q! r!Q!R!,h!R![!0`![!]!>p!]!^!@Q!^!_!@n!_!`!BX!`!a!B{!a!b!Di!b!c!EX!c!}!LT!}#O!Mj#O#P%Q#P#Q!NW#Q#R!Nt#R#S4e#S#T%Q#T#o4e#o#p# h#p#q#!U#q#r##n#r#s#$[#s#y%Q#y#z'f#z$f%Q$f$g'f$g#BY4e#BY#BZ#$x#BZ$IS4e$IS$I_#$x$I_$I|4e$I|$JO#$x$JO$JT4e$JT$JU#$x$JU$KV4e$KV$KW#$x$KW&FU4e&FU&FV#$x&FV;'S4e;'S;=`5t<%lO4eS%VV&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QS%qO&YSS%tVOY&ZYZ%lZr&Zrs&ys;'S&Z;'S;=`'`<%lO&ZS&^VOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QS&vP;=`<%l%QS&|UOY&ZYZ%l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V#$x&FV;'S4e;'S;=`5t<%lO4e",tokenizers:[0,1,2,3],topRules:{Program:[0,3],ClassContent:[1,194]},dynamicPrecedences:{27:1,232:-1,243:-1},specialized:[{term:231,get:e=>SWn[e]||-1}],tokenPrec:7144}),$Wn=rot.define({name:"java",parser:TWn.configure({props:[xot.add({IfStatement:Pot({except:/^\s*({|else\b)/}),TryStatement:Pot({except:/^\s*({|catch|finally)\b/}),LabeledStatement:Qot,SwitchBlock:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:_ot({closing:"}"}),BlockComment:()=>null,Statement:Pot({except:/^{/})}),Rot.add({"Block SwitchBlock ClassBody ElementValueArrayInitializer ModuleBody EnumBody ConstructorBody InterfaceBody ArrayInitializer":Bot,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/}});const _Wn=Object.freeze(Object.defineProperty({__proto__:null,java:function(){return new fot($Wn)},javaLanguage:$Wn},Symbol.toStringTag,{value:"Module"}));function CWn(e){return e>=65&&e<=90||e>=97&&e<=122}const QWn=new OUn(e=>{let t=e.pos;for(;;){let{next:n}=e;if(n<0)break;if(123==n){let n=e.peek(1);if(123==n){if(e.pos>t)break;return void e.acceptToken(1,2)}if(35==n){if(e.pos>t)break;return void e.acceptToken(2,2)}if(37==n){if(e.pos>t)break;let n=2,r=2;for(;;){let t=e.peek(n);if(32==t||10==t)++n;else if(35==t)for(++n;;){let t=e.peek(n);if(t<0||10==t)break;n++}else{if(45!=t||2!=r)return void e.acceptToken(3,r);r=++n}}}}if(e.advance(),10==n)break}e.pos>t&&e.acceptToken(155)});function PWn(e,t,n){return new OUn(r=>{let i=r.pos;for(;;){let{next:t}=r;if(123==t&&37==r.peek(1)){let t=2;for(;;t++){let e=r.peek(t);if(32!=e&&10!=e)break}let o="";for(;;t++){let e=r.peek(t);if(!CWn(e))break;o+=String.fromCharCode(e)}if(o==e){if(r.pos>i)break;r.acceptToken(n,2);break}}else if(t<0)break;if(r.advance(),10==t)break}r.pos>i&&r.acceptToken(t)})}const EWn=PWn("endraw",156,4),RWn={__proto__:null,in:38,is:40,and:46,or:48,not:52,if:78,else:80,true:98,false:98,self:100,super:102,loop:104,recursive:136,scoped:160,required:162,as:256,import:260,ignore:268,missing:270,with:272,without:274,context:276},BWn={__proto__:null,if:112,elif:118,else:122,endif:126,for:132,endfor:140,raw:146,endraw:152,block:158,endblock:166,macro:172,endmacro:182,call:188,endcall:192,filter:198,endfilter:202,set:208,endset:212,trans:218,pluralize:222,endtrans:226,with:232,endwith:236,autoescape:242,endautoescape:246,import:254,from:258,include:266},IWn=PUn.deserialize({version:14,states:"!*dQVOPOOOOOP'#F`'#F`OeOTO'#CbOvQSO'#CdO!kOPO'#DcO!yOPO'#DnO#XOQO'#DuO#^OPO'#D{O#lOPO'#ESO#zOPO'#E[O$YOPO'#EaO$hOPO'#EfO$vOPO'#EkO%UOPO'#ErO%dOPO'#EwOOOP'#F|'#F|O%rQWO'#E|O&sO#tO'#F]OOOP'#Fq'#FqOOOP'#F_'#F_QVOPOOOOOP-E9^-E9^OOQO'#Ce'#CeO'sQSO,59OO'zQSO'#DWO(RQSO'#DXO(YQ`O'#DZOOQO'#Fr'#FrOvQSO'#CuO(aOPO'#CbOOOP'#Fd'#FdO!kOPO,59}OOOP,59},59}O(oOPO,59}O(}QWO'#E|OOOP,5:Y,5:YO)[OPO,5:YO!yOPO,5:YO)jQWO'#E|OOOQ'#Ff'#FfO)tOQO'#DxO)|OQO,5:aOOOP,5:g,5:gO#^OPO,5:gO*RQWO'#E|OOOP,5:n,5:nO#lOPO,5:nO*YQWO'#E|OOOP,5:v,5:vO#zOPO,5:vO*aQWO'#E|OOOP,5:{,5:{O$YOPO,5:{O*hQWO'#E|OOOP,5;Q,5;QO$hOPO,5;QO*oQWO'#E|OOOP,5;V,5;VO*vO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ConcatOp ArithOp ArithOp CompareOp in is StringLiteral NumberLiteral and or NotExpression not FilterExpression FilterOp FilterName FilterCall ) ( ArgumentList NamedArgument AssignOp , NamedArgument ConditionalExpression if else CallExpression ArrayExpression TupleExpression ParenthesizedExpression DictExpression Entry : Entry BooleanLiteral self super loop IfStatement Tag TagName if %} Tag elif Tag else EndTag endif ForStatement Tag for Definition recursive EndTag endfor RawStatement Tag raw RawText EndTag endraw BlockStatement Tag block scoped required EndTag endblock MacroStatement Tag macro ParamList OptionalParameter OptionalParameter EndTag endmacro CallStatement Tag call EndTag endcall FilterStatement Tag filter EndTag endfilter SetStatement Tag set EndTag endset TransStatement Tag trans Tag pluralize EndTag endtrans WithStatement Tag with EndTag endwith AutoescapeStatement Tag autoescape EndTag endautoescape Tag Tag Tag import as from import ImportItem Tag include ignore missing with without context Comment #}",maxTerm:173,nodeProps:[["closedBy",1,"}}",2,"#}",-2,3,4,"%}",32,")"],["openedBy",7,"{{",31,"(",57,"{%",140,"{#"],["group",-18,9,10,13,14,21,22,25,27,38,41,42,43,44,45,49,50,51,52,"Expression",-11,53,64,71,77,84,92,97,102,107,114,119,"Statement"]],skippedNodes:[0],repeatNodeCount:13,tokenData:".|~RqXY#YYZ#Y]^#Ypq#Yqr#krs#vuv&nwx&{xy)nyz)sz{)x{|*V|}+|}!O,R!O!P,g!P!Q,o!Q![+h![!],w!^!_,|!_!`-U!`!a,|!c!}-^!}#O.U#P#Q.Z#R#S-^#T#o-^#o#p.`#p#q.e#q#r.j#r#s.w%W;'S-^;'S;:j.O<%lO-^~#_S$d~XY#YYZ#Y]^#Ypq#Y~#nP!_!`#q~#vOb~~#yWOY#vZr#vrs$cs#O#v#O#P$h#P;'S#v;'S;=`%x<%lO#v~$hOe~~$kYOY#vYZ#vZr#vrs%Zs#O#v#O#P$h#P;'S#v;'S;=`&O;=`<%l#v<%lO#v~%`We~OY#vZr#vrs$cs#O#v#O#P$h#P;'S#v;'S;=`%x<%lO#v~%{P;=`<%l#v~&RXOY#vZr#vrs$cs#O#v#O#P$h#P;'S#v;'S;=`%x;=`<%l#v<%lO#v~&sP`~#q#r&v~&{O!Z~~'OWOY&{Zw&{wx$cx#O&{#O#P'h#P;'S&{;'S;=`(x<%lO&{~'kYOY&{YZ&{Zw&{wx(Zx#O&{#O#P'h#P;'S&{;'S;=`)O;=`<%l&{<%lO&{~(`We~OY&{Zw&{wx$cx#O&{#O#P'h#P;'S&{;'S;=`(x<%lO&{~({P;=`<%l&{~)RXOY&{Zw&{wx$cx#O&{#O#P'h#P;'S&{;'S;=`(x;=`<%l&{<%lO&{~)sOp~~)xOo~~)}P`~z{*Q~*VO`~~*[Qa~!O!P*b!Q![+h~*eP!Q![*h~*mSf~!Q![*h!g!h*y#R#S*h#X#Y*y~*|R{|+V}!O+V!Q![+]~+YP!Q![+]~+bQf~!Q![+]#R#S+]~+mTf~!O!P*b!Q![+h!g!h*y#R#S+h#X#Y*y~,ROt~~,WRa~uv,a!O!P*b!Q![+h~,dP#q#r&v~,lPZ~!Q![*h~,tP`~!P!Q*Q~,|O!P~~-RPb~!_!`#q~-ZPs~!_!`#q!`-iVm`[p!XS$gY!Q![-^!c!}-^#R#S-^#T#o-^%W;'S-^;'S;:j.O<%lO-^!`.RP;=`<%l-^~.ZO$i~~.`O$h~~.eO$n~~.jOl~^.oP$m[#q#r.rQ.wOVQ~.|O_~",tokenizers:[QWn,EWn,1,2,3,4,5,new mUn("b~RPstU~XP#q#r[~aO$Q~~",17,173)],topRules:{Template:[0,5]},specialized:[{term:161,get:e=>RWn[e]||-1},{term:55,get:e=>BWn[e]||-1}],tokenPrec:3602});function LWn(e,t){return e.split(" ").map(e=>({label:e,type:t}))}const DWn=LWn("abs attr batch capitalize center default dictsort escape filesizeformat first float forceescape format groupby indent int items join last length list lower map max min pprint random reject rejectattr replace reverse round safe select selectattr slice sort string striptags sum title tojson trim truncate unique upper urlencode urlize wordcount wordwrap xmlattr","function"),MWn=LWn("boolean callable defined divisibleby eq escaped even filter float ge gt in integer iterable le lower lt mapping ne none number odd sameas sequence string test undefined upper range lipsum dict joiner namespace","function"),NWn=LWn("loop super self true false varargs kwargs caller name arguments catch_kwargs catch_varargs caller","keyword"),XWn=MWn.concat(NWn),FWn=LWn("raw endraw filter endfilter trans pluralize endtrans with endwith autoescape endautoescape if elif else endif for endfor call endcall block endblock set endset macro endmacro import include break continue debug do extends","keyword");function UWn(e={}){let t=e.tags?e.tags.concat(FWn):FWn,n=e.variables?e.variables.concat(XWn):XWn,{properties:r}=e;return e=>{var i;let o=function(e){var t;let{state:n,pos:r}=e,i=iot(n).resolveInner(r,-1).enterUnfinishedNodesBefore(r),o=(null===(t=i.childBefore(r))||void 0===t?void 0:t.name)||i.name;if("FilterName"==i.name)return{type:"filter",node:i};if(e.explicit&&("FilterOp"==o||"filter"==o))return{type:"filter"};if("TagName"==i.name)return{type:"tag",node:i};if(e.explicit&&"{%"==o)return{type:"tag"};if("PropertyName"==i.name&&"MemberExpression"==i.parent.name)return{type:"prop",node:i,target:i.parent};if("."==i.name&&"MemberExpression"==i.parent.name)return{type:"prop",target:i.parent};if("MemberExpression"==i.name&&"."==o)return{type:"prop",target:i};if("VariableName"==i.name)return{type:"expr",from:i.from};if("Comment"==i.name||"StringLiteral"==i.name||"NumberLiteral"==i.name)return null;let a=e.matchBefore(/[\w\u00c0-\uffff]+$/);return a?{type:"expr",from:a.from}:e.explicit?{type:"expr"}:null}(e);if(!o)return null;let a,s=null!==(i=o.from)&&void 0!==i?i:o.node?o.node.from:e.pos;return a="filter"==o.type?DWn:"tag"==o.type?t:"expr"==o.type?n:r?function(e,t,n,r){let i=[];for(;;){let n=t.getChild("Expression");if(!n)return[];if("VariableName"==n.name){i.unshift(e.sliceDoc(n.from,n.to));break}if("MemberExpression"!=n.name)return[];{let r=n.getChild("PropertyName");r&&i.unshift(e.sliceDoc(r.from,r.to)),t=n}}return r(i,e,n)}(e.state,o.target,e,r):[],a.length?{options:a,from:s,validFor:/^[\w\u00c0-\uffff]*$/}:null}}const zWn=vtt.inputHandler.of((e,t,n,r)=>"%"==r&&t==n&&"{}"==e.state.doc.sliceString(t-1,n+1)&&(e.dispatch(e.state.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:"%%"},range:Z3e.cursor(e.from+1)})),{scrollIntoView:!0,userEvent:"input.type"}),!0));function qWn(e){return t=>{let n=e.test(t.textAfter);return t.lineIndent(t.node.from)+(n?0:t.unit)}}const VWn=rot.define({name:"jinja",parser:IWn.configure({props:[Cit({"TagName raw endraw filter endfilter as trans pluralize endtrans with endwith autoescape endautoescape":Git.keyword,"required scoped recursive with without context ignore missing":Git.modifier,self:Git.self,"loop super":Git.standard(Git.variableName),"if elif else endif for endfor call endcall":Git.controlKeyword,"block endblock set endset macro endmacro import from include":Git.definitionKeyword,"Comment/...":Git.blockComment,VariableName:Git.variableName,Definition:Git.definition(Git.variableName),PropertyName:Git.propertyName,FilterName:Git.special(Git.variableName),ArithOp:Git.arithmeticOperator,AssignOp:Git.definitionOperator,"not and or":Git.logicOperator,CompareOp:Git.compareOperator,"in is":Git.operatorKeyword,"FilterOp ConcatOp":Git.operator,StringLiteral:Git.string,NumberLiteral:Git.number,BooleanLiteral:Git.bool,"{% %} {# #} {{ }} { }":Git.brace,"( )":Git.paren,".":Git.derefOperator,": , .":Git.punctuation}),xot.add({Tag:_ot({closing:"%}"}),"IfStatement ForStatement":qWn(/^\s*(\{%-?\s*)?(endif|endfor|else|elif)\b/),Statement:qWn(/^\s*(\{%-?\s*)?end\w/)}),Rot.add({"Statement Comment"(e){let t=e.firstChild,n=e.lastChild;return!t||"Tag"!=t.name&&"{#"!=t.name?null:{from:t.to,to:"EndTag"==n.name||"#}"==n.name?n.from:e.to}}})]}),languageData:{indentOnInput:/^\s*{%-?\s*(?:end|elif|else)$/}}),WWn=vWn();function jWn(e){return VWn.configure({wrap:hit(t=>t.type.isTop?{parser:e.parser,overlay:e=>"Text"==e.name||"RawText"==e.name}:null)},"jinja")}const YWn=jWn(WWn.language);const ZWn=Object.freeze(Object.defineProperty({__proto__:null,closePercentBrace:zWn,jinja:function(e={}){let t=e.base||WWn,n=t.language==WWn.language?YWn:jWn(t.language);return new fot(n,[t.support,n.data.of({autocomplete:UWn(e)}),t.language.data.of({closeBrackets:{brackets:["{"]}}),zWn])},jinjaCompletionSource:UWn,jinjaLanguage:YWn},Symbol.toStringTag,{value:"Module"})),GWn=Cit({String:Git.string,Number:Git.number,"True False":Git.bool,PropertyName:Git.propertyName,Null:Git.null,", :":Git.separator,"[ ]":Git.squareBracket,"{ }":Git.brace}),HWn=PUn.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[GWn],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});const KWn=rot.define({name:"json",parser:HWn.configure({props:[xot.add({Object:Pot({except:/^\s*\}/}),Array:Pot({except:/^\s*\]/})}),Rot.add({"Object Array":Bot})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});const JWn=Object.freeze(Object.defineProperty({__proto__:null,json:function(){return new fot(KWn)},jsonLanguage:KWn,jsonParseLinter:()=>e=>{try{JSON.parse(e.state.doc.toString())}catch(jk){if(!(jk instanceof SyntaxError))throw jk;const n=function(e,t){let n;return(n=e.message.match(/at position (\d+)/))?Math.min(+n[1],t.length):(n=e.message.match(/at line (\d+) column (\d+)/))?Math.min(t.line(+n[1]).from+ +n[2]-1,t.length):0}(jk,e.state.doc);return[{from:n,message:jk.message,severity:"error",to:n}]}return[]}},Symbol.toStringTag,{value:"Module"})),ejn=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function tjn(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}const njn=new OUn((e,t)=>{if(40==e.next){let t=e.peek(-1);(tjn(t)||(n=t)>=48&&n<=57||95==t||45==t)&&e.acceptToken(2,1)}var n}),rjn=new OUn(e=>{if(ejn.indexOf(e.peek(-1))>-1){let{next:t}=e;(tjn(t)||95==t||35==t||46==t||91==t||58==t||45==t)&&e.acceptToken(110)}}),ijn=new OUn(e=>{if(ejn.indexOf(e.peek(-1))<0){let{next:t}=e;if(37==t&&(e.advance(),e.acceptToken(1)),tjn(t)){do{e.advance()}while(tjn(e.next));e.acceptToken(1)}}}),ojn=Cit({"import charset namespace keyframes media supports when":Git.definitionKeyword,"from to selector":Git.keyword,NamespaceName:Git.namespace,KeyframeName:Git.labelName,TagName:Git.tagName,ClassName:Git.className,PseudoClassName:Git.constant(Git.className),IdName:Git.labelName,"FeatureName PropertyName PropertyVariable":Git.propertyName,AttributeName:Git.attributeName,NumberLiteral:Git.number,KeywordQuery:Git.keyword,UnaryQueryOp:Git.operatorKeyword,"CallTag ValueName":Git.atom,VariableName:Git.variableName,"AtKeyword Interpolation":Git.special(Git.variableName),Callee:Git.operatorKeyword,Unit:Git.unit,"UniversalSelector NestingSelector":Git.definitionOperator,MatchOp:Git.compareOperator,"ChildOp SiblingOp, LogicOp":Git.logicOperator,BinOp:Git.arithmeticOperator,Important:Git.modifier,"Comment LineComment":Git.blockComment,ColorLiteral:Git.color,"ParenthesizedContent StringLiteral":Git.string,Escape:Git.special(Git.string),": ...":Git.punctuation,"PseudoOp #":Git.derefOperator,"; ,":Git.separator,"( )":Git.paren,"[ ]":Git.squareBracket,"{ }":Git.brace}),ajn={__proto__:null,lang:40,"nth-child":40,"nth-last-child":40,"nth-of-type":40,"nth-last-of-type":40,dir:40,"host-context":40,and:244,or:244,not:74,only:74,url:86,"url-prefix":86,domain:86,regexp:86,when:117,selector:142,from:172,to:174},sjn={__proto__:null,"@import":126,"@plugin":126,"@media":152,"@charset":156,"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z%[%g%m%t&T![!f[vy!X!b!g!q!{#U#`#b#o#w#y$U$_$b$d$e$g$m$r$u%Z%[%g%m%t&TT%V$P%WY#l![!m#j#t${s#w!d#U#[#f#u#|$U$]$c$o$y%Q%Y%d%e%q%}![!f[vy!X!b!g!q!{#U#`#b#o#w#y$U$_$b$d$e$g$m$r$u%Z%[%g%m%t&TQ!i]R$O!jQ!QUQ#PpR%_$WQ!SVR#QqZuS!w$k$}%aQxSS!znzQ#s!_Q$R!mQ$V!qS$^!|#[Q%c$]Q%z%VR&R%dc!^Z_!W!Z!`#l#m#p%sR#i!ZZ#n![!m#j#t${R!j]R!l^R$Q!lU`OhwQ!UWR$S!nVeOhwR$Z!qR$Y!qShOwR!thQnSS!yn%kR%k$kQ$d#UQ$m#`Y%f$d$m%g%t&TQ%g$eQ%t$uR&T%mQ%n$mR&U%nQ$h#YR%i$hQ$s#fR%r$sQ#q![R$|#qQ%W$PR%{%WQ!o`Q#c!UT$T!o#cQ%[$UR&O%[QiOR#ZwVfOhwUSOhwQ!wmQ#RrQ#SsQ#TuQ$k#^Q$}#rR%a$YR$l#^R$n#`Q!d[S#Uv$gQ#[yQ#f!XQ#u!bQ#|!gQ$U!qQ$]!{d$c#U#`$d$e$m$u%g%m%t&TQ$o#bQ$y#oQ%P#wQ%Q#yS%Y$U%[Q%d$_Q%e$bQ%q$rR%}%ZQzSQ!pbQ!|nQ%b$YR&Q%aQ#YvR%h$gR#g!XQ!_ZQ#e!WQ$x#mR&V%sW![Z!W#m%sQ!m_Q#j!ZQ#t!`Q$w#lR${#pVcOhwSgOwR!sh",nodeNames:"⚠ Unit ( Comment LineComment StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector ClassSelector ClassName PseudoClassSelector : :: PseudoClassName ) ArgList , PseudoClassName ArgList VariableName AtKeyword PropertyVariable ValueName ( ParenthesizedValue ColorLiteral NumberLiteral StringLiteral Escape Interpolation BinaryExpression BinOp LogicOp UnaryExpression UnaryQueryOp CallExpression ] SubscriptExpression [ CallLiteral CallTag ParenthesizedContent IdSelector # IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp InterpolatedSelector ; when } { Block ImportStatement import KeywordQuery FeatureQuery FeatureName BinaryQuery UnaryQuery ParenthesizedQuery SelectorQuery selector CallQuery ArgList SubscriptQuery MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList from to SupportsStatement supports DetachedRuleSet PropertyName Declaration Important Inclusion IdSelector ClassSelector Inclusion CallExpression",maxTerm:133,nodeProps:[["isolate",-3,3,4,30,""],["openedBy",17,"(",59,"{"],["closedBy",26,")",60,"}"]],propSources:[ojn],skippedNodes:[0,3,4],repeatNodeCount:10,tokenData:"!2q~R!ZOX$tX^%l^p$tpq%lqr)Ors-xst/ltu6Zuv$tvw8^wx:Uxy;syz<Uz{<Z{|<t|}BQ}!OBc!O!PDo!P!QFY!Q![Jw![!]Kr!]!^Ln!^!_MP!_!`M{!`!aNl!a!b$t!b!c! m!c!}!&R!}#O!'y#O#P$t#P#Q!([#Q#R!(m#R#T$t#T#o!&R#o#p!)S#p#q!(m#q#r!)e#r#s!)v#s#y$t#y#z%l#z$f$t$f$g%l$g#BY$t#BY#BZ%l#BZ$IS$t$IS$I_%l$I_$I|$t$I|$JO%l$JO$JT$t$JT$JU%l$JU$KV$t$KV$KW%l$KW&FU$t&FU&FV%l&FV;'S$t;'S;=`!2k<%lO$t`$wSOy%Tz;'S%T;'S;=`%f<%lO%T`%YS|`Oy%Tz;'S%T;'S;=`%f<%lO%T`%iP;=`<%l%T~%qh#d~OX%TX^']^p%Tpq']qy%Tz#y%T#y#z']#z$f%T$f$g']$g#BY%T#BY#BZ']#BZ$IS%T$IS$I_']$I_$I|%T$I|$JO']$JO$JT%T$JT$JU']$JU$KV%T$KV$KW']$KW&FU%T&FU&FV']&FV;'S%T;'S;=`%f<%lO%T~'dh#d~|`OX%TX^']^p%Tpq']qy%Tz#y%T#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tokenizers:[rjn,ijn,njn,0,1,2,3,4],topRules:{StyleSheet:[0,5]},specialized:[{term:116,get:e=>ajn[e]||-1},{term:23,get:e=>sjn[e]||-1}],tokenPrec:2180}),cjn=rot.define({name:"less",parser:ljn.configure({props:[xot.add({Declaration:Pot()}),Rot.add({Block:Bot})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*\}$/,wordChars:"@-"}}),ujn=dqn(e=>"VariableName"==e.name||"AtKeyword"==e.name);const hjn=Object.freeze(Object.defineProperty({__proto__:null,less:function(){return new fot(cjn,cjn.data.of({autocomplete:ujn}))},lessCompletionSource:ujn,lessLanguage:cjn},Symbol.toStringTag,{value:"Module"}));function djn(e){return e>=65&&e<=90||e>=97&&e<=122}const pjn=new OUn(e=>{let t=e.pos;for(;;){let{next:n}=e;if(n<0)break;if(123==n){let n=e.peek(1);if(123==n){if(e.pos>t)break;return void e.acceptToken(1,2)}if(37==n){if(e.pos>t)break;let n=2,r=2;for(;;){let t=e.peek(n);if(32==t||10==t)++n;else if(35==t)for(++n;;){let t=e.peek(n);if(t<0||10==t)break;n++}else{if(45!=t||2!=r){let i=101==t&&110==e.peek(n+1)&&100==e.peek(n+2);return void e.acceptToken(i?3:2,r)}r=++n}}}}if(e.advance(),10==n)break}e.pos>t&&e.acceptToken(180)});function fjn(e,t,n){return new OUn(r=>{let i=r.pos;for(;;){let{next:t}=r;if(123==t&&37==r.peek(1)){let t=2;for(;;t++){let e=r.peek(t);if(32!=e&&10!=e)break}let o="";for(;;t++){let e=r.peek(t);if(!djn(e))break;o+=String.fromCharCode(e)}if(o==e){if(r.pos>i)break;r.acceptToken(n,2);break}}else if(t<0)break;if(r.advance(),10==t)break}r.pos>i&&r.acceptToken(t)})}const gjn=fjn("endcomment",182,5),mjn=fjn("endraw",181,4),Ojn=new OUn(e=>{if(35==e.next){for(e.advance();!(10==e.next||e.next<0)&&(37!=e.next&&125!=e.next||125!=e.peek(1));)e.advance();e.acceptToken(6)}}),Ajn={__proto__:null,contains:34,or:38,and:38,true:52,false:52,empty:54,forloop:57,tablerowloop:59,continue:61,in:131,with:197,for:199,as:201,if:237,endif:241,unless:247,endunless:251,elsif:255,else:259,case:265,endcase:269,when:273,endfor:281,tablerow:287,endtablerow:291,break:295,cycle:301,echo:305,render:309,include:313,assign:317,capture:323,endcapture:327,increment:331,decrement:335},yjn={__proto__:null,if:86,endif:90,elsif:94,else:98,unless:104,endunless:108,case:114,endcase:118,when:122,for:128,endfor:138,tablerow:144,endtablerow:148,break:152,continue:156,cycle:160,comment:166,endcomment:172,raw:178,endraw:184,echo:188,render:192,include:204,assign:208,capture:214,endcapture:218,increment:222,decrement:226,liquid:230},vjn=PUn.deserialize({version:14,states:"KtQYOPOOOOOP'#F{'#F{OeOaO'#CdOsQhO'#CfO!bQxO'#DSO#{OPO'#DVO$ZOPO'#D`O$iOPO'#DeO$wOPO'#DlO%VOPO'#DtO%eOSO'#EPO%jOQO'#EVO%oOPO'#EiOOOP'#Ge'#GeOOOP'#G]'#G]OOOP'#Fz'#FzQYOPOOOOOP-E9y-E9yOOQW'#Cg'#CgO&cQ!jO,59QO&jQ!jO'#G^OsQhO'#CtOOQW'#Gb'#GbOOQW'#Gc'#GcOOQW'#Gd'#GdOOQW'#G^'#G^OOOP,59n,59nO)YQhO,59nOsQhO,59rOsQhO,59vO)dQhO,59xOsQhO,59{OsQhO,5:QOsQhO,5:UO!]QhO,5:XO!]QhO,5:aO)iQhO,5:eO)nQhO,5:gO)sQhO,5:iO)xQhO,5:lO)}QhO,5:rOsQhO,5:wOsQhO,5:yOsQhO,5;POsQhO,5;ROsQhO,5;UOsQhO,5;YOsQhO,5;[O+^QhO,5;^O+eOPO'#CdOOOP,59q,59qO#{OPO,59qO+sQxO'#DYOOOP,59z,59zO$ZOPO,59zO+xQxO'#DcOOOP,5:P,5:PO$iOPO,5:PO+}QxO'#DhOOOP,5:W,5:WO$wOPO,5:WO,SQxO'#DrOOOP,5:`,5:`O%VOPO,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v%|&S&X&cm$U!Q#d#g#n#r#u$V$^%q%v%|&S&X&cT&a$V&cm$X!Q#d#g#n#r#u$V$^%q%v%|&S&X&cm$Z!Q#d#g#n#r#u$V$^%q%v%|&S&X&c",nodeNames:"⚠ {{ {% {% {% {% InlineComment Template Text }} Interpolation VariableName MemberExpression . PropertyName SubscriptExpression BinaryExpression contains CompareOp LogicOp AssignmentExpression AssignOp ) ( RangeExpression .. BooleanLiteral empty forloop tablerowloop continue StringLiteral NumberLiteral Filter | FilterName : , Tag TagName %} IfDirective Tag if EndTag endif Tag elsif Tag else UnlessDirective Tag unless EndTag endunless CaseDirective Tag case EndTag endcase Tag when ForDirective Tag for in Parameter ParameterName EndTag endfor TableDirective Tag tablerow EndTag endtablerow Tag break Tag continue Tag cycle Comment Tag comment CommentText EndTag endcomment RawDirective Tag raw RawText EndTag endraw Tag echo Tag render RenderParameter with for as Tag include Tag assign CaptureDirective Tag capture EndTag endcapture Tag increment Tag decrement Tag liquid IfDirective Tag if EndTag endif UnlessDirective Tag unless EndTag endunless Tag elsif Tag else CaseDirective Tag case EndTag endcase Tag when ForDirective Tag EndTag endfor TableDirective Tag tablerow EndTag endtablerow Tag break Tag Tag cycle Tag echo Tag render Tag include Tag assign CaptureDirective Tag capture EndTag endcapture Tag increment Tag decrement",maxTerm:220,nodeProps:[["closedBy",1,"}}",-4,2,3,4,5,"%}",23,")"],["openedBy",9,"{{",22,"(",40,"{%"],["group",-13,11,12,15,16,20,24,26,27,28,29,30,31,32,"Expression"]],skippedNodes:[0,6],repeatNodeCount:11,tokenData:")e~RmXY!|YZ!|]^!|pq!|qr#_rs#juv$[wx$gxy%Syz%X{|%^|}&x}!O&}!O!P'Z!Q![&g![!]'k!^!_'p!_!`'x!`!a'p!c!}(Q!}#O(y#P#Q)O#R#S(Q#T#o(Q#p#q)T#q#r)Y%W;'S(Q;'S;:j(s<%lO(Q~#RS%O~XY!|YZ!|]^!|pq!|~#bP!_!`#e~#jOb~~#mUOY#jZr#jrs$Ps;'S#j;'S;=`$U<%lO#j~$UOo~~$XP;=`<%l#j~$_P#q#r$b~$gOx~~$jUOY$gZw$gwx$Px;'S$g;'S;=`$|<%lO$g~%PP;=`<%l$g~%XOg~~%^Of~P%aQ!O!P%g!Q![&gP%jP!Q![%mP%rRpP!Q![%m!g!h%{#X#Y%{P&OR{|&X}!O&X!Q![&_P&[P!Q![&_P&dPpP!Q![&_P&lSpP!O!P%g!Q![&g!g!h%{#X#Y%{~&}Ou~~'QRuv$[!O!P%g!Q![&g~'`Q]S!O!P'f!Q![%m~'kOi~~'pOt~~'uPb~!_!`#e~'}Pe~!_!`#e_(ZW^WwQ%RT}!O(Q!Q![(Q!c!}(Q#R#S(Q#T#o(Q%W;'S(Q;'S;:j(s<%lO(Q_(vP;=`<%l(Q~)OO%T~~)TO%S~~)YOr~~)]P#q#r)`~)eOX~",tokenizers:[pjn,mjn,gjn,Ojn,0,1,2,3],topRules:{Template:[0,7]},dynamicPrecedences:{190:1,191:1,192:1,194:1,195:1,196:1,197:1,199:1,200:1,201:1,202:1,203:1,204:1,205:1,206:1,207:1,208:1,209:1,210:1,211:1,212:1,213:1,214:1,215:1,216:1,217:1,218:1,219:1,220:1},specialized:[{term:187,get:e=>Ajn[e]||-1},{term:39,get:e=>yjn[e]||-1}],tokenPrec:0});function bjn(e,t){return e.split(" ").map(e=>({label:e,type:t}))}const xjn=bjn("abs append at_least at_most capitalize ceil compact concat date default divided_by downcase escape escape_once first floor join last lstrip map minus modulo newline_to_br plus prepend remove remove_first replace replace_first reverse round rstrip size slice sort sort_natural split strip strip_html strip_newlines sum times truncate truncatewords uniq upcase url_decode url_encode where","function"),wjn=bjn("cycle comment endcomment raw endraw echo increment decrement liquid if elsif else endif unless endunless case endcase for endfor tablerow endtablerow break continue assign capture endcapture render include","keyword"),kjn=bjn("empty forloop tablerowloop in with as","keyword"),Sjn=bjn("first index index0 last length rindex","property"),Tjn=bjn("col col0 col_first col_last first index index0 last length rindex rindex0 row","property");function $jn(e={}){let t=e.filters?e.filters.concat(xjn):xjn,n=e.tags?e.tags.concat(wjn):wjn,r=e.variables?e.variables.concat(kjn):kjn,{properties:i}=e;return e=>{var o;let a=function(e){var t;let{state:n,pos:r}=e,i=iot(n).resolveInner(r,-1).enterUnfinishedNodesBefore(r),o=(null===(t=i.childBefore(r))||void 0===t?void 0:t.name)||i.name;if("FilterName"==i.name)return{type:"filter",node:i};if(e.explicit&&"|"==o)return{type:"filter"};if("TagName"==i.name)return{type:"tag",node:i};if(e.explicit&&"{%"==o)return{type:"tag"};if("PropertyName"==i.name&&"MemberExpression"==i.parent.name)return{type:"property",node:i,target:i.parent};if("."==i.name&&"MemberExpression"==i.parent.name)return{type:"property",target:i.parent};if("MemberExpression"==i.name&&"."==o)return{type:"property",target:i};if("VariableName"==i.name)return{type:"expression",from:i.from};let a=e.matchBefore(/[\w\u00c0-\uffff]+$/);return a?{type:"expression",from:a.from}:e.explicit&&"CommentText"!=i.name&&"StringLiteral"!=i.name&&"NumberLiteral"!=i.name&&"InlineComment"!=i.name?{type:"expression"}:null}(e);if(!a)return null;let s,l=null!==(o=a.from)&&void 0!==o?o:a.node?a.node.from:e.pos;return s="filter"==a.type?t:"tag"==a.type?n:"expression"==a.type?r:function(e,t,n,r){let i=[];for(;;){let n=t.getChild("Expression");if(!n)return[];if("VariableName"==n.name||"forloop"==n.name||"tablerowloop"==n.name){let t=e.sliceDoc(n.from,n.to);if("forloop"==t)return i.length?[]:Sjn;if("tablerowloop"==t)return i.length?[]:Tjn;i.unshift(t);break}if("MemberExpression"==n.name){let r=n.getChild("PropertyName");r&&i.unshift(e.sliceDoc(r.from,r.to)),t=n}else{if("SubscriptExpression"!=n.name)return[];{let r=n.getChildren("Expression")[1];i.unshift("StringLiteral"==(null==r?void 0:r.name)?e.sliceDoc(r.from+1,r.to-1):"[]"),t=n}}}return r?r(i,e,n):[]}(e.state,a.target,e,i),s.length?{options:s,from:l,validFor:/^[\w\u00c0-\uffff]*$/}:null}}const _jn=vtt.inputHandler.of((e,t,n,r)=>"%"==r&&t==n&&"{}"==e.state.doc.sliceString(t-1,n+1)&&(e.dispatch(e.state.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:"%%"},range:Z3e.cursor(e.from+1)})),{scrollIntoView:!0,userEvent:"input.type"}),!0));function Cjn(e){return t=>{let n=e.test(t.textAfter);return t.lineIndent(t.node.from)+(n?0:t.unit)}}const Qjn=rot.define({name:"liquid",parser:vjn.configure({props:[Cit({"cycle comment endcomment raw endraw echo increment decrement liquid in with as":Git.keyword,"empty forloop tablerowloop":Git.atom,"if elsif else endif unless endunless case endcase for endfor tablerow endtablerow break continue":Git.controlKeyword,"assign capture endcapture":Git.definitionKeyword,contains:Git.operatorKeyword,"render include":Git.moduleKeyword,VariableName:Git.variableName,TagName:Git.tagName,FilterName:Git.function(Git.variableName),PropertyName:Git.propertyName,CompareOp:Git.compareOperator,AssignOp:Git.definitionOperator,LogicOp:Git.logicOperator,NumberLiteral:Git.number,StringLiteral:Git.string,BooleanLiteral:Git.bool,InlineComment:Git.lineComment,CommentText:Git.blockComment,"{% %} {{ }}":Git.brace,"[ ]":Git.bracket,"( )":Git.paren,".":Git.derefOperator,", .. : |":Git.punctuation}),xot.add({Tag:_ot({closing:"%}"}),"UnlessDirective ForDirective TablerowDirective CaptureDirective":Cjn(/^\s*(\{%-?\s*)?end\w/),IfDirective:Cjn(/^\s*(\{%-?\s*)?(endif|else|elsif)\b/),CaseDirective:Cjn(/^\s*(\{%-?\s*)?(endcase|when)\b/)}),Rot.add({"UnlessDirective ForDirective TablerowDirective CaptureDirective IfDirective CaseDirective RawDirective Comment"(e){let t=e.firstChild,n=e.lastChild;return t&&"Tag"==t.name?{from:t.to,to:"EndTag"==n.name?n.from:e.to}:null}})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*{%-?\s*(?:end|elsif|else|when|)$/}}),Pjn=vWn();function Ejn(e){return Qjn.configure({wrap:hit(t=>t.type.isTop?{parser:e.parser,overlay:e=>"Text"==e.name||"RawText"==e.name}:null)},"liquid")}const Rjn=Ejn(Pjn.language);const Bjn=Object.freeze(Object.defineProperty({__proto__:null,closePercentBrace:_jn,liquid:function(e={}){let t=e.base||Pjn,n=t.language==Pjn.language?Rjn:Ejn(t.language);return new fot(n,[t.support,n.data.of({autocomplete:$jn(e)}),t.language.data.of({closeBrackets:{brackets:["{"]}}),_jn])},liquidCompletionSource:$jn,liquidLanguage:Rjn},Symbol.toStringTag,{value:"Module"}));class Ijn{static create(e,t,n,r,i){return new Ijn(e,t,n,r+(r<<8)+e+(t<<4)|0,i,[],[])}constructor(e,t,n,r,i,o,a){this.type=e,this.value=t,this.from=n,this.hash=r,this.end=i,this.children=o,this.positions=a,this.hashProp=[[Brt.contextHash,r]]}addChild(e,t){e.prop(Brt.contextHash)!=this.hash&&(e=new zrt(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(t)}toTree(e,t=this.end){let n=this.children.length-1;return n>=0&&(t=Math.max(t,this.positions[n]+this.children[n].length+this.from)),new zrt(e.types[this.type],this.children,this.positions,t-this.from).balance({makeTree:(e,t,n)=>new zrt(Drt.none,e,t,n,this.hashProp)})}}var Ljn,Djn;(Djn=Ljn||(Ljn={}))[Djn.Document=1]="Document",Djn[Djn.CodeBlock=2]="CodeBlock",Djn[Djn.FencedCode=3]="FencedCode",Djn[Djn.Blockquote=4]="Blockquote",Djn[Djn.HorizontalRule=5]="HorizontalRule",Djn[Djn.BulletList=6]="BulletList",Djn[Djn.OrderedList=7]="OrderedList",Djn[Djn.ListItem=8]="ListItem",Djn[Djn.ATXHeading1=9]="ATXHeading1",Djn[Djn.ATXHeading2=10]="ATXHeading2",Djn[Djn.ATXHeading3=11]="ATXHeading3",Djn[Djn.ATXHeading4=12]="ATXHeading4",Djn[Djn.ATXHeading5=13]="ATXHeading5",Djn[Djn.ATXHeading6=14]="ATXHeading6",Djn[Djn.SetextHeading1=15]="SetextHeading1",Djn[Djn.SetextHeading2=16]="SetextHeading2",Djn[Djn.HTMLBlock=17]="HTMLBlock",Djn[Djn.LinkReference=18]="LinkReference",Djn[Djn.Paragraph=19]="Paragraph",Djn[Djn.CommentBlock=20]="CommentBlock",Djn[Djn.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",Djn[Djn.Escape=22]="Escape",Djn[Djn.Entity=23]="Entity",Djn[Djn.HardBreak=24]="HardBreak",Djn[Djn.Emphasis=25]="Emphasis",Djn[Djn.StrongEmphasis=26]="StrongEmphasis",Djn[Djn.Link=27]="Link",Djn[Djn.Image=28]="Image",Djn[Djn.InlineCode=29]="InlineCode",Djn[Djn.HTMLTag=30]="HTMLTag",Djn[Djn.Comment=31]="Comment",Djn[Djn.ProcessingInstruction=32]="ProcessingInstruction",Djn[Djn.Autolink=33]="Autolink",Djn[Djn.HeaderMark=34]="HeaderMark",Djn[Djn.QuoteMark=35]="QuoteMark",Djn[Djn.ListMark=36]="ListMark",Djn[Djn.LinkMark=37]="LinkMark",Djn[Djn.EmphasisMark=38]="EmphasisMark",Djn[Djn.CodeMark=39]="CodeMark",Djn[Djn.CodeText=40]="CodeText",Djn[Djn.CodeInfo=41]="CodeInfo",Djn[Djn.LinkTitle=42]="LinkTitle",Djn[Djn.LinkLabel=43]="LinkLabel",Djn[Djn.URL=44]="URL";class Mjn{constructor(e,t){this.start=e,this.content=t,this.marks=[],this.parsers=[]}}class Njn{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return zjn(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,t=0,n=0){for(let r=t;r<e;r++)n+=9==this.text.charCodeAt(r)?4-n%4:1;return n}findColumn(e){let t=0;for(let n=0;t<this.text.length&&n<e;t++)n+=9==this.text.charCodeAt(t)?4-n%4:1;return t}scrub(){if(!this.baseIndent)return this.text;let e="";for(let t=0;t<this.basePos;t++)e+=" ";return e+this.text.slice(this.basePos)}}function Xjn(e,t,n){if(n.pos==n.text.length||e!=t.block&&n.indent>=t.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let r=(e.type==Ljn.OrderedList?Gjn:Zjn)(n,t,!1);return r>0&&(e.type!=Ljn.BulletList||jjn(n,t,!1)<0)&&n.text.charCodeAt(n.pos+r-1)==e.value}const Fjn={[Ljn.Blockquote]:(e,t,n)=>62==n.next&&(n.markers.push(kYn(Ljn.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(Ujn(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0),[Ljn.ListItem]:(e,t,n)=>!(n.indent<n.baseIndent+e.value&&n.next>-1)&&(n.moveBaseColumn(n.baseIndent+e.value),!0),[Ljn.OrderedList]:Xjn,[Ljn.BulletList]:Xjn,[Ljn.Document]:()=>!0};function Ujn(e){return 32==e||9==e||10==e||13==e}function zjn(e,t=0){for(;t<e.length&&Ujn(e.charCodeAt(t));)t++;return t}function qjn(e,t,n){for(;t>n&&Ujn(e.charCodeAt(t-1));)t--;return t}function Vjn(e){if(96!=e.next&&126!=e.next)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==e.next;)t++;if(t<e.pos+3)return-1;if(96==e.next)for(let n=t;n<e.text.length;n++)if(96==e.text.charCodeAt(n))return-1;return t}function Wjn(e){return 62!=e.next?-1:32==e.text.charCodeAt(e.pos+1)?2:1}function jjn(e,t,n){if(42!=e.next&&45!=e.next&&95!=e.next)return-1;let r=1;for(let i=e.pos+1;i<e.text.length;i++){let t=e.text.charCodeAt(i);if(t==e.next)r++;else if(!Ujn(t))return-1}return n&&45==e.next&&Kjn(e)>-1&&e.depth==t.stack.length&&t.parser.leafBlockParsers.indexOf(uYn.SetextHeading)>-1||r<3?-1:1}function Yjn(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function Zjn(e,t,n){return 45!=e.next&&43!=e.next&&42!=e.next||e.pos!=e.text.length-1&&!Ujn(e.text.charCodeAt(e.pos+1))||!(!n||Yjn(t,Ljn.BulletList)||e.skipSpace(e.pos+2)<e.text.length)?-1:1}function Gjn(e,t,n){let r=e.pos,i=e.next;for(;i>=48&&i<=57;){if(r++,r==e.text.length)return-1;i=e.text.charCodeAt(r)}return r==e.pos||r>e.pos+9||46!=i&&41!=i||r<e.text.length-1&&!Ujn(e.text.charCodeAt(r+1))||n&&!Yjn(t,Ljn.OrderedList)&&(e.skipSpace(r+1)==e.text.length||r>e.pos+1||49!=e.next)?-1:r+1-e.pos}function Hjn(e){if(35!=e.next)return-1;let t=e.pos+1;for(;t<e.text.length&&35==e.text.charCodeAt(t);)t++;if(t<e.text.length&&32!=e.text.charCodeAt(t))return-1;let n=t-e.pos;return n>6?-1:n}function Kjn(e){if(45!=e.next&&61!=e.next||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==e.next;)t++;let n=t;for(;t<e.text.length&&Ujn(e.text.charCodeAt(t));)t++;return t==e.text.length?n:-1}const Jjn=/^[ \t]*$/,eYn=/-->/,tYn=/\?>/,nYn=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,eYn],[/^\s*<\?/,tYn],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?: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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,Jjn],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,Jjn]];function rYn(e,t,n){if(60!=e.next)return-1;let r=e.text.slice(e.pos);for(let i=0,o=nYn.length-(n?1:0);i<o;i++)if(nYn[i][0].test(r))return i;return-1}function iYn(e,t){let n=e.countIndent(t,e.pos,e.indent),r=e.countIndent(e.skipSpace(t),t,n);return r>=n+5?n+1:r}function oYn(e,t,n){let r=e.length-1;r>=0&&e[r].to==t&&e[r].type==Ljn.CodeText?e[r].to=n:e.push(kYn(Ljn.CodeText,t,n))}const aYn={LinkReference:void 0,IndentedCode(e,t){let n=t.baseIndent+4;if(t.indent<n)return!1;let r=t.findColumn(n),i=e.lineStart+r,o=e.lineStart+t.text.length,a=[],s=[];for(oYn(a,i,o);e.nextLine()&&t.depth>=e.stack.length;)if(t.pos==t.text.length){oYn(s,e.lineStart-1,e.lineStart);for(let e of t.markers)s.push(e)}else{if(t.indent<n)break;{if(s.length){for(let e of s)e.type==Ljn.CodeText?oYn(a,e.from,e.to):a.push(e);s=[]}oYn(a,e.lineStart-1,e.lineStart);for(let e of t.markers)a.push(e);o=e.lineStart+t.text.length;let n=e.lineStart+t.findColumn(t.baseIndent+4);n<o&&oYn(a,n,o)}}return s.length&&(s=s.filter(e=>e.type!=Ljn.CodeText),s.length&&(t.markers=s.concat(t.markers))),e.addNode(e.buffer.writeElements(a,-i).finish(Ljn.CodeBlock,o-i),i),!0},FencedCode(e,t){let n=Vjn(t);if(n<0)return!1;let r=e.lineStart+t.pos,i=t.next,o=n-t.pos,a=t.skipSpace(n),s=qjn(t.text,t.text.length,a),l=[kYn(Ljn.CodeMark,r,r+o)];a<s&&l.push(kYn(Ljn.CodeInfo,e.lineStart+a,e.lineStart+s));for(let c=!0,u=!0,h=!1;e.nextLine()&&t.depth>=e.stack.length;c=!1){let n=t.pos;if(t.indent-t.baseIndent<4)for(;n<t.text.length&&t.text.charCodeAt(n)==i;)n++;if(n-t.pos>=o&&t.skipSpace(n)==t.text.length){for(let e of t.markers)l.push(e);u&&h&&oYn(l,e.lineStart-1,e.lineStart),l.push(kYn(Ljn.CodeMark,e.lineStart+t.pos,e.lineStart+n)),e.nextLine();break}{h=!0,c||(oYn(l,e.lineStart-1,e.lineStart),u=!1);for(let e of t.markers)l.push(e);let n=e.lineStart+t.basePos,r=e.lineStart+t.text.length;n<r&&(oYn(l,n,r),u=!1)}}return e.addNode(e.buffer.writeElements(l,-r).finish(Ljn.FencedCode,e.prevLineEnd()-r),r),!0},Blockquote(e,t){let n=Wjn(t);return!(n<0)&&(e.startContext(Ljn.Blockquote,t.pos),e.addNode(Ljn.QuoteMark,e.lineStart+t.pos,e.lineStart+t.pos+1),t.moveBase(t.pos+n),null)},HorizontalRule(e,t){if(jjn(t,e,!1)<0)return!1;let n=e.lineStart+t.pos;return e.nextLine(),e.addNode(Ljn.HorizontalRule,n),!0},BulletList(e,t){let n=Zjn(t,e,!1);if(n<0)return!1;e.block.type!=Ljn.BulletList&&e.startContext(Ljn.BulletList,t.basePos,t.next);let r=iYn(t,t.pos+1);return e.startContext(Ljn.ListItem,t.basePos,r-t.baseIndent),e.addNode(Ljn.ListMark,e.lineStart+t.pos,e.lineStart+t.pos+n),t.moveBaseColumn(r),null},OrderedList(e,t){let n=Gjn(t,e,!1);if(n<0)return!1;e.block.type!=Ljn.OrderedList&&e.startContext(Ljn.OrderedList,t.basePos,t.text.charCodeAt(t.pos+n-1));let r=iYn(t,t.pos+n);return e.startContext(Ljn.ListItem,t.basePos,r-t.baseIndent),e.addNode(Ljn.ListMark,e.lineStart+t.pos,e.lineStart+t.pos+n),t.moveBaseColumn(r),null},ATXHeading(e,t){let n=Hjn(t);if(n<0)return!1;let r=t.pos,i=e.lineStart+r,o=qjn(t.text,t.text.length,r),a=o;for(;a>r&&t.text.charCodeAt(a-1)==t.next;)a--;a!=o&&a!=r&&Ujn(t.text.charCodeAt(a-1))||(a=t.text.length);let s=e.buffer.write(Ljn.HeaderMark,0,n).writeElements(e.parser.parseInline(t.text.slice(r+n+1,a),i+n+1),-i);a<t.text.length&&s.write(Ljn.HeaderMark,a-r,o-r);let l=s.finish(Ljn.ATXHeading1-1+n,t.text.length-r);return e.nextLine(),e.addNode(l,i),!0},HTMLBlock(e,t){let n=rYn(t,0,!1);if(n<0)return!1;let r=e.lineStart+t.pos,i=nYn[n][1],o=[],a=i!=Jjn;for(;!i.test(t.text)&&e.nextLine();){if(t.depth<e.stack.length){a=!1;break}for(let e of t.markers)o.push(e)}a&&e.nextLine();let s=i==eYn?Ljn.CommentBlock:i==tYn?Ljn.ProcessingInstructionBlock:Ljn.HTMLBlock,l=e.prevLineEnd();return e.addNode(e.buffer.writeElements(o,-r).finish(s,l-r),r),!0},SetextHeading:void 0};class sYn{constructor(e){this.stage=0,this.elts=[],this.pos=0,this.start=e.start,this.advance(e.content)}nextLine(e,t,n){if(-1==this.stage)return!1;let r=n.content+"\n"+t.scrub(),i=this.advance(r);return i>-1&&i<r.length&&this.complete(e,n,i)}finish(e,t){return(2==this.stage||3==this.stage)&&zjn(t.content,this.pos)==t.content.length&&this.complete(e,t,t.content.length)}complete(e,t,n){return e.addLeafElement(t,kYn(Ljn.LinkReference,this.start,this.start+n,this.elts)),!0}nextStage(e){return e?(this.pos=e.to-this.start,this.elts.push(e),this.stage++,!0):(!1===e&&(this.stage=-1),!1)}advance(e){for(;;){if(-1==this.stage)return-1;if(0==this.stage){if(!this.nextStage(LYn(e,this.pos,this.start,!0)))return-1;if(58!=e.charCodeAt(this.pos))return this.stage=-1;this.elts.push(kYn(Ljn.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else{if(1!=this.stage){if(2==this.stage){let t=zjn(e,this.pos),n=0;if(t>this.pos){let r=IYn(e,t,this.start);if(r){let t=lYn(e,r.to-this.start);t>0&&(this.nextStage(r),n=t)}}return n||(n=lYn(e,this.pos)),n>0&&n<e.length?n:-1}return lYn(e,this.pos)}if(!this.nextStage(BYn(e,zjn(e,this.pos),this.start)))return-1}}}}function lYn(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(10==n)break;if(!Ujn(n))return-1}return t}class cYn{nextLine(e,t,n){let r=t.depth<e.stack.length?-1:Kjn(t),i=t.next;if(r<0)return!1;let o=kYn(Ljn.HeaderMark,e.lineStart+t.pos,e.lineStart+r);return e.nextLine(),e.addLeafElement(n,kYn(61==i?Ljn.SetextHeading1:Ljn.SetextHeading2,n.start,e.prevLineEnd(),[...e.parser.parseInline(n.content,n.start),o])),!0}finish(){return!1}}const uYn={LinkReference:(e,t)=>91==t.content.charCodeAt(0)?new sYn(t):null,SetextHeading:()=>new cYn},hYn=[(e,t)=>Hjn(t)>=0,(e,t)=>Vjn(t)>=0,(e,t)=>Wjn(t)>=0,(e,t)=>Zjn(t,e,!0)>=0,(e,t)=>Gjn(t,e,!0)>=0,(e,t)=>jjn(t,e,!0)>=0,(e,t)=>rYn(t,0,!0)>=0],dYn={text:"",end:0};class pYn{constructor(e,t,n,r){this.parser=e,this.input=t,this.ranges=r,this.line=new Njn,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=r[r.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=r[0].from,this.block=Ijn.create(Ljn.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=n.length?new XYn(n,t):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(null!=this.stoppedAt&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:e}=this;for(;;){for(let t=0;;){let n=e.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;t<e.markers.length&&(!n||e.markers[t].from<n.end);){let n=e.markers[t++];this.addNode(n.type,n.from,n.to)}if(!n)break;this.finishContext()}if(e.pos<e.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(e.basePos))return null;e:for(;;){for(let t of this.parser.blockParsers)if(t){let n=t(this,e);if(0!=n){if(1==n)return null;e.forward();continue e}}break}let t=new Mjn(this.lineStart+e.pos,e.text.slice(e.pos));for(let n of this.parser.leafBlockParsers)if(n){let e=n(this,t);e&&t.parsers.push(e)}e:for(;this.nextLine()&&e.pos!=e.text.length;){if(e.indent<e.baseIndent+4)for(let n of this.parser.endLeafBlock)if(n(this,e,t))break e;for(let n of t.parsers)if(n.nextLine(this,e,t))return null;t.content+="\n"+e.scrub();for(let n of e.markers)t.marks.push(n)}return this.finishLeaf(t),null}stopAt(e){if(null!=this.stoppedAt&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}reuseFragment(e){if(!this.fragments.moveTo(this.absoluteLineStart+e,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let t=this.fragments.takeNodes(this);return!!t&&(this.absoluteLineStart+=t,this.lineStart=FYn(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0)}get depth(){return this.stack.length}parentType(e=this.depth-1){return this.parser.nodeSet.types[this.stack[e].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}peekLine(){return this.scanLine(this.absoluteLineEnd+1).text}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(e){let t=dYn;if(t.end=e,e>=this.to)t.text="";else if(t.text=this.lineChunkAt(e),t.end+=t.text.length,this.ranges.length>1){let e=this.absoluteLineStart,n=this.rangeI;for(;this.ranges[n].to<t.end;){n++;let r=this.ranges[n].from,i=this.lineChunkAt(r);t.end=r+i.length,t.text=t.text.slice(0,this.ranges[n-1].to-e)+i,e=t.end-t.text.length}}return t}readLine(){let{line:e}=this,{text:t,end:n}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=n,e.reset(t);e.depth<this.stack.length;e.depth++){let t=this.stack[e.depth],n=this.parser.skipContextMarkup[t.type];if(!n)throw new Error("Unhandled block context "+Ljn[t.type]);let r=this.line.markers.length;if(!n(t,this,e)){this.line.markers.length>r&&(t.end=this.line.markers[this.line.markers.length-1].to),e.forward();break}e.forward()}}lineChunkAt(e){let t,n=this.input.chunk(e);if(this.input.lineChunks)t="\n"==n?"":n;else{let e=n.indexOf("\n");t=e<0?n:n.slice(0,e)}return e+t.length>this.to?t.slice(0,this.to-e):t}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,t,n=0){this.block=Ijn.create(e,n,this.lineStart+t,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,t,n=0){this.startContext(this.parser.getNodeType(e),t,n)}addNode(e,t,n){"number"==typeof e&&(e=new zrt(this.parser.nodeSet.types[e],vYn,vYn,(null!=n?n:this.prevLineEnd())-t)),this.block.addChild(e,t-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,t){this.addNode(this.buffer.writeElements(MYn(t.children,e.marks),-t.from).finish(t.type,t.to-t.from),t.from)}finishContext(){let e=this.stack.pop(),t=this.stack[this.stack.length-1];t.addChild(e.toTree(this.parser.nodeSet),e.from-t.from),this.block=t}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(e){return this.ranges.length>1?fYn(this.ranges,0,e.topNode,this.ranges[0].from,this.reusePlaceholders):e}finishLeaf(e){for(let n of e.parsers)if(n.finish(this,e))return;let t=MYn(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(t,-e.start).finish(Ljn.Paragraph,e.content.length),e.start)}elt(e,t,n,r){return"string"==typeof e?kYn(this.parser.getNodeType(e),t,n,r):new wYn(e,t)}get buffer(){return new bYn(this.parser.nodeSet)}}function fYn(e,t,n,r,i){let o=e[t].to,a=[],s=[],l=n.from+r;function c(n,i){for(;i?n>=o:n>o;){let i=e[t+1].from-o;r+=i,n+=i,t++,o=e[t].to}}for(let u=n.firstChild;u;u=u.nextSibling){c(u.from+r,!0);let n,h=u.from+r,d=i.get(u.tree);d?n=d:u.to+r>o?(n=fYn(e,t,u,r,i),c(u.to+r,!1)):n=u.toTree(),a.push(n),s.push(h-l)}return c(n.to+r,!1),new zrt(n.type,a,s,n.to+r-l,n.tree?n.tree.propValues:void 0)}class gYn extends cit{constructor(e,t,n,r,i,o,a,s,l){super(),this.nodeSet=e,this.blockParsers=t,this.leafBlockParsers=n,this.blockNames=r,this.endLeafBlock=i,this.skipContextMarkup=o,this.inlineParsers=a,this.inlineNames=s,this.wrappers=l,this.nodeTypes=Object.create(null);for(let c of e.types)this.nodeTypes[c.name]=c.id}createParse(e,t,n){let r=new pYn(this,e,t,n);for(let i of this.wrappers)r=i(r,e,t,n);return r}configure(e){let t=OYn(e);if(!t)return this;let{nodeSet:n,skipContextMarkup:r}=this,i=this.blockParsers.slice(),o=this.leafBlockParsers.slice(),a=this.blockNames.slice(),s=this.inlineParsers.slice(),l=this.inlineNames.slice(),c=this.endLeafBlock.slice(),u=this.wrappers;if(mYn(t.defineNodes)){r=Object.assign({},r);let e,i=n.types.slice();for(let n of t.defineNodes){let{name:t,block:o,composite:a,style:s}="string"==typeof n?{name:n}:n;if(i.some(e=>e.name==t))continue;a&&(r[i.length]=(e,t,n)=>a(t,n,e.value));let l=i.length,c=a?["Block","BlockContext"]:o?l>=Ljn.ATXHeading1&&l<=Ljn.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;i.push(Drt.define({id:l,name:t,props:c&&[[Brt.group,c]]})),s&&(e||(e={}),Array.isArray(s)||s instanceof Tit?e[t]=s:Object.assign(e,s))}n=new Mrt(i),e&&(n=n.extend(Cit(e)))}if(mYn(t.props)&&(n=n.extend(...t.props)),mYn(t.remove))for(let h of t.remove){let e=this.blockNames.indexOf(h),t=this.inlineNames.indexOf(h);e>-1&&(i[e]=o[e]=void 0),t>-1&&(s[t]=void 0)}if(mYn(t.parseBlock))for(let h of t.parseBlock){let e=a.indexOf(h.name);if(e>-1)i[e]=h.parse,o[e]=h.leaf;else{let e=h.before?AYn(a,h.before):h.after?AYn(a,h.after)+1:a.length-1;i.splice(e,0,h.parse),o.splice(e,0,h.leaf),a.splice(e,0,h.name)}h.endLeaf&&c.push(h.endLeaf)}if(mYn(t.parseInline))for(let h of t.parseInline){let e=l.indexOf(h.name);if(e>-1)s[e]=h.parse;else{let e=h.before?AYn(l,h.before):h.after?AYn(l,h.after)+1:l.length-1;s.splice(e,0,h.parse),l.splice(e,0,h.name)}}return t.wrap&&(u=u.concat(t.wrap)),new gYn(n,i,o,a,c,r,s,l,u)}getNodeType(e){let t=this.nodeTypes[e];if(null==t)throw new RangeError(`Unknown node type '${e}'`);return t}parseInline(e,t){let n=new DYn(this,e,t);e:for(let r=t;r<n.end;){let e=n.char(r);for(let t of this.inlineParsers)if(t){let i=t(n,e,r);if(i>=0){r=i;continue e}}r++}return n.resolveMarkers(0)}}function mYn(e){return null!=e&&e.length>0}function OYn(e){if(!Array.isArray(e))return e;if(0==e.length)return null;let t=OYn(e[0]);if(1==e.length)return t;let n=OYn(e.slice(1));if(!n||!t)return t||n;let r=(e,t)=>(e||vYn).concat(t||vYn),i=t.wrap,o=n.wrap;return{props:r(t.props,n.props),defineNodes:r(t.defineNodes,n.defineNodes),parseBlock:r(t.parseBlock,n.parseBlock),parseInline:r(t.parseInline,n.parseInline),remove:r(t.remove,n.remove),wrap:i?o?(e,t,n,r)=>i(o(e,t,n,r),t,n,r):i:o}}function AYn(e,t){let n=e.indexOf(t);if(n<0)throw new RangeError(`Position specified relative to unknown parser ${t}`);return n}let yYn=[Drt.none];for(let c,os=1;c=Ljn[os];os++)yYn[os]=Drt.define({id:os,name:c,props:os>=Ljn.Escape?[]:[[Brt.group,os in Fjn?["Block","BlockContext"]:["Block","LeafBlock"]]],top:"Document"==c});const vYn=[];let bYn=class{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,t,n,r=0){return this.content.push(e,t,n,4+4*r),this}writeElements(e,t=0){for(let n of e)n.writeTo(this,t);return this}finish(e,t){return zrt.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:t})}},xYn=class{constructor(e,t,n,r=vYn){this.type=e,this.from=t,this.to=n,this.children=r}writeTo(e,t){let n=e.content.length;e.writeElements(this.children,t),e.content.push(this.type,this.from+t,this.to+t,e.content.length+4-n)}toTree(e){return new bYn(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class wYn{constructor(e,t){this.tree=e,this.from=t}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return vYn}writeTo(e,t){e.nodes.push(this.tree),e.content.push(e.nodes.length-1,this.from+t,this.to+t,-1)}toTree(){return this.tree}}function kYn(e,t,n,r){return new xYn(e,t,n,r)}const SYn={resolve:"Emphasis",mark:"EmphasisMark"},TYn={resolve:"Emphasis",mark:"EmphasisMark"},$Yn={},_Yn={};class CYn{constructor(e,t,n,r){this.type=e,this.from=t,this.to=n,this.side=r}}const QYn="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let PYn=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{PYn=new RegExp("[\\p{S}|\\p{P}]","u")}catch(sdr){}const EYn={Escape(e,t,n){if(92!=t||n==e.end-1)return-1;let r=e.char(n+1);for(let i=0;i<32;i++)if(QYn.charCodeAt(i)==r)return e.append(kYn(Ljn.Escape,n,n+2));return-1},Entity(e,t,n){if(38!=t)return-1;let r=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(e.slice(n+1,n+31));return r?e.append(kYn(Ljn.Entity,n,n+1+r[0].length)):-1},InlineCode(e,t,n){if(96!=t||n&&96==e.char(n-1))return-1;let r=n+1;for(;r<e.end&&96==e.char(r);)r++;let i=r-n,o=0;for(;r<e.end;r++)if(96==e.char(r)){if(o++,o==i&&96!=e.char(r+1))return e.append(kYn(Ljn.InlineCode,n,r+1,[kYn(Ljn.CodeMark,n,n+i),kYn(Ljn.CodeMark,r+1-i,r+1)]))}else o=0;return-1},HTMLTag(e,t,n){if(60!=t||n==e.end-1)return-1;let r=e.slice(n+1,e.end),i=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(r);if(i)return e.append(kYn(Ljn.Autolink,n,n+1+i[0].length,[kYn(Ljn.LinkMark,n,n+1),kYn(Ljn.URL,n+1,n+i[0].length),kYn(Ljn.LinkMark,n+i[0].length,n+1+i[0].length)]));let o=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(r);if(o)return e.append(kYn(Ljn.Comment,n,n+1+o[0].length));let a=/^\?[^]*?\?>/.exec(r);if(a)return e.append(kYn(Ljn.ProcessingInstruction,n,n+1+a[0].length));let s=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return s?e.append(kYn(Ljn.HTMLTag,n,n+1+s[0].length)):-1},Emphasis(e,t,n){if(95!=t&&42!=t)return-1;let r=n+1;for(;e.char(r)==t;)r++;let i=e.slice(n-1,n),o=e.slice(r,r+1),a=PYn.test(i),s=PYn.test(o),l=/\s|^$/.test(i),c=/\s|^$/.test(o),u=!c&&(!s||l||a),h=!l&&(!a||c||s),d=u&&(42==t||!h||a),p=h&&(42==t||!u||s);return e.append(new CYn(95==t?SYn:TYn,n,r,(d?1:0)|(p?2:0)))},HardBreak(e,t,n){if(92==t&&10==e.char(n+1))return e.append(kYn(Ljn.HardBreak,n,n+2));if(32==t){let t=n+1;for(;32==e.char(t);)t++;if(10==e.char(t)&&t>=n+2)return e.append(kYn(Ljn.HardBreak,n,t+1))}return-1},Link:(e,t,n)=>91==t?e.append(new CYn($Yn,n,n+1,1)):-1,Image:(e,t,n)=>33==t&&91==e.char(n+1)?e.append(new CYn(_Yn,n,n+2,1)):-1,LinkEnd(e,t,n){if(93!=t)return-1;for(let r=e.parts.length-1;r>=0;r--){let t=e.parts[r];if(t instanceof CYn&&(t.type==$Yn||t.type==_Yn)){if(!t.side||e.skipSpace(t.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[r]=null,-1;let i=e.takeContent(r),o=e.parts[r]=RYn(e,i,t.type==$Yn?Ljn.Link:Ljn.Image,t.from,n+1);if(t.type==$Yn)for(let t=0;t<r;t++){let n=e.parts[t];n instanceof CYn&&n.type==$Yn&&(n.side=0)}return o.to}}return-1}};function RYn(e,t,n,r,i){let{text:o}=e,a=e.char(i),s=i;if(t.unshift(kYn(Ljn.LinkMark,r,r+(n==Ljn.Image?2:1))),t.push(kYn(Ljn.LinkMark,i-1,i)),40==a){let n,r=e.skipSpace(i+1),a=BYn(o,r-e.offset,e.offset);a&&(r=e.skipSpace(a.to),r!=a.to&&(n=IYn(o,r-e.offset,e.offset),n&&(r=e.skipSpace(n.to)))),41==e.char(r)&&(t.push(kYn(Ljn.LinkMark,i,i+1)),s=r+1,a&&t.push(a),n&&t.push(n),t.push(kYn(Ljn.LinkMark,r,s)))}else if(91==a){let n=LYn(o,i-e.offset,e.offset,!1);n&&(t.push(n),s=n.to)}return kYn(n,r,s,t)}function BYn(e,t,n){if(60==e.charCodeAt(t)){for(let r=t+1;r<e.length;r++){let i=e.charCodeAt(r);if(62==i)return kYn(Ljn.URL,t+n,r+1+n);if(60==i||10==i)return!1}return null}{let r=0,i=t;for(let t=!1;i<e.length;i++){let n=e.charCodeAt(i);if(Ujn(n))break;if(t)t=!1;else if(40==n)r++;else if(41==n){if(!r)break;r--}else 92==n&&(t=!0)}return i>t?kYn(Ljn.URL,t+n,i+n):i==e.length&&null}}function IYn(e,t,n){let r=e.charCodeAt(t);if(39!=r&&34!=r&&40!=r)return!1;let i=40==r?41:r;for(let o=t+1,a=!1;o<e.length;o++){let r=e.charCodeAt(o);if(a)a=!1;else{if(r==i)return kYn(Ljn.LinkTitle,t+n,o+1+n);92==r&&(a=!0)}}return null}function LYn(e,t,n,r){for(let i=!1,o=t+1,a=Math.min(e.length,o+999);o<a;o++){let a=e.charCodeAt(o);if(i)i=!1;else{if(93==a)return!r&&kYn(Ljn.LinkLabel,t+n,o+1+n);if(r&&!Ujn(a)&&(r=!1),91==a)return!1;92==a&&(i=!0)}}return null}class DYn{constructor(e,t,n){this.parser=e,this.text=t,this.offset=n,this.parts=[]}char(e){return e>=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,t){return this.text.slice(e-this.offset,t-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,t,n,r,i){return this.append(new CYn(e,t,n,(r?1:0)|(i?2:0)))}get hasOpenLink(){for(let e=this.parts.length-1;e>=0;e--){let t=this.parts[e];if(t instanceof CYn&&(t.type==$Yn||t.type==_Yn))return!0}return!1}addElement(e){return this.append(e)}resolveMarkers(e){for(let n=e;n<this.parts.length;n++){let t=this.parts[n];if(!(t instanceof CYn&&t.type.resolve&&2&t.side))continue;let r,i=t.type==SYn||t.type==TYn,o=t.to-t.from,a=n-1;for(;a>=e;a--){let e=this.parts[a];if(e instanceof CYn&&1&e.side&&e.type==t.type&&!(i&&(1&t.side||2&e.side)&&(e.to-e.from+o)%3==0&&((e.to-e.from)%3||o%3))){r=e;break}}if(!r)continue;let s=t.type.resolve,l=[],c=r.from,u=t.to;if(i){let e=Math.min(2,r.to-r.from,o);c=r.to-e,u=t.from+e,s=1==e?"Emphasis":"StrongEmphasis"}r.type.mark&&l.push(this.elt(r.type.mark,c,r.to));for(let e=a+1;e<n;e++)this.parts[e]instanceof xYn&&l.push(this.parts[e]),this.parts[e]=null;t.type.mark&&l.push(this.elt(t.type.mark,t.from,u));let h=this.elt(s,c,u,l);this.parts[a]=i&&r.from!=c?new CYn(r.type,r.from,c,r.side):null,(this.parts[n]=i&&t.to!=u?new CYn(t.type,u,t.to,t.side):null)?this.parts.splice(n,0,h):this.parts[n]=h}let t=[];for(let n=e;n<this.parts.length;n++){let e=this.parts[n];e instanceof xYn&&t.push(e)}return t}findOpeningDelimiter(e){for(let t=this.parts.length-1;t>=0;t--){let n=this.parts[t];if(n instanceof CYn&&n.type==e&&1&n.side)return t}return null}takeContent(e){let t=this.resolveMarkers(e);return this.parts.length=e,t}getDelimiterAt(e){let t=this.parts[e];return t instanceof CYn?t:null}skipSpace(e){return zjn(this.text,e-this.offset)+this.offset}elt(e,t,n,r){return"string"==typeof e?kYn(this.parser.getNodeType(e),t,n,r):new wYn(e,t)}}function MYn(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let i of t){for(;r<n.length&&n[r].to<i.to;)r++;if(r<n.length&&n[r].from<i.from){let e=n[r];e instanceof xYn&&(n[r]=new xYn(e.type,e.from,e.to,MYn(e.children,[i])))}else n.splice(r++,0,i)}return n}DYn.linkStart=$Yn,DYn.imageStart=_Yn;const NYn=[Ljn.CodeBlock,Ljn.ListItem,Ljn.OrderedList,Ljn.BulletList];class XYn{constructor(e,t){this.fragments=e,this.input=t,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,e.length&&(this.fragment=e[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(e,t){for(;this.fragment&&this.fragment.to<=e;)this.nextFragment();if(!this.fragment||this.fragment.from>(e?e-1:0))return!1;if(this.fragmentEnd<0){let e=this.fragment.to;for(;e>0&&"\n"!=this.input.read(e-1,e);)e--;this.fragmentEnd=e?e-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor(),n.firstChild());let r=e+this.fragment.offset;for(;n.to<=r;)if(!n.parent())return!1;for(;;){if(n.from>=r)return this.fragment.from<=t;if(!n.childAfter(r))return!1}}matches(e){let t=this.cursor.tree;return t&&t.prop(Brt.contextHash)==e}takeNodes(e){let t=this.cursor,n=this.fragment.offset,r=this.fragmentEnd-(this.fragment.openEnd?1:0),i=e.absoluteLineStart,o=i,a=e.block.children.length,s=o,l=a;for(;;){if(t.to-n>r){if(t.type.isAnonymous&&t.firstChild())continue;break}let i=FYn(t.from-n,e.ranges);if(t.to-n<=e.ranges[e.rangeI].to)e.addNode(t.tree,i);else{let n=new zrt(e.parser.nodeSet.types[Ljn.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(n,t.tree),e.addNode(n,i)}if(t.type.is("Block")&&(NYn.indexOf(t.type.id)<0?(o=t.to-n,a=e.block.children.length):(o=s,a=l),s=t.to-n,l=e.block.children.length),!t.nextSibling())break}for(;e.block.children.length>a;)e.block.children.pop(),e.block.positions.pop();return o-i}}function FYn(e,t){let n=e;for(let r=1;r<t.length;r++){let i=t[r-1].to,o=t[r].from;i<e&&(n-=o-i)}return n}const UYn=Cit({"Blockquote/...":Git.quote,HorizontalRule:Git.contentSeparator,"ATXHeading1/... SetextHeading1/...":Git.heading1,"ATXHeading2/... SetextHeading2/...":Git.heading2,"ATXHeading3/...":Git.heading3,"ATXHeading4/...":Git.heading4,"ATXHeading5/...":Git.heading5,"ATXHeading6/...":Git.heading6,"Comment CommentBlock":Git.comment,Escape:Git.escape,Entity:Git.character,"Emphasis/...":Git.emphasis,"StrongEmphasis/...":Git.strong,"Link/... Image/...":Git.link,"OrderedList/... BulletList/...":Git.list,"BlockQuote/...":Git.quote,"InlineCode CodeText":Git.monospace,"URL Autolink":Git.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":Git.processingInstruction,"CodeInfo LinkLabel":Git.labelName,LinkTitle:Git.string,Paragraph:Git.content}),zYn=new gYn(new Mrt(yYn).extend(UYn),Object.keys(aYn).map(e=>aYn[e]),Object.keys(aYn).map(e=>uYn[e]),Object.keys(aYn),hYn,Fjn,Object.keys(EYn).map(e=>EYn[e]),Object.keys(EYn),[]);function qYn(e,t,n){let r=[];for(let i=e.firstChild,o=t;;i=i.nextSibling){let e=i?i.from:n;if(e>o&&r.push({from:o,to:e}),!i)break;o=i.to}return r}const VYn={resolve:"Strikethrough",mark:"StrikethroughMark"},WYn={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":Git.strikethrough}},{name:"StrikethroughMark",style:Git.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,n){if(126!=t||126!=e.char(n+1)||126==e.char(n+2))return-1;let r=e.slice(n-1,n),i=e.slice(n+2,n+3),o=/\s|^$/.test(r),a=/\s|^$/.test(i),s=PYn.test(r),l=PYn.test(i);return e.addDelimiter(VYn,n,n+2,!a&&(!l||o||s),!o&&(!s||a||l))},after:"Emphasis"}]};function jYn(e,t,n=0,r,i=0){let o=0,a=!0,s=-1,l=-1,c=!1,u=()=>{r.push(e.elt("TableCell",i+s,i+l,e.parser.parseInline(t.slice(s,l),i+s)))};for(let h=n;h<t.length;h++){let n=t.charCodeAt(h);124!=n||c?(c||32!=n&&9!=n)&&(s<0&&(s=h),l=h+1):((!a||s>-1)&&o++,a=!1,r&&(s>-1&&u(),r.push(e.elt("TableDelimiter",h+i,h+i+1))),s=l=-1),c=!c&&92==n}return s>-1&&(o++,r&&u()),o}function YYn(e,t){for(let n=t;n<e.length;n++){let t=e.charCodeAt(n);if(124==t)return!0;92==t&&n++}return!1}const ZYn=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class GYn{constructor(){this.rows=null}nextLine(e,t,n){if(null==this.rows){let r;if(this.rows=!1,(45==t.next||58==t.next||124==t.next)&&ZYn.test(r=t.text.slice(t.pos))){let i=[];jYn(e,n.content,0,i,n.start)==jYn(e,r,0)&&(this.rows=[e.elt("TableHeader",n.start,n.start+n.content.length,i),e.elt("TableDelimiter",e.lineStart+t.pos,e.lineStart+t.text.length)])}}else if(this.rows){let n=[];jYn(e,t.text,t.pos,n,e.lineStart),this.rows.push(e.elt("TableRow",e.lineStart+t.pos,e.lineStart+t.text.length,n))}return!1}finish(e,t){return!!this.rows&&(e.addLeafElement(t,e.elt("Table",t.start,t.start+t.content.length,this.rows)),!0)}}const HYn={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":Git.heading}},"TableRow",{name:"TableCell",style:Git.content},{name:"TableDelimiter",style:Git.processingInstruction}],parseBlock:[{name:"Table",leaf:(e,t)=>YYn(t.content,0)?new GYn:null,endLeaf(e,t,n){if(n.parsers.some(e=>e instanceof GYn)||!YYn(t.text,t.basePos))return!1;let r=e.peekLine();return ZYn.test(r)&&jYn(e,t.text,t.basePos)==jYn(e,r,t.basePos)},before:"SetextHeading"}]};class KYn{nextLine(){return!1}finish(e,t){return e.addLeafElement(t,e.elt("Task",t.start,t.start+t.content.length,[e.elt("TaskMarker",t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)])),!0}}const JYn={defineNodes:[{name:"Task",block:!0,style:Git.list},{name:"TaskMarker",style:Git.atom}],parseBlock:[{name:"TaskList",leaf:(e,t)=>/^\[[ xX]\][ \t]/.test(t.content)&&"ListItem"==e.parentType().name?new KYn:null,after:"SetextHeading"}]},eZn=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,tZn=/[\w-]+(\.[\w-]+)+(:\d+)?(\/[^\s<]*)?/gy,nZn=/[\w-]+\.[\w-]+($|[/:])/,rZn=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,iZn=/\/[a-zA-Z\d@.]+/gy;function oZn(e,t,n,r){let i=0;for(let o=t;o<n;o++)e[o]==r&&i++;return i}function aZn(e,t){rZn.lastIndex=t;let n=rZn.exec(e);if(!n)return-1;let r=n[0][n[0].length-1];return"_"==r||"-"==r?-1:t+n[0].length-("."==r?1:0)}const sZn=[HYn,JYn,WYn,{parseInline:[{name:"Autolink",parse(e,t,n){let r=n-e.offset;if(r&&/\w/.test(e.text[r-1]))return-1;eZn.lastIndex=r;let i=eZn.exec(e.text),o=-1;if(!i)return-1;if(i[1]||i[2]){if(o=function(e,t){tZn.lastIndex=t;let n=tZn.exec(e);if(!n||nZn.exec(n[0])[0].indexOf("_")>-1)return-1;let r=t+n[0].length;for(;;){let n,i=e[r-1];if(/[?!.,:*_~]/.test(i)||")"==i&&oZn(e,t,r,")")>oZn(e,t,r,"("))r--;else{if(";"!=i||!(n=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))break;r=t+n.index}}return r}(e.text,r+i[0].length),o>-1&&e.hasOpenLink){o=r+/([^\[\]]|\[[^\]]*\])*/.exec(e.text.slice(r,o))[0].length}}else i[3]?o=aZn(e.text,r):(o=aZn(e.text,r+i[0].length),o>-1&&"xmpp:"==i[0]&&(iZn.lastIndex=o,i=iZn.exec(e.text),i&&(o=i.index+i[0].length)));return o<0?-1:(e.addElement(e.elt("URL",n,o+e.offset)),o+e.offset)}}]}];function lZn(e,t,n){return(r,i,o)=>{if(i!=e||r.char(o+1)==e)return-1;let a=[r.elt(n,o,o+1)];for(let s=o+1;s<r.end;s++){let i=r.char(s);if(i==e)return r.addElement(r.elt(t,o,s+1,a.concat(r.elt(n,s,s+1))));if(92==i&&a.push(r.elt("Escape",s,2+s++)),Ujn(i))break}return-1}}const cZn={defineNodes:[{name:"Superscript",style:Git.special(Git.content)},{name:"SuperscriptMark",style:Git.processingInstruction}],parseInline:[{name:"Superscript",parse:lZn(94,"Superscript","SuperscriptMark")}]},uZn={defineNodes:[{name:"Subscript",style:Git.special(Git.content)},{name:"SubscriptMark",style:Git.processingInstruction}],parseInline:[{name:"Subscript",parse:lZn(126,"Subscript","SubscriptMark")}]},hZn={defineNodes:[{name:"Emoji",style:Git.character}],parseInline:[{name:"Emoji",parse(e,t,n){let r;return 58==t&&(r=/^[a-zA-Z_0-9]+:/.exec(e.slice(n+1,e.end)))?e.addElement(e.elt("Emoji",n,n+1+r[0].length)):-1}}]},dZn=Jit({commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}}}),pZn=new Brt,fZn=zYn.configure({props:[Rot.add(e=>!e.is("Block")||e.is("Document")||null!=gZn(e)||function(e){return"OrderedList"==e.name||"BulletList"==e.name}(e)?void 0:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})),pZn.add(gZn),xot.add({Document:()=>null}),Kit.add({Document:dZn})]});function gZn(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function mZn(e,t){let n=e;for(;;){let e,r=n.nextSibling;if(!r||null!=(e=gZn(r.type))&&e<=t)break;n=r}return n.to}const OZn=Eot.of((e,t,n)=>{for(let r=iot(e).resolveInner(n,-1);r&&!(r.from<t);r=r.parent){let e=r.type.prop(pZn);if(null==e)continue;let t=mZn(r,e);if(t>n)return{from:n,to:t}}return null});function AZn(e){return new tot(dZn,e,[],"markdown")}const yZn=AZn(fZn),vZn=AZn(fZn.configure([sZn,uZn,cZn,hZn,{props:[Rot.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]));let bZn=class{constructor(e,t,n,r,i,o,a){this.node=e,this.from=t,this.to=n,this.spaceBefore=r,this.spaceAfter=i,this.type=o,this.item=a}blank(e,t=!0){let n=this.spaceBefore+("Blockquote"==this.node.name?">":"");if(null!=e){for(;n.length<e;)n+=" ";return n}for(let r=this.to-this.from-n.length-this.spaceAfter.length;r>0;r--)n+=" ";return n+(t?this.spaceAfter:"")}marker(e,t){let n="OrderedList"==this.node.name?String(+wZn(this.item,e)[2]+t):"";return this.spaceBefore+n+this.type+this.spaceAfter}};function xZn(e,t){let n=[],r=[];for(let i=e;i;i=i.parent){if("FencedCode"==i.name)return r;"ListItem"!=i.name&&"Blockquote"!=i.name||n.push(i)}for(let i=n.length-1;i>=0;i--){let e,o=n[i],a=t.lineAt(o.from),s=o.from-a.from;if("Blockquote"==o.name&&(e=/^ *>( ?)/.exec(a.text.slice(s))))r.push(new bZn(o,s,s+e[0].length,"",e[1],">",null));else if("ListItem"==o.name&&"OrderedList"==o.parent.name&&(e=/^( *)\d+([.)])( *)/.exec(a.text.slice(s)))){let t=e[3],n=e[0].length;t.length>=4&&(t=t.slice(0,t.length-4),n-=4),r.push(new bZn(o.parent,s,s+n,e[1],t,e[2],o))}else if("ListItem"==o.name&&"BulletList"==o.parent.name&&(e=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(a.text.slice(s)))){let t=e[4],n=e[0].length;t.length>4&&(t=t.slice(0,t.length-4),n-=4);let i=e[2];e[3]&&(i+=e[3].replace(/[xX]/," ")),r.push(new bZn(o.parent,s,s+n,e[1],t,i,o))}}return r}function wZn(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function kZn(e,t,n,r=0){for(let i=-1,o=e;;){if("ListItem"==o.name){let e=wZn(o,t),a=+e[2];if(i>=0){if(a!=i+1)return;n.push({from:o.from+e[1].length,to:o.from+e[0].length,insert:String(i+2+r)})}i=a}let e=o.nextSibling;if(!e)break;o=e}}function SZn(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||"\t"!=t.facet(Oot))return e;let r="";for(let i=o7e(e,4,n);i>0;)i>=4?(r+="\t",i-=4):(r+=" ",i--);return r+e.slice(n)}const TZn=(e={})=>({state:t,dispatch:n})=>{let r=iot(t),{doc:i}=t,o=null,a=t.changeByRange(n=>{if(!n.empty||!vZn.isActiveAt(t,n.from,-1)&&!vZn.isActiveAt(t,n.from,1))return o={range:n};let a=n.from,s=i.lineAt(a),l=xZn(r.resolveInner(a,-1),i);for(;l.length&&l[l.length-1].from>a-s.from;)l.pop();if(!l.length)return o={range:n};let c=l[l.length-1];if(c.to-c.spaceAfter.length>a-s.from)return o={range:n};let u=a>=c.to-c.spaceAfter.length&&!/\S/.test(s.text.slice(c.to));if(c.item&&u){let n=c.node.firstChild,r=c.node.getChild("ListItem","ListItem");if(n.to>=a||r&&r.to<a||s.from>0&&!/[^\s>]/.test(i.lineAt(s.from-1).text)||!1===e.nonTightLists){let e,t=l.length>1?l[l.length-2]:null,n="";t&&t.item?(e=s.from+t.from,n=t.marker(i,1)):e=s.from+(t?t.to:0);let r=[{from:e,to:a,insert:n}];return"OrderedList"==c.node.name&&kZn(c.item,i,r,-2),t&&"OrderedList"==t.node.name&&kZn(t.item,i,r),{range:Z3e.cursor(e+n.length),changes:r}}{let e=CZn(l,t,s);return{range:Z3e.cursor(a+e.length+1),changes:{from:s.from,insert:e+t.lineBreak}}}}if("Blockquote"==c.node.name&&u&&s.from){let e=i.lineAt(s.from-1),r=/>\s*$/.exec(e.text);if(r&&r.index==c.from){let i=t.changes([{from:e.from+r.index,to:e.to},{from:s.from+c.from,to:s.to}]);return{range:n.map(i),changes:i}}}let h=[];"OrderedList"==c.node.name&&kZn(c.item,i,h);let d=c.item&&c.item.from<s.from,p="";if(!d||/^[\s\d.)\-+*>]*/.exec(s.text)[0].length>=c.to)for(let e=0,t=l.length-1;e<=t;e++)p+=e!=t||d?l[e].blank(e<t?o7e(s.text,4,l[e+1].from)-p.length:null):l[e].marker(i,1);let f=a;for(;f>s.from&&/\s/.test(s.text.charAt(f-s.from-1));)f--;return p=SZn(p,t),function(e,t){if("OrderedList"!=e.name&&"BulletList"!=e.name)return!1;let n=e.firstChild,r=e.getChild("ListItem","ListItem");if(!r)return!1;let i=t.lineAt(n.to),o=t.lineAt(r.from),a=/^[\s>]*$/.test(i.text);return i.number+(a?0:1)<o.number}(c.node,t.doc)&&(p=CZn(l,t,s)+t.lineBreak+p),h.push({from:f,to:a,insert:t.lineBreak+p}),{range:Z3e.cursor(f+p.length+1),changes:h}});return!o&&(n(t.update(a,{scrollIntoView:!0,userEvent:"input"})),!0)},$Zn=TZn();function _Zn(e){return"QuoteMark"==e.name||"ListMark"==e.name}function CZn(e,t,n){let r="";for(let i=0,o=e.length-2;i<=o;i++)r+=e[i].blank(i<o?o7e(n.text,4,e[i+1].from)-r.length:null,i<o);return SZn(r,t)}const QZn=({state:e,dispatch:t})=>{let n=iot(e),r=null,i=e.changeByRange(t=>{let i=t.from,{doc:o}=e;if(t.empty&&vZn.isActiveAt(e,t.from)){let t=o.lineAt(i),r=xZn(function(e,t){let n=e.resolveInner(t,-1),r=t;_Zn(n)&&(r=n.from,n=n.parent);for(let i;i=n.childBefore(r);)if(_Zn(i))r=i.from;else{if("OrderedList"!=i.name&&"BulletList"!=i.name)break;n=i.lastChild,r=n.to}return n}(n,i),o);if(r.length){let n=r[r.length-1],o=n.to-n.spaceAfter.length+(n.spaceAfter?1:0);if(i-t.from>o&&!/\S/.test(t.text.slice(o,i-t.from)))return{range:Z3e.cursor(t.from+o),changes:{from:t.from+o,to:i}};if(i-t.from==o&&(!n.item||t.from<=n.item.from||!/\S/.test(t.text.slice(0,n.to)))){let r=t.from+n.from;if(n.item&&n.node.from<n.item.from&&/\S/.test(t.text.slice(n.from,n.to))){let i=n.blank(o7e(t.text,4,n.to)-o7e(t.text,4,n.from));return r==t.from&&(i=SZn(i,e)),{range:Z3e.cursor(r+i.length),changes:{from:r,to:t.from+n.to,insert:i}}}if(r<i)return{range:Z3e.cursor(r),changes:{from:r,to:i}}}}}return r={range:t}});return!r&&(t(e.update(i,{scrollIntoView:!0,userEvent:"delete"})),!0)},PZn=[{key:"Enter",run:$Zn},{key:"Backspace",run:QZn}],EZn=vWn({matchClosingTags:!1});function RZn(e){let{state:t,pos:n}=e,r=/<[:\-\.\w\u00b7-\uffff]*$/.exec(t.sliceDoc(n-25,n));if(!r)return null;let i=iot(t).resolveInner(n,-1);for(;i&&!i.type.isTop;){if("CodeBlock"==i.name||"FencedCode"==i.name||"ProcessingInstructionBlock"==i.name||"CommentBlock"==i.name||"Link"==i.name||"Image"==i.name)return null;i=i.parent}return{from:n-r[0].length,to:n,options:IZn(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}let BZn=null;function IZn(){if(BZn)return BZn;let e=pWn(new Act(X6e.create({extensions:EZn}),0,!0));return BZn=e?e.options:[]}const LZn=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,DZn=vtt.domEventHandlers({paste:(e,t)=>{var n;let{main:r}=t.state.selection;if(r.empty)return!1;let i=null===(n=e.clipboardData)||void 0===n?void 0:n.getData("text/plain");if(!i||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(i))return!1;if(/^www\./.test(i)&&(i="https://"+i),!vZn.isActiveAt(t.state,r.from,1))return!1;let o=iot(t.state),a=!1;return o.iterate({from:r.from,to:r.to,enter:e=>{(e.from>r.from||LZn.test(e.name))&&(a=!0)},leave:e=>{e.to<r.to&&(a=!0)}}),!a&&(t.dispatch({changes:[{from:r.from,insert:"["},{from:r.to,insert:`](${i})`}],userEvent:"input.paste",scrollIntoView:!0}),!0)}}),MZn=Object.freeze(Object.defineProperty({__proto__:null,commonmarkLanguage:yZn,deleteMarkupBackward:QZn,insertNewlineContinueMarkup:$Zn,insertNewlineContinueMarkupCommand:TZn,markdown:function(e={}){let{codeLanguages:t,defaultCodeLanguage:n,addKeymap:r=!0,base:{parser:i}=yZn,completeHTMLTags:o=!0,pasteURLAsLink:a=!0,htmlTagLanguage:s=EZn}=e;if(!(i instanceof gYn))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let l,c=e.extensions?[e.extensions]:[],u=[s.support,OZn];a&&u.push(DZn),n instanceof fot?(u.push(n.support),l=n.language):n&&(l=n);let h=t||l?(d=t,p=l,e=>{if(e&&d){let t=null;if(e=/\S*/.exec(e)[0],t="function"==typeof d?d(e):got.matchLanguageName(d,e,!0),t instanceof got)return t.support?t.support.language.parser:sot.getSkippingParser(t.load());if(t)return t.parser}return p?p.parser:null}):void 0;var d,p;c.push(function(e){let{codeParser:t,htmlParser:n}=e;return{wrap:hit((e,r)=>{let i=e.type.id;if(!t||i!=Ljn.CodeBlock&&i!=Ljn.FencedCode){if(n&&(i==Ljn.HTMLBlock||i==Ljn.HTMLTag||i==Ljn.CommentBlock))return{parser:n,overlay:qYn(e.node,e.from,e.to)}}else{let n="";if(i==Ljn.FencedCode){let t=e.node.getChild(Ljn.CodeInfo);t&&(n=r.read(t.from,t.to))}let o=t(n);if(o)return{parser:o,overlay:e=>e.type.id==Ljn.CodeText,bracketed:i==Ljn.FencedCode}}return null})}}({codeParser:h,htmlParser:s.language.parser})),r&&u.push(h6e.high(_tt.of(PZn)));let f=AZn(i.configure(c));return o&&u.push(f.data.of({autocomplete:RZn})),new fot(f,u)},markdownKeymap:PZn,markdownLanguage:vZn,pasteURLAsLink:DZn},Symbol.toStringTag,{value:"Module"})),NZn={abstract:4,and:5,array:6,as:7,true:8,false:8,break:9,case:10,catch:11,clone:12,const:13,continue:14,declare:16,default:15,do:17,echo:18,else:19,elseif:20,enddeclare:21,endfor:22,endforeach:23,endif:24,endswitch:25,endwhile:26,enum:27,extends:28,final:29,finally:30,fn:31,for:32,foreach:33,from:34,function:35,global:36,goto:37,if:38,implements:39,include:40,include_once:41,instanceof:42,insteadof:43,interface:44,list:45,match:46,namespace:47,new:48,null:49,or:50,print:51,readonly:52,require:53,require_once:54,return:55,switch:56,throw:57,trait:58,try:59,unset:60,use:61,var:62,public:63,private:63,protected:63,while:64,xor:65,yield:66,__proto__:null};function XZn(e){let t=NZn[e.toLowerCase()];return null==t?-1:t}function FZn(e){return 9==e||10==e||13==e||32==e}function UZn(e){return e>=97&&e<=122||e>=65&&e<=90}function zZn(e){return 95==e||e>=128||UZn(e)}function qZn(e){return e>=48&&e<=55||e>=97&&e<=102||e>=65&&e<=70}const VZn={int:!0,integer:!0,bool:!0,boolean:!0,float:!0,double:!0,real:!0,string:!0,array:!0,object:!0,unset:!0,__proto__:null},WZn=new OUn(e=>{if(40==e.next){e.advance();let t=0;for(;FZn(e.peek(t));)t++;let n,r="";for(;UZn(n=e.peek(t));)r+=String.fromCharCode(n),t++;for(;FZn(e.peek(t));)t++;41==e.peek(t)&&VZn[r.toLowerCase()]&&e.acceptToken(1)}else if(60==e.next&&60==e.peek(1)&&60==e.peek(2)){for(let r=0;r<3;r++)e.advance();for(;32==e.next||9==e.next;)e.advance();let t=39==e.next;if(t&&e.advance(),!zZn(e.next))return;let n=String.fromCharCode(e.next);for(;e.advance(),zZn(e.next)||e.next>=48&&e.next<=55;)n+=String.fromCharCode(e.next);if(t){if(39!=e.next)return;e.advance()}if(10!=e.next&&13!=e.next)return;for(;;){let t=10==e.next||13==e.next;if(e.advance(),e.next<0)return;if(t){for(;32==e.next||9==e.next;)e.advance();let t=!0;for(let r=0;r<n.length;r++){if(e.next!=n.charCodeAt(r)){t=!1;break}e.advance()}if(t)return e.acceptToken(2)}}}}),jZn=new OUn(e=>{e.next<0&&e.acceptToken(278)}),YZn=new OUn((e,t)=>{63==e.next&&t.canShift(277)&&62==e.peek(1)&&e.acceptToken(277)});function ZZn(e){let t=e.peek(1);if(110==t||114==t||116==t||118==t||101==t||102==t||92==t||36==t||34==t||123==t)return 2;if(t>=48&&t<=55){let t,n=2;for(;n<5&&(t=e.peek(n))>=48&&t<=55;)n++;return n}if(120==t&&qZn(e.peek(2)))return qZn(e.peek(3))?4:3;if(117==t&&123==e.peek(2))for(let n=3;;n++){let t=e.peek(n);if(125==t)return 2==n?0:n+1;if(!qZn(t))break}return 0}const GZn=new OUn((e,t)=>{let n=!1;for(;!(34==e.next||e.next<0||36==e.next&&(zZn(e.peek(1))||123==e.peek(1))||123==e.next&&36==e.peek(1));n=!0){if(92==e.next){let t=ZZn(e);if(t){if(n)break;return e.acceptToken(3,t)}}else if(!n&&(91==e.next||45==e.next&&62==e.peek(1)&&zZn(e.peek(2))||63==e.next&&45==e.peek(1)&&62==e.peek(2)&&zZn(e.peek(3)))&&t.canShift(276))break;e.advance()}n&&e.acceptToken(275)}),HZn=Cit({"Visibility abstract final static":Git.modifier,"for foreach while do if else elseif switch try catch finally return throw break continue default case":Git.controlKeyword,"endif endfor endforeach endswitch endwhile declare enddeclare goto match":Git.controlKeyword,"and or xor yield unset clone instanceof insteadof":Git.operatorKeyword,"function fn class trait implements extends const enum global interface use var":Git.definitionKeyword,"include include_once require require_once namespace":Git.moduleKeyword,"new from echo print array list as":Git.keyword,null:Git.null,Boolean:Git.bool,VariableName:Git.variableName,"NamespaceName/...":Git.namespace,"NamedType/...":Git.typeName,Name:Git.name,"CallExpression/Name":Git.function(Git.variableName),"LabelStatement/Name":Git.labelName,"MemberExpression/Name":Git.propertyName,"MemberExpression/VariableName":Git.special(Git.propertyName),"ScopedExpression/ClassMemberName/Name":Git.propertyName,"ScopedExpression/ClassMemberName/VariableName":Git.special(Git.propertyName),"CallExpression/MemberExpression/Name":Git.function(Git.propertyName),"CallExpression/ScopedExpression/ClassMemberName/Name":Git.function(Git.propertyName),"MethodDeclaration/Name":Git.function(Git.definition(Git.variableName)),"FunctionDefinition/Name":Git.function(Git.definition(Git.variableName)),"ClassDeclaration/Name":Git.definition(Git.className),UpdateOp:Git.updateOperator,ArithOp:Git.arithmeticOperator,"LogicOp IntersectionType/&":Git.logicOperator,BitOp:Git.bitwiseOperator,CompareOp:Git.compareOperator,ControlOp:Git.controlOperator,AssignOp:Git.definitionOperator,"$ ConcatOp":Git.operator,LineComment:Git.lineComment,BlockComment:Git.blockComment,Integer:Git.integer,Float:Git.float,String:Git.string,ShellExpression:Git.special(Git.string),"=> ->":Git.punctuation,"( )":Git.paren,"#[ [ ]":Git.squareBracket,"${ { }":Git.brace,"-> ?->":Git.derefOperator,", ; :: : \\":Git.separator,"Ph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",nodeNames:"⚠ ( HeredocString EscapeSequence abstract LogicOp array as Boolean break case catch clone const continue default declare do echo else elseif enddeclare endfor endforeach endif endswitch endwhile enum extends final finally fn for foreach from function global goto if implements include include_once LogicOp insteadof interface list match namespace new null LogicOp print readonly require require_once return switch throw trait try unset use var Visibility while LogicOp yield LineComment BlockComment TextInterpolation PhpClose Text PhpOpen Template TextInterpolation EmptyStatement ; } { Block : LabelStatement Name ExpressionStatement ConditionalExpression LogicOp MatchExpression ) ( ParenthesizedExpression MatchBlock MatchArm , => AssignmentExpression ArrayExpression ValueList & VariadicUnpacking ... Pair [ ] ListExpression ValueList Pair Pair SubscriptExpression MemberExpression -> ?-> Name VariableName DynamicVariable $ ${ CallExpression ArgList NamedArgument SpreadArgument CastExpression UnionType LogicOp IntersectionType OptionalType NamedType QualifiedName \\ NamespaceName Name NamespaceName Name ScopedExpression :: ClassMemberName DynamicMemberName AssignOp UpdateExpression UpdateOp YieldExpression BinaryExpression LogicOp LogicOp LogicOp BitOp BitOp BitOp CompareOp CompareOp BitOp ArithOp ConcatOp ArithOp ArithOp IncludeExpression RequireExpression CloneExpression UnaryExpression ControlOp LogicOp PrintIntrinsic FunctionExpression static ParamList Parameter #[ Attributes Attribute VariadicParameter PropertyParameter PropertyHooks PropertyHook UseList ArrowFunction NewExpression class BaseClause ClassInterfaceClause DeclarationList ConstDeclaration VariableDeclarator PropertyDeclaration VariableDeclarator MethodDeclaration UseDeclaration UseList UseInsteadOfClause UseAsClause UpdateExpression ArithOp ShellExpression ThrowExpression Integer Float String MemberExpression SubscriptExpression UnaryExpression ArithOp Interpolation String IfStatement ColonBlock SwitchStatement Block CaseStatement DefaultStatement ColonBlock WhileStatement EmptyStatement DoStatement ForStatement ForSpec SequenceExpression ForeachStatement ForSpec Pair GotoStatement ContinueStatement BreakStatement ReturnStatement TryStatement CatchDeclarator DeclareStatement EchoStatement UnsetStatement ConstDeclaration FunctionDefinition ClassDeclaration InterfaceDeclaration TraitDeclaration EnumDeclaration EnumBody EnumCase NamespaceDefinition NamespaceUseDeclaration UseGroup UseClause UseClause GlobalDeclaration FunctionStaticDeclaration Program",maxTerm:318,nodeProps:[["group",-36,2,8,49,82,84,86,89,94,95,103,107,108,112,113,116,120,126,132,137,139,140,154,155,156,157,160,161,173,174,188,190,191,192,193,194,200,"Expression",-28,75,79,81,83,201,203,208,210,211,214,217,218,219,220,221,223,224,225,226,227,228,229,230,231,234,235,239,240,"Statement",-4,121,123,124,125,"Type"],["isolate",-4,67,68,71,200,""],["openedBy",70,"phpOpen",77,"{",87,"(",102,"#["],["closedBy",72,"phpClose",78,"}",88,")",165,"]"]],propSources:[HZn],skippedNodes:[0],repeatNodeCount:32,tokenData:"!GQ_R!]OX$zXY&^YZ'sZ]$z]^&^^p$zpq&^qr)Rrs+Pst+otu2buv5evw6rwx8Vxy>]yz>yz{?g{|@}|}Bb}!OCO!O!PDh!P!QKT!Q!R!!o!R![!$q![!]!,P!]!^!-a!^!_!-}!_!`!1S!`!a!2d!a!b!3t!b!c!7^!c!d!7z!d!e!9Y!e!}!7z!}#O!;b#O#P!<O#P#Q!<l#Q#R!=Y#R#S!7z#S#T!=y#T#U!7z#U#V!9Y#V#o!7z#o#p!Cs#p#q!Da#q#r!Ev#r#s!Fd#s$f$z$f$g&^$g&j!7z&j$I_$z$I_$I`&^$I`$KW$z$KW$KX&^$KX;'S$z;'S;=`&W<%l?HT$z?HT?HU&^?HUO$zP%PV'TPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zP%kO'TPP%nWOY$zYZ%fZ!a$z!b;'S$z;'S;=`&W<%l~$z~O$z~~%fP&ZP;=`<%l$z_&ed'TP'S^OX$zXY&^YZ'sZ]$z]^&^^p$zpq&^q!^$z!^!_%k!_$f$z$f$g&^$g$I_$z$I_$I`&^$I`$KW$z$KW$KX&^$KX;'S$z;'S;=`&W<%l?HT$z?HT?HU&^?HUO$z_'zW'TP'S^XY(dYZ(d]^(dpq(d$f$g(d$I_$I`(d$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`!@s<%lO!?]Q!?xRO;'S!?];'S;=`!@R;=`O!?]Q!@UWO#O!?]#O#P!?u#P#S!?]#S#T!@n#T;'S!?];'S;=`!@s;=`<%l!?]<%lO!?]Q!@sO%UQQ!@vP;=`<%l!?]R!@|]OY!=yYZ!>qZ!a!=y!a!b!?]!b#O!=y#O#P!Au#P#S!=y#S#T!CP#T;'S!=y;'S;=`!Cm<%l~!=y~O!=y~~%fR!AzW'TPOY!=yYZ!>qZ!^!=y!^!_!@y!_;'S!=y;'S;=`!Bd;=`<%l!?]<%lO!=yR!BgWO#O!?]#O#P!?u#P#S!?]#S#T!@n#T;'S!?];'S;=`!@s;=`<%l!=y<%lO!?]R!CWV%UQ'TPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!CpP;=`<%l!=y_!CzV!p^'TPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$z_!DjY$UQ#n['TPOY$zYZ%fZ!^$z!^!_%k!_!`6U!`#p$z#p#q!EY#q;'S$z;'S;=`&W<%lO$zR!EaV$SQ'TPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!E}V!oQ'TPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!FkV$eQ'TPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$z",tokenizers:[WZn,GZn,YZn,0,1,2,3,jZn],topRules:{Template:[0,73],Program:[1,241]},dynamicPrecedences:{298:1},specialized:[{term:284,get:(e,t)=>XZn(e)<<1,external:XZn},{term:284,get:e=>KZn[e]||-1}],tokenPrec:29889}),eGn=rot.define({name:"php",parser:JZn.configure({props:[xot.add({IfStatement:Pot({except:/^\s*({|else\b|elseif\b|endif\b)/}),TryStatement:Pot({except:/^\s*({|catch\b|finally\b)/}),SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},ColonBlock:e=>e.baseIndent+e.unit,"Block EnumBody DeclarationList":_ot({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"String BlockComment":()=>null,Statement:Pot({except:/^({|end(for|foreach|switch|while)\b)/})}),Rot.add({"Block EnumBody DeclarationList SwitchBody ArrayExpression ValueList":Bot,ColonBlock:e=>({from:e.from+1,to:e.to}),BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*(?:case |default:|end(?:if|for(?:each)?|switch|while)|else(?:if)?|\{|\})$/,wordChars:"$",closeBrackets:{stringPrefixes:["b","B"]}}});const tGn=Object.freeze(Object.defineProperty({__proto__:null,php:function(e={}){let t,n=[];if(null===e.baseLanguage);else if(e.baseLanguage)t=e.baseLanguage;else{let e=vWn({matchClosingTags:!1});n.push(e.support),t=e.language}return new fot(eGn.configure({wrap:t&&hit(e=>e.type.isTop?{parser:t.parser,overlay:e=>"Text"==e.name}:null),top:e.plain?"Program":"Template"}),n)},phpLanguage:eGn},Symbol.toStringTag,{value:"Module"})),nGn=10,rGn=new Set([25,49,50,263,65,130,56,57,238,62,63,72,73,77,60,61,151,152,155,112]);function iGn(e){return e==nGn||13==e}function oGn(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}const aGn=new OUn((e,t)=>{let n;if(e.next<0)e.acceptToken(199);else if(t.context.flags&lGn)iGn(e.next)&&e.acceptToken(198,1);else if(((n=e.peek(-1))<0||iGn(n))&&t.canShift(197)){let t=0;for(;32==e.next||9==e.next;)e.advance(),t++;e.next!=nGn&&13!=e.next&&35!=e.next||e.acceptToken(197,-t)}else iGn(e.next)&&e.acceptToken(196,1)},{contextual:!0}),sGn=new OUn((e,t)=>{let n=t.context;if(n.flags)return;let r=e.peek(-1);if(r==nGn||13==r){let t=0,r=0;for(;;){if(32==e.next)t++;else{if(9!=e.next)break;t+=8-t%8}e.advance(),r++}t!=n.indent&&e.next!=nGn&&13!=e.next&&35!=e.next&&(t<n.indent?e.acceptToken(195,-r):e.acceptToken(194))}}),lGn=1,cGn=4,uGn=8,hGn=16,dGn=32;function pGn(e,t,n){this.parent=e,this.indent=t,this.flags=n,this.hash=(e?e.hash+e.hash<<8:0)+t+(t<<4)+n+(n<<6)}const fGn=new pGn(null,0,0);const gGn=new Map([[241,0],[242,cGn],[243,uGn],[244,uGn|cGn],[245,hGn],[246,hGn|cGn],[247,hGn|uGn],[248,hGn|uGn|cGn],[249,dGn],[250,dGn|cGn],[251,dGn|uGn],[252,dGn|uGn|cGn],[253,dGn|hGn],[254,dGn|hGn|cGn],[255,dGn|hGn|uGn],[256,dGn|hGn|uGn|cGn]].map(([e,t])=>[e,2|t])),mGn=new QUn({start:fGn,reduce:(e,t,n,r)=>e.flags&lGn&&rGn.has(t)||(71==t||72==t)&&2&e.flags?e.parent:e,shift:(e,t,n,r)=>194==t?new pGn(e,function(e){let t=0;for(let n=0;n<e.length;n++)t+=9==e.charCodeAt(n)?8-t%8:1;return t}(r.read(r.pos,n.pos)),0):195==t?e.parent:24==t||55==t||59==t||3==t?new pGn(e,0,lGn):gGn.has(t)?new pGn(e,0,gGn.get(t)|e.flags&lGn):e,hash:e=>e.hash}),OGn=new OUn(e=>{for(let t=0;t<5;t++){if(e.next!="print".charCodeAt(t))return;e.advance()}if(!/\w/.test(String.fromCharCode(e.next)))for(let t=0;;t++){let n=e.peek(t);if(32!=n&&9!=n)return void(40!=n&&46!=n&&n!=nGn&&13!=n&&35!=n&&e.acceptToken(1))}}),AGn=new OUn((e,t)=>{let{flags:n}=t.context,r=n&cGn?34:39,i=(n&uGn)>0,o=!(n&hGn),a=(n&dGn)>0,s=e.pos;for(;!(e.next<0);)if(a&&123==e.next){if(123!=e.peek(1)){if(e.pos==s)return void e.acceptToken(3,1);break}e.advance(2)}else{if(o&&92==e.next){if(e.pos==s){e.advance();let t=e.next;return t>=0&&(e.advance(),yGn(e,t)),void e.acceptToken(2)}break}if(92==e.next&&!o&&e.peek(1)>-1)e.advance(2);else{if(e.next==r&&(!i||e.peek(1)==r&&e.peek(2)==r)){if(e.pos==s)return void e.acceptToken(201,i?3:1);break}if(e.next==nGn){if(i)e.advance();else if(e.pos==s)return void e.acceptToken(201);break}e.advance()}}e.pos>s&&e.acceptToken(200)});function yGn(e,t){if(111==t)for(let n=0;n<2&&e.next>=48&&e.next<=55;n++)e.advance();else if(120==t)for(let n=0;n<2&&oGn(e.next);n++)e.advance();else if(117==t)for(let n=0;n<4&&oGn(e.next);n++)e.advance();else if(85==t)for(let n=0;n<8&&oGn(e.next);n++)e.advance();else if(78==t&&123==e.next){for(e.advance();e.next>=0&&125!=e.next&&39!=e.next&&34!=e.next&&e.next!=nGn;)e.advance();125==e.next&&e.advance()}}const vGn=Cit({'async "*" "**" FormatConversion FormatSpec':Git.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":Git.controlKeyword,"in not and or is del":Git.operatorKeyword,"from def class global nonlocal lambda":Git.definitionKeyword,import:Git.moduleKeyword,"with as print":Git.keyword,Boolean:Git.bool,None:Git.null,VariableName:Git.variableName,"CallExpression/VariableName":Git.function(Git.variableName),"FunctionDefinition/VariableName":Git.function(Git.definition(Git.variableName)),"ClassDefinition/VariableName":Git.definition(Git.className),PropertyName:Git.propertyName,"CallExpression/MemberExpression/PropertyName":Git.function(Git.propertyName),Comment:Git.lineComment,Number:Git.number,String:Git.string,FormatString:Git.special(Git.string),Escape:Git.escape,UpdateOp:Git.updateOperator,"ArithOp!":Git.arithmeticOperator,BitOp:Git.bitwiseOperator,CompareOp:Git.compareOperator,AssignOp:Git.definitionOperator,Ellipsis:Git.punctuation,At:Git.meta,"( )":Git.paren,"[ ]":Git.squareBracket,"{ }":Git.brace,".":Git.derefOperator,", ;":Git.separator}),bGn={__proto__:null,await:44,or:54,and:56,in:60,not:62,is:64,if:70,else:72,lambda:76,yield:94,from:96,async:102,for:104,None:162,True:164,False:164,del:178,pass:182,break:186,continue:190,return:194,raise:202,import:206,as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.^R/Q._U.]-l.^._Q/U.aQ/b.tQ/g.zU/i.|/j/yQ/n/RQ/|/oQ0O/tU0Q/u0S0[Q0]0UQ0a0ZR0b0^R/T.`R/d.t",nodeNames:"⚠ print Escape { Comment Script AssignStatement * BinaryExpression BitOp BitOp BitOp BitOp ArithOp ArithOp @ ArithOp ** UnaryExpression ArithOp BitOp AwaitExpression await ) ( ParenthesizedExpression BinaryExpression or and CompareOp in not is UnaryExpression ConditionalExpression if else LambdaExpression lambda ParamList VariableName AssignOp , : NamedExpression AssignOp YieldExpression yield from TupleExpression ComprehensionExpression async for LambdaExpression ] [ ArrayExpression ArrayComprehensionExpression } { DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression CallExpression ArgList AssignOp MemberExpression . PropertyName Number String FormatString FormatReplacement FormatSelfDoc FormatConversion FormatSpec FormatReplacement FormatSelfDoc ContinuedString Ellipsis None Boolean TypeDef AssignOp UpdateStatement UpdateOp ExpressionStatement DeleteStatement del PassStatement pass BreakStatement break ContinueStatement continue ReturnStatement return YieldStatement PrintStatement RaiseStatement raise ImportStatement import as ScopeStatement global nonlocal AssertStatement assert TypeDefinition type TypeParamList TypeParam StatementGroup ; IfStatement Body elif WhileStatement while ForStatement TryStatement try except finally WithStatement with FunctionDefinition def ParamList AssignOp TypeDef ClassDefinition class DecoratedStatement Decorator At MatchStatement match MatchBody MatchClause case CapturePattern LiteralPattern ArithOp ArithOp AsPattern OrPattern LogicOp AttributePattern SequencePattern MappingPattern StarPattern ClassPattern PatternArgList KeywordPattern KeywordPattern Guard",maxTerm:277,context:mGn,nodeProps:[["isolate",-5,4,71,72,73,77,""],["group",-15,6,85,87,88,90,92,94,96,98,99,100,102,105,108,110,"Statement Statement",-22,8,18,21,25,40,49,50,56,57,60,61,62,63,64,67,70,71,72,79,80,81,82,"Expression",-10,114,116,119,121,122,126,128,133,135,138,"Statement",-9,143,144,147,148,150,151,152,153,154,"Pattern"],["openedBy",23,"(",54,"[",58,"{"],["closedBy",24,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`%i<%lO%Tk!,PV&n`Ow%Twx!,fx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!,mT&n`&iZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To!-Vi&n`&YS%uZOr%TrsNWsw%Twx! vx!Q%T!Q![JU![!c%T!c!dJU!d!eLx!e!hJU!h!i!(`!i!}JU!}#R%T#R#SJU#S#T%T#T#UJU#U#VLx#V#YJU#Y#Z!(`#Z#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUo!.}a&n`&YS%uZOr%Trs)Ysw%Twx.Ux!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!0ZT!XZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc!0qT!WR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj!1XV%kQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!1sO!]~k!1zV%jR&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!2fO![~i!2mT%tX&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T",tokenizers:[OGn,sGn,aGn,AGn,0,1,2,3,4],topRules:{Script:[0,5]},specialized:[{term:221,get:e=>bGn[e]||-1}],tokenPrec:7668}),wGn=new sit,kGn=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function SGn(e){return(t,n,r)=>{if(r)return!1;let i=t.node.getChild("VariableName");return i&&n(i,e),!0}}const TGn={FunctionDefinition:SGn("function"),ClassDefinition:SGn("class"),ForStatement(e,t,n){if(n)for(let r=e.node.firstChild;r;r=r.nextSibling)if("VariableName"==r.name)t(r,"variable");else if("in"==r.name)break},ImportStatement(e,t){var n,r;let{node:i}=e,o="from"==(null===(n=i.firstChild)||void 0===n?void 0:n.name);for(let a=i.getChild("import");a;a=a.nextSibling)"VariableName"==a.name&&"as"!=(null===(r=a.nextSibling)||void 0===r?void 0:r.name)&&t(a,o?"variable":"namespace")},AssignStatement(e,t){for(let n=e.node.firstChild;n;n=n.nextSibling)if("VariableName"==n.name)t(n,"variable");else if(":"==n.name||"AssignOp"==n.name)break},ParamList(e,t){for(let n=null,r=e.node.firstChild;r;r=r.nextSibling)"VariableName"!=r.name||n&&/\*|AssignOp/.test(n.name)||t(r,"variable"),n=r},CapturePattern:SGn("variable"),AsPattern:SGn("variable"),__proto__:null};function $Gn(e,t){let n=wGn.get(t);if(n)return n;let r=[],i=!0;function o(t,n){let i=e.sliceString(t.from,t.to);r.push({label:i,type:n})}return t.cursor(Frt.IncludeAnonymous).iterate(t=>{if(t.name){let e=TGn[t.name];if(e&&e(t,o,i)||!i&&kGn.has(t.name))return!1;i=!1}else if(t.to-t.from>8192){for(let n of $Gn(e,t.node))r.push(n);return!1}}),wGn.set(t,r),r}const _Gn=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,CGn=["String","FormatString","Comment","PropertyName"];function QGn(e){let t=iot(e.state).resolveInner(e.pos,-1);if(CGn.indexOf(t.name)>-1)return null;let n="VariableName"==t.name||t.to-t.from<20&&_Gn.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)kGn.has(i.name)&&(r=r.concat($Gn(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:_Gn}}const PGn=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(e=>({label:e,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(e=>({label:e,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(e=>({label:e,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(e=>({label:e,type:"function"}))),EGn=[xut("def ${name}(${params}):\n\t${}",{label:"def",detail:"function",type:"keyword"}),xut("for ${name} in ${collection}:\n\t${}",{label:"for",detail:"loop",type:"keyword"}),xut("while ${}:\n\t${}",{label:"while",detail:"loop",type:"keyword"}),xut("try:\n\t${}\nexcept ${error}:\n\t${}",{label:"try",detail:"/ except block",type:"keyword"}),xut("if ${}:\n\t\n",{label:"if",detail:"block",type:"keyword"}),xut("if ${}:\n\t${}\nelse:\n\t${}",{label:"if",detail:"/ else block",type:"keyword"}),xut("class ${name}:\n\tdef __init__(self, ${params}):\n\t\t\t${}",{label:"class",detail:"definition",type:"keyword"}),xut("import ${module}",{label:"import",detail:"statement",type:"keyword"}),xut("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],RGn=bct(CGn,vct(PGn.concat(EGn)));function BGn(e){let{node:t,pos:n}=e,r=e.lineIndent(n,-1),i=null;for(;;){let o=t.childBefore(n);if(!o)break;if("Comment"==o.name)n=o.from;else if("Body"==o.name||"MatchBody"==o.name)e.baseIndentFor(o)+e.unit<=r&&(i=o),t=o;else if("MatchClause"==o.name)t=o;else{if(!o.type.is("Statement"))break;t=o}}return i}function IGn(e,t){let n=e.baseIndentFor(t),r=e.lineAt(e.pos,-1),i=r.from+r.text.length;return/^\s*($|#)/.test(r.text)&&e.node.to<i+100&&!/\S/.test(e.state.sliceDoc(i,e.node.to))&&e.lineIndent(e.pos,-1)<=n||/^\s*(else:|elif |except |finally:|case\s+[^=:]+:)/.test(e.textAfter)&&e.lineIndent(e.pos,-1)>n?null:n+e.unit}const LGn=rot.define({name:"python",parser:xGn.configure({props:[xot.add({Body:e=>{var t;return null!==(t=IGn(e,/^\s*(#|$)/.test(e.textAfter)&&BGn(e)||e.node))&&void 0!==t?t:e.continue()},MatchBody:e=>{var t;return null!==(t=IGn(e,BGn(e)||e.node))&&void 0!==t?t:e.continue()},IfStatement:e=>/^\s*(else:|elif )/.test(e.textAfter)?e.baseIndent:e.continue(),"ForStatement WhileStatement":e=>/^\s*else:/.test(e.textAfter)?e.baseIndent:e.continue(),TryStatement:e=>/^\s*(except[ :]|finally:|else:)/.test(e.textAfter)?e.baseIndent:e.continue(),MatchStatement:e=>/^\s*case /.test(e.textAfter)?e.baseIndent+e.unit:e.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":_ot({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":_ot({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":_ot({closing:"]"}),MemberExpression:e=>e.baseIndent+e.unit,"String FormatString":()=>null,Script:e=>{var t;let n=BGn(e);return null!==(t=n&&IGn(e,n))&&void 0!==t?t:e.continue()}}),Rot.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":Bot,Body:(e,t)=>({from:e.from+1,to:e.to-(e.to==t.doc.length?0:1)}),"String FormatString":(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:|case\s+[^:]*:?)$/}});const DGn=Object.freeze(Object.defineProperty({__proto__:null,globalCompletion:RGn,localCompletionSource:QGn,python:function(){return new fot(LGn,[LGn.data.of({autocomplete:QGn}),LGn.data.of({autocomplete:RGn})])},pythonLanguage:LGn},Symbol.toStringTag,{value:"Module"}));function MGn(e){return e>=48&&e<=57}function NGn(e){return MGn(e)||95==e}const XGn=new OUn((e,t)=>{if(MGn(e.next)){let t=!1;do{e.advance()}while(NGn(e.next));if(46==e.next)if(t=!0,e.advance(),MGn(e.next))do{e.advance()}while(NGn(e.next));else if(46==e.next||e.next>127||/\w/.test(String.fromCharCode(e.next)))return;if(101==e.next||69==e.next){if(t=!0,e.advance(),43!=e.next&&45!=e.next||e.advance(),!NGn(e.next))return;do{e.advance()}while(NGn(e.next))}if(102==e.next){let n=e.peek(1);if(!(51==n&&50==e.peek(2)||54==n&&52==e.peek(2)))return;e.advance(3),t=!0}t&&e.acceptToken(5)}else if(98==e.next||114==e.next){if(98==e.next&&e.advance(),114!=e.next)return;e.advance();let t=0;for(;35==e.next;)t++,e.advance();if(34!=e.next)return;e.advance();e:for(;;){if(e.next<0)return;let n=34==e.next;if(e.advance(),n){for(let n=0;n<t;n++){if(35!=e.next)continue e;e.advance()}return void e.acceptToken(4)}}}}),FGn=new OUn(e=>{124==e.next&&e.acceptToken(1,1)}),UGn=new OUn(e=>{60==e.next?e.acceptToken(2,1):62==e.next&&e.acceptToken(3,1)}),zGn=Cit({"const macro_rules struct union enum type fn impl trait let static":Git.definitionKeyword,"mod use crate":Git.moduleKeyword,"pub unsafe async mut extern default move":Git.modifier,"for if else loop while match continue break return await":Git.controlKeyword,"as in ref":Git.operatorKeyword,"where _ crate super dyn":Git.keyword,self:Git.self,String:Git.string,Char:Git.character,RawString:Git.special(Git.string),Boolean:Git.bool,Identifier:Git.variableName,"CallExpression/Identifier":Git.function(Git.variableName),BoundIdentifier:Git.definition(Git.variableName),"FunctionItem/BoundIdentifier":Git.function(Git.definition(Git.variableName)),LoopLabel:Git.labelName,FieldIdentifier:Git.propertyName,"CallExpression/FieldExpression/FieldIdentifier":Git.function(Git.propertyName),Lifetime:Git.special(Git.variableName),ScopeIdentifier:Git.namespace,TypeIdentifier:Git.typeName,"MacroInvocation/Identifier MacroInvocation/ScopedIdentifier/Identifier":Git.macroName,"MacroInvocation/TypeIdentifier MacroInvocation/ScopedIdentifier/TypeIdentifier":Git.macroName,'"!"':Git.macroName,UpdateOp:Git.updateOperator,LineComment:Git.lineComment,BlockComment:Git.blockComment,Integer:Git.integer,Float:Git.float,ArithOp:Git.arithmeticOperator,LogicOp:Git.logicOperator,BitOp:Git.bitwiseOperator,CompareOp:Git.compareOperator,"=":Git.definitionOperator,".. ... => ->":Git.punctuation,"( )":Git.paren,"[ ]":Git.squareBracket,"{ }":Git.brace,". DerefOp":Git.derefOperator,"&":Git.operator,", ; ::":Git.separator,"Attribute/...":Git.meta}),qGn={__proto__:null,self:28,super:32,crate:34,impl:46,true:72,false:72,pub:88,in:92,const:96,unsafe:104,async:108,move:110,if:114,let:118,ref:142,mut:144,_:198,else:200,match:204,as:248,return:252,await:262,break:270,continue:276,while:312,loop:316,for:320,macro_rules:327,mod:334,extern:342,struct:346,where:364,union:379,enum:382,type:390,default:395,fn:396,trait:412,use:420,static:438,dyn:476},VGn=PUn.deserialize({version:14,states:"$2xQ]Q_OOP$wOWOOO&sQWO'#CnO)WQWO'#I`OOQP'#I`'#I`OOQQ'#Ie'#IeO)hO`O'#C}OOQR'#Ih'#IhO)sQWO'#IuOOQO'#Hk'#HkO)xQWO'#DpOOQR'#Iw'#IwO)xQWO'#DpO*ZQ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able super crate Identifier ScopedIdentifier :: QualifiedScope AbstractType impl SelfType MetaType TypeIdentifier ScopedTypeIdentifier ScopeIdentifier TypeArgList TypeBinding = Lifetime String Escape Char Boolean Integer } { Block ; ConstItem Vis pub ( in ) const BoundIdentifier : UnsafeBlock unsafe AsyncBlock async move IfExpression if LetDeclaration let LiteralPattern ArithOp MetaPattern SelfPattern ScopedIdentifier TuplePattern ScopedTypeIdentifier , StructPattern FieldPatternList FieldPattern ref mut FieldIdentifier .. RefPattern SlicePattern CapturedPattern ReferencePattern & MutPattern RangePattern ... OrPattern MacroPattern ParenthesizedTokens TokenBinding Identifier TokenRepetition ArithOp BitOp LogicOp UpdateOp CompareOp -> => ArithOp BracketedTokens BracedTokens _ else MatchExpression match MatchBlock MatchArm Attribute Guard UnaryExpression ArithOp DerefOp LogicOp ReferenceExpression TryExpression BinaryExpression ArithOp ArithOp BitOp BitOp BitOp BitOp LogicOp LogicOp AssignmentExpression TypeCastExpression as ReturnExpression return RangeExpression CallExpression ArgList AwaitExpression await FieldExpression GenericFunction BreakExpression break LoopLabel ContinueExpression continue IndexExpression ArrayExpression TupleExpression MacroInvocation UnitExpression ClosureExpression ParamList Parameter Parameter ParenthesizedExpression StructExpression FieldInitializerList ShorthandFieldInitializer FieldInitializer BaseFieldInitializer MatchArm WhileExpression while LoopExpression loop ForExpression for MacroInvocation MacroDefinition macro_rules MacroRule EmptyStatement ModItem mod DeclarationList AttributeItem ForeignModItem extern StructItem struct TypeParamList ConstrainedTypeParameter TraitBounds HigherRankedTraitBound RemovedTraitBound OptionalTypeParameter ConstParameter WhereClause where LifetimeClause TypeBoundClause FieldDeclarationList FieldDeclaration OrderedFieldDeclarationList UnionItem union EnumItem enum EnumVariantList EnumVariant TypeItem type FunctionItem default fn ParamList Parameter SelfParameter VariadicParameter VariadicParameter ImplItem TraitItem trait AssociatedType LetDeclaration UseDeclaration use ScopedIdentifier UseAsClause ScopedIdentifier UseList ScopedUseList UseWildcard ExternCrateDeclaration StaticItem static ExpressionStatement ExpressionStatement GenericType FunctionType ForLifetimes ParamList VariadicParameter Parameter VariadicParameter Parameter ReferenceType PointerType TupleType UnitType ArrayType MacroInvocation EmptyType DynamicType dyn BoundedType",maxTerm:359,nodeProps:[["isolate",-4,4,6,7,33,""],["group",-42,4,5,14,15,16,17,18,19,33,35,36,37,40,51,53,56,101,107,111,112,113,122,123,125,127,128,130,132,133,134,137,139,140,141,142,143,144,148,149,155,157,159,"Expression",-16,22,24,25,26,27,222,223,230,231,232,233,234,235,236,237,239,"Type",-20,42,161,162,165,166,169,170,172,188,190,194,196,204,205,207,208,209,217,218,220,"Statement",-17,49,60,62,63,64,65,68,74,75,76,77,78,80,81,83,84,99,"Pattern"],["openedBy",9,"[",38,"{",47,"("],["closedBy",12,"]",39,"}",45,")"]],propSources:[zGn],skippedNodes:[0,6,7,240],repeatNodeCount:32,tokenData:"$%h_R!XOX$nXY5gYZ6iZ]$n]^5g^p$npq5gqr7Xrs9cst:Rtu;Tuv>vvwAQwxCbxy!+Tyz!,Vz{!-X{|!/_|}!0g}!O!1i!O!P!3v!P!Q!8[!Q!R!Bw!R![!Dr![!]#+q!]!^#-{!^!_#.}!_!`#1b!`!a#3o!a!b#6S!b!c#7U!c!}#8W!}#O#:T#O#P#;V#P#Q#Cb#Q#R#Dd#R#S#8W#S#T$n#T#U#8W#U#V#El#V#f#8W#f#g#Ic#g#o#8W#o#p$ S#p#q$!U#q#r$$f#r${$n${$|#8W$|4w$n4w5b#8W5b5i$n5i6S#8W6S;'S$n;'S;=`4s<%lO$nU$u]'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$nU%uV'_Q'OSOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[S&aV'OSOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[S&yVOz'`z{&v{!P'`!P!Q*y!Q;'S'`;'S;=`*m<%lO'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O$nV#Mbj'_Q'OS'TPOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q![#MX![!c$n!c!}#MX!}#O$n#O#P&[#P#R$n#R#S#MX#S#T$n#T#o#MX#o${$n${$|#MX$|4w$n4w5b#MX5b5i$n5i6S#MX6S;'S$n;'S;=`4s<%lO$n_$ ]]wX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_$!_a'rX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q!_$n!_!`@O!`#O$n#O#P&[#P#p$n#p#q$#d#q;'S$n;'S;=`4s<%lO$n_$#m]'|X'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_$$o]vX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n",tokenizers:[FGn,UGn,XGn,0,1,2,3],topRules:{SourceFile:[0,8]},specialized:[{term:281,get:e=>qGn[e]||-1}],tokenPrec:15596}),WGn=rot.define({name:"rust",parser:VGn.configure({props:[xot.add({IfExpression:Pot({except:/^\s*({|else\b)/}),"String BlockComment":()=>null,AttributeItem:e=>e.continue(),"Statement MatchArm":Pot()}),Rot.add(e=>/(Block|edTokens|List)$/.test(e.name)?Bot:"BlockComment"==e.name?e=>({from:e.from+2,to:e.to-2}):void 0)]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:\{|\})$/,closeBrackets:{stringPrefixes:["b","r","br"]}}});const jGn=Object.freeze(Object.defineProperty({__proto__:null,rust:function(){return new fot(WGn)},rustLanguage:WGn},Symbol.toStringTag,{value:"Module"})),YGn=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],ZGn=10;function GGn(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function HGn(e){return e>=48&&e<=57}function KGn(e){let t;return 47==e.next&&(47==(t=e.peek(1))||42==t)}const JGn=new OUn((e,t)=>{if(t.dialectEnabled(0)){let n;if(e.next<0&&t.canShift(176))e.acceptToken(176);else if(((n=e.peek(-1))==ZGn||n<0)&&t.canShift(175)){let t=0;for(;e.next!=ZGn&&YGn.includes(e.next);)e.advance(),t++;e.next==ZGn||KGn(e)?e.acceptToken(175,-t):t&&e.acceptToken(177)}else if(e.next==ZGn)e.acceptToken(174,1);else if(YGn.includes(e.next)){for(e.advance();e.next!=ZGn&&YGn.includes(e.next);)e.advance();e.acceptToken(177)}}else{let t=0;for(;YGn.includes(e.next);)e.advance(),t++;t&&e.acceptToken(177)}},{contextual:!0}),eHn=new OUn((e,t)=>{if(KGn(e)){if(e.advance(),t.dialectEnabled(0)){let t=-1;for(let n=1;;n++){let r=e.peek(-n-1);if(r==ZGn||r<0){t=n+1;break}if(!YGn.includes(r))break}if(t>-1){let n=42==e.next,r=0;for(e.advance();e.next>=0;)if(e.next==ZGn){e.advance();let n=0;for(;e.next!=ZGn&&YGn.includes(e.next);)n++,e.advance();if(n<t){r=-n-1;break}}else{if(n&&42==e.next&&47==e.peek(1)){r=2;break}e.advance()}return void e.acceptToken(n?7:6,r)}}if(47==e.next){for(;e.next!=ZGn&&e.next>=0;)e.advance();e.acceptToken(6)}else{for(e.advance();e.next>=0;){let{next:t}=e;if(e.advance(),42==t&&47==e.next){e.advance();break}}e.acceptToken(7)}}}),tHn=new OUn((e,t)=>{43!=e.next&&61!=e.next||!t.dialectEnabled(0)||e.acceptToken(61==e.next?8:9,1)}),nHn=new OUn((e,t)=>{if(!t.dialectEnabled(0))return;let n=t.context.depth;if(e.next<0&&n)e.acceptToken(169);else if(e.peek(-1)==ZGn){let t=0;for(;e.next!=ZGn&&YGn.includes(e.next);)e.advance(),t++;t==n||e.next==ZGn||KGn(e)||(t<n?e.acceptToken(169,-t):e.acceptToken(168))}}),rHn=new OUn((e,t)=>{for(let n=!1,r=0,i=0;;i++){let{next:o}=e;if(!(GGn(o)||45==o||95==o||n&&HGn(o))){if(35==o&&123==e.peek(1)){e.acceptToken(5,2);break}n&&e.acceptToken(2==r&&t.canShift(4)?4:t.canShift(173)?173:40==o?171:172);break}!n&&(45!=o||i>0)&&(n=!0),r===i&&45==o&&r++,e.advance()}}),iHn=new OUn(e=>{if(125==e.next){for(e.advance();GGn(e.next)||45==e.next||95==e.next||HGn(e.next);)e.advance();35==e.next&&123==e.peek(1)?e.acceptToken(2,2):e.acceptToken(1)}}),oHn=new OUn(e=>{if(YGn.includes(e.peek(-1))){let{next:t}=e;(GGn(t)||95==t||35==t||46==t||91==t||58==t&&GGn(e.peek(1))||45==t||38==t||42==t)&&e.acceptToken(170)}}),aHn=new OUn(e=>{if(!YGn.includes(e.peek(-1))){let{next:t}=e;if(37==t&&(e.advance(),e.acceptToken(3)),GGn(t)){do{e.advance()}while(GGn(e.next)||HGn(e.next));e.acceptToken(3)}}});function sHn(e,t){this.parent=e,this.depth=t,this.hash=(e?e.hash+e.hash<<8:0)+t+(t<<4)}const lHn=new QUn({start:new sHn(null,0),shift:(e,t,n,r)=>168==t?new sHn(e,n.pos-r.pos):169==t?e.parent:e,hash:e=>e.hash}),cHn=Cit({"AtKeyword import charset namespace keyframes media supports include mixin use forward extend at-root":Git.definitionKeyword,"Keyword selector":Git.keyword,ControlKeyword:Git.controlKeyword,NamespaceName:Git.namespace,KeyframeName:Git.labelName,KeyframeRangeName:Git.operatorKeyword,TagName:Git.tagName,"ClassName Suffix":Git.className,PseudoClassName:Git.constant(Git.className),IdName:Git.labelName,"FeatureName PropertyName":Git.propertyName,AttributeName:Git.attributeName,NumberLiteral:Git.number,KeywordQuery:Git.keyword,UnaryQueryOp:Git.operatorKeyword,"CallTag ValueName":Git.atom,VariableName:Git.variableName,SassVariableName:Git.special(Git.variableName),Callee:Git.operatorKeyword,Unit:Git.unit,"UniversalSelector NestingSelector IndentedMixin IndentedInclude":Git.definitionOperator,MatchOp:Git.compareOperator,"ChildOp SiblingOp, LogicOp":Git.logicOperator,BinOp:Git.arithmeticOperator,"Important Global Default":Git.modifier,Comment:Git.blockComment,LineComment:Git.lineComment,ColorLiteral:Git.color,"ParenthesizedContent StringLiteral":Git.string,"InterpolationStart InterpolationContinue InterpolationEnd":Git.meta,': "..."':Git.punctuation,"PseudoOp #":Git.derefOperator,"; ,":Git.separator,"( )":Git.paren,"[ ]":Git.squareBracket,"{ }":Git.brace}),uHn={__proto__:null,not:62,using:197,as:207,with:211,without:211,hide:225,show:225,if:263,from:269,to:271,through:273,in:279},hHn={__proto__:null,url:82,"url-prefix":82,domain:82,regexp:82,lang:104,"nth-child":104,"nth-last-child":104,"nth-of-type":104,"nth-last-of-type":104,dir:104,"host-context":104},dHn={__proto__:null,"@import":162,"@include":194,"@mixin":200,"@function":200,"@use":204,"@extend":214,"@at-root":218,"@forward":222,"@media":228,"@charset":232,"@namespace":236,"@keyframes":242,"@supports":254,"@if":258,"@else":260,"@for":266,"@each":276,"@while":282,"@debug":286,"@warn":286,"@error":286,"@return":286},pHn={__proto__:null,layer:166,not:184,only:184,selector:190},fHn=PUn.deserialize({version:14,states:"!$WQ`Q+tOOO#fQ+tOOP#mOpOOOOQ#U'#Ch'#ChO#rQ(pO'#CjOOQ#U'#Ci'#CiO%_Q)QO'#GXO%rQ.jO'#CnO&mQ#dO'#D]O'dQ(pO'#CgO'kQ)OO'#D_O'vQ#dO'#DfO'{Q#dO'#DiO(QQ#dO'#DqOOQ#U'#GX'#GXO(VQ(pO'#GXO(^Q(nO'#DuO%rQ.jO'#D}O%rQ.jO'#E`O%rQ.jO'#EcO%rQ.jO'#EeO(cQ)OO'#EjO)TQ)OO'#ElO%rQ.jO'#EnO)bQ)OO'#EqO%rQ.jO'#EsO)|Q)OO'#EuO*XQ)OO'#ExO*aQ)OO'#FOO*uQ)OO'#FbOOQ&Z'#GW'#GW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$n!xQ$q!zQ$v#OQ%V#WQ%W#YQ%]#_Q%d#hQ&]$hQ&f$uQ&q%XQ'k&^Q'l&_S'm&`&bQ(k'sQ(}(eR)Q(jR&h$wR#ft",nodeNames:"⚠ InterpolationEnd InterpolationContinue Unit VariableName InterpolationStart LineComment Comment IndentedMixin IndentedInclude StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector SuffixedSelector Suffix Interpolation SassVariableName ValueName ) ( ParenthesizedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp LogicOp UnaryExpression LogicOp NamespacedValue . CallExpression Callee ArgList : ... , CallLiteral CallTag ParenthesizedContent ] [ LineNames LineName ClassSelector ClassName PseudoClassSelector :: PseudoClassName PseudoClassName ArgList PseudoClassName ArgList IdSelector # IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp PlaceholderSelector ClassName Block { Declaration PropertyName Map Important Global Default ; } ImportStatement AtKeyword import Layer layer LayerName KeywordQuery FeatureQuery FeatureName BinaryQuery ComparisonQuery CompareOp UnaryQuery LogicOp ParenthesizedQuery SelectorQuery selector IncludeStatement include Keyword MixinStatement mixin UseStatement use Keyword Star Keyword ExtendStatement extend RootStatement at-root ForwardStatement forward Keyword MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports IfStatement ControlKeyword ControlKeyword Keyword ForStatement ControlKeyword Keyword Keyword Keyword EachStatement ControlKeyword Keyword WhileStatement ControlKeyword OutputStatement ControlKeyword AtRule Styles",maxTerm:196,context:lHn,nodeProps:[["openedBy",1,"InterpolationStart",5,"InterpolationEnd",21,"(",43,"[",78,"{"],["isolate",-3,6,7,26,""],["closedBy",22,")",44,"]",70,"}"]],propSources:[cHn],skippedNodes:[0,6,7,146],repeatNodeCount:21,tokenData:"!$Q~RyOq#rqr$jrs0jst2^tu8{uv;hvw;{wx<^xy={yz>^z{>c{|>||}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!!tS!hROy$Rz;'S$R;'S;=`$d<%lO$RZ!#VS!pROy$Rz;'S$R;'S;=`$d<%lO$R]!#hU!dPOy$Rz!_$R!_!`;T!`;'S$R;'S;=`$d<%lO$RW!#}P;=`<%l#r",tokenizers:[nHn,oHn,iHn,aHn,rHn,JGn,eHn,tHn,0,1,2,3,4],topRules:{StyleSheet:[0,10],Styles:[1,145]},dialects:{indented:0},specialized:[{term:172,get:e=>uHn[e]||-1},{term:171,get:e=>hHn[e]||-1},{term:80,get:e=>dHn[e]||-1},{term:173,get:e=>pHn[e]||-1}],tokenPrec:3217}),gHn=rot.define({name:"sass",parser:fHn.configure({props:[Rot.add({Block:Bot,Comment:(e,t)=>({from:e.from+2,to:"*/"==t.sliceDoc(e.to-2,e.to)?e.to-2:e.to})}),xot.add({Declaration:Pot()})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*\}$/,wordChars:"$-"}}),mHn=gHn.configure({dialect:"indented",props:[xot.add({"Block RuleSet":e=>e.baseIndent+e.unit}),Rot.add({Block:e=>({from:e.from,to:e.to})})]}),OHn=dqn(e=>"VariableName"==e.name||"SassVariableName"==e.name);const AHn=Object.freeze(Object.defineProperty({__proto__:null,sass:function(e){return new fot((null==e?void 0:e.indented)?mHn:gHn,gHn.data.of({autocomplete:OHn}))},sassCompletionSource:OHn,sassLanguage:gHn},Symbol.toStringTag,{value:"Module"})),yHn={__proto__:null,anyref:34,dataref:34,eqref:34,externref:34,i31ref:34,funcref:34,i8:34,i16:34,i32:34,i64:34,f32:34,f64:34},vHn=PUn.deserialize({version:14,states:"!^Q]QPOOOqQPO'#CbOOQO'#Cd'#CdOOQO'#Cl'#ClOOQO'#Ch'#ChQ]QPOOOOQO,58|,58|OxQPO,58|OOQO-E6f-E6fOOQO1G.h1G.h",stateData:"!P~O_OSPOSQOS~OTPOVROXROYROZROaQO~OSUO~P]OSXO~P]O",goto:"xaPPPPPPbPbPPPhPPPrXROPTVQTOQVPTWTVXSOPTV",nodeNames:"⚠ LineComment BlockComment Module ) ( App Identifier Type Keyword Number String",maxTerm:17,nodeProps:[["isolate",-3,1,2,11,""],["openedBy",4,"("],["closedBy",5,")"],["group",-6,6,7,8,9,10,11,"Expression"]],skippedNodes:[0,1,2],repeatNodeCount:1,tokenData:"0o~R^XY}YZ}]^}pq}rs!Stu#pxy'Uyz(e{|(j}!O(j!Q!R(s!R![*p!]!^.^#T#o.{~!SO_~~!VVOr!Srs!ls#O!S#O#P!q#P;'S!S;'S;=`#j<%lO!S~!qOZ~~!tRO;'S!S;'S;=`!};=`O!S~#QWOr!Srs!ls#O!S#O#P!q#P;'S!S;'S;=`#j;=`<%l!S<%lO!S~#mP;=`<%l!S~#siqr%bst%btu%buv%bvw%bwx%bz{%b{|%b}!O%b!O!P%b!P!Q%b!Q![%b![!]%b!^!_%b!_!`%b!`!a%b!a!b%b!b!c%b!c!}%b#Q#R%b#R#S%b#S#T%b#T#o%b#p#q%b#r#s%b~%giV~qr%bst%btu%buv%bvw%bwx%bz{%b{|%b}!O%b!O!P%b!P!Q%b!Q![%b![!]%b!^!_%b!_!`%b!`!a%b!a!b%b!b!c%b!c!}%b#Q#R%b#R#S%b#S#T%b#T#o%b#p#q%b#r#s%b~'ZPT~!]!^'^~'aTO!]'^!]!^'p!^;'S'^;'S;=`(_<%lO'^~'sVOy'^yz(Yz!]'^!]!^'p!^;'S'^;'S;=`(_<%lO'^~(_OQ~~(bP;=`<%l'^~(jOS~~(mQ!Q!R(s!R![*p~(xUY~!O!P)[!Q![*p!g!h){#R#S+U#X#Y){#l#m+[~)aRY~!Q![)j!g!h){#X#Y){~)oSY~!Q![)j!g!h){#R#S*j#X#Y){~*OR{|*X}!O*X!Q![*_~*[P!Q![*_~*dQY~!Q![*_#R#S*X~*mP!Q![)j~*uTY~!O!P)[!Q![*p!g!h){#R#S+U#X#Y){~+XP!Q![*p~+_R!Q![+h!c!i+h#T#Z+h~+mVY~!O!P,S!Q![+h!c!i+h!r!s-P#R#S+[#T#Z+h#d#e-P~,XTY~!Q![,h!c!i,h!r!s-P#T#Z,h#d#e-P~,mUY~!Q![,h!c!i,h!r!s-P#R#S.Q#T#Z,h#d#e-P~-ST{|-c}!O-c!Q![-o!c!i-o#T#Z-o~-fR!Q![-o!c!i-o#T#Z-o~-tSY~!Q![-o!c!i-o#R#S-c#T#Z-o~.TR!Q![,h!c!i,h#T#Z,h~.aP!]!^.d~.iSP~OY.dZ;'S.d;'S;=`.u<%lO.d~.xP;=`<%l.d~/QiX~qr.{st.{tu.{uv.{vw.{wx.{z{.{{|.{}!O.{!O!P.{!P!Q.{!Q![.{![!].{!^!_.{!_!`.{!`!a.{!a!b.{!b!c.{!c!}.{#Q#R.{#R#S.{#S#T.{#T#o.{#p#q.{#r#s.{",tokenizers:[0],topRules:{Module:[0,3]},specialized:[{term:9,get:e=>yHn[e]||-1}],tokenPrec:0}),bHn=rot.define({name:"wast",parser:vHn.configure({props:[xot.add({App:_ot({closing:")",align:!1})}),Rot.add({App:Bot,BlockComment:e=>({from:e.from+2,to:e.to-2})}),Cit({Keyword:Git.keyword,Type:Git.typeName,Number:Git.number,String:Git.string,Identifier:Git.variableName,LineComment:Git.lineComment,BlockComment:Git.blockComment,"( )":Git.paren})]}),languageData:{commentTokens:{line:";;",block:{open:"(;",close:";)"}},closeBrackets:{brackets:["(",'"']}}});const xHn=Object.freeze(Object.defineProperty({__proto__:null,wast:function(){return new fot(bHn)},wastLanguage:bHn},Symbol.toStringTag,{value:"Module"}));function wHn(e){return 45==e||46==e||58==e||e>=65&&e<=90||95==e||e>=97&&e<=122||e>=161}function kHn(e){return 9==e||10==e||13==e||32==e}let SHn=null,THn=null,$Hn=0;function _Hn(e,t){let n=e.pos+t;if(THn==e&&$Hn==n)return SHn;for(;kHn(e.peek(t));)t++;let r="";for(;;){let n=e.peek(t);if(!wHn(n))break;r+=String.fromCharCode(n),t++}return THn=e,$Hn=n,SHn=r||null}function CHn(e,t){this.name=e,this.parent=t}const QHn=new QUn({start:null,shift:(e,t,n,r)=>1==t?new CHn(_Hn(r,1)||"",e):e,reduce:(e,t)=>11==t&&e?e.parent:e,reuse(e,t,n,r){let i=t.type.id;return 1==i||13==i?new CHn(_Hn(r,1)||"",e):e},strict:!1}),PHn=new OUn((e,t)=>{if(60==e.next)if(e.advance(),47==e.next){e.advance();let n=_Hn(e,0);if(!n)return e.acceptToken(5);if(t.context&&n==t.context.name)return e.acceptToken(2);for(let r=t.context;r;r=r.parent)if(r.name==n)return e.acceptToken(3,-2);e.acceptToken(4)}else if(33!=e.next&&63!=e.next)return e.acceptToken(1)},{contextual:!0});function EHn(e,t){return new OUn(n=>{let r=0,i=t.charCodeAt(0);e:for(;!(n.next<0);n.advance(),r++)if(n.next==i){for(let e=1;e<t.length;e++)if(n.peek(e)!=t.charCodeAt(e))continue e;break}r&&n.acceptToken(e)})}const RHn=EHn(36,"--\x3e"),BHn=EHn(37,"?>"),IHn=EHn(38,"]]>"),LHn=Cit({Text:Git.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":Git.angleBracket,TagName:Git.tagName,"MismatchedCloseTag/TagName":[Git.tagName,Git.invalid],AttributeName:Git.attributeName,AttributeValue:Git.attributeValue,Is:Git.definitionOperator,"EntityReference CharacterReference":Git.character,Comment:Git.blockComment,ProcessingInst:Git.processingInstruction,DoctypeDecl:Git.documentMeta,Cdata:Git.special(Git.string)}),DHn=PUn.deserialize({version:14,states:",lOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DT'#DTOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C|'#C|O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C}'#C}O$dOrO,59^OOOP,59^,59^OOOS'#DO'#DOO$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO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gO}!hO~Oz^O[ma`madma~O[!kOz^O~O[!lOz^O~O[!mO`sOd!nO~OW!qOX!qO{!sO|!qO~OW!tOX!tO}!sO!O!tO~O[!vOz^O~OW!qOX!qO{!yO|!qO~OW!tOX!tO}!yO!O!tO~O",goto:"%cxPPPPPPPPPPyyP!PP!VPP!`!jP!pyyyP!v!|#S$[$k$q$w$}%TPPPP%ZXWORYbXRORYb_t`qru!T!U!bQ!i!YS!p!e!fR!w!oQdRRybXSORYbQYORmYQ[PRn[Q_QQkVjp_krz!R!T!X!Z!^!`!f!j!oQr`QzcQ!RlQ!TqQ!XsQ!ZtQ!^{Q!`!QQ!f!YQ!j!]R!o!eQu`S!UqrU![u!U!bR!b!TQ!r!gR!x!rQ!u!hR!z!uQbRRxbQfTR|fQiUR!OiSXOYTaRb",nodeNames:"⚠ StartTag StartCloseTag MissingCloseTag StartCloseTag StartCloseTag Document Text EntityReference CharacterReference Cdata Element EndTag OpenTag TagName Attribute AttributeName Is AttributeValue CloseTag SelfCloseEndTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag DoctypeDecl",maxTerm:50,context:QHn,nodeProps:[["closedBy",1,"SelfCloseEndTag EndTag",13,"CloseTag MissingCloseTag"],["openedBy",12,"StartTag StartCloseTag",19,"OpenTag",20,"StartTag"],["isolate",-6,13,18,19,21,22,24,""]],propSources:[LHn],skippedNodes:[0],repeatNodeCount:9,tokenData:"!)v~R!YOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs*vsv$qvw+fwx/ix}$q}!O0[!O!P$q!P!Q2z!Q![$q![!]4n!]!^$q!^!_8U!_!`!#t!`!a!$l!a!b!%d!b!c$q!c!}4n!}#P$q#P#Q!'W#Q#R$q#R#S4n#S#T$q#T#o4n#o%W$q%W%o4n%o%p$q%p&a4n&a&b$q&b1p4n1p4U$q4U4d4n4d4e$q4e$IS4n$IS$I`$q$I`$Ib4n$Ib$Kh$q$Kh%#t4n%#t&/x$q&/x&Et4n&Et&FV$q&FV;'S4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O$q",tokenizers:[PHn,RHn,BHn,IHn,0,1,2,3,4],topRules:{Document:[0,6]},tokenPrec:0});function MHn(e,t){let n=t&&t.getChild("TagName");return n?e.sliceString(n.from,n.to):""}function NHn(e,t){let n=t&&t.firstChild;return n&&"OpenTag"==n.name?MHn(e,n):""}function XHn(e){for(let t=e&&e.parent;t;t=t.parent)if("Element"==t.name)return t;return null}let FHn=class{constructor(e,t,n){this.attrs=t,this.attrValues=n,this.children=[],this.name=e.name,this.completion=Object.assign(Object.assign({type:"type"},e.completion||{}),{label:this.name}),this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name}),this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"</"+this.name+">",boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"}),this.text=e.textContent?e.textContent.map(e=>({label:e,type:"text"})):[]}};const UHn=/^[:\-\.\w\u00b7-\uffff]*$/;function zHn(e){return Object.assign(Object.assign({type:"property"},e.completion||{}),{label:e.name})}function qHn(e){return"string"==typeof e?{label:`"${e}"`,type:"constant"}:/^"/.test(e.label)?e:Object.assign(Object.assign({},e),{label:`"${e.label}"`})}function VHn(e,t){let n=[],r=[],i=Object.create(null);for(let l of t){let e=zHn(l);n.push(e),l.global&&r.push(e),l.values&&(i[l.name]=l.values.map(qHn))}let o=[],a=[],s=Object.create(null);for(let l of e){let e=r,t=i;l.attributes&&(e=e.concat(l.attributes.map(e=>"string"==typeof e?n.find(t=>t.label==e)||{label:e,type:"property"}:(e.values&&(t==i&&(t=Object.create(t)),t[e.name]=e.values.map(qHn)),zHn(e)))));let c=new FHn(l,e,t);s[c.name]=c,o.push(c),l.top&&a.push(c)}a.length||(a=o);for(let l=0;l<o.length;l++){let t=e[l],n=o[l];if(t.children)for(let e of t.children)s[e]&&n.children.push(s[e]);else n.children=o}return e=>{var t;let{doc:n}=e.state,l=function(e,t){var n;let r=iot(e).resolveInner(t,-1),i=null;for(let o=r;!i&&o.parent;o=o.parent)"OpenTag"!=o.name&&"CloseTag"!=o.name&&"SelfClosingTag"!=o.name&&"MismatchedCloseTag"!=o.name||(i=o);if(i&&(i.to>t||i.lastChild.type.isError)){let e=i.parent;if("TagName"==r.name)return"CloseTag"==i.name||"MismatchedCloseTag"==i.name?{type:"closeTag",from:r.from,context:e}:{type:"openTag",from:r.from,context:XHn(e)};if("AttributeName"==r.name)return{type:"attrName",from:r.from,context:i};if("AttributeValue"==r.name)return{type:"attrValue",from:r.from,context:i};let n=r==i||"Attribute"==r.name?r.childBefore(t):r;return"StartTag"==(null==n?void 0:n.name)?{type:"openTag",from:t,context:XHn(e)}:"StartCloseTag"==(null==n?void 0:n.name)&&n.to<=t?{type:"closeTag",from:t,context:e}:"Is"==(null==n?void 0:n.name)?{type:"attrValue",from:t,context:i}:n?{type:"attrName",from:t,context:i}:null}if("StartCloseTag"==r.name)return{type:"closeTag",from:t,context:r.parent};for(;r.parent&&r.to==t&&!(null===(n=r.lastChild)||void 0===n?void 0:n.type.isError);)r=r.parent;return"Element"==r.name||"Text"==r.name||"Document"==r.name?{type:"tag",from:t,context:"Element"==r.name?r:XHn(r)}:null}(e.state,e.pos);if(!l||"tag"==l.type&&!e.explicit)return null;let{type:c,from:u,context:h}=l;if("openTag"==c){let e=a,t=NHn(n,h);if(t){let n=s[t];e=(null==n?void 0:n.children)||o}return{from:u,options:e.map(e=>e.completion),validFor:UHn}}if("closeTag"==c){let r=NHn(n,h);return r?{from:u,to:e.pos+(">"==n.sliceString(e.pos,e.pos+1)?1:0),options:[(null===(t=s[r])||void 0===t?void 0:t.closeNameCompletion)||{label:r+">",type:"type"}],validFor:UHn}:null}if("attrName"==c){let e=s[MHn(n,h)];return{from:u,options:(null==e?void 0:e.attrs)||r,validFor:UHn}}if("attrValue"==c){let t=function(e,t,n){let r=t&&t.getChildren("Attribute").find(e=>e.from<=n&&e.to>=n),i=r&&r.getChild("AttributeName");return i?e.sliceString(i.from,i.to):""}(n,h,u);if(!t)return null;let r=s[MHn(n,h)],o=((null==r?void 0:r.attrValues)||i)[t];return o&&o.length?{from:u,to:e.pos+('"'==n.sliceString(e.pos,e.pos+1)?1:0),options:o,validFor:/^"[^"]*"?$/}:null}if("tag"==c){let t=NHn(n,h),r=s[t],i=[],l=h&&h.lastChild;!t||l&&"CloseTag"==l.name&&MHn(n,l)==t||i.push(r?r.closeCompletion:{label:"</"+t+">",type:"type",boost:2});let c=i.concat(((null==r?void 0:r.children)||(h?o:a)).map(e=>e.openCompletion));if(h&&(null==r?void 0:r.text.length)){let t=h.firstChild;t.to>e.pos-20&&!/\S/.test(e.state.sliceDoc(t.to,e.pos))&&(c=c.concat(r.text))}return{from:u,options:c,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}return null}}const WHn=rot.define({name:"xml",parser:DHn.configure({props:[xot.add({Element(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit}),Rot.add({Element(e){let t=e.firstChild,n=e.lastChild;return t&&"OpenTag"==t.name?{from:t.to,to:"CloseTag"==n.name?n.from:e.to}:null}}),bat.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/$/}});function jHn(e,t,n=e.length){if(!t)return"";let r=t.firstChild,i=r&&r.getChild("TagName");return i?e.sliceString(i.from,Math.min(i.to,n)):""}const YHn=vtt.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||">"!=r&&"/"!=r||!WHn.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:a}=o,s=a.changeByRange(e=>{var t,n,i;let o,{head:s}=e,l=a.doc.sliceString(s-1,s)==r,c=iot(a).resolveInner(s,-1);if(l&&">"==r&&"EndTag"==c.name){let r=c.parent;if("CloseTag"!=(null===(n=null===(t=r.parent)||void 0===t?void 0:t.lastChild)||void 0===n?void 0:n.name)&&(o=jHn(a.doc,r.parent,s))){return{range:e,changes:{from:s,to:s+(">"===a.doc.sliceString(s,s+1)?1:0),insert:`</${o}>`}}}}else if(l&&"/"==r&&"StartCloseTag"==c.name){let e=c.parent;if(c.from==s-2&&"CloseTag"!=(null===(i=e.lastChild)||void 0===i?void 0:i.name)&&(o=jHn(a.doc,e,s))){let e=s+(">"===a.doc.sliceString(s,s+1)?1:0),t=`${o}>`;return{range:Z3e.cursor(s+t.length,-1),changes:{from:s,to:e,insert:t}}}}return{range:e}});return!s.changes.empty&&(e.dispatch([o,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),ZHn=Object.freeze(Object.defineProperty({__proto__:null,autoCloseTags:YHn,completeFromSchema:VHn,xml:function(e={}){let t=[WHn.data.of({autocomplete:VHn(e.elements||[],e.attributes||[])})];return!1!==e.autoCloseTags&&t.push(YHn),new fot(WHn,t)},xmlLanguage:WHn},Symbol.toStringTag,{value:"Module"})),GHn=63;let HHn=class{constructor(e,t,n){this.parent=e,this.depth=t,this.type=n,this.hash=(e?e.hash+e.hash<<8:0)+t+(t<<4)+n}};function KHn(e,t){for(let n=0,r=t-e.pos-1;;r--,n++){let t=e.peek(r);if(eKn(t)||-1==t)return n}}function JHn(e){return 32==e||9==e}function eKn(e){return 10==e||13==e}function tKn(e){return JHn(e)||eKn(e)}function nKn(e){return e<0||tKn(e)}HHn.top=new HHn(null,-1,0);const rKn=new QUn({start:HHn.top,reduce:(e,t)=>3!=e.type||20!=t&&34!=t?e:e.parent,shift(e,t,n,r){if(3==t)return new HHn(e,KHn(r,r.pos),1);if(65==t||5==t)return new HHn(e,KHn(r,r.pos),2);if(t==GHn)return e.parent;if(19==t||33==t)return new HHn(e,0,3);if(13==t&&4==e.type)return e.parent;if(47==t){let t=/[1-9]/.exec(r.read(r.pos,n.pos));if(t)return new HHn(e,e.depth+ +t[0],4)}return e},hash:e=>e.hash});function iKn(e,t,n=0){return e.peek(n)==t&&e.peek(n+1)==t&&e.peek(n+2)==t&&nKn(e.peek(n+3))}const oKn=new OUn((e,t)=>{if(-1==e.next&&t.canShift(64))return e.acceptToken(64);let n=e.peek(-1);if((eKn(n)||n<0)&&3!=t.context.type){if(iKn(e,45)){if(!t.canShift(GHn))return e.acceptToken(1,3);e.acceptToken(GHn)}if(iKn(e,46)){if(!t.canShift(GHn))return e.acceptToken(2,3);e.acceptToken(GHn)}let n=0;for(;32==e.next;)n++,e.advance();!(n<t.context.depth)&&(n!=t.context.depth||1!=t.context.type||45==e.next&&nKn(e.peek(1)))||-1==e.next||eKn(e.next)||35==e.next||e.acceptToken(GHn,-n)}},{contextual:!0}),aKn=new OUn((e,t)=>{if(3!=t.context.type)if(45==e.next)e.advance(),nKn(e.next)&&e.acceptToken(1==t.context.type&&t.context.depth==KHn(e,e.pos-1)?4:3);else if(63==e.next)e.advance(),nKn(e.next)&&e.acceptToken(2==t.context.type&&t.context.depth==KHn(e,e.pos-1)?6:5);else{let n=e.pos;for(;;)if(JHn(e.next)){if(e.pos==n)return;e.advance()}else if(33==e.next)cKn(e);else{if(38!=e.next){if(42==e.next){uKn(e);break}if(39==e.next||34==e.next){if(hKn(e,!0))break;return}if(91==e.next||123==e.next){if(!dKn(e))return;break}mKn(e,!0,!1,0);break}uKn(e)}for(;JHn(e.next);)e.advance();if(58==e.next){if(e.pos==n&&t.canShift(29))return;nKn(e.peek(1))&&e.acceptTokenTo(2==t.context.type&&t.context.depth==KHn(e,n)?66:65,n)}}else 63==e.next&&(e.advance(),nKn(e.next)&&e.acceptToken(7))},{contextual:!0});function sKn(e){return e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70}function lKn(e,t){return 37==e.next?(e.advance(),sKn(e.next)&&e.advance(),sKn(e.next)&&e.advance(),!0):!!((n=e.next)>32&&n<127&&34!=n&&37!=n&&44!=n&&60!=n&&62!=n&&92!=n&&94!=n&&96!=n&&123!=n&&124!=n&&125!=n||t&&44==e.next)&&(e.advance(),!0);var n}function cKn(e){if(e.advance(),60==e.next){for(e.advance();;)if(!lKn(e,!0)){62==e.next&&e.advance();break}}else for(;lKn(e,!1););}function uKn(e){for(e.advance();!nKn(e.next)&&"f"!=fKn(e.next);)e.advance()}function hKn(e,t){let n=e.next,r=!1,i=e.pos;for(e.advance();;){let o=e.next;if(o<0)break;if(e.advance(),o==n){if(39!=o)break;if(39!=e.next)break;e.advance()}else if(92==o&&34==n)e.next>=0&&e.advance();else if(eKn(o)){if(t)return!1;r=!0}else if(t&&e.pos>=i+1024)return!1}return!r}function dKn(e){for(let t=[],n=e.pos+1024;;)if(91==e.next||123==e.next)t.push(e.next),e.advance();else if(39==e.next||34==e.next){if(!hKn(e,!0))return!1}else if(93==e.next||125==e.next){if(t[t.length-1]!=e.next-2)return!1;if(t.pop(),e.advance(),!t.length)return!0}else{if(e.next<0||e.pos>n||eKn(e.next))return!1;e.advance()}}const pKn="iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif";function fKn(e){return e<33?"u":e>125?"s":pKn[e-33]}function gKn(e,t){let n=fKn(e);return"u"!=n&&!(t&&"f"==n)}function mKn(e,t,n,r){if("s"!=fKn(e.next)&&(63!=e.next&&58!=e.next&&45!=e.next||!gKn(e.peek(1),n)))return!1;e.advance();let i=e.pos;for(;;){let o=e.next,a=0,s=r+1;for(;tKn(o);){if(eKn(o)){if(t)return!1;s=0}else s++;o=e.peek(++a)}if(!(o>=0&&(58==o?gKn(e.peek(a+1),n):35==o?32!=e.peek(a-1):gKn(o,n)))||!n&&s<=r||0==s&&!n&&(iKn(e,45,a)||iKn(e,46,a)))break;if(t&&"f"==fKn(o))return!1;for(let t=a;t>=0;t--)e.advance();if(t&&e.pos>i+1024)return!1}return!0}const OKn=new OUn((e,t)=>{if(33==e.next)cKn(e),e.acceptToken(12);else if(38==e.next||42==e.next){let t=38==e.next?10:11;uKn(e),e.acceptToken(t)}else 39==e.next||34==e.next?(hKn(e,!1),e.acceptToken(9)):mKn(e,!1,3==t.context.type,t.context.depth)&&e.acceptToken(8)}),AKn=new OUn((e,t)=>{let n=4==t.context.type?t.context.depth:-1,r=e.pos;e:for(;;){let i=0,o=e.next;for(;32==o;)o=e.peek(++i);if(!i&&(iKn(e,45,i)||iKn(e,46,i)))break;if(!eKn(o)&&(n<0&&(n=Math.max(t.context.depth+1,i)),i<n))break;for(;;){if(e.next<0)break e;let t=eKn(e.next);if(e.advance(),t)continue e;r=e.pos}}e.acceptTokenTo(13,r)}),yKn=Cit({DirectiveName:Git.keyword,DirectiveContent:Git.attributeValue,"DirectiveEnd DocEnd":Git.meta,QuotedLiteral:Git.string,BlockLiteralHeader:Git.special(Git.string),BlockLiteralContent:Git.content,Literal:Git.content,"Key/Literal Key/QuotedLiteral":Git.definition(Git.propertyName),"Anchor Alias":Git.labelName,Tag:Git.typeName,Comment:Git.lineComment,": , -":Git.separator,"?":Git.punctuation,"[ ]":Git.squareBracket,"{ }":Git.brace}),vKn=PUn.deserialize({version:14,states:"5lQ!ZQgOOO#PQfO'#CpO#uQfO'#DOOOQR'#Dv'#DvO$qQgO'#DRO%gQdO'#DUO%nQgO'#DUO&ROaO'#D[OOQR'#Du'#DuO&{QgO'#D^O'rQgO'#D`OOQR'#Dt'#DtO(iOqO'#DbOOQP'#Dj'#DjO(zQaO'#CmO)YQgO'#CmOOQP'#Cm'#CmQ)jQaOOQ)uQgOOQ]QgOOO*PQdO'#CrO*nQdO'#CtOOQO'#Dw'#DwO+]Q`O'#CxO+hQdO'#CwO+rQ`O'#CwOOQO'#Cv'#CvO+wQdO'#CvOOQO'#Cq'#CqO,UQ`O,59[O,^QfO,59[OOQR,59[,59[OOQO'#Cx'#CxO,eQ`O'#DPO,pQdO'#DPOOQO'#Dx'#DxO,zQdO'#DxO-XQ`O,59jO-aQfO,59jOOQR,59j,59jOOQR'#DS'#DSO-hQcO,59mO-sQgO'#DVO.TQ`O'#DVO.YQcO,59pOOQR'#DX'#DXO#|QfO'#DWO.hQcO'#DWOOQR,59v,59vO.yOWO,59vO/OOaO,59vO/WO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c!cS!^^!aT!aa!eQ!eaR#f!eW`Obc!cQxSS}U#SQ!`_Q#PzQ#V!OQ#b!_Q#d!bQ#s!|Q#w#QQ$P#WQ$V#cQ$Y#xQ$[#{Q$a$ZR$b$]xZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]Q!VXQ!XYQ#[!UR#]!W!QWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]pfPQThknrtv!k!l!s!u#R#k#pQ!gdQ!ieQ#g!fR#h!hSgPn^pQTkrtv#RQ!jhQ#i!kQ#j!lQ#n!sQ#o!uQ$W#kR$X#pQuQR!zv",nodeNames:"⚠ DirectiveEnd DocEnd - - ? ? ? Literal QuotedLiteral Anchor Alias Tag BlockLiteralContent Comment Stream BOM Document ] [ FlowSequence Item Tagged Anchored Anchored Tagged FlowMapping Pair Key : Pair , } { FlowMapping Pair Pair BlockSequence Item Item BlockMapping Pair Pair Key Pair Pair BlockLiteral BlockLiteralHeader Tagged Anchored Anchored Tagged Directive DirectiveName DirectiveContent Document",maxTerm:74,context:rKn,nodeProps:[["isolate",-3,8,9,14,""],["openedBy",18,"[",32,"{"],["closedBy",19,"]",33,"}"]],propSources:[yKn],skippedNodes:[0],repeatNodeCount:6,tokenData:"-Y~RnOX#PXY$QYZ$]Z]#P]^$]^p#Ppq$Qqs#Pst$btu#Puv$yv|#P|}&e}![#P![!]'O!]!`#P!`!a'i!a!}#P!}#O*g#O#P#P#P#Q+Q#Q#o#P#o#p+k#p#q'i#q#r,U#r;'S#P;'S;=`#z<%l?HT#P?HT?HU,o?HUO#PQ#UU!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PQ#kTOY#PZs#Pt;'S#P;'S;=`#z<%lO#PQ#}P;=`<%l#P~$VQ!f~XY$Qpq$Q~$bO!g~~$gS^~OY$bZ;'S$b;'S;=`$s<%lO$b~$vP;=`<%l$bR%OX!WQOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR%rX!WQ!VPOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR&bP;=`<%l%kR&lUoP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'VUmP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'p[!PP!WQOY#PZp#Ppq#hq{#P{|(f|}#P}!O(f!O!R#P!R![)p![;'S#P;'S;=`#z<%lO#PR(mW!PP!WQOY#PZp#Ppq#hq!R#P!R![)V![;'S#P;'S;=`#z<%lO#PR)^U!PP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR)wY!PP!WQOY#PZp#Ppq#hq{#P{|)V|}#P}!O)V!O;'S#P;'S;=`#z<%lO#PR*nUcP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+XUbP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+rUqP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,]UpP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,vU`P!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#P",tokenizers:[oKn,aKn,OKn,AKn,0,1],topRules:{Stream:[0,15]},tokenPrec:0}),bKn=PUn.deserialize({version:14,states:"!vOQOPOOO]OPO'#C_OhOPO'#C^OOOO'#Cc'#CcOpOPO'#CaQOOOOOO{OPOOOOOO'#Cb'#CbO!WOPO'#C`O!`OPO,58xOOOO-E6a-E6aOOOO-E6`-E6`OOOO'#C_'#C_OOOO1G.d1G.d",stateData:"!h~OXPOYROWTP~OWVXXRXYRX~OYVOXSP~OXROYROWTX~OXROYROWTP~OYVOXSX~OX[O~OXY~",goto:"vWPPX[beioRUOQQOR]XRXQTTOUQWQRZWSSOURYS",nodeNames:"⚠ Document Frontmatter DashLine FrontmatterContent Body",maxTerm:10,skippedNodes:[0],repeatNodeCount:2,tokenData:"$z~RXOYnYZ!^Z]n]^!^^}n}!O!i!O;'Sn;'S;=`!c<%lOn~qXOYnYZ!^Z]n]^!^^;'Sn;'S;=`!c<%l~n~On~~!^~!cOY~~!fP;=`<%ln~!lZOYnYZ!^Z]n]^!^^}n}!O#_!O;'Sn;'S;=`!c<%l~n~On~~!^~#bZOYnYZ!^Z]n]^!^^}n}!O$T!O;'Sn;'S;=`!c<%l~n~On~~!^~$WXOYnYZ$sZ]n]^$s^;'Sn;'S;=`!c<%l~n~On~~$s~$zOX~Y~",tokenizers:[0],topRules:{Document:[0,1]},tokenPrec:67}),xKn=rot.define({name:"yaml",parser:vKn.configure({props:[xot.add({Stream:e=>{for(let t=e.node.resolve(e.pos,-1);t&&t.to>=e.pos;t=t.parent){if("BlockLiteralContent"==t.name&&t.from<t.to)return e.baseIndentFor(t);if("BlockLiteral"==t.name)return e.baseIndentFor(t)+e.unit;if("BlockSequence"==t.name||"BlockMapping"==t.name)return e.column(t.firstChild.from,1);if("QuotedLiteral"==t.name)return null;if("Literal"==t.name){let n=e.column(t.from,1);if(n==e.lineIndent(t.from,1))return n;if(t.to>e.pos)return null}}return null},FlowMapping:_ot({closing:"}"}),FlowSequence:_ot({closing:"]"})}),Rot.add({"FlowMapping FlowSequence":Bot,"Item Pair BlockLiteral":(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*[\]\}]$/}});const wKn=rot.define({name:"yaml-frontmatter",parser:bKn.configure({props:[Cit({DashLine:Git.meta})]})});const kKn=Object.freeze(Object.defineProperty({__proto__:null,yaml:function(){return new fot(xKn)},yamlFrontmatter:function(e){let{language:t,support:n}=e.content instanceof fot?e.content:{language:e.content,support:[]};return new fot(wKn.configure({wrap:hit(e=>"FrontmatterContent"==e.name?{parser:xKn.parser}:"Body"==e.name?{parser:t.parser}:null)}),n)},yamlLanguage:xKn},Symbol.toStringTag,{value:"Module"}));var SKn={"+":["conjugate","add"],"−":["negate","subtract"],"×":["signOf","multiply"],"÷":["reciprocal","divide"],"⌈":["ceiling","greaterOf"],"⌊":["floor","lesserOf"],"∣":["absolute","residue"],"⍳":["indexGenerate","indexOf"],"?":["roll","deal"],"⋆":["exponentiate","toThePowerOf"],"⍟":["naturalLog","logToTheBase"],"○":["piTimes","circularFuncs"],"!":["factorial","binomial"],"⌹":["matrixInverse","matrixDivide"],"<":[null,"lessThan"],"≤":[null,"lessThanOrEqual"],"=":[null,"equals"],">":[null,"greaterThan"],"≥":[null,"greaterThanOrEqual"],"≠":[null,"notEqual"],"≡":["depth","match"],"≢":[null,"notMatch"],"∈":["enlist","membership"],"⍷":[null,"find"],"∪":["unique","union"],"∩":[null,"intersection"],"∼":["not","without"],"∨":[null,"or"],"∧":[null,"and"],"⍱":[null,"nor"],"⍲":[null,"nand"],"⍴":["shapeOf","reshape"],",":["ravel","catenate"],"⍪":[null,"firstAxisCatenate"],"⌽":["reverse","rotate"],"⊖":["axis1Reverse","axis1Rotate"],"⍉":["transpose",null],"↑":["first","take"],"↓":[null,"drop"],"⊂":["enclose","partitionWithAxis"],"⊃":["diclose","pick"],"⌷":[null,"index"],"⍋":["gradeUp",null],"⍒":["gradeDown",null],"⊤":["encode",null],"⊥":["decode",null],"⍕":["format","formatByExample"],"⍎":["execute",null],"⊣":["stop","left"],"⊢":["pass","right"]},TKn=/[\.\/⌿⍀¨⍣]/,$Kn=/⍬/,_Kn=/[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/,CKn=/←/,QKn=/[⍝#].*$/;const PKn={name:"apl",startState:function(){return{prev:!1,func:!1,op:!1,string:!1,escape:!1}},token:function(e,t){var n,r,i;return e.eatSpace()?null:'"'===(n=e.next())||"'"===n?(e.eatWhile((r=n,i=!1,function(e){return i=e,e!==r||"\\"===i})),e.next(),t.prev=!0,"string"):/[\[{\(]/.test(n)?(t.prev=!1,null):/[\]}\)]/.test(n)?(t.prev=!0,null):$Kn.test(n)?(t.prev=!1,"atom"):/[¯\d]/.test(n)?(t.func?(t.func=!1,t.prev=!1):t.prev=!0,e.eatWhile(/[\w\.]/),"number"):TKn.test(n)||CKn.test(n)?"operator":_Kn.test(n)?(t.func=!0,t.prev=!1,SKn[n]?"variableName.function.standard":"variableName.function"):QKn.test(n)?(e.skipToEnd(),"comment"):"∘"===n&&"."===e.peek()?(e.next(),"variableName.function"):(e.eatWhile(/[\w\$_]/),t.prev=!0,"keyword")}},EKn=Object.freeze(Object.defineProperty({__proto__:null,apl:PKn},Symbol.toStringTag,{value:"Module"}));function RKn(e){var t=e.match(/^\s*\S/);return e.skipToEnd(),t?"error":null}const BKn={name:"asciiarmor",token:function(e,t){var n;if("top"==t.state)return e.sol()&&(n=e.match(/^-----BEGIN (.*)?-----\s*$/))?(t.state="headers",t.type=n[1],"tag"):RKn(e);if("headers"==t.state){if(e.sol()&&e.match(/^\w+:/))return t.state="header","atom";var r=RKn(e);return r&&(t.state="body"),r}return"header"==t.state?(e.skipToEnd(),t.state="headers","string"):"body"==t.state?e.sol()&&(n=e.match(/^-----END (.*)?-----\s*$/))?n[1]!=t.type?"error":(t.state="end","tag"):e.eatWhile(/[A-Za-z0-9+\/=]/)?null:(e.next(),"error"):"end"==t.state?RKn(e):void 0},blankLine:function(e){"headers"==e.state&&(e.state="body")},startState:function(){return{state:"top",type:null}}},IKn=Object.freeze(Object.defineProperty({__proto__:null,asciiArmor:BKn},Symbol.toStringTag,{value:"Module"}));function LKn(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}const DKn={keywords:LKn("DEFINITIONS OBJECTS IF DERIVED INFORMATION ACTION REPLY ANY NAMED CHARACTERIZED BEHAVIOUR REGISTERED WITH AS IDENTIFIED CONSTRAINED BY PRESENT BEGIN IMPORTS FROM UNITS SYNTAX MIN-ACCESS MAX-ACCESS MINACCESS MAXACCESS REVISION STATUS DESCRIPTION SEQUENCE SET COMPONENTS OF CHOICE DistinguishedName ENUMERATED SIZE MODULE END INDEX AUGMENTS EXTENSIBILITY IMPLIED EXPORTS"),cmipVerbs:LKn("ACTIONS ADD GET NOTIFICATIONS REPLACE REMOVE"),compareTypes:LKn("OPTIONAL DEFAULT MANAGED MODULE-TYPE MODULE_IDENTITY MODULE-COMPLIANCE OBJECT-TYPE OBJECT-IDENTITY OBJECT-COMPLIANCE MODE CONFIRMED CONDITIONAL SUBORDINATE SUPERIOR CLASS TRUE FALSE NULL TEXTUAL-CONVENTION"),status:LKn("current deprecated mandatory obsolete"),tags:LKn("APPLICATION AUTOMATIC EXPLICIT IMPLICIT PRIVATE TAGS UNIVERSAL"),storage:LKn("BOOLEAN INTEGER OBJECT IDENTIFIER BIT OCTET STRING UTCTime InterfaceIndex IANAifType CMIP-Attribute REAL PACKAGE PACKAGES IpAddress PhysAddress NetworkAddress BITS BMPString TimeStamp TimeTicks TruthValue RowStatus DisplayString GeneralString GraphicString IA5String NumericString PrintableString SnmpAdminString TeletexString UTF8String VideotexString VisibleString StringStore ISO646String T61String UniversalString Unsigned32 Integer32 Gauge Gauge32 Counter Counter32 Counter64"),modifier:LKn("ATTRIBUTE ATTRIBUTES MANDATORY-GROUP MANDATORY-GROUPS GROUP GROUPS ELEMENTS EQUALITY ORDERING SUBSTRINGS DEFINED"),accessTypes:LKn("not-accessible accessible-for-notify read-only read-create read-write"),multiLineStrings:!0};const MKn=Object.freeze(Object.defineProperty({__proto__:null,asn1:function(e){var t=e.keywords||DKn.keywords,n=e.cmipVerbs||DKn.cmipVerbs,r=e.compareTypes||DKn.compareTypes,i=e.status||DKn.status,o=e.tags||DKn.tags,a=e.storage||DKn.storage,s=e.modifier||DKn.modifier,l=e.accessTypes||DKn.accessTypes;e.multiLineStrings;var c,u=!1!==e.indentStatements,h=/[\|\^]/;function d(e,u){var d,p=e.next();if('"'==p||"'"==p)return u.tokenize=(d=p,function(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if(n==d&&!r){var o=e.peek();o&&("b"!=(o=o.toLowerCase())&&"h"!=o&&"o"!=o||e.next()),i=!0;break}r=!r&&"\\"==n}return i&&(t.tokenize=null),"string"}),u.tokenize(e,u);if(/[\[\]\(\){}:=,;]/.test(p))return c=p,"punctuation";if("-"==p&&e.eat("-"))return e.skipToEnd(),"comment";if(/\d/.test(p))return e.eatWhile(/[\w\.]/),"number";if(h.test(p))return e.eatWhile(h),"operator";e.eatWhile(/[\w\-]/);var f=e.current();return t.propertyIsEnumerable(f)?"keyword":n.propertyIsEnumerable(f)?"variableName":r.propertyIsEnumerable(f)?"atom":i.propertyIsEnumerable(f)?"comment":o.propertyIsEnumerable(f)?"typeName":a.propertyIsEnumerable(f)||s.propertyIsEnumerable(f)||l.propertyIsEnumerable(f)?"modifier":"variableName"}function p(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function f(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new p(r,t,n,null,e.context)}function g(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return{name:"asn1",startState:function(){return{tokenize:null,context:new p(-2,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;c=null;var r=(t.tokenize||d)(e,t);if("comment"==r)return r;if(null==n.align&&(n.align=!0),";"!=c&&":"!=c&&","!=c||"statement"!=n.type)if("{"==c)f(t,e.column(),"}");else if("["==c)f(t,e.column(),"]");else if("("==c)f(t,e.column(),")");else if("}"==c){for(;"statement"==n.type;)n=g(t);for("}"==n.type&&(n=g(t));"statement"==n.type;)n=g(t)}else c==n.type?g(t):u&&(("}"==n.type||"top"==n.type)&&";"!=c||"statement"==n.type&&"newstatement"==c)&&f(t,e.column(),"statement");else g(t);return t.startOfLine=!1,r},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"--"}}}}},Symbol.toStringTag,{value:"Module"}));var NKn=["exten","same","include","ignorepat","switch"],XKn=["#include","#exec"],FKn=["addqueuemember","adsiprog","aelsub","agentlogin","agentmonitoroutgoing","agi","alarmreceiver","amd","answer","authenticate","background","backgrounddetect","bridge","busy","callcompletioncancel","callcompletionrequest","celgenuserevent","changemonitor","chanisavail","channelredirect","chanspy","clearhash","confbridge","congestion","continuewhile","controlplayback","dahdiacceptr2call","dahdibarge","dahdiras","dahdiscan","dahdisendcallreroutingfacility","dahdisendkeypadfacility","datetime","dbdel","dbdeltree","deadagi","dial","dictate","directory","disa","dumpchan","eagi","echo","endwhile","exec","execif","execiftime","exitwhile","extenspy","externalivr","festival","flash","followme","forkcdr","getcpeid","gosub","gosubif","goto","gotoif","gotoiftime","hangup","iax2provision","ices","importvar","incomplete","ivrdemo","jabberjoin","jabberleave","jabbersend","jabbersendgroup","jabberstatus","jack","log","macro","macroexclusive","macroexit","macroif","mailboxexists","meetme","meetmeadmin","meetmechanneladmin","meetmecount","milliwatt","minivmaccmess","minivmdelete","minivmgreet","minivmmwi","minivmnotify","minivmrecord","mixmonitor","monitor","morsecode","mp3player","mset","musiconhold","nbscat","nocdr","noop","odbc","odbc","odbcfinish","originate","ospauth","ospfinish","osplookup","ospnext","page","park","parkandannounce","parkedcall","pausemonitor","pausequeuemember","pickup","pickupchan","playback","playtones","privacymanager","proceeding","progress","queue","queuelog","raiseexception","read","readexten","readfile","receivefax","receivefax","receivefax","record","removequeuemember","resetcdr","retrydial","return","ringing","sayalpha","saycountedadj","saycountednoun","saycountpl","saydigits","saynumber","sayphonetic","sayunixtime","senddtmf","sendfax","sendfax","sendfax","sendimage","sendtext","sendurl","set","setamaflags","setcallerpres","setmusiconhold","sipaddheader","sipdtmfmode","sipremoveheader","skel","slastation","slatrunk","sms","softhangup","speechactivategrammar","speechbackground","speechcreate","speechdeactivategrammar","speechdestroy","speechloadgrammar","speechprocessingsound","speechstart","speechunloadgrammar","stackpop","startmusiconhold","stopmixmonitor","stopmonitor","stopmusiconhold","stopplaytones","system","testclient","testserver","transfer","tryexec","trysystem","unpausemonitor","unpausequeuemember","userevent","verbose","vmauthenticate","vmsayname","voicemail","voicemailmain","wait","waitexten","waitfornoise","waitforring","waitforsilence","waitmusiconhold","waituntil","while","zapateller"];const UKn={name:"asterisk",startState:function(){return{blockComment:!1,extenStart:!1,extenSame:!1,extenInclude:!1,extenExten:!1,extenPriority:!1,extenApplication:!1}},token:function(e,t){var n="";return e.eatSpace()?null:t.extenStart?(e.eatWhile(/[^\s]/),n=e.current(),/^=>?$/.test(n)?(t.extenExten=!0,t.extenStart=!1,"strong"):(t.extenStart=!1,e.skipToEnd(),"error")):t.extenExten?(t.extenExten=!1,t.extenPriority=!0,e.eatWhile(/[^,]/),t.extenInclude&&(e.skipToEnd(),t.extenPriority=!1,t.extenInclude=!1),t.extenSame&&(t.extenPriority=!1,t.extenSame=!1,t.extenApplication=!0),"tag"):t.extenPriority?(t.extenPriority=!1,t.extenApplication=!0,e.next(),t.extenSame?null:(e.eatWhile(/[^,]/),"number")):t.extenApplication?(e.eatWhile(/,/),","===(n=e.current())?null:(e.eatWhile(/\w/),n=e.current().toLowerCase(),t.extenApplication=!1,-1!==FKn.indexOf(n)?"def":null)):function(e,t){var n="",r=e.next();if(t.blockComment)return"-"==r&&e.match("-;",!0)?t.blockComment=!1:e.skipTo("--;")?(e.next(),e.next(),e.next(),t.blockComment=!1):e.skipToEnd(),"comment";if(";"==r)return e.match("--",!0)&&!e.match("-",!1)?(t.blockComment=!0,"comment"):(e.skipToEnd(),"comment");if("["==r)return e.skipTo("]"),e.eat("]"),"header";if('"'==r)return e.skipTo('"'),"string";if("'"==r)return e.skipTo("'"),"string.special";if("#"==r&&(e.eatWhile(/\w/),n=e.current(),-1!==XKn.indexOf(n)))return e.skipToEnd(),"strong";if("$"==r&&"{"==e.peek())return e.skipTo("}"),e.eat("}"),"variableName.special";if(e.eatWhile(/\w/),n=e.current(),-1!==NKn.indexOf(n)){switch(t.extenStart=!0,n){case"same":t.extenSame=!0;break;case"include":case"switch":case"ignorepat":t.extenInclude=!0}return"atom"}}(e,t)},languageData:{commentTokens:{line:";",block:{open:";--",close:"--;"}}}},zKn=Object.freeze(Object.defineProperty({__proto__:null,asterisk:UKn},Symbol.toStringTag,{value:"Module"}));var qKn="><+-.,[]".split("");const VKn={name:"brainfuck",startState:function(){return{commentLine:!1,left:0,right:0,commentLoop:!1}},token:function(e,t){if(e.eatSpace())return null;e.sol()&&(t.commentLine=!1);var n=e.next().toString();return-1===qKn.indexOf(n)?(t.commentLine=!0,e.eol()&&(t.commentLine=!1),"comment"):!0===t.commentLine?(e.eol()&&(t.commentLine=!1),"comment"):"]"===n||"["===n?("["===n?t.left++:t.right++,"bracket"):"+"===n||"-"===n?"keyword":"<"===n||">"===n?"atom":"."===n||","===n?"def":void(e.eol()&&(t.commentLine=!1))}},WKn=Object.freeze(Object.defineProperty({__proto__:null,brainfuck:VKn},Symbol.toStringTag,{value:"Module"}));var jKn="string",YKn="atom";function ZKn(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var GKn=ZKn("TRUE FALSE ZEROES ZEROS ZERO SPACES SPACE LOW-VALUE LOW-VALUES "),HKn=ZKn("ACCEPT ACCESS ACQUIRE ADD ADDRESS ADVANCING AFTER ALIAS ALL ALPHABET ALPHABETIC ALPHABETIC-LOWER ALPHABETIC-UPPER ALPHANUMERIC ALPHANUMERIC-EDITED ALSO ALTER ALTERNATE AND ANY ARE AREA AREAS ARITHMETIC ASCENDING ASSIGN AT ATTRIBUTE AUTHOR AUTO AUTO-SKIP AUTOMATIC B-AND B-EXOR B-LESS B-NOT B-OR BACKGROUND-COLOR BACKGROUND-COLOUR BEEP BEFORE BELL BINARY BIT BITS BLANK BLINK BLOCK BOOLEAN BOTTOM BY CALL CANCEL CD CF CH CHARACTER CHARACTERS CLASS CLOCK-UNITS CLOSE COBOL CODE CODE-SET COL COLLATING COLUMN COMMA COMMIT COMMITMENT COMMON COMMUNICATION COMP COMP-0 COMP-1 COMP-2 COMP-3 COMP-4 COMP-5 COMP-6 COMP-7 COMP-8 COMP-9 COMPUTATIONAL COMPUTATIONAL-0 COMPUTATIONAL-1 COMPUTATIONAL-2 COMPUTATIONAL-3 COMPUTATIONAL-4 COMPUTATIONAL-5 COMPUTATIONAL-6 COMPUTATIONAL-7 COMPUTATIONAL-8 COMPUTATIONAL-9 COMPUTE CONFIGURATION CONNECT CONSOLE CONTAINED CONTAINS CONTENT CONTINUE CONTROL CONTROL-AREA CONTROLS CONVERTING COPY CORR CORRESPONDING COUNT CRT CRT-UNDER CURRENCY CURRENT CURSOR DATA DATE DATE-COMPILED DATE-WRITTEN DAY DAY-OF-WEEK DB DB-ACCESS-CONTROL-KEY DB-DATA-NAME DB-EXCEPTION DB-FORMAT-NAME DB-RECORD-NAME DB-SET-NAME DB-STATUS DBCS DBCS-EDITED DE DEBUG-CONTENTS DEBUG-ITEM DEBUG-LINE DEBUG-NAME DEBUG-SUB-1 DEBUG-SUB-2 DEBUG-SUB-3 DEBUGGING DECIMAL-POINT DECLARATIVES DEFAULT DELETE DELIMITED DELIMITER DEPENDING DESCENDING DESCRIBED DESTINATION DETAIL DISABLE DISCONNECT DISPLAY DISPLAY-1 DISPLAY-2 DISPLAY-3 DISPLAY-4 DISPLAY-5 DISPLAY-6 DISPLAY-7 DISPLAY-8 DISPLAY-9 DIVIDE DIVISION DOWN DROP DUPLICATE DUPLICATES DYNAMIC EBCDIC EGI EJECT ELSE EMI EMPTY EMPTY-CHECK ENABLE END END. END-ACCEPT END-ACCEPT. END-ADD END-CALL END-COMPUTE END-DELETE END-DISPLAY END-DIVIDE END-EVALUATE END-IF END-INVOKE 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 END-XML ENTER ENTRY ENVIRONMENT EOP EQUAL EQUALS ERASE ERROR ESI EVALUATE EVERY EXCEEDS EXCEPTION EXCLUSIVE EXIT EXTEND EXTERNAL EXTERNALLY-DESCRIBED-KEY FD FETCH FILE FILE-CONTROL FILE-STREAM FILES FILLER FINAL FIND FINISH FIRST FOOTING FOR FOREGROUND-COLOR FOREGROUND-COLOUR FORMAT FREE FROM FULL FUNCTION GENERATE GET GIVING GLOBAL GO GOBACK GREATER GROUP HEADING HIGH-VALUE HIGH-VALUES HIGHLIGHT I-O I-O-CONTROL ID IDENTIFICATION IF IN INDEX INDEX-1 INDEX-2 INDEX-3 INDEX-4 INDEX-5 INDEX-6 INDEX-7 INDEX-8 INDEX-9 INDEXED INDIC INDICATE INDICATOR INDICATORS INITIAL INITIALIZE INITIATE INPUT INPUT-OUTPUT INSPECT INSTALLATION INTO INVALID INVOKE IS JUST JUSTIFIED KANJI KEEP KEY LABEL LAST LD LEADING LEFT LEFT-JUSTIFY LENGTH LENGTH-CHECK LESS LIBRARY LIKE LIMIT LIMITS LINAGE LINAGE-COUNTER LINE LINE-COUNTER LINES LINKAGE LOCAL-STORAGE LOCALE LOCALLY LOCK MEMBER MEMORY MERGE MESSAGE METACLASS MODE MODIFIED MODIFY MODULES MOVE MULTIPLE MULTIPLY NATIONAL NATIVE NEGATIVE NEXT NO NO-ECHO NONE NOT NULL NULL-KEY-MAP NULL-MAP NULLS NUMBER NUMERIC NUMERIC-EDITED OBJECT OBJECT-COMPUTER OCCURS OF OFF OMITTED ON ONLY OPEN OPTIONAL OR ORDER ORGANIZATION OTHER OUTPUT OVERFLOW OWNER PACKED-DECIMAL PADDING PAGE PAGE-COUNTER PARSE PERFORM PF PH PIC PICTURE PLUS POINTER POSITION POSITIVE PREFIX PRESENT PRINTING PRIOR PROCEDURE PROCEDURE-POINTER PROCEDURES PROCEED PROCESS PROCESSING PROGRAM PROGRAM-ID PROMPT PROTECTED PURGE QUEUE QUOTE QUOTES RANDOM RD READ READY REALM RECEIVE RECONNECT RECORD RECORD-NAME RECORDS RECURSIVE REDEFINES REEL REFERENCE REFERENCE-MONITOR REFERENCES RELATION RELATIVE RELEASE REMAINDER REMOVAL RENAMES REPEATED REPLACE REPLACING REPORT REPORTING REPORTS REPOSITORY REQUIRED RERUN RESERVE RESET RETAINING RETRIEVAL RETURN RETURN-CODE RETURNING REVERSE-VIDEO REVERSED REWIND REWRITE RF RH RIGHT RIGHT-JUSTIFY ROLLBACK ROLLING ROUNDED RUN SAME SCREEN SD SEARCH SECTION SECURE SECURITY SEGMENT SEGMENT-LIMIT SELECT SEND SENTENCE SEPARATE SEQUENCE SEQUENTIAL SET SHARED SIGN SIZE SKIP1 SKIP2 SKIP3 SORT SORT-MERGE SORT-RETURN SOURCE SOURCE-COMPUTER SPACE-FILL SPECIAL-NAMES STANDARD STANDARD-1 STANDARD-2 START STARTING STATUS STOP STORE STRING SUB-QUEUE-1 SUB-QUEUE-2 SUB-QUEUE-3 SUB-SCHEMA SUBFILE SUBSTITUTE SUBTRACT SUM SUPPRESS SYMBOLIC SYNC SYNCHRONIZED SYSIN SYSOUT TABLE TALLYING TAPE TENANT TERMINAL TERMINATE TEST TEXT THAN THEN THROUGH THRU TIME TIMES TITLE TO TOP TRAILING TRAILING-SIGN TRANSACTION TYPE TYPEDEF UNDERLINE UNEQUAL UNIT UNSTRING UNTIL UP UPDATE UPON USAGE USAGE-MODE USE USING VALID VALIDATE VALUE VALUES VARYING VLR WAIT WHEN WHEN-COMPILED WITH WITHIN WORDS WORKING-STORAGE WRITE XML XML-CODE XML-EVENT XML-NTEXT XML-TEXT ZERO ZERO-FILL "),KKn=ZKn("- * ** / + < <= = > >= "),JKn={digit:/\d/,digit_or_colon:/[\d:]/,hex:/[0-9a-f]/i,sign:/[+-]/,exponent:/e/i,symbol:/[\w*+\-]/};const eJn={name:"cobol",startState:function(){return{indentStack:null,indentation:0,mode:!1}},token:function(e,t){if(null==t.indentStack&&e.sol()&&(t.indentation=6),e.eatSpace())return null;var n=null;if("string"===t.mode){for(var r=!1;null!=(r=e.next());)if(('"'==r||"'"==r)&&!e.match(/['"]/,!1)){t.mode=!1;break}n=jKn}else{var i=e.next(),o=e.column();if(o>=0&&o<=5)n="def";else if(o>=72&&o<=79)e.skipToEnd(),n="header";else if("*"==i&&6==o)e.skipToEnd(),n="comment";else if('"'==i||"'"==i)t.mode="string",n=jKn;else if("'"!=i||JKn.digit_or_colon.test(e.peek()))if("."==i)n="link";else if(function(e,t){return"0"===e&&t.eat(/x/i)?(t.eatWhile(JKn.hex),!0):("+"!=e&&"-"!=e||!JKn.digit.test(t.peek())||(t.eat(JKn.sign),e=t.next()),!!JKn.digit.test(e)&&(t.eat(e),t.eatWhile(JKn.digit),"."==t.peek()&&(t.eat("."),t.eatWhile(JKn.digit)),t.eat(JKn.exponent)&&(t.eat(JKn.sign),t.eatWhile(JKn.digit)),!0))}(i,e))n="number";else{if(e.current().match(JKn.symbol))for(;o<71&&void 0!==e.eat(JKn.symbol);)o++;n=HKn&&HKn.propertyIsEnumerable(e.current().toUpperCase())?"keyword":KKn&&KKn.propertyIsEnumerable(e.current().toUpperCase())?"builtin":GKn&&GKn.propertyIsEnumerable(e.current().toUpperCase())?YKn:null}else n=YKn}return n},indent:function(e){return null==e.indentStack?e.indentation:e.indentStack.indent}},tJn=Object.freeze(Object.defineProperty({__proto__:null,cobol:eJn},Symbol.toStringTag,{value:"Module"}));function nJn(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.info=r,this.align=i,this.prev=o}function rJn(e,t,n,r){var i=e.indented;return e.context&&"statement"==e.context.type&&"statement"!=n&&(i=e.context.indented),e.context=new nJn(i,t,n,r,null,e.context)}function iJn(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function oJn(e,t,n){return"variable"==t.prevToken||"type"==t.prevToken||(!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,n))||(!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0))}function aJn(e){for(;;){if(!e||"top"==e.type)return!0;if("}"==e.type&&"namespace"!=e.prev.info)return!1;e=e.prev}}function sJn(e){var t,n,r=e.statementIndentUnit,i=e.dontAlignCalls,o=e.keywords||{},a=e.types||{},s=e.builtin||{},l=e.blockKeywords||{},c=e.defKeywords||{},u=e.atoms||{},h=e.hooks||{},d=e.multiLineStrings,p=!1!==e.indentStatements,f=!1!==e.indentSwitch,g=e.namespaceSeparator,m=e.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,O=e.numberStart||/[\d\.]/,A=e.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,y=e.isOperatorChar||/[+\-*&%=<>!?|\/]/,v=e.isIdentifierChar||/[\w\$_\xa1-\uffff]/,b=e.isReservedIdentifier||!1;function x(e,r){var i,p=e.next();if(h[p]){var f=h[p](e,r);if(!1!==f)return f}if('"'==p||"'"==p)return r.tokenize=(i=p,function(e,t){for(var n,r=!1,o=!1;null!=(n=e.next());){if(n==i&&!r){o=!0;break}r=!r&&"\\"==n}return(o||!r&&!d)&&(t.tokenize=null),"string"}),r.tokenize(e,r);if(O.test(p)){if(e.backUp(1),e.match(A))return"number";e.next()}if(m.test(p))return t=p,null;if("/"==p){if(e.eat("*"))return r.tokenize=w,w(e,r);if(e.eat("/"))return e.skipToEnd(),"comment"}if(y.test(p)){for(;!e.match(/^\/[\/*]/,!1)&&e.eat(y););return"operator"}if(e.eatWhile(v),g)for(;e.match(g);)e.eatWhile(v);var x=e.current();return cJn(o,x)?(cJn(l,x)&&(t="newstatement"),cJn(c,x)&&(n=!0),"keyword"):cJn(a,x)?"type":cJn(s,x)||b&&b(x)?(cJn(l,x)&&(t="newstatement"),"builtin"):cJn(u,x)?"atom":"variable"}function w(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function k(t,n){e.typeFirstDefinitions&&t.eol()&&aJn(n.context)&&(n.typeAtEndOfLine=oJn(t,n,t.pos))}return{name:e.name,startState:function(e){return{tokenize:null,context:new nJn(-e,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(r,i){var o=i.context;if(r.sol()&&(null==o.align&&(o.align=!1),i.indented=r.indentation(),i.startOfLine=!0),r.eatSpace())return k(r,i),null;t=n=null;var a=(i.tokenize||x)(r,i);if("comment"==a||"meta"==a)return a;if(null==o.align&&(o.align=!0),";"==t||":"==t||","==t&&r.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==i.context.type;)iJn(i);else if("{"==t)rJn(i,r.column(),"}");else if("["==t)rJn(i,r.column(),"]");else if("("==t)rJn(i,r.column(),")");else if("}"==t){for(;"statement"==o.type;)o=iJn(i);for("}"==o.type&&(o=iJn(i));"statement"==o.type;)o=iJn(i)}else t==o.type?iJn(i):p&&(("}"==o.type||"top"==o.type)&&";"!=t||"statement"==o.type&&"newstatement"==t)&&rJn(i,r.column(),"statement",r.current());if("variable"==a&&("def"==i.prevToken||e.typeFirstDefinitions&&oJn(r,i,r.start)&&aJn(i.context)&&r.match(/^\s*\(/,!1))&&(a="def"),h.token){var s=h.token(r,i,a);void 0!==s&&(a=s)}return"def"==a&&!1===e.styleDefs&&(a="variable"),i.startOfLine=!1,i.prevToken=n?"def":a||t,k(r,i),a},indent:function(t,n,o){if(t.tokenize!=x&&null!=t.tokenize||t.typeAtEndOfLine&&aJn(t.context))return null;var a=t.context,s=n&&n.charAt(0),l=s==a.type;if("statement"==a.type&&"}"==s&&(a=a.prev),e.dontIndentStatements)for(;"statement"==a.type&&e.dontIndentStatements.test(a.info);)a=a.prev;if(h.indent){var c=h.indent(t,a,n,o.unit);if("number"==typeof c)return c}var u=a.prev&&"switch"==a.prev.info;if(e.allmanIndentation&&/[{(]/.test(s)){for(;"top"!=a.type&&"}"!=a.type;)a=a.prev;return a.indented}return"statement"==a.type?a.indented+("{"==s?0:r||o.unit):!a.align||i&&")"==a.type?")"!=a.type||l?a.indented+(l?0:o.unit)+(l||!u||/^(?:case|default)\b/.test(n)?0:o.unit):a.indented+(r||o.unit):a.column+(l?0:1)},languageData:{indentOnInput:f?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:Object.keys(o).concat(Object.keys(a)).concat(Object.keys(s)).concat(Object.keys(u)),...e.languageData}}}function lJn(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function cJn(e,t){return"function"==typeof e?e(t):e.propertyIsEnumerable(t)}var uJn="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",hJn="alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq",dJn="bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available",pJn="FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT",fJn=lJn("int long char short double float unsigned signed void bool"),gJn=lJn("SEL instancetype id Class Protocol BOOL");function mJn(e){return cJn(fJn,e)||/.+_t$/.test(e)}function OJn(e){return mJn(e)||cJn(gJn,e)}var AJn="case do else for if switch while struct enum union",yJn="struct enum union";function vJn(e,t){if(!t.startOfLine)return!1;for(var n,r=null;n=e.peek();){if("\\"==n&&e.match(/^.$/)){r=vJn;break}if("/"==n&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=r,"meta"}function bJn(e,t){return"type"==t.prevToken&&"type"}function xJn(e){return!(!e||e.length<2)&&("_"==e[0]&&("_"==e[1]||e[1]!==e[1].toLowerCase()))}function wJn(e){return e.eatWhile(/[\w\.']/),"number"}function kJn(e,t){if(e.backUp(1),e.match(/^(?:R|u8R|uR|UR|LR)/)){var n=e.match(/^"([^\s\\()]{0,16})\(/);return!!n&&(t.cpp11RawStringDelim=n[1],t.tokenize=$Jn,$Jn(e,t))}return e.match(/^(?:u8|u|U|L)/)?!!e.match(/^["']/,!1)&&"string":(e.next(),!1)}function SJn(e){var t=/(\w+)::~?(\w+)$/.exec(e);return t&&t[1]==t[2]}function TJn(e,t){for(var n;null!=(n=e.next());)if('"'==n&&!e.eat('"')){t.tokenize=null;break}return"string"}function $Jn(e,t){var n=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return e.match(new RegExp(".*?\\)"+n+'"'))?t.tokenize=null:e.skipToEnd(),"string"}const _Jn=sJn({name:"c",keywords:lJn(uJn),types:mJn,blockKeywords:lJn(AJn),defKeywords:lJn(yJn),typeFirstDefinitions:!0,atoms:lJn("NULL true false"),isReservedIdentifier:xJn,hooks:{"#":vJn,"*":bJn}}),CJn=sJn({name:"cpp",keywords:lJn(uJn+" "+hJn),types:mJn,blockKeywords:lJn(AJn+" class try catch"),defKeywords:lJn(yJn+" class namespace"),typeFirstDefinitions:!0,atoms:lJn("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:xJn,hooks:{"#":vJn,"*":bJn,u:kJn,U:kJn,L:kJn,R:kJn,0:wJn,1:wJn,2:wJn,3:wJn,4:wJn,5:wJn,6:wJn,7:wJn,8:wJn,9:wJn,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&SJn(e.current()))return"def"}},namespaceSeparator:"::"}),QJn=sJn({name:"java",keywords:lJn("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:lJn("var byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:lJn("catch class do else finally for if switch try while"),defKeywords:lJn("class interface enum @interface"),typeFirstDefinitions:!0,atoms:lJn("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(e){return!e.match("interface",!1)&&(e.eatWhile(/[\w\$_]/),"meta")},'"':function(e,t){return!!e.match(/""$/)&&(t.tokenize=EJn,t.tokenize(e,t))}}}),PJn=sJn({name:"csharp",keywords:lJn("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in init interface internal is lock namespace new operator out override params private protected public readonly record ref required return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:lJn("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:lJn("catch class do else finally for foreach if struct switch try while"),defKeywords:lJn("class interface namespace record struct var"),typeFirstDefinitions:!0,atoms:lJn("true false null"),hooks:{"@":function(e,t){return e.eat('"')?(t.tokenize=TJn,TJn(e,t)):(e.eatWhile(/[\w\$_]/),"meta")}}});function EJn(e,t){for(var n=!1;!e.eol();){if(!n&&e.match('"""')){t.tokenize=null;break}n="\\"==e.next()&&!n}return"string"}function RJn(e){return function(t,n){for(var r;r=t.next();){if("*"==r&&t.eat("/")){if(1==e){n.tokenize=null;break}return n.tokenize=RJn(e-1),n.tokenize(t,n)}if("/"==r&&t.eat("*"))return n.tokenize=RJn(e+1),n.tokenize(t,n)}return"comment"}}const BJn=sJn({name:"scala",keywords:lJn("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 super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"),types:lJn("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0,blockKeywords:lJn("catch class enum do else finally for forSome if match switch try while"),defKeywords:lJn("class enum def object package trait type val var"),atoms:lJn("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=EJn,t.tokenize(e,t))},"'":function(e){return e.match(/^(\\[^'\s]+|[^\\'])'/)?"character":(e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom")},"=":function(e,t){var n=t.context;return!("}"!=n.type||!n.align||!e.eat(">"))&&(t.context=new nJn(n.indented,n.column,n.type,n.info,null,n.prev),"operator")},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=RJn(1),t.tokenize(e,t))}},languageData:{closeBrackets:{brackets:["(","[","{","'",'"','"""']}}});const IJn=sJn({name:"kotlin",keywords:lJn("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam"),types:lJn("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(ul?|l|f)?/i,blockKeywords:lJn("catch class do else finally for if where try while enum"),defKeywords:lJn("class val var object interface fun"),atoms:lJn("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},"*":function(e,t){return"."==t.prevToken?"variable":"operator"},'"':function(e,t){var n;return t.tokenize=(n=e.match('""'),function(e,t){for(var r,i=!1,o=!1;!e.eol();){if(!n&&!i&&e.match('"')){o=!0;break}if(n&&e.match('"""')){o=!0;break}r=e.next(),!i&&"$"==r&&e.match("{")&&e.skipTo("}"),i=!i&&"\\"==r&&!n}return!o&&n||(t.tokenize=null),"string"}),t.tokenize(e,t)},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=RJn(1),t.tokenize(e,t))},indent:function(e,t,n,r){var i=n&&n.charAt(0);return"}"!=e.prevToken&&")"!=e.prevToken||""!=n?"operator"==e.prevToken&&"}"!=n&&"}"!=e.context.type||"variable"==e.prevToken&&"."==i||("}"==e.prevToken||")"==e.prevToken)&&"."==i?2*r+t.indented:t.align&&"}"==t.type?t.indented+(e.context.type==(n||"").charAt(0)?0:r):void 0:e.indented}},languageData:{closeBrackets:{brackets:["(","[","{","'",'"','"""']}}}),LJn=sJn({name:"shader",keywords:lJn("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:lJn("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:lJn("for while do if else struct"),builtin:lJn("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:lJn("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":vJn}}),DJn=sJn({name:"nesc",keywords:lJn(uJn+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:mJn,blockKeywords:lJn(AJn),atoms:lJn("null true false"),hooks:{"#":vJn}}),MJn=sJn({name:"objectivec",keywords:lJn(uJn+" "+dJn),types:OJn,builtin:lJn(pJn),blockKeywords:lJn(AJn+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:lJn(yJn+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:lJn("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:xJn,hooks:{"#":vJn,"*":bJn}}),NJn=sJn({name:"objectivecpp",keywords:lJn(uJn+" "+dJn+" "+hJn),types:OJn,builtin:lJn(pJn),blockKeywords:lJn(AJn+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:lJn(yJn+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:lJn("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:xJn,hooks:{"#":vJn,"*":bJn,u:kJn,U:kJn,L:kJn,R:kJn,0:wJn,1:wJn,2:wJn,3:wJn,4:wJn,5:wJn,6:wJn,7:wJn,8:wJn,9:wJn,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&SJn(e.current()))return"def"}},namespaceSeparator:"::"}),XJn=sJn({name:"squirrel",keywords:lJn("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:mJn,blockKeywords:lJn("case catch class else for foreach if switch try while"),defKeywords:lJn("function local class"),typeFirstDefinitions:!0,atoms:lJn("true false null"),hooks:{"#":vJn}});var FJn=null;function UJn(e){return function(t,n){for(var r,i=!1,o=!1;!t.eol();){if(!i&&t.match('"')&&("single"==e||t.match('""'))){o=!0;break}if(!i&&t.match("``")){FJn=UJn(e),o=!0;break}r=t.next(),i="single"==e&&!i&&"\\"==r}return o&&(n.tokenize=null),"string"}}const zJn=sJn({name:"ceylon",keywords:lJn("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:lJn("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:lJn("class dynamic function interface module object package value"),builtin:lJn("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:lJn("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=UJn(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!(!FJn||!e.match("`"))&&(t.tokenize=FJn,FJn=null,t.tokenize(e,t))},"'":function(e){return e.match(/^(\\[^'\s]+|[^\\'])'/)?"string.special":(e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom")},token:function(e,t,n){if(("variable"==n||"type"==n)&&"."==t.prevToken)return"variableName.special"}},languageData:{closeBrackets:{brackets:["(","[","{","'",'"','"""']}}});function qJn(e){(e.interpolationStack||(e.interpolationStack=[])).push(e.tokenize)}function VJn(e){return(e.interpolationStack||(e.interpolationStack=[])).pop()}function WJn(e,t,n,r){var i=!1;if(t.eat(e)){if(!t.eat(e))return"string";i=!0}function o(t,n){for(var o=!1;!t.eol();){if(!r&&!o&&"$"==t.peek())return qJn(n),n.tokenize=jJn,"string";var a=t.next();if(a==e&&!o&&(!i||t.match(e+e))){n.tokenize=null;break}o=!r&&!o&&"\\"==a}return"string"}return n.tokenize=o,o(t,n)}function jJn(e,t){return e.eat("$"),e.eat("{")?t.tokenize=null:t.tokenize=YJn,null}function YJn(e,t){return e.eatWhile(/[\w_]/),t.tokenize=VJn(t),"variable"}const ZJn=sJn({name:"dart",keywords:lJn("this super static final const abstract class extends external factory implements mixin get native set typedef with enum throw rethrow assert break case continue default in return new deferred async await covariant try catch finally do else for if switch while import library export part of show hide is as extension on yield late required sealed base interface when inline"),blockKeywords:lJn("try catch finally do else for if switch while"),builtin:lJn("void bool num int double dynamic var String Null Never"),atoms:lJn("true false null"),number:/^(?:0x[a-f\d_]+|(?:[\d_]+\.?[\d_]*|\.[\d_]+)(?:e[-+]?[\d_]+)?)/i,hooks:{"@":function(e){return e.eatWhile(/[\w\$_\.]/),"meta"},"'":function(e,t){return WJn("'",e,t,!1)},'"':function(e,t){return WJn('"',e,t,!1)},r:function(e,t){var n=e.peek();return("'"==n||'"'==n)&&WJn(e.next(),e,t,!0)},"}":function(e,t){return function(e){return e.interpolationStack?e.interpolationStack.length:0}(t)>0&&(t.tokenize=VJn(t),null)},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=RJn(1),t.tokenize(e,t))},token:function(e,t,n){if("variable"==n&&RegExp("^[_$]*[A-Z][a-zA-Z0-9_$]*$","g").test(e.current()))return"type"}}}),GJn=Object.freeze(Object.defineProperty({__proto__:null,c:_Jn,ceylon:zJn,clike:sJn,cpp:CJn,csharp:PJn,dart:ZJn,java:QJn,kotlin:IJn,nesC:DJn,objectiveC:MJn,objectiveCpp:NJn,scala:BJn,shader:LJn,squirrel:XJn},Symbol.toStringTag,{value:"Module"}));var HJn=["false","nil","true"],KJn=[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],JJn=["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"],e0n=h0n(HJn),t0n=h0n(KJn),n0n=h0n(JJn),r0n=h0n(["->","->>","as->","binding","bound-fn","case","catch","comment","cond","cond->","cond->>","condp","def","definterface","defmethod","defn","defmacro","defprotocol","defrecord","defstruct","deftype","do","doseq","dotimes","doto","extend","extend-protocol","extend-type","fn","for","future","if","if-let","if-not","if-some","let","letfn","locking","loop","ns","proxy","reify","struct-map","some->","some->>","try","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn"]),i0n=/^(?:[\\\[\]\s"(),;@^`{}~]|$)/,o0n=/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,a0n=/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,s0n=/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/;function l0n(e,t){if(e.eatSpace()||e.eat(","))return["space",null];if(e.match(o0n))return[null,"number"];if(e.match(a0n))return[null,"string.special"];if(e.eat(/^"/))return(t.tokenize=c0n)(e,t);if(e.eat(/^[(\[{]/))return["open","bracket"];if(e.eat(/^[)\]}]/))return["close","bracket"];if(e.eat(/^;/))return e.skipToEnd(),["space","comment"];if(e.eat(/^[#'@^`~]/))return[null,"meta"];var n=e.match(s0n),r=n&&n[0];return r?"comment"===r&&"("===t.lastToken?(t.tokenize=u0n)(e,t):d0n(r,e0n)||":"===r.charAt(0)?["symbol","atom"]:d0n(r,t0n)||d0n(r,n0n)?["symbol","keyword"]:"("===t.lastToken?["symbol","builtin"]:["symbol","variable"]:(e.next(),e.eatWhile(function(e){return!d0n(e,i0n)}),[null,"error"])}function c0n(e,t){for(var n,r=!1;n=e.next();){if('"'===n&&!r){t.tokenize=l0n;break}r=!r&&"\\"===n}return[null,"string"]}function u0n(e,t){for(var n,r=1;n=e.next();)if(")"===n&&r--,"("===n&&r++,0===r){e.backUp(1),t.tokenize=l0n;break}return["space","comment"]}function h0n(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}function d0n(e,t){return t instanceof RegExp?t.test(e):t instanceof Object?t.propertyIsEnumerable(e):void 0}const p0n={name:"clojure",startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastToken:null,tokenize:l0n}},token:function(e,t){e.sol()&&"number"!=typeof t.ctx.indentTo&&(t.ctx.indentTo=t.ctx.start+1);var n=t.tokenize(e,t),r=n[0],i=n[1],o=e.current();return"space"!==r&&("("===t.lastToken&&null===t.ctx.indentTo?"symbol"===r&&d0n(o,r0n)?t.ctx.indentTo=t.ctx.start+e.indentUnit:t.ctx.indentTo="next":"next"===t.ctx.indentTo&&(t.ctx.indentTo=e.column()),t.lastToken=o),"open"===r?t.ctx={prev:t.ctx,start:e.column(),indentTo:null}:"close"===r&&(t.ctx=t.ctx.prev||t.ctx),i},indent:function(e){var t=e.ctx.indentTo;return"number"==typeof t?t:e.ctx.start+1},languageData:{closeBrackets:{brackets:["(","[","{",'"']},commentTokens:{line:";;"},autocomplete:[].concat(HJn,KJn,JJn)}},f0n=Object.freeze(Object.defineProperty({__proto__:null,clojure:p0n},Symbol.toStringTag,{value:"Module"}));function g0n(e){var t,n,r=(e={...M0n,...e}).inline,i=e.tokenHooks,o=e.documentTypes||{},a=e.mediaTypes||{},s=e.mediaFeatures||{},l=e.mediaValueKeywords||{},c=e.propertyKeywords||{},u=e.nonStandardPropertyKeywords||{},h=e.fontProperties||{},d=e.counterDescriptors||{},p=e.colorKeywords||{},f=e.valueKeywords||{},g=e.allowNested,m=e.lineComment,O=!0===e.supportsAtComponent,A=!1!==e.highlightNonStandardPropertyKeywords;function y(e,n){return t=n,e}function v(e,t){var n=e.next();if(i[n]){var r=i[n](e,t);if(!1!==r)return r}return"@"==n?(e.eatWhile(/[\w\\\-]/),y("def",e.current())):"="==n||("~"==n||"|"==n)&&e.eat("=")?y(null,"compare"):'"'==n||"'"==n?(t.tokenize=b(n),t.tokenize(e,t)):"#"==n?(e.eatWhile(/[\w\\\-]/),y("atom","hash")):"!"==n?(e.match(/^\s*\w*/),y("keyword","important")):/\d/.test(n)||"."==n&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),y("number","unit")):"-"!==n?/[,+>*\/]/.test(n)?y(null,"select-op"):"."==n&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?y("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?y(null,n):e.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(t.tokenize=x),y("variableName.function","variable")):/[\w\\\-]/.test(n)?(e.eatWhile(/[\w\\\-]/),y("property","word")):y(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),y("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?y("def","variable-definition"):y("variableName","variable")):e.match(/^\w+-/)?y("meta","meta"):void 0}function b(e){return function(t,n){for(var r,i=!1;null!=(r=t.next());){if(r==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==r}return(r==e||!i&&")"!=e)&&(n.tokenize=null),y("string","string")}}function x(e,t){return e.next(),e.match(/^\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=b(")"),y(null,"(")}function w(e,t,n){this.type=e,this.indent=t,this.prev=n}function k(e,t,n,r){return e.context=new w(n,t.indentation()+(!1===r?0:t.indentUnit),e.context),n}function S(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function T(e,t,n){return C[n.context.type](e,t,n)}function $(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return T(e,t,n)}function _(e){var t=e.current().toLowerCase();n=f.hasOwnProperty(t)?"atom":p.hasOwnProperty(t)?"keyword":"variable"}var C={top:function(e,t,r){if("{"==e)return k(r,t,"block");if("}"==e&&r.context.prev)return S(r);if(O&&/@component/i.test(e))return k(r,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return k(r,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return k(r,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return r.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return k(r,t,"at");if("hash"==e)n="builtin";else if("word"==e)n="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return k(r,t,"interpolation");if(":"==e)return"pseudo";if(g&&"("==e)return k(r,t,"parens")}return r.context.type},block:function(e,t,r){if("word"==e){var i=t.current().toLowerCase();return c.hasOwnProperty(i)?(n="property","maybeprop"):u.hasOwnProperty(i)?(n=A?"string.special":"property","maybeprop"):g?(n=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(n="error","maybeprop")}return"meta"==e?"block":g||"hash"!=e&&"qualifier"!=e?C.top(e,t,r):(n="error","block")},maybeprop:function(e,t,n){return":"==e?k(n,t,"prop"):T(e,t,n)},prop:function(e,t,r){if(";"==e)return S(r);if("{"==e&&g)return k(r,t,"propBlock");if("}"==e||"{"==e)return $(e,t,r);if("("==e)return k(r,t,"parens");if("hash"!=e||/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(t.current())){if("word"==e)_(t);else if("interpolation"==e)return k(r,t,"interpolation")}else n="error";return"prop"},propBlock:function(e,t,r){return"}"==e?S(r):"word"==e?(n="property","maybeprop"):r.context.type},parens:function(e,t,n){return"{"==e||"}"==e?$(e,t,n):")"==e?S(n):"("==e?k(n,t,"parens"):"interpolation"==e?k(n,t,"interpolation"):("word"==e&&_(t),"parens")},pseudo:function(e,t,r){return"meta"==e?"pseudo":"word"==e?(n="variableName.constant",r.context.type):T(e,t,r)},documentTypes:function(e,t,r){return"word"==e&&o.hasOwnProperty(t.current())?(n="tag",r.context.type):C.atBlock(e,t,r)},atBlock:function(e,t,r){if("("==e)return k(r,t,"atBlock_parens");if("}"==e||";"==e)return $(e,t,r);if("{"==e)return S(r)&&k(r,t,g?"block":"top");if("interpolation"==e)return k(r,t,"interpolation");if("word"==e){var i=t.current().toLowerCase();n="only"==i||"not"==i||"and"==i||"or"==i?"keyword":a.hasOwnProperty(i)?"attribute":s.hasOwnProperty(i)?"property":l.hasOwnProperty(i)?"keyword":c.hasOwnProperty(i)?"property":u.hasOwnProperty(i)?A?"string.special":"property":f.hasOwnProperty(i)?"atom":p.hasOwnProperty(i)?"keyword":"error"}return r.context.type},atComponentBlock:function(e,t,r){return"}"==e?$(e,t,r):"{"==e?S(r)&&k(r,t,g?"block":"top",!1):("word"==e&&(n="error"),r.context.type)},atBlock_parens:function(e,t,n){return")"==e?S(n):"{"==e||"}"==e?$(e,t,n,2):C.atBlock(e,t,n)},restricted_atBlock_before:function(e,t,r){return"{"==e?k(r,t,"restricted_atBlock"):"word"==e&&"@counter-style"==r.stateArg?(n="variable","restricted_atBlock_before"):T(e,t,r)},restricted_atBlock:function(e,t,r){return"}"==e?(r.stateArg=null,S(r)):"word"==e?(n="@font-face"==r.stateArg&&!h.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==r.stateArg&&!d.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,r){return"word"==e?(n="variable","keyframes"):"{"==e?k(r,t,"top"):T(e,t,r)},at:function(e,t,r){return";"==e?S(r):"{"==e||"}"==e?$(e,t,r):("word"==e?n="tag":"hash"==e&&(n="builtin"),"at")},interpolation:function(e,t,r){return"}"==e?S(r):"{"==e||";"==e?$(e,t,r):("word"==e?n="variable":"variable"!=e&&"("!=e&&")"!=e&&(n="error"),"interpolation")}};return{name:e.name,startState:function(){return{tokenize:null,state:r?"block":"top",stateArg:null,context:new w(r?"block":"top",0,null)}},token:function(e,r){if(!r.tokenize&&e.eatSpace())return null;var i=(r.tokenize||v)(e,r);return i&&"object"==typeof i&&(t=i[1],i=i[0]),n=i,"comment"!=t&&(r.state=C[r.state](t,e,r)),n},indent:function(e,t,n){var r=e.context,i=t&&t.charAt(0),o=r.indent;return"prop"!=r.type||"}"!=i&&")"!=i||(r=r.prev),r.prev&&("}"!=i||"block"!=r.type&&"top"!=r.type&&"interpolation"!=r.type&&"restricted_atBlock"!=r.type?(")"!=i||"parens"!=r.type&&"atBlock_parens"!=r.type)&&("{"!=i||"at"!=r.type&&"atBlock"!=r.type)||(o=Math.max(0,r.indent-n.unit)):o=(r=r.prev).indent),o},languageData:{indentOnInput:/^\s*\}$/,commentTokens:{line:m,block:{open:"/*",close:"*/"}},autocomplete:L0n}}}function m0n(e){for(var t={},n=0;n<e.length;++n)t[e[n].toLowerCase()]=!0;return t}var O0n=["domain","regexp","url","url-prefix"],A0n=m0n(O0n),y0n=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],v0n=m0n(y0n),b0n=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],x0n=m0n(b0n),w0n=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],k0n=m0n(w0n),S0n=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],T0n=m0n(S0n),$0n=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],_0n=m0n($0n),C0n=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],Q0n=m0n(C0n),P0n=m0n(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),E0n=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","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","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],R0n=m0n(E0n),B0n=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],I0n=m0n(B0n),L0n=O0n.concat(y0n).concat(b0n).concat(w0n).concat(S0n).concat($0n).concat(E0n).concat(B0n);const D0n={properties:S0n,colors:E0n,fonts:C0n,values:B0n,all:L0n},M0n={documentTypes:A0n,mediaTypes:v0n,mediaFeatures:x0n,mediaValueKeywords:k0n,propertyKeywords:T0n,nonStandardPropertyKeywords:_0n,fontProperties:Q0n,counterDescriptors:P0n,colorKeywords:R0n,valueKeywords:I0n,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=X0n,X0n(e,t))}}},N0n=g0n({name:"css"});function X0n(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}const F0n=g0n({name:"scss",mediaTypes:v0n,mediaFeatures:x0n,mediaValueKeywords:k0n,propertyKeywords:T0n,nonStandardPropertyKeywords:_0n,colorKeywords:R0n,valueKeywords:I0n,fontProperties:Q0n,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=X0n,X0n(e,t)):["operator","operator"]},":":function(e){return!!e.match(/^\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["def","variable-definition"]:["variableName.special","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}}}),U0n=g0n({name:"less",mediaTypes:v0n,mediaFeatures:x0n,mediaValueKeywords:k0n,propertyKeywords:T0n,nonStandardPropertyKeywords:_0n,colorKeywords:R0n,valueKeywords:I0n,fontProperties:Q0n,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=X0n,X0n(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["def","variable-definition"]:["variableName","variable"])},"&":function(){return["atom","atom"]}}}),z0n=g0n({name:"gss",documentTypes:A0n,mediaTypes:v0n,mediaFeatures:x0n,propertyKeywords:T0n,nonStandardPropertyKeywords:_0n,fontProperties:Q0n,counterDescriptors:P0n,colorKeywords:R0n,valueKeywords:I0n,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=X0n,X0n(e,t))}}}),q0n=Object.freeze(Object.defineProperty({__proto__:null,css:N0n,gss:z0n,keywords:D0n,less:U0n,mkCSS:g0n,sCSS:F0n},Symbol.toStringTag,{value:"Module"}));var V0n=/({)?[a-zA-Z0-9_]+(})?/;function W0n(e,t){for(var n,r,i=!1;!e.eol()&&(n=e.next())!=t.pending;){if("$"===n&&"\\"!=r&&'"'==t.pending){i=!0;break}r=n}return i&&e.backUp(1),n==t.pending?t.continueString=!1:t.continueString=!0,"string"}const j0n={name:"cmake",startState:function(){var e={inDefinition:!1,inInclude:!1,continueString:!1,pending:!1};return e},token:function(e,t){return e.eatSpace()?null:function(e,t){var n=e.next();return"$"===n?e.match(V0n)?"variableName.special":"variable":t.continueString?(e.backUp(1),W0n(e,t)):e.match(/(\s+)?\w+\(/)||e.match(/(\s+)?\w+\ \(/)?(e.backUp(1),"def"):"#"==n?(e.skipToEnd(),"comment"):"'"==n||'"'==n?(t.pending=n,W0n(e,t)):"("==n||")"==n?"bracket":n.match(/[0-9]/)?"number":(e.eatWhile(/[\w-]/),null)}(e,t)}},Y0n=Object.freeze(Object.defineProperty({__proto__:null,cmake:j0n},Symbol.toStringTag,{value:"Module"}));var Z0n="error";function G0n(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var H0n=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,K0n=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,J0n=/^[_A-Za-z$][_A-Za-z$0-9]*/,e1n=/^@[_A-Za-z$][_A-Za-z$0-9]*/,t1n=G0n(["and","or","not","is","isnt","in","instanceof","typeof"]),n1n=["for","while","loop","if","unless","else","switch","try","catch","finally","class"],r1n=G0n(n1n.concat(["break","by","continue","debugger","delete","do","in","of","new","return","then","this","@","throw","when","until","extends"]));n1n=G0n(n1n);var i1n=/^('{3}|\"{3}|['\"])/,o1n=/^(\/{3}|\/)/,a1n=G0n(["Infinity","NaN","undefined","null","true","false","on","off","yes","no"]);function s1n(e,t){if(e.sol()){null===t.scope.align&&(t.scope.align=!1);var n=t.scope.offset;if(e.eatSpace()){var r=e.indentation();return r>n&&"coffee"==t.scope.type?"indent":r<n?"dedent":null}n>0&&h1n(e,t)}if(e.eatSpace())return null;var i=e.peek();if(e.match("####"))return e.skipToEnd(),"comment";if(e.match("###"))return t.tokenize=c1n,t.tokenize(e,t);if("#"===i)return e.skipToEnd(),"comment";if(e.match(/^-?[0-9\.]/,!1)){var o=!1;if(e.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(o=!0),e.match(/^-?\d+\.\d*/)&&(o=!0),e.match(/^-?\.\d+/)&&(o=!0),o)return"."==e.peek()&&e.backUp(1),"number";var a=!1;if(e.match(/^-?0x[0-9a-f]+/i)&&(a=!0),e.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(a=!0),e.match(/^-?0(?![\dx])/i)&&(a=!0),a)return"number"}if(e.match(i1n))return t.tokenize=l1n(e.current(),!1,"string"),t.tokenize(e,t);if(e.match(o1n)){if("/"!=e.current()||e.match(/^.*\//,!1))return t.tokenize=l1n(e.current(),!0,"string.special"),t.tokenize(e,t);e.backUp(1)}return e.match(H0n)||e.match(t1n)?"operator":e.match(K0n)?"punctuation":e.match(a1n)?"atom":e.match(e1n)||t.prop&&e.match(J0n)?"property":e.match(r1n)?"keyword":e.match(J0n)?"variable":(e.next(),Z0n)}function l1n(e,t,n){return function(r,i){for(;!r.eol();)if(r.eatWhile(/[^'"\/\\]/),r.eat("\\")){if(r.next(),t&&r.eol())return n}else{if(r.match(e))return i.tokenize=s1n,n;r.eat(/['"\/]/)}return t&&(i.tokenize=s1n),n}}function c1n(e,t){for(;!e.eol();){if(e.eatWhile(/[^#]/),e.match("###")){t.tokenize=s1n;break}e.eatWhile("#")}return"comment"}function u1n(e,t,n="coffee"){for(var r=0,i=!1,o=null,a=t.scope;a;a=a.prev)if("coffee"===a.type||"}"==a.type){r=a.offset+e.indentUnit;break}"coffee"!==n?(i=null,o=e.column()+e.current().length):t.scope.align&&(t.scope.align=!1),t.scope={offset:r,type:n,prev:t.scope,align:i,alignOffset:o}}function h1n(e,t){if(t.scope.prev){if("coffee"===t.scope.type){for(var n=e.indentation(),r=!1,i=t.scope;i;i=i.prev)if(n===i.offset){r=!0;break}if(!r)return!0;for(;t.scope.prev&&t.scope.offset!==n;)t.scope=t.scope.prev;return!1}return t.scope=t.scope.prev,!1}}const d1n={name:"coffeescript",startState:function(){return{tokenize:s1n,scope:{offset:0,type:"coffee",prev:null,align:!1},prop:!1,dedent:0}},token:function(e,t){var n=null===t.scope.align&&t.scope;n&&e.sol()&&(n.align=!1);var r=function(e,t){var n=t.tokenize(e,t),r=e.current();"return"===r&&(t.dedent=!0),(("->"===r||"=>"===r)&&e.eol()||"indent"===n)&&u1n(e,t);var i="[({".indexOf(r);if(-1!==i&&u1n(e,t,"])}".slice(i,i+1)),n1n.exec(r)&&u1n(e,t),"then"==r&&h1n(e,t),"dedent"===n&&h1n(e,t))return Z0n;if(-1!==(i="])}".indexOf(r))){for(;"coffee"==t.scope.type&&t.scope.prev;)t.scope=t.scope.prev;t.scope.type==r&&(t.scope=t.scope.prev)}return t.dedent&&e.eol()&&("coffee"==t.scope.type&&t.scope.prev&&(t.scope=t.scope.prev),t.dedent=!1),"indent"==n||"dedent"==n?null:n}(e,t);return r&&"comment"!=r&&(n&&(n.align=!0),t.prop="punctuation"==r&&"."==e.current()),r},indent:function(e,t){if(e.tokenize!=s1n)return 0;var n=e.scope,r=t&&"])}".indexOf(t.charAt(0))>-1;if(r)for(;"coffee"==n.type&&n.prev;)n=n.prev;var i=r&&n.type===t.charAt(0);return n.align?n.alignOffset-(i?1:0):(i?n.prev:n).offset},languageData:{commentTokens:{line:"#"}}},p1n=Object.freeze(Object.defineProperty({__proto__:null,coffeeScript:d1n},Symbol.toStringTag,{value:"Module"}));var f1n,g1n=/^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/,m1n=/^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/,O1n=/^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/,A1n=/[^\s'`,@()\[\]";]/;function y1n(e){for(var t;t=e.next();)if("\\"==t)e.next();else if(!A1n.test(t)){e.backUp(1);break}return e.current()}function v1n(e,t){if(e.eatSpace())return f1n="ws",null;if(e.match(O1n))return"number";var n;if("\\"==(n=e.next())&&(n=e.next()),'"'==n)return(t.tokenize=b1n)(e,t);if("("==n)return f1n="open","bracket";if(")"==n)return f1n="close","bracket";if(";"==n)return e.skipToEnd(),f1n="ws","comment";if(/['`,@]/.test(n))return null;if("|"==n)return e.skipTo("|")?(e.next(),"variableName"):(e.skipToEnd(),"error");if("#"==n)return"("==(n=e.next())?(f1n="open","bracket"):/[+\-=\.']/.test(n)||/\d/.test(n)&&e.match(/^\d*#/)?null:"|"==n?(t.tokenize=x1n)(e,t):":"==n?(y1n(e),"meta"):"\\"==n?(e.next(),y1n(e),"string.special"):"error";var r=y1n(e);return"."==r?null:(f1n="symbol","nil"==r||"t"==r||":"==r.charAt(0)?"atom":"open"==t.lastType&&(g1n.test(r)||m1n.test(r))?"keyword":"&"==r.charAt(0)?"variableName.special":"variableName")}function b1n(e,t){for(var n,r=!1;n=e.next();){if('"'==n&&!r){t.tokenize=v1n;break}r=!r&&"\\"==n}return"string"}function x1n(e,t){for(var n,r;n=e.next();){if("#"==n&&"|"==r){t.tokenize=v1n;break}r=n}return f1n="ws","comment"}const w1n={name:"commonlisp",startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastType:null,tokenize:v1n}},token:function(e,t){e.sol()&&"number"!=typeof t.ctx.indentTo&&(t.ctx.indentTo=t.ctx.start+1),f1n=null;var n=t.tokenize(e,t);return"ws"!=f1n&&(null==t.ctx.indentTo?"symbol"==f1n&&m1n.test(e.current())?t.ctx.indentTo=t.ctx.start+e.indentUnit:t.ctx.indentTo="next":"next"==t.ctx.indentTo&&(t.ctx.indentTo=e.column()),t.lastType=f1n),"open"==f1n?t.ctx={prev:t.ctx,start:e.column(),indentTo:null}:"close"==f1n&&(t.ctx=t.ctx.prev||t.ctx),n},indent:function(e){var t=e.ctx.indentTo;return"number"==typeof t?t:e.ctx.start+1},languageData:{commentTokens:{line:";;",block:{open:"#|",close:"|#"}},closeBrackets:{brackets:["(","[","{",'"']}}},k1n=Object.freeze(Object.defineProperty({__proto__:null,commonLisp:w1n},Symbol.toStringTag,{value:"Module"}));var S1n,T1n=function(e){return new RegExp("^(?:"+e.join("|")+")$","i")},$1n=function(e){S1n=null;var t=e.next();if('"'===t)return e.match(/^.*?"/),"string";if("'"===t)return e.match(/^.*?'/),"string";if(/[{}\(\),\.;\[\]]/.test(t))return S1n=t,"punctuation";if("/"===t&&e.eat("/"))return e.skipToEnd(),"comment";if(B1n.test(t))return e.eatWhile(B1n),null;if(e.eatWhile(/[_\w\d]/),e.eat(":"))return e.eatWhile(/[\w\d_\-]/),"atom";var n=e.current();return Q1n.test(n)?"builtin":P1n.test(n)?"def":E1n.test(n)||R1n.test(n)?"keyword":"variable"},_1n=function(e,t,n){return e.context={prev:e.context,indent:e.indent,col:n,type:t}},C1n=function(e){return e.indent=e.context.indent,e.context=e.context.prev},Q1n=T1n(["abs","acos","allShortestPaths","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endnode","exp","extract","filter","floor","haversin","head","id","keys","labels","last","left","length","log","log10","lower","ltrim","max","min","node","nodes","percentileCont","percentileDisc","pi","radians","rand","range","reduce","rel","relationship","relationships","replace","reverse","right","round","rtrim","shortestPath","sign","sin","size","split","sqrt","startnode","stdev","stdevp","str","substring","sum","tail","tan","timestamp","toFloat","toInt","toString","trim","type","upper"]),P1n=T1n(["all","and","any","contains","exists","has","in","none","not","or","single","xor"]),E1n=T1n(["as","asc","ascending","assert","by","case","commit","constraint","create","csv","cypher","delete","desc","descending","detach","distinct","drop","else","end","ends","explain","false","fieldterminator","foreach","from","headers","in","index","is","join","limit","load","match","merge","null","on","optional","order","periodic","profile","remove","return","scan","set","skip","start","starts","then","true","union","unique","unwind","using","when","where","with","call","yield"]),R1n=T1n(["access","active","assign","all","alter","as","catalog","change","copy","create","constraint","constraints","current","database","databases","dbms","default","deny","drop","element","elements","exists","from","grant","graph","graphs","if","index","indexes","label","labels","management","match","name","names","new","node","nodes","not","of","on","or","password","populated","privileges","property","read","relationship","relationships","remove","replace","required","revoke","role","roles","set","show","start","status","stop","suspended","to","traverse","type","types","user","users","with","write"]),B1n=/[*+\-<>=&|~%^]/;const I1n={name:"cypher",startState:function(){return{tokenize:$1n,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()&&(t.context&&null==t.context.align&&(t.context.align=!1),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"!==n&&t.context&&null==t.context.align&&"pattern"!==t.context.type&&(t.context.align=!0),"("===S1n)_1n(t,")",e.column());else if("["===S1n)_1n(t,"]",e.column());else if("{"===S1n)_1n(t,"}",e.column());else if(/[\]\}\)]/.test(S1n)){for(;t.context&&"pattern"===t.context.type;)C1n(t);t.context&&S1n===t.context.type&&C1n(t)}else"."===S1n&&t.context&&"pattern"===t.context.type?C1n(t):/atom|string|variable/.test(n)&&t.context&&(/[\}\]]/.test(t.context.type)?_1n(t,"pattern",e.column()):"pattern"!==t.context.type||t.context.align||(t.context.align=!0,t.context.col=e.column()));return n},indent:function(e,t,n){var r=t&&t.charAt(0),i=e.context;if(/[\]\}]/.test(r))for(;i&&"pattern"===i.type;)i=i.prev;var o=i&&r===i.type;return i?"keywords"===i.type?null:i.align?i.col+(o?0:1):i.indent+(o?0:n.unit):0}},L1n=Object.freeze(Object.defineProperty({__proto__:null,cypher:I1n},Symbol.toStringTag,{value:"Module"}));function D1n(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var M1n=D1n(["and","or","not","is"]),N1n=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in","False","True"],X1n=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];function F1n(e){return e.scopes[e.scopes.length-1]}function U1n(e){for(var t="error",n=e.delimiters||e.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,r=[e.singleOperators,e.doubleOperators,e.doubleDelimiters,e.tripleDelimiters,e.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],i=0;i<r.length;i++)r[i]||r.splice(i--,1);var o=e.hangingIndent,a=N1n,s=X1n;null!=e.extra_keywords&&(a=a.concat(e.extra_keywords)),null!=e.extra_builtins&&(s=s.concat(e.extra_builtins));var l=!(e.version&&Number(e.version)<3);if(l){var c=e.identifiers||/^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;a=a.concat(["nonlocal","None","aiter","anext","async","await","breakpoint","match","case"]),s=s.concat(["ascii","bytes","exec","print"]);var u=new RegExp("^(([rbuf]|(br)|(rb)|(fr)|(rf))?('{3}|\"{3}|['\"]))","i")}else{c=e.identifiers||/^[_A-Za-z][_A-Za-z0-9]*/;a=a.concat(["exec","print"]),s=s.concat(["apply","basestring","buffer","cmp","coerce","execfile","file","intern","long","raw_input","reduce","reload","unichr","unicode","xrange","None"]);u=new RegExp("^(([rubf]|(ur)|(br))?('{3}|\"{3}|['\"]))","i")}var h=D1n(a),d=D1n(s);function p(e,n){var r=e.sol()&&"\\"!=n.lastToken;if(r&&(n.indent=e.indentation()),r&&"py"==F1n(n).type){var i=F1n(n).offset;if(e.eatSpace()){var o=e.indentation();return o>i?g(e,n):o<i&&m(e,n)&&"#"!=e.peek()&&(n.errorToken=!0),null}var a=f(e,n);return i>0&&m(e,n)&&(a+=" "+t),a}return f(e,n)}function f(i,o,a){if(i.eatSpace())return null;if(!a&&i.match(/^#.*/))return"comment";if(i.match(/^[0-9\.]/,!1)){var s=!1;if(i.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(s=!0),i.match(/^[\d_]+\.\d*/)&&(s=!0),i.match(/^\.\d+/)&&(s=!0),s)return i.eat(/J/i),"number";var l=!1;if(i.match(/^0x[0-9a-f_]+/i)&&(l=!0),i.match(/^0b[01_]+/i)&&(l=!0),i.match(/^0o[0-7_]+/i)&&(l=!0),i.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(i.eat(/J/i),l=!0),i.match(/^0(?![\dx])/i)&&(l=!0),l)return i.eat(/L/i),"number"}if(i.match(u))return-1!==i.current().toLowerCase().indexOf("f")?(o.tokenize=function(n,r){for(;"rubf".indexOf(n.charAt(0).toLowerCase())>=0;)n=n.substr(1);var i=1==n.length,o="string";function a(e){return function(t,n){var r=f(t,n,!0);return"punctuation"==r&&("{"==t.current()?n.tokenize=a(e+1):"}"==t.current()&&(n.tokenize=e>1?a(e-1):s)),r}}function s(s,l){for(;!s.eol();)if(s.eatWhile(/[^'"\{\}\\]/),s.eat("\\")){if(s.next(),i&&s.eol())return o}else{if(s.match(n))return l.tokenize=r,o;if(s.match("{{"))return o;if(s.match("{",!1))return l.tokenize=a(0),s.current()?o:l.tokenize(s,l);if(s.match("}}"))return o;if(s.match("}"))return t;s.eat(/['"]/)}if(i){if(e.singleLineStringErrors)return t;l.tokenize=r}return o}return s.isString=!0,s}(i.current(),o.tokenize),o.tokenize(i,o)):(o.tokenize=function(n,r){for(;"rubf".indexOf(n.charAt(0).toLowerCase())>=0;)n=n.substr(1);var i=1==n.length,o="string";function a(a,s){for(;!a.eol();)if(a.eatWhile(/[^'"\\]/),a.eat("\\")){if(a.next(),i&&a.eol())return o}else{if(a.match(n))return s.tokenize=r,o;a.eat(/['"]/)}if(i){if(e.singleLineStringErrors)return t;s.tokenize=r}return o}return a.isString=!0,a}(i.current(),o.tokenize),o.tokenize(i,o));for(var p=0;p<r.length;p++)if(i.match(r[p]))return"operator";return i.match(n)?"punctuation":"."==o.lastToken&&i.match(c)?"property":i.match(h)||i.match(M1n)?"keyword":i.match(d)?"builtin":i.match(/^(self|cls)\b/)?"self":i.match(c)?"def"==o.lastToken||"class"==o.lastToken?"def":"variable":(i.next(),a?null:t)}function g(e,t){for(;"py"!=F1n(t).type;)t.scopes.pop();t.scopes.push({offset:F1n(t).offset+e.indentUnit,type:"py",align:null})}function m(e,t){for(var n=e.indentation();t.scopes.length>1&&F1n(t).offset>n;){if("py"!=F1n(t).type)return!0;t.scopes.pop()}return F1n(t).offset!=n}function O(e,n){e.sol()&&(n.beginningOfLine=!0,n.dedent=!1);var r=n.tokenize(e,n),i=e.current();if(n.beginningOfLine&&"@"==i)return e.match(c,!1)?"meta":l?"operator":t;if(/\S/.test(i)&&(n.beginningOfLine=!1),"variable"!=r&&"builtin"!=r||"meta"!=n.lastToken||(r="meta"),"pass"!=i&&"return"!=i||(n.dedent=!0),"lambda"==i&&(n.lambda=!0),":"==i&&!n.lambda&&"py"==F1n(n).type&&e.match(/^\s*(?:#|$)/,!1)&&g(e,n),1==i.length&&!/string|comment/.test(r)){var a="[({".indexOf(i);if(-1!=a&&function(e,t,n){var r=e.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:e.column()+1;t.scopes.push({offset:t.indent+(o||e.indentUnit),type:n,align:r})}(e,n,"])}".slice(a,a+1)),-1!=(a="])}".indexOf(i))){if(F1n(n).type!=i)return t;n.indent=n.scopes.pop().offset-(o||e.indentUnit)}}return n.dedent&&e.eol()&&"py"==F1n(n).type&&n.scopes.length>1&&n.scopes.pop(),r}return{name:"python",startState:function(){return{tokenize:p,scopes:[{offset:0,type:"py",align:null}],indent:0,lastToken:null,lambda:!1,dedent:0}},token:function(e,n){var r=n.errorToken;r&&(n.errorToken=!1);var i=O(e,n);return i&&"comment"!=i&&(n.lastToken="keyword"==i||"punctuation"==i?e.current():i),"punctuation"==i&&(i=null),e.eol()&&n.lambda&&(n.lambda=!1),r?t:i},indent:function(e,t,n){if(e.tokenize!=p)return e.tokenize.isString?null:0;var r=F1n(e),i=r.type==t.charAt(0)||"py"==r.type&&!e.dedent&&/^(else:|elif |except |finally:)/.test(t);return null!=r.align?r.align-(i?1:0):r.offset-(i?o||n.unit:0)},languageData:{autocomplete:N1n.concat(X1n).concat(["exec","print"]),indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,commentTokens:{line:"#"},closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""']}}}}const z1n=U1n({}),q1n=U1n({extra_keywords:(V1n="by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE",V1n.split(" "))});var V1n;const W1n=Object.freeze(Object.defineProperty({__proto__:null,cython:q1n,mkPython:U1n,python:z1n},Symbol.toStringTag,{value:"Module"}));function j1n(e,t){return new RegExp((t?"":"^")+"(?:"+e.join("|")+")"+(t?"$":"\\b"))}function Y1n(e,t,n){return n.tokenize.push(e),e(t,n)}var Z1n=/^(?:[-+/%|&^]|\*\*?|[<>]{2})/,G1n=/^(?:[=!]~|===|<=>|[<>=!]=?|[|&]{2}|~)/,H1n=/^(?:\[\][?=]?)/,K1n=/^(?:\.(?:\.{2})?|->|[?:])/,J1n=/^[a-z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,e2n=/^[A-Z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,t2n=j1n(["abstract","alias","as","asm","begin","break","case","class","def","do","else","elsif","end","ensure","enum","extend","for","fun","if","include","instance_sizeof","lib","macro","module","next","of","out","pointerof","private","protected","rescue","return","require","select","sizeof","struct","super","then","type","typeof","uninitialized","union","unless","until","when","while","with","yield","__DIR__","__END_LINE__","__FILE__","__LINE__"]),n2n=j1n(["true","false","nil","self"]),r2n=j1n(["def","fun","macro","class","module","struct","lib","enum","union","do","for"]),i2n=j1n(["if","unless","case","while","until","begin","then"]),o2n=["end","else","elsif","rescue","ensure"],a2n=j1n(o2n),s2n=["\\)","\\}","\\]"],l2n=new RegExp("^(?:"+s2n.join("|")+")$"),c2n={def:f2n,fun:f2n,macro:function(e,t){if(e.eatSpace())return null;var n;if(n=e.match(J1n)){if("def"==n)return"keyword";e.eat(/[?!]/)}return t.tokenize.pop(),"def"},class:g2n,module:g2n,struct:g2n,lib:g2n,enum:g2n,union:g2n},u2n={"[":"]","{":"}","(":")","<":">"};function h2n(e,t){if(e.eatSpace())return null;if("\\"!=t.lastToken&&e.match("{%",!1))return Y1n(p2n("%","%"),e,t);if("\\"!=t.lastToken&&e.match("{{",!1))return Y1n(p2n("{","}"),e,t);if("#"==e.peek())return e.skipToEnd(),"comment";var n;if(e.match(J1n))return e.eat(/[?!]/),n=e.current(),e.eat(":")?"atom":"."==t.lastToken?"property":t2n.test(n)?(r2n.test(n)?"fun"==n&&t.blocks.indexOf("lib")>=0||"def"==n&&"abstract"==t.lastToken||(t.blocks.push(n),t.currentIndent+=1):"operator"!=t.lastStyle&&t.lastStyle||!i2n.test(n)?"end"==n&&(t.blocks.pop(),t.currentIndent-=1):(t.blocks.push(n),t.currentIndent+=1),c2n.hasOwnProperty(n)&&t.tokenize.push(c2n[n]),"keyword"):n2n.test(n)?"atom":"variable";if(e.eat("@"))return"["==e.peek()?Y1n(d2n("[","]","meta"),e,t):(e.eat("@"),e.match(J1n)||e.match(e2n),"propertyName");if(e.match(e2n))return"tag";if(e.eat(":"))return e.eat('"')?Y1n(m2n('"',"atom",!1),e,t):e.match(J1n)||e.match(e2n)||e.match(Z1n)||e.match(G1n)||e.match(H1n)?"atom":(e.eat(":"),"operator");if(e.eat('"'))return Y1n(m2n('"',"string",!0),e,t);if("%"==e.peek()){var r,i="string",o=!0;if(e.match("%r"))i="string.special",r=e.next();else if(e.match("%w"))o=!1,r=e.next();else if(e.match("%q"))o=!1,r=e.next();else if(r=e.match(/^%([^\w\s=])/))r=r[1];else{if(e.match(/^%[a-zA-Z_\u009F-\uFFFF][\w\u009F-\uFFFF]*/))return"meta";if(e.eat("%"))return"operator"}return u2n.hasOwnProperty(r)&&(r=u2n[r]),Y1n(m2n(r,i,o),e,t)}return(n=e.match(/^<<-('?)([A-Z]\w*)\1/))?Y1n(function(e,t){return function(n,r){if(n.sol()&&(n.eatSpace(),n.match(e)))return r.tokenize.pop(),"string";for(var i=!1;n.peek();)if(i)n.next(),i=!1;else{if(n.match("{%",!1))return r.tokenize.push(p2n("%","%")),"string";if(n.match("{{",!1))return r.tokenize.push(p2n("{","}")),"string";if(t&&n.match("#{",!1))return r.tokenize.push(d2n("#{","}","meta")),"string";i="\\"==n.next()&&t}return"string"}}(n[2],!n[1]),e,t):e.eat("'")?(e.match(/^(?:[^']|\\(?:[befnrtv0'"]|[0-7]{3}|u(?:[0-9a-fA-F]{4}|\{[0-9a-fA-F]{1,6}\})))/),e.eat("'"),"atom"):e.eat("0")?(e.eat("x")?e.match(/^[0-9a-fA-F_]+/):e.eat("o")?e.match(/^[0-7_]+/):e.eat("b")&&e.match(/^[01_]+/),"number"):e.eat(/^\d/)?(e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+-]?\d+)?/),"number"):e.match(Z1n)?(e.eat("="),"operator"):e.match(G1n)||e.match(K1n)?"operator":(n=e.match(/[({[]/,!1))?Y1n(d2n(n=n[0],u2n[n],null),e,t):e.eat("\\")?(e.next(),"meta"):(e.next(),null)}function d2n(e,t,n,r){return function(i,o){if(!r&&i.match(e))return o.tokenize[o.tokenize.length-1]=d2n(e,t,n,!0),o.currentIndent+=1,n;var a=h2n(i,o);return i.current()===t&&(o.tokenize.pop(),o.currentIndent-=1,a=n),a}}function p2n(e,t,n){return function(r,i){return!n&&r.match("{"+e)?(i.currentIndent+=1,i.tokenize[i.tokenize.length-1]=p2n(e,t,!0),"meta"):r.match(t+"}")?(i.currentIndent-=1,i.tokenize.pop(),"meta"):h2n(r,i)}}function f2n(e,t){return e.eatSpace()?null:(e.match(J1n)?e.eat(/[!?]/):e.match(Z1n)||e.match(G1n)||e.match(H1n),t.tokenize.pop(),"def")}function g2n(e,t){return e.eatSpace()?null:(e.match(e2n),t.tokenize.pop(),"def")}function m2n(e,t,n){return function(r,i){for(var o=!1;r.peek();)if(o)r.next(),o=!1;else{if(r.match("{%",!1))return i.tokenize.push(p2n("%","%")),t;if(r.match("{{",!1))return i.tokenize.push(p2n("{","}")),t;if(n&&r.match("#{",!1))return i.tokenize.push(d2n("#{","}","meta")),t;var a=r.next();if(a==e)return i.tokenize.pop(),t;o=n&&"\\"==a}return t}}const O2n={name:"crystal",startState:function(){return{tokenize:[h2n],currentIndent:0,lastToken:null,lastStyle:null,blocks:[]}},token:function(e,t){var n=t.tokenize[t.tokenize.length-1](e,t),r=e.current();return n&&"comment"!=n&&(t.lastToken=r,t.lastStyle=n),n},indent:function(e,t,n){return t=t.replace(/^\s*(?:\{%)?\s*|\s*(?:%\})?\s*$/g,""),a2n.test(t)||l2n.test(t)?n.unit*(e.currentIndent-1):n.unit*e.currentIndent},languageData:{indentOnInput:j1n(s2n.concat(o2n),!0),commentTokens:{line:"#"}}},A2n=Object.freeze(Object.defineProperty({__proto__:null,crystal:O2n},Symbol.toStringTag,{value:"Module"}));function y2n(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var v2n="body catch class do else enum for foreach foreach_reverse if in interface mixin out scope struct switch try union unittest version while with";const b2n={keywords:y2n("abstract alias align asm assert auto break case cast cdouble cent cfloat const continue debug default delegate delete deprecated export extern final finally function goto immutable import inout invariant is lazy macro module new nothrow override package pragma private protected public pure ref return shared short static super synchronized template this throw typedef typeid typeof volatile __FILE__ __LINE__ __gshared __traits __vector __parameters "+v2n),blockKeywords:y2n(v2n),builtin:y2n("bool byte char creal dchar double float idouble ifloat int ireal long real short ubyte ucent uint ulong ushort wchar wstring void size_t sizediff_t"),atoms:y2n("exit failure success true false null"),hooks:{"@":function(e,t){return e.eatWhile(/[\w\$_]/),"meta"}}};var x2n,w2n=b2n.statementIndentUnit,k2n=b2n.keywords,S2n=b2n.builtin,T2n=b2n.blockKeywords,$2n=b2n.atoms,_2n=b2n.hooks,C2n=b2n.multiLineStrings,Q2n=/[+\-*&%=<>!?|\/]/;function P2n(e,t){var n,r=e.next();if(_2n[r]){var i=_2n[r](e,t);if(!1!==i)return i}if('"'==r||"'"==r||"`"==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return(o||!i&&!C2n)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]{}\(\),;\:\.]/.test(r))return x2n=r,null;if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if("/"==r){if(e.eat("+"))return t.tokenize=R2n,R2n(e,t);if(e.eat("*"))return t.tokenize=E2n,E2n(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(Q2n.test(r))return e.eatWhile(Q2n),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var o=e.current();return k2n.propertyIsEnumerable(o)?(T2n.propertyIsEnumerable(o)&&(x2n="newstatement"),"keyword"):S2n.propertyIsEnumerable(o)?(T2n.propertyIsEnumerable(o)&&(x2n="newstatement"),"builtin"):$2n.propertyIsEnumerable(o)?"atom":"variable"}function E2n(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function R2n(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="+"==n}return"comment"}function B2n(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function I2n(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new B2n(r,t,n,null,e.context)}function L2n(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}const D2n={name:"d",startState:function(e){return{tokenize:null,context:new B2n(-e,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;x2n=null;var r=(t.tokenize||P2n)(e,t);if("comment"==r||"meta"==r)return r;if(null==n.align&&(n.align=!0),";"!=x2n&&":"!=x2n&&","!=x2n||"statement"!=n.type)if("{"==x2n)I2n(t,e.column(),"}");else if("["==x2n)I2n(t,e.column(),"]");else if("("==x2n)I2n(t,e.column(),")");else if("}"==x2n){for(;"statement"==n.type;)n=L2n(t);for("}"==n.type&&(n=L2n(t));"statement"==n.type;)n=L2n(t)}else x2n==n.type?L2n(t):(("}"==n.type||"top"==n.type)&&";"!=x2n||"statement"==n.type&&"newstatement"==x2n)&&I2n(t,e.column(),"statement");else L2n(t);return t.startOfLine=!1,r},indent:function(e,t,n){if(e.tokenize!=P2n&&null!=e.tokenize)return null;var r=e.context,i=t&&t.charAt(0);"statement"==r.type&&"}"==i&&(r=r.prev);var o=i==r.type;return"statement"==r.type?r.indented+("{"==i?0:w2n||n.unit):r.align?r.column+(o?0:1):r.indented+(o?0:n.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}},M2n=Object.freeze(Object.defineProperty({__proto__:null,d:D2n},Symbol.toStringTag,{value:"Module"}));var N2n={"+":"inserted","-":"deleted","@":"meta"};const X2n={name:"diff",token:function(e){var t=e.string.search(/[\t ]+?$/);if(!e.sol()||0===t)return e.skipToEnd(),("error "+(N2n[e.string.charAt(0)]||"")).replace(/ $/,"");var n=N2n[e.peek()]||e.skipToEnd();return-1===t?e.skipToEnd():e.pos=t,n}},F2n=Object.freeze(Object.defineProperty({__proto__:null,diff:X2n},Symbol.toStringTag,{value:"Module"}));function U2n(e){z2n(e,"start");var t={},n=e.languageData||{},r=!1;for(var i in e)if(i!=n&&e.hasOwnProperty(i))for(var o=t[i]=[],a=e[i],s=0;s<a.length;s++){var l=a[s];o.push(new q2n(l,e)),(l.indent||l.dedent)&&(r=!0)}return{name:n.name,startState:function(){return{state:"start",pending:null,indent:r?[]:null}},copyState:function(e){var t={state:e.state,pending:e.pending,indent:e.indent&&e.indent.slice(0)};return e.stack&&(t.stack=e.stack.slice(0)),t},token:V2n(t),indent:W2n(t,n),mergeTokens:n.mergeTokens,languageData:n}}function z2n(e,t){if(!e.hasOwnProperty(t))throw new Error("Undefined state "+t+" in simple mode")}function q2n(e,t){(e.next||e.push)&&z2n(t,e.next||e.push),this.regex=function(e){if(!e)return/(?:)/;var t="";return e instanceof RegExp?(e.ignoreCase&&(t="i"),e.unicode&&(t+="u"),e=e.source):e=String(e),new RegExp("^(?:"+e+")",t)}(e.regex),this.token=function(e){if(!e)return null;if(e.apply)return e;if("string"==typeof e)return e.replace(/\./g," ");for(var t=[],n=0;n<e.length;n++)t.push(e[n]&&e[n].replace(/\./g," "));return t}(e.token),this.data=e}function V2n(e){return function(t,n){if(n.pending){var r=n.pending.shift();return 0==n.pending.length&&(n.pending=null),t.pos+=r.text.length,r.token}for(var i=e[n.state],o=0;o<i.length;o++){var a=i[o],s=(!a.data.sol||t.sol())&&t.match(a.regex);if(s){a.data.next?n.state=a.data.next:a.data.push?((n.stack||(n.stack=[])).push(n.state),n.state=a.data.push):a.data.pop&&n.stack&&n.stack.length&&(n.state=n.stack.pop()),a.data.indent&&n.indent.push(t.indentation()+t.indentUnit),a.data.dedent&&n.indent.pop();var l=a.token;if(l&&l.apply&&(l=l(s)),s.length>2&&a.token&&"string"!=typeof a.token){n.pending=[];for(var c=2;c<s.length;c++)s[c]&&n.pending.push({text:s[c],token:a.token[c-1]});return t.backUp(s[0].length-(s[1]?s[1].length:0)),l[0]}return l&&l.join?l[0]:l}}return t.next(),null}}function W2n(e,t){return function(n,r){if(null==n.indent||t.dontIndentStates&&t.dontIndentStates.indexOf(n.state)>-1)return null;var i=n.indent.length-1,o=e[n.state];e:for(;;){for(var a=0;a<o.length;a++){var s=o[a];if(s.data.dedent&&!1!==s.data.dedentIfLineStart){var l=s.regex.exec(r);if(l&&l[0]){i--,(s.next||s.push)&&(o=e[s.next||s.push]),r=r.slice(l[0].length);continue e}}}break}return i<0?0:n.indent[i]}}var j2n="from",Y2n=new RegExp("^(\\s*)\\b("+j2n+")\\b","i"),Z2n=["run","cmd","entrypoint","shell"],G2n=new RegExp("^(\\s*)("+Z2n.join("|")+")(\\s+\\[)","i"),H2n="expose",K2n=new RegExp("^(\\s*)("+H2n+")(\\s+)","i"),J2n="("+[j2n,H2n].concat(Z2n).concat(["arg","from","maintainer","label","env","add","copy","volume","user","workdir","onbuild","stopsignal","healthcheck","shell"]).join("|")+")";const e5n=U2n({start:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:Y2n,token:[null,"keyword"],sol:!0,next:"from"},{regex:new RegExp("^(\\s*)"+J2n+"(\\s*)(#.*)?$","i"),token:[null,"keyword",null,"error"],sol:!0},{regex:G2n,token:[null,"keyword",null],sol:!0,next:"array"},{regex:K2n,token:[null,"keyword",null],sol:!0,next:"expose"},{regex:new RegExp("^(\\s*)"+J2n+"(\\s+)","i"),token:[null,"keyword",null],sol:!0,next:"arguments"},{regex:/./,token:null}],from:[{regex:/\s*$/,token:null,next:"start"},{regex:/(\s*)(#.*)$/,token:[null,"error"],next:"start"},{regex:/(\s*\S+\s+)(as)/i,token:[null,"keyword"],next:"start"},{token:null,next:"start"}],single:[{regex:/(?:[^\\']|\\.)/,token:"string"},{regex:/'/,token:"string",pop:!0}],double:[{regex:/(?:[^\\"]|\\.)/,token:"string"},{regex:/"/,token:"string",pop:!0}],array:[{regex:/\]/,token:null,next:"start"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"}],expose:[{regex:/\d+$/,token:"number",next:"start"},{regex:/[^\d]+$/,token:null,next:"start"},{regex:/\d+/,token:"number"},{regex:/[^\d]+/,token:null},{token:null,next:"start"}],arguments:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:/"(?:[^\\"]|\\.)*"?$/,token:"string",next:"start"},{regex:/"/,token:"string",push:"double"},{regex:/'(?:[^\\']|\\.)*'?$/,token:"string",next:"start"},{regex:/'/,token:"string",push:"single"},{regex:/[^#"']+[\\`]$/,token:null},{regex:/[^#"']+$/,token:null,next:"start"},{regex:/[^#"']+/,token:null},{token:null,next:"start"}],languageData:{commentTokens:{line:"#"}}}),t5n=Object.freeze(Object.defineProperty({__proto__:null,dockerFile:e5n},Symbol.toStringTag,{value:"Module"}));var n5n;function r5n(e,t){return n5n=t,e}function i5n(e,t){var n,r,i,o=e.next();if("<"!=o||!e.eat("!")){if("<"==o&&e.eat("?"))return t.tokenize=(r="meta",i="?>",function(e,t){for(;!e.eol();){if(e.match(i)){t.tokenize=i5n;break}e.next()}return r}),r5n("meta",o);if("#"==o&&e.eatWhile(/[\w]/))return r5n("atom","tag");if("|"==o)return r5n("keyword","separator");if(o.match(/[\(\)\[\]\-\.,\+\?>]/))return r5n(null,o);if(o.match(/[\[\]]/))return r5n("rule",o);if('"'==o||"'"==o)return t.tokenize=(n=o,function(e,t){for(var r,i=!1;null!=(r=e.next());){if(r==n&&!i){t.tokenize=i5n;break}i=!i&&"\\"==r}return r5n("string","tag")}),t.tokenize(e,t);if(e.eatWhile(/[a-zA-Z\?\+\d]/)){var a=e.current();return null!==a.substr(a.length-1,a.length).match(/\?|\+/)&&e.backUp(1),r5n("tag","tag")}return"%"==o||"*"==o?r5n("number","number"):(e.eatWhile(/[\w\\\-_%.{,]/),r5n(null,null))}return e.eatWhile(/[\-]/)?(t.tokenize=o5n,o5n(e,t)):e.eatWhile(/[\w]/)?r5n("keyword","doindent"):void 0}function o5n(e,t){for(var n,r=0;null!=(n=e.next());){if(r>=2&&">"==n){t.tokenize=i5n;break}r="-"==n?r+1:0}return r5n("comment","comment")}const a5n={name:"dtd",startState:function(){return{tokenize:i5n,baseIndent:0,stack:[]}},token:function(e,t){if(e.eatSpace())return null;var n=t.tokenize(e,t),r=t.stack[t.stack.length-1];return"["==e.current()||"doindent"===n5n||"["==n5n?t.stack.push("rule"):"endtag"===n5n?t.stack[t.stack.length-1]="endtag":"]"==e.current()||"]"==n5n||">"==n5n&&"rule"==r?t.stack.pop():"["==n5n&&t.stack.push("["),n},indent:function(e,t,n){var r=e.stack.length;return"]"===t.charAt(0)?r--:">"===t.substr(t.length-1,t.length)&&("<"===t.substr(0,1)||"doindent"==n5n&&t.length>1||("doindent"==n5n?r--:">"==n5n&&t.length>1||"tag"==n5n&&">"!==t||("tag"==n5n&&"rule"==e.stack[e.stack.length-1]?r--:"tag"==n5n?r++:">"===t&&"rule"==e.stack[e.stack.length-1]&&">"===n5n?r--:">"===t&&"rule"==e.stack[e.stack.length-1]||("<"!==t.substr(0,1)&&">"===t.substr(0,1)?r-=1:">"===t||(r-=1)))),null!=n5n&&"]"!=n5n||r--),e.baseIndent+r*n.unit},languageData:{indentOnInput:/^\s*[\]>]$/}},s5n=Object.freeze(Object.defineProperty({__proto__:null,dtd:a5n},Symbol.toStringTag,{value:"Module"}));function l5n(e,t){for(var n=0;n<e.length;n++)t(e[n],n)}function c5n(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n))return!0;return!1}var u5n={unnamedDefinition:["interface"],namedDefinition:["module","library","macro","C-struct","C-union","C-function","C-callable-wrapper"],typeParameterizedDefinition:["class","C-subtype","C-mapped-subtype"],otherParameterizedDefinition:["method","function","C-variable","C-address"],constantSimpleDefinition:["constant"],variableSimpleDefinition:["variable"],otherSimpleDefinition:["generic","domain","C-pointer-type","table"],statement:["if","block","begin","method","case","for","select","when","unless","until","while","iterate","profiling","dynamic-bind"],separator:["finally","exception","cleanup","else","elseif","afterwards"],other:["above","below","by","from","handler","in","instance","let","local","otherwise","slot","subclass","then","to","keyed-by","virtual"],signalingCalls:["signal","error","cerror","break","check-type","abort"]};u5n.otherDefinition=u5n.unnamedDefinition.concat(u5n.namedDefinition).concat(u5n.otherParameterizedDefinition),u5n.definition=u5n.typeParameterizedDefinition.concat(u5n.otherDefinition),u5n.parameterizedDefinition=u5n.typeParameterizedDefinition.concat(u5n.otherParameterizedDefinition),u5n.simpleDefinition=u5n.constantSimpleDefinition.concat(u5n.variableSimpleDefinition).concat(u5n.otherSimpleDefinition),u5n.keyword=u5n.statement.concat(u5n.separator).concat(u5n.other);var h5n="[-_a-zA-Z?!*@<>$%]+",d5n=new RegExp("^"+h5n),p5n={symbolKeyword:h5n+":",symbolClass:"<"+h5n+">",symbolGlobal:"\\*"+h5n+"\\*",symbolConstant:"\\$"+h5n},f5n={symbolKeyword:"atom",symbolClass:"tag",symbolGlobal:"variableName.standard",symbolConstant:"variableName.constant"};for(var g5n in p5n)p5n.hasOwnProperty(g5n)&&(p5n[g5n]=new RegExp("^"+p5n[g5n]));p5n.keyword=[/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/];var m5n={keyword:"keyword",definition:"def",simpleDefinition:"def",signalingCalls:"builtin"},O5n={},A5n={};function y5n(e,t,n){return t.tokenize=n,n(e,t)}function v5n(e,t){var n=e.peek();if("'"==n||'"'==n)return e.next(),y5n(e,t,x5n(n,"string"));if("/"==n){if(e.next(),e.eat("*"))return y5n(e,t,b5n);if(e.eat("/"))return e.skipToEnd(),"comment";e.backUp(1)}else if(/[+\-\d\.]/.test(n)){if(e.match(/^[+-]?[0-9]*\.[0-9]*([esdx][+-]?[0-9]+)?/i)||e.match(/^[+-]?[0-9]+([esdx][+-]?[0-9]+)/i)||e.match(/^[+-]?\d+/))return"number"}else{if("#"==n)return e.next(),'"'==(n=e.peek())?(e.next(),y5n(e,t,x5n('"',"string"))):"b"==n?(e.next(),e.eatWhile(/[01]/),"number"):"x"==n?(e.next(),e.eatWhile(/[\da-f]/i),"number"):"o"==n?(e.next(),e.eatWhile(/[0-7]/),"number"):"#"==n?(e.next(),"punctuation"):"["==n||"("==n?(e.next(),"bracket"):e.match(/f|t|all-keys|include|key|next|rest/i)?"atom":(e.eatWhile(/[-a-zA-Z]/),"error");if("~"==n)return e.next(),"="==(n=e.peek())?(e.next(),"="==(n=e.peek())?(e.next(),"operator"):"operator"):"operator";if(":"==n){if(e.next(),"="==(n=e.peek()))return e.next(),"operator";if(":"==n)return e.next(),"punctuation"}else{if(-1!="[](){}".indexOf(n))return e.next(),"bracket";if(-1!=".,".indexOf(n))return e.next(),"punctuation";if(e.match("end"))return"keyword"}}for(var r in p5n)if(p5n.hasOwnProperty(r)){var i=p5n[r];if(i instanceof Array&&c5n(i,function(t){return e.match(t)})||e.match(i))return f5n[r]}return/[+\-*\/^=<>&|]/.test(n)?(e.next(),"operator"):e.match("define")?"def":(e.eatWhile(/[\w\-]/),O5n.hasOwnProperty(e.current())?A5n[e.current()]:e.current().match(d5n)?"variable":(e.next(),"variableName.standard"))}function b5n(e,t){for(var n,r=!1,i=!1,o=0;n=e.next();){if("/"==n&&r){if(!(o>0)){t.tokenize=v5n;break}o--}else"*"==n&&i&&o++;r="*"==n,i="/"==n}return"comment"}function x5n(e,t){return function(n,r){for(var i,o=!1,a=!1;null!=(i=n.next());){if(i==e&&!o){a=!0;break}o=!o&&"\\"==i}return!a&&o||(r.tokenize=v5n),t}}l5n(["keyword","definition","simpleDefinition","signalingCalls"],function(e){l5n(u5n[e],function(t){O5n[t]=e,A5n[t]=m5n[e]})});const w5n={name:"dylan",startState:function(){return{tokenize:v5n,currentIndent:0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{commentTokens:{block:{open:"/*",close:"*/"}}}},k5n=Object.freeze(Object.defineProperty({__proto__:null,dylan:w5n},Symbol.toStringTag,{value:"Module"}));var S5n=0,T5n=1,$5n=0,_5n=1,C5n=2;const Q5n={name:"ebnf",startState:function(){return{stringType:null,commentType:null,braced:0,lhs:!0,localState:null,stack:[],inDefinition:!1}},token:function(e,t){if(e){switch(0===t.stack.length&&('"'==e.peek()||"'"==e.peek()?(t.stringType=e.peek(),e.next(),t.stack.unshift(_5n)):e.match("/*")?(t.stack.unshift($5n),t.commentType=S5n):e.match("(*")&&(t.stack.unshift($5n),t.commentType=T5n)),t.stack[0]){case _5n:for(;t.stack[0]===_5n&&!e.eol();)e.peek()===t.stringType?(e.next(),t.stack.shift()):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return t.lhs?"property":"string";case $5n:for(;t.stack[0]===$5n&&!e.eol();)t.commentType===S5n&&e.match("*/")||t.commentType===T5n&&e.match("*)")?(t.stack.shift(),t.commentType=null):e.match(/^.[^\*]*/);return"comment";case C5n:for(;t.stack[0]===C5n&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(".")||t.stack.shift();return"operator"}var n=e.peek();switch(n){case"[":return e.next(),t.stack.unshift(C5n),"bracket";case":":case"|":case";":return e.next(),"operator";case"%":if(e.match("%%"))return"header";if(e.match(/[%][A-Za-z]+/))return"keyword";if(e.match(/[%][}]/))return"bracket";break;case"/":if(e.match(/[\/][A-Za-z]+/))return"keyword";case"\\":if(e.match(/[\][a-z]+/))return"string.special";case".":if(e.match("."))return"atom";case"*":case"-":case"+":case"^":if(e.match(n))return"atom";case"$":if(e.match("$$"))return"builtin";if(e.match(/[$][0-9]+/))return"variableName.special";case"<":if(e.match(/<<[a-zA-Z_]+>>/))return"builtin"}return e.match("//")?(e.skipToEnd(),"comment"):e.match("return")?"operator":e.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)?e.match(/(?=[\(.])/)?"variable":e.match(/(?=[\s\n]*[:=])/)?"def":"variableName.special":-1!=["[","]","(",")"].indexOf(e.peek())?(e.next(),"bracket"):(e.eatSpace()||e.next(),null)}}},P5n=Object.freeze(Object.defineProperty({__proto__:null,ebnf:Q5n},Symbol.toStringTag,{value:"Module"}));function E5n(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var R5n,B5n=E5n("abs acos allnodes ascii asin asstring atan atan2 ave case choose choosen choosesets clustersize combine correlation cos cosh count covariance cron dataset dedup define denormalize distribute distributed distribution ebcdic enth error evaluate event eventextra eventname exists exp failcode failmessage fetch fromunicode getisvalid global graph group hash hash32 hash64 hashcrc hashmd5 having if index intformat isvalid iterate join keyunicode length library limit ln local log loop map matched matchlength matchposition matchtext matchunicode max merge mergejoin min nolocal nonempty normalize parse pipe power preload process project pull random range rank ranked realformat recordof regexfind regexreplace regroup rejected rollup round roundup row rowdiff sample set sin sinh sizeof soapcall sort sorted sqrt stepped stored sum table tan tanh thisnode topn tounicode transfer trim truncate typeof ungroup unicodeorder variance which workunit xmldecode xmlencode xmltext xmlunicode"),I5n=E5n("apply assert build buildindex evaluate fail keydiff keypatch loadxml nothor notify output parallel sequential soapcall wait"),L5n=E5n("__compressed__ all and any as atmost before beginc++ best between case const counter csv descend encrypt end endc++ endmacro except exclusive expire export extend false few first flat from full function group header heading hole ifblock import in interface joined keep keyed last left limit load local locale lookup macro many maxcount maxlength min skew module named nocase noroot noscan nosort not of only opt or outer overwrite packed partition penalty physicallength pipe quote record relationship repeat return right scan self separator service shared skew skip sql store terminator thor threshold token transform trim true type unicodeorder unsorted validate virtual whole wild within xml xpath"),D5n=E5n("ascii big_endian boolean data decimal ebcdic integer pattern qstring real record rule set of string token udecimal unicode unsigned varstring varunicode"),M5n=E5n("checkpoint deprecated failcode failmessage failure global independent onwarning persist priority recovery stored success wait when"),N5n=E5n("catch class do else finally for if switch try while"),X5n=E5n("true false null"),F5n={"#":function(e,t){return!!t.startOfLine&&(e.skipToEnd(),"meta")}},U5n=/[+\-*&%=<>!?|\/]/;function z5n(e,t){var n,r=e.next();if(F5n[r]){var i=F5n[r](e,t);if(!1!==i)return i}if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return!o&&i||(t.tokenize=z5n),"string"}),t.tokenize(e,t);if(/[\[\]{}\(\),;\:\.]/.test(r))return R5n=r,null;if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if("/"==r){if(e.eat("*"))return t.tokenize=q5n,q5n(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(U5n.test(r))return e.eatWhile(U5n),"operator";e.eatWhile(/[\w\$_]/);var o=e.current().toLowerCase();if(B5n.propertyIsEnumerable(o))return N5n.propertyIsEnumerable(o)&&(R5n="newstatement"),"keyword";if(I5n.propertyIsEnumerable(o))return N5n.propertyIsEnumerable(o)&&(R5n="newstatement"),"variable";if(L5n.propertyIsEnumerable(o))return N5n.propertyIsEnumerable(o)&&(R5n="newstatement"),"modifier";if(D5n.propertyIsEnumerable(o))return N5n.propertyIsEnumerable(o)&&(R5n="newstatement"),"type";if(M5n.propertyIsEnumerable(o))return N5n.propertyIsEnumerable(o)&&(R5n="newstatement"),"builtin";for(var a=o.length-1;a>=0&&(!isNaN(o[a])||"_"==o[a]);)--a;if(a>0){var s=o.substr(0,a+1);if(D5n.propertyIsEnumerable(s))return N5n.propertyIsEnumerable(s)&&(R5n="newstatement"),"type"}return X5n.propertyIsEnumerable(o)?"atom":null}function q5n(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=z5n;break}r="*"==n}return"comment"}function V5n(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function W5n(e,t,n){return e.context=new V5n(e.indented,t,n,null,e.context)}function j5n(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}const Y5n={name:"ecl",startState:function(e){return{tokenize:null,context:new V5n(-e,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;R5n=null;var r=(t.tokenize||z5n)(e,t);if("comment"==r||"meta"==r)return r;if(null==n.align&&(n.align=!0),";"!=R5n&&":"!=R5n||"statement"!=n.type)if("{"==R5n)W5n(t,e.column(),"}");else if("["==R5n)W5n(t,e.column(),"]");else if("("==R5n)W5n(t,e.column(),")");else if("}"==R5n){for(;"statement"==n.type;)n=j5n(t);for("}"==n.type&&(n=j5n(t));"statement"==n.type;)n=j5n(t)}else R5n==n.type?j5n(t):("}"==n.type||"top"==n.type||"statement"==n.type&&"newstatement"==R5n)&&W5n(t,e.column(),"statement");else j5n(t);return t.startOfLine=!1,r},indent:function(e,t,n){if(e.tokenize!=z5n&&null!=e.tokenize)return 0;var r=e.context,i=t&&t.charAt(0);"statement"==r.type&&"}"==i&&(r=r.prev);var o=i==r.type;return"statement"==r.type?r.indented+("{"==i?0:n.unit):r.align?r.column+(o?0:1):r.indented+(o?0:n.unit)},languageData:{indentOnInput:/^\s*[{}]$/}},Z5n=Object.freeze(Object.defineProperty({__proto__:null,ecl:Y5n},Symbol.toStringTag,{value:"Module"}));function G5n(e){for(var t={},n=0,r=e.length;n<r;++n)t[e[n]]=!0;return t}var H5n=G5n(["note","across","when","variant","until","unique","undefine","then","strip","select","retry","rescue","require","rename","reference","redefine","prefix","once","old","obsolete","loop","local","like","is","inspect","infix","include","if","frozen","from","external","export","ensure","end","elseif","else","do","creation","create","check","alias","agent","separate","invariant","inherit","indexing","feature","expanded","deferred","class","Void","True","Result","Precursor","False","Current","create","attached","detachable","as","and","implies","not","or"]),K5n=G5n([":=","and then","and","or","<<",">>"]);function J5n(e,t){if(e.eatSpace())return null;var n,r,i=e.next();return'"'==i||"'"==i?function(e,t,n){return n.tokenize.push(e),e(t,n)}((n=i,r="string",function(e,t){for(var i,o=!1;null!=(i=e.next());){if(i==n&&!o){t.tokenize.pop();break}o=!o&&"%"==i}return r}),e,t):"-"==i&&e.eat("-")?(e.skipToEnd(),"comment"):":"==i&&e.eat("=")?"operator":/[0-9]/.test(i)?(e.eatWhile(/[xXbBCc0-9\.]/),e.eat(/[\?\!]/),"variable"):/[a-zA-Z_0-9]/.test(i)?(e.eatWhile(/[a-zA-Z_0-9]/),e.eat(/[\?\!]/),"variable"):/[=+\-\/*^%<>~]/.test(i)?(e.eatWhile(/[=+\-\/*^%<>~]/),"operator"):null}const e4n={name:"eiffel",startState:function(){return{tokenize:[J5n]}},token:function(e,t){var n=t.tokenize[t.tokenize.length-1](e,t);if("variable"==n){var r=e.current();n=H5n.propertyIsEnumerable(e.current())?"keyword":K5n.propertyIsEnumerable(e.current())?"operator":/^[A-Z][A-Z_0-9]*$/g.test(r)?"tag":/^0[bB][0-1]+$/g.test(r)||/^0[cC][0-7]+$/g.test(r)||/^0[xX][a-fA-F0-9]+$/g.test(r)||/^([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)$/g.test(r)||/^[0-9]+$/g.test(r)?"number":"variable"}return n},languageData:{commentTokens:{line:"--"}}},t4n=Object.freeze(Object.defineProperty({__proto__:null,eiffel:e4n},Symbol.toStringTag,{value:"Module"}));function n4n(e,t,n){return t(n),n(e,t)}var r4n=/[a-z]/,i4n=/[A-Z]/,o4n=/[a-zA-Z0-9_]/,a4n=/[0-9]/,s4n=/[0-9A-Fa-f]/,l4n=/[-&*+.\\/<>=?^|:]/,c4n=/[(),[\]{}]/,u4n=/[ \v\f]/;function h4n(){return function(e,t){if(e.eatWhile(u4n))return null;var n=e.next();if(c4n.test(n))return"{"===n&&e.eat("-")?n4n(e,t,d4n(1)):"["===n&&e.match("glsl|")?n4n(e,t,m4n):"builtin";if("'"===n)return n4n(e,t,g4n);if('"'===n)return e.eat('"')?e.eat('"')?n4n(e,t,p4n):"string":n4n(e,t,f4n);if(i4n.test(n))return e.eatWhile(o4n),"type";if(r4n.test(n)){var r=1===e.pos;return e.eatWhile(o4n),r?"def":"variable"}if(a4n.test(n)){if("0"===n){if(e.eat(/[xX]/))return e.eatWhile(s4n),"number"}else e.eatWhile(a4n);return e.eat(".")&&e.eatWhile(a4n),e.eat(/[eE]/)&&(e.eat(/[-+]/),e.eatWhile(a4n)),"number"}return l4n.test(n)?"-"===n&&e.eat("-")?(e.skipToEnd(),"comment"):(e.eatWhile(l4n),"keyword"):"_"===n?"keyword":"error"}}function d4n(e){return 0==e?h4n():function(t,n){for(;!t.eol();){var r=t.next();if("{"==r&&t.eat("-"))++e;else if("-"==r&&t.eat("}")&&0===--e)return n(h4n()),"comment"}return n(d4n(e)),"comment"}}function p4n(e,t){for(;!e.eol();){if('"'===e.next()&&e.eat('"')&&e.eat('"'))return t(h4n()),"string"}return"string"}function f4n(e,t){for(;e.skipTo('\\"');)e.next(),e.next();return e.skipTo('"')?(e.next(),t(h4n()),"string"):(e.skipToEnd(),t(h4n()),"error")}function g4n(e,t){for(;e.skipTo("\\'");)e.next(),e.next();return e.skipTo("'")?(e.next(),t(h4n()),"string"):(e.skipToEnd(),t(h4n()),"error")}function m4n(e,t){for(;!e.eol();){if("|"===e.next()&&e.eat("]"))return t(h4n()),"string"}return"string"}var O4n={case:1,of:1,as:1,if:1,then:1,else:1,let:1,in:1,type:1,alias:1,module:1,where:1,import:1,exposing:1,port:1};const A4n={name:"elm",startState:function(){return{f:h4n()}},copyState:function(e){return{f:e.f}},token:function(e,t){var n=t.f(e,function(e){t.f=e}),r=e.current();return O4n.hasOwnProperty(r)?"keyword":n},languageData:{commentTokens:{line:"--"}}},y4n=Object.freeze(Object.defineProperty({__proto__:null,elm:A4n},Symbol.toStringTag,{value:"Module"}));var v4n=["-type","-spec","-export_type","-opaque"],b4n=["after","begin","catch","case","cond","end","fun","if","let","of","query","receive","try","when"],x4n=/[\->,;]/,w4n=["->",";",","],k4n=["and","andalso","band","bnot","bor","bsl","bsr","bxor","div","not","or","orelse","rem","xor"],S4n=/[\+\-\*\/<>=\|:!]/,T4n=["=","+","-","*","/",">",">=","<","=<","=:=","==","=/=","/=","||","<-","!"],$4n=/[<\(\[\{]/,_4n=["<<","(","[","{"],C4n=/[>\)\]\}]/,Q4n=["}","]",")",">>"],P4n=["is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_record","is_reference","is_tuple","atom","binary","bitstring","boolean","function","integer","list","number","pid","port","record","reference","tuple"],E4n=["abs","adler32","adler32_combine","alive","apply","atom_to_binary","atom_to_list","binary_to_atom","binary_to_existing_atom","binary_to_list","binary_to_term","bit_size","bitstring_to_list","byte_size","check_process_code","contact_binary","crc32","crc32_combine","date","decode_packet","delete_module","disconnect_node","element","erase","exit","float","float_to_list","garbage_collect","get","get_keys","group_leader","halt","hd","integer_to_list","internal_bif","iolist_size","iolist_to_binary","is_alive","is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_process_alive","is_record","is_reference","is_tuple","length","link","list_to_atom","list_to_binary","list_to_bitstring","list_to_existing_atom","list_to_float","list_to_integer","list_to_pid","list_to_tuple","load_module","make_ref","module_loaded","monitor_node","node","node_link","node_unlink","nodes","notalive","now","open_port","pid_to_list","port_close","port_command","port_connect","port_control","pre_loaded","process_flag","process_info","processes","purge_module","put","register","registered","round","self","setelement","size","spawn","spawn_link","spawn_monitor","spawn_opt","split_binary","statistics","term_to_binary","time","throw","tl","trunc","tuple_size","tuple_to_list","unlink","unregister","whereis"],R4n=/[\w@Ø-ÞÀ-Öß-öø-ÿ]/,B4n=/[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/;function I4n(e,t,n){if(1==e.current().length&&t.test(e.current())){for(e.backUp(1);t.test(e.peek());)if(e.next(),X4n(e.current(),n))return!0;e.backUp(e.current().length-1)}return!1}function L4n(e,t,n){if(1==e.current().length&&t.test(e.current())){for(;t.test(e.peek());)e.next();for(;0<e.current().length;){if(X4n(e.current(),n))return!0;e.backUp(1)}e.next()}return!1}function D4n(e){return N4n(e,'"',"\\")}function M4n(e){return N4n(e,"'","\\")}function N4n(e,t,n){for(;!e.eol();){var r=e.next();if(r==t)return!0;r==n&&e.next()}return!1}function X4n(e,t){return-1<t.indexOf(e)}function F4n(e,t,n){switch(function(e,t){"comment"!=t.type&&"whitespace"!=t.type&&(e.tokenStack=function(e,t){var n=e.length-1;0<n&&"record"===e[n].type&&"dot"===t.type?e.pop():0<n&&"group"===e[n].type?(e.pop(),e.push(t)):e.push(t);return e}(e.tokenStack,t),e.tokenStack=function(e){if(!e.length)return e;var t=e.length-1;if("dot"===e[t].type)return[];if(t>1&&"fun"===e[t].type&&"fun"===e[t-1].token)return e.slice(0,t-1);switch(e[t].token){case"}":return V4n(e,{g:["{"]});case"]":return V4n(e,{i:["["]});case")":return V4n(e,{i:["("]});case">>":return V4n(e,{i:["<<"]});case"end":return V4n(e,{i:["begin","case","fun","if","receive","try"]});case",":return V4n(e,{e:["begin","try","when","->",",","(","[","{","<<"]});case"->":return V4n(e,{r:["when"],m:["try","if","case","receive"]});case";":return V4n(e,{E:["case","fun","if","receive","try","when"]});case"catch":return V4n(e,{e:["try"]});case"of":return V4n(e,{e:["case"]});case"after":return V4n(e,{e:["receive","try"]});default:return e}}(e.tokenStack))}(e,function(e,t){return U4n(t.current(),t.column(),t.indentation(),e)}(n,t)),n){case"atom":case"boolean":return"atom";case"attribute":return"attribute";case"builtin":return"builtin";case"close_paren":case"colon":case"dot":case"open_paren":case"separator":default:return null;case"comment":return"comment";case"error":return"error";case"fun":return"meta";case"function":return"tag";case"guard":return"property";case"keyword":return"keyword";case"macro":return"macroName";case"number":return"number";case"operator":return"operator";case"record":return"bracket";case"string":return"string";case"type":return"def";case"variable":return"variable"}}function U4n(e,t,n,r){return{token:e,column:t,indent:n,type:r}}function z4n(e){return U4n(e,0,0,e)}function q4n(e,t){var n=e.tokenStack.length,r=t||1;return!(n<r)&&e.tokenStack[n-r]}function V4n(e,t){for(var n in t)for(var r=e.length-1,i=t[n],o=r-1;-1<o;o--)if(X4n(e[o].token,i)){var a=e.slice(0,o);switch(n){case"m":return a.concat(e[o]).concat(e[r]);case"r":return a.concat(e[r]);case"i":return a;case"g":return a.concat(z4n("group"));case"E":case"e":return a.concat(e[o])}}return"E"==n?[]:e}function W4n(e,t){var n=e.tokenStack,r=j4n(n,"token",t);return!!Y4n(n[r])&&n[r]}function j4n(e,t,n){for(var r=e.length-1;-1<r;r--)if(X4n(e[r][t],n))return r;return!1}function Y4n(e){return!1!==e&&null!=e}const Z4n={name:"erlang",startState:()=>({tokenStack:[],in_string:!1,in_atom:!1}),token:function(e,t){if(t.in_string)return t.in_string=!D4n(e),F4n(t,e,"string");if(t.in_atom)return t.in_atom=!M4n(e),F4n(t,e,"atom");if(e.eatSpace())return F4n(t,e,"whitespace");if(!q4n(t)&&e.match(/-\s*[a-zß-öø-ÿ][\wØ-ÞÀ-Öß-öø-ÿ]*/))return X4n(e.current(),v4n)?F4n(t,e,"type"):F4n(t,e,"attribute");var n=e.next();if("%"==n)return e.skipToEnd(),F4n(t,e,"comment");if(":"==n)return F4n(t,e,"colon");if("?"==n)return e.eatSpace(),e.eatWhile(R4n),F4n(t,e,"macro");if("#"==n)return e.eatSpace(),e.eatWhile(R4n),F4n(t,e,"record");if("$"==n)return"\\"!=e.next()||e.match(B4n)?F4n(t,e,"number"):F4n(t,e,"error");if("."==n)return F4n(t,e,"dot");if("'"==n){if(!(t.in_atom=!M4n(e))){if(e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),F4n(t,e,"fun");if(e.match(/\s*\(/,!1)||e.match(/\s*:/,!1))return F4n(t,e,"function")}return F4n(t,e,"atom")}if('"'==n)return t.in_string=!D4n(e),F4n(t,e,"string");if(/[A-Z_Ø-ÞÀ-Ö]/.test(n))return e.eatWhile(R4n),F4n(t,e,"variable");if(/[a-z_ß-öø-ÿ]/.test(n)){if(e.eatWhile(R4n),e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),F4n(t,e,"fun");var r=e.current();return X4n(r,b4n)?F4n(t,e,"keyword"):X4n(r,k4n)?F4n(t,e,"operator"):e.match(/\s*\(/,!1)?!X4n(r,E4n)||":"==q4n(t).token&&"erlang"!=q4n(t,2).token?X4n(r,P4n)?F4n(t,e,"guard"):F4n(t,e,"function"):F4n(t,e,"builtin"):":"==function(e){var t=e.match(/^\s*([^\s%])/,!1);return t?t[1]:""}(e)?F4n(t,e,"erlang"==r?"builtin":"function"):X4n(r,["true","false"])?F4n(t,e,"boolean"):F4n(t,e,"atom")}var i=/[0-9]/;return i.test(n)?(e.eatWhile(i),e.eat("#")?e.eatWhile(/[0-9a-zA-Z]/)||e.backUp(1):e.eat(".")&&(e.eatWhile(i)?e.eat(/[eE]/)&&(e.eat(/[-+]/)?e.eatWhile(i)||e.backUp(2):e.eatWhile(i)||e.backUp(1)):e.backUp(1)),F4n(t,e,"number")):I4n(e,$4n,_4n)?F4n(t,e,"open_paren"):I4n(e,C4n,Q4n)?F4n(t,e,"close_paren"):L4n(e,x4n,w4n)?F4n(t,e,"separator"):L4n(e,S4n,T4n)?F4n(t,e,"operator"):F4n(t,e,null)},indent:function(e,t,n){var r,i=function(e){var t=e.match(/,|[a-z]+|\}|\]|\)|>>|\|+|\(/);return Y4n(t)&&0===t.index?t[0]:""}(t),o=q4n(e,1),a=q4n(e,2);return e.in_string||e.in_atom?null:a?"when"==o.token?o.column+n.unit:"when"===i&&"function"===a.type?a.indent+n.unit:"("===i&&"fun"===o.token?o.column+3:"catch"===i&&(r=W4n(e,["try"]))?r.column:X4n(i,["end","after","of"])?(r=W4n(e,["begin","case","fun","if","receive","try"]))?r.column:null:X4n(i,Q4n)?(r=W4n(e,_4n))?r.column:null:X4n(o.token,[",","|","||"])||X4n(i,[",","|","||"])?(r=function(e){var t=e.tokenStack.slice(0,-1),n=j4n(t,"type",["open_paren"]);return!!Y4n(t[n])&&t[n]}(e),r?r.column+r.token.length:n.unit):"->"==o.token?X4n(a.token,["receive","case","if","try"])?a.column+n.unit+n.unit:a.column+n.unit:X4n(o.token,_4n)?o.column+o.token.length:(r=function(e){var t=e.tokenStack,n=j4n(t,"type",["open_paren","separator","keyword"]),r=j4n(t,"type",["operator"]);return Y4n(n)&&Y4n(r)&&n<r?t[n+1]:!!Y4n(n)&&t[n]}(e),Y4n(r)?r.column+n.unit:0):0},languageData:{commentTokens:{line:"%"}}},G4n=Object.freeze(Object.defineProperty({__proto__:null,erlang:Z4n},Symbol.toStringTag,{value:"Module"}));function H4n(e){var t=e.client||{},n=e.atoms||{false:!0,true:!0,null:!0},r=e.builtin||n3n(r3n),i=e.keywords||n3n(t3n),o=e.operatorChars||/^[*+\-%<>!=&|~^\/]/,a=e.support||{},s=e.hooks||{},l=e.dateSQL||{date:!0,time:!0,timestamp:!0},c=!1!==e.backslashStringEscapes,u=e.brackets||/^[\{}\(\)\[\]]/,h=e.punctuation||/^[;.,:]/;function d(e,c){var d=e.next();if(s[d]){var g=s[d](e,c);if(!1!==g)return g}if(a.hexNumber&&("0"==d&&e.match(/^[xX][0-9a-fA-F]+/)||("x"==d||"X"==d)&&e.match(/^'[0-9a-fA-F]*'/)))return"number";if(a.binaryNumber&&(("b"==d||"B"==d)&&e.match(/^'[01]+'/)||"0"==d&&e.match(/^b[01]*/)))return"number";if(d.charCodeAt(0)>47&&d.charCodeAt(0)<58)return e.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),a.decimallessFloat&&e.match(/^\.(?!\.)/),"number";if("?"==d&&(e.eatSpace()||e.eol()||e.eat(";")))return"macroName";if("'"==d||'"'==d&&a.doubleQuote)return c.tokenize=p(d),c.tokenize(e,c);if((a.nCharCast&&("n"==d||"N"==d)||a.charsetCast&&"_"==d&&e.match(/[a-z][a-z0-9]*/i))&&("'"==e.peek()||'"'==e.peek()))return"keyword";if(a.escapeConstant&&("e"==d||"E"==d)&&("'"==e.peek()||'"'==e.peek()&&a.doubleQuote))return c.tokenize=function(e,t){return(t.tokenize=p(e.next(),!0))(e,t)},"keyword";if(a.commentSlashSlash&&"/"==d&&e.eat("/"))return e.skipToEnd(),"comment";if(a.commentHash&&"#"==d||"-"==d&&e.eat("-")&&(!a.commentSpaceRequired||e.eat(" ")))return e.skipToEnd(),"comment";if("/"==d&&e.eat("*"))return c.tokenize=f(1),c.tokenize(e,c);if("."!=d){if(o.test(d))return e.eatWhile(o),"operator";if(u.test(d))return"bracket";if(h.test(d))return e.eatWhile(h),"punctuation";if("{"==d&&(e.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||e.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";e.eatWhile(/^[_\w\d]/);var m=e.current().toLowerCase();return l.hasOwnProperty(m)&&(e.match(/^( )+'[^']*'/)||e.match(/^( )+"[^"]*"/))?"number":n.hasOwnProperty(m)?"atom":r.hasOwnProperty(m)?"type":i.hasOwnProperty(m)?"keyword":t.hasOwnProperty(m)?"builtin":null}return a.zerolessFloat&&e.match(/^(?:\d+(?:e[+-]?\d+)?)/i)?"number":e.match(/^\.+/)?null:a.ODBCdotTable&&e.match(/^[\w\d_$#]+/)?"type":void 0}function p(e,t){return function(n,r){for(var i,o=!1;null!=(i=n.next());){if(i==e&&!o){r.tokenize=d;break}o=(c||t)&&!o&&"\\"==i}return"string"}}function f(e){return function(t,n){var r=t.match(/^.*?(\/\*|\*\/)/);return r?"/*"==r[1]?n.tokenize=f(e+1):n.tokenize=e>1?f(e-1):d:t.skipToEnd(),"comment"}}function g(e,t,n){t.context={prev:t.context,indent:e.indentation(),col:e.column(),type:n}}return{name:"sql",startState:function(){return{tokenize:d,context:null}},token:function(e,t){if(e.sol()&&t.context&&null==t.context.align&&(t.context.align=!1),t.tokenize==d&&e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"==n)return n;t.context&&null==t.context.align&&(t.context.align=!0);var r=e.current();return"("==r?g(e,t,")"):"["==r?g(e,t,"]"):t.context&&t.context.type==r&&function(e){e.indent=e.context.indent,e.context=e.context.prev}(t),n},indent:function(e,t,n){var r=e.context;if(!r)return null;var i=t.charAt(0)==r.type;return r.align?r.col+(i?0:1):r.indent+(i?0:n.unit)},languageData:{commentTokens:{line:a.commentSlashSlash?"//":a.commentHash?"#":"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}}}function K4n(e){for(var t;null!=(t=e.next());)if("`"==t&&!e.eat("`"))return"string.special";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"string.special":null}function J4n(e){return e.eat("@")&&(e.match("session."),e.match("local."),e.match("global.")),e.eat("'")?(e.match(/^.*'/),"string.special"):e.eat('"')?(e.match(/^.*"/),"string.special"):e.eat("`")?(e.match(/^.*`/),"string.special"):e.match(/^[0-9a-zA-Z$\.\_]+/)?"string.special":null}function e3n(e){return e.eat("N")?"atom":e.match(/^[a-zA-Z.#!?]/)?"string.special":null}var t3n="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function n3n(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var r3n="bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision real date datetime year unsigned signed decimal numeric";const i3n=H4n({keywords:n3n(t3n+"begin"),builtin:n3n(r3n),atoms:n3n("false true null unknown"),dateSQL:n3n("date time timestamp"),support:n3n("ODBCdotTable doubleQuote binaryNumber hexNumber")}),o3n=H4n({client:n3n("$partition binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id"),keywords:n3n(t3n+"begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx updlock with"),builtin:n3n("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "),atoms:n3n("is not null like and or in left right between inner outer join all any some cross unpivot pivot exists"),operatorChars:/^[*+\-%<>!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:n3n("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":J4n}}),a3n=H4n({client:n3n("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:n3n(t3n+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:n3n("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:n3n("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:n3n("date time timestamp"),support:n3n("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":J4n,"`":K4n,"\\":e3n}}),s3n=H4n({client:n3n("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:n3n(t3n+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group group_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:n3n("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:n3n("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:n3n("date time timestamp"),support:n3n("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":J4n,"`":K4n,"\\":e3n}}),l3n=H4n({client:n3n("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:n3n(t3n+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:n3n("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:n3n("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:n3n("date time timestamp datetime"),support:n3n("decimallessFloat zerolessFloat"),hooks:{"@":J4n,":":J4n,"?":J4n,$:J4n,'"':function(e){for(var t;null!=(t=e.next());)if('"'==t&&!e.eat('"'))return"string.special";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"string.special":null},"`":K4n}}),c3n=H4n({client:{},keywords:n3n("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:n3n("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:n3n("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:n3n("commentSlashSlash decimallessFloat"),hooks:{}}),u3n=H4n({client:n3n("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:n3n("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:n3n("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:n3n("date time timestamp"),support:n3n("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),h3n=H4n({keywords:n3n("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:n3n("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:n3n("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:n3n("date timestamp"),support:n3n("ODBCdotTable doubleQuote binaryNumber hexNumber")}),d3n=H4n({client:n3n("source"),keywords:n3n(t3n+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:n3n("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:n3n("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:n3n("date time timestamp"),support:n3n("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),p3n=H4n({keywords:n3n("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:n3n("false true"),builtin:n3n("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),f3n=H4n({client:n3n("source"),keywords:n3n("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:n3n("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:n3n("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:n3n("date time timestamp"),support:n3n("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),g3n=H4n({keywords:n3n("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:n3n("tinyint smallint int bigint boolean float double string binary timestamp decimal array map struct uniontype delimited serde sequencefile textfile rcfile inputformat outputformat"),atoms:n3n("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:n3n("date time timestamp"),support:n3n("ODBCdotTable doubleQuote zerolessFloat")}),m3n=H4n({client:n3n("source"),keywords:n3n("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:n3n("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:n3n("time"),support:n3n("decimallessFloat zerolessFloat binaryNumber hexNumber")}),O3n=Object.freeze(Object.defineProperty({__proto__:null,cassandra:c3n,esper:m3n,gpSQL:f3n,gql:p3n,hive:h3n,mariaDB:s3n,msSQL:o3n,mySQL:a3n,pgSQL:d3n,plSQL:u3n,sparkSQL:g3n,sql:H4n,sqlite:l3n,standardSQL:i3n},Symbol.toStringTag,{value:"Module"})),A3n=U2n({start:[{regex:/#?!.*/,token:"comment"},{regex:/"""/,token:"string",next:"string3"},{regex:/(STRING:)(\s)/,token:["keyword",null],next:"string2"},{regex:/\S*?"/,token:"string",next:"string"},{regex:/(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\-?\d+.?\d*)(?=\s)/,token:"number"},{regex:/((?:GENERIC)|\:?\:)(\s+)(\S+)(\s+)(\()/,token:["keyword",null,"def",null,"bracket"],next:"stack"},{regex:/(M\:)(\s+)(\S+)(\s+)(\S+)/,token:["keyword",null,"def",null,"tag"]},{regex:/USING\:/,token:"keyword",next:"vocabulary"},{regex:/(USE\:|IN\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"tag"]},{regex:/(\S+\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"def"]},{regex:/(?:;|\\|t|f|if|loop|while|until|do|PRIVATE>|<PRIVATE|\.|\S*\[|\]|\S*\{|\})(?=\s|$)/,token:"keyword"},{regex:/\S+[\)>\.\*\?]+(?=\s|$)/,token:"builtin"},{regex:/[\)><]+\S+(?=\s|$)/,token:"builtin"},{regex:/(?:[\+\-\=\/\*<>])(?=\s|$)/,token:"keyword"},{regex:/\S+/,token:"variable"},{regex:/\s+|./,token:null}],vocabulary:[{regex:/;/,token:"keyword",next:"start"},{regex:/\S+/,token:"tag"},{regex:/\s+|./,token:null}],string:[{regex:/(?:[^\\]|\\.)*?"/,token:"string",next:"start"},{regex:/.*/,token:"string"}],string2:[{regex:/^;/,token:"keyword",next:"start"},{regex:/.*/,token:"string"}],string3:[{regex:/(?:[^\\]|\\.)*?"""/,token:"string",next:"start"},{regex:/.*/,token:"string"}],stack:[{regex:/\)/,token:"bracket",next:"start"},{regex:/--/,token:"bracket"},{regex:/\S+/,token:"meta"},{regex:/\s+|./,token:null}],languageData:{name:"factor",dontIndentStates:["start","vocabulary","string","string3","stack"],commentTokens:{line:"!"}}}),y3n=Object.freeze(Object.defineProperty({__proto__:null,factor:A3n},Symbol.toStringTag,{value:"Module"}));var v3n={term:!0,method:!0,accu:!0,rule:!0,then:!0,is:!0,and:!0,or:!0,if:!0,default:!0},b3n={var_input:!0,var_output:!0,fuzzify:!0,defuzzify:!0,function_block:!0,ruleblock:!0},x3n={end_ruleblock:!0,end_defuzzify:!0,end_function_block:!0,end_fuzzify:!0,end_var:!0},w3n={true:!0,false:!0,nan:!0,real:!0,min:!0,max:!0,cog:!0,cogs:!0},k3n=/[+\-*&^%:=<>!|\/]/;function S3n(e,t){var n=e.next();if(/[\d\.]/.test(n))return"."==n?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==n?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if("/"==n||"("==n){if(e.eat("*"))return t.tokenize=T3n,T3n(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(k3n.test(n))return e.eatWhile(k3n),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var r=e.current().toLowerCase();return v3n.propertyIsEnumerable(r)||b3n.propertyIsEnumerable(r)||x3n.propertyIsEnumerable(r)?"keyword":w3n.propertyIsEnumerable(r)?"atom":"variable"}function T3n(e,t){for(var n,r=!1;n=e.next();){if(("/"==n||")"==n)&&r){t.tokenize=S3n;break}r="*"==n}return"comment"}function $3n(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}const _3n={name:"fcl",startState:function(e){return{tokenize:null,context:new $3n(-e,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;var r=(t.tokenize||S3n)(e,t);if("comment"==r)return r;null==n.align&&(n.align=!0);var i=e.current().toLowerCase();return b3n.propertyIsEnumerable(i)?function(e,t,n){e.context=new $3n(e.indented,t,n,null,e.context)}(t,e.column(),"end_block"):x3n.propertyIsEnumerable(i)&&function(e){if(e.context.prev)"end_block"==e.context.type&&(e.indented=e.context.indented),e.context=e.context.prev}(t),t.startOfLine=!1,r},indent:function(e,t,n){if(e.tokenize!=S3n&&null!=e.tokenize)return 0;var r=e.context,i=x3n.propertyIsEnumerable(t);return r.align?r.column+(i?0:1):r.indented+(i?0:n.unit)},languageData:{commentTokens:{line:"//",block:{open:"(*",close:"*)"}}}},C3n=Object.freeze(Object.defineProperty({__proto__:null,fcl:_3n},Symbol.toStringTag,{value:"Module"}));function Q3n(e){var t=[];return e.split(" ").forEach(function(e){t.push({name:e})}),t}var P3n=Q3n("INVERT AND OR XOR 2* 2/ LSHIFT RSHIFT 0= = 0< < > U< MIN MAX 2DROP 2DUP 2OVER 2SWAP ?DUP DEPTH DROP DUP OVER ROT SWAP >R R> R@ + - 1+ 1- ABS NEGATE S>D * M* UM* FM/MOD SM/REM UM/MOD */ */MOD / /MOD MOD HERE , @ ! CELL+ CELLS C, C@ C! CHARS 2@ 2! ALIGN ALIGNED +! ALLOT CHAR [CHAR] [ ] BL FIND EXECUTE IMMEDIATE COUNT LITERAL STATE ; DOES> >BODY EVALUATE SOURCE >IN <# # #S #> HOLD SIGN BASE >NUMBER HEX DECIMAL FILL MOVE . CR EMIT SPACE SPACES TYPE U. .R U.R ACCEPT TRUE FALSE <> U> 0<> 0> NIP TUCK ROLL PICK 2>R 2R@ 2R> WITHIN UNUSED MARKER I J TO COMPILE, [COMPILE] SAVE-INPUT RESTORE-INPUT PAD ERASE 2LITERAL DNEGATE D- D+ D0< D0= D2* D2/ D< D= DMAX DMIN D>S DABS M+ M*/ D. D.R 2ROT DU< CATCH THROW FREE RESIZE ALLOCATE CS-PICK CS-ROLL GET-CURRENT SET-CURRENT FORTH-WORDLIST GET-ORDER SET-ORDER PREVIOUS SEARCH-WORDLIST WORDLIST FIND ALSO ONLY FORTH DEFINITIONS ORDER -TRAILING /STRING SEARCH COMPARE CMOVE CMOVE> BLANK SLITERAL"),E3n=Q3n("IF ELSE THEN BEGIN WHILE REPEAT UNTIL RECURSE [IF] [ELSE] [THEN] ?DO DO LOOP +LOOP UNLOOP LEAVE EXIT AGAIN CASE OF ENDOF ENDCASE");function R3n(e,t){var n;for(n=e.length-1;n>=0;n--)if(e[n].name===t.toUpperCase())return e[n]}const B3n={name:"forth",startState:function(){return{state:"",base:10,coreWordList:P3n,immediateWordList:E3n,wordList:[]}},token:function(e,t){var n;if(e.eatSpace())return null;if(""===t.state){if(e.match(/^(\]|:NONAME)(\s|$)/i))return t.state=" compilation","builtin";if(n=e.match(/^(\:)\s+(\S+)(\s|$)+/))return t.wordList.push({name:n[2].toUpperCase()}),t.state=" compilation","def";if(n=e.match(/^(VARIABLE|2VARIABLE|CONSTANT|2CONSTANT|CREATE|POSTPONE|VALUE|WORD)\s+(\S+)(\s|$)+/i))return t.wordList.push({name:n[2].toUpperCase()}),"def";if(n=e.match(/^(\'|\[\'\])\s+(\S+)(\s|$)+/))return"builtin"}else{if(e.match(/^(\;|\[)(\s)/))return t.state="",e.backUp(1),"builtin";if(e.match(/^(\;|\[)($)/))return t.state="","builtin";if(e.match(/^(POSTPONE)\s+\S+(\s|$)+/))return"builtin"}return(n=e.match(/^(\S+)(\s+|$)/))?void 0!==R3n(t.wordList,n[1])?"variable":"\\"===n[1]?(e.skipToEnd(),"comment"):void 0!==R3n(t.coreWordList,n[1])?"builtin":void 0!==R3n(t.immediateWordList,n[1])?"keyword":"("===n[1]?(e.eatWhile(function(e){return")"!==e}),e.eat(")"),"comment"):".("===n[1]?(e.eatWhile(function(e){return")"!==e}),e.eat(")"),"string"):'S"'===n[1]||'."'===n[1]||'C"'===n[1]?(e.eatWhile(function(e){return'"'!==e}),e.eat('"'),"string"):n[1]-68719476735?"number":"atom":void 0}},I3n=Object.freeze(Object.defineProperty({__proto__:null,forth:B3n},Symbol.toStringTag,{value:"Module"}));function L3n(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}var D3n=L3n(["abstract","accept","allocatable","allocate","array","assign","asynchronous","backspace","bind","block","byte","call","case","class","close","common","contains","continue","cycle","data","deallocate","decode","deferred","dimension","do","elemental","else","encode","end","endif","entry","enumerator","equivalence","exit","external","extrinsic","final","forall","format","function","generic","go","goto","if","implicit","import","include","inquire","intent","interface","intrinsic","module","namelist","non_intrinsic","non_overridable","none","nopass","nullify","open","optional","options","parameter","pass","pause","pointer","print","private","program","protected","public","pure","read","recursive","result","return","rewind","save","select","sequence","stop","subroutine","target","then","to","type","use","value","volatile","where","while","write"]),M3n=L3n(["abort","abs","access","achar","acos","adjustl","adjustr","aimag","aint","alarm","all","allocated","alog","amax","amin","amod","and","anint","any","asin","associated","atan","besj","besjn","besy","besyn","bit_size","btest","cabs","ccos","ceiling","cexp","char","chdir","chmod","clog","cmplx","command_argument_count","complex","conjg","cos","cosh","count","cpu_time","cshift","csin","csqrt","ctime","c_funloc","c_loc","c_associated","c_null_ptr","c_null_funptr","c_f_pointer","c_null_char","c_alert","c_backspace","c_form_feed","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","dabs","dacos","dasin","datan","date_and_time","dbesj","dbesj","dbesjn","dbesy","dbesy","dbesyn","dble","dcos","dcosh","ddim","derf","derfc","dexp","digits","dim","dint","dlog","dlog","dmax","dmin","dmod","dnint","dot_product","dprod","dsign","dsinh","dsin","dsqrt","dtanh","dtan","dtime","eoshift","epsilon","erf","erfc","etime","exit","exp","exponent","extends_type_of","fdate","fget","fgetc","float","floor","flush","fnum","fputc","fput","fraction","fseek","fstat","ftell","gerror","getarg","get_command","get_command_argument","get_environment_variable","getcwd","getenv","getgid","getlog","getpid","getuid","gmtime","hostnm","huge","iabs","iachar","iand","iargc","ibclr","ibits","ibset","ichar","idate","idim","idint","idnint","ieor","ierrno","ifix","imag","imagpart","index","int","ior","irand","isatty","ishft","ishftc","isign","iso_c_binding","is_iostat_end","is_iostat_eor","itime","kill","kind","lbound","len","len_trim","lge","lgt","link","lle","llt","lnblnk","loc","log","logical","long","lshift","lstat","ltime","matmul","max","maxexponent","maxloc","maxval","mclock","merge","move_alloc","min","minexponent","minloc","minval","mod","modulo","mvbits","nearest","new_line","nint","not","or","pack","perror","precision","present","product","radix","rand","random_number","random_seed","range","real","realpart","rename","repeat","reshape","rrspacing","rshift","same_type_as","scale","scan","second","selected_int_kind","selected_real_kind","set_exponent","shape","short","sign","signal","sinh","sin","sleep","sngl","spacing","spread","sqrt","srand","stat","sum","symlnk","system","system_clock","tan","tanh","time","tiny","transfer","transpose","trim","ttynam","ubound","umask","unlink","unpack","verify","xor","zabs","zcos","zexp","zlog","zsin","zsqrt"]),N3n=L3n(["c_bool","c_char","c_double","c_double_complex","c_float","c_float_complex","c_funptr","c_int","c_int16_t","c_int32_t","c_int64_t","c_int8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_int_fast8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_least8_t","c_intmax_t","c_intptr_t","c_long","c_long_double","c_long_double_complex","c_long_long","c_ptr","c_short","c_signed_char","c_size_t","character","complex","double","integer","logical","real"]),X3n=/[+\-*&=<>\/\:]/,F3n=/^\.(and|or|eq|lt|le|gt|ge|ne|not|eqv|neqv)\./i;function U3n(e,t){if(e.match(F3n))return"operator";var n,r=e.next();if("!"==r)return e.skipToEnd(),"comment";if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return!o&&i||(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]\(\),]/.test(r))return null;if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if(X3n.test(r))return e.eatWhile(X3n),"operator";e.eatWhile(/[\w\$_]/);var i=e.current().toLowerCase();return D3n.hasOwnProperty(i)?"keyword":M3n.hasOwnProperty(i)||N3n.hasOwnProperty(i)?"builtin":"variable"}const z3n={name:"fortran",startState:function(){return{tokenize:null}},token:function(e,t){if(e.eatSpace())return null;var n=(t.tokenize||U3n)(e,t);return n}},q3n=Object.freeze(Object.defineProperty({__proto__:null,fortran:z3n},Symbol.toStringTag,{value:"Module"}));function V3n(e){var t={as:"keyword",do:"keyword",else:"keyword",end:"keyword",exception:"keyword",fun:"keyword",functor:"keyword",if:"keyword",in:"keyword",include:"keyword",let:"keyword",of:"keyword",open:"keyword",rec:"keyword",struct:"keyword",then:"keyword",type:"keyword",val:"keyword",while:"keyword",with:"keyword"},n=e.extraWords||{};for(var r in n)n.hasOwnProperty(r)&&(t[r]=e.extraWords[r]);var i=[];for(var o in t)i.push(o);function a(n,r){var i=n.next();if('"'===i)return r.tokenize=s,r.tokenize(n,r);if("{"===i&&n.eat("|"))return r.longString=!0,r.tokenize=c,r.tokenize(n,r);if("("===i&&n.match(/^\*(?!\))/))return r.commentLevel++,r.tokenize=l,r.tokenize(n,r);if("~"===i||"?"===i)return n.eatWhile(/\w/),"variableName.special";if("`"===i)return n.eatWhile(/\w/),"quote";if("/"===i&&e.slashComments&&n.eat("/"))return n.skipToEnd(),"comment";if(/\d/.test(i))return"0"===i&&n.eat(/[bB]/)&&n.eatWhile(/[01]/),"0"===i&&n.eat(/[xX]/)&&n.eatWhile(/[0-9a-fA-F]/),"0"===i&&n.eat(/[oO]/)?n.eatWhile(/[0-7]/):(n.eatWhile(/[\d_]/),n.eat(".")&&n.eatWhile(/[\d]/),n.eat(/[eE]/)&&n.eatWhile(/[\d\-+]/)),"number";if(/[+\-*&%=<>!?|@\.~:]/.test(i))return"operator";if(/[\w\xa1-\uffff]/.test(i)){n.eatWhile(/[\w\xa1-\uffff]/);var o=n.current();return t.hasOwnProperty(o)?t[o]:"variable"}return null}function s(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if('"'===n&&!i){r=!0;break}i=!i&&"\\"===n}return r&&!i&&(t.tokenize=a),"string"}function l(e,t){for(var n,r;t.commentLevel>0&&null!=(r=e.next());)"("===n&&"*"===r&&t.commentLevel++,"*"===n&&")"===r&&t.commentLevel--,n=r;return t.commentLevel<=0&&(t.tokenize=a),"comment"}function c(e,t){for(var n,r;t.longString&&null!=(r=e.next());)"|"===n&&"}"===r&&(t.longString=!1),n=r;return t.longString||(t.tokenize=a),"string"}return{startState:function(){return{tokenize:a,commentLevel:0,longString:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{autocomplete:i,commentTokens:{line:e.slashComments?"//":void 0,block:{open:"(*",close:"*)"}}}}}const W3n=V3n({extraWords:{and:"keyword",assert:"keyword",begin:"keyword",class:"keyword",constraint:"keyword",done:"keyword",downto:"keyword",external:"keyword",function:"keyword",initializer:"keyword",lazy:"keyword",match:"keyword",method:"keyword",module:"keyword",mutable:"keyword",new:"keyword",nonrec:"keyword",object:"keyword",private:"keyword",sig:"keyword",to:"keyword",try:"keyword",value:"keyword",virtual:"keyword",when:"keyword",raise:"builtin",failwith:"builtin",true:"builtin",false:"builtin",asr:"builtin",land:"builtin",lor:"builtin",lsl:"builtin",lsr:"builtin",lxor:"builtin",mod:"builtin",or:"builtin",raise_notrace:"builtin",trace:"builtin",exit:"builtin",print_string:"builtin",print_endline:"builtin",int:"type",float:"type",bool:"type",char:"type",string:"type",unit:"type",List:"builtin"}}),j3n=V3n({extraWords:{abstract:"keyword",assert:"keyword",base:"keyword",begin:"keyword",class:"keyword",default:"keyword",delegate:"keyword","do!":"keyword",done:"keyword",downcast:"keyword",downto:"keyword",elif:"keyword",extern:"keyword",finally:"keyword",for:"keyword",function:"keyword",global:"keyword",inherit:"keyword",inline:"keyword",interface:"keyword",internal:"keyword",lazy:"keyword","let!":"keyword",match:"keyword",member:"keyword",module:"keyword",mutable:"keyword",namespace:"keyword",new:"keyword",null:"keyword",override:"keyword",private:"keyword",public:"keyword","return!":"keyword",return:"keyword",select:"keyword",static:"keyword",to:"keyword",try:"keyword",upcast:"keyword","use!":"keyword",use:"keyword",void:"keyword",when:"keyword","yield!":"keyword",yield:"keyword",atomic:"keyword",break:"keyword",checked:"keyword",component:"keyword",const:"keyword",constraint:"keyword",constructor:"keyword",continue:"keyword",eager:"keyword",event:"keyword",external:"keyword",fixed:"keyword",method:"keyword",mixin:"keyword",object:"keyword",parallel:"keyword",process:"keyword",protected:"keyword",pure:"keyword",sealed:"keyword",tailcall:"keyword",trait:"keyword",virtual:"keyword",volatile:"keyword",List:"builtin",Seq:"builtin",Map:"builtin",Set:"builtin",Option:"builtin",int:"builtin",string:"builtin",not:"builtin",true:"builtin",false:"builtin",raise:"builtin",failwith:"builtin"},slashComments:!0}),Y3n=V3n({extraWords:{abstype:"keyword",and:"keyword",andalso:"keyword",case:"keyword",datatype:"keyword",fn:"keyword",handle:"keyword",infix:"keyword",infixr:"keyword",local:"keyword",nonfix:"keyword",op:"keyword",orelse:"keyword",raise:"keyword",withtype:"keyword",eqtype:"keyword",sharing:"keyword",sig:"keyword",signature:"keyword",structure:"keyword",where:"keyword",true:"keyword",false:"keyword",int:"builtin",real:"builtin",string:"builtin",char:"builtin",bool:"builtin"},slashComments:!0}),Z3n=Object.freeze(Object.defineProperty({__proto__:null,fSharp:j3n,oCaml:W3n,sml:Y3n},Symbol.toStringTag,{value:"Module"}));function G3n(e){var t=[],n="",r={".abort":"builtin",".align":"builtin",".altmacro":"builtin",".ascii":"builtin",".asciz":"builtin",".balign":"builtin",".balignw":"builtin",".balignl":"builtin",".bundle_align_mode":"builtin",".bundle_lock":"builtin",".bundle_unlock":"builtin",".byte":"builtin",".cfi_startproc":"builtin",".comm":"builtin",".data":"builtin",".def":"builtin",".desc":"builtin",".dim":"builtin",".double":"builtin",".eject":"builtin",".else":"builtin",".elseif":"builtin",".end":"builtin",".endef":"builtin",".endfunc":"builtin",".endif":"builtin",".equ":"builtin",".equiv":"builtin",".eqv":"builtin",".err":"builtin",".error":"builtin",".exitm":"builtin",".extern":"builtin",".fail":"builtin",".file":"builtin",".fill":"builtin",".float":"builtin",".func":"builtin",".global":"builtin",".gnu_attribute":"builtin",".hidden":"builtin",".hword":"builtin",".ident":"builtin",".if":"builtin",".incbin":"builtin",".include":"builtin",".int":"builtin",".internal":"builtin",".irp":"builtin",".irpc":"builtin",".lcomm":"builtin",".lflags":"builtin",".line":"builtin",".linkonce":"builtin",".list":"builtin",".ln":"builtin",".loc":"builtin",".loc_mark_labels":"builtin",".local":"builtin",".long":"builtin",".macro":"builtin",".mri":"builtin",".noaltmacro":"builtin",".nolist":"builtin",".octa":"builtin",".offset":"builtin",".org":"builtin",".p2align":"builtin",".popsection":"builtin",".previous":"builtin",".print":"builtin",".protected":"builtin",".psize":"builtin",".purgem":"builtin",".pushsection":"builtin",".quad":"builtin",".reloc":"builtin",".rept":"builtin",".sbttl":"builtin",".scl":"builtin",".section":"builtin",".set":"builtin",".short":"builtin",".single":"builtin",".size":"builtin",".skip":"builtin",".sleb128":"builtin",".space":"builtin",".stab":"builtin",".string":"builtin",".struct":"builtin",".subsection":"builtin",".symver":"builtin",".tag":"builtin",".text":"builtin",".title":"builtin",".type":"builtin",".uleb128":"builtin",".val":"builtin",".version":"builtin",".vtable_entry":"builtin",".vtable_inherit":"builtin",".warning":"builtin",".weak":"builtin",".weakref":"builtin",".word":"builtin"},i={};function o(e,t){for(var n,r=!1;null!=(n=e.next());){if("/"===n&&r){t.tokenize=null;break}r="*"===n}return"comment"}return"x86"===e?(n="#",i.al="variable",i.ah="variable",i.ax="variable",i.eax="variableName.special",i.rax="variableName.special",i.bl="variable",i.bh="variable",i.bx="variable",i.ebx="variableName.special",i.rbx="variableName.special",i.cl="variable",i.ch="variable",i.cx="variable",i.ecx="variableName.special",i.rcx="variableName.special",i.dl="variable",i.dh="variable",i.dx="variable",i.edx="variableName.special",i.rdx="variableName.special",i.si="variable",i.esi="variableName.special",i.rsi="variableName.special",i.di="variable",i.edi="variableName.special",i.rdi="variableName.special",i.sp="variable",i.esp="variableName.special",i.rsp="variableName.special",i.bp="variable",i.ebp="variableName.special",i.rbp="variableName.special",i.ip="variable",i.eip="variableName.special",i.rip="variableName.special",i.cs="keyword",i.ds="keyword",i.ss="keyword",i.es="keyword",i.fs="keyword",i.gs="keyword"):"arm"!==e&&"armv6"!==e||(n="@",r.syntax="builtin",i.r0="variable",i.r1="variable",i.r2="variable",i.r3="variable",i.r4="variable",i.r5="variable",i.r6="variable",i.r7="variable",i.r8="variable",i.r9="variable",i.r10="variable",i.r11="variable",i.r12="variable",i.sp="variableName.special",i.lr="variableName.special",i.pc="variableName.special",i.r13=i.sp,i.r14=i.lr,i.r15=i.pc,t.push(function(e,t){if("#"===e)return t.eatWhile(/\w/),"number"})),{name:"gas",startState:function(){return{tokenize:null}},token:function(e,a){if(a.tokenize)return a.tokenize(e,a);if(e.eatSpace())return null;var s,l,c=e.next();if("/"===c&&e.eat("*"))return a.tokenize=o,o(e,a);if(c===n)return e.skipToEnd(),"comment";if('"'===c)return function(e,t){for(var n,r=!1;null!=(n=e.next());){if(n===t&&!r)return!1;r=!r&&"\\"===n}}(e,'"'),"string";if("."===c)return e.eatWhile(/\w/),l=e.current().toLowerCase(),(s=r[l])||null;if("="===c)return e.eatWhile(/\w/),"tag";if("{"===c)return"bracket";if("}"===c)return"bracket";if(/\d/.test(c))return"0"===c&&e.eat("x")?(e.eatWhile(/[0-9a-fA-F]/),"number"):(e.eatWhile(/\d/),"number");if(/\w/.test(c))return e.eatWhile(/\w/),e.eat(":")?"tag":(l=e.current().toLowerCase(),(s=i[l])||null);for(var u=0;u<t.length;u++)if(s=t[u](c,e,a))return s},languageData:{commentTokens:{line:n,block:{open:"/*",close:"*/"}}}}}const H3n=G3n("x86"),K3n=G3n("arm"),J3n=Object.freeze(Object.defineProperty({__proto__:null,gas:H3n,gasArm:K3n},Symbol.toStringTag,{value:"Module"})),e6n=Object.freeze(Object.defineProperty({__proto__:null,gherkin:{name:"gherkin",startState:function(){return{lineNumber:0,tableHeaderLine:!1,allowFeature:!0,allowBackground:!1,allowScenario:!1,allowSteps:!1,allowPlaceholders:!1,allowMultilineArgument:!1,inMultilineString:!1,inMultilineTable:!1,inKeywordLine:!1}},token:function(e,t){if(e.sol()&&(t.lineNumber++,t.inKeywordLine=!1,t.inMultilineTable&&(t.tableHeaderLine=!1,e.match(/\s*\|/,!1)||(t.allowMultilineArgument=!1,t.inMultilineTable=!1))),e.eatSpace(),t.allowMultilineArgument){if(t.inMultilineString)return e.match('"""')?(t.inMultilineString=!1,t.allowMultilineArgument=!1):e.match(/.*/),"string";if(t.inMultilineTable)return e.match(/\|\s*/)?"bracket":(e.match(/[^\|]*/),t.tableHeaderLine?"header":"string");if(e.match('"""'))return t.inMultilineString=!0,"string";if(e.match("|"))return t.inMultilineTable=!0,t.tableHeaderLine=!0,"bracket"}return e.match(/#.*/)?"comment":!t.inKeywordLine&&e.match(/@\S+/)?"tag":!t.inKeywordLine&&t.allowFeature&&e.match(/(機能|功能|フィーチャ|기능|โครงหลัก|ความสามารถ|ความต้องการทางธุรกิจ|ಹೆಚ್ಚಳ|గుణము|ਮੁਹਾਂਦਰਾ|ਨਕਸ਼ ਨੁਹਾਰ|ਖਾਸੀਅਤ|रूप लेख|وِیژگی|خاصية|תכונה|Функціонал|Функция|Функционалност|Функционал|Үзенчәлеклелек|Свойство|Особина|Мөмкинлек|Могућност|Λειτουργία|Δυνατότητα|Właściwość|Vlastnosť|Trajto|Tính năng|Savybė|Pretty much|Požiadavka|Požadavek|Potrzeba biznesowa|Özellik|Osobina|Ominaisuus|Omadus|OH HAI|Mogućnost|Mogucnost|Jellemző|Hwæt|Hwaet|Funzionalità|Funktionalitéit|Funktionalität|Funkcja|Funkcionalnost|Funkcionalitāte|Funkcia|Fungsi|Functionaliteit|Funcționalitate|Funcţionalitate|Functionalitate|Funcionalitat|Funcionalidade|Fonctionnalité|Fitur|Fīča|Feature|Eiginleiki|Egenskap|Egenskab|Característica|Caracteristica|Business Need|Aspekt|Arwedd|Ahoy matey!|Ability):/)?(t.allowScenario=!0,t.allowBackground=!0,t.allowPlaceholders=!1,t.allowSteps=!1,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):!t.inKeywordLine&&t.allowBackground&&e.match(/(背景|배경|แนวคิด|ಹಿನ್ನೆಲೆ|నేపథ్యం|ਪਿਛੋਕੜ|पृष्ठभूमि|زمینه|الخلفية|רקע|Тарих|Предыстория|Предистория|Позадина|Передумова|Основа|Контекст|Кереш|Υπόβαθρο|Założenia|Yo\-ho\-ho|Tausta|Taust|Situācija|Rerefons|Pozadina|Pozadie|Pozadí|Osnova|Latar Belakang|Kontext|Konteksts|Kontekstas|Kontekst|Háttér|Hannergrond|Grundlage|Geçmiş|Fundo|Fono|First off|Dis is what went down|Dasar|Contexto|Contexte|Context|Contesto|Cenário de Fundo|Cenario de Fundo|Cefndir|Bối cảnh|Bakgrunnur|Bakgrunn|Bakgrund|Baggrund|Background|B4|Antecedents|Antecedentes|Ær|Aer|Achtergrond):/)?(t.allowPlaceholders=!1,t.allowSteps=!0,t.allowBackground=!1,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):!t.inKeywordLine&&t.allowScenario&&e.match(/(場景大綱|场景大纲|劇本大綱|剧本大纲|テンプレ|シナリオテンプレート|シナリオテンプレ|シナリオアウトライン|시나리오 개요|สรุปเหตุการณ์|โครงสร้างของเหตุการณ์|ವಿವರಣೆ|కథనం|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਟਕਥਾ ਢਾਂਚਾ|परिदृश्य रूपरेखा|سيناريو مخطط|الگوی سناریو|תבנית תרחיש|Сценарийның төзелеше|Сценарий структураси|Структура сценарію|Структура сценария|Структура сценарија|Скица|Рамка на сценарий|Концепт|Περιγραφή Σεναρίου|Wharrimean is|Template Situai|Template Senario|Template Keadaan|Tapausaihio|Szenariogrundriss|Szablon scenariusza|Swa hwær swa|Swa hwaer swa|Struktura scenarija|Structură scenariu|Structura scenariu|Skica|Skenario konsep|Shiver me timbers|Senaryo taslağı|Schema dello scenario|Scenariomall|Scenariomal|Scenario Template|Scenario Outline|Scenario Amlinellol|Scenārijs pēc parauga|Scenarijaus šablonas|Reckon it's like|Raamstsenaarium|Plang vum Szenario|Plan du Scénario|Plan du scénario|Osnova scénáře|Osnova Scenára|Náčrt Scenáru|Náčrt Scénáře|Náčrt Scenára|MISHUN SRSLY|Menggariskan Senario|Lýsing Dæma|Lýsing Atburðarásar|Konturo de la scenaro|Koncept|Khung tình huống|Khung kịch bản|Forgatókönyv vázlat|Esquema do Cenário|Esquema do Cenario|Esquema del escenario|Esquema de l'escenari|Esbozo do escenario|Delineação do Cenário|Delineacao do Cenario|All y'all|Abstrakt Scenario|Abstract Scenario):/)?(t.allowPlaceholders=!0,t.allowSteps=!0,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):t.allowScenario&&e.match(/(例子|例|サンプル|예|ชุดของเหตุการณ์|ชุดของตัวอย่าง|ಉದಾಹರಣೆಗಳು|ఉదాహరణలు|ਉਦਾਹਰਨਾਂ|उदाहरण|نمونه ها|امثلة|דוגמאות|Үрнәкләр|Сценарији|Примеры|Примери|Приклади|Мисоллар|Мисаллар|Σενάρια|Παραδείγματα|You'll wanna|Voorbeelden|Variantai|Tapaukset|Se þe|Se the|Se ðe|Scenarios|Scenariji|Scenarijai|Przykłady|Primjeri|Primeri|Příklady|Príklady|Piemēri|Példák|Pavyzdžiai|Paraugs|Örnekler|Juhtumid|Exemplos|Exemples|Exemple|Exempel|EXAMPLZ|Examples|Esempi|Enghreifftiau|Ekzemploj|Eksempler|Ejemplos|Dữ liệu|Dead men tell no tales|Dæmi|Contoh|Cenários|Cenarios|Beispiller|Beispiele|Atburðarásir):/)?(t.allowPlaceholders=!1,t.allowSteps=!0,t.allowBackground=!1,t.allowMultilineArgument=!0,"keyword"):!t.inKeywordLine&&t.allowScenario&&e.match(/(場景|场景|劇本|剧本|シナリオ|시나리오|เหตุการณ์|ಕಥಾಸಾರಾಂಶ|సన్నివేశం|ਪਟਕਥਾ|परिदृश्य|سيناريو|سناریو|תרחיש|Сценарій|Сценарио|Сценарий|Пример|Σενάριο|Tình huống|The thing of it is|Tapaus|Szenario|Swa|Stsenaarium|Skenario|Situai|Senaryo|Senario|Scenaro|Scenariusz|Scenariu|Scénario|Scenario|Scenarijus|Scenārijs|Scenarij|Scenarie|Scénář|Scenár|Primer|MISHUN|Kịch bản|Keadaan|Heave to|Forgatókönyv|Escenario|Escenari|Cenário|Cenario|Awww, look mate|Atburðarás):/)?(t.allowPlaceholders=!1,t.allowSteps=!0,t.allowBackground=!1,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):!t.inKeywordLine&&t.allowSteps&&e.match(/(那麼|那么|而且|當|当|并且|同時|同时|前提|假设|假設|假定|假如|但是|但し|並且|もし|ならば|ただし|しかし|かつ|하지만|조건|먼저|만일|만약|단|그리고|그러면|และ |เมื่อ |แต่ |ดังนั้น |กำหนดให้ |ಸ್ಥಿತಿಯನ್ನು |ಮತ್ತು |ನೀಡಿದ |ನಂತರ |ಆದರೆ |మరియు |చెప్పబడినది |కాని |ఈ పరిస్థితిలో |అప్పుడు |ਪਰ |ਤਦ |ਜੇਕਰ |ਜਿਵੇਂ ਕਿ |ਜਦੋਂ |ਅਤੇ |यदि |परन्तु |पर |तब |तदा |तथा |जब |चूंकि |किन्तु |कदा |और |अगर |و |هنگامی |متى |لكن |عندما |ثم |بفرض |با فرض |اما |اذاً |آنگاه |כאשר |וגם |בהינתן |אזי |אז |אבל |Якщо |Һәм |Унда |Тоді |Тогда |То |Также |Та |Пусть |Припустимо, що |Припустимо |Онда |Но |Нехай |Нәтиҗәдә |Лекин |Ләкин |Коли |Когда |Когато |Када |Кад |К тому же |І |И |Задато |Задати |Задате |Если |Допустим |Дано |Дадено |Вә |Ва |Бирок |Әмма |Әйтик |Әгәр |Аммо |Али |Але |Агар |А також |А |Τότε |Όταν |Και |Δεδομένου |Αλλά |Þurh |Þegar |Þa þe |Þá |Þa |Zatati |Zakładając |Zadato |Zadate |Zadano |Zadani |Zadan |Za předpokladu |Za predpokladu |Youse know when youse got |Youse know like when |Yna |Yeah nah |Y'know |Y |Wun |Wtedy |When y'all |When |Wenn |WEN |wann |Ve |Và |Und |Un |ugeholl |Too right |Thurh |Thì |Then y'all |Then |Tha the |Tha |Tetapi |Tapi |Tak |Tada |Tad |Stel |Soit |Siis |Și |Şi |Si |Sed |Se |Så |Quando |Quand |Quan |Pryd |Potom |Pokud |Pokiaľ |Però |Pero |Pak |Oraz |Onda |Ond |Oletetaan |Og |Och |O zaman |Niin |Nhưng |När |Når |Mutta |Men |Mas |Maka |Majd |Mając |Mais |Maar |mä |Ma |Lorsque |Lorsqu'|Logo |Let go and haul |Kun |Kuid |Kui |Kiedy |Khi |Ketika |Kemudian |Keď |Když |Kaj |Kai |Kada |Kad |Jeżeli |Jeśli |Ja |It's just unbelievable |Ir |I CAN HAZ |I |Ha |Givun |Givet |Given y'all |Given |Gitt |Gegeven |Gegeben seien |Gegeben sei |Gdy |Gangway! |Fakat |Étant donnés |Etant donnés |Étant données |Etant données |Étant donnée |Etant donnée |Étant donné |Etant donné |Et |És |Entonces |Entón |Então |Entao |En |Eğer ki |Ef |Eeldades |E |Ðurh |Duota |Dun |Donitaĵo |Donat |Donada |Do |Diyelim ki |Diberi |Dengan |Den youse gotta |DEN |De |Dato |Dați fiind |Daţi fiind |Dati fiind |Dati |Date fiind |Date |Data |Dat fiind |Dar |Dann |dann |Dan |Dados |Dado |Dadas |Dada |Ða ðe |Ða |Cuando |Cho |Cando |Când |Cand |Cal |But y'all |But at the end of the day I reckon |BUT |But |Buh |Blimey! |Biết |Bet |Bagi |Aye |awer |Avast! |Atunci |Atesa |Atès |Apabila |Anrhegedig a |Angenommen |And y'all |And |AN |An |an |Amikor |Amennyiben |Ama |Als |Alors |Allora |Ali |Aleshores |Ale |Akkor |Ak |Adott |Ac |Aber |A zároveň |A tiež |A taktiež |A také |A |a |7 |\* )/)?(t.inStep=!0,t.allowPlaceholders=!0,t.allowMultilineArgument=!0,t.inKeywordLine=!0,"keyword"):e.match(/"[^"]*"?/)?"string":t.allowPlaceholders&&e.match(/<[^>]*>?/)?"variable":(e.next(),e.eatWhile(/[^@"<#]/),null)}}},Symbol.toStringTag,{value:"Module"}));function t6n(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var n6n,r6n=t6n("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 threadsafe throw throws trait transient try void volatile while"),i6n=t6n("catch class def do else enum finally for if interface switch trait try while"),o6n=t6n("return break continue"),a6n=t6n("null true false this");function s6n(e,t){var n=e.next();if('"'==n||"'"==n)return l6n(n,e,t);if(/[\[\]{}\(\),;\:\.]/.test(n))return n6n=n,null;if(/\d/.test(n))return e.eatWhile(/[\w\.]/),e.eat(/eE/)&&(e.eat(/\+\-/),e.eatWhile(/\d/)),"number";if("/"==n){if(e.eat("*"))return t.tokenize.push(h6n),h6n(e,t);if(e.eat("/"))return e.skipToEnd(),"comment";if(d6n(t.lastToken,!1))return l6n(n,e,t)}if("-"==n&&e.eat(">"))return n6n="->",null;if(/[+\-*&%=<>!?|\/~]/.test(n))return e.eatWhile(/[+\-*&%=<>|~]/),"operator";if(e.eatWhile(/[\w\$_]/),"@"==n)return e.eatWhile(/[\w\$_\.]/),"meta";if("."==t.lastToken)return"property";if(e.eat(":"))return n6n="proplabel","property";var r=e.current();return a6n.propertyIsEnumerable(r)?"atom":r6n.propertyIsEnumerable(r)?(i6n.propertyIsEnumerable(r)?n6n="newstatement":o6n.propertyIsEnumerable(r)&&(n6n="standalone"),"keyword"):"variable"}function l6n(e,t,n){var r=!1;if("/"!=e&&t.eat(e)){if(!t.eat(e))return"string";r=!0}function i(t,n){for(var i,o=!1,a=!r;null!=(i=t.next());){if(i==e&&!o){if(!r)break;if(t.match(e+e)){a=!0;break}}if('"'==e&&"$"==i&&!o){if(t.eat("{"))return n.tokenize.push(c6n()),"string";if(t.match(/^\w/,!1))return n.tokenize.push(u6n),"string"}o=!o&&"\\"==i}return a&&n.tokenize.pop(),"string"}return n.tokenize.push(i),i(t,n)}function c6n(){var e=1;function t(t,n){if("}"==t.peek()){if(0==--e)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n)}else"{"==t.peek()&&e++;return s6n(t,n)}return t.isBase=!0,t}function u6n(e,t){var n=e.match(/^(\.|[\w\$_]+)/);return n&&e.match("."==n[0]?/^[\w$_]/:/^\./)||t.tokenize.pop(),n?"."==n[0]?null:"variable":t.tokenize[t.tokenize.length-1](e,t)}function h6n(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize.pop();break}r="*"==n}return"comment"}function d6n(e,t){return!e||"operator"==e||"->"==e||/[\.\[\{\(,;:]/.test(e)||"newstatement"==e||"keyword"==e||"proplabel"==e||"standalone"==e&&!t}function p6n(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function f6n(e,t,n){return e.context=new p6n(e.indented,t,n,null,e.context)}function g6n(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}s6n.isBase=!0;const m6n={name:"groovy",startState:function(e){return{tokenize:[s6n],context:new p6n(-e,0,"top",!1),indented:0,startOfLine:!0,lastToken:null}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0,"statement"!=n.type||d6n(t.lastToken,!0)||(g6n(t),n=t.context)),e.eatSpace())return null;n6n=null;var r=t.tokenize[t.tokenize.length-1](e,t);if("comment"==r)return r;if(null==n.align&&(n.align=!0),";"!=n6n&&":"!=n6n||"statement"!=n.type)if("->"==n6n&&"statement"==n.type&&"}"==n.prev.type)g6n(t),t.context.align=!1;else if("{"==n6n)f6n(t,e.column(),"}");else if("["==n6n)f6n(t,e.column(),"]");else if("("==n6n)f6n(t,e.column(),")");else if("}"==n6n){for(;"statement"==n.type;)n=g6n(t);for("}"==n.type&&(n=g6n(t));"statement"==n.type;)n=g6n(t)}else n6n==n.type?g6n(t):("}"==n.type||"top"==n.type||"statement"==n.type&&"newstatement"==n6n)&&f6n(t,e.column(),"statement");else g6n(t);return t.startOfLine=!1,t.lastToken=n6n||r,r},indent:function(e,t,n){if(!e.tokenize[e.tokenize.length-1].isBase)return null;var r=t&&t.charAt(0),i=e.context;"statement"!=i.type||d6n(e.lastToken,!0)||(i=i.prev);var o=r==i.type;return"statement"==i.type?i.indented+("{"==r?0:n.unit):i.align?i.column+(o?0:1):i.indented+(o?0:n.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""']}}},O6n=Object.freeze(Object.defineProperty({__proto__:null,groovy:m6n},Symbol.toStringTag,{value:"Module"}));function A6n(e,t,n){return t(n),n(e,t)}var y6n=/[a-z_]/,v6n=/[A-Z]/,b6n=/\d/,x6n=/[0-9A-Fa-f]/,w6n=/[0-7]/,k6n=/[a-z_A-Z0-9'\xa1-\uffff]/,S6n=/[-!#$%&*+.\/<=>?@\\^|~:]/,T6n=/[(),;[\]`{}]/,$6n=/[ \t\v\f]/;function _6n(e,t){if(e.eatWhile($6n))return null;var n=e.next();if(T6n.test(n)){if("{"==n&&e.eat("-")){var r="comment";return e.eat("#")&&(r="meta"),A6n(e,t,C6n(r,1))}return null}if("'"==n)return e.eat("\\"),e.next(),e.eat("'")?"string":"error";if('"'==n)return A6n(e,t,Q6n);if(v6n.test(n))return e.eatWhile(k6n),e.eat(".")?"qualifier":"type";if(y6n.test(n))return e.eatWhile(k6n),"variable";if(b6n.test(n)){if("0"==n){if(e.eat(/[xX]/))return e.eatWhile(x6n),"integer";if(e.eat(/[oO]/))return e.eatWhile(w6n),"number"}e.eatWhile(b6n);r="number";return e.match(/^\.\d+/)&&(r="number"),e.eat(/[eE]/)&&(r="number",e.eat(/[-+]/),e.eatWhile(b6n)),r}return"."==n&&e.eat(".")?"keyword":S6n.test(n)?"-"==n&&e.eat(/-/)&&(e.eatWhile(/-/),!e.eat(S6n))?(e.skipToEnd(),"comment"):(e.eatWhile(S6n),"variable"):"error"}function C6n(e,t){return 0==t?_6n:function(n,r){for(var i=t;!n.eol();){var o=n.next();if("{"==o&&n.eat("-"))++i;else if("-"==o&&n.eat("}")&&0==--i)return r(_6n),e}return r(C6n(e,i)),e}}function Q6n(e,t){for(;!e.eol();){var n=e.next();if('"'==n)return t(_6n),"string";if("\\"==n){if(e.eol()||e.eat($6n))return t(P6n),"string";e.eat("&")||e.next()}}return t(_6n),"error"}function P6n(e,t){return e.eat("\\")?A6n(e,t,Q6n):(e.next(),t(_6n),"error")}var E6n=function(){var e={};function t(t){return function(){for(var n=0;n<arguments.length;n++)e[arguments[n]]=t}}return t("keyword")("case","class","data","default","deriving","do","else","foreign","if","import","in","infix","infixl","infixr","instance","let","module","newtype","of","then","type","where","_"),t("keyword")("..",":","::","=","\\","<-","->","@","~","=>"),t("builtin")("!!","$!","$","&&","+","++","-",".","/","/=","<","<*","<=","<$>","<*>","=<<","==",">",">=",">>",">>=","^","^^","||","*","*>","**"),t("builtin")("Applicative","Bool","Bounded","Char","Double","EQ","Either","Enum","Eq","False","FilePath","Float","Floating","Fractional","Functor","GT","IO","IOError","Int","Integer","Integral","Just","LT","Left","Maybe","Monad","Nothing","Num","Ord","Ordering","Rational","Read","ReadS","Real","RealFloat","RealFrac","Right","Show","ShowS","String","True"),t("builtin")("abs","acos","acosh","all","and","any","appendFile","asTypeOf","asin","asinh","atan","atan2","atanh","break","catch","ceiling","compare","concat","concatMap","const","cos","cosh","curry","cycle","decodeFloat","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","fromEnum","fromInteger","fromIntegral","fromRational","fst","gcd","getChar","getContents","getLine","head","id","init","interact","ioError","isDenormalized","isIEEE","isInfinite","isNaN","isNegativeZero","iterate","last","lcm","length","lex","lines","log","logBase","lookup","map","mapM","mapM_","max","maxBound","maximum","maybe","min","minBound","minimum","mod","negate","not","notElem","null","odd","or","otherwise","pi","pred","print","product","properFraction","pure","putChar","putStr","putStrLn","quot","quotRem","read","readFile","readIO","readList","readLn","readParen","reads","readsPrec","realToFrac","recip","rem","repeat","replicate","return","reverse","round","scaleFloat","scanl","scanl1","scanr","scanr1","seq","sequence","sequence_","show","showChar","showList","showParen","showString","shows","showsPrec","significand","signum","sin","sinh","snd","span","splitAt","sqrt","subtract","succ","sum","tail","take","takeWhile","tan","tanh","toEnum","toInteger","toRational","truncate","uncurry","undefined","unlines","until","unwords","unzip","unzip3","userError","words","writeFile","zip","zip3","zipWith","zipWith3"),e}();const R6n={name:"haskell",startState:function(){return{f:_6n}},copyState:function(e){return{f:e.f}},token:function(e,t){var n=t.f(e,function(e){t.f=e}),r=e.current();return E6n.hasOwnProperty(r)?E6n[r]:n},languageData:{commentTokens:{line:"--",block:{open:"{-",close:"-}"}}}},B6n=Object.freeze(Object.defineProperty({__proto__:null,haskell:R6n},Symbol.toStringTag,{value:"Module"}));function I6n(e){return{type:e,style:"keyword"}}var L6n,D6n=I6n("keyword a"),M6n=I6n("keyword b"),N6n=I6n("keyword c"),X6n=I6n("operator"),F6n={type:"atom",style:"atom"},U6n={type:"attribute",style:"attribute"},z6n=I6n("typedef"),q6n={if:D6n,while:D6n,else:M6n,do:M6n,try:M6n,return:N6n,break:N6n,continue:N6n,new:N6n,throw:N6n,var:I6n("var"),inline:U6n,static:U6n,using:I6n("import"),public:U6n,private:U6n,cast:I6n("cast"),import:I6n("import"),macro:I6n("macro"),function:I6n("function"),catch:I6n("catch"),untyped:I6n("untyped"),callback:I6n("cb"),for:I6n("for"),switch:I6n("switch"),case:I6n("case"),default:I6n("default"),in:X6n,never:I6n("property_access"),trace:I6n("trace"),class:z6n,abstract:z6n,enum:z6n,interface:z6n,typedef:z6n,extends:z6n,implements:z6n,dynamic:z6n,true:F6n,false:F6n,null:F6n},V6n=/[+\-*&%=<>!?|]/;function W6n(e,t,n){return t.tokenize=n,n(e,t)}function j6n(e,t){for(var n,r=!1;null!=(n=e.next());){if(n==t&&!r)return!0;r=!r&&"\\"==n}}function Y6n(e,t,n){return z6n=e,L6n=n,t}function Z6n(e,t){var n=e.next();if('"'==n||"'"==n)return W6n(e,t,(r=n,function(e,t){return j6n(e,r)&&(t.tokenize=Z6n),Y6n("string","string")}));if(/[\[\]{}\(\),;\:\.]/.test(n))return Y6n(n);if("0"==n&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),Y6n("number","number");if(/\d/.test(n)||"-"==n&&e.eat(/\d/))return e.match(/^\d*(?:\.\d*(?!\.))?(?:[eE][+\-]?\d+)?/),Y6n("number","number");if(t.reAllowed&&"~"==n&&e.eat(/\//))return j6n(e,"/"),e.eatWhile(/[gimsu]/),Y6n("regexp","string.special");if("/"==n)return e.eat("*")?W6n(e,t,G6n):e.eat("/")?(e.skipToEnd(),Y6n("comment","comment")):(e.eatWhile(V6n),Y6n("operator",null,e.current()));if("#"==n)return e.skipToEnd(),Y6n("conditional","meta");if("@"==n)return e.eat(/:/),e.eatWhile(/[\w_]/),Y6n("metadata","meta");if(V6n.test(n))return e.eatWhile(V6n),Y6n("operator",null,e.current());if(/[A-Z]/.test(n))return e.eatWhile(/[\w_<>]/),Y6n("type","type",i=e.current());e.eatWhile(/[\w_]/);var r,i=e.current(),o=q6n.propertyIsEnumerable(i)&&q6n[i];return o&&t.kwAllowed?Y6n(o.type,o.style,i):Y6n("variable","variable",i)}function G6n(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=Z6n;break}r="*"==n}return Y6n("comment","comment")}var H6n={atom:!0,number:!0,variable:!0,string:!0,regexp:!0};function K6n(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function J6n(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0}function e7n(e,t){if(/[a-z]/.test(t.charAt(0)))return!1;for(var n=e.importedtypes.length,r=0;r<n;r++)if(e.importedtypes[r]==t)return!0}function t7n(e){for(var t=n7n.state,n=t.importedtypes;n;n=n.next)if(n.name==e)return;t.importedtypes={name:e,next:t.importedtypes}}var n7n={state:null,marked:null,cc:null};function r7n(){for(var e=arguments.length-1;e>=0;e--)n7n.cc.push(arguments[e])}function i7n(){return r7n.apply(null,arguments),!0}function o7n(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function a7n(e){var t=n7n.state;if(t.context){if(n7n.marked="def",o7n(e,t.localVars))return;t.localVars={name:e,next:t.localVars}}else if(t.globalVars){if(o7n(e,t.globalVars))return;t.globalVars={name:e,next:t.globalVars}}}var s7n={name:"this",next:null};function l7n(){n7n.state.context||(n7n.state.localVars=s7n),n7n.state.context={prev:n7n.state.context,vars:n7n.state.localVars}}function c7n(){n7n.state.localVars=n7n.state.context.vars,n7n.state.context=n7n.state.context.prev}function u7n(e,t){var n=function(){var n=n7n.state;n.lexical=new K6n(n.indented,n7n.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function h7n(){var e=n7n.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function d7n(e){return function t(n){return n==e?i7n():";"==e?r7n():i7n(t)}}function p7n(e){return"@"==e?i7n(A7n):"var"==e?i7n(u7n("vardef"),$7n,d7n(";"),h7n):"keyword a"==e?i7n(u7n("form"),f7n,p7n,h7n):"keyword b"==e?i7n(u7n("form"),p7n,h7n):"{"==e?i7n(u7n("}"),l7n,T7n,h7n,c7n):";"==e?i7n():"attribute"==e?i7n(O7n):"function"==e?i7n(P7n):"for"==e?i7n(u7n("form"),d7n("("),u7n(")"),C7n,d7n(")"),h7n,p7n,h7n):"variable"==e?i7n(u7n("stat"),x7n):"switch"==e?i7n(u7n("form"),f7n,u7n("}","switch"),d7n("{"),T7n,h7n,h7n):"case"==e?i7n(f7n,d7n(":")):"default"==e?i7n(d7n(":")):"catch"==e?i7n(u7n("form"),l7n,d7n("("),I7n,d7n(")"),p7n,h7n,c7n):"import"==e?i7n(v7n,d7n(";")):"typedef"==e?i7n(b7n):r7n(u7n("stat"),f7n,d7n(";"),h7n)}function f7n(e){return H6n.hasOwnProperty(e)||"type"==e?i7n(m7n):"function"==e?i7n(P7n):"keyword c"==e?i7n(g7n):"("==e?i7n(u7n(")"),g7n,d7n(")"),h7n,m7n):"operator"==e?i7n(f7n):"["==e?i7n(u7n("]"),S7n(g7n,"]"),h7n,m7n):"{"==e?i7n(u7n("}"),S7n(k7n,"}"),h7n,m7n):i7n()}function g7n(e){return e.match(/[;\}\)\],]/)?r7n():r7n(f7n)}function m7n(e,t){return"operator"==e&&/\+\+|--/.test(t)?i7n(m7n):"operator"==e||":"==e?i7n(f7n):";"!=e?"("==e?i7n(u7n(")"),S7n(f7n,")"),h7n,m7n):"."==e?i7n(w7n,m7n):"["==e?i7n(u7n("]"),f7n,d7n("]"),h7n,m7n):void 0:void 0}function O7n(e){return"attribute"==e?i7n(O7n):"function"==e?i7n(P7n):"var"==e?i7n($7n):void 0}function A7n(e){return":"==e||"variable"==e?i7n(A7n):"("==e?i7n(u7n(")"),S7n(y7n,")"),h7n,p7n):void 0}function y7n(e){if("variable"==e)return i7n()}function v7n(e,t){return"variable"==e&&/[A-Z]/.test(t.charAt(0))?(t7n(t),i7n()):"variable"==e||"property"==e||"."==e||"*"==t?i7n(v7n):void 0}function b7n(e,t){return"variable"==e&&/[A-Z]/.test(t.charAt(0))?(t7n(t),i7n()):"type"==e&&/[A-Z]/.test(t.charAt(0))?i7n():void 0}function x7n(e){return":"==e?i7n(h7n,p7n):r7n(m7n,d7n(";"),h7n)}function w7n(e){if("variable"==e)return n7n.marked="property",i7n()}function k7n(e){if("variable"==e&&(n7n.marked="property"),H6n.hasOwnProperty(e))return i7n(d7n(":"),f7n)}function S7n(e,t){function n(r){return","==r?i7n(e,n):r==t?i7n():i7n(d7n(t))}return function(r){return r==t?i7n():r7n(e,n)}}function T7n(e){return"}"==e?i7n():r7n(p7n,T7n)}function $7n(e,t){return"variable"==e?(a7n(t),i7n(E7n,_7n)):i7n()}function _7n(e,t){return"="==t?i7n(f7n,_7n):","==e?i7n($7n):void 0}function C7n(e,t){return"variable"==e?(a7n(t),i7n(Q7n,f7n)):r7n()}function Q7n(e,t){if("in"==t)return i7n()}function P7n(e,t){return"variable"==e||"type"==e?(a7n(t),i7n(P7n)):"new"==t?i7n(P7n):"("==e?i7n(u7n(")"),l7n,S7n(I7n,")"),h7n,E7n,p7n,c7n):void 0}function E7n(e){if(":"==e)return i7n(R7n)}function R7n(e){return"type"==e||"variable"==e?i7n():"{"==e?i7n(u7n("}"),S7n(B7n,"}"),h7n):void 0}function B7n(e){if("variable"==e)return i7n(E7n)}function I7n(e,t){if("variable"==e)return a7n(t),i7n(E7n)}c7n.lex=!0,h7n.lex=!0;const L7n={name:"haxe",startState:function(e){return{tokenize:Z6n,reAllowed:!0,kwAllowed:!0,cc:[],lexical:new K6n(-e,0,"block",!1),importedtypes:["Int","Float","String","Void","Std","Bool","Dynamic","Array"],context:null,indented:0}},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==z6n?n:(t.reAllowed=!("operator"!=z6n&&"keyword c"!=z6n&&!z6n.match(/^[\[{}\(,;:]$/)),t.kwAllowed="."!=z6n,function(e,t,n,r,i){var o=e.cc;for(n7n.state=e,n7n.stream=i,n7n.marked=null,n7n.cc=o,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():p7n)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return n7n.marked?n7n.marked:"variable"==n&&J6n(e,r)?"variableName.local":"variable"==n&&e7n(e,r)?"variableName.special":t}}(t,n,z6n,L6n,e))},indent:function(e,t,n){if(e.tokenize!=Z6n)return 0;var r=t&&t.charAt(0),i=e.lexical;"stat"==i.type&&"}"==r&&(i=i.prev);var o=i.type,a=r==o;return"vardef"==o?i.indented+4:"form"==o&&"{"==r?i.indented:"stat"==o||"form"==o?i.indented+n.unit:"switch"!=i.info||a?i.align?i.column+(a?0:1):i.indented+(a?0:n.unit):i.indented+(/^(?:case|default)\b/.test(t)?n.unit:2*n.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}},D7n=Object.freeze(Object.defineProperty({__proto__:null,haxe:L7n,hxml:{name:"hxml",startState:function(){return{define:!1,inString:!1}},token:function(e,t){var n=e.peek(),r=e.sol();if("#"==n)return e.skipToEnd(),"comment";if(r&&"-"==n){var i="variable-2";return e.eat(/-/),"-"==e.peek()&&(e.eat(/-/),i="keyword a"),"D"==e.peek()&&(e.eat(/[D]/),i="keyword c",t.define=!0),e.eatWhile(/[A-Z]/i),i}n=e.peek();return 0==t.inString&&"'"==n&&(t.inString=!0,e.next()),1==t.inString?(e.skipTo("'")||e.skipToEnd(),"'"==e.peek()&&(e.next(),t.inString=!1),"string"):(e.next(),null)},languageData:{commentTokens:{line:"#"}}}},Symbol.toStringTag,{value:"Module"}));function M7n(e,t){return e.skipToEnd(),t.cur=q7n,"error"}function N7n(e,t){return e.match(/^HTTP\/\d\.\d/)?(t.cur=X7n,"keyword"):e.match(/^[A-Z]+/)&&/[ \t]/.test(e.peek())?(t.cur=U7n,"keyword"):M7n(e,t)}function X7n(e,t){var n=e.match(/^\d+/);if(!n)return M7n(e,t);t.cur=F7n;var r=Number(n[0]);return r>=100&&r<400?"atom":"error"}function F7n(e,t){return e.skipToEnd(),t.cur=q7n,null}function U7n(e,t){return e.eatWhile(/\S/),t.cur=z7n,"string.special"}function z7n(e,t){return e.match(/^HTTP\/\d\.\d$/)?(t.cur=q7n,"keyword"):M7n(e,t)}function q7n(e){return e.sol()&&!e.eat(/[ \t]/)?e.match(/^.*?:/)?"atom":(e.skipToEnd(),"error"):(e.skipToEnd(),"string")}function V7n(e){return e.skipToEnd(),null}const W7n={name:"http",token:function(e,t){var n=t.cur;return n!=q7n&&n!=V7n&&e.eatSpace()?null:n(e,t)},blankLine:function(e){e.cur=V7n},startState:function(){return{cur:N7n}}},j7n=Object.freeze(Object.defineProperty({__proto__:null,http:W7n},Symbol.toStringTag,{value:"Module"}));function Y7n(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var Z7n=["a_correlate","abs","acos","adapt_hist_equal","alog","alog2","alog10","amoeba","annotate","app_user_dir","app_user_dir_query","arg_present","array_equal","array_indices","arrow","ascii_template","asin","assoc","atan","axis","axis","bandpass_filter","bandreject_filter","barplot","bar_plot","beseli","beselj","beselk","besely","beta","biginteger","bilinear","bin_date","binary_template","bindgen","binomial","bit_ffs","bit_population","blas_axpy","blk_con","boolarr","boolean","boxplot","box_cursor","breakpoint","broyden","bubbleplot","butterworth","bytarr","byte","byteorder","bytscl","c_correlate","calendar","caldat","call_external","call_function","call_method","call_procedure","canny","catch","cd","cdf","ceil","chebyshev","check_math","chisqr_cvf","chisqr_pdf","choldc","cholsol","cindgen","cir_3pnt","clipboard","close","clust_wts","cluster","cluster_tree","cmyk_convert","code_coverage","color_convert","color_exchange","color_quan","color_range_map","colorbar","colorize_sample","colormap_applicable","colormap_gradient","colormap_rotation","colortable","comfit","command_line_args","common","compile_opt","complex","complexarr","complexround","compute_mesh_normals","cond","congrid","conj","constrained_min","contour","contour","convert_coord","convol","convol_fft","coord2to3","copy_lun","correlate","cos","cosh","cpu","cramer","createboxplotdata","create_cursor","create_struct","create_view","crossp","crvlength","ct_luminance","cti_test","cursor","curvefit","cv_coord","cvttobm","cw_animate","cw_animate_getp","cw_animate_load","cw_animate_run","cw_arcball","cw_bgroup","cw_clr_index","cw_colorsel","cw_defroi","cw_field","cw_filesel","cw_form","cw_fslider","cw_light_editor","cw_light_editor_get","cw_light_editor_set","cw_orient","cw_palette_editor","cw_palette_editor_get","cw_palette_editor_set","cw_pdmenu","cw_rgbslider","cw_tmpl","cw_zoom","db_exists","dblarr","dcindgen","dcomplex","dcomplexarr","define_key","define_msgblk","define_msgblk_from_file","defroi","defsysv","delvar","dendro_plot","dendrogram","deriv","derivsig","determ","device","dfpmin","diag_matrix","dialog_dbconnect","dialog_message","dialog_pickfile","dialog_printersetup","dialog_printjob","dialog_read_image","dialog_write_image","dictionary","digital_filter","dilate","dindgen","dissolve","dist","distance_measure","dlm_load","dlm_register","doc_library","double","draw_roi","edge_dog","efont","eigenql","eigenvec","ellipse","elmhes","emboss","empty","enable_sysrtn","eof","eos","erase","erf","erfc","erfcx","erode","errorplot","errplot","estimator_filter","execute","exit","exp","expand","expand_path","expint","extract","extract_slice","f_cvf","f_pdf","factorial","fft","file_basename","file_chmod","file_copy","file_delete","file_dirname","file_expand_path","file_gunzip","file_gzip","file_info","file_lines","file_link","file_mkdir","file_move","file_poll_input","file_readlink","file_same","file_search","file_tar","file_test","file_untar","file_unzip","file_which","file_zip","filepath","findgen","finite","fix","flick","float","floor","flow3","fltarr","flush","format_axis_values","forward_function","free_lun","fstat","fulstr","funct","function","fv_test","fx_root","fz_roots","gamma","gamma_ct","gauss_cvf","gauss_pdf","gauss_smooth","gauss2dfit","gaussfit","gaussian_function","gaussint","get_drive_list","get_dxf_objects","get_kbrd","get_login_info","get_lun","get_screen_size","getenv","getwindows","greg2jul","grib","grid_input","grid_tps","grid3","griddata","gs_iter","h_eq_ct","h_eq_int","hanning","hash","hdf","hdf5","heap_free","heap_gc","heap_nosave","heap_refcount","heap_save","help","hilbert","hist_2d","hist_equal","histogram","hls","hough","hqr","hsv","i18n_multibytetoutf8","i18n_multibytetowidechar","i18n_utf8tomultibyte","i18n_widechartomultibyte","ibeta","icontour","iconvertcoord","idelete","identity","idl_base64","idl_container","idl_validname","idlexbr_assistant","idlitsys_createtool","idlunit","iellipse","igamma","igetcurrent","igetdata","igetid","igetproperty","iimage","image","image_cont","image_statistics","image_threshold","imaginary","imap","indgen","int_2d","int_3d","int_tabulated","intarr","interpol","interpolate","interval_volume","invert","ioctl","iopen","ir_filter","iplot","ipolygon","ipolyline","iputdata","iregister","ireset","iresolve","irotate","isa","isave","iscale","isetcurrent","isetproperty","ishft","isocontour","isosurface","isurface","itext","itranslate","ivector","ivolume","izoom","journal","json_parse","json_serialize","jul2greg","julday","keyword_set","krig2d","kurtosis","kw_test","l64indgen","la_choldc","la_cholmprove","la_cholsol","la_determ","la_eigenproblem","la_eigenql","la_eigenvec","la_elmhes","la_gm_linear_model","la_hqr","la_invert","la_least_square_equality","la_least_squares","la_linear_equation","la_ludc","la_lumprove","la_lusol","la_svd","la_tridc","la_trimprove","la_triql","la_trired","la_trisol","label_date","label_region","ladfit","laguerre","lambda","lambdap","lambertw","laplacian","least_squares_filter","leefilt","legend","legendre","linbcg","lindgen","linfit","linkimage","list","ll_arc_distance","lmfit","lmgr","lngamma","lnp_test","loadct","locale_get","logical_and","logical_or","logical_true","lon64arr","lonarr","long","long64","lsode","lu_complex","ludc","lumprove","lusol","m_correlate","machar","make_array","make_dll","make_rt","map","mapcontinents","mapgrid","map_2points","map_continents","map_grid","map_image","map_patch","map_proj_forward","map_proj_image","map_proj_info","map_proj_init","map_proj_inverse","map_set","matrix_multiply","matrix_power","max","md_test","mean","meanabsdev","mean_filter","median","memory","mesh_clip","mesh_decimate","mesh_issolid","mesh_merge","mesh_numtriangles","mesh_obj","mesh_smooth","mesh_surfacearea","mesh_validate","mesh_volume","message","min","min_curve_surf","mk_html_help","modifyct","moment","morph_close","morph_distance","morph_gradient","morph_hitormiss","morph_open","morph_thin","morph_tophat","multi","n_elements","n_params","n_tags","ncdf","newton","noise_hurl","noise_pick","noise_scatter","noise_slur","norm","obj_class","obj_destroy","obj_hasmethod","obj_isa","obj_new","obj_valid","objarr","on_error","on_ioerror","online_help","openr","openu","openw","oplot","oploterr","orderedhash","p_correlate","parse_url","particle_trace","path_cache","path_sep","pcomp","plot","plot3d","plot","plot_3dbox","plot_field","ploterr","plots","polar_contour","polar_surface","polyfill","polyshade","pnt_line","point_lun","polarplot","poly","poly_2d","poly_area","poly_fit","polyfillv","polygon","polyline","polywarp","popd","powell","pref_commit","pref_get","pref_set","prewitt","primes","print","printf","printd","pro","product","profile","profiler","profiles","project_vol","ps_show_fonts","psafm","pseudo","ptr_free","ptr_new","ptr_valid","ptrarr","pushd","qgrid3","qhull","qromb","qromo","qsimp","query_*","query_ascii","query_bmp","query_csv","query_dicom","query_gif","query_image","query_jpeg","query_jpeg2000","query_mrsid","query_pict","query_png","query_ppm","query_srf","query_tiff","query_video","query_wav","r_correlate","r_test","radon","randomn","randomu","ranks","rdpix","read","readf","read_ascii","read_binary","read_bmp","read_csv","read_dicom","read_gif","read_image","read_interfile","read_jpeg","read_jpeg2000","read_mrsid","read_pict","read_png","read_ppm","read_spr","read_srf","read_sylk","read_tiff","read_video","read_wav","read_wave","read_x11_bitmap","read_xwd","reads","readu","real_part","rebin","recall_commands","recon3","reduce_colors","reform","region_grow","register_cursor","regress","replicate","replicate_inplace","resolve_all","resolve_routine","restore","retall","return","reverse","rk4","roberts","rot","rotate","round","routine_filepath","routine_info","rs_test","s_test","save","savgol","scale3","scale3d","scatterplot","scatterplot3d","scope_level","scope_traceback","scope_varfetch","scope_varname","search2d","search3d","sem_create","sem_delete","sem_lock","sem_release","set_plot","set_shading","setenv","sfit","shade_surf","shade_surf_irr","shade_volume","shift","shift_diff","shmdebug","shmmap","shmunmap","shmvar","show3","showfont","signum","simplex","sin","sindgen","sinh","size","skewness","skip_lun","slicer3","slide_image","smooth","sobel","socket","sort","spawn","sph_4pnt","sph_scat","spher_harm","spl_init","spl_interp","spline","spline_p","sprsab","sprsax","sprsin","sprstp","sqrt","standardize","stddev","stop","strarr","strcmp","strcompress","streamline","streamline","stregex","stretch","string","strjoin","strlen","strlowcase","strmatch","strmessage","strmid","strpos","strput","strsplit","strtrim","struct_assign","struct_hide","strupcase","surface","surface","surfr","svdc","svdfit","svsol","swap_endian","swap_endian_inplace","symbol","systime","t_cvf","t_pdf","t3d","tag_names","tan","tanh","tek_color","temporary","terminal_size","tetra_clip","tetra_surface","tetra_volume","text","thin","thread","threed","tic","time_test2","timegen","timer","timestamp","timestamptovalues","tm_test","toc","total","trace","transpose","tri_surf","triangulate","trigrid","triql","trired","trisol","truncate_lun","ts_coef","ts_diff","ts_fcast","ts_smooth","tv","tvcrs","tvlct","tvrd","tvscl","typename","uindgen","uint","uintarr","ul64indgen","ulindgen","ulon64arr","ulonarr","ulong","ulong64","uniq","unsharp_mask","usersym","value_locate","variance","vector","vector_field","vel","velovect","vert_t3d","voigt","volume","voronoi","voxel_proj","wait","warp_tri","watershed","wdelete","wf_draw","where","widget_base","widget_button","widget_combobox","widget_control","widget_displaycontextmenu","widget_draw","widget_droplist","widget_event","widget_info","widget_label","widget_list","widget_propertysheet","widget_slider","widget_tab","widget_table","widget_text","widget_tree","widget_tree_move","widget_window","wiener_filter","window","window","write_bmp","write_csv","write_gif","write_image","write_jpeg","write_jpeg2000","write_nrif","write_pict","write_png","write_ppm","write_spr","write_srf","write_sylk","write_tiff","write_video","write_wav","write_wave","writeu","wset","wshow","wtn","wv_applet","wv_cwt","wv_cw_wavelet","wv_denoise","wv_dwt","wv_fn_coiflet","wv_fn_daubechies","wv_fn_gaussian","wv_fn_haar","wv_fn_morlet","wv_fn_paul","wv_fn_symlet","wv_import_data","wv_import_wavelet","wv_plot3d_wps","wv_plot_multires","wv_pwt","wv_tool_denoise","xbm_edit","xdisplayfile","xdxf","xfont","xinteranimate","xloadct","xmanager","xmng_tmpl","xmtool","xobjview","xobjview_rotate","xobjview_write_image","xpalette","xpcolor","xplot3d","xregistered","xroi","xsq_test","xsurface","xvaredit","xvolume","xvolume_rotate","xvolume_write_image","xyouts","zlib_compress","zlib_uncompress","zoom","zoom_24"],G7n=Y7n(Z7n),H7n=["begin","end","endcase","endfor","endwhile","endif","endrep","endforeach","break","case","continue","for","foreach","goto","if","then","else","repeat","until","switch","while","do","pro","function"],K7n=Y7n(H7n),J7n=new RegExp("^[_a-z¡-][_a-z0-9¡-]*","i"),e8n=/[+\-*&=<>\/@#~$]/,t8n=new RegExp("(and|or|eq|lt|le|gt|ge|ne|not)","i");const n8n={name:"idl",token:function(e){return function(e){if(e.eatSpace())return null;if(e.match(";"))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+/))return"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))return"number"}return e.match(/^"([^"]|(""))*"/)||e.match(/^'([^']|(''))*'/)?"string":e.match(K7n)?"keyword":e.match(G7n)?"builtin":e.match(J7n)?"variable":e.match(e8n)||e.match(t8n)?"operator":(e.next(),null)}(e)},languageData:{autocomplete:Z7n.concat(H7n)}},r8n=Object.freeze(Object.defineProperty({__proto__:null,idl:n8n},Symbol.toStringTag,{value:"Module"}));function i8n(e){var t,n,r=e.statementIndent,i=e.jsonld,o=e.json||i,a=e.typescript,s=e.wordCharacters||/[\w$\xa1-\uffff]/,l=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),c=/[+\-*&%=<>!?|~^@]/,u=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function h(e,r,i){return t=e,n=i,r}function d(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){var r,o=!1;if(i&&"@"==e.peek()&&e.match(u))return t.tokenize=d,h("jsonld-keyword","meta");for(;null!=(r=e.next())&&(r!=n||o);)o=!o&&"\\"==r;return o||(t.tokenize=d),h("string","string")}),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return h("number","number");if("."==r&&e.match(".."))return h("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return h(r);if("="==r&&e.eat(">"))return h("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return h("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),h("number","number");if("/"==r)return e.eat("*")?(t.tokenize=p,p(e,t)):e.eat("/")?(e.skipToEnd(),h("comment","comment")):function(e,t,n){return t.tokenize==d&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-n))}(e,t,1)?(function(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),h("regexp","string.special")):(e.eat("="),h("operator","operator",e.current()));if("`"==r)return t.tokenize=f,f(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),h("meta","meta");if("#"==r&&e.eatWhile(s))return h("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),h("comment","comment");if(c.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-|&?]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?h("."):h("operator","operator",e.current());if(s.test(r)){e.eatWhile(s);var o=e.current();if("."!=t.lastType){if(l.propertyIsEnumerable(o)){var a=l[o];return h(a.type,a.style,o)}if("async"==o&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return h("async","keyword",o)}return h("variable","variable",o)}}function p(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=d;break}r="*"==n}return h("comment","comment")}function f(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=d;break}r=!r&&"\\"==n}return h("quasi","string.special",e.current())}function g(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(a){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,l=n-1;l>=0;--l){var c=e.string.charAt(l),u="([{}])".indexOf(c);if(u>=0&&u<3){if(!i){++l;break}if(0==--i){"("==c&&(o=!0);break}}else if(u>=3&&u<6)++i;else if(s.test(c))o=!0;else if(/["'\/`]/.test(c))for(;;--l){if(0==l)return;if(e.string.charAt(l-1)==c&&"\\"!=e.string.charAt(l-2)){l--;break}}else if(o&&!i){++l;break}}o&&!i&&(t.fatArrowAt=l)}}var m={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function O(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function A(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}var y={state:null,marked:null,cc:null};function v(){for(var e=arguments.length-1;e>=0;e--)y.cc.push(arguments[e])}function b(){return v.apply(null,arguments),!0}function x(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function w(t){var n=y.state;if(y.marked="def",n.context)if("var"==n.lexical.info&&n.context&&n.context.block){var r=k(t,n.context);if(null!=r)return void(n.context=r)}else if(!x(t,n.localVars))return void(n.localVars=new $(t,n.localVars));e.globalVars&&!x(t,n.globalVars)&&(n.globalVars=new $(t,n.globalVars))}function k(e,t){if(t){if(t.block){var n=k(e,t.prev);return n?n==t.prev?t:new T(n,t.vars,!0):null}return x(e,t.vars)?t:new T(t.prev,new $(e,t.vars),!1)}return null}function S(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function T(e,t,n){this.prev=e,this.vars=t,this.block=n}function $(e,t){this.name=e,this.next=t}var _=new $("this",new $("arguments",null));function C(){y.state.context=new T(y.state.context,y.state.localVars,!1),y.state.localVars=_}function Q(){y.state.context=new T(y.state.context,y.state.localVars,!0),y.state.localVars=null}function P(){y.state.localVars=y.state.context.vars,y.state.context=y.state.context.prev}function E(e,t){var n=function(){var n=y.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new O(r,y.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function R(){var e=y.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function B(e){return function t(n){return n==e?b():";"==e||"}"==n||")"==n||"]"==n?v():b(t)}}function I(e,t){return"var"==e?b(E("vardef",t),ye,B(";"),R):"keyword a"==e?b(E("form"),N,I,R):"keyword b"==e?b(E("form"),I,R):"keyword d"==e?y.stream.match(/^\s*$/,!1)?b():b(E("stat"),F,B(";"),R):"debugger"==e?b(B(";")):"{"==e?b(E("}"),Q,re,R,P):";"==e?b():"if"==e?("else"==y.state.lexical.info&&y.state.cc[y.state.cc.length-1]==R&&y.state.cc.pop()(),b(E("form"),N,I,R,Se)):"function"==e?b(Ce):"for"==e?b(E("form"),Q,Te,I,P,R):"class"==e||a&&"interface"==t?(y.marked="keyword",b(E("form","class"==e?e:t),Be,R)):"variable"==e?a&&"declare"==t?(y.marked="keyword",b(I)):a&&("module"==t||"enum"==t||"type"==t)&&y.stream.match(/^\s*\w/,!1)?(y.marked="keyword","enum"==t?b(We):"type"==t?b(Pe,B("operator"),le,B(";")):b(E("form"),ve,B("{"),E("}"),re,R,R)):a&&"namespace"==t?(y.marked="keyword",b(E("form"),D,I,R)):a&&"abstract"==t?(y.marked="keyword",b(I)):b(E("stat"),G):"switch"==e?b(E("form"),N,B("{"),E("}","switch"),Q,re,R,R,P):"case"==e?b(D,B(":")):"default"==e?b(B(":")):"catch"==e?b(E("form"),C,L,I,R,P):"export"==e?b(E("stat"),Me,R):"import"==e?b(E("stat"),Xe,R):"async"==e?b(I):"@"==t?b(D,I):v(E("stat"),D,B(";"),R)}function L(e){if("("==e)return b(Ee,B(")"))}function D(e,t){return X(e,t,!1)}function M(e,t){return X(e,t,!0)}function N(e){return"("!=e?v():b(E(")"),F,B(")"),R)}function X(e,t,n){if(y.state.fatArrowAt==y.stream.start){var r=n?j:W;if("("==e)return b(C,E(")"),te(Ee,")"),R,B("=>"),r,P);if("variable"==e)return v(C,ve,B("=>"),r,P)}var i=n?z:U;return m.hasOwnProperty(e)?b(i):"function"==e?b(Ce,i):"class"==e||a&&"interface"==t?(y.marked="keyword",b(E("form"),Re,R)):"keyword c"==e||"async"==e?b(n?M:D):"("==e?b(E(")"),F,B(")"),R,i):"operator"==e||"spread"==e?b(n?M:D):"["==e?b(E("]"),Ve,R,i):"{"==e?ne(K,"}",null,i):"quasi"==e?v(q,i):"new"==e?b(function(e){return function(t){return"."==t?b(e?Z:Y):"variable"==t&&a?b(me,e?z:U):v(e?M:D)}}(n)):b()}function F(e){return e.match(/[;\}\)\],]/)?v():v(D)}function U(e,t){return","==e?b(F):z(e,t,!1)}function z(e,t,n){var r=0==n?U:z,i=0==n?D:M;return"=>"==e?b(C,n?j:W,P):"operator"==e?/\+\+|--/.test(t)||a&&"!"==t?b(r):a&&"<"==t&&y.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?b(E(">"),te(le,">"),R,r):"?"==t?b(D,B(":"),i):b(i):"quasi"==e?v(q,r):";"!=e?"("==e?ne(M,")","call",r):"."==e?b(H,r):"["==e?b(E("]"),F,B("]"),R,r):a&&"as"==t?(y.marked="keyword",b(le,r)):"regexp"==e?(y.state.lastType=y.marked="operator",y.stream.backUp(y.stream.pos-y.stream.start-1),b(i)):void 0:void 0}function q(e,t){return"quasi"!=e?v():"${"!=t.slice(t.length-2)?b(q):b(F,V)}function V(e){if("}"==e)return y.marked="string.special",y.state.tokenize=f,b(q)}function W(e){return g(y.stream,y.state),v("{"==e?I:D)}function j(e){return g(y.stream,y.state),v("{"==e?I:M)}function Y(e,t){if("target"==t)return y.marked="keyword",b(U)}function Z(e,t){if("target"==t)return y.marked="keyword",b(z)}function G(e){return":"==e?b(R,I):v(U,B(";"),R)}function H(e){if("variable"==e)return y.marked="property",b()}function K(e,t){return"async"==e?(y.marked="property",b(K)):"variable"==e||"keyword"==y.style?(y.marked="property","get"==t||"set"==t?b(J):(a&&y.state.fatArrowAt==y.stream.start&&(n=y.stream.match(/^\s*:\s*/,!1))&&(y.state.fatArrowAt=y.stream.pos+n[0].length),b(ee))):"number"==e||"string"==e?(y.marked=i?"property":y.style+" property",b(ee)):"jsonld-keyword"==e?b(ee):a&&S(t)?(y.marked="keyword",b(K)):"["==e?b(D,ie,B("]"),ee):"spread"==e?b(M,ee):"*"==t?(y.marked="keyword",b(K)):":"==e?v(ee):void 0;var n}function J(e){return"variable"!=e?v(ee):(y.marked="property",b(Ce))}function ee(e){return":"==e?b(M):"("==e?v(Ce):void 0}function te(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=y.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),b(function(n,r){return n==t||r==t?v():v(e)},r)}return i==t||o==t?b():n&&n.indexOf(";")>-1?v(e):b(B(t))}return function(n,i){return n==t||i==t?b():v(e,r)}}function ne(e,t,n){for(var r=3;r<arguments.length;r++)y.cc.push(arguments[r]);return b(E(t,n),te(e,t),R)}function re(e){return"}"==e?b():v(I,re)}function ie(e,t){if(a){if(":"==e)return b(le);if("?"==t)return b(ie)}}function oe(e,t){if(a&&(":"==e||"in"==t))return b(le)}function ae(e){if(a&&":"==e)return y.stream.match(/^\s*\w+\s+is\b/,!1)?b(D,se,le):b(le)}function se(e,t){if("is"==t)return y.marked="keyword",b()}function le(e,t){return"keyof"==t||"typeof"==t||"infer"==t||"readonly"==t?(y.marked="keyword",b("typeof"==t?M:le)):"variable"==e||"void"==t?(y.marked="type",b(ge)):"|"==t||"&"==t?b(le):"string"==e||"number"==e||"atom"==e?b(ge):"["==e?b(E("]"),te(le,"]",","),R,ge):"{"==e?b(E("}"),ue,R,ge):"("==e?b(te(fe,")"),ce,ge):"<"==e?b(te(le,">"),le):"quasi"==e?v(de,ge):void 0}function ce(e){if("=>"==e)return b(le)}function ue(e){return e.match(/[\}\)\]]/)?b():","==e||";"==e?b(ue):v(he,ue)}function he(e,t){return"variable"==e||"keyword"==y.style?(y.marked="property",b(he)):"?"==t||"number"==e||"string"==e?b(he):":"==e?b(le):"["==e?b(B("variable"),oe,B("]"),he):"("==e?v(Qe,he):e.match(/[;\}\)\],]/)?void 0:b()}function de(e,t){return"quasi"!=e?v():"${"!=t.slice(t.length-2)?b(de):b(le,pe)}function pe(e){if("}"==e)return y.marked="string.special",y.state.tokenize=f,b(de)}function fe(e,t){return"variable"==e&&y.stream.match(/^\s*[?:]/,!1)||"?"==t?b(fe):":"==e?b(le):"spread"==e?b(fe):v(le)}function ge(e,t){return"<"==t?b(E(">"),te(le,">"),R,ge):"|"==t||"."==e||"&"==t?b(le):"["==e?b(le,B("]"),ge):"extends"==t||"implements"==t?(y.marked="keyword",b(le)):"?"==t?b(le,B(":"),le):void 0}function me(e,t){if("<"==t)return b(E(">"),te(le,">"),R,ge)}function Oe(){return v(le,Ae)}function Ae(e,t){if("="==t)return b(le)}function ye(e,t){return"enum"==t?(y.marked="keyword",b(We)):v(ve,ie,we,ke)}function ve(e,t){return a&&S(t)?(y.marked="keyword",b(ve)):"variable"==e?(w(t),b()):"spread"==e?b(ve):"["==e?ne(xe,"]"):"{"==e?ne(be,"}"):void 0}function be(e,t){return"variable"!=e||y.stream.match(/^\s*:/,!1)?("variable"==e&&(y.marked="property"),"spread"==e?b(ve):"}"==e?v():"["==e?b(D,B("]"),B(":"),be):b(B(":"),ve,we)):(w(t),b(we))}function xe(){return v(ve,we)}function we(e,t){if("="==t)return b(M)}function ke(e){if(","==e)return b(ye)}function Se(e,t){if("keyword b"==e&&"else"==t)return b(E("form","else"),I,R)}function Te(e,t){return"await"==t?b(Te):"("==e?b(E(")"),$e,R):void 0}function $e(e){return"var"==e?b(ye,_e):"variable"==e?b(_e):v(_e)}function _e(e,t){return")"==e?b():";"==e?b(_e):"in"==t||"of"==t?(y.marked="keyword",b(D,_e)):v(D,_e)}function Ce(e,t){return"*"==t?(y.marked="keyword",b(Ce)):"variable"==e?(w(t),b(Ce)):"("==e?b(C,E(")"),te(Ee,")"),R,ae,I,P):a&&"<"==t?b(E(">"),te(Oe,">"),R,Ce):void 0}function Qe(e,t){return"*"==t?(y.marked="keyword",b(Qe)):"variable"==e?(w(t),b(Qe)):"("==e?b(C,E(")"),te(Ee,")"),R,ae,P):a&&"<"==t?b(E(">"),te(Oe,">"),R,Qe):void 0}function Pe(e,t){return"keyword"==e||"variable"==e?(y.marked="type",b(Pe)):"<"==t?b(E(">"),te(Oe,">"),R):void 0}function Ee(e,t){return"@"==t&&b(D,Ee),"spread"==e?b(Ee):a&&S(t)?(y.marked="keyword",b(Ee)):a&&"this"==e?b(ie,we):v(ve,ie,we)}function Re(e,t){return"variable"==e?Be(e,t):Ie(e,t)}function Be(e,t){if("variable"==e)return w(t),b(Ie)}function Ie(e,t){return"<"==t?b(E(">"),te(Oe,">"),R,Ie):"extends"==t||"implements"==t||a&&","==e?("implements"==t&&(y.marked="keyword"),b(a?le:D,Ie)):"{"==e?b(E("}"),Le,R):void 0}function Le(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||a&&S(t))&&y.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1)?(y.marked="keyword",b(Le)):"variable"==e||"keyword"==y.style?(y.marked="property",b(De,Le)):"number"==e||"string"==e?b(De,Le):"["==e?b(D,ie,B("]"),De,Le):"*"==t?(y.marked="keyword",b(Le)):a&&"("==e?v(Qe,Le):";"==e||","==e?b(Le):"}"==e?b():"@"==t?b(D,Le):void 0}function De(e,t){if("!"==t||"?"==t)return b(De);if(":"==e)return b(le,we);if("="==t)return b(M);var n=y.state.lexical.prev;return v(n&&"interface"==n.info?Qe:Ce)}function Me(e,t){return"*"==t?(y.marked="keyword",b(qe,B(";"))):"default"==t?(y.marked="keyword",b(D,B(";"))):"{"==e?b(te(Ne,"}"),qe,B(";")):v(I)}function Ne(e,t){return"as"==t?(y.marked="keyword",b(B("variable"))):"variable"==e?v(M,Ne):void 0}function Xe(e){return"string"==e?b():"("==e?v(D):"."==e?v(U):v(Fe,Ue,qe)}function Fe(e,t){return"{"==e?ne(Fe,"}"):("variable"==e&&w(t),"*"==t&&(y.marked="keyword"),b(ze))}function Ue(e){if(","==e)return b(Fe,Ue)}function ze(e,t){if("as"==t)return y.marked="keyword",b(Fe)}function qe(e,t){if("from"==t)return y.marked="keyword",b(D)}function Ve(e){return"]"==e?b():v(te(M,"]"))}function We(){return v(E("form"),ve,B("{"),E("}"),te(je,"}"),R,R)}function je(){return v(ve,we)}return C.lex=Q.lex=!0,P.lex=!0,R.lex=!0,{name:e.name,startState:function(t){var n={tokenize:d,lastType:"sof",cc:[],lexical:new O(-t,0,"block",!1),localVars:e.localVars,context:e.localVars&&new T(null,null,!1),indented:0};return e.globalVars&&"object"==typeof e.globalVars&&(n.globalVars=e.globalVars),n},token:function(e,r){if(e.sol()&&(r.lexical.hasOwnProperty("align")||(r.lexical.align=!1),r.indented=e.indentation(),g(e,r)),r.tokenize!=p&&e.eatSpace())return null;var i=r.tokenize(e,r);return"comment"==t?i:(r.lastType="operator"!=t||"++"!=n&&"--"!=n?t:"incdec",function(e,t,n,r,i){var a=e.cc;for(y.state=e,y.stream=i,y.marked=null,y.cc=a,y.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((a.length?a.pop():o?D:I)(n,r)){for(;a.length&&a[a.length-1].lex;)a.pop()();return y.marked?y.marked:"variable"==n&&A(e,r)?"variableName.local":t}}(r,i,t,n,e))},indent:function(t,n,i){if(t.tokenize==p||t.tokenize==f)return null;if(t.tokenize!=d)return 0;var o,a=n&&n.charAt(0),s=t.lexical;if(!/^\s*else\b/.test(n))for(var l=t.cc.length-1;l>=0;--l){var u=t.cc[l];if(u==R)s=s.prev;else if(u!=Se&&u!=P)break}for(;("stat"==s.type||"form"==s.type)&&("}"==a||(o=t.cc[t.cc.length-1])&&(o==U||o==z)&&!/^[,\.=+\-*:?[\(]/.test(n));)s=s.prev;r&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var h=s.type,g=a==h;return"vardef"==h?s.indented+("operator"==t.lastType||","==t.lastType?s.info.length+1:0):"form"==h&&"{"==a?s.indented:"form"==h?s.indented+i.unit:"stat"==h?s.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||c.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,n)?r||i.unit:0):"switch"!=s.info||g||0==e.doubleIndentSwitch?s.align?s.column+(g?0:1):s.indented+(g?0:i.unit):s.indented+(/^(?:case|default)\b/.test(n)?i.unit:2*i.unit)},languageData:{indentOnInput:/^\s*(?:case .*?:|default:|\{|\})$/,commentTokens:o?void 0:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]},wordChars:"$"}}}const o8n=i8n({name:"javascript"}),a8n=i8n({name:"json",json:!0}),s8n=i8n({name:"json",jsonld:!0}),l8n=i8n({name:"typescript",typescript:!0}),c8n=Object.freeze(Object.defineProperty({__proto__:null,javascript:o8n,json:a8n,jsonld:s8n,typescript:l8n},Symbol.toStringTag,{value:"Module"}));function u8n(e,t,n){return void 0===n&&(n=""),void 0===t&&(t="\\b"),new RegExp("^"+n+"(("+e.join(")|(")+"))"+t)}var h8n=["[<>]:","[<>=]=","<<=?",">>>?=?","=>","--?>","<--[->]?","\\/\\/","\\.{2,3}","[\\.\\\\%*+\\-<>!\\/^|&]=?","\\?","\\$","~",":"],d8n=u8n(["[<>]:","[<>=]=","[!=]==","<<=?",">>>?=?","=>?","--?>","<--[->]?","\\/\\/","[\\\\%*+\\-<>!\\/^|&\\u00F7\\u22BB]=?","\\?","\\$","~",":","\\u00D7","\\u2208","\\u2209","\\u220B","\\u220C","\\u2218","\\u221A","\\u221B","\\u2229","\\u222A","\\u2260","\\u2264","\\u2265","\\u2286","\\u2288","\\u228A","\\u22C5","\\b(in|isa)\\b(?!.?\\()"],""),p8n=/^[;,()[\]{}]/,f8n=/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/,g8n=u8n(["\\\\[0-7]{1,3}","\\\\x[A-Fa-f0-9]{1,2}","\\\\[abefnrtv0%?'\"\\\\]","([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])"],"'"),m8n=["if","else","elseif","while","for","begin","let","end","do","try","catch","finally","return","break","continue","global","local","const","export","import","importall","using","function","where","macro","module","baremodule","struct","type","mutable","immutable","quote","typealias","abstract","primitive","bitstype"],O8n=["true","false","nothing","NaN","Inf"],A8n=u8n(["begin","function","type","struct","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"]),y8n=u8n(["end","else","elseif","catch","finally"]),v8n=u8n(m8n),b8n=u8n(O8n),x8n=/^@[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,w8n=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,k8n=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/,S8n=u8n(h8n,"","@"),T8n=u8n(h8n,"",":");function $8n(e){return e.nestedArrays>0}function _8n(e,t){return void 0===t&&(t=0),e.scopes.length<=t?null:e.scopes[e.scopes.length-(t+1)]}function C8n(e,t){if(e.match("#=",!1))return t.tokenize=P8n,t.tokenize(e,t);var n=t.leavingExpr;if(e.sol()&&(n=!1),t.leavingExpr=!1,n&&e.match(/^'+/))return"operator";if(e.match(/\.{4,}/))return"error";if(e.match(/\.{1,3}/))return"operator";if(e.eatSpace())return null;var r,i=e.peek();if("#"===i)return e.skipToEnd(),"comment";if("["===i&&(t.scopes.push("["),t.nestedArrays++),"("===i&&(t.scopes.push("("),t.nestedGenerators++),$8n(t)&&"]"===i){for(;t.scopes.length&&"["!==_8n(t);)t.scopes.pop();t.scopes.pop(),t.nestedArrays--,t.leavingExpr=!0}if(function(e){return e.nestedGenerators>0}(t)&&")"===i){for(;t.scopes.length&&"("!==_8n(t);)t.scopes.pop();t.scopes.pop(),t.nestedGenerators--,t.leavingExpr=!0}if($8n(t)){if("end"==t.lastToken&&e.match(":"))return"operator";if(e.match("end"))return"number"}if((r=e.match(A8n,!1))&&t.scopes.push(r[0]),e.match(y8n,!1)&&t.scopes.pop(),e.match(/^::(?![:\$])/))return t.tokenize=Q8n,t.tokenize(e,t);if(!n&&(e.match(w8n)||e.match(T8n)))return"builtin";if(e.match(d8n))return"operator";if(e.match(/^\.?\d/,!1)){var o=RegExp(/^im\b/),a=!1;if(e.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)&&(a=!0),e.match(/^0x[0-9a-f_]+/i)&&(a=!0),e.match(/^0b[01_]+/i)&&(a=!0),e.match(/^0o[0-7_]+/i)&&(a=!0),e.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)&&(a=!0),e.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)&&(a=!0),a)return e.match(o),t.leavingExpr=!0,"number"}if(e.match("'"))return t.tokenize=E8n,t.tokenize(e,t);if(e.match(k8n))return t.tokenize=function(e){'"""'===e.substr(-3)?e='"""':'"'===e.substr(-1)&&(e='"');function t(t,n){if(t.eat("\\"))t.next();else{if(t.match(e))return n.tokenize=C8n,n.leavingExpr=!0,"string";t.eat(/[`"]/)}return t.eatWhile(/[^\\`"]/),"string"}return t}(e.current()),t.tokenize(e,t);if(e.match(x8n)||e.match(S8n))return"meta";if(e.match(p8n))return null;if(e.match(v8n))return"keyword";if(e.match(b8n))return"builtin";var s=t.isDefinition||"function"==t.lastToken||"macro"==t.lastToken||"type"==t.lastToken||"struct"==t.lastToken||"immutable"==t.lastToken;return e.match(f8n)?s?"."===e.peek()?(t.isDefinition=!0,"variable"):(t.isDefinition=!1,"def"):(t.leavingExpr=!0,"variable"):(e.next(),"error")}function Q8n(e,t){return e.match(/.*?(?=[,;{}()=\s]|$)/),e.match("{")?t.nestedParameters++:e.match("}")&&t.nestedParameters>0&&t.nestedParameters--,t.nestedParameters>0?e.match(/.*?(?={|})/)||e.next():0==t.nestedParameters&&(t.tokenize=C8n),"builtin"}function P8n(e,t){return e.match("#=")&&t.nestedComments++,e.match(/.*?(?=(#=|=#))/)||e.skipToEnd(),e.match("=#")&&(t.nestedComments--,0==t.nestedComments&&(t.tokenize=C8n)),"comment"}function E8n(e,t){var n,r=!1;if(e.match(g8n))r=!0;else if(n=e.match(/\\u([a-f0-9]{1,4})(?=')/i)){((i=parseInt(n[1],16))<=55295||i>=57344)&&(r=!0,e.next())}else if(n=e.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)){var i;(i=parseInt(n[1],16))<=1114111&&(r=!0,e.next())}return r?(t.leavingExpr=!0,t.tokenize=C8n,"string"):(e.match(/^[^']+(?=')/)||e.skipToEnd(),e.match("'")&&(t.tokenize=C8n),"error")}const R8n={name:"julia",startState:function(){return{tokenize:C8n,scopes:[],lastToken:null,leavingExpr:!1,isDefinition:!1,nestedArrays:0,nestedComments:0,nestedGenerators:0,nestedParameters:0,firstParenPos:-1}},token:function(e,t){var n=t.tokenize(e,t),r=e.current();return r&&n&&(t.lastToken=r),n},indent:function(e,t,n){var r=0;return("]"===t||")"===t||/^end\b/.test(t)||/^else/.test(t)||/^catch\b/.test(t)||/^elseif\b/.test(t)||/^finally/.test(t))&&(r=-1),(e.scopes.length+r)*n.unit},languageData:{indentOnInput:/^\s*(end|else|catch|finally)\b$/,commentTokens:{line:"#",block:{open:"#=",close:"=#"}},closeBrackets:{brackets:["(","[","{",'"']},autocomplete:m8n.concat(O8n)}},B8n=Object.freeze(Object.defineProperty({__proto__:null,julia:R8n},Symbol.toStringTag,{value:"Module"}));var I8n=function(e,t){var n=t.next||"start";t.next=t.next;var r=X8n[n];if(r.splice){for(var i=0;i<r.length;++i){var o=r[i];if(o.regex&&e.match(o.regex))return t.next=o.next||t.next,o.token}return e.next(),"error"}return e.match(o=X8n[n])&&o.regex&&e.match(o.regex)?(t.next=o.next,o.token):(e.next(),"error")},L8n="(?![\\d\\s])[$\\w\\xAA-\\uFFDC](?:(?!\\s)[$\\w\\xAA-\\uFFDC]|-[A-Za-z])*",D8n=RegExp("(?:[({[=:]|[-~]>|\\b(?:e(?:lse|xport)|d(?:o|efault)|t(?:ry|hen)|finally|import(?:\\s*all)?|const|var|let|new|catch(?:\\s*"+L8n+")?))\\s*$"),M8n="(?![$\\w]|-[A-Za-z]|\\s*:(?![:=]))",N8n={token:"string",regex:".+"},X8n={start:[{token:"docComment",regex:"/\\*",next:"comment"},{token:"comment",regex:"#.*"},{token:"keyword",regex:"(?:t(?:h(?:is|row|en)|ry|ypeof!?)|c(?:on(?:tinue|st)|a(?:se|tch)|lass)|i(?:n(?:stanceof)?|mp(?:ort(?:\\s+all)?|lements)|[fs])|d(?:e(?:fault|lete|bugger)|o)|f(?:or(?:\\s+own)?|inally|unction)|s(?:uper|witch)|e(?:lse|x(?:tends|port)|val)|a(?:nd|rguments)|n(?:ew|ot)|un(?:less|til)|w(?:hile|ith)|o[fr]|return|break|let|var|loop)"+M8n},{token:"atom",regex:"(?:true|false|yes|no|on|off|null|void|undefined)"+M8n},{token:"invalid",regex:"(?:p(?:ackage|r(?:ivate|otected)|ublic)|i(?:mplements|nterface)|enum|static|yield)"+M8n},{token:"className.standard",regex:"(?:R(?:e(?:gExp|ferenceError)|angeError)|S(?:tring|yntaxError)|E(?:rror|valError)|Array|Boolean|Date|Function|Number|Object|TypeError|URIError)"+M8n},{token:"variableName.function.standard",regex:"(?:is(?:NaN|Finite)|parse(?:Int|Float)|Math|JSON|(?:en|de)codeURI(?:Component)?)"+M8n},{token:"variableName.standard",regex:"(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)"+M8n},{token:"variableName",regex:L8n+"\\s*:(?![:=])"},{token:"variableName",regex:L8n},{token:"operatorKeyword",regex:"(?:\\.{3}|\\s+\\?)"},{token:"keyword",regex:"(?:@+|::|\\.\\.)",next:"key"},{token:"operatorKeyword",regex:"\\.\\s*",next:"key"},{token:"string",regex:"\\\\\\S[^\\s,;)}\\]]*"},{token:"docString",regex:"'''",next:"qdoc"},{token:"docString",regex:'"""',next:"qqdoc"},{token:"string",regex:"'",next:"qstring"},{token:"string",regex:'"',next:"qqstring"},{token:"string",regex:"`",next:"js"},{token:"string",regex:"<\\[",next:"words"},{token:"regexp",regex:"//",next:"heregex"},{token:"regexp",regex:"\\/(?:[^[\\/\\n\\\\]*(?:(?:\\\\.|\\[[^\\]\\n\\\\]*(?:\\\\.[^\\]\\n\\\\]*)*\\])[^[\\/\\n\\\\]*)*)\\/[gimy$]{0,4}",next:"key"},{token:"number",regex:"(?:0x[\\da-fA-F][\\da-fA-F_]*|(?:[2-9]|[12]\\d|3[0-6])r[\\da-zA-Z][\\da-zA-Z_]*|(?:\\d[\\d_]*(?:\\.\\d[\\d_]*)?|\\.\\d[\\d_]*)(?:e[+-]?\\d[\\d_]*)?[\\w$]*)"},{token:"paren",regex:"[({[]"},{token:"paren",regex:"[)}\\]]",next:"key"},{token:"operatorKeyword",regex:"\\S+"},{token:"content",regex:"\\s+"}],heregex:[{token:"regexp",regex:".*?//[gimy$?]{0,4}",next:"start"},{token:"regexp",regex:"\\s*#{"},{token:"comment",regex:"\\s+(?:#.*)?"},{token:"regexp",regex:"\\S+"}],key:[{token:"operatorKeyword",regex:"[.?@!]+"},{token:"variableName",regex:L8n,next:"start"},{token:"content",regex:"",next:"start"}],comment:[{token:"docComment",regex:".*?\\*/",next:"start"},{token:"docComment",regex:".+"}],qdoc:[{token:"string",regex:".*?'''",next:"key"},N8n],qqdoc:[{token:"string",regex:'.*?"""',next:"key"},N8n],qstring:[{token:"string",regex:"[^\\\\']*(?:\\\\.[^\\\\']*)*'",next:"key"},N8n],qqstring:[{token:"string",regex:'[^\\\\"]*(?:\\\\.[^\\\\"]*)*"',next:"key"},N8n],js:[{token:"string",regex:"[^\\\\`]*(?:\\\\.[^\\\\`]*)*`",next:"key"},N8n],words:[{token:"string",regex:".*?\\]>",next:"key"},N8n]};for(var F8n in X8n){var U8n=X8n[F8n];if(U8n.splice)for(var z8n=0,q8n=U8n.length;z8n<q8n;++z8n){var V8n=U8n[z8n];"string"==typeof V8n.regex&&(X8n[F8n][z8n].regex=new RegExp("^"+V8n.regex))}else"string"==typeof V8n.regex&&(X8n[F8n].regex=new RegExp("^"+U8n.regex))}const W8n={name:"livescript",startState:function(){return{next:"start",lastToken:{style:null,indent:0,content:""}}},token:function(e,t){for(;e.pos==e.start;)var n=I8n(e,t);return t.lastToken={style:n,indent:e.indentation(),content:e.current()},n.replace(/\./g," ")},indent:function(e){var t=e.lastToken.indent;return e.lastToken.content.match(D8n)&&(t+=2),t}},j8n=Object.freeze(Object.defineProperty({__proto__:null,liveScript:W8n},Symbol.toStringTag,{value:"Module"}));function Y8n(e){return new RegExp("^(?:"+e.join("|")+")$","i")}var Z8n=Y8n(["_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load","loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require","select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall","coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield","debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable","debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable","debug.setupvalue","debug.traceback","close","flush","lines","read","seek","setvbuf","write","io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin","io.stdout","io.tmpfile","io.type","io.write","math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg","math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max","math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh","math.sqrt","math.tan","math.tanh","os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale","os.time","os.tmpname","package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload","package.seeall","string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub","string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper","table.concat","table.insert","table.maxn","table.remove","table.sort"]),G8n=Y8n(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]),H8n=Y8n(["function","if","repeat","do","\\(","{"]),K8n=Y8n(["end","until","\\)","}"]),J8n=new RegExp("^(?:"+["end","until","\\)","}","else","elseif"].join("|")+")","i");function e9n(e){for(var t=0;e.eat("=");)++t;return e.eat("["),t}function t9n(e,t){var n,r=e.next();return"-"==r&&e.eat("-")?e.eat("[")&&/[\[=]/.test(e.peek())?(t.cur=n9n(e9n(e),"comment"))(e,t):(e.skipToEnd(),"comment"):'"'==r||"'"==r?(t.cur=(n=r,function(e,t){for(var r,i=!1;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.cur=t9n),"string"}))(e,t):"["==r&&/[\[=]/.test(e.peek())?(t.cur=n9n(e9n(e),"string"))(e,t):/\d/.test(r)?(e.eatWhile(/[\w.%]/),"number"):/[\w_]/.test(r)?(e.eatWhile(/[\w\\\-_.]/),"variable"):null}function n9n(e,t){return function(n,r){for(var i,o=null;null!=(i=n.next());)if(null==o)"]"==i&&(o=0);else if("="==i)++o;else{if("]"==i&&o==e){r.cur=t9n;break}o=null}return t}}const r9n={name:"lua",startState:function(){return{basecol:0,indentDepth:0,cur:t9n}},token:function(e,t){if(e.eatSpace())return null;var n=t.cur(e,t),r=e.current();return"variable"==n&&(G8n.test(r)?n="keyword":Z8n.test(r)&&(n="builtin")),"comment"!=n&&"string"!=n&&(H8n.test(r)?++t.indentDepth:K8n.test(r)&&--t.indentDepth),n},indent:function(e,t,n){var r=J8n.test(t);return e.basecol+n.unit*(e.indentDepth-(r?1:0))},languageData:{indentOnInput:/^\s*(?:end|until|else|\)|\})$/,commentTokens:{line:"--",block:{open:"--[[",close:"]]--"}}}},i9n=Object.freeze(Object.defineProperty({__proto__:null,lua:r9n},Symbol.toStringTag,{value:"Module"}));function o9n(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var a9n=o9n("$! $$ $& $? $+ $abook $abs $active $activecid $activewid $address $addtok $agent $agentname $agentstat $agentver $alias $and $anick $ansi2mirc $aop $appactive $appstate $asc $asctime $asin $atan $avoice $away $awaymsg $awaytime $banmask $base $bfind $binoff $biton $bnick $bvar $bytes $calc $cb $cd $ceil $chan $chanmodes $chantypes $chat $chr $cid $clevel $click $cmdbox $cmdline $cnick $color $com $comcall $comchan $comerr $compact $compress $comval $cos $count $cr $crc $creq $crlf $ctime $ctimer $ctrlenter $date $day $daylight $dbuh $dbuw $dccignore $dccport $dde $ddename $debug $decode $decompress $deltok $devent $dialog $did $didreg $didtok $didwm $disk $dlevel $dll $dllcall $dname $dns $duration $ebeeps $editbox $emailaddr $encode $error $eval $event $exist $feof $ferr $fgetc $file $filename $filtered $finddir $finddirn $findfile $findfilen $findtok $fline $floor $fopen $fread $fserve $fulladdress $fulldate $fullname $fullscreen $get $getdir $getdot $gettok $gmt $group $halted $hash $height $hfind $hget $highlight $hnick $hotline $hotlinepos $ial $ialchan $ibl $idle $iel $ifmatch $ignore $iif $iil $inelipse $ini $inmidi $inpaste $inpoly $input $inrect $inroundrect $insong $instok $int $inwave $ip $isalias $isbit $isdde $isdir $isfile $isid $islower $istok $isupper $keychar $keyrpt $keyval $knick $lactive $lactivecid $lactivewid $left $len $level $lf $line $lines $link $lock $lock $locked $log $logstamp $logstampfmt $longfn $longip $lower $ltimer $maddress $mask $matchkey $matchtok $md5 $me $menu $menubar $menucontext $menutype $mid $middir $mircdir $mircexe $mircini $mklogfn $mnick $mode $modefirst $modelast $modespl $mouse $msfile $network $newnick $nick $nofile $nopath $noqt $not $notags $notify $null $numeric $numok $oline $onpoly $opnick $or $ord $os $passivedcc $pic $play $pnick $port $portable $portfree $pos $prefix $prop $protect $puttok $qt $query $rand $r $rawmsg $read $readomo $readn $regex $regml $regsub $regsubex $remove $remtok $replace $replacex $reptok $result $rgb $right $round $scid $scon $script $scriptdir $scriptline $sdir $send $server $serverip $sfile $sha1 $shortfn $show $signal $sin $site $sline $snick $snicks $snotify $sock $sockbr $sockerr $sockname $sorttok $sound $sqrt $ssl $sreq $sslready $status $strip $str $stripped $syle $submenu $switchbar $tan $target $ticks $time $timer $timestamp $timestampfmt $timezone $tip $titlebar $toolbar $treebar $trust $ulevel $ulist $upper $uptime $url $usermode $v1 $v2 $var $vcmd $vcmdstat $vcmdver $version $vnick $vol $wid $width $wildsite $wildtok $window $wrap $xor"),s9n=o9n("abook ajinvite alias aline ame amsg anick aop auser autojoin avoice away background ban bcopy beep bread break breplace bset btrunc bunset bwrite channel clear clearall cline clipboard close cnick color comclose comopen comreg continue copy creq ctcpreply ctcps dcc dccserver dde ddeserver debug dec describe dialog did didtok disable disconnect dlevel dline dll dns dqwindow drawcopy drawdot drawfill drawline drawpic drawrect drawreplace drawrot drawsave drawscroll drawtext ebeeps echo editbox emailaddr enable events exit fclose filter findtext finger firewall flash flist flood flush flushini font fopen fseek fsend fserve fullname fwrite ghide gload gmove gopts goto gplay gpoint gqreq groups gshow gsize gstop gtalk gunload hadd halt haltdef hdec hdel help hfree hinc hload hmake hop hsave ial ialclear ialmark identd if ignore iline inc invite iuser join kick linesep links list load loadbuf localinfo log mdi me menubar mkdir mnick mode msg nick noop notice notify omsg onotice part partall pdcc perform play playctrl pop protect pvoice qme qmsg query queryn quit raw reload remini remote remove rename renwin reseterror resetidle return rlevel rline rmdir run ruser save savebuf saveini say scid scon server set showmirc signam sline sockaccept sockclose socklist socklisten sockmark sockopen sockpause sockread sockrename sockudp sockwrite sound speak splay sreq strip switchbar timer timestamp titlebar tnick tokenize toolbar topic tray treebar ulist unload unset unsetall updatenl url uwho var vcadd vcmd vcrem vol while whois window winhelp write writeint if isalnum isalpha isaop isavoice isban ischan ishop isignore isin isincs isletter islower isnotify isnum ison isop isprotect isreg isupper isvoice iswm iswmcs elseif else goto menu nicklist status title icon size option text edit button check radio box scroll list combo link tab item"),l9n=o9n("if elseif else and not or eq ne in ni for foreach while switch"),c9n=/[+\-*&%=<>!?^\/\|]/;function u9n(e,t,n){return t.tokenize=n,n(e,t)}function h9n(e,t){var n=t.beforeParams;t.beforeParams=!1;var r=e.next();if(/[\[\]{}\(\),\.]/.test(r))return"("==r&&n?t.inParams=!0:")"==r&&(t.inParams=!1),null;if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if("\\"==r)return e.eat("\\"),e.eat(/./),"number";if("/"==r&&e.eat("*"))return u9n(e,t,d9n);if(";"==r&&e.match(/ *\( *\(/))return u9n(e,t,p9n);if(";"!=r||t.inParams){if('"'==r)return e.eat(/"/),"keyword";if("$"==r)return e.eatWhile(/[$_a-z0-9A-Z\.:]/),a9n&&a9n.propertyIsEnumerable(e.current().toLowerCase())?"keyword":(t.beforeParams=!0,"builtin");if("%"==r)return e.eatWhile(/[^,\s()]/),t.beforeParams=!0,"string";if(c9n.test(r))return e.eatWhile(c9n),"operator";e.eatWhile(/[\w\$_{}]/);var i=e.current().toLowerCase();return s9n&&s9n.propertyIsEnumerable(i)?"keyword":l9n&&l9n.propertyIsEnumerable(i)?(t.beforeParams=!0,"keyword"):null}return e.skipToEnd(),"comment"}function d9n(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=h9n;break}r="*"==n}return"comment"}function p9n(e,t){for(var n,r=0;n=e.next();){if(";"==n&&2==r){t.tokenize=h9n;break}")"==n?r++:" "!=n&&(r=0)}return"meta"}const f9n={name:"mirc",startState:function(){return{tokenize:h9n,beforeParams:!1,inParams:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}},g9n=Object.freeze(Object.defineProperty({__proto__:null,mirc:f9n},Symbol.toStringTag,{value:"Module"}));var m9n="[a-zA-Z\\$][a-zA-Z0-9\\$]*",O9n="(?:\\.\\d+|\\d+\\.\\d*|\\d+)",A9n="(?:`(?:`?"+O9n+")?)",y9n=new RegExp("(?:(?:\\d+)(?:\\^\\^(?:\\.\\w+|\\w+\\.\\w*|\\w+)"+A9n+"?(?:\\*\\^[+-]?\\d+)?))"),v9n=new RegExp("(?:"+O9n+A9n+"?(?:\\*\\^[+-]?\\d+)?)"),b9n=new RegExp("(?:`?)(?:"+m9n+")(?:`(?:"+m9n+"))*(?:`?)");function x9n(e,t){var n;return'"'===(n=e.next())?(t.tokenize=w9n,t.tokenize(e,t)):"("===n&&e.eat("*")?(t.commentLevel++,t.tokenize=k9n,t.tokenize(e,t)):(e.backUp(1),e.match(y9n,!0,!1)||e.match(v9n,!0,!1)?"number":e.match(/(?:In|Out)\[[0-9]*\]/,!0,!1)?"atom":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::usage)/,!0,!1)?"meta":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::[a-zA-Z\$][a-zA-Z0-9\$]*):?/,!0,!1)?"string.special":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*\s*:)(?:(?:[a-zA-Z\$][a-zA-Z0-9\$]*)|(?:[^:=>~@\^\&\*\)\[\]'\?,\|])).*/,!0,!1)||e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)||e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+/,!0,!1)||e.match(/_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)?"variableName.special":e.match(/\\\[[a-zA-Z\$][a-zA-Z0-9\$]*\]/,!0,!1)?"character":e.match(/(?:\[|\]|{|}|\(|\))/,!0,!1)?"bracket":e.match(/(?:#[a-zA-Z\$][a-zA-Z0-9\$]*|#+[0-9]?)/,!0,!1)?"variableName.constant":e.match(b9n,!0,!1)?"keyword":e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/,!0,!1)?"operator":(e.next(),"error"))}function w9n(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if('"'===n&&!i){r=!0;break}i=!i&&"\\"===n}return r&&!i&&(t.tokenize=x9n),"string"}function k9n(e,t){for(var n,r;t.commentLevel>0&&null!=(r=e.next());)"("===n&&"*"===r&&t.commentLevel++,"*"===n&&")"===r&&t.commentLevel--,n=r;return t.commentLevel<=0&&(t.tokenize=x9n),"comment"}const S9n={name:"mathematica",startState:function(){return{tokenize:x9n,commentLevel:0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{commentTokens:{block:{open:"(*",close:"*)"}}}},T9n=Object.freeze(Object.defineProperty({__proto__:null,mathematica:S9n},Symbol.toStringTag,{value:"Module"}));function $9n(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var _9n=$9n("algorithm and annotation assert block break class connect connector constant constrainedby der discrete each else elseif elsewhen encapsulated end enumeration equation expandable extends external false final flow for function if import impure in initial inner input loop model not operator or outer output package parameter partial protected public pure record redeclare replaceable return stream then true type when while within"),C9n=$9n("abs acos actualStream asin atan atan2 cardinality ceil cos cosh delay div edge exp floor getInstanceName homotopy inStream integer log log10 mod pre reinit rem semiLinear sign sin sinh spatialDistribution sqrt tan tanh"),Q9n=$9n("Real Boolean Integer String"),P9n=[].concat(Object.keys(_9n),Object.keys(C9n),Object.keys(Q9n)),E9n=/[;=\(:\),{}.*<>+\-\/^\[\]]/,R9n=/(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/,B9n=/[0-9]/,I9n=/[_a-zA-Z]/;function L9n(e,t){return e.skipToEnd(),t.tokenize=null,"comment"}function D9n(e,t){for(var n,r=!1;n=e.next();){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return"comment"}function M9n(e,t){for(var n,r=!1;null!=(n=e.next());){if('"'==n&&!r){t.tokenize=null,t.sol=!1;break}r=!r&&"\\"==n}return"string"}function N9n(e,t){for(e.eatWhile(B9n);e.eat(B9n)||e.eat(I9n););var n=e.current();return!t.sol||"package"!=n&&"model"!=n&&"when"!=n&&"connector"!=n?t.sol&&"end"==n&&t.level>0&&t.level--:t.level++,t.tokenize=null,t.sol=!1,_9n.propertyIsEnumerable(n)?"keyword":C9n.propertyIsEnumerable(n)?"builtin":Q9n.propertyIsEnumerable(n)?"atom":"variable"}function X9n(e,t){for(;e.eat(/[^']/););return t.tokenize=null,t.sol=!1,e.eat("'")?"variable":"error"}function F9n(e,t){return e.eatWhile(B9n),e.eat(".")&&e.eatWhile(B9n),(e.eat("e")||e.eat("E"))&&(e.eat("-")||e.eat("+"),e.eatWhile(B9n)),t.tokenize=null,t.sol=!1,"number"}const U9n={name:"modelica",startState:function(){return{tokenize:null,level:0,sol:!0}},token:function(e,t){if(null!=t.tokenize)return t.tokenize(e,t);if(e.sol()&&(t.sol=!0),e.eatSpace())return t.tokenize=null,null;var n=e.next();if("/"==n&&e.eat("/"))t.tokenize=L9n;else if("/"==n&&e.eat("*"))t.tokenize=D9n;else{if(R9n.test(n+e.peek()))return e.next(),t.tokenize=null,"operator";if(E9n.test(n))return t.tokenize=null,"operator";if(I9n.test(n))t.tokenize=N9n;else if("'"==n&&e.peek()&&"'"!=e.peek())t.tokenize=X9n;else if('"'==n)t.tokenize=M9n;else{if(!B9n.test(n))return t.tokenize=null,"error";t.tokenize=F9n}}return t.tokenize(e,t)},indent:function(e,t,n){if(null!=e.tokenize)return null;var r=e.level;return/(algorithm)/.test(t)&&r--,/(equation)/.test(t)&&r--,/(initial algorithm)/.test(t)&&r--,/(initial equation)/.test(t)&&r--,/(end)/.test(t)&&r--,r>0?n.unit*r:0},languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:P9n}},z9n=Object.freeze(Object.defineProperty({__proto__:null,modelica:U9n},Symbol.toStringTag,{value:"Module"}));function q9n(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var V9n=new RegExp("^[\\+\\-\\*/&#!_?\\\\<>=\\'\\[\\]]"),W9n=new RegExp("^(('=)|(<=)|(>=)|('>)|('<)|([[)|(]])|(^$))"),j9n=new RegExp("^[\\.,:]"),Y9n=new RegExp("[()]"),Z9n=new RegExp("^[%A-Za-z][A-Za-z0-9]*"),G9n=q9n(["\\$ascii","\\$char","\\$data","\\$ecode","\\$estack","\\$etrap","\\$extract","\\$find","\\$fnumber","\\$get","\\$horolog","\\$io","\\$increment","\\$job","\\$justify","\\$length","\\$name","\\$next","\\$order","\\$piece","\\$qlength","\\$qsubscript","\\$query","\\$quit","\\$random","\\$reverse","\\$select","\\$stack","\\$test","\\$text","\\$translate","\\$view","\\$x","\\$y","\\$a","\\$c","\\$d","\\$e","\\$ec","\\$es","\\$et","\\$f","\\$fn","\\$g","\\$h","\\$i","\\$j","\\$l","\\$n","\\$na","\\$o","\\$p","\\$q","\\$ql","\\$qs","\\$r","\\$re","\\$s","\\$st","\\$t","\\$tr","\\$v","\\$z"]),H9n=q9n(["break","close","do","else","for","goto","halt","hang","if","job","kill","lock","merge","new","open","quit","read","set","tcommit","trollback","tstart","use","view","write","xecute","b","c","d","e","f","g","h","i","j","k","l","m","n","o","q","r","s","tc","tro","ts","u","v","w","x"]);const K9n={name:"mumps",startState:function(){return{label:!1,commandMode:0}},token:function(e,t){var n=function(e,t){e.sol()&&(t.label=!0,t.commandMode=0);var n=e.peek();return" "==n||"\t"==n?(t.label=!1,0==t.commandMode?t.commandMode=1:(t.commandMode<0||2==t.commandMode)&&(t.commandMode=0)):"."!=n&&t.commandMode>0&&(t.commandMode=":"==n?-1:2),"("!==n&&"\t"!==n||(t.label=!1),";"===n?(e.skipToEnd(),"comment"):e.match(/^[-+]?\d+(\.\d+)?([eE][-+]?\d+)?/)?"number":'"'==n?e.skipTo('"')?(e.next(),"string"):(e.skipToEnd(),"error"):e.match(W9n)||e.match(V9n)?"operator":e.match(j9n)?null:Y9n.test(n)?(e.next(),"bracket"):t.commandMode>0&&e.match(H9n)?"controlKeyword":e.match(G9n)?"builtin":e.match(Z9n)?"variable":"$"===n||"^"===n?(e.next(),"builtin"):"@"===n?(e.next(),"string.special"):/[\w%]/.test(n)?(e.eatWhile(/[\w%]/),"variable"):(e.next(),"error")}(e,t);return t.label?"tag":n}},J9n=Object.freeze(Object.defineProperty({__proto__:null,mumps:K9n},Symbol.toStringTag,{value:"Module"}));var eer=["From","Sender","Reply-To","To","Cc","Bcc","Message-ID","In-Reply-To","References","Resent-From","Resent-Sender","Resent-To","Resent-Cc","Resent-Bcc","Resent-Message-ID","Return-Path","Received"],ter=["Date","Subject","Comments","Keywords","Resent-Date"],ner=/^[ \t]/,rer=/^From /,ier=new RegExp("^("+eer.join("|")+"): "),oer=new RegExp("^("+ter.join("|")+"): "),aer=/^[^:]+:/,ser=/^[^ ]+@[^ ]+/,ler=/^.*?(?=[^ ]+?@[^ ]+)/,cer=/^<.*?>/,uer=/^.*?(?=<.*>)/;const her={name:"mbox",startState:function(){return{inSeparator:!1,inHeader:!1,emailPermitted:!1,header:null,inHeaders:!1}},token:function(e,t){if(e.sol()){if(t.inSeparator=!1,t.inHeader&&e.match(ner))return null;if(t.inHeader=!1,t.header=null,e.match(rer))return t.inHeaders=!0,t.inSeparator=!0,"atom";var n,r=!1;return(n=e.match(oer))||(r=!0)&&(n=e.match(ier))?(t.inHeaders=!0,t.inHeader=!0,t.emailPermitted=r,t.header=n[1],"atom"):t.inHeaders&&(n=e.match(aer))?(t.inHeader=!0,t.emailPermitted=!0,t.header=n[1],"atom"):(t.inHeaders=!1,e.skipToEnd(),null)}if(t.inSeparator)return e.match(ser)?"link":(e.match(ler)||e.skipToEnd(),"atom");if(t.inHeader){var i="Subject"===t.header?"header":"string";if(t.emailPermitted){if(e.match(cer))return i+" link";if(e.match(uer))return i}return e.skipToEnd(),i}return e.skipToEnd(),null},blankLine:function(e){e.inHeaders=e.inSeparator=e.inHeader=!1},languageData:{autocomplete:eer.concat(ter)}},der=Object.freeze(Object.defineProperty({__proto__:null,mbox:her},Symbol.toStringTag,{value:"Module"}));function per(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var fer,ger=per("break return rewrite set accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"),mer=per("http mail events server types location upstream charset_map limit_except if geo map"),Oer=per("include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files");function Aer(e,t){return fer=t,e}function yer(e,t){e.eatWhile(/[\w\$_]/);var n=e.current();if(ger.propertyIsEnumerable(n))return"keyword";if(mer.propertyIsEnumerable(n))return"controlKeyword";if(Oer.propertyIsEnumerable(n))return"controlKeyword";var r,i=e.next();return"@"==i?(e.eatWhile(/[\w\\\-]/),Aer("meta",e.current())):"/"==i&&e.eat("*")?(t.tokenize=ver,ver(e,t)):"<"==i&&e.eat("!")?(t.tokenize=ber,ber(e,t)):"="!=i?"~"!=i&&"|"!=i||!e.eat("=")?'"'==i||"'"==i?(t.tokenize=(r=i,function(e,t){for(var n,i=!1;null!=(n=e.next())&&(n!=r||i);)i=!i&&"\\"==n;return i||(t.tokenize=yer),Aer("string","string")}),t.tokenize(e,t)):"#"==i?(e.skipToEnd(),Aer("comment","comment")):"!"==i?(e.match(/^\s*\w*/),Aer("keyword","important")):/\d/.test(i)?(e.eatWhile(/[\w.%]/),Aer("number","unit")):/[,.+>*\/]/.test(i)?Aer(null,"select-op"):/[;{}:\[\]]/.test(i)?Aer(null,i):(e.eatWhile(/[\w\\\-]/),Aer("variable","variable")):Aer(null,"compare"):void Aer(null,"compare")}function ver(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=yer;break}r="*"==n}return Aer("comment","comment")}function ber(e,t){for(var n,r=0;null!=(n=e.next());){if(r>=2&&">"==n){t.tokenize=yer;break}r="-"==n?r+1:0}return Aer("comment","comment")}const xer={name:"nginx",startState:function(){return{tokenize:yer,baseIndent:0,stack:[]}},token:function(e,t){if(e.eatSpace())return null;fer=null;var n=t.tokenize(e,t),r=t.stack[t.stack.length-1];return"hash"==fer&&"rule"==r?n="atom":"variable"==n&&("rule"==r?n="number":r&&"@media{"!=r||(n="tag")),"rule"==r&&/^[\{\};]$/.test(fer)&&t.stack.pop(),"{"==fer?"@media"==r?t.stack[t.stack.length-1]="@media{":t.stack.push("{"):"}"==fer?t.stack.pop():"@media"==fer?t.stack.push("@media"):"{"==r&&"comment"!=fer&&t.stack.push("rule"),n},indent:function(e,t,n){var r=e.stack.length;return/^\}/.test(t)&&(r-="rule"==e.stack[e.stack.length-1]?2:1),e.baseIndent+r*n.unit},languageData:{indentOnInput:/^\s*\}$/}},wer=Object.freeze(Object.defineProperty({__proto__:null,nginx:xer},Symbol.toStringTag,{value:"Module"})),ker=U2n({start:[{regex:/(?:[+-]?)(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\d+.?\d*)/,token:"number"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/`(?:[^\\`]|\\.)*`?/,token:"string"},{regex:/^\s*(?:\!(addincludedir|addplugindir|appendfile|assert|cd|define|delfile|echo|error|execute|finalize|getdllversion|gettlbversion|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|uninstfinalize|verbose|warning))\b/i,token:"keyword"},{regex:/^\s*(?:\!(if(?:n?def)?|ifmacron?def|macro))\b/i,token:"keyword",indent:!0},{regex:/^\s*(?:\!(else|endif|macroend))\b/i,token:"keyword",dedent:!0},{regex:/^\s*(?:Abort|AddBrandingImage|AddSize|AllowRootDirInstall|AllowSkipFiles|AutoCloseWindow|BGFont|BGGradient|BrandingText|BringToFront|Call|CallInstDLL|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|CreateDirectory|CreateFont|CreateShortCut|Delete|DeleteINISec|DeleteINIStr|DeleteRegKey|DeleteRegValue|DetailPrint|DetailsButtonText|DirText|DirVar|DirVerify|EnableWindow|EnumRegKey|EnumRegValue|Exch|Exec|ExecShell|ExecShellWait|ExecWait|ExpandEnvStrings|File|FileBufSize|FileClose|FileErrorText|FileOpen|FileRead|FileReadByte|FileReadUTF16LE|FileReadWord|FileWriteUTF16LE|FileSeek|FileWrite|FileWriteByte|FileWriteWord|FindClose|FindFirst|FindNext|FindWindow|FlushINI|GetCurInstType|GetCurrentAddress|GetDlgItem|GetDLLVersion|GetDLLVersionLocal|GetErrorLevel|GetFileTime|GetFileTimeLocal|GetFullPathName|GetFunctionAddress|GetInstDirError|GetKnownFolderPath|GetLabelAddress|GetTempFileName|GetWinVer|Goto|HideWindow|Icon|IfAbort|IfErrors|IfFileExists|IfRebootFlag|IfRtlLanguage|IfShellVarContextAll|IfSilent|InitPluginsDir|InstallButtonText|InstallColors|InstallDir|InstallDirRegKey|InstProgressFlags|InstType|InstTypeGetText|InstTypeSetText|Int64Cmp|Int64CmpU|Int64Fmt|IntCmp|IntCmpU|IntFmt|IntOp|IntPtrCmp|IntPtrCmpU|IntPtrOp|IsWindow|LangString|LicenseBkColor|LicenseData|LicenseForceSelection|LicenseLangString|LicenseText|LoadAndSetImage|LoadLanguageFile|LockWindow|LogSet|LogText|ManifestDPIAware|ManifestLongPathAware|ManifestMaxVersionTested|ManifestSupportedOS|MessageBox|MiscButtonText|Name|Nop|OutFile|Page|PageCallbacks|PEAddResource|PEDllCharacteristics|PERemoveResource|PESubsysVer|Pop|Push|Quit|ReadEnvStr|ReadINIStr|ReadRegDWORD|ReadRegStr|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|SectionGetFlags|SectionGetInstTypes|SectionGetSize|SectionGetText|SectionIn|SectionSetFlags|SectionSetInstTypes|SectionSetSize|SectionSetText|SendMessage|SetAutoClose|SetBrandingImage|SetCompress|SetCompressor|SetCompressorDictSize|SetCtlColors|SetCurInstType|SetDatablockOptimize|SetDateSave|SetDetailsPrint|SetDetailsView|SetErrorLevel|SetErrors|SetFileAttributes|SetFont|SetOutPath|SetOverwrite|SetRebootFlag|SetRegView|SetShellVarContext|SetSilent|ShowInstDetails|ShowUninstDetails|ShowWindow|SilentInstall|SilentUnInstall|Sleep|SpaceTexts|StrCmp|StrCmpS|StrCpy|StrLen|SubCaption|Target|Unicode|UninstallButtonText|UninstallCaption|UninstallIcon|UninstallSubCaption|UninstallText|UninstPage|UnRegDLL|Var|VIAddVersionKey|VIFileVersion|VIProductVersion|WindowIcon|WriteINIStr|WriteRegBin|WriteRegDWORD|WriteRegExpandStr|WriteRegMultiStr|WriteRegNone|WriteRegStr|WriteUninstaller|XPStyle)\b/i,token:"keyword"},{regex:/^\s*(?:Function|PageEx|Section(?:Group)?)\b/i,token:"keyword",indent:!0},{regex:/^\s*(?:(Function|PageEx|Section(?:Group)?)End)\b/i,token:"keyword",dedent:!0},{regex:/\b(?:ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HIDDEN|HKCC|HKCR(32|64)?|HKCU(32|64)?|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM(32|64)?|HKPD|HKU|IDABORT|IDCANCEL|IDD_DIR|IDD_INST|IDD_INSTFILES|IDD_LICENSE|IDD_SELCOM|IDD_UNINST|IDD_VERIFY|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|MB_YESNOCANCEL|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SW_HIDE|SW_SHOWDEFAULT|SW_SHOWMAXIMIZED|SW_SHOWMINIMIZED|SW_SHOWNORMAL|SYSTEM|TEMPORARY)\b/i,token:"atom"},{regex:/\b(?:admin|all|amd64-unicode|auto|both|bottom|bzip2|components|current|custom|directory|false|force|hide|highest|ifdiff|ifnewer|instfiles|lastused|leave|left|license|listonly|lzma|nevershow|none|normal|notset|off|on|right|show|silent|silentlog|textonly|top|true|try|un\.components|un\.custom|un\.directory|un\.instfiles|un\.license|uninstConfirm|user|Win10|Win7|Win8|WinVista|x-86-(ansi|unicode)|zlib)\b/i,token:"builtin"},{regex:/\$\{(?:And(?:If(?:Not)?|Unless)|Break|Case(?:2|3|4|5|Else)?|Continue|Default|Do(?:Until|While)?|Else(?:If(?:Not)?|Unless)?|End(?:If|Select|Switch)|Exit(?:Do|For|While)|For(?:Each)?|If(?:Cmd|Not(?:Then)?|Then)?|Loop(?:Until|While)?|Or(?:If(?:Not)?|Unless)|Select|Switch|Unless|While)\}/i,token:"variable-2",indent:!0},{regex:/\$\{(?:BannerTrimPath|DirState|DriveSpace|Get(BaseName|Drives|ExeName|ExePath|FileAttributes|FileExt|FileName|FileVersion|Options|OptionsS|Parameters|Parent|Root|Size|Time)|Locate|RefreshShellIcons)\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:Memento(?:Section(?:Done|End|Restore|Save)?|UnselectedSection))\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:Config(?:Read|ReadS|Write|WriteS)|File(?:Join|ReadFromEnd|Recode)|Line(?:Find|Read|Sum)|Text(?:Compare|CompareS)|TrimNewLines)\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:(?:At(?:Least|Most)|Is)(?:ServicePack|Win(?:7|8|10|95|98|200(?:0|3|8(?:R2)?)|ME|NT4|Vista|XP))|Is(?:NT|Server))\}/i,token:"variable",dedent:!0},{regex:/\$\{(?:StrFilterS?|Version(?:Compare|Convert)|Word(?:AddS?|Find(?:(?:2|3)X)?S?|InsertS?|ReplaceS?))\}/i,token:"keyword",dedent:!0},{regex:/\$\{(?:RunningX64)\}/i,token:"variable",dedent:!0},{regex:/\$\{(?:Disable|Enable)X64FSRedirection\}/i,token:"keyword",dedent:!0},{regex:/(#|;).*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/\$\w[\w\.]*/,token:"variable"},{regex:/\${[\!\w\.:-]+}/,token:"variableName.constant"},{regex:/\$\([\!\w\.:-]+\)/,token:"atom"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],languageData:{name:"nsis",indentOnInput:/^\s*((Function|PageEx|Section|Section(Group)?)End|(\!(endif|macroend))|\$\{(End(If|Unless|While)|Loop(Until)|Next)\})$/i,commentTokens:{line:"#",block:{open:"/*",close:"*/"}}}}),Ser=Object.freeze(Object.defineProperty({__proto__:null,nsis:ker},Symbol.toStringTag,{value:"Module"}));var Ter=0,$er=1,_er=2,Cer=3,Qer=4,Per=5,Eer=6,Rer=7,Ber=8,Ier=9,Ler=10,Der=11,Mer=12;function Ner(e,t){var n,r=e.location;n=r==Ter&&"<"==t?$er:r==Ter&&"_"==t?_er:r==Cer&&"<"==t?Qer:r==Per&&"<"==t?Eer:r==Per&&"_"==t?Rer:r==Per&&'"'==t?Ber:r==$er&&">"==t||r==_er&&" "==t?Cer:r==Qer&&">"==t?Per:r==Eer&&">"==t||r==Rer&&" "==t||r==Ber&&'"'==t||r==Ier&&" "==t||r==Ler&&">"==t?Der:r==Ber&&"@"==t?Ier:r==Ber&&"^"==t?Ler:" "!=t||r!=Ter&&r!=Cer&&r!=Per&&r!=Der?r==Der&&"."==t?Ter:Mer:r,e.location=n}const Xer={name:"ntriples",startState:function(){return{location:Ter,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(e,t){var n=e.next();if("<"==n){Ner(t,n);var r="";return e.eatWhile(function(e){return"#"!=e&&">"!=e&&(r+=e,!0)}),t.uris.push(r),e.match("#",!1)?"variable":(e.next(),Ner(t,">"),"variable")}if("#"==n){var i="";return e.eatWhile(function(e){return">"!=e&&" "!=e&&(i+=e,!0)}),t.anchors.push(i),"url"}if(">"==n)return Ner(t,">"),"variable";if("_"==n){Ner(t,n);var o="";return e.eatWhile(function(e){return" "!=e&&(o+=e,!0)}),t.bnodes.push(o),e.next(),Ner(t," "),"builtin"}if('"'==n)return Ner(t,n),e.eatWhile(function(e){return'"'!=e}),e.next(),"@"!=e.peek()&&"^"!=e.peek()&&Ner(t,'"'),"string";if("@"==n){Ner(t,"@");var a="";return e.eatWhile(function(e){return" "!=e&&(a+=e,!0)}),t.langs.push(a),e.next(),Ner(t," "),"string.special"}if("^"==n){e.next(),Ner(t,"^");var s="";return e.eatWhile(function(e){return">"!=e&&(s+=e,!0)}),t.types.push(s),e.next(),Ner(t,">"),"variable"}" "==n&&Ner(t,n),"."==n&&Ner(t,n)}},Fer=Object.freeze(Object.defineProperty({__proto__:null,ntriples:Xer},Symbol.toStringTag,{value:"Module"}));function Uer(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var zer=new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]"),qer=new RegExp("^[\\(\\[\\{\\},:=;\\.]"),Ver=new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))"),Wer=new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))"),jer=new RegExp("^((>>=)|(<<=))"),Yer=new RegExp("^[\\]\\)]"),Zer=new RegExp("^[_A-Za-z¡-][_A-Za-z0-9¡-]*"),Ger=Uer(["error","eval","function","abs","acos","atan","asin","cos","cosh","exp","log","prod","sum","log10","max","min","sign","sin","sinh","sqrt","tan","reshape","break","zeros","default","margin","round","ones","rand","syn","ceil","floor","size","clear","zeros","eye","mean","std","cov","det","eig","inv","norm","rank","trace","expm","logm","sqrtm","linspace","plot","title","xlabel","ylabel","legend","text","grid","meshgrid","mesh","num2str","fft","ifft","arrayfun","cellfun","input","fliplr","flipud","ismember"]),Her=Uer(["return","case","switch","else","elseif","end","endif","endfunction","if","otherwise","do","for","while","try","catch","classdef","properties","events","methods","global","persistent","endfor","endwhile","printf","sprintf","disp","until","continue","pkg"]);function Ker(e,t){return e.sol()||"'"!==e.peek()?(t.tokenize=etr,etr(e,t)):(e.next(),t.tokenize=etr,"operator")}function Jer(e,t){return e.match(/^.*%}/)?(t.tokenize=etr,"comment"):(e.skipToEnd(),"comment")}function etr(e,t){if(e.eatSpace())return null;if(e.match("%{"))return t.tokenize=Jer,e.skipToEnd(),"comment";if(e.match(/^[%#]/))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/))return e.tokenize=etr,"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/))return"number"}if(e.match(Uer(["nan","NaN","inf","Inf"])))return"number";var n=e.match(/^"(?:[^"]|"")*("|$)/)||e.match(/^'(?:[^']|'')*('|$)/);return n?n[1]?"string":"error":e.match(Her)?"keyword":e.match(Ger)?"builtin":e.match(Zer)?"variable":e.match(zer)||e.match(Ver)?"operator":e.match(qer)||e.match(Wer)||e.match(jer)?null:e.match(Yer)?(t.tokenize=Ker,null):(e.next(),"error")}const ttr={name:"octave",startState:function(){return{tokenize:etr}},token:function(e,t){var n=t.tokenize(e,t);return"number"!==n&&"variable"!==n||(t.tokenize=Ker),n},languageData:{commentTokens:{line:"%"}}},ntr=Object.freeze(Object.defineProperty({__proto__:null,octave:ttr},Symbol.toStringTag,{value:"Module"}));function rtr(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var itr=/[\^@!\|<>#~\.\*\-\+\\/,=]/,otr=/(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\=)|(\\=:)|(!!)|(==)|(::)/,atr=/(:::)|(\.\.\.)|(=<:)|(>=:)/,str=["in","then","else","of","elseof","elsecase","elseif","catch","finally","with","require","prepare","import","export","define","do"],ltr=["end"],ctr=rtr(["true","false","nil","unit"]),utr=rtr(["andthen","at","attr","declare","feat","from","lex","mod","div","mode","orelse","parser","prod","prop","scanner","self","syn","token"]),htr=rtr(["local","proc","fun","case","class","if","cond","or","dis","choice","not","thread","try","raise","lock","for","suchthat","meth","functor"]),dtr=rtr(str),ptr=rtr(ltr);function ftr(e,t){if(e.eatSpace())return null;if(e.match(/[{}]/))return"bracket";if(e.match("[]"))return"keyword";if(e.match(atr)||e.match(otr))return"operator";if(e.match(ctr))return"atom";var n=e.match(htr);if(n)return t.doInCurrentLine?t.doInCurrentLine=!1:t.currentIndent++,"proc"==n[0]||"fun"==n[0]?t.tokenize=Otr:"class"==n[0]?t.tokenize=gtr:"meth"==n[0]&&(t.tokenize=mtr),"keyword";if(e.match(dtr)||e.match(utr))return"keyword";if(e.match(ptr))return t.currentIndent--,"keyword";var r,i=e.next();if('"'==i||"'"==i)return t.tokenize=(r=i,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){o=!0;break}i=!i&&"\\"==n}return!o&&i||(t.tokenize=ftr),"string"}),t.tokenize(e,t);if(/[~\d]/.test(i)){if("~"==i){if(!/^[0-9]/.test(e.peek()))return null;if("0"==e.next()&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))return"number"}return"0"==i&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/)?"number":null}return"%"==i?(e.skipToEnd(),"comment"):"/"==i&&e.eat("*")?(t.tokenize=Atr,Atr(e,t)):itr.test(i)?"operator":(e.eatWhile(/\w/),"variable")}function gtr(e,t){return e.eatSpace()?null:(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/),t.tokenize=ftr,"type")}function mtr(e,t){return e.eatSpace()?null:(e.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/),t.tokenize=ftr,"def")}function Otr(e,t){return e.eatSpace()?null:!t.hasPassedFirstStage&&e.eat("{")?(t.hasPassedFirstStage=!0,"bracket"):t.hasPassedFirstStage?(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\$/),t.hasPassedFirstStage=!1,t.tokenize=ftr,"def"):(t.tokenize=ftr,null)}function Atr(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=ftr;break}r="*"==n}return"comment"}const ytr={name:"oz",startState:function(){return{tokenize:ftr,currentIndent:0,doInCurrentLine:!1,hasPassedFirstStage:!1}},token:function(e,t){return e.sol()&&(t.doInCurrentLine=0),t.tokenize(e,t)},indent:function(e,t,n){var r=t.replace(/^\s+|\s+$/g,"");return r.match(ptr)||r.match(dtr)||r.match(/(\[])/)?n.unit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*n.unit},languageData:{indentOnInut:(vtr=str.concat(ltr),new RegExp("[\\[\\]]|("+vtr.join("|")+")$")),commentTokens:{line:"%",block:{open:"/*",close:"*/"}}}};var vtr;const btr=Object.freeze(Object.defineProperty({__proto__:null,oz:ytr},Symbol.toStringTag,{value:"Module"}));var xtr=function(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}("absolute and array asm begin case const constructor destructor div do downto else end file for function goto if implementation in inherited inline interface label mod nil not object of operator or packed procedure program record reintroduce repeat self set shl shr string then to type unit until uses var while with xor as class dispinterface except exports finalization finally initialization inline is library on out packed property raise resourcestring threadvar try 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 iocheck 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"),wtr={null:!0},ktr=/[+\-*&%=<>!?|\/]/;function Str(e,t){var n,r=e.next();if("#"==r&&t.startOfLine)return e.skipToEnd(),"meta";if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return!o&&i||(t.tokenize=null),"string"}),t.tokenize(e,t);if("("==r&&e.eat("*"))return t.tokenize=Ttr,Ttr(e,t);if("{"==r)return t.tokenize=$tr,$tr(e,t);if(/[\[\]\(\),;\:\.]/.test(r))return null;if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if("/"==r&&e.eat("/"))return e.skipToEnd(),"comment";if(ktr.test(r))return e.eatWhile(ktr),"operator";e.eatWhile(/[\w\$_]/);var i=e.current().toLowerCase();return xtr.propertyIsEnumerable(i)?"keyword":wtr.propertyIsEnumerable(i)?"atom":"variable"}function Ttr(e,t){for(var n,r=!1;n=e.next();){if(")"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function $tr(e,t){for(var n;n=e.next();)if("}"==n){t.tokenize=null;break}return"comment"}const _tr={name:"pascal",startState:function(){return{tokenize:null}},token:function(e,t){if(e.eatSpace())return null;var n=(t.tokenize||Str)(e,t);return n},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{block:{open:"(*",close:"*)"}}}},Ctr=Object.freeze(Object.defineProperty({__proto__:null,pascal:_tr},Symbol.toStringTag,{value:"Module"}));function Qtr(e,t){return e.string.charAt(e.pos+(t||0))}function Ptr(e,t){if(t){var n=e.pos-t;return e.string.substr(n>=0?n:0,t)}return e.string.substr(0,e.pos-1)}function Etr(e,t){var n=e.string.length,r=n-e.pos+1;return e.string.substr(e.pos,t&&t<n?t:r)}function Rtr(e,t){var n,r=e.pos+t;r<=0?e.pos=0:r>=(n=e.string.length-1)?e.pos=n:e.pos=r}var Btr={"->":4,"++":4,"--":4,"**":4,"=~":4,"!~":4,"*":4,"/":4,"%":4,x:4,"+":4,"-":4,".":4,"<<":4,">>":4,"<":4,">":4,"<=":4,">=":4,lt:4,gt:4,le:4,ge:4,"==":4,"!=":4,"<=>":4,eq:4,ne:4,cmp:4,"~~":4,"&":4,"|":4,"^":4,"&&":4,"||":4,"//":4,"..":4,"...":4,"?":4,":":4,"=":4,"+=":4,"-=":4,"*=":4,",":4,"=>":4,"::":4,not:4,and:4,or:4,xor:4,BEGIN:[5,1],END:[5,1],PRINT:[5,1],PRINTF:[5,1],GETC:[5,1],READ:[5,1],READLINE:[5,1],DESTROY:[5,1],TIE:[5,1],TIEHANDLE:[5,1],UNTIE:[5,1],STDIN:5,STDIN_TOP:5,STDOUT:5,STDOUT_TOP:5,STDERR:5,STDERR_TOP:5,$ARG:5,$_:5,"@ARG":5,"@_":5,$LIST_SEPARATOR:5,'$"':5,$PROCESS_ID:5,$PID:5,$$:5,$REAL_GROUP_ID:5,$GID:5,"$(":5,$EFFECTIVE_GROUP_ID:5,$EGID:5,"$)":5,$PROGRAM_NAME:5,$0:5,$SUBSCRIPT_SEPARATOR:5,$SUBSEP:5,"$;":5,$REAL_USER_ID:5,$UID:5,"$<":5,$EFFECTIVE_USER_ID:5,$EUID:5,"$>":5,$a:5,$b:5,$COMPILING:5,"$^C":5,$DEBUGGING:5,"$^D":5,"${^ENCODING}":5,$ENV:5,"%ENV":5,$SYSTEM_FD_MAX:5,"$^F":5,"@F":5,"${^GLOBAL_PHASE}":5,"$^H":5,"%^H":5,"@INC":5,"%INC":5,$INPLACE_EDIT:5,"$^I":5,"$^M":5,$OSNAME:5,"$^O":5,"${^OPEN}":5,$PERLDB:5,"$^P":5,$SIG:5,"%SIG":5,$BASETIME:5,"$^T":5,"${^TAINT}":5,"${^UNICODE}":5,"${^UTF8CACHE}":5,"${^UTF8LOCALE}":5,$PERL_VERSION:5,"$^V":5,"${^WIN32_SLOPPY_STAT}":5,$EXECUTABLE_NAME:5,"$^X":5,$1:5,$MATCH:5,"$&":5,"${^MATCH}":5,$PREMATCH:5,"$`":5,"${^PREMATCH}":5,$POSTMATCH:5,"$'":5,"${^POSTMATCH}":5,$LAST_PAREN_MATCH:5,"$+":5,$LAST_SUBMATCH_RESULT:5,"$^N":5,"@LAST_MATCH_END":5,"@+":5,"%LAST_PAREN_MATCH":5,"%+":5,"@LAST_MATCH_START":5,"@-":5,"%LAST_MATCH_START":5,"%-":5,$LAST_REGEXP_CODE_RESULT:5,"$^R":5,"${^RE_DEBUG_FLAGS}":5,"${^RE_TRIE_MAXBUF}":5,$ARGV:5,"@ARGV":5,ARGV:5,ARGVOUT:5,$OUTPUT_FIELD_SEPARATOR:5,$OFS:5,"$,":5,$INPUT_LINE_NUMBER:5,$NR:5,"$.":5,$INPUT_RECORD_SEPARATOR:5,$RS:5,"$/":5,$OUTPUT_RECORD_SEPARATOR:5,$ORS:5,"$\\":5,$OUTPUT_AUTOFLUSH:5,"$|":5,$ACCUMULATOR:5,"$^A":5,$FORMAT_FORMFEED:5,"$^L":5,$FORMAT_PAGE_NUMBER:5,"$%":5,$FORMAT_LINES_LEFT:5,"$-":5,$FORMAT_LINE_BREAK_CHARACTERS:5,"$:":5,$FORMAT_LINES_PER_PAGE:5,"$=":5,$FORMAT_TOP_NAME:5,"$^":5,$FORMAT_NAME:5,"$~":5,"${^CHILD_ERROR_NATIVE}":5,$EXTENDED_OS_ERROR:5,"$^E":5,$EXCEPTIONS_BEING_CAUGHT:5,"$^S":5,$WARNING:5,"$^W":5,"${^WARNING_BITS}":5,$OS_ERROR:5,$ERRNO:5,"$!":5,"%OS_ERROR":5,"%ERRNO":5,"%!":5,$CHILD_ERROR:5,"$?":5,$EVAL_ERROR:5,"$@":5,$OFMT:5,"$#":5,"$*":5,$ARRAY_BASE:5,"$[":5,$OLD_PERL_VERSION:5,"$]":5,if:[1,1],elsif:[1,1],else:[1,1],while:[1,1],unless:[1,1],for:[1,1],foreach:[1,1],abs:1,accept:1,alarm:1,atan2:1,bind:1,binmode:1,bless:1,bootstrap:1,break:1,caller:1,chdir:1,chmod:1,chomp:1,chop:1,chown:1,chr:1,chroot:1,close:1,closedir:1,connect:1,continue:[1,1],cos:1,crypt:1,dbmclose:1,dbmopen:1,default:1,defined:1,delete:1,die:1,do:1,dump:1,each:1,endgrent:1,endhostent:1,endnetent:1,endprotoent:1,endpwent:1,endservent:1,eof:1,eval:1,exec:1,exists:1,exit:1,exp:1,fcntl:1,fileno:1,flock:1,fork:1,format:1,formline:1,getc:1,getgrent:1,getgrgid:1,getgrnam:1,gethostbyaddr:1,gethostbyname:1,gethostent:1,getlogin:1,getnetbyaddr:1,getnetbyname:1,getnetent:1,getpeername:1,getpgrp:1,getppid:1,getpriority:1,getprotobyname:1,getprotobynumber:1,getprotoent:1,getpwent:1,getpwnam:1,getpwuid:1,getservbyname:1,getservbyport:1,getservent:1,getsockname:1,getsockopt:1,given:1,glob:1,gmtime:1,goto:1,grep:1,hex:1,import:1,index:1,int:1,ioctl:1,join:1,keys:1,kill:1,last:1,lc:1,lcfirst:1,length:1,link:1,listen:1,local:2,localtime:1,lock:1,log:1,lstat:1,m:null,map:1,mkdir:1,msgctl:1,msgget:1,msgrcv:1,msgsnd:1,my:2,new:1,next:1,no:1,oct:1,open:1,opendir:1,ord:1,our:2,pack:1,package:1,pipe:1,pop:1,pos:1,print:1,printf:1,prototype:1,push:1,q:null,qq:null,qr:null,quotemeta:null,qw:null,qx:null,rand:1,read:1,readdir:1,readline:1,readlink:1,readpipe:1,recv:1,redo:1,ref:1,rename:1,require:1,reset:1,return:1,reverse:1,rewinddir:1,rindex:1,rmdir:1,s:null,say:1,scalar:1,seek:1,seekdir:1,select:1,semctl:1,semget:1,semop:1,send:1,setgrent:1,sethostent:1,setnetent:1,setpgrp:1,setpriority:1,setprotoent:1,setpwent:1,setservent:1,setsockopt:1,shift:1,shmctl:1,shmget:1,shmread:1,shmwrite:1,shutdown:1,sin:1,sleep:1,socket:1,socketpair:1,sort:1,splice:1,split:1,sprintf:1,sqrt:1,srand:1,stat:1,state:1,study:1,sub:1,substr:1,symlink:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,tell:1,telldir:1,tie:1,tied:1,time:1,times:1,tr:null,truncate:1,uc:1,ucfirst:1,umask:1,undef:1,unlink:1,unpack:1,unshift:1,untie:1,use:1,utime:1,values:1,vec:1,wait:1,waitpid:1,wantarray:1,warn:1,when:1,write:1,y:null},Itr="string.special",Ltr=/[goseximacplud]/;function Dtr(e,t,n,r,i){return t.chain=null,t.style=null,t.tail=null,t.tokenize=function(e,t){for(var o,a=!1,s=0;o=e.next();){if(o===n[s]&&!a)return void 0!==n[++s]?(t.chain=n[s],t.style=r,t.tail=i):i&&e.eatWhile(i),t.tokenize=Ntr,r;a=!a&&"\\"==o}return r},t.tokenize(e,t)}function Mtr(e,t,n){return t.tokenize=function(e,t){return e.string==n&&(t.tokenize=Ntr),e.skipToEnd(),"string"},t.tokenize(e,t)}function Ntr(e,t){if(e.eatSpace())return null;if(t.chain)return Dtr(e,t,t.chain,t.style,t.tail);if(e.match(/^(\-?((\d[\d_]*)?\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F_]+|0b[01_]+|\d[\d_]*(e[+-]?\d+)?)/))return"number";if(e.match(/^<<(?=[_a-zA-Z])/))return e.eatWhile(/\w/),Mtr(e,t,e.current().substr(2));if(e.sol()&&e.match(/^\=item(?!\w)/))return Mtr(e,t,"=cut");var n=e.next();if('"'==n||"'"==n){if(Ptr(e,3)=="<<"+n){var r=e.pos;e.eatWhile(/\w/);var i=e.current().substr(1);if(i&&e.eat(n))return Mtr(e,t,i);e.pos=r}return Dtr(e,t,[n],"string")}if("q"==n&&(!(o=Qtr(e,-2))||!/\w/.test(o)))if("x"==(o=Qtr(e,0))){if("("==(o=Qtr(e,1)))return Rtr(e,2),Dtr(e,t,[")"],Itr,Ltr);if("["==o)return Rtr(e,2),Dtr(e,t,["]"],Itr,Ltr);if("{"==o)return Rtr(e,2),Dtr(e,t,["}"],Itr,Ltr);if("<"==o)return Rtr(e,2),Dtr(e,t,[">"],Itr,Ltr);if(/[\^'"!~\/]/.test(o))return Rtr(e,1),Dtr(e,t,[e.eat(o)],Itr,Ltr)}else if("q"==o){if("("==(o=Qtr(e,1)))return Rtr(e,2),Dtr(e,t,[")"],"string");if("["==o)return Rtr(e,2),Dtr(e,t,["]"],"string");if("{"==o)return Rtr(e,2),Dtr(e,t,["}"],"string");if("<"==o)return Rtr(e,2),Dtr(e,t,[">"],"string");if(/[\^'"!~\/]/.test(o))return Rtr(e,1),Dtr(e,t,[e.eat(o)],"string")}else if("w"==o){if("("==(o=Qtr(e,1)))return Rtr(e,2),Dtr(e,t,[")"],"bracket");if("["==o)return Rtr(e,2),Dtr(e,t,["]"],"bracket");if("{"==o)return Rtr(e,2),Dtr(e,t,["}"],"bracket");if("<"==o)return Rtr(e,2),Dtr(e,t,[">"],"bracket");if(/[\^'"!~\/]/.test(o))return Rtr(e,1),Dtr(e,t,[e.eat(o)],"bracket")}else if("r"==o){if("("==(o=Qtr(e,1)))return Rtr(e,2),Dtr(e,t,[")"],Itr,Ltr);if("["==o)return Rtr(e,2),Dtr(e,t,["]"],Itr,Ltr);if("{"==o)return Rtr(e,2),Dtr(e,t,["}"],Itr,Ltr);if("<"==o)return Rtr(e,2),Dtr(e,t,[">"],Itr,Ltr);if(/[\^'"!~\/]/.test(o))return Rtr(e,1),Dtr(e,t,[e.eat(o)],Itr,Ltr)}else if(/[\^'"!~\/(\[{<]/.test(o)){if("("==o)return Rtr(e,1),Dtr(e,t,[")"],"string");if("["==o)return Rtr(e,1),Dtr(e,t,["]"],"string");if("{"==o)return Rtr(e,1),Dtr(e,t,["}"],"string");if("<"==o)return Rtr(e,1),Dtr(e,t,[">"],"string");if(/[\^'"!~\/]/.test(o))return Dtr(e,t,[e.eat(o)],"string")}if("m"==n&&((!(o=Qtr(e,-2))||!/\w/.test(o))&&(o=e.eat(/[(\[{<\^'"!~\/]/)))){if(/[\^'"!~\/]/.test(o))return Dtr(e,t,[o],Itr,Ltr);if("("==o)return Dtr(e,t,[")"],Itr,Ltr);if("["==o)return Dtr(e,t,["]"],Itr,Ltr);if("{"==o)return Dtr(e,t,["}"],Itr,Ltr);if("<"==o)return Dtr(e,t,[">"],Itr,Ltr)}if("s"==n&&(!(o=/[\/>\]})\w]/.test(Qtr(e,-2)))&&(o=e.eat(/[(\[{<\^'"!~\/]/))))return Dtr(e,t,"["==o?["]","]"]:"{"==o?["}","}"]:"<"==o?[">",">"]:"("==o?[")",")"]:[o,o],Itr,Ltr);if("y"==n&&(!(o=/[\/>\]})\w]/.test(Qtr(e,-2)))&&(o=e.eat(/[(\[{<\^'"!~\/]/))))return Dtr(e,t,"["==o?["]","]"]:"{"==o?["}","}"]:"<"==o?[">",">"]:"("==o?[")",")"]:[o,o],Itr,Ltr);if("t"==n&&(!(o=/[\/>\]})\w]/.test(Qtr(e,-2)))&&(o=e.eat("r"))&&(o=e.eat(/[(\[{<\^'"!~\/]/))))return Dtr(e,t,"["==o?["]","]"]:"{"==o?["}","}"]:"<"==o?[">",">"]:"("==o?[")",")"]:[o,o],Itr,Ltr);if("`"==n)return Dtr(e,t,[n],"builtin");if("/"==n)return/~\s*$/.test(Ptr(e))?Dtr(e,t,[n],Itr,Ltr):"operator";if("$"==n){r=e.pos;if(e.eatWhile(/\d/)||e.eat("{")&&e.eatWhile(/\d/)&&e.eat("}"))return"builtin";e.pos=r}if(/[$@%]/.test(n)){r=e.pos;if(e.eat("^")&&e.eat(/[A-Z]/)||!/[@$%&]/.test(Qtr(e,-2))&&e.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){var o=e.current();if(Btr[o])return"builtin"}e.pos=r}if(/[$@%&]/.test(n)&&(e.eatWhile(/[\w$]/)||e.eat("{")&&e.eatWhile(/[\w$]/)&&e.eat("}"))){o=e.current();return Btr[o]?"builtin":"variable"}if("#"==n&&"$"!=Qtr(e,-2))return e.skipToEnd(),"comment";if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(n)){r=e.pos;if(e.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/),Btr[e.current()])return"operator";e.pos=r}if("_"==n&&1==e.pos){if("_END__"==Etr(e,6))return Dtr(e,t,["\0"],"comment");if("_DATA__"==Etr(e,7))return Dtr(e,t,["\0"],"builtin");if("_C__"==Etr(e,7))return Dtr(e,t,["\0"],"string")}if(/\w/.test(n)){r=e.pos;if("{"==Qtr(e,-2)&&("}"==Qtr(e,0)||e.eatWhile(/\w/)&&"}"==Qtr(e,0)))return"string";e.pos=r}if(/[A-Z]/.test(n)){var a=Qtr(e,-2);r=e.pos;if(e.eatWhile(/[A-Z_]/),!/[\da-z]/.test(Qtr(e,0)))return(o=Btr[e.current()])?(o[1]&&(o=o[0]),":"!=a?1==o?"keyword":2==o?"def":3==o?"atom":4==o?"operator":5==o?"builtin":"meta":"meta"):"meta";e.pos=r}if(/[a-zA-Z_]/.test(n)){a=Qtr(e,-2);return e.eatWhile(/\w/),(o=Btr[e.current()])?(o[1]&&(o=o[0]),":"!=a?1==o?"keyword":2==o?"def":3==o?"atom":4==o?"operator":5==o?"builtin":"meta":"meta"):"meta"}return null}const Xtr={name:"perl",startState:function(){return{tokenize:Ntr,chain:null,style:null,tail:null}},token:function(e,t){return(t.tokenize||Ntr)(e,t)},languageData:{commentTokens:{line:"#"},wordChars:"$"}},Ftr=Object.freeze(Object.defineProperty({__proto__:null,perl:Xtr},Symbol.toStringTag,{value:"Module"}));function Utr(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var ztr="ABS ACOS ARITY ASIN ATAN AVG BAGSIZE BINSTORAGE BLOOM BUILDBLOOM CBRT CEIL CONCAT COR COS COSH COUNT COUNT_STAR COV CONSTANTSIZE CUBEDIMENSIONS DIFF DISTINCT DOUBLEABS DOUBLEAVG DOUBLEBASE DOUBLEMAX DOUBLEMIN DOUBLEROUND DOUBLESUM EXP FLOOR FLOATABS FLOATAVG FLOATMAX FLOATMIN FLOATROUND FLOATSUM GENERICINVOKER INDEXOF INTABS INTAVG INTMAX INTMIN INTSUM INVOKEFORDOUBLE INVOKEFORFLOAT INVOKEFORINT INVOKEFORLONG INVOKEFORSTRING INVOKER ISEMPTY JSONLOADER JSONMETADATA JSONSTORAGE LAST_INDEX_OF LCFIRST LOG LOG10 LOWER LONGABS LONGAVG LONGMAX LONGMIN LONGSUM MAX MIN MAPSIZE MONITOREDUDF NONDETERMINISTIC OUTPUTSCHEMA PIGSTORAGE PIGSTREAMING RANDOM REGEX_EXTRACT REGEX_EXTRACT_ALL REPLACE ROUND SIN SINH SIZE SQRT STRSPLIT SUBSTRING SUM STRINGCONCAT STRINGMAX STRINGMIN STRINGSIZE TAN TANH TOBAG TOKENIZE TOMAP TOP TOTUPLE TRIM TEXTLOADER TUPLESIZE UCFIRST UPPER UTF8STORAGECONVERTER ",qtr="VOID IMPORT RETURNS DEFINE LOAD FILTER FOREACH ORDER CUBE DISTINCT COGROUP JOIN CROSS UNION SPLIT INTO IF OTHERWISE ALL AS BY USING INNER OUTER ONSCHEMA PARALLEL PARTITION GROUP AND OR NOT GENERATE FLATTEN ASC DESC IS STREAM THROUGH STORE MAPREDUCE SHIP CACHE INPUT OUTPUT STDERROR STDIN STDOUT LIMIT SAMPLE LEFT RIGHT FULL EQ GT LT GTE LTE NEQ MATCHES TRUE FALSE DUMP",Vtr="BOOLEAN INT LONG FLOAT DOUBLE CHARARRAY BYTEARRAY BAG TUPLE MAP ",Wtr=Utr(ztr),jtr=Utr(qtr),Ytr=Utr(Vtr),Ztr=/[*+\-%<>=&?:\/!|]/;function Gtr(e,t,n){return t.tokenize=n,n(e,t)}function Htr(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=Ktr;break}r="*"==n}return"comment"}function Ktr(e,t){var n,r=e.next();return'"'==r||"'"==r?Gtr(e,t,(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return!o&&i||(t.tokenize=Ktr),"error"})):/[\[\]{}\(\),;\.]/.test(r)?null:/\d/.test(r)?(e.eatWhile(/[\w\.]/),"number"):"/"==r?e.eat("*")?Gtr(e,t,Htr):(e.eatWhile(Ztr),"operator"):"-"==r?e.eat("-")?(e.skipToEnd(),"comment"):(e.eatWhile(Ztr),"operator"):Ztr.test(r)?(e.eatWhile(Ztr),"operator"):(e.eatWhile(/[\w\$_]/),jtr&&jtr.propertyIsEnumerable(e.current().toUpperCase())&&!e.eat(")")&&!e.eat(".")?"keyword":Wtr&&Wtr.propertyIsEnumerable(e.current().toUpperCase())?"builtin":Ytr&&Ytr.propertyIsEnumerable(e.current().toUpperCase())?"type":"variable")}const Jtr={name:"pig",startState:function(){return{tokenize:Ktr,startOfLine:!0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{autocomplete:(ztr+Vtr+qtr).split(" ")}},enr=Object.freeze(Object.defineProperty({__proto__:null,pig:Jtr},Symbol.toStringTag,{value:"Module"}));function tnr(e,t){for(var n=void 0!==(t=t||{}).prefix?t.prefix:"^",r=void 0!==t.suffix?t.suffix:"\\b",i=0;i<e.length;i++)e[i]instanceof RegExp?e[i]=e[i].source:e[i]=e[i].replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp(n+"("+e.join("|")+")"+r,"i")}var nnr="(?=[^A-Za-z\\d\\-_]|$)",rnr=/[\w\-:]/,inr=tnr([/begin|break|catch|continue|data|default|do|dynamicparam/,/else|elseif|end|exit|filter|finally|for|foreach|from|function|if|in/,/param|process|return|switch|throw|trap|try|until|where|while/],{suffix:nnr}),onr=tnr(["f",/b?not/,/[ic]?split/,"join",/is(not)?/,"as",/[ic]?(eq|ne|[gl][te])/,/[ic]?(not)?(like|match|contains)/,/[ic]?replace/,/b?(and|or|xor)/],{prefix:"-"}),anr=tnr([onr,/[+\-*\/%]=|\+\+|--|\.\.|[+\-*&^%:=!|\/]|<(?!#)|(?!#)>/],{suffix:""}),snr=tnr([/Add-(Computer|Content|History|Member|PSSnapin|Type)/,/Checkpoint-Computer/,/Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,/Compare-Object/,/Complete-Transaction/,/Connect-PSSession/,/ConvertFrom-(Csv|Json|SecureString|StringData)/,/Convert-Path/,/ConvertTo-(Csv|Html|Json|SecureString|Xml)/,/Copy-Item(Property)?/,/Debug-Process/,/Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/Disconnect-PSSession/,/Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/(Enter|Exit)-PSSession/,/Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,/ForEach-Object/,/Format-(Custom|List|Table|Wide)/,new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),/Group-Object/,/Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,/ImportSystemModules/,/Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,/Join-Path/,/Limit-EventLog/,/Measure-(Command|Object)/,/Move-Item(Property)?/,new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),/Out-(Default|File|GridView|Host|Null|Printer|String)/,/Pause/,/(Pop|Push)-Location/,/Read-Host/,/Receive-(Job|PSSession)/,/Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,/Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,/Rename-(Computer|Item(Property)?)/,/Reset-ComputerMachinePassword/,/Resolve-Path/,/Restart-(Computer|Service)/,/Restore-Computer/,/Resume-(Job|Service)/,/Save-Help/,/Select-(Object|String|Xml)/,/Send-MailMessage/,new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),/Show-(Command|ControlPanelItem|EventLog)/,/Sort-Object/,/Split-Path/,/Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,/Stop-(Computer|Job|Process|Service|Transcript)/,/Suspend-(Job|Service)/,/TabExpansion2/,/Tee-Object/,/Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,/Trace-Command/,/Unblock-File/,/Undo-Transaction/,/Unregister-(Event|PSSessionConfiguration)/,/Update-(FormatData|Help|List|TypeData)/,/Use-Transaction/,/Wait-(Event|Job|Process)/,/Where-Object/,/Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,/cd|help|mkdir|more|oss|prompt/,/ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,/echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,/group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,/measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,/rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,/sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/],{prefix:"",suffix:""}),lnr=tnr([/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,/FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,/MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,/PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,/PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,/WarningPreference|WhatIfPreference/,/Event|EventArgs|EventSubscriber|Sender/,/Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,/true|false|null/],{prefix:"\\$",suffix:""}),cnr={keyword:inr,number:/^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i,operator:anr,builtin:tnr([/[A-Z]:|%|\?/i,snr,lnr],{suffix:nnr}),punctuation:/[\[\]{},;`\\\.]|@[({]/,variable:/^[A-Za-z\_][A-Za-z\-\_\d]*\b/};function unr(e,t){var n=t.returnStack[t.returnStack.length-1];if(n&&n.shouldReturnFrom(t))return t.tokenize=n.tokenize,t.returnStack.pop(),t.tokenize(e,t);if(e.eatSpace())return null;if(e.eat("("))return t.bracketNesting+=1,"punctuation";if(e.eat(")"))return t.bracketNesting-=1,"punctuation";for(var r in cnr)if(e.match(cnr[r]))return r;var i=e.next();if("'"===i)return function(e,t){var n;for(;null!=(n=e.peek());)if(e.next(),"'"===n&&!e.eat("'"))return t.tokenize=unr,"string";return"error"}(e,t);if("$"===i)return Onr(e,t);if('"'===i)return hnr(e,t);if("<"===i&&e.eat("#"))return t.tokenize=mnr,mnr(e,t);if("#"===i)return e.skipToEnd(),"comment";if("@"===i){var o=e.eat(/["']/);if(o&&e.eol())return t.tokenize=ynr,t.startQuote=o[0],ynr(e,t);if(e.eol())return"error";if(e.peek().match(/[({]/))return"punctuation";if(e.peek().match(rnr))return Onr(e,t)}return"error"}function hnr(e,t){for(var n;null!=(n=e.peek());){if("$"===n)return t.tokenize=dnr,"string";if(e.next(),"`"!==n){if('"'===n&&!e.eat('"'))return t.tokenize=unr,"string"}else e.next()}return"error"}function dnr(e,t){return gnr(e,t,hnr)}function pnr(e,t){return t.tokenize=ynr,t.startQuote='"',ynr(e,t)}function fnr(e,t){return gnr(e,t,pnr)}function gnr(e,t,n){if(e.match("$(")){var r=t.bracketNesting;return t.returnStack.push({shouldReturnFrom:function(e){return e.bracketNesting===r},tokenize:n}),t.tokenize=unr,t.bracketNesting+=1,"punctuation"}return e.next(),t.returnStack.push({shouldReturnFrom:function(){return!0},tokenize:n}),t.tokenize=Onr,t.tokenize(e,t)}function mnr(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&">"==n){t.tokenize=unr;break}r="#"===n}return"comment"}function Onr(e,t){var n=e.peek();return e.eat("{")?(t.tokenize=Anr,Anr(e,t)):null!=n&&n.match(rnr)?(e.eatWhile(rnr),t.tokenize=unr,"variable"):(t.tokenize=unr,"error")}function Anr(e,t){for(var n;null!=(n=e.next());)if("}"===n){t.tokenize=unr;break}return"variable"}function ynr(e,t){var n=t.startQuote;if(e.sol()&&e.match(new RegExp(n+"@")))t.tokenize=unr;else if('"'===n)for(;!e.eol();){var r=e.peek();if("$"===r)return t.tokenize=fnr,"string";e.next(),"`"===r&&e.next()}else e.skipToEnd();return"string"}const vnr={name:"powershell",startState:function(){return{returnStack:[],bracketNesting:0,tokenize:unr}},token:function(e,t){return t.tokenize(e,t)},languageData:{commentTokens:{line:"#",block:{open:"<#",close:"#>"}}}},bnr=Object.freeze(Object.defineProperty({__proto__:null,powerShell:vnr},Symbol.toStringTag,{value:"Module"})),xnr=Object.freeze(Object.defineProperty({__proto__:null,properties:{name:"properties",token:function(e,t){var n=e.sol()||t.afterSection,r=e.eol();if(t.afterSection=!1,n&&(t.nextMultiline?(t.inMultiline=!0,t.nextMultiline=!1):t.position="def"),r&&!t.nextMultiline&&(t.inMultiline=!1,t.position="def"),n)for(;e.eatSpace(););var i=e.next();return!n||"#"!==i&&"!"!==i&&";"!==i?n&&"["===i?(t.afterSection=!0,e.skipTo("]"),e.eat("]"),"header"):"="===i||":"===i?(t.position="quote",null):("\\"===i&&"quote"===t.position&&e.eol()&&(t.nextMultiline=!0),t.position):(t.position="comment",e.skipToEnd(),"comment")},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}}},Symbol.toStringTag,{value:"Module"}));var wnr=["package","message","import","syntax","required","optional","repeated","reserved","default","extensions","packed","bool","bytes","double","enum","float","string","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","option","service","rpc","returns"],knr=function(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}(wnr),Snr=new RegExp("^[_A-Za-z¡-][_A-Za-z0-9¡-]*");const Tnr={name:"protobuf",token:function(e){if(e.eatSpace())return null;if(e.match("//"))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+/))return"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))return"number"}return e.match(/^"([^"]|(""))*"/)||e.match(/^'([^']|(''))*'/)?"string":e.match(knr)?"keyword":e.match(Snr)?"variable":(e.next(),null)},languageData:{autocomplete:wnr}},$nr=Object.freeze(Object.defineProperty({__proto__:null,protobuf:Tnr},Symbol.toStringTag,{value:"Module"}));var _nr={"{":"}","(":")","[":"]"};function Cnr(e){if("object"!=typeof e)return e;let t={};for(let n in e){let r=e[n];t[n]=r instanceof Array?r.slice():r}return t}let Qnr=class e{constructor(e){this.indentUnit=e,this.javaScriptLine=!1,this.javaScriptLineExcludesColon=!1,this.javaScriptArguments=!1,this.javaScriptArgumentsDepth=0,this.isInterpolating=!1,this.interpolationNesting=0,this.jsState=o8n.startState(e),this.restOfLine="",this.isIncludeFiltered=!1,this.isEach=!1,this.lastTag="",this.isAttrs=!1,this.attrsNest=[],this.inAttributeName=!0,this.attributeIsType=!1,this.attrValue="",this.indentOf=1/0,this.indentToken=""}copy(){var t=new e(this.indentUnit);return t.javaScriptLine=this.javaScriptLine,t.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon,t.javaScriptArguments=this.javaScriptArguments,t.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth,t.isInterpolating=this.isInterpolating,t.interpolationNesting=this.interpolationNesting,t.jsState=(o8n.copyState||Cnr)(this.jsState),t.restOfLine=this.restOfLine,t.isIncludeFiltered=this.isIncludeFiltered,t.isEach=this.isEach,t.lastTag=this.lastTag,t.isAttrs=this.isAttrs,t.attrsNest=this.attrsNest.slice(),t.inAttributeName=this.inAttributeName,t.attributeIsType=this.attributeIsType,t.attrValue=this.attrValue,t.indentOf=this.indentOf,t.indentToken=this.indentToken,t}};function Pnr(e,t){if(e.match("#{"))return t.isInterpolating=!0,t.interpolationNesting=0,"punctuation"}function Enr(e,t){if(e.match(/^:([\w\-]+)/))return Bnr(e,t),"atom"}function Rnr(e,t){if(t.isAttrs){if(_nr[e.peek()]&&t.attrsNest.push(_nr[e.peek()]),t.attrsNest[t.attrsNest.length-1]===e.peek())t.attrsNest.pop();else if(e.eat(")"))return t.isAttrs=!1,"punctuation";if(t.inAttributeName&&e.match(/^[^=,\)!]+/))return"="!==e.peek()&&"!"!==e.peek()||(t.inAttributeName=!1,t.jsState=o8n.startState(2),"script"===t.lastTag&&"type"===e.current().trim().toLowerCase()?t.attributeIsType=!0:t.attributeIsType=!1),"attribute";var n=o8n.token(e,t.jsState);if(0===t.attrsNest.length&&("string"===n||"variable"===n||"keyword"===n))try{return Function("","var x "+t.attrValue.replace(/,\s*$/,"").replace(/^!/,"")),t.inAttributeName=!0,t.attrValue="",e.backUp(e.current().length),Rnr(e,t)}catch(r){}return t.attrValue+=e.current(),n||!0}}function Bnr(e,t){t.indentOf=e.indentation(),t.indentToken="string"}const Inr={startState:function(e){return new Qnr(e)},copyState:function(e){return e.copy()},token:function(e,t){var n=function(e,t){if(e.sol()&&(t.restOfLine=""),t.restOfLine){e.skipToEnd();var n=t.restOfLine;return t.restOfLine="",n}}(e,t)||function(e,t){if(t.isInterpolating){if("}"===e.peek()){if(t.interpolationNesting--,t.interpolationNesting<0)return e.next(),t.isInterpolating=!1,"punctuation"}else"{"===e.peek()&&t.interpolationNesting++;return o8n.token(e,t.jsState)||!0}}(e,t)||function(e,t){if(t.isIncludeFiltered){var n=Enr(e,t);return t.isIncludeFiltered=!1,t.restOfLine="string",n}}(e,t)||function(e,t){if(t.isEach){if(e.match(/^ in\b/))return t.javaScriptLine=!0,t.isEach=!1,"keyword";if(e.sol()||e.eol())t.isEach=!1;else if(e.next()){for(;!e.match(/^ in\b/,!1)&&e.next(););return"variable"}}}(e,t)||Rnr(e,t)||function(e,t){if(e.sol()&&(t.javaScriptLine=!1,t.javaScriptLineExcludesColon=!1),t.javaScriptLine){if(t.javaScriptLineExcludesColon&&":"===e.peek())return t.javaScriptLine=!1,void(t.javaScriptLineExcludesColon=!1);var n=o8n.token(e,t.jsState);return e.eol()&&(t.javaScriptLine=!1),n||!0}}(e,t)||function(e,t){if(t.javaScriptArguments)return 0===t.javaScriptArgumentsDepth&&"("!==e.peek()?void(t.javaScriptArguments=!1):("("===e.peek()?t.javaScriptArgumentsDepth++:")"===e.peek()&&t.javaScriptArgumentsDepth--,0===t.javaScriptArgumentsDepth?void(t.javaScriptArguments=!1):o8n.token(e,t.jsState)||!0)}(e,t)||function(e,t){if(t.mixinCallAfter)return t.mixinCallAfter=!1,e.match(/^\( *[-\w]+ *=/,!1)||(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0),!0}(e,t)||function(e){if(e.match(/^yield\b/))return"keyword"}(e)||function(e){if(e.match(/^(?:doctype) *([^\n]+)?/))return"meta"}(e)||Pnr(e,t)||function(e,t){if(e.match(/^case\b/))return t.javaScriptLine=!0,"keyword"}(e,t)||function(e,t){if(e.match(/^when\b/))return t.javaScriptLine=!0,t.javaScriptLineExcludesColon=!0,"keyword"}(e,t)||function(e){if(e.match(/^default\b/))return"keyword"}(e)||function(e,t){if(e.match(/^extends?\b/))return t.restOfLine="string","keyword"}(e,t)||function(e,t){if(e.match(/^append\b/))return t.restOfLine="variable","keyword"}(e,t)||function(e,t){if(e.match(/^prepend\b/))return t.restOfLine="variable","keyword"}(e,t)||function(e,t){if(e.match(/^block\b *(?:(prepend|append)\b)?/))return t.restOfLine="variable","keyword"}(e,t)||function(e,t){if(e.match(/^include\b/))return t.restOfLine="string","keyword"}(e,t)||function(e,t){if(e.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&e.match("include"))return t.isIncludeFiltered=!0,"keyword"}(e,t)||function(e,t){if(e.match(/^mixin\b/))return t.javaScriptLine=!0,"keyword"}(e,t)||function(e,t){return e.match(/^\+([-\w]+)/)?(e.match(/^\( *[-\w]+ *=/,!1)||(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0),"variable"):e.match("+#{",!1)?(e.next(),t.mixinCallAfter=!0,Pnr(e,t)):void 0}(e,t)||function(e,t){if(e.match(/^(if|unless|else if|else)\b/))return t.javaScriptLine=!0,"keyword"}(e,t)||function(e,t){if(e.match(/^(- *)?(each|for)\b/))return t.isEach=!0,"keyword"}(e,t)||function(e,t){if(e.match(/^while\b/))return t.javaScriptLine=!0,"keyword"}(e,t)||function(e,t){var n;if(n=e.match(/^(\w(?:[-:\w]*\w)?)\/?/))return t.lastTag=n[1].toLowerCase(),"tag"}(e,t)||Enr(e,t)||function(e,t){if(e.match(/^(!?=|-)/))return t.javaScriptLine=!0,"punctuation"}(e,t)||function(e){if(e.match(/^#([\w-]+)/))return"builtin"}(e)||function(e){if(e.match(/^\.([\w-]+)/))return"className"}(e)||function(e,t){if("("==e.peek())return e.next(),t.isAttrs=!0,t.attrsNest=[],t.inAttributeName=!0,t.attrValue="",t.attributeIsType=!1,"punctuation"}(e,t)||function(e,t){if(e.match(/^&attributes\b/))return t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0,"keyword"}(e,t)||function(e){if(e.sol()&&e.eatSpace())return"indent"}(e)||function(e,t){return e.match(/^(?:\| ?| )([^\n]+)/)?"string":e.match(/^(<[^\n]*)/,!1)?(Bnr(e,t),e.skipToEnd(),t.indentToken):void 0}(e,t)||function(e,t){if(e.match(/^ *\/\/(-)?([^\n]*)/))return t.indentOf=e.indentation(),t.indentToken="comment","comment"}(e,t)||function(e){if(e.match(/^: */))return"colon"}(e)||function(e,t){if(e.eat("."))return Bnr(e,t),"dot"}(e,t)||function(e){return e.next(),null}(e);return!0===n?null:n}},Lnr=Object.freeze(Object.defineProperty({__proto__:null,pug:Inr},Symbol.toStringTag,{value:"Module"}));var Dnr={},Mnr=/({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;function Nnr(e,t){for(var n=t.split(" "),r=0;r<n.length;r++)Dnr[n[r]]=e}function Xnr(e,t){for(var n,r,i=!1;!e.eol()&&(n=e.next())!=t.pending;){if("$"===n&&"\\"!=r&&'"'==t.pending){i=!0;break}r=n}return i&&e.backUp(1),n==t.pending?t.continueString=!1:t.continueString=!0,"string"}Nnr("keyword","class define site node include import inherits"),Nnr("keyword","case if else in and elsif default or"),Nnr("atom","false true running present absent file directory undef"),Nnr("builtin","action augeas burst chain computer cron destination dport exec file filebucket group host icmp iniface interface jump k5login limit log_level log_prefix macauthorization mailalias maillist mcx mount nagios_command nagios_contact nagios_contactgroup nagios_host nagios_hostdependency nagios_hostescalation nagios_hostextinfo nagios_hostgroup nagios_service nagios_servicedependency nagios_serviceescalation nagios_serviceextinfo nagios_servicegroup nagios_timeperiod name notify outiface package proto reject resources router schedule scheduled_task selboolean selmodule service source sport ssh_authorized_key sshkey stage state table tidy todest toports tosource user vlan yumrepo zfs zone zpool");const Fnr={name:"puppet",startState:function(){var e={inDefinition:!1,inInclude:!1,continueString:!1,pending:!1};return e},token:function(e,t){return e.eatSpace()?null:function(e,t){var n=e.match(/[\w]+/,!1),r=e.match(/(\s+)?\w+\s+=>.*/,!1),i=e.match(/(\s+)?[\w:_]+(\s+)?{/,!1),o=e.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/,!1),a=e.next();if("$"===a)return e.match(Mnr)?t.continueString?"variableName.special":"variable":"error";if(t.continueString)return e.backUp(1),Xnr(e,t);if(t.inDefinition){if(e.match(/(\s+)?[\w:_]+(\s+)?/))return"def";e.match(/\s+{/),t.inDefinition=!1}return t.inInclude?(e.match(/(\s+)?\S+(\s+)?/),t.inInclude=!1,"def"):e.match(/(\s+)?\w+\(/)?(e.backUp(1),"def"):r?(e.match(/(\s+)?\w+/),"tag"):n&&Dnr.hasOwnProperty(n)?(e.backUp(1),e.match(/[\w]+/),e.match(/\s+\S+\s+{/,!1)&&(t.inDefinition=!0),"include"==n&&(t.inInclude=!0),Dnr[n]):/(^|\s+)[A-Z][\w:_]+/.test(n)?(e.backUp(1),e.match(/(^|\s+)[A-Z][\w:_]+/),"def"):i?(e.match(/(\s+)?[\w:_]+/),"def"):o?(e.match(/(\s+)?[@]{1,2}/),"atom"):"#"==a?(e.skipToEnd(),"comment"):"'"==a||'"'==a?(t.pending=a,Xnr(e,t)):"{"==a||"}"==a?"bracket":"/"==a?(e.match(/^[^\/]*\//),"string.special"):a.match(/[0-9]/)?(e.eatWhile(/[0-9]+/),"number"):"="==a?(">"==e.peek()&&e.next(),"operator"):(e.eatWhile(/[\w-]/),null)}(e,t)}},Unr=Object.freeze(Object.defineProperty({__proto__:null,puppet:Fnr},Symbol.toStringTag,{value:"Module"}));var znr,qnr=new RegExp("^("+["abs","acos","aj","aj0","all","and","any","asc","asin","asof","atan","attr","avg","avgs","bin","by","ceiling","cols","cor","cos","count","cov","cross","csv","cut","delete","deltas","desc","dev","differ","distinct","div","do","each","ej","enlist","eval","except","exec","exit","exp","fby","fills","first","fkeys","flip","floor","from","get","getenv","group","gtime","hclose","hcount","hdel","hopen","hsym","iasc","idesc","if","ij","in","insert","inter","inv","key","keys","last","like","list","lj","load","log","lower","lsq","ltime","ltrim","mavg","max","maxs","mcount","md5","mdev","med","meta","min","mins","mmax","mmin","mmu","mod","msum","neg","next","not","null","or","over","parse","peach","pj","plist","prd","prds","prev","prior","rand","rank","ratios","raze","read0","read1","reciprocal","reverse","rload","rotate","rsave","rtrim","save","scan","select","set","setenv","show","signum","sin","sqrt","ss","ssr","string","sublist","sum","sums","sv","system","tables","tan","til","trim","txf","type","uj","ungroup","union","update","upper","upsert","value","var","view","views","vs","wavg","where","where","while","within","wj","wj1","wsum","xasc","xbar","xcol","xcols","xdesc","xexp","xgroup","xkey","xlog","xprev","xrank"].join("|")+")$"),Vnr=/[|/&^!+:\\\-*%$=~#;@><,?_\'\"\[\(\]\)\s{}]/;function Wnr(e,t){var n=e.sol(),r=e.next();if(znr=null,n){if("/"==r)return(t.tokenize=jnr)(e,t);if("\\"==r)return e.eol()||/\s/.test(e.peek())?(e.skipToEnd(),/^\\\s*$/.test(e.current())?(t.tokenize=Znr)(e):t.tokenize=Wnr,"comment"):(t.tokenize=Wnr,"builtin")}if(/\s/.test(r))return"/"==e.peek()?(e.skipToEnd(),"comment"):"null";if('"'==r)return(t.tokenize=Gnr)(e,t);if("`"==r)return e.eatWhile(/[A-Za-z\d_:\/.]/),"macroName";if("."==r&&/\d/.test(e.peek())||/\d/.test(r)){var i=null;return e.backUp(1),e.match(/^\d{4}\.\d{2}(m|\.\d{2}([DT](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/)||e.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/)||e.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/)||e.match(/^\d+[ptuv]{1}/)?i="temporal":(e.match(/^0[NwW]{1}/)||e.match(/^0x[\da-fA-F]*/)||e.match(/^[01]+[b]{1}/)||e.match(/^\d+[chijn]{1}/)||e.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/))&&(i="number"),!i||(r=e.peek())&&!Vnr.test(r)?(e.next(),"error"):i}return/[A-Za-z]|\./.test(r)?(e.eatWhile(/[A-Za-z._\d]/),qnr.test(e.current())?"keyword":"variable"):/[|/&^!+:\\\-*%$=~#;@><\.,?_\']/.test(r)||/[{}\(\[\]\)]/.test(r)?null:"error"}function jnr(e,t){return e.skipToEnd(),/^\/\s*$/.test(e.current())?(t.tokenize=Ynr)(e,t):t.tokenize=Wnr,"comment"}function Ynr(e,t){var n=e.sol()&&"\\"==e.peek();return e.skipToEnd(),n&&/^\\\s*$/.test(e.current())&&(t.tokenize=Wnr),"comment"}function Znr(e){return e.skipToEnd(),"comment"}function Gnr(e,t){for(var n,r=!1,i=!1;n=e.next();){if('"'==n&&!r){i=!0;break}r=!r&&"\\"==n}return i&&(t.tokenize=Wnr),"string"}function Hnr(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function Knr(e){e.indent=e.context.indent,e.context=e.context.prev}const Jnr={name:"q",startState:function(){return{tokenize:Wnr,context:null,indent:0,col:0}},token:function(e,t){e.sol()&&(t.context&&null==t.context.align&&(t.context.align=!1),t.indent=e.indentation());var n=t.tokenize(e,t);if("comment"!=n&&t.context&&null==t.context.align&&"pattern"!=t.context.type&&(t.context.align=!0),"("==znr)Hnr(t,")",e.column());else if("["==znr)Hnr(t,"]",e.column());else if("{"==znr)Hnr(t,"}",e.column());else if(/[\]\}\)]/.test(znr)){for(;t.context&&"pattern"==t.context.type;)Knr(t);t.context&&znr==t.context.type&&Knr(t)}else"."==znr&&t.context&&"pattern"==t.context.type?Knr(t):/atom|string|variable/.test(n)&&t.context&&(/[\}\]]/.test(t.context.type)?Hnr(t,"pattern",e.column()):"pattern"!=t.context.type||t.context.align||(t.context.align=!0,t.context.col=e.column()));return n},indent:function(e,t,n){var r=t&&t.charAt(0),i=e.context;if(/[\]\}]/.test(r))for(;i&&"pattern"==i.type;)i=i.prev;var o=i&&r==i.type;return i?"pattern"==i.type?i.col:i.align?i.col+(o?0:1):i.indent+(o?0:n.unit):0},languageData:{commentTokens:{line:"/"}}},err=Object.freeze(Object.defineProperty({__proto__:null,q:Jnr},Symbol.toStringTag,{value:"Module"}));function trr(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}var nrr,rrr=["NULL","NA","Inf","NaN","NA_integer_","NA_real_","NA_complex_","NA_character_","TRUE","FALSE"],irr=["list","quote","bquote","eval","return","call","parse","deparse"],orr=["if","else","repeat","while","function","for","in","next","break"],arr=trr(rrr),srr=trr(irr),lrr=trr(orr),crr=trr(["if","else","repeat","while","function","for"]),urr=/[+\-*\/^<>=!&|~$:]/;function hrr(e,t){nrr=null;var n,r=e.next();if("#"==r)return e.skipToEnd(),"comment";if("0"==r&&e.eat("x"))return e.eatWhile(/[\da-f]/i),"number";if("."==r&&e.eat(/\d/))return e.match(/\d*(?:e[+\-]?\d+)?/),"number";if(/\d/.test(r))return e.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/),"number";if("'"==r||'"'==r)return t.tokenize=(n=r,function(e,t){if(e.eat("\\")){var r=e.next();return"x"==r?e.match(/^[a-f0-9]{2}/i):("u"==r||"U"==r)&&e.eat("{")&&e.skipTo("}")?e.next():"u"==r?e.match(/^[a-f0-9]{4}/i):"U"==r?e.match(/^[a-f0-9]{8}/i):/[0-7]/.test(r)&&e.match(/^[0-7]{1,2}/),"string.special"}for(var i;null!=(i=e.next());){if(i==n){t.tokenize=hrr;break}if("\\"==i){e.backUp(1);break}}return"string"}),"string";if("`"==r)return e.match(/[^`]+`/),"string.special";if("."==r&&e.match(/.(?:[.]|\d+)/))return"keyword";if(/[a-zA-Z\.]/.test(r)){e.eatWhile(/[\w\.]/);var i=e.current();return arr.propertyIsEnumerable(i)?"atom":lrr.propertyIsEnumerable(i)?(crr.propertyIsEnumerable(i)&&!e.match(/\s*if(\s+|$)/,!1)&&(nrr="block"),"keyword"):srr.propertyIsEnumerable(i)?"builtin":"variable"}return"%"==r?(e.skipTo("%")&&e.next(),"variableName.special"):"<"==r&&e.eat("-")||"<"==r&&e.match("<-")||"-"==r&&e.match(/>>?/)||"="==r&&t.ctx.argList?"operator":urr.test(r)?("$"==r||e.eatWhile(urr),"operator"):/[\(\){}\[\];]/.test(r)?(nrr=r,";"==r?"punctuation":null):null}function drr(e,t,n){e.ctx={type:t,indent:e.indent,flags:0,column:n.column(),prev:e.ctx}}function prr(e,t){var n=e.ctx;e.ctx={type:n.type,indent:n.indent,flags:n.flags|t,column:n.column,prev:n.prev}}function frr(e){e.indent=e.ctx.indent,e.ctx=e.ctx.prev}const grr={name:"r",startState:function(e){return{tokenize:hrr,ctx:{type:"top",indent:-e,flags:2},indent:0,afterIdent:!1}},token:function(e,t){if(e.sol()&&(3&t.ctx.flags||(t.ctx.flags|=2),4&t.ctx.flags&&frr(t),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==n||2&t.ctx.flags||prr(t,1),";"!=nrr&&"{"!=nrr&&"}"!=nrr||"block"!=t.ctx.type||frr(t),"{"==nrr?drr(t,"}",e):"("==nrr?(drr(t,")",e),t.afterIdent&&(t.ctx.argList=!0)):"["==nrr?drr(t,"]",e):"block"==nrr?drr(t,"block",e):nrr==t.ctx.type?frr(t):"block"==t.ctx.type&&"comment"!=n&&prr(t,4),t.afterIdent="variable"==n||"keyword"==n,n},indent:function(e,t,n){if(e.tokenize!=hrr)return 0;var r=t&&t.charAt(0),i=e.ctx,o=r==i.type;return 4&i.flags&&(i=i.prev),"block"==i.type?i.indent+("{"==r?0:n.unit):1&i.flags?i.column+(o?0:1):i.indent+(o?0:n.unit)},languageData:{wordChars:".",commentTokens:{line:"#"},autocomplete:rrr.concat(irr,orr)}},mrr=Object.freeze(Object.defineProperty({__proto__:null,r:grr},Symbol.toStringTag,{value:"Module"}));var Orr=/^-+$/,Arr=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /,yrr=/^[\w+.-]+@[\w.-]+/;const vrr={name:"rpmchanges",token:function(e){if(e.sol()){if(e.match(Orr))return"tag";if(e.match(Arr))return"tag"}return e.match(yrr)?"string":(e.next(),null)}};var brr=/^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/,xrr=/^[a-zA-Z0-9()]+:/,wrr=/^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/,krr=/^%(ifnarch|ifarch|if)/,Srr=/^%(else|endif)/,Trr=/^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/;const $rr={name:"rpmspec",startState:function(){return{controlFlow:!1,macroParameters:!1,section:!1}},token:function(e,t){if("#"==e.peek())return e.skipToEnd(),"comment";if(e.sol()){if(e.match(xrr))return"header";if(e.match(wrr))return"atom"}if(e.match(/^\$\w+/))return"def";if(e.match(/^\$\{\w+\}/))return"def";if(e.match(Srr))return"keyword";if(e.match(krr))return t.controlFlow=!0,"keyword";if(t.controlFlow){if(e.match(Trr))return"operator";if(e.match(/^(\d+)/))return"number";e.eol()&&(t.controlFlow=!1)}if(e.match(brr))return e.eol()&&(t.controlFlow=!1),"number";if(e.match(/^%[\w]+/))return e.match("(")&&(t.macroParameters=!0),"keyword";if(t.macroParameters){if(e.match(/^\d+/))return"number";if(e.match(")"))return t.macroParameters=!1,"keyword"}return e.match(/^%\{\??[\w \-\:\!]+\}/)?(e.eol()&&(t.controlFlow=!1),"def"):(e.next(),null)}},_rr=Object.freeze(Object.defineProperty({__proto__:null,rpmChanges:vrr,rpmSpec:$rr},Symbol.toStringTag,{value:"Module"}));function Crr(e){for(var t={},n=0,r=e.length;n<r;++n)t[e[n]]=!0;return t}var Qrr,Prr=["alias","and","BEGIN","begin","break","case","class","def","defined?","do","else","elsif","END","end","ensure","false","for","if","in","module","next","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield","nil","raise","throw","catch","fail","loop","callcc","caller","lambda","proc","public","protected","private","require","load","require_relative","extend","autoload","__END__","__FILE__","__LINE__","__dir__"],Err=Crr(Prr),Rrr=Crr(["def","class","case","for","while","until","module","catch","loop","proc","begin"]),Brr=Crr(["end","until"]),Irr={"[":"]","{":"}","(":")"},Lrr={"]":"[","}":"{",")":"("};function Drr(e,t,n){return n.tokenize.push(e),e(t,n)}function Mrr(e,t){if(e.sol()&&e.match("=begin")&&e.eol())return t.tokenize.push(Urr),"comment";if(e.eatSpace())return null;var n,r,i,o=e.next();if("`"==o||"'"==o||'"'==o)return Drr(Frr(o,"string",'"'==o||"`"==o),e,t);if("/"==o)return function(e){var t,n=e.pos,r=0,i=!1,o=!1;for(;null!=(t=e.next());)if(o)o=!1;else{if("[{(".indexOf(t)>-1)r++;else if("]})".indexOf(t)>-1){if(--r<0)break}else if("/"==t&&0==r){i=!0;break}o="\\"==t}return e.backUp(e.pos-n),i}(e)?Drr(Frr(o,"string.special",!0),e,t):"operator";if("%"==o){var a="string",s=!0;e.eat("s")?a="atom":e.eat(/[WQ]/)?a="string":e.eat(/[r]/)?a="string.special":e.eat(/[wxq]/)&&(a="string",s=!1);var l=e.eat(/[^\w\s=]/);return l?(Irr.propertyIsEnumerable(l)&&(l=Irr[l]),Drr(Frr(l,a,s,!0),e,t)):"operator"}if("#"==o)return e.skipToEnd(),"comment";if("<"==o&&(n=e.match(/^<([-~])[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))return Drr((r=n[2],i=n[1],function(e,t){return i&&e.eatSpace(),e.match(r)?t.tokenize.pop():e.skipToEnd(),"string"}),e,t);if("0"==o)return e.eat("x")?e.eatWhile(/[\da-fA-F]/):e.eat("b")?e.eatWhile(/[01]/):e.eatWhile(/[0-7]/),"number";if(/\d/.test(o))return e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/),"number";if("?"==o){for(;e.match(/^\\[CM]-/););return e.eat("\\")?e.eatWhile(/\w/):e.next(),"string"}if(":"==o)return e.eat("'")?Drr(Frr("'","atom",!1),e,t):e.eat('"')?Drr(Frr('"',"atom",!0),e,t):e.eat(/[\<\>]/)?(e.eat(/[\<\>]/),"atom"):e.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":e.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(e.eatWhile(/[\w$\xa1-\uffff]/),e.eat(/[\?\!\=]/),"atom"):"operator";if("@"==o&&e.match(/^@?[a-zA-Z_\xa1-\uffff]/))return e.eat("@"),e.eatWhile(/[\w\xa1-\uffff]/),"propertyName";if("$"==o)return e.eat(/[a-zA-Z_]/)?e.eatWhile(/[\w]/):e.eat(/\d/)?e.eat(/\d/):e.next(),"variableName.special";if(/[a-zA-Z_\xa1-\uffff]/.test(o))return e.eatWhile(/[\w\xa1-\uffff]/),e.eat(/[\?\!]/),e.eat(":")?"atom":"variable";if("|"!=o||!t.varList&&"{"!=t.lastTok&&"do"!=t.lastTok){if(/[\(\)\[\]{}\\;]/.test(o))return Qrr=o,null;if("-"==o&&e.eat(">"))return"operator";if(/[=+\-\/*:\.^%<>~|]/.test(o)){var c=e.eatWhile(/[=+\-\/*:\.^%<>~|]/);return"."!=o||c||(Qrr="."),"operator"}return null}return Qrr="|",null}function Nrr(e){return e||(e=1),function(t,n){if("}"==t.peek()){if(1==e)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n);n.tokenize[n.tokenize.length-1]=Nrr(e-1)}else"{"==t.peek()&&(n.tokenize[n.tokenize.length-1]=Nrr(e+1));return Mrr(t,n)}}function Xrr(){var e=!1;return function(t,n){return e?(n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n)):(e=!0,Mrr(t,n))}}function Frr(e,t,n,r){return function(i,o){var a,s=!1;for("read-quoted-paused"===o.context.type&&(o.context=o.context.prev,i.eat("}"));null!=(a=i.next());){if(a==e&&(r||!s)){o.tokenize.pop();break}if(n&&"#"==a&&!s){if(i.eat("{")){"}"==e&&(o.context={prev:o.context,type:"read-quoted-paused"}),o.tokenize.push(Nrr());break}if(/[@\$]/.test(i.peek())){o.tokenize.push(Xrr());break}}s=!s&&"\\"==a}return t}}function Urr(e,t){return e.sol()&&e.match("=end")&&e.eol()&&t.tokenize.pop(),e.skipToEnd(),"comment"}const zrr={name:"ruby",startState:function(e){return{tokenize:[Mrr],indented:0,context:{type:"top",indented:-e},continuedLine:!1,lastTok:null,varList:!1}},token:function(e,t){Qrr=null,e.sol()&&(t.indented=e.indentation());var n,r=t.tokenize[t.tokenize.length-1](e,t),i=Qrr;if("variable"==r){var o=e.current();"keyword"==(r="."==t.lastTok?"property":Err.propertyIsEnumerable(e.current())?"keyword":/^[A-Z]/.test(o)?"tag":"def"==t.lastTok||"class"==t.lastTok||t.varList?"def":"variable")&&(i=o,Rrr.propertyIsEnumerable(o)?n="indent":Brr.propertyIsEnumerable(o)?n="dedent":"if"!=o&&"unless"!=o||e.column()!=e.indentation()?"do"==o&&t.context.indented<t.indented&&(n="indent"):n="indent")}return(Qrr||r&&"comment"!=r)&&(t.lastTok=i),"|"==Qrr&&(t.varList=!t.varList),"indent"==n||/[\(\[\{]/.test(Qrr)?t.context={prev:t.context,type:Qrr||r,indented:t.indented}:("dedent"==n||/[\)\]\}]/.test(Qrr))&&t.context.prev&&(t.context=t.context.prev),e.eol()&&(t.continuedLine="\\"==Qrr||"operator"==r),r},indent:function(e,t,n){if(e.tokenize[e.tokenize.length-1]!=Mrr)return null;var r=t&&t.charAt(0),i=e.context,o=i.type==Lrr[r]||"keyword"==i.type&&/^(?:end|until|else|elsif|when|rescue)\b/.test(t);return i.indented+(o?0:n.unit)+(e.continuedLine?n.unit:0)},languageData:{indentOnInput:/^\s*(?:end|rescue|elsif|else|\})$/,commentTokens:{line:"#"},autocomplete:Prr}},qrr=Object.freeze(Object.defineProperty({__proto__:null,ruby:zrr},Symbol.toStringTag,{value:"Module"}));var Vrr={},Wrr={eq:"operator",lt:"operator",le:"operator",gt:"operator",ge:"operator",in:"operator",ne:"operator",or:"operator"},jrr=/(<=|>=|!=|<>)/,Yrr=/[=\(:\),{}.*<>+\-\/^\[\]]/;function Zrr(e,t,n){if(n)for(var r=t.split(" "),i=0;i<r.length;i++)Vrr[r[i]]={style:e,state:n}}Zrr("def","stack pgm view source debug nesting nolist",["inDataStep"]),Zrr("def","if while until for do do; end end; then else cancel",["inDataStep"]),Zrr("def","label format _n_ _error_",["inDataStep"]),Zrr("def","ALTER BUFNO BUFSIZE CNTLLEV COMPRESS DLDMGACTION ENCRYPT ENCRYPTKEY EXTENDOBSCOUNTER GENMAX GENNUM INDEX LABEL OBSBUF OUTREP PW PWREQ READ REPEMPTY REPLACE REUSE ROLE SORTEDBY SPILL TOBSNO TYPE WRITE FILECLOSE FIRSTOBS IN OBS POINTOBS WHERE WHEREUP IDXNAME IDXWHERE DROP KEEP RENAME",["inDataStep"]),Zrr("def","filevar finfo finv fipname fipnamel fipstate first firstobs floor",["inDataStep"]),Zrr("def","varfmt varinfmt varlabel varlen varname varnum varray varrayx vartype verify vformat vformatd vformatdx vformatn vformatnx vformatw vformatwx vformatx vinarray vinarrayx vinformat vinformatd vinformatdx vinformatn vinformatnx vinformatw vinformatwx vinformatx vlabel vlabelx vlength vlengthx vname vnamex vnferr vtype vtypex weekday",["inDataStep"]),Zrr("def","zipfips zipname zipnamel zipstate",["inDataStep"]),Zrr("def","put putc putn",["inDataStep"]),Zrr("builtin","data run",["inDataStep"]),Zrr("def","data",["inProc"]),Zrr("def","%if %end %end; %else %else; %do %do; %then",["inMacro"]),Zrr("builtin","proc run; quit; libname filename %macro %mend option options",["ALL"]),Zrr("def","footnote title libname ods",["ALL"]),Zrr("def","%let %put %global %sysfunc %eval ",["ALL"]),Zrr("variable","&sysbuffr &syscc &syscharwidth &syscmd &sysdate &sysdate9 &sysday &sysdevic &sysdmg &sysdsn &sysencoding &sysenv &syserr &syserrortext &sysfilrc &syshostname &sysindex &sysinfo &sysjobid &syslast &syslckrc &syslibrc &syslogapplname &sysmacroname &sysmenv &sysmsg &sysncpu &sysodspath &sysparm &syspbuff &sysprocessid &sysprocessname &sysprocname &sysrc &sysscp &sysscpl &sysscpl &syssite &sysstartid &sysstartname &systcpiphostname &systime &sysuserid &sysver &sysvlong &sysvlong4 &syswarningtext",["ALL"]),Zrr("def","source2 nosource2 page pageno pagesize",["ALL"]),Zrr("def","_all_ _character_ _cmd_ _freq_ _i_ _infile_ _last_ _msg_ _null_ _numeric_ _temporary_ _type_ abort abs addr adjrsq airy alpha alter altlog altprint and arcos array arsin as atan attrc attrib attrn authserver autoexec awscontrol awsdef awsmenu awsmenumerge awstitle backward band base betainv between blocksize blshift bnot bor brshift bufno bufsize bxor by byerr byline byte calculated call cards cards4 catcache cbufno cdf ceil center cexist change chisq cinv class cleanup close cnonct cntllev coalesce codegen col collate collin column comamid comaux1 comaux2 comdef compbl compound compress config continue convert cos cosh cpuid create cross crosstab css curobs cv daccdb daccdbsl daccsl daccsyd dacctab dairy datalines datalines4 datejul datepart datetime day dbcslang dbcstype dclose ddfm ddm delete delimiter depdb depdbsl depsl depsyd deptab dequote descending descript design= device dflang dhms dif digamma dim dinfo display distinct dkricond dkrocond dlm dnum do dopen doptname doptnum dread drop dropnote dsname dsnferr echo else emaildlg emailid emailpw emailserver emailsys encrypt end endsas engine eof eov erf erfc error errorcheck errors exist exp fappend fclose fcol fdelete feedback fetch fetchobs fexist fget file fileclose fileexist filefmt filename fileref fmterr fmtsearch fnonct fnote font fontalias fopen foptname foptnum force formatted formchar formdelim formdlim forward fpoint fpos fput fread frewind frlen from fsep fuzz fwrite gaminv gamma getoption getvarc getvarn go goto group gwindow hbar hbound helpenv helploc hms honorappearance hosthelp hostprint hour hpct html hvar ibessel ibr id if index indexc indexw initcmd initstmt inner input inputc inputn inr insert int intck intnx into intrr invaliddata irr is jbessel join juldate keep kentb kurtosis label lag last lbound leave left length levels lgamma lib library libref line linesize link list log log10 log2 logpdf logpmf logsdf lostcard lowcase lrecl ls macro macrogen maps mautosource max maxdec maxr mdy mean measures median memtype merge merror min minute missing missover mlogic mod mode model modify month mopen mort mprint mrecall msglevel msymtabmax mvarsize myy n nest netpv new news nmiss no nobatch nobs nocaps nocardimage nocenter nocharcode nocmdmac nocol nocum nodate nodbcs nodetails nodmr nodms nodmsbatch nodup nodupkey noduplicates noechoauto noequals noerrorabend noexitwindows nofullstimer noicon noimplmac noint nolist noloadlist nomiss nomlogic nomprint nomrecall nomsgcase nomstored nomultenvappl nonotes nonumber noobs noovp nopad nopercent noprint noprintinit normal norow norsasuser nosetinit nosplash nosymbolgen note notes notitle notitles notsorted noverbose noxsync noxwait npv null number numkeys nummousekeys nway obs on open order ordinal otherwise out outer outp= output over ovp p(1 5 10 25 50 75 90 95 99) pad pad2 paired parm parmcards path pathdll pathname pdf peek peekc pfkey pmf point poisson poke position printer probbeta probbnml probchi probf probgam probhypr probit probnegb probnorm probsig probt procleave prt ps pw pwreq qtr quote r ranbin rancau random ranexp rangam range ranks rannor ranpoi rantbl rantri ranuni rcorr read recfm register regr remote remove rename repeat repeated replace resolve retain return reuse reverse rewind right round rsquare rtf rtrace rtraceloc s s2 samploc sasautos sascontrol sasfrscr sasmsg sasmstore sasscript sasuser saving scan sdf second select selection separated seq serror set setcomm setot sign simple sin sinh siteinfo skewness skip sle sls sortedby sortpgm sortseq sortsize soundex spedis splashlocation split spool sqrt start std stderr stdin stfips stimer stname stnamel stop stopover sub subgroup subpopn substr sum sumwgt symbol symbolgen symget symput sysget sysin sysleave sysmsg sysparm sysprint sysprintfont sysprod sysrc system t table tables tan tanh tapeclose tbufsize terminal test then timepart tinv tnonct to today tol tooldef totper transformout translate trantab tranwrd trigamma trim trimn trunc truncover type unformatted uniform union until upcase update user usericon uss validate value var weight when where while wincharset window work workinit workterm write wsum xsync xwait yearcutoff yes yyq min max",["inDataStep","inProc"]),Zrr("operator","and not ",["inDataStep","inProc"]);const Grr={name:"sas",startState:function(){return{inDataStep:!1,inProc:!1,inMacro:!1,nextword:!1,continueString:null,continueComment:!1}},token:function(e,t){return e.eatSpace()?null:function(e,t){var n=e.next();if("/"===n&&e.eat("*"))return t.continueComment=!0,"comment";if(!0===t.continueComment)return"*"===n&&"/"===e.peek()?(e.next(),t.continueComment=!1):e.skipTo("*")?(e.skipTo("*"),e.next(),e.eat("/")&&(t.continueComment=!1)):e.skipToEnd(),"comment";if("*"==n&&e.column()==e.indentation())return e.skipToEnd(),"comment";var r,i=n+e.peek();if(!('"'!==n&&"'"!==n||t.continueString))return t.continueString=n,"string";if(t.continueString)return t.continueString==n?t.continueString=null:e.skipTo(t.continueString)?(e.next(),t.continueString=null):e.skipToEnd(),"string";if(null!==t.continueString&&e.eol())return e.skipTo(t.continueString)||e.skipToEnd(),"string";if(/[\d\.]/.test(n))return"."===n?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"===n?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(jrr.test(n+e.peek()))return e.next(),"operator";if(Wrr.hasOwnProperty(i)){if(e.next()," "===e.peek())return Wrr[i.toLowerCase()]}else if(Yrr.test(n))return"operator";if(null!=e.match(/[%&;\w]+/,!1)){if(r=n+e.match(/[%&;\w]+/,!0),/&/.test(r))return"variable"}else r=n;if(t.nextword)return e.match(/[\w]+/),"."===e.peek()&&e.skipTo(" "),t.nextword=!1,"variableName.special";if(r=r.toLowerCase(),t.inDataStep){if("run;"===r||e.match(/run\s;/))return t.inDataStep=!1,"builtin";if(r&&"."===e.next())return/\w/.test(e.peek())?"variableName.special":"variable";if(r&&Vrr.hasOwnProperty(r)&&(-1!==Vrr[r].state.indexOf("inDataStep")||-1!==Vrr[r].state.indexOf("ALL"))){e.start<e.pos&&e.backUp(e.pos-e.start);for(var o=0;o<r.length;++o)e.next();return Vrr[r].style}}if(t.inProc){if("run;"===r||"quit;"===r)return t.inProc=!1,"builtin";if(r&&Vrr.hasOwnProperty(r)&&(-1!==Vrr[r].state.indexOf("inProc")||-1!==Vrr[r].state.indexOf("ALL")))return e.match(/[\w]+/),Vrr[r].style}return t.inMacro?"%mend"===r?(";"===e.peek()&&e.next(),t.inMacro=!1,"builtin"):r&&Vrr.hasOwnProperty(r)&&(-1!==Vrr[r].state.indexOf("inMacro")||-1!==Vrr[r].state.indexOf("ALL"))?(e.match(/[\w]+/),Vrr[r].style):"atom":r&&Vrr.hasOwnProperty(r)?(e.backUp(1),e.match(/[\w]+/),"data"===r&&!1===/=/.test(e.peek())?(t.inDataStep=!0,t.nextword=!0,"builtin"):"proc"===r?(t.inProc=!0,t.nextword=!0,"builtin"):"%macro"===r?(t.inMacro=!0,t.nextword=!0,"builtin"):/title[1-9]/.test(r)?"def":"footnote"===r?(e.eat(/[1-9]/),"def"):!0===t.inDataStep&&-1!==Vrr[r].state.indexOf("inDataStep")||!0===t.inProc&&-1!==Vrr[r].state.indexOf("inProc")||!0===t.inMacro&&-1!==Vrr[r].state.indexOf("inMacro")||-1!==Vrr[r].state.indexOf("ALL")?Vrr[r].style:null):null}(e,t)},languageData:{commentTokens:{block:{open:"/*",close:"*/"}}}},Hrr=Object.freeze(Object.defineProperty({__proto__:null,sas:Grr},Symbol.toStringTag,{value:"Module"}));var Krr="comment",Jrr="string",eir="symbol",tir="atom",nir="number",rir="bracket";function iir(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var oir=iir("λ case-lambda call/cc class cond-expand define-class define-values exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax define-macro defmacro delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"),air=iir("define let letrec let* lambda define-macro defmacro let-syntax letrec-syntax let-values let*-values define-syntax syntax-rules define-values when unless");function sir(e,t,n){this.indent=e,this.type=t,this.prev=n}function lir(e,t,n){e.indentStack=new sir(t,n,e.indentStack)}var cir=new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i),uir=new RegExp(/^(?:[-+]i|[-+][0-7]+#*(?:\/[0-7]+#*)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?@[-+]?[0-7]+#*(?:\/[0-7]+#*)?|[-+]?[0-7]+#*(?:\/[0-7]+#*)?[-+](?:[0-7]+#*(?:\/[0-7]+#*)?)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?)(?=[()\s;"]|$)/i),hir=new RegExp(/^(?:[-+]i|[-+][\da-f]+#*(?:\/[\da-f]+#*)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?@[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?[-+](?:[\da-f]+#*(?:\/[\da-f]+#*)?)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?)(?=[()\s;"]|$)/i),dir=new RegExp(/^(?:[-+]i|[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)i|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)@[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)?i|(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*))(?=[()\s;"]|$)/i);function pir(e){return e.match(cir)}function fir(e){return e.match(uir)}function gir(e,t){return!0===t&&e.backUp(1),e.match(dir)}function mir(e){return e.match(hir)}function Oir(e,t){for(var n,r=!1;null!=(n=e.next());){if(n==t.token&&!r){t.state.mode=!1;break}r=!r&&"\\"==n}}const Air={name:"scheme",startState:function(){return{indentStack:null,indentation:0,mode:!1,sExprComment:!1,sExprQuote:!1}},token:function(e,t){if(null==t.indentStack&&e.sol()&&(t.indentation=e.indentation()),e.eatSpace())return null;var n=null;switch(t.mode){case"string":Oir(e,{token:'"',state:t}),n=Jrr;break;case"symbol":Oir(e,{token:"|",state:t}),n=eir;break;case"comment":for(var r,i=!1;null!=(r=e.next());){if("#"==r&&i){t.mode=!1;break}i="|"==r}n=Krr;break;case"s-expr-comment":if(t.mode=!1,"("!=e.peek()&&"["!=e.peek()){e.eatWhile(/[^\s\(\)\[\]]/),n=Krr;break}t.sExprComment=0;default:var o=e.next();if('"'==o)t.mode="string",n=Jrr;else if("'"==o)"("==e.peek()||"["==e.peek()?("number"!=typeof t.sExprQuote&&(t.sExprQuote=0),n=tir):(e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),n=tir);else if("|"==o)t.mode="symbol",n=eir;else if("#"==o)if(e.eat("|"))t.mode="comment",n=Krr;else if(e.eat(/[tf]/i))n=tir;else if(e.eat(";"))t.mode="s-expr-comment",n=Krr;else{var a=null,s=!1,l=!0;e.eat(/[ei]/i)?s=!0:e.backUp(1),e.match(/^#b/i)?a=pir:e.match(/^#o/i)?a=fir:e.match(/^#x/i)?a=mir:e.match(/^#d/i)?a=gir:e.match(/^[-+0-9.]/,!1)?(l=!1,a=gir):s||e.eat("#"),null!=a&&(l&&!s&&e.match(/^#[ei]/i),a(e)&&(n=nir))}else if(/^[-+0-9.]/.test(o)&&gir(e,!0))n=nir;else if(";"==o)e.skipToEnd(),n=Krr;else if("("==o||"["==o){for(var c,u="",h=e.column();null!=(c=e.eat(/[^\s\(\[\;\)\]]/));)u+=c;u.length>0&&air.propertyIsEnumerable(u)?lir(t,h+2,o):(e.eatSpace(),e.eol()||";"==e.peek()?lir(t,h+1,o):lir(t,h+e.current().length,o)),e.backUp(e.current().length-1),"number"==typeof t.sExprComment&&t.sExprComment++,"number"==typeof t.sExprQuote&&t.sExprQuote++,n=rir}else")"==o||"]"==o?(n=rir,null!=t.indentStack&&t.indentStack.type==(")"==o?"(":"[")&&(!function(e){e.indentStack=e.indentStack.prev}(t),"number"==typeof t.sExprComment&&0==--t.sExprComment&&(n=Krr,t.sExprComment=!1),"number"==typeof t.sExprQuote&&0==--t.sExprQuote&&(n=tir,t.sExprQuote=!1))):(e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),n=oir&&oir.propertyIsEnumerable(e.current())?"builtin":"variable")}return"number"==typeof t.sExprComment?Krr:"number"==typeof t.sExprQuote?tir:n},indent:function(e){return null==e.indentStack?e.indentation:e.indentStack.indent},languageData:{closeBrackets:{brackets:["(","[","{",'"']},commentTokens:{line:";;"}}},yir=Object.freeze(Object.defineProperty({__proto__:null,scheme:Air},Symbol.toStringTag,{value:"Module"}));var vir={};function bir(e,t){for(var n=0;n<t.length;n++)vir[t[n]]=e}var xir=["true","false"],wir=["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],kir=["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","nl","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"];function Sir(e,t){if(e.eatSpace())return null;var n,r=e.sol(),i=e.next();if("\\"===i)return e.next(),null;if("'"===i||'"'===i||"`"===i)return t.tokens.unshift(Tir(i,"`"===i?"quote":"string")),Cir(e,t);if("#"===i)return r&&e.eat("!")?(e.skipToEnd(),"meta"):(e.skipToEnd(),"comment");if("$"===i)return t.tokens.unshift(_ir),Cir(e,t);if("+"===i||"="===i)return"operator";if("-"===i)return e.eat("-"),e.eatWhile(/\w/),"attribute";if("<"==i){if(e.match("<<"))return"operator";var o=e.match(/^<-?\s*(?:['"]([^'"]*)['"]|([^'"\s]*))/);if(o)return t.tokens.unshift((n=o[1]||o[2],function(e,t){return e.sol()&&e.string==n&&t.tokens.shift(),e.skipToEnd(),"string.special"})),"string.special"}if(/\d/.test(i)&&(e.eatWhile(/\d/),e.eol()||!/\w/.test(e.peek())))return"number";e.eatWhile(/[\w-]/);var a=e.current();return"="===e.peek()&&/\w+/.test(a)?"def":vir.hasOwnProperty(a)?vir[a]:null}function Tir(e,t){var n="("==e?")":"{"==e?"}":e;return function(r,i){for(var o,a=!1;null!=(o=r.next());){if(o===n&&!a){i.tokens.shift();break}if("$"===o&&!a&&"'"!==e&&r.peek()!=n){a=!0,r.backUp(1),i.tokens.unshift(_ir);break}if(!a&&e!==n&&o===e)return i.tokens.unshift(Tir(e,t)),Cir(r,i);if(!a&&/['"]/.test(o)&&!/['"]/.test(e)){i.tokens.unshift($ir(o,"string")),r.backUp(1);break}a=!a&&"\\"===o}return t}}function $ir(e,t){return function(n,r){return r.tokens[0]=Tir(e,t),n.next(),Cir(n,r)}}bir("atom",xir),bir("keyword",wir),bir("builtin",kir);var _ir=function(e,t){t.tokens.length>1&&e.eat("$");var n=e.next();return/['"({]/.test(n)?(t.tokens[0]=Tir(n,"("==n?"quote":"{"==n?"def":"string"),Cir(e,t)):(/\d/.test(n)||e.eatWhile(/\w/),t.tokens.shift(),"def")};function Cir(e,t){return(t.tokens[0]||Sir)(e,t)}const Qir={name:"shell",startState:function(){return{tokens:[]}},token:function(e,t){return Cir(e,t)},languageData:{autocomplete:xir.concat(wir,kir),closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}},Pir=Object.freeze(Object.defineProperty({__proto__:null,shell:Qir},Symbol.toStringTag,{value:"Module"}));function Eir(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var Rir=Eir("if elsif else stop require"),Bir=Eir("true false not");function Iir(e,t){var n,r=e.next();if("/"==r&&e.eat("*"))return t.tokenize=Dir,Dir(e,t);if("#"===r)return e.skipToEnd(),"comment";if('"'==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.tokenize=Iir),"string"}),t.tokenize(e,t);if("("==r)return t._indent.push("("),t._indent.push("{"),null;if("{"===r)return t._indent.push("{"),null;if(")"==r&&(t._indent.pop(),t._indent.pop()),"}"===r)return t._indent.pop(),null;if(","==r)return null;if(";"==r)return null;if(/[{}\(\),;]/.test(r))return null;if(/\d/.test(r))return e.eatWhile(/[\d]/),e.eat(/[KkMmGg]/),"number";if(":"==r)return e.eatWhile(/[a-zA-Z_]/),e.eatWhile(/[a-zA-Z0-9_]/),"operator";e.eatWhile(/\w/);var i=e.current();return"text"==i&&e.eat(":")?(t.tokenize=Lir,"string"):Rir.propertyIsEnumerable(i)?"keyword":Bir.propertyIsEnumerable(i)?"atom":null}function Lir(e,t){return t._multiLineString=!0,e.sol()?("."==e.next()&&e.eol()&&(t._multiLineString=!1,t.tokenize=Iir),"string"):(e.eatSpace(),"#"==e.peek()?(e.skipToEnd(),"comment"):(e.skipToEnd(),"string"))}function Dir(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=Iir;break}r="*"==n}return"comment"}const Mir={name:"sieve",startState:function(e){return{tokenize:Iir,baseIndent:e||0,_indent:[]}},token:function(e,t){return e.eatSpace()?null:(t.tokenize||Iir)(e,t)},indent:function(e,t,n){var r=e._indent.length;return t&&"}"==t[0]&&r--,r<0&&(r=0),r*n.unit},languageData:{indentOnInput:/^\s*\}$/}},Nir=Object.freeze(Object.defineProperty({__proto__:null,sieve:Mir},Symbol.toStringTag,{value:"Module"}));var Xir=/[+\-\/\\*~<>=@%|&?!.,:;^]/,Fir=/true|false|nil|self|super|thisContext/,Uir=function(e,t){this.next=e,this.parent=t},zir=function(e,t,n){this.name=e,this.context=t,this.eos=n},qir=function(){this.context=new Uir(Vir,null),this.expectVariable=!0,this.indentation=0,this.userIndentationDelta=0};qir.prototype.userIndent=function(e,t){this.userIndentationDelta=e>0?e/t-this.indentation:0};var Vir=function(e,t,n){var r=new zir(null,t,!1),i=e.next();return'"'===i?r=Wir(e,new Uir(Wir,t)):"'"===i?r=jir(e,new Uir(jir,t)):"#"===i?"'"===e.peek()?(e.next(),r=Yir(e,new Uir(Yir,t))):e.eatWhile(/[^\s.{}\[\]()]/)?r.name="string.special":r.name="meta":"$"===i?("<"===e.next()&&(e.eatWhile(/[^\s>]/),e.next()),r.name="string.special"):"|"===i&&n.expectVariable?r.context=new Uir(Zir,t):/[\[\]{}()]/.test(i)?(r.name="bracket",r.eos=/[\[{(]/.test(i),"["===i?n.indentation++:"]"===i&&(n.indentation=Math.max(0,n.indentation-1))):Xir.test(i)?(e.eatWhile(Xir),r.name="operator",r.eos=";"!==i):/\d/.test(i)?(e.eatWhile(/[\w\d]/),r.name="number"):/[\w_]/.test(i)?(e.eatWhile(/[\w\d_]/),r.name=n.expectVariable?Fir.test(e.current())?"keyword":"variable":null):r.eos=n.expectVariable,r},Wir=function(e,t){return e.eatWhile(/[^"]/),new zir("comment",e.eat('"')?t.parent:t,!0)},jir=function(e,t){return e.eatWhile(/[^']/),new zir("string",e.eat("'")?t.parent:t,!1)},Yir=function(e,t){return e.eatWhile(/[^']/),new zir("string.special",e.eat("'")?t.parent:t,!1)},Zir=function(e,t){var n=new zir(null,t,!1);return"|"===e.next()?(n.context=t.parent,n.eos=!0):(e.eatWhile(/[^|]/),n.name="variable"),n};const Gir={name:"smalltalk",startState:function(){return new qir},token:function(e,t){if(t.userIndent(e.indentation(),e.indentUnit),e.eatSpace())return null;var n=t.context.next(e,t.context,t);return t.context=n.context,t.expectVariable=n.eos,n.name},blankLine:function(e,t){e.userIndent(0,t)},indent:function(e,t,n){var r=e.context.next===Vir&&t&&"]"===t.charAt(0)?-1:e.userIndentationDelta;return(e.indentation+r)*n.unit},languageData:{indentOnInput:/^\s*\]$/}},Hir=Object.freeze(Object.defineProperty({__proto__:null,smalltalk:Gir},Symbol.toStringTag,{value:"Module"}));var Kir=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,Jir=/[\|\!\+\-\*\?\~\^\&]/,eor=/^(OR|AND|NOT|TO)$/;function tor(e){return function(t,n){for(var r=e;(e=t.peek())&&null!=e.match(Kir);)r+=t.next();return n.tokenize=nor,eor.test(r)?"operator":function(e){return parseFloat(e).toString()===e}(r)?"number":":"==t.peek()?"propertyName":"string"}}function nor(e,t){var n,r,i=e.next();return'"'==i?t.tokenize=(r=i,function(e,t){for(var n,i=!1;null!=(n=e.next())&&(n!=r||i);)i=!i&&"\\"==n;return i||(t.tokenize=nor),"string"}):Jir.test(i)?t.tokenize=(n=i,function(e,t){return"|"==n?e.eat(/\|/):"&"==n&&e.eat(/\&/),t.tokenize=nor,"operator"}):Kir.test(i)&&(t.tokenize=tor(i)),t.tokenize!=nor?t.tokenize(e,t):null}const ror={name:"solr",startState:function(){return{tokenize:nor}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}},ior=Object.freeze(Object.defineProperty({__proto__:null,solr:ror},Symbol.toStringTag,{value:"Module"}));var oor;function aor(e){return new RegExp("^(?:"+e.join("|")+")$","i")}var sor=aor(["str","lang","langmatches","datatype","bound","sameterm","isiri","isuri","iri","uri","bnode","count","sum","min","max","avg","sample","group_concat","rand","abs","ceil","floor","round","concat","substr","strlen","replace","ucase","lcase","encode_for_uri","contains","strstarts","strends","strbefore","strafter","year","month","day","hours","minutes","seconds","timezone","tz","now","uuid","struuid","md5","sha1","sha256","sha384","sha512","coalesce","if","strlang","strdt","isnumeric","regex","exists","isblank","isliteral","a","bind"]),lor=aor(["base","prefix","select","distinct","reduced","construct","describe","ask","from","named","where","order","limit","offset","filter","optional","graph","by","asc","desc","as","having","undef","values","group","minus","in","not","service","silent","using","insert","delete","union","true","false","with","data","copy","to","move","add","create","drop","clear","load","into"]),cor=/[*+\-<>=&|\^\/!\?]/,uor="[A-Za-z_\\-0-9]",hor=new RegExp("[A-Za-z]"),dor=new RegExp("(("+uor+"|\\.)*("+uor+"))?:");function por(e,t){var n,r=e.next();if(oor=null,"$"==r||"?"==r)return"?"==r&&e.match(/\s/,!1)?"operator":(e.match(/^[A-Za-z0-9_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][A-Za-z0-9_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]*/),"variableName.local");if("<"==r&&!e.match(/^[\s\u00a0=]/,!1))return e.match(/^[^\s\u00a0>]*>?/),"atom";if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1;null!=(r=e.next());){if(r==n&&!i){t.tokenize=por;break}i=!i&&"\\"==r}return"string"}),t.tokenize(e,t);if(/[{}\(\),\.;\[\]]/.test(r))return oor=r,"bracket";if("#"==r)return e.skipToEnd(),"comment";if(cor.test(r))return"operator";if(":"==r)return gor(e),"atom";if("@"==r)return e.eatWhile(/[a-z\d\-]/i),"meta";if(hor.test(r)&&e.match(dor))return gor(e),"atom";e.eatWhile(/[_\w\d]/);var i=e.current();return sor.test(i)?"builtin":lor.test(i)?"keyword":"variable"}function gor(e){e.match(/(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/i)}function mor(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function Oor(e){e.indent=e.context.indent,e.context=e.context.prev}const Aor={name:"sparql",startState:function(){return{tokenize:por,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()&&(t.context&&null==t.context.align&&(t.context.align=!1),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"!=n&&t.context&&null==t.context.align&&"pattern"!=t.context.type&&(t.context.align=!0),"("==oor)mor(t,")",e.column());else if("["==oor)mor(t,"]",e.column());else if("{"==oor)mor(t,"}",e.column());else if(/[\]\}\)]/.test(oor)){for(;t.context&&"pattern"==t.context.type;)Oor(t);t.context&&oor==t.context.type&&(Oor(t),"}"==oor&&t.context&&"pattern"==t.context.type&&Oor(t))}else"."==oor&&t.context&&"pattern"==t.context.type?Oor(t):/atom|string|variable/.test(n)&&t.context&&(/[\}\]]/.test(t.context.type)?mor(t,"pattern",e.column()):"pattern"!=t.context.type||t.context.align||(t.context.align=!0,t.context.col=e.column()));return n},indent:function(e,t,n){var r=t&&t.charAt(0),i=e.context;if(/[\]\}]/.test(r))for(;i&&"pattern"==i.type;)i=i.prev;var o=i&&r==i.type;return i?"pattern"==i.type?i.col:i.align?i.col+(o?0:1):i.indent+(o?0:n.unit):0},languageData:{commentTokens:{line:"#"}}},yor=Object.freeze(Object.defineProperty({__proto__:null,sparql:Aor},Symbol.toStringTag,{value:"Module"})),vor=Object.freeze(Object.defineProperty({__proto__:null,spreadsheet:{name:"spreadsheet",startState:function(){return{stringType:null,stack:[]}},token:function(e,t){if(e){switch(0===t.stack.length&&('"'!=e.peek()&&"'"!=e.peek()||(t.stringType=e.peek(),e.next(),t.stack.unshift("string"))),t.stack[0]){case"string":for(;"string"===t.stack[0]&&!e.eol();)e.peek()===t.stringType?(e.next(),t.stack.shift()):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return"string";case"characterClass":for(;"characterClass"===t.stack[0]&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(/^\\./)||t.stack.shift();return"operator"}var n=e.peek();switch(n){case"[":return e.next(),t.stack.unshift("characterClass"),"bracket";case":":return e.next(),"operator";case"\\":return e.match(/\\[a-z]+/)?"string.special":(e.next(),"atom");case".":case",":case";":case"*":case"-":case"+":case"^":case"<":case"/":case"=":return e.next(),"atom";case"$":return e.next(),"builtin"}return e.match(/\d+/)?e.match(/^\w+/)?"error":"number":e.match(/^[a-zA-Z_]\w*/)?e.match(/(?=[\(.])/,!1)?"keyword":"variable":-1!=["[","]","(",")","{","}"].indexOf(n)?(e.next(),"bracket"):(e.eatSpace()||e.next(),null)}}}},Symbol.toStringTag,{value:"Module"}));var bor=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","bgsound","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","nobr","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video"],xor=["domain","regexp","url-prefix","url"],wor=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],kor=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","dynamic-range","video-dynamic-range"],Sor=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode","font-smoothing","osx-font-smoothing"],Tor=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],$or=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],_or=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","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","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],Cor=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","column","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","high","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","malayalam","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scale","scale3d","scaleX","scaleY","scaleZ","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","solid","somali","source-atop","source-in","source-out","source-over","space","spell-out","square","square-button","standard","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","x-large","x-small","xor","xx-large","xx-small","bicubic","optimizespeed","grayscale","row","row-reverse","wrap","wrap-reverse","column-reverse","flex-start","flex-end","space-between","space-around","unset"],Qor=["in","and","or","not","is not","is a","is","isnt","defined","if unless"],Por=["for","if","else","unless","from","to"],Eor=["null","true","false","href","title","type","not-allowed","readonly","disabled"],Ror=bor.concat(xor,wor,kor,Sor,Tor,_or,Cor,$or,Qor,Por,Eor,["@font-face","@keyframes","@media","@viewport","@page","@host","@supports","@block","@css"]);function Bor(e){return e=e.sort(function(e,t){return t>e}),new RegExp("^(("+e.join(")|(")+"))\\b")}function Ior(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}var Lor,Dor,Mor,Nor,Xor=Ior(bor),For=/^(a|b|i|s|col|em)$/i,Uor=Ior(Sor),zor=Ior(Tor),qor=Ior(Cor),Vor=Ior(_or),Wor=Ior(xor),jor=Bor(xor),Yor=Ior(kor),Zor=Ior(wor),Gor=Ior($or),Hor=/^\s*([.]{2,3}|&&|\|\||\*\*|[?!=:]?=|[-+*\/%<>]=?|\?:|\~)/,Kor=Bor(Qor),Jor=Ior(Por),ear=new RegExp(/^\-(moz|ms|o|webkit)-/i),tar=Ior(Eor),nar="",rar={};function iar(e,t){if(nar=e.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/),t.context.line.firstWord=nar?nar[0].replace(/^\s*/,""):"",t.context.line.indent=e.indentation(),Lor=e.peek(),e.match("//"))return e.skipToEnd(),["comment","comment"];if(e.match("/*"))return t.tokenize=oar,oar(e,t);if('"'==Lor||"'"==Lor)return e.next(),t.tokenize=aar(Lor),t.tokenize(e,t);if("@"==Lor)return e.next(),e.eatWhile(/[\w\\-]/),["def",e.current()];if("#"==Lor){if(e.next(),e.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i))return["atom","atom"];if(e.match(/^[a-z][\w-]*/i))return["builtin","hash"]}return e.match(ear)?["meta","vendor-prefixes"]:e.match(/^-?[0-9]?\.?[0-9]/)?(e.eatWhile(/[a-z%]/i),["number","unit"]):"!"==Lor?(e.next(),[e.match(/^(important|optional)/i)?"keyword":"operator","important"]):"."==Lor&&e.match(/^\.[a-z][\w-]*/i)?["qualifier","qualifier"]:e.match(jor)?("("==e.peek()&&(t.tokenize=sar),["property","word"]):e.match(/^[a-z][\w-]*\(/i)?(e.backUp(1),["keyword","mixin"]):e.match(/^(\+|-)[a-z][\w-]*\(/i)?(e.backUp(1),["keyword","block-mixin"]):e.string.match(/^\s*&/)&&e.match(/^[-_]+[a-z][\w-]*/)?["qualifier","qualifier"]:e.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)?(e.backUp(1),["variableName.special","reference"]):e.match(/^&{1}\s*$/)?["variableName.special","reference"]:e.match(Kor)?["operator","operator"]:e.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)?e.match(/^(\.|\[)[\w-\'\"\]]+/i,!1)&&!dar(e.current())?(e.match("."),["variable","variable-name"]):["variable","word"]:e.match(Hor)?["operator",e.current()]:/[:;,{}\[\]\(\)]/.test(Lor)?(e.next(),[null,Lor]):(e.next(),[null,null])}function oar(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}function aar(e){return function(t,n){for(var r,i=!1;null!=(r=t.next());){if(r==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==r}return(r==e||!i&&")"!=e)&&(n.tokenize=null),["string","string"]}}function sar(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=aar(")"),[null,"("]}function lar(e,t,n,r){this.type=e,this.indent=t,this.prev=n,this.line=r||{firstWord:"",indent:0}}function car(e,t,n,r){return r=r>=0?r:t.indentUnit,e.context=new lar(n,t.indentation()+r,e.context),n}function uar(e,t,n){var r=e.context.indent-t.indentUnit;return n=n||!1,e.context=e.context.prev,n&&(e.context.indent=r),e.context.type}function har(e,t,n,r){for(var i=1;i>0;i--)n.context=n.context.prev;return function(e,t,n){return rar[n.context.type](e,t,n)}(e,t,n)}function dar(e){return e.toLowerCase()in Xor}function par(e){return(e=e.toLowerCase())in Uor||e in Gor}function far(e){return e.toLowerCase()in Jor}function gar(e){return e.toLowerCase().match(ear)}function mar(e){var t=e.toLowerCase(),n="variable";return dar(e)?n="tag":far(e)?n="block-keyword":par(e)?n="property":t in qor||t in tar?n="atom":"return"==t||t in Vor?n="keyword":e.match(/^[A-Z]/)&&(n="string"),n}function Oar(e,t){return xar(t)&&("{"==e||"]"==e||"hash"==e||"qualifier"==e)||"block-mixin"==e}function Aar(e,t){return"{"==e&&t.match(/^\s*\$?[\w-]+/i,!1)}function yar(e,t){return":"==e&&t.match(/^[a-z-]+/,!1)}function bar(e){return e.sol()||e.string.match(new RegExp("^\\s*"+e.current().replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")))}function xar(e){return e.eol()||e.match(/^\s*$/,!1)}function war(e){var t=/^\s*[-_]*[a-z0-9]+[\w-]*/i,n="string"==typeof e?e.match(t):e.string.match(t);return n?n[0].replace(/^\s*/,""):""}rar.block=function(e,t,n){if("comment"==e&&bar(t)||","==e&&xar(t)||"mixin"==e)return car(n,t,"block",0);if(Aar(e,t))return car(n,t,"interpolation");if(xar(t)&&"]"==e&&!/^\s*(\.|#|:|\[|\*|&)/.test(t.string)&&!dar(war(t)))return car(n,t,"block",0);if(Oar(e,t))return car(n,t,"block");if("}"==e&&xar(t))return car(n,t,"block",0);if("variable-name"==e)return t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)||far(war(t))?car(n,t,"variableName"):car(n,t,"variableName",0);if("="==e)return xar(t)||far(war(t))?car(n,t,"block"):car(n,t,"block",0);if("*"==e&&(xar(t)||t.match(/\s*(,|\.|#|\[|:|{)/,!1)))return Nor="tag",car(n,t,"block");if(yar(e,t))return car(n,t,"pseudo");if(/@(font-face|media|supports|(-moz-)?document)/.test(e))return car(n,t,xar(t)?"block":"atBlock");if(/@(-(moz|ms|o|webkit)-)?keyframes$/.test(e))return car(n,t,"keyframes");if(/@extends?/.test(e))return car(n,t,"extend",0);if(e&&"@"==e.charAt(0))return t.indentation()>0&&par(t.current().slice(1))?(Nor="variable","block"):/(@import|@require|@charset)/.test(e)?car(n,t,"block",0):car(n,t,"block");if("reference"==e&&xar(t))return car(n,t,"block");if("("==e)return car(n,t,"parens");if("vendor-prefixes"==e)return car(n,t,"vendorPrefixes");if("word"==e){var r=t.current();if("property"==(Nor=mar(r)))return bar(t)?car(n,t,"block",0):(Nor="atom","block");if("tag"==Nor){if(/embed|menu|pre|progress|sub|table/.test(r)&&par(war(t)))return Nor="atom","block";if(t.string.match(new RegExp("\\[\\s*"+r+"|"+r+"\\s*\\]")))return Nor="atom","block";if(For.test(r)&&(bar(t)&&t.string.match(/=/)||!bar(t)&&!t.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/)&&!dar(war(t))))return Nor="variable",far(war(t))?"block":car(n,t,"block",0);if(xar(t))return car(n,t,"block")}if("block-keyword"==Nor)return Nor="keyword",t.current(/(if|unless)/)&&!bar(t)?"block":car(n,t,"block");if("return"==r)return car(n,t,"block",0);if("variable"==Nor&&t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/))return car(n,t,"block")}return n.context.type},rar.parens=function(e,t,n){if("("==e)return car(n,t,"parens");if(")"==e)return"parens"==n.context.prev.type?uar(n,t):t.string.match(/^[a-z][\w-]*\(/i)&&xar(t)||far(war(t))||/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(war(t))||!t.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/)&&dar(war(t))?car(n,t,"block"):t.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/)||t.string.match(/^\s*(\(|\)|[0-9])/)||t.string.match(/^\s+[a-z][\w-]*\(/i)||t.string.match(/^\s+[\$-]?[a-z]/i)?car(n,t,"block",0):xar(t)?car(n,t,"block"):car(n,t,"block",0);if(e&&"@"==e.charAt(0)&&par(t.current().slice(1))&&(Nor="variable"),"word"==e){var r=t.current();"tag"==(Nor=mar(r))&&For.test(r)&&(Nor="variable"),"property"!=Nor&&"to"!=r||(Nor="atom")}return"variable-name"==e?car(n,t,"variableName"):yar(e,t)?car(n,t,"pseudo"):n.context.type},rar.vendorPrefixes=function(e,t,n){return"word"==e?(Nor="property",car(n,t,"block",0)):uar(n,t)},rar.pseudo=function(e,t,n){return par(war(t.string))?har(e,t,n):(t.match(/^[a-z-]+/),Nor="variableName.special",xar(t)?car(n,t,"block"):uar(n,t))},rar.atBlock=function(e,t,n){if("("==e)return car(n,t,"atBlock_parens");if(Oar(e,t))return car(n,t,"block");if(Aar(e,t))return car(n,t,"interpolation");if("word"==e){var r=t.current().toLowerCase();if("tag"==(Nor=/^(only|not|and|or)$/.test(r)?"keyword":Wor.hasOwnProperty(r)?"tag":Zor.hasOwnProperty(r)?"attribute":Yor.hasOwnProperty(r)?"property":zor.hasOwnProperty(r)?"string.special":mar(t.current()))&&xar(t))return car(n,t,"block")}return"operator"==e&&/^(not|and|or)$/.test(t.current())&&(Nor="keyword"),n.context.type},rar.atBlock_parens=function(e,t,n){if("{"==e||"}"==e)return n.context.type;if(")"==e)return xar(t)?car(n,t,"block"):car(n,t,"atBlock");if("word"==e){var r=t.current().toLowerCase();return Nor=mar(r),/^(max|min)/.test(r)&&(Nor="property"),"tag"==Nor&&(Nor=For.test(r)?"variable":"atom"),n.context.type}return rar.atBlock(e,t,n)},rar.keyframes=function(e,t,n){return"0"==t.indentation()&&("}"==e&&bar(t)||"]"==e||"hash"==e||"qualifier"==e||dar(t.current()))?har(e,t,n):"{"==e?car(n,t,"keyframes"):"}"==e?bar(t)?uar(n,t,!0):car(n,t,"keyframes"):"unit"==e&&/^[0-9]+\%$/.test(t.current())?car(n,t,"keyframes"):"word"==e&&"block-keyword"==(Nor=mar(t.current()))?(Nor="keyword",car(n,t,"keyframes")):/@(font-face|media|supports|(-moz-)?document)/.test(e)?car(n,t,xar(t)?"block":"atBlock"):"mixin"==e?car(n,t,"block",0):n.context.type},rar.interpolation=function(e,t,n){return"{"==e&&uar(n,t)&&car(n,t,"block"),"}"==e?t.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i)||t.string.match(/^\s*[a-z]/i)&&dar(war(t))?car(n,t,"block"):!t.string.match(/^(\{|\s*\&)/)||t.match(/\s*[\w-]/,!1)?car(n,t,"block",0):car(n,t,"block"):"variable-name"==e?car(n,t,"variableName",0):("word"==e&&"tag"==(Nor=mar(t.current()))&&(Nor="atom"),n.context.type)},rar.extend=function(e,t,n){return"["==e||"="==e?"extend":"]"==e?uar(n,t):"word"==e?(Nor=mar(t.current()),"extend"):uar(n,t)},rar.variableName=function(e,t,n){return"string"==e||"["==e||"]"==e||t.current().match(/^(\.|\$)/)?(t.current().match(/^\.[\w-]+/i)&&(Nor="variable"),"variableName"):har(e,t,n)};const kar={name:"stylus",startState:function(){return{tokenize:null,state:"block",context:new lar("block",0,null)}},token:function(e,t){return!t.tokenize&&e.eatSpace()?null:((Dor=(t.tokenize||iar)(e,t))&&"object"==typeof Dor&&(Mor=Dor[1],Dor=Dor[0]),Nor=Dor,t.state=rar[t.state](Mor,e,t),Nor)},indent:function(e,t,n){var r=e.context,i=t&&t.charAt(0),o=r.indent,a=war(t),s=r.line.indent,l=e.context.prev?e.context.prev.line.firstWord:"",c=e.context.prev?e.context.prev.line.indent:s;return r.prev&&("}"==i&&("block"==r.type||"atBlock"==r.type||"keyframes"==r.type)||")"==i&&("parens"==r.type||"atBlock_parens"==r.type)||"{"==i&&"at"==r.type)?o=r.indent-n.unit:/(\})/.test(i)||(/@|\$|\d/.test(i)||/^\{/.test(t)||/^\s*\/(\/|\*)/.test(t)||/^\s*\/\*/.test(l)||/^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(t)||/^(\+|-)?[a-z][\w-]*\(/i.test(t)||/^return/.test(t)||far(a)?o=s:/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(i)||dar(a)?o=/\,\s*$/.test(l)?c:/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(l)||dar(l)?s<=c?c:c+n.unit:s:/,\s*$/.test(t)||!gar(a)&&!par(a)||(o=far(l)?s<=c?c:c+n.unit:/^\{/.test(l)?s<=c?s:c+n.unit:gar(l)||par(l)?s>=c?c:s:/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(l)||/=\s*$/.test(l)||dar(l)||/^\$[\w-\.\[\]\'\"]/.test(l)?c+n.unit:s)),o},languageData:{indentOnInput:/^\s*\}$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:Ror}},Sar=Object.freeze(Object.defineProperty({__proto__:null,stylus:kar},Symbol.toStringTag,{value:"Module"}));function Tar(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}var $ar=Tar(["_","var","let","actor","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","open","public","internal","fileprivate","private","deinit","init","new","override","self","subscript","super","convenience","dynamic","final","indirect","lazy","required","static","unowned","unowned(safe)","unowned(unsafe)","weak","as","is","break","case","continue","default","else","fallthrough","for","guard","if","in","repeat","switch","where","while","defer","return","inout","mutating","nonmutating","isolated","nonisolated","catch","do","rethrows","throw","throws","async","await","try","didSet","get","set","willSet","assignment","associativity","infix","left","none","operator","postfix","precedence","precedencegroup","prefix","right","Any","AnyObject","Type","dynamicType","Self","Protocol","__COLUMN__","__FILE__","__FUNCTION__","__LINE__"]),_ar=Tar(["var","let","actor","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","for"]),Car=Tar(["true","false","nil","self","super","_"]),Qar=Tar(["Array","Bool","Character","Dictionary","Double","Float","Int","Int8","Int16","Int32","Int64","Never","Optional","Set","String","UInt8","UInt16","UInt32","UInt64","Void"]),Par=/^\-?0b[01][01_]*/,Ear=/^\-?0o[0-7][0-7_]*/,Rar=/^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/,Bar=/^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/,Iar=/^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/,Lar=/^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/,Dar=/^\#[A-Za-z]+/,Mar=/^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;function Nar(e,t,n){if(e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;var r,i=e.peek();if("/"==i){if(e.match("//"))return e.skipToEnd(),"comment";if(e.match("/*"))return t.tokenize.push(Uar),Uar(e,t)}if(e.match(Dar))return"builtin";if(e.match(Mar))return"attribute";if(e.match(Par))return"number";if(e.match(Ear))return"number";if(e.match(Rar))return"number";if(e.match(Bar))return"number";if(e.match(Lar))return"property";if("+-/*%=|&<>~^?!".indexOf(i)>-1)return e.next(),"operator";if(":;,.(){}[]".indexOf(i)>-1)return e.next(),e.match(".."),"punctuation";if(r=e.match(/("""|"|')/)){var o=Far.bind(null,r[0]);return t.tokenize.push(o),o(e,t)}if(e.match(Iar)){var a=e.current();return Qar.hasOwnProperty(a)?"type":Car.hasOwnProperty(a)?"atom":$ar.hasOwnProperty(a)?(_ar.hasOwnProperty(a)&&(t.prev="define"),"keyword"):"define"==n?"def":"variable"}return e.next(),null}function Xar(){var e=0;return function(t,n,r){var i=Nar(t,n,r);if("punctuation"==i)if("("==t.current())++e;else if(")"==t.current()){if(0==e)return t.backUp(1),n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n);--e}return i}}function Far(e,t,n){for(var r,i=1==e.length,o=!1;r=t.peek();)if(o){if(t.next(),"("==r)return n.tokenize.push(Xar()),"string";o=!1}else{if(t.match(e))return n.tokenize.pop(),"string";t.next(),o="\\"==r}return i&&n.tokenize.pop(),"string"}function Uar(e,t){for(var n;n=e.next();)if("/"===n&&e.eat("*"))t.tokenize.push(Uar);else if("*"===n&&e.eat("/")){t.tokenize.pop();break}return"comment"}function zar(e,t,n){this.prev=e,this.align=t,this.indented=n}function qar(e,t){var n=t.match(/^\s*($|\/[\/\*]|[)}\]])/,!1)?null:t.column()+1;e.context=new zar(e.context,n,e.indented)}function Var(e){e.context&&(e.indented=e.context.indented,e.context=e.context.prev)}const War={name:"swift",startState:function(){return{prev:null,context:null,indented:0,tokenize:[]}},token:function(e,t){var n=t.prev;t.prev=null;var r=(t.tokenize[t.tokenize.length-1]||Nar)(e,t,n);if(r&&"comment"!=r?t.prev||(t.prev=r):t.prev=n,"punctuation"==r){var i=/[\(\[\{]|([\]\)\}])/.exec(e.current());i&&(i[1]?Var:qar)(t,e)}return r},indent:function(e,t,n){var r=e.context;if(!r)return 0;var i=/^[\]\}\)]/.test(t);return null!=r.align?r.align-(i?1:0):r.indented+(i?0:n.unit)},languageData:{indentOnInput:/^\s*[\)\}\]]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}},jar=Object.freeze(Object.defineProperty({__proto__:null,swift:War},Symbol.toStringTag,{value:"Module"}));function Yar(e){function t(e,t){e.cmdState.push(t)}function n(e){return e.cmdState.length>0?e.cmdState[e.cmdState.length-1]:null}function r(e,t,n){return function(){this.name=e,this.bracketNo=0,this.style=t,this.styles=n,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var i={};function o(e,t){e.f=t}function a(e,r){var a;if(e.match(/^\\[a-zA-Z@\xc0-\u1fff\u2060-\uffff]+/)){var c=e.current().slice(1);return t(r,a=new(a=i.hasOwnProperty(c)?i[c]:i.DEFAULT)),o(r,l),a.style}if(e.match(/^\\[$&%#{}_]/))return"tag";if(e.match(/^\\[,;!\/\\]/))return"tag";if(e.match("\\["))return o(r,function(e,t){return s(e,t,"\\]")}),"keyword";if(e.match("\\("))return o(r,function(e,t){return s(e,t,"\\)")}),"keyword";if(e.match("$$"))return o(r,function(e,t){return s(e,t,"$$")}),"keyword";if(e.match("$"))return o(r,function(e,t){return s(e,t,"$")}),"keyword";var u=e.next();return"%"==u?(e.skipToEnd(),"comment"):"}"==u||"]"==u?(a=n(r))?(a.closeBracket(u),o(r,l),"bracket"):"error":"{"==u||"["==u?(t(r,a=new(a=i.DEFAULT)),"bracket"):/\d/.test(u)?(e.eatWhile(/[\w.%]/),"atom"):(e.eatWhile(/[\w\-_]/),a=function(e){for(var t=e.cmdState,n=t.length-1;n>=0;n--){var r=t[n];if("DEFAULT"!=r.name)return r}return{styleIdentifier:function(){return null}}}(r),"begin"==a.name&&(a.argument=e.current()),a.styleIdentifier())}function s(e,t,n){if(e.eatSpace())return null;if(n&&e.match(n))return o(t,a),"keyword";if(e.match(/^\\[a-zA-Z@]+/))return"tag";if(e.match(/^[a-zA-Z]+/))return"variableName.special";if(e.match(/^\\[$&%#{}_]/))return"tag";if(e.match(/^\\[,;!\/]/))return"tag";if(e.match(/^[\^_&]/))return"tag";if(e.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(e.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var r=e.next();return"{"==r||"}"==r||"["==r||"]"==r||"("==r||")"==r?"bracket":"%"==r?(e.skipToEnd(),"comment"):"error"}function l(e,t){var r=e.peek();return"{"==r||"["==r?(n(t).openBracket(r),e.eat(r),o(t,a),"bracket"):/[ \t\r]/.test(r)?(e.eat(r),null):(o(t,a),function(e){var t=e.cmdState.pop();t&&t.closeBracket()}(t),a(e,t))}return i.importmodule=r("importmodule","tag",["string","builtin"]),i.documentclass=r("documentclass","tag",["","atom"]),i.usepackage=r("usepackage","tag",["atom"]),i.begin=r("begin","tag",["atom"]),i.end=r("end","tag",["atom"]),i.label=r("label","tag",["atom"]),i.ref=r("ref","tag",["atom"]),i.eqref=r("eqref","tag",["atom"]),i.cite=r("cite","tag",["atom"]),i.bibitem=r("bibitem","tag",["atom"]),i.Bibitem=r("Bibitem","tag",["atom"]),i.RBibitem=r("RBibitem","tag",["atom"]),i.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}},{name:"stex",startState:function(){return{cmdState:[],f:e?function(e,t){return s(e,t)}:a}},copyState:function(e){return{cmdState:e.cmdState.slice(),f:e.f}},token:function(e,t){return t.f(e,t)},blankLine:function(e){e.f=a,e.cmdState.length=0},languageData:{commentTokens:{line:"%"}}}}const Zar=Yar(!1),Gar=Yar(!0),Har=Object.freeze(Object.defineProperty({__proto__:null,stex:Zar,stexMath:Gar},Symbol.toStringTag,{value:"Module"}));function Kar(e){var t=e.statementIndentUnit,n=e.dontAlignCalls,r=e.noIndentKeywords||[],i=e.multiLineStrings,o=e.hooks||{};function a(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var s,l,c=a("accept_on alias always always_comb always_ff always_latch and assert assign assume automatic before begin bind bins binsof bit break buf bufif0 bufif1 byte case casex casez cell chandle checker class clocking cmos config const constraint context continue cover covergroup coverpoint cross deassign default defparam design disable dist do edge else end endcase endchecker endclass endclocking endconfig endfunction endgenerate endgroup endinterface endmodule endpackage endprimitive endprogram endproperty endspecify endsequence endtable endtask enum event eventually expect export extends extern final first_match for force foreach forever fork forkjoin function generate genvar global highz0 highz1 if iff ifnone ignore_bins illegal_bins implements implies import incdir include initial inout input inside instance int integer interconnect interface intersect join join_any join_none large let liblist library local localparam logic longint macromodule matches medium modport module nand negedge nettype new nexttime 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 reject_on release repeat restrict return rnmos rpmos rtran rtranif0 rtranif1 s_always s_eventually s_nexttime s_until s_until_with scalared sequence shortint shortreal showcancelled signed small soft solve specify specparam static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on sync_reject_on table tagged task this throughout time timeprecision timeunit tran tranif0 tranif1 tri tri0 tri1 triand trior trireg type typedef union unique unique0 unsigned until until_with untyped use uwire var vectored virtual void wait wait_order wand weak weak0 weak1 while wildcard wire with within wor xnor xor"),u=/[\+\-\*\/!~&|^%=?:]/,h=/[\[\]{}()]/,d=/\d[0-9_]*/,p=/\d*\s*'s?d\s*\d[0-9_]*/i,f=/\d*\s*'s?b\s*[xz01][xz01_]*/i,g=/\d*\s*'s?o\s*[xz0-7][xz0-7_]*/i,m=/\d*\s*'s?h\s*[0-9a-fxz?][0-9a-fxz?_]*/i,O=/(\d[\d_]*(\.\d[\d_]*)?E-?[\d_]+)|(\d[\d_]*\.\d[\d_]*)/i,A=/^((\w+)|[)}\]])/,y=/[)}\]]/,v=a("case checker class clocking config function generate interface module package primitive program property specify sequence table task"),b={};for(var x in v)b[x]="end"+x;for(var w in b.begin="end",b.casex="endcase",b.casez="endcase",b.do="while",b.fork="join;join_any;join_none",b.covergroup="endgroup",r){x=r[w];b[x]&&(b[x]=void 0)}var k=a("always always_comb always_ff always_latch assert assign assume else export for foreach forever if import initial repeat while");function S(e,t){var n,r,a=e.peek();if(o[a]&&0!=(n=o[a](e,t)))return n;if(o.tokenBase&&0!=(n=o.tokenBase(e,t)))return n;if(/[,;:\.]/.test(a))return s=e.next(),null;if(h.test(a))return s=e.next(),"bracket";if("`"==a)return e.next(),e.eatWhile(/[\w\$_]/)?"def":null;if("$"==a)return e.next(),e.eatWhile(/[\w\$_]/)?"meta":null;if("#"==a)return e.next(),e.eatWhile(/[\d_.]/),"def";if('"'==a)return e.next(),t.tokenize=(r=a,function(e,t){for(var n,o=!1,a=!1;null!=(n=e.next());){if(n==r&&!o){a=!0;break}o=!o&&"\\"==n}return(a||!o&&!i)&&(t.tokenize=S),"string"}),t.tokenize(e,t);if("/"==a){if(e.next(),e.eat("*"))return t.tokenize=T,T(e,t);if(e.eat("/"))return e.skipToEnd(),"comment";e.backUp(1)}if(e.match(O)||e.match(p)||e.match(f)||e.match(g)||e.match(m)||e.match(d)||e.match(O))return"number";if(e.eatWhile(u))return"meta";if(e.eatWhile(/[\w\$_]/)){var A=e.current();return c[A]?(b[A]&&(s="newblock"),k[A]&&(s="newstatement"),l=A,"keyword"):"variable"}return e.next(),null}function T(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=S;break}r="*"==n}return"comment"}function $(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function _(e,t,n){var r=new $(e.indented,t,n,null,e.context);return e.context=r}function C(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function Q(e,t){if(e==t)return!0;var n=t.split(";");for(var r in n)if(e==n[r])return!0;return!1}return{name:"verilog",startState:function(e){var t={tokenize:null,context:new $(-e,0,"top",!1),indented:0,startOfLine:!0};return o.startState&&o.startState(t),t},token:function(e,t){var n,r=t.context;if((e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0),o.token)&&void 0!==(n=o.token(e,t)))return n;if(e.eatSpace())return null;if(s=null,l=null,"comment"==(n=(t.tokenize||S)(e,t))||"meta"==n||"variable"==n)return n;if(null==r.align&&(r.align=!0),s==r.type)C(t);else if(";"==s&&"statement"==r.type||r.type&&Q(l,r.type))for(r=C(t);r&&"statement"==r.type;)r=C(t);else if("{"==s)_(t,e.column(),"}");else if("["==s)_(t,e.column(),"]");else if("("==s)_(t,e.column(),")");else if(r&&"endcase"==r.type&&":"==s)_(t,e.column(),"statement");else if("newstatement"==s)_(t,e.column(),"statement");else if("newblock"==s)if("function"!=l||!r||"statement"!=r.type&&"endgroup"!=r.type)if("task"==l&&r&&"statement"==r.type);else{var i=b[l];_(t,e.column(),i)}else;return t.startOfLine=!1,n},indent:function(e,r,i){if(e.tokenize!=S&&null!=e.tokenize)return null;if(o.indent){var a=o.indent(e);if(a>=0)return a}var s=e.context,l=r&&r.charAt(0);"statement"==s.type&&"}"==l&&(s=s.prev);var c=!1,u=r.match(A);return u&&(c=Q(u[0],s.type)),"statement"==s.type?s.indented+("{"==l?0:t||i.unit):y.test(s.type)&&s.align&&!n?s.column+(c?0:1):")"!=s.type||c?s.indented+(c?0:i.unit):s.indented+(t||i.unit)},languageData:{indentOnInput:function(){var e=[];for(var t in b)if(b[t]){var n=b[t].split(";");for(var r in n)e.push(n[r])}return new RegExp("[{}()\\[\\]]|("+e.join("|")+")$")}(),commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}}}const Jar=Kar({});var esr={"|":"link",">":"property",$:"variable",$$:"variable","?$":"qualifier","?*":"qualifier","-":"contentSeparator","/":"property","/-":"property","@":"variableName.special","@-":"variableName.special","@++":"variableName.special","@+=":"variableName.special","@+=-":"variableName.special","@--":"variableName.special","@-=":"variableName.special","%+":"tag","%-":"tag","%":"tag",">>":"tag","<<":"tag","<>":"tag","#":"tag","^":"attribute","^^":"attribute","^!":"attribute","*":"variable","**":"variable","\\":"keyword",'"':"comment"},tsr={"/":"beh-hier",">":"beh-hier","-":"phys-hier","|":"pipe","?":"when","@":"stage","\\":"keyword"},nsr=/^([~!@#\$%\^&\*-\+=\?\/\\\|'"<>]+)([\d\w_]*)/,rsr=/^[! ] */,isr=/^\/[\/\*]/;const osr=Kar({hooks:{electricInput:!1,token:function(e,t){var n,r=void 0;if(e.sol()&&!t.tlvInBlockComment){"\\"==e.peek()&&(r="def",e.skipToEnd(),e.string.match(/\\SV/)?t.tlvCodeActive=!1:e.string.match(/\\TLV/)&&(t.tlvCodeActive=!0)),t.tlvCodeActive&&0==e.pos&&0==t.indented&&(n=e.match(rsr,!1))&&(t.indented=n[0].length);var i=t.indented,o=i/3;if(o<=t.tlvIndentationStyle.length){var a=e.string.length==i,s=3*o;if(s<e.string.length){var l=e.string.slice(s),c=l[0];tsr[c]&&(n=l.match(nsr))&&esr[n[1]]&&(i+=3,"\\"==c&&s>0||(t.tlvIndentationStyle[o]=tsr[c],o++))}if(!a)for(;t.tlvIndentationStyle.length>o;)t.tlvIndentationStyle.pop()}t.tlvNextIndent=i}if(t.tlvCodeActive)if(void 0!==r);else if(t.tlvInBlockComment)e.match(/^.*?\*\//)?t.tlvInBlockComment=!1:e.skipToEnd(),r="comment";else if((n=e.match(isr))&&!t.tlvInBlockComment)"//"==n[0]?e.skipToEnd():t.tlvInBlockComment=!0,r="comment";else if(n=e.match(nsr)){var u=n[1],h=n[2];esr.hasOwnProperty(u)&&(h.length>0||e.eol())?r=esr[u]:e.backUp(e.current().length-1)}else e.match(/^\t+/)?r="invalid":e.match(/^[\[\]{}\(\);\:]+/)?r="meta":(n=e.match(/^[mM]4([\+_])?[\w\d_]*/))?r="+"==n[1]?"keyword.special":"keyword":e.match(/^ +/)?e.eol()&&(r="error"):e.match(/^[\w\d_]+/)?r="number":e.next();else e.match(/^[mM]4([\w\d_]*)/)&&(r="keyword");return r},indent:function(e){return 1==e.tlvCodeActive?e.tlvNextIndent:-1},startState:function(e){e.tlvIndentationStyle=[],e.tlvCodeActive=!0,e.tlvNextIndent=-1,e.tlvInBlockComment=!1}}}),asr=Object.freeze(Object.defineProperty({__proto__:null,tlv:osr,verilog:Jar},Symbol.toStringTag,{value:"Module"}));function ssr(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var lsr=ssr("Tcl safe after append array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd close concat continue dde eof encoding error eval exec exit expr fblocked fconfigure fcopy file fileevent filename filename flush for foreach format gets glob global history http if incr info interp join lappend lindex linsert list llength load lrange lreplace lsearch lset lsort memory msgcat namespace open package parray pid pkg::create pkg_mkIndex proc puts pwd re_syntax read regex regexp registry regsub rename resource return scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_wordBreakAfter tcl_startOfPreviousWord tcl_wordBreakBefore tcltest tclvars tell time trace unknown unset update uplevel upvar variable vwait"),csr=ssr("if elseif else and not or eq ne in ni for foreach while switch"),usr=/[+\-*&%=<>!?^\/\|]/;function hsr(e,t,n){return t.tokenize=n,n(e,t)}function dsr(e,t){var n=t.beforeParams;t.beforeParams=!1;var r,i=e.next();if('"'!=i&&"'"!=i||!t.inParams){if(/[\[\]{}\(\),;\.]/.test(i))return"("==i&&n?t.inParams=!0:")"==i&&(t.inParams=!1),null;if(/\d/.test(i))return e.eatWhile(/[\w\.]/),"number";if("#"==i)return e.eat("*")?hsr(e,t,psr):"#"==i&&e.match(/ *\[ *\[/)?hsr(e,t,fsr):(e.skipToEnd(),"comment");if('"'==i)return e.skipTo(/"/),"comment";if("$"==i)return e.eatWhile(/[$_a-z0-9A-Z\.{:]/),e.eatWhile(/}/),t.beforeParams=!0,"builtin";if(usr.test(i))return e.eatWhile(usr),"comment";e.eatWhile(/[\w\$_{}\xa1-\uffff]/);var o=e.current().toLowerCase();return lsr&&lsr.propertyIsEnumerable(o)?"keyword":csr&&csr.propertyIsEnumerable(o)?(t.beforeParams=!0,"keyword"):null}return hsr(e,t,(r=i,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){o=!0;break}i=!i&&"\\"==n}return o&&(t.tokenize=dsr),"string"}))}function psr(e,t){for(var n,r=!1;n=e.next();){if("#"==n&&r){t.tokenize=dsr;break}r="*"==n}return"comment"}function fsr(e,t){for(var n,r=0;n=e.next();){if("#"==n&&2==r){t.tokenize=dsr;break}"]"==n?r++:" "!=n&&(r=0)}return"meta"}const gsr={name:"tcl",startState:function(){return{tokenize:dsr,beforeParams:!1,inParams:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{commentTokens:{line:"#"}}},msr=Object.freeze(Object.defineProperty({__proto__:null,tcl:gsr},Symbol.toStringTag,{value:"Module"}));var Osr={addition:"inserted",attributes:"propertyName",bold:"strong",cite:"keyword",code:"monospace",definitionList:"list",deletion:"deleted",div:"punctuation",em:"emphasis",footnote:"variable",footCite:"qualifier",header:"heading",html:"comment",image:"atom",italic:"emphasis",link:"link",linkDefinition:"link",list1:"list",list2:"list.special",list3:"list",notextile:"string.special",pre:"operator",p:"content",quote:"bracket",span:"quote",specialChar:"character",strong:"strong",sub:"content.special",sup:"content.special",table:"variableName.special",tableHeading:"operator"};function Asr(e,t,n){if("_"===n)return e.eat("_")?ysr(e,t,"italic",/__/,2):ysr(e,t,"em",/_/,1);if("*"===n)return e.eat("*")?ysr(e,t,"bold",/\*\*/,2):ysr(e,t,"strong",/\*/,1);if("["===n)return e.match(/\d+\]/)&&(t.footCite=!0),vsr(t);if("("===n&&e.match(/^(r|tm|c)\)/))return Osr.specialChar;if("<"===n&&e.match(/(\w+)[^>]+>[^<]+<\/\1>/))return Osr.html;if("?"===n&&e.eat("?"))return ysr(e,t,"cite",/\?\?/,2);if("="===n&&e.eat("="))return ysr(e,t,"notextile",/==/,2);if("-"===n&&!e.eat("-"))return ysr(e,t,"deletion",/-/,1);if("+"===n)return ysr(e,t,"addition",/\+/,1);if("~"===n)return ysr(e,t,"sub",/~/,1);if("^"===n)return ysr(e,t,"sup",/\^/,1);if("%"===n)return ysr(e,t,"span",/%/,1);if("@"===n)return ysr(e,t,"code",/@/,1);if("!"===n){var r=ysr(e,t,"image",/(?:\([^\)]+\))?!/,1);return e.match(/^:\S+/),r}return vsr(t)}function ysr(e,t,n,r,i){var o=e.pos>i?e.string.charAt(e.pos-i-1):null,a=e.peek();if(t[n]){if((!a||/\W/.test(a))&&o&&/\S/.test(o)){var s=vsr(t);return t[n]=!1,s}}else(!o||/\W/.test(o))&&a&&/\S/.test(a)&&e.match(new RegExp("^.*\\S"+r.source+"(?:\\W|$)"),!1)&&(t[n]=!0,t.mode=ksr.attributes);return vsr(t)}function vsr(e){var t=bsr(e);if(t)return t;var n=[];return e.layoutType&&n.push(Osr[e.layoutType]),n=n.concat(function(e){for(var t=[],n=1;n<arguments.length;++n)e[arguments[n]]&&t.push(Osr[arguments[n]]);return t}(e,"addition","bold","cite","code","deletion","em","footCite","image","italic","link","span","strong","sub","sup","table","tableHeading")),"header"===e.layoutType&&n.push(Osr.header+"-"+e.header),n.length?n.join(" "):null}function bsr(e){var t=e.layoutType;switch(t){case"notextile":case"code":case"pre":return Osr[t];default:return e.notextile?Osr.notextile+(t?" "+Osr[t]:""):null}}var xsr={cache:{},single:{bc:"bc",bq:"bq",definitionList:/- .*?:=+/,definitionListEnd:/.*=:\s*$/,div:"div",drawTable:/\|.*\|/,foot:/fn\d+/,header:/h[1-6]/,html:/\s*<(?:\/)?(\w+)(?:[^>]+)?>(?:[^<]+<\/\1>)?/,link:/[^"]+":\S/,linkDefinition:/\[[^\s\]]+\]\S+/,list:/(?:#+|\*+)/,notextile:"notextile",para:"p",pre:"pre",table:"table",tableCellAttributes:/[\/\\]\d+/,tableHeading:/\|_\./,tableText:/[^"_\*\[\(\?\+~\^%@|-]+/,text:/[^!"_=\*\[\(<\?\+~\^%@-]+/},attributes:{align:/(?:<>|<|>|=)/,selector:/\([^\(][^\)]+\)/,lang:/\[[^\[\]]+\]/,pad:/(?:\(+|\)+){1,2}/,css:/\{[^\}]+\}/},createRe:function(e){switch(e){case"drawTable":return xsr.makeRe("^",xsr.single.drawTable,"$");case"html":return xsr.makeRe("^",xsr.single.html,"(?:",xsr.single.html,")*","$");case"linkDefinition":return xsr.makeRe("^",xsr.single.linkDefinition,"$");case"listLayout":return xsr.makeRe("^",xsr.single.list,wsr("allAttributes"),"*\\s+");case"tableCellAttributes":return xsr.makeRe("^",xsr.choiceRe(xsr.single.tableCellAttributes,wsr("allAttributes")),"+\\.");case"type":return xsr.makeRe("^",wsr("allTypes"));case"typeLayout":return xsr.makeRe("^",wsr("allTypes"),wsr("allAttributes"),"*\\.\\.?","(\\s+|$)");case"attributes":return xsr.makeRe("^",wsr("allAttributes"),"+");case"allTypes":return xsr.choiceRe(xsr.single.div,xsr.single.foot,xsr.single.header,xsr.single.bc,xsr.single.bq,xsr.single.notextile,xsr.single.pre,xsr.single.table,xsr.single.para);case"allAttributes":return xsr.choiceRe(xsr.attributes.selector,xsr.attributes.css,xsr.attributes.lang,xsr.attributes.align,xsr.attributes.pad);default:return xsr.makeRe("^",xsr.single[e])}},makeRe:function(){for(var e="",t=0;t<arguments.length;++t){var n=arguments[t];e+="string"==typeof n?n:n.source}return new RegExp(e)},choiceRe:function(){for(var e=[arguments[0]],t=1;t<arguments.length;++t)e[2*t-1]="|",e[2*t]=arguments[t];return e.unshift("(?:"),e.push(")"),xsr.makeRe.apply(null,e)}};function wsr(e){return xsr.cache[e]||(xsr.cache[e]=xsr.createRe(e))}var ksr={newLayout:function(e,t){return e.match(wsr("typeLayout"),!1)?(t.spanningLayout=!1,(t.mode=ksr.blockType)(e,t)):(bsr(t)||(e.match(wsr("listLayout"),!1)?n=ksr.list:e.match(wsr("drawTable"),!1)?n=ksr.table:e.match(wsr("linkDefinition"),!1)?n=ksr.linkDefinition:e.match(wsr("definitionList"))?n=ksr.definitionList:e.match(wsr("html"),!1)&&(n=ksr.html)),(t.mode=n||ksr.text)(e,t));var n},blockType:function(e,t){var n,r;return t.layoutType=null,(n=e.match(wsr("type")))?((n=(r=n[0]).match(wsr("header")))?(t.layoutType="header",t.header=parseInt(n[0][1])):r.match(wsr("bq"))?t.layoutType="quote":r.match(wsr("bc"))?t.layoutType="code":r.match(wsr("foot"))?t.layoutType="footnote":r.match(wsr("notextile"))?t.layoutType="notextile":r.match(wsr("pre"))?t.layoutType="pre":r.match(wsr("div"))?t.layoutType="div":r.match(wsr("table"))&&(t.layoutType="table"),t.mode=ksr.attributes,vsr(t)):(t.mode=ksr.text)(e,t)},text:function(e,t){if(e.match(wsr("text")))return vsr(t);var n=e.next();return'"'===n?(t.mode=ksr.link)(e,t):Asr(e,t,n)},attributes:function(e,t){return t.mode=ksr.layoutLength,e.match(wsr("attributes"))?Osr.attributes:vsr(t)},layoutLength:function(e,t){return e.eat(".")&&e.eat(".")&&(t.spanningLayout=!0),t.mode=ksr.text,vsr(t)},list:function(e,t){var n=e.match(wsr("list"));t.listDepth=n[0].length;var r=(t.listDepth-1)%3;return t.layoutType=r?1===r?"list2":"list3":"list1",t.mode=ksr.attributes,vsr(t)},link:function(e,t){return t.mode=ksr.text,e.match(wsr("link"))?(e.match(/\S+/),Osr.link):vsr(t)},linkDefinition:function(e){return e.skipToEnd(),Osr.linkDefinition},definitionList:function(e,t){return e.match(wsr("definitionList")),t.layoutType="definitionList",e.match(/\s*$/)?t.spanningLayout=!0:t.mode=ksr.attributes,vsr(t)},html:function(e){return e.skipToEnd(),Osr.html},table:function(e,t){return t.layoutType="table",(t.mode=ksr.tableCell)(e,t)},tableCell:function(e,t){return e.match(wsr("tableHeading"))?t.tableHeading=!0:e.eat("|"),t.mode=ksr.tableCellAttributes,vsr(t)},tableCellAttributes:function(e,t){return t.mode=ksr.tableText,e.match(wsr("tableCellAttributes"))?Osr.attributes:vsr(t)},tableText:function(e,t){return e.match(wsr("tableText"))?vsr(t):"|"===e.peek()?(t.mode=ksr.tableCell,vsr(t)):Asr(e,t,e.next())}};const Ssr={name:"textile",startState:function(){return{mode:ksr.newLayout}},token:function(e,t){return e.sol()&&function(e,t){t.mode=ksr.newLayout,t.tableHeading=!1,"definitionList"===t.layoutType&&t.spanningLayout&&e.match(wsr("definitionListEnd"),!1)&&(t.spanningLayout=!1)}(e,t),t.mode(e,t)},blankLine:function(e){var t=e.spanningLayout,n=e.layoutType;for(var r in e)e.hasOwnProperty(r)&&delete e[r];e.mode=ksr.newLayout,t&&(e.layoutType=n,e.spanningLayout=!0)}},Tsr=Object.freeze(Object.defineProperty({__proto__:null,textile:Ssr},Symbol.toStringTag,{value:"Module"}));var $sr={},_sr={allTags:!0,closeAll:!0,list:!0,newJournal:!0,newTiddler:!0,permaview:!0,saveChanges:!0,search:!0,slider:!0,tabs:!0,tag:!0,tagging:!0,tags:!0,tiddler:!0,timeline:!0,today:!0,version:!0,option:!0,with:!0,filter:!0},Csr=/[\w_\-]/i,Qsr=/^\-\-\-\-+$/,Psr=/^\/\*\*\*$/,Esr=/^\*\*\*\/$/,Rsr=/^<<<$/,Bsr=/^\/\/\{\{\{$/,Isr=/^\/\/\}\}\}$/,Lsr=/^<!--\{\{\{-->$/,Dsr=/^<!--\}\}\}-->$/,Msr=/^\{\{\{$/,Nsr=/^\}\}\}$/,Xsr=/.*?\}\}\}/;function Fsr(e,t,n){return t.tokenize=n,n(e,t)}function Usr(e,t){var n=e.sol(),r=e.peek();if(t.block=!1,n&&/[<\/\*{}\-]/.test(r)){if(e.match(Msr))return t.block=!0,Fsr(e,t,Vsr);if(e.match(Rsr))return"quote";if(e.match(Psr)||e.match(Esr))return"comment";if(e.match(Bsr)||e.match(Isr)||e.match(Lsr)||e.match(Dsr))return"comment";if(e.match(Qsr))return"contentSeparator"}if(e.next(),n&&/[\/\*!#;:>|]/.test(r)){if("!"==r)return e.skipToEnd(),"header";if("*"==r)return e.eatWhile("*"),"comment";if("#"==r)return e.eatWhile("#"),"comment";if(";"==r)return e.eatWhile(";"),"comment";if(":"==r)return e.eatWhile(":"),"comment";if(">"==r)return e.eatWhile(">"),"quote";if("|"==r)return"header"}if("{"==r&&e.match("{{"))return Fsr(e,t,Vsr);if(/[hf]/i.test(r)&&/[ti]/i.test(e.peek())&&e.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i))return"link";if('"'==r)return"string";if("~"==r)return"brace";if(/[\[\]]/.test(r)&&e.match(r))return"brace";if("@"==r)return e.eatWhile(Csr),"link";if(/\d/.test(r))return e.eatWhile(/\d/),"number";if("/"==r){if(e.eat("%"))return Fsr(e,t,zsr);if(e.eat("/"))return Fsr(e,t,Wsr)}if("_"==r&&e.eat("_"))return Fsr(e,t,jsr);if("-"==r&&e.eat("-")){if(" "!=e.peek())return Fsr(e,t,Ysr);if(" "==e.peek())return"brace"}return"'"==r&&e.eat("'")?Fsr(e,t,qsr):"<"==r&&e.eat("<")?Fsr(e,t,Zsr):(e.eatWhile(/[\w\$_]/),$sr.propertyIsEnumerable(e.current())?"keyword":null)}function zsr(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=Usr;break}r="%"==n}return"comment"}function qsr(e,t){for(var n,r=!1;n=e.next();){if("'"==n&&r){t.tokenize=Usr;break}r="'"==n}return"strong"}function Vsr(e,t){var n=t.block;return n&&e.current()?"comment":!n&&e.match(Xsr)||n&&e.sol()&&e.match(Nsr)?(t.tokenize=Usr,"comment"):(e.next(),"comment")}function Wsr(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=Usr;break}r="/"==n}return"emphasis"}function jsr(e,t){for(var n,r=!1;n=e.next();){if("_"==n&&r){t.tokenize=Usr;break}r="_"==n}return"link"}function Ysr(e,t){for(var n,r=!1;n=e.next();){if("-"==n&&r){t.tokenize=Usr;break}r="-"==n}return"deleted"}function Zsr(e,t){if("<<"==e.current())return"meta";var n=e.next();return n?">"==n&&">"==e.peek()?(e.next(),t.tokenize=Usr,"meta"):(e.eatWhile(/[\w\$_]/),_sr.propertyIsEnumerable(e.current())?"keyword":null):(t.tokenize=Usr,null)}const Gsr={name:"tiddlywiki",startState:function(){return{tokenize:Usr}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}},Hsr=Object.freeze(Object.defineProperty({__proto__:null,tiddlyWiki:Gsr},Symbol.toStringTag,{value:"Module"}));function Ksr(e,t,n){return function(r,i){for(;!r.eol();){if(r.match(t)){i.tokenize=elr;break}r.next()}return n&&(i.tokenize=n),e}}function Jsr(e){return function(t,n){for(;!t.eol();)t.next();return n.tokenize=elr,e}}function elr(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.sol(),i=e.next();switch(i){case"{":return e.eat("/"),e.eatSpace(),e.eatWhile(/[^\s\u00a0=\"\'\/?(}]/),t.tokenize=olr,"tag";case"_":if(e.eat("_"))return n(Ksr("strong","__",elr));break;case"'":if(e.eat("'"))return n(Ksr("em","''",elr));break;case"(":if(e.eat("("))return n(Ksr("link","))",elr));break;case"[":return n(Ksr("url","]",elr));case"|":if(e.eat("|"))return n(Ksr("comment","||"));break;case"-":if(e.eat("="))return n(Ksr("header string","=-",elr));if(e.eat("-"))return n(Ksr("error tw-deleted","--",elr));break;case"=":if(e.match("=="))return n(Ksr("tw-underline","===",elr));break;case":":if(e.eat(":"))return n(Ksr("comment","::"));break;case"^":return n(Ksr("tw-box","^"));case"~":if(e.match("np~"))return n(Ksr("meta","~/np~"))}if(r)switch(i){case"!":return e.match("!!!!!")||e.match("!!!!")||e.match("!!!")||e.match("!!"),n(Jsr("header string"));case"*":case"#":case"+":return n(Jsr("tw-listitem bracket"))}return null}var tlr,nlr,rlr,ilr;function olr(e,t){var n,r=e.next(),i=e.peek();return"}"==r?(t.tokenize=elr,"tag"):"("==r||")"==r?"bracket":"="==r?(nlr="equals",">"==i&&(e.next(),i=e.peek()),/[\'\"]/.test(i)||(t.tokenize=function(e,t){for(;!e.eol();){var n=e.next(),r=e.peek();if(" "==n||","==n||/[ )}]/.test(r)){t.tokenize=olr;break}}return"string"}),"operator"):/[\'\"]/.test(r)?(t.tokenize=(n=r,function(e,t){for(;!e.eol();)if(e.next()==n){t.tokenize=olr;break}return"string"}),t.tokenize(e,t)):(e.eatWhile(/[^\s\u00a0=\"\'\/?]/),"keyword")}function alr(){for(var e=arguments.length-1;e>=0;e--)rlr.cc.push(arguments[e])}function slr(){return alr.apply(null,arguments),!0}function llr(e,t){var n=rlr.context&&rlr.context.noIndent;rlr.context={prev:rlr.context,pluginName:e,indent:rlr.indented,startOfLine:t,noIndent:n}}function clr(){rlr.context&&(rlr.context=rlr.context.prev)}function ulr(e){if("openPlugin"==e)return rlr.pluginName=tlr,slr(hlr,(n=rlr.startOfLine,function(e){return"selfclosePlugin"==e||"endPlugin"==e?slr():"endPlugin"==e?(llr(rlr.pluginName,n),slr()):slr()}));if("closePlugin"==e){var t=!1;return rlr.context?(t=rlr.context.pluginName!=tlr,clr()):t=!0,t&&(ilr="error"),slr(function(e){return function(t){return e&&(ilr="error"),"endPlugin"==t?slr():alr()}}(t))}return"string"==e?(rlr.context&&"!cdata"==rlr.context.name||llr("!cdata"),rlr.tokenize==elr&&clr(),slr()):slr();var n}function hlr(e){return"keyword"==e?(ilr="attribute",slr(hlr)):"equals"==e?slr(dlr,hlr):alr()}function dlr(e){return"keyword"==e?(ilr="string",slr()):"string"==e?slr(plr):alr()}function plr(e){return"string"==e?slr(plr):alr()}const flr={name:"tiki",startState:function(){return{tokenize:elr,cc:[],indented:0,startOfLine:!0,pluginName:null,context:null}},token:function(e,t){if(e.sol()&&(t.startOfLine=!0,t.indented=e.indentation()),e.eatSpace())return null;ilr=nlr=tlr=null;var n=t.tokenize(e,t);if((n||nlr)&&"comment"!=n)for(rlr=t;;){if((t.cc.pop()||ulr)(nlr||n))break}return t.startOfLine=!1,ilr||n},indent:function(e,t,n){var r=e.context;if(r&&r.noIndent)return 0;for(r&&/^{\//.test(t)&&(r=r.prev);r&&!r.startOfLine;)r=r.prev;return r?r.indent+n.unit:0}},glr=Object.freeze(Object.defineProperty({__proto__:null,tiki:flr},Symbol.toStringTag,{value:"Module"})),mlr=Object.freeze(Object.defineProperty({__proto__:null,toml:{name:"toml",startState:function(){return{inString:!1,stringType:"",lhs:!0,inArray:0}},token:function(e,t){let n;if(!t.inString&&(n=e.match(/^('''|"""|'|")/))&&(t.stringType=n[0],t.inString=!0),e.sol()&&!t.inString&&0===t.inArray&&(t.lhs=!0),t.inString){for(;t.inString;)if(e.match(t.stringType))t.inString=!1;else if("\\"===e.peek())e.next(),e.next();else{if(e.eol())break;e.match(/^.[^\\\"\']*/)}return t.lhs?"property":"string"}return t.inArray&&"]"===e.peek()?(e.next(),t.inArray--,"bracket"):t.lhs&&"["===e.peek()&&e.skipTo("]")?(e.next(),"]"===e.peek()&&e.next(),"atom"):"#"===e.peek()?(e.skipToEnd(),"comment"):e.eatSpace()?null:t.lhs&&e.eatWhile(function(e){return"="!=e&&" "!=e})?"property":t.lhs&&"="===e.peek()?(e.next(),t.lhs=!1,null):!t.lhs&&e.match(/^\d\d\d\d[\d\-\:\.T]*Z/)?"atom":t.lhs||!e.match("true")&&!e.match("false")?t.lhs||"["!==e.peek()?!t.lhs&&e.match(/^\-?\d+(?:\.\d+)?/)?"number":(e.eatSpace()||e.next(),null):(t.inArray++,e.next(),"bracket"):"atom"},languageData:{commentTokens:{line:"#"}}}},Symbol.toStringTag,{value:"Module"}));var Olr={};function Alr(e){if(e.eatSpace())return null;var t=e.sol(),n=e.next();if("\\"===n)return e.match("fB")||e.match("fR")||e.match("fI")||e.match("u")||e.match("d")||e.match("%")||e.match("&")?"string":e.match("m[")?(e.skipTo("]"),e.next(),"string"):e.match("s+")||e.match("s-")?(e.eatWhile(/[\d-]/),"string"):e.match("(")||e.match("*(")?(e.eatWhile(/[\w-]/),"string"):"string";if(t&&("."===n||"'"===n)&&e.eat("\\")&&e.eat('"'))return e.skipToEnd(),"comment";if(t&&"."===n){if(e.match("B ")||e.match("I ")||e.match("R "))return"attribute";if(e.match("TH ")||e.match("SH ")||e.match("SS ")||e.match("HP "))return e.skipToEnd(),"quote";if(e.match(/[A-Z]/)&&e.match(/[A-Z]/)||e.match(/[a-z]/)&&e.match(/[a-z]/))return"attribute"}e.eatWhile(/[\w-]/);var r=e.current();return Olr.hasOwnProperty(r)?Olr[r]:null}function ylr(e,t){return(t.tokens[0]||Alr)(e,t)}const vlr={name:"troff",startState:function(){return{tokens:[]}},token:function(e,t){return ylr(e,t)}},blr=Object.freeze(Object.defineProperty({__proto__:null,troff:vlr},Symbol.toStringTag,{value:"Module"}));function xlr(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}const wlr={keywords:xlr("activate address alive all alt altstep and and4b any break case component const continue control deactivate display do else encode enumerated except exception execute extends extension external for from function goto group if import in infinity inout interleave label language length log match message mixed mod modifies module modulepar mtc noblock not not4b nowait of on optional or or4b out override param pattern port procedure record recursive rem repeat return runs select self sender set signature system template testcase to type union value valueof var variant while with xor xor4b"),builtin:xlr("bit2hex bit2int bit2oct bit2str char2int char2oct encvalue decomp decvalue float2int float2str hex2bit hex2int hex2oct hex2str int2bit int2char int2float int2hex int2oct int2str int2unichar isbound ischosen ispresent isvalue lengthof log2str oct2bit oct2char oct2hex oct2int oct2str regexp replace rnd sizeof str2bit str2float str2hex str2int str2oct substr unichar2int unichar2char enum2int"),types:xlr("anytype bitstring boolean char charstring default float hexstring integer objid octetstring universal verdicttype timer"),timerOps:xlr("read running start stop timeout"),portOps:xlr("call catch check clear getcall getreply halt raise receive reply send trigger"),configOps:xlr("create connect disconnect done kill killed map unmap"),verdictOps:xlr("getverdict setverdict"),sutOps:xlr("action"),functionOps:xlr("apply derefers refers"),verdictConsts:xlr("error fail inconc none pass"),booleanConsts:xlr("true false"),otherConsts:xlr("null NULL omit"),visibilityModifiers:xlr("private public friend"),templateMatch:xlr("complement ifpresent subset superset permutation")};var klr=[];function Slr(e){if(e)for(var t in e)e.hasOwnProperty(t)&&klr.push(t)}Slr(wlr.keywords),Slr(wlr.builtin),Slr(wlr.timerOps),Slr(wlr.portOps);var Tlr,$lr=wlr.keywords||{},_lr=wlr.builtin||{},Clr=wlr.timerOps||{},Qlr=wlr.portOps||{},Plr=wlr.configOps||{},Elr=wlr.verdictOps||{},Rlr=wlr.sutOps||{},Blr=wlr.functionOps||{},Ilr=wlr.verdictConsts||{},Llr=wlr.booleanConsts||{},Dlr=wlr.otherConsts||{},Mlr=wlr.types||{},Nlr=wlr.visibilityModifiers||{},Xlr=wlr.templateMatch||{},Flr=!1!==wlr.indentStatements,Ulr=/[+\-*&@=<>!\/]/;function zlr(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){var a=e.peek();a&&("b"!=(a=a.toLowerCase())&&"h"!=a&&"o"!=a||e.next()),o=!0;break}i=!i&&"\\"==r}return o&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]{}\(\),;\\:\?\.]/.test(r))return Tlr=r,"punctuation";if("#"==r)return e.skipToEnd(),"atom";if("%"==r)return e.eatWhile(/\b/),"atom";if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if("/"==r){if(e.eat("*"))return t.tokenize=qlr,qlr(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(Ulr.test(r))return"@"==r&&(e.match("try")||e.match("catch")||e.match("lazy"))?"keyword":(e.eatWhile(Ulr),"operator");e.eatWhile(/[\w\$_\xa1-\uffff]/);var i=e.current();return $lr.propertyIsEnumerable(i)?"keyword":_lr.propertyIsEnumerable(i)?"builtin":Clr.propertyIsEnumerable(i)||Plr.propertyIsEnumerable(i)||Elr.propertyIsEnumerable(i)||Qlr.propertyIsEnumerable(i)||Rlr.propertyIsEnumerable(i)||Blr.propertyIsEnumerable(i)?"def":Ilr.propertyIsEnumerable(i)||Llr.propertyIsEnumerable(i)||Dlr.propertyIsEnumerable(i)?"string":Mlr.propertyIsEnumerable(i)?"typeName.standard":Nlr.propertyIsEnumerable(i)?"modifier":Xlr.propertyIsEnumerable(i)?"atom":"variable"}function qlr(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function Vlr(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function Wlr(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new Vlr(r,t,n,null,e.context)}function jlr(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}const Ylr={name:"ttcn",startState:function(){return{tokenize:null,context:new Vlr(0,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;Tlr=null;var r=(t.tokenize||zlr)(e,t);if("comment"==r)return r;if(null==n.align&&(n.align=!0),";"!=Tlr&&":"!=Tlr&&","!=Tlr||"statement"!=n.type)if("{"==Tlr)Wlr(t,e.column(),"}");else if("["==Tlr)Wlr(t,e.column(),"]");else if("("==Tlr)Wlr(t,e.column(),")");else if("}"==Tlr){for(;"statement"==n.type;)n=jlr(t);for("}"==n.type&&(n=jlr(t));"statement"==n.type;)n=jlr(t)}else Tlr==n.type?jlr(t):Flr&&(("}"==n.type||"top"==n.type)&&";"!=Tlr||"statement"==n.type&&"newstatement"==Tlr)&&Wlr(t,e.column(),"statement");else jlr(t);return t.startOfLine=!1,r},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:klr}},Zlr=Object.freeze(Object.defineProperty({__proto__:null,ttcn:Ylr},Symbol.toStringTag,{value:"Module"}));function Glr(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}const Hlr={keywords:Glr("Yes No LogFile FileMask ConsoleMask AppendFile TimeStampFormat LogEventTypes SourceInfoFormat LogEntityName LogSourceInfo DiskFullAction LogFileNumber LogFileSize MatchingHints Detailed Compact SubCategories Stack Single None Seconds DateTime Time Stop Error Retry Delete TCPPort KillTimer NumHCs UnixSocketsEnabled LocalAddress"),fileNCtrlMaskOptions:Glr("TTCN_EXECUTOR TTCN_ERROR TTCN_WARNING TTCN_PORTEVENT TTCN_TIMEROP TTCN_VERDICTOP TTCN_DEFAULTOP TTCN_TESTCASE TTCN_ACTION TTCN_USER TTCN_FUNCTION TTCN_STATISTICS TTCN_PARALLEL TTCN_MATCHING TTCN_DEBUG EXECUTOR ERROR WARNING PORTEVENT TIMEROP VERDICTOP DEFAULTOP TESTCASE ACTION USER FUNCTION STATISTICS PARALLEL MATCHING DEBUG LOG_ALL LOG_NOTHING ACTION_UNQUALIFIED DEBUG_ENCDEC DEBUG_TESTPORT DEBUG_UNQUALIFIED DEFAULTOP_ACTIVATE DEFAULTOP_DEACTIVATE DEFAULTOP_EXIT DEFAULTOP_UNQUALIFIED ERROR_UNQUALIFIED EXECUTOR_COMPONENT EXECUTOR_CONFIGDATA EXECUTOR_EXTCOMMAND EXECUTOR_LOGOPTIONS EXECUTOR_RUNTIME EXECUTOR_UNQUALIFIED FUNCTION_RND FUNCTION_UNQUALIFIED MATCHING_DONE MATCHING_MCSUCCESS MATCHING_MCUNSUCC MATCHING_MMSUCCESS MATCHING_MMUNSUCC MATCHING_PCSUCCESS MATCHING_PCUNSUCC MATCHING_PMSUCCESS MATCHING_PMUNSUCC MATCHING_PROBLEM MATCHING_TIMEOUT MATCHING_UNQUALIFIED PARALLEL_PORTCONN PARALLEL_PORTMAP PARALLEL_PTC PARALLEL_UNQUALIFIED PORTEVENT_DUALRECV PORTEVENT_DUALSEND PORTEVENT_MCRECV PORTEVENT_MCSEND PORTEVENT_MMRECV PORTEVENT_MMSEND PORTEVENT_MQUEUE PORTEVENT_PCIN PORTEVENT_PCOUT PORTEVENT_PMIN PORTEVENT_PMOUT PORTEVENT_PQUEUE PORTEVENT_STATE PORTEVENT_UNQUALIFIED STATISTICS_UNQUALIFIED STATISTICS_VERDICT TESTCASE_FINISH TESTCASE_START TESTCASE_UNQUALIFIED TIMEROP_GUARD TIMEROP_READ TIMEROP_START TIMEROP_STOP TIMEROP_TIMEOUT TIMEROP_UNQUALIFIED USER_UNQUALIFIED VERDICTOP_FINAL VERDICTOP_GETVERDICT VERDICTOP_SETVERDICT VERDICTOP_UNQUALIFIED WARNING_UNQUALIFIED"),externalCommands:Glr("BeginControlPart EndControlPart BeginTestCase EndTestCase")};var Klr,Jlr=Hlr.keywords,ecr=Hlr.fileNCtrlMaskOptions,tcr=Hlr.externalCommands,ncr=!1!==Hlr.indentStatements,rcr=/[\|]/;function icr(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){var a=e.peek();a&&("b"!=(a=a.toLowerCase())&&"h"!=a&&"o"!=a||e.next()),o=!0;break}i=!i&&"\\"==r}return o&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[:=]/.test(r))return Klr=r,"punctuation";if("#"==r)return e.skipToEnd(),"comment";if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if(rcr.test(r))return e.eatWhile(rcr),"operator";if("["==r)return e.eatWhile(/[\w_\]]/),"number";e.eatWhile(/[\w\$_]/);var i=e.current();return Jlr.propertyIsEnumerable(i)?"keyword":ecr.propertyIsEnumerable(i)?"atom":tcr.propertyIsEnumerable(i)?"deleted":"variable"}function ocr(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function acr(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new ocr(r,t,n,null,e.context)}function scr(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}const lcr={name:"ttcn",startState:function(){return{tokenize:null,context:new ocr(0,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;Klr=null;var r=(t.tokenize||icr)(e,t);if("comment"==r)return r;if(null==n.align&&(n.align=!0),";"!=Klr&&":"!=Klr&&","!=Klr||"statement"!=n.type)if("{"==Klr)acr(t,e.column(),"}");else if("["==Klr)acr(t,e.column(),"]");else if("("==Klr)acr(t,e.column(),")");else if("}"==Klr){for(;"statement"==n.type;)n=scr(t);for("}"==n.type&&(n=scr(t));"statement"==n.type;)n=scr(t)}else Klr==n.type?scr(t):ncr&&(("}"==n.type||"top"==n.type)&&";"!=Klr||"statement"==n.type&&"newstatement"==Klr)&&acr(t,e.column(),"statement");else scr(t);return t.startOfLine=!1,r},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"#"}}},ccr=Object.freeze(Object.defineProperty({__proto__:null,ttcnCfg:lcr},Symbol.toStringTag,{value:"Module"}));var ucr;function hcr(e){return new RegExp("^(?:"+e.join("|")+")$","i")}hcr([]);var dcr=hcr(["@prefix","@base","a"]),pcr=/[*+\-<>=&|]/;function fcr(e,t){var n,r=e.next();if(ucr=null,"<"!=r||e.match(/^[\s\u00a0=]/,!1)){if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1;null!=(r=e.next());){if(r==n&&!i){t.tokenize=fcr;break}i=!i&&"\\"==r}return"string"}),t.tokenize(e,t);if(/[{}\(\),\.;\[\]]/.test(r))return ucr=r,null;if("#"==r)return e.skipToEnd(),"comment";if(pcr.test(r))return e.eatWhile(pcr),null;if(":"==r)return"operator";if(e.eatWhile(/[_\w\d]/),":"==e.peek())return"variableName.special";var i=e.current();return dcr.test(i)?"meta":r>="A"&&r<="Z"?"comment":"keyword"}return e.match(/^[^\s\u00a0>]*>?/),"atom"}function gcr(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function mcr(e){e.indent=e.context.indent,e.context=e.context.prev}const Ocr={name:"turtle",startState:function(){return{tokenize:fcr,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()&&(t.context&&null==t.context.align&&(t.context.align=!1),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"!=n&&t.context&&null==t.context.align&&"pattern"!=t.context.type&&(t.context.align=!0),"("==ucr)gcr(t,")",e.column());else if("["==ucr)gcr(t,"]",e.column());else if("{"==ucr)gcr(t,"}",e.column());else if(/[\]\}\)]/.test(ucr)){for(;t.context&&"pattern"==t.context.type;)mcr(t);t.context&&ucr==t.context.type&&mcr(t)}else"."==ucr&&t.context&&"pattern"==t.context.type?mcr(t):/atom|string|variable/.test(n)&&t.context&&(/[\}\]]/.test(t.context.type)?gcr(t,"pattern",e.column()):"pattern"!=t.context.type||t.context.align||(t.context.align=!0,t.context.col=e.column()));return n},indent:function(e,t,n){var r=t&&t.charAt(0),i=e.context;if(/[\]\}]/.test(r))for(;i&&"pattern"==i.type;)i=i.prev;var o=i&&r==i.type;return i?"pattern"==i.type?i.col:i.align?i.col+(o?0:1):i.indent+(o?0:n.unit):0},languageData:{commentTokens:{line:"#"}}},Acr=Object.freeze(Object.defineProperty({__proto__:null,turtle:Ocr},Symbol.toStringTag,{value:"Module"}));function ycr(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var vcr=["Clamp","Constructor","EnforceRange","Exposed","ImplicitThis","Global","PrimaryGlobal","LegacyArrayClass","LegacyUnenumerableNamedProperties","LenientThis","NamedConstructor","NewObject","NoInterfaceObject","OverrideBuiltins","PutForwards","Replaceable","SameObject","TreatNonObjectAsNull","TreatNullAs","EmptyString","Unforgeable","Unscopeable"],bcr=ycr(vcr),xcr=["unsigned","short","long","unrestricted","float","double","boolean","byte","octet","Promise","ArrayBuffer","DataView","Int8Array","Int16Array","Int32Array","Uint8Array","Uint16Array","Uint32Array","Uint8ClampedArray","Float32Array","Float64Array","ByteString","DOMString","USVString","sequence","object","RegExp","Error","DOMException","FrozenArray","any","void"],wcr=ycr(xcr),kcr=["attribute","callback","const","deleter","dictionary","enum","getter","implements","inherit","interface","iterable","legacycaller","maplike","partial","required","serializer","setlike","setter","static","stringifier","typedef","optional","readonly","or"],Scr=ycr(kcr),Tcr=["true","false","Infinity","NaN","null"],$cr=ycr(Tcr),_cr=ycr(["callback","dictionary","enum","interface"]),Ccr=ycr(["typedef"]),Qcr=/^[:<=>?]/,Pcr=/^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/,Ecr=/^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/,Rcr=/^_?[A-Za-z][0-9A-Z_a-z-]*/,Bcr=/^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/,Icr=/^"[^"]*"/,Lcr=/^\/\*.*?\*\//,Dcr=/^\/\*.*/,Mcr=/^.*?\*\//;const Ncr={name:"webidl",startState:function(){return{inComment:!1,lastToken:"",startDef:!1,endDef:!1}},token:function(e,t){var n=function(e,t){if(e.eatSpace())return null;if(t.inComment)return e.match(Mcr)?(t.inComment=!1,"comment"):(e.skipToEnd(),"comment");if(e.match("//"))return e.skipToEnd(),"comment";if(e.match(Lcr))return"comment";if(e.match(Dcr))return t.inComment=!0,"comment";if(e.match(/^-?[0-9\.]/,!1)&&(e.match(Pcr)||e.match(Ecr)))return"number";if(e.match(Icr))return"string";if(t.startDef&&e.match(Rcr))return"def";if(t.endDef&&e.match(Bcr))return t.endDef=!1,"def";if(e.match(Scr))return"keyword";if(e.match(wcr)){var n=t.lastToken,r=(e.match(/^\s*(.+?)\b/,!1)||[])[1];return":"===n||"implements"===n||"implements"===r||"="===r?"builtin":"type"}return e.match(bcr)?"builtin":e.match($cr)?"atom":e.match(Rcr)?"variable":e.match(Qcr)?"operator":(e.next(),null)}(e,t);if(n){var r=e.current();t.lastToken=r,"keyword"===n?(t.startDef=_cr.test(r),t.endDef=t.endDef||Ccr.test(r)):t.startDef=!1}return n},languageData:{autocomplete:vcr.concat(xcr).concat(kcr).concat(Tcr)}},Xcr=Object.freeze(Object.defineProperty({__proto__:null,webIDL:Ncr},Symbol.toStringTag,{value:"Module"}));var Fcr="error";function Ucr(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var zcr=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),qcr=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),Vcr=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),Wcr=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),jcr=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),Ycr=new RegExp("^[_A-Za-z][_A-Za-z0-9]*"),Zcr=["class","module","sub","enum","select","while","if","function","get","set","property","try","structure","synclock","using","with"],Gcr=["else","elseif","case","catch","finally"],Hcr=["next","loop"],Kcr=["and","andalso","or","orelse","xor","in","not","is","isnot","like"],Jcr=Ucr(Kcr),eur=["#const","#else","#elseif","#end","#if","#region","addhandler","addressof","alias","as","byref","byval","cbool","cbyte","cchar","cdate","cdbl","cdec","cint","clng","cobj","compare","const","continue","csbyte","cshort","csng","cstr","cuint","culng","cushort","declare","default","delegate","dim","directcast","each","erase","error","event","exit","explicit","false","for","friend","gettype","goto","handles","implements","imports","infer","inherits","interface","isfalse","istrue","lib","me","mod","mustinherit","mustoverride","my","mybase","myclass","namespace","narrowing","new","nothing","notinheritable","notoverridable","of","off","on","operator","option","optional","out","overloads","overridable","overrides","paramarray","partial","private","protected","public","raiseevent","readonly","redim","removehandler","resume","return","shadows","shared","static","step","stop","strict","then","throw","to","true","trycast","typeof","until","until","when","widening","withevents","writeonly"],tur=["object","boolean","char","string","byte","sbyte","short","ushort","int16","uint16","integer","uinteger","int32","uint32","long","ulong","int64","uint64","decimal","single","double","float","date","datetime","intptr","uintptr"],nur=Ucr(eur),rur=Ucr(tur),iur=Ucr(Zcr),our=Ucr(Gcr),aur=Ucr(Hcr),sur=Ucr(["end"]),lur=Ucr(["do"]);function cur(e,t){t.currentIndent++}function uur(e,t){t.currentIndent--}function hur(e,t){if(e.eatSpace())return null;var n,r,i;if("'"===e.peek())return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var o=!1;if((e.match(/^\d*\.\d+F?/i)||e.match(/^\d+\.\d*F?/)||e.match(/^\.\d+F?/))&&(o=!0),o)return e.eat(/J/i),"number";var a=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?a=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),a=!0):e.match(/^0(?![\dx])/i)&&(a=!0),a)return e.eat(/L/i),"number"}return e.match('"')?(t.tokenize=(n=e.current(),r=1==n.length,i="string",function(e,t){for(;!e.eol();){if(e.eatWhile(/[^'"]/),e.match(n))return t.tokenize=hur,i;e.eat(/['"]/)}return r&&(t.tokenize=hur),i}),t.tokenize(e,t)):e.match(jcr)||e.match(Wcr)?null:e.match(Vcr)||e.match(zcr)||e.match(Jcr)?"operator":e.match(qcr)?null:e.match(lur)?(cur(0,t),t.doInCurrentLine=!0,"keyword"):e.match(iur)?(t.doInCurrentLine?t.doInCurrentLine=!1:cur(0,t),"keyword"):e.match(our)?"keyword":e.match(sur)?(uur(0,t),uur(0,t),"keyword"):e.match(aur)?(uur(0,t),"keyword"):e.match(rur)||e.match(nur)?"keyword":e.match(Ycr)?"variable":(e.next(),Fcr)}const dur={name:"vb",startState:function(){return{tokenize:hur,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1}},token:function(e,t){e.sol()&&(t.currentIndent+=t.nextLineIndent,t.nextLineIndent=0,t.doInCurrentLine=0);var n=function(e,t){var n=t.tokenize(e,t),r=e.current();if("."===r)return"variable"===(n=t.tokenize(e,t))?"variable":Fcr;var i="[({".indexOf(r);return-1!==i&&cur(0,t),-1!==(i="])}".indexOf(r))&&uur(0,t)?Fcr:n}(e,t);return t.lastToken={style:n,content:e.current()},n},indent:function(e,t,n){var r=t.replace(/^\s+|\s+$/g,"");return r.match(aur)||r.match(sur)||r.match(our)?n.unit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*n.unit},languageData:{closeBrackets:{brackets:["(","[","{",'"']},commentTokens:{line:"'"},autocomplete:Zcr.concat(Gcr).concat(Hcr).concat(Kcr).concat(eur).concat(tur)}},pur=Object.freeze(Object.defineProperty({__proto__:null,vb:dur},Symbol.toStringTag,{value:"Module"}));function fur(e){var t="error";function n(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var r=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"),i=new RegExp("^((<>)|(<=)|(>=))"),o=new RegExp("^[\\.,]"),a=new RegExp("^[\\(\\)]"),s=new RegExp("^[A-Za-z][_A-Za-z0-9]*"),l=n(["and","or","not","xor","is","mod","eqv","imp"]),c=["WScript","err","debug","RegExp"],u=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"].concat(["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"]);c=c.concat(["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"]),e.isASP&&(c=c.concat(["server","response","request","session","application"]),u=u.concat(["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"]));var h=n(["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"]),d=n(["true","false","nothing","empty","null"]),p=n(["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"]),f=n(c),g=n(u),m=n(["class","sub","select","while","if","function","property","with","for"]),O=n(["else","elseif","case"]),A=n(["next","loop","wend"]),y=n(["end"]),v=n(["do"]),b=n(["on error resume next","exit"]),x=n(["rem"]);function w(e,t){t.currentIndent++}function k(e,t){t.currentIndent--}function S(e,n){if(e.eatSpace())return null;var c,u,T;if("'"===e.peek())return e.skipToEnd(),"comment";if(e.match(x))return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var $=!1;if((e.match(/^\d*\.\d+/i)||e.match(/^\d+\.\d*/)||e.match(/^\.\d+/))&&($=!0),$)return e.eat(/J/i),"number";var _=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?_=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),_=!0):e.match(/^0(?![\dx])/i)&&(_=!0),_)return e.eat(/L/i),"number"}return e.match('"')?(n.tokenize=(c=e.current(),u=1==c.length,T="string",function(e,t){for(;!e.eol();){if(e.eatWhile(/[^'"]/),e.match(c))return t.tokenize=S,T;e.eat(/['"]/)}return u&&(t.tokenize=S),T}),n.tokenize(e,n)):e.match(i)||e.match(r)||e.match(l)?"operator":e.match(o)?null:e.match(a)?"bracket":e.match(b)?(n.doInCurrentLine=!0,"keyword"):e.match(v)?(w(0,n),n.doInCurrentLine=!0,"keyword"):e.match(m)?(n.doInCurrentLine?n.doInCurrentLine=!1:w(0,n),"keyword"):e.match(O)?"keyword":e.match(y)?(k(0,n),k(0,n),"keyword"):e.match(A)?(n.doInCurrentLine?n.doInCurrentLine=!1:k(0,n),"keyword"):e.match(h)?"keyword":e.match(d)?"atom":e.match(g)?"variableName.special":e.match(p)||e.match(f)?"builtin":e.match(s)?"variable":(e.next(),t)}return{name:"vbscript",startState:function(){return{tokenize:S,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(e,n){e.sol()&&(n.currentIndent+=n.nextLineIndent,n.nextLineIndent=0,n.doInCurrentLine=0);var r=function(e,n){var r=n.tokenize(e,n),i=e.current();return"."===i?(r=n.tokenize(e,n),i=e.current(),!r||"variable"!==r.substr(0,8)&&"builtin"!==r&&"keyword"!==r?t:("builtin"!==r&&"keyword"!==r||(r="variable"),u.indexOf(i.substr(1))>-1&&(r="keyword"),r)):r}(e,n);return n.lastToken={style:r,content:e.current()},null===r&&(r=null),r},indent:function(e,t,n){var r=t.replace(/^\s+|\s+$/g,"");return r.match(A)||r.match(y)||r.match(O)?n.unit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*n.unit}}}const gur=fur({}),mur=fur({isASP:!0}),Our=Object.freeze(Object.defineProperty({__proto__:null,vbScript:gur,vbScriptASP:mur},Symbol.toStringTag,{value:"Module"}));function Aur(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var yur=Aur("#end #else #break #stop #[[ #]] #{end} #{else} #{break} #{stop}"),vur=Aur("#if #elseif #foreach #set #include #parse #macro #define #evaluate #{if} #{elseif} #{foreach} #{set} #{include} #{parse} #{macro} #{define} #{evaluate}"),bur=Aur("$foreach.count $foreach.hasNext $foreach.first $foreach.last $foreach.topmost $foreach.parent.count $foreach.parent.hasNext $foreach.parent.first $foreach.parent.last $foreach.parent $velocityCount $!bodyContent $bodyContent"),xur=/[+\-*&%=<>!?:\/|]/;function wur(e,t,n){return t.tokenize=n,n(e,t)}function kur(e,t){var n=t.beforeParams;t.beforeParams=!1;var r=e.next();if("'"==r&&!t.inString&&t.inParams)return t.lastTokenWasBuiltin=!1,wur(e,t,Sur(r));if('"'!=r){if(/[\[\]{}\(\),;\.]/.test(r))return"("==r&&n?t.inParams=!0:")"==r&&(t.inParams=!1,t.lastTokenWasBuiltin=!0),null;if(/\d/.test(r))return t.lastTokenWasBuiltin=!1,e.eatWhile(/[\w\.]/),"number";if("#"==r&&e.eat("*"))return t.lastTokenWasBuiltin=!1,wur(e,t,Tur);if("#"==r&&e.match(/ *\[ *\[/))return t.lastTokenWasBuiltin=!1,wur(e,t,$ur);if("#"==r&&e.eat("#"))return t.lastTokenWasBuiltin=!1,e.skipToEnd(),"comment";if("$"==r)return e.eat("!"),e.eatWhile(/[\w\d\$_\.{}-]/),bur&&bur.propertyIsEnumerable(e.current())?"keyword":(t.lastTokenWasBuiltin=!0,t.beforeParams=!0,"builtin");if(xur.test(r))return t.lastTokenWasBuiltin=!1,e.eatWhile(xur),"operator";e.eatWhile(/[\w\$_{}@]/);var i=e.current();return yur&&yur.propertyIsEnumerable(i)?"keyword":vur&&vur.propertyIsEnumerable(i)||e.current().match(/^#@?[a-z0-9_]+ *$/i)&&"("==e.peek()&&(!vur||!vur.propertyIsEnumerable(i.toLowerCase()))?(t.beforeParams=!0,t.lastTokenWasBuiltin=!1,"keyword"):t.inString?(t.lastTokenWasBuiltin=!1,"string"):e.pos>i.length&&"."==e.string.charAt(e.pos-i.length-1)&&t.lastTokenWasBuiltin?"builtin":(t.lastTokenWasBuiltin=!1,null)}return t.lastTokenWasBuiltin=!1,t.inString?(t.inString=!1,"string"):t.inParams?wur(e,t,Sur(r)):void 0}function Sur(e){return function(t,n){for(var r,i=!1,o=!1;null!=(r=t.next());){if(r==e&&!i){o=!0;break}if('"'==e&&"$"==t.peek()&&!i){n.inString=!0,o=!0;break}i=!i&&"\\"==r}return o&&(n.tokenize=kur),"string"}}function Tur(e,t){for(var n,r=!1;n=e.next();){if("#"==n&&r){t.tokenize=kur;break}r="*"==n}return"comment"}function $ur(e,t){for(var n,r=0;n=e.next();){if("#"==n&&2==r){t.tokenize=kur;break}"]"==n?r++:" "!=n&&(r=0)}return"meta"}const _ur={name:"velocity",startState:function(){return{tokenize:kur,beforeParams:!1,inParams:!1,inString:!1,lastTokenWasBuiltin:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{commentTokens:{line:"##",block:{open:"#*",close:"*#"}}}},Cur=Object.freeze(Object.defineProperty({__proto__:null,velocity:_ur},Symbol.toStringTag,{value:"Module"}));function Qur(e){for(var t={},n=e.split(","),r=0;r<n.length;++r){var i=n[r].toUpperCase(),o=n[r].charAt(0).toUpperCase()+n[r].slice(1);t[n[r]]=!0,t[i]=!0,t[o]=!0}return t}function Pur(e){return e.eatWhile(/[\w\$_]/),"meta"}var Eur,Rur=Qur("null"),Bur={"`":Pur,$:Pur},Iur=Qur("abs,access,after,alias,all,and,architecture,array,assert,attribute,begin,block,body,buffer,bus,case,component,configuration,constant,disconnect,downto,else,elsif,end,end block,end case,end component,end for,end generate,end if,end loop,end process,end record,end units,entity,exit,file,for,function,generate,generic,generic map,group,guarded,if,impure,in,inertial,inout,is,label,library,linkage,literal,loop,map,mod,nand,new,next,nor,null,of,on,open,or,others,out,package,package body,port,port map,postponed,procedure,process,pure,range,record,register,reject,rem,report,return,rol,ror,select,severity,signal,sla,sll,sra,srl,subtype,then,to,transport,type,unaffected,units,until,use,variable,wait,when,while,with,xnor,xor"),Lur=Qur("architecture,entity,begin,case,port,else,elsif,end,for,function,if"),Dur=/[&|~><!\)\(*#%@+\/=?\:;}{,\.\^\-\[\]]/;function Mur(e,t){var n,r=e.next();if(Bur[r]){var i=Bur[r](e,t);if(!1!==i)return i}if('"'==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"--"==r}return!o&&i||(t.tokenize=Mur),"string.special"}),t.tokenize(e,t);if("'"==r)return t.tokenize=function(e){return function(t,n){for(var r,i=!1,o=!1;null!=(r=t.next());){if(r==e&&!i){o=!0;break}i=!i&&"--"==r}return!o&&i||(n.tokenize=Mur),"string"}}(r),t.tokenize(e,t);if(/[\[\]{}\(\),;\:\.]/.test(r))return Eur=r,null;if(/[\d']/.test(r))return e.eatWhile(/[\w\.']/),"number";if("-"==r&&e.eat("-"))return e.skipToEnd(),"comment";if(Dur.test(r))return e.eatWhile(Dur),"operator";e.eatWhile(/[\w\$_]/);var o=e.current();return Iur.propertyIsEnumerable(o.toLowerCase())?(Lur.propertyIsEnumerable(o)&&(Eur="newstatement"),"keyword"):Rur.propertyIsEnumerable(o)?"atom":"variable"}function Nur(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function Xur(e,t,n){return e.context=new Nur(e.indented,t,n,null,e.context)}function Fur(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}const Uur={name:"vhdl",startState:function(e){return{tokenize:null,context:new Nur(-e,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;Eur=null;var r=(t.tokenize||Mur)(e,t);if("comment"==r||"meta"==r)return r;if(null==n.align&&(n.align=!0),";"!=Eur&&":"!=Eur||"statement"!=n.type)if("{"==Eur)Xur(t,e.column(),"}");else if("["==Eur)Xur(t,e.column(),"]");else if("("==Eur)Xur(t,e.column(),")");else if("}"==Eur){for(;"statement"==n.type;)n=Fur(t);for("}"==n.type&&(n=Fur(t));"statement"==n.type;)n=Fur(t)}else Eur==n.type?Fur(t):("}"==n.type||"top"==n.type||"statement"==n.type&&"newstatement"==Eur)&&Xur(t,e.column(),"statement");else Fur(t);return t.startOfLine=!1,r},indent:function(e,t,n){if(e.tokenize!=Mur&&null!=e.tokenize)return 0;var r=t&&t.charAt(0),i=e.context,o=r==i.type;return"statement"==i.type?i.indented+("{"==r?0:n.unit):i.align?i.column+(o?0:1):i.indented+(o?0:n.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"--"}}},zur=Object.freeze(Object.defineProperty({__proto__:null,vhdl:Uur},Symbol.toStringTag,{value:"Module"}));var qur=function(){function e(e){return{type:e,style:"keyword"}}for(var t=e("operator"),n={type:"atom",style:"atom"},r={type:"axis_specifier",style:"qualifier"},i={",":{type:"punctuation",style:null}},o=["after","all","allowing","ancestor","ancestor-or-self","any","array","as","ascending","at","attribute","base-uri","before","boundary-space","by","case","cast","castable","catch","child","collation","comment","construction","contains","content","context","copy","copy-namespaces","count","decimal-format","declare","default","delete","descendant","descendant-or-self","descending","diacritics","different","distance","document","document-node","element","else","empty","empty-sequence","encoding","end","entire","every","exactly","except","external","first","following","following-sibling","for","from","ftand","ftnot","ft-option","ftor","function","fuzzy","greatest","group","if","import","in","inherit","insensitive","insert","instance","intersect","into","invoke","is","item","language","last","lax","least","let","levels","lowercase","map","modify","module","most","namespace","next","no","node","nodes","no-inherit","no-preserve","not","occurs","of","only","option","order","ordered","ordering","paragraph","paragraphs","parent","phrase","preceding","preceding-sibling","preserve","previous","processing-instruction","relationship","rename","replace","return","revalidation","same","satisfies","schema","schema-attribute","schema-element","score","self","sensitive","sentence","sentences","sequence","skip","sliding","some","stable","start","stemming","stop","strict","strip","switch","text","then","thesaurus","times","to","transform","treat","try","tumbling","type","typeswitch","union","unordered","update","updating","uppercase","using","validate","value","variable","version","weight","when","where","wildcards","window","with","without","word","words","xquery"],a=0,s=o.length;a<s;a++)i[o[a]]=e(o[a]);var l=["xs:anyAtomicType","xs:anySimpleType","xs:anyType","xs:anyURI","xs:base64Binary","xs:boolean","xs:byte","xs:date","xs:dateTime","xs:dateTimeStamp","xs:dayTimeDuration","xs:decimal","xs:double","xs:duration","xs:ENTITIES","xs:ENTITY","xs:float","xs:gDay","xs:gMonth","xs:gMonthDay","xs:gYear","xs:gYearMonth","xs:hexBinary","xs:ID","xs:IDREF","xs:IDREFS","xs:int","xs:integer","xs:item","xs:java","xs:language","xs:long","xs:Name","xs:NCName","xs:negativeInteger","xs:NMTOKEN","xs:NMTOKENS","xs:nonNegativeInteger","xs:nonPositiveInteger","xs:normalizedString","xs:NOTATION","xs:numeric","xs:positiveInteger","xs:precisionDecimal","xs:QName","xs:short","xs:string","xs:time","xs:token","xs:unsignedByte","xs:unsignedInt","xs:unsignedLong","xs:unsignedShort","xs:untyped","xs:untypedAtomic","xs:yearMonthDuration"];for(a=0,s=l.length;a<s;a++)i[l[a]]=n;var c=["eq","ne","lt","le","gt","ge",":=","=",">",">=","<","<=",".","|","?","and","or","div","idiv","mod","*","/","+","-"];for(a=0,s=c.length;a<s;a++)i[c[a]]=t;var u=["self::","attribute::","child::","descendant::","descendant-or-self::","parent::","ancestor::","ancestor-or-self::","following::","preceding::","following-sibling::","preceding-sibling::"];for(a=0,s=u.length;a<s;a++)i[u[a]]=r;return i}();function Vur(e,t,n){return t.tokenize=n,n(e,t)}function Wur(e,t){var n=e.next(),r=!1,i=function(e){return'"'===e.current()?e.match(/^[^\"]+\"\:/,!1):"'"===e.current()&&e.match(/^[^\"]+\'\:/,!1)}(e);if("<"==n){if(e.match("!--",!0))return Vur(e,t,Hur);if(e.match("![CDATA",!1))return t.tokenize=Kur,"tag";if(e.match("?",!1))return Vur(e,t,Jur);var o=e.eat("/");e.eatSpace();for(var a,s="";a=e.eat(/[^\s\u00a0=<>\"\'\/?]/);)s+=a;return Vur(e,t,function(e,t){return function(n,r){return n.eatSpace(),t&&n.eat(">")?(ihr(r),r.tokenize=Wur,"tag"):(n.eat("/")||rhr(r,{type:"tag",name:e,tokenize:Wur}),n.eat(">")?(r.tokenize=Wur,"tag"):(r.tokenize=Gur,"tag"))}}(s,o))}if("{"==n)return rhr(t,{type:"codeblock"}),null;if("}"==n)return ihr(t),null;if(ehr(t))return">"==n?"tag":"/"==n&&e.eat(">")?(ihr(t),"tag"):"variable";if(/\d/.test(n))return e.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/),"atom";if("("===n&&e.eat(":"))return rhr(t,{type:"comment"}),Vur(e,t,jur);if(i||'"'!==n&&"'"!==n){if("$"===n)return Vur(e,t,Zur);if(":"===n&&e.eat("="))return"keyword";if("("===n)return rhr(t,{type:"paren"}),null;if(")"===n)return ihr(t),null;if("["===n)return rhr(t,{type:"bracket"}),null;if("]"===n)return ihr(t),null;var l=qur.propertyIsEnumerable(n)&&qur[n];if(i&&'"'===n)for(;'"'!==e.next(););if(i&&"'"===n)for(;"'"!==e.next(););l||e.eatWhile(/[\w\$_-]/);var c=e.eat(":");!e.eat(":")&&c&&e.eatWhile(/[\w\$_-]/),e.match(/^[ \t]*\(/,!1)&&(r=!0);var u=e.current();return l=qur.propertyIsEnumerable(u)&&qur[u],r&&!l&&(l={type:"function_call",style:"def"}),function(e){return nhr(e,"xmlconstructor")}(t)?(ihr(t),"variable"):("element"!=u&&"attribute"!=u&&"axis_specifier"!=l.type||rhr(t,{type:"xmlconstructor"}),l?l.style:"variable")}return Yur(e,t,n)}function jur(e,t){for(var n,r=!1,i=!1,o=0;n=e.next();){if(")"==n&&r){if(!(o>0)){ihr(t);break}o--}else":"==n&&i&&o++;r=":"==n,i="("==n}return"comment"}function Yur(e,t,n,r){let i=function(e,t){return function(n,r){for(var i;i=n.next();){if(i==e){ihr(r),t&&(r.tokenize=t);break}if(n.match("{",!1)&&thr(r))return rhr(r,{type:"codeblock"}),r.tokenize=Wur,"string"}return"string"}}(n,r);return rhr(t,{type:"string",name:n,tokenize:i}),Vur(e,t,i)}function Zur(e,t){var n=/[\w\$_-]/;if(e.eat('"')){for(;'"'!==e.next(););e.eat(":")}else e.eatWhile(n),e.match(":=",!1)||e.eat(":");return e.eatWhile(n),t.tokenize=Wur,"variable"}function Gur(e,t){var n=e.next();return"/"==n&&e.eat(">")?(thr(t)&&ihr(t),ehr(t)&&ihr(t),"tag"):">"==n?(thr(t)&&ihr(t),"tag"):"="==n?null:'"'==n||"'"==n?Yur(e,t,n,Gur):(thr(t)||rhr(t,{type:"attribute",tokenize:Gur}),e.eat(/[a-zA-Z_:]/),e.eatWhile(/[-a-zA-Z0-9_:.]/),e.eatSpace(),(e.match(">",!1)||e.match("/",!1))&&(ihr(t),t.tokenize=Wur),"attribute")}function Hur(e,t){for(var n;n=e.next();)if("-"==n&&e.match("->",!0))return t.tokenize=Wur,"comment"}function Kur(e,t){for(var n;n=e.next();)if("]"==n&&e.match("]",!0))return t.tokenize=Wur,"comment"}function Jur(e,t){for(var n;n=e.next();)if("?"==n&&e.match(">",!0))return t.tokenize=Wur,"processingInstruction"}function ehr(e){return nhr(e,"tag")}function thr(e){return nhr(e,"attribute")}function nhr(e,t){return e.stack.length&&e.stack[e.stack.length-1].type==t}function rhr(e,t){e.stack.push(t)}function ihr(e){e.stack.pop();var t=e.stack.length&&e.stack[e.stack.length-1].tokenize;e.tokenize=t||Wur}const ohr={name:"xquery",startState:function(){return{tokenize:Wur,cc:[],stack:[]}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{commentTokens:{block:{open:"(:",close:":)"}}}},ahr=Object.freeze(Object.defineProperty({__proto__:null,xQuery:ohr},Symbol.toStringTag,{value:"Module"}));var shr=function(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}("Assert BackQuote D Defun Deriv For ForEach FromFile FromString Function Integrate InverseTaylor Limit LocalSymbols Macro MacroRule MacroRulePattern NIntegrate Rule RulePattern Subst TD TExplicitSum TSum Taylor Taylor1 Taylor2 Taylor3 ToFile ToStdout ToString TraceRule Until While"),lhr="(?:[a-zA-Z\\$'][a-zA-Z0-9\\$']*)",chr=new RegExp("(?:(?:\\.\\d+|\\d+\\.\\d*|\\d+)(?:[eE][+-]?\\d+)?)"),uhr=new RegExp(lhr),hhr=new RegExp(lhr+"?_"+lhr),dhr=new RegExp(lhr+"\\s*\\(");function phr(e,t){var n;if('"'===(n=e.next()))return t.tokenize=fhr,t.tokenize(e,t);if("/"===n){if(e.eat("*"))return t.tokenize=ghr,t.tokenize(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}e.backUp(1);var r=e.match(/^(\w+)\s*\(/,!1);null!==r&&shr.hasOwnProperty(r[1])&&t.scopes.push("bodied");var i=mhr(t);if("bodied"===i&&"["===n&&t.scopes.pop(),"["!==n&&"{"!==n&&"("!==n||t.scopes.push(n),("["===(i=mhr(t))&&"]"===n||"{"===i&&"}"===n||"("===i&&")"===n)&&t.scopes.pop(),";"===n)for(;"bodied"===i;)t.scopes.pop(),i=mhr(t);return e.match(/\d+ *#/,!0,!1)?"qualifier":e.match(chr,!0,!1)?"number":e.match(hhr,!0,!1)?"variableName.special":e.match(/(?:\[|\]|{|}|\(|\))/,!0,!1)?"bracket":e.match(dhr,!0,!1)?(e.backUp(1),"variableName.function"):e.match(uhr,!0,!1)?"variable":e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%|#)/,!0,!1)?"operator":"error"}function fhr(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if('"'===n&&!i){r=!0;break}i=!i&&"\\"===n}return r&&!i&&(t.tokenize=phr),"string"}function ghr(e,t){for(var n,r;null!=(r=e.next());){if("*"===n&&"/"===r){t.tokenize=phr;break}n=r}return"comment"}function mhr(e){var t=null;return e.scopes.length>0&&(t=e.scopes[e.scopes.length-1]),t}const Ohr={name:"yacas",startState:function(){return{tokenize:phr,scopes:[]}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},indent:function(e,t,n){if(e.tokenize!==phr&&null!==e.tokenize)return null;var r=0;return"]"!==t&&"];"!==t&&"}"!==t&&"};"!==t&&");"!==t||(r=-1),(e.scopes.length+r)*n.unit},languageData:{electricInput:/[{}\[\]()\;]/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}},Ahr=Object.freeze(Object.defineProperty({__proto__:null,yacas:Ohr},Symbol.toStringTag,{value:"Module"}));function yhr(e){var t,n;e?(t=/^(exx?|(ld|cp)([di]r?)?|[lp]ea|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|[de]i|halt|im|in([di]mr?|ir?|irx|2r?)|ot(dmr?|[id]rx|imr?)|out(0?|[di]r?|[di]2r?)|tst(io)?|slp)(\.([sl]?i)?[sl])?\b/i,n=/^(((call|j[pr]|rst|ret[in]?)(\.([sl]?i)?[sl])?)|(rs|st)mix)\b/i):(t=/^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i,n=/^(call|j[pr]|ret[in]?|b_?(call|jump))\b/i);var r=/^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i,i=/^(n?[zc]|p[oe]?|m)\b/i,o=/^([hl][xy]|i[xy][hl]|slia|sll)\b/i,a=/^([\da-f]+h|[0-7]+o|[01]+b|\d+d?)\b/i;return{name:"z80",startState:function(){return{context:0}},token:function(s,l){if(s.column()||(l.context=0),s.eatSpace())return null;var c;if(s.eatWhile(/\w/)){if(e&&s.eat(".")&&s.eatWhile(/\w/),c=s.current(),!s.indentation())return s.match(a)?"number":null;if((1==l.context||4==l.context)&&r.test(c))return l.context=4,"variable";if(2==l.context&&i.test(c))return l.context=4,"variableName.special";if(t.test(c))return l.context=1,"keyword";if(n.test(c))return l.context=2,"keyword";if(4==l.context&&a.test(c))return"number";if(o.test(c))return"error"}else{if(s.eat(";"))return s.skipToEnd(),"comment";if(s.eat('"')){for(;(c=s.next())&&'"'!=c;)"\\"==c&&s.next();return"string"}if(s.eat("'")){if(s.match(/\\?.'/))return"number"}else if(s.eat(".")||s.sol()&&s.eat("#")){if(l.context=5,s.eatWhile(/\w/))return"def"}else if(s.eat("$")){if(s.eatWhile(/[\da-f]/i))return"number"}else if(s.eat("%")){if(s.eatWhile(/[01]/))return"number"}else s.next()}return null}}}const vhr=yhr(!1),bhr=yhr(!0),xhr=Object.freeze(Object.defineProperty({__proto__:null,ez80:bhr,z80:vhr},Symbol.toStringTag,{value:"Module"}));function whr(e){return{name:"mscgen",startState:Chr,copyState:Qhr,token:(t=e,function(e,n){if(e.match(_hr(t.brackets),!0,!0))return"bracket";if(!n.inComment){if(e.match(/\/\*[^\*\/]*/,!0,!0))return n.inComment=!0,"comment";if(e.match(_hr(t.singlecomment),!0,!0))return e.skipToEnd(),"comment"}if(n.inComment)return e.match(/[^\*\/]*\*\//,!0,!0)?n.inComment=!1:e.skipToEnd(),"comment";if(!n.inString&&e.match(/\"(\\\"|[^\"])*/,!0,!0))return n.inString=!0,"string";if(n.inString)return e.match(/[^\"]*\"/,!0,!0)?n.inString=!1:e.skipToEnd(),"string";if(t.keywords&&e.match($hr(t.keywords),!0,!0))return"keyword";if(e.match($hr(t.options),!0,!0))return"keyword";if(e.match($hr(t.arcsWords),!0,!0))return"keyword";if(e.match(_hr(t.arcsOthers),!0,!0))return"keyword";if(t.operators&&e.match(_hr(t.operators),!0,!0))return"operator";if(t.constants&&e.match(_hr(t.constants),!0,!0))return"variable";if(!t.inAttributeList&&t.attributes&&e.match("[",!0,!0))return t.inAttributeList=!0,"bracket";if(t.inAttributeList){if(null!==t.attributes&&e.match($hr(t.attributes),!0,!0))return"attribute";if(e.match("]",!0,!0))return t.inAttributeList=!1,"bracket"}return e.next(),null}),languageData:{commentTokens:{line:"#",block:{open:"/*",close:"*/"}}}};var t}const khr=whr({keywords:["msc"],options:["hscale","width","arcgradient","wordwraparcs"],constants:["true","false","on","off"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]}),Shr=whr({keywords:null,options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:null,brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]}),Thr=whr({keywords:["msc","xu"],options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip","title","deactivate","activate","activation"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]});function $hr(e){return new RegExp("^\\b("+e.join("|")+")\\b","i")}function _hr(e){return new RegExp("^(?:"+e.join("|")+")","i")}function Chr(){return{inComment:!1,inString:!1,inAttributeList:!1,inScript:!1}}function Qhr(e){return{inComment:e.inComment,inString:e.inString,inAttributeList:e.inAttributeList,inScript:e.inScript}}const Phr=Object.freeze(Object.defineProperty({__proto__:null,mscgen:khr,msgenny:Shr,xu:Thr},Symbol.toStringTag,{value:"Module"})),Ehr=PUn.deserialize({version:14,states:"%pOVOWOOObQPOOOpOSO'#C_OOOO'#Cp'#CpQVOWOOQxQPOOO!TQQOOQ!YQPOOOOOO,58y,58yO!_OSO,58yOOOO-E6n-E6nO!dQQO'#CqQ{QPOOO!iQPOOQ{QPOOO!qQPOOOOOO1G.e1G.eOOQO,59],59]OOQO-E6o-E6oO!yOpO'#CiO#RO`O'#CiQOQPOOO#ZO#tO'#CmO#fO!bO'#CmOOQO,59T,59TO#qOpO,59TO#vO`O,59TOOOO'#Cr'#CrO#{O#tO,59XOOQO,59X,59XOOOO'#Cs'#CsO$WO!bO,59XOOQO1G.o1G.oOOOO-E6p-E6pOOQO1G.s1G.sOOOO-E6q-E6q",stateData:"$g~OjOS~OQROUROkQO~OWTOXUOZUO`VO~OSXOTWO~OXUO[]OlZO~OY^O~O[_O~OT`O~OYaO~OmcOodO~OmfOogO~O^iOnhO~O_jOphO~ObkOqkOrmO~OcnOsnOtmO~OnpO~OppO~ObkOqkOrrO~OcnOsnOtrO~OWX`~",goto:"!^hPPPiPPPPPPPPPmPPPpPPsy!Q!WTROSRe]Re_QSORYSS[T^Rb[QlfRqlQogRso",nodeNames:"⚠ Content Text Interpolation InterpolationContent }} Entity Attribute VueAttributeName : Identifier @ Is ScriptAttributeValue AttributeScript AttributeScript AttributeName AttributeValue Entity Entity",maxTerm:36,nodeProps:[["isolate",-3,3,13,17,""]],skippedNodes:[0],repeatNodeCount:4,tokenData:"'y~RdXY!aYZ!a]^!apq!ars!rwx!w}!O!|!O!P#t!Q![#y![!]$s!_!`%g!b!c%l!c!}#y#R#S#y#T#j#y#j#k%q#k#o#y%W;'S#y;'S;:j$m<%lO#y~!fSj~XY!aYZ!a]^!apq!a~!wOm~~!|Oo~!b#RX`!b}!O!|!Q![!|![!]!|!c!}!|#R#S!|#T#o!|%W;'S!|;'S;:j#n<%lO!|!b#qP;=`<%l!|~#yOl~%W$QXY#t`!b}!O!|!Q![#y![!]!|!c!}#y#R#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y%W$pP;=`<%l#y~$zXX~`!b}!O!|!Q![!|![!]!|!c!}!|#R#S!|#T#o!|%W;'S!|;'S;:j#n<%lO!|~%lO[~~%qOZ~%W%xXY#t`!b}!O&e!Q![#y![!]!|!c!}#y#R#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y!b&jX`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|!b'^XW!b`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|",tokenizers:[6,7,new mUn("b~RP#q#rU~XP#q#r[~aOT~~",17,4),new mUn("!k~RQvwX#o#p!_~^TU~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOU~~![P;=`<%lm~!bP#o#p!e~!jOk~~",72,2),new mUn("[~RPwxU~ZOp~~",11,15),new mUn("[~RPrsU~ZOn~~",11,14),new mUn("!e~RQvwXwx!_~^Tc~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOc~~![P;=`<%lm~!dOt~~",66,35),new mUn("!e~RQrsXvw^~^Or~~cTb~Oprq!]r!^;'Sr;'S;=`!^<%lOr~uUOprq!]r!]!^!X!^;'Sr;'S;=`!^<%lOr~!^Ob~~!aP;=`<%lr~",66,33)],topRules:{Content:[0,1],Attribute:[1,7]},tokenPrec:157}),Rhr=BVn.parser.configure({top:"SingleExpression"}),Bhr=Ehr.configure({props:[Cit({Text:Git.content,Is:Git.definitionOperator,AttributeName:Git.attributeName,VueAttributeName:Git.keyword,Identifier:Git.variableName,"AttributeValue ScriptAttributeValue":Git.attributeValue,Entity:Git.character,"{{ }}":Git.brace,"@ :":Git.punctuation})]}),Ihr={parser:Rhr},Lhr={parser:Bhr.configure({wrap:hit((e,t)=>"InterpolationContent"==e.name?Ihr:null)})},Dhr={parser:Bhr.configure({wrap:hit((e,t)=>"AttributeScript"==e.name?Ihr:null),top:"Attribute"})},Mhr=vWn();function Nhr(e){return e.configure({dialect:"selfClosing",wrap:hit(Fhr)},"vue")}const Xhr=Nhr(Mhr.language);function Fhr(e,t){switch(e.name){case"Attribute":return/^(@|:|v-)/.test(t.read(e.from,e.from+2))?Dhr:null;case"Text":return Lhr}return null}const Uhr=Object.freeze(Object.defineProperty({__proto__:null,vue:function(e={}){let t=Mhr;if(e.base){if("html"!=e.base.language.name||!(e.base.language instanceof rot))throw new RangeError("The base option must be the result of calling html(...)");t=e.base}return new fot(t.language==Mhr.language?Xhr:Nhr(t.language),[t.support,t.language.data.of({closeBrackets:{brackets:["{",'"']}})])},vueLanguage:Xhr},Symbol.toStringTag,{value:"Module"})),zhr=new OUn(e=>{let t=e.pos;for(;;){if(10==e.next){e.advance();break}if(123==e.next&&123==e.peek(1)||e.next<0)break;e.advance()}e.pos>t&&e.acceptToken(1)});function qhr(e,t,n){return new OUn(r=>{let i=r.pos;for(;r.next!=e&&r.next>=0&&(n||38!=r.next&&(123!=r.next||123!=r.peek(1)));)r.advance();r.pos>i&&r.acceptToken(t)})}const Vhr=qhr(39,33,!1),Whr=qhr(34,34,!1),jhr=qhr(39,35,!0),Yhr=qhr(34,36,!0),Zhr=PUn.deserialize({version:14,states:"(jOVOqOOOeQpOOOvO!bO'#CaOOOP'#Cx'#CxQVOqOOO!OQpO'#CfO!WQpO'#ClO!]QpO'#CrO!bQpO'#CsOOQO'#Cv'#CvQ!gQpOOQ!lQpOOQ!qQpOOOOOV,58{,58{O!vOpO,58{OOOP-E6v-E6vO!{QpO,59QO#TQpO,59QOOQO,59W,59WO#YQpO,59^OOQO,59_,59_O#_QpOOO#_QpOOO#gQpOOOOOV1G.g1G.gO#oQpO'#CyO#tQpO1G.lOOQO1G.l1G.lO#|QpO1G.lOOQO1G.x1G.xO$UO`O'#DUO$ZOWO'#DUOOQO'#Co'#CoQOQpOOOOQO'#Cu'#CuO$`OtO'#CwO$qOrO'#CwOOQO,59e,59eOOQO-E6w-E6wOOQO7+$W7+$WO%SQpO7+$WO%[QpO7+$WOOOO'#Cp'#CpO%aOpO,59pOOOO'#Cq'#CqO%fOpO,59pOOOS'#Cz'#CzO%kOtO,59cOOQO,59c,59cOOOQ'#C{'#C{O%|OrO,59cO&_QpO<<GrOOQO<<Gr<<GrOOQO1G/[1G/[OOOS-E6x-E6xOOQO1G.}1G.}OOOQ-E6y-E6yOOQOAN=^AN=^",stateData:"&d~OvOS~OPROSQOVROWRO~OZTO[XO^VOaUOhWO~OR]OU^O~O[`O^aO~O[bO~O[cO~O[dO~ObeO~ObfO~ObgO~ORhO~O]kOwiO~O[lO~O_mO~OynOzoO~OysOztO~O[uO~O]wOwiO~O_yOwiO~OtzO~Os|O~OSQOV!OOW!OOr!OOy!QO~OSQOV!ROW!ROq!ROz!QO~O_!TOwiO~O]!UO~Oy!VO~Oz!VO~OSQOV!OOW!OOr!OOy!XO~OSQOV!ROW!ROq!ROz!XO~O]!ZO~O",goto:"#dyPPPPPzPPPP!WPPPPP!WPP!Z!^!a!d!dP!g!j!m!p!v#Q#WPPPPPPPP#^SROSS!Os!PT!Rt!SRYPRqeR{nR}oRZPRqfR[PRqgQSOR_SQj`SvjxRxlQ!PsR!W!PQ!StR!Y!SQpeRrf",nodeNames:"⚠ Text Content }} {{ Interpolation InterpolationContent Entity InvalidEntity Attribute BoundAttributeName [ Identifier ] ( ) ReferenceName # Is ExpressionAttributeValue AttributeInterpolation AttributeInterpolation EventName DirectiveName * StatementAttributeValue AttributeName AttributeValue",maxTerm:42,nodeProps:[["openedBy",3,"{{",15,"("],["closedBy",4,"}}",14,")"],["isolate",-4,5,19,25,27,""]],skippedNodes:[0],repeatNodeCount:4,tokenData:"0r~RyOX#rXY$mYZ$mZ]#r]^$m^p#rpq$mqr#rrs%jst&Qtv#rvw&hwx)zxy*byz*xz{+`{}#r}!O+v!O!P-]!P!Q#r!Q![+v![!]+v!]!_#r!_!`-s!`!c#r!c!}+v!}#O.Z#O#P#r#P#Q.q#Q#R#r#R#S+v#S#T#r#T#o+v#o#p/X#p#q#r#q#r0Z#r%W#r%W;'S+v;'S;:j-V;:j;=`$g<%lO+vQ#wTUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rQ$ZSO#q#r#r;'S#r;'S;=`$g<%lO#rQ$jP;=`<%l#rR$t[UQvPOX#rXY$mYZ$mZ]#r]^$m^p#rpq$mq#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR%qTyPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR&XTaPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR&oXUQWPOp'[pq#rq!]'[!]!^#r!^#q'[#q#r(d#r;'S'[;'S;=`)t<%lO'[R'aXUQOp'[pq#rq!]'[!]!^'|!^#q'[#q#r(d#r;'S'[;'S;=`)t<%lO'[R(TTVPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR(gXOp'[pq#rq!]'[!]!^'|!^#q'[#q#r)S#r;'S'[;'S;=`)t<%lO'[P)VUOp)Sq!])S!]!^)i!^;'S)S;'S;=`)n<%lO)SP)nOVPP)qP;=`<%l)SR)wP;=`<%l'[R*RTzPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR*iT^PUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR+PT_PUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR+gThPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR+}b[PUQO}#r}!O+v!O!Q#r!Q![+v![!]+v!]!c#r!c!}+v!}#R#r#R#S+v#S#T#r#T#o+v#o#q#r#q#r$W#r%W#r%W;'S+v;'S;:j-V;:j;=`$g<%lO+vR-YP;=`<%l+vR-dTwPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR-zTUQbPO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR.bTZPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR.xT]PUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR/^VUQO#o#r#o#p/s#p#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR/zTSPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#r~0^TO#q#r#q#r0m#r;'S#r;'S;=`$g<%lO#r~0rOR~",tokenizers:[zhr,Vhr,Whr,jhr,Yhr,0,1],topRules:{Content:[0,2],Attribute:[1,9]},tokenPrec:0}),Ghr=BVn.parser.configure({top:"SingleExpression"}),Hhr=Zhr.configure({props:[Cit({Text:Git.content,Is:Git.definitionOperator,AttributeName:Git.attributeName,"AttributeValue ExpressionAttributeValue StatementAttributeValue":Git.attributeValue,Entity:Git.character,InvalidEntity:Git.invalid,"BoundAttributeName/Identifier":Git.attributeName,"EventName/Identifier":Git.special(Git.attributeName),"ReferenceName/Identifier":Git.variableName,"DirectiveName/Identifier":Git.keyword,"{{ }}":Git.brace,"( )":Git.paren,"[ ]":Git.bracket,"# '*'":Git.punctuation})]}),Khr={parser:Ghr},Jhr={parser:BVn.parser},edr={parser:Hhr.configure({wrap:hit((e,t)=>"InterpolationContent"==e.name?Khr:null)})},tdr={parser:Hhr.configure({wrap:hit((e,t)=>{var n;return"InterpolationContent"==e.name?Khr:"AttributeInterpolation"!=e.name?null:"StatementAttributeValue"==(null===(n=e.node.parent)||void 0===n?void 0:n.name)?Jhr:Khr}),top:"Attribute"})},ndr=vWn({selfClosingTags:!0});function rdr(e){return e.configure({wrap:hit(odr)},"angular")}const idr=rdr(ndr.language);function odr(e,t){switch(e.name){case"Attribute":return/^[*#(\[]|\{\{/.test(t.read(e.from,e.to))?tdr:null;case"Text":return edr}return null}const adr=Object.freeze(Object.defineProperty({__proto__:null,angular:function(e={}){let t=ndr;if(e.base){if("html"!=e.base.language.name||!(e.base.language instanceof rot))throw new RangeError("The base option must be the result of calling html(...)");t=e.base}return new fot(t.language==ndr.language?idr:rdr(t.language),[t.support,t.language.data.of({closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/})])},angularLanguage:idr},Symbol.toStringTag,{value:"Module"}));export{Ka as $,qb as A,Wy as B,Vy as C,fl as D,ts as E,uu as F,Jc as G,Hc as H,Ns as I,ju as J,la as K,hv as L,Na as M,sr as N,dy as O,Ey as P,aO as Q,Rl as R,ru as S,cu as T,xs as U,Sv as V,vv as W,al as X,sl as Y,lu as Z,gu as _,gr as a,Ad as a$,fu as a0,Kr as a1,ri as a2,ku as a3,Fl as a4,Ja as a5,$l as a6,vu as a7,Au as a8,ki as a9,tk as aA,Ar as aB,lk as aC,Rk as aD,ua as aE,BA as aF,Uy as aG,Lk as aH,Jo as aI,gv as aJ,_r as aK,ev as aL,cO as aM,HA as aN,Sl as aO,_l as aP,Mr as aQ,Xk as aR,ii as aS,mu as aT,Xy as aU,yd as aV,$y as aW,bd as aX,ml as aY,ny as aZ,Rd as a_,Ch as aa,ph as ab,Ou as ac,Kc as ad,uv as ae,Dv as af,yl as ag,Aa as ah,lO as ai,qo as aj,ga as ak,rA as al,Ol as am,iv as an,ld as ao,Iw as ap,gy as aq,pv as ar,Wo as as,ea as at,Ul as au,Pd as av,El as aw,Pl as ax,rv as ay,ov as az,wr as b,aZ as b$,Ov as b0,kr as b1,Il as b2,Yy as b3,Km as b4,qk as b5,Gk as b6,eS as b7,iS as b8,lS as b9,Kgt as bA,LS as bB,MS as bC,DS as bD,UT as bE,Cf as bF,tf as bG,wS as bH,sRe as bI,lRe as bJ,zS as bK,ZT as bL,yu as bM,KT as bN,n$ as bO,a$ as bP,u$ as bQ,gB as bR,xI as bS,Pf as bT,XL as bU,_4 as bV,$4 as bW,q4 as bX,QZ as bY,gH as bZ,xH as b_,dS as ba,sv as bb,Ky as bc,Ei as bd,xv as be,Nm as bf,mS as bg,fy as bh,by as bi,Nd as bj,ey as bk,Av as bl,kv as bm,bv as bn,wv as bo,rw as bp,cw as bq,ow as br,sw as bs,aw as bt,lw as bu,iw as bv,mv as bw,Xd as bx,Lr as by,Vo as bz,br as c,V4 as c0,jz as c1,eH as c2,YG as c3,x1 as c4,oH as c5,_H as c6,KH as c7,rK as c8,bG as c9,qH as cA,J2 as cB,W3 as cC,V3 as cD,W4 as cE,TG as cF,MM as cG,_M as cH,lq as cI,l4 as cJ,LZ as cK,p6 as cL,t6 as cM,g6 as cN,O6 as cO,v6 as cP,A6 as cQ,d4 as cR,BAe as cS,RAe as cT,JEe as cU,K6 as cV,d3e as cW,tG as ca,qZ as cb,eG as cc,dH as cd,dK as ce,pH as cf,fH as cg,FH as ch,UH as ci,KG as cj,JG as ck,nH as cl,WG as cm,jG as cn,HG as co,rH as cp,iH as cq,sH as cr,lH as cs,cH as ct,uH as cu,hH as cv,v1 as cw,b1 as cx,k1 as cy,zH as cz,Wu as d,Qu as e,ry as f,jm as g,fr as h,py as i,oa as j,cs as k,ca as l,Zy as m,Dr as n,Br as o,gl as p,ss as q,ia as r,My as s,Al as t,yv as u,ns as v,Gu as w,ra as x,vr as y,Bi as z}; |