this._linkAtPosition(a.link,s));if(m){t=!0,this._handleNewLink(m);break}}return t}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){if(!this._element||!this._mouseService||!this._currentLink)return;const s=this._positionFromMouseEvent(e,this._element,this._mouseService);s&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,s)&&this._currentLink.link.activate(e,this._currentLink.link.text)}_clearCurrentLink(e,s){this._element&&this._currentLink&&this._lastMouseEvent&&(!e||!s||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=s)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,_.disposeArray)(this._linkCacheDisposables))}_handleNewLink(e){if(!this._element||!this._lastMouseEvent||!this._mouseService)return;const s=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);s&&this._linkAtPosition(e.link,s)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:e.link.decorations===void 0||e.link.decorations.underline,pointerCursor:e.link.decorations===void 0||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:()=>{var t,i;return(i=(t=this._currentLink)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.decorations.pointerCursor},set:t=>{var i,l;!((i=this._currentLink)===null||i===void 0)&&i.state&&this._currentLink.state.decorations.pointerCursor!==t&&(this._currentLink.state.decorations.pointerCursor=t,this._currentLink.state.isHovered&&((l=this._element)===null||l===void 0||l.classList.toggle("xterm-cursor-pointer",t)))}},underline:{get:()=>{var t,i;return(i=(t=this._currentLink)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.decorations.underline},set:t=>{var i,l,c;!((i=this._currentLink)===null||i===void 0)&&i.state&&((c=(l=this._currentLink)===null||l===void 0?void 0:l.state)===null||c===void 0?void 0:c.decorations.underline)!==t&&(this._currentLink.state.decorations.underline=t,this._currentLink.state.isHovered&&this._fireUnderlineEvent(e.link,t))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(t=>{if(!this._currentLink)return;const i=t.start===0?0:t.start+1+this._bufferService.buffer.ydisp,l=this._bufferService.buffer.ydisp+1+t.end;if(this._currentLink.link.range.start.y>=i&&this._currentLink.link.range.end.y<=l&&(this._clearCurrentLink(i,l),this._lastMouseEvent&&this._element)){const c=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);c&&this._askForLink(c,!1)}})))}_linkHover(e,s,t){var i;!((i=this._currentLink)===null||i===void 0)&&i.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),s.hover&&s.hover(t,s.text)}_fireUnderlineEvent(e,s){const t=e.range,i=this._bufferService.buffer.ydisp,l=this._createLinkUnderlineEvent(t.start.x-1,t.start.y-i-1,t.end.x,t.end.y-i-1,void 0);(s?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(l)}_linkLeave(e,s,t){var i;!((i=this._currentLink)===null||i===void 0)&&i.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),s.leave&&s.leave(t,s.text)}_linkAtPosition(e,s){const t=e.range.start.y*this._bufferService.cols+e.range.start.x,i=e.range.end.y*this._bufferService.cols+e.range.end.x,l=s.y*this._bufferService.cols+s.x;return t<=l&&l<=i}_positionFromMouseEvent(e,s,t){const i=t.getCoords(e,s,this._bufferService.cols,this._bufferService.rows);if(i)return{x:i[0],y:i[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,s,t,i,l){return{x1:e,y1:s,x2:t,y2:i,cols:this._bufferService.cols,fg:l}}};r.Linkifier2=u=h([f(0,v.IBufferService)],u)},9042:(B,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.tooMuchOutput=r.promptLabel=void 0,r.promptLabel="Terminal input",r.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(B,r,o){var h=this&&this.__decorate||function(u,e,s,t){var i,l=arguments.length,c=l<3?e:t===null?t=Object.getOwnPropertyDescriptor(e,s):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(u,e,s,t);else for(var p=u.length-1;p>=0;p--)(i=u[p])&&(c=(l<3?i(c):l>3?i(e,s,c):i(e,s))||c);return l>3&&c&&Object.defineProperty(e,s,c),c},f=this&&this.__param||function(u,e){return function(s,t){e(s,t,u)}};Object.defineProperty(r,"__esModule",{value:!0}),r.OscLinkProvider=void 0;const n=o(511),d=o(2585);let _=r.OscLinkProvider=class{constructor(u,e,s){this._bufferService=u,this._optionsService=e,this._oscLinkService=s}provideLinks(u,e){var s;const t=this._bufferService.buffer.lines.get(u-1);if(!t)return void e(void 0);const i=[],l=this._optionsService.rawOptions.linkHandler,c=new n.CellData,p=t.getTrimmedLength();let m=-1,a=-1,g=!1;for(let C=0;Cl?l.activate(I,H,y):v(0,H),hover:(I,H)=>{var N;return(N=l==null?void 0:l.hover)===null||N===void 0?void 0:N.call(l,I,H,y)},leave:(I,H)=>{var N;return(N=l==null?void 0:l.leave)===null||N===void 0?void 0:N.call(l,I,H,y)}})}g=!1,c.hasExtendedAttrs()&&c.extended.urlId?(a=C,m=c.extended.urlId):(a=-1,m=-1)}}e(i)}};function v(u,e){if(confirm(`Do you want to navigate to ${e}?
@@ -7,6 +7,6 @@ WARNING: This link could potentially be dangerous`)){const s=window.open();if(s)
`:`
`)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(a){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._refresh())),s.isLinux&&a&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})}_isClickInSelection(a){const g=this._getMouseBufferCoords(a),C=this._model.finalSelectionStart,w=this._model.finalSelectionEnd;return!!(C&&w&&g)&&this._areCoordsInSelection(g,C,w)}isCellInSelection(a,g){const C=this._model.finalSelectionStart,w=this._model.finalSelectionEnd;return!(!C||!w)&&this._areCoordsInSelection([a,g],C,w)}_areCoordsInSelection(a,g,C){return a[1]>g[1]&&a[1]=g[0]&&a[0]=g[0]}_selectWordAtCursor(a,g){var C,w;const y=(w=(C=this._linkifier.currentLink)===null||C===void 0?void 0:C.link)===null||w===void 0?void 0:w.range;if(y)return this._model.selectionStart=[y.start.x-1,y.start.y-1],this._model.selectionStartLength=(0,t.getRangeLength)(y,this._bufferService.cols),this._model.selectionEnd=void 0,!0;const L=this._getMouseBufferCoords(a);return!!L&&(this._selectWordAt(L,g),this._model.selectionEnd=void 0,!0)}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(a,g){this._model.clearSelection(),a=Math.max(a,0),g=Math.min(g,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,a],this._model.selectionEnd=[this._bufferService.cols,g],this.refresh(),this._onSelectionChange.fire()}_handleTrim(a){this._model.handleTrim(a)&&this.refresh()}_getMouseBufferCoords(a){const g=this._mouseService.getCoords(a,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(g)return g[0]--,g[1]--,g[1]+=this._bufferService.buffer.ydisp,g}_getMouseEventScrollAmount(a){let g=(0,n.getCoordsRelativeToElement)(this._coreBrowserService.window,a,this._screenElement)[1];const C=this._renderService.dimensions.css.canvas.height;return g>=0&&g<=C?0:(g>C&&(g-=C),g=Math.min(Math.max(g,-50),50),g/=50,g/Math.abs(g)+Math.round(14*g))}shouldForceSelection(a){return s.isMac?a.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:a.shiftKey}handleMouseDown(a){if(this._mouseDownTimeStamp=a.timeStamp,(a.button!==2||!this.hasSelection)&&a.button===0){if(!this._enabled){if(!this.shouldForceSelection(a))return;a.stopPropagation()}a.preventDefault(),this._dragScrollAmount=0,this._enabled&&a.shiftKey?this._handleIncrementalClick(a):a.detail===1?this._handleSingleClick(a):a.detail===2?this._handleDoubleClick(a):a.detail===3&&this._handleTripleClick(a),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval(()=>this._dragScroll(),50)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(a){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(a))}_handleSingleClick(a){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(a)?3:0,this._model.selectionStart=this._getMouseBufferCoords(a),!this._model.selectionStart)return;this._model.selectionEnd=void 0;const g=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);g&&g.length!==this._model.selectionStart[0]&&g.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}_handleDoubleClick(a){this._selectWordAtCursor(a,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(a){const g=this._getMouseBufferCoords(a);g&&(this._activeSelectionMode=2,this._selectLineAt(g[1]))}shouldColumnSelect(a){return a.altKey&&!(s.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(a){if(a.stopImmediatePropagation(),!this._model.selectionStart)return;const g=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(a),!this._model.selectionEnd)return void this.refresh(!0);this._activeSelectionMode===2?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));const C=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(a.ydisp+this._bufferService.rows,a.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=a.ydisp),this.refresh()}}_handleMouseUp(a){const g=a.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&g<500&&a.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){const C=this._mouseService.getCoords(a,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(C&&C[0]!==void 0&&C[1]!==void 0){const w=(0,d.moveToCellSequence)(C[0]-1,C[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(w,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){const a=this._model.finalSelectionStart,g=this._model.finalSelectionEnd,C=!(!a||!g||a[0]===g[0]&&a[1]===g[1]);C?a&&g&&(this._oldSelectionStart&&this._oldSelectionEnd&&a[0]===this._oldSelectionStart[0]&&a[1]===this._oldSelectionStart[1]&&g[0]===this._oldSelectionEnd[0]&&g[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(a,g,C)):this._oldHasSelection&&this._fireOnSelectionChange(a,g,C)}_fireOnSelectionChange(a,g,C){this._oldSelectionStart=a,this._oldSelectionEnd=g,this._oldHasSelection=C,this._onSelectionChange.fire()}_handleBufferActivate(a){this.clearSelection(),this._trimListener.dispose(),this._trimListener=a.activeBuffer.lines.onTrim(g=>this._handleTrim(g))}_convertViewportColToCharacterIndex(a,g){let C=g;for(let w=0;g>=w;w++){const y=a.loadCell(w,this._workCell).getChars().length;this._workCell.getWidth()===0?C--:y>1&&g!==w&&(C+=y-1)}return C}setSelection(a,g,C){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[a,g],this._model.selectionStartLength=C,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(a){this._isClickInSelection(a)||(this._selectWordAtCursor(a,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(a,g,C=!0,w=!0){if(a[0]>=this._bufferService.cols)return;const y=this._bufferService.buffer,L=y.lines.get(a[1]);if(!L)return;const I=y.translateBufferLineToString(a[1],!1);let H=this._convertViewportColToCharacterIndex(L,a[0]),N=H;const $=a[0]-H;let b=0,E=0,k=0,R=0;if(I.charAt(H)===" "){for(;H>0&&I.charAt(H-1)===" ";)H--;for(;N1&&(R+=se-1,N+=se-1);G>0&&H>0&&!this._isCharWordSeparator(L.loadCell(G-1,this._workCell));){L.loadCell(G-1,this._workCell);const S=this._workCell.getChars().length;this._workCell.getWidth()===0?(b++,G--):S>1&&(k+=S-1,H-=S-1),H--,G--}for(;V1&&(R+=S-1,N+=S-1),N++,V++}}N++;let W=H+$-b+k,z=Math.min(this._bufferService.cols,N-H+b+E-k-R);if(g||I.slice(H,N).trim()!==""){if(C&&W===0&&L.getCodePoint(0)!==32){const G=y.lines.get(a[1]-1);if(G&&L.isWrapped&&G.getCodePoint(this._bufferService.cols-1)!==32){const V=this._getWordAt([this._bufferService.cols-1,a[1]-1],!1,!0,!1);if(V){const se=this._bufferService.cols-V.start;W-=se,z+=se}}}if(w&&W+z===this._bufferService.cols&&L.getCodePoint(this._bufferService.cols-1)!==32){const G=y.lines.get(a[1]+1);if(G!=null&&G.isWrapped&&G.getCodePoint(0)!==32){const V=this._getWordAt([0,a[1]+1],!1,!1,!0);V&&(z+=V.length)}}return{start:W,length:z}}}_selectWordAt(a,g){const C=this._getWordAt(a,g);if(C){for(;C.start<0;)C.start+=this._bufferService.cols,a[1]--;this._model.selectionStart=[C.start,a[1]],this._model.selectionStartLength=C.length}}_selectToWordAt(a){const g=this._getWordAt(a,!0);if(g){let C=a[1];for(;g.start<0;)g.start+=this._bufferService.cols,C--;if(!this._model.areSelectionValuesReversed())for(;g.start+g.length>this._bufferService.cols;)g.length-=this._bufferService.cols,C++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?g.start:g.start+g.length,C]}}_isCharWordSeparator(a){return a.getWidth()!==0&&this._optionsService.rawOptions.wordSeparator.indexOf(a.getChars())>=0}_selectLineAt(a){const g=this._bufferService.buffer.getWrappedRangeForLine(a),C={start:{x:0,y:g.first},end:{x:this._bufferService.cols-1,y:g.last}};this._model.selectionStart=[0,g.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,t.getRangeLength)(C,this._bufferService.cols)}};r.SelectionService=m=h([f(3,l.IBufferService),f(4,l.ICoreService),f(5,v.IMouseService),f(6,l.IOptionsService),f(7,v.IRenderService),f(8,v.ICoreBrowserService)],m)},4725:(B,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.IThemeService=r.ICharacterJoinerService=r.ISelectionService=r.IRenderService=r.IMouseService=r.ICoreBrowserService=r.ICharSizeService=void 0;const h=o(8343);r.ICharSizeService=(0,h.createDecorator)("CharSizeService"),r.ICoreBrowserService=(0,h.createDecorator)("CoreBrowserService"),r.IMouseService=(0,h.createDecorator)("MouseService"),r.IRenderService=(0,h.createDecorator)("RenderService"),r.ISelectionService=(0,h.createDecorator)("SelectionService"),r.ICharacterJoinerService=(0,h.createDecorator)("CharacterJoinerService"),r.IThemeService=(0,h.createDecorator)("ThemeService")},6731:function(B,r,o){var h=this&&this.__decorate||function(m,a,g,C){var w,y=arguments.length,L=y<3?a:C===null?C=Object.getOwnPropertyDescriptor(a,g):C;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(m,a,g,C);else for(var I=m.length-1;I>=0;I--)(w=m[I])&&(L=(y<3?w(L):y>3?w(a,g,L):w(a,g))||L);return y>3&&L&&Object.defineProperty(a,g,L),L},f=this&&this.__param||function(m,a){return function(g,C){a(g,C,m)}};Object.defineProperty(r,"__esModule",{value:!0}),r.ThemeService=r.DEFAULT_ANSI_COLORS=void 0;const n=o(7239),d=o(8055),_=o(8460),v=o(844),u=o(2585),e=d.css.toColor("#ffffff"),s=d.css.toColor("#000000"),t=d.css.toColor("#ffffff"),i=d.css.toColor("#000000"),l={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};r.DEFAULT_ANSI_COLORS=Object.freeze((()=>{const m=[d.css.toColor("#2e3436"),d.css.toColor("#cc0000"),d.css.toColor("#4e9a06"),d.css.toColor("#c4a000"),d.css.toColor("#3465a4"),d.css.toColor("#75507b"),d.css.toColor("#06989a"),d.css.toColor("#d3d7cf"),d.css.toColor("#555753"),d.css.toColor("#ef2929"),d.css.toColor("#8ae234"),d.css.toColor("#fce94f"),d.css.toColor("#729fcf"),d.css.toColor("#ad7fa8"),d.css.toColor("#34e2e2"),d.css.toColor("#eeeeec")],a=[0,95,135,175,215,255];for(let g=0;g<216;g++){const C=a[g/36%6|0],w=a[g/6%6|0],y=a[g%6];m.push({css:d.channels.toCss(C,w,y),rgba:d.channels.toRgba(C,w,y)})}for(let g=0;g<24;g++){const C=8+10*g;m.push({css:d.channels.toCss(C,C,C),rgba:d.channels.toRgba(C,C,C)})}return m})());let c=r.ThemeService=class extends v.Disposable{get colors(){return this._colors}constructor(m){super(),this._optionsService=m,this._contrastCache=new n.ColorContrastCache,this._halfContrastCache=new n.ColorContrastCache,this._onChangeColors=this.register(new _.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:e,background:s,cursor:t,cursorAccent:i,selectionForeground:void 0,selectionBackgroundTransparent:l,selectionBackgroundOpaque:d.color.blend(s,l),selectionInactiveBackgroundTransparent:l,selectionInactiveBackgroundOpaque:d.color.blend(s,l),ansi:r.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this.register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",()=>this._contrastCache.clear())),this.register(this._optionsService.onSpecificOptionChange("theme",()=>this._setTheme(this._optionsService.rawOptions.theme)))}_setTheme(m={}){const a=this._colors;if(a.foreground=p(m.foreground,e),a.background=p(m.background,s),a.cursor=p(m.cursor,t),a.cursorAccent=p(m.cursorAccent,i),a.selectionBackgroundTransparent=p(m.selectionBackground,l),a.selectionBackgroundOpaque=d.color.blend(a.background,a.selectionBackgroundTransparent),a.selectionInactiveBackgroundTransparent=p(m.selectionInactiveBackground,a.selectionBackgroundTransparent),a.selectionInactiveBackgroundOpaque=d.color.blend(a.background,a.selectionInactiveBackgroundTransparent),a.selectionForeground=m.selectionForeground?p(m.selectionForeground,d.NULL_COLOR):void 0,a.selectionForeground===d.NULL_COLOR&&(a.selectionForeground=void 0),d.color.isOpaque(a.selectionBackgroundTransparent)&&(a.selectionBackgroundTransparent=d.color.opacity(a.selectionBackgroundTransparent,.3)),d.color.isOpaque(a.selectionInactiveBackgroundTransparent)&&(a.selectionInactiveBackgroundTransparent=d.color.opacity(a.selectionInactiveBackgroundTransparent,.3)),a.ansi=r.DEFAULT_ANSI_COLORS.slice(),a.ansi[0]=p(m.black,r.DEFAULT_ANSI_COLORS[0]),a.ansi[1]=p(m.red,r.DEFAULT_ANSI_COLORS[1]),a.ansi[2]=p(m.green,r.DEFAULT_ANSI_COLORS[2]),a.ansi[3]=p(m.yellow,r.DEFAULT_ANSI_COLORS[3]),a.ansi[4]=p(m.blue,r.DEFAULT_ANSI_COLORS[4]),a.ansi[5]=p(m.magenta,r.DEFAULT_ANSI_COLORS[5]),a.ansi[6]=p(m.cyan,r.DEFAULT_ANSI_COLORS[6]),a.ansi[7]=p(m.white,r.DEFAULT_ANSI_COLORS[7]),a.ansi[8]=p(m.brightBlack,r.DEFAULT_ANSI_COLORS[8]),a.ansi[9]=p(m.brightRed,r.DEFAULT_ANSI_COLORS[9]),a.ansi[10]=p(m.brightGreen,r.DEFAULT_ANSI_COLORS[10]),a.ansi[11]=p(m.brightYellow,r.DEFAULT_ANSI_COLORS[11]),a.ansi[12]=p(m.brightBlue,r.DEFAULT_ANSI_COLORS[12]),a.ansi[13]=p(m.brightMagenta,r.DEFAULT_ANSI_COLORS[13]),a.ansi[14]=p(m.brightCyan,r.DEFAULT_ANSI_COLORS[14]),a.ansi[15]=p(m.brightWhite,r.DEFAULT_ANSI_COLORS[15]),m.extendedAnsi){const g=Math.min(a.ansi.length-16,m.extendedAnsi.length);for(let C=0;C{Object.defineProperty(r,"__esModule",{value:!0}),r.CircularList=void 0;const h=o(8460),f=o(844);class n extends f.Disposable{constructor(_){super(),this._maxLength=_,this.onDeleteEmitter=this.register(new h.EventEmitter),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this.register(new h.EventEmitter),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this.register(new h.EventEmitter),this.onTrim=this.onTrimEmitter.event,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(_){if(this._maxLength===_)return;const v=new Array(_);for(let u=0;uthis._length)for(let v=this._length;v<_;v++)this._array[v]=void 0;this._length=_}get(_){return this._array[this._getCyclicIndex(_)]}set(_,v){this._array[this._getCyclicIndex(_)]=v}push(_){this._array[this._getCyclicIndex(this._length)]=_,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++}recycle(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]}get isFull(){return this._length===this._maxLength}pop(){return this._array[this._getCyclicIndex(this._length---1)]}splice(_,v,...u){if(v){for(let e=_;e=_;e--)this._array[this._getCyclicIndex(e+u.length)]=this._array[this._getCyclicIndex(e)];for(let e=0;ethis._maxLength){const e=this._length+u.length-this._maxLength;this._startIndex+=e,this._length=this._maxLength,this.onTrimEmitter.fire(e)}else this._length+=u.length}trimStart(_){_>this._length&&(_=this._length),this._startIndex+=_,this._length-=_,this.onTrimEmitter.fire(_)}shiftElements(_,v,u){if(!(v<=0)){if(_<0||_>=this._length)throw new Error("start argument out of range");if(_+u<0)throw new Error("Cannot shift elements in list beyond index 0");if(u>0){for(let s=v-1;s>=0;s--)this.set(_+s+u,this.get(_+s));const e=_+v+u-this._length;if(e>0)for(this._length+=e;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let e=0;e{Object.defineProperty(r,"__esModule",{value:!0}),r.clone=void 0,r.clone=function o(h,f=5){if(typeof h!="object")return h;const n=Array.isArray(h)?[]:{};for(const d in h)n[d]=f<=1?h[d]:h[d]&&o(h[d],f-1);return n}},8055:(B,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.contrastRatio=r.toPaddedHex=r.rgba=r.rgb=r.css=r.color=r.channels=r.NULL_COLOR=void 0;const h=o(6114);let f=0,n=0,d=0,_=0;var v,u,e,s,t;function i(c){const p=c.toString(16);return p.length<2?"0"+p:p}function l(c,p){return c>>0}}(v||(r.channels=v={})),function(c){function p(m,a){return _=Math.round(255*a),[f,n,d]=t.toChannels(m.rgba),{css:v.toCss(f,n,d,_),rgba:v.toRgba(f,n,d,_)}}c.blend=function(m,a){if(_=(255&a.rgba)/255,_===1)return{css:a.css,rgba:a.rgba};const g=a.rgba>>24&255,C=a.rgba>>16&255,w=a.rgba>>8&255,y=m.rgba>>24&255,L=m.rgba>>16&255,I=m.rgba>>8&255;return f=y+Math.round((g-y)*_),n=L+Math.round((C-L)*_),d=I+Math.round((w-I)*_),{css:v.toCss(f,n,d),rgba:v.toRgba(f,n,d)}},c.isOpaque=function(m){return(255&m.rgba)==255},c.ensureContrastRatio=function(m,a,g){const C=t.ensureContrastRatio(m.rgba,a.rgba,g);if(C)return t.toColor(C>>24&255,C>>16&255,C>>8&255)},c.opaque=function(m){const a=(255|m.rgba)>>>0;return[f,n,d]=t.toChannels(a),{css:v.toCss(f,n,d),rgba:a}},c.opacity=p,c.multiplyOpacity=function(m,a){return _=255&m.rgba,p(m,_*a/255)},c.toColorRGB=function(m){return[m.rgba>>24&255,m.rgba>>16&255,m.rgba>>8&255]}}(u||(r.color=u={})),function(c){let p,m;if(!h.isNode){const a=document.createElement("canvas");a.width=1,a.height=1;const g=a.getContext("2d",{willReadFrequently:!0});g&&(p=g,p.globalCompositeOperation="copy",m=p.createLinearGradient(0,0,1,1))}c.toColor=function(a){if(a.match(/#[\da-f]{3,8}/i))switch(a.length){case 4:return f=parseInt(a.slice(1,2).repeat(2),16),n=parseInt(a.slice(2,3).repeat(2),16),d=parseInt(a.slice(3,4).repeat(2),16),t.toColor(f,n,d);case 5:return f=parseInt(a.slice(1,2).repeat(2),16),n=parseInt(a.slice(2,3).repeat(2),16),d=parseInt(a.slice(3,4).repeat(2),16),_=parseInt(a.slice(4,5).repeat(2),16),t.toColor(f,n,d,_);case 7:return{css:a,rgba:(parseInt(a.slice(1),16)<<8|255)>>>0};case 9:return{css:a,rgba:parseInt(a.slice(1),16)>>>0}}const g=a.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(g)return f=parseInt(g[1]),n=parseInt(g[2]),d=parseInt(g[3]),_=Math.round(255*(g[5]===void 0?1:parseFloat(g[5]))),t.toColor(f,n,d,_);if(!p||!m)throw new Error("css.toColor: Unsupported css format");if(p.fillStyle=m,p.fillStyle=a,typeof p.fillStyle!="string")throw new Error("css.toColor: Unsupported css format");if(p.fillRect(0,0,1,1),[f,n,d,_]=p.getImageData(0,0,1,1).data,_!==255)throw new Error("css.toColor: Unsupported css format");return{rgba:v.toRgba(f,n,d,_),css:a}}}(e||(r.css=e={})),function(c){function p(m,a,g){const C=m/255,w=a/255,y=g/255;return .2126*(C<=.03928?C/12.92:Math.pow((C+.055)/1.055,2.4))+.7152*(w<=.03928?w/12.92:Math.pow((w+.055)/1.055,2.4))+.0722*(y<=.03928?y/12.92:Math.pow((y+.055)/1.055,2.4))}c.relativeLuminance=function(m){return p(m>>16&255,m>>8&255,255&m)},c.relativeLuminance2=p}(s||(r.rgb=s={})),function(c){function p(a,g,C){const w=a>>24&255,y=a>>16&255,L=a>>8&255;let I=g>>24&255,H=g>>16&255,N=g>>8&255,$=l(s.relativeLuminance2(I,H,N),s.relativeLuminance2(w,y,L));for(;$0||H>0||N>0);)I-=Math.max(0,Math.ceil(.1*I)),H-=Math.max(0,Math.ceil(.1*H)),N-=Math.max(0,Math.ceil(.1*N)),$=l(s.relativeLuminance2(I,H,N),s.relativeLuminance2(w,y,L));return(I<<24|H<<16|N<<8|255)>>>0}function m(a,g,C){const w=a>>24&255,y=a>>16&255,L=a>>8&255;let I=g>>24&255,H=g>>16&255,N=g>>8&255,$=l(s.relativeLuminance2(I,H,N),s.relativeLuminance2(w,y,L));for(;$>>0}c.ensureContrastRatio=function(a,g,C){const w=s.relativeLuminance(a>>8),y=s.relativeLuminance(g>>8);if(l(w,y)>8));if(Nl(w,s.relativeLuminance($>>8))?H:$}return H}const L=m(a,g,C),I=l(w,s.relativeLuminance(L>>8));if(Il(w,s.relativeLuminance(H>>8))?L:H}return L}},c.reduceLuminance=p,c.increaseLuminance=m,c.toChannels=function(a){return[a>>24&255,a>>16&255,a>>8&255,255&a]},c.toColor=function(a,g,C,w){return{css:v.toCss(a,g,C,w),rgba:v.toRgba(a,g,C,w)}}}(t||(r.rgba=t={})),r.toPaddedHex=i,r.contrastRatio=l},8969:(B,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.CoreTerminal=void 0;const h=o(844),f=o(2585),n=o(4348),d=o(7866),_=o(744),v=o(7302),u=o(6975),e=o(8460),s=o(1753),t=o(1480),i=o(7994),l=o(9282),c=o(5435),p=o(5981),m=o(2660);let a=!1;class g extends h.Disposable{get onScroll(){return this._onScrollApi||(this._onScrollApi=this.register(new e.EventEmitter),this._onScroll.event(w=>{var y;(y=this._onScrollApi)===null||y===void 0||y.fire(w.position)})),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(w){for(const y in w)this.optionsService.options[y]=w[y]}constructor(w){super(),this._windowsWrappingHeuristics=this.register(new h.MutableDisposable),this._onBinary=this.register(new e.EventEmitter),this.onBinary=this._onBinary.event,this._onData=this.register(new e.EventEmitter),this.onData=this._onData.event,this._onLineFeed=this.register(new e.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onResize=this.register(new e.EventEmitter),this.onResize=this._onResize.event,this._onWriteParsed=this.register(new e.EventEmitter),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this.register(new e.EventEmitter),this._instantiationService=new n.InstantiationService,this.optionsService=this.register(new v.OptionsService(w)),this._instantiationService.setService(f.IOptionsService,this.optionsService),this._bufferService=this.register(this._instantiationService.createInstance(_.BufferService)),this._instantiationService.setService(f.IBufferService,this._bufferService),this._logService=this.register(this._instantiationService.createInstance(d.LogService)),this._instantiationService.setService(f.ILogService,this._logService),this.coreService=this.register(this._instantiationService.createInstance(u.CoreService)),this._instantiationService.setService(f.ICoreService,this.coreService),this.coreMouseService=this.register(this._instantiationService.createInstance(s.CoreMouseService)),this._instantiationService.setService(f.ICoreMouseService,this.coreMouseService),this.unicodeService=this.register(this._instantiationService.createInstance(t.UnicodeService)),this._instantiationService.setService(f.IUnicodeService,this.unicodeService),this._charsetService=this._instantiationService.createInstance(i.CharsetService),this._instantiationService.setService(f.ICharsetService,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(m.OscLinkService),this._instantiationService.setService(f.IOscLinkService,this._oscLinkService),this._inputHandler=this.register(new c.InputHandler(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this.register((0,e.forwardEvent)(this._inputHandler.onLineFeed,this._onLineFeed)),this.register(this._inputHandler),this.register((0,e.forwardEvent)(this._bufferService.onResize,this._onResize)),this.register((0,e.forwardEvent)(this.coreService.onData,this._onData)),this.register((0,e.forwardEvent)(this.coreService.onBinary,this._onBinary)),this.register(this.coreService.onRequestScrollToBottom(()=>this.scrollToBottom())),this.register(this.coreService.onUserInput(()=>this._writeBuffer.handleUserInput())),this.register(this.optionsService.onMultipleOptionChange(["windowsMode","windowsPty"],()=>this._handleWindowsPtyOptionChange())),this.register(this._bufferService.onScroll(y=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this.register(this._inputHandler.onScroll(y=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this._writeBuffer=this.register(new p.WriteBuffer((y,L)=>this._inputHandler.parse(y,L))),this.register((0,e.forwardEvent)(this._writeBuffer.onWriteParsed,this._onWriteParsed))}write(w,y){this._writeBuffer.write(w,y)}writeSync(w,y){this._logService.logLevel<=f.LogLevelEnum.WARN&&!a&&(this._logService.warn("writeSync is unreliable and will be removed soon."),a=!0),this._writeBuffer.writeSync(w,y)}resize(w,y){isNaN(w)||isNaN(y)||(w=Math.max(w,_.MINIMUM_COLS),y=Math.max(y,_.MINIMUM_ROWS),this._bufferService.resize(w,y))}scroll(w,y=!1){this._bufferService.scroll(w,y)}scrollLines(w,y,L){this._bufferService.scrollLines(w,y,L)}scrollPages(w){this.scrollLines(w*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(w){const y=w-this._bufferService.buffer.ydisp;y!==0&&this.scrollLines(y)}registerEscHandler(w,y){return this._inputHandler.registerEscHandler(w,y)}registerDcsHandler(w,y){return this._inputHandler.registerDcsHandler(w,y)}registerCsiHandler(w,y){return this._inputHandler.registerCsiHandler(w,y)}registerOscHandler(w,y){return this._inputHandler.registerOscHandler(w,y)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let w=!1;const y=this.optionsService.rawOptions.windowsPty;y&&y.buildNumber!==void 0&&y.buildNumber!==void 0?w=y.backend==="conpty"&&y.buildNumber<21376:this.optionsService.rawOptions.windowsMode&&(w=!0),w?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){const w=[];w.push(this.onLineFeed(l.updateWindowsModeWrappedState.bind(null,this._bufferService))),w.push(this.registerCsiHandler({final:"H"},()=>((0,l.updateWindowsModeWrappedState)(this._bufferService),!1))),this._windowsWrappingHeuristics.value=(0,h.toDisposable)(()=>{for(const y of w)y.dispose()})}}}r.CoreTerminal=g},8460:(B,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.forwardEvent=r.EventEmitter=void 0,r.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=o=>(this._listeners.push(o),{dispose:()=>{if(!this._disposed){for(let h=0;hh.fire(f))}},5435:function(B,r,o){var h=this&&this.__decorate||function($,b,E,k){var R,W=arguments.length,z=W<3?b:k===null?k=Object.getOwnPropertyDescriptor(b,E):k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")z=Reflect.decorate($,b,E,k);else for(var G=$.length-1;G>=0;G--)(R=$[G])&&(z=(W<3?R(z):W>3?R(b,E,z):R(b,E))||z);return W>3&&z&&Object.defineProperty(b,E,z),z},f=this&&this.__param||function($,b){return function(E,k){b(E,k,$)}};Object.defineProperty(r,"__esModule",{value:!0}),r.InputHandler=r.WindowsOptionsReportType=void 0;const n=o(2584),d=o(7116),_=o(2015),v=o(844),u=o(482),e=o(8437),s=o(8460),t=o(643),i=o(511),l=o(3734),c=o(2585),p=o(6242),m=o(6351),a=o(5941),g={"(":0,")":1,"*":2,"+":3,"-":1,".":2},C=131072;function w($,b){if($>24)return b.setWinLines||!1;switch($){case 1:return!!b.restoreWin;case 2:return!!b.minimizeWin;case 3:return!!b.setWinPosition;case 4:return!!b.setWinSizePixels;case 5:return!!b.raiseWin;case 6:return!!b.lowerWin;case 7:return!!b.refreshWin;case 8:return!!b.setWinSizeChars;case 9:return!!b.maximizeWin;case 10:return!!b.fullscreenWin;case 11:return!!b.getWinState;case 13:return!!b.getWinPosition;case 14:return!!b.getWinSizePixels;case 15:return!!b.getScreenSizePixels;case 16:return!!b.getCellSizePixels;case 18:return!!b.getWinSizeChars;case 19:return!!b.getScreenSizeChars;case 20:return!!b.getIconTitle;case 21:return!!b.getWinTitle;case 22:return!!b.pushTitle;case 23:return!!b.popTitle;case 24:return!!b.setWinLines}return!1}var y;(function($){$[$.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",$[$.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(y||(r.WindowsOptionsReportType=y={}));let L=0;class I extends v.Disposable{getAttrData(){return this._curAttrData}constructor(b,E,k,R,W,z,G,V,se=new _.EscapeSequenceParser){super(),this._bufferService=b,this._charsetService=E,this._coreService=k,this._logService=R,this._optionsService=W,this._oscLinkService=z,this._coreMouseService=G,this._unicodeService=V,this._parser=se,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new u.StringToUtf32,this._utf8Decoder=new u.Utf8ToUtf32,this._workCell=new i.CellData,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone(),this._onRequestBell=this.register(new s.EventEmitter),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this.register(new s.EventEmitter),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this.register(new s.EventEmitter),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this.register(new s.EventEmitter),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this.register(new s.EventEmitter),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this.register(new s.EventEmitter),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this.register(new s.EventEmitter),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this.register(new s.EventEmitter),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this.register(new s.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this.register(new s.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onScroll=this.register(new s.EventEmitter),this.onScroll=this._onScroll.event,this._onTitleChange=this.register(new s.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onColor=this.register(new s.EventEmitter),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this.register(this._parser),this._dirtyRowTracker=new H(this._bufferService),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate(S=>this._activeBuffer=S.activeBuffer)),this._parser.setCsiHandlerFallback((S,x)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(S),params:x.toArray()})}),this._parser.setEscHandlerFallback(S=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(S)})}),this._parser.setExecuteHandlerFallback(S=>{this._logService.debug("Unknown EXECUTE code: ",{code:S})}),this._parser.setOscHandlerFallback((S,x,P)=>{this._logService.debug("Unknown OSC code: ",{identifier:S,action:x,data:P})}),this._parser.setDcsHandlerFallback((S,x,P)=>{x==="HOOK"&&(P=P.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(S),action:x,payload:P})}),this._parser.setPrintHandler((S,x,P)=>this.print(S,x,P)),this._parser.registerCsiHandler({final:"@"},S=>this.insertChars(S)),this._parser.registerCsiHandler({intermediates:" ",final:"@"},S=>this.scrollLeft(S)),this._parser.registerCsiHandler({final:"A"},S=>this.cursorUp(S)),this._parser.registerCsiHandler({intermediates:" ",final:"A"},S=>this.scrollRight(S)),this._parser.registerCsiHandler({final:"B"},S=>this.cursorDown(S)),this._parser.registerCsiHandler({final:"C"},S=>this.cursorForward(S)),this._parser.registerCsiHandler({final:"D"},S=>this.cursorBackward(S)),this._parser.registerCsiHandler({final:"E"},S=>this.cursorNextLine(S)),this._parser.registerCsiHandler({final:"F"},S=>this.cursorPrecedingLine(S)),this._parser.registerCsiHandler({final:"G"},S=>this.cursorCharAbsolute(S)),this._parser.registerCsiHandler({final:"H"},S=>this.cursorPosition(S)),this._parser.registerCsiHandler({final:"I"},S=>this.cursorForwardTab(S)),this._parser.registerCsiHandler({final:"J"},S=>this.eraseInDisplay(S,!1)),this._parser.registerCsiHandler({prefix:"?",final:"J"},S=>this.eraseInDisplay(S,!0)),this._parser.registerCsiHandler({final:"K"},S=>this.eraseInLine(S,!1)),this._parser.registerCsiHandler({prefix:"?",final:"K"},S=>this.eraseInLine(S,!0)),this._parser.registerCsiHandler({final:"L"},S=>this.insertLines(S)),this._parser.registerCsiHandler({final:"M"},S=>this.deleteLines(S)),this._parser.registerCsiHandler({final:"P"},S=>this.deleteChars(S)),this._parser.registerCsiHandler({final:"S"},S=>this.scrollUp(S)),this._parser.registerCsiHandler({final:"T"},S=>this.scrollDown(S)),this._parser.registerCsiHandler({final:"X"},S=>this.eraseChars(S)),this._parser.registerCsiHandler({final:"Z"},S=>this.cursorBackwardTab(S)),this._parser.registerCsiHandler({final:"`"},S=>this.charPosAbsolute(S)),this._parser.registerCsiHandler({final:"a"},S=>this.hPositionRelative(S)),this._parser.registerCsiHandler({final:"b"},S=>this.repeatPrecedingCharacter(S)),this._parser.registerCsiHandler({final:"c"},S=>this.sendDeviceAttributesPrimary(S)),this._parser.registerCsiHandler({prefix:">",final:"c"},S=>this.sendDeviceAttributesSecondary(S)),this._parser.registerCsiHandler({final:"d"},S=>this.linePosAbsolute(S)),this._parser.registerCsiHandler({final:"e"},S=>this.vPositionRelative(S)),this._parser.registerCsiHandler({final:"f"},S=>this.hVPosition(S)),this._parser.registerCsiHandler({final:"g"},S=>this.tabClear(S)),this._parser.registerCsiHandler({final:"h"},S=>this.setMode(S)),this._parser.registerCsiHandler({prefix:"?",final:"h"},S=>this.setModePrivate(S)),this._parser.registerCsiHandler({final:"l"},S=>this.resetMode(S)),this._parser.registerCsiHandler({prefix:"?",final:"l"},S=>this.resetModePrivate(S)),this._parser.registerCsiHandler({final:"m"},S=>this.charAttributes(S)),this._parser.registerCsiHandler({final:"n"},S=>this.deviceStatus(S)),this._parser.registerCsiHandler({prefix:"?",final:"n"},S=>this.deviceStatusPrivate(S)),this._parser.registerCsiHandler({intermediates:"!",final:"p"},S=>this.softReset(S)),this._parser.registerCsiHandler({intermediates:" ",final:"q"},S=>this.setCursorStyle(S)),this._parser.registerCsiHandler({final:"r"},S=>this.setScrollRegion(S)),this._parser.registerCsiHandler({final:"s"},S=>this.saveCursor(S)),this._parser.registerCsiHandler({final:"t"},S=>this.windowOptions(S)),this._parser.registerCsiHandler({final:"u"},S=>this.restoreCursor(S)),this._parser.registerCsiHandler({intermediates:"'",final:"}"},S=>this.insertColumns(S)),this._parser.registerCsiHandler({intermediates:"'",final:"~"},S=>this.deleteColumns(S)),this._parser.registerCsiHandler({intermediates:'"',final:"q"},S=>this.selectProtected(S)),this._parser.registerCsiHandler({intermediates:"$",final:"p"},S=>this.requestMode(S,!0)),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},S=>this.requestMode(S,!1)),this._parser.setExecuteHandler(n.C0.BEL,()=>this.bell()),this._parser.setExecuteHandler(n.C0.LF,()=>this.lineFeed()),this._parser.setExecuteHandler(n.C0.VT,()=>this.lineFeed()),this._parser.setExecuteHandler(n.C0.FF,()=>this.lineFeed()),this._parser.setExecuteHandler(n.C0.CR,()=>this.carriageReturn()),this._parser.setExecuteHandler(n.C0.BS,()=>this.backspace()),this._parser.setExecuteHandler(n.C0.HT,()=>this.tab()),this._parser.setExecuteHandler(n.C0.SO,()=>this.shiftOut()),this._parser.setExecuteHandler(n.C0.SI,()=>this.shiftIn()),this._parser.setExecuteHandler(n.C1.IND,()=>this.index()),this._parser.setExecuteHandler(n.C1.NEL,()=>this.nextLine()),this._parser.setExecuteHandler(n.C1.HTS,()=>this.tabSet()),this._parser.registerOscHandler(0,new p.OscHandler(S=>(this.setTitle(S),this.setIconName(S),!0))),this._parser.registerOscHandler(1,new p.OscHandler(S=>this.setIconName(S))),this._parser.registerOscHandler(2,new p.OscHandler(S=>this.setTitle(S))),this._parser.registerOscHandler(4,new p.OscHandler(S=>this.setOrReportIndexedColor(S))),this._parser.registerOscHandler(8,new p.OscHandler(S=>this.setHyperlink(S))),this._parser.registerOscHandler(10,new p.OscHandler(S=>this.setOrReportFgColor(S))),this._parser.registerOscHandler(11,new p.OscHandler(S=>this.setOrReportBgColor(S))),this._parser.registerOscHandler(12,new p.OscHandler(S=>this.setOrReportCursorColor(S))),this._parser.registerOscHandler(104,new p.OscHandler(S=>this.restoreIndexedColor(S))),this._parser.registerOscHandler(110,new p.OscHandler(S=>this.restoreFgColor(S))),this._parser.registerOscHandler(111,new p.OscHandler(S=>this.restoreBgColor(S))),this._parser.registerOscHandler(112,new p.OscHandler(S=>this.restoreCursorColor(S))),this._parser.registerEscHandler({final:"7"},()=>this.saveCursor()),this._parser.registerEscHandler({final:"8"},()=>this.restoreCursor()),this._parser.registerEscHandler({final:"D"},()=>this.index()),this._parser.registerEscHandler({final:"E"},()=>this.nextLine()),this._parser.registerEscHandler({final:"H"},()=>this.tabSet()),this._parser.registerEscHandler({final:"M"},()=>this.reverseIndex()),this._parser.registerEscHandler({final:"="},()=>this.keypadApplicationMode()),this._parser.registerEscHandler({final:">"},()=>this.keypadNumericMode()),this._parser.registerEscHandler({final:"c"},()=>this.fullReset()),this._parser.registerEscHandler({final:"n"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"o"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"|"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"}"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"~"},()=>this.setgLevel(1)),this._parser.registerEscHandler({intermediates:"%",final:"@"},()=>this.selectDefaultCharset()),this._parser.registerEscHandler({intermediates:"%",final:"G"},()=>this.selectDefaultCharset());for(const S in d.CHARSETS)this._parser.registerEscHandler({intermediates:"(",final:S},()=>this.selectCharset("("+S)),this._parser.registerEscHandler({intermediates:")",final:S},()=>this.selectCharset(")"+S)),this._parser.registerEscHandler({intermediates:"*",final:S},()=>this.selectCharset("*"+S)),this._parser.registerEscHandler({intermediates:"+",final:S},()=>this.selectCharset("+"+S)),this._parser.registerEscHandler({intermediates:"-",final:S},()=>this.selectCharset("-"+S)),this._parser.registerEscHandler({intermediates:".",final:S},()=>this.selectCharset("."+S)),this._parser.registerEscHandler({intermediates:"/",final:S},()=>this.selectCharset("/"+S));this._parser.registerEscHandler({intermediates:"#",final:"8"},()=>this.screenAlignmentPattern()),this._parser.setErrorHandler(S=>(this._logService.error("Parsing error: ",S),S)),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new m.DcsHandler((S,x)=>this.requestStatusString(S,x)))}_preserveStack(b,E,k,R){this._parseStack.paused=!0,this._parseStack.cursorStartX=b,this._parseStack.cursorStartY=E,this._parseStack.decodedLength=k,this._parseStack.position=R}_logSlowResolvingAsync(b){this._logService.logLevel<=c.LogLevelEnum.WARN&&Promise.race([b,new Promise((E,k)=>setTimeout(()=>k("#SLOW_TIMEOUT"),5e3))]).catch(E=>{if(E!=="#SLOW_TIMEOUT")throw E;console.warn("async parser handler taking longer than 5000 ms")})}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(b,E){let k,R=this._activeBuffer.x,W=this._activeBuffer.y,z=0;const G=this._parseStack.paused;if(G){if(k=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,E))return this._logSlowResolvingAsync(k),k;R=this._parseStack.cursorStartX,W=this._parseStack.cursorStartY,this._parseStack.paused=!1,b.length>C&&(z=this._parseStack.position+C)}if(this._logService.logLevel<=c.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+(typeof b=="string"?` "${b}"`:` "${Array.prototype.map.call(b,V=>String.fromCharCode(V)).join("")}"`),typeof b=="string"?b.split("").map(V=>V.charCodeAt(0)):b),this._parseBuffer.lengthC)for(let V=z;V0&&P.getWidth(this._activeBuffer.x-1)===2&&P.setCellFromCodePoint(this._activeBuffer.x-1,0,1,x.fg,x.bg,x.extended);for(let O=E;O=V){if(se){for(;this._activeBuffer.x=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),P=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=V-1,W===2)continue}if(S&&(P.insertCells(this._activeBuffer.x,W,this._activeBuffer.getNullCell(x),x),P.getWidth(V-1)===2&&P.setCellFromCodePoint(V-1,t.NULL_CELL_CODE,t.NULL_CELL_WIDTH,x.fg,x.bg,x.extended)),P.setCellFromCodePoint(this._activeBuffer.x++,R,W,x.fg,x.bg,x.extended),W>0)for(;--W;)P.setCellFromCodePoint(this._activeBuffer.x++,0,0,x.fg,x.bg,x.extended)}else P.getWidth(this._activeBuffer.x-1)?P.addCodepointToCell(this._activeBuffer.x-1,R):P.addCodepointToCell(this._activeBuffer.x-2,R)}k-E>0&&(P.loadCell(this._activeBuffer.x-1,this._workCell),this._workCell.getWidth()===2||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),this._activeBuffer.x0&&P.getWidth(this._activeBuffer.x)===0&&!P.hasContent(this._activeBuffer.x)&&P.setCellFromCodePoint(this._activeBuffer.x,0,1,x.fg,x.bg,x.extended),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(b,E){return b.final!=="t"||b.prefix||b.intermediates?this._parser.registerCsiHandler(b,E):this._parser.registerCsiHandler(b,k=>!w(k.params[0],this._optionsService.rawOptions.windowOptions)||E(k))}registerDcsHandler(b,E){return this._parser.registerDcsHandler(b,new m.DcsHandler(E))}registerEscHandler(b,E){return this._parser.registerEscHandler(b,E)}registerOscHandler(b,E){return this._parser.registerOscHandler(b,new p.OscHandler(E))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){var b;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(this._activeBuffer.x===0&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&(!((b=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))===null||b===void 0)&&b.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;const E=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);E.hasWidth(this._activeBuffer.x)&&!E.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;const b=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-b),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(b=this._bufferService.cols-1){this._activeBuffer.x=Math.min(b,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(b,E){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=b,this._activeBuffer.y=this._activeBuffer.scrollTop+E):(this._activeBuffer.x=b,this._activeBuffer.y=E),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(b,E){this._restrictCursor(),this._setCursor(this._activeBuffer.x+b,this._activeBuffer.y+E)}cursorUp(b){const E=this._activeBuffer.y-this._activeBuffer.scrollTop;return E>=0?this._moveCursor(0,-Math.min(E,b.params[0]||1)):this._moveCursor(0,-(b.params[0]||1)),!0}cursorDown(b){const E=this._activeBuffer.scrollBottom-this._activeBuffer.y;return E>=0?this._moveCursor(0,Math.min(E,b.params[0]||1)):this._moveCursor(0,b.params[0]||1),!0}cursorForward(b){return this._moveCursor(b.params[0]||1,0),!0}cursorBackward(b){return this._moveCursor(-(b.params[0]||1),0),!0}cursorNextLine(b){return this.cursorDown(b),this._activeBuffer.x=0,!0}cursorPrecedingLine(b){return this.cursorUp(b),this._activeBuffer.x=0,!0}cursorCharAbsolute(b){return this._setCursor((b.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(b){return this._setCursor(b.length>=2?(b.params[1]||1)-1:0,(b.params[0]||1)-1),!0}charPosAbsolute(b){return this._setCursor((b.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(b){return this._moveCursor(b.params[0]||1,0),!0}linePosAbsolute(b){return this._setCursor(this._activeBuffer.x,(b.params[0]||1)-1),!0}vPositionRelative(b){return this._moveCursor(0,b.params[0]||1),!0}hVPosition(b){return this.cursorPosition(b),!0}tabClear(b){const E=b.params[0];return E===0?delete this._activeBuffer.tabs[this._activeBuffer.x]:E===3&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(b){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let E=b.params[0]||1;for(;E--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(b){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let E=b.params[0]||1;for(;E--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(b){const E=b.params[0];return E===1&&(this._curAttrData.bg|=536870912),E!==2&&E!==0||(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(b,E,k,R=!1,W=!1){const z=this._activeBuffer.lines.get(this._activeBuffer.ybase+b);z.replaceCells(E,k,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData(),W),R&&(z.isWrapped=!1)}_resetBufferLine(b,E=!1){const k=this._activeBuffer.lines.get(this._activeBuffer.ybase+b);k&&(k.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),E),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+b),k.isWrapped=!1)}eraseInDisplay(b,E=!1){let k;switch(this._restrictCursor(this._bufferService.cols),b.params[0]){case 0:for(k=this._activeBuffer.y,this._dirtyRowTracker.markDirty(k),this._eraseInBufferLine(k++,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,E);k=this._bufferService.cols&&(this._activeBuffer.lines.get(k+1).isWrapped=!1);k--;)this._resetBufferLine(k,E);this._dirtyRowTracker.markDirty(0);break;case 2:for(k=this._bufferService.rows,this._dirtyRowTracker.markDirty(k-1);k--;)this._resetBufferLine(k,E);this._dirtyRowTracker.markDirty(0);break;case 3:const R=this._activeBuffer.lines.length-this._bufferService.rows;R>0&&(this._activeBuffer.lines.trimStart(R),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-R,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-R,0),this._onScroll.fire(0))}return!0}eraseInLine(b,E=!1){switch(this._restrictCursor(this._bufferService.cols),b.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,E);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,E);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,E)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(b){this._restrictCursor();let E=b.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.y0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(n.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(n.C0.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(b){return b.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(n.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(n.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(b.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(n.C0.ESC+"[>83;40003;0c")),!0}_is(b){return(this._optionsService.rawOptions.termName+"").indexOf(b)===0}setMode(b){for(let E=0;Ete?1:2,O=b.params[0];return J=O,q=E?O===2?4:O===4?P(z.modes.insertMode):O===12?3:O===20?P(x.convertEol):0:O===1?P(k.applicationCursorKeys):O===3?x.windowOptions.setWinLines?V===80?2:V===132?1:0:0:O===6?P(k.origin):O===7?P(k.wraparound):O===8?3:O===9?P(R==="X10"):O===12?P(x.cursorBlink):O===25?P(!z.isCursorHidden):O===45?P(k.reverseWraparound):O===66?P(k.applicationKeypad):O===67?4:O===1e3?P(R==="VT200"):O===1002?P(R==="DRAG"):O===1003?P(R==="ANY"):O===1004?P(k.sendFocus):O===1005?4:O===1006?P(W==="SGR"):O===1015?4:O===1016?P(W==="SGR_PIXELS"):O===1048?1:O===47||O===1047||O===1049?P(se===S):O===2004?P(k.bracketedPasteMode):0,z.triggerDataEvent(`${n.C0.ESC}[${E?"":"?"}${J};${q}$y`),!0;var J,q}_updateAttrColor(b,E,k,R,W){return E===2?(b|=50331648,b&=-16777216,b|=l.AttributeData.fromColorRGB([k,R,W])):E===5&&(b&=-50331904,b|=33554432|255&k),b}_extractColor(b,E,k){const R=[0,0,-1,0,0,0];let W=0,z=0;do{if(R[z+W]=b.params[E+z],b.hasSubParams(E+z)){const G=b.getSubParams(E+z);let V=0;do R[1]===5&&(W=1),R[z+V+1+W]=G[V];while(++V=2||R[1]===2&&z+W>=5)break;R[1]&&(W=1)}while(++z+E5)&&(b=1),E.extended.underlineStyle=b,E.fg|=268435456,b===0&&(E.fg&=-268435457),E.updateExtended()}_processSGR0(b){b.fg=e.DEFAULT_ATTR_DATA.fg,b.bg=e.DEFAULT_ATTR_DATA.bg,b.extended=b.extended.clone(),b.extended.underlineStyle=0,b.extended.underlineColor&=-67108864,b.updateExtended()}charAttributes(b){if(b.length===1&&b.params[0]===0)return this._processSGR0(this._curAttrData),!0;const E=b.length;let k;const R=this._curAttrData;for(let W=0;W=30&&k<=37?(R.fg&=-50331904,R.fg|=16777216|k-30):k>=40&&k<=47?(R.bg&=-50331904,R.bg|=16777216|k-40):k>=90&&k<=97?(R.fg&=-50331904,R.fg|=16777224|k-90):k>=100&&k<=107?(R.bg&=-50331904,R.bg|=16777224|k-100):k===0?this._processSGR0(R):k===1?R.fg|=134217728:k===3?R.bg|=67108864:k===4?(R.fg|=268435456,this._processUnderline(b.hasSubParams(W)?b.getSubParams(W)[0]:1,R)):k===5?R.fg|=536870912:k===7?R.fg|=67108864:k===8?R.fg|=1073741824:k===9?R.fg|=2147483648:k===2?R.bg|=134217728:k===21?this._processUnderline(2,R):k===22?(R.fg&=-134217729,R.bg&=-134217729):k===23?R.bg&=-67108865:k===24?(R.fg&=-268435457,this._processUnderline(0,R)):k===25?R.fg&=-536870913:k===27?R.fg&=-67108865:k===28?R.fg&=-1073741825:k===29?R.fg&=2147483647:k===39?(R.fg&=-67108864,R.fg|=16777215&e.DEFAULT_ATTR_DATA.fg):k===49?(R.bg&=-67108864,R.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):k===38||k===48||k===58?W+=this._extractColor(b,W,R):k===53?R.bg|=1073741824:k===55?R.bg&=-1073741825:k===59?(R.extended=R.extended.clone(),R.extended.underlineColor=-1,R.updateExtended()):k===100?(R.fg&=-67108864,R.fg|=16777215&e.DEFAULT_ATTR_DATA.fg,R.bg&=-67108864,R.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",k);return!0}deviceStatus(b){switch(b.params[0]){case 5:this._coreService.triggerDataEvent(`${n.C0.ESC}[0n`);break;case 6:const E=this._activeBuffer.y+1,k=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${n.C0.ESC}[${E};${k}R`)}return!0}deviceStatusPrivate(b){if(b.params[0]===6){const E=this._activeBuffer.y+1,k=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${n.C0.ESC}[?${E};${k}R`)}return!0}softReset(b){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}setCursorStyle(b){const E=b.params[0]||1;switch(E){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}const k=E%2==1;return this._optionsService.options.cursorBlink=k,!0}setScrollRegion(b){const E=b.params[0]||1;let k;return(b.length<2||(k=b.params[1])>this._bufferService.rows||k===0)&&(k=this._bufferService.rows),k>E&&(this._activeBuffer.scrollTop=E-1,this._activeBuffer.scrollBottom=k-1,this._setCursor(0,0)),!0}windowOptions(b){if(!w(b.params[0],this._optionsService.rawOptions.windowOptions))return!0;const E=b.length>1?b.params[1]:0;switch(b.params[0]){case 14:E!==2&&this._onRequestWindowsOptionsReport.fire(y.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(y.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${n.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:E!==0&&E!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),E!==0&&E!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:E!==0&&E!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),E!==0&&E!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0}saveCursor(b){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(b){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(b){return this._windowTitle=b,this._onTitleChange.fire(b),!0}setIconName(b){return this._iconName=b,!0}setOrReportIndexedColor(b){const E=[],k=b.split(";");for(;k.length>1;){const R=k.shift(),W=k.shift();if(/^\d+$/.exec(R)){const z=parseInt(R);if(N(z))if(W==="?")E.push({type:0,index:z});else{const G=(0,a.parseColor)(W);G&&E.push({type:1,index:z,color:G})}}}return E.length&&this._onColor.fire(E),!0}setHyperlink(b){const E=b.split(";");return!(E.length<2)&&(E[1]?this._createHyperlink(E[0],E[1]):!E[0]&&this._finishHyperlink())}_createHyperlink(b,E){this._getCurrentLinkId()&&this._finishHyperlink();const k=b.split(":");let R;const W=k.findIndex(z=>z.startsWith("id="));return W!==-1&&(R=k[W].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:R,uri:E}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(b,E){const k=b.split(";");for(let R=0;R=this._specialColors.length);++R,++E)if(k[R]==="?")this._onColor.fire([{type:0,index:this._specialColors[E]}]);else{const W=(0,a.parseColor)(k[R]);W&&this._onColor.fire([{type:1,index:this._specialColors[E],color:W}])}return!0}setOrReportFgColor(b){return this._setOrReportSpecialColor(b,0)}setOrReportBgColor(b){return this._setOrReportSpecialColor(b,1)}setOrReportCursorColor(b){return this._setOrReportSpecialColor(b,2)}restoreIndexedColor(b){if(!b)return this._onColor.fire([{type:2}]),!0;const E=[],k=b.split(";");for(let R=0;R=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){const b=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,b,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal}setgLevel(b){return this._charsetService.setgLevel(b),!0}screenAlignmentPattern(){const b=new i.CellData;b.content=4194373,b.fg=this._curAttrData.fg,b.bg=this._curAttrData.bg,this._setCursor(0,0);for(let E=0;E(this._coreService.triggerDataEvent(`${n.C0.ESC}${W}${n.C0.ESC}\\`),!0))(b==='"q'?`P1$r${this._curAttrData.isProtected()?1:0}"q`:b==='"p'?'P1$r61;1"p':b==="r"?`P1$r${k.scrollTop+1};${k.scrollBottom+1}r`:b==="m"?"P1$r0m":b===" q"?`P1$r${{block:2,underline:4,bar:6}[R.cursorStyle]-(R.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(b,E){this._dirtyRowTracker.markRangeDirty(b,E)}}r.InputHandler=I;let H=class{constructor($){this._bufferService=$,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty($){$this.end&&(this.end=$)}markRangeDirty($,b){$>b&&(L=$,$=b,b=L),$this.end&&(this.end=b)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};function N($){return 0<=$&&$<256}H=h([f(0,c.IBufferService)],H)},844:(B,r)=>{function o(h){for(const f of h)f.dispose();h.length=0}Object.defineProperty(r,"__esModule",{value:!0}),r.getDisposeArrayDisposable=r.disposeArray=r.toDisposable=r.MutableDisposable=r.Disposable=void 0,r.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const h of this._disposables)h.dispose();this._disposables.length=0}register(h){return this._disposables.push(h),h}unregister(h){const f=this._disposables.indexOf(h);f!==-1&&this._disposables.splice(f,1)}},r.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(h){var f;this._isDisposed||h===this._value||((f=this._value)===null||f===void 0||f.dispose(),this._value=h)}clear(){this.value=void 0}dispose(){var h;this._isDisposed=!0,(h=this._value)===null||h===void 0||h.dispose(),this._value=void 0}},r.toDisposable=function(h){return{dispose:h}},r.disposeArray=o,r.getDisposeArrayDisposable=function(h){return{dispose:()=>o(h)}}},1505:(B,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.FourKeyMap=r.TwoKeyMap=void 0;class o{constructor(){this._data={}}set(f,n,d){this._data[f]||(this._data[f]={}),this._data[f][n]=d}get(f,n){return this._data[f]?this._data[f][n]:void 0}clear(){this._data={}}}r.TwoKeyMap=o,r.FourKeyMap=class{constructor(){this._data=new o}set(h,f,n,d,_){this._data.get(h,f)||this._data.set(h,f,new o),this._data.get(h,f).set(n,d,_)}get(h,f,n,d){var _;return(_=this._data.get(h,f))===null||_===void 0?void 0:_.get(n,d)}clear(){this._data.clear()}}},6114:(B,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.isChromeOS=r.isLinux=r.isWindows=r.isIphone=r.isIpad=r.isMac=r.getSafariVersion=r.isSafari=r.isLegacyEdge=r.isFirefox=r.isNode=void 0,r.isNode=typeof navigator>"u";const o=r.isNode?"node":navigator.userAgent,h=r.isNode?"node":navigator.platform;r.isFirefox=o.includes("Firefox"),r.isLegacyEdge=o.includes("Edge"),r.isSafari=/^((?!chrome|android).)*safari/i.test(o),r.getSafariVersion=function(){if(!r.isSafari)return 0;const f=o.match(/Version\/(\d+)/);return f===null||f.length<2?0:parseInt(f[1])},r.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(h),r.isIpad=h==="iPad",r.isIphone=h==="iPhone",r.isWindows=["Windows","Win16","Win32","WinCE"].includes(h),r.isLinux=h.indexOf("Linux")>=0,r.isChromeOS=/\bCrOS\b/.test(o)},6106:(B,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.SortedList=void 0;let o=0;r.SortedList=class{constructor(h){this._getKey=h,this._array=[]}clear(){this._array.length=0}insert(h){this._array.length!==0?(o=this._search(this._getKey(h)),this._array.splice(o,0,h)):this._array.push(h)}delete(h){if(this._array.length===0)return!1;const f=this._getKey(h);if(f===void 0||(o=this._search(f),o===-1)||this._getKey(this._array[o])!==f)return!1;do if(this._array[o]===h)return this._array.splice(o,1),!0;while(++o=this._array.length)&&this._getKey(this._array[o])===h))do yield this._array[o];while(++o=this._array.length)&&this._getKey(this._array[o])===h))do f(this._array[o]);while(++o=f;){let d=f+n>>1;const _=this._getKey(this._array[d]);if(_>h)n=d-1;else{if(!(_0&&this._getKey(this._array[d-1])===h;)d--;return d}f=d+1}}return f}}},7226:(B,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.DebouncedIdleTask=r.IdleTaskQueue=r.PriorityTaskQueue=void 0;const h=o(6114);class f{constructor(){this._tasks=[],this._i=0}enqueue(_){this._tasks.push(_),this._start()}flush(){for(;this._is)return e-v<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(e-v))}ms`),void this._start();e=s}this.clear()}}class n extends f{_requestCallback(_){return setTimeout(()=>_(this._createDeadline(16)))}_cancelCallback(_){clearTimeout(_)}_createDeadline(_){const v=Date.now()+_;return{timeRemaining:()=>Math.max(0,v-Date.now())}}}r.PriorityTaskQueue=n,r.IdleTaskQueue=!h.isNode&&"requestIdleCallback"in window?class extends f{_requestCallback(d){return requestIdleCallback(d)}_cancelCallback(d){cancelIdleCallback(d)}}:n,r.DebouncedIdleTask=class{constructor(){this._queue=new r.IdleTaskQueue}set(d){this._queue.clear(),this._queue.enqueue(d)}flush(){this._queue.flush()}}},9282:(B,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.updateWindowsModeWrappedState=void 0;const h=o(643);r.updateWindowsModeWrappedState=function(f){const n=f.buffer.lines.get(f.buffer.ybase+f.buffer.y-1),d=n==null?void 0:n.get(f.cols-1),_=f.buffer.lines.get(f.buffer.ybase+f.buffer.y);_&&d&&(_.isWrapped=d[h.CHAR_DATA_CODE_INDEX]!==h.NULL_CELL_CODE&&d[h.CHAR_DATA_CODE_INDEX]!==h.WHITESPACE_CELL_CODE)}},3734:(B,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ExtendedAttrs=r.AttributeData=void 0;class o{constructor(){this.fg=0,this.bg=0,this.extended=new h}static toColorRGB(n){return[n>>>16&255,n>>>8&255,255&n]}static fromColorRGB(n){return(255&n[0])<<16|(255&n[1])<<8|255&n[2]}clone(){const n=new o;return n.fg=this.fg,n.bg=this.bg,n.extended=this.extended.clone(),n}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}isOverline(){return 1073741824&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return(50331648&this.fg)==50331648}isBgRGB(){return(50331648&this.bg)==50331648}isFgPalette(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432}isBgPalette(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432}isFgDefault(){return(50331648&this.fg)==0}isBgDefault(){return(50331648&this.bg)==0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}}r.AttributeData=o;class h{get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(n){this._ext=n}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(n){this._ext&=-469762049,this._ext|=n<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(n){this._ext&=-67108864,this._ext|=67108863&n}get urlId(){return this._urlId}set urlId(n){this._urlId=n}constructor(n=0,d=0){this._ext=0,this._urlId=0,this._ext=n,this._urlId=d}clone(){return new h(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}}r.ExtendedAttrs=h},9092:(B,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Buffer=r.MAX_BUFFER_SIZE=void 0;const h=o(6349),f=o(7226),n=o(3734),d=o(8437),_=o(4634),v=o(511),u=o(643),e=o(4863),s=o(7116);r.MAX_BUFFER_SIZE=4294967295,r.Buffer=class{constructor(t,i,l){this._hasScrollback=t,this._optionsService=i,this._bufferService=l,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=d.DEFAULT_ATTR_DATA.clone(),this.savedCharset=s.DEFAULT_CHARSET,this.markers=[],this._nullCell=v.CellData.fromCharData([0,u.NULL_CELL_CHAR,u.NULL_CELL_WIDTH,u.NULL_CELL_CODE]),this._whitespaceCell=v.CellData.fromCharData([0,u.WHITESPACE_CELL_CHAR,u.WHITESPACE_CELL_WIDTH,u.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._memoryCleanupQueue=new f.IdleTaskQueue,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new h.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(t){return t?(this._nullCell.fg=t.fg,this._nullCell.bg=t.bg,this._nullCell.extended=t.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new n.ExtendedAttrs),this._nullCell}getWhitespaceCell(t){return t?(this._whitespaceCell.fg=t.fg,this._whitespaceCell.bg=t.bg,this._whitespaceCell.extended=t.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new n.ExtendedAttrs),this._whitespaceCell}getBlankLine(t,i){return new d.BufferLine(this._bufferService.cols,this.getNullCell(t),i)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){const t=this.ybase+this.y-this.ydisp;return t>=0&&tr.MAX_BUFFER_SIZE?r.MAX_BUFFER_SIZE:i}fillViewportRows(t){if(this.lines.length===0){t===void 0&&(t=d.DEFAULT_ATTR_DATA);let i=this._rows;for(;i--;)this.lines.push(this.getBlankLine(t))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new h.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(t,i){const l=this.getNullCell(d.DEFAULT_ATTR_DATA);let c=0;const p=this._getCorrectBufferLength(i);if(p>this.lines.maxLength&&(this.lines.maxLength=p),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+m+1?(this.ybase--,m++,this.ydisp>0&&this.ydisp--):this.lines.push(new d.BufferLine(t,l)));else for(let a=this._rows;a>i;a--)this.lines.length>i+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(p0&&(this.lines.trimStart(a),this.ybase=Math.max(this.ybase-a,0),this.ydisp=Math.max(this.ydisp-a,0),this.savedY=Math.max(this.savedY-a,0)),this.lines.maxLength=p}this.x=Math.min(this.x,t-1),this.y=Math.min(this.y,i-1),m&&(this.y+=m),this.savedX=Math.min(this.savedX,t-1),this.scrollTop=0}if(this.scrollBottom=i-1,this._isReflowEnabled&&(this._reflow(t,i),this._cols>t))for(let m=0;m.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue(()=>this._batchedMemoryCleanup()))}_batchedMemoryCleanup(){let t=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,t=!1);let i=0;for(;this._memoryCleanupPosition100)return!0;return t}get _isReflowEnabled(){const t=this._optionsService.rawOptions.windowsPty;return t&&t.buildNumber?this._hasScrollback&&t.backend==="conpty"&&t.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(t,i){this._cols!==t&&(t>this._cols?this._reflowLarger(t,i):this._reflowSmaller(t,i))}_reflowLarger(t,i){const l=(0,_.reflowLargerGetLinesToRemove)(this.lines,this._cols,t,this.ybase+this.y,this.getNullCell(d.DEFAULT_ATTR_DATA));if(l.length>0){const c=(0,_.reflowLargerCreateNewLayout)(this.lines,l);(0,_.reflowLargerApplyNewLayout)(this.lines,c.layout),this._reflowLargerAdjustViewport(t,i,c.countRemoved)}}_reflowLargerAdjustViewport(t,i,l){const c=this.getNullCell(d.DEFAULT_ATTR_DATA);let p=l;for(;p-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length=0;m--){let a=this.lines.get(m);if(!a||!a.isWrapped&&a.getTrimmedLength()<=t)continue;const g=[a];for(;a.isWrapped&&m>0;)a=this.lines.get(--m),g.unshift(a);const C=this.ybase+this.y;if(C>=m&&C0&&(c.push({start:m+g.length+p,newLines:H}),p+=H.length),g.push(...H);let N=y.length-1,$=y[N];$===0&&(N--,$=y[N]);let b=g.length-L-1,E=w;for(;b>=0;){const R=Math.min(E,$);if(g[N]===void 0)break;if(g[N].copyCellsFrom(g[b],E-R,$-R,R,!0),$-=R,$===0&&(N--,$=y[N]),E-=R,E===0){b--;const W=Math.max(b,0);E=(0,_.getWrappedLineTrimmedLength)(g,W,this._cols)}}for(let R=0;R0;)this.ybase===0?this.y0){const m=[],a=[];for(let N=0;N=0;N--)if(y&&y.start>C+L){for(let $=y.newLines.length-1;$>=0;$--)this.lines.set(N--,y.newLines[$]);N++,m.push({index:C+1,amount:y.newLines.length}),L+=y.newLines.length,y=c[++w]}else this.lines.set(N,a[C--]);let I=0;for(let N=m.length-1;N>=0;N--)m[N].index+=I,this.lines.onInsertEmitter.fire(m[N]),I+=m[N].amount;const H=Math.max(0,g+p-this.lines.maxLength);H>0&&this.lines.onTrimEmitter.fire(H)}}translateBufferLineToString(t,i,l=0,c){const p=this.lines.get(t);return p?p.translateToString(i,l,c):""}getWrappedRangeForLine(t){let i=t,l=t;for(;i>0&&this.lines.get(i).isWrapped;)i--;for(;l+10;);return t>=this._cols?this._cols-1:t<0?0:t}nextStop(t){for(t==null&&(t=this.x);!this.tabs[++t]&&t=this._cols?this._cols-1:t<0?0:t}clearMarkers(t){this._isClearing=!0;for(let i=0;i{i.line-=l,i.line<0&&i.dispose()})),i.register(this.lines.onInsert(l=>{i.line>=l.index&&(i.line+=l.amount)})),i.register(this.lines.onDelete(l=>{i.line>=l.index&&i.linel.index&&(i.line-=l.amount)})),i.register(i.onDispose(()=>this._removeMarker(i))),i}_removeMarker(t){this._isClearing||this.markers.splice(this.markers.indexOf(t),1)}}},8437:(B,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferLine=r.DEFAULT_ATTR_DATA=void 0;const h=o(3734),f=o(511),n=o(643),d=o(482);r.DEFAULT_ATTR_DATA=Object.freeze(new h.AttributeData);let _=0;class v{constructor(e,s,t=!1){this.isWrapped=t,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*e);const i=s||f.CellData.fromCharData([0,n.NULL_CELL_CHAR,n.NULL_CELL_WIDTH,n.NULL_CELL_CODE]);for(let l=0;l>22,2097152&s?this._combined[e].charCodeAt(this._combined[e].length-1):t]}set(e,s){this._data[3*e+1]=s[n.CHAR_DATA_ATTR_INDEX],s[n.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[e]=s[1],this._data[3*e+0]=2097152|e|s[n.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*e+0]=s[n.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|s[n.CHAR_DATA_WIDTH_INDEX]<<22}getWidth(e){return this._data[3*e+0]>>22}hasWidth(e){return 12582912&this._data[3*e+0]}getFg(e){return this._data[3*e+1]}getBg(e){return this._data[3*e+2]}hasContent(e){return 4194303&this._data[3*e+0]}getCodePoint(e){const s=this._data[3*e+0];return 2097152&s?this._combined[e].charCodeAt(this._combined[e].length-1):2097151&s}isCombined(e){return 2097152&this._data[3*e+0]}getString(e){const s=this._data[3*e+0];return 2097152&s?this._combined[e]:2097151&s?(0,d.stringFromCodePoint)(2097151&s):""}isProtected(e){return 536870912&this._data[3*e+2]}loadCell(e,s){return _=3*e,s.content=this._data[_+0],s.fg=this._data[_+1],s.bg=this._data[_+2],2097152&s.content&&(s.combinedData=this._combined[e]),268435456&s.bg&&(s.extended=this._extendedAttrs[e]),s}setCell(e,s){2097152&s.content&&(this._combined[e]=s.combinedData),268435456&s.bg&&(this._extendedAttrs[e]=s.extended),this._data[3*e+0]=s.content,this._data[3*e+1]=s.fg,this._data[3*e+2]=s.bg}setCellFromCodePoint(e,s,t,i,l,c){268435456&l&&(this._extendedAttrs[e]=c),this._data[3*e+0]=s|t<<22,this._data[3*e+1]=i,this._data[3*e+2]=l}addCodepointToCell(e,s){let t=this._data[3*e+0];2097152&t?this._combined[e]+=(0,d.stringFromCodePoint)(s):(2097151&t?(this._combined[e]=(0,d.stringFromCodePoint)(2097151&t)+(0,d.stringFromCodePoint)(s),t&=-2097152,t|=2097152):t=s|4194304,this._data[3*e+0]=t)}insertCells(e,s,t,i){if((e%=this.length)&&this.getWidth(e-1)===2&&this.setCellFromCodePoint(e-1,0,1,(i==null?void 0:i.fg)||0,(i==null?void 0:i.bg)||0,(i==null?void 0:i.extended)||new h.ExtendedAttrs),s=0;--c)this.setCell(e+s+c,this.loadCell(e+c,l));for(let c=0;cthis.length){if(this._data.buffer.byteLength>=4*t)this._data=new Uint32Array(this._data.buffer,0,t);else{const i=new Uint32Array(t);i.set(this._data),this._data=i}for(let i=this.length;i=e&&delete this._combined[p]}const l=Object.keys(this._extendedAttrs);for(let c=0;c=e&&delete this._extendedAttrs[p]}}return this.length=e,4*t*2=0;--e)if(4194303&this._data[3*e+0])return e+(this._data[3*e+0]>>22);return 0}getNoBgTrimmedLength(){for(let e=this.length-1;e>=0;--e)if(4194303&this._data[3*e+0]||50331648&this._data[3*e+2])return e+(this._data[3*e+0]>>22);return 0}copyCellsFrom(e,s,t,i,l){const c=e._data;if(l)for(let m=i-1;m>=0;m--){for(let a=0;a<3;a++)this._data[3*(t+m)+a]=c[3*(s+m)+a];268435456&c[3*(s+m)+2]&&(this._extendedAttrs[t+m]=e._extendedAttrs[s+m])}else for(let m=0;m=s&&(this._combined[a-s+t]=e._combined[a])}}translateToString(e=!1,s=0,t=this.length){e&&(t=Math.min(t,this.getTrimmedLength()));let i="";for(;s>22||1}return i}}r.BufferLine=v},4841:(B,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.getRangeLength=void 0,r.getRangeLength=function(o,h){if(o.start.y>o.end.y)throw new Error(`Buffer range end (${o.end.x}, ${o.end.y}) cannot be before start (${o.start.x}, ${o.start.y})`);return h*(o.end.y-o.start.y)+(o.end.x-o.start.x+1)}},4634:(B,r)=>{function o(h,f,n){if(f===h.length-1)return h[f].getTrimmedLength();const d=!h[f].hasContent(n-1)&&h[f].getWidth(n-1)===1,_=h[f+1].getWidth(0)===2;return d&&_?n-1:n}Object.defineProperty(r,"__esModule",{value:!0}),r.getWrappedLineTrimmedLength=r.reflowSmallerGetNewLineLengths=r.reflowLargerApplyNewLayout=r.reflowLargerCreateNewLayout=r.reflowLargerGetLinesToRemove=void 0,r.reflowLargerGetLinesToRemove=function(h,f,n,d,_){const v=[];for(let u=0;u=u&&d0&&(a>i||t[a].getTrimmedLength()===0);a--)m++;m>0&&(v.push(u+t.length-m),v.push(m)),u+=t.length-1}return v},r.reflowLargerCreateNewLayout=function(h,f){const n=[];let d=0,_=f[d],v=0;for(let u=0;uo(h,t,f)).reduce((s,t)=>s+t);let v=0,u=0,e=0;for(;e<_;){if(_-es&&(v-=s,u++);const t=h[u].getWidth(v-1)===2;t&&v--;const i=t?n-1:n;d.push(i),e+=i}return d},r.getWrappedLineTrimmedLength=o},5295:(B,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferSet=void 0;const h=o(8460),f=o(844),n=o(9092);class d extends f.Disposable{constructor(v,u){super(),this._optionsService=v,this._bufferService=u,this._onBufferActivate=this.register(new h.EventEmitter),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this.register(this._optionsService.onSpecificOptionChange("scrollback",()=>this.resize(this._bufferService.cols,this._bufferService.rows))),this.register(this._optionsService.onSpecificOptionChange("tabStopWidth",()=>this.setupTabStops()))}reset(){this._normal=new n.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new n.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(v){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(v),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(v,u){this._normal.resize(v,u),this._alt.resize(v,u),this.setupTabStops(v)}setupTabStops(v){this._normal.setupTabStops(v),this._alt.setupTabStops(v)}}r.BufferSet=d},511:(B,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.CellData=void 0;const h=o(482),f=o(643),n=o(3734);class d extends n.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new n.ExtendedAttrs,this.combinedData=""}static fromCharData(v){const u=new d;return u.setFromCharData(v),u}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,h.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(v){this.fg=v[f.CHAR_DATA_ATTR_INDEX],this.bg=0;let u=!1;if(v[f.CHAR_DATA_CHAR_INDEX].length>2)u=!0;else if(v[f.CHAR_DATA_CHAR_INDEX].length===2){const e=v[f.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=e&&e<=56319){const s=v[f.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=s&&s<=57343?this.content=1024*(e-55296)+s-56320+65536|v[f.CHAR_DATA_WIDTH_INDEX]<<22:u=!0}else u=!0}else this.content=v[f.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|v[f.CHAR_DATA_WIDTH_INDEX]<<22;u&&(this.combinedData=v[f.CHAR_DATA_CHAR_INDEX],this.content=2097152|v[f.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}r.CellData=d},643:(B,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.WHITESPACE_CELL_CODE=r.WHITESPACE_CELL_WIDTH=r.WHITESPACE_CELL_CHAR=r.NULL_CELL_CODE=r.NULL_CELL_WIDTH=r.NULL_CELL_CHAR=r.CHAR_DATA_CODE_INDEX=r.CHAR_DATA_WIDTH_INDEX=r.CHAR_DATA_CHAR_INDEX=r.CHAR_DATA_ATTR_INDEX=r.DEFAULT_EXT=r.DEFAULT_ATTR=r.DEFAULT_COLOR=void 0,r.DEFAULT_COLOR=0,r.DEFAULT_ATTR=256|r.DEFAULT_COLOR<<9,r.DEFAULT_EXT=0,r.CHAR_DATA_ATTR_INDEX=0,r.CHAR_DATA_CHAR_INDEX=1,r.CHAR_DATA_WIDTH_INDEX=2,r.CHAR_DATA_CODE_INDEX=3,r.NULL_CELL_CHAR="",r.NULL_CELL_WIDTH=1,r.NULL_CELL_CODE=0,r.WHITESPACE_CELL_CHAR=" ",r.WHITESPACE_CELL_WIDTH=1,r.WHITESPACE_CELL_CODE=32},4863:(B,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Marker=void 0;const h=o(8460),f=o(844);class n{get id(){return this._id}constructor(_){this.line=_,this.isDisposed=!1,this._disposables=[],this._id=n._nextId++,this._onDispose=this.register(new h.EventEmitter),this.onDispose=this._onDispose.event}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),(0,f.disposeArray)(this._disposables),this._disposables.length=0)}register(_){return this._disposables.push(_),_}}r.Marker=n,n._nextId=1},7116:(B,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.DEFAULT_CHARSET=r.CHARSETS=void 0,r.CHARSETS={},r.DEFAULT_CHARSET=r.CHARSETS.B,r.CHARSETS[0]={"`":"◆",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:"≥","{":"π","|":"≠","}":"£","~":"·"},r.CHARSETS.A={"#":"£"},r.CHARSETS.B=void 0,r.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},r.CHARSETS.C=r.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},r.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},r.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},r.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},r.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},r.CHARSETS.E=r.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},r.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},r.CHARSETS.H=r.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},r.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},2584:(B,r)=>{var o,h,f;Object.defineProperty(r,"__esModule",{value:!0}),r.C1_ESCAPED=r.C1=r.C0=void 0,function(n){n.NUL="\0",n.SOH="",n.STX="",n.ETX="",n.EOT="",n.ENQ="",n.ACK="",n.BEL="\x07",n.BS="\b",n.HT=" ",n.LF=`
`,n.VT="\v",n.FF="\f",n.CR="\r",n.SO="",n.SI="",n.DLE="",n.DC1="",n.DC2="",n.DC3="",n.DC4="",n.NAK="",n.SYN="",n.ETB="",n.CAN="",n.EM="",n.SUB="",n.ESC="\x1B",n.FS="",n.GS="",n.RS="",n.US="",n.SP=" ",n.DEL=""}(o||(r.C0=o={})),function(n){n.PAD="",n.HOP="",n.BPH="",n.NBH="",n.IND="",n.NEL="
",n.SSA="",n.ESA="",n.HTS="",n.HTJ="",n.VTS="",n.PLD="",n.PLU="",n.RI="",n.SS2="",n.SS3="",n.DCS="",n.PU1="",n.PU2="",n.STS="",n.CCH="",n.MW="",n.SPA="",n.EPA="",n.SOS="",n.SGCI="",n.SCI="",n.CSI="",n.ST="",n.OSC="",n.PM="",n.APC=""}(h||(r.C1=h={})),function(n){n.ST=`${o.ESC}\\`}(f||(r.C1_ESCAPED=f={}))},7399:(B,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.evaluateKeyboardEvent=void 0;const h=o(2584),f={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};r.evaluateKeyboardEvent=function(n,d,_,v){const u={type:0,cancel:!1,key:void 0},e=(n.shiftKey?1:0)|(n.altKey?2:0)|(n.ctrlKey?4:0)|(n.metaKey?8:0);switch(n.keyCode){case 0:n.key==="UIKeyInputUpArrow"?u.key=d?h.C0.ESC+"OA":h.C0.ESC+"[A":n.key==="UIKeyInputLeftArrow"?u.key=d?h.C0.ESC+"OD":h.C0.ESC+"[D":n.key==="UIKeyInputRightArrow"?u.key=d?h.C0.ESC+"OC":h.C0.ESC+"[C":n.key==="UIKeyInputDownArrow"&&(u.key=d?h.C0.ESC+"OB":h.C0.ESC+"[B");break;case 8:if(n.altKey){u.key=h.C0.ESC+h.C0.DEL;break}u.key=h.C0.DEL;break;case 9:if(n.shiftKey){u.key=h.C0.ESC+"[Z";break}u.key=h.C0.HT,u.cancel=!0;break;case 13:u.key=n.altKey?h.C0.ESC+h.C0.CR:h.C0.CR,u.cancel=!0;break;case 27:u.key=h.C0.ESC,n.altKey&&(u.key=h.C0.ESC+h.C0.ESC),u.cancel=!0;break;case 37:if(n.metaKey)break;e?(u.key=h.C0.ESC+"[1;"+(e+1)+"D",u.key===h.C0.ESC+"[1;3D"&&(u.key=h.C0.ESC+(_?"b":"[1;5D"))):u.key=d?h.C0.ESC+"OD":h.C0.ESC+"[D";break;case 39:if(n.metaKey)break;e?(u.key=h.C0.ESC+"[1;"+(e+1)+"C",u.key===h.C0.ESC+"[1;3C"&&(u.key=h.C0.ESC+(_?"f":"[1;5C"))):u.key=d?h.C0.ESC+"OC":h.C0.ESC+"[C";break;case 38:if(n.metaKey)break;e?(u.key=h.C0.ESC+"[1;"+(e+1)+"A",_||u.key!==h.C0.ESC+"[1;3A"||(u.key=h.C0.ESC+"[1;5A")):u.key=d?h.C0.ESC+"OA":h.C0.ESC+"[A";break;case 40:if(n.metaKey)break;e?(u.key=h.C0.ESC+"[1;"+(e+1)+"B",_||u.key!==h.C0.ESC+"[1;3B"||(u.key=h.C0.ESC+"[1;5B")):u.key=d?h.C0.ESC+"OB":h.C0.ESC+"[B";break;case 45:n.shiftKey||n.ctrlKey||(u.key=h.C0.ESC+"[2~");break;case 46:u.key=e?h.C0.ESC+"[3;"+(e+1)+"~":h.C0.ESC+"[3~";break;case 36:u.key=e?h.C0.ESC+"[1;"+(e+1)+"H":d?h.C0.ESC+"OH":h.C0.ESC+"[H";break;case 35:u.key=e?h.C0.ESC+"[1;"+(e+1)+"F":d?h.C0.ESC+"OF":h.C0.ESC+"[F";break;case 33:n.shiftKey?u.type=2:n.ctrlKey?u.key=h.C0.ESC+"[5;"+(e+1)+"~":u.key=h.C0.ESC+"[5~";break;case 34:n.shiftKey?u.type=3:n.ctrlKey?u.key=h.C0.ESC+"[6;"+(e+1)+"~":u.key=h.C0.ESC+"[6~";break;case 112:u.key=e?h.C0.ESC+"[1;"+(e+1)+"P":h.C0.ESC+"OP";break;case 113:u.key=e?h.C0.ESC+"[1;"+(e+1)+"Q":h.C0.ESC+"OQ";break;case 114:u.key=e?h.C0.ESC+"[1;"+(e+1)+"R":h.C0.ESC+"OR";break;case 115:u.key=e?h.C0.ESC+"[1;"+(e+1)+"S":h.C0.ESC+"OS";break;case 116:u.key=e?h.C0.ESC+"[15;"+(e+1)+"~":h.C0.ESC+"[15~";break;case 117:u.key=e?h.C0.ESC+"[17;"+(e+1)+"~":h.C0.ESC+"[17~";break;case 118:u.key=e?h.C0.ESC+"[18;"+(e+1)+"~":h.C0.ESC+"[18~";break;case 119:u.key=e?h.C0.ESC+"[19;"+(e+1)+"~":h.C0.ESC+"[19~";break;case 120:u.key=e?h.C0.ESC+"[20;"+(e+1)+"~":h.C0.ESC+"[20~";break;case 121:u.key=e?h.C0.ESC+"[21;"+(e+1)+"~":h.C0.ESC+"[21~";break;case 122:u.key=e?h.C0.ESC+"[23;"+(e+1)+"~":h.C0.ESC+"[23~";break;case 123:u.key=e?h.C0.ESC+"[24;"+(e+1)+"~":h.C0.ESC+"[24~";break;default:if(!n.ctrlKey||n.shiftKey||n.altKey||n.metaKey)if(_&&!v||!n.altKey||n.metaKey)!_||n.altKey||n.ctrlKey||n.shiftKey||!n.metaKey?n.key&&!n.ctrlKey&&!n.altKey&&!n.metaKey&&n.keyCode>=48&&n.key.length===1?u.key=n.key:n.key&&n.ctrlKey&&(n.key==="_"&&(u.key=h.C0.US),n.key==="@"&&(u.key=h.C0.NUL)):n.keyCode===65&&(u.type=1);else{const s=f[n.keyCode],t=s==null?void 0:s[n.shiftKey?1:0];if(t)u.key=h.C0.ESC+t;else if(n.keyCode>=65&&n.keyCode<=90){const i=n.ctrlKey?n.keyCode-64:n.keyCode+32;let l=String.fromCharCode(i);n.shiftKey&&(l=l.toUpperCase()),u.key=h.C0.ESC+l}else if(n.keyCode===32)u.key=h.C0.ESC+(n.ctrlKey?h.C0.NUL:" ");else if(n.key==="Dead"&&n.code.startsWith("Key")){let i=n.code.slice(3,4);n.shiftKey||(i=i.toLowerCase()),u.key=h.C0.ESC+i,u.cancel=!0}}else n.keyCode>=65&&n.keyCode<=90?u.key=String.fromCharCode(n.keyCode-64):n.keyCode===32?u.key=h.C0.NUL:n.keyCode>=51&&n.keyCode<=55?u.key=String.fromCharCode(n.keyCode-51+27):n.keyCode===56?u.key=h.C0.DEL:n.keyCode===219?u.key=h.C0.ESC:n.keyCode===220?u.key=h.C0.FS:n.keyCode===221&&(u.key=h.C0.GS)}return u}},482:(B,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Utf8ToUtf32=r.StringToUtf32=r.utf32ToString=r.stringFromCodePoint=void 0,r.stringFromCodePoint=function(o){return o>65535?(o-=65536,String.fromCharCode(55296+(o>>10))+String.fromCharCode(o%1024+56320)):String.fromCharCode(o)},r.utf32ToString=function(o,h=0,f=o.length){let n="";for(let d=h;d65535?(_-=65536,n+=String.fromCharCode(55296+(_>>10))+String.fromCharCode(_%1024+56320)):n+=String.fromCharCode(_)}return n},r.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(o,h){const f=o.length;if(!f)return 0;let n=0,d=0;if(this._interim){const _=o.charCodeAt(d++);56320<=_&&_<=57343?h[n++]=1024*(this._interim-55296)+_-56320+65536:(h[n++]=this._interim,h[n++]=_),this._interim=0}for(let _=d;_=f)return this._interim=v,n;const u=o.charCodeAt(_);56320<=u&&u<=57343?h[n++]=1024*(v-55296)+u-56320+65536:(h[n++]=v,h[n++]=u)}else v!==65279&&(h[n++]=v)}return n}},r.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(o,h){const f=o.length;if(!f)return 0;let n,d,_,v,u=0,e=0,s=0;if(this.interim[0]){let l=!1,c=this.interim[0];c&=(224&c)==192?31:(240&c)==224?15:7;let p,m=0;for(;(p=63&this.interim[++m])&&m<4;)c<<=6,c|=p;const a=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,g=a-m;for(;s=f)return 0;if(p=o[s++],(192&p)!=128){s--,l=!0;break}this.interim[m++]=p,c<<=6,c|=63&p}l||(a===2?c<128?s--:h[u++]=c:a===3?c<2048||c>=55296&&c<=57343||c===65279||(h[u++]=c):c<65536||c>1114111||(h[u++]=c)),this.interim.fill(0)}const t=f-4;let i=s;for(;i=f)return this.interim[0]=n,u;if(d=o[i++],(192&d)!=128){i--;continue}if(e=(31&n)<<6|63&d,e<128){i--;continue}h[u++]=e}else if((240&n)==224){if(i>=f)return this.interim[0]=n,u;if(d=o[i++],(192&d)!=128){i--;continue}if(i>=f)return this.interim[0]=n,this.interim[1]=d,u;if(_=o[i++],(192&_)!=128){i--;continue}if(e=(15&n)<<12|(63&d)<<6|63&_,e<2048||e>=55296&&e<=57343||e===65279)continue;h[u++]=e}else if((248&n)==240){if(i>=f)return this.interim[0]=n,u;if(d=o[i++],(192&d)!=128){i--;continue}if(i>=f)return this.interim[0]=n,this.interim[1]=d,u;if(_=o[i++],(192&_)!=128){i--;continue}if(i>=f)return this.interim[0]=n,this.interim[1]=d,this.interim[2]=_,u;if(v=o[i++],(192&v)!=128){i--;continue}if(e=(7&n)<<18|(63&d)<<12|(63&_)<<6|63&v,e<65536||e>1114111)continue;h[u++]=e}}return u}}},225:(B,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.UnicodeV6=void 0;const o=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],h=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]];let f;r.UnicodeV6=class{constructor(){if(this.version="6",!f){f=new Uint8Array(65536),f.fill(1),f[0]=0,f.fill(0,1,32),f.fill(0,127,160),f.fill(2,4352,4448),f[9001]=2,f[9002]=2,f.fill(2,11904,42192),f[12351]=1,f.fill(2,44032,55204),f.fill(2,63744,64256),f.fill(2,65040,65050),f.fill(2,65072,65136),f.fill(2,65280,65377),f.fill(2,65504,65511);for(let n=0;n_[e][1])return!1;for(;e>=u;)if(v=u+e>>1,d>_[v][1])u=v+1;else{if(!(d<_[v][0]))return!0;e=v-1}return!1}(n,h)?0:n>=131072&&n<=196605||n>=196608&&n<=262141?2:1}}},5981:(B,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.WriteBuffer=void 0;const h=o(8460),f=o(844);class n extends f.Disposable{constructor(_){super(),this._action=_,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this.register(new h.EventEmitter),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(_,v){if(v!==void 0&&this._syncCalls>v)return void(this._syncCalls=0);if(this._pendingData+=_.length,this._writeBuffer.push(_),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;let u;for(this._isSyncWriting=!0;u=this._writeBuffer.shift();){this._action(u);const e=this._callbacks.shift();e&&e()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(_,v){if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput)return this._didUserInput=!1,this._pendingData+=_.length,this._writeBuffer.push(_),this._callbacks.push(v),void this._innerWrite();setTimeout(()=>this._innerWrite())}this._pendingData+=_.length,this._writeBuffer.push(_),this._callbacks.push(v)}_innerWrite(_=0,v=!0){const u=_||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){const e=this._writeBuffer[this._bufferOffset],s=this._action(e,v);if(s){const i=l=>Date.now()-u>=12?setTimeout(()=>this._innerWrite(0,l)):this._innerWrite(u,l);return void s.catch(l=>(queueMicrotask(()=>{throw l}),Promise.resolve(!1))).then(i)}const t=this._callbacks[this._bufferOffset];if(t&&t(),this._bufferOffset++,this._pendingData-=e.length,Date.now()-u>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(()=>this._innerWrite())):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}}r.WriteBuffer=n},5941:(B,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.toRgbString=r.parseColor=void 0;const o=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,h=/^[\da-f]+$/;function f(n,d){const _=n.toString(16),v=_.length<2?"0"+_:_;switch(d){case 4:return _[0];case 8:return v;case 12:return(v+v).slice(0,3);default:return v+v}}r.parseColor=function(n){if(!n)return;let d=n.toLowerCase();if(d.indexOf("rgb:")===0){d=d.slice(4);const _=o.exec(d);if(_){const v=_[1]?15:_[4]?255:_[7]?4095:65535;return[Math.round(parseInt(_[1]||_[4]||_[7]||_[10],16)/v*255),Math.round(parseInt(_[2]||_[5]||_[8]||_[11],16)/v*255),Math.round(parseInt(_[3]||_[6]||_[9]||_[12],16)/v*255)]}}else if(d.indexOf("#")===0&&(d=d.slice(1),h.exec(d)&&[3,6,9,12].includes(d.length))){const _=d.length/3,v=[0,0,0];for(let u=0;u<3;++u){const e=parseInt(d.slice(_*u,_*u+_),16);v[u]=_===1?e<<4:_===2?e:_===3?e>>4:e>>8}return v}},r.toRgbString=function(n,d=16){const[_,v,u]=n;return`rgb:${f(_,d)}/${f(v,d)}/${f(u,d)}`}},5770:(B,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.PAYLOAD_LIMIT=void 0,r.PAYLOAD_LIMIT=1e7},6351:(B,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.DcsHandler=r.DcsParser=void 0;const h=o(482),f=o(8742),n=o(5770),d=[];r.DcsParser=class{constructor(){this._handlers=Object.create(null),this._active=d,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=d}registerHandler(v,u){this._handlers[v]===void 0&&(this._handlers[v]=[]);const e=this._handlers[v];return e.push(u),{dispose:()=>{const s=e.indexOf(u);s!==-1&&e.splice(s,1)}}}clearHandler(v){this._handlers[v]&&delete this._handlers[v]}setHandlerFallback(v){this._handlerFb=v}reset(){if(this._active.length)for(let v=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;v>=0;--v)this._active[v].unhook(!1);this._stack.paused=!1,this._active=d,this._ident=0}hook(v,u){if(this.reset(),this._ident=v,this._active=this._handlers[v]||d,this._active.length)for(let e=this._active.length-1;e>=0;e--)this._active[e].hook(u);else this._handlerFb(this._ident,"HOOK",u)}put(v,u,e){if(this._active.length)for(let s=this._active.length-1;s>=0;s--)this._active[s].put(v,u,e);else this._handlerFb(this._ident,"PUT",(0,h.utf32ToString)(v,u,e))}unhook(v,u=!0){if(this._active.length){let e=!1,s=this._active.length-1,t=!1;if(this._stack.paused&&(s=this._stack.loopPosition-1,e=u,t=this._stack.fallThrough,this._stack.paused=!1),!t&&e===!1){for(;s>=0&&(e=this._active[s].unhook(v),e!==!0);s--)if(e instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=s,this._stack.fallThrough=!1,e;s--}for(;s>=0;s--)if(e=this._active[s].unhook(!1),e instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=s,this._stack.fallThrough=!0,e}else this._handlerFb(this._ident,"UNHOOK",v);this._active=d,this._ident=0}};const _=new f.Params;_.addParam(0),r.DcsHandler=class{constructor(v){this._handler=v,this._data="",this._params=_,this._hitLimit=!1}hook(v){this._params=v.length>1||v.params[0]?v.clone():_,this._data="",this._hitLimit=!1}put(v,u,e){this._hitLimit||(this._data+=(0,h.utf32ToString)(v,u,e),this._data.length>n.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}unhook(v){let u=!1;if(this._hitLimit)u=!1;else if(v&&(u=this._handler(this._data,this._params),u instanceof Promise))return u.then(e=>(this._params=_,this._data="",this._hitLimit=!1,e));return this._params=_,this._data="",this._hitLimit=!1,u}}},2015:(B,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.EscapeSequenceParser=r.VT500_TRANSITION_TABLE=r.TransitionTable=void 0;const h=o(844),f=o(8742),n=o(6242),d=o(6351);class _{constructor(s){this.table=new Uint8Array(s)}setDefault(s,t){this.table.fill(s<<4|t)}add(s,t,i,l){this.table[t<<8|s]=i<<4|l}addMany(s,t,i,l){for(let c=0;ca),t=(m,a)=>s.slice(m,a),i=t(32,127),l=t(0,24);l.push(25),l.push.apply(l,t(28,32));const c=t(0,14);let p;for(p in e.setDefault(1,0),e.addMany(i,0,2,0),c)e.addMany([24,26,153,154],p,3,0),e.addMany(t(128,144),p,3,0),e.addMany(t(144,152),p,3,0),e.add(156,p,0,0),e.add(27,p,11,1),e.add(157,p,4,8),e.addMany([152,158,159],p,0,7),e.add(155,p,11,3),e.add(144,p,11,9);return e.addMany(l,0,3,0),e.addMany(l,1,3,1),e.add(127,1,0,1),e.addMany(l,8,0,8),e.addMany(l,3,3,3),e.add(127,3,0,3),e.addMany(l,4,3,4),e.add(127,4,0,4),e.addMany(l,6,3,6),e.addMany(l,5,3,5),e.add(127,5,0,5),e.addMany(l,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(i,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(t(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(i,7,0,7),e.addMany(l,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(t(64,127),3,7,0),e.addMany(t(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(t(48,60),4,8,4),e.addMany(t(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(t(32,64),6,0,6),e.add(127,6,0,6),e.addMany(t(64,127),6,0,0),e.addMany(t(32,48),3,9,5),e.addMany(t(32,48),5,9,5),e.addMany(t(48,64),5,0,6),e.addMany(t(64,127),5,7,0),e.addMany(t(32,48),4,9,5),e.addMany(t(32,48),1,9,2),e.addMany(t(32,48),2,9,2),e.addMany(t(48,127),2,10,0),e.addMany(t(48,80),1,10,0),e.addMany(t(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(t(96,127),1,10,0),e.add(80,1,11,9),e.addMany(l,9,0,9),e.add(127,9,0,9),e.addMany(t(28,32),9,0,9),e.addMany(t(32,48),9,9,12),e.addMany(t(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(l,11,0,11),e.addMany(t(32,128),11,0,11),e.addMany(t(28,32),11,0,11),e.addMany(l,10,0,10),e.add(127,10,0,10),e.addMany(t(28,32),10,0,10),e.addMany(t(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(t(32,48),10,9,12),e.addMany(l,12,0,12),e.add(127,12,0,12),e.addMany(t(28,32),12,0,12),e.addMany(t(32,48),12,9,12),e.addMany(t(48,64),12,0,11),e.addMany(t(64,127),12,12,13),e.addMany(t(64,127),10,12,13),e.addMany(t(64,127),9,12,13),e.addMany(l,13,13,13),e.addMany(i,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(v,0,2,0),e.add(v,8,5,8),e.add(v,6,0,6),e.add(v,11,0,11),e.add(v,13,13,13),e}();class u extends h.Disposable{constructor(s=r.VT500_TRANSITION_TABLE){super(),this._transitions=s,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new f.Params,this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._printHandlerFb=(t,i,l)=>{},this._executeHandlerFb=t=>{},this._csiHandlerFb=(t,i)=>{},this._escHandlerFb=t=>{},this._errorHandlerFb=t=>t,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this.register((0,h.toDisposable)(()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)})),this._oscParser=this.register(new n.OscParser),this._dcsParser=this.register(new d.DcsParser),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},()=>!0)}_identifier(s,t=[64,126]){let i=0;if(s.prefix){if(s.prefix.length>1)throw new Error("only one byte as prefix supported");if(i=s.prefix.charCodeAt(0),i&&60>i||i>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(s.intermediates){if(s.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let c=0;cp||p>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");i<<=8,i|=p}}if(s.final.length!==1)throw new Error("final must be a single byte");const l=s.final.charCodeAt(0);if(t[0]>l||l>t[1])throw new Error(`final must be in range ${t[0]} .. ${t[1]}`);return i<<=8,i|=l,i}identToString(s){const t=[];for(;s;)t.push(String.fromCharCode(255&s)),s>>=8;return t.reverse().join("")}setPrintHandler(s){this._printHandler=s}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(s,t){const i=this._identifier(s,[48,126]);this._escHandlers[i]===void 0&&(this._escHandlers[i]=[]);const l=this._escHandlers[i];return l.push(t),{dispose:()=>{const c=l.indexOf(t);c!==-1&&l.splice(c,1)}}}clearEscHandler(s){this._escHandlers[this._identifier(s,[48,126])]&&delete this._escHandlers[this._identifier(s,[48,126])]}setEscHandlerFallback(s){this._escHandlerFb=s}setExecuteHandler(s,t){this._executeHandlers[s.charCodeAt(0)]=t}clearExecuteHandler(s){this._executeHandlers[s.charCodeAt(0)]&&delete this._executeHandlers[s.charCodeAt(0)]}setExecuteHandlerFallback(s){this._executeHandlerFb=s}registerCsiHandler(s,t){const i=this._identifier(s);this._csiHandlers[i]===void 0&&(this._csiHandlers[i]=[]);const l=this._csiHandlers[i];return l.push(t),{dispose:()=>{const c=l.indexOf(t);c!==-1&&l.splice(c,1)}}}clearCsiHandler(s){this._csiHandlers[this._identifier(s)]&&delete this._csiHandlers[this._identifier(s)]}setCsiHandlerFallback(s){this._csiHandlerFb=s}registerDcsHandler(s,t){return this._dcsParser.registerHandler(this._identifier(s),t)}clearDcsHandler(s){this._dcsParser.clearHandler(this._identifier(s))}setDcsHandlerFallback(s){this._dcsParser.setHandlerFallback(s)}registerOscHandler(s,t){return this._oscParser.registerHandler(s,t)}clearOscHandler(s){this._oscParser.clearHandler(s)}setOscHandlerFallback(s){this._oscParser.setHandlerFallback(s)}setErrorHandler(s){this._errorHandler=s}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._parseStack.state!==0&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(s,t,i,l,c){this._parseStack.state=s,this._parseStack.handlers=t,this._parseStack.handlerPos=i,this._parseStack.transition=l,this._parseStack.chunkPos=c}parse(s,t,i){let l,c=0,p=0,m=0;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,m=this._parseStack.chunkPos+1;else{if(i===void 0||this._parseStack.state===1)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");const a=this._parseStack.handlers;let g=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(i===!1&&g>-1){for(;g>=0&&(l=a[g](this._params),l!==!0);g--)if(l instanceof Promise)return this._parseStack.handlerPos=g,l}this._parseStack.handlers=[];break;case 4:if(i===!1&&g>-1){for(;g>=0&&(l=a[g](),l!==!0);g--)if(l instanceof Promise)return this._parseStack.handlerPos=g,l}this._parseStack.handlers=[];break;case 6:if(c=s[this._parseStack.chunkPos],l=this._dcsParser.unhook(c!==24&&c!==26,i),l)return l;c===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(c=s[this._parseStack.chunkPos],l=this._oscParser.end(c!==24&&c!==26,i),l)return l;c===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,m=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(let a=m;a>4){case 2:for(let L=a+1;;++L){if(L>=t||(c=s[L])<32||c>126&&c=t||(c=s[L])<32||c>126&&c=t||(c=s[L])<32||c>126&&c=t||(c=s[L])<32||c>126&&c=0&&(l=g[C](this._params),l!==!0);C--)if(l instanceof Promise)return this._preserveStack(3,g,C,p,a),l;C<0&&this._csiHandlerFb(this._collect<<8|c,this._params),this.precedingCodepoint=0;break;case 8:do switch(c){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(c-48)}while(++a47&&c<60);a--;break;case 9:this._collect<<=8,this._collect|=c;break;case 10:const w=this._escHandlers[this._collect<<8|c];let y=w?w.length-1:-1;for(;y>=0&&(l=w[y](),l!==!0);y--)if(l instanceof Promise)return this._preserveStack(4,w,y,p,a),l;y<0&&this._escHandlerFb(this._collect<<8|c),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|c,this._params);break;case 13:for(let L=a+1;;++L)if(L>=t||(c=s[L])===24||c===26||c===27||c>127&&c=t||(c=s[L])<32||c>127&&c{Object.defineProperty(r,"__esModule",{value:!0}),r.OscHandler=r.OscParser=void 0;const h=o(5770),f=o(482),n=[];r.OscParser=class{constructor(){this._state=0,this._active=n,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(d,_){this._handlers[d]===void 0&&(this._handlers[d]=[]);const v=this._handlers[d];return v.push(_),{dispose:()=>{const u=v.indexOf(_);u!==-1&&v.splice(u,1)}}}clearHandler(d){this._handlers[d]&&delete this._handlers[d]}setHandlerFallback(d){this._handlerFb=d}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=n}reset(){if(this._state===2)for(let d=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;d>=0;--d)this._active[d].end(!1);this._stack.paused=!1,this._active=n,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||n,this._active.length)for(let d=this._active.length-1;d>=0;d--)this._active[d].start();else this._handlerFb(this._id,"START")}_put(d,_,v){if(this._active.length)for(let u=this._active.length-1;u>=0;u--)this._active[u].put(d,_,v);else this._handlerFb(this._id,"PUT",(0,f.utf32ToString)(d,_,v))}start(){this.reset(),this._state=1}put(d,_,v){if(this._state!==3){if(this._state===1)for(;_0&&this._put(d,_,v)}}end(d,_=!0){if(this._state!==0){if(this._state!==3)if(this._state===1&&this._start(),this._active.length){let v=!1,u=this._active.length-1,e=!1;if(this._stack.paused&&(u=this._stack.loopPosition-1,v=_,e=this._stack.fallThrough,this._stack.paused=!1),!e&&v===!1){for(;u>=0&&(v=this._active[u].end(d),v!==!0);u--)if(v instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=u,this._stack.fallThrough=!1,v;u--}for(;u>=0;u--)if(v=this._active[u].end(!1),v instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=u,this._stack.fallThrough=!0,v}else this._handlerFb(this._id,"END",d);this._active=n,this._id=-1,this._state=0}}},r.OscHandler=class{constructor(d){this._handler=d,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(d,_,v){this._hitLimit||(this._data+=(0,f.utf32ToString)(d,_,v),this._data.length>h.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}end(d){let _=!1;if(this._hitLimit)_=!1;else if(d&&(_=this._handler(this._data),_ instanceof Promise))return _.then(v=>(this._data="",this._hitLimit=!1,v));return this._data="",this._hitLimit=!1,_}}},8742:(B,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Params=void 0;const o=2147483647;class h{static fromArray(n){const d=new h;if(!n.length)return d;for(let _=Array.isArray(n[0])?1:0;_256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(n),this.length=0,this._subParams=new Int32Array(d),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(n),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}clone(){const n=new h(this.maxLength,this.maxSubParamsLength);return n.params.set(this.params),n.length=this.length,n._subParams.set(this._subParams),n._subParamsLength=this._subParamsLength,n._subParamsIdx.set(this._subParamsIdx),n._rejectDigits=this._rejectDigits,n._rejectSubDigits=this._rejectSubDigits,n._digitIsSub=this._digitIsSub,n}toArray(){const n=[];for(let d=0;d>8,v=255&this._subParamsIdx[d];v-_>0&&n.push(Array.prototype.slice.call(this._subParams,_,v))}return n}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(n){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(n<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=n>o?o:n}}addSubParam(n){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(n<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=n>o?o:n,this._subParamsIdx[this.length-1]++}}hasSubParams(n){return(255&this._subParamsIdx[n])-(this._subParamsIdx[n]>>8)>0}getSubParams(n){const d=this._subParamsIdx[n]>>8,_=255&this._subParamsIdx[n];return _-d>0?this._subParams.subarray(d,_):null}getSubParamsAll(){const n={};for(let d=0;d>8,v=255&this._subParamsIdx[d];v-_>0&&(n[d]=this._subParams.slice(_,v))}return n}addDigit(n){let d;if(this._rejectDigits||!(d=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;const _=this._digitIsSub?this._subParams:this.params,v=_[d-1];_[d-1]=~v?Math.min(10*v+n,o):n}}r.Params=h},5741:(B,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.AddonManager=void 0,r.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let o=this._addons.length-1;o>=0;o--)this._addons[o].instance.dispose()}loadAddon(o,h){const f={instance:h,dispose:h.dispose,isDisposed:!1};this._addons.push(f),h.dispose=()=>this._wrappedAddonDispose(f),h.activate(o)}_wrappedAddonDispose(o){if(o.isDisposed)return;let h=-1;for(let f=0;f{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferApiView=void 0;const h=o(3785),f=o(511);r.BufferApiView=class{constructor(n,d){this._buffer=n,this.type=d}init(n){return this._buffer=n,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(n){const d=this._buffer.lines.get(n);if(d)return new h.BufferLineApiView(d)}getNullCell(){return new f.CellData}}},3785:(B,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferLineApiView=void 0;const h=o(511);r.BufferLineApiView=class{constructor(f){this._line=f}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(f,n){if(!(f<0||f>=this._line.length))return n?(this._line.loadCell(f,n),n):this._line.loadCell(f,new h.CellData)}translateToString(f,n,d){return this._line.translateToString(f,n,d)}}},8285:(B,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferNamespaceApi=void 0;const h=o(8771),f=o(8460),n=o(844);class d extends n.Disposable{constructor(v){super(),this._core=v,this._onBufferChange=this.register(new f.EventEmitter),this.onBufferChange=this._onBufferChange.event,this._normal=new h.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new h.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(()=>this._onBufferChange.fire(this.active))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}}r.BufferNamespaceApi=d},7975:(B,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ParserApi=void 0,r.ParserApi=class{constructor(o){this._core=o}registerCsiHandler(o,h){return this._core.registerCsiHandler(o,f=>h(f.toArray()))}addCsiHandler(o,h){return this.registerCsiHandler(o,h)}registerDcsHandler(o,h){return this._core.registerDcsHandler(o,(f,n)=>h(f,n.toArray()))}addDcsHandler(o,h){return this.registerDcsHandler(o,h)}registerEscHandler(o,h){return this._core.registerEscHandler(o,h)}addEscHandler(o,h){return this.registerEscHandler(o,h)}registerOscHandler(o,h){return this._core.registerOscHandler(o,h)}addOscHandler(o,h){return this.registerOscHandler(o,h)}}},7090:(B,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.UnicodeApi=void 0,r.UnicodeApi=class{constructor(o){this._core=o}register(o){this._core.unicodeService.register(o)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(o){this._core.unicodeService.activeVersion=o}}},744:function(B,r,o){var h=this&&this.__decorate||function(e,s,t,i){var l,c=arguments.length,p=c<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(e,s,t,i);else for(var m=e.length-1;m>=0;m--)(l=e[m])&&(p=(c<3?l(p):c>3?l(s,t,p):l(s,t))||p);return c>3&&p&&Object.defineProperty(s,t,p),p},f=this&&this.__param||function(e,s){return function(t,i){s(t,i,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.BufferService=r.MINIMUM_ROWS=r.MINIMUM_COLS=void 0;const n=o(8460),d=o(844),_=o(5295),v=o(2585);r.MINIMUM_COLS=2,r.MINIMUM_ROWS=1;let u=r.BufferService=class extends d.Disposable{get buffer(){return this.buffers.active}constructor(e){super(),this.isUserScrolling=!1,this._onResize=this.register(new n.EventEmitter),this.onResize=this._onResize.event,this._onScroll=this.register(new n.EventEmitter),this.onScroll=this._onScroll.event,this.cols=Math.max(e.rawOptions.cols||0,r.MINIMUM_COLS),this.rows=Math.max(e.rawOptions.rows||0,r.MINIMUM_ROWS),this.buffers=this.register(new _.BufferSet(e,this))}resize(e,s){this.cols=e,this.rows=s,this.buffers.resize(e,s),this._onResize.fire({cols:e,rows:s})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(e,s=!1){const t=this.buffer;let i;i=this._cachedBlankLine,i&&i.length===this.cols&&i.getFg(0)===e.fg&&i.getBg(0)===e.bg||(i=t.getBlankLine(e,s),this._cachedBlankLine=i),i.isWrapped=s;const l=t.ybase+t.scrollTop,c=t.ybase+t.scrollBottom;if(t.scrollTop===0){const p=t.lines.isFull;c===t.lines.length-1?p?t.lines.recycle().copyFrom(i):t.lines.push(i.clone()):t.lines.splice(c+1,0,i.clone()),p?this.isUserScrolling&&(t.ydisp=Math.max(t.ydisp-1,0)):(t.ybase++,this.isUserScrolling||t.ydisp++)}else{const p=c-l+1;t.lines.shiftElements(l+1,p-1,-1),t.lines.set(c,i.clone())}this.isUserScrolling||(t.ydisp=t.ybase),this._onScroll.fire(t.ydisp)}scrollLines(e,s,t){const i=this.buffer;if(e<0){if(i.ydisp===0)return;this.isUserScrolling=!0}else e+i.ydisp>=i.ybase&&(this.isUserScrolling=!1);const l=i.ydisp;i.ydisp=Math.max(Math.min(i.ydisp+e,i.ybase),0),l!==i.ydisp&&(s||this._onScroll.fire(i.ydisp))}};r.BufferService=u=h([f(0,v.IOptionsService)],u)},7994:(B,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.CharsetService=void 0,r.CharsetService=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(o){this.glevel=o,this.charset=this._charsets[o]}setgCharset(o,h){this._charsets[o]=h,this.glevel===o&&(this.charset=h)}}},1753:function(B,r,o){var h=this&&this.__decorate||function(i,l,c,p){var m,a=arguments.length,g=a<3?l:p===null?p=Object.getOwnPropertyDescriptor(l,c):p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(i,l,c,p);else for(var C=i.length-1;C>=0;C--)(m=i[C])&&(g=(a<3?m(g):a>3?m(l,c,g):m(l,c))||g);return a>3&&g&&Object.defineProperty(l,c,g),g},f=this&&this.__param||function(i,l){return function(c,p){l(c,p,i)}};Object.defineProperty(r,"__esModule",{value:!0}),r.CoreMouseService=void 0;const n=o(2585),d=o(8460),_=o(844),v={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:i=>i.button!==4&&i.action===1&&(i.ctrl=!1,i.alt=!1,i.shift=!1,!0)},VT200:{events:19,restrict:i=>i.action!==32},DRAG:{events:23,restrict:i=>i.action!==32||i.button!==3},ANY:{events:31,restrict:i=>!0}};function u(i,l){let c=(i.ctrl?16:0)|(i.shift?4:0)|(i.alt?8:0);return i.button===4?(c|=64,c|=i.action):(c|=3&i.button,4&i.button&&(c|=64),8&i.button&&(c|=128),i.action===32?c|=32:i.action!==0||l||(c|=3)),c}const e=String.fromCharCode,s={DEFAULT:i=>{const l=[u(i,!1)+32,i.col+32,i.row+32];return l[0]>255||l[1]>255||l[2]>255?"":`\x1B[M${e(l[0])}${e(l[1])}${e(l[2])}`},SGR:i=>{const l=i.action===0&&i.button!==4?"m":"M";return`\x1B[<${u(i,!0)};${i.col};${i.row}${l}`},SGR_PIXELS:i=>{const l=i.action===0&&i.button!==4?"m":"M";return`\x1B[<${u(i,!0)};${i.x};${i.y}${l}`}};let t=r.CoreMouseService=class extends _.Disposable{constructor(i,l){super(),this._bufferService=i,this._coreService=l,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._onProtocolChange=this.register(new d.EventEmitter),this.onProtocolChange=this._onProtocolChange.event;for(const c of Object.keys(v))this.addProtocol(c,v[c]);for(const c of Object.keys(s))this.addEncoding(c,s[c]);this.reset()}addProtocol(i,l){this._protocols[i]=l}addEncoding(i,l){this._encodings[i]=l}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return this._protocols[this._activeProtocol].events!==0}set activeProtocol(i){if(!this._protocols[i])throw new Error(`unknown protocol "${i}"`);this._activeProtocol=i,this._onProtocolChange.fire(this._protocols[i].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(i){if(!this._encodings[i])throw new Error(`unknown encoding "${i}"`);this._activeEncoding=i}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}triggerMouseEvent(i){if(i.col<0||i.col>=this._bufferService.cols||i.row<0||i.row>=this._bufferService.rows||i.button===4&&i.action===32||i.button===3&&i.action!==32||i.button!==4&&(i.action===2||i.action===3)||(i.col++,i.row++,i.action===32&&this._lastEvent&&this._equalEvents(this._lastEvent,i,this._activeEncoding==="SGR_PIXELS"))||!this._protocols[this._activeProtocol].restrict(i))return!1;const l=this._encodings[this._activeEncoding](i);return l&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(l):this._coreService.triggerDataEvent(l,!0)),this._lastEvent=i,!0}explainEvents(i){return{down:!!(1&i),up:!!(2&i),drag:!!(4&i),move:!!(8&i),wheel:!!(16&i)}}_equalEvents(i,l,c){if(c){if(i.x!==l.x||i.y!==l.y)return!1}else if(i.col!==l.col||i.row!==l.row)return!1;return i.button===l.button&&i.action===l.action&&i.ctrl===l.ctrl&&i.alt===l.alt&&i.shift===l.shift}};r.CoreMouseService=t=h([f(0,n.IBufferService),f(1,n.ICoreService)],t)},6975:function(B,r,o){var h=this&&this.__decorate||function(t,i,l,c){var p,m=arguments.length,a=m<3?i:c===null?c=Object.getOwnPropertyDescriptor(i,l):c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,i,l,c);else for(var g=t.length-1;g>=0;g--)(p=t[g])&&(a=(m<3?p(a):m>3?p(i,l,a):p(i,l))||a);return m>3&&a&&Object.defineProperty(i,l,a),a},f=this&&this.__param||function(t,i){return function(l,c){i(l,c,t)}};Object.defineProperty(r,"__esModule",{value:!0}),r.CoreService=void 0;const n=o(1439),d=o(8460),_=o(844),v=o(2585),u=Object.freeze({insertMode:!1}),e=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0});let s=r.CoreService=class extends _.Disposable{constructor(t,i,l){super(),this._bufferService=t,this._logService=i,this._optionsService=l,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this.register(new d.EventEmitter),this.onData=this._onData.event,this._onUserInput=this.register(new d.EventEmitter),this.onUserInput=this._onUserInput.event,this._onBinary=this.register(new d.EventEmitter),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this.register(new d.EventEmitter),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=(0,n.clone)(u),this.decPrivateModes=(0,n.clone)(e)}reset(){this.modes=(0,n.clone)(u),this.decPrivateModes=(0,n.clone)(e)}triggerDataEvent(t,i=!1){if(this._optionsService.rawOptions.disableStdin)return;const l=this._bufferService.buffer;i&&this._optionsService.rawOptions.scrollOnUserInput&&l.ybase!==l.ydisp&&this._onRequestScrollToBottom.fire(),i&&this._onUserInput.fire(),this._logService.debug(`sending data "${t}"`,()=>t.split("").map(c=>c.charCodeAt(0))),this._onData.fire(t)}triggerBinaryEvent(t){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${t}"`,()=>t.split("").map(i=>i.charCodeAt(0))),this._onBinary.fire(t))}};r.CoreService=s=h([f(0,v.IBufferService),f(1,v.ILogService),f(2,v.IOptionsService)],s)},9074:(B,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.DecorationService=void 0;const h=o(8055),f=o(8460),n=o(844),d=o(6106);let _=0,v=0;class u extends n.Disposable{get decorations(){return this._decorations.values()}constructor(){super(),this._decorations=new d.SortedList(t=>t==null?void 0:t.marker.line),this._onDecorationRegistered=this.register(new f.EventEmitter),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this.register(new f.EventEmitter),this.onDecorationRemoved=this._onDecorationRemoved.event,this.register((0,n.toDisposable)(()=>this.reset()))}registerDecoration(t){if(t.marker.isDisposed)return;const i=new e(t);if(i){const l=i.marker.onDispose(()=>i.dispose());i.onDispose(()=>{i&&(this._decorations.delete(i)&&this._onDecorationRemoved.fire(i),l.dispose())}),this._decorations.insert(i),this._onDecorationRegistered.fire(i)}return i}reset(){for(const t of this._decorations.values())t.dispose();this._decorations.clear()}*getDecorationsAtCell(t,i,l){var c,p,m;let a=0,g=0;for(const C of this._decorations.getKeyIterator(i))a=(c=C.options.x)!==null&&c!==void 0?c:0,g=a+((p=C.options.width)!==null&&p!==void 0?p:1),t>=a&&t{var m,a,g;_=(m=p.options.x)!==null&&m!==void 0?m:0,v=_+((a=p.options.width)!==null&&a!==void 0?a:1),t>=_&&t{Object.defineProperty(r,"__esModule",{value:!0}),r.InstantiationService=r.ServiceCollection=void 0;const h=o(2585),f=o(8343);class n{constructor(..._){this._entries=new Map;for(const[v,u]of _)this.set(v,u)}set(_,v){const u=this._entries.get(_);return this._entries.set(_,v),u}forEach(_){for(const[v,u]of this._entries.entries())_(v,u)}has(_){return this._entries.has(_)}get(_){return this._entries.get(_)}}r.ServiceCollection=n,r.InstantiationService=class{constructor(){this._services=new n,this._services.set(h.IInstantiationService,this)}setService(d,_){this._services.set(d,_)}getService(d){return this._services.get(d)}createInstance(d,..._){const v=(0,f.getServiceDependencies)(d).sort((s,t)=>s.index-t.index),u=[];for(const s of v){const t=this._services.get(s.id);if(!t)throw new Error(`[createInstance] ${d.name} depends on UNKNOWN service ${s.id}.`);u.push(t)}const e=v.length>0?v[0].index:_.length;if(_.length!==e)throw new Error(`[createInstance] First service dependency of ${d.name} at position ${e+1} conflicts with ${_.length} static arguments`);return new d(..._,...u)}}},7866:function(B,r,o){var h=this&&this.__decorate||function(e,s,t,i){var l,c=arguments.length,p=c<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(e,s,t,i);else for(var m=e.length-1;m>=0;m--)(l=e[m])&&(p=(c<3?l(p):c>3?l(s,t,p):l(s,t))||p);return c>3&&p&&Object.defineProperty(s,t,p),p},f=this&&this.__param||function(e,s){return function(t,i){s(t,i,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.traceCall=r.setTraceLogger=r.LogService=void 0;const n=o(844),d=o(2585),_={trace:d.LogLevelEnum.TRACE,debug:d.LogLevelEnum.DEBUG,info:d.LogLevelEnum.INFO,warn:d.LogLevelEnum.WARN,error:d.LogLevelEnum.ERROR,off:d.LogLevelEnum.OFF};let v,u=r.LogService=class extends n.Disposable{get logLevel(){return this._logLevel}constructor(e){super(),this._optionsService=e,this._logLevel=d.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange("logLevel",()=>this._updateLogLevel())),v=this}_updateLogLevel(){this._logLevel=_[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(e){for(let s=0;sJSON.stringify(p)).join(", ")})`);const c=i.apply(this,l);return v.trace(`GlyphRenderer#${i.name} return`,c),c}}},7302:(B,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.OptionsService=r.DEFAULT_OPTIONS=void 0;const h=o(8460),f=o(844),n=o(6114);r.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,cursorInactiveStyle:"outline",customGlyphs:!0,drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",ignoreBracketedPasteMode:!1,lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",logger:null,scrollback:1e3,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:n.isMac,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0};const d=["normal","bold","100","200","300","400","500","600","700","800","900"];class _ extends f.Disposable{constructor(u){super(),this._onOptionChange=this.register(new h.EventEmitter),this.onOptionChange=this._onOptionChange.event;const e=Object.assign({},r.DEFAULT_OPTIONS);for(const s in u)if(s in e)try{const t=u[s];e[s]=this._sanitizeAndValidateOption(s,t)}catch(t){console.error(t)}this.rawOptions=e,this.options=Object.assign({},e),this._setupOptions()}onSpecificOptionChange(u,e){return this.onOptionChange(s=>{s===u&&e(this.rawOptions[u])})}onMultipleOptionChange(u,e){return this.onOptionChange(s=>{u.indexOf(s)!==-1&&e()})}_setupOptions(){const u=s=>{if(!(s in r.DEFAULT_OPTIONS))throw new Error(`No option with key "${s}"`);return this.rawOptions[s]},e=(s,t)=>{if(!(s in r.DEFAULT_OPTIONS))throw new Error(`No option with key "${s}"`);t=this._sanitizeAndValidateOption(s,t),this.rawOptions[s]!==t&&(this.rawOptions[s]=t,this._onOptionChange.fire(s))};for(const s in this.rawOptions){const t={get:u.bind(this,s),set:e.bind(this,s)};Object.defineProperty(this.options,s,t)}}_sanitizeAndValidateOption(u,e){switch(u){case"cursorStyle":if(e||(e=r.DEFAULT_OPTIONS[u]),!function(s){return s==="block"||s==="underline"||s==="bar"}(e))throw new Error(`"${e}" is not a valid value for ${u}`);break;case"wordSeparator":e||(e=r.DEFAULT_OPTIONS[u]);break;case"fontWeight":case"fontWeightBold":if(typeof e=="number"&&1<=e&&e<=1e3)break;e=d.includes(e)?e:r.DEFAULT_OPTIONS[u];break;case"cursorWidth":e=Math.floor(e);case"lineHeight":case"tabStopWidth":if(e<1)throw new Error(`${u} cannot be less than 1, value: ${e}`);break;case"minimumContrastRatio":e=Math.max(1,Math.min(21,Math.round(10*e)/10));break;case"scrollback":if((e=Math.min(e,4294967295))<0)throw new Error(`${u} cannot be less than 0, value: ${e}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(e<=0)throw new Error(`${u} cannot be less than or equal to 0, value: ${e}`);break;case"rows":case"cols":if(!e&&e!==0)throw new Error(`${u} must be numeric, value: ${e}`);break;case"windowsPty":e=e??{}}return e}}r.OptionsService=_},2660:function(B,r,o){var h=this&&this.__decorate||function(_,v,u,e){var s,t=arguments.length,i=t<3?v:e===null?e=Object.getOwnPropertyDescriptor(v,u):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(_,v,u,e);else for(var l=_.length-1;l>=0;l--)(s=_[l])&&(i=(t<3?s(i):t>3?s(v,u,i):s(v,u))||i);return t>3&&i&&Object.defineProperty(v,u,i),i},f=this&&this.__param||function(_,v){return function(u,e){v(u,e,_)}};Object.defineProperty(r,"__esModule",{value:!0}),r.OscLinkService=void 0;const n=o(2585);let d=r.OscLinkService=class{constructor(_){this._bufferService=_,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(_){const v=this._bufferService.buffer;if(_.id===void 0){const l=v.addMarker(v.ybase+v.y),c={data:_,id:this._nextId++,lines:[l]};return l.onDispose(()=>this._removeMarkerFromLink(c,l)),this._dataByLinkId.set(c.id,c),c.id}const u=_,e=this._getEntryIdKey(u),s=this._entriesWithId.get(e);if(s)return this.addLineToLink(s.id,v.ybase+v.y),s.id;const t=v.addMarker(v.ybase+v.y),i={id:this._nextId++,key:this._getEntryIdKey(u),data:u,lines:[t]};return t.onDispose(()=>this._removeMarkerFromLink(i,t)),this._entriesWithId.set(i.key,i),this._dataByLinkId.set(i.id,i),i.id}addLineToLink(_,v){const u=this._dataByLinkId.get(_);if(u&&u.lines.every(e=>e.line!==v)){const e=this._bufferService.buffer.addMarker(v);u.lines.push(e),e.onDispose(()=>this._removeMarkerFromLink(u,e))}}getLinkData(_){var v;return(v=this._dataByLinkId.get(_))===null||v===void 0?void 0:v.data}_getEntryIdKey(_){return`${_.id};;${_.uri}`}_removeMarkerFromLink(_,v){const u=_.lines.indexOf(v);u!==-1&&(_.lines.splice(u,1),_.lines.length===0&&(_.data.id!==void 0&&this._entriesWithId.delete(_.key),this._dataByLinkId.delete(_.id)))}};r.OscLinkService=d=h([f(0,n.IBufferService)],d)},8343:(B,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.createDecorator=r.getServiceDependencies=r.serviceRegistry=void 0;const o="di$target",h="di$dependencies";r.serviceRegistry=new Map,r.getServiceDependencies=function(f){return f[h]||[]},r.createDecorator=function(f){if(r.serviceRegistry.has(f))return r.serviceRegistry.get(f);const n=function(d,_,v){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");(function(u,e,s){e[o]===e?e[h].push({id:u,index:s}):(e[h]=[{id:u,index:s}],e[o]=e)})(n,d,v)};return n.toString=()=>f,r.serviceRegistry.set(f,n),n}},2585:(B,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.IDecorationService=r.IUnicodeService=r.IOscLinkService=r.IOptionsService=r.ILogService=r.LogLevelEnum=r.IInstantiationService=r.ICharsetService=r.ICoreService=r.ICoreMouseService=r.IBufferService=void 0;const h=o(8343);var f;r.IBufferService=(0,h.createDecorator)("BufferService"),r.ICoreMouseService=(0,h.createDecorator)("CoreMouseService"),r.ICoreService=(0,h.createDecorator)("CoreService"),r.ICharsetService=(0,h.createDecorator)("CharsetService"),r.IInstantiationService=(0,h.createDecorator)("InstantiationService"),function(n){n[n.TRACE=0]="TRACE",n[n.DEBUG=1]="DEBUG",n[n.INFO=2]="INFO",n[n.WARN=3]="WARN",n[n.ERROR=4]="ERROR",n[n.OFF=5]="OFF"}(f||(r.LogLevelEnum=f={})),r.ILogService=(0,h.createDecorator)("LogService"),r.IOptionsService=(0,h.createDecorator)("OptionsService"),r.IOscLinkService=(0,h.createDecorator)("OscLinkService"),r.IUnicodeService=(0,h.createDecorator)("UnicodeService"),r.IDecorationService=(0,h.createDecorator)("DecorationService")},1480:(B,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.UnicodeService=void 0;const h=o(8460),f=o(225);r.UnicodeService=class{constructor(){this._providers=Object.create(null),this._active="",this._onChange=new h.EventEmitter,this.onChange=this._onChange.event;const n=new f.UnicodeV6;this.register(n),this._active=n.version,this._activeProvider=n}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(n){if(!this._providers[n])throw new Error(`unknown Unicode version "${n}"`);this._active=n,this._activeProvider=this._providers[n],this._onChange.fire(n)}register(n){this._providers[n.version]=n}wcwidth(n){return this._activeProvider.wcwidth(n)}getStringCellWidth(n){let d=0;const _=n.length;for(let v=0;v<_;++v){let u=n.charCodeAt(v);if(55296<=u&&u<=56319){if(++v>=_)return d+this.wcwidth(u);const e=n.charCodeAt(v);56320<=e&&e<=57343?u=1024*(u-55296)+e-56320+65536:d+=this.wcwidth(e)}d+=this.wcwidth(u)}return d}}}},M={};function F(B){var r=M[B];if(r!==void 0)return r.exports;var o=M[B]={exports:{}};return A[B].call(o.exports,o,o.exports,F),o.exports}var U={};return(()=>{var B=U;Object.defineProperty(B,"__esModule",{value:!0}),B.Terminal=void 0;const r=F(9042),o=F(3236),h=F(844),f=F(5741),n=F(8285),d=F(7975),_=F(7090),v=["cols","rows"];class u extends h.Disposable{constructor(s){super(),this._core=this.register(new o.Terminal(s)),this._addonManager=this.register(new f.AddonManager),this._publicOptions=Object.assign({},this._core.options);const t=l=>this._core.options[l],i=(l,c)=>{this._checkReadonlyOptions(l),this._core.options[l]=c};for(const l in this._core.options){const c={get:t.bind(this,l),set:i.bind(this,l)};Object.defineProperty(this._publicOptions,l,c)}}_checkReadonlyOptions(s){if(v.includes(s))throw new Error(`Option "${s}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||(this._parser=new d.ParserApi(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new _.UnicodeApi(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||(this._buffer=this.register(new n.BufferNamespaceApi(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){const s=this._core.coreService.decPrivateModes;let t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any"}return{applicationCursorKeysMode:s.applicationCursorKeys,applicationKeypadMode:s.applicationKeypad,bracketedPasteMode:s.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:s.origin,reverseWraparoundMode:s.reverseWraparound,sendFocusMode:s.sendFocus,wraparoundMode:s.wraparound}}get options(){return this._publicOptions}set options(s){for(const t in s)this._publicOptions[t]=s[t]}blur(){this._core.blur()}focus(){this._core.focus()}resize(s,t){this._verifyIntegers(s,t),this._core.resize(s,t)}open(s){this._core.open(s)}attachCustomKeyEventHandler(s){this._core.attachCustomKeyEventHandler(s)}registerLinkProvider(s){return this._core.registerLinkProvider(s)}registerCharacterJoiner(s){return this._checkProposedApi(),this._core.registerCharacterJoiner(s)}deregisterCharacterJoiner(s){this._checkProposedApi(),this._core.deregisterCharacterJoiner(s)}registerMarker(s=0){return this._verifyIntegers(s),this._core.registerMarker(s)}registerDecoration(s){var t,i,l;return this._checkProposedApi(),this._verifyPositiveIntegers((t=s.x)!==null&&t!==void 0?t:0,(i=s.width)!==null&&i!==void 0?i:0,(l=s.height)!==null&&l!==void 0?l:0),this._core.registerDecoration(s)}hasSelection(){return this._core.hasSelection()}select(s,t,i){this._verifyIntegers(s,t,i),this._core.select(s,t,i)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(s,t){this._verifyIntegers(s,t),this._core.selectLines(s,t)}dispose(){super.dispose()}scrollLines(s){this._verifyIntegers(s),this._core.scrollLines(s)}scrollPages(s){this._verifyIntegers(s),this._core.scrollPages(s)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(s){this._verifyIntegers(s),this._core.scrollToLine(s)}clear(){this._core.clear()}write(s,t){this._core.write(s,t)}writeln(s,t){this._core.write(s),this._core.write(`\r
-`,t)}paste(s){this._core.paste(s)}refresh(s,t){this._verifyIntegers(s,t),this._core.refresh(s,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(s){this._addonManager.loadAddon(this,s)}static get strings(){return r}_verifyIntegers(...s){for(const t of s)if(t===1/0||isNaN(t)||t%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...s){for(const t of s)if(t&&(t===1/0||isNaN(t)||t%1!=0||t<0))throw new Error("This API only accepts positive integers")}}B.Terminal=u})(),U})())})(lt);var _s=lt.exports,ct={exports:{}};(function(T,D){(function(A,M){T.exports=M()})(self,()=>(()=>{var A={};return(()=>{var M=A;Object.defineProperty(M,"__esModule",{value:!0}),M.FitAddon=void 0,M.FitAddon=class{activate(F){this._terminal=F}dispose(){}fit(){const F=this.proposeDimensions();if(!F||!this._terminal||isNaN(F.cols)||isNaN(F.rows))return;const U=this._terminal._core;this._terminal.rows===F.rows&&this._terminal.cols===F.cols||(U._renderService.clear(),this._terminal.resize(F.cols,F.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;const F=this._terminal._core,U=F._renderService.dimensions;if(U.css.cell.width===0||U.css.cell.height===0)return;const B=this._terminal.options.scrollback===0?0:F.viewport.scrollBarWidth,r=window.getComputedStyle(this._terminal.element.parentElement),o=parseInt(r.getPropertyValue("height")),h=Math.max(0,parseInt(r.getPropertyValue("width"))),f=window.getComputedStyle(this._terminal.element),n=o-(parseInt(f.getPropertyValue("padding-top"))+parseInt(f.getPropertyValue("padding-bottom"))),d=h-(parseInt(f.getPropertyValue("padding-right"))+parseInt(f.getPropertyValue("padding-left")))-B;return{cols:Math.max(2,Math.floor(d/U.css.cell.width)),rows:Math.max(1,Math.floor(n/U.css.cell.height))}}}})(),A})())})(ct);var fs=ct.exports;const dt=1,we=6,Ie=16,Te=we+Ie,le={IN:2,OUT:3,RESIZE:4,META:5,CLOSE:6,ATTACH:16,REPLAY_PROGRESS:19,PING:32,PONG:33,PASTE_IMAGE:51,CLAIM_DRIVER:52,PASTE_FILE:55},vs=new Uint8Array(16);function ge(T,D,A){const M=A??new Uint8Array(0),F=new Uint8Array(we+Ie+M.length),U=new DataView(F.buffer);return F[0]=dt,F[1]=T,U.setUint32(2,M.length,!1),F.set(D??vs,we),F.set(M,we+Ie),F}function ps(T){if(T.length{this.listeners.delete(D)}}emit(){for(const D of this.listeners)try{D()}catch{}}setState(D,A){if(this.state!==D){if(D==="reconnecting")this.pendingReconnect=!0,this.reconnectStartAt=A;else if(this.pendingReconnect&&D==="connected"){const M={at_ms:this.reconnectStartAt,reason:this.pendingReason,duration_ms:A-this.reconnectStartAt};this.reconnects.push(M),this.reconnects.length>Je&&(this.reconnects=this.reconnects.slice(-Je)),this.pendingReconnect=!1,this.pendingReason=""}this.state=D,this.emit()}}setReconnectReason(D,A){this.pendingReason=D}onPongRTT(D,A){this.rttRing[this.rttHead]={at_ms:A,rtt_ms:D},this.rttHead=(this.rttHead+1)%Ue,this.rttHead===0&&(this.rttFilled=!0)}onBytesIn(D,A){this.rollover(A),this.bytesInBucket+=D}onBytesOut(D,A){this.rollover(A),this.bytesOutBucket+=D}tick(D){this.rollover(D)}rollover(D){const A=Math.floor(D/1e3);A!==this.bytesBucketSec&&(this.bytesInPerSec=Me*this.bytesInBucket+(1-Me)*this.bytesInPerSec,this.bytesOutPerSec=Me*this.bytesOutBucket+(1-Me)*this.bytesOutPerSec,this.bytesInBucket=0,this.bytesOutBucket=0,this.bytesBucketSec=A)}onSeqGap(){this.seqGaps+=1}snapshot(D){const A=this.orderedRTT(),M={state:this.state,rtt:{last_ms:null,p50_ms:null,p95_ms:null},rtt_samples:A,reconnect:{count_last_hour:0,last_at_ms:null,last_reason:"",history:this.reconnects.slice()},bytes:{in_per_sec:Math.round(this.bytesInPerSec),out_per_sec:Math.round(this.bytesOutPerSec)},seq_gaps:this.seqGaps};if(A.length>0){M.rtt.last_ms=A[A.length-1].rtt_ms;const U=A.map(B=>B.rtt_ms).sort((B,r)=>B-r);M.rtt.p50_ms=Ye(U,50),M.rtt.p95_ms=Ye(U,95)}const F=D-bs;if(M.reconnect.count_last_hour=this.reconnects.filter(U=>U.at_ms>=F).length,this.reconnects.length>0){const U=this.reconnects[this.reconnects.length-1];M.reconnect.last_at_ms=U.at_ms,M.reconnect.last_reason=U.reason}return M}orderedRTT(){return this.rttFilled?this.rttRing.slice(this.rttHead).concat(this.rttRing.slice(0,this.rttHead)):this.rttRing.slice(0,this.rttHead)}}function Ye(T,D){if(T.length===0)return 0;if(D<=0)return T[0];if(D>=100)return T[T.length-1];const A=Math.floor(D*T.length/100);return T[Math.min(A,T.length-1)]}const ys=5e3,ws=1e3,Es=500,ks=8e3;class Ls{constructor(D,A={}){Q(this,"sessionId");Q(this,"sidBytes");Q(this,"handlers");Q(this,"ws",null);Q(this,"pendingInputs",[]);Q(this,"lastSeq",0);Q(this,"detached",!1);Q(this,"reconnectAttempts",0);Q(this,"consecutiveFailures",0);Q(this,"firstFailureAt",null);Q(this,"reconnectTimer",null);Q(this,"lastSentCols",null);Q(this,"lastSentRows",null);Q(this,"clientID",crypto.randomUUID());Q(this,"clientName","web");Q(this,"currentDriverClientID","");Q(this,"health",new Cs);Q(this,"pingTimer",null);Q(this,"tickTimer",null);Q(this,"lastSeqForGap",0);this.sessionId=D,this.sidBytes=Ss(D),this.handlers=A}getHealth(){return this.health.snapshot(Date.now())}onHealthChange(D){return this.health.onChange(D)}attach(){this.detached||this.openWS()}detach(){if(this.detached=!0,this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.stopHealthLoops(),this.health.setState("closed",Date.now()),this.ws){try{this.ws.close()}catch{}this.ws=null}}sendInput(D){if(!this.ws||this.ws.readyState===WebSocket.CONNECTING){this.pendingInputs.push(D);return}if(this.ws.readyState!==WebSocket.OPEN)return;const A=ge(le.IN,this.sidBytes,new TextEncoder().encode(D));this.ws.send(A),this.health.onBytesOut(A.byteLength,Date.now())}sendResize(D,A){if(D===this.lastSentCols&&A===this.lastSentRows||!this.ws||this.ws.readyState!==WebSocket.OPEN)return;const M=ge(le.RESIZE,this.sidBytes,ms(D,A));this.ws.send(M),this.health.onBytesOut(M.byteLength,Date.now()),this.lastSentCols=D,this.lastSentRows=A}claimDriver(){if(!this.ws||this.ws.readyState!==WebSocket.OPEN)return;const D=new TextEncoder().encode(JSON.stringify({client_id:this.clientID,client_name:this.clientName})),A=ge(le.CLAIM_DRIVER,this.sidBytes,D);this.ws.send(A),this.health.onBytesOut(A.byteLength,Date.now())}sendPasteImage(D,A="clipboard-image"){return(async()=>{if(!this.ws||this.ws.readyState!==WebSocket.OPEN)return!1;const M=await D.arrayBuffer(),F=Qe(new Uint8Array(M)),U=new TextEncoder().encode(JSON.stringify({filename:A,content_type:D.type||"image/png",data:F})),B=ge(le.PASTE_IMAGE,this.sidBytes,U);return this.ws.send(B),this.health.onBytesOut(B.byteLength,Date.now()),!0})()}sendPasteFile(D,A){return(async()=>{if(!this.ws||this.ws.readyState!==WebSocket.OPEN)return!1;const M=await D.arrayBuffer(),F=Qe(new Uint8Array(M)),U=new TextEncoder().encode(JSON.stringify({filename:A,content_type:D.type||"application/octet-stream",data:F})),B=ge(le.PASTE_FILE,this.sidBytes,U);return this.ws.send(B),this.health.onBytesOut(B.byteLength,Date.now()),!0})()}startHealthLoops(D){this.stopHealthLoops(),this.tickTimer=setInterval(()=>{this.health.tick(Date.now())},ws),this.pingTimer=setInterval(()=>{if(D.readyState!==WebSocket.OPEN)return;const A=Date.now(),M=new Uint8Array(8),F=new DataView(M.buffer);F.setUint32(0,Math.floor(A/4294967296),!1),F.setUint32(4,A>>>0,!1);const U=ge(le.PING,this.sidBytes,M);D.send(U),this.health.onBytesOut(U.byteLength,Date.now())},ys)}stopHealthLoops(){this.pingTimer!==null&&(clearInterval(this.pingTimer),this.pingTimer=null),this.tickTimer!==null&&(clearInterval(this.tickTimer),this.tickTimer=null)}decryptOut(D,A){if(D.length<41||D[0]!==1)return D;const F=Ke();return F?Pt(D,F,this.sessionId,A):null}openWS(){var U,B;if(this.detached)return;const D=Ds("/client"),A=Ve(),M=A!=null&&A.sessionToken?[`atterm-token.${A.sessionToken}`]:[],F=new WebSocket(D,M);F.binaryType="arraybuffer",this.ws=F,this.health.setState(this.reconnectAttempts===0?"connecting":"reconnecting",Date.now()),(B=(U=this.handlers).onStatus)==null||B.call(U,this.reconnectAttempts===0?"connecting":"reconnecting"),F.onopen=()=>{var h,f;this.reconnectAttempts=0,this.consecutiveFailures=0,this.firstFailureAt=null,this.health.setState("connected",Date.now()),(f=(h=this.handlers).onStatus)==null||f.call(h,"attached");const r=new TextEncoder().encode(JSON.stringify({session_id:this.sessionId,since_seq:this.lastSeq,client_id:this.clientID,client_name:this.clientName})),o=ge(le.ATTACH,this.sidBytes,r);if(F.send(o),this.health.onBytesOut(o.byteLength,Date.now()),this.pendingInputs.length>0){const n=this.pendingInputs;this.pendingInputs=[];for(const d of n){const _=ge(le.IN,this.sidBytes,new TextEncoder().encode(d));F.send(_),this.health.onBytesOut(_.byteLength,Date.now())}}this.startHealthLoops(F)},F.onmessage=r=>{var f,n,d,_,v,u,e,s,t,i,l,c;const o=new Uint8Array(r.data);this.health.onBytesIn(o.byteLength,Date.now());let h;try{h=ps(o)}catch{return}switch(h.type){case le.OUT:{const{seq:p,data:m}=gs(h.payload);this.lastSeqForGap!==0&&p>this.lastSeqForGap+1&&this.health.onSeqGap(),this.lastSeqForGap=p,p>this.lastSeq&&(this.lastSeq=p);const a=this.decryptOut(m,p);a&&((n=(f=this.handlers).onOutput)==null||n.call(f,a,p));break}case le.PONG:{if(h.payload.length===8){const p=new DataView(h.payload.buffer,h.payload.byteOffset,h.payload.byteLength),m=p.getUint32(0,!1),a=p.getUint32(4,!1),g=m*4294967296+a,C=Date.now()-g;C>=0&&C<6e4&&this.health.onPongRTT(C,Date.now())}break}case le.META:{try{const p=JSON.parse(new TextDecoder().decode(h.payload)),m=Ke();if(m&&typeof p.sealed=="string"&&p.sealed.length>0){const C=Rs(p.sealed),w=Ht(C,m,this.sessionId);w&&(w.cwd!==void 0&&(p.cwd=w.cwd),w.title!==void 0&&(p.title=w.title),w.current_command!==void 0&&(p.current_command=w.current_command))}(_=(d=this.handlers).onMeta)==null||_.call(d,p);const a=String(p.driver_client_id??""),g=String(p.driver_client_name??"");a!==this.currentDriverClientID&&(this.currentDriverClientID=a,(u=(v=this.handlers).onDriverChange)==null||u.call(v,a,a!==""&&a===this.clientID,g))}catch{}break}case le.CLOSE:{let p={exit_code:0};try{p=JSON.parse(new TextDecoder().decode(h.payload))}catch{}(s=(e=this.handlers).onClose)==null||s.call(e,p),(i=(t=this.handlers).onStatus)==null||i.call(t,"ended");break}case le.REPLAY_PROGRESS:{try{(c=(l=this.handlers).onReplayProgress)==null||c.call(l,JSON.parse(new TextDecoder().decode(h.payload)))}catch{}break}}},F.onclose=r=>{var n,d;if(this.ws=null,this.stopHealthLoops(),this.detached){this.health.setState("closed",Date.now());return}const o=r.code?`ws_close_${r.code}`:"ws_close";this.health.setReconnectReason(o,Date.now()),this.health.setState("reconnecting",Date.now()),this.consecutiveFailures+=1,this.firstFailureAt===null&&(this.firstFailureAt=Date.now());const h=Bs({consecutiveFailures:this.consecutiveFailures,firstFailureAt:this.firstFailureAt,now:Date.now()});(d=(n=this.handlers).onStatus)==null||d.call(n,h?"lost":"reconnecting");const f=Math.min(ks,Es*Math.pow(2,this.reconnectAttempts++));this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.openWS()},f)},F.onerror=()=>{}}}function Ze(T,D){const A=new URL(T);return`${A.protocol==="https:"?"wss:":"ws:"}//${A.host}${D}`}function Ds(T){const D=Ve();if(D!=null&&D.homeInstanceURL)return Ze(D.homeInstanceURL,T);if(mt()){const M=D==null?void 0:D.baseURL;if(!M)throw new ot(0,"relay_not_configured",null);return Ze(M,T)}return typeof location>"u"?`ws://localhost${T}`:`${location.protocol==="https:"?"wss:":"ws:"}//${location.host}${T}`}function Qe(T){let D="";for(let A=0;A=As?!0:T.firstFailureAt!==null&&T.now-T.firstFailureAt>=xs?T.consecutiveFailures>0:!1}const Ts=Object.freeze([{id:"default-yes",label:"yes",text:"yes"},{id:"default-ok",label:"ok",text:"ok"},{id:"default-continue",label:"continue",text:"continue"},{id:"default-commit",label:"commit",text:"commit"},{id:"default-push",label:"push",text:"push"},{id:"default-release",label:"release",text:"release"},{id:"default-1",label:"1",text:"1"},{id:"default-2",label:"2",text:"2"},{id:"default-3",label:"3",text:"3"}]);async function Ms(T){const D=await T.load();return D.length>0?D:Ts}const Ne="atterm.templates",Is={load(){return new Promise(T=>{if(typeof localStorage>"u")return T([]);const D=localStorage.getItem(Ne);if(!D)return T([]);try{const A=JSON.parse(D);T(Array.isArray(A)?A:[])}catch{T([])}})},save(T){return new Promise(D=>{if(typeof localStorage>"u")return D();localStorage.setItem(Ne,JSON.stringify(T));try{localStorage.setItem("atterm.quick_templates.value",JSON.stringify(T))}catch{}St(async()=>{const{notifyLocalChange:A}=await import("./prefsSync-C6s4W7Ql.js");return{notifyLocalChange:A}},__vite__mapDeps([0,1,2,3])).then(({notifyLocalChange:A})=>{A("quick_templates")}).catch(()=>{}),D()})},clear(){return new Promise(T=>{if(typeof localStorage>"u")return T();localStorage.removeItem(Ne),T()})}},Os={class:"term-view"},Ps={href:"/setup.html"},Hs={class:"term-wrap"},Fs={key:0,class:"replay-overlay","data-testid":"replay-progress"},$s={class:"replay-text"},Us={class:"replay-track","aria-hidden":"true"},Ns={key:1,class:"viewer-overlay","data-testid":"viewer-overlay"},Ws={class:"viewer-card"},js={class:"viewer-title"},zs={key:1,class:"template-bar","data-testid":"template-bar"},qs=["data-testid","onClick"],Ks={class:"status-line","data-testid":"status-line"},Vs=_e({__name:"TerminalView",props:{sessionId:{},focusInput:{type:Boolean}},emits:["request-paste","request-copy"],setup(T,{expose:D,emit:A}){const M=T,F=ne("connecting"),U=ne(null),B=ne(!0),r=ne(null),o=ne([]),h=ne(typeof localStorage<"u"&&localStorage.getItem("atterm.templates.hidden")==="1"),{t:f}=Le();let n=null,d=null,_=null,v=null;const u={background:"#000000"},e=he(()=>f(`terminal.statuses.${F.value}`));function s(){return!U.value||U.value.total_bytes===0?0:Math.min(100,Math.round(U.value.bytes/U.value.total_bytes*100))}function t(){if(!(!d||!n))try{d.fit()}catch{}}function i(){const a=n;a&&a.write("",()=>{n===a&&a.scrollToBottom()})}function l(){n=new _s.Terminal({fontFamily:"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",fontSize:13,theme:u,cursorBlink:!0,convertEol:!1,scrollback:2e4,allowProposedApi:!0}),d=new fs.FitAddon,n.loadAddon(d),n.open(r.value),t(),M.focusInput&&n.focus(),n.onData(a=>{_==null||_.sendInput(a)}),n.onResize(({cols:a,rows:g})=>{_==null||_.sendResize(a,g)}),v=new ResizeObserver(()=>t()),v.observe(r.value)}function c(){_=new Ls(M.sessionId,{onOutput:a=>{n==null||n.write(a)},onMeta:a=>{},onClose:a=>{n==null||n.write(`\r
+`,t)}paste(s){this._core.paste(s)}refresh(s,t){this._verifyIntegers(s,t),this._core.refresh(s,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(s){this._addonManager.loadAddon(this,s)}static get strings(){return r}_verifyIntegers(...s){for(const t of s)if(t===1/0||isNaN(t)||t%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...s){for(const t of s)if(t&&(t===1/0||isNaN(t)||t%1!=0||t<0))throw new Error("This API only accepts positive integers")}}B.Terminal=u})(),U})())})(lt);var _s=lt.exports,ct={exports:{}};(function(T,D){(function(A,M){T.exports=M()})(self,()=>(()=>{var A={};return(()=>{var M=A;Object.defineProperty(M,"__esModule",{value:!0}),M.FitAddon=void 0,M.FitAddon=class{activate(F){this._terminal=F}dispose(){}fit(){const F=this.proposeDimensions();if(!F||!this._terminal||isNaN(F.cols)||isNaN(F.rows))return;const U=this._terminal._core;this._terminal.rows===F.rows&&this._terminal.cols===F.cols||(U._renderService.clear(),this._terminal.resize(F.cols,F.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;const F=this._terminal._core,U=F._renderService.dimensions;if(U.css.cell.width===0||U.css.cell.height===0)return;const B=this._terminal.options.scrollback===0?0:F.viewport.scrollBarWidth,r=window.getComputedStyle(this._terminal.element.parentElement),o=parseInt(r.getPropertyValue("height")),h=Math.max(0,parseInt(r.getPropertyValue("width"))),f=window.getComputedStyle(this._terminal.element),n=o-(parseInt(f.getPropertyValue("padding-top"))+parseInt(f.getPropertyValue("padding-bottom"))),d=h-(parseInt(f.getPropertyValue("padding-right"))+parseInt(f.getPropertyValue("padding-left")))-B;return{cols:Math.max(2,Math.floor(d/U.css.cell.width)),rows:Math.max(1,Math.floor(n/U.css.cell.height))}}}})(),A})())})(ct);var fs=ct.exports;const dt=1,we=6,Ie=16,Te=we+Ie,le={IN:2,OUT:3,RESIZE:4,META:5,CLOSE:6,ATTACH:16,REPLAY_PROGRESS:19,PING:32,PONG:33,PASTE_IMAGE:51,CLAIM_DRIVER:52,PASTE_FILE:55},vs=new Uint8Array(16);function ge(T,D,A){const M=A??new Uint8Array(0),F=new Uint8Array(we+Ie+M.length),U=new DataView(F.buffer);return F[0]=dt,F[1]=T,U.setUint32(2,M.length,!1),F.set(D??vs,we),F.set(M,we+Ie),F}function ps(T){if(T.length{this.listeners.delete(D)}}emit(){for(const D of this.listeners)try{D()}catch{}}setState(D,A){if(this.state!==D){if(D==="reconnecting")this.pendingReconnect=!0,this.reconnectStartAt=A;else if(this.pendingReconnect&&D==="connected"){const M={at_ms:this.reconnectStartAt,reason:this.pendingReason,duration_ms:A-this.reconnectStartAt};this.reconnects.push(M),this.reconnects.length>Je&&(this.reconnects=this.reconnects.slice(-Je)),this.pendingReconnect=!1,this.pendingReason=""}this.state=D,this.emit()}}setReconnectReason(D,A){this.pendingReason=D}onPongRTT(D,A){this.rttRing[this.rttHead]={at_ms:A,rtt_ms:D},this.rttHead=(this.rttHead+1)%Ue,this.rttHead===0&&(this.rttFilled=!0)}onBytesIn(D,A){this.rollover(A),this.bytesInBucket+=D}onBytesOut(D,A){this.rollover(A),this.bytesOutBucket+=D}tick(D){this.rollover(D)}rollover(D){const A=Math.floor(D/1e3);A!==this.bytesBucketSec&&(this.bytesInPerSec=Me*this.bytesInBucket+(1-Me)*this.bytesInPerSec,this.bytesOutPerSec=Me*this.bytesOutBucket+(1-Me)*this.bytesOutPerSec,this.bytesInBucket=0,this.bytesOutBucket=0,this.bytesBucketSec=A)}onSeqGap(){this.seqGaps+=1}snapshot(D){const A=this.orderedRTT(),M={state:this.state,rtt:{last_ms:null,p50_ms:null,p95_ms:null},rtt_samples:A,reconnect:{count_last_hour:0,last_at_ms:null,last_reason:"",history:this.reconnects.slice()},bytes:{in_per_sec:Math.round(this.bytesInPerSec),out_per_sec:Math.round(this.bytesOutPerSec)},seq_gaps:this.seqGaps};if(A.length>0){M.rtt.last_ms=A[A.length-1].rtt_ms;const U=A.map(B=>B.rtt_ms).sort((B,r)=>B-r);M.rtt.p50_ms=Ye(U,50),M.rtt.p95_ms=Ye(U,95)}const F=D-bs;if(M.reconnect.count_last_hour=this.reconnects.filter(U=>U.at_ms>=F).length,this.reconnects.length>0){const U=this.reconnects[this.reconnects.length-1];M.reconnect.last_at_ms=U.at_ms,M.reconnect.last_reason=U.reason}return M}orderedRTT(){return this.rttFilled?this.rttRing.slice(this.rttHead).concat(this.rttRing.slice(0,this.rttHead)):this.rttRing.slice(0,this.rttHead)}}function Ye(T,D){if(T.length===0)return 0;if(D<=0)return T[0];if(D>=100)return T[T.length-1];const A=Math.floor(D*T.length/100);return T[Math.min(A,T.length-1)]}const ys=5e3,ws=1e3,Es=500,ks=8e3;class Ls{constructor(D,A={}){Q(this,"sessionId");Q(this,"sidBytes");Q(this,"handlers");Q(this,"ws",null);Q(this,"pendingInputs",[]);Q(this,"lastSeq",0);Q(this,"detached",!1);Q(this,"reconnectAttempts",0);Q(this,"consecutiveFailures",0);Q(this,"firstFailureAt",null);Q(this,"reconnectTimer",null);Q(this,"lastSentCols",null);Q(this,"lastSentRows",null);Q(this,"clientID",crypto.randomUUID());Q(this,"clientName","web");Q(this,"currentDriverClientID","");Q(this,"health",new Cs);Q(this,"pingTimer",null);Q(this,"tickTimer",null);Q(this,"lastSeqForGap",0);this.sessionId=D,this.sidBytes=Ss(D),this.handlers=A}getHealth(){return this.health.snapshot(Date.now())}onHealthChange(D){return this.health.onChange(D)}attach(){this.detached||this.openWS()}detach(){if(this.detached=!0,this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.stopHealthLoops(),this.health.setState("closed",Date.now()),this.ws){try{this.ws.close()}catch{}this.ws=null}}sendInput(D){if(!this.ws||this.ws.readyState===WebSocket.CONNECTING){this.pendingInputs.push(D);return}if(this.ws.readyState!==WebSocket.OPEN)return;const A=ge(le.IN,this.sidBytes,new TextEncoder().encode(D));this.ws.send(A),this.health.onBytesOut(A.byteLength,Date.now())}sendResize(D,A){if(D===this.lastSentCols&&A===this.lastSentRows||!this.ws||this.ws.readyState!==WebSocket.OPEN)return;const M=ge(le.RESIZE,this.sidBytes,ms(D,A));this.ws.send(M),this.health.onBytesOut(M.byteLength,Date.now()),this.lastSentCols=D,this.lastSentRows=A}claimDriver(){if(!this.ws||this.ws.readyState!==WebSocket.OPEN)return;const D=new TextEncoder().encode(JSON.stringify({client_id:this.clientID,client_name:this.clientName})),A=ge(le.CLAIM_DRIVER,this.sidBytes,D);this.ws.send(A),this.health.onBytesOut(A.byteLength,Date.now())}sendPasteImage(D,A="clipboard-image"){return(async()=>{if(!this.ws||this.ws.readyState!==WebSocket.OPEN)return!1;const M=await D.arrayBuffer(),F=Qe(new Uint8Array(M)),U=new TextEncoder().encode(JSON.stringify({filename:A,content_type:D.type||"image/png",data:F})),B=ge(le.PASTE_IMAGE,this.sidBytes,U);return this.ws.send(B),this.health.onBytesOut(B.byteLength,Date.now()),!0})()}sendPasteFile(D,A){return(async()=>{if(!this.ws||this.ws.readyState!==WebSocket.OPEN)return!1;const M=await D.arrayBuffer(),F=Qe(new Uint8Array(M)),U=new TextEncoder().encode(JSON.stringify({filename:A,content_type:D.type||"application/octet-stream",data:F})),B=ge(le.PASTE_FILE,this.sidBytes,U);return this.ws.send(B),this.health.onBytesOut(B.byteLength,Date.now()),!0})()}startHealthLoops(D){this.stopHealthLoops(),this.tickTimer=setInterval(()=>{this.health.tick(Date.now())},ws),this.pingTimer=setInterval(()=>{if(D.readyState!==WebSocket.OPEN)return;const A=Date.now(),M=new Uint8Array(8),F=new DataView(M.buffer);F.setUint32(0,Math.floor(A/4294967296),!1),F.setUint32(4,A>>>0,!1);const U=ge(le.PING,this.sidBytes,M);D.send(U),this.health.onBytesOut(U.byteLength,Date.now())},ys)}stopHealthLoops(){this.pingTimer!==null&&(clearInterval(this.pingTimer),this.pingTimer=null),this.tickTimer!==null&&(clearInterval(this.tickTimer),this.tickTimer=null)}decryptOut(D,A){if(D.length<41||D[0]!==1)return D;const F=Ke();return F?Pt(D,F,this.sessionId,A):null}openWS(){var U,B;if(this.detached)return;const D=Ds("/client"),A=Ve(),M=A!=null&&A.sessionToken?[`atterm-token.${A.sessionToken}`]:[],F=new WebSocket(D,M);F.binaryType="arraybuffer",this.ws=F,this.health.setState(this.reconnectAttempts===0?"connecting":"reconnecting",Date.now()),(B=(U=this.handlers).onStatus)==null||B.call(U,this.reconnectAttempts===0?"connecting":"reconnecting"),F.onopen=()=>{var h,f;this.reconnectAttempts=0,this.consecutiveFailures=0,this.firstFailureAt=null,this.health.setState("connected",Date.now()),(f=(h=this.handlers).onStatus)==null||f.call(h,"attached");const r=new TextEncoder().encode(JSON.stringify({session_id:this.sessionId,since_seq:this.lastSeq,client_id:this.clientID,client_name:this.clientName})),o=ge(le.ATTACH,this.sidBytes,r);if(F.send(o),this.health.onBytesOut(o.byteLength,Date.now()),this.pendingInputs.length>0){const n=this.pendingInputs;this.pendingInputs=[];for(const d of n){const _=ge(le.IN,this.sidBytes,new TextEncoder().encode(d));F.send(_),this.health.onBytesOut(_.byteLength,Date.now())}}this.startHealthLoops(F)},F.onmessage=r=>{var f,n,d,_,v,u,e,s,t,i,l,c;const o=new Uint8Array(r.data);this.health.onBytesIn(o.byteLength,Date.now());let h;try{h=ps(o)}catch{return}switch(h.type){case le.OUT:{const{seq:p,data:m}=gs(h.payload);this.lastSeqForGap!==0&&p>this.lastSeqForGap+1&&this.health.onSeqGap(),this.lastSeqForGap=p,p>this.lastSeq&&(this.lastSeq=p);const a=this.decryptOut(m,p);a&&((n=(f=this.handlers).onOutput)==null||n.call(f,a,p));break}case le.PONG:{if(h.payload.length===8){const p=new DataView(h.payload.buffer,h.payload.byteOffset,h.payload.byteLength),m=p.getUint32(0,!1),a=p.getUint32(4,!1),g=m*4294967296+a,C=Date.now()-g;C>=0&&C<6e4&&this.health.onPongRTT(C,Date.now())}break}case le.META:{try{const p=JSON.parse(new TextDecoder().decode(h.payload)),m=Ke();if(m&&typeof p.sealed=="string"&&p.sealed.length>0){const C=Rs(p.sealed),w=Ht(C,m,this.sessionId);w&&(w.cwd!==void 0&&(p.cwd=w.cwd),w.title!==void 0&&(p.title=w.title),w.current_command!==void 0&&(p.current_command=w.current_command))}(_=(d=this.handlers).onMeta)==null||_.call(d,p);const a=String(p.driver_client_id??""),g=String(p.driver_client_name??"");a!==this.currentDriverClientID&&(this.currentDriverClientID=a,(u=(v=this.handlers).onDriverChange)==null||u.call(v,a,a!==""&&a===this.clientID,g))}catch{}break}case le.CLOSE:{let p={exit_code:0};try{p=JSON.parse(new TextDecoder().decode(h.payload))}catch{}(s=(e=this.handlers).onClose)==null||s.call(e,p),(i=(t=this.handlers).onStatus)==null||i.call(t,"ended");break}case le.REPLAY_PROGRESS:{try{(c=(l=this.handlers).onReplayProgress)==null||c.call(l,JSON.parse(new TextDecoder().decode(h.payload)))}catch{}break}}},F.onclose=r=>{var n,d;if(this.ws=null,this.stopHealthLoops(),this.detached){this.health.setState("closed",Date.now());return}const o=r.code?`ws_close_${r.code}`:"ws_close";this.health.setReconnectReason(o,Date.now()),this.health.setState("reconnecting",Date.now()),this.consecutiveFailures+=1,this.firstFailureAt===null&&(this.firstFailureAt=Date.now());const h=Bs({consecutiveFailures:this.consecutiveFailures,firstFailureAt:this.firstFailureAt,now:Date.now()});(d=(n=this.handlers).onStatus)==null||d.call(n,h?"lost":"reconnecting");const f=Math.min(ks,Es*Math.pow(2,this.reconnectAttempts++));this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.openWS()},f)},F.onerror=()=>{}}}function Ze(T,D){const A=new URL(T);return`${A.protocol==="https:"?"wss:":"ws:"}//${A.host}${D}`}function Ds(T){const D=Ve();if(D!=null&&D.homeInstanceURL)return Ze(D.homeInstanceURL,T);if(mt()){const M=D==null?void 0:D.baseURL;if(!M)throw new ot(0,"relay_not_configured",null);return Ze(M,T)}return typeof location>"u"?`ws://localhost${T}`:`${location.protocol==="https:"?"wss:":"ws:"}//${location.host}${T}`}function Qe(T){let D="";for(let A=0;A=As?!0:T.firstFailureAt!==null&&T.now-T.firstFailureAt>=xs?T.consecutiveFailures>0:!1}const Ts=Object.freeze([{id:"default-yes",label:"yes",text:"yes"},{id:"default-ok",label:"ok",text:"ok"},{id:"default-continue",label:"continue",text:"continue"},{id:"default-commit",label:"commit",text:"commit"},{id:"default-push",label:"push",text:"push"},{id:"default-release",label:"release",text:"release"},{id:"default-1",label:"1",text:"1"},{id:"default-2",label:"2",text:"2"},{id:"default-3",label:"3",text:"3"}]);async function Ms(T){const D=await T.load();return D.length>0?D:Ts}const Ne="atterm.templates",Is={load(){return new Promise(T=>{if(typeof localStorage>"u")return T([]);const D=localStorage.getItem(Ne);if(!D)return T([]);try{const A=JSON.parse(D);T(Array.isArray(A)?A:[])}catch{T([])}})},save(T){return new Promise(D=>{if(typeof localStorage>"u")return D();localStorage.setItem(Ne,JSON.stringify(T));try{localStorage.setItem("atterm.quick_templates.value",JSON.stringify(T))}catch{}St(async()=>{const{notifyLocalChange:A}=await import("./prefsSync-BGOlzhJD.js");return{notifyLocalChange:A}},__vite__mapDeps([0,1,2,3])).then(({notifyLocalChange:A})=>{A("quick_templates")}).catch(()=>{}),D()})},clear(){return new Promise(T=>{if(typeof localStorage>"u")return T();localStorage.removeItem(Ne),T()})}},Os={class:"term-view"},Ps={href:"/setup.html"},Hs={class:"term-wrap"},Fs={key:0,class:"replay-overlay","data-testid":"replay-progress"},$s={class:"replay-text"},Us={class:"replay-track","aria-hidden":"true"},Ns={key:1,class:"viewer-overlay","data-testid":"viewer-overlay"},Ws={class:"viewer-card"},js={class:"viewer-title"},zs={key:1,class:"template-bar","data-testid":"template-bar"},qs=["data-testid","onClick"],Ks={class:"status-line","data-testid":"status-line"},Vs=_e({__name:"TerminalView",props:{sessionId:{},focusInput:{type:Boolean}},emits:["request-paste","request-copy"],setup(T,{expose:D,emit:A}){const M=T,F=ne("connecting"),U=ne(null),B=ne(!0),r=ne(null),o=ne([]),h=ne(typeof localStorage<"u"&&localStorage.getItem("atterm.templates.hidden")==="1"),{t:f}=Le();let n=null,d=null,_=null,v=null;const u={background:"#000000"},e=he(()=>f(`terminal.statuses.${F.value}`));function s(){return!U.value||U.value.total_bytes===0?0:Math.min(100,Math.round(U.value.bytes/U.value.total_bytes*100))}function t(){if(!(!d||!n))try{d.fit()}catch{}}function i(){const a=n;a&&a.write("",()=>{n===a&&a.scrollToBottom()})}function l(){n=new _s.Terminal({fontFamily:"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",fontSize:13,theme:u,cursorBlink:!0,convertEol:!1,scrollback:2e4,allowProposedApi:!0}),d=new fs.FitAddon,n.loadAddon(d),n.open(r.value),t(),M.focusInput&&n.focus(),n.onData(a=>{_==null||_.sendInput(a)}),n.onResize(({cols:a,rows:g})=>{_==null||_.sendResize(a,g)}),v=new ResizeObserver(()=>t()),v.observe(r.value)}function c(){_=new Ls(M.sessionId,{onOutput:a=>{n==null||n.write(a)},onMeta:a=>{},onClose:a=>{n==null||n.write(`\r
\x1B[33m[AT Term] ${f("terminal.ended",{code:a.exit_code})}\x1B[0m\r
`)},onReplayProgress:a=>{String(a.phase)==="end"?(U.value=null,i()):U.value={bytes:Number(a.bytes??0),total_bytes:Number(a.total_bytes??0)}},onStatus:a=>{F.value=a},onDriverChange:(a,g)=>{B.value=g,n&&(n.options.disableStdin=!g)}}),_.attach()}function p(){_==null||_.claimDriver()}function m(a){_==null||_.sendInput(a.text);const g=_;window.setTimeout(()=>g==null?void 0:g.sendInput("\r"),16)}return ke(()=>{l(),c(),Ms(Is).then(a=>{o.value=a})}),Ge(()=>{v==null||v.disconnect(),v=null,_==null||_.detach(),_=null,n==null||n.dispose(),n=null,d=null}),ze(()=>M.sessionId,()=>{_==null||_.detach(),_=null,n==null||n.reset(),U.value=null,c()}),ze(()=>M.focusInput,a=>{a&&(n==null||n.focus())}),D({sendInput(a){_==null||_.sendInput(a)},sendPasteImage(a,g){return _==null?void 0:_.sendPasteImage(a,g)},sendPasteFile(a,g){return _==null?void 0:_.sendPasteFile(a,g)},copySelection(){if(!n)return;const a=n.getSelection();a&&navigator.clipboard.writeText(a).catch(()=>{})},getHealth(){return typeof(_==null?void 0:_.getHealth)=="function"?_.getHealth():null}}),(a,g)=>(X(),ee("section",Os,[F.value==="lost"?(X(),me(Y(at),{key:0,type:"warning","show-icon":!0,class:"lost-banner","data-testid":"lost-banner"},{default:Se(()=>[be(K(Y(f)("terminal.cannotReachRelay"))+" ",1),j("a",Ps,K(Y(f)("terminal.tapToChangeConfig")),1)]),_:1})):re("",!0),j("div",Hs,[j("div",{ref_key:"termContainer",ref:r,class:"term"},null,512),U.value?(X(),ee("div",Fs,[j("div",$s,K(Y(f)("terminal.loadingHistory",{percent:s()})),1),j("div",Us,[j("div",{class:"replay-fill",style:nt({width:s()+"%"})},null,4)])])):re("",!0),B.value?re("",!0):(X(),ee("div",Ns,[j("div",Ws,[j("div",js,K(Y(f)("terminal.remoteControl")),1),j("button",{class:"take-control","data-testid":"take-control",onClick:p},K(Y(f)("terminal.takeControl")),1)])]))]),h.value?re("",!0):(X(),ee("div",zs,[(X(!0),ee(Ce,null,Ee(o.value,C=>(X(),ee("button",{key:C.id,class:"template-btn","data-testid":`template-btn-${C.id}`,onClick:w=>m(C)},K(C.label),9,qs))),128))])),j("p",Ks,K(e.value),1)]))}}),Gs=fe(Vs,[["__scopeId","data-v-c585edca"]]),Xs=["aria-label"],Js=_e({__name:"ShortcutBar",emits:["input","copy","paste"],setup(T,{emit:D}){const A=D,{t:M}=Le(),F={esc:"\x1B",tab:" ","ctrl-c":"","ctrl-d":"",up:"\x1B[A",down:"\x1B[B",right:"\x1B[C",left:"\x1B[D"};function U(B){const r=B.target.closest("button[data-shortcut]");if(!r)return;const o=r.getAttribute("data-shortcut")||"",h=F[o];h!==void 0&&A("input",h)}return(B,r)=>(X(),ee("div",{class:"shortcut-bar","aria-label":Y(M)("terminal.shortcuts"),onClick:U},[r[2]||(r[2]=bt('',8)),j("button",{type:"button","data-testid":"copy",onClick:r[0]||(r[0]=qe(o=>A("copy"),["stop"]))},K(Y(M)("common.copy")),1),j("button",{type:"button","data-testid":"paste",onClick:r[1]||(r[1]=qe(o=>A("paste"),["stop"]))},K(Y(M)("terminal.paste")),1)],8,Xs))}}),Ys=fe(Js,[["__scopeId","data-v-57455025"]]),Zs=["placeholder"],Qs={class:"actions"},ei={class:"paste-image-pick",for:"paste-image-file"},ti={class:"paste-image-pick",for:"paste-file-file"},si={type:"submit"},ii=10*1024*1024,ri=_e({__name:"PasteFallback",props:{open:{type:Boolean}},emits:["paste-text","paste-image","paste-file","close"],setup(T,{emit:D}){const A=T,M=D,F=ne(""),{t:U}=Le();ze(()=>A.open,n=>{n||(F.value="")});function B(n){n.preventDefault(),F.value&&M("paste-text",F.value),M("close")}function r(){M("close")}function o(n){if(n.size>ii){console.warn("[PasteFallback] file too large, dropping",n.name,n.size);return}n.type.startsWith("image/")?M("paste-image",n):M("paste-file",n)}function h(n){var v;const d=n.target,_=(v=d.files)==null?void 0:v[0];d.value="",_&&o(_)}function f(n){var v;const d=n.target,_=(v=d.files)==null?void 0:v[0];d.value="",_&&o(_)}return(n,d)=>n.open?(X(),ee("form",{key:0,class:"paste-fallback",onSubmit:B},[Ct(j("textarea",{"onUpdate:modelValue":d[0]||(d[0]=_=>F.value=_),rows:"3",placeholder:Y(U)("terminal.paste"),"data-testid":"paste-text"},null,8,Zs),[[yt,F.value]]),j("div",Qs,[j("label",ei,K(Y(U)("terminal.pickImage")),1),j("input",{id:"paste-image-file",type:"file",accept:"image/*",hidden:"","data-testid":"paste-image-file",onChange:h},null,32),j("label",ti,K(Y(U)("terminal.pickFile")),1),j("input",{id:"paste-file-file",type:"file",accept:"*/*",hidden:"","data-testid":"paste-file-file",onChange:f},null,32),j("button",{type:"button","data-testid":"paste-cancel",onClick:r},K(Y(U)("common.cancel")),1),j("button",si,K(Y(U)("common.send")),1)])],32)):re("",!0)}}),ni=fe(ri,[["__scopeId","data-v-62a149bf"]]),We=new Set,ut={emit(T,D){const A={id:crypto.randomUUID(),file:T,name:D||"clipboard-image"};for(const M of We)try{M(A)}catch(F){console.warn("[pasteImageBus] handler threw",F)}},on(T){return We.add(T),()=>{We.delete(T)}}},oi={class:"paste-preview-host"},ai=["onMouseenter","onMouseleave"],li=["src","alt","onClick"],hi={class:"paste-toast-name"},ci=["aria-label","onClick"],di=["src","alt"],ui=5e3,_i=_e({__name:"PasteImagePreviewHost",setup(T){const D=ne([]),A=ne(null),M=new Map;function F(v){const u=window.setTimeout(()=>r(v),ui);M.set(v,u)}function U(v){const u=M.get(v);u!==void 0&&(window.clearTimeout(u),M.delete(v))}function B(v){let u;try{u=URL.createObjectURL(v.file)}catch(e){console.warn("[PasteImagePreviewHost] createObjectURL failed",e);return}D.value.push({id:v.id,file:v.file,url:u,name:v.name}),F(v.id)}function r(v){U(v);const u=D.value.findIndex(s=>s.id===v);if(u===-1)return;const[e]=D.value.splice(u,1);e&&URL.revokeObjectURL(e.url)}function o(v){U(v)}function h(v){D.value.some(u=>u.id===v)&&F(v)}function f(v){A.value&&URL.revokeObjectURL(A.value.url);try{A.value={url:URL.createObjectURL(v.file),name:v.name}}catch(u){console.warn("[PasteImagePreviewHost] lightbox createObjectURL failed",u),A.value=null}}function n(){A.value&&(URL.revokeObjectURL(A.value.url),A.value=null)}function d(v){v.key==="Escape"&&A.value&&n()}let _=null;return ke(()=>{_=ut.on(B),document.addEventListener("keydown",d)}),Ge(()=>{_==null||_(),_=null,document.removeEventListener("keydown",d);for(const v of M.values())window.clearTimeout(v);M.clear();for(const v of D.value)URL.revokeObjectURL(v.url);D.value=[],A.value&&(URL.revokeObjectURL(A.value.url),A.value=null)}),(v,u)=>(X(),ee("div",oi,[(X(!0),ee(Ce,null,Ee(D.value,e=>(X(),ee("div",{key:e.id,class:"paste-toast","data-testid":"paste-toast",onMouseenter:s=>o(e.id),onMouseleave:s=>h(e.id)},[j("img",{src:e.url,alt:e.name,class:"paste-toast-thumb",onClick:s=>f(e)},null,8,li),j("span",hi,K(e.name),1),j("button",{type:"button",class:"paste-toast-close","data-testid":"paste-toast-close","aria-label":"close "+e.name,onClick:s=>r(e.id)},"×",8,ci)],40,ai))),128)),A.value?(X(),ee("div",{key:0,class:"paste-lightbox","data-testid":"paste-lightbox",onClick:n},[j("img",{src:A.value.url,alt:A.value.name,onClick:u[0]||(u[0]=qe(()=>{},["stop"]))},null,8,di)])):re("",!0)]))}}),fi=fe(_i,[["__scopeId","data-v-c71b4b80"]]),je=new Set,_t={emit(T,D){const A={id:crypto.randomUUID(),name:T||"file",size:D};for(const M of je)try{M(A)}catch(F){console.warn("[pasteFileBus] handler threw",F)}},on(T){return je.add(T),()=>{je.delete(T)}}},vi={class:"paste-file-host"},pi={class:"paste-file-name"},gi={class:"paste-file-size"},mi=["aria-label","onClick"],Si=3e3,bi=_e({__name:"PasteFilePreviewHost",setup(T){const D=ne([]),A=new Map;function M(h){return h<1024?`${h} B`:h<1024*1024?`${(h/1024).toFixed(1)} KiB`:`${(h/(1024*1024)).toFixed(1)} MiB`}function F(h){const f=window.setTimeout(()=>r(h),Si);A.set(h,f)}function U(h){const f=A.get(h);f!==void 0&&(window.clearTimeout(f),A.delete(h))}function B(h){D.value.push({id:h.id,name:h.name,size:h.size}),F(h.id)}function r(h){U(h);const f=D.value.findIndex(n=>n.id===h);f!==-1&&D.value.splice(f,1)}let o=null;return ke(()=>{o=_t.on(B)}),Ge(()=>{o==null||o(),o=null;for(const h of A.values())window.clearTimeout(h);A.clear(),D.value=[]}),(h,f)=>(X(),ee("div",vi,[(X(!0),ee(Ce,null,Ee(D.value,n=>(X(),ee("div",{key:n.id,class:"paste-file-toast","data-testid":"paste-file-toast"},[f[0]||(f[0]=j("span",{class:"paste-file-icon"},"📎",-1)),j("span",pi,K(n.name),1),j("span",gi,"("+K(M(n.size))+")",1),j("button",{type:"button",class:"paste-file-close","data-testid":"paste-file-close","aria-label":"close "+n.name,onClick:d=>r(n.id)},"×",8,mi)]))),128))]))}}),Ci=fe(bi,[["__scopeId","data-v-537ceb1c"]]),yi={key:0,class:"install-hint"},wi=["aria-label"],et="at-term-install-hint-dismissed",Ei=_e({__name:"InstallHint",setup(T){const D=ne(!1),{t:A}=Le();function M(B){return/iPad|iPhone|iPod/i.test(B)&&!/Macintosh|Windows|Android/i.test(B)}function F(){var B;return typeof window>"u"?!1:!!((B=window.matchMedia)!=null&&B.call(window,"(display-mode: standalone)").matches||window.navigator.standalone===!0)}function U(){localStorage.setItem(et,"1"),D.value=!1}return ke(()=>{if(typeof navigator>"u"||typeof localStorage>"u")return;const B=localStorage.getItem(et)==="1";D.value=M(navigator.userAgent)&&!F()&&!B}),(B,r)=>D.value?(X(),ee("section",yi,[j("div",null,[j("strong",null,K(Y(A)("main.install.title")),1),j("span",null,K(Y(A)("main.install.text")),1)]),j("button",{type:"button","aria-label":Y(A)("main.install.dismiss"),onClick:U},"×",8,wi)])):re("",!0)}}),ki=fe(Ei,[["__scopeId","data-v-5ec93c4f"]]),Li=["aria-label"],Di={class:"text"},Ri=_e({__name:"ConnHealthPill",props:{health:{},labels:{}},setup(T){const D=T,A=he(()=>{var U,B,r,o;return{connecting:((U=D.labels)==null?void 0:U.connecting)??"connecting…",reconnecting:((B=D.labels)==null?void 0:B.reconnecting)??"reconnecting…",off:((r=D.labels)==null?void 0:r.off)??"off",unknownMS:((o=D.labels)==null?void 0:o.unknownMS)??"—"}}),M=he(()=>{if(D.health.state==="reconnecting"||D.health.state==="connecting")return"band-reconnecting";if(D.health.state==="closed")return"band-off";const U=D.health.rtt.last_ms;return U===null||U<150?"band-green":U<500?"band-yellow":"band-red"}),F=he(()=>{if(D.health.state==="reconnecting")return A.value.reconnecting;if(D.health.state==="connecting")return A.value.connecting;if(D.health.state==="closed")return A.value.off;const U=D.health.rtt.last_ms;return U===null?A.value.unknownMS:`${U} ms`});return(U,B)=>(X(),ee("button",{class:wt(["conn-health-pill",M.value]),type:"button","aria-label":F.value},[B[0]||(B[0]=j("span",{class:"dot"},"●",-1)),j("span",Di,K(F.value),1)],10,Li))}}),Ai=fe(Ri,[["__scopeId","data-v-5daa187a"]]),xi=["aria-label"],Bi={class:"head"},Ti=["aria-label"],Mi={class:"rtt"},Ii={class:"row"},Oi={class:"metric-label"},Pi={class:"metric-value"},Hi={class:"row"},Fi={class:"metric-label"},$i={class:"metric-value"},Ui={width:"240",height:"60",class:"spark","aria-hidden":"true"},Ni=["d"],Wi={class:"bytes"},ji={class:"row"},zi={class:"metric-label"},qi={class:"metric-value"},Ki={class:"row"},Vi={class:"metric-label"},Gi={class:"metric-value"},Xi={class:"recon"},Ji={class:"row"},Yi={class:"metric-label"},Zi={class:"metric-value"},Qi={class:"row"},er={class:"metric-label"},tr={class:"metric-value"},sr={key:0,class:"reconn-table"},ir={key:0,class:"gaps"},rr=_e({__name:"ConnHealthDrawer",props:{health:{},open:{type:Boolean},labels:{}},emits:["close"],setup(T){const D=T,A=he(()=>{var r,o,h,f,n,d,_,v,u,e,s,t;return{title:((r=D.labels)==null?void 0:r.title)??"Connection health",rttNow:((o=D.labels)==null?void 0:o.rttNow)??"RTT (now)",rttP50P95:((h=D.labels)==null?void 0:h.rttP50P95)??"p50 / p95 (5 min)",bytesIn:((f=D.labels)==null?void 0:f.bytesIn)??"↓ in",bytesOut:((n=D.labels)==null?void 0:n.bytesOut)??"↑ out",state:((d=D.labels)==null?void 0:d.state)??"State",reconnectsLastHour:((_=D.labels)==null?void 0:_.reconnectsLastHour)??"Reconnects (1 h)",reconnectsTime:((v=D.labels)==null?void 0:v.reconnectsTime)??"time",reconnectsReason:((u=D.labels)==null?void 0:u.reconnectsReason)??"reason",reconnectsDowntime:((e=D.labels)==null?void 0:e.reconnectsDowntime)??"downtime",seqGaps:((s=D.labels)==null?void 0:s.seqGaps)??"Seq gaps observed:",close:((t=D.labels)==null?void 0:t.close)??"Close"}}),M=he(()=>{const r=D.health.rtt_samples;if(r.length<2)return"";const o=240,h=60,f=4,n=s=>f+s/(r.length-1)*(o-2*f),d=r.map(s=>s.rtt_ms),_=Math.min(...d),v=Math.max(...d),u=Math.max(1,v-_),e=s=>f+(1-(s-_)/u)*(h-2*f);return r.map((s,t)=>`${t===0?"M":"L"} ${n(t).toFixed(1)} ${e(s.rtt_ms).toFixed(1)}`).join(" ")}),F=r=>`${(r/1024).toFixed(1)} KB/s`,U=r=>r<1e3?`${r} ms`:`${Math.round(r/1e3)} s`,B=r=>new Date(r).toLocaleTimeString();return(r,o)=>r.open?(X(),ee("aside",{key:0,class:"drawer",role:"dialog","aria-label":A.value.title},[j("header",Bi,[j("span",null,K(A.value.title),1),j("button",{class:"close",type:"button","aria-label":A.value.close,onClick:o[0]||(o[0]=h=>r.$emit("close"))},"×",8,Ti)]),j("section",Mi,[j("div",Ii,[j("span",Oi,K(A.value.rttNow),1),j("span",Pi,K(r.health.rtt.last_ms??"—")+" ms",1)]),j("div",Hi,[j("span",Fi,K(A.value.rttP50P95),1),j("span",$i,K(r.health.rtt.p50_ms??"—")+" / "+K(r.health.rtt.p95_ms??"—")+" ms",1)]),(X(),ee("svg",Ui,[j("path",{d:M.value,fill:"none",stroke:"currentColor","stroke-width":"1.5"},null,8,Ni)]))]),j("section",Wi,[j("div",ji,[j("span",zi,K(A.value.bytesIn),1),j("span",qi,K(F(r.health.bytes.in_per_sec)),1)]),j("div",Ki,[j("span",Vi,K(A.value.bytesOut),1),j("span",Gi,K(F(r.health.bytes.out_per_sec)),1)])]),j("section",Xi,[j("div",Ji,[j("span",Yi,K(A.value.state),1),j("span",Zi,K(r.health.state),1)]),j("div",Qi,[j("span",er,K(A.value.reconnectsLastHour),1),j("span",tr,K(r.health.reconnect.count_last_hour),1)]),r.health.reconnect.history.length>0?(X(),ee("table",sr,[j("thead",null,[j("tr",null,[j("th",null,K(A.value.reconnectsTime),1),j("th",null,K(A.value.reconnectsReason),1),j("th",null,K(A.value.reconnectsDowntime),1)])]),j("tbody",null,[(X(!0),ee(Ce,null,Ee(r.health.reconnect.history,h=>(X(),ee("tr",{key:h.at_ms},[j("td",null,K(B(h.at_ms)),1),j("td",null,K(h.reason),1),j("td",null,K(U(h.duration_ms)),1)]))),128))])])):re("",!0)]),r.health.seq_gaps>0?(X(),ee("section",ir,K(A.value.seqGaps)+" "+K(r.health.seq_gaps),1)):re("",!0)],8,xi)):re("",!0)}}),nr=fe(rr,[["__scopeId","data-v-c8bb9e85"]]),or=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,ft=/^#\/s\/([0-9a-fA-F-]+)(?:\?(.+))?$/;function tt(T){const D=ft.exec(T);if(!D)return null;const A=D[1];return or.test(A)?A.toLowerCase():null}function st(T){const D=ft.exec(T);if(!D||!D[2])return{};const A=new URLSearchParams(D[2]),M={},F=A.get("notification"),U=A.get("focus"),B=A.get("permission");return F&&(M.notification=F),U&&(M.focus=U),B&&(M.permission=B),M}function ar(T,D={}){const A=new URLSearchParams;D.notification&&A.set("notification",D.notification),D.focus&&A.set("focus",D.focus),D.permission&&A.set("permission",D.permission);const M=A.toString();return`#/s/${T}${M?`?${M}`:""}`}const lr={key:0,class:"conn-health-anchor"},hr={class:"home-main"},cr=_e({__name:"App",setup(T){const D=ne(tt(location.hash)),A=ne(st(location.hash)),M=ne(!1),F=ne(null),{t:U}=Le(),B=ne(null),r=ne(!1);let o=null,h=!1;function f(){if(o!==null&&clearTimeout(o),h)return;const C=F.value,w=typeof(C==null?void 0:C.getHealth)=="function"?C.getHealth():null;B.value=w??null;const y=r.value?1e3:5e3;o=setTimeout(f,y)}const n=he(()=>({connecting:U("connHealth.pillLabelConnecting"),reconnecting:U("connHealth.pillLabelReconnecting"),off:U("connHealth.pillLabelOff")})),d=he(()=>({title:U("connHealth.drawerTitle"),rttNow:U("connHealth.drawerRttNow"),rttP50P95:U("connHealth.drawerRttP50P95"),bytesIn:U("connHealth.drawerBytesIn"),bytesOut:U("connHealth.drawerBytesOut"),state:U("connHealth.drawerState"),reconnectsLastHour:U("connHealth.drawerReconnectsLastHour"),reconnectsTime:U("connHealth.drawerReconnectsTime"),reconnectsReason:U("connHealth.drawerReconnectsReason"),reconnectsDowntime:U("connHealth.drawerReconnectsDowntime"),seqGaps:U("connHealth.drawerSeqGaps"),close:U("common.close")}));function _(){D.value=tt(location.hash),A.value=st(location.hash)}function v(C){location.hash=ar(C)}function u(){location.hash=""}function e(C){var w;(w=F.value)==null||w.sendInput(C)}async function s(){var C;try{const w=await navigator.clipboard.readText();if(w){(C=F.value)==null||C.sendInput(w);return}}catch{}M.value=!0}function t(){var C;(C=F.value)==null||C.copySelection()}function i(C){var w;(w=F.value)==null||w.sendInput(C)}function l(C){var w;ut.emit(C,C.name),(w=F.value)==null||w.sendPasteImage(C,C.name)}function c(C){var w;_t.emit(C.name,C.size),(w=F.value)==null||w.sendPasteFile(C,C.name)}const p=Et(),m=he(()=>!!D.value),a=he(()=>A.value.focus==="input"),g=he(()=>A.value.permission==="view");return ke(()=>{window.addEventListener("hashchange",_),f()}),it(()=>{window.removeEventListener("hashchange",_),h=!0,o!==null&&clearTimeout(o)}),(C,w)=>(X(),me(Y(Dt),{theme:Y(Lt),"theme-overrides":Y(p),locale:Y(Xe).locale,"date-locale":Y(Xe).dateLocale},{default:Se(()=>[ue(Y(kt),null,{default:Se(()=>[ue(fi),ue(Ci),ue(Tt,{active:"home"}),m.value&&B.value?(X(),ee("div",lr,[ue(Ai,{health:B.value,labels:n.value,onClick:w[0]||(w[0]=y=>r.value=!r.value)},null,8,["health","labels"]),ue(nr,{health:B.value,open:r.value,labels:d.value,onClose:w[1]||(w[1]=y=>r.value=!1)},null,8,["health","open","labels"])])):re("",!0),m.value?re("",!0):(X(),me(ki,{key:1})),m.value?(X(),me(Y(rt),{key:2,class:"back-floating",size:"small",tertiary:"","aria-label":Y(U)("main.backToSessions"),onClick:u},{default:Se(()=>[be(" ← "+K(Y(U)("main.back")),1)]),_:1},8,["aria-label"])):re("",!0),j("main",hr,[m.value?(X(),ee(Ce,{key:1},[g.value?(X(),me(Y(at),{key:0,type:"info",class:"permission-notice","data-testid":"view-only-notice"},{default:Se(()=>[be(K(Y(U)("main.viewOnlyNotice")),1)]),_:1})):re("",!0),ue(Gs,{ref_key:"termRef",ref:F,"session-id":D.value,"focus-input":a.value},null,8,["session-id","focus-input"]),ue(Ys,{onInput:e,onCopy:t,onPaste:s}),ue(ni,{open:M.value,onPasteText:i,onPasteImage:l,onPasteFile:c,onClose:w[2]||(w[2]=y=>M.value=!1)},null,8,["open"])],64)):(X(),me(us,{key:0,onNavigate:v}))])]),_:1})]),_:1},8,["theme","theme-overrides","locale","date-locale"]))}}),dr=fe(cr,[["__scopeId","data-v-d1bddbbc"]]);if(!Rt("home")){At();const T=new Ft($t(),Ut());Nt(T),T.pull().catch(()=>{}),window.addEventListener("focus",()=>{T.pull().catch(()=>{})}),xt(dr).mount("#app")}
diff --git a/internal/relay/web-dist/assets/login-C9xn7txx.js b/internal/relay/web-dist/assets/login-CwA4p5L1.js
similarity index 89%
rename from internal/relay/web-dist/assets/login-C9xn7txx.js
rename to internal/relay/web-dist/assets/login-CwA4p5L1.js
index 3ece5799..7ab514e1 100644
--- a/internal/relay/web-dist/assets/login-C9xn7txx.js
+++ b/internal/relay/web-dist/assets/login-CwA4p5L1.js
@@ -1 +1 @@
-import{ai as x,bs as u,$ as I,bf as L,aA as B,bh as f,a3 as C,c7 as o,ac as r,bS as e,h as V,a2 as l,bN as n,B as A,aa as h,a5 as S,a4 as q,b6 as _,ae as P,e as E,bV as M,n as U,o as F,aG as D,a1 as G}from"./mobile-guard-CHHXRZ12.js";import{s as R,A as T}from"./client-Bd6vJHn4.js";import{a as H,g as O,f as $,b as j}from"./pwa-DV81pmUS.js";import{L as z}from"./LanguageSelect-DQdfalDe.js";import{a as J,b as K,c as b,d as g}from"./FormItem-KX1KLzyv.js";const Q={class:"auth-page"},W={class:"auth-title"},X={class:"auth-subtitle"},Y={key:0,class:"auth-error",role:"alert"},Z={class:"auth-alt"},ee={href:"/signup.html"},ae={class:"auth-version"},te=x({__name:"App",setup(re){const d=u(""),p=u(""),i=u(!1),c=u(""),v=u("dev"),{t:a}=M(),y=I(()=>H(v.value,a));L(async()=>{try{const{admin_exists:s}=await O();if(!s){location.replace("/firstrun.html");return}}catch{}v.value=await $()});function N(s){if(s instanceof T){if(s.code==="invalid_credentials")return a("auth.errors.invalidCredentials");if(s.code==="rate_limited")return a("auth.errors.rateLimited");if(s.code==="invalid_request")return a("auth.errors.invalidRequest")}return a("auth.errors.signInFailed")}async function w(s){if(s.preventDefault(),!i.value){c.value="",i.value=!0;try{await j(d.value,p.value);const t=new URLSearchParams(location.search).get("next");location.assign(R(t))}catch(t){c.value=N(t)}finally{i.value=!1}}}const k=B();return(s,t)=>(f(),C(e(E),{theme:e(P),"theme-overrides":e(k),locale:e(_).locale,"date-locale":e(_).dateLocale},{default:o(()=>[r(e(V),null,{default:o(()=>[l("main",Q,[r(z,{class:"auth-language"}),r(e(J),{class:"auth-card",bordered:!1},{default:o(()=>[l("header",W,[l("h1",null,n(e(a)("common.appName")),1),l("p",X,n(e(a)("auth.signIn")),1)]),r(e(K),{"label-placement":"top","require-mark-placement":"right-hanging",autocomplete:"on",novalidate:"",onSubmit:w},{default:o(()=>[r(e(b),{label:e(a)("auth.email"),"show-feedback":!1},{default:o(()=>[r(e(g),{value:d.value,"onUpdate:value":t[0]||(t[0]=m=>d.value=m),type:"text",placeholder:e(a)("auth.emailPlaceholder"),"input-props":{type:"email",required:!0,autocomplete:"username"}},null,8,["value","placeholder"])]),_:1},8,["label"]),r(e(b),{label:e(a)("auth.password"),"show-feedback":!1},{default:o(()=>[r(e(g),{value:p.value,"onUpdate:value":t[1]||(t[1]=m=>p.value=m),type:"password","show-password-on":"click","input-props":{required:!0,autocomplete:"current-password"}},null,8,["value"])]),_:1},8,["label"]),r(e(A),{class:"submit-btn",type:"primary","attr-type":"submit",loading:i.value,disabled:i.value,block:""},{default:o(()=>[h(n(e(a)("auth.signIn")),1)]),_:1},8,["loading","disabled"]),c.value?(f(),S("p",Y,n(c.value),1)):q("",!0),l("p",Z,[h(n(e(a)("auth.haveInviteCode"))+" ",1),l("a",ee,n(e(a)("auth.signUpHere")),1),t[2]||(t[2]=h(". "))])]),_:1})]),_:1}),l("p",ae,n(y.value),1)])]),_:1})]),_:1},8,["theme","theme-overrides","locale","date-locale"]))}}),se=U(te,[["__scopeId","data-v-45a8746e"]]);F("login")||(D(),G(se).mount("#app"));
+import{ai as x,bs as u,$ as I,bf as L,aA as B,bh as f,a3 as C,c7 as o,ac as r,bS as e,h as V,a2 as l,bN as n,B as A,aa as h,a5 as S,a4 as q,b6 as _,ae as P,e as E,bV as M,n as U,o as F,aG as D,a1 as G}from"./mobile-guard-BvFpjCXb.js";import{s as R,A as T}from"./client-BRiQMdFT.js";import{a as H,g as O,f as $,b as j}from"./pwa-BRtGQKIK.js";import{L as z}from"./LanguageSelect-CXI-71aS.js";import{a as J,b as K,c as b,d as g}from"./FormItem-Biv8w1Bg.js";const Q={class:"auth-page"},W={class:"auth-title"},X={class:"auth-subtitle"},Y={key:0,class:"auth-error",role:"alert"},Z={class:"auth-alt"},ee={href:"/signup.html"},ae={class:"auth-version"},te=x({__name:"App",setup(re){const d=u(""),p=u(""),i=u(!1),c=u(""),v=u("dev"),{t:a}=M(),y=I(()=>H(v.value,a));L(async()=>{try{const{admin_exists:s}=await O();if(!s){location.replace("/firstrun.html");return}}catch{}v.value=await $()});function N(s){if(s instanceof T){if(s.code==="invalid_credentials")return a("auth.errors.invalidCredentials");if(s.code==="rate_limited")return a("auth.errors.rateLimited");if(s.code==="invalid_request")return a("auth.errors.invalidRequest")}return a("auth.errors.signInFailed")}async function w(s){if(s.preventDefault(),!i.value){c.value="",i.value=!0;try{await j(d.value,p.value);const t=new URLSearchParams(location.search).get("next");location.assign(R(t))}catch(t){c.value=N(t)}finally{i.value=!1}}}const k=B();return(s,t)=>(f(),C(e(E),{theme:e(P),"theme-overrides":e(k),locale:e(_).locale,"date-locale":e(_).dateLocale},{default:o(()=>[r(e(V),null,{default:o(()=>[l("main",Q,[r(z,{class:"auth-language"}),r(e(J),{class:"auth-card",bordered:!1},{default:o(()=>[l("header",W,[l("h1",null,n(e(a)("common.appName")),1),l("p",X,n(e(a)("auth.signIn")),1)]),r(e(K),{"label-placement":"top","require-mark-placement":"right-hanging",autocomplete:"on",novalidate:"",onSubmit:w},{default:o(()=>[r(e(b),{label:e(a)("auth.email"),"show-feedback":!1},{default:o(()=>[r(e(g),{value:d.value,"onUpdate:value":t[0]||(t[0]=m=>d.value=m),type:"text",placeholder:e(a)("auth.emailPlaceholder"),"input-props":{type:"email",required:!0,autocomplete:"username"}},null,8,["value","placeholder"])]),_:1},8,["label"]),r(e(b),{label:e(a)("auth.password"),"show-feedback":!1},{default:o(()=>[r(e(g),{value:p.value,"onUpdate:value":t[1]||(t[1]=m=>p.value=m),type:"password","show-password-on":"click","input-props":{required:!0,autocomplete:"current-password"}},null,8,["value"])]),_:1},8,["label"]),r(e(A),{class:"submit-btn",type:"primary","attr-type":"submit",loading:i.value,disabled:i.value,block:""},{default:o(()=>[h(n(e(a)("auth.signIn")),1)]),_:1},8,["loading","disabled"]),c.value?(f(),S("p",Y,n(c.value),1)):q("",!0),l("p",Z,[h(n(e(a)("auth.haveInviteCode"))+" ",1),l("a",ee,n(e(a)("auth.signUpHere")),1),t[2]||(t[2]=h(". "))])]),_:1})]),_:1}),l("p",ae,n(y.value),1)])]),_:1})]),_:1},8,["theme","theme-overrides","locale","date-locale"]))}}),se=U(te,[["__scopeId","data-v-45a8746e"]]);F("login")||(D(),G(se).mount("#app"));
diff --git a/internal/relay/web-dist/assets/mobile-guard-CHHXRZ12.js b/internal/relay/web-dist/assets/mobile-guard-BvFpjCXb.js
similarity index 88%
rename from internal/relay/web-dist/assets/mobile-guard-CHHXRZ12.js
rename to internal/relay/web-dist/assets/mobile-guard-BvFpjCXb.js
index 3b837314..398f38b4 100644
--- a/internal/relay/web-dist/assets/mobile-guard-CHHXRZ12.js
+++ b/internal/relay/web-dist/assets/mobile-guard-BvFpjCXb.js
@@ -1,34 +1,34 @@
-const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/prefsSync-C6s4W7Ql.js","assets/client-Bd6vJHn4.js"])))=>i.map(i=>d[i]);
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/prefsSync-BGOlzhJD.js","assets/client-BRiQMdFT.js"])))=>i.map(i=>d[i]);
(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))r(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function t(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(n){if(n.ep)return;n.ep=!0;const i=t(n);fetch(n.href,i)}})();/**
* @vue/shared v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
-**//*! #__NO_SIDE_EFFECTS__ */function ii(e){const o=Object.create(null);for(const t of e.split(","))o[t]=1;return t=>t in o}const fe={},ft=[],mo=()=>{},Xc=()=>!1,Wr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ai=e=>e.startsWith("onUpdate:"),we=Object.assign,li=(e,o)=>{const t=e.indexOf(o);t>-1&&e.splice(t,1)},ed=Object.prototype.hasOwnProperty,se=(e,o)=>ed.call(e,o),Y=Array.isArray,pt=e=>jr(e)==="[object Map]",Ja=e=>jr(e)==="[object Set]",X=e=>typeof e=="function",ve=e=>typeof e=="string",Ho=e=>typeof e=="symbol",me=e=>e!==null&&typeof e=="object",Za=e=>(me(e)||X(e))&&X(e.then)&&X(e.catch),Qa=Object.prototype.toString,jr=e=>Qa.call(e),od=e=>jr(e).slice(8,-1),Xa=e=>jr(e)==="[object Object]",si=e=>ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,kt=ii(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Nr=e=>{const o=Object.create(null);return t=>o[t]||(o[t]=e(t))},td=/-(\w)/g,Oo=Nr(e=>e.replace(td,(o,t)=>t?t.toUpperCase():"")),rd=/\B([A-Z])/g,nt=Nr(e=>e.replace(rd,"-$1").toLowerCase()),el=Nr(e=>e.charAt(0).toUpperCase()+e.slice(1)),gn=Nr(e=>e?`on${el(e)}`:""),zo=(e,o)=>!Object.is(e,o),yr=(e,...o)=>{for(let t=0;t{Object.defineProperty(e,o,{configurable:!0,enumerable:!1,writable:r,value:t})},Dn=e=>{const o=parseFloat(e);return isNaN(o)?e:o},nd=e=>{const o=ve(e)?Number(e):NaN;return isNaN(o)?e:o};let Oi;const Vr=()=>Oi||(Oi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ci(e){if(Y(e)){const o={};for(let t=0;t{if(t){const r=t.split(ad);r.length>1&&(o[r[0].trim()]=r[1].trim())}}),o}function di(e){let o="";if(ve(e))o=e;else if(Y(e))for(let t=0;t!!(e&&e.__v_isRef===!0),ud=e=>ve(e)?e:e==null?"":Y(e)||me(e)&&(e.toString===Qa||!X(e.toString))?rl(e)?ud(e.value):JSON.stringify(e,nl,2):String(e),nl=(e,o)=>rl(o)?nl(e,o.value):pt(o)?{[`Map(${o.size})`]:[...o.entries()].reduce((t,[r,n],i)=>(t[bn(r,i)+" =>"]=n,t),{})}:Ja(o)?{[`Set(${o.size})`]:[...o.values()].map(t=>bn(t))}:Ho(o)?bn(o):me(o)&&!Y(o)&&!Xa(o)?String(o):o,bn=(e,o="")=>{var t;return Ho(e)?`Symbol(${(t=e.description)!=null?t:o})`:e};/**
+**//*! #__NO_SIDE_EFFECTS__ */function ii(e){const o=Object.create(null);for(const t of e.split(","))o[t]=1;return t=>t in o}const fe={},ft=[],mo=()=>{},Xc=()=>!1,Wr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ai=e=>e.startsWith("onUpdate:"),we=Object.assign,li=(e,o)=>{const t=e.indexOf(o);t>-1&&e.splice(t,1)},ed=Object.prototype.hasOwnProperty,se=(e,o)=>ed.call(e,o),Y=Array.isArray,pt=e=>jr(e)==="[object Map]",Ja=e=>jr(e)==="[object Set]",X=e=>typeof e=="function",ve=e=>typeof e=="string",Ho=e=>typeof e=="symbol",me=e=>e!==null&&typeof e=="object",Za=e=>(me(e)||X(e))&&X(e.then)&&X(e.catch),Qa=Object.prototype.toString,jr=e=>Qa.call(e),od=e=>jr(e).slice(8,-1),Xa=e=>jr(e)==="[object Object]",si=e=>ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,kt=ii(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Nr=e=>{const o=Object.create(null);return t=>o[t]||(o[t]=e(t))},td=/-(\w)/g,zo=Nr(e=>e.replace(td,(o,t)=>t?t.toUpperCase():"")),rd=/\B([A-Z])/g,nt=Nr(e=>e.replace(rd,"-$1").toLowerCase()),el=Nr(e=>e.charAt(0).toUpperCase()+e.slice(1)),gn=Nr(e=>e?`on${el(e)}`:""),Oo=(e,o)=>!Object.is(e,o),yr=(e,...o)=>{for(let t=0;t{Object.defineProperty(e,o,{configurable:!0,enumerable:!1,writable:r,value:t})},Dn=e=>{const o=parseFloat(e);return isNaN(o)?e:o},nd=e=>{const o=ve(e)?Number(e):NaN;return isNaN(o)?e:o};let zi;const Vr=()=>zi||(zi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ci(e){if(Y(e)){const o={};for(let t=0;t{if(t){const r=t.split(ad);r.length>1&&(o[r[0].trim()]=r[1].trim())}}),o}function di(e){let o="";if(ve(e))o=e;else if(Y(e))for(let t=0;t!!(e&&e.__v_isRef===!0),ud=e=>ve(e)?e:e==null?"":Y(e)||me(e)&&(e.toString===Qa||!X(e.toString))?rl(e)?ud(e.value):JSON.stringify(e,nl,2):String(e),nl=(e,o)=>rl(o)?nl(e,o.value):pt(o)?{[`Map(${o.size})`]:[...o.entries()].reduce((t,[r,n],i)=>(t[bn(r,i)+" =>"]=n,t),{})}:Ja(o)?{[`Set(${o.size})`]:[...o.values()].map(t=>bn(t))}:Ho(o)?bn(o):me(o)&&!Y(o)&&!Xa(o)?String(o):o,bn=(e,o="")=>{var t;return Ho(e)?`Symbol(${(t=e.description)!=null?t:o})`:e};/**
* @vue/reactivity v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
-**/let qe;class fd{constructor(o=!1){this.detached=o,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=qe,!o&&qe&&(this.index=(qe.scopes||(qe.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let o,t;if(this.scopes)for(o=0,t=this.scopes.length;o0)return;if(Ot){let o=Ot;for(Ot=void 0;o;){const t=o.next;o.next=void 0,o.flags&=-9,o=t}}let e;for(;zt;){let o=zt;for(zt=void 0;o;){const t=o.next;if(o.next=void 0,o.flags&=-9,o.flags&1)try{o.trigger()}catch(r){e||(e=r)}o=t}}if(e)throw e}function sl(e){for(let o=e.deps;o;o=o.nextDep)o.version=-1,o.prevActiveLink=o.dep.activeLink,o.dep.activeLink=o}function cl(e){let o,t=e.depsTail,r=t;for(;r;){const n=r.prevDep;r.version===-1?(r===t&&(t=n),pi(r),hd(r)):o=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=n}e.deps=o,e.depsTail=t}function _n(e){for(let o=e.deps;o;o=o.nextDep)if(o.dep.version!==o.version||o.dep.computed&&(dl(o.dep.computed)||o.dep.version!==o.version))return!0;return!!e._dirty}function dl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Vt))return;e.globalVersion=Vt;const o=e.dep;if(e.flags|=2,o.version>0&&!e.isSSR&&e.deps&&!_n(e)){e.flags&=-3;return}const t=he,r=oo;he=e,oo=!0;try{sl(e);const n=e.fn(e._value);(o.version===0||zo(n,e._value))&&(e._value=n,o.version++)}catch(n){throw o.version++,n}finally{he=t,oo=r,cl(e),e.flags&=-3}}function pi(e,o=!1){const{dep:t,prevSub:r,nextSub:n}=e;if(r&&(r.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=r,e.nextSub=void 0),t.subs===e&&(t.subs=r,!r&&t.computed)){t.computed.flags&=-5;for(let i=t.computed.deps;i;i=i.nextDep)pi(i,!0)}!o&&!--t.sc&&t.map&&t.map.delete(t.key)}function hd(e){const{prevDep:o,nextDep:t}=e;o&&(o.nextDep=t,e.prevDep=void 0),t&&(t.prevDep=o,e.nextDep=void 0)}let oo=!0;const ul=[];function jo(){ul.push(oo),oo=!1}function No(){const e=ul.pop();oo=e===void 0?!0:e}function Bi(e){const{cleanup:o}=e;if(e.cleanup=void 0,o){const t=he;he=void 0;try{o()}finally{he=t}}}let Vt=0;class md{constructor(o,t){this.sub=o,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class hi{constructor(o){this.computed=o,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(o){if(!he||!oo||he===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==he)t=this.activeLink=new md(he,this),he.deps?(t.prevDep=he.depsTail,he.depsTail.nextDep=t,he.depsTail=t):he.deps=he.depsTail=t,fl(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){const r=t.nextDep;r.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=r),t.prevDep=he.depsTail,t.nextDep=void 0,he.depsTail.nextDep=t,he.depsTail=t,he.deps===t&&(he.deps=r)}return t}trigger(o){this.version++,Vt++,this.notify(o)}notify(o){ui();try{for(let t=this.subs;t;t=t.prevSub)t.sub.notify()&&t.sub.dep.notify()}finally{fi()}}}function fl(e){if(e.dep.sc++,e.sub.flags&4){const o=e.dep.computed;if(o&&!e.dep.subs){o.flags|=20;for(let r=o.deps;r;r=r.nextDep)fl(r)}const t=e.dep.subs;t!==e&&(e.prevSub=t,t&&(t.nextSub=e)),e.dep.subs=e}}const Ir=new WeakMap,Xo=Symbol(""),En=Symbol(""),Ut=Symbol("");function Ie(e,o,t){if(oo&&he){let r=Ir.get(e);r||Ir.set(e,r=new Map);let n=r.get(t);n||(r.set(t,n=new hi),n.map=r,n.key=t),n.track()}}function wo(e,o,t,r,n,i){const a=Ir.get(e);if(!a){Vt++;return}const l=s=>{s&&s.trigger()};if(ui(),o==="clear")a.forEach(l);else{const s=Y(e),c=s&&si(t);if(s&&t==="length"){const d=Number(r);a.forEach((u,p)=>{(p==="length"||p===Ut||!Ho(p)&&p>=d)&&l(u)})}else switch((t!==void 0||a.has(void 0))&&l(a.get(t)),c&&l(a.get(Ut)),o){case"add":s?c&&l(a.get("length")):(l(a.get(Xo)),pt(e)&&l(a.get(En)));break;case"delete":s||(l(a.get(Xo)),pt(e)&&l(a.get(En)));break;case"set":pt(e)&&l(a.get(Xo));break}}fi()}function gd(e,o){const t=Ir.get(e);return t&&t.get(o)}function ct(e){const o=ie(e);return o===e?o:(Ie(o,"iterate",Ut),Xe(e)?o:o.map(He))}function Ur(e){return Ie(e=ie(e),"iterate",Ut),e}const bd={__proto__:null,[Symbol.iterator](){return xn(this,Symbol.iterator,He)},concat(...e){return ct(this).concat(...e.map(o=>Y(o)?ct(o):o))},entries(){return xn(this,"entries",e=>(e[1]=He(e[1]),e))},every(e,o){return yo(this,"every",e,o,void 0,arguments)},filter(e,o){return yo(this,"filter",e,o,t=>t.map(He),arguments)},find(e,o){return yo(this,"find",e,o,He,arguments)},findIndex(e,o){return yo(this,"findIndex",e,o,void 0,arguments)},findLast(e,o){return yo(this,"findLast",e,o,He,arguments)},findLastIndex(e,o){return yo(this,"findLastIndex",e,o,void 0,arguments)},forEach(e,o){return yo(this,"forEach",e,o,void 0,arguments)},includes(...e){return vn(this,"includes",e)},indexOf(...e){return vn(this,"indexOf",e)},join(e){return ct(this).join(e)},lastIndexOf(...e){return vn(this,"lastIndexOf",e)},map(e,o){return yo(this,"map",e,o,void 0,arguments)},pop(){return At(this,"pop")},push(...e){return At(this,"push",e)},reduce(e,...o){return Wi(this,"reduce",e,o)},reduceRight(e,...o){return Wi(this,"reduceRight",e,o)},shift(){return At(this,"shift")},some(e,o){return yo(this,"some",e,o,void 0,arguments)},splice(...e){return At(this,"splice",e)},toReversed(){return ct(this).toReversed()},toSorted(e){return ct(this).toSorted(e)},toSpliced(...e){return ct(this).toSpliced(...e)},unshift(...e){return At(this,"unshift",e)},values(){return xn(this,"values",He)}};function xn(e,o,t){const r=Ur(e),n=r[o]();return r!==e&&!Xe(e)&&(n._next=n.next,n.next=()=>{const i=n._next();return i.value&&(i.value=t(i.value)),i}),n}const Cd=Array.prototype;function yo(e,o,t,r,n,i){const a=Ur(e),l=a!==e&&!Xe(e),s=a[o];if(s!==Cd[o]){const u=s.apply(e,i);return l?He(u):u}let c=t;a!==e&&(l?c=function(u,p){return t.call(this,He(u),p,e)}:t.length>2&&(c=function(u,p){return t.call(this,u,p,e)}));const d=s.call(a,c,r);return l&&n?n(d):d}function Wi(e,o,t,r){const n=Ur(e);let i=t;return n!==e&&(Xe(e)?t.length>3&&(i=function(a,l,s){return t.call(this,a,l,s,e)}):i=function(a,l,s){return t.call(this,a,He(l),s,e)}),n[o](i,...r)}function vn(e,o,t){const r=ie(e);Ie(r,"iterate",Ut);const n=r[o](...t);return(n===-1||n===!1)&&Ci(t[0])?(t[0]=ie(t[0]),r[o](...t)):n}function At(e,o,t=[]){jo(),ui();const r=ie(e)[o].apply(e,t);return fi(),No(),r}const xd=ii("__proto__,__v_isRef,__isVue"),pl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ho));function vd(e){Ho(e)||(e=String(e));const o=ie(this);return Ie(o,"has",e),o.hasOwnProperty(e)}class hl{constructor(o=!1,t=!1){this._isReadonly=o,this._isShallow=t}get(o,t,r){if(t==="__v_skip")return o.__v_skip;const n=this._isReadonly,i=this._isShallow;if(t==="__v_isReactive")return!n;if(t==="__v_isReadonly")return n;if(t==="__v_isShallow")return i;if(t==="__v_raw")return r===(n?i?Ad:Cl:i?bl:gl).get(o)||Object.getPrototypeOf(o)===Object.getPrototypeOf(r)?o:void 0;const a=Y(o);if(!n){let s;if(a&&(s=bd[t]))return s;if(t==="hasOwnProperty")return vd}const l=Reflect.get(o,t,Pe(o)?o:r);return(Ho(t)?pl.has(t):xd(t))||(n||Ie(o,"get",t),i)?l:Pe(l)?a&&si(t)?l:l.value:me(l)?n?gi(l):Gr(l):l}}class ml extends hl{constructor(o=!1){super(!1,o)}set(o,t,r,n){let i=o[t];if(!this._isShallow){const s=ot(i);if(!Xe(r)&&!ot(r)&&(i=ie(i),r=ie(r)),!Y(o)&&Pe(i)&&!Pe(r))return s?!1:(i.value=r,!0)}const a=Y(o)&&si(t)?Number(t)e,fr=e=>Reflect.getPrototypeOf(e);function Td(e,o,t){return function(...r){const n=this.__v_raw,i=ie(n),a=pt(i),l=e==="entries"||e===Symbol.iterator&&a,s=e==="keys"&&a,c=n[e](...r),d=t?Rn:o?kn:He;return!o&&Ie(i,"iterate",s?En:Xo),{next(){const{value:u,done:p}=c.next();return p?{value:u,done:p}:{value:l?[d(u[0]),d(u[1])]:d(u),done:p}},[Symbol.iterator](){return this}}}}function pr(e){return function(...o){return e==="delete"?!1:e==="clear"?void 0:this}}function $d(e,o){const t={get(n){const i=this.__v_raw,a=ie(i),l=ie(n);e||(zo(n,l)&&Ie(a,"get",n),Ie(a,"get",l));const{has:s}=fr(a),c=o?Rn:e?kn:He;if(s.call(a,n))return c(i.get(n));if(s.call(a,l))return c(i.get(l));i!==a&&i.get(n)},get size(){const n=this.__v_raw;return!e&&Ie(ie(n),"iterate",Xo),Reflect.get(n,"size",n)},has(n){const i=this.__v_raw,a=ie(i),l=ie(n);return e||(zo(n,l)&&Ie(a,"has",n),Ie(a,"has",l)),n===l?i.has(n):i.has(n)||i.has(l)},forEach(n,i){const a=this,l=a.__v_raw,s=ie(l),c=o?Rn:e?kn:He;return!e&&Ie(s,"iterate",Xo),l.forEach((d,u)=>n.call(i,c(d),c(u),a))}};return we(t,e?{add:pr("add"),set:pr("set"),delete:pr("delete"),clear:pr("clear")}:{add(n){!o&&!Xe(n)&&!ot(n)&&(n=ie(n));const i=ie(this);return fr(i).has.call(i,n)||(i.add(n),wo(i,"add",n,n)),this},set(n,i){!o&&!Xe(i)&&!ot(i)&&(i=ie(i));const a=ie(this),{has:l,get:s}=fr(a);let c=l.call(a,n);c||(n=ie(n),c=l.call(a,n));const d=s.call(a,n);return a.set(n,i),c?zo(i,d)&&wo(a,"set",n,i):wo(a,"add",n,i),this},delete(n){const i=ie(this),{has:a,get:l}=fr(i);let s=a.call(i,n);s||(n=ie(n),s=a.call(i,n)),l&&l.call(i,n);const c=i.delete(n);return s&&wo(i,"delete",n,void 0),c},clear(){const n=ie(this),i=n.size!==0,a=n.clear();return i&&wo(n,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(n=>{t[n]=Td(n,e,o)}),t}function mi(e,o){const t=$d(e,o);return(r,n,i)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?r:Reflect.get(se(t,n)&&n in r?t:r,n,i)}const Id={get:mi(!1,!1)},Hd={get:mi(!1,!0)},Fd={get:mi(!0,!1)};const gl=new WeakMap,bl=new WeakMap,Cl=new WeakMap,Ad=new WeakMap;function Md(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Dd(e){return e.__v_skip||!Object.isExtensible(e)?0:Md(od(e))}function Gr(e){return ot(e)?e:bi(e,!1,Sd,Id,gl)}function _d(e){return bi(e,!1,Pd,Hd,bl)}function gi(e){return bi(e,!0,wd,Fd,Cl)}function bi(e,o,t,r,n){if(!me(e)||e.__v_raw&&!(o&&e.__v_isReactive))return e;const i=n.get(e);if(i)return i;const a=Dd(e);if(a===0)return e;const l=new Proxy(e,a===2?r:t);return n.set(e,l),l}function ht(e){return ot(e)?ht(e.__v_raw):!!(e&&e.__v_isReactive)}function ot(e){return!!(e&&e.__v_isReadonly)}function Xe(e){return!!(e&&e.__v_isShallow)}function Ci(e){return e?!!e.__v_raw:!1}function ie(e){const o=e&&e.__v_raw;return o?ie(o):e}function Ln(e){return!se(e,"__v_skip")&&Object.isExtensible(e)&&ol(e,"__v_skip",!0),e}const He=e=>me(e)?Gr(e):e,kn=e=>me(e)?gi(e):e;function Pe(e){return e?e.__v_isRef===!0:!1}function Be(e){return vl(e,!1)}function xl(e){return vl(e,!0)}function vl(e,o){return Pe(e)?e:new Ed(e,o)}class Ed{constructor(o,t){this.dep=new hi,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?o:ie(o),this._value=t?o:He(o),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(o){const t=this._rawValue,r=this.__v_isShallow||Xe(o)||ot(o);o=r?o:ie(o),zo(o,t)&&(this._rawValue=o,this._value=r?o:He(o),this.dep.trigger())}}function Rd(e){return Pe(e)?e.value:e}const Ld={get:(e,o,t)=>o==="__v_raw"?e:Rd(Reflect.get(e,o,t)),set:(e,o,t,r)=>{const n=e[o];return Pe(n)&&!Pe(t)?(n.value=t,!0):Reflect.set(e,o,t,r)}};function yl(e){return ht(e)?e:new Proxy(e,Ld)}class kd{constructor(o,t,r){this._object=o,this._key=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const o=this._object[this._key];return this._value=o===void 0?this._defaultValue:o}set value(o){this._object[this._key]=o}get dep(){return gd(ie(this._object),this._key)}}class zd{constructor(o){this._getter=o,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function qr(e,o,t){return Pe(e)?e:X(e)?new zd(e):me(e)&&arguments.length>1?Od(e,o,t):Be(e)}function Od(e,o,t){const r=e[o];return Pe(r)?r:new kd(e,o,t)}class Bd{constructor(o,t,r){this.fn=o,this.setter=t,this._value=void 0,this.dep=new hi(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Vt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&he!==this)return ll(this,!0),!0}get value(){const o=this.dep.track();return dl(this),o&&(o.version=this.dep.version),this._value}set value(o){this.setter&&this.setter(o)}}function Wd(e,o,t=!1){let r,n;return X(e)?r=e:(r=e.get,n=e.set),new Bd(r,n,t)}const hr={},Hr=new WeakMap;let Yo;function jd(e,o=!1,t=Yo){if(t){let r=Hr.get(t);r||Hr.set(t,r=[]),r.push(e)}}function Nd(e,o,t=fe){const{immediate:r,deep:n,once:i,scheduler:a,augmentJob:l,call:s}=t,c=v=>n?v:Xe(v)||n===!1||n===0?Po(v,1):Po(v);let d,u,p,g,h=!1,b=!1;if(Pe(e)?(u=()=>e.value,h=Xe(e)):ht(e)?(u=()=>c(e),h=!0):Y(e)?(b=!0,h=e.some(v=>ht(v)||Xe(v)),u=()=>e.map(v=>{if(Pe(v))return v.value;if(ht(v))return c(v);if(X(v))return s?s(v,2):v()})):X(e)?o?u=s?()=>s(e,2):e:u=()=>{if(p){jo();try{p()}finally{No()}}const v=Yo;Yo=d;try{return s?s(e,3,[g]):e(g)}finally{Yo=v}}:u=mo,o&&n){const v=u,L=n===!0?1/0:n;u=()=>Po(v(),L)}const y=pd(),C=()=>{d.stop(),y&&y.active&&li(y.effects,d)};if(i&&o){const v=o;o=(...L)=>{v(...L),C()}}let I=b?new Array(e.length).fill(hr):hr;const E=v=>{if(!(!(d.flags&1)||!d.dirty&&!v))if(o){const L=d.run();if(n||h||(b?L.some((W,w)=>zo(W,I[w])):zo(L,I))){p&&p();const W=Yo;Yo=d;try{const w=[L,I===hr?void 0:b&&I[0]===hr?[]:I,g];s?s(o,3,w):o(...w),I=L}finally{Yo=W}}}else d.run()};return l&&l(E),d=new il(u),d.scheduler=a?()=>a(E,!1):E,g=v=>jd(v,!1,d),p=d.onStop=()=>{const v=Hr.get(d);if(v){if(s)s(v,4);else for(const L of v)L();Hr.delete(d)}},o?r?E(!0):I=d.run():a?a(E.bind(null,!0),!0):d.run(),C.pause=d.pause.bind(d),C.resume=d.resume.bind(d),C.stop=C,C}function Po(e,o=1/0,t){if(o<=0||!me(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),o--,Pe(e))Po(e.value,o,t);else if(Y(e))for(let r=0;r{Po(r,o,t)});else if(Xa(e)){for(const r in e)Po(e[r],o,t);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Po(e[r],o,t)}return e}/**
+**/let qe;class fd{constructor(o=!1){this.detached=o,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=qe,!o&&qe&&(this.index=(qe.scopes||(qe.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let o,t;if(this.scopes)for(o=0,t=this.scopes.length;o0)return;if(zt){let o=zt;for(zt=void 0;o;){const t=o.next;o.next=void 0,o.flags&=-9,o=t}}let e;for(;Ot;){let o=Ot;for(Ot=void 0;o;){const t=o.next;if(o.next=void 0,o.flags&=-9,o.flags&1)try{o.trigger()}catch(r){e||(e=r)}o=t}}if(e)throw e}function sl(e){for(let o=e.deps;o;o=o.nextDep)o.version=-1,o.prevActiveLink=o.dep.activeLink,o.dep.activeLink=o}function cl(e){let o,t=e.depsTail,r=t;for(;r;){const n=r.prevDep;r.version===-1?(r===t&&(t=n),pi(r),hd(r)):o=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=n}e.deps=o,e.depsTail=t}function _n(e){for(let o=e.deps;o;o=o.nextDep)if(o.dep.version!==o.version||o.dep.computed&&(dl(o.dep.computed)||o.dep.version!==o.version))return!0;return!!e._dirty}function dl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Vt))return;e.globalVersion=Vt;const o=e.dep;if(e.flags|=2,o.version>0&&!e.isSSR&&e.deps&&!_n(e)){e.flags&=-3;return}const t=he,r=oo;he=e,oo=!0;try{sl(e);const n=e.fn(e._value);(o.version===0||Oo(n,e._value))&&(e._value=n,o.version++)}catch(n){throw o.version++,n}finally{he=t,oo=r,cl(e),e.flags&=-3}}function pi(e,o=!1){const{dep:t,prevSub:r,nextSub:n}=e;if(r&&(r.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=r,e.nextSub=void 0),t.subs===e&&(t.subs=r,!r&&t.computed)){t.computed.flags&=-5;for(let i=t.computed.deps;i;i=i.nextDep)pi(i,!0)}!o&&!--t.sc&&t.map&&t.map.delete(t.key)}function hd(e){const{prevDep:o,nextDep:t}=e;o&&(o.nextDep=t,e.prevDep=void 0),t&&(t.prevDep=o,e.nextDep=void 0)}let oo=!0;const ul=[];function jo(){ul.push(oo),oo=!1}function No(){const e=ul.pop();oo=e===void 0?!0:e}function Bi(e){const{cleanup:o}=e;if(e.cleanup=void 0,o){const t=he;he=void 0;try{o()}finally{he=t}}}let Vt=0;class md{constructor(o,t){this.sub=o,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class hi{constructor(o){this.computed=o,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(o){if(!he||!oo||he===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==he)t=this.activeLink=new md(he,this),he.deps?(t.prevDep=he.depsTail,he.depsTail.nextDep=t,he.depsTail=t):he.deps=he.depsTail=t,fl(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){const r=t.nextDep;r.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=r),t.prevDep=he.depsTail,t.nextDep=void 0,he.depsTail.nextDep=t,he.depsTail=t,he.deps===t&&(he.deps=r)}return t}trigger(o){this.version++,Vt++,this.notify(o)}notify(o){ui();try{for(let t=this.subs;t;t=t.prevSub)t.sub.notify()&&t.sub.dep.notify()}finally{fi()}}}function fl(e){if(e.dep.sc++,e.sub.flags&4){const o=e.dep.computed;if(o&&!e.dep.subs){o.flags|=20;for(let r=o.deps;r;r=r.nextDep)fl(r)}const t=e.dep.subs;t!==e&&(e.prevSub=t,t&&(t.nextSub=e)),e.dep.subs=e}}const Ir=new WeakMap,Xo=Symbol(""),En=Symbol(""),Ut=Symbol("");function Ie(e,o,t){if(oo&&he){let r=Ir.get(e);r||Ir.set(e,r=new Map);let n=r.get(t);n||(r.set(t,n=new hi),n.map=r,n.key=t),n.track()}}function wo(e,o,t,r,n,i){const a=Ir.get(e);if(!a){Vt++;return}const l=s=>{s&&s.trigger()};if(ui(),o==="clear")a.forEach(l);else{const s=Y(e),c=s&&si(t);if(s&&t==="length"){const d=Number(r);a.forEach((u,p)=>{(p==="length"||p===Ut||!Ho(p)&&p>=d)&&l(u)})}else switch((t!==void 0||a.has(void 0))&&l(a.get(t)),c&&l(a.get(Ut)),o){case"add":s?c&&l(a.get("length")):(l(a.get(Xo)),pt(e)&&l(a.get(En)));break;case"delete":s||(l(a.get(Xo)),pt(e)&&l(a.get(En)));break;case"set":pt(e)&&l(a.get(Xo));break}}fi()}function gd(e,o){const t=Ir.get(e);return t&&t.get(o)}function ct(e){const o=ie(e);return o===e?o:(Ie(o,"iterate",Ut),Xe(e)?o:o.map(He))}function Ur(e){return Ie(e=ie(e),"iterate",Ut),e}const bd={__proto__:null,[Symbol.iterator](){return xn(this,Symbol.iterator,He)},concat(...e){return ct(this).concat(...e.map(o=>Y(o)?ct(o):o))},entries(){return xn(this,"entries",e=>(e[1]=He(e[1]),e))},every(e,o){return yo(this,"every",e,o,void 0,arguments)},filter(e,o){return yo(this,"filter",e,o,t=>t.map(He),arguments)},find(e,o){return yo(this,"find",e,o,He,arguments)},findIndex(e,o){return yo(this,"findIndex",e,o,void 0,arguments)},findLast(e,o){return yo(this,"findLast",e,o,He,arguments)},findLastIndex(e,o){return yo(this,"findLastIndex",e,o,void 0,arguments)},forEach(e,o){return yo(this,"forEach",e,o,void 0,arguments)},includes(...e){return vn(this,"includes",e)},indexOf(...e){return vn(this,"indexOf",e)},join(e){return ct(this).join(e)},lastIndexOf(...e){return vn(this,"lastIndexOf",e)},map(e,o){return yo(this,"map",e,o,void 0,arguments)},pop(){return At(this,"pop")},push(...e){return At(this,"push",e)},reduce(e,...o){return Wi(this,"reduce",e,o)},reduceRight(e,...o){return Wi(this,"reduceRight",e,o)},shift(){return At(this,"shift")},some(e,o){return yo(this,"some",e,o,void 0,arguments)},splice(...e){return At(this,"splice",e)},toReversed(){return ct(this).toReversed()},toSorted(e){return ct(this).toSorted(e)},toSpliced(...e){return ct(this).toSpliced(...e)},unshift(...e){return At(this,"unshift",e)},values(){return xn(this,"values",He)}};function xn(e,o,t){const r=Ur(e),n=r[o]();return r!==e&&!Xe(e)&&(n._next=n.next,n.next=()=>{const i=n._next();return i.value&&(i.value=t(i.value)),i}),n}const Cd=Array.prototype;function yo(e,o,t,r,n,i){const a=Ur(e),l=a!==e&&!Xe(e),s=a[o];if(s!==Cd[o]){const u=s.apply(e,i);return l?He(u):u}let c=t;a!==e&&(l?c=function(u,p){return t.call(this,He(u),p,e)}:t.length>2&&(c=function(u,p){return t.call(this,u,p,e)}));const d=s.call(a,c,r);return l&&n?n(d):d}function Wi(e,o,t,r){const n=Ur(e);let i=t;return n!==e&&(Xe(e)?t.length>3&&(i=function(a,l,s){return t.call(this,a,l,s,e)}):i=function(a,l,s){return t.call(this,a,He(l),s,e)}),n[o](i,...r)}function vn(e,o,t){const r=ie(e);Ie(r,"iterate",Ut);const n=r[o](...t);return(n===-1||n===!1)&&Ci(t[0])?(t[0]=ie(t[0]),r[o](...t)):n}function At(e,o,t=[]){jo(),ui();const r=ie(e)[o].apply(e,t);return fi(),No(),r}const xd=ii("__proto__,__v_isRef,__isVue"),pl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ho));function vd(e){Ho(e)||(e=String(e));const o=ie(this);return Ie(o,"has",e),o.hasOwnProperty(e)}class hl{constructor(o=!1,t=!1){this._isReadonly=o,this._isShallow=t}get(o,t,r){if(t==="__v_skip")return o.__v_skip;const n=this._isReadonly,i=this._isShallow;if(t==="__v_isReactive")return!n;if(t==="__v_isReadonly")return n;if(t==="__v_isShallow")return i;if(t==="__v_raw")return r===(n?i?Ad:Cl:i?bl:gl).get(o)||Object.getPrototypeOf(o)===Object.getPrototypeOf(r)?o:void 0;const a=Y(o);if(!n){let s;if(a&&(s=bd[t]))return s;if(t==="hasOwnProperty")return vd}const l=Reflect.get(o,t,Pe(o)?o:r);return(Ho(t)?pl.has(t):xd(t))||(n||Ie(o,"get",t),i)?l:Pe(l)?a&&si(t)?l:l.value:me(l)?n?gi(l):Gr(l):l}}class ml extends hl{constructor(o=!1){super(!1,o)}set(o,t,r,n){let i=o[t];if(!this._isShallow){const s=ot(i);if(!Xe(r)&&!ot(r)&&(i=ie(i),r=ie(r)),!Y(o)&&Pe(i)&&!Pe(r))return s?!1:(i.value=r,!0)}const a=Y(o)&&si(t)?Number(t)e,fr=e=>Reflect.getPrototypeOf(e);function Td(e,o,t){return function(...r){const n=this.__v_raw,i=ie(n),a=pt(i),l=e==="entries"||e===Symbol.iterator&&a,s=e==="keys"&&a,c=n[e](...r),d=t?Rn:o?kn:He;return!o&&Ie(i,"iterate",s?En:Xo),{next(){const{value:u,done:p}=c.next();return p?{value:u,done:p}:{value:l?[d(u[0]),d(u[1])]:d(u),done:p}},[Symbol.iterator](){return this}}}}function pr(e){return function(...o){return e==="delete"?!1:e==="clear"?void 0:this}}function $d(e,o){const t={get(n){const i=this.__v_raw,a=ie(i),l=ie(n);e||(Oo(n,l)&&Ie(a,"get",n),Ie(a,"get",l));const{has:s}=fr(a),c=o?Rn:e?kn:He;if(s.call(a,n))return c(i.get(n));if(s.call(a,l))return c(i.get(l));i!==a&&i.get(n)},get size(){const n=this.__v_raw;return!e&&Ie(ie(n),"iterate",Xo),Reflect.get(n,"size",n)},has(n){const i=this.__v_raw,a=ie(i),l=ie(n);return e||(Oo(n,l)&&Ie(a,"has",n),Ie(a,"has",l)),n===l?i.has(n):i.has(n)||i.has(l)},forEach(n,i){const a=this,l=a.__v_raw,s=ie(l),c=o?Rn:e?kn:He;return!e&&Ie(s,"iterate",Xo),l.forEach((d,u)=>n.call(i,c(d),c(u),a))}};return we(t,e?{add:pr("add"),set:pr("set"),delete:pr("delete"),clear:pr("clear")}:{add(n){!o&&!Xe(n)&&!ot(n)&&(n=ie(n));const i=ie(this);return fr(i).has.call(i,n)||(i.add(n),wo(i,"add",n,n)),this},set(n,i){!o&&!Xe(i)&&!ot(i)&&(i=ie(i));const a=ie(this),{has:l,get:s}=fr(a);let c=l.call(a,n);c||(n=ie(n),c=l.call(a,n));const d=s.call(a,n);return a.set(n,i),c?Oo(i,d)&&wo(a,"set",n,i):wo(a,"add",n,i),this},delete(n){const i=ie(this),{has:a,get:l}=fr(i);let s=a.call(i,n);s||(n=ie(n),s=a.call(i,n)),l&&l.call(i,n);const c=i.delete(n);return s&&wo(i,"delete",n,void 0),c},clear(){const n=ie(this),i=n.size!==0,a=n.clear();return i&&wo(n,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(n=>{t[n]=Td(n,e,o)}),t}function mi(e,o){const t=$d(e,o);return(r,n,i)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?r:Reflect.get(se(t,n)&&n in r?t:r,n,i)}const Id={get:mi(!1,!1)},Hd={get:mi(!1,!0)},Fd={get:mi(!0,!1)};const gl=new WeakMap,bl=new WeakMap,Cl=new WeakMap,Ad=new WeakMap;function Md(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Dd(e){return e.__v_skip||!Object.isExtensible(e)?0:Md(od(e))}function Gr(e){return ot(e)?e:bi(e,!1,Sd,Id,gl)}function _d(e){return bi(e,!1,Pd,Hd,bl)}function gi(e){return bi(e,!0,wd,Fd,Cl)}function bi(e,o,t,r,n){if(!me(e)||e.__v_raw&&!(o&&e.__v_isReactive))return e;const i=n.get(e);if(i)return i;const a=Dd(e);if(a===0)return e;const l=new Proxy(e,a===2?r:t);return n.set(e,l),l}function ht(e){return ot(e)?ht(e.__v_raw):!!(e&&e.__v_isReactive)}function ot(e){return!!(e&&e.__v_isReadonly)}function Xe(e){return!!(e&&e.__v_isShallow)}function Ci(e){return e?!!e.__v_raw:!1}function ie(e){const o=e&&e.__v_raw;return o?ie(o):e}function Ln(e){return!se(e,"__v_skip")&&Object.isExtensible(e)&&ol(e,"__v_skip",!0),e}const He=e=>me(e)?Gr(e):e,kn=e=>me(e)?gi(e):e;function Pe(e){return e?e.__v_isRef===!0:!1}function Be(e){return vl(e,!1)}function xl(e){return vl(e,!0)}function vl(e,o){return Pe(e)?e:new Ed(e,o)}class Ed{constructor(o,t){this.dep=new hi,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?o:ie(o),this._value=t?o:He(o),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(o){const t=this._rawValue,r=this.__v_isShallow||Xe(o)||ot(o);o=r?o:ie(o),Oo(o,t)&&(this._rawValue=o,this._value=r?o:He(o),this.dep.trigger())}}function Rd(e){return Pe(e)?e.value:e}const Ld={get:(e,o,t)=>o==="__v_raw"?e:Rd(Reflect.get(e,o,t)),set:(e,o,t,r)=>{const n=e[o];return Pe(n)&&!Pe(t)?(n.value=t,!0):Reflect.set(e,o,t,r)}};function yl(e){return ht(e)?e:new Proxy(e,Ld)}class kd{constructor(o,t,r){this._object=o,this._key=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const o=this._object[this._key];return this._value=o===void 0?this._defaultValue:o}set value(o){this._object[this._key]=o}get dep(){return gd(ie(this._object),this._key)}}class Od{constructor(o){this._getter=o,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function qr(e,o,t){return Pe(e)?e:X(e)?new Od(e):me(e)&&arguments.length>1?zd(e,o,t):Be(e)}function zd(e,o,t){const r=e[o];return Pe(r)?r:new kd(e,o,t)}class Bd{constructor(o,t,r){this.fn=o,this.setter=t,this._value=void 0,this.dep=new hi(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Vt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&he!==this)return ll(this,!0),!0}get value(){const o=this.dep.track();return dl(this),o&&(o.version=this.dep.version),this._value}set value(o){this.setter&&this.setter(o)}}function Wd(e,o,t=!1){let r,n;return X(e)?r=e:(r=e.get,n=e.set),new Bd(r,n,t)}const hr={},Hr=new WeakMap;let Yo;function jd(e,o=!1,t=Yo){if(t){let r=Hr.get(t);r||Hr.set(t,r=[]),r.push(e)}}function Nd(e,o,t=fe){const{immediate:r,deep:n,once:i,scheduler:a,augmentJob:l,call:s}=t,c=v=>n?v:Xe(v)||n===!1||n===0?Po(v,1):Po(v);let d,u,p,g,h=!1,b=!1;if(Pe(e)?(u=()=>e.value,h=Xe(e)):ht(e)?(u=()=>c(e),h=!0):Y(e)?(b=!0,h=e.some(v=>ht(v)||Xe(v)),u=()=>e.map(v=>{if(Pe(v))return v.value;if(ht(v))return c(v);if(X(v))return s?s(v,2):v()})):X(e)?o?u=s?()=>s(e,2):e:u=()=>{if(p){jo();try{p()}finally{No()}}const v=Yo;Yo=d;try{return s?s(e,3,[g]):e(g)}finally{Yo=v}}:u=mo,o&&n){const v=u,L=n===!0?1/0:n;u=()=>Po(v(),L)}const y=pd(),C=()=>{d.stop(),y&&y.active&&li(y.effects,d)};if(i&&o){const v=o;o=(...L)=>{v(...L),C()}}let I=b?new Array(e.length).fill(hr):hr;const E=v=>{if(!(!(d.flags&1)||!d.dirty&&!v))if(o){const L=d.run();if(n||h||(b?L.some((W,w)=>Oo(W,I[w])):Oo(L,I))){p&&p();const W=Yo;Yo=d;try{const w=[L,I===hr?void 0:b&&I[0]===hr?[]:I,g];s?s(o,3,w):o(...w),I=L}finally{Yo=W}}}else d.run()};return l&&l(E),d=new il(u),d.scheduler=a?()=>a(E,!1):E,g=v=>jd(v,!1,d),p=d.onStop=()=>{const v=Hr.get(d);if(v){if(s)s(v,4);else for(const L of v)L();Hr.delete(d)}},o?r?E(!0):I=d.run():a?a(E.bind(null,!0),!0):d.run(),C.pause=d.pause.bind(d),C.resume=d.resume.bind(d),C.stop=C,C}function Po(e,o=1/0,t){if(o<=0||!me(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),o--,Pe(e))Po(e.value,o,t);else if(Y(e))for(let r=0;r{Po(r,o,t)});else if(Xa(e)){for(const r in e)Po(e[r],o,t);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Po(e[r],o,t)}return e}/**
* @vue/runtime-core v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
-**/function or(e,o,t,r){try{return r?e(...r):e()}catch(n){Kr(n,o,t)}}function ro(e,o,t,r){if(X(e)){const n=or(e,o,t,r);return n&&Za(n)&&n.catch(i=>{Kr(i,o,t)}),n}if(Y(e)){const n=[];for(let i=0;i>>1,n=ke[r],i=Gt(n);i=Gt(t)?ke.push(e):ke.splice(Ud(o),0,e),e.flags|=1,Pl()}}function Pl(){Fr||(Fr=Sl.then($l))}function Gd(e){Y(e)?mt.push(...e):Eo&&e.id===-1?Eo.splice(dt+1,0,e):e.flags&1||(mt.push(e),e.flags|=1),Pl()}function ji(e,o,t=uo+1){for(;tGt(t)-Gt(r));if(mt.length=0,Eo){Eo.push(...o);return}for(Eo=o,dt=0;dte.id==null?e.flags&2?-1:1/0:e.id;function $l(e){try{for(uo=0;uo{r._d&&oa(-1);const i=Ar(o);let a;try{a=e(...n)}finally{Ar(i),r._d&&oa(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Rv(e,o){if(Te===null)return e;const t=tn(Te),r=e.dirs||(e.dirs=[]);for(let n=0;ne.__isTeleport,Bt=e=>e&&(e.disabled||e.disabled===""),Ni=e=>e&&(e.defer||e.defer===""),Vi=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ui=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,zn=(e,o)=>{const t=e&&e.to;return ve(t)?o?o(t):null:t},Al={name:"Teleport",__isTeleport:!0,process(e,o,t,r,n,i,a,l,s,c){const{mc:d,pc:u,pbc:p,o:{insert:g,querySelector:h,createText:b,createComment:y}}=c,C=Bt(o.props);let{shapeFlag:I,children:E,dynamicChildren:v}=o;if(e==null){const L=o.el=b(""),W=o.anchor=b("");g(L,t,r),g(W,t,r);const w=(D,j)=>{I&16&&(n&&n.isCE&&(n.ce._teleportTarget=D),d(E,D,j,n,i,a,l,s))},K=()=>{const D=o.target=zn(o.props,h),j=Ml(D,o,b,g);D&&(a!=="svg"&&Vi(D)?a="svg":a!=="mathml"&&Ui(D)&&(a="mathml"),C||(w(D,j),Sr(o,!1)))};C&&(w(t,W),Sr(o,!0)),Ni(o.props)?Le(()=>{K(),o.el.__isMounted=!0},i):K()}else{if(Ni(o.props)&&!e.el.__isMounted){Le(()=>{Al.process(e,o,t,r,n,i,a,l,s,c),delete e.el.__isMounted},i);return}o.el=e.el,o.targetStart=e.targetStart;const L=o.anchor=e.anchor,W=o.target=e.target,w=o.targetAnchor=e.targetAnchor,K=Bt(e.props),D=K?t:W,j=K?L:w;if(a==="svg"||Vi(W)?a="svg":(a==="mathml"||Ui(W))&&(a="mathml"),v?(p(e.dynamicChildren,v,D,n,i,a,l),Si(e,o,!0)):s||u(e,o,D,j,n,i,a,l,!1),C)K?o.props&&e.props&&o.props.to!==e.props.to&&(o.props.to=e.props.to):mr(o,t,L,c,1);else if((o.props&&o.props.to)!==(e.props&&e.props.to)){const q=o.target=zn(o.props,h);q&&mr(o,q,null,c,0)}else K&&mr(o,W,w,c,1);Sr(o,C)}},remove(e,o,t,{um:r,o:{remove:n}},i){const{shapeFlag:a,children:l,anchor:s,targetStart:c,targetAnchor:d,target:u,props:p}=e;if(u&&(n(c),n(d)),i&&n(s),a&16){const g=i||!Bt(p);for(let h=0;h{e.isMounted=!0}),Xr(()=>{e.isUnmounting=!0}),e}const Qe=[Function,Array],_l={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Qe,onEnter:Qe,onAfterEnter:Qe,onEnterCancelled:Qe,onBeforeLeave:Qe,onLeave:Qe,onAfterLeave:Qe,onLeaveCancelled:Qe,onBeforeAppear:Qe,onAppear:Qe,onAfterAppear:Qe,onAppearCancelled:Qe},El=e=>{const o=e.subTree;return o.component?El(o.component):o},Jd={name:"BaseTransition",props:_l,setup(e,{slots:o}){const t=ss(),r=Dl();return()=>{const n=o.default&&vi(o.default(),!0);if(!n||!n.length)return;const i=Rl(n),a=ie(e),{mode:l}=a;if(r.isLeaving)return yn(i);const s=Gi(i);if(!s)return yn(i);let c=qt(s,a,r,t,u=>c=u);s.type!==Me&&tt(s,c);let d=t.subTree&&Gi(t.subTree);if(d&&d.type!==Me&&!Jo(s,d)&&El(t).type!==Me){let u=qt(d,a,r,t);if(tt(d,u),l==="out-in"&&s.type!==Me)return r.isLeaving=!0,u.afterLeave=()=>{r.isLeaving=!1,t.job.flags&8||t.update(),delete u.afterLeave,d=void 0},yn(i);l==="in-out"&&s.type!==Me?u.delayLeave=(p,g,h)=>{const b=Ll(r,d);b[String(d.key)]=d,p[Ro]=()=>{g(),p[Ro]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{h(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return i}}};function Rl(e){let o=e[0];if(e.length>1){for(const t of e)if(t.type!==Me){o=t;break}}return o}const Zd=Jd;function Ll(e,o){const{leavingVNodes:t}=e;let r=t.get(o.type);return r||(r=Object.create(null),t.set(o.type,r)),r}function qt(e,o,t,r,n){const{appear:i,mode:a,persisted:l=!1,onBeforeEnter:s,onEnter:c,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:p,onLeave:g,onAfterLeave:h,onLeaveCancelled:b,onBeforeAppear:y,onAppear:C,onAfterAppear:I,onAppearCancelled:E}=o,v=String(e.key),L=Ll(t,e),W=(D,j)=>{D&&ro(D,r,9,j)},w=(D,j)=>{const q=j[1];W(D,j),Y(D)?D.every(F=>F.length<=1)&&q():D.length<=1&&q()},K={mode:a,persisted:l,beforeEnter(D){let j=s;if(!t.isMounted)if(i)j=y||s;else return;D[Ro]&&D[Ro](!0);const q=L[v];q&&Jo(e,q)&&q.el[Ro]&&q.el[Ro](),W(j,[D])},enter(D){let j=c,q=d,F=u;if(!t.isMounted)if(i)j=C||c,q=I||d,F=E||u;else return;let ee=!1;const ae=D[gr]=xe=>{ee||(ee=!0,xe?W(F,[D]):W(q,[D]),K.delayedLeave&&K.delayedLeave(),D[gr]=void 0)};j?w(j,[D,ae]):ae()},leave(D,j){const q=String(e.key);if(D[gr]&&D[gr](!0),t.isUnmounting)return j();W(p,[D]);let F=!1;const ee=D[Ro]=ae=>{F||(F=!0,j(),ae?W(b,[D]):W(h,[D]),D[Ro]=void 0,L[q]===e&&delete L[q])};L[q]=e,g?w(g,[D,ee]):ee()},clone(D){const j=qt(D,o,t,r,n);return n&&n(j),j}};return K}function yn(e){if(Yr(e))return e=Bo(e),e.children=null,e}function Gi(e){if(!Yr(e))return Fl(e.type)&&e.children?Rl(e.children):e;const{shapeFlag:o,children:t}=e;if(t){if(o&16)return t[0];if(o&32&&X(t.default))return t.default()}}function tt(e,o){e.shapeFlag&6&&e.component?(e.transition=o,tt(e.component.subTree,o)):e.shapeFlag&128?(e.ssContent.transition=o.clone(e.ssContent),e.ssFallback.transition=o.clone(e.ssFallback)):e.transition=o}function vi(e,o=!1,t){let r=[],n=0;for(let i=0;i1)for(let i=0;iMr(h,o&&(Y(o)?o[b]:o),t,r,n));return}if(gt(r)&&!n){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Mr(e,o,t,r.component.subTree);return}const i=r.shapeFlag&4?tn(r.component):r.el,a=n?null:i,{i:l,r:s}=e,c=o&&o.r,d=l.refs===fe?l.refs={}:l.refs,u=l.setupState,p=ie(u),g=u===fe?()=>!1:h=>se(p,h);if(c!=null&&c!==s&&(ve(c)?(d[c]=null,g(c)&&(u[c]=null)):Pe(c)&&(c.value=null)),X(s))or(s,l,12,[a,d]);else{const h=ve(s),b=Pe(s);if(h||b){const y=()=>{if(e.f){const C=h?g(s)?u[s]:d[s]:s.value;n?Y(C)&&li(C,i):Y(C)?C.includes(i)||C.push(i):h?(d[s]=[i],g(s)&&(u[s]=d[s])):(s.value=[i],e.k&&(d[e.k]=s.value))}else h?(d[s]=a,g(s)&&(u[s]=a)):b&&(s.value=a,e.k&&(d[e.k]=a))};a?(y.id=-1,Le(y,t)):y()}}}Vr().requestIdleCallback;Vr().cancelIdleCallback;const gt=e=>!!e.type.__asyncLoader,Yr=e=>e.type.__isKeepAlive;function Qd(e,o){zl(e,"a",o)}function Xd(e,o){zl(e,"da",o)}function zl(e,o,t=De){const r=e.__wdc||(e.__wdc=()=>{let n=t;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(Jr(o,r,t),t){let n=t.parent;for(;n&&n.parent;)Yr(n.parent.vnode)&&eu(r,o,t,n),n=n.parent}}function eu(e,o,t,r){const n=Jr(o,e,r,!0);Bl(()=>{li(r[o],n)},t)}function Jr(e,o,t=De,r=!1){if(t){const n=t[e]||(t[e]=[]),i=o.__weh||(o.__weh=(...a)=>{jo();const l=tr(t),s=ro(o,t,e,a);return l(),No(),s});return r?n.unshift(i):n.push(i),i}}const Fo=e=>(o,t=De)=>{(!Jt||e==="sp")&&Jr(e,(...r)=>o(...r),t)},Zr=Fo("bm"),Qr=Fo("m"),ou=Fo("bu"),Ol=Fo("u"),Xr=Fo("bum"),Bl=Fo("um"),tu=Fo("sp"),ru=Fo("rtg"),nu=Fo("rtc");function iu(e,o=De){Jr("ec",e,o)}const au=Symbol.for("v-ndc");function Lv(e,o,t,r){let n;const i=t,a=Y(e);if(a||ve(e)){const l=a&&ht(e);let s=!1;l&&(s=!Xe(e),e=Ur(e)),n=new Array(e.length);for(let c=0,d=e.length;co(l,s,void 0,i));else{const l=Object.keys(e);n=new Array(l.length);for(let s=0,c=l.length;sxt(o)?!(o.type===Me||o.type===Fe&&!Wl(o.children)):!0)?e:null}const On=e=>e?cs(e)?tn(e):On(e.parent):null,Wt=we(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=>On(e.parent),$root:e=>On(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Nl(e),$forceUpdate:e=>e.f||(e.f=()=>{xi(e.update)}),$nextTick:e=>e.n||(e.n=wl.bind(e.proxy)),$watch:e=>Iu.bind(e)}),Sn=(e,o)=>e!==fe&&!e.__isScriptSetup&&se(e,o),lu={get({_:e},o){if(o==="__v_skip")return!0;const{ctx:t,setupState:r,data:n,props:i,accessCache:a,type:l,appContext:s}=e;let c;if(o[0]!=="$"){const g=a[o];if(g!==void 0)switch(g){case 1:return r[o];case 2:return n[o];case 4:return t[o];case 3:return i[o]}else{if(Sn(r,o))return a[o]=1,r[o];if(n!==fe&&se(n,o))return a[o]=2,n[o];if((c=e.propsOptions[0])&&se(c,o))return a[o]=3,i[o];if(t!==fe&&se(t,o))return a[o]=4,t[o];Bn&&(a[o]=0)}}const d=Wt[o];let u,p;if(d)return o==="$attrs"&&Ie(e.attrs,"get",""),d(e);if((u=l.__cssModules)&&(u=u[o]))return u;if(t!==fe&&se(t,o))return a[o]=4,t[o];if(p=s.config.globalProperties,se(p,o))return p[o]},set({_:e},o,t){const{data:r,setupState:n,ctx:i}=e;return Sn(n,o)?(n[o]=t,!0):r!==fe&&se(r,o)?(r[o]=t,!0):se(e.props,o)||o[0]==="$"&&o.slice(1)in e?!1:(i[o]=t,!0)},has({_:{data:e,setupState:o,accessCache:t,ctx:r,appContext:n,propsOptions:i}},a){let l;return!!t[a]||e!==fe&&se(e,a)||Sn(o,a)||(l=i[0])&&se(l,a)||se(r,a)||se(Wt,a)||se(n.config.globalProperties,a)},defineProperty(e,o,t){return t.get!=null?e._.accessCache[o]=0:se(t,"value")&&this.set(e,o,t.value,null),Reflect.defineProperty(e,o,t)}};function qi(e){return Y(e)?e.reduce((o,t)=>(o[t]=null,o),{}):e}let Bn=!0;function su(e){const o=Nl(e),t=e.proxy,r=e.ctx;Bn=!1,o.beforeCreate&&Ki(o.beforeCreate,e,"bc");const{data:n,computed:i,methods:a,watch:l,provide:s,inject:c,created:d,beforeMount:u,mounted:p,beforeUpdate:g,updated:h,activated:b,deactivated:y,beforeDestroy:C,beforeUnmount:I,destroyed:E,unmounted:v,render:L,renderTracked:W,renderTriggered:w,errorCaptured:K,serverPrefetch:D,expose:j,inheritAttrs:q,components:F,directives:ee,filters:ae}=o;if(c&&cu(c,r,null),a)for(const V in a){const re=a[V];X(re)&&(r[V]=re.bind(t))}if(n){const V=n.call(t,t);me(V)&&(e.data=Gr(V))}if(Bn=!0,i)for(const V in i){const re=i[V],Ne=X(re)?re.bind(t,t):X(re.get)?re.get.bind(t,t):mo,Ze=!X(re)&&X(re.set)?re.set.bind(t):mo,Co=de({get:Ne,set:Ze});Object.defineProperty(r,V,{enumerable:!0,configurable:!0,get:()=>Co.value,set:Ve=>Co.value=Ve})}if(l)for(const V in l)jl(l[V],r,t,V);if(s){const V=X(s)?s.call(t):s;Reflect.ownKeys(V).forEach(re=>{Kt(re,V[re])})}d&&Ki(d,e,"c");function oe(V,re){Y(re)?re.forEach(Ne=>V(Ne.bind(t))):re&&V(re.bind(t))}if(oe(Zr,u),oe(Qr,p),oe(ou,g),oe(Ol,h),oe(Qd,b),oe(Xd,y),oe(iu,K),oe(nu,W),oe(ru,w),oe(Xr,I),oe(Bl,v),oe(tu,D),Y(j))if(j.length){const V=e.exposed||(e.exposed={});j.forEach(re=>{Object.defineProperty(V,re,{get:()=>t[re],set:Ne=>t[re]=Ne})})}else e.exposed||(e.exposed={});L&&e.render===mo&&(e.render=L),q!=null&&(e.inheritAttrs=q),F&&(e.components=F),ee&&(e.directives=ee),D&&kl(e)}function cu(e,o,t=mo){Y(e)&&(e=Wn(e));for(const r in e){const n=e[r];let i;me(n)?"default"in n?i=Ee(n.from||r,n.default,!0):i=Ee(n.from||r):i=Ee(n),Pe(i)?Object.defineProperty(o,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):o[r]=i}}function Ki(e,o,t){ro(Y(e)?e.map(r=>r.bind(o.proxy)):e.bind(o.proxy),o,t)}function jl(e,o,t,r){let n=r.includes(".")?ts(t,r):()=>t[r];if(ve(e)){const i=o[e];X(i)&&wr(n,i)}else if(X(e))wr(n,e.bind(t));else if(me(e))if(Y(e))e.forEach(i=>jl(i,o,t,r));else{const i=X(e.handler)?e.handler.bind(t):o[e.handler];X(i)&&wr(n,i,e)}}function Nl(e){const o=e.type,{mixins:t,extends:r}=o,{mixins:n,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,l=i.get(o);let s;return l?s=l:!n.length&&!t&&!r?s=o:(s={},n.length&&n.forEach(c=>Dr(s,c,a,!0)),Dr(s,o,a)),me(o)&&i.set(o,s),s}function Dr(e,o,t,r=!1){const{mixins:n,extends:i}=o;i&&Dr(e,i,t,!0),n&&n.forEach(a=>Dr(e,a,t,!0));for(const a in o)if(!(r&&a==="expose")){const l=du[a]||t&&t[a];e[a]=l?l(e[a],o[a]):o[a]}return e}const du={data:Yi,props:Ji,emits:Ji,methods:Rt,computed:Rt,beforeCreate:Re,created:Re,beforeMount:Re,mounted:Re,beforeUpdate:Re,updated:Re,beforeDestroy:Re,beforeUnmount:Re,destroyed:Re,unmounted:Re,activated:Re,deactivated:Re,errorCaptured:Re,serverPrefetch:Re,components:Rt,directives:Rt,watch:fu,provide:Yi,inject:uu};function Yi(e,o){return o?e?function(){return we(X(e)?e.call(this,this):e,X(o)?o.call(this,this):o)}:o:e}function uu(e,o){return Rt(Wn(e),Wn(o))}function Wn(e){if(Y(e)){const o={};for(let t=0;t1)return t&&X(o)?o.call(r&&r.proxy):o}}const Ul={},Gl=()=>Object.create(Ul),ql=e=>Object.getPrototypeOf(e)===Ul;function mu(e,o,t,r=!1){const n={},i=Gl();e.propsDefaults=Object.create(null),Kl(e,o,n,i);for(const a in e.propsOptions[0])a in n||(n[a]=void 0);t?e.props=r?n:_d(n):e.type.props?e.props=n:e.props=i,e.attrs=i}function gu(e,o,t,r){const{props:n,attrs:i,vnode:{patchFlag:a}}=e,l=ie(n),[s]=e.propsOptions;let c=!1;if((r||a>0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let u=0;u{s=!0;const[p,g]=Yl(u,o,!0);we(a,p),g&&l.push(...g)};!t&&o.mixins.length&&o.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!s)return me(e)&&r.set(e,ft),ft;if(Y(i))for(let d=0;de[0]==="_"||e==="$stable",yi=e=>Y(e)?e.map(fo):[fo(e)],Cu=(e,o,t)=>{if(o._n)return o;const r=qd((...n)=>yi(o(...n)),t);return r._c=!1,r},Zl=(e,o,t)=>{const r=e._ctx;for(const n in e){if(Jl(n))continue;const i=e[n];if(X(i))o[n]=Cu(n,i,r);else if(i!=null){const a=yi(i);o[n]=()=>a}}},Ql=(e,o)=>{const t=yi(o);e.slots.default=()=>t},Xl=(e,o,t)=>{for(const r in o)(t||r!=="_")&&(e[r]=o[r])},xu=(e,o,t)=>{const r=e.slots=Gl();if(e.vnode.shapeFlag&32){const n=o._;n?(Xl(r,o,t),t&&ol(r,"_",n,!0)):Zl(o,r)}else o&&Ql(e,o)},vu=(e,o,t)=>{const{vnode:r,slots:n}=e;let i=!0,a=fe;if(r.shapeFlag&32){const l=o._;l?t&&l===1?i=!1:Xl(n,o,t):(i=!o.$stable,Zl(o,n)),a=o}else o&&(Ql(e,o),a={default:1});if(i)for(const l in n)!Jl(l)&&a[l]==null&&delete n[l]},Le=Eu;function yu(e){return Su(e)}function Su(e,o){const t=Vr();t.__VUE__=!0;const{insert:r,remove:n,patchProp:i,createElement:a,createText:l,createComment:s,setText:c,setElementText:d,parentNode:u,nextSibling:p,setScopeId:g=mo,insertStaticContent:h}=e,b=(f,m,x,H=null,T=null,$=null,R=void 0,M=null,P=!!m.dynamicChildren)=>{if(f===m)return;f&&!Jo(f,m)&&(H=xo(f),Ve(f,T,$,!0),f=null),m.patchFlag===-2&&(P=!1,m.dynamicChildren=null);const{type:S,ref:N,shapeFlag:z}=m;switch(S){case on:y(f,m,x,H);break;case Me:C(f,m,x,H);break;case Pr:f==null&&I(m,x,H,R);break;case Fe:F(f,m,x,H,T,$,R,M,P);break;default:z&1?L(f,m,x,H,T,$,R,M,P):z&6?ee(f,m,x,H,T,$,R,M,P):(z&64||z&128)&&S.process(f,m,x,H,T,$,R,M,P,vo)}N!=null&&T&&Mr(N,f&&f.ref,$,m||f,!m)},y=(f,m,x,H)=>{if(f==null)r(m.el=l(m.children),x,H);else{const T=m.el=f.el;m.children!==f.children&&c(T,m.children)}},C=(f,m,x,H)=>{f==null?r(m.el=s(m.children||""),x,H):m.el=f.el},I=(f,m,x,H)=>{[f.el,f.anchor]=h(f.children,m,x,H,f.el,f.anchor)},E=({el:f,anchor:m},x,H)=>{let T;for(;f&&f!==m;)T=p(f),r(f,x,H),f=T;r(m,x,H)},v=({el:f,anchor:m})=>{let x;for(;f&&f!==m;)x=p(f),n(f),f=x;n(m)},L=(f,m,x,H,T,$,R,M,P)=>{m.type==="svg"?R="svg":m.type==="math"&&(R="mathml"),f==null?W(m,x,H,T,$,R,M,P):D(f,m,T,$,R,M,P)},W=(f,m,x,H,T,$,R,M)=>{let P,S;const{props:N,shapeFlag:z,transition:G,dirs:J}=f;if(P=f.el=a(f.type,$,N&&N.is,N),z&8?d(P,f.children):z&16&&K(f.children,P,null,H,T,wn(f,$),R,M),J&&Vo(f,null,H,"created"),w(P,f,f.scopeId,R,H),N){for(const pe in N)pe!=="value"&&!kt(pe)&&i(P,pe,null,N[pe],$,H);"value"in N&&i(P,"value",null,N.value,$),(S=N.onVnodeBeforeMount)&&lo(S,H,f)}J&&Vo(f,null,H,"beforeMount");const te=wu(T,G);te&&G.beforeEnter(P),r(P,m,x),((S=N&&N.onVnodeMounted)||te||J)&&Le(()=>{S&&lo(S,H,f),te&&G.enter(P),J&&Vo(f,null,H,"mounted")},T)},w=(f,m,x,H,T)=>{if(x&&g(f,x),H)for(let $=0;${for(let S=P;S{const M=m.el=f.el;let{patchFlag:P,dynamicChildren:S,dirs:N}=m;P|=f.patchFlag&16;const z=f.props||fe,G=m.props||fe;let J;if(x&&Uo(x,!1),(J=G.onVnodeBeforeUpdate)&&lo(J,x,m,f),N&&Vo(m,f,x,"beforeUpdate"),x&&Uo(x,!0),(z.innerHTML&&G.innerHTML==null||z.textContent&&G.textContent==null)&&d(M,""),S?j(f.dynamicChildren,S,M,x,H,wn(m,T),$):R||re(f,m,M,null,x,H,wn(m,T),$,!1),P>0){if(P&16)q(M,z,G,x,T);else if(P&2&&z.class!==G.class&&i(M,"class",null,G.class,T),P&4&&i(M,"style",z.style,G.style,T),P&8){const te=m.dynamicProps;for(let pe=0;pe{J&&lo(J,x,m,f),N&&Vo(m,f,x,"updated")},H)},j=(f,m,x,H,T,$,R)=>{for(let M=0;M{if(m!==x){if(m!==fe)for(const $ in m)!kt($)&&!($ in x)&&i(f,$,m[$],null,T,H);for(const $ in x){if(kt($))continue;const R=x[$],M=m[$];R!==M&&$!=="value"&&i(f,$,M,R,T,H)}"value"in x&&i(f,"value",m.value,x.value,T)}},F=(f,m,x,H,T,$,R,M,P)=>{const S=m.el=f?f.el:l(""),N=m.anchor=f?f.anchor:l("");let{patchFlag:z,dynamicChildren:G,slotScopeIds:J}=m;J&&(M=M?M.concat(J):J),f==null?(r(S,x,H),r(N,x,H),K(m.children||[],x,N,T,$,R,M,P)):z>0&&z&64&&G&&f.dynamicChildren?(j(f.dynamicChildren,G,x,T,$,R,M),(m.key!=null||T&&m===T.subTree)&&Si(f,m,!0)):re(f,m,x,N,T,$,R,M,P)},ee=(f,m,x,H,T,$,R,M,P)=>{m.slotScopeIds=M,f==null?m.shapeFlag&512?T.ctx.activate(m,x,H,R,P):ae(m,x,H,T,$,R,P):xe(f,m,P)},ae=(f,m,x,H,T,$,R)=>{const M=f.component=Wu(f,H,T);if(Yr(f)&&(M.ctx.renderer=vo),ju(M,!1,R),M.asyncDep){if(T&&T.registerDep(M,oe,R),!f.el){const P=M.subTree=_e(Me);C(null,P,m,x)}}else oe(M,f,m,x,T,$,R)},xe=(f,m,x)=>{const H=m.component=f.component;if(Du(f,m,x))if(H.asyncDep&&!H.asyncResolved){V(H,m,x);return}else H.next=m,H.update();else m.el=f.el,H.vnode=m},oe=(f,m,x,H,T,$,R)=>{const M=()=>{if(f.isMounted){let{next:z,bu:G,u:J,parent:te,vnode:pe}=f;{const io=es(f);if(io){z&&(z.el=pe.el,V(f,z,R)),io.asyncDep.then(()=>{f.isUnmounted||M()});return}}let ce=z,Ue;Uo(f,!1),z?(z.el=pe.el,V(f,z,R)):z=pe,G&&yr(G),(Ue=z.props&&z.props.onVnodeBeforeUpdate)&&lo(Ue,te,z,pe),Uo(f,!0);const ze=Xi(f),no=f.subTree;f.subTree=ze,b(no,ze,u(no.el),xo(no),f,T,$),z.el=ze.el,ce===null&&_u(f,ze.el),J&&Le(J,T),(Ue=z.props&&z.props.onVnodeUpdated)&&Le(()=>lo(Ue,te,z,pe),T)}else{let z;const{el:G,props:J}=m,{bm:te,m:pe,parent:ce,root:Ue,type:ze}=f,no=gt(m);Uo(f,!1),te&&yr(te),!no&&(z=J&&J.onVnodeBeforeMount)&&lo(z,ce,m),Uo(f,!0);{Ue.ce&&Ue.ce._injectChildStyle(ze);const io=f.subTree=Xi(f);b(null,io,x,H,f,T,$),m.el=io.el}if(pe&&Le(pe,T),!no&&(z=J&&J.onVnodeMounted)){const io=m;Le(()=>lo(z,ce,io),T)}(m.shapeFlag&256||ce&>(ce.vnode)&&ce.vnode.shapeFlag&256)&&f.a&&Le(f.a,T),f.isMounted=!0,m=x=H=null}};f.scope.on();const P=f.effect=new il(M);f.scope.off();const S=f.update=P.run.bind(P),N=f.job=P.runIfDirty.bind(P);N.i=f,N.id=f.uid,P.scheduler=()=>xi(N),Uo(f,!0),S()},V=(f,m,x)=>{m.component=f;const H=f.vnode.props;f.vnode=m,f.next=null,gu(f,m.props,H,x),vu(f,m.children,x),jo(),ji(f),No()},re=(f,m,x,H,T,$,R,M,P=!1)=>{const S=f&&f.children,N=f?f.shapeFlag:0,z=m.children,{patchFlag:G,shapeFlag:J}=m;if(G>0){if(G&128){Ze(S,z,x,H,T,$,R,M,P);return}else if(G&256){Ne(S,z,x,H,T,$,R,M,P);return}}J&8?(N&16&&ue(S,T,$),z!==S&&d(x,z)):N&16?J&16?Ze(S,z,x,H,T,$,R,M,P):ue(S,T,$,!0):(N&8&&d(x,""),J&16&&K(z,x,H,T,$,R,M,P))},Ne=(f,m,x,H,T,$,R,M,P)=>{f=f||ft,m=m||ft;const S=f.length,N=m.length,z=Math.min(S,N);let G;for(G=0;GN?ue(f,T,$,!0,!1,z):K(m,x,H,T,$,R,M,P,z)},Ze=(f,m,x,H,T,$,R,M,P)=>{let S=0;const N=m.length;let z=f.length-1,G=N-1;for(;S<=z&&S<=G;){const J=f[S],te=m[S]=P?Lo(m[S]):fo(m[S]);if(Jo(J,te))b(J,te,x,null,T,$,R,M,P);else break;S++}for(;S<=z&&S<=G;){const J=f[z],te=m[G]=P?Lo(m[G]):fo(m[G]);if(Jo(J,te))b(J,te,x,null,T,$,R,M,P);else break;z--,G--}if(S>z){if(S<=G){const J=G+1,te=JG)for(;S<=z;)Ve(f[S],T,$,!0),S++;else{const J=S,te=S,pe=new Map;for(S=te;S<=G;S++){const Ge=m[S]=P?Lo(m[S]):fo(m[S]);Ge.key!=null&&pe.set(Ge.key,S)}let ce,Ue=0;const ze=G-te+1;let no=!1,io=0;const Ft=new Array(ze);for(S=0;S=ze){Ve(Ge,T,$,!0);continue}let ao;if(Ge.key!=null)ao=pe.get(Ge.key);else for(ce=te;ce<=G;ce++)if(Ft[ce-te]===0&&Jo(Ge,m[ce])){ao=ce;break}ao===void 0?Ve(Ge,T,$,!0):(Ft[ao-te]=S+1,ao>=io?io=ao:no=!0,b(Ge,m[ao],x,null,T,$,R,M,P),Ue++)}const ki=no?Pu(Ft):ft;for(ce=ki.length-1,S=ze-1;S>=0;S--){const Ge=te+S,ao=m[Ge],zi=Ge+1{const{el:$,type:R,transition:M,children:P,shapeFlag:S}=f;if(S&6){Co(f.component.subTree,m,x,H);return}if(S&128){f.suspense.move(m,x,H);return}if(S&64){R.move(f,m,x,vo);return}if(R===Fe){r($,m,x);for(let z=0;zM.enter($),T);else{const{leave:z,delayLeave:G,afterLeave:J}=M,te=()=>r($,m,x),pe=()=>{z($,()=>{te(),J&&J()})};G?G($,te,pe):pe()}else r($,m,x)},Ve=(f,m,x,H=!1,T=!1)=>{const{type:$,props:R,ref:M,children:P,dynamicChildren:S,shapeFlag:N,patchFlag:z,dirs:G,cacheIndex:J}=f;if(z===-2&&(T=!1),M!=null&&Mr(M,null,x,f,!0),J!=null&&(m.renderCache[J]=void 0),N&256){m.ctx.deactivate(f);return}const te=N&1&&G,pe=!gt(f);let ce;if(pe&&(ce=R&&R.onVnodeBeforeUnmount)&&lo(ce,m,f),N&6)mn(f.component,x,H);else{if(N&128){f.suspense.unmount(x,H);return}te&&Vo(f,null,m,"beforeUnmount"),N&64?f.type.remove(f,m,x,vo,H):S&&!S.hasOnce&&($!==Fe||z>0&&z&64)?ue(S,m,x,!1,!0):($===Fe&&z&384||!T&&N&16)&&ue(P,m,x),H&&dr(f)}(pe&&(ce=R&&R.onVnodeUnmounted)||te)&&Le(()=>{ce&&lo(ce,m,f),te&&Vo(f,null,m,"unmounted")},x)},dr=f=>{const{type:m,el:x,anchor:H,transition:T}=f;if(m===Fe){hn(x,H);return}if(m===Pr){v(f);return}const $=()=>{n(x),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(f.shapeFlag&1&&T&&!T.persisted){const{leave:R,delayLeave:M}=T,P=()=>R(x,$);M?M(f.el,$,P):P()}else $()},hn=(f,m)=>{let x;for(;f!==m;)x=p(f),n(f),f=x;n(m)},mn=(f,m,x)=>{const{bum:H,scope:T,job:$,subTree:R,um:M,m:P,a:S}=f;Qi(P),Qi(S),H&&yr(H),T.stop(),$&&($.flags|=8,Ve(R,f,m,x)),M&&Le(M,m),Le(()=>{f.isUnmounted=!0},m),m&&m.pendingBranch&&!m.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===m.pendingId&&(m.deps--,m.deps===0&&m.resolve())},ue=(f,m,x,H=!1,T=!1,$=0)=>{for(let R=$;R{if(f.shapeFlag&6)return xo(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const m=p(f.anchor||f.el),x=m&&m[Hl];return x?p(x):m};let st=!1;const le=(f,m,x)=>{f==null?m._vnode&&Ve(m._vnode,null,null,!0):b(m._vnode||null,f,m,null,null,null,x),m._vnode=f,st||(st=!0,ji(),Tl(),st=!1)},vo={p:b,um:Ve,m:Co,r:dr,mt:ae,mc:K,pc:re,pbc:j,n:xo,o:e};return{render:le,hydrate:void 0,createApp:hu(le)}}function wn({type:e,props:o},t){return t==="svg"&&e==="foreignObject"||t==="mathml"&&e==="annotation-xml"&&o&&o.encoding&&o.encoding.includes("html")?void 0:t}function Uo({effect:e,job:o},t){t?(e.flags|=32,o.flags|=4):(e.flags&=-33,o.flags&=-5)}function wu(e,o){return(!e||e&&!e.pendingBranch)&&o&&!o.persisted}function Si(e,o,t=!1){const r=e.children,n=o.children;if(Y(r)&&Y(n))for(let i=0;i>1,e[t[l]]0&&(o[r]=t[i-1]),t[i]=r)}}for(i=t.length,a=t[i-1];i-- >0;)t[i]=a,a=o[a];return t}function es(e){const o=e.subTree.component;if(o)return o.asyncDep&&!o.asyncResolved?o:es(o)}function Qi(e){if(e)for(let o=0;oEe(Tu);function os(e,o){return wi(e,null,o)}function wr(e,o,t){return wi(e,o,t)}function wi(e,o,t=fe){const{immediate:r,deep:n,flush:i,once:a}=t,l=we({},t),s=o&&r||!o&&i!=="post";let c;if(Jt){if(i==="sync"){const g=$u();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!s){const g=()=>{};return g.stop=mo,g.resume=mo,g.pause=mo,g}}const d=De;l.call=(g,h,b)=>ro(g,d,h,b);let u=!1;i==="post"?l.scheduler=g=>{Le(g,d&&d.suspense)}:i!=="sync"&&(u=!0,l.scheduler=(g,h)=>{h?g():xi(g)}),l.augmentJob=g=>{o&&(g.flags|=4),u&&(g.flags|=2,d&&(g.id=d.uid,g.i=d))};const p=Nd(e,o,l);return Jt&&(c?c.push(p):s&&p()),p}function Iu(e,o,t){const r=this.proxy,n=ve(e)?e.includes(".")?ts(r,e):()=>r[e]:e.bind(r,r);let i;X(o)?i=o:(i=o.handler,t=o);const a=tr(this),l=wi(n,i.bind(r),t);return a(),l}function ts(e,o){const t=o.split(".");return()=>{let r=e;for(let n=0;no==="modelValue"||o==="model-value"?e.modelModifiers:e[`${o}Modifiers`]||e[`${Oo(o)}Modifiers`]||e[`${nt(o)}Modifiers`];function Fu(e,o,...t){if(e.isUnmounted)return;const r=e.vnode.props||fe;let n=t;const i=o.startsWith("update:"),a=i&&Hu(r,o.slice(7));a&&(a.trim&&(n=t.map(d=>ve(d)?d.trim():d)),a.number&&(n=t.map(Dn)));let l,s=r[l=gn(o)]||r[l=gn(Oo(o))];!s&&i&&(s=r[l=gn(nt(o))]),s&&ro(s,e,6,n);const c=r[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,ro(c,e,6,n)}}function rs(e,o,t=!1){const r=o.emitsCache,n=r.get(e);if(n!==void 0)return n;const i=e.emits;let a={},l=!1;if(!X(e)){const s=c=>{const d=rs(c,o,!0);d&&(l=!0,we(a,d))};!t&&o.mixins.length&&o.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!l?(me(e)&&r.set(e,null),null):(Y(i)?i.forEach(s=>a[s]=null):we(a,i),me(e)&&r.set(e,a),a)}function en(e,o){return!e||!Wr(o)?!1:(o=o.slice(2).replace(/Once$/,""),se(e,o[0].toLowerCase()+o.slice(1))||se(e,nt(o))||se(e,o))}function Xi(e){const{type:o,vnode:t,proxy:r,withProxy:n,propsOptions:[i],slots:a,attrs:l,emit:s,render:c,renderCache:d,props:u,data:p,setupState:g,ctx:h,inheritAttrs:b}=e,y=Ar(e);let C,I;try{if(t.shapeFlag&4){const v=n||r,L=v;C=fo(c.call(L,v,d,u,g,p,h)),I=l}else{const v=o;C=fo(v.length>1?v(u,{attrs:l,slots:a,emit:s}):v(u,null)),I=o.props?l:Au(l)}}catch(v){jt.length=0,Kr(v,e,1),C=_e(Me)}let E=C;if(I&&b!==!1){const v=Object.keys(I),{shapeFlag:L}=E;v.length&&L&7&&(i&&v.some(ai)&&(I=Mu(I,i)),E=Bo(E,I,!1,!0))}return t.dirs&&(E=Bo(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(t.dirs):t.dirs),t.transition&&tt(E,t.transition),C=E,Ar(y),C}const Au=e=>{let o;for(const t in e)(t==="class"||t==="style"||Wr(t))&&((o||(o={}))[t]=e[t]);return o},Mu=(e,o)=>{const t={};for(const r in e)(!ai(r)||!(r.slice(9)in o))&&(t[r]=e[r]);return t};function Du(e,o,t){const{props:r,children:n,component:i}=e,{props:a,children:l,patchFlag:s}=o,c=i.emitsOptions;if(o.dirs||o.transition)return!0;if(t&&s>=0){if(s&1024)return!0;if(s&16)return r?ea(r,a,c):!!a;if(s&8){const d=o.dynamicProps;for(let u=0;ue.__isSuspense;function Eu(e,o){o&&o.pendingBranch?Y(e)?o.effects.push(...e):o.effects.push(e):Gd(e)}const Fe=Symbol.for("v-fgt"),on=Symbol.for("v-txt"),Me=Symbol.for("v-cmt"),Pr=Symbol.for("v-stc"),jt=[];let Ke=null;function Nn(e=!1){jt.push(Ke=e?null:[])}function Ru(){jt.pop(),Ke=jt[jt.length-1]||null}let Yt=1;function oa(e,o=!1){Yt+=e,e<0&&Ke&&o&&(Ke.hasOnce=!0)}function is(e){return e.dynamicChildren=Yt>0?Ke||ft:null,Ru(),Yt>0&&Ke&&Ke.push(e),e}function zv(e,o,t,r,n,i){return is(ls(e,o,t,r,n,i,!0))}function Vn(e,o,t,r,n){return is(_e(e,o,t,r,n,!0))}function xt(e){return e?e.__v_isVNode===!0:!1}function Jo(e,o){return e.type===o.type&&e.key===o.key}const as=({key:e})=>e??null,Tr=({ref:e,ref_key:o,ref_for:t})=>(typeof e=="number"&&(e=""+e),e!=null?ve(e)||Pe(e)||X(e)?{i:Te,r:e,k:o,f:!!t}:e:null);function ls(e,o=null,t=null,r=0,n=null,i=e===Fe?0:1,a=!1,l=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:o,key:o&&as(o),ref:o&&Tr(o),scopeId:Il,slotScopeIds:null,children:t,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:i,patchFlag:r,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:Te};return l?(Pi(s,t),i&128&&e.normalize(s)):t&&(s.shapeFlag|=ve(t)?8:16),Yt>0&&!a&&Ke&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&Ke.push(s),s}const _e=Lu;function Lu(e,o=null,t=null,r=0,n=null,i=!1){if((!e||e===au)&&(e=Me),xt(e)){const l=Bo(e,o,!0);return t&&Pi(l,t),Yt>0&&!i&&Ke&&(l.shapeFlag&6?Ke[Ke.indexOf(e)]=l:Ke.push(l)),l.patchFlag=-2,l}if(Gu(e)&&(e=e.__vccOpts),o){o=ku(o);let{class:l,style:s}=o;l&&!ve(l)&&(o.class=di(l)),me(s)&&(Ci(s)&&!Y(s)&&(s=we({},s)),o.style=ci(s))}const a=ve(e)?1:ns(e)?128:Fl(e)?64:me(e)?4:X(e)?2:0;return ls(e,o,t,r,n,a,i,!0)}function ku(e){return e?Ci(e)||ql(e)?we({},e):e:null}function Bo(e,o,t=!1,r=!1){const{props:n,ref:i,patchFlag:a,children:l,transition:s}=e,c=o?zu(n||{},o):n,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&as(c),ref:o&&o.ref?t&&i?Y(i)?i.concat(Tr(o)):[i,Tr(o)]:Tr(o):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:o&&e.type!==Fe?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Bo(e.ssContent),ssFallback:e.ssFallback&&Bo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&r&&tt(d,s.clone(d)),d}function Un(e=" ",o=0){return _e(on,null,e,o)}function Ov(e,o){const t=_e(Pr,null,e);return t.staticCount=o,t}function Bv(e="",o=!1){return o?(Nn(),Vn(Me,null,e)):_e(Me,null,e)}function fo(e){return e==null||typeof e=="boolean"?_e(Me):Y(e)?_e(Fe,null,e.slice()):xt(e)?Lo(e):_e(on,null,String(e))}function Lo(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Bo(e)}function Pi(e,o){let t=0;const{shapeFlag:r}=e;if(o==null)o=null;else if(Y(o))t=16;else if(typeof o=="object")if(r&65){const n=o.default;n&&(n._c&&(n._d=!1),Pi(e,n()),n._c&&(n._d=!0));return}else{t=32;const n=o._;!n&&!ql(o)?o._ctx=Te:n===3&&Te&&(Te.slots._===1?o._=1:(o._=2,e.patchFlag|=1024))}else X(o)?(o={default:o,_ctx:Te},t=32):(o=String(o),r&64?(t=16,o=[Un(o)]):t=8);e.children=o,e.shapeFlag|=t}function zu(...e){const o={};for(let t=0;tDe||Te;let _r,Gn;{const e=Vr(),o=(t,r)=>{let n;return(n=e[t])||(n=e[t]=[]),n.push(r),i=>{n.length>1?n.forEach(a=>a(i)):n[0](i)}};_r=o("__VUE_INSTANCE_SETTERS__",t=>De=t),Gn=o("__VUE_SSR_SETTERS__",t=>Jt=t)}const tr=e=>{const o=De;return _r(e),e.scope.on(),()=>{e.scope.off(),_r(o)}},ta=()=>{De&&De.scope.off(),_r(null)};function cs(e){return e.vnode.shapeFlag&4}let Jt=!1;function ju(e,o=!1,t=!1){o&&Gn(o);const{props:r,children:n}=e.vnode,i=cs(e);mu(e,r,i,o),xu(e,n,t);const a=i?Nu(e,o):void 0;return o&&Gn(!1),a}function Nu(e,o){const t=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,lu);const{setup:r}=t;if(r){jo();const n=e.setupContext=r.length>1?Uu(e):null,i=tr(e),a=or(r,e,0,[e.props,n]),l=Za(a);if(No(),i(),(l||e.sp)&&!gt(e)&&kl(e),l){if(a.then(ta,ta),o)return a.then(s=>{ra(e,s)}).catch(s=>{Kr(s,e,0)});e.asyncDep=a}else ra(e,a)}else ds(e)}function ra(e,o,t){X(o)?e.type.__ssrInlineRender?e.ssrRender=o:e.render=o:me(o)&&(e.setupState=yl(o)),ds(e)}function ds(e,o,t){const r=e.type;e.render||(e.render=r.render||mo);{const n=tr(e);jo();try{su(e)}finally{No(),n()}}}const Vu={get(e,o){return Ie(e,"get",""),e[o]}};function Uu(e){const o=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,Vu),slots:e.slots,emit:e.emit,expose:o}}function tn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(yl(Ln(e.exposed)),{get(o,t){if(t in o)return o[t];if(t in Wt)return Wt[t](e)},has(o,t){return t in o||t in Wt}})):e.proxy}function Gu(e){return X(e)&&"__vccOpts"in e}const de=(e,o)=>Wd(e,o,Jt);function O(e,o,t){const r=arguments.length;return r===2?me(o)&&!Y(o)?xt(o)?_e(e,null,[o]):_e(e,o):_e(e,null,o):(r>3?t=Array.prototype.slice.call(arguments,2):r===3&&xt(t)&&(t=[t]),_e(e,o,t))}const qu="3.5.13";/**
+**/function or(e,o,t,r){try{return r?e(...r):e()}catch(n){Kr(n,o,t)}}function ro(e,o,t,r){if(X(e)){const n=or(e,o,t,r);return n&&Za(n)&&n.catch(i=>{Kr(i,o,t)}),n}if(Y(e)){const n=[];for(let i=0;i>>1,n=ke[r],i=Gt(n);i=Gt(t)?ke.push(e):ke.splice(Ud(o),0,e),e.flags|=1,Pl()}}function Pl(){Fr||(Fr=Sl.then($l))}function Gd(e){Y(e)?mt.push(...e):Eo&&e.id===-1?Eo.splice(dt+1,0,e):e.flags&1||(mt.push(e),e.flags|=1),Pl()}function ji(e,o,t=uo+1){for(;tGt(t)-Gt(r));if(mt.length=0,Eo){Eo.push(...o);return}for(Eo=o,dt=0;dte.id==null?e.flags&2?-1:1/0:e.id;function $l(e){try{for(uo=0;uo{r._d&&oa(-1);const i=Ar(o);let a;try{a=e(...n)}finally{Ar(i),r._d&&oa(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Rv(e,o){if(Te===null)return e;const t=tn(Te),r=e.dirs||(e.dirs=[]);for(let n=0;ne.__isTeleport,Bt=e=>e&&(e.disabled||e.disabled===""),Ni=e=>e&&(e.defer||e.defer===""),Vi=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ui=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,On=(e,o)=>{const t=e&&e.to;return ve(t)?o?o(t):null:t},Al={name:"Teleport",__isTeleport:!0,process(e,o,t,r,n,i,a,l,s,c){const{mc:d,pc:u,pbc:p,o:{insert:g,querySelector:h,createText:b,createComment:y}}=c,C=Bt(o.props);let{shapeFlag:I,children:E,dynamicChildren:v}=o;if(e==null){const L=o.el=b(""),W=o.anchor=b("");g(L,t,r),g(W,t,r);const w=(D,j)=>{I&16&&(n&&n.isCE&&(n.ce._teleportTarget=D),d(E,D,j,n,i,a,l,s))},K=()=>{const D=o.target=On(o.props,h),j=Ml(D,o,b,g);D&&(a!=="svg"&&Vi(D)?a="svg":a!=="mathml"&&Ui(D)&&(a="mathml"),C||(w(D,j),Sr(o,!1)))};C&&(w(t,W),Sr(o,!0)),Ni(o.props)?Le(()=>{K(),o.el.__isMounted=!0},i):K()}else{if(Ni(o.props)&&!e.el.__isMounted){Le(()=>{Al.process(e,o,t,r,n,i,a,l,s,c),delete e.el.__isMounted},i);return}o.el=e.el,o.targetStart=e.targetStart;const L=o.anchor=e.anchor,W=o.target=e.target,w=o.targetAnchor=e.targetAnchor,K=Bt(e.props),D=K?t:W,j=K?L:w;if(a==="svg"||Vi(W)?a="svg":(a==="mathml"||Ui(W))&&(a="mathml"),v?(p(e.dynamicChildren,v,D,n,i,a,l),Si(e,o,!0)):s||u(e,o,D,j,n,i,a,l,!1),C)K?o.props&&e.props&&o.props.to!==e.props.to&&(o.props.to=e.props.to):mr(o,t,L,c,1);else if((o.props&&o.props.to)!==(e.props&&e.props.to)){const q=o.target=On(o.props,h);q&&mr(o,q,null,c,0)}else K&&mr(o,W,w,c,1);Sr(o,C)}},remove(e,o,t,{um:r,o:{remove:n}},i){const{shapeFlag:a,children:l,anchor:s,targetStart:c,targetAnchor:d,target:u,props:p}=e;if(u&&(n(c),n(d)),i&&n(s),a&16){const g=i||!Bt(p);for(let h=0;h{e.isMounted=!0}),Xr(()=>{e.isUnmounting=!0}),e}const Qe=[Function,Array],_l={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Qe,onEnter:Qe,onAfterEnter:Qe,onEnterCancelled:Qe,onBeforeLeave:Qe,onLeave:Qe,onAfterLeave:Qe,onLeaveCancelled:Qe,onBeforeAppear:Qe,onAppear:Qe,onAfterAppear:Qe,onAppearCancelled:Qe},El=e=>{const o=e.subTree;return o.component?El(o.component):o},Jd={name:"BaseTransition",props:_l,setup(e,{slots:o}){const t=ss(),r=Dl();return()=>{const n=o.default&&vi(o.default(),!0);if(!n||!n.length)return;const i=Rl(n),a=ie(e),{mode:l}=a;if(r.isLeaving)return yn(i);const s=Gi(i);if(!s)return yn(i);let c=qt(s,a,r,t,u=>c=u);s.type!==Me&&tt(s,c);let d=t.subTree&&Gi(t.subTree);if(d&&d.type!==Me&&!Jo(s,d)&&El(t).type!==Me){let u=qt(d,a,r,t);if(tt(d,u),l==="out-in"&&s.type!==Me)return r.isLeaving=!0,u.afterLeave=()=>{r.isLeaving=!1,t.job.flags&8||t.update(),delete u.afterLeave,d=void 0},yn(i);l==="in-out"&&s.type!==Me?u.delayLeave=(p,g,h)=>{const b=Ll(r,d);b[String(d.key)]=d,p[Ro]=()=>{g(),p[Ro]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{h(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return i}}};function Rl(e){let o=e[0];if(e.length>1){for(const t of e)if(t.type!==Me){o=t;break}}return o}const Zd=Jd;function Ll(e,o){const{leavingVNodes:t}=e;let r=t.get(o.type);return r||(r=Object.create(null),t.set(o.type,r)),r}function qt(e,o,t,r,n){const{appear:i,mode:a,persisted:l=!1,onBeforeEnter:s,onEnter:c,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:p,onLeave:g,onAfterLeave:h,onLeaveCancelled:b,onBeforeAppear:y,onAppear:C,onAfterAppear:I,onAppearCancelled:E}=o,v=String(e.key),L=Ll(t,e),W=(D,j)=>{D&&ro(D,r,9,j)},w=(D,j)=>{const q=j[1];W(D,j),Y(D)?D.every(F=>F.length<=1)&&q():D.length<=1&&q()},K={mode:a,persisted:l,beforeEnter(D){let j=s;if(!t.isMounted)if(i)j=y||s;else return;D[Ro]&&D[Ro](!0);const q=L[v];q&&Jo(e,q)&&q.el[Ro]&&q.el[Ro](),W(j,[D])},enter(D){let j=c,q=d,F=u;if(!t.isMounted)if(i)j=C||c,q=I||d,F=E||u;else return;let ee=!1;const ae=D[gr]=xe=>{ee||(ee=!0,xe?W(F,[D]):W(q,[D]),K.delayedLeave&&K.delayedLeave(),D[gr]=void 0)};j?w(j,[D,ae]):ae()},leave(D,j){const q=String(e.key);if(D[gr]&&D[gr](!0),t.isUnmounting)return j();W(p,[D]);let F=!1;const ee=D[Ro]=ae=>{F||(F=!0,j(),ae?W(b,[D]):W(h,[D]),D[Ro]=void 0,L[q]===e&&delete L[q])};L[q]=e,g?w(g,[D,ee]):ee()},clone(D){const j=qt(D,o,t,r,n);return n&&n(j),j}};return K}function yn(e){if(Yr(e))return e=Bo(e),e.children=null,e}function Gi(e){if(!Yr(e))return Fl(e.type)&&e.children?Rl(e.children):e;const{shapeFlag:o,children:t}=e;if(t){if(o&16)return t[0];if(o&32&&X(t.default))return t.default()}}function tt(e,o){e.shapeFlag&6&&e.component?(e.transition=o,tt(e.component.subTree,o)):e.shapeFlag&128?(e.ssContent.transition=o.clone(e.ssContent),e.ssFallback.transition=o.clone(e.ssFallback)):e.transition=o}function vi(e,o=!1,t){let r=[],n=0;for(let i=0;i1)for(let i=0;iMr(h,o&&(Y(o)?o[b]:o),t,r,n));return}if(gt(r)&&!n){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Mr(e,o,t,r.component.subTree);return}const i=r.shapeFlag&4?tn(r.component):r.el,a=n?null:i,{i:l,r:s}=e,c=o&&o.r,d=l.refs===fe?l.refs={}:l.refs,u=l.setupState,p=ie(u),g=u===fe?()=>!1:h=>se(p,h);if(c!=null&&c!==s&&(ve(c)?(d[c]=null,g(c)&&(u[c]=null)):Pe(c)&&(c.value=null)),X(s))or(s,l,12,[a,d]);else{const h=ve(s),b=Pe(s);if(h||b){const y=()=>{if(e.f){const C=h?g(s)?u[s]:d[s]:s.value;n?Y(C)&&li(C,i):Y(C)?C.includes(i)||C.push(i):h?(d[s]=[i],g(s)&&(u[s]=d[s])):(s.value=[i],e.k&&(d[e.k]=s.value))}else h?(d[s]=a,g(s)&&(u[s]=a)):b&&(s.value=a,e.k&&(d[e.k]=a))};a?(y.id=-1,Le(y,t)):y()}}}Vr().requestIdleCallback;Vr().cancelIdleCallback;const gt=e=>!!e.type.__asyncLoader,Yr=e=>e.type.__isKeepAlive;function Qd(e,o){Ol(e,"a",o)}function Xd(e,o){Ol(e,"da",o)}function Ol(e,o,t=De){const r=e.__wdc||(e.__wdc=()=>{let n=t;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(Jr(o,r,t),t){let n=t.parent;for(;n&&n.parent;)Yr(n.parent.vnode)&&eu(r,o,t,n),n=n.parent}}function eu(e,o,t,r){const n=Jr(o,e,r,!0);Bl(()=>{li(r[o],n)},t)}function Jr(e,o,t=De,r=!1){if(t){const n=t[e]||(t[e]=[]),i=o.__weh||(o.__weh=(...a)=>{jo();const l=tr(t),s=ro(o,t,e,a);return l(),No(),s});return r?n.unshift(i):n.push(i),i}}const Fo=e=>(o,t=De)=>{(!Jt||e==="sp")&&Jr(e,(...r)=>o(...r),t)},Zr=Fo("bm"),Qr=Fo("m"),ou=Fo("bu"),zl=Fo("u"),Xr=Fo("bum"),Bl=Fo("um"),tu=Fo("sp"),ru=Fo("rtg"),nu=Fo("rtc");function iu(e,o=De){Jr("ec",e,o)}const au=Symbol.for("v-ndc");function Lv(e,o,t,r){let n;const i=t,a=Y(e);if(a||ve(e)){const l=a&&ht(e);let s=!1;l&&(s=!Xe(e),e=Ur(e)),n=new Array(e.length);for(let c=0,d=e.length;co(l,s,void 0,i));else{const l=Object.keys(e);n=new Array(l.length);for(let s=0,c=l.length;sxt(o)?!(o.type===Me||o.type===Fe&&!Wl(o.children)):!0)?e:null}const zn=e=>e?cs(e)?tn(e):zn(e.parent):null,Wt=we(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=>zn(e.parent),$root:e=>zn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Nl(e),$forceUpdate:e=>e.f||(e.f=()=>{xi(e.update)}),$nextTick:e=>e.n||(e.n=wl.bind(e.proxy)),$watch:e=>Iu.bind(e)}),Sn=(e,o)=>e!==fe&&!e.__isScriptSetup&&se(e,o),lu={get({_:e},o){if(o==="__v_skip")return!0;const{ctx:t,setupState:r,data:n,props:i,accessCache:a,type:l,appContext:s}=e;let c;if(o[0]!=="$"){const g=a[o];if(g!==void 0)switch(g){case 1:return r[o];case 2:return n[o];case 4:return t[o];case 3:return i[o]}else{if(Sn(r,o))return a[o]=1,r[o];if(n!==fe&&se(n,o))return a[o]=2,n[o];if((c=e.propsOptions[0])&&se(c,o))return a[o]=3,i[o];if(t!==fe&&se(t,o))return a[o]=4,t[o];Bn&&(a[o]=0)}}const d=Wt[o];let u,p;if(d)return o==="$attrs"&&Ie(e.attrs,"get",""),d(e);if((u=l.__cssModules)&&(u=u[o]))return u;if(t!==fe&&se(t,o))return a[o]=4,t[o];if(p=s.config.globalProperties,se(p,o))return p[o]},set({_:e},o,t){const{data:r,setupState:n,ctx:i}=e;return Sn(n,o)?(n[o]=t,!0):r!==fe&&se(r,o)?(r[o]=t,!0):se(e.props,o)||o[0]==="$"&&o.slice(1)in e?!1:(i[o]=t,!0)},has({_:{data:e,setupState:o,accessCache:t,ctx:r,appContext:n,propsOptions:i}},a){let l;return!!t[a]||e!==fe&&se(e,a)||Sn(o,a)||(l=i[0])&&se(l,a)||se(r,a)||se(Wt,a)||se(n.config.globalProperties,a)},defineProperty(e,o,t){return t.get!=null?e._.accessCache[o]=0:se(t,"value")&&this.set(e,o,t.value,null),Reflect.defineProperty(e,o,t)}};function qi(e){return Y(e)?e.reduce((o,t)=>(o[t]=null,o),{}):e}let Bn=!0;function su(e){const o=Nl(e),t=e.proxy,r=e.ctx;Bn=!1,o.beforeCreate&&Ki(o.beforeCreate,e,"bc");const{data:n,computed:i,methods:a,watch:l,provide:s,inject:c,created:d,beforeMount:u,mounted:p,beforeUpdate:g,updated:h,activated:b,deactivated:y,beforeDestroy:C,beforeUnmount:I,destroyed:E,unmounted:v,render:L,renderTracked:W,renderTriggered:w,errorCaptured:K,serverPrefetch:D,expose:j,inheritAttrs:q,components:F,directives:ee,filters:ae}=o;if(c&&cu(c,r,null),a)for(const V in a){const re=a[V];X(re)&&(r[V]=re.bind(t))}if(n){const V=n.call(t,t);me(V)&&(e.data=Gr(V))}if(Bn=!0,i)for(const V in i){const re=i[V],Ne=X(re)?re.bind(t,t):X(re.get)?re.get.bind(t,t):mo,Ze=!X(re)&&X(re.set)?re.set.bind(t):mo,Co=de({get:Ne,set:Ze});Object.defineProperty(r,V,{enumerable:!0,configurable:!0,get:()=>Co.value,set:Ve=>Co.value=Ve})}if(l)for(const V in l)jl(l[V],r,t,V);if(s){const V=X(s)?s.call(t):s;Reflect.ownKeys(V).forEach(re=>{Kt(re,V[re])})}d&&Ki(d,e,"c");function oe(V,re){Y(re)?re.forEach(Ne=>V(Ne.bind(t))):re&&V(re.bind(t))}if(oe(Zr,u),oe(Qr,p),oe(ou,g),oe(zl,h),oe(Qd,b),oe(Xd,y),oe(iu,K),oe(nu,W),oe(ru,w),oe(Xr,I),oe(Bl,v),oe(tu,D),Y(j))if(j.length){const V=e.exposed||(e.exposed={});j.forEach(re=>{Object.defineProperty(V,re,{get:()=>t[re],set:Ne=>t[re]=Ne})})}else e.exposed||(e.exposed={});L&&e.render===mo&&(e.render=L),q!=null&&(e.inheritAttrs=q),F&&(e.components=F),ee&&(e.directives=ee),D&&kl(e)}function cu(e,o,t=mo){Y(e)&&(e=Wn(e));for(const r in e){const n=e[r];let i;me(n)?"default"in n?i=Ee(n.from||r,n.default,!0):i=Ee(n.from||r):i=Ee(n),Pe(i)?Object.defineProperty(o,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):o[r]=i}}function Ki(e,o,t){ro(Y(e)?e.map(r=>r.bind(o.proxy)):e.bind(o.proxy),o,t)}function jl(e,o,t,r){let n=r.includes(".")?ts(t,r):()=>t[r];if(ve(e)){const i=o[e];X(i)&&wr(n,i)}else if(X(e))wr(n,e.bind(t));else if(me(e))if(Y(e))e.forEach(i=>jl(i,o,t,r));else{const i=X(e.handler)?e.handler.bind(t):o[e.handler];X(i)&&wr(n,i,e)}}function Nl(e){const o=e.type,{mixins:t,extends:r}=o,{mixins:n,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,l=i.get(o);let s;return l?s=l:!n.length&&!t&&!r?s=o:(s={},n.length&&n.forEach(c=>Dr(s,c,a,!0)),Dr(s,o,a)),me(o)&&i.set(o,s),s}function Dr(e,o,t,r=!1){const{mixins:n,extends:i}=o;i&&Dr(e,i,t,!0),n&&n.forEach(a=>Dr(e,a,t,!0));for(const a in o)if(!(r&&a==="expose")){const l=du[a]||t&&t[a];e[a]=l?l(e[a],o[a]):o[a]}return e}const du={data:Yi,props:Ji,emits:Ji,methods:Rt,computed:Rt,beforeCreate:Re,created:Re,beforeMount:Re,mounted:Re,beforeUpdate:Re,updated:Re,beforeDestroy:Re,beforeUnmount:Re,destroyed:Re,unmounted:Re,activated:Re,deactivated:Re,errorCaptured:Re,serverPrefetch:Re,components:Rt,directives:Rt,watch:fu,provide:Yi,inject:uu};function Yi(e,o){return o?e?function(){return we(X(e)?e.call(this,this):e,X(o)?o.call(this,this):o)}:o:e}function uu(e,o){return Rt(Wn(e),Wn(o))}function Wn(e){if(Y(e)){const o={};for(let t=0;t1)return t&&X(o)?o.call(r&&r.proxy):o}}const Ul={},Gl=()=>Object.create(Ul),ql=e=>Object.getPrototypeOf(e)===Ul;function mu(e,o,t,r=!1){const n={},i=Gl();e.propsDefaults=Object.create(null),Kl(e,o,n,i);for(const a in e.propsOptions[0])a in n||(n[a]=void 0);t?e.props=r?n:_d(n):e.type.props?e.props=n:e.props=i,e.attrs=i}function gu(e,o,t,r){const{props:n,attrs:i,vnode:{patchFlag:a}}=e,l=ie(n),[s]=e.propsOptions;let c=!1;if((r||a>0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let u=0;u{s=!0;const[p,g]=Yl(u,o,!0);we(a,p),g&&l.push(...g)};!t&&o.mixins.length&&o.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!s)return me(e)&&r.set(e,ft),ft;if(Y(i))for(let d=0;de[0]==="_"||e==="$stable",yi=e=>Y(e)?e.map(fo):[fo(e)],Cu=(e,o,t)=>{if(o._n)return o;const r=qd((...n)=>yi(o(...n)),t);return r._c=!1,r},Zl=(e,o,t)=>{const r=e._ctx;for(const n in e){if(Jl(n))continue;const i=e[n];if(X(i))o[n]=Cu(n,i,r);else if(i!=null){const a=yi(i);o[n]=()=>a}}},Ql=(e,o)=>{const t=yi(o);e.slots.default=()=>t},Xl=(e,o,t)=>{for(const r in o)(t||r!=="_")&&(e[r]=o[r])},xu=(e,o,t)=>{const r=e.slots=Gl();if(e.vnode.shapeFlag&32){const n=o._;n?(Xl(r,o,t),t&&ol(r,"_",n,!0)):Zl(o,r)}else o&&Ql(e,o)},vu=(e,o,t)=>{const{vnode:r,slots:n}=e;let i=!0,a=fe;if(r.shapeFlag&32){const l=o._;l?t&&l===1?i=!1:Xl(n,o,t):(i=!o.$stable,Zl(o,n)),a=o}else o&&(Ql(e,o),a={default:1});if(i)for(const l in n)!Jl(l)&&a[l]==null&&delete n[l]},Le=Eu;function yu(e){return Su(e)}function Su(e,o){const t=Vr();t.__VUE__=!0;const{insert:r,remove:n,patchProp:i,createElement:a,createText:l,createComment:s,setText:c,setElementText:d,parentNode:u,nextSibling:p,setScopeId:g=mo,insertStaticContent:h}=e,b=(f,m,x,H=null,T=null,$=null,R=void 0,M=null,P=!!m.dynamicChildren)=>{if(f===m)return;f&&!Jo(f,m)&&(H=xo(f),Ve(f,T,$,!0),f=null),m.patchFlag===-2&&(P=!1,m.dynamicChildren=null);const{type:S,ref:N,shapeFlag:O}=m;switch(S){case on:y(f,m,x,H);break;case Me:C(f,m,x,H);break;case Pr:f==null&&I(m,x,H,R);break;case Fe:F(f,m,x,H,T,$,R,M,P);break;default:O&1?L(f,m,x,H,T,$,R,M,P):O&6?ee(f,m,x,H,T,$,R,M,P):(O&64||O&128)&&S.process(f,m,x,H,T,$,R,M,P,vo)}N!=null&&T&&Mr(N,f&&f.ref,$,m||f,!m)},y=(f,m,x,H)=>{if(f==null)r(m.el=l(m.children),x,H);else{const T=m.el=f.el;m.children!==f.children&&c(T,m.children)}},C=(f,m,x,H)=>{f==null?r(m.el=s(m.children||""),x,H):m.el=f.el},I=(f,m,x,H)=>{[f.el,f.anchor]=h(f.children,m,x,H,f.el,f.anchor)},E=({el:f,anchor:m},x,H)=>{let T;for(;f&&f!==m;)T=p(f),r(f,x,H),f=T;r(m,x,H)},v=({el:f,anchor:m})=>{let x;for(;f&&f!==m;)x=p(f),n(f),f=x;n(m)},L=(f,m,x,H,T,$,R,M,P)=>{m.type==="svg"?R="svg":m.type==="math"&&(R="mathml"),f==null?W(m,x,H,T,$,R,M,P):D(f,m,T,$,R,M,P)},W=(f,m,x,H,T,$,R,M)=>{let P,S;const{props:N,shapeFlag:O,transition:G,dirs:J}=f;if(P=f.el=a(f.type,$,N&&N.is,N),O&8?d(P,f.children):O&16&&K(f.children,P,null,H,T,wn(f,$),R,M),J&&Vo(f,null,H,"created"),w(P,f,f.scopeId,R,H),N){for(const pe in N)pe!=="value"&&!kt(pe)&&i(P,pe,null,N[pe],$,H);"value"in N&&i(P,"value",null,N.value,$),(S=N.onVnodeBeforeMount)&&lo(S,H,f)}J&&Vo(f,null,H,"beforeMount");const te=wu(T,G);te&&G.beforeEnter(P),r(P,m,x),((S=N&&N.onVnodeMounted)||te||J)&&Le(()=>{S&&lo(S,H,f),te&&G.enter(P),J&&Vo(f,null,H,"mounted")},T)},w=(f,m,x,H,T)=>{if(x&&g(f,x),H)for(let $=0;${for(let S=P;S{const M=m.el=f.el;let{patchFlag:P,dynamicChildren:S,dirs:N}=m;P|=f.patchFlag&16;const O=f.props||fe,G=m.props||fe;let J;if(x&&Uo(x,!1),(J=G.onVnodeBeforeUpdate)&&lo(J,x,m,f),N&&Vo(m,f,x,"beforeUpdate"),x&&Uo(x,!0),(O.innerHTML&&G.innerHTML==null||O.textContent&&G.textContent==null)&&d(M,""),S?j(f.dynamicChildren,S,M,x,H,wn(m,T),$):R||re(f,m,M,null,x,H,wn(m,T),$,!1),P>0){if(P&16)q(M,O,G,x,T);else if(P&2&&O.class!==G.class&&i(M,"class",null,G.class,T),P&4&&i(M,"style",O.style,G.style,T),P&8){const te=m.dynamicProps;for(let pe=0;pe{J&&lo(J,x,m,f),N&&Vo(m,f,x,"updated")},H)},j=(f,m,x,H,T,$,R)=>{for(let M=0;M{if(m!==x){if(m!==fe)for(const $ in m)!kt($)&&!($ in x)&&i(f,$,m[$],null,T,H);for(const $ in x){if(kt($))continue;const R=x[$],M=m[$];R!==M&&$!=="value"&&i(f,$,M,R,T,H)}"value"in x&&i(f,"value",m.value,x.value,T)}},F=(f,m,x,H,T,$,R,M,P)=>{const S=m.el=f?f.el:l(""),N=m.anchor=f?f.anchor:l("");let{patchFlag:O,dynamicChildren:G,slotScopeIds:J}=m;J&&(M=M?M.concat(J):J),f==null?(r(S,x,H),r(N,x,H),K(m.children||[],x,N,T,$,R,M,P)):O>0&&O&64&&G&&f.dynamicChildren?(j(f.dynamicChildren,G,x,T,$,R,M),(m.key!=null||T&&m===T.subTree)&&Si(f,m,!0)):re(f,m,x,N,T,$,R,M,P)},ee=(f,m,x,H,T,$,R,M,P)=>{m.slotScopeIds=M,f==null?m.shapeFlag&512?T.ctx.activate(m,x,H,R,P):ae(m,x,H,T,$,R,P):xe(f,m,P)},ae=(f,m,x,H,T,$,R)=>{const M=f.component=Wu(f,H,T);if(Yr(f)&&(M.ctx.renderer=vo),ju(M,!1,R),M.asyncDep){if(T&&T.registerDep(M,oe,R),!f.el){const P=M.subTree=_e(Me);C(null,P,m,x)}}else oe(M,f,m,x,T,$,R)},xe=(f,m,x)=>{const H=m.component=f.component;if(Du(f,m,x))if(H.asyncDep&&!H.asyncResolved){V(H,m,x);return}else H.next=m,H.update();else m.el=f.el,H.vnode=m},oe=(f,m,x,H,T,$,R)=>{const M=()=>{if(f.isMounted){let{next:O,bu:G,u:J,parent:te,vnode:pe}=f;{const io=es(f);if(io){O&&(O.el=pe.el,V(f,O,R)),io.asyncDep.then(()=>{f.isUnmounted||M()});return}}let ce=O,Ue;Uo(f,!1),O?(O.el=pe.el,V(f,O,R)):O=pe,G&&yr(G),(Ue=O.props&&O.props.onVnodeBeforeUpdate)&&lo(Ue,te,O,pe),Uo(f,!0);const Oe=Xi(f),no=f.subTree;f.subTree=Oe,b(no,Oe,u(no.el),xo(no),f,T,$),O.el=Oe.el,ce===null&&_u(f,Oe.el),J&&Le(J,T),(Ue=O.props&&O.props.onVnodeUpdated)&&Le(()=>lo(Ue,te,O,pe),T)}else{let O;const{el:G,props:J}=m,{bm:te,m:pe,parent:ce,root:Ue,type:Oe}=f,no=gt(m);Uo(f,!1),te&&yr(te),!no&&(O=J&&J.onVnodeBeforeMount)&&lo(O,ce,m),Uo(f,!0);{Ue.ce&&Ue.ce._injectChildStyle(Oe);const io=f.subTree=Xi(f);b(null,io,x,H,f,T,$),m.el=io.el}if(pe&&Le(pe,T),!no&&(O=J&&J.onVnodeMounted)){const io=m;Le(()=>lo(O,ce,io),T)}(m.shapeFlag&256||ce&>(ce.vnode)&&ce.vnode.shapeFlag&256)&&f.a&&Le(f.a,T),f.isMounted=!0,m=x=H=null}};f.scope.on();const P=f.effect=new il(M);f.scope.off();const S=f.update=P.run.bind(P),N=f.job=P.runIfDirty.bind(P);N.i=f,N.id=f.uid,P.scheduler=()=>xi(N),Uo(f,!0),S()},V=(f,m,x)=>{m.component=f;const H=f.vnode.props;f.vnode=m,f.next=null,gu(f,m.props,H,x),vu(f,m.children,x),jo(),ji(f),No()},re=(f,m,x,H,T,$,R,M,P=!1)=>{const S=f&&f.children,N=f?f.shapeFlag:0,O=m.children,{patchFlag:G,shapeFlag:J}=m;if(G>0){if(G&128){Ze(S,O,x,H,T,$,R,M,P);return}else if(G&256){Ne(S,O,x,H,T,$,R,M,P);return}}J&8?(N&16&&ue(S,T,$),O!==S&&d(x,O)):N&16?J&16?Ze(S,O,x,H,T,$,R,M,P):ue(S,T,$,!0):(N&8&&d(x,""),J&16&&K(O,x,H,T,$,R,M,P))},Ne=(f,m,x,H,T,$,R,M,P)=>{f=f||ft,m=m||ft;const S=f.length,N=m.length,O=Math.min(S,N);let G;for(G=0;GN?ue(f,T,$,!0,!1,O):K(m,x,H,T,$,R,M,P,O)},Ze=(f,m,x,H,T,$,R,M,P)=>{let S=0;const N=m.length;let O=f.length-1,G=N-1;for(;S<=O&&S<=G;){const J=f[S],te=m[S]=P?Lo(m[S]):fo(m[S]);if(Jo(J,te))b(J,te,x,null,T,$,R,M,P);else break;S++}for(;S<=O&&S<=G;){const J=f[O],te=m[G]=P?Lo(m[G]):fo(m[G]);if(Jo(J,te))b(J,te,x,null,T,$,R,M,P);else break;O--,G--}if(S>O){if(S<=G){const J=G+1,te=JG)for(;S<=O;)Ve(f[S],T,$,!0),S++;else{const J=S,te=S,pe=new Map;for(S=te;S<=G;S++){const Ge=m[S]=P?Lo(m[S]):fo(m[S]);Ge.key!=null&&pe.set(Ge.key,S)}let ce,Ue=0;const Oe=G-te+1;let no=!1,io=0;const Ft=new Array(Oe);for(S=0;S=Oe){Ve(Ge,T,$,!0);continue}let ao;if(Ge.key!=null)ao=pe.get(Ge.key);else for(ce=te;ce<=G;ce++)if(Ft[ce-te]===0&&Jo(Ge,m[ce])){ao=ce;break}ao===void 0?Ve(Ge,T,$,!0):(Ft[ao-te]=S+1,ao>=io?io=ao:no=!0,b(Ge,m[ao],x,null,T,$,R,M,P),Ue++)}const ki=no?Pu(Ft):ft;for(ce=ki.length-1,S=Oe-1;S>=0;S--){const Ge=te+S,ao=m[Ge],Oi=Ge+1{const{el:$,type:R,transition:M,children:P,shapeFlag:S}=f;if(S&6){Co(f.component.subTree,m,x,H);return}if(S&128){f.suspense.move(m,x,H);return}if(S&64){R.move(f,m,x,vo);return}if(R===Fe){r($,m,x);for(let O=0;OM.enter($),T);else{const{leave:O,delayLeave:G,afterLeave:J}=M,te=()=>r($,m,x),pe=()=>{O($,()=>{te(),J&&J()})};G?G($,te,pe):pe()}else r($,m,x)},Ve=(f,m,x,H=!1,T=!1)=>{const{type:$,props:R,ref:M,children:P,dynamicChildren:S,shapeFlag:N,patchFlag:O,dirs:G,cacheIndex:J}=f;if(O===-2&&(T=!1),M!=null&&Mr(M,null,x,f,!0),J!=null&&(m.renderCache[J]=void 0),N&256){m.ctx.deactivate(f);return}const te=N&1&&G,pe=!gt(f);let ce;if(pe&&(ce=R&&R.onVnodeBeforeUnmount)&&lo(ce,m,f),N&6)mn(f.component,x,H);else{if(N&128){f.suspense.unmount(x,H);return}te&&Vo(f,null,m,"beforeUnmount"),N&64?f.type.remove(f,m,x,vo,H):S&&!S.hasOnce&&($!==Fe||O>0&&O&64)?ue(S,m,x,!1,!0):($===Fe&&O&384||!T&&N&16)&&ue(P,m,x),H&&dr(f)}(pe&&(ce=R&&R.onVnodeUnmounted)||te)&&Le(()=>{ce&&lo(ce,m,f),te&&Vo(f,null,m,"unmounted")},x)},dr=f=>{const{type:m,el:x,anchor:H,transition:T}=f;if(m===Fe){hn(x,H);return}if(m===Pr){v(f);return}const $=()=>{n(x),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(f.shapeFlag&1&&T&&!T.persisted){const{leave:R,delayLeave:M}=T,P=()=>R(x,$);M?M(f.el,$,P):P()}else $()},hn=(f,m)=>{let x;for(;f!==m;)x=p(f),n(f),f=x;n(m)},mn=(f,m,x)=>{const{bum:H,scope:T,job:$,subTree:R,um:M,m:P,a:S}=f;Qi(P),Qi(S),H&&yr(H),T.stop(),$&&($.flags|=8,Ve(R,f,m,x)),M&&Le(M,m),Le(()=>{f.isUnmounted=!0},m),m&&m.pendingBranch&&!m.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===m.pendingId&&(m.deps--,m.deps===0&&m.resolve())},ue=(f,m,x,H=!1,T=!1,$=0)=>{for(let R=$;R{if(f.shapeFlag&6)return xo(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const m=p(f.anchor||f.el),x=m&&m[Hl];return x?p(x):m};let st=!1;const le=(f,m,x)=>{f==null?m._vnode&&Ve(m._vnode,null,null,!0):b(m._vnode||null,f,m,null,null,null,x),m._vnode=f,st||(st=!0,ji(),Tl(),st=!1)},vo={p:b,um:Ve,m:Co,r:dr,mt:ae,mc:K,pc:re,pbc:j,n:xo,o:e};return{render:le,hydrate:void 0,createApp:hu(le)}}function wn({type:e,props:o},t){return t==="svg"&&e==="foreignObject"||t==="mathml"&&e==="annotation-xml"&&o&&o.encoding&&o.encoding.includes("html")?void 0:t}function Uo({effect:e,job:o},t){t?(e.flags|=32,o.flags|=4):(e.flags&=-33,o.flags&=-5)}function wu(e,o){return(!e||e&&!e.pendingBranch)&&o&&!o.persisted}function Si(e,o,t=!1){const r=e.children,n=o.children;if(Y(r)&&Y(n))for(let i=0;i>1,e[t[l]]0&&(o[r]=t[i-1]),t[i]=r)}}for(i=t.length,a=t[i-1];i-- >0;)t[i]=a,a=o[a];return t}function es(e){const o=e.subTree.component;if(o)return o.asyncDep&&!o.asyncResolved?o:es(o)}function Qi(e){if(e)for(let o=0;oEe(Tu);function os(e,o){return wi(e,null,o)}function wr(e,o,t){return wi(e,o,t)}function wi(e,o,t=fe){const{immediate:r,deep:n,flush:i,once:a}=t,l=we({},t),s=o&&r||!o&&i!=="post";let c;if(Jt){if(i==="sync"){const g=$u();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!s){const g=()=>{};return g.stop=mo,g.resume=mo,g.pause=mo,g}}const d=De;l.call=(g,h,b)=>ro(g,d,h,b);let u=!1;i==="post"?l.scheduler=g=>{Le(g,d&&d.suspense)}:i!=="sync"&&(u=!0,l.scheduler=(g,h)=>{h?g():xi(g)}),l.augmentJob=g=>{o&&(g.flags|=4),u&&(g.flags|=2,d&&(g.id=d.uid,g.i=d))};const p=Nd(e,o,l);return Jt&&(c?c.push(p):s&&p()),p}function Iu(e,o,t){const r=this.proxy,n=ve(e)?e.includes(".")?ts(r,e):()=>r[e]:e.bind(r,r);let i;X(o)?i=o:(i=o.handler,t=o);const a=tr(this),l=wi(n,i.bind(r),t);return a(),l}function ts(e,o){const t=o.split(".");return()=>{let r=e;for(let n=0;no==="modelValue"||o==="model-value"?e.modelModifiers:e[`${o}Modifiers`]||e[`${zo(o)}Modifiers`]||e[`${nt(o)}Modifiers`];function Fu(e,o,...t){if(e.isUnmounted)return;const r=e.vnode.props||fe;let n=t;const i=o.startsWith("update:"),a=i&&Hu(r,o.slice(7));a&&(a.trim&&(n=t.map(d=>ve(d)?d.trim():d)),a.number&&(n=t.map(Dn)));let l,s=r[l=gn(o)]||r[l=gn(zo(o))];!s&&i&&(s=r[l=gn(nt(o))]),s&&ro(s,e,6,n);const c=r[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,ro(c,e,6,n)}}function rs(e,o,t=!1){const r=o.emitsCache,n=r.get(e);if(n!==void 0)return n;const i=e.emits;let a={},l=!1;if(!X(e)){const s=c=>{const d=rs(c,o,!0);d&&(l=!0,we(a,d))};!t&&o.mixins.length&&o.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!l?(me(e)&&r.set(e,null),null):(Y(i)?i.forEach(s=>a[s]=null):we(a,i),me(e)&&r.set(e,a),a)}function en(e,o){return!e||!Wr(o)?!1:(o=o.slice(2).replace(/Once$/,""),se(e,o[0].toLowerCase()+o.slice(1))||se(e,nt(o))||se(e,o))}function Xi(e){const{type:o,vnode:t,proxy:r,withProxy:n,propsOptions:[i],slots:a,attrs:l,emit:s,render:c,renderCache:d,props:u,data:p,setupState:g,ctx:h,inheritAttrs:b}=e,y=Ar(e);let C,I;try{if(t.shapeFlag&4){const v=n||r,L=v;C=fo(c.call(L,v,d,u,g,p,h)),I=l}else{const v=o;C=fo(v.length>1?v(u,{attrs:l,slots:a,emit:s}):v(u,null)),I=o.props?l:Au(l)}}catch(v){jt.length=0,Kr(v,e,1),C=_e(Me)}let E=C;if(I&&b!==!1){const v=Object.keys(I),{shapeFlag:L}=E;v.length&&L&7&&(i&&v.some(ai)&&(I=Mu(I,i)),E=Bo(E,I,!1,!0))}return t.dirs&&(E=Bo(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(t.dirs):t.dirs),t.transition&&tt(E,t.transition),C=E,Ar(y),C}const Au=e=>{let o;for(const t in e)(t==="class"||t==="style"||Wr(t))&&((o||(o={}))[t]=e[t]);return o},Mu=(e,o)=>{const t={};for(const r in e)(!ai(r)||!(r.slice(9)in o))&&(t[r]=e[r]);return t};function Du(e,o,t){const{props:r,children:n,component:i}=e,{props:a,children:l,patchFlag:s}=o,c=i.emitsOptions;if(o.dirs||o.transition)return!0;if(t&&s>=0){if(s&1024)return!0;if(s&16)return r?ea(r,a,c):!!a;if(s&8){const d=o.dynamicProps;for(let u=0;ue.__isSuspense;function Eu(e,o){o&&o.pendingBranch?Y(e)?o.effects.push(...e):o.effects.push(e):Gd(e)}const Fe=Symbol.for("v-fgt"),on=Symbol.for("v-txt"),Me=Symbol.for("v-cmt"),Pr=Symbol.for("v-stc"),jt=[];let Ke=null;function Nn(e=!1){jt.push(Ke=e?null:[])}function Ru(){jt.pop(),Ke=jt[jt.length-1]||null}let Yt=1;function oa(e,o=!1){Yt+=e,e<0&&Ke&&o&&(Ke.hasOnce=!0)}function is(e){return e.dynamicChildren=Yt>0?Ke||ft:null,Ru(),Yt>0&&Ke&&Ke.push(e),e}function Ov(e,o,t,r,n,i){return is(ls(e,o,t,r,n,i,!0))}function Vn(e,o,t,r,n){return is(_e(e,o,t,r,n,!0))}function xt(e){return e?e.__v_isVNode===!0:!1}function Jo(e,o){return e.type===o.type&&e.key===o.key}const as=({key:e})=>e??null,Tr=({ref:e,ref_key:o,ref_for:t})=>(typeof e=="number"&&(e=""+e),e!=null?ve(e)||Pe(e)||X(e)?{i:Te,r:e,k:o,f:!!t}:e:null);function ls(e,o=null,t=null,r=0,n=null,i=e===Fe?0:1,a=!1,l=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:o,key:o&&as(o),ref:o&&Tr(o),scopeId:Il,slotScopeIds:null,children:t,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:i,patchFlag:r,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:Te};return l?(Pi(s,t),i&128&&e.normalize(s)):t&&(s.shapeFlag|=ve(t)?8:16),Yt>0&&!a&&Ke&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&Ke.push(s),s}const _e=Lu;function Lu(e,o=null,t=null,r=0,n=null,i=!1){if((!e||e===au)&&(e=Me),xt(e)){const l=Bo(e,o,!0);return t&&Pi(l,t),Yt>0&&!i&&Ke&&(l.shapeFlag&6?Ke[Ke.indexOf(e)]=l:Ke.push(l)),l.patchFlag=-2,l}if(Gu(e)&&(e=e.__vccOpts),o){o=ku(o);let{class:l,style:s}=o;l&&!ve(l)&&(o.class=di(l)),me(s)&&(Ci(s)&&!Y(s)&&(s=we({},s)),o.style=ci(s))}const a=ve(e)?1:ns(e)?128:Fl(e)?64:me(e)?4:X(e)?2:0;return ls(e,o,t,r,n,a,i,!0)}function ku(e){return e?Ci(e)||ql(e)?we({},e):e:null}function Bo(e,o,t=!1,r=!1){const{props:n,ref:i,patchFlag:a,children:l,transition:s}=e,c=o?Ou(n||{},o):n,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&as(c),ref:o&&o.ref?t&&i?Y(i)?i.concat(Tr(o)):[i,Tr(o)]:Tr(o):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:o&&e.type!==Fe?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Bo(e.ssContent),ssFallback:e.ssFallback&&Bo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&r&&tt(d,s.clone(d)),d}function Un(e=" ",o=0){return _e(on,null,e,o)}function zv(e,o){const t=_e(Pr,null,e);return t.staticCount=o,t}function Bv(e="",o=!1){return o?(Nn(),Vn(Me,null,e)):_e(Me,null,e)}function fo(e){return e==null||typeof e=="boolean"?_e(Me):Y(e)?_e(Fe,null,e.slice()):xt(e)?Lo(e):_e(on,null,String(e))}function Lo(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Bo(e)}function Pi(e,o){let t=0;const{shapeFlag:r}=e;if(o==null)o=null;else if(Y(o))t=16;else if(typeof o=="object")if(r&65){const n=o.default;n&&(n._c&&(n._d=!1),Pi(e,n()),n._c&&(n._d=!0));return}else{t=32;const n=o._;!n&&!ql(o)?o._ctx=Te:n===3&&Te&&(Te.slots._===1?o._=1:(o._=2,e.patchFlag|=1024))}else X(o)?(o={default:o,_ctx:Te},t=32):(o=String(o),r&64?(t=16,o=[Un(o)]):t=8);e.children=o,e.shapeFlag|=t}function Ou(...e){const o={};for(let t=0;tDe||Te;let _r,Gn;{const e=Vr(),o=(t,r)=>{let n;return(n=e[t])||(n=e[t]=[]),n.push(r),i=>{n.length>1?n.forEach(a=>a(i)):n[0](i)}};_r=o("__VUE_INSTANCE_SETTERS__",t=>De=t),Gn=o("__VUE_SSR_SETTERS__",t=>Jt=t)}const tr=e=>{const o=De;return _r(e),e.scope.on(),()=>{e.scope.off(),_r(o)}},ta=()=>{De&&De.scope.off(),_r(null)};function cs(e){return e.vnode.shapeFlag&4}let Jt=!1;function ju(e,o=!1,t=!1){o&&Gn(o);const{props:r,children:n}=e.vnode,i=cs(e);mu(e,r,i,o),xu(e,n,t);const a=i?Nu(e,o):void 0;return o&&Gn(!1),a}function Nu(e,o){const t=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,lu);const{setup:r}=t;if(r){jo();const n=e.setupContext=r.length>1?Uu(e):null,i=tr(e),a=or(r,e,0,[e.props,n]),l=Za(a);if(No(),i(),(l||e.sp)&&!gt(e)&&kl(e),l){if(a.then(ta,ta),o)return a.then(s=>{ra(e,s)}).catch(s=>{Kr(s,e,0)});e.asyncDep=a}else ra(e,a)}else ds(e)}function ra(e,o,t){X(o)?e.type.__ssrInlineRender?e.ssrRender=o:e.render=o:me(o)&&(e.setupState=yl(o)),ds(e)}function ds(e,o,t){const r=e.type;e.render||(e.render=r.render||mo);{const n=tr(e);jo();try{su(e)}finally{No(),n()}}}const Vu={get(e,o){return Ie(e,"get",""),e[o]}};function Uu(e){const o=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,Vu),slots:e.slots,emit:e.emit,expose:o}}function tn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(yl(Ln(e.exposed)),{get(o,t){if(t in o)return o[t];if(t in Wt)return Wt[t](e)},has(o,t){return t in o||t in Wt}})):e.proxy}function Gu(e){return X(e)&&"__vccOpts"in e}const de=(e,o)=>Wd(e,o,Jt);function z(e,o,t){const r=arguments.length;return r===2?me(o)&&!Y(o)?xt(o)?_e(e,null,[o]):_e(e,o):_e(e,null,o):(r>3?t=Array.prototype.slice.call(arguments,2):r===3&&xt(t)&&(t=[t]),_e(e,o,t))}const qu="3.5.13";/**
* @vue/runtime-dom v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
-**/let qn;const na=typeof window<"u"&&window.trustedTypes;if(na)try{qn=na.createPolicy("vue",{createHTML:e=>e})}catch{}const us=qn?e=>qn.createHTML(e):e=>e,Ku="http://www.w3.org/2000/svg",Yu="http://www.w3.org/1998/Math/MathML",So=typeof document<"u"?document:null,ia=So&&So.createElement("template"),Ju={insert:(e,o,t)=>{o.insertBefore(e,t||null)},remove:e=>{const o=e.parentNode;o&&o.removeChild(e)},createElement:(e,o,t,r)=>{const n=o==="svg"?So.createElementNS(Ku,e):o==="mathml"?So.createElementNS(Yu,e):t?So.createElement(e,{is:t}):So.createElement(e);return e==="select"&&r&&r.multiple!=null&&n.setAttribute("multiple",r.multiple),n},createText:e=>So.createTextNode(e),createComment:e=>So.createComment(e),setText:(e,o)=>{e.nodeValue=o},setElementText:(e,o)=>{e.textContent=o},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>So.querySelector(e),setScopeId(e,o){e.setAttribute(o,"")},insertStaticContent(e,o,t,r,n,i){const a=t?t.previousSibling:o.lastChild;if(n&&(n===i||n.nextSibling))for(;o.insertBefore(n.cloneNode(!0),t),!(n===i||!(n=n.nextSibling)););else{ia.innerHTML=us(r==="svg"?``:r==="mathml"?``:e);const l=ia.content;if(r==="svg"||r==="mathml"){const s=l.firstChild;for(;s.firstChild;)l.appendChild(s.firstChild);l.removeChild(s)}o.insertBefore(l,t)}return[a?a.nextSibling:o.firstChild,t?t.previousSibling:o.lastChild]}},Mo="transition",Mt="animation",vt=Symbol("_vtc"),fs={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},ps=we({},_l,fs),Zu=e=>(e.displayName="Transition",e.props=ps,e),hs=Zu((e,{slots:o})=>O(Zd,ms(e),o)),Go=(e,o=[])=>{Y(e)?e.forEach(t=>t(...o)):e&&e(...o)},aa=e=>e?Y(e)?e.some(o=>o.length>1):e.length>1:!1;function ms(e){const o={};for(const F in e)F in fs||(o[F]=e[F]);if(e.css===!1)return o;const{name:t="v",type:r,duration:n,enterFromClass:i=`${t}-enter-from`,enterActiveClass:a=`${t}-enter-active`,enterToClass:l=`${t}-enter-to`,appearFromClass:s=i,appearActiveClass:c=a,appearToClass:d=l,leaveFromClass:u=`${t}-leave-from`,leaveActiveClass:p=`${t}-leave-active`,leaveToClass:g=`${t}-leave-to`}=e,h=Qu(n),b=h&&h[0],y=h&&h[1],{onBeforeEnter:C,onEnter:I,onEnterCancelled:E,onLeave:v,onLeaveCancelled:L,onBeforeAppear:W=C,onAppear:w=I,onAppearCancelled:K=E}=o,D=(F,ee,ae,xe)=>{F._enterCancelled=xe,_o(F,ee?d:l),_o(F,ee?c:a),ae&&ae()},j=(F,ee)=>{F._isLeaving=!1,_o(F,u),_o(F,g),_o(F,p),ee&&ee()},q=F=>(ee,ae)=>{const xe=F?w:I,oe=()=>D(ee,F,ae);Go(xe,[ee,oe]),la(()=>{_o(ee,F?s:i),co(ee,F?d:l),aa(xe)||sa(ee,r,b,oe)})};return we(o,{onBeforeEnter(F){Go(C,[F]),co(F,i),co(F,a)},onBeforeAppear(F){Go(W,[F]),co(F,s),co(F,c)},onEnter:q(!1),onAppear:q(!0),onLeave(F,ee){F._isLeaving=!0;const ae=()=>j(F,ee);co(F,u),F._enterCancelled?(co(F,p),Kn()):(Kn(),co(F,p)),la(()=>{F._isLeaving&&(_o(F,u),co(F,g),aa(v)||sa(F,r,y,ae))}),Go(v,[F,ae])},onEnterCancelled(F){D(F,!1,void 0,!0),Go(E,[F])},onAppearCancelled(F){D(F,!0,void 0,!0),Go(K,[F])},onLeaveCancelled(F){j(F),Go(L,[F])}})}function Qu(e){if(e==null)return null;if(me(e))return[Pn(e.enter),Pn(e.leave)];{const o=Pn(e);return[o,o]}}function Pn(e){return nd(e)}function co(e,o){o.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[vt]||(e[vt]=new Set)).add(o)}function _o(e,o){o.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const t=e[vt];t&&(t.delete(o),t.size||(e[vt]=void 0))}function la(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Xu=0;function sa(e,o,t,r){const n=e._endId=++Xu,i=()=>{n===e._endId&&r()};if(t!=null)return setTimeout(i,t);const{type:a,timeout:l,propCount:s}=gs(e,o);if(!a)return r();const c=a+"end";let d=0;const u=()=>{e.removeEventListener(c,p),i()},p=g=>{g.target===e&&++d>=s&&u()};setTimeout(()=>{d(t[h]||"").split(", "),n=r(`${Mo}Delay`),i=r(`${Mo}Duration`),a=ca(n,i),l=r(`${Mt}Delay`),s=r(`${Mt}Duration`),c=ca(l,s);let d=null,u=0,p=0;o===Mo?a>0&&(d=Mo,u=a,p=i.length):o===Mt?c>0&&(d=Mt,u=c,p=s.length):(u=Math.max(a,c),d=u>0?a>c?Mo:Mt:null,p=d?d===Mo?i.length:s.length:0);const g=d===Mo&&/\b(transform|all)(,|$)/.test(r(`${Mo}Property`).toString());return{type:d,timeout:u,propCount:p,hasTransform:g}}function ca(e,o){for(;e.lengthda(t)+da(e[r])))}function da(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Kn(){return document.body.offsetHeight}function ef(e,o,t){const r=e[vt];r&&(o=(o?[o,...r]:[...r]).join(" ")),o==null?e.removeAttribute("class"):t?e.setAttribute("class",o):e.className=o}const Er=Symbol("_vod"),bs=Symbol("_vsh"),Wv={beforeMount(e,{value:o},{transition:t}){e[Er]=e.style.display==="none"?"":e.style.display,t&&o?t.beforeEnter(e):Dt(e,o)},mounted(e,{value:o},{transition:t}){t&&o&&t.enter(e)},updated(e,{value:o,oldValue:t},{transition:r}){!o!=!t&&(r?o?(r.beforeEnter(e),Dt(e,!0),r.enter(e)):r.leave(e,()=>{Dt(e,!1)}):Dt(e,o))},beforeUnmount(e,{value:o}){Dt(e,o)}};function Dt(e,o){e.style.display=o?e[Er]:"none",e[bs]=!o}const of=Symbol(""),tf=/(^|;)\s*display\s*:/;function rf(e,o,t){const r=e.style,n=ve(t);let i=!1;if(t&&!n){if(o)if(ve(o))for(const a of o.split(";")){const l=a.slice(0,a.indexOf(":")).trim();t[l]==null&&$r(r,l,"")}else for(const a in o)t[a]==null&&$r(r,a,"");for(const a in t)a==="display"&&(i=!0),$r(r,a,t[a])}else if(n){if(o!==t){const a=r[of];a&&(t+=";"+a),r.cssText=t,i=tf.test(t)}}else o&&e.removeAttribute("style");Er in e&&(e[Er]=i?r.display:"",e[bs]&&(r.display="none"))}const ua=/\s*!important$/;function $r(e,o,t){if(Y(t))t.forEach(r=>$r(e,o,r));else if(t==null&&(t=""),o.startsWith("--"))e.setProperty(o,t);else{const r=nf(e,o);ua.test(t)?e.setProperty(nt(r),t.replace(ua,""),"important"):e[r]=t}}const fa=["Webkit","Moz","ms"],Tn={};function nf(e,o){const t=Tn[o];if(t)return t;let r=Oo(o);if(r!=="filter"&&r in e)return Tn[o]=r;r=el(r);for(let n=0;n$n||(cf.then(()=>$n=0),$n=Date.now());function uf(e,o){const t=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=t.attached)return;ro(ff(r,t.value),o,5,[r])};return t.value=e,t.attached=df(),t}function ff(e,o){if(Y(o)){const t=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{t.call(e),e._stopped=!0},o.map(r=>n=>!n._stopped&&r&&r(n))}else return o}const Ca=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,pf=(e,o,t,r,n,i)=>{const a=n==="svg";o==="class"?ef(e,r,a):o==="style"?rf(e,t,r):Wr(o)?ai(o)||lf(e,o,t,r,i):(o[0]==="."?(o=o.slice(1),!0):o[0]==="^"?(o=o.slice(1),!1):hf(e,o,r,a))?(ma(e,o,r),!e.tagName.includes("-")&&(o==="value"||o==="checked"||o==="selected")&&ha(e,o,r,a,i,o!=="value")):e._isVueCE&&(/[A-Z]/.test(o)||!ve(r))?ma(e,Oo(o),r,i,o):(o==="true-value"?e._trueValue=r:o==="false-value"&&(e._falseValue=r),ha(e,o,r,a))};function hf(e,o,t,r){if(r)return!!(o==="innerHTML"||o==="textContent"||o in e&&Ca(o)&&X(t));if(o==="spellcheck"||o==="draggable"||o==="translate"||o==="form"||o==="list"&&e.tagName==="INPUT"||o==="type"&&e.tagName==="TEXTAREA")return!1;if(o==="width"||o==="height"){const n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return Ca(o)&&ve(t)?!1:o in e}const Cs=new WeakMap,xs=new WeakMap,Rr=Symbol("_moveCb"),xa=Symbol("_enterCb"),mf=e=>(delete e.props.mode,e),gf=mf({name:"TransitionGroup",props:we({},ps,{tag:String,moveClass:String}),setup(e,{slots:o}){const t=ss(),r=Dl();let n,i;return Ol(()=>{if(!n.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!yf(n[0].el,t.vnode.el,a))return;n.forEach(Cf),n.forEach(xf);const l=n.filter(vf);Kn(),l.forEach(s=>{const c=s.el,d=c.style;co(c,a),d.transform=d.webkitTransform=d.transitionDuration="";const u=c[Rr]=p=>{p&&p.target!==c||(!p||/transform$/.test(p.propertyName))&&(c.removeEventListener("transitionend",u),c[Rr]=null,_o(c,a))};c.addEventListener("transitionend",u)})}),()=>{const a=ie(e),l=ms(a);let s=a.tag||Fe;if(n=[],i)for(let c=0;c{l.split(/\s+/).forEach(s=>s&&r.classList.remove(s))}),t.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const i=o.nodeType===1?o:o.parentNode;i.appendChild(r);const{hasTransform:a}=gs(r);return i.removeChild(r),a}const va=e=>{const o=e.props["onUpdate:modelValue"]||!1;return Y(o)?t=>yr(o,t):o};function Sf(e){e.target.composing=!0}function ya(e){const o=e.target;o.composing&&(o.composing=!1,o.dispatchEvent(new Event("input")))}const In=Symbol("_assign"),jv={created(e,{modifiers:{lazy:o,trim:t,number:r}},n){e[In]=va(n);const i=r||n.props&&n.props.type==="number";ut(e,o?"change":"input",a=>{if(a.target.composing)return;let l=e.value;t&&(l=l.trim()),i&&(l=Dn(l)),e[In](l)}),t&&ut(e,"change",()=>{e.value=e.value.trim()}),o||(ut(e,"compositionstart",Sf),ut(e,"compositionend",ya),ut(e,"change",ya))},mounted(e,{value:o}){e.value=o??""},beforeUpdate(e,{value:o,oldValue:t,modifiers:{lazy:r,trim:n,number:i}},a){if(e[In]=va(a),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?Dn(e.value):e.value,s=o??"";l!==s&&(document.activeElement===e&&e.type!=="range"&&(r&&o===t||n&&e.value.trim()===s)||(e.value=s))}},wf=["ctrl","shift","alt","meta"],Pf={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&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,o)=>wf.some(t=>e[`${t}Key`]&&!o.includes(t))},Nv=(e,o)=>{const t=e._withMods||(e._withMods={}),r=o.join(".");return t[r]||(t[r]=(n,...i)=>{for(let a=0;a{const o=$f().createApp(...e),{mount:t}=o;return o.mount=r=>{const n=Hf(r);if(!n)return;const i=o._component;!X(i)&&!i.render&&!i.template&&(i.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const a=t(n,!1,If(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),a},o};function If(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Hf(e){return ve(e)?document.querySelector(e):e}function Ff(e){let o=".",t="__",r="--",n;if(e){let h=e.blockPrefix;h&&(o=h),h=e.elementPrefix,h&&(t=h),h=e.modifierPrefix,h&&(r=h)}const i={install(h){n=h.c;const b=h.context;b.bem={},b.bem.b=null,b.bem.els=null}};function a(h){let b,y;return{before(C){b=C.bem.b,y=C.bem.els,C.bem.els=null},after(C){C.bem.b=b,C.bem.els=y},$({context:C,props:I}){return h=typeof h=="string"?h:h({context:C,props:I}),C.bem.b=h,`${(I==null?void 0:I.bPrefix)||o}${C.bem.b}`}}}function l(h){let b;return{before(y){b=y.bem.els},after(y){y.bem.els=b},$({context:y,props:C}){return h=typeof h=="string"?h:h({context:y,props:C}),y.bem.els=h.split(",").map(I=>I.trim()),y.bem.els.map(I=>`${(C==null?void 0:C.bPrefix)||o}${y.bem.b}${t}${I}`).join(", ")}}}function s(h){return{$({context:b,props:y}){h=typeof h=="string"?h:h({context:b,props:y});const C=h.split(",").map(v=>v.trim());function I(v){return C.map(L=>`&${(y==null?void 0:y.bPrefix)||o}${b.bem.b}${v!==void 0?`${t}${v}`:""}${r}${L}`).join(", ")}const E=b.bem.els;return E!==null?I(E[0]):I()}}}function c(h){return{$({context:b,props:y}){h=typeof h=="string"?h:h({context:b,props:y});const C=b.bem.els;return`&:not(${(y==null?void 0:y.bPrefix)||o}${b.bem.b}${C!==null&&C.length>0?`${t}${C[0]}`:""}${r}${h})`}}}return Object.assign(i,{cB:(...h)=>n(a(h[0]),h[1],h[2]),cE:(...h)=>n(l(h[0]),h[1],h[2]),cM:(...h)=>n(s(h[0]),h[1],h[2]),cNotM:(...h)=>n(c(h[0]),h[1],h[2])}),i}function Af(e){let o=0;for(let t=0;t{let n=Af(r);if(n){if(n===1){e.forEach(a=>{t.push(r.replace("&",a))});return}}else{e.forEach(a=>{t.push((a&&a+" ")+r)});return}let i=[r];for(;n--;){const a=[];i.forEach(l=>{e.forEach(s=>{a.push(l.replace("&",s))})}),i=a}i.forEach(a=>t.push(a))}),t}function _f(e,o){const t=[];return o.split(vs).forEach(r=>{e.forEach(n=>{t.push((n&&n+" ")+r)})}),t}function Ef(e){let o=[""];return e.forEach(t=>{t=t&&t.trim(),t&&(t.includes("&")?o=Df(o,t):o=_f(o,t))}),o.join(", ").replace(Mf," ")}function wa(e){if(!e)return;const o=e.parentElement;o&&o.removeChild(e)}function rn(e,o){return(o??document.head).querySelector(`style[cssr-id="${e}"]`)}function Rf(e){const o=document.createElement("style");return o.setAttribute("cssr-id",e),o}function br(e){return e?/^\s*@(s|m)/.test(e):!1}const Lf=/[A-Z]/g;function ys(e){return e.replace(Lf,o=>"-"+o.toLowerCase())}function kf(e,o=" "){return typeof e=="object"&&e!==null?` {
+**/let qn;const na=typeof window<"u"&&window.trustedTypes;if(na)try{qn=na.createPolicy("vue",{createHTML:e=>e})}catch{}const us=qn?e=>qn.createHTML(e):e=>e,Ku="http://www.w3.org/2000/svg",Yu="http://www.w3.org/1998/Math/MathML",So=typeof document<"u"?document:null,ia=So&&So.createElement("template"),Ju={insert:(e,o,t)=>{o.insertBefore(e,t||null)},remove:e=>{const o=e.parentNode;o&&o.removeChild(e)},createElement:(e,o,t,r)=>{const n=o==="svg"?So.createElementNS(Ku,e):o==="mathml"?So.createElementNS(Yu,e):t?So.createElement(e,{is:t}):So.createElement(e);return e==="select"&&r&&r.multiple!=null&&n.setAttribute("multiple",r.multiple),n},createText:e=>So.createTextNode(e),createComment:e=>So.createComment(e),setText:(e,o)=>{e.nodeValue=o},setElementText:(e,o)=>{e.textContent=o},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>So.querySelector(e),setScopeId(e,o){e.setAttribute(o,"")},insertStaticContent(e,o,t,r,n,i){const a=t?t.previousSibling:o.lastChild;if(n&&(n===i||n.nextSibling))for(;o.insertBefore(n.cloneNode(!0),t),!(n===i||!(n=n.nextSibling)););else{ia.innerHTML=us(r==="svg"?``:r==="mathml"?``:e);const l=ia.content;if(r==="svg"||r==="mathml"){const s=l.firstChild;for(;s.firstChild;)l.appendChild(s.firstChild);l.removeChild(s)}o.insertBefore(l,t)}return[a?a.nextSibling:o.firstChild,t?t.previousSibling:o.lastChild]}},Mo="transition",Mt="animation",vt=Symbol("_vtc"),fs={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},ps=we({},_l,fs),Zu=e=>(e.displayName="Transition",e.props=ps,e),hs=Zu((e,{slots:o})=>z(Zd,ms(e),o)),Go=(e,o=[])=>{Y(e)?e.forEach(t=>t(...o)):e&&e(...o)},aa=e=>e?Y(e)?e.some(o=>o.length>1):e.length>1:!1;function ms(e){const o={};for(const F in e)F in fs||(o[F]=e[F]);if(e.css===!1)return o;const{name:t="v",type:r,duration:n,enterFromClass:i=`${t}-enter-from`,enterActiveClass:a=`${t}-enter-active`,enterToClass:l=`${t}-enter-to`,appearFromClass:s=i,appearActiveClass:c=a,appearToClass:d=l,leaveFromClass:u=`${t}-leave-from`,leaveActiveClass:p=`${t}-leave-active`,leaveToClass:g=`${t}-leave-to`}=e,h=Qu(n),b=h&&h[0],y=h&&h[1],{onBeforeEnter:C,onEnter:I,onEnterCancelled:E,onLeave:v,onLeaveCancelled:L,onBeforeAppear:W=C,onAppear:w=I,onAppearCancelled:K=E}=o,D=(F,ee,ae,xe)=>{F._enterCancelled=xe,_o(F,ee?d:l),_o(F,ee?c:a),ae&&ae()},j=(F,ee)=>{F._isLeaving=!1,_o(F,u),_o(F,g),_o(F,p),ee&&ee()},q=F=>(ee,ae)=>{const xe=F?w:I,oe=()=>D(ee,F,ae);Go(xe,[ee,oe]),la(()=>{_o(ee,F?s:i),co(ee,F?d:l),aa(xe)||sa(ee,r,b,oe)})};return we(o,{onBeforeEnter(F){Go(C,[F]),co(F,i),co(F,a)},onBeforeAppear(F){Go(W,[F]),co(F,s),co(F,c)},onEnter:q(!1),onAppear:q(!0),onLeave(F,ee){F._isLeaving=!0;const ae=()=>j(F,ee);co(F,u),F._enterCancelled?(co(F,p),Kn()):(Kn(),co(F,p)),la(()=>{F._isLeaving&&(_o(F,u),co(F,g),aa(v)||sa(F,r,y,ae))}),Go(v,[F,ae])},onEnterCancelled(F){D(F,!1,void 0,!0),Go(E,[F])},onAppearCancelled(F){D(F,!0,void 0,!0),Go(K,[F])},onLeaveCancelled(F){j(F),Go(L,[F])}})}function Qu(e){if(e==null)return null;if(me(e))return[Pn(e.enter),Pn(e.leave)];{const o=Pn(e);return[o,o]}}function Pn(e){return nd(e)}function co(e,o){o.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[vt]||(e[vt]=new Set)).add(o)}function _o(e,o){o.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const t=e[vt];t&&(t.delete(o),t.size||(e[vt]=void 0))}function la(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Xu=0;function sa(e,o,t,r){const n=e._endId=++Xu,i=()=>{n===e._endId&&r()};if(t!=null)return setTimeout(i,t);const{type:a,timeout:l,propCount:s}=gs(e,o);if(!a)return r();const c=a+"end";let d=0;const u=()=>{e.removeEventListener(c,p),i()},p=g=>{g.target===e&&++d>=s&&u()};setTimeout(()=>{d(t[h]||"").split(", "),n=r(`${Mo}Delay`),i=r(`${Mo}Duration`),a=ca(n,i),l=r(`${Mt}Delay`),s=r(`${Mt}Duration`),c=ca(l,s);let d=null,u=0,p=0;o===Mo?a>0&&(d=Mo,u=a,p=i.length):o===Mt?c>0&&(d=Mt,u=c,p=s.length):(u=Math.max(a,c),d=u>0?a>c?Mo:Mt:null,p=d?d===Mo?i.length:s.length:0);const g=d===Mo&&/\b(transform|all)(,|$)/.test(r(`${Mo}Property`).toString());return{type:d,timeout:u,propCount:p,hasTransform:g}}function ca(e,o){for(;e.lengthda(t)+da(e[r])))}function da(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Kn(){return document.body.offsetHeight}function ef(e,o,t){const r=e[vt];r&&(o=(o?[o,...r]:[...r]).join(" ")),o==null?e.removeAttribute("class"):t?e.setAttribute("class",o):e.className=o}const Er=Symbol("_vod"),bs=Symbol("_vsh"),Wv={beforeMount(e,{value:o},{transition:t}){e[Er]=e.style.display==="none"?"":e.style.display,t&&o?t.beforeEnter(e):Dt(e,o)},mounted(e,{value:o},{transition:t}){t&&o&&t.enter(e)},updated(e,{value:o,oldValue:t},{transition:r}){!o!=!t&&(r?o?(r.beforeEnter(e),Dt(e,!0),r.enter(e)):r.leave(e,()=>{Dt(e,!1)}):Dt(e,o))},beforeUnmount(e,{value:o}){Dt(e,o)}};function Dt(e,o){e.style.display=o?e[Er]:"none",e[bs]=!o}const of=Symbol(""),tf=/(^|;)\s*display\s*:/;function rf(e,o,t){const r=e.style,n=ve(t);let i=!1;if(t&&!n){if(o)if(ve(o))for(const a of o.split(";")){const l=a.slice(0,a.indexOf(":")).trim();t[l]==null&&$r(r,l,"")}else for(const a in o)t[a]==null&&$r(r,a,"");for(const a in t)a==="display"&&(i=!0),$r(r,a,t[a])}else if(n){if(o!==t){const a=r[of];a&&(t+=";"+a),r.cssText=t,i=tf.test(t)}}else o&&e.removeAttribute("style");Er in e&&(e[Er]=i?r.display:"",e[bs]&&(r.display="none"))}const ua=/\s*!important$/;function $r(e,o,t){if(Y(t))t.forEach(r=>$r(e,o,r));else if(t==null&&(t=""),o.startsWith("--"))e.setProperty(o,t);else{const r=nf(e,o);ua.test(t)?e.setProperty(nt(r),t.replace(ua,""),"important"):e[r]=t}}const fa=["Webkit","Moz","ms"],Tn={};function nf(e,o){const t=Tn[o];if(t)return t;let r=zo(o);if(r!=="filter"&&r in e)return Tn[o]=r;r=el(r);for(let n=0;n$n||(cf.then(()=>$n=0),$n=Date.now());function uf(e,o){const t=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=t.attached)return;ro(ff(r,t.value),o,5,[r])};return t.value=e,t.attached=df(),t}function ff(e,o){if(Y(o)){const t=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{t.call(e),e._stopped=!0},o.map(r=>n=>!n._stopped&&r&&r(n))}else return o}const Ca=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,pf=(e,o,t,r,n,i)=>{const a=n==="svg";o==="class"?ef(e,r,a):o==="style"?rf(e,t,r):Wr(o)?ai(o)||lf(e,o,t,r,i):(o[0]==="."?(o=o.slice(1),!0):o[0]==="^"?(o=o.slice(1),!1):hf(e,o,r,a))?(ma(e,o,r),!e.tagName.includes("-")&&(o==="value"||o==="checked"||o==="selected")&&ha(e,o,r,a,i,o!=="value")):e._isVueCE&&(/[A-Z]/.test(o)||!ve(r))?ma(e,zo(o),r,i,o):(o==="true-value"?e._trueValue=r:o==="false-value"&&(e._falseValue=r),ha(e,o,r,a))};function hf(e,o,t,r){if(r)return!!(o==="innerHTML"||o==="textContent"||o in e&&Ca(o)&&X(t));if(o==="spellcheck"||o==="draggable"||o==="translate"||o==="form"||o==="list"&&e.tagName==="INPUT"||o==="type"&&e.tagName==="TEXTAREA")return!1;if(o==="width"||o==="height"){const n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return Ca(o)&&ve(t)?!1:o in e}const Cs=new WeakMap,xs=new WeakMap,Rr=Symbol("_moveCb"),xa=Symbol("_enterCb"),mf=e=>(delete e.props.mode,e),gf=mf({name:"TransitionGroup",props:we({},ps,{tag:String,moveClass:String}),setup(e,{slots:o}){const t=ss(),r=Dl();let n,i;return zl(()=>{if(!n.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!yf(n[0].el,t.vnode.el,a))return;n.forEach(Cf),n.forEach(xf);const l=n.filter(vf);Kn(),l.forEach(s=>{const c=s.el,d=c.style;co(c,a),d.transform=d.webkitTransform=d.transitionDuration="";const u=c[Rr]=p=>{p&&p.target!==c||(!p||/transform$/.test(p.propertyName))&&(c.removeEventListener("transitionend",u),c[Rr]=null,_o(c,a))};c.addEventListener("transitionend",u)})}),()=>{const a=ie(e),l=ms(a);let s=a.tag||Fe;if(n=[],i)for(let c=0;c{l.split(/\s+/).forEach(s=>s&&r.classList.remove(s))}),t.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const i=o.nodeType===1?o:o.parentNode;i.appendChild(r);const{hasTransform:a}=gs(r);return i.removeChild(r),a}const va=e=>{const o=e.props["onUpdate:modelValue"]||!1;return Y(o)?t=>yr(o,t):o};function Sf(e){e.target.composing=!0}function ya(e){const o=e.target;o.composing&&(o.composing=!1,o.dispatchEvent(new Event("input")))}const In=Symbol("_assign"),jv={created(e,{modifiers:{lazy:o,trim:t,number:r}},n){e[In]=va(n);const i=r||n.props&&n.props.type==="number";ut(e,o?"change":"input",a=>{if(a.target.composing)return;let l=e.value;t&&(l=l.trim()),i&&(l=Dn(l)),e[In](l)}),t&&ut(e,"change",()=>{e.value=e.value.trim()}),o||(ut(e,"compositionstart",Sf),ut(e,"compositionend",ya),ut(e,"change",ya))},mounted(e,{value:o}){e.value=o??""},beforeUpdate(e,{value:o,oldValue:t,modifiers:{lazy:r,trim:n,number:i}},a){if(e[In]=va(a),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?Dn(e.value):e.value,s=o??"";l!==s&&(document.activeElement===e&&e.type!=="range"&&(r&&o===t||n&&e.value.trim()===s)||(e.value=s))}},wf=["ctrl","shift","alt","meta"],Pf={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&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,o)=>wf.some(t=>e[`${t}Key`]&&!o.includes(t))},Nv=(e,o)=>{const t=e._withMods||(e._withMods={}),r=o.join(".");return t[r]||(t[r]=(n,...i)=>{for(let a=0;a{const o=$f().createApp(...e),{mount:t}=o;return o.mount=r=>{const n=Hf(r);if(!n)return;const i=o._component;!X(i)&&!i.render&&!i.template&&(i.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const a=t(n,!1,If(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),a},o};function If(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Hf(e){return ve(e)?document.querySelector(e):e}function Ff(e){let o=".",t="__",r="--",n;if(e){let h=e.blockPrefix;h&&(o=h),h=e.elementPrefix,h&&(t=h),h=e.modifierPrefix,h&&(r=h)}const i={install(h){n=h.c;const b=h.context;b.bem={},b.bem.b=null,b.bem.els=null}};function a(h){let b,y;return{before(C){b=C.bem.b,y=C.bem.els,C.bem.els=null},after(C){C.bem.b=b,C.bem.els=y},$({context:C,props:I}){return h=typeof h=="string"?h:h({context:C,props:I}),C.bem.b=h,`${(I==null?void 0:I.bPrefix)||o}${C.bem.b}`}}}function l(h){let b;return{before(y){b=y.bem.els},after(y){y.bem.els=b},$({context:y,props:C}){return h=typeof h=="string"?h:h({context:y,props:C}),y.bem.els=h.split(",").map(I=>I.trim()),y.bem.els.map(I=>`${(C==null?void 0:C.bPrefix)||o}${y.bem.b}${t}${I}`).join(", ")}}}function s(h){return{$({context:b,props:y}){h=typeof h=="string"?h:h({context:b,props:y});const C=h.split(",").map(v=>v.trim());function I(v){return C.map(L=>`&${(y==null?void 0:y.bPrefix)||o}${b.bem.b}${v!==void 0?`${t}${v}`:""}${r}${L}`).join(", ")}const E=b.bem.els;return E!==null?I(E[0]):I()}}}function c(h){return{$({context:b,props:y}){h=typeof h=="string"?h:h({context:b,props:y});const C=b.bem.els;return`&:not(${(y==null?void 0:y.bPrefix)||o}${b.bem.b}${C!==null&&C.length>0?`${t}${C[0]}`:""}${r}${h})`}}}return Object.assign(i,{cB:(...h)=>n(a(h[0]),h[1],h[2]),cE:(...h)=>n(l(h[0]),h[1],h[2]),cM:(...h)=>n(s(h[0]),h[1],h[2]),cNotM:(...h)=>n(c(h[0]),h[1],h[2])}),i}function Af(e){let o=0;for(let t=0;t{let n=Af(r);if(n){if(n===1){e.forEach(a=>{t.push(r.replace("&",a))});return}}else{e.forEach(a=>{t.push((a&&a+" ")+r)});return}let i=[r];for(;n--;){const a=[];i.forEach(l=>{e.forEach(s=>{a.push(l.replace("&",s))})}),i=a}i.forEach(a=>t.push(a))}),t}function _f(e,o){const t=[];return o.split(vs).forEach(r=>{e.forEach(n=>{t.push((n&&n+" ")+r)})}),t}function Ef(e){let o=[""];return e.forEach(t=>{t=t&&t.trim(),t&&(t.includes("&")?o=Df(o,t):o=_f(o,t))}),o.join(", ").replace(Mf," ")}function wa(e){if(!e)return;const o=e.parentElement;o&&o.removeChild(e)}function rn(e,o){return(o??document.head).querySelector(`style[cssr-id="${e}"]`)}function Rf(e){const o=document.createElement("style");return o.setAttribute("cssr-id",e),o}function br(e){return e?/^\s*@(s|m)/.test(e):!1}const Lf=/[A-Z]/g;function ys(e){return e.replace(Lf,o=>"-"+o.toLowerCase())}function kf(e,o=" "){return typeof e=="object"&&e!==null?` {
`+Object.entries(e).map(t=>o+` ${ys(t[0])}: ${t[1]};`).join(`
`)+`
-`+o+"}":`: ${e};`}function zf(e,o,t){return typeof e=="function"?e({context:o.context,props:t}):e}function Pa(e,o,t,r){if(!o)return"";const n=zf(o,t,r);if(!n)return"";if(typeof n=="string")return`${e} {
+`+o+"}":`: ${e};`}function Of(e,o,t){return typeof e=="function"?e({context:o.context,props:t}):e}function Pa(e,o,t,r){if(!o)return"";const n=Of(o,t,r);if(!n)return"";if(typeof n=="string")return`${e} {
${n}
}`;const i=Object.keys(n);if(i.length===0)return t.config.keepEmptyBlock?e+` {
}`:"";const a=e?[e+" {"]:[];return i.forEach(l=>{const s=n[l];if(l==="raw"){a.push(`
`+s+`
`);return}l=ys(l),s!=null&&a.push(` ${l}${kf(s)}`)}),e&&a.push("}"),a.join(`
-`)}function Yn(e,o,t){e&&e.forEach(r=>{if(Array.isArray(r))Yn(r,o,t);else if(typeof r=="function"){const n=r(o);Array.isArray(n)?Yn(n,o,t):n&&t(n)}else r&&t(r)})}function Ss(e,o,t,r,n){const i=e.$;let a="";if(!i||typeof i=="string")br(i)?a=i:o.push(i);else if(typeof i=="function"){const c=i({context:r.context,props:n});br(c)?a=c:o.push(c)}else if(i.before&&i.before(r.context),!i.$||typeof i.$=="string")br(i.$)?a=i.$:o.push(i.$);else if(i.$){const c=i.$({context:r.context,props:n});br(c)?a=c:o.push(c)}const l=Ef(o),s=Pa(l,e.props,r,n);a?t.push(`${a} {`):s.length&&t.push(s),e.children&&Yn(e.children,{context:r.context,props:n},c=>{if(typeof c=="string"){const d=Pa(l,{raw:c},r,n);t.push(d)}else Ss(c,o,t,r,n)}),o.pop(),a&&t.push("}"),i&&i.after&&i.after(r.context)}function Of(e,o,t){const r=[];return Ss(e,[],r,o,t),r.join(`
+`)}function Yn(e,o,t){e&&e.forEach(r=>{if(Array.isArray(r))Yn(r,o,t);else if(typeof r=="function"){const n=r(o);Array.isArray(n)?Yn(n,o,t):n&&t(n)}else r&&t(r)})}function Ss(e,o,t,r,n){const i=e.$;let a="";if(!i||typeof i=="string")br(i)?a=i:o.push(i);else if(typeof i=="function"){const c=i({context:r.context,props:n});br(c)?a=c:o.push(c)}else if(i.before&&i.before(r.context),!i.$||typeof i.$=="string")br(i.$)?a=i.$:o.push(i.$);else if(i.$){const c=i.$({context:r.context,props:n});br(c)?a=c:o.push(c)}const l=Ef(o),s=Pa(l,e.props,r,n);a?t.push(`${a} {`):s.length&&t.push(s),e.children&&Yn(e.children,{context:r.context,props:n},c=>{if(typeof c=="string"){const d=Pa(l,{raw:c},r,n);t.push(d)}else Ss(c,o,t,r,n)}),o.pop(),a&&t.push("}"),i&&i.after&&i.after(r.context)}function zf(e,o,t){const r=[];return Ss(e,[],r,o,t),r.join(`
-`)}function Zt(e){for(var o=0,t,r=0,n=e.length;n>=4;++r,n-=4)t=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,o=(t&65535)*1540483477+((t>>>16)*59797<<16)^(o&65535)*1540483477+((o>>>16)*59797<<16);switch(n){case 3:o^=(e.charCodeAt(r+2)&255)<<16;case 2:o^=(e.charCodeAt(r+1)&255)<<8;case 1:o^=e.charCodeAt(r)&255,o=(o&65535)*1540483477+((o>>>16)*59797<<16)}return o^=o>>>13,o=(o&65535)*1540483477+((o>>>16)*59797<<16),((o^o>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function Bf(e,o,t,r){const{els:n}=o;if(t===void 0)n.forEach(wa),o.els=[];else{const i=rn(t,r);i&&n.includes(i)&&(wa(i),o.els=n.filter(a=>a!==i))}}function Ta(e,o){e.push(o)}function Wf(e,o,t,r,n,i,a,l,s){let c;if(t===void 0&&(c=o.render(r),t=Zt(c)),s){s.adapter(t,c??o.render(r));return}l===void 0&&(l=document.head);const d=rn(t,l);if(d!==null&&!i)return d;const u=d??Rf(t);if(c===void 0&&(c=o.render(r)),u.textContent=c,d!==null)return d;if(a){const p=l.querySelector(`meta[name="${a}"]`);if(p)return l.insertBefore(u,p),Ta(o.els,u),u}return n?l.insertBefore(u,l.querySelector("style, link")):l.appendChild(u),Ta(o.els,u),u}function jf(e){return Of(this,this.instance,e)}function Nf(e={}){const{id:o,ssr:t,props:r,head:n=!1,force:i=!1,anchorMetaName:a,parent:l}=e;return Wf(this.instance,this,o,r,n,i,a,l,t)}function Vf(e={}){const{id:o,parent:t}=e;Bf(this.instance,this,o,t)}const Cr=function(e,o,t,r){return{instance:e,$:o,props:t,children:r,els:[],render:jf,mount:Nf,unmount:Vf}},Uf=function(e,o,t,r){return Array.isArray(o)?Cr(e,{$:null},null,o):Array.isArray(t)?Cr(e,o,null,t):Array.isArray(r)?Cr(e,o,t,r):Cr(e,o,t,null)};function Gf(e={}){const o={c:(...t)=>Uf(o,...t),use:(t,...r)=>t.install(o,...r),find:rn,context:{},config:e};return o}function qf(e,o){if(e===void 0)return!1;if(o){const{context:{ids:t}}=o;return t.has(e)}return rn(e)!==null}const Kf="n",Qt=`.${Kf}-`,Yf="__",Jf="--",ws=Gf(),Ps=Ff({blockPrefix:Qt,elementPrefix:Yf,modifierPrefix:Jf});ws.use(Ps);const{c:Q,find:Uv}=ws,{cB:to,cE:be,cM:Se,cNotM:Jn}=Ps;function Gv(e){return Q(({props:{bPrefix:o}})=>`${o||Qt}modal, ${o||Qt}drawer`,[e])}function qv(e){return Q(({props:{bPrefix:o}})=>`${o||Qt}popover`,[e])}function Kv(e){return Q(({props:{bPrefix:o}})=>`&${o||Qt}modal`,e)}const Yv=(...e)=>Q(">",[to(...e)]);function Z(e,o){return e+(o==="default"?"":o.replace(/^[a-z]/,t=>t.toUpperCase()))}function Jv(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function Zv(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function Qv(e,o){const t=e.trim().split(/\s+/g),r={top:t[0]};switch(t.length){case 1:r.right=t[0],r.bottom=t[0],r.left=t[0];break;case 2:r.right=t[1],r.left=t[1],r.bottom=t[0];break;case 3:r.right=t[1],r.bottom=t[2],r.left=t[1];break;case 4:r.right=t[1],r.bottom=t[2],r.left=t[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return o===void 0?r:r[o]}function Xv(e,o){const[t,r]=e.split(" ");return{row:t,col:r||t}}const $a={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#0FF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000",blanchedalmond:"#FFEBCD",blue:"#00F",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#0FF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",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:"#F0F",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#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",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#0F0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#F0F",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:"#F00",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:"#FFF",whitesmoke:"#F5F5F5",yellow:"#FF0",yellowgreen:"#9ACD32",transparent:"#0000"};function Zf(e,o,t){o/=100,t/=100;let r=(n,i=(n+e/60)%6)=>t-t*o*Math.max(Math.min(i,4-i,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function Qf(e,o,t){o/=100,t/=100;let r=o*Math.min(t,1-t),n=(i,a=(i+e/30)%12)=>t-r*Math.max(Math.min(a-3,9-a,1),-1);return[n(0)*255,n(8)*255,n(4)*255]}const go="^\\s*",bo="\\s*$",Wo="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",Ye="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",Zo="([0-9A-Fa-f])",Qo="([0-9A-Fa-f]{2})",Ts=new RegExp(`${go}hsl\\s*\\(${Ye},${Wo},${Wo}\\)${bo}`),$s=new RegExp(`${go}hsv\\s*\\(${Ye},${Wo},${Wo}\\)${bo}`),Is=new RegExp(`${go}hsla\\s*\\(${Ye},${Wo},${Wo},${Ye}\\)${bo}`),Hs=new RegExp(`${go}hsva\\s*\\(${Ye},${Wo},${Wo},${Ye}\\)${bo}`),Xf=new RegExp(`${go}rgb\\s*\\(${Ye},${Ye},${Ye}\\)${bo}`),ep=new RegExp(`${go}rgba\\s*\\(${Ye},${Ye},${Ye},${Ye}\\)${bo}`),op=new RegExp(`${go}#${Zo}${Zo}${Zo}${bo}`),tp=new RegExp(`${go}#${Qo}${Qo}${Qo}${bo}`),rp=new RegExp(`${go}#${Zo}${Zo}${Zo}${Zo}${bo}`),np=new RegExp(`${go}#${Qo}${Qo}${Qo}${Qo}${bo}`);function Oe(e){return parseInt(e,16)}function ip(e){try{let o;if(o=Is.exec(e))return[Lr(o[1]),ko(o[5]),ko(o[9]),et(o[13])];if(o=Ts.exec(e))return[Lr(o[1]),ko(o[5]),ko(o[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(o){throw o}}function ap(e){try{let o;if(o=Hs.exec(e))return[Lr(o[1]),ko(o[5]),ko(o[9]),et(o[13])];if(o=$s.exec(e))return[Lr(o[1]),ko(o[5]),ko(o[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(o){throw o}}function $o(e){try{let o;if(o=tp.exec(e))return[Oe(o[1]),Oe(o[2]),Oe(o[3]),1];if(o=Xf.exec(e))return[Ae(o[1]),Ae(o[5]),Ae(o[9]),1];if(o=ep.exec(e))return[Ae(o[1]),Ae(o[5]),Ae(o[9]),et(o[13])];if(o=op.exec(e))return[Oe(o[1]+o[1]),Oe(o[2]+o[2]),Oe(o[3]+o[3]),1];if(o=np.exec(e))return[Oe(o[1]),Oe(o[2]),Oe(o[3]),et(Oe(o[4])/255)];if(o=rp.exec(e))return[Oe(o[1]+o[1]),Oe(o[2]+o[2]),Oe(o[3]+o[3]),et(Oe(o[4]+o[4])/255)];if(e in $a)return $o($a[e]);if(Ts.test(e)||Is.test(e)){const[t,r,n,i]=ip(e);return[...Qf(t,r,n),i]}else if($s.test(e)||Hs.test(e)){const[t,r,n,i]=ap(e);return[...Zf(t,r,n),i]}throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(o){throw o}}function lp(e){return e>1?1:e<0?0:e}function Zn(e,o,t,r){return`rgba(${Ae(e)}, ${Ae(o)}, ${Ae(t)}, ${lp(r)})`}function Hn(e,o,t,r,n){return Ae((e*o*(1-r)+t*r)/n)}function B(e,o){Array.isArray(e)||(e=$o(e)),Array.isArray(o)||(o=$o(o));const t=e[3],r=o[3],n=et(t+r-t*r);return Zn(Hn(e[0],t,o[0],r,n),Hn(e[1],t,o[1],r,n),Hn(e[2],t,o[2],r,n),n)}function _(e,o){const[t,r,n,i=1]=Array.isArray(e)?e:$o(e);return typeof o.alpha=="number"?Zn(t,r,n,o.alpha):Zn(t,r,n,i)}function ye(e,o){const[t,r,n,i=1]=Array.isArray(e)?e:$o(e),{lightness:a=1,alpha:l=1}=o;return sp([t*a,r*a,n*a,i*l])}function et(e){const o=Math.round(Number(e)*100)/100;return o>1?1:o<0?0:o}function Lr(e){const o=Math.round(Number(e));return o>=360||o<0?0:o}function Ae(e){const o=Math.round(Number(e));return o>255?255:o<0?0:o}function ko(e){const o=Math.round(Number(e));return o>100?100:o<0?0:o}function sp(e){const[o,t,r]=e;return 3 in e?`rgba(${Ae(o)}, ${Ae(t)}, ${Ae(r)}, ${et(e[3])})`:`rgba(${Ae(o)}, ${Ae(t)}, ${Ae(r)}, 1)`}function cp(e=8){return Math.random().toString(16).slice(2,2+e)}function ey(e,o){const t=[];for(let r=0;r