From 619857f8b297962086be3f6e343b3beebbb34f9d Mon Sep 17 00:00:00 2001 From: yanglbme Date: Mon, 6 Nov 2023 23:36:48 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20doocs/md?= =?UTF-8?q?@effb43d7d96cee2c3844a6d7c9172e0938df1574=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/{app.24cc4029.css => app.bfdb8157.css} | 2 +- index.html | 7 ++++++- js/app.9ac1defc.js | 3 +++ js/app.eea4c071.js | 3 --- ...chunk-vendors.f5bdc3f9.js => chunk-vendors.d25f308b.js} | 4 ++-- 5 files changed, 12 insertions(+), 7 deletions(-) rename css/{app.24cc4029.css => app.bfdb8157.css} (96%) create mode 100644 js/app.9ac1defc.js delete mode 100644 js/app.eea4c071.js rename js/{chunk-vendors.f5bdc3f9.js => chunk-vendors.d25f308b.js} (88%) diff --git a/css/app.24cc4029.css b/css/app.bfdb8157.css similarity index 96% rename from css/app.24cc4029.css rename to css/app.bfdb8157.css index 8b47ae9..4cfe1f1 100644 --- a/css/app.24cc4029.css +++ b/css/app.bfdb8157.css @@ -1 +1 @@ -.container_night,.container_night .el-main{background-color:#333}.container_night .CodeMirror{caret-color:grey;color:grey;background-color:#1e1e1e;box-shadow:inset 0 0 0 1px rgba(100,37,37,.102)}.container_night .output_night .preview{background-color:#1e1e1e;box-shadow:0 0 70px rgba(0,0,0,.3)}.container_night .output_night .preview-wrapper{background-color:#1e1e1e;box-shadow:inset 0 0 0 1px hsla(0,4.3%,91%,.102)}.container_night .output_night .code-snippet__fix{background-color:#eee}.container_night .cm-s-style-mirror .CodeMirror-matchingbracket{color:#f0f0f0!important;background:#1e1e1e!important}.container_night .cm-s-style-mirror span.cm-tag,.container_night .cm-s-xq-light span.cm-variable-2{color:grey}.container_night .cm-s-xq-light .CodeMirror-activeline-background{background-color:transparent}.container_night .cm-s-xq-light span.cm-string{color:#8e9eb9}.container_night .cm-s-xq-light span.cm-link{color:#84868b}.container_night .editor__header{background-color:#3c3c3c}.container_night .el-button{color:#f0f0f0;background-color:#1e1e1e;border:1px solid transparent}.container_night .el-button.is-plain:focus,.container_night .el-button.is-plain:hover{background:#1e1e1e;color:#f0f0f0;border:1px solid #f0f0f0}.container_night .el-button.is-plain:focus i,.container_night .el-button.is-plain:hover i{color:#f0f0f0}.container_night .about__dialog .el-dialog,.container_night .insert__dialog .el-dialog,.container_night .reset__dialog .el-dialog,.container_night .upload__dialog .el-dialog{background-color:#333}.container_night .about__dialog .el-dialog__body,.container_night .about__dialog .el-dialog__title,.container_night .about__dialog .el-form-item__label,.container_night .insert__dialog .el-dialog__body,.container_night .insert__dialog .el-dialog__title,.container_night .insert__dialog .el-form-item__label,.container_night .reset__dialog .el-dialog__body,.container_night .reset__dialog .el-dialog__title,.container_night .reset__dialog .el-form-item__label,.container_night .upload__dialog .el-dialog__body,.container_night .upload__dialog .el-dialog__title,.container_night .upload__dialog .el-form-item__label{color:#f0f0f0}.container_night .about__dialog .el-tabs__item,.container_night .insert__dialog .el-tabs__item,.container_night .reset__dialog .el-tabs__item,.container_night .upload__dialog .el-tabs__item{color:grey}.container_night .about__dialog .el-tabs__nav-wrap:after,.container_night .insert__dialog .el-tabs__nav-wrap:after,.container_night .reset__dialog .el-tabs__nav-wrap:after,.container_night .upload__dialog .el-tabs__nav-wrap:after{background-color:#84868b}.container_night .about__dialog .is-active,.container_night .insert__dialog .is-active,.container_night .reset__dialog .is-active,.container_night .upload__dialog .is-active{color:#f0f0f0}.container_night .about__dialog .el-upload-dragger,.container_night .insert__dialog .el-upload-dragger,.container_night .reset__dialog .el-upload-dragger,.container_night .upload__dialog .el-upload-dragger{background-color:#1e1e1e}.container_night .el-icon-document,.container_night .el-icon-download,.container_night .el-icon-refresh,.container_night .el-icon-s-grid,.container_night ::v-deep .el-icon-upload{color:#f0f0f0}.container_night ::-webkit-scrollbar{background-color:#1e1e1e}.CodeMirror{padding-bottom:0;height:100%!important;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);font-size:14px;font-family:PingFang SC,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif!important}.CodeMirror-vscrollbar:focus{outline:none}.CodeMirror-scroll{padding:0 20px;overflow-x:hidden!important;overflow-y:scroll!important}.CodeMirror-vscrollbar{width:0;height:0}.CodeMirror-wrap{padding-top:20px;padding-bottom:20px;box-sizing:border-box}.cm-s-style-mirror.CodeMirror{color:#444;font-size:16px;line-height:25px}.cm-s-style-mirror .CodeMirror-scroll{padding:20px;width:100%;box-sizing:border-box;overflow-x:hidden!important;overflow-y:scroll!important}.cm-s-style-mirror div.CodeMirror-selected{background:#e0e0e0}.cm-s-style-mirror .CodeMirror-line::selection,.cm-s-style-mirror .CodeMirror-line>span::selection,.cm-s-style-mirror .CodeMirror-line>span>span::selection{background:#e0e0e0}.cm-s-style-mirror .CodeMirror-line::-moz-selection,.cm-s-style-mirror .CodeMirror-line>span::-moz-selection,.cm-s-style-mirror .CodeMirror-line>span>span::-moz-selection{background:#e0e0e0}.cm-s-style-mirror .CodeMirror-gutters{background:#f5f5f5;border-right:0}.cm-s-style-mirror .CodeMirror-guttermarker{color:#ac4142}.cm-s-style-mirror .CodeMirror-guttermarker-subtle,.cm-s-style-mirror .CodeMirror-linenumber{color:#b0b0b0}.cm-s-style-mirror .CodeMirror-cursor{border-left:1px solid #505050}.cm-s-style-mirror span.cm-comment{color:green}.cm-s-style-mirror span.cm-atom,.cm-s-style-mirror span.cm-number{color:#aa759f}.cm-s-style-mirror span.cm-attribute,.cm-s-style-mirror span.cm-property{color:#90a959}.cm-s-style-mirror span.cm-keyword{color:#023a52}.cm-s-style-mirror span.cm-string{color:#e46918}.cm-s-style-mirror span.cm-variable{color:#90a959}.cm-s-style-mirror span.cm-variable-2{color:#00695f}.cm-s-style-mirror span.cm-variable-3{color:#2e6e8a}.cm-s-style-mirror span.cm-def{color:#d28445}.cm-s-style-mirror span.cm-bracket{color:#202020}.cm-s-style-mirror span.cm-tag{color:#000}.cm-s-style-mirror span.cm-link{color:#b26a00}.cm-s-style-mirror span.cm-error{text-decoration:underline;-webkit-text-decoration-style:wavy;text-decoration-style:wavy;-webkit-text-decoration-color:#df8d8e;text-decoration-color:#df8d8e}.cm-s-style-mirror .CodeMirror-activeline-background{background:#dddcdc}.cm-s-style-mirror .CodeMirror-matchingbracket{color:#202020!important;background-color:rgba(0,0,0,.1)!important}[data-v-cff93f88] .el-dialog{min-width:440px}.style-option-menu.el-dropdown[data-v-32cf930a]{margin:0;width:150px}.style-option-menu.el-dropdown .el-dropdown-link[data-v-32cf930a]{display:flex;align-items:center;justify-content:space-between}.select-item-right[data-v-32cf930a]{float:right;color:#8492a6;font-size:13px}.header-container[data-v-7530929c]{padding:10px 20px;align-items:center}.dropdowns[data-v-7530929c]{flex:1}.el-dropdown[data-v-7530929c]{margin:0 10px}.el-dropdown-link[data-v-7530929c]{cursor:pointer}.padding-left-3[data-v-7530929c]{padding-left:3em}.el-dropdown-menu__item--divided.padding-left-3[data-v-7530929c]{position:relative}.el-dropdown-menu__item--divided.padding-left-3[data-v-7530929c]:after{content:"";position:absolute;left:0;top:0;width:3em;height:6px;background:#fff}.format-item[data-v-7530929c]{padding-left:3em;width:180px}.format-item kbd[data-v-7530929c]{font-size:.75em;float:right;color:#666}[data-v-314554b5] .el-dialog{min-width:420px}[data-v-14061734] .el-dialog{width:55%;min-height:375px;min-width:440px}.tb-options[data-v-14061734]{margin-bottom:20px}.input-table[data-v-14061734] .el-input__inner{border-radius:0}.head-style[data-v-14061734] .el-input__inner{background-color:#f2f2f2}.menu[data-v-283cf1ee]{position:absolute;border-radius:4px;background-color:#fff;box-shadow:0 4px 8px 0 rgba(0,0,0,.12),0 2px 4px 0 rgba(0,0,0,.08);z-index:9999}.menu__group[data-v-283cf1ee]{margin:0;padding:6px 0;border-bottom:1px solid #eee}.menu__group[data-v-283cf1ee]:last-of-type{border-bottom:none}.menu_item[data-v-283cf1ee]{list-style:none;box-sizing:border-box;padding:4px 0 4px 24px;margin-top:10px;min-width:200px;line-height:20px;font-size:12px;color:#333;cursor:pointer}.menu_item[data-v-283cf1ee]:first-of-type{margin-top:0}.menu_item[data-v-283cf1ee]:hover{background:#f0f0f0}.menu_item[data-v-283cf1ee] .el-upload{width:100%}.upload__dialog[data-v-83a42576]{display:flex}[data-v-83a42576] .el-dialog{width:55%;min-width:640px;min-height:615px;margin:auto!important}[data-v-83a42576] .el-upload-dragger{display:flex;flex-flow:column;justify-content:center;width:500px;height:360px}[data-v-83a42576] .el-upload-dragger .el-icon-upload{margin-top:0}[data-v-83a42576] .el-dialog__body{padding-bottom:50px}.upload-panel[data-v-83a42576]{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}.upload-panel .el-select[data-v-83a42576]{align-self:flex-end;margin:0 67.75px 20px;width:100px}.github-panel[data-v-83a42576]{display:flex;justify-content:center}.github-panel.formCustom[data-v-83a42576]{width:100%}.github-panel .formCustomElInput[data-v-83a42576] .CodeMirror{border:1px solid #eee;height:300px!important;font-family:Fira Mono,DejaVu Sans Mono,Menlo,Consolas,Liberation Mono,Monaco,Lucida Console,monospace!important;line-height:20px}.github-panel .formCustomElInput[data-v-83a42576] .CodeMirror .CodeMirror-scroll{padding:10px}.setting-form[data-v-83a42576]{width:100%}.setting-form .el-form-item[data-v-83a42576]{margin:15px}.setting-form .el-form-item[data-v-83a42576]:last-child{text-align:right}.bounceInRight[data-v-912bf7ea]{animation-name:bounceInRight-912bf7ea;animation-duration:1s;animation-fill-mode:both}@keyframes bounceInRight-912bf7ea{0%,60%,75%,90%,to{transition-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}.loading[data-v-1bcf5940]{position:fixed;z-index:99999;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100vw;height:100vh;font-size:18px;color:#303133;background-color:#f2f2f2}.loading[data-v-1bcf5940]:before{content:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAAt1BMVEX///8AAABIz0hHzkdIzkhIz0hIz0hHzkdIzkhFz0VAz0BHzUdIz0hHzkdIzkhIzUhHzUdHzUdIzkhEzEREzERGz0ZIz0hHzUdIzkhIzUhHzkdHzkdHzUdGz0ZIzkhHzkdKzkpIzUhGzUZD00NIzUhGzUZIzkhIzkhHzkdHzkdIzkhHz0dIzUhK1UpHzUdC0EJHzkdHzkdIz0hH1UdHzUdGzkZIzUhJ20lD10NJzklIzkhIzkj////r6/fCAAAAO3RSTlMAACDvoEBg0MAwEI9fz9+A8JDgDx5Ff/r9i+VdbHSDkx9RTRdce+6q6brLb58YSBvtd0oScFTxBxM/v5xq7LMAAAABYktHRACIBR1IAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4wwcCBssFsYwawAAAe9JREFUaN7t2tlywiAUBmABiQY1W6vWbna1i6Z2sYs97/9eNcQ6U40kEMhoh/824qeAxwSo1Wx2MUgimAAQLNNCAanDInWzCAUeahRxUsQx212NxGgaHhMq21sqCHIpdZFpRDoW2ROEtdpY/S1xu8XyEdZZ/BA8VcNbNO6wPIQbAK6akZa2v0rWN0mLk6+G+Gnr3O5qgnR1EjfOQviHCRS7yw02uyELwWGkbHAlCnGR3wkuM4WxLSuGkQNfmLYW5BDE8fUgXcHVXv9oYB45PoGBeQSd5ioaEHSWp+hA0DkMzSNoKFZKI78zuWsQuaA8l3BlEFnm2iL/FrlpZqanFbntZxmjO73IfdbVh31ERjQjj1LImEyYGMn+9xUjbELGKyRObviJI57CTzBdu/b8Ip7CDkkeQuIlQrffY5dB0rtvuqvINHnpqwISR8nTQsExSWbVW7ExSZ4jong1u2ZByJDu7kKsHszkCqQCIl+FLbKLyPtaefwwgWxEP2LvVixiEYtoQgqlHPJJC+XLLqoZRsyvpuKJB0R9XZiA18pfF+Yr3KqKS4qtcFeyVl/FrgNrlN8/aeTun3AlUh34aMPYsqcVOmWmsBMyW1Ysooi487nx/fhKThbwDdVvs0glpz0qObdSyQkchAOAQOUskU3h/AAe7qmqtAqp/QAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOS0xMi0yOFQwODoyNzo0NCswMDowMPJYdAwAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTktMTItMjhUMDg6Mjc6NDQrMDA6MDCDBcywAAAAAElFTkSuQmCC);width:100px;height:100px;margin-bottom:26px}.loading_night[data-v-1bcf5940]{color:#bbb;background-color:#303133}.fade-enter[data-v-1bcf5940],.fade-leave-to[data-v-1bcf5940]{opacity:0}.fade-enter-to[data-v-1bcf5940],.fade-leave[data-v-1bcf5940]{opacity:1}.fade-enter-active[data-v-1bcf5940],.fade-leave-active[data-v-1bcf5940]{transition:opacity 1s}[data-v-87004ece]{box-sizing:border-box;margin:0;padding:0}button[data-v-87004ece],input[data-v-87004ece],textarea[data-v-87004ece]{font-family:inherit}h1[data-v-87004ece],h2[data-v-87004ece],h3[data-v-87004ece],h4[data-v-87004ece],h5[data-v-87004ece],h6[data-v-87004ece]{font-weight:400}em[data-v-87004ece]{font-style:normal!important}body[data-v-87004ece],html[data-v-87004ece]{height:100%;font-family:PingFang SC,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif}.el-message__icon[data-v-87004ece]{display:none}.container[data-v-87004ece]{height:100%;display:flex;flex-direction:column}.web-title[data-v-87004ece]{margin:0 15px 0 5px}.web-icon[data-v-87004ece]{width:auto;height:1.5rem;vertical-align:middle}#editor[data-v-87004ece]{height:100%;display:block;border:none;width:100%;padding:10px}section[data-v-87004ece]{height:100%}.main-body[data-v-87004ece]{display:flex;flex-direction:column;padding-top:0}.ctrl[data-v-87004ece]{flex-basis:60px;flex-grow:1;flex-shrink:1;display:flex;align-items:center}.preview-wrapper[data-v-87004ece]{box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);padding:0;align-items:center;justify-content:center;display:flex;word-break:break-all;overflow-y:scroll}.main-section[data-v-87004ece]{display:flex;height:100%}.hint[data-v-87004ece]{opacity:.6;margin:20px 0}.preview[data-v-87004ece]{position:relative;margin:0 -20px;width:375px;padding:20px;font-size:14px;box-sizing:border-box;outline:none;box-shadow:0 0 60px rgba(0,0,0,.1)}.preview table[data-v-87004ece]{margin-bottom:10px;border-collapse:collapse;display:table;width:100%!important}.el-form-item[data-v-87004ece]{margin-bottom:0!important}.el-tooltip[data-v-87004ece]{cursor:pointer}uni-page-body[data-v-87004ece],uni-page-refresh[data-v-87004ece]{display:block;box-sizing:border-box;width:100%;height:100%}.editor__header[data-v-87004ece]{padding:0}.main-body[data-v-87004ece]{padding-top:12px;overflow:hidden}.el-main[data-v-87004ece]{transition:all .3s;padding:0;margin:20px;margin-top:0}.container[data-v-87004ece]{transition:all .3s}.textarea-wrapper[data-v-87004ece]{height:100%}.preview-wrapper_night[data-v-87004ece]{overflow-y:inherit;position:relative;left:-3px}.preview-wrapper_night .preview[data-v-87004ece]{background-color:#fff}#output-wrapper[data-v-87004ece]{position:relative;-webkit-user-select:text;-moz-user-select:text;user-select:text}.loading-mask[data-v-87004ece]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:376px;height:101%;padding-top:1px;font-size:15px;color:grey;background-color:#1e1e1e}.loading-mask .loading__img[data-v-87004ece]{position:absolute;left:50%;top:330px;width:50px;height:50px;transform:translate(-50%,-50%);background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAAt1BMVEX///8AAABIz0hHzkdIzkhIz0hIz0hHzkdIzkhFz0VAz0BHzUdIz0hHzkdIzkhIzUhHzUdHzUdIzkhEzEREzERGz0ZIz0hHzUdIzkhIzUhHzkdHzkdHzUdGz0ZIzkhHzkdKzkpIzUhGzUZD00NIzUhGzUZIzkhIzkhHzkdHzkdIzkhHz0dIzUhK1UpHzUdC0EJHzkdHzkdIz0hH1UdHzUdGzkZIzUhJ20lD10NJzklIzkhIzkj////r6/fCAAAAO3RSTlMAACDvoEBg0MAwEI9fz9+A8JDgDx5Ff/r9i+VdbHSDkx9RTRdce+6q6brLb58YSBvtd0oScFTxBxM/v5xq7LMAAAABYktHRACIBR1IAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4wwcCBssFsYwawAAAe9JREFUaN7t2tlywiAUBmABiQY1W6vWbna1i6Z2sYs97/9eNcQ6U40kEMhoh/824qeAxwSo1Wx2MUgimAAQLNNCAanDInWzCAUeahRxUsQx212NxGgaHhMq21sqCHIpdZFpRDoW2ROEtdpY/S1xu8XyEdZZ/BA8VcNbNO6wPIQbAK6akZa2v0rWN0mLk6+G+Gnr3O5qgnR1EjfOQviHCRS7yw02uyELwWGkbHAlCnGR3wkuM4WxLSuGkQNfmLYW5BDE8fUgXcHVXv9oYB45PoGBeQSd5ioaEHSWp+hA0DkMzSNoKFZKI78zuWsQuaA8l3BlEFnm2iL/FrlpZqanFbntZxmjO73IfdbVh31ERjQjj1LImEyYGMn+9xUjbELGKyRObviJI57CTzBdu/b8Ip7CDkkeQuIlQrffY5dB0rtvuqvINHnpqwISR8nTQsExSWbVW7ExSZ4jong1u2ZByJDu7kKsHszkCqQCIl+FLbKLyPtaefwwgWxEP2LvVixiEYtoQgqlHPJJC+XLLqoZRsyvpuKJB0R9XZiA18pfF+Yr3KqKS4qtcFeyVl/FrgNrlN8/aeTun3AlUh34aMPYsqcVOmWmsBMyW1Ysooi487nx/fhKThbwDdVvs0glpz0qObdSyQkchAOAQOUskU3h/AAe7qmqtAqp/QAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOS0xMi0yOFQwODoyNzo0NCswMDowMPJYdAwAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTktMTItMjhUMDg6Mjc6NDQrMDA6MDCDBcywAAAAAElFTkSuQmCC) no-repeat;background-size:cover}.loading-mask span[data-v-87004ece]{position:absolute;left:50%;top:390px;transform:translate(-50%,-50%)}[data-v-87004ece] .preview-table{border-spacing:0}.codeMirror-wrapper[data-v-87004ece]{overflow-x:auto}#app,body,html{width:100%;height:100%;margin:0;padding:0}::-webkit-scrollbar{width:6px;height:6px;background-color:#fff}::-webkit-scrollbar-track{border-radius:6px;background-color:hsla(0,0%,78.4%,.3)}::-webkit-scrollbar-thumb{border-radius:6px;background-color:rgba(144,146,152,.5)}.CodeMirror-hints{position:absolute;z-index:10;overflow-y:auto;margin:0;padding:2px;border-radius:4px;max-height:20em;min-width:200px;font-size:12px;font-family:monospace;color:#333;background-color:#fff;box-shadow:0 4px 8px 0 rgba(0,0,0,.12),0 2px 4px 0 rgba(0,0,0,.08)}.CodeMirror-hint{margin-top:10px;padding:4px 6px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}.CodeMirror-hint:first-of-type{margin-top:0}.CodeMirror-hint:hover{background:#f0f0f0} \ No newline at end of file +.container_night,.container_night .el-main{background-color:#333}.container_night .CodeMirror{caret-color:grey;color:grey;background-color:#1e1e1e;box-shadow:inset 0 0 0 1px rgba(100,37,37,.102)}.container_night .output_night .preview{background-color:#1e1e1e;box-shadow:0 0 70px rgba(0,0,0,.3)}.container_night .output_night .preview-wrapper{background-color:#1e1e1e;box-shadow:inset 0 0 0 1px hsla(0,4.3%,91%,.102)}.container_night .output_night .code-snippet__fix{background-color:#eee}.container_night .cm-s-style-mirror .CodeMirror-matchingbracket{color:#f0f0f0!important;background:#1e1e1e!important}.container_night .cm-s-style-mirror span.cm-tag,.container_night .cm-s-xq-light span.cm-variable-2{color:grey}.container_night .cm-s-xq-light .CodeMirror-activeline-background{background-color:transparent}.container_night .cm-s-xq-light span.cm-string{color:#8e9eb9}.container_night .cm-s-xq-light span.cm-link{color:#84868b}.container_night .editor__header{background-color:#3c3c3c}.container_night .el-button{color:#f0f0f0;background-color:#1e1e1e;border:1px solid transparent}.container_night .el-button.is-plain:focus,.container_night .el-button.is-plain:hover{background:#1e1e1e;color:#f0f0f0;border:1px solid #f0f0f0}.container_night .el-button.is-plain:focus i,.container_night .el-button.is-plain:hover i{color:#f0f0f0}.container_night .about__dialog .el-dialog,.container_night .insert__dialog .el-dialog,.container_night .reset__dialog .el-dialog,.container_night .upload__dialog .el-dialog{background-color:#333}.container_night .about__dialog .el-dialog__body,.container_night .about__dialog .el-dialog__title,.container_night .about__dialog .el-form-item__label,.container_night .insert__dialog .el-dialog__body,.container_night .insert__dialog .el-dialog__title,.container_night .insert__dialog .el-form-item__label,.container_night .reset__dialog .el-dialog__body,.container_night .reset__dialog .el-dialog__title,.container_night .reset__dialog .el-form-item__label,.container_night .upload__dialog .el-dialog__body,.container_night .upload__dialog .el-dialog__title,.container_night .upload__dialog .el-form-item__label{color:#f0f0f0}.container_night .about__dialog .el-tabs__item,.container_night .insert__dialog .el-tabs__item,.container_night .reset__dialog .el-tabs__item,.container_night .upload__dialog .el-tabs__item{color:grey}.container_night .about__dialog .el-tabs__nav-wrap:after,.container_night .insert__dialog .el-tabs__nav-wrap:after,.container_night .reset__dialog .el-tabs__nav-wrap:after,.container_night .upload__dialog .el-tabs__nav-wrap:after{background-color:#84868b}.container_night .about__dialog .is-active,.container_night .insert__dialog .is-active,.container_night .reset__dialog .is-active,.container_night .upload__dialog .is-active{color:#f0f0f0}.container_night .about__dialog .el-upload-dragger,.container_night .insert__dialog .el-upload-dragger,.container_night .reset__dialog .el-upload-dragger,.container_night .upload__dialog .el-upload-dragger{background-color:#1e1e1e}.container_night .el-icon-document,.container_night .el-icon-download,.container_night .el-icon-refresh,.container_night .el-icon-s-grid,.container_night ::v-deep .el-icon-upload{color:#f0f0f0}.container_night ::-webkit-scrollbar{background-color:#1e1e1e}.CodeMirror{padding-bottom:0;height:100%!important;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);font-size:14px;font-family:PingFang SC,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif!important}.CodeMirror-vscrollbar:focus{outline:none}.CodeMirror-scroll{padding:0 20px;overflow-x:hidden!important;overflow-y:scroll!important}.CodeMirror-vscrollbar{width:0;height:0}.CodeMirror-wrap{padding-top:20px;padding-bottom:20px;box-sizing:border-box}.cm-s-style-mirror.CodeMirror{color:#444;font-size:16px;line-height:25px}.cm-s-style-mirror .CodeMirror-scroll{padding:20px;width:100%;box-sizing:border-box;overflow-x:hidden!important;overflow-y:scroll!important}.cm-s-style-mirror div.CodeMirror-selected{background:#e0e0e0}.cm-s-style-mirror .CodeMirror-line::selection,.cm-s-style-mirror .CodeMirror-line>span::selection,.cm-s-style-mirror .CodeMirror-line>span>span::selection{background:#e0e0e0}.cm-s-style-mirror .CodeMirror-line::-moz-selection,.cm-s-style-mirror .CodeMirror-line>span::-moz-selection,.cm-s-style-mirror .CodeMirror-line>span>span::-moz-selection{background:#e0e0e0}.cm-s-style-mirror .CodeMirror-gutters{background:#f5f5f5;border-right:0}.cm-s-style-mirror .CodeMirror-guttermarker{color:#ac4142}.cm-s-style-mirror .CodeMirror-guttermarker-subtle,.cm-s-style-mirror .CodeMirror-linenumber{color:#b0b0b0}.cm-s-style-mirror .CodeMirror-cursor{border-left:1px solid #505050}.cm-s-style-mirror span.cm-comment{color:green}.cm-s-style-mirror span.cm-atom,.cm-s-style-mirror span.cm-number{color:#aa759f}.cm-s-style-mirror span.cm-attribute,.cm-s-style-mirror span.cm-property{color:#90a959}.cm-s-style-mirror span.cm-keyword{color:#023a52}.cm-s-style-mirror span.cm-string{color:#e46918}.cm-s-style-mirror span.cm-variable{color:#90a959}.cm-s-style-mirror span.cm-variable-2{color:#00695f}.cm-s-style-mirror span.cm-variable-3{color:#2e6e8a}.cm-s-style-mirror span.cm-def{color:#d28445}.cm-s-style-mirror span.cm-bracket{color:#202020}.cm-s-style-mirror span.cm-tag{color:#000}.cm-s-style-mirror span.cm-link{color:#b26a00}.cm-s-style-mirror span.cm-error{text-decoration:underline;-webkit-text-decoration-style:wavy;text-decoration-style:wavy;-webkit-text-decoration-color:#df8d8e;text-decoration-color:#df8d8e}.cm-s-style-mirror .CodeMirror-activeline-background{background:#dddcdc}.cm-s-style-mirror .CodeMirror-matchingbracket{color:#202020!important;background-color:rgba(0,0,0,.1)!important}[data-v-cff93f88] .el-dialog{min-width:440px}.style-option-menu.el-dropdown[data-v-32cf930a]{margin:0;width:150px}.style-option-menu.el-dropdown .el-dropdown-link[data-v-32cf930a]{display:flex;align-items:center;justify-content:space-between}.select-item-right[data-v-32cf930a]{float:right;color:#8492a6;font-size:13px}.header-container[data-v-09c87a32]{padding:10px 20px;align-items:center}.dropdowns[data-v-09c87a32]{flex:1}.el-dropdown[data-v-09c87a32]{margin:0 10px}.el-dropdown-link[data-v-09c87a32]{cursor:pointer}.padding-left-3[data-v-09c87a32]{padding-left:3em}.el-dropdown-menu__item--divided.padding-left-3[data-v-09c87a32]{position:relative}.el-dropdown-menu__item--divided.padding-left-3[data-v-09c87a32]:after{content:"";position:absolute;left:0;top:0;width:3em;height:6px;background:#fff}.format-item[data-v-09c87a32]{padding-left:3em;width:180px}.format-item kbd[data-v-09c87a32]{font-size:.75em;float:right;color:#666}[data-v-314554b5] .el-dialog{min-width:420px}[data-v-14061734] .el-dialog{width:55%;min-height:375px;min-width:440px}.tb-options[data-v-14061734]{margin-bottom:20px}.input-table[data-v-14061734] .el-input__inner{border-radius:0}.head-style[data-v-14061734] .el-input__inner{background-color:#f2f2f2}.menu[data-v-283cf1ee]{position:absolute;border-radius:4px;background-color:#fff;box-shadow:0 4px 8px 0 rgba(0,0,0,.12),0 2px 4px 0 rgba(0,0,0,.08);z-index:9999}.menu__group[data-v-283cf1ee]{margin:0;padding:6px 0;border-bottom:1px solid #eee}.menu__group[data-v-283cf1ee]:last-of-type{border-bottom:none}.menu_item[data-v-283cf1ee]{list-style:none;box-sizing:border-box;padding:4px 0 4px 24px;margin-top:10px;min-width:200px;line-height:20px;font-size:12px;color:#333;cursor:pointer}.menu_item[data-v-283cf1ee]:first-of-type{margin-top:0}.menu_item[data-v-283cf1ee]:hover{background:#f0f0f0}.menu_item[data-v-283cf1ee] .el-upload{width:100%}.upload__dialog[data-v-83a42576]{display:flex}[data-v-83a42576] .el-dialog{width:55%;min-width:640px;min-height:615px;margin:auto!important}[data-v-83a42576] .el-upload-dragger{display:flex;flex-flow:column;justify-content:center;width:500px;height:360px}[data-v-83a42576] .el-upload-dragger .el-icon-upload{margin-top:0}[data-v-83a42576] .el-dialog__body{padding-bottom:50px}.upload-panel[data-v-83a42576]{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}.upload-panel .el-select[data-v-83a42576]{align-self:flex-end;margin:0 67.75px 20px;width:100px}.github-panel[data-v-83a42576]{display:flex;justify-content:center}.github-panel.formCustom[data-v-83a42576]{width:100%}.github-panel .formCustomElInput[data-v-83a42576] .CodeMirror{border:1px solid #eee;height:300px!important;font-family:Fira Mono,DejaVu Sans Mono,Menlo,Consolas,Liberation Mono,Monaco,Lucida Console,monospace!important;line-height:20px}.github-panel .formCustomElInput[data-v-83a42576] .CodeMirror .CodeMirror-scroll{padding:10px}.setting-form[data-v-83a42576]{width:100%}.setting-form .el-form-item[data-v-83a42576]{margin:15px}.setting-form .el-form-item[data-v-83a42576]:last-child{text-align:right}.bounceInRight[data-v-912bf7ea]{animation-name:bounceInRight-912bf7ea;animation-duration:1s;animation-fill-mode:both}@keyframes bounceInRight-912bf7ea{0%,60%,75%,90%,to{transition-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}.loading[data-v-1bcf5940]{position:fixed;z-index:99999;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100vw;height:100vh;font-size:18px;color:#303133;background-color:#f2f2f2}.loading[data-v-1bcf5940]:before{content:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAAt1BMVEX///8AAABIz0hHzkdIzkhIz0hIz0hHzkdIzkhFz0VAz0BHzUdIz0hHzkdIzkhIzUhHzUdHzUdIzkhEzEREzERGz0ZIz0hHzUdIzkhIzUhHzkdHzkdHzUdGz0ZIzkhHzkdKzkpIzUhGzUZD00NIzUhGzUZIzkhIzkhHzkdHzkdIzkhHz0dIzUhK1UpHzUdC0EJHzkdHzkdIz0hH1UdHzUdGzkZIzUhJ20lD10NJzklIzkhIzkj////r6/fCAAAAO3RSTlMAACDvoEBg0MAwEI9fz9+A8JDgDx5Ff/r9i+VdbHSDkx9RTRdce+6q6brLb58YSBvtd0oScFTxBxM/v5xq7LMAAAABYktHRACIBR1IAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4wwcCBssFsYwawAAAe9JREFUaN7t2tlywiAUBmABiQY1W6vWbna1i6Z2sYs97/9eNcQ6U40kEMhoh/824qeAxwSo1Wx2MUgimAAQLNNCAanDInWzCAUeahRxUsQx212NxGgaHhMq21sqCHIpdZFpRDoW2ROEtdpY/S1xu8XyEdZZ/BA8VcNbNO6wPIQbAK6akZa2v0rWN0mLk6+G+Gnr3O5qgnR1EjfOQviHCRS7yw02uyELwWGkbHAlCnGR3wkuM4WxLSuGkQNfmLYW5BDE8fUgXcHVXv9oYB45PoGBeQSd5ioaEHSWp+hA0DkMzSNoKFZKI78zuWsQuaA8l3BlEFnm2iL/FrlpZqanFbntZxmjO73IfdbVh31ERjQjj1LImEyYGMn+9xUjbELGKyRObviJI57CTzBdu/b8Ip7CDkkeQuIlQrffY5dB0rtvuqvINHnpqwISR8nTQsExSWbVW7ExSZ4jong1u2ZByJDu7kKsHszkCqQCIl+FLbKLyPtaefwwgWxEP2LvVixiEYtoQgqlHPJJC+XLLqoZRsyvpuKJB0R9XZiA18pfF+Yr3KqKS4qtcFeyVl/FrgNrlN8/aeTun3AlUh34aMPYsqcVOmWmsBMyW1Ysooi487nx/fhKThbwDdVvs0glpz0qObdSyQkchAOAQOUskU3h/AAe7qmqtAqp/QAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOS0xMi0yOFQwODoyNzo0NCswMDowMPJYdAwAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTktMTItMjhUMDg6Mjc6NDQrMDA6MDCDBcywAAAAAElFTkSuQmCC);width:100px;height:100px;margin-bottom:26px}.loading_night[data-v-1bcf5940]{color:#bbb;background-color:#303133}.fade-enter[data-v-1bcf5940],.fade-leave-to[data-v-1bcf5940]{opacity:0}.fade-enter-to[data-v-1bcf5940],.fade-leave[data-v-1bcf5940]{opacity:1}.fade-enter-active[data-v-1bcf5940],.fade-leave-active[data-v-1bcf5940]{transition:opacity 1s}[data-v-87004ece]{box-sizing:border-box;margin:0;padding:0}button[data-v-87004ece],input[data-v-87004ece],textarea[data-v-87004ece]{font-family:inherit}h1[data-v-87004ece],h2[data-v-87004ece],h3[data-v-87004ece],h4[data-v-87004ece],h5[data-v-87004ece],h6[data-v-87004ece]{font-weight:400}em[data-v-87004ece]{font-style:normal!important}body[data-v-87004ece],html[data-v-87004ece]{height:100%;font-family:PingFang SC,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif}.el-message__icon[data-v-87004ece]{display:none}.container[data-v-87004ece]{height:100%;display:flex;flex-direction:column}.web-title[data-v-87004ece]{margin:0 15px 0 5px}.web-icon[data-v-87004ece]{width:auto;height:1.5rem;vertical-align:middle}#editor[data-v-87004ece]{height:100%;display:block;border:none;width:100%;padding:10px}section[data-v-87004ece]{height:100%}.main-body[data-v-87004ece]{display:flex;flex-direction:column;padding-top:0}.ctrl[data-v-87004ece]{flex-basis:60px;flex-grow:1;flex-shrink:1;display:flex;align-items:center}.preview-wrapper[data-v-87004ece]{box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);padding:0;align-items:center;justify-content:center;display:flex;word-break:break-all;overflow-y:scroll}.main-section[data-v-87004ece]{display:flex;height:100%}.hint[data-v-87004ece]{opacity:.6;margin:20px 0}.preview[data-v-87004ece]{position:relative;margin:0 -20px;width:375px;padding:20px;font-size:14px;box-sizing:border-box;outline:none;box-shadow:0 0 60px rgba(0,0,0,.1)}.preview table[data-v-87004ece]{margin-bottom:10px;border-collapse:collapse;display:table;width:100%!important}.el-form-item[data-v-87004ece]{margin-bottom:0!important}.el-tooltip[data-v-87004ece]{cursor:pointer}uni-page-body[data-v-87004ece],uni-page-refresh[data-v-87004ece]{display:block;box-sizing:border-box;width:100%;height:100%}.editor__header[data-v-87004ece]{padding:0}.main-body[data-v-87004ece]{padding-top:12px;overflow:hidden}.el-main[data-v-87004ece]{transition:all .3s;padding:0;margin:20px;margin-top:0}.container[data-v-87004ece]{transition:all .3s}.textarea-wrapper[data-v-87004ece]{height:100%}.preview-wrapper_night[data-v-87004ece]{overflow-y:inherit;position:relative;left:-3px}.preview-wrapper_night .preview[data-v-87004ece]{background-color:#fff}#output-wrapper[data-v-87004ece]{position:relative;-webkit-user-select:text;-moz-user-select:text;user-select:text}.loading-mask[data-v-87004ece]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:376px;height:101%;padding-top:1px;font-size:15px;color:grey;background-color:#1e1e1e}.loading-mask .loading__img[data-v-87004ece]{position:absolute;left:50%;top:330px;width:50px;height:50px;transform:translate(-50%,-50%);background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAAt1BMVEX///8AAABIz0hHzkdIzkhIz0hIz0hHzkdIzkhFz0VAz0BHzUdIz0hHzkdIzkhIzUhHzUdHzUdIzkhEzEREzERGz0ZIz0hHzUdIzkhIzUhHzkdHzkdHzUdGz0ZIzkhHzkdKzkpIzUhGzUZD00NIzUhGzUZIzkhIzkhHzkdHzkdIzkhHz0dIzUhK1UpHzUdC0EJHzkdHzkdIz0hH1UdHzUdGzkZIzUhJ20lD10NJzklIzkhIzkj////r6/fCAAAAO3RSTlMAACDvoEBg0MAwEI9fz9+A8JDgDx5Ff/r9i+VdbHSDkx9RTRdce+6q6brLb58YSBvtd0oScFTxBxM/v5xq7LMAAAABYktHRACIBR1IAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4wwcCBssFsYwawAAAe9JREFUaN7t2tlywiAUBmABiQY1W6vWbna1i6Z2sYs97/9eNcQ6U40kEMhoh/824qeAxwSo1Wx2MUgimAAQLNNCAanDInWzCAUeahRxUsQx212NxGgaHhMq21sqCHIpdZFpRDoW2ROEtdpY/S1xu8XyEdZZ/BA8VcNbNO6wPIQbAK6akZa2v0rWN0mLk6+G+Gnr3O5qgnR1EjfOQviHCRS7yw02uyELwWGkbHAlCnGR3wkuM4WxLSuGkQNfmLYW5BDE8fUgXcHVXv9oYB45PoGBeQSd5ioaEHSWp+hA0DkMzSNoKFZKI78zuWsQuaA8l3BlEFnm2iL/FrlpZqanFbntZxmjO73IfdbVh31ERjQjj1LImEyYGMn+9xUjbELGKyRObviJI57CTzBdu/b8Ip7CDkkeQuIlQrffY5dB0rtvuqvINHnpqwISR8nTQsExSWbVW7ExSZ4jong1u2ZByJDu7kKsHszkCqQCIl+FLbKLyPtaefwwgWxEP2LvVixiEYtoQgqlHPJJC+XLLqoZRsyvpuKJB0R9XZiA18pfF+Yr3KqKS4qtcFeyVl/FrgNrlN8/aeTun3AlUh34aMPYsqcVOmWmsBMyW1Ysooi487nx/fhKThbwDdVvs0glpz0qObdSyQkchAOAQOUskU3h/AAe7qmqtAqp/QAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOS0xMi0yOFQwODoyNzo0NCswMDowMPJYdAwAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTktMTItMjhUMDg6Mjc6NDQrMDA6MDCDBcywAAAAAElFTkSuQmCC) no-repeat;background-size:cover}.loading-mask span[data-v-87004ece]{position:absolute;left:50%;top:390px;transform:translate(-50%,-50%)}[data-v-87004ece] .preview-table{border-spacing:0}.codeMirror-wrapper[data-v-87004ece]{overflow-x:auto}#app,body,html{width:100%;height:100%;margin:0;padding:0}::-webkit-scrollbar{width:6px;height:6px;background-color:#fff}::-webkit-scrollbar-track{border-radius:6px;background-color:hsla(0,0%,78.4%,.3)}::-webkit-scrollbar-thumb{border-radius:6px;background-color:rgba(144,146,152,.5)}.CodeMirror-hints{position:absolute;z-index:10;overflow-y:auto;margin:0;padding:2px;border-radius:4px;max-height:20em;min-width:200px;font-size:12px;font-family:monospace;color:#333;background-color:#fff;box-shadow:0 4px 8px 0 rgba(0,0,0,.12),0 2px 4px 0 rgba(0,0,0,.08)}.CodeMirror-hint{margin-top:10px;padding:4px 6px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}.CodeMirror-hint:first-of-type{margin-top:0}.CodeMirror-hint:hover{background:#f0f0f0} \ No newline at end of file diff --git a/index.html b/index.html index 25825c0..52dedf3 100644 --- a/index.html +++ b/index.html @@ -1,3 +1,8 @@ -微信 Markdown 编辑器 | Doocs 开源社区
\ No newline at end of file diff --git a/js/app.9ac1defc.js b/js/app.9ac1defc.js new file mode 100644 index 0000000..60f5876 --- /dev/null +++ b/js/app.9ac1defc.js @@ -0,0 +1,3 @@ +(function(e){function t(t){for(var i,r,a=t[0],l=t[1],c=t[2],u=0,m=[];u(/^(post)|(put)|(delete)$/i.test(e.method)&&e.data&&e.data.upload&&(e.headers["Content-Type"]="multipart/form-data"),e),e=>{Promise.reject(e)}),s.interceptors.response.use(e=>e.data?e.data:Promise.reject(e),e=>Promise.reject(e)),t["a"]=s},2:function(e,t){},"2b39":function(e,t,o){},3:function(e,t){},3479:function(e,t,o){"use strict";o.r(t);var i=o("ff9b"),n=o("ccbf"),s=o.n(n),r=o("acd4");o("b6f4"),o("e3f8"),o("8128"),o("fa17"),o("0b4a"),o("a6e0"),o("7fa7"),o("697d"),o("beaf"),o("6864"),o("8d07"),o("a176");i["default"].component(n["Message"].name,n["Message"]),i["default"].prototype.$loading=n["Loading"].service,i["default"].prototype.$message=n["Message"];var a=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t("div",{attrs:{id:"app"}},[t(o.CodemirrorEditor)],1)},l=[],c=function(){var e=this,t=e._self._c;return t("div",{staticClass:"container",class:{container_night:e.nightMode}},[t("el-container",[t("el-header",{staticClass:"editor__header"},[t("editor-header",{ref:"header",on:{addFormat:e.addFormat,formatContent:e.formatContent,refresh:e.onEditorRefresh,cssChanged:e.cssChanged,"import-md":e.importMD,download:e.downloadEditorContent,export:e.exportEditorContent,showCssEditor:function(t){e.showCssEditor=!e.showCssEditor},"show-about-dialog":function(t){e.aboutDialogVisible=!0},"show-dialog-form":function(t){e.insertFormDialogVisible=!0},"show-dialog-upload-img":function(t){e.dialogUploadImgVisible=!0},startCopy:function(t){e.isCoping=!0,e.backLight=!0},endCopy:e.endCopy}})],1),t("el-main",{staticClass:"main-body"},[t("el-row",{staticClass:"main-section"},[t("el-col",{ref:"codeMirrorWrapper",staticClass:"codeMirror-wrapper",attrs:{span:12},nativeOn:{contextmenu:function(t){return t.preventDefault(),e.openMenu.apply(null,arguments)}}},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.source,expression:"source"}],attrs:{id:"editor",type:"textarea",placeholder:"Your markdown text here."},domProps:{value:e.source},on:{input:function(t){t.target.composing||(e.source=t.target.value)}}})]),t("el-col",{ref:"preview",staticClass:"preview-wrapper",class:{"preview-wrapper_night":e.nightMode&&e.isCoping},attrs:{span:12,id:"preview"}},[t("section",{class:{output_night:e.nightMode&&!e.backLight},attrs:{id:"output-wrapper"}},[t("div",{staticClass:"preview"},[t("section",{attrs:{id:"output"},domProps:{innerHTML:e._s(e.output)}}),e.nightMode&&e.isCoping?t("div",{staticClass:"loading-mask"},[t("div",{staticClass:"loading__img"}),t("span",[e._v("正在生成")])]):e._e()])])]),t("css-editor",{attrs:{"show-css-editor":e.showCssEditor}})],1)],1)],1),t("upload-img-dialog",{attrs:{visible:e.dialogUploadImgVisible},on:{close:function(t){e.dialogUploadImgVisible=!1},beforeUpload:e.beforeUpload,uploadImage:e.uploadImage,uploaded:e.uploaded}}),t("about-dialog",{attrs:{visible:e.aboutDialogVisible},on:{close:function(t){e.aboutDialogVisible=!1}}}),t("insert-form-dialog",{attrs:{visible:e.insertFormDialogVisible},on:{close:function(t){e.insertFormDialogVisible=!1}}}),t("right-click-menu",{attrs:{visible:e.rightClickMenuVisible,left:e.mouseLeft,top:e.mouseTop},on:{menuTick:e.onMenuEvent,closeMenu:function(t){e.rightClickMenuVisible=!1}}}),t("run-loading")],1)},d=[],u=(o("a3a9"),o("aa9c"),o("c6de")),m=o.n(u),p=o("f14e"),f=o.n(p),h={builtinFonts:[{label:"无衬线",value:"-apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif",desc:"Abc"},{label:"衬线",value:"Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif",desc:"Abc"}],sizeOption:[{label:"12px",value:"12px",desc:"更小"},{label:"13px",value:"13px",desc:"稍小"},{label:"14px",value:"14px",desc:"推荐"},{label:"15px",value:"15px",desc:"稍大"},{label:"16px",value:"16px",desc:"更大"}],colorOption:[{label:"经典蓝",value:"rgba(15, 76, 129, 1)",desc:"最新流行"},{label:"翡翠绿",value:"rgba(0, 152, 116, 1)",desc:"优雅清新"},{label:"活力橘",value:"rgba(250, 81, 81, 1)",desc:"热情活泼"}],codeThemeOption:[{label:"github",value:"https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/npm/highlight.js@11.5.1/styles/github.min.css",desc:"light"},{label:"solarized-light",value:"https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/npm/highlight.js@11.5.1/styles/solarized-light.min.css",desc:"light"},{label:"atom-one-dark",value:"https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/npm/highlight.js@11.5.1/styles/atom-one-dark.min.css",desc:"dark"},{label:"obsidian",value:"https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/npm/highlight.js@11.5.1/styles/obsidian.min.css",desc:"dark"},{label:"vs2015",value:"https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/npm/highlight.js@11.5.1/styles/vs2015.min.css",desc:"dark"}],form:{rows:1,cols:1}},g=o("57c9"),b=o.n(g),_=o("4df3"),C=o.n(_);m.a.use(C()({throwOnError:!1,output:"html"}));class S{constructor(e){this.opts=e;let t=[],o=0,i=new Map,n=(e,t)=>Object.assign({},e,t);this.buildTheme=e=>{let t={},o=n(e.BASE,{"font-family":this.opts.fonts,"font-size":this.opts.size});for(let s in e.inline)if(e.inline.hasOwnProperty(s)){let o=e.inline[s];t[s]=n(e.BASE,o)}let i=n(o,{});for(let s in e.block)if(e.block.hasOwnProperty(s)){let o=e.block[s];t[s]=n(i,o)}return t};let s=(e,t)=>{let o=[],n=i[e];if(!n)return"";for(const i in n)o.push(i+":"+n[i]);return`style="${o.join(";")+(t||"")}"`},r=(e,i)=>(t.push([++o,e,i]),o);this.buildFootnotes=()=>{let e=t.map(e=>e[1]===e[2]?`[${e[0]}]: ${e[1]}
`:`[${e[0]}] ${e[1]}: ${e[2]}
`);return e.length?`

引用链接

${e.join("\n")}

`:""},this.buildAddition=()=>"\n \n ",this.setOptions=e=>{this.opts=n(this.opts,e)},this.hasFootnotes=()=>0!==t.length,this.getRenderer=e=>{t=[],o=0,i=this.buildTheme(this.opts.theme);let n=new u["Renderer"];return n.heading=(e,t)=>{switch(t){case 1:return`

${e}

`;case 2:return`

${e}

`;case 3:return`

${e}

`;default:return`

${e}

`}},n.paragraph=e=>-1!=e.indexOf("${e}

`,n.blockquote=e=>(e=e.replace(//g,`

`),`

${e}
`),n.code=(e,t)=>t.startsWith("mermaid")?(setTimeout(()=>{var e;null===(e=window.mermaid)||void 0===e||e.run()},0),`
${e}
`):(t=b.a.getLanguage(t)?t:"plaintext",e=b.a.highlight(e,{language:t}).value,e=e.replace(/\r\n/g,"
").replace(/\n/g,"
").replace(/(>[^<]+)|(^[^<]+)/g,(function(e){return e.replace(/\s/g," ")})),`
${e}
`),n.codespan=(e,t)=>`${e}`,n.listitem=e=>`
  • <%s/>${e}
  • `,n.list=(e,t,o)=>{e=e.replace(/<\/*p .*?>/g,"").replace(/<\/*p>/g,"");let i=e.split("<%s/>");if(!t)return e=i.join("• "),`
      ${e}
    `;e=i[0];for(let n=1;n${e}`},n.image=(e,t,o)=>{let i="";o&&(i=`
    ${o}
    `);let n=s("figure"),r=s("image");return`
    ${o}${i}
    `},n.link=(t,o,i)=>{if(t.startsWith("https://mp.weixin.qq.com"))return`${i}`;if(t===i)return i;if(e){let e=r(o||i,t);return`${i}[${e}]`}return`${i}`},n.strong=e=>`${e}`,n.em=e=>`${e}`,n.table=(e,t)=>`
    ${e}${t}
    `,n.tablecell=(e,t)=>`${e}`,n.hr=()=>`
    `,n}}}var y=S,k='# 示例文章:Google 搜索的即时自动补全功能究竟是如何“工作”的?\n\n> Google 搜索**自动补全功能**的强大,相信不少朋友都能感受到,它帮助我们更快地“补全”我们所要输入的搜索关键字。那么,它怎么知道我们要输入什么内容?它又是如何工作的?在这篇文章里,我们一起来看看。\n\n## 使用自动补全\n\nGoogle 搜索的自动补全功能可以在 Google 搜索应用的大多数位置使用,包括 [Google](https://www.google.com/) 主页、适用于 IOS 和 Android 的 Google 应用,我们只需要在 Google 搜索框上开始键入关键字,就可以看到联想词了。\n\n![](https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303019705-c161ce00-d245-446a-b81c-42ec91474a40.gif)\n\n在上图示例中,我们可以看到,输入关键字 `juej`,Google 搜索会联想到“掘金”、“掘金小册”、“绝句”等等,好处就是,我们无须输入完整的关键字即可轻松完成针对这些 topics 的搜索。\n\n谷歌搜索的自动补全功能对于使用移动设备的用户来说特别有用,用户可以轻松在难以键入的小屏幕上完成搜索。当然,对于移动设备用户和台式机用户而言,这都节省了大量的时间。根据 Google 官方报告,自动补全功能可以减少大约 25% 的打字,累积起来,预计每天可以节省 200 多年的打字时间。是的,每天!\n\n> 注意,本文所提到的“**联想词**”与“**预测**”,是同一个意思。\n\n## 基于“预测”而非“建议”\n\nGoogle 官方将自动补全功能称之为“预测”,而不是“建议”,为什么呢?其实是有充分理由的。自动补全功能是为了**帮助用户完成他们打算进行的搜索**,而不是建议用户要执行什么搜索。\n\n那么,Google 是如何确定这些“预测”的?其实,Google 会根据趋势搜索 [trends](https://trends.google.com/trends/?geo=US) 给到我们这些“预测”。简单来说,哪个热门、哪个搜索频率高,就更可能推给我们。当然,这也与我们当前所处的位置以及我们的搜索历史相关。\n\n另外,这些“预测”也会随着我们键入的关键字的变更而更改。例如,当我们把键入的关键字从 `juej` 更改为 `juex` 时,与“掘金”相关的预测会“消失”,同时,与“觉醒”、“决心”相关联的词会出现。\n\n![](https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303068169-386a99cb-143b-4ded-a859-1b7a4c4b5bd3.gif)\n\n## 为什么看不到某些联想词?\n\n如果我们在输入某个关键字时看不到联想词,那么表明 Google 的算法可能检测到:\n\n- 这个关键字不是热门字词;\n- 搜索的字词太新了,我们可能需要等待几天或几周才能看到联想词;\n- 这是一个侮辱性或敏感字词,这个搜索字词违反了 Google 的相关政策。更加详细的情况,可以了解 [Google 搜索自动补全政策](https://support.google.com/websearch/answer/7368877)。\n\n## 为什么会看到某些不当的联想词?\n\nGoogle 拥有专门设计的系统,可以自动捕获不适当的预测结果而不显示出来。然而,Google 每天需要处理数十亿次搜索,这意味着 Google 每天会显示数十亿甚至上百亿条预测。再好的系统,也可能存在缺陷,不正确的预测也可能随时会出现。\n\n我们作为 Google 搜索的用户,如果认定某条预测违反了相关的搜索自动补全政策,可以进行举报反馈,点击右下角“**举报不当的联想查询**”并勾选相关选项即可。\n\n![](https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303098026-cac215dc-42c9-462a-a359-dcfb12ed3234.gif)\n\n## 如何实现自动补全算法?\n\n目前,Google 官方似乎并没有公开搜索自动补全的算法实现,但是业界在这方面已经有了不少研究。\n\n一个好的自动补全器必须是快速的,并且在用户键入下一个字符后立即更新联想词列表。**自动补全器的核心是一个函数,它接受输入的前缀,并搜索以给定前缀开头的词汇或语句列表**。通常来说,只需要返回少量的数目即可。\n\n接下来,我们先从一个简单且低效的实现开始,并在此基础上逐步构建更高效的方法。\n\n### 词汇表实现\n\n一个**简单粗暴的实现方式**是:顺序查找词汇表,依次检查每个词汇,看它是否以给定的前缀开头。\n\n但是,此方法需要将前缀与每个词汇进行匹配检查,若词汇量较少,这种方式可能勉强行得通。但是,如果词汇量规模较大,效率就太低了。\n\n一个**更好的实现方式是**:让词汇按字典顺序排序。借助二分搜索算法,可以快速搜索有序词汇表中的前缀。由于二分搜索的每一步都会将搜索的范围减半,因此,总的搜索时间与词汇表中单词数量的对数成正比,即时间复杂度是 `O(log N)`。二分搜索的性能很好,但有没有更好的实现呢?当然有,往下看。\n\n### 前缀树实现\n\n通常来说,许多词汇都以相同的前缀开头,比如 `need`、`nested` 都以 `ne` 开头,`seed`、`speed` 都以 `s` 开头。要是为每个单词分别存储公共前缀似乎很浪费。\n\n\n![](https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303128008-93cf798d-2662-4eec-8f80-2e07436aebfe.png)\n\n\n前缀树是一种利用公共前缀来加速补全速度的数据结构。前缀树在节点树中排列一组单词,单词沿着从根节点到叶子节点的路径存储,树的层次对应于前缀的字母位置。\n\n前缀的补全是顺着前缀定义的路径来查找的。例如,在上图的前缀树中,前缀 `ne` 对应于从子节点取左边缘 `N` 和唯一边缘 `E` 的路径。然后可以通过继续遍历从 `E` 节点可以达到的所有叶节点来生成补全列表。在图中,`ne` 的补全可以是两个分支:`-ed` 和 `-sted`。如果在数中找不到由前缀定义的路径,则说明词汇表中不包含以该前缀开头的单词。\n\n### 有限状态自动机(DFA)实现\n\n前缀树可以有效处理公共前缀,但是,对于其他共享词部分,仍会分别存储在每个分支中。比如,后缀 `ed`、`ing`、`tion` 在英文单词中特别常见。在上一个例子中,`e`、`d` 分别存放在了每一个分支上。\n\n有没有一种方法可以更加节省存储空间呢?有的,那就是 DFA。\n\n
    \n
    \n\n在上面的例子中,单词 `need`、`nested`、`seed` 和 `speed` 仅由 9 个节点组成,而上一张图中的前缀树包含了 17 个节点。\n\n可以看出,最小化前缀树 DFA 可以在很大程度上减少数据结构的大小。即使词汇量很大,最小化 DFA 通常也适合在内存中存储,避免昂贵的磁盘访问是实现快速自动补全的关键。\n\n### 一些扩展\n\n上面介绍了如何利用合理的数据结构实现基本的自动补全功能。这些数据结构可以通过多种方式进行扩展,从而改善用户体验。\n\n通常,满足特定前缀的词汇可能很多,而用户界面上能够显示的却不多,我们更希望能显示最常搜索或者最有价值的词汇。这通常可以通过为词汇表中的每个单词增加一个代表单词值的**权重** `weight`,并且按照权重高低来排序自动补全列表。\n\n- 对于排序后的词汇表来说,在词汇表每个元素上增加 `weight` 属性并不难;\n- 对于前缀树来说,将 `weight` 存储在叶子节点中,也是很简单的一个实现;\n- 对于 `DFA` 来说,则较为复杂。因为一个叶子节点可以通过多条路径到达。一种解决方案是将权重关联到路径而不是叶子节点。\n\n目前有不少开源库都提供了这个功能,比如主流的搜索引擎框架 [Elasticsearch](https://www.elastic.co/products/elasticsearch)、[Solr](https://lucene.apache.org/solr/) 等,基于此,我们可以实现高效而强大的自动补全功能。\n\n#### 推荐阅读\n\n- [阿里又一个 20k+ stars 开源项目诞生,恭喜 fastjson!](https://mp.weixin.qq.com/s/RNKDCK2KoyeuMeEs6GUrow)\n- [刷掉 90% 候选人的互联网大厂海量数据面试题(附题解 + 方法总结)](https://mp.weixin.qq.com/s/rjGqxUvrEqJNlo09GrT1Dw)\n- [好用!期待已久的文本块功能究竟如何在 Java 13 中发挥作用?](https://mp.weixin.qq.com/s/kalGv5T8AZGxTnLHr2wDsA)\n- [2019 GitHub 开源贡献排行榜新鲜出炉!微软谷歌领头,阿里跻身前 12!](https://mp.weixin.qq.com/s/_q812aGD1b9QvZ2WFI0Qgw)\n\n---\n\n欢迎关注我的公众号“**Doocs**”,原创技术文章第一时间推送。\n\n
    \n \n
    \n',O="/*\n 按Ctrl/Command+F可格式化\n*/\n/* 一级标题样式 */\nh1 {\n}\n/* 二级标题样式 */\nh2 {\n}\n/* 三级标题样式 */\nh3 {\n}\n/* 四级标题样式 */\nh4 {\n}\n/* 图片样式 */\nimage {\n}\n/* 引用样式 */\nblockquote {\n}\n/* 引用段落样式 */\nblockquote_p {\n}\n/* 段落样式 */\np {\n}\n/* 分割线样式 */\nhr {\n}\n/* 行内代码样式 */\ncodespan {\n}\n/* 粗体样式 */\nstrong {\n}\n/* 链接样式 */\nlink {\n}\n/* 微信链接样式 */\nwx_link {\n}\n/* 有序列表样式 */\nol {\n}\n/* 无序列表样式 */\nul {\n}\n/* 列表项样式 */\nli {\n}\n/* 代码块样式 */\ncode {\n}\n",w=(o("3723"),o("6da1"),o("ad98"),o("2658")),v=o.n(w),x=o("53da"),$=o.n(x),E=o("a305"),M=o.n(E);let T="#3f3f3f";var I={BASE:{"text-align":"left","line-height":"1.75"},block:{h1:{"font-size":"1.2em","text-align":"center","font-weight":"bold",display:"table",margin:"2em auto 1em",padding:"0 1em","border-bottom":"2px solid rgba(0, 152, 116, 0.9)",color:T},h2:{"font-size":"1.2em","text-align":"center","font-weight":"bold",display:"table",margin:"4em auto 2em",padding:"0 0.2em",background:"rgba(0, 152, 116, 0.9)",color:"#fff"},h3:{"font-weight":"bold","font-size":"1.1em",margin:"2em 8px 0.75em 0","line-height":"1.2","padding-left":"8px","border-left":"3px solid rgba(0, 152, 116, 0.9)",color:T},h4:{"font-weight":"bold","font-size":"1em",margin:"2em 8px 0.5em",color:"rgba(66, 185, 131, 0.9)"},p:{margin:"1.5em 8px","letter-spacing":"0.1em",color:T},blockquote:{"font-style":"normal","border-left":"none",padding:"1em","border-radius":"8px",color:"rgba(0,0,0,0.5)",background:"#f7f7f7",margin:"2em 8px"},blockquote_p:{"letter-spacing":"0.1em",color:"rgb(80, 80, 80)","font-size":"1em",display:"block"},code_pre:{"font-size":"14px","overflow-x":"auto","border-radius":"8px",padding:"1em","line-height":"1.5",margin:"10px 8px"},code:{margin:0,"white-space":"nowrap","font-family":"Menlo, Operator Mono, Consolas, Monaco, monospace"},image:{"border-radius":"4px",display:"block",margin:"0.1em auto 0.5em",width:"100% !important"},ol:{"margin-left":"0","padding-left":"1em",color:T},ul:{"margin-left":"0","padding-left":"1em","list-style":"circle",color:T},footnotes:{margin:"0.5em 8px","font-size":"80%",color:T},figure:{margin:"1.5em 8px",color:T},hr:{"border-style":"solid","border-width":"1px 0 0","border-color":"rgba(0,0,0,0.1)","-webkit-transform-origin":"0 0","-webkit-transform":"scale(1, 0.5)","transform-origin":"0 0",transform:"scale(1, 0.5)"}},inline:{listitem:{"text-indent":"-1em",display:"block",margin:"0.2em 8px",color:T},codespan:{"font-size":"90%",color:"#d14",background:"rgba(27,31,35,.05)",padding:"3px 5px","border-radius":"4px","word-break":"break-all"},link:{color:"#576b95"},wx_link:{color:"#576b95","text-decoration":"none"},strong:{color:"rgba(15, 76, 129, 0.9)","font-weight":"bold"},table:{"border-collapse":"collapse","text-align":"center",margin:"1em 8px",color:T},thead:{background:"rgba(0, 0, 0, 0.05)","font-weight":"bold",color:T},td:{border:"1px solid #dfdfdf",padding:"0.25em 0.5em",color:T},footnote:{"font-size":"12px",color:T},figcaption:{"text-align":"center",color:"#888","font-size":"0.8em"}}};const D=(e,t)=>{const o=JSON.parse(JSON.stringify(e));return o.block.h1["border-bottom"]="2px solid "+t,o.block.h2["background"]=t,o.block.h3["border-left"]="3px solid "+t,o.block.h4["color"]=t,o.inline.strong["color"]=t,o};function A(e){return t=>D(e,t)}function P(e,t){return D(e,t)}function R(e){return function(t){const o=JSON.parse(JSON.stringify(e));return o.block.h1["font-size"]=1.14*t+"px",o.block.h2["font-size"]=1.1*t+"px",o.block.h3["font-size"]=t+"px",o.block.h4["font-size"]=t+"px",o}}const j=A(I),K=R(I);function B(e,t,o){const i=D(o,t);return i.block.h1=Object.assign(i.block.h1,e.h1),i.block.h2=Object.assign(i.block.h2,e.h2),i.block.h3=Object.assign(i.block.h3,e.h3),i.block.h4=Object.assign(i.block.h4,e.h4),i.block.code=Object.assign(i.block.code,e.code),i.block.p=Object.assign(i.block.p,e.p),i.block.hr=Object.assign(i.block.hr,e.hr),i.block.blockquote=Object.assign(i.block.blockquote,e.blockquote),i.block.blockquote_p=Object.assign(i.block.blockquote_p,e.blockquote_p),i.block.image=Object.assign(i.block.image,e.image),i.inline.strong=Object.assign(i.inline.strong,e.strong),i.inline.codespan=Object.assign(i.inline.codespan,e.codespan),i.inline.link=Object.assign(i.inline.link,e.link),i.inline.wx_link=Object.assign(i.inline.wx_link,e.wx_link),i.block.ul=Object.assign(i.block.ul,e.ul),i.block.ol=Object.assign(i.block.ol,e.ol),i.inline.listitem=Object.assign(i.inline.listitem,e.li),i}function L(e){let t,o;while(-1!==(t=e.indexOf("/*"))&&-1!==(o=e.indexOf("*/")))e=e.substring(0,t)+e.substring(o+2);let i={};while(e.length>0&&-1!==e.indexOf("{")&&-1!==e.indexOf("}")){const t=e.indexOf("{"),o=e.indexOf("}");function n(e){let t={};return e.forEach(e=>{const o=e.indexOf(":"),i=e.substring(0,o).trim();t[i]=e.substring(o+1).trim()}),t}let s=e.substring(t+1,o).split(";").map(e=>e.trim()).filter(e=>e.length>0);s=n(s);let r=e.substring(0,t).split(",").map(e=>e.trim());r.forEach(e=>{i[e]||(i[e]={}),Object.keys(s).forEach(t=>{i[e][t]=s[t]})}),e=e.slice(o+1).trim()}return i}function q(e,t){const o=e.getValue(0);o?localStorage.setItem(t,o):localStorage.removeItem(t)}function U(e){return v.a.format(e,{parser:"markdown",plugins:[M.a]})}function F(e){return v.a.format(e,{parser:"css",plugins:[$.a]})}function z(e){const t=document.createElement("a");t.download="content.md",t.style.display="none";const o=new Blob([e]);t.href=URL.createObjectURL(o),document.body.appendChild(t),t.click(),document.body.removeChild(t)}function H(){const e=document.querySelector("#output");n(e);const t=e.innerHTML,o=document.createElement("a");o.download="content.html",o.style.display="none";let i=new Blob([`
    ${t}
    `]);function n(e){function t(e,t=["width","height"]){const o=getComputedStyle(e,null);return Object.entries(o).filter(([e])=>o.getPropertyValue(e)&&!t.includes(e)).map(([e,t])=>`${e}:${t};`).join("")}switch(!0){case o(e):case i(e):case s(e):e.setAttribute("style",t(e));default:}function o(e){return"PRE"===e.tagName&&Array.from(e.classList).includes("code__pre")}function i(e){return"CODE"===e.tagName&&Array.from(e.classList).includes("prettyprint")}function s(e){return"SPAN"===e.tagName&&(i(e.parentElement)||i(e.parentElement.parentElement))}e.children.length&&Array.from(e.children).forEach(e=>n(e))}o.href=URL.createObjectURL(i),document.body.appendChild(o),o.click(),document.body.removeChild(o)}function N({data:e,rows:t,cols:o}){let i="";for(let n=0;n1?n-1:n;t.push(1===n?"---":e[`k_${o}_${i}`]||" ")}i+=t.join(" | "),i+=" |\n"}return i}function G(e){return new Promise((t,o)=>{const i=new FileReader;i.readAsDataURL(e),i.onload=()=>t(i.result.split(",").pop()),i.onerror=e=>o(e)})}function W(e){const t=/\.(gif|jpg|jpeg|png|GIF|JPG|PNG)$/.test(e.name);if(!t)return{ok:!1,msg:"请上传 JPG/PNG/GIF 格式的图片"};const o=10,i=e.size/1024/1024<=o;return i?{ok:!0}:{ok:!1,msg:`由于公众号限制,图片大小不能超过 ${o}M`}}function V(e){const t=e.split("\n"),o=t.filter(e=>e.trim()).map(e=>e.match(/(^\s+)?/)[0].length).sort((e,t)=>e-t)[0];return t.map(e=>e.slice(o)).join("\n")}const Q=f.a.keyMap["default"],J=Q===f.a.keyMap["macDefault"]?"Cmd":"Ctrl",Y=Object(r["c"])("store",{state:()=>({wxRenderer:null,output:"",html:"",editor:null,cssEditor:null,currentFont:"",currentSize:"",currentColor:"",citeStatus:!1,nightMode:!1,codeTheme:h.codeThemeOption[2].value,isMacCodeBlock:!0}),actions:{setEditorValue(e){this.editor.setValue(e)},setCssEditorValue(e){this.cssEditor.setValue(e)},setWxRendererOptions(e){this.wxRenderer.setOptions(e)},setCiteStatus(e){this.citeStatus=e,localStorage.setItem("citeStatus",e)},setCurrentFont(e){this.currentFont=e,localStorage.setItem("fonts",e)},setCurrentSize(e){this.currentSize=e,localStorage.setItem("size",e)},setCurrentColor(e){this.currentColor=e,localStorage.setItem("color",e)},setCurrentCodeTheme(e){this.codeTheme=e,localStorage.setItem("codeTheme",e)},setIsMacCodeBlock(e){this.isMacCodeBlock=e,localStorage.setItem("isMacCodeBlock",e)},themeChanged(){this.nightMode=!this.nightMode,localStorage.setItem("nightMode",this.nightMode)},initEditorState(){this.currentFont=localStorage.getItem("fonts")||h.builtinFonts[0].value,this.currentColor=localStorage.getItem("color")||h.colorOption[0].value,this.currentSize=localStorage.getItem("size")||h.sizeOption[2].value,this.codeTheme=localStorage.getItem("codeTheme")||h.codeThemeOption[2].value,this.citeStatus="true"===localStorage.getItem("citeStatus"),this.nightMode="true"===localStorage.getItem("nightMode"),this.isMacCodeBlock=!("false"===localStorage.getItem("isMacCodeBlock")),this.wxRenderer=new y({theme:j(this.currentColor),fonts:this.currentFont,size:this.currentSize})},initEditorEntity(){const e=document.getElementById("editor");e.value||(e.value=localStorage.getItem("__editor_content")||U(k)),this.editor=f.a.fromTextArea(e,{mode:"text/x-markdown",theme:"xq-light",lineNumbers:!1,lineWrapping:!0,styleActiveLine:!0,autoCloseBrackets:!0,extraKeys:{[J+"-F"]:function(e){const t=U(e.getValue(0));localStorage.setItem("__editor_content",t),e.setValue(t)},[J+"-B"]:function(e){const t=e.getSelection();e.replaceSelection(`**${t}**`)},[J+"-D"]:function(e){const t=e.getSelection();e.replaceSelection(`~~${t}~~`)},[J+"-I"]:function(e){const t=e.getSelection();e.replaceSelection(`*${t}*`)},[J+"-K"]:function(e){const t=e.getSelection();e.replaceSelection(`[${t}]()`)},[J+"-L"]:function(e){const t=e.getSelection();e.replaceSelection(`\`${t}\``)}}})},initCssEditorEntity(){const e=document.getElementById("cssEditor");e.value||(e.value=localStorage.getItem("__css_content")||O),this.cssEditor=f.a.fromTextArea(e,{mode:"css",theme:"style-mirror",lineNumbers:!1,lineWrapping:!0,matchBrackets:!0,autofocus:!0,extraKeys:{[J+"-F"]:function(e){const t=F(e.getValue(0));localStorage.setItem("__css_content",t),e.setValue(t)},[J+"-S"]:function(e){}}})},editorRefresh(){const e=this.wxRenderer.getRenderer(this.citeStatus);u["marked"].setOptions({renderer:e});let t=u["marked"].parse(this.editor.getValue(0));t=t.replace(/(style=".*?)"/,'$1;margin-top: 0"'),this.citeStatus&&(t+=this.wxRenderer.buildFootnotes(),t+=this.wxRenderer.buildAddition()),this.isMacCodeBlock&&(t+="\n \n "),this.output=t}}});var Z=function(){var e=this,t=e._self._c;return t("el-container",{staticClass:"header-container is-dark"},[t("div",{staticClass:"dropdowns"},[t("el-dropdown",[t("span",{staticClass:"el-dropdown-link"},[e._v(" 文件"),t("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t("el-dropdown-item",{nativeOn:{click:function(t){return e.refClick.apply(null,arguments)}}},[t("i",{staticClass:"el-icon-upload2"}),e._v(" 导入 .md "),t("input",{ref:"fileInput",attrs:{hidden:"",type:"file",accept:".md"}})]),t("el-dropdown-item",{nativeOn:{click:function(t){return e.$emit("download")}}},[t("i",{staticClass:"el-icon-download"}),e._v(" 导出 .md ")]),t("el-dropdown-item",{nativeOn:{click:function(t){return e.$emit("export")}}},[t("i",{staticClass:"el-icon-document"}),e._v(" 导出 .html ")]),t("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(t){return e.themeChanged.apply(null,arguments)}}},[t("i",{staticClass:"el-icon-check",style:{opacity:e.nightMode?1:0}}),e._v(" 暗黑模式 ")])],1)],1),t("el-dropdown",[t("span",{staticClass:"el-dropdown-link"},[e._v(" 格式"),t("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e._l(e.formatItems,(function({label:o,kbd:i,emitArgs:n}){return t("el-dropdown-item",{key:i,staticClass:"format-item",nativeOn:{click:function(t){return e.$emit(...n)}}},[e._v(" "+e._s(o)+" "),t("kbd",[e._v(e._s(i))])])})),t("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(t){return e.statusChanged.apply(null,arguments)}}},[t("i",{staticClass:"el-icon-check",style:{opacity:e.citeStatus?1:0}}),e._v(" 微信外链转底部引用 ")])],2)],1),t("el-dropdown",[t("span",{staticClass:"el-dropdown-link"},[e._v(" 编辑"),t("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t("el-dropdown-item",{nativeOn:{click:function(t){return e.$emit("show-dialog-upload-img")}}},[t("i",{staticClass:"el-icon-upload"}),e._v(" 上传图片 ")]),t("el-dropdown-item",{nativeOn:{click:function(t){return e.$emit("show-dialog-form")}}},[t("i",{staticClass:"el-icon-s-grid"}),e._v(" 插入表格 ")])],1)],1),t("el-dropdown",[t("span",{staticClass:"el-dropdown-link"},[e._v(" 样式"),t("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t("el-dropdown-item",{staticClass:"padding-left-3"},[t("style-option-menu",{attrs:{label:"字体",options:e.config.builtinFonts,current:e.selectFont,charge:e.fontChanged}})],1),t("el-dropdown-item",{staticClass:"padding-left-3"},[t("style-option-menu",{attrs:{label:"字号",options:e.config.sizeOption,current:e.selectSize,charge:e.sizeChanged}})],1),t("el-dropdown-item",{staticClass:"padding-left-3"},[t("style-option-menu",{attrs:{label:"颜色",options:e.config.colorOption,current:e.selectColor,charge:e.colorChanged}})],1),t("el-dropdown-item",{staticClass:"padding-left-3"},[t("style-option-menu",{attrs:{label:"代码主题",options:e.config.codeThemeOption,current:e.selectCodeTheme,charge:e.codeThemeChanged}})],1),t("el-dropdown-item",{staticClass:"padding-left-3",attrs:{divided:""},nativeOn:{click:function(t){return e.showPicker()}}},[e._v(" 自定义颜色 "),t("el-color-picker",{ref:"colorPicker",staticStyle:{float:"right","margin-top":"3px"},attrs:{"show-alpha":"",size:"mini"},on:{change:e.colorChanged},model:{value:e.selectColor,callback:function(t){e.selectColor=t},expression:"selectColor"}})],1),t("el-dropdown-item",{staticClass:"padding-left-3",nativeOn:{click:function(t){return e.customStyle.apply(null,arguments)}}},[e._v(" 自定义 CSS ")]),t("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(t){return e.codeBlockChanged.apply(null,arguments)}}},[t("i",{staticClass:"el-icon-check",style:{opacity:e.isMacCodeBlock?1:0}}),e._v(" Mac 代码块 ")]),t("el-dropdown-item",{staticClass:"padding-left-3",attrs:{divided:""},nativeOn:{click:function(t){e.showResetConfirm=!0}}},[e._v(" 重置 ")])],1)],1),t("el-dropdown",[t("span",{staticClass:"el-dropdown-link"},[e._v(" 帮助"),t("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t("el-dropdown-item",{nativeOn:{click:function(t){return e.$emit("show-about-dialog")}}},[e._v(" 关于 ")])],1)],1)],1),t("el-button",{attrs:{plain:"",size:"medium",type:e.btnType},on:{click:e.copy}},[e._v(" 复制 ")]),t("el-button",{attrs:{plain:"",size:"medium",type:e.btnType},on:{click:e.prePost}},[e._v(" 发布 ")]),t("post-info-dialog",{attrs:{form:e.form},on:{post:e.post,close:function(t){e.form.dialogVisible=!1}}}),t("reset-dialog",{attrs:{"show-reset-confirm":e.showResetConfirm},on:{confirm:e.confirmReset,close:e.cancelReset}})],1)},X=[],ee=(o("45da"),o("5941")),te=o.n(ee);function oe(){const e=document.getElementById("output"),t=e.getElementsByTagName("img");for(let o=0;oe.nightMode})}},ae=re,le=(o("dba3"),o("2b5f")),ce=Object(le["a"])(ae,ne,se,!1,null,"cff93f88",null),de=ce.exports,ue=function(){var e=this,t=e._self._c;return t("el-dropdown",{staticClass:"style-option-menu",attrs:{placement:"right"}},[t("div",{staticClass:"el-dropdown-link"},[e._v(" "+e._s(e.label)+" "),t("i",{staticClass:"el-icon-arrow-right el-icon--right"})]),t("el-dropdown-menu",{staticStyle:{width:"200px"},attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.options,(function({value:o,label:i,desc:n}){return t("el-dropdown-item",{key:o,attrs:{label:i,value:o},nativeOn:{click:function(t){return e.charge(o)}}},[t("i",{staticClass:"el-icon-check",style:{opacity:e.current===o?1:0}}),e._v(" "+e._s(i)+" "),t("span",{staticClass:"select-item-right"},[e._v(e._s(n))])])})),1)],1)},me=[],pe={name:"StyleOptionMenu",props:{label:{type:String,required:!0},options:{type:Array,required:!0},current:{type:String,required:!0},charge:{type:Function,required:!0}}},fe=pe,he=(o("dcf4"),Object(le["a"])(fe,ue,me,!1,null,"32cf930a",null)),ge=he.exports,be=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{title:"发布",visible:e.form.dialogVisible},on:{"update:visible":function(t){return e.$set(e.form,"dialogVisible",t)}}},[t("el-alert",{staticStyle:{"margin-bottom":"1em"},attrs:{title:"注:此功能由第三方浏览器插件支持,本平台不保证安全性。",type:"info","show-icon":""}}),t("el-form",{staticClass:"postInfo",attrs:{"label-position":"right","label-width":"50px",model:e.form}},[t("el-form-item",{attrs:{label:"封面"}},[t("el-input",{attrs:{placeholder:"自动提取第一张图"},model:{value:e.form.thumb,callback:function(t){e.$set(e.form,"thumb",t)},expression:"form.thumb"}})],1),t("el-form-item",{attrs:{label:"标题"}},[t("el-input",{attrs:{placeholder:"自动提取第一个标题"},model:{value:e.form.title,callback:function(t){e.$set(e.form,"title",t)},expression:"form.title"}})],1),t("el-form-item",{attrs:{label:"描述"}},[t("el-input",{attrs:{type:"textarea",rows:4,placeholder:"自动提取第一个段落"},model:{value:e.form.desc,callback:function(t){e.$set(e.form,"desc",t)},expression:"form.desc"}})],1)],1),t("template",{staticClass:"dialog-footer",slot:"footer"},[t("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("取 消")]),t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.$emit("post")}}},[e._v("确 定")])],1)],2)},_e=[],Ce={name:"PostInfoDialog",props:{form:{type:Object}}},Se=Ce,ye=Object(le["a"])(Se,be,_e,!1,null,"4ab4b77e",null),ke=ye.exports,Oe={name:"editor-header",data(){return{config:h,citeStatus:!1,isMacCodeBlock:!0,showResetConfirm:!1,selectFont:"",selectSize:"",selectColor:"",selectCodeTheme:h.codeThemeOption[2].value,form:{dialogVisible:!1,title:"",desc:"",thumb:"",content:""},formatItems:[{label:"加粗",kbd:"Ctrl/Command + B",emitArgs:["addFormat","**"]},{label:"斜体",kbd:"Ctrl/Command + I",emitArgs:["addFormat","*"]},{label:"删除线",kbd:"Ctrl/Command + D",emitArgs:["addFormat","~~"]},{label:"超链接",kbd:"Ctrl/Command + K",emitArgs:["addFormat","[","]()"]},{label:"格式化",kbd:"Ctrl/Command + F",emitArgs:["formatContent"]}]}},components:{PostInfoDialog:ke,StyleOptionMenu:ge,ResetDialog:de},computed:{btnType(){return this.nightMode?"default":"primary"},...Object(r["e"])(Y,{output:e=>e.output,editor:e=>e.editor,cssEditor:e=>e.cssEditor,currentFont:e=>e.currentFont,currentSize:e=>e.currentSize,currentColor:e=>e.currentColor,codeTheme:e=>e.codeTheme,nightMode:e=>e.nightMode,currentCiteStatus:e=>e.citeStatus,currentIsMacCodeBlock:e=>e.isMacCodeBlock})},methods:{refClick(){this.$refs.fileInput.click()},showPicker(){this.$refs.colorPicker.showPicker=!0},prePost(){let e={};try{e={thumb:document.querySelector("#output img").src,title:[1,2,3,4,5,6].map(e=>document.querySelector("#output h"+e)).filter(e=>e)[0].innerText,desc:document.querySelector("#output p").innerText,content:this.output}}catch(t){console.log("error",t)}this.form={dialogVisible:!0,...e,auto:e}},post(){this.form.dialogVisible=!1,window.syncPost({title:this.form.title||this.form.auto.title,desc:this.form.desc||this.form.auto.desc,content:this.form.content||this.form.auto.content,thumb:this.form.thumb||this.form.auto.thumb})},fontChanged(e){this.setWxRendererOptions({fonts:e}),this.setCurrentFont(e),this.selectFont=e,this.$emit("refresh")},sizeChanged(e){let t=K(e.replace("px",""));t=P(t,this.currentColor),this.setWxRendererOptions({size:e,theme:t}),this.setCurrentSize(e),this.selectSize=e,this.$emit("refresh")},colorChanged(e){let t=K(this.currentSize.replace("px",""));t=P(t,e),this.setWxRendererOptions({theme:t}),this.setCurrentColor(e),this.selectColor=e,this.$emit("refresh")},codeThemeChanged(e){this.setCurrentCodeTheme(e),this.selectCodeTheme=e,this.$emit("refresh")},statusChanged(){this.citeStatus=!this.citeStatus,this.setCiteStatus(this.citeStatus),this.$emit("refresh")},codeBlockChanged(){this.isMacCodeBlock=!this.isMacCodeBlock,this.setIsMacCodeBlock(this.isMacCodeBlock),this.$emit("refresh")},copy(){this.$emit("startCopy"),setTimeout(()=>{oe();const e=document.getElementById("output");e.innerHTML=ie(e.innerHTML),e.innerHTML=e.innerHTML.replace(/class="base"( style="display: inline")*/g,'class="base" style="display: inline"'),this.isMacCodeBlock&&(e.innerHTML=e.innerHTML.replaceAll(/({this.cssEditor||this.cssEditor.refresh()}),setTimeout(()=>{this.cssEditor.refresh()},50);let e=localStorage.getItem("__css_content");e||this.setCssEditorValue(O)},confirmReset(){this.showResetConfirm=!1,localStorage.clear(),this.cssEditor.setValue(O),this.citeStatus=!1,this.statusChanged(!1),this.fontChanged(this.config.builtinFonts[0].value),this.colorChanged(this.config.colorOption[0].value),this.sizeChanged(this.config.sizeOption[2].value),this.codeThemeChanged(this.config.codeThemeOption[2].value),this.$emit("cssChanged"),this.selectFont=this.currentFont,this.selectSize=this.currentSize,this.selectColor=this.currentColor,this.selectCodeTheme=this.codeTheme,this.isMacCodeBlock=!1,this.codeBlockChanged()},cancelReset(){this.showResetConfirm=!1,this.editor.focus()},...Object(r["d"])(Y,["setCurrentColor","setCiteStatus","themeChanged","setCurrentFont","setCurrentSize","setCssEditorValue","setCurrentCodeTheme","setWxRendererOptions","setIsMacCodeBlock"])},mounted(){this.selectFont=this.currentFont,this.selectSize=this.currentSize,this.selectColor=this.currentColor,this.selectCodeTheme=this.codeTheme,this.citeStatus=this.currentCiteStatus,this.isMacCodeBlock=this.currentIsMacCodeBlock;const e=this.$refs.fileInput;e.onchange=()=>{const t=e.files[0];if(null==t)return;const o=new FileReader;o.readAsText(t),o.onload=()=>{this.$emit("import-md",o.result)}}}},we=Oe,ve=(o("a011"),Object(le["a"])(we,Z,X,!1,null,"09c87a32",null)),xe=ve.exports,$e=function(){var e=this,t=e._self._c;return t("el-dialog",{staticClass:"about__dialog",attrs:{title:"关于",visible:e.visible,width:"30%",center:""},on:{close:function(t){return e.$emit("close")}}},[t("div",{staticStyle:{"text-align":"center"}},[t("h3",[e._v("一款高度简洁的微信 Markdown 编辑器")]),t("p",[e._v("扫码关注公众号 Doocs,原创技术文章第一时间推送!")]),t("img",{staticStyle:{width:"40%"},attrs:{src:"https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303220922-7e14aefa-816e-44c1-8604-ade709ca1c69.png"}})]),t("template",{slot:"footer"},[t("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){return e.onRedirect("https://github.com/doocs/md")}}},[e._v(" GitHub 仓库 ")]),t("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){return e.onRedirect("https://gitee.com/doocs/md")}}},[e._v(" Gitee 仓库 ")])],1)],2)},Ee=[],Me={props:{visible:{type:Boolean,default:!1}},methods:{onRedirect(e){window.open(e)}}},Te=Me,Ie=(o("7f25"),Object(le["a"])(Te,$e,Ee,!1,null,"314554b5",null)),De=Ie.exports,Ae=function(){var e=this,t=e._self._c;return t("el-dialog",{staticClass:"insert__dialog",attrs:{title:"插入表格",visible:e.visible,border:""},on:{close:function(t){return e.$emit("close")}}},[t("el-row",{staticClass:"tb-options",attrs:{type:"flex",align:"middle",gutter:10}},[t("el-col",[e._v(" 行数: "),t("el-input-number",{attrs:{"controls-position":"right",min:1,max:100,size:"small"},model:{value:e.rowNum,callback:function(t){e.rowNum=t},expression:"rowNum"}})],1),t("el-col",[e._v(" 列数: "),t("el-input-number",{attrs:{"controls-position":"right",min:1,max:100,size:"small"},model:{value:e.colNum,callback:function(t){e.colNum=t},expression:"colNum"}})],1)],1),t("table",{staticClass:"input-table",staticStyle:{"border-collapse":"collapse"}},e._l(e.rowNum+1,(function(o){return t("tr",{key:o,class:{"head-style":1===o}},e._l(e.colNum,(function(i){return t("td",{key:i},[t("el-input",{attrs:{align:"center",placeholder:1===o?"表头":""},model:{value:e.tableData[`k_${o-1}_${i-1}`],callback:function(t){e.$set(e.tableData,`k_${o-1}_${i-1}`,t)},expression:"tableData[`k_${row - 1}_${col - 1}`]"}})],1)})),0)})),0),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:e.btnType,plain:""},on:{click:function(t){return e.$emit("close")}}},[e._v(" 取 消 ")]),t("el-button",{attrs:{type:e.btnType,plain:""},on:{click:e.insertTable}},[e._v(" 确 定 ")])],1)],1)},Pe=[],Re={props:{visible:{type:Boolean,default:!1}},data(){return{config:h,rowNum:3,colNum:3,tableData:{}}},computed:{btnType(){return this.nightMode?"default":"primary"},...Object(r["e"])(Y,{nightMode:e=>e.nightMode,editor:e=>e.editor})},methods:{insertTable(){this.editor.getCursor();const e=N({data:this.tableData,rows:this.rowNum,cols:this.colNum});this.tableData={},this.rowNum=3,this.colNum=3,this.editor.replaceSelection(`\n${e}\n`,"end"),this.$emit("close"),this.editorRefresh()},...Object(r["d"])(Y,["editorRefresh"])}},je=Re,Ke=(o("bded"),Object(le["a"])(je,Ae,Pe,!1,null,"14061734",null)),Be=Ke.exports,Le=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"menu",style:`left: ${e.left}px;top: ${e.top}px;`,attrs:{id:"menu"}},e._l(e.menu,(function(o,i){return t("ul",{key:i,staticClass:"menu__group"},e._l(o,(function({key:o,text:i}){return t("li",{key:o,staticClass:"menu_item",on:{mousedown:function(t){return e.onMouseDown(o)}}},[e._v(" "+e._s(i)+" ")])})),0)})),0)},qe=[],Ue={props:{visible:{type:Boolean,default:!1},top:{type:Number,default:0},left:{type:Number,default:0}},data(){return{menu:[[{text:"上传图片",key:"insertPic"},{text:"插入表格",key:"insertTable"},{text:"恢复默认样式",key:"resetStyle"}],[{text:"导入 .md 文档",key:"importMarkdown"},{text:"导出 .md 文档",key:"download"},{text:"导出 .html",key:"export"},{text:"格式化",key:"formatMarkdown"}]]}},methods:{onMouseDown(e){this.$emit("menuTick",e),this.$emit("closeMenu")}}},Fe=Ue,ze=(o("ebc0"),Object(le["a"])(Fe,Le,qe,!1,null,"283cf1ee",null)),He=ze.exports,Ne=function(){var e=this,t=e._self._c;return t("el-dialog",{staticClass:"upload__dialog",attrs:{title:"本地上传",visible:e.visible},on:{close:function(t){return e.$emit("close")}}},[t("el-tabs",{attrs:{type:"activeName"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{staticClass:"upload-panel",attrs:{label:"选择上传",name:"upload"}},[t("el-select",{attrs:{placeholder:"请选择",size:"small"},on:{change:e.changeImgHost},model:{value:e.imgHost,callback:function(t){e.imgHost=t},expression:"imgHost"}},e._l(e.options,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),t("el-upload",{attrs:{drag:"",action:"",headers:{"Content-Type":"multipart/form-data"},"show-file-list":!1,multiple:!0,accept:".jpg, .jpeg, .png, .gif",name:"file","before-upload":e.beforeImageUpload,"http-request":e.uploadImage}},[t("i",{staticClass:"el-icon-upload"}),t("div",{staticClass:"el-upload__text"},[e._v(" 将图片拖到此处,或 "),t("em",[e._v("点击上传")])])])],1),t("el-tab-pane",{staticClass:"github-panel",attrs:{label:"GitHub 图床",name:"github"}},[t("el-form",{staticClass:"setting-form",attrs:{model:e.formGitHub,"label-position":"right","label-width":"140px"}},[t("el-form-item",{attrs:{label:"GitHub 仓库",required:!0}},[t("el-input",{attrs:{placeholder:"如:github.com/yanglbme/resource"},model:{value:e.formGitHub.repo,callback:function(t){e.$set(e.formGitHub,"repo","string"===typeof t?t.trim():t)},expression:"formGitHub.repo"}})],1),t("el-form-item",{attrs:{label:"分支"}},[t("el-input",{attrs:{placeholder:"如:release,可不填,默认 master"},model:{value:e.formGitHub.branch,callback:function(t){e.$set(e.formGitHub,"branch","string"===typeof t?t.trim():t)},expression:"formGitHub.branch"}})],1),t("el-form-item",{attrs:{label:"Token",required:!0}},[t("el-input",{attrs:{"show-password":"",placeholder:"如:cc1d0c1426d0fd0902bd2d7184b14da61b8abc46"},model:{value:e.formGitHub.accessToken,callback:function(t){e.$set(e.formGitHub,"accessToken","string"===typeof t?t.trim():t)},expression:"formGitHub.accessToken"}}),t("el-link",{attrs:{type:"primary",href:"https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token",target:"_blank"}},[e._v("如何获取 GitHub Token? ")])],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.saveGitHubConfiguration}},[e._v("保存配置 ")])],1)],1)],1),t("el-tab-pane",{staticClass:"github-panel",attrs:{label:"阿里云 OSS",name:"aliOSS"}},[t("el-form",{staticClass:"setting-form",attrs:{model:e.formAliOSS,"label-position":"right","label-width":"140px"}},[t("el-form-item",{attrs:{label:"AccessKey ID",required:!0}},[t("el-input",{attrs:{placeholder:"如:LTAI4GdoocsmdoxUf13ylbaNHk"},model:{value:e.formAliOSS.accessKeyId,callback:function(t){e.$set(e.formAliOSS,"accessKeyId","string"===typeof t?t.trim():t)},expression:"formAliOSS.accessKeyId"}})],1),t("el-form-item",{attrs:{label:"AccessKey Secret",required:!0}},[t("el-input",{attrs:{"show-password":"",placeholder:"如:cc1d0c142doocs0902bd2d7md4b14da6ylbabc46"},model:{value:e.formAliOSS.accessKeySecret,callback:function(t){e.$set(e.formAliOSS,"accessKeySecret","string"===typeof t?t.trim():t)},expression:"formAliOSS.accessKeySecret"}})],1),t("el-form-item",{attrs:{label:"Bucket",required:!0}},[t("el-input",{attrs:{placeholder:"如:doocs"},model:{value:e.formAliOSS.bucket,callback:function(t){e.$set(e.formAliOSS,"bucket","string"===typeof t?t.trim():t)},expression:"formAliOSS.bucket"}})],1),t("el-form-item",{attrs:{label:"Bucket 所在区域",required:!0}},[t("el-input",{attrs:{placeholder:"如:oss-cn-shenzhen"},model:{value:e.formAliOSS.region,callback:function(t){e.$set(e.formAliOSS,"region","string"===typeof t?t.trim():t)},expression:"formAliOSS.region"}})],1),t("el-form-item",{attrs:{label:"自定义 CDN 域名",required:!1}},[t("el-input",{attrs:{placeholder:"如:https://imagecdn.alidaodao.com,可不填"},model:{value:e.formAliOSS.cdnHost,callback:function(t){e.$set(e.formAliOSS,"cdnHost","string"===typeof t?t.trim():t)},expression:"formAliOSS.cdnHost"}})],1),t("el-form-item",{attrs:{label:"存储路径"}},[t("el-input",{attrs:{placeholder:"如:img,可不填,默认为根目录"},model:{value:e.formAliOSS.path,callback:function(t){e.$set(e.formAliOSS,"path","string"===typeof t?t.trim():t)},expression:"formAliOSS.path"}}),t("el-link",{attrs:{type:"primary",href:"https://help.aliyun.com/document_detail/31883.html",target:"_blank"}},[e._v("如何使用阿里云 OSS? ")])],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.saveAliOSSConfiguration}},[e._v(" 保存配置 ")])],1)],1)],1),t("el-tab-pane",{staticClass:"github-panel",attrs:{label:"腾讯云 COS",name:"txCOS"}},[t("el-form",{staticClass:"setting-form",attrs:{model:e.formTxCOS,"label-position":"right","label-width":"140px"}},[t("el-form-item",{attrs:{label:"SecretId",required:!0}},[t("el-input",{attrs:{placeholder:"如:AKIDnQp1w3DOOCSs8F5MDp9tdoocsmdUPonW3"},model:{value:e.formTxCOS.secretId,callback:function(t){e.$set(e.formTxCOS,"secretId","string"===typeof t?t.trim():t)},expression:"formTxCOS.secretId"}})],1),t("el-form-item",{attrs:{label:"SecretKey",required:!0}},[t("el-input",{attrs:{"show-password":"",placeholder:"如:ukLmdtEJ9271f3DOocsMDsCXdS3YlbW0"},model:{value:e.formTxCOS.secretKey,callback:function(t){e.$set(e.formTxCOS,"secretKey","string"===typeof t?t.trim():t)},expression:"formTxCOS.secretKey"}})],1),t("el-form-item",{attrs:{label:"Bucket",required:!0}},[t("el-input",{attrs:{placeholder:"如:doocs-3212520134"},model:{value:e.formTxCOS.bucket,callback:function(t){e.$set(e.formTxCOS,"bucket","string"===typeof t?t.trim():t)},expression:"formTxCOS.bucket"}})],1),t("el-form-item",{attrs:{label:"Bucket 所在区域",required:!0}},[t("el-input",{attrs:{placeholder:"如:ap-guangzhou"},model:{value:e.formTxCOS.region,callback:function(t){e.$set(e.formTxCOS,"region","string"===typeof t?t.trim():t)},expression:"formTxCOS.region"}})],1),t("el-form-item",{attrs:{label:"自定义 CDN 域名",required:!1}},[t("el-input",{attrs:{placeholder:"如:https://imagecdn.alidaodao.com,可不填"},model:{value:e.formTxCOS.cdnHost,callback:function(t){e.$set(e.formTxCOS,"cdnHost","string"===typeof t?t.trim():t)},expression:"formTxCOS.cdnHost"}})],1),t("el-form-item",{attrs:{label:"存储路径"}},[t("el-input",{attrs:{placeholder:"如:img,可不填,默认根目录"},model:{value:e.formTxCOS.path,callback:function(t){e.$set(e.formTxCOS,"path","string"===typeof t?t.trim():t)},expression:"formTxCOS.path"}}),t("el-link",{attrs:{type:"primary",href:"https://cloud.tencent.com/document/product/436/38484",target:"_blank"}},[e._v("如何使用腾讯云 COS? ")])],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.saveTxCOSConfiguration}},[e._v(" 保存配置 ")])],1)],1)],1),t("el-tab-pane",{staticClass:"github-panel",attrs:{label:"七牛云 Kodo",name:"qiniu"}},[t("el-form",{staticClass:"setting-form",attrs:{model:e.formQiniu,"label-position":"right","label-width":"140px"}},[t("el-form-item",{attrs:{label:"AccessKey",required:!0}},[t("el-input",{attrs:{placeholder:"如:6DD3VaLJ_SQgOdoocsyTV_YWaDmdnL2n8EGx7kG"},model:{value:e.formQiniu.accessKey,callback:function(t){e.$set(e.formQiniu,"accessKey","string"===typeof t?t.trim():t)},expression:"formQiniu.accessKey"}})],1),t("el-form-item",{attrs:{label:"SecretKey",required:!0}},[t("el-input",{attrs:{"show-password":"",placeholder:"如:qgZa5qrvDOOcsmdKStD1oCjZ9nB7MDvJUs_34SIm"},model:{value:e.formQiniu.secretKey,callback:function(t){e.$set(e.formQiniu,"secretKey","string"===typeof t?t.trim():t)},expression:"formQiniu.secretKey"}})],1),t("el-form-item",{attrs:{label:"Bucket",required:!0}},[t("el-input",{attrs:{placeholder:"如:md"},model:{value:e.formQiniu.bucket,callback:function(t){e.$set(e.formQiniu,"bucket","string"===typeof t?t.trim():t)},expression:"formQiniu.bucket"}})],1),t("el-form-item",{attrs:{label:"Bucket 对应域名",required:!0}},[t("el-input",{attrs:{placeholder:"如:https://images.123ylb.cn"},model:{value:e.formQiniu.domain,callback:function(t){e.$set(e.formQiniu,"domain","string"===typeof t?t.trim():t)},expression:"formQiniu.domain"}})],1),t("el-form-item",{attrs:{label:"存储区域",required:!0}},[t("el-input",{attrs:{placeholder:"如:z2"},model:{value:e.formQiniu.region,callback:function(t){e.$set(e.formQiniu,"region","string"===typeof t?t.trim():t)},expression:"formQiniu.region"}})],1),t("el-form-item",{attrs:{label:"存储路径",required:!1}},[t("el-input",{attrs:{placeholder:"如:img,可不填,默认为根目录"},model:{value:e.formQiniu.path,callback:function(t){e.$set(e.formQiniu,"path","string"===typeof t?t.trim():t)},expression:"formQiniu.path"}}),t("el-link",{attrs:{type:"primary",href:"https://developer.qiniu.com/kodo",target:"_blank"}},[e._v("如何使用七牛云 Kodo? ")])],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.saveQiniuConfiguration}},[e._v(" 保存配置 ")])],1)],1)],1),t("el-tab-pane",{staticClass:"github-panel",attrs:{label:"MinIO",name:"minio"}},[t("el-form",{staticClass:"setting-form",attrs:{model:e.minioOSS,"label-position":"right","label-width":"140px"}},[t("el-form-item",{attrs:{label:"Endpoint",required:!0}},[t("el-input",{attrs:{placeholder:"如:play.min.io"},model:{value:e.minioOSS.endpoint,callback:function(t){e.$set(e.minioOSS,"endpoint","string"===typeof t?t.trim():t)},expression:"minioOSS.endpoint"}})],1),t("el-form-item",{attrs:{label:"Port",required:!1}},[t("el-input",{attrs:{type:"number",placeholder:"如:9000,可不填,http 默认为 80,https 默认为 443"},model:{value:e.minioOSS.port,callback:function(t){e.$set(e.minioOSS,"port","string"===typeof t?t.trim():t)},expression:"minioOSS.port"}})],1),t("el-form-item",{attrs:{label:"UseSSL",required:!0}},[t("el-switch",{attrs:{"active-text":"是","inactive-text":"否"},model:{value:e.minioOSS.useSSL,callback:function(t){e.$set(e.minioOSS,"useSSL",t)},expression:"minioOSS.useSSL"}})],1),t("el-form-item",{attrs:{label:"Bucket",required:!0}},[t("el-input",{attrs:{placeholder:"如:doocs"},model:{value:e.minioOSS.bucket,callback:function(t){e.$set(e.minioOSS,"bucket","string"===typeof t?t.trim():t)},expression:"minioOSS.bucket"}})],1),t("el-form-item",{attrs:{label:"AccessKey",required:!0}},[t("el-input",{attrs:{placeholder:"如:zhangsan"},model:{value:e.minioOSS.accessKey,callback:function(t){e.$set(e.minioOSS,"accessKey","string"===typeof t?t.trim():t)},expression:"minioOSS.accessKey"}})],1),t("el-form-item",{attrs:{label:"SecretKey",required:!0}},[t("el-input",{attrs:{placeholder:"如:asdasdasd"},model:{value:e.minioOSS.secretKey,callback:function(t){e.$set(e.minioOSS,"secretKey","string"===typeof t?t.trim():t)},expression:"minioOSS.secretKey"}}),t("el-link",{attrs:{type:"primary",href:"http://docs.minio.org.cn/docs/master/minio-client-complete-guide",target:"_blank"}},[e._v("如何使用 MinIO? ")])],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.saveMinioOSSConfiguration}},[e._v(" 保存配置 ")])],1)],1)],1),t("el-tab-pane",{staticClass:"github-panel formCustom",attrs:{label:"自定义代码",name:"formCustom"}},[t("el-form",{staticClass:"setting-form",attrs:{model:e.formCustom,"label-position":"right"}},[t("el-form-item",{attrs:{label:"",required:!0}},[t("el-input",{ref:"formCustomElInput",staticClass:"formCustomElInput",attrs:{type:"textarea",resize:"none",placeholder:"Your custom code here."},model:{value:e.formCustom.code,callback:function(t){e.$set(e.formCustom,"code",t)},expression:"formCustom.code"}}),t("el-link",{attrs:{type:"primary",href:"https://github.com/doocs/md#自定义上传逻辑",target:"_blank"}},[e._v("参数详情? ")])],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.formCustomSave}},[e._v(" 保存配置 ")])],1)],1)],1)],1)],1)},Ge=[],We={props:{visible:{type:Boolean,default:!1}},data(){return{activeName:"upload",formGitHub:{repo:"",branch:"",accessToken:""},formAliOSS:{accessKeyId:"",accessKeySecret:"",bucket:"",region:"",path:"",cdnHost:""},formTxCOS:{secretId:"",secretKey:"",bucket:"",region:"",path:"",cdnHost:""},formQiniu:{accessKey:"",secretKey:"",bucket:"",domain:"",region:""},minioOSS:{endpoint:"",port:"",useSSL:!0,bucket:"",accessKey:"",secretKey:""},formCustom:{code:localStorage.getItem("formCustomConfig")||V(`\n const {file, util, okCb, errCb} = CUSTOM_ARG\n const param = new FormData()\n param.append('file', file)\n util.axios.post('${window.location.origin}/upload', param, {\n headers: { 'Content-Type': 'multipart/form-data' }\n }).then(res => {\n okCb(res.url)\n }).catch(err => {\n errCb(err)\n })\n `).trim(),editor:void 0},options:[{value:"default",label:"默认"},{value:"github",label:"GitHub"},{value:"aliOSS",label:"阿里云"},{value:"txCOS",label:"腾讯云"},{value:"qiniu",label:"七牛云"},{value:"minio",label:"MinIO"},{value:"formCustom",label:"自定义代码"}],imgHost:"default"}},created(){localStorage.getItem("githubConfig")&&(this.formGitHub=JSON.parse(localStorage.getItem("githubConfig"))),localStorage.getItem("aliOSSConfig")&&(this.formAliOSS=JSON.parse(localStorage.getItem("aliOSSConfig"))),localStorage.getItem("txCOSConfig")&&(this.formTxCOS=JSON.parse(localStorage.getItem("txCOSConfig"))),localStorage.getItem("qiniuConfig")&&(this.formQiniu=JSON.parse(localStorage.getItem("qiniuConfig"))),localStorage.getItem("minioConfig")&&(this.minioOSS=JSON.parse(localStorage.getItem("minioConfig"))),localStorage.getItem("imgHost")&&(this.imgHost=localStorage.getItem("imgHost"))},methods:{changeImgHost(){localStorage.setItem("imgHost",this.imgHost),this.$message.success("已成功切换图床")},saveGitHubConfiguration(){if(this.formGitHub.repo&&this.formGitHub.accessToken)localStorage.setItem("githubConfig",JSON.stringify(this.formGitHub)),this.$message.success("保存成功");else{const e=this.formGitHub.repo?"token":"GitHub 仓库";this.$message.error(`参数「${e}」不能为空`)}},saveAliOSSConfiguration(){this.formAliOSS.accessKeyId&&this.formAliOSS.accessKeySecret&&this.formAliOSS.bucket&&this.formAliOSS.region?(localStorage.setItem("aliOSSConfig",JSON.stringify(this.formAliOSS)),this.$message.success("保存成功")):this.$message.error("阿里云 OSS 参数配置不全")},saveMinioOSSConfiguration(){this.minioOSS.endpoint&&this.minioOSS.bucket&&this.minioOSS.accessKey&&this.minioOSS.secretKey?(localStorage.setItem("minioConfig",JSON.stringify(this.minioOSS)),this.$message.success("保存成功")):this.$message.error("MinIO 参数配置不全")},saveTxCOSConfiguration(){this.formTxCOS.secretId&&this.formTxCOS.secretKey&&this.formTxCOS.bucket&&this.formTxCOS.region?(localStorage.setItem("txCOSConfig",JSON.stringify(this.formTxCOS)),this.$message.success("保存成功")):this.$message.error("腾讯云 COS 参数配置不全")},saveQiniuConfiguration(){this.formQiniu.accessKey&&this.formQiniu.secretKey&&this.formQiniu.bucket&&this.formQiniu.domain&&this.formQiniu.region?(localStorage.setItem("qiniuConfig",JSON.stringify(this.formQiniu)),this.$message.success("保存成功")):this.$message.error("七牛云 Kodo 参数配置不全")},formCustomSave(){const e=this.formCustom.editor.getValue();localStorage.setItem("formCustomConfig",e),this.$message.success("保存成功")},beforeImageUpload(e){const t=W(e);if(!t.ok)return this.$message.error(t.msg),!1;let o=localStorage.getItem("imgHost");o=o||"default",localStorage.setItem("imgHost",o);const i=localStorage.getItem(o+"Config"),n="default"==o||i;return!!n||(this.$message.error(`请先配置 ${o} 图床参数`),!1)},uploadImage(e){this.$emit("uploadImage",e.file)}},watch:{activeName:{immediate:!0,handler(e){"formCustom"===e&&this.$nextTick(()=>{const e=this.$refs.formCustomElInput.$el.querySelector("textarea");this.formCustom.editor=this.formCustom.editor||f.a.fromTextArea(e,{mode:"javascript"}),this.formCustom.editor.setValue(this.formCustom.code)})}}},mounted(){}},Ve=We,Qe=(o("fde4"),Object(le["a"])(Ve,Ne,Ge,!1,null,"83a42576",null)),Je=Qe.exports,Ye=function(){var e=this,t=e._self._c;return t("transition",{attrs:{"enter-active-class":"bounceInRight"}},[t("el-col",{directives:[{name:"show",rawName:"v-show",value:e.showCssEditor,expression:"showCssEditor"}],staticClass:"cssEditor-wrapper",attrs:{span:12}},[t("textarea",{attrs:{id:"cssEditor",type:"textarea",placeholder:"Your custom css here."}})])],1)},Ze=[],Xe={name:"CssEditor",props:{showCssEditor:{type:Boolean,default:!1}}},et=Xe,tt=(o("6bdb"),Object(le["a"])(et,Ye,Ze,!1,null,"912bf7ea",null)),ot=tt.exports,it=function(){var e=this,t=e._self._c;return e.loading?t("transition",{attrs:{name:"fade"}},[t("div",{staticClass:"loading",class:{loading_night:e.nightMode}},[t("strong",[e._v("致力于让 Markdown 编辑更简单")])])]):e._e()},nt=[],st={name:"RunLoading",data(){return{loading:!0}},mounted(){setTimeout(()=>{this.loading=!1},100)},computed:{...Object(r["e"])(Y,{nightMode:({nightMode:e})=>e})}},rt=st,at=(o("1386"),Object(le["a"])(rt,it,nt,!1,null,"1bcf5940",null)),lt=at.exports,ct=o("557f");o("e480");var dt={data(){return{showCssEditor:!1,aboutDialogVisible:!1,dialogUploadImgVisible:!1,insertFormDialogVisible:!1,isCoping:!1,isImgLoading:!1,backLight:!1,timeout:null,changeTimer:null,source:"",mouseLeft:0,mouseTop:0,rightClickMenuVisible:!1}},components:{CssEditor:ot,RunLoading:lt,EditorHeader:xe,AboutDialog:De,InsertFormDialog:Be,RightClickMenu:He,UploadImgDialog:Je},computed:{...Object(r["e"])(Y,{wxRenderer:e=>e.wxRenderer,output:e=>e.output,editor:e=>e.editor,cssEditor:e=>e.cssEditor,currentSize:e=>e.currentSize,currentColor:e=>e.currentColor,nightMode:e=>e.nightMode,codeTheme:e=>e.codeTheme})},created(){this.initEditorState(),this.$nextTick(()=>{this.initEditor(),this.initCssEditor(),this.onEditorRefresh(),this.mdLocalToRemote()})},methods:{mdLocalToRemote(){const e=this,t=this.$refs.codeMirrorWrapper.$el;async function o({list:e}){return new Promise((t,o)=>{const{path:i,file:n}=e.find(e=>e.path.match(/\.md$/)),s=new FileReader;s.readAsText(n,"UTF-8"),s.onload=e=>{t({str:e.target.result,file:n,path:i})}})}async function i({md:t,list:o}){const i=[...t.str.matchAll(/!\[(.*?)\]\((.*?)\)/gm)||[]].filter(e=>e),n=t.path.match(/.+?\//)[0],s=await Promise.all(i.map(t=>new Promise((i,s)=>{let[,,r]=t;r=r.replace(/^.\//,"");const{file:a}=o.find(e=>e.path===`${n}${r}`)||{};e.uploadImage(a,e=>{i({matchStr:r,url:e})})})));s.forEach(e=>{t.str=t.str.replace(`](./${e.matchStr})`,`](${e.url})`).replace(`](${e.matchStr})`,`](${e.url})`)}),e.editor.setValue(t.str),console.log("resList",s,t.str)}async function n(e){const t=[];let o="";try{const i=[e];for(const e of i){o+=e.name+"/";for await(const[,n]of e)"file"===n.kind?t.push({path:o+n.name,file:await n.getFile()}):(t.push({path:o+n.name+"/"}),i.push(n))}}catch(i){console.error(i)}return t}t.ondragover=e=>e.preventDefault(),t.ondrop=async e=>{e.preventDefault();for(const t of e.dataTransfer.items)t.getAsFileSystemHandle().then(async e=>{if("directory"===e.kind){const t=await n(e),s=await o({list:t});i({md:s,list:t})}else{const t=await e.getFile();console.log("file",t)}})}},initEditor(){this.initEditorEntity(),this.editor.on("change",(e,t)=>{this.changeTimer&&clearTimeout(this.changeTimer),this.changeTimer=setTimeout(()=>{this.onEditorRefresh(),q(this.editor,"__editor_content")},300)}),this.editor.on("paste",(e,t)=>{if(t.clipboardData&&t.clipboardData.items&&!this.isImgLoading)for(let o=0,i=t.clipboardData.items.length;o{this.rightClickMenuVisible=!1}),this.editor.on("blur",()=>{ +//!影响到右键菜单的点击事件,右键菜单的点击事件在组件内通过mousedown触发 +this.rightClickMenuVisible=!1}),this.editor.on("scroll",()=>{this.rightClickMenuVisible=!1})},initCssEditor(){this.initCssEditorEntity(),this.cssEditor.on("keyup",(e,t)=>{(t.keyCode>=65&&t.keyCode<=90||189===t.keyCode)&&e.showHint(t)}),this.cssEditor.on("update",e=>{this.cssChanged(),q(this.cssEditor,"__css_content")})},cssChanged(){let e=L(this.cssEditor.getValue(0)),t=K(this.currentSize.replace("px",""));t=B(e,this.currentColor,t),this.setWxRendererOptions({theme:t}),this.onEditorRefresh()},codeThemeChanged(){let e=this.codeTheme,t=document.getElementById("hljs");if(void 0!=t)t.setAttribute("href",e);else{const t=document.createElement("link");t.setAttribute("type","text/css"),t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),t.setAttribute("id","hljs"),document.head.appendChild(t)}},beforeUpload(e){const t=W(e);if(!t.ok)return this.$message.error(t.msg),!1;let o=localStorage.getItem("imgHost");o=o||"default",localStorage.setItem("imgHost",o);const i=localStorage.getItem(o+"Config"),n="default"==o||i;return!!n||(this.$message.error(`请先配置 ${o} 图床参数`),!1)},uploadImage(e,t){this.isImgLoading=!0,G(e).then(o=>{ct["a"].fileUpload(o,e).then(e=>{console.log(e),t?t(e):this.uploaded(e)}).catch(e=>{this.$message.error(e.message)})}).catch(e=>{this.$message.error(e.message)}),this.isImgLoading=!1},uploaded(e){if(console.log("图片上传之后: ",e),!e)return void this.$message.error("上传图片未知异常");this.dialogUploadImgVisible=!1;const t=this.editor.getCursor(),o=e,i=`![](${o})`;this.editor.replaceSelection(`\n${i}\n`,t),this.$message.success("图片上传成功"),this.onEditorRefresh()},leftAndRightScroll(){const e=e=>{let i,n;clearTimeout(this.timeout),"preview"===e?(i=this.$refs.preview.$el,n=document.getElementsByClassName("CodeMirror-scroll")[0],this.editor.off("scroll",t),this.timeout=setTimeout(()=>{this.editor.on("scroll",t)},300)):"editor"===e&&(i=document.getElementsByClassName("CodeMirror-scroll")[0],n=this.$refs.preview.$el,n.removeEventListener("scroll",o,!1),this.timeout=setTimeout(()=>{n.addEventListener("scroll",o,!1)},300));let s=i.scrollTop/(i.scrollHeight-i.offsetHeight),r=s*(n.scrollHeight-n.offsetHeight);n.scrollTo(0,r)},t=()=>{e("editor")},o=()=>{e("preview")};this.$refs.preview.$el.addEventListener("scroll",o,!1),this.editor.on("scroll",t)},onEditorRefresh(){this.codeThemeChanged(this.codeTheme),this.editorRefresh(),setTimeout(()=>window.PR.prettyPrint(),0)},endCopy(){this.backLight=!1,setTimeout(()=>{this.isCoping=!1},800)},addFormat(e,t=e){const{head:o,anchor:i}=this.editor.doc.sel.ranges[0];let n,s;o.line===i.line?o.ch{H(),document.getElementById("output").innerHTML=this.output})},importMarkdownContent(){let e=document.getElementById("menu"),t=document.createElement("input");t.type="file",t.name="filename",t.accept=".txt,.md",e.appendChild(t),t.onchange=()=>{if(!t.files)return;const e=t.files[0];if(!/\.(txt|TXT|MD|md)$/.test(e.name))return void this.$message.error("不支持的文档格式");const o=new FileReader;o.readAsText(e),o.onload=e=>{let t=e.target.result;t=U(t),t&&(localStorage.setItem("__editor_content",t),this.editor.setValue(t),this.$message.success("文档导入成功"))}},t.click(),e.removeChild(t)},formatContent(){const e=U(this.editor.getValue(0));localStorage.setItem("__editor_content",e),this.editor.setValue(e)},openMenu(e){const t=105,o=this.$el.getBoundingClientRect().left,i=this.$el.offsetWidth,n=i-t,s=e.clientX-o;this.mouseLeft=Math.min(n,s),this.mouseTop=e.clientY+10,this.rightClickMenuVisible=!0},onMenuEvent(e){switch(e){case"resetStyle":this.$refs.header.showResetConfirm=!0;break;case"insertPic":this.dialogUploadImgVisible=!0;break;case"download":this.downloadEditorContent();break;case"export":this.exportEditorContent();break;case"insertTable":this.insertFormDialogVisible=!0;break;case"importMarkdown":this.importMarkdownContent();break;case"formatMarkdown":this.formatContent();break;default:break}},...Object(r["d"])(Y,["initEditorState","initEditorEntity","setWxRendererOptions","editorRefresh","initCssEditorEntity"])},mounted(){setTimeout(()=>{this.leftAndRightScroll(),window.PR.prettyPrint()},300)}},ut=dt,mt=(o("1208"),o("e20e"),Object(le["a"])(ut,c,d,!1,null,"87004ece",null)),pt=mt.exports,ft={__name:"App",setup(e){return{__sfc:!0,CodemirrorEditor:pt}}},ht=ft,gt=(o("92fa"),Object(le["a"])(ht,a,l,!1,null,null,null)),bt=gt.exports;i["default"].use(s.a).use(r["a"]),i["default"].config.productionTip=!1,bt.mpType="app",new i["default"]({...bt,pinia:Object(r["b"])()}).$mount("#app")},4:function(e,t){},"4f8e":function(e,t,o){"use strict";o.d(t,"b",(function(){return i})),o.d(t,"a",(function(){return n}));const i={username:"filess",repoList:Array.from([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],e=>"img"+e),branch:"main",accessTokenList:["7715d7ca67b5d3837cfdoocsmde8c38421815aa423510af","c411415bf95dbe39625doocsmd5047ba9b7a2a6c9642abe","2821cd8819fa345c053doocsmdca86ac653f8bc20db1f1b","445f0dae46ef1f2a4d6doocsmdc797301e94797b4750a4c","cc1d0c1426d0fd0902bdoocsmdd2d7184b14da61b86ec46","b67e9d15cb6f910492fdoocsmdac6b44d379c953bb19eff","618c4dc2244ccbbc088doocsmd125d17fd31b7d06a50cf3","a4b581732e1c1507458doocsmdc5b223b27dae5e2e16a55","77904db41aee57ad79bdoocsmd760f848201dac9c96fd5e","02f251cb14ac62ab100doocsmdddbfc8527d773f1f04ce1","eb321079a95ba7028d9doocsmde2e84c502dac70de7cf08","22f74fcfb071a961fa2doocsmde28dabc746f0503a15e5d","85124c2bfe7abba0938doocsmd0af7f67918b99d085a5fd","0a561b4d4bbecb2de7edoocsmdd9ba3833d11dbc5e430f5","e8a01491188d8d5a097doocsmd03ede0aad1fe9e3af24e9","36e1f420d7e5bdebd67doocsmd65463562f5f25b20b8377"]},n={username:"filesss",repoList:Array.from([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],e=>"img"+e),branch:"main",accessTokenList:["ed5fc9866bd6c2fdoocsmddd433f806fd2f399c","5448ffebbbf1151doocsmdc4e337cf814fc8a62","25b05efd2557ca2doocsmd75b5c0835e3395911","11628c7a5aef015doocsmd2eeff9fb9566f0458","cb2f5145ed938dedoocsmdbd063b4ed244eecf8","d8c0b57500672c1doocsmd55f48b866b5ebcd98","78c56eadb88e453doocsmd43ddd95753351771a","03e1a688003948fdoocsmda16fcf41e6f03f1f0","c49121cf4d191fbdoocsmdd6a7877ed537e474a","adfeb2fadcdc4aadoocsmdfe1ee869ac9c968ff","116c94549ca4a0ddoocsmd192653af5c0694616","ecf30ed7f2eb184doocsmd51ea4ec8300371d9e","5837cf2bd5afd93doocsmd73904bed31934949e","b5b7e1c7d57e01fdoocsmd5266f552574297d78","684d55564ffbd0bdoocsmd7d747e5cc23aed6d6","3fc04a9d272ab71doocsmd010c56cb57d88d2ba"]}},5:function(e,t){},"557f":function(module,__webpack_exports__,__webpack_require__){"use strict";var _fetch__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("1cd3"),_config__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("4f8e"),crypto_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("02fe"),crypto_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(crypto_js__WEBPACK_IMPORTED_MODULE_2__),ali_oss__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("fd9d"),ali_oss__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(ali_oss__WEBPACK_IMPORTED_MODULE_3__),minio__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("8890"),minio__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(minio__WEBPACK_IMPORTED_MODULE_4__),cos_js_sdk_v5__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("bd88"),cos_js_sdk_v5__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(cos_js_sdk_v5__WEBPACK_IMPORTED_MODULE_5__),buffer_from__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("8113"),buffer_from__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(buffer_from__WEBPACK_IMPORTED_MODULE_6__),uuid__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("78ac"),qiniu_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("b114"),_assets_scripts_tokenTools__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("8f11");function getConfig(e,t){if(e){const e="github"===t?_config__WEBPACK_IMPORTED_MODULE_1__["b"]:_config__WEBPACK_IMPORTED_MODULE_1__["a"],{username:o,repoList:i,branch:n,accessTokenList:s}=e,r=Math.floor(Math.random()*s.length),a=s[r].replace("doocsmd",""),l=Math.floor(Math.random()*i.length),c=i[l];return{username:o,repo:c,branch:n,accessToken:a}}const o=JSON.parse(localStorage.getItem(t+"Config")),i=o.repo.replace(`https://${t}.com/`,"").replace(`http://${t}.com/`,"").replace(t+".com/","").split("/");return{username:i[0],repo:i[1],branch:o.branch||"master",accessToken:o.accessToken}}function getDir(){const e=new Date,t=e.getFullYear(),o=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0");return`${t}/${o}/${i}`}function getDateFilename(e){const t=(new Date).getTime(),o=e.split(".")[1];return`${t}-${Object(uuid__WEBPACK_IMPORTED_MODULE_7__["a"])()}.${o}`}async function ghFileUpload(e,t){var o;const i="default"===localStorage.getItem("imgHost"),{username:n,repo:s,branch:r,accessToken:a}=getConfig(i,"github"),l=getDir(),c=`https://api.github.com/repos/${n}/${s}/contents/${l}/`,d=getDateFilename(t),u=await Object(_fetch__WEBPACK_IMPORTED_MODULE_0__["a"])({url:c+d,method:"put",headers:{Authorization:"token "+a},data:{content:e,branch:r,message:"Upload by "+window.location.href}}),m=`raw.githubusercontent.com/${n}/${s}/${r}/`,p=`fastly.jsdelivr.net/gh/${n}/${s}@${r}/`;return u.content=(null===(o=u.data)||void 0===o?void 0:o.content)||u.content,i?u.content.download_url.replace(m,p):u.content.download_url}async function giteeUpload(e,t){var o;const i="default"===localStorage.getItem("imgHost"),{username:n,repo:s,branch:r,accessToken:a}=getConfig(i,"gitee"),l=getDir(),c=getDateFilename(t),d=`https://gitee.com/api/v5/repos/${n}/${s}/contents/${l}/${c}`,u=await Object(_fetch__WEBPACK_IMPORTED_MODULE_0__["a"])({url:d,method:"POST",data:{content:e,branch:r,access_token:a,message:"Upload by "+window.location.href}});return u.content=(null===(o=u.data)||void 0===o?void 0:o.content)||u.content,encodeURI(u.content.download_url)}function getQiniuToken(e,t,o){const i=JSON.stringify(o),n=Object(_assets_scripts_tokenTools__WEBPACK_IMPORTED_MODULE_9__["base64encode"])(Object(_assets_scripts_tokenTools__WEBPACK_IMPORTED_MODULE_9__["utf16to8"])(i)),s=crypto_js__WEBPACK_IMPORTED_MODULE_2___default.a.HmacSHA1(n,t),r=s.toString(crypto_js__WEBPACK_IMPORTED_MODULE_2___default.a.enc.Base64);return`${e}:${Object(_assets_scripts_tokenTools__WEBPACK_IMPORTED_MODULE_9__["safe64"])(r)}:${n}`}async function qiniuUpload(e){const{accessKey:t,secretKey:o,bucket:i,region:n,path:s,domain:r}=JSON.parse(localStorage.getItem("qiniuConfig")),a=getQiniuToken(t,o,{scope:i,deadline:Math.trunc((new Date).getTime()/1e3)+3600}),l=s?s+"/":"",c=l+getDateFilename(e.name),d=qiniu_js__WEBPACK_IMPORTED_MODULE_8__["upload"](e,c,a,{},{region:n});return new Promise((e,t)=>{d.subscribe({next:e=>{console.log(e)},error:e=>{t(e.message)},complete:t=>{e(`${r}/${t.key}`)}})})}async function aliOSSFileUpload(e,t){const o=getDateFilename(t),{region:i,bucket:n,accessKeyId:s,accessKeySecret:r,cdnHost:a,path:l}=JSON.parse(localStorage.getItem("aliOSSConfig")),c=buffer_from__WEBPACK_IMPORTED_MODULE_6___default()(e,"base64"),d=`${l}/${o}`,u=new ali_oss__WEBPACK_IMPORTED_MODULE_3___default.a({region:i,bucket:n,accessKeyId:s,accessKeySecret:r});try{const e=await u.put(d,c);return""===a?e.url:`${a}/${""===l?o:d}`}catch(m){return Promise.reject(m)}}async function txCOSFileUpload(e){const t=getDateFilename(e.name),{secretId:o,secretKey:i,bucket:n,region:s,path:r,cdnHost:a}=JSON.parse(localStorage.getItem("txCOSConfig")),l=new cos_js_sdk_v5__WEBPACK_IMPORTED_MODULE_5___default.a({SecretId:o,SecretKey:i});return new Promise((o,i)=>{l.putObject({Bucket:n,Region:s,Key:`${r}/${t}`,Body:e},(function(e,n){e?i(e):o(a?""==r?`${a}/${t}`:`${a}/${r}/${t}`:"https://"+n.Location)}))})}async function minioFileUpload(e,t){const o=getDateFilename(t),{endpoint:i,port:n,useSSL:s,bucket:r,accessKey:a,secretKey:l}=JSON.parse(localStorage.getItem("minioConfig")),c=buffer_from__WEBPACK_IMPORTED_MODULE_6___default()(e,"base64"),d={endPoint:i,useSSL:s,accessKey:a,secretKey:l},u=Number(n||0),m=u>0&&80!==u&&443!==u;return m&&(d.port=u),new Promise((e,t)=>{const a=new minio__WEBPACK_IMPORTED_MODULE_4__["Client"](d);try{a.putObject(r,o,c,(function(a){a&&t(a);const l=`${s?"https://":"http://"}${i}${m?":"+n:""}`,c=`${l}/${r}/${o}`;e(c)}))}catch(l){t(l)}})}async function formCustomUpload(content,file){const str=`\n async (CUSTOM_ARG) => {\n ${localStorage.getItem("formCustomConfig")}\n }\n `;return new Promise((resolve,reject)=>{const exportObj={content:content,file:file,util:{axios:_fetch__WEBPACK_IMPORTED_MODULE_0__["a"],CryptoJS:crypto_js__WEBPACK_IMPORTED_MODULE_2___default(),OSS:ali_oss__WEBPACK_IMPORTED_MODULE_3___default(),COS:cos_js_sdk_v5__WEBPACK_IMPORTED_MODULE_5___default(),Buffer:buffer_from__WEBPACK_IMPORTED_MODULE_6___default(),uuidv4:uuid__WEBPACK_IMPORTED_MODULE_7__["a"],qiniu:qiniu_js__WEBPACK_IMPORTED_MODULE_8__,tokenTools:_assets_scripts_tokenTools__WEBPACK_IMPORTED_MODULE_9__,getDir:getDir,getDateFilename:getDateFilename},okCb:resolve,errCb:reject};eval(str)(exportObj).catch(e=>{console.error(e),reject(e)})})}function fileUpload(e,t){const o=localStorage.getItem("imgHost");switch(!o&&localStorage.setItem("imgHost","default"),o){case"aliOSS":return aliOSSFileUpload(e,t.name);case"minio":return minioFileUpload(e,t.name);case"txCOS":return txCOSFileUpload(t);case"qiniu":return qiniuUpload(t);case"gitee":return giteeUpload(e,t.name);case"github":return ghFileUpload(e,t.name);case"formCustom":return formCustomUpload(e,t);default:return ghFileUpload(e,t.name)}}__webpack_exports__["a"]={fileUpload:fileUpload}},6:function(e,t){},"6bdb":function(e,t,o){"use strict";o("c2d6")},7:function(e,t){},7206:function(e,t,o){},"7f25":function(e,t,o){"use strict";o("8af6")},8:function(e,t){},"8af6":function(e,t,o){},"8f11":function(e,t,o){"use strict";function i(e){var t,o,i,n;for(t="",i=e.length,o=0;o=1&&n<=127?t+=e.charAt(o):n>2047?(t+=String.fromCharCode(224|n>>12&15),t+=String.fromCharCode(128|n>>6&63),t+=String.fromCharCode(128|n>>0&63)):(t+=String.fromCharCode(192|n>>6&31),t+=String.fromCharCode(128|n>>0&63));return t}function n(e){var t,o,i,n,s,r;t="",i=e.length,o=0;while(o>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:t+=e.charAt(o-1);break;case 12:case 13:s=e.charCodeAt(o++),t+=String.fromCharCode((31&n)<<6|63&s);break;case 14:s=e.charCodeAt(o++),r=e.charCodeAt(o++),t+=String.fromCharCode((15&n)<<12|(63&s)<<6|(63&r)<<0);break}return t}o.r(t),o.d(t,"utf16to8",(function(){return i})),o.d(t,"utf8to16",(function(){return n})),o.d(t,"base64encode",(function(){return a})),o.d(t,"base64decode",(function(){return l})),o.d(t,"safe64",(function(){return c}));const s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",r=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1);function a(e){var t,o,i,n,r,a;i=e.length,o=0,t="";while(o>2),t+=s.charAt((3&n)<<4),t+="==";break}if(r=e.charCodeAt(o++),o==i){t+=s.charAt(n>>2),t+=s.charAt((3&n)<<4|(240&r)>>4),t+=s.charAt((15&r)<<2),t+="=";break}a=e.charCodeAt(o++),t+=s.charAt(n>>2),t+=s.charAt((3&n)<<4|(240&r)>>4),t+=s.charAt((15&r)<<2|(192&a)>>6),t+=s.charAt(63&a)}return t}function l(e){var t,o,i,n,s,a,l;a=e.length,s=0,l="";while(s>4);do{if(i=255&e.charCodeAt(s++),61==i)return l;i=r[i]}while(s>2);do{if(n=255&e.charCodeAt(s++),61==n)return l;n=r[n]}while(s(/^(post)|(put)|(delete)$/i.test(e.method)&&e.data&&e.data.upload&&(e.headers["Content-Type"]="multipart/form-data"),e),e=>{Promise.reject(e)}),s.interceptors.response.use(e=>e.data?e.data:Promise.reject(e),e=>Promise.reject(e)),t["a"]=s},2:function(e,t){},"2b39":function(e,t,o){},3:function(e,t){},3479:function(e,t,o){"use strict";o.r(t);var i=o("ff9b"),n=o("ccbf"),s=o.n(n),r=o("acd4");o("b6f4"),o("e3f8"),o("8128"),o("fa17"),o("0b4a"),o("a6e0"),o("7fa7"),o("697d"),o("beaf"),o("6864"),o("8d07"),o("a176");i["default"].component(n["Message"].name,n["Message"]),i["default"].prototype.$loading=n["Loading"].service,i["default"].prototype.$message=n["Message"];var a=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t("div",{attrs:{id:"app"}},[t(o.CodemirrorEditor)],1)},l=[],c=function(){var e=this,t=e._self._c;return t("div",{staticClass:"container",class:{container_night:e.nightMode}},[t("el-container",[t("el-header",{staticClass:"editor__header"},[t("editor-header",{ref:"header",on:{addFormat:e.addFormat,formatContent:e.formatContent,refresh:e.onEditorRefresh,cssChanged:e.cssChanged,"import-md":e.importMD,download:e.downloadEditorContent,export:e.exportEditorContent,showCssEditor:function(t){e.showCssEditor=!e.showCssEditor},"show-about-dialog":function(t){e.aboutDialogVisible=!0},"show-dialog-form":function(t){e.insertFormDialogVisible=!0},"show-dialog-upload-img":function(t){e.dialogUploadImgVisible=!0},startCopy:function(t){e.isCoping=!0,e.backLight=!0},endCopy:e.endCopy}})],1),t("el-main",{staticClass:"main-body"},[t("el-row",{staticClass:"main-section"},[t("el-col",{ref:"codeMirrorWrapper",staticClass:"codeMirror-wrapper",attrs:{span:12},nativeOn:{contextmenu:function(t){return t.preventDefault(),e.openMenu.apply(null,arguments)}}},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.source,expression:"source"}],attrs:{id:"editor",type:"textarea",placeholder:"Your markdown text here."},domProps:{value:e.source},on:{input:function(t){t.target.composing||(e.source=t.target.value)}}})]),t("el-col",{ref:"preview",staticClass:"preview-wrapper",class:{"preview-wrapper_night":e.nightMode&&e.isCoping},attrs:{span:12,id:"preview"}},[t("section",{class:{output_night:e.nightMode&&!e.backLight},attrs:{id:"output-wrapper"}},[t("div",{staticClass:"preview"},[t("section",{attrs:{id:"output"},domProps:{innerHTML:e._s(e.output)}}),e.nightMode&&e.isCoping?t("div",{staticClass:"loading-mask"},[t("div",{staticClass:"loading__img"}),t("span",[e._v("正在生成")])]):e._e()])])]),t("css-editor",{attrs:{"show-css-editor":e.showCssEditor}})],1)],1)],1),t("upload-img-dialog",{attrs:{visible:e.dialogUploadImgVisible},on:{close:function(t){e.dialogUploadImgVisible=!1},beforeUpload:e.beforeUpload,uploadImage:e.uploadImage,uploaded:e.uploaded}}),t("about-dialog",{attrs:{visible:e.aboutDialogVisible},on:{close:function(t){e.aboutDialogVisible=!1}}}),t("insert-form-dialog",{attrs:{visible:e.insertFormDialogVisible},on:{close:function(t){e.insertFormDialogVisible=!1}}}),t("right-click-menu",{attrs:{visible:e.rightClickMenuVisible,left:e.mouseLeft,top:e.mouseTop},on:{menuTick:e.onMenuEvent,closeMenu:function(t){e.rightClickMenuVisible=!1}}}),t("run-loading")],1)},d=[],u=(o("a3a9"),o("aa9c"),o("c6de")),m=o("f14e"),p=o.n(m),f={builtinFonts:[{label:"无衬线",value:"-apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif",desc:"Abc"},{label:"衬线",value:"Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif",desc:"Abc"}],sizeOption:[{label:"12px",value:"12px",desc:"更小"},{label:"13px",value:"13px",desc:"稍小"},{label:"14px",value:"14px",desc:"推荐"},{label:"15px",value:"15px",desc:"稍大"},{label:"16px",value:"16px",desc:"更大"}],colorOption:[{label:"经典蓝",value:"rgba(15, 76, 129, 1)",desc:"最新流行"},{label:"翡翠绿",value:"rgba(0, 152, 116, 1)",desc:"优雅清新"},{label:"活力橘",value:"rgba(250, 81, 81, 1)",desc:"热情活泼"}],codeThemeOption:[{label:"github",value:"https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/npm/highlight.js@11.5.1/styles/github.min.css",desc:"light"},{label:"solarized-light",value:"https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/npm/highlight.js@11.5.1/styles/solarized-light.min.css",desc:"light"},{label:"atom-one-dark",value:"https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/npm/highlight.js@11.5.1/styles/atom-one-dark.min.css",desc:"dark"},{label:"obsidian",value:"https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/npm/highlight.js@11.5.1/styles/obsidian.min.css",desc:"dark"},{label:"vs2015",value:"https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/npm/highlight.js@11.5.1/styles/vs2015.min.css",desc:"dark"}],form:{rows:1,cols:1}},h=o("57c9"),g=o.n(h),b=o("2947"),_=o.n(b);class C{constructor(e){this.opts=e;let t=[],o=0,i=new Map,n=(e,t)=>Object.assign({},e,t);this.buildTheme=e=>{let t={},o=n(e.BASE,{"font-family":this.opts.fonts,"font-size":this.opts.size});for(let s in e.inline)if(e.inline.hasOwnProperty(s)){let o=e.inline[s];t[s]=n(e.BASE,o)}let i=n(o,{});for(let s in e.block)if(e.block.hasOwnProperty(s)){let o=e.block[s];t[s]=n(i,o)}return t};let s=(e,t)=>{let o=[],n=i[e];if(!n)return"";for(const i in n)o.push(i+":"+n[i]);return`style="${o.join(";")+(t||"")}"`},r=(e,i)=>(t.push([++o,e,i]),o);this.buildFootnotes=()=>{let e=t.map(e=>e[1]===e[2]?`[${e[0]}]: ${e[1]}
    `:`[${e[0]}] ${e[1]}: ${e[2]}
    `);return e.length?`

    引用链接

    ${e.join("\n")}

    `:""},this.buildAddition=()=>"\n \n ",this.setOptions=e=>{this.opts=n(this.opts,e)},this.hasFootnotes=()=>0!==t.length,this.getRenderer=e=>{t=[],o=0,i=this.buildTheme(this.opts.theme);let n=new u["Renderer"];return n.heading=(e,t)=>{switch(t){case 1:return`

    ${e}

    `;case 2:return`

    ${e}

    `;case 3:return`

    ${e}

    `;default:return`

    ${e}

    `}},n.paragraph=e=>-1!=e.indexOf("${e}

    `,n.blockquote=e=>(e=e.replace(//g,`

    `),`

    ${e}
    `),n.code=(e,t)=>{if("katex"===t){const t=_.a.renderToString(e);return""+t}return t.startsWith("mermaid")?(setTimeout(()=>{var e;null===(e=window.mermaid)||void 0===e||e.run()},0),`
    ${e}
    `):(t=g.a.getLanguage(t)?t:"plaintext",e=g.a.highlight(e,{language:t}).value,e=e.replace(/\r\n/g,"
    ").replace(/\n/g,"
    ").replace(/(>[^<]+)|(^[^<]+)/g,(function(e){return e.replace(/\s/g," ")})),`
    ${e}
    `)},n.codespan=(e,t)=>`${e}`,n.listitem=e=>`
  • <%s/>${e}
  • `,n.list=(e,t,o)=>{e=e.replace(/<\/*p .*?>/g,"").replace(/<\/*p>/g,"");let i=e.split("<%s/>");if(!t)return e=i.join("• "),`
      ${e}
    `;e=i[0];for(let n=1;n${e}`},n.image=(e,t,o)=>{let i="";o&&(i=`
    ${o}
    `);let n=s("figure"),r=s("image");return`
    ${o}${i}
    `},n.link=(t,o,i)=>{if(t.startsWith("https://mp.weixin.qq.com"))return`${i}`;if(t===i)return i;if(e){let e=r(o||i,t);return`${i}[${e}]`}return`${i}`},n.strong=e=>`${e}`,n.em=e=>`${e}`,n.table=(e,t)=>`
    ${e}${t}
    `,n.tablecell=(e,t)=>`${e}`,n.hr=()=>`
    `,n}}}var S=C,k='# 示例文章:Google 搜索的即时自动补全功能究竟是如何“工作”的?\n\n> Google 搜索**自动补全功能**的强大,相信不少朋友都能感受到,它帮助我们更快地“补全”我们所要输入的搜索关键字。那么,它怎么知道我们要输入什么内容?它又是如何工作的?在这篇文章里,我们一起来看看。\n\n## 使用自动补全\n\nGoogle 搜索的自动补全功能可以在 Google 搜索应用的大多数位置使用,包括 [Google](https://www.google.com/) 主页、适用于 IOS 和 Android 的 Google 应用,我们只需要在 Google 搜索框上开始键入关键字,就可以看到联想词了。\n\n![](https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303019705-c161ce00-d245-446a-b81c-42ec91474a40.gif)\n\n在上图示例中,我们可以看到,输入关键字 `juej`,Google 搜索会联想到“掘金”、“掘金小册”、“绝句”等等,好处就是,我们无须输入完整的关键字即可轻松完成针对这些 topics 的搜索。\n\n谷歌搜索的自动补全功能对于使用移动设备的用户来说特别有用,用户可以轻松在难以键入的小屏幕上完成搜索。当然,对于移动设备用户和台式机用户而言,这都节省了大量的时间。根据 Google 官方报告,自动补全功能可以减少大约 25% 的打字,累积起来,预计每天可以节省 200 多年的打字时间。是的,每天!\n\n> 注意,本文所提到的“**联想词**”与“**预测**”,是同一个意思。\n\n## 基于“预测”而非“建议”\n\nGoogle 官方将自动补全功能称之为“预测”,而不是“建议”,为什么呢?其实是有充分理由的。自动补全功能是为了**帮助用户完成他们打算进行的搜索**,而不是建议用户要执行什么搜索。\n\n那么,Google 是如何确定这些“预测”的?其实,Google 会根据趋势搜索 [trends](https://trends.google.com/trends/?geo=US) 给到我们这些“预测”。简单来说,哪个热门、哪个搜索频率高,就更可能推给我们。当然,这也与我们当前所处的位置以及我们的搜索历史相关。\n\n另外,这些“预测”也会随着我们键入的关键字的变更而更改。例如,当我们把键入的关键字从 `juej` 更改为 `juex` 时,与“掘金”相关的预测会“消失”,同时,与“觉醒”、“决心”相关联的词会出现。\n\n![](https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303068169-386a99cb-143b-4ded-a859-1b7a4c4b5bd3.gif)\n\n## 为什么看不到某些联想词?\n\n如果我们在输入某个关键字时看不到联想词,那么表明 Google 的算法可能检测到:\n\n- 这个关键字不是热门字词;\n- 搜索的字词太新了,我们可能需要等待几天或几周才能看到联想词;\n- 这是一个侮辱性或敏感字词,这个搜索字词违反了 Google 的相关政策。更加详细的情况,可以了解 [Google 搜索自动补全政策](https://support.google.com/websearch/answer/7368877)。\n\n## 为什么会看到某些不当的联想词?\n\nGoogle 拥有专门设计的系统,可以自动捕获不适当的预测结果而不显示出来。然而,Google 每天需要处理数十亿次搜索,这意味着 Google 每天会显示数十亿甚至上百亿条预测。再好的系统,也可能存在缺陷,不正确的预测也可能随时会出现。\n\n我们作为 Google 搜索的用户,如果认定某条预测违反了相关的搜索自动补全政策,可以进行举报反馈,点击右下角“**举报不当的联想查询**”并勾选相关选项即可。\n\n![](https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303098026-cac215dc-42c9-462a-a359-dcfb12ed3234.gif)\n\n## 如何实现自动补全算法?\n\n目前,Google 官方似乎并没有公开搜索自动补全的算法实现,但是业界在这方面已经有了不少研究。\n\n一个好的自动补全器必须是快速的,并且在用户键入下一个字符后立即更新联想词列表。**自动补全器的核心是一个函数,它接受输入的前缀,并搜索以给定前缀开头的词汇或语句列表**。通常来说,只需要返回少量的数目即可。\n\n接下来,我们先从一个简单且低效的实现开始,并在此基础上逐步构建更高效的方法。\n\n### 词汇表实现\n\n一个**简单粗暴的实现方式**是:顺序查找词汇表,依次检查每个词汇,看它是否以给定的前缀开头。\n\n但是,此方法需要将前缀与每个词汇进行匹配检查,若词汇量较少,这种方式可能勉强行得通。但是,如果词汇量规模较大,效率就太低了。\n\n一个**更好的实现方式是**:让词汇按字典顺序排序。借助二分搜索算法,可以快速搜索有序词汇表中的前缀。由于二分搜索的每一步都会将搜索的范围减半,因此,总的搜索时间与词汇表中单词数量的对数成正比,即时间复杂度是 `O(log N)`。二分搜索的性能很好,但有没有更好的实现呢?当然有,往下看。\n\n### 前缀树实现\n\n通常来说,许多词汇都以相同的前缀开头,比如 `need`、`nested` 都以 `ne` 开头,`seed`、`speed` 都以 `s` 开头。要是为每个单词分别存储公共前缀似乎很浪费。\n\n\n![](https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303128008-93cf798d-2662-4eec-8f80-2e07436aebfe.png)\n\n\n前缀树是一种利用公共前缀来加速补全速度的数据结构。前缀树在节点树中排列一组单词,单词沿着从根节点到叶子节点的路径存储,树的层次对应于前缀的字母位置。\n\n前缀的补全是顺着前缀定义的路径来查找的。例如,在上图的前缀树中,前缀 `ne` 对应于从子节点取左边缘 `N` 和唯一边缘 `E` 的路径。然后可以通过继续遍历从 `E` 节点可以达到的所有叶节点来生成补全列表。在图中,`ne` 的补全可以是两个分支:`-ed` 和 `-sted`。如果在数中找不到由前缀定义的路径,则说明词汇表中不包含以该前缀开头的单词。\n\n### 有限状态自动机(DFA)实现\n\n前缀树可以有效处理公共前缀,但是,对于其他共享词部分,仍会分别存储在每个分支中。比如,后缀 `ed`、`ing`、`tion` 在英文单词中特别常见。在上一个例子中,`e`、`d` 分别存放在了每一个分支上。\n\n有没有一种方法可以更加节省存储空间呢?有的,那就是 DFA。\n\n
    \n
    \n\n在上面的例子中,单词 `need`、`nested`、`seed` 和 `speed` 仅由 9 个节点组成,而上一张图中的前缀树包含了 17 个节点。\n\n可以看出,最小化前缀树 DFA 可以在很大程度上减少数据结构的大小。即使词汇量很大,最小化 DFA 通常也适合在内存中存储,避免昂贵的磁盘访问是实现快速自动补全的关键。\n\n### 一些扩展\n\n上面介绍了如何利用合理的数据结构实现基本的自动补全功能。这些数据结构可以通过多种方式进行扩展,从而改善用户体验。\n\n通常,满足特定前缀的词汇可能很多,而用户界面上能够显示的却不多,我们更希望能显示最常搜索或者最有价值的词汇。这通常可以通过为词汇表中的每个单词增加一个代表单词值的**权重** `weight`,并且按照权重高低来排序自动补全列表。\n\n- 对于排序后的词汇表来说,在词汇表每个元素上增加 `weight` 属性并不难;\n- 对于前缀树来说,将 `weight` 存储在叶子节点中,也是很简单的一个实现;\n- 对于 `DFA` 来说,则较为复杂。因为一个叶子节点可以通过多条路径到达。一种解决方案是将权重关联到路径而不是叶子节点。\n\n目前有不少开源库都提供了这个功能,比如主流的搜索引擎框架 [Elasticsearch](https://www.elastic.co/products/elasticsearch)、[Solr](https://lucene.apache.org/solr/) 等,基于此,我们可以实现高效而强大的自动补全功能。\n\n#### 推荐阅读\n\n- [阿里又一个 20k+ stars 开源项目诞生,恭喜 fastjson!](https://mp.weixin.qq.com/s/RNKDCK2KoyeuMeEs6GUrow)\n- [刷掉 90% 候选人的互联网大厂海量数据面试题(附题解 + 方法总结)](https://mp.weixin.qq.com/s/rjGqxUvrEqJNlo09GrT1Dw)\n- [好用!期待已久的文本块功能究竟如何在 Java 13 中发挥作用?](https://mp.weixin.qq.com/s/kalGv5T8AZGxTnLHr2wDsA)\n- [2019 GitHub 开源贡献排行榜新鲜出炉!微软谷歌领头,阿里跻身前 12!](https://mp.weixin.qq.com/s/_q812aGD1b9QvZ2WFI0Qgw)\n\n---\n\n欢迎关注我的公众号“**Doocs**”,原创技术文章第一时间推送。\n\n
    \n \n
    \n',y="/*\n 按Ctrl/Command+F可格式化\n*/\n/* 一级标题样式 */\nh1 {\n}\n/* 二级标题样式 */\nh2 {\n}\n/* 三级标题样式 */\nh3 {\n}\n/* 四级标题样式 */\nh4 {\n}\n/* 图片样式 */\nimage {\n}\n/* 引用样式 */\nblockquote {\n}\n/* 引用段落样式 */\nblockquote_p {\n}\n/* 段落样式 */\np {\n}\n/* 分割线样式 */\nhr {\n}\n/* 行内代码样式 */\ncodespan {\n}\n/* 粗体样式 */\nstrong {\n}\n/* 链接样式 */\nlink {\n}\n/* 微信链接样式 */\nwx_link {\n}\n/* 有序列表样式 */\nol {\n}\n/* 无序列表样式 */\nul {\n}\n/* 列表项样式 */\nli {\n}\n/* 代码块样式 */\ncode {\n}\n",O=(o("3723"),o("6da1"),o("ad98"),o("2658")),w=o.n(O),v=o("53da"),x=o.n(v),$=o("a305"),E=o.n($);let M="#3f3f3f";var T={BASE:{"text-align":"left","line-height":"1.75"},block:{h1:{"font-size":"1.2em","text-align":"center","font-weight":"bold",display:"table",margin:"2em auto 1em",padding:"0 1em","border-bottom":"2px solid rgba(0, 152, 116, 0.9)",color:M},h2:{"font-size":"1.2em","text-align":"center","font-weight":"bold",display:"table",margin:"4em auto 2em",padding:"0 0.2em",background:"rgba(0, 152, 116, 0.9)",color:"#fff"},h3:{"font-weight":"bold","font-size":"1.1em",margin:"2em 8px 0.75em 0","line-height":"1.2","padding-left":"8px","border-left":"3px solid rgba(0, 152, 116, 0.9)",color:M},h4:{"font-weight":"bold","font-size":"1em",margin:"2em 8px 0.5em",color:"rgba(66, 185, 131, 0.9)"},p:{margin:"1.5em 8px","letter-spacing":"0.1em",color:M},blockquote:{"font-style":"normal","border-left":"none",padding:"1em","border-radius":"8px",color:"rgba(0,0,0,0.5)",background:"#f7f7f7",margin:"2em 8px"},blockquote_p:{"letter-spacing":"0.1em",color:"rgb(80, 80, 80)","font-size":"1em",display:"block"},code_pre:{"font-size":"14px","overflow-x":"auto","border-radius":"8px",padding:"1em","line-height":"1.5",margin:"10px 8px"},code:{margin:0,"white-space":"nowrap","font-family":"Menlo, Operator Mono, Consolas, Monaco, monospace"},image:{"border-radius":"4px",display:"block",margin:"0.1em auto 0.5em",width:"100% !important"},ol:{"margin-left":"0","padding-left":"1em",color:M},ul:{"margin-left":"0","padding-left":"1em","list-style":"circle",color:M},footnotes:{margin:"0.5em 8px","font-size":"80%",color:M},figure:{margin:"1.5em 8px",color:M},hr:{"border-style":"solid","border-width":"1px 0 0","border-color":"rgba(0,0,0,0.1)","-webkit-transform-origin":"0 0","-webkit-transform":"scale(1, 0.5)","transform-origin":"0 0",transform:"scale(1, 0.5)"}},inline:{listitem:{"text-indent":"-1em",display:"block",margin:"0.2em 8px",color:M},codespan:{"font-size":"90%",color:"#d14",background:"rgba(27,31,35,.05)",padding:"3px 5px","border-radius":"4px","word-break":"break-all"},link:{color:"#576b95"},wx_link:{color:"#576b95","text-decoration":"none"},strong:{color:"rgba(15, 76, 129, 0.9)","font-weight":"bold"},table:{"border-collapse":"collapse","text-align":"center",margin:"1em 8px",color:M},thead:{background:"rgba(0, 0, 0, 0.05)","font-weight":"bold",color:M},td:{border:"1px solid #dfdfdf",padding:"0.25em 0.5em",color:M},footnote:{"font-size":"12px",color:M},figcaption:{"text-align":"center",color:"#888","font-size":"0.8em"}}};const I=(e,t)=>{const o=JSON.parse(JSON.stringify(e));return o.block.h1["border-bottom"]="2px solid "+t,o.block.h2["background"]=t,o.block.h3["border-left"]="3px solid "+t,o.block.h4["color"]=t,o.inline.strong["color"]=t,o};function D(e){return t=>I(e,t)}function A(e,t){return I(e,t)}function P(e){return function(t){const o=JSON.parse(JSON.stringify(e));return o.block.h1["font-size"]=1.14*t+"px",o.block.h2["font-size"]=1.1*t+"px",o.block.h3["font-size"]=t+"px",o.block.h4["font-size"]=t+"px",o}}const R=D(T),j=P(T);function K(e,t,o){const i=I(o,t);return i.block.h1=Object.assign(i.block.h1,e.h1),i.block.h2=Object.assign(i.block.h2,e.h2),i.block.h3=Object.assign(i.block.h3,e.h3),i.block.h4=Object.assign(i.block.h4,e.h4),i.block.code=Object.assign(i.block.code,e.code),i.block.p=Object.assign(i.block.p,e.p),i.block.hr=Object.assign(i.block.hr,e.hr),i.block.blockquote=Object.assign(i.block.blockquote,e.blockquote),i.block.blockquote_p=Object.assign(i.block.blockquote_p,e.blockquote_p),i.block.image=Object.assign(i.block.image,e.image),i.inline.strong=Object.assign(i.inline.strong,e.strong),i.inline.codespan=Object.assign(i.inline.codespan,e.codespan),i.inline.link=Object.assign(i.inline.link,e.link),i.inline.wx_link=Object.assign(i.inline.wx_link,e.wx_link),i.block.ul=Object.assign(i.block.ul,e.ul),i.block.ol=Object.assign(i.block.ol,e.ol),i.inline.listitem=Object.assign(i.inline.listitem,e.li),i}function B(e){let t,o;while(-1!==(t=e.indexOf("/*"))&&-1!==(o=e.indexOf("*/")))e=e.substring(0,t)+e.substring(o+2);let i={};while(e.length>0&&-1!==e.indexOf("{")&&-1!==e.indexOf("}")){const t=e.indexOf("{"),o=e.indexOf("}");function n(e){let t={};return e.forEach(e=>{const o=e.indexOf(":"),i=e.substring(0,o).trim();t[i]=e.substring(o+1).trim()}),t}let s=e.substring(t+1,o).split(";").map(e=>e.trim()).filter(e=>e.length>0);s=n(s);let r=e.substring(0,t).split(",").map(e=>e.trim());r.forEach(e=>{i[e]||(i[e]={}),Object.keys(s).forEach(t=>{i[e][t]=s[t]})}),e=e.slice(o+1).trim()}return i}function L(e,t){const o=e.getValue(0);o?localStorage.setItem(t,o):localStorage.removeItem(t)}function q(e){return w.a.format(e,{parser:"markdown",plugins:[E.a]})}function U(e){return w.a.format(e,{parser:"css",plugins:[x.a]})}function F(e){const t=document.createElement("a");t.download="content.md",t.style.display="none";const o=new Blob([e]);t.href=URL.createObjectURL(o),document.body.appendChild(t),t.click(),document.body.removeChild(t)}function z(){const e=document.querySelector("#output");n(e);const t=e.innerHTML,o=document.createElement("a");o.download="content.html",o.style.display="none";let i=new Blob([`
    ${t}
    `]);function n(e){function t(e,t=["width","height"]){const o=getComputedStyle(e,null);return Object.entries(o).filter(([e])=>o.getPropertyValue(e)&&!t.includes(e)).map(([e,t])=>`${e}:${t};`).join("")}switch(!0){case o(e):case i(e):case s(e):e.setAttribute("style",t(e));default:}function o(e){return"PRE"===e.tagName&&Array.from(e.classList).includes("code__pre")}function i(e){return"CODE"===e.tagName&&Array.from(e.classList).includes("prettyprint")}function s(e){return"SPAN"===e.tagName&&(i(e.parentElement)||i(e.parentElement.parentElement))}e.children.length&&Array.from(e.children).forEach(e=>n(e))}o.href=URL.createObjectURL(i),document.body.appendChild(o),o.click(),document.body.removeChild(o)}function H({data:e,rows:t,cols:o}){let i="";for(let n=0;n1?n-1:n;t.push(1===n?"---":e[`k_${o}_${i}`]||" ")}i+=t.join(" | "),i+=" |\n"}return i}function N(e){return new Promise((t,o)=>{const i=new FileReader;i.readAsDataURL(e),i.onload=()=>t(i.result.split(",").pop()),i.onerror=e=>o(e)})}function G(e){const t=/\.(gif|jpg|jpeg|png|GIF|JPG|PNG)$/.test(e.name);if(!t)return{ok:!1,msg:"请上传 JPG/PNG/GIF 格式的图片"};const o=10,i=e.size/1024/1024<=o;return i?{ok:!0}:{ok:!1,msg:`由于公众号限制,图片大小不能超过 ${o}M`}}function W(e){const t=e.split("\n"),o=t.filter(e=>e.trim()).map(e=>e.match(/(^\s+)?/)[0].length).sort((e,t)=>e-t)[0];return t.map(e=>e.slice(o)).join("\n")}const V=p.a.keyMap["default"],Q=V===p.a.keyMap["macDefault"]?"Cmd":"Ctrl",J=Object(r["c"])("store",{state:()=>({wxRenderer:null,output:"",html:"",editor:null,cssEditor:null,currentFont:"",currentSize:"",currentColor:"",citeStatus:!1,nightMode:!1,codeTheme:f.codeThemeOption[2].value,isMacCodeBlock:!0}),actions:{setEditorValue(e){this.editor.setValue(e)},setCssEditorValue(e){this.cssEditor.setValue(e)},setWxRendererOptions(e){this.wxRenderer.setOptions(e)},setCiteStatus(e){this.citeStatus=e,localStorage.setItem("citeStatus",e)},setCurrentFont(e){this.currentFont=e,localStorage.setItem("fonts",e)},setCurrentSize(e){this.currentSize=e,localStorage.setItem("size",e)},setCurrentColor(e){this.currentColor=e,localStorage.setItem("color",e)},setCurrentCodeTheme(e){this.codeTheme=e,localStorage.setItem("codeTheme",e)},setIsMacCodeBlock(e){this.isMacCodeBlock=e,localStorage.setItem("isMacCodeBlock",e)},themeChanged(){this.nightMode=!this.nightMode,localStorage.setItem("nightMode",this.nightMode)},initEditorState(){this.currentFont=localStorage.getItem("fonts")||f.builtinFonts[0].value,this.currentColor=localStorage.getItem("color")||f.colorOption[0].value,this.currentSize=localStorage.getItem("size")||f.sizeOption[2].value,this.codeTheme=localStorage.getItem("codeTheme")||f.codeThemeOption[2].value,this.citeStatus="true"===localStorage.getItem("citeStatus"),this.nightMode="true"===localStorage.getItem("nightMode"),this.isMacCodeBlock=!("false"===localStorage.getItem("isMacCodeBlock")),this.wxRenderer=new S({theme:R(this.currentColor),fonts:this.currentFont,size:this.currentSize})},initEditorEntity(){const e=document.getElementById("editor");e.value||(e.value=localStorage.getItem("__editor_content")||q(k)),this.editor=p.a.fromTextArea(e,{mode:"text/x-markdown",theme:"xq-light",lineNumbers:!1,lineWrapping:!0,styleActiveLine:!0,autoCloseBrackets:!0,extraKeys:{[Q+"-F"]:function(e){const t=q(e.getValue(0));localStorage.setItem("__editor_content",t),e.setValue(t)},[Q+"-B"]:function(e){const t=e.getSelection();e.replaceSelection(`**${t}**`)},[Q+"-D"]:function(e){const t=e.getSelection();e.replaceSelection(`~~${t}~~`)},[Q+"-I"]:function(e){const t=e.getSelection();e.replaceSelection(`*${t}*`)},[Q+"-K"]:function(e){const t=e.getSelection();e.replaceSelection(`[${t}]()`)},[Q+"-L"]:function(e){const t=e.getSelection();e.replaceSelection(`\`${t}\``)}}})},initCssEditorEntity(){const e=document.getElementById("cssEditor");e.value||(e.value=localStorage.getItem("__css_content")||y),this.cssEditor=p.a.fromTextArea(e,{mode:"css",theme:"style-mirror",lineNumbers:!1,lineWrapping:!0,matchBrackets:!0,autofocus:!0,extraKeys:{[Q+"-F"]:function(e){const t=U(e.getValue(0));localStorage.setItem("__css_content",t),e.setValue(t)},[Q+"-S"]:function(e){}}})},editorRefresh(){const e=this.wxRenderer.getRenderer(this.citeStatus);u["marked"].setOptions({renderer:e});let t=u["marked"].parse(this.editor.getValue(0));t=t.replace(/(style=".*?)"/,'$1;margin-top: 0"'),this.citeStatus&&(t+=this.wxRenderer.buildFootnotes(),t+=this.wxRenderer.buildAddition()),this.isMacCodeBlock&&(t+="\n \n "),this.output=t}}});var Y=function(){var e=this,t=e._self._c;return t("el-container",{staticClass:"header-container is-dark"},[t("div",{staticClass:"dropdowns"},[t("el-dropdown",[t("span",{staticClass:"el-dropdown-link"},[e._v(" 文件"),t("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t("el-dropdown-item",{nativeOn:{click:function(t){return e.refClick.apply(null,arguments)}}},[t("i",{staticClass:"el-icon-upload2"}),e._v(" 导入 .md "),t("input",{ref:"fileInput",attrs:{hidden:"",type:"file",accept:".md"}})]),t("el-dropdown-item",{nativeOn:{click:function(t){return e.$emit("download")}}},[t("i",{staticClass:"el-icon-download"}),e._v(" 导出 .md ")]),t("el-dropdown-item",{nativeOn:{click:function(t){return e.$emit("export")}}},[t("i",{staticClass:"el-icon-document"}),e._v(" 导出 .html ")]),t("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(t){return e.themeChanged.apply(null,arguments)}}},[t("i",{staticClass:"el-icon-check",style:{opacity:e.nightMode?1:0}}),e._v(" 暗黑模式 ")])],1)],1),t("el-dropdown",[t("span",{staticClass:"el-dropdown-link"},[e._v(" 格式"),t("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e._l(e.formatItems,(function({label:o,kbd:i,emitArgs:n}){return t("el-dropdown-item",{key:i,staticClass:"format-item",nativeOn:{click:function(t){return e.$emit(...n)}}},[e._v(" "+e._s(o)+" "),t("kbd",[e._v(e._s(i))])])})),t("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(t){return e.statusChanged.apply(null,arguments)}}},[t("i",{staticClass:"el-icon-check",style:{opacity:e.citeStatus?1:0}}),e._v(" 微信外链转底部引用 ")])],2)],1),t("el-dropdown",[t("span",{staticClass:"el-dropdown-link"},[e._v(" 编辑"),t("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t("el-dropdown-item",{nativeOn:{click:function(t){return e.$emit("show-dialog-upload-img")}}},[t("i",{staticClass:"el-icon-upload"}),e._v(" 上传图片 ")]),t("el-dropdown-item",{nativeOn:{click:function(t){return e.$emit("show-dialog-form")}}},[t("i",{staticClass:"el-icon-s-grid"}),e._v(" 插入表格 ")])],1)],1),t("el-dropdown",[t("span",{staticClass:"el-dropdown-link"},[e._v(" 样式"),t("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t("el-dropdown-item",{staticClass:"padding-left-3"},[t("style-option-menu",{attrs:{label:"字体",options:e.config.builtinFonts,current:e.selectFont,charge:e.fontChanged}})],1),t("el-dropdown-item",{staticClass:"padding-left-3"},[t("style-option-menu",{attrs:{label:"字号",options:e.config.sizeOption,current:e.selectSize,charge:e.sizeChanged}})],1),t("el-dropdown-item",{staticClass:"padding-left-3"},[t("style-option-menu",{attrs:{label:"颜色",options:e.config.colorOption,current:e.selectColor,charge:e.colorChanged}})],1),t("el-dropdown-item",{staticClass:"padding-left-3"},[t("style-option-menu",{attrs:{label:"代码主题",options:e.config.codeThemeOption,current:e.selectCodeTheme,charge:e.codeThemeChanged}})],1),t("el-dropdown-item",{staticClass:"padding-left-3",attrs:{divided:""},nativeOn:{click:function(t){return e.showPicker()}}},[e._v(" 自定义颜色 "),t("el-color-picker",{ref:"colorPicker",staticStyle:{float:"right","margin-top":"3px"},attrs:{"show-alpha":"",size:"mini"},on:{change:e.colorChanged},model:{value:e.selectColor,callback:function(t){e.selectColor=t},expression:"selectColor"}})],1),t("el-dropdown-item",{staticClass:"padding-left-3",nativeOn:{click:function(t){return e.customStyle.apply(null,arguments)}}},[e._v(" 自定义 CSS ")]),t("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(t){return e.codeBlockChanged.apply(null,arguments)}}},[t("i",{staticClass:"el-icon-check",style:{opacity:e.isMacCodeBlock?1:0}}),e._v(" Mac 代码块 ")]),t("el-dropdown-item",{staticClass:"padding-left-3",attrs:{divided:""},nativeOn:{click:function(t){e.showResetConfirm=!0}}},[e._v(" 重置 ")])],1)],1),t("el-dropdown",[t("span",{staticClass:"el-dropdown-link"},[e._v(" 帮助"),t("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t("el-dropdown-item",{nativeOn:{click:function(t){return e.$emit("show-about-dialog")}}},[e._v(" 关于 ")])],1)],1)],1),t("el-button",{attrs:{plain:"",size:"medium",type:e.btnType},on:{click:e.copy}},[e._v(" 复制 ")]),t("el-button",{attrs:{plain:"",size:"medium",type:e.btnType},on:{click:e.prePost}},[e._v(" 发布 ")]),t("post-info-dialog",{attrs:{form:e.form},on:{post:e.post,close:function(t){e.form.dialogVisible=!1}}}),t("reset-dialog",{attrs:{"show-reset-confirm":e.showResetConfirm},on:{confirm:e.confirmReset,close:e.cancelReset}})],1)},Z=[],X=(o("45da"),o("5941")),ee=o.n(X);function te(){const e=document.getElementById("output"),t=e.getElementsByTagName("img");for(let o=0;oe.nightMode})}},re=se,ae=(o("dba3"),o("2b5f")),le=Object(ae["a"])(re,ie,ne,!1,null,"cff93f88",null),ce=le.exports,de=function(){var e=this,t=e._self._c;return t("el-dropdown",{staticClass:"style-option-menu",attrs:{placement:"right"}},[t("div",{staticClass:"el-dropdown-link"},[e._v(" "+e._s(e.label)+" "),t("i",{staticClass:"el-icon-arrow-right el-icon--right"})]),t("el-dropdown-menu",{staticStyle:{width:"200px"},attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.options,(function({value:o,label:i,desc:n}){return t("el-dropdown-item",{key:o,attrs:{label:i,value:o},nativeOn:{click:function(t){return e.charge(o)}}},[t("i",{staticClass:"el-icon-check",style:{opacity:e.current===o?1:0}}),e._v(" "+e._s(i)+" "),t("span",{staticClass:"select-item-right"},[e._v(e._s(n))])])})),1)],1)},ue=[],me={name:"StyleOptionMenu",props:{label:{type:String,required:!0},options:{type:Array,required:!0},current:{type:String,required:!0},charge:{type:Function,required:!0}}},pe=me,fe=(o("dcf4"),Object(ae["a"])(pe,de,ue,!1,null,"32cf930a",null)),he=fe.exports,ge=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{title:"发布",visible:e.form.dialogVisible},on:{"update:visible":function(t){return e.$set(e.form,"dialogVisible",t)}}},[t("el-alert",{staticStyle:{"margin-bottom":"1em"},attrs:{title:"注:此功能由第三方浏览器插件支持,本平台不保证安全性。",type:"info","show-icon":""}}),t("el-form",{staticClass:"postInfo",attrs:{"label-position":"right","label-width":"50px",model:e.form}},[t("el-form-item",{attrs:{label:"封面"}},[t("el-input",{attrs:{placeholder:"自动提取第一张图"},model:{value:e.form.thumb,callback:function(t){e.$set(e.form,"thumb",t)},expression:"form.thumb"}})],1),t("el-form-item",{attrs:{label:"标题"}},[t("el-input",{attrs:{placeholder:"自动提取第一个标题"},model:{value:e.form.title,callback:function(t){e.$set(e.form,"title",t)},expression:"form.title"}})],1),t("el-form-item",{attrs:{label:"描述"}},[t("el-input",{attrs:{type:"textarea",rows:4,placeholder:"自动提取第一个段落"},model:{value:e.form.desc,callback:function(t){e.$set(e.form,"desc",t)},expression:"form.desc"}})],1)],1),t("template",{staticClass:"dialog-footer",slot:"footer"},[t("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("取 消")]),t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.$emit("post")}}},[e._v("确 定")])],1)],2)},be=[],_e={name:"PostInfoDialog",props:{form:{type:Object}}},Ce=_e,Se=Object(ae["a"])(Ce,ge,be,!1,null,"4ab4b77e",null),ke=Se.exports,ye={name:"editor-header",data(){return{config:f,citeStatus:!1,isMacCodeBlock:!0,showResetConfirm:!1,selectFont:"",selectSize:"",selectColor:"",selectCodeTheme:f.codeThemeOption[2].value,form:{dialogVisible:!1,title:"",desc:"",thumb:"",content:""},formatItems:[{label:"加粗",kbd:"Ctrl/Command + B",emitArgs:["addFormat","**"]},{label:"斜体",kbd:"Ctrl/Command + I",emitArgs:["addFormat","*"]},{label:"删除线",kbd:"Ctrl/Command + D",emitArgs:["addFormat","~~"]},{label:"超链接",kbd:"Ctrl/Command + K",emitArgs:["addFormat","[","]()"]},{label:"格式化",kbd:"Ctrl/Command + F",emitArgs:["formatContent"]}]}},components:{PostInfoDialog:ke,StyleOptionMenu:he,ResetDialog:ce},computed:{btnType(){return this.nightMode?"default":"primary"},...Object(r["e"])(J,{output:e=>e.output,editor:e=>e.editor,cssEditor:e=>e.cssEditor,currentFont:e=>e.currentFont,currentSize:e=>e.currentSize,currentColor:e=>e.currentColor,codeTheme:e=>e.codeTheme,nightMode:e=>e.nightMode,currentCiteStatus:e=>e.citeStatus,currentIsMacCodeBlock:e=>e.isMacCodeBlock})},methods:{refClick(){this.$refs.fileInput.click()},showPicker(){this.$refs.colorPicker.showPicker=!0},prePost(){let e={};try{e={thumb:document.querySelector("#output img").src,title:[1,2,3,4,5,6].map(e=>document.querySelector("#output h"+e)).filter(e=>e)[0].innerText,desc:document.querySelector("#output p").innerText,content:this.output}}catch(t){console.log("error",t)}this.form={dialogVisible:!0,...e,auto:e}},post(){this.form.dialogVisible=!1,window.syncPost({title:this.form.title||this.form.auto.title,desc:this.form.desc||this.form.auto.desc,content:this.form.content||this.form.auto.content,thumb:this.form.thumb||this.form.auto.thumb})},fontChanged(e){this.setWxRendererOptions({fonts:e}),this.setCurrentFont(e),this.selectFont=e,this.$emit("refresh")},sizeChanged(e){let t=j(e.replace("px",""));t=A(t,this.currentColor),this.setWxRendererOptions({size:e,theme:t}),this.setCurrentSize(e),this.selectSize=e,this.$emit("refresh")},colorChanged(e){let t=j(this.currentSize.replace("px",""));t=A(t,e),this.setWxRendererOptions({theme:t}),this.setCurrentColor(e),this.selectColor=e,this.$emit("refresh")},codeThemeChanged(e){this.setCurrentCodeTheme(e),this.selectCodeTheme=e,this.$emit("refresh")},statusChanged(){this.citeStatus=!this.citeStatus,this.setCiteStatus(this.citeStatus),this.$emit("refresh")},codeBlockChanged(){this.isMacCodeBlock=!this.isMacCodeBlock,this.setIsMacCodeBlock(this.isMacCodeBlock),this.$emit("refresh")},copy(){this.$emit("startCopy"),setTimeout(()=>{te();const e=document.getElementById("output");e.innerHTML=oe(e.innerHTML),this.isMacCodeBlock&&(e.innerHTML=e.innerHTML.replaceAll(/({this.cssEditor||this.cssEditor.refresh()}),setTimeout(()=>{this.cssEditor.refresh()},50);let e=localStorage.getItem("__css_content");e||this.setCssEditorValue(y)},confirmReset(){this.showResetConfirm=!1,localStorage.clear(),this.cssEditor.setValue(y),this.citeStatus=!1,this.statusChanged(!1),this.fontChanged(this.config.builtinFonts[0].value),this.colorChanged(this.config.colorOption[0].value),this.sizeChanged(this.config.sizeOption[2].value),this.codeThemeChanged(this.config.codeThemeOption[2].value),this.$emit("cssChanged"),this.selectFont=this.currentFont,this.selectSize=this.currentSize,this.selectColor=this.currentColor,this.selectCodeTheme=this.codeTheme,this.isMacCodeBlock=!1,this.codeBlockChanged()},cancelReset(){this.showResetConfirm=!1,this.editor.focus()},...Object(r["d"])(J,["setCurrentColor","setCiteStatus","themeChanged","setCurrentFont","setCurrentSize","setCssEditorValue","setCurrentCodeTheme","setWxRendererOptions","setIsMacCodeBlock"])},mounted(){this.selectFont=this.currentFont,this.selectSize=this.currentSize,this.selectColor=this.currentColor,this.selectCodeTheme=this.codeTheme,this.citeStatus=this.currentCiteStatus,this.isMacCodeBlock=this.currentIsMacCodeBlock;const e=this.$refs.fileInput;e.onchange=()=>{const t=e.files[0];if(null==t)return;const o=new FileReader;o.readAsText(t),o.onload=()=>{this.$emit("import-md",o.result)}}}},Oe=ye,we=(o("5ad8"),Object(ae["a"])(Oe,Y,Z,!1,null,"7530929c",null)),ve=we.exports,xe=function(){var e=this,t=e._self._c;return t("el-dialog",{staticClass:"about__dialog",attrs:{title:"关于",visible:e.visible,width:"30%",center:""},on:{close:function(t){return e.$emit("close")}}},[t("div",{staticStyle:{"text-align":"center"}},[t("h3",[e._v("一款高度简洁的微信 Markdown 编辑器")]),t("p",[e._v("扫码关注公众号 Doocs,原创技术文章第一时间推送!")]),t("img",{staticStyle:{width:"40%"},attrs:{src:"https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303220922-7e14aefa-816e-44c1-8604-ade709ca1c69.png"}})]),t("template",{slot:"footer"},[t("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){return e.onRedirect("https://github.com/doocs/md")}}},[e._v(" GitHub 仓库 ")]),t("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){return e.onRedirect("https://gitee.com/doocs/md")}}},[e._v(" Gitee 仓库 ")])],1)],2)},$e=[],Ee={props:{visible:{type:Boolean,default:!1}},methods:{onRedirect(e){window.open(e)}}},Me=Ee,Te=(o("7f25"),Object(ae["a"])(Me,xe,$e,!1,null,"314554b5",null)),Ie=Te.exports,De=function(){var e=this,t=e._self._c;return t("el-dialog",{staticClass:"insert__dialog",attrs:{title:"插入表格",visible:e.visible,border:""},on:{close:function(t){return e.$emit("close")}}},[t("el-row",{staticClass:"tb-options",attrs:{type:"flex",align:"middle",gutter:10}},[t("el-col",[e._v(" 行数: "),t("el-input-number",{attrs:{"controls-position":"right",min:1,max:100,size:"small"},model:{value:e.rowNum,callback:function(t){e.rowNum=t},expression:"rowNum"}})],1),t("el-col",[e._v(" 列数: "),t("el-input-number",{attrs:{"controls-position":"right",min:1,max:100,size:"small"},model:{value:e.colNum,callback:function(t){e.colNum=t},expression:"colNum"}})],1)],1),t("table",{staticClass:"input-table",staticStyle:{"border-collapse":"collapse"}},e._l(e.rowNum+1,(function(o){return t("tr",{key:o,class:{"head-style":1===o}},e._l(e.colNum,(function(i){return t("td",{key:i},[t("el-input",{attrs:{align:"center",placeholder:1===o?"表头":""},model:{value:e.tableData[`k_${o-1}_${i-1}`],callback:function(t){e.$set(e.tableData,`k_${o-1}_${i-1}`,t)},expression:"tableData[`k_${row - 1}_${col - 1}`]"}})],1)})),0)})),0),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:e.btnType,plain:""},on:{click:function(t){return e.$emit("close")}}},[e._v(" 取 消 ")]),t("el-button",{attrs:{type:e.btnType,plain:""},on:{click:e.insertTable}},[e._v(" 确 定 ")])],1)],1)},Ae=[],Pe={props:{visible:{type:Boolean,default:!1}},data(){return{config:f,rowNum:3,colNum:3,tableData:{}}},computed:{btnType(){return this.nightMode?"default":"primary"},...Object(r["e"])(J,{nightMode:e=>e.nightMode,editor:e=>e.editor})},methods:{insertTable(){this.editor.getCursor();const e=H({data:this.tableData,rows:this.rowNum,cols:this.colNum});this.tableData={},this.rowNum=3,this.colNum=3,this.editor.replaceSelection(`\n${e}\n`,"end"),this.$emit("close"),this.editorRefresh()},...Object(r["d"])(J,["editorRefresh"])}},Re=Pe,je=(o("bded"),Object(ae["a"])(Re,De,Ae,!1,null,"14061734",null)),Ke=je.exports,Be=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"menu",style:`left: ${e.left}px;top: ${e.top}px;`,attrs:{id:"menu"}},e._l(e.menu,(function(o,i){return t("ul",{key:i,staticClass:"menu__group"},e._l(o,(function({key:o,text:i}){return t("li",{key:o,staticClass:"menu_item",on:{mousedown:function(t){return e.onMouseDown(o)}}},[e._v(" "+e._s(i)+" ")])})),0)})),0)},Le=[],qe={props:{visible:{type:Boolean,default:!1},top:{type:Number,default:0},left:{type:Number,default:0}},data(){return{menu:[[{text:"上传图片",key:"insertPic"},{text:"插入表格",key:"insertTable"},{text:"恢复默认样式",key:"resetStyle"}],[{text:"导入 .md 文档",key:"importMarkdown"},{text:"导出 .md 文档",key:"download"},{text:"导出 .html",key:"export"},{text:"格式化",key:"formatMarkdown"}]]}},methods:{onMouseDown(e){this.$emit("menuTick",e),this.$emit("closeMenu")}}},Ue=qe,Fe=(o("ebc0"),Object(ae["a"])(Ue,Be,Le,!1,null,"283cf1ee",null)),ze=Fe.exports,He=function(){var e=this,t=e._self._c;return t("el-dialog",{staticClass:"upload__dialog",attrs:{title:"本地上传",visible:e.visible},on:{close:function(t){return e.$emit("close")}}},[t("el-tabs",{attrs:{type:"activeName"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{staticClass:"upload-panel",attrs:{label:"选择上传",name:"upload"}},[t("el-select",{attrs:{placeholder:"请选择",size:"small"},on:{change:e.changeImgHost},model:{value:e.imgHost,callback:function(t){e.imgHost=t},expression:"imgHost"}},e._l(e.options,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),t("el-upload",{attrs:{drag:"",action:"",headers:{"Content-Type":"multipart/form-data"},"show-file-list":!1,multiple:!0,accept:".jpg, .jpeg, .png, .gif",name:"file","before-upload":e.beforeImageUpload,"http-request":e.uploadImage}},[t("i",{staticClass:"el-icon-upload"}),t("div",{staticClass:"el-upload__text"},[e._v(" 将图片拖到此处,或 "),t("em",[e._v("点击上传")])])])],1),t("el-tab-pane",{staticClass:"github-panel",attrs:{label:"GitHub 图床",name:"github"}},[t("el-form",{staticClass:"setting-form",attrs:{model:e.formGitHub,"label-position":"right","label-width":"140px"}},[t("el-form-item",{attrs:{label:"GitHub 仓库",required:!0}},[t("el-input",{attrs:{placeholder:"如:github.com/yanglbme/resource"},model:{value:e.formGitHub.repo,callback:function(t){e.$set(e.formGitHub,"repo","string"===typeof t?t.trim():t)},expression:"formGitHub.repo"}})],1),t("el-form-item",{attrs:{label:"分支"}},[t("el-input",{attrs:{placeholder:"如:release,可不填,默认 master"},model:{value:e.formGitHub.branch,callback:function(t){e.$set(e.formGitHub,"branch","string"===typeof t?t.trim():t)},expression:"formGitHub.branch"}})],1),t("el-form-item",{attrs:{label:"Token",required:!0}},[t("el-input",{attrs:{"show-password":"",placeholder:"如:cc1d0c1426d0fd0902bd2d7184b14da61b8abc46"},model:{value:e.formGitHub.accessToken,callback:function(t){e.$set(e.formGitHub,"accessToken","string"===typeof t?t.trim():t)},expression:"formGitHub.accessToken"}}),t("el-link",{attrs:{type:"primary",href:"https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token",target:"_blank"}},[e._v("如何获取 GitHub Token? ")])],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.saveGitHubConfiguration}},[e._v("保存配置 ")])],1)],1)],1),t("el-tab-pane",{staticClass:"github-panel",attrs:{label:"阿里云 OSS",name:"aliOSS"}},[t("el-form",{staticClass:"setting-form",attrs:{model:e.formAliOSS,"label-position":"right","label-width":"140px"}},[t("el-form-item",{attrs:{label:"AccessKey ID",required:!0}},[t("el-input",{attrs:{placeholder:"如:LTAI4GdoocsmdoxUf13ylbaNHk"},model:{value:e.formAliOSS.accessKeyId,callback:function(t){e.$set(e.formAliOSS,"accessKeyId","string"===typeof t?t.trim():t)},expression:"formAliOSS.accessKeyId"}})],1),t("el-form-item",{attrs:{label:"AccessKey Secret",required:!0}},[t("el-input",{attrs:{"show-password":"",placeholder:"如:cc1d0c142doocs0902bd2d7md4b14da6ylbabc46"},model:{value:e.formAliOSS.accessKeySecret,callback:function(t){e.$set(e.formAliOSS,"accessKeySecret","string"===typeof t?t.trim():t)},expression:"formAliOSS.accessKeySecret"}})],1),t("el-form-item",{attrs:{label:"Bucket",required:!0}},[t("el-input",{attrs:{placeholder:"如:doocs"},model:{value:e.formAliOSS.bucket,callback:function(t){e.$set(e.formAliOSS,"bucket","string"===typeof t?t.trim():t)},expression:"formAliOSS.bucket"}})],1),t("el-form-item",{attrs:{label:"Bucket 所在区域",required:!0}},[t("el-input",{attrs:{placeholder:"如:oss-cn-shenzhen"},model:{value:e.formAliOSS.region,callback:function(t){e.$set(e.formAliOSS,"region","string"===typeof t?t.trim():t)},expression:"formAliOSS.region"}})],1),t("el-form-item",{attrs:{label:"自定义 CDN 域名",required:!1}},[t("el-input",{attrs:{placeholder:"如:https://imagecdn.alidaodao.com,可不填"},model:{value:e.formAliOSS.cdnHost,callback:function(t){e.$set(e.formAliOSS,"cdnHost","string"===typeof t?t.trim():t)},expression:"formAliOSS.cdnHost"}})],1),t("el-form-item",{attrs:{label:"存储路径"}},[t("el-input",{attrs:{placeholder:"如:img,可不填,默认为根目录"},model:{value:e.formAliOSS.path,callback:function(t){e.$set(e.formAliOSS,"path","string"===typeof t?t.trim():t)},expression:"formAliOSS.path"}}),t("el-link",{attrs:{type:"primary",href:"https://help.aliyun.com/document_detail/31883.html",target:"_blank"}},[e._v("如何使用阿里云 OSS? ")])],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.saveAliOSSConfiguration}},[e._v(" 保存配置 ")])],1)],1)],1),t("el-tab-pane",{staticClass:"github-panel",attrs:{label:"腾讯云 COS",name:"txCOS"}},[t("el-form",{staticClass:"setting-form",attrs:{model:e.formTxCOS,"label-position":"right","label-width":"140px"}},[t("el-form-item",{attrs:{label:"SecretId",required:!0}},[t("el-input",{attrs:{placeholder:"如:AKIDnQp1w3DOOCSs8F5MDp9tdoocsmdUPonW3"},model:{value:e.formTxCOS.secretId,callback:function(t){e.$set(e.formTxCOS,"secretId","string"===typeof t?t.trim():t)},expression:"formTxCOS.secretId"}})],1),t("el-form-item",{attrs:{label:"SecretKey",required:!0}},[t("el-input",{attrs:{"show-password":"",placeholder:"如:ukLmdtEJ9271f3DOocsMDsCXdS3YlbW0"},model:{value:e.formTxCOS.secretKey,callback:function(t){e.$set(e.formTxCOS,"secretKey","string"===typeof t?t.trim():t)},expression:"formTxCOS.secretKey"}})],1),t("el-form-item",{attrs:{label:"Bucket",required:!0}},[t("el-input",{attrs:{placeholder:"如:doocs-3212520134"},model:{value:e.formTxCOS.bucket,callback:function(t){e.$set(e.formTxCOS,"bucket","string"===typeof t?t.trim():t)},expression:"formTxCOS.bucket"}})],1),t("el-form-item",{attrs:{label:"Bucket 所在区域",required:!0}},[t("el-input",{attrs:{placeholder:"如:ap-guangzhou"},model:{value:e.formTxCOS.region,callback:function(t){e.$set(e.formTxCOS,"region","string"===typeof t?t.trim():t)},expression:"formTxCOS.region"}})],1),t("el-form-item",{attrs:{label:"自定义 CDN 域名",required:!1}},[t("el-input",{attrs:{placeholder:"如:https://imagecdn.alidaodao.com,可不填"},model:{value:e.formTxCOS.cdnHost,callback:function(t){e.$set(e.formTxCOS,"cdnHost","string"===typeof t?t.trim():t)},expression:"formTxCOS.cdnHost"}})],1),t("el-form-item",{attrs:{label:"存储路径"}},[t("el-input",{attrs:{placeholder:"如:img,可不填,默认根目录"},model:{value:e.formTxCOS.path,callback:function(t){e.$set(e.formTxCOS,"path","string"===typeof t?t.trim():t)},expression:"formTxCOS.path"}}),t("el-link",{attrs:{type:"primary",href:"https://cloud.tencent.com/document/product/436/38484",target:"_blank"}},[e._v("如何使用腾讯云 COS? ")])],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.saveTxCOSConfiguration}},[e._v(" 保存配置 ")])],1)],1)],1),t("el-tab-pane",{staticClass:"github-panel",attrs:{label:"七牛云 Kodo",name:"qiniu"}},[t("el-form",{staticClass:"setting-form",attrs:{model:e.formQiniu,"label-position":"right","label-width":"140px"}},[t("el-form-item",{attrs:{label:"AccessKey",required:!0}},[t("el-input",{attrs:{placeholder:"如:6DD3VaLJ_SQgOdoocsyTV_YWaDmdnL2n8EGx7kG"},model:{value:e.formQiniu.accessKey,callback:function(t){e.$set(e.formQiniu,"accessKey","string"===typeof t?t.trim():t)},expression:"formQiniu.accessKey"}})],1),t("el-form-item",{attrs:{label:"SecretKey",required:!0}},[t("el-input",{attrs:{"show-password":"",placeholder:"如:qgZa5qrvDOOcsmdKStD1oCjZ9nB7MDvJUs_34SIm"},model:{value:e.formQiniu.secretKey,callback:function(t){e.$set(e.formQiniu,"secretKey","string"===typeof t?t.trim():t)},expression:"formQiniu.secretKey"}})],1),t("el-form-item",{attrs:{label:"Bucket",required:!0}},[t("el-input",{attrs:{placeholder:"如:md"},model:{value:e.formQiniu.bucket,callback:function(t){e.$set(e.formQiniu,"bucket","string"===typeof t?t.trim():t)},expression:"formQiniu.bucket"}})],1),t("el-form-item",{attrs:{label:"Bucket 对应域名",required:!0}},[t("el-input",{attrs:{placeholder:"如:https://images.123ylb.cn"},model:{value:e.formQiniu.domain,callback:function(t){e.$set(e.formQiniu,"domain","string"===typeof t?t.trim():t)},expression:"formQiniu.domain"}})],1),t("el-form-item",{attrs:{label:"存储区域",required:!0}},[t("el-input",{attrs:{placeholder:"如:z2"},model:{value:e.formQiniu.region,callback:function(t){e.$set(e.formQiniu,"region","string"===typeof t?t.trim():t)},expression:"formQiniu.region"}})],1),t("el-form-item",{attrs:{label:"存储路径",required:!1}},[t("el-input",{attrs:{placeholder:"如:img,可不填,默认为根目录"},model:{value:e.formQiniu.path,callback:function(t){e.$set(e.formQiniu,"path","string"===typeof t?t.trim():t)},expression:"formQiniu.path"}}),t("el-link",{attrs:{type:"primary",href:"https://developer.qiniu.com/kodo",target:"_blank"}},[e._v("如何使用七牛云 Kodo? ")])],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.saveQiniuConfiguration}},[e._v(" 保存配置 ")])],1)],1)],1),t("el-tab-pane",{staticClass:"github-panel",attrs:{label:"MinIO",name:"minio"}},[t("el-form",{staticClass:"setting-form",attrs:{model:e.minioOSS,"label-position":"right","label-width":"140px"}},[t("el-form-item",{attrs:{label:"Endpoint",required:!0}},[t("el-input",{attrs:{placeholder:"如:play.min.io"},model:{value:e.minioOSS.endpoint,callback:function(t){e.$set(e.minioOSS,"endpoint","string"===typeof t?t.trim():t)},expression:"minioOSS.endpoint"}})],1),t("el-form-item",{attrs:{label:"Port",required:!1}},[t("el-input",{attrs:{type:"number",placeholder:"如:9000,可不填,http 默认为 80,https 默认为 443"},model:{value:e.minioOSS.port,callback:function(t){e.$set(e.minioOSS,"port","string"===typeof t?t.trim():t)},expression:"minioOSS.port"}})],1),t("el-form-item",{attrs:{label:"UseSSL",required:!0}},[t("el-switch",{attrs:{"active-text":"是","inactive-text":"否"},model:{value:e.minioOSS.useSSL,callback:function(t){e.$set(e.minioOSS,"useSSL",t)},expression:"minioOSS.useSSL"}})],1),t("el-form-item",{attrs:{label:"Bucket",required:!0}},[t("el-input",{attrs:{placeholder:"如:doocs"},model:{value:e.minioOSS.bucket,callback:function(t){e.$set(e.minioOSS,"bucket","string"===typeof t?t.trim():t)},expression:"minioOSS.bucket"}})],1),t("el-form-item",{attrs:{label:"AccessKey",required:!0}},[t("el-input",{attrs:{placeholder:"如:zhangsan"},model:{value:e.minioOSS.accessKey,callback:function(t){e.$set(e.minioOSS,"accessKey","string"===typeof t?t.trim():t)},expression:"minioOSS.accessKey"}})],1),t("el-form-item",{attrs:{label:"SecretKey",required:!0}},[t("el-input",{attrs:{placeholder:"如:asdasdasd"},model:{value:e.minioOSS.secretKey,callback:function(t){e.$set(e.minioOSS,"secretKey","string"===typeof t?t.trim():t)},expression:"minioOSS.secretKey"}}),t("el-link",{attrs:{type:"primary",href:"http://docs.minio.org.cn/docs/master/minio-client-complete-guide",target:"_blank"}},[e._v("如何使用 MinIO? ")])],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.saveMinioOSSConfiguration}},[e._v(" 保存配置 ")])],1)],1)],1),t("el-tab-pane",{staticClass:"github-panel formCustom",attrs:{label:"自定义代码",name:"formCustom"}},[t("el-form",{staticClass:"setting-form",attrs:{model:e.formCustom,"label-position":"right"}},[t("el-form-item",{attrs:{label:"",required:!0}},[t("el-input",{ref:"formCustomElInput",staticClass:"formCustomElInput",attrs:{type:"textarea",resize:"none",placeholder:"Your custom code here."},model:{value:e.formCustom.code,callback:function(t){e.$set(e.formCustom,"code",t)},expression:"formCustom.code"}}),t("el-link",{attrs:{type:"primary",href:"https://github.com/doocs/md#自定义上传逻辑",target:"_blank"}},[e._v("参数详情? ")])],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.formCustomSave}},[e._v(" 保存配置 ")])],1)],1)],1)],1)],1)},Ne=[],Ge={props:{visible:{type:Boolean,default:!1}},data(){return{activeName:"upload",formGitHub:{repo:"",branch:"",accessToken:""},formAliOSS:{accessKeyId:"",accessKeySecret:"",bucket:"",region:"",path:"",cdnHost:""},formTxCOS:{secretId:"",secretKey:"",bucket:"",region:"",path:"",cdnHost:""},formQiniu:{accessKey:"",secretKey:"",bucket:"",domain:"",region:""},minioOSS:{endpoint:"",port:"",useSSL:!0,bucket:"",accessKey:"",secretKey:""},formCustom:{code:localStorage.getItem("formCustomConfig")||W(`\n const {file, util, okCb, errCb} = CUSTOM_ARG\n const param = new FormData()\n param.append('file', file)\n util.axios.post('${window.location.origin}/upload', param, {\n headers: { 'Content-Type': 'multipart/form-data' }\n }).then(res => {\n okCb(res.url)\n }).catch(err => {\n errCb(err)\n })\n `).trim(),editor:void 0},options:[{value:"default",label:"默认"},{value:"github",label:"GitHub"},{value:"aliOSS",label:"阿里云"},{value:"txCOS",label:"腾讯云"},{value:"qiniu",label:"七牛云"},{value:"minio",label:"MinIO"},{value:"formCustom",label:"自定义代码"}],imgHost:"default"}},created(){localStorage.getItem("githubConfig")&&(this.formGitHub=JSON.parse(localStorage.getItem("githubConfig"))),localStorage.getItem("aliOSSConfig")&&(this.formAliOSS=JSON.parse(localStorage.getItem("aliOSSConfig"))),localStorage.getItem("txCOSConfig")&&(this.formTxCOS=JSON.parse(localStorage.getItem("txCOSConfig"))),localStorage.getItem("qiniuConfig")&&(this.formQiniu=JSON.parse(localStorage.getItem("qiniuConfig"))),localStorage.getItem("minioConfig")&&(this.minioOSS=JSON.parse(localStorage.getItem("minioConfig"))),localStorage.getItem("imgHost")&&(this.imgHost=localStorage.getItem("imgHost"))},methods:{changeImgHost(){localStorage.setItem("imgHost",this.imgHost),this.$message.success("已成功切换图床")},saveGitHubConfiguration(){if(this.formGitHub.repo&&this.formGitHub.accessToken)localStorage.setItem("githubConfig",JSON.stringify(this.formGitHub)),this.$message.success("保存成功");else{const e=this.formGitHub.repo?"token":"GitHub 仓库";this.$message.error(`参数「${e}」不能为空`)}},saveAliOSSConfiguration(){this.formAliOSS.accessKeyId&&this.formAliOSS.accessKeySecret&&this.formAliOSS.bucket&&this.formAliOSS.region?(localStorage.setItem("aliOSSConfig",JSON.stringify(this.formAliOSS)),this.$message.success("保存成功")):this.$message.error("阿里云 OSS 参数配置不全")},saveMinioOSSConfiguration(){this.minioOSS.endpoint&&this.minioOSS.bucket&&this.minioOSS.accessKey&&this.minioOSS.secretKey?(localStorage.setItem("minioConfig",JSON.stringify(this.minioOSS)),this.$message.success("保存成功")):this.$message.error("MinIO 参数配置不全")},saveTxCOSConfiguration(){this.formTxCOS.secretId&&this.formTxCOS.secretKey&&this.formTxCOS.bucket&&this.formTxCOS.region?(localStorage.setItem("txCOSConfig",JSON.stringify(this.formTxCOS)),this.$message.success("保存成功")):this.$message.error("腾讯云 COS 参数配置不全")},saveQiniuConfiguration(){this.formQiniu.accessKey&&this.formQiniu.secretKey&&this.formQiniu.bucket&&this.formQiniu.domain&&this.formQiniu.region?(localStorage.setItem("qiniuConfig",JSON.stringify(this.formQiniu)),this.$message.success("保存成功")):this.$message.error("七牛云 Kodo 参数配置不全")},formCustomSave(){const e=this.formCustom.editor.getValue();localStorage.setItem("formCustomConfig",e),this.$message.success("保存成功")},beforeImageUpload(e){const t=G(e);if(!t.ok)return this.$message.error(t.msg),!1;let o=localStorage.getItem("imgHost");o=o||"default",localStorage.setItem("imgHost",o);const i=localStorage.getItem(o+"Config"),n="default"==o||i;return!!n||(this.$message.error(`请先配置 ${o} 图床参数`),!1)},uploadImage(e){this.$emit("uploadImage",e.file)}},watch:{activeName:{immediate:!0,handler(e){"formCustom"===e&&this.$nextTick(()=>{const e=this.$refs.formCustomElInput.$el.querySelector("textarea");this.formCustom.editor=this.formCustom.editor||p.a.fromTextArea(e,{mode:"javascript"}),this.formCustom.editor.setValue(this.formCustom.code)})}}},mounted(){}},We=Ge,Ve=(o("fde4"),Object(ae["a"])(We,He,Ne,!1,null,"83a42576",null)),Qe=Ve.exports,Je=function(){var e=this,t=e._self._c;return t("transition",{attrs:{"enter-active-class":"bounceInRight"}},[t("el-col",{directives:[{name:"show",rawName:"v-show",value:e.showCssEditor,expression:"showCssEditor"}],staticClass:"cssEditor-wrapper",attrs:{span:12}},[t("textarea",{attrs:{id:"cssEditor",type:"textarea",placeholder:"Your custom css here."}})])],1)},Ye=[],Ze={name:"CssEditor",props:{showCssEditor:{type:Boolean,default:!1}}},Xe=Ze,et=(o("6bdb"),Object(ae["a"])(Xe,Je,Ye,!1,null,"912bf7ea",null)),tt=et.exports,ot=function(){var e=this,t=e._self._c;return e.loading?t("transition",{attrs:{name:"fade"}},[t("div",{staticClass:"loading",class:{loading_night:e.nightMode}},[t("strong",[e._v("致力于让 Markdown 编辑更简单")])])]):e._e()},it=[],nt={name:"RunLoading",data(){return{loading:!0}},mounted(){setTimeout(()=>{this.loading=!1},100)},computed:{...Object(r["e"])(J,{nightMode:({nightMode:e})=>e})}},st=nt,rt=(o("1386"),Object(ae["a"])(st,ot,it,!1,null,"1bcf5940",null)),at=rt.exports,lt=o("557f");o("e480");var ct={data(){return{showCssEditor:!1,aboutDialogVisible:!1,dialogUploadImgVisible:!1,insertFormDialogVisible:!1,isCoping:!1,isImgLoading:!1,backLight:!1,timeout:null,changeTimer:null,source:"",mouseLeft:0,mouseTop:0,rightClickMenuVisible:!1}},components:{CssEditor:tt,RunLoading:at,EditorHeader:ve,AboutDialog:Ie,InsertFormDialog:Ke,RightClickMenu:ze,UploadImgDialog:Qe},computed:{...Object(r["e"])(J,{wxRenderer:e=>e.wxRenderer,output:e=>e.output,editor:e=>e.editor,cssEditor:e=>e.cssEditor,currentSize:e=>e.currentSize,currentColor:e=>e.currentColor,nightMode:e=>e.nightMode,codeTheme:e=>e.codeTheme})},created(){this.initEditorState(),this.$nextTick(()=>{this.initEditor(),this.initCssEditor(),this.onEditorRefresh(),this.mdLocalToRemote()})},methods:{mdLocalToRemote(){const e=this,t=this.$refs.codeMirrorWrapper.$el;async function o({list:e}){return new Promise((t,o)=>{const{path:i,file:n}=e.find(e=>e.path.match(/\.md$/)),s=new FileReader;s.readAsText(n,"UTF-8"),s.onload=e=>{t({str:e.target.result,file:n,path:i})}})}async function i({md:t,list:o}){const i=[...t.str.matchAll(/!\[(.*?)\]\((.*?)\)/gm)||[]].filter(e=>e),n=t.path.match(/.+?\//)[0],s=await Promise.all(i.map(t=>new Promise((i,s)=>{let[,,r]=t;r=r.replace(/^.\//,"");const{file:a}=o.find(e=>e.path===`${n}${r}`)||{};e.uploadImage(a,e=>{i({matchStr:r,url:e})})})));s.forEach(e=>{t.str=t.str.replace(`](./${e.matchStr})`,`](${e.url})`).replace(`](${e.matchStr})`,`](${e.url})`)}),e.editor.setValue(t.str),console.log("resList",s,t.str)}async function n(e){const t=[];let o="";try{const i=[e];for(const e of i){o+=e.name+"/";for await(const[,n]of e)"file"===n.kind?t.push({path:o+n.name,file:await n.getFile()}):(t.push({path:o+n.name+"/"}),i.push(n))}}catch(i){console.error(i)}return t}t.ondragover=e=>e.preventDefault(),t.ondrop=async e=>{e.preventDefault();for(const t of e.dataTransfer.items)t.getAsFileSystemHandle().then(async e=>{if("directory"===e.kind){const t=await n(e),s=await o({list:t});i({md:s,list:t})}else{const t=await e.getFile();console.log("file",t)}})}},initEditor(){this.initEditorEntity(),this.editor.on("change",(e,t)=>{this.changeTimer&&clearTimeout(this.changeTimer),this.changeTimer=setTimeout(()=>{this.onEditorRefresh(),L(this.editor,"__editor_content")},300)}),this.editor.on("paste",(e,t)=>{if(t.clipboardData&&t.clipboardData.items&&!this.isImgLoading)for(let o=0,i=t.clipboardData.items.length;o{this.rightClickMenuVisible=!1}),this.editor.on("blur",()=>{ -//!影响到右键菜单的点击事件,右键菜单的点击事件在组件内通过mousedown触发 -this.rightClickMenuVisible=!1}),this.editor.on("scroll",()=>{this.rightClickMenuVisible=!1})},initCssEditor(){this.initCssEditorEntity(),this.cssEditor.on("keyup",(e,t)=>{(t.keyCode>=65&&t.keyCode<=90||189===t.keyCode)&&e.showHint(t)}),this.cssEditor.on("update",e=>{this.cssChanged(),L(this.cssEditor,"__css_content")})},cssChanged(){let e=B(this.cssEditor.getValue(0)),t=j(this.currentSize.replace("px",""));t=K(e,this.currentColor,t),this.setWxRendererOptions({theme:t}),this.onEditorRefresh()},codeThemeChanged(){let e=this.codeTheme,t=document.getElementById("hljs");if(void 0!=t)t.setAttribute("href",e);else{const t=document.createElement("link");t.setAttribute("type","text/css"),t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),t.setAttribute("id","hljs"),document.head.appendChild(t)}},beforeUpload(e){const t=G(e);if(!t.ok)return this.$message.error(t.msg),!1;let o=localStorage.getItem("imgHost");o=o||"default",localStorage.setItem("imgHost",o);const i=localStorage.getItem(o+"Config"),n="default"==o||i;return!!n||(this.$message.error(`请先配置 ${o} 图床参数`),!1)},uploadImage(e,t){this.isImgLoading=!0,N(e).then(o=>{lt["a"].fileUpload(o,e).then(e=>{console.log(e),t?t(e):this.uploaded(e)}).catch(e=>{this.$message.error(e.message)})}).catch(e=>{this.$message.error(e.message)}),this.isImgLoading=!1},uploaded(e){if(console.log("图片上传之后: ",e),!e)return void this.$message.error("上传图片未知异常");this.dialogUploadImgVisible=!1;const t=this.editor.getCursor(),o=e,i=`![](${o})`;this.editor.replaceSelection(`\n${i}\n`,t),this.$message.success("图片上传成功"),this.onEditorRefresh()},leftAndRightScroll(){const e=e=>{let i,n;clearTimeout(this.timeout),"preview"===e?(i=this.$refs.preview.$el,n=document.getElementsByClassName("CodeMirror-scroll")[0],this.editor.off("scroll",t),this.timeout=setTimeout(()=>{this.editor.on("scroll",t)},300)):"editor"===e&&(i=document.getElementsByClassName("CodeMirror-scroll")[0],n=this.$refs.preview.$el,n.removeEventListener("scroll",o,!1),this.timeout=setTimeout(()=>{n.addEventListener("scroll",o,!1)},300));let s=i.scrollTop/(i.scrollHeight-i.offsetHeight),r=s*(n.scrollHeight-n.offsetHeight);n.scrollTo(0,r)},t=()=>{e("editor")},o=()=>{e("preview")};this.$refs.preview.$el.addEventListener("scroll",o,!1),this.editor.on("scroll",t)},onEditorRefresh(){this.codeThemeChanged(this.codeTheme),this.editorRefresh(),setTimeout(()=>window.PR.prettyPrint(),0)},endCopy(){this.backLight=!1,setTimeout(()=>{this.isCoping=!1},800)},addFormat(e,t=e){const{head:o,anchor:i}=this.editor.doc.sel.ranges[0];let n,s;o.line===i.line?o.ch{z(),document.getElementById("output").innerHTML=this.output})},importMarkdownContent(){let e=document.getElementById("menu"),t=document.createElement("input");t.type="file",t.name="filename",t.accept=".txt,.md",e.appendChild(t),t.onchange=()=>{if(!t.files)return;const e=t.files[0];if(!/\.(txt|TXT|MD|md)$/.test(e.name))return void this.$message.error("不支持的文档格式");const o=new FileReader;o.readAsText(e),o.onload=e=>{let t=e.target.result;t=q(t),t&&(localStorage.setItem("__editor_content",t),this.editor.setValue(t),this.$message.success("文档导入成功"))}},t.click(),e.removeChild(t)},formatContent(){const e=q(this.editor.getValue(0));localStorage.setItem("__editor_content",e),this.editor.setValue(e)},openMenu(e){const t=105,o=this.$el.getBoundingClientRect().left,i=this.$el.offsetWidth,n=i-t,s=e.clientX-o;this.mouseLeft=Math.min(n,s),this.mouseTop=e.clientY+10,this.rightClickMenuVisible=!0},onMenuEvent(e){switch(e){case"resetStyle":this.$refs.header.showResetConfirm=!0;break;case"insertPic":this.dialogUploadImgVisible=!0;break;case"download":this.downloadEditorContent();break;case"export":this.exportEditorContent();break;case"insertTable":this.insertFormDialogVisible=!0;break;case"importMarkdown":this.importMarkdownContent();break;case"formatMarkdown":this.formatContent();break;default:break}},...Object(r["d"])(J,["initEditorState","initEditorEntity","setWxRendererOptions","editorRefresh","initCssEditorEntity"])},mounted(){setTimeout(()=>{this.leftAndRightScroll(),window.PR.prettyPrint()},300)}},dt=ct,ut=(o("1208"),o("e20e"),Object(ae["a"])(dt,c,d,!1,null,"87004ece",null)),mt=ut.exports,pt={__name:"App",setup(e){return{__sfc:!0,CodemirrorEditor:mt}}},ft=pt,ht=(o("92fa"),Object(ae["a"])(ft,a,l,!1,null,null,null)),gt=ht.exports;i["default"].use(s.a).use(r["a"]),i["default"].config.productionTip=!1,gt.mpType="app",new i["default"]({...gt,pinia:Object(r["b"])()}).$mount("#app")},4:function(e,t){},"4f8e":function(e,t,o){"use strict";o.d(t,"b",(function(){return i})),o.d(t,"a",(function(){return n}));const i={username:"filess",repoList:Array.from([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],e=>"img"+e),branch:"main",accessTokenList:["7715d7ca67b5d3837cfdoocsmde8c38421815aa423510af","c411415bf95dbe39625doocsmd5047ba9b7a2a6c9642abe","2821cd8819fa345c053doocsmdca86ac653f8bc20db1f1b","445f0dae46ef1f2a4d6doocsmdc797301e94797b4750a4c","cc1d0c1426d0fd0902bdoocsmdd2d7184b14da61b86ec46","b67e9d15cb6f910492fdoocsmdac6b44d379c953bb19eff","618c4dc2244ccbbc088doocsmd125d17fd31b7d06a50cf3","a4b581732e1c1507458doocsmdc5b223b27dae5e2e16a55","77904db41aee57ad79bdoocsmd760f848201dac9c96fd5e","02f251cb14ac62ab100doocsmdddbfc8527d773f1f04ce1","eb321079a95ba7028d9doocsmde2e84c502dac70de7cf08","22f74fcfb071a961fa2doocsmde28dabc746f0503a15e5d","85124c2bfe7abba0938doocsmd0af7f67918b99d085a5fd","0a561b4d4bbecb2de7edoocsmdd9ba3833d11dbc5e430f5","e8a01491188d8d5a097doocsmd03ede0aad1fe9e3af24e9","36e1f420d7e5bdebd67doocsmd65463562f5f25b20b8377"]},n={username:"filesss",repoList:Array.from([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],e=>"img"+e),branch:"main",accessTokenList:["ed5fc9866bd6c2fdoocsmddd433f806fd2f399c","5448ffebbbf1151doocsmdc4e337cf814fc8a62","25b05efd2557ca2doocsmd75b5c0835e3395911","11628c7a5aef015doocsmd2eeff9fb9566f0458","cb2f5145ed938dedoocsmdbd063b4ed244eecf8","d8c0b57500672c1doocsmd55f48b866b5ebcd98","78c56eadb88e453doocsmd43ddd95753351771a","03e1a688003948fdoocsmda16fcf41e6f03f1f0","c49121cf4d191fbdoocsmdd6a7877ed537e474a","adfeb2fadcdc4aadoocsmdfe1ee869ac9c968ff","116c94549ca4a0ddoocsmd192653af5c0694616","ecf30ed7f2eb184doocsmd51ea4ec8300371d9e","5837cf2bd5afd93doocsmd73904bed31934949e","b5b7e1c7d57e01fdoocsmd5266f552574297d78","684d55564ffbd0bdoocsmd7d747e5cc23aed6d6","3fc04a9d272ab71doocsmd010c56cb57d88d2ba"]}},5:function(e,t){},"557f":function(module,__webpack_exports__,__webpack_require__){"use strict";var _fetch__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("1cd3"),_config__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("4f8e"),crypto_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("02fe"),crypto_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(crypto_js__WEBPACK_IMPORTED_MODULE_2__),ali_oss__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("fd9d"),ali_oss__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(ali_oss__WEBPACK_IMPORTED_MODULE_3__),minio__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("8890"),minio__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(minio__WEBPACK_IMPORTED_MODULE_4__),cos_js_sdk_v5__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("bd88"),cos_js_sdk_v5__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(cos_js_sdk_v5__WEBPACK_IMPORTED_MODULE_5__),buffer_from__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("8113"),buffer_from__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(buffer_from__WEBPACK_IMPORTED_MODULE_6__),uuid__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("78ac"),qiniu_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("b114"),_assets_scripts_tokenTools__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("8f11");function getConfig(e,t){if(e){const e="github"===t?_config__WEBPACK_IMPORTED_MODULE_1__["b"]:_config__WEBPACK_IMPORTED_MODULE_1__["a"],{username:o,repoList:i,branch:n,accessTokenList:s}=e,r=Math.floor(Math.random()*s.length),a=s[r].replace("doocsmd",""),l=Math.floor(Math.random()*i.length),c=i[l];return{username:o,repo:c,branch:n,accessToken:a}}const o=JSON.parse(localStorage.getItem(t+"Config")),i=o.repo.replace(`https://${t}.com/`,"").replace(`http://${t}.com/`,"").replace(t+".com/","").split("/");return{username:i[0],repo:i[1],branch:o.branch||"master",accessToken:o.accessToken}}function getDir(){const e=new Date,t=e.getFullYear(),o=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0");return`${t}/${o}/${i}`}function getDateFilename(e){const t=(new Date).getTime(),o=e.split(".")[1];return`${t}-${Object(uuid__WEBPACK_IMPORTED_MODULE_7__["a"])()}.${o}`}async function ghFileUpload(e,t){var o;const i="default"===localStorage.getItem("imgHost"),{username:n,repo:s,branch:r,accessToken:a}=getConfig(i,"github"),l=getDir(),c=`https://api.github.com/repos/${n}/${s}/contents/${l}/`,d=getDateFilename(t),u=await Object(_fetch__WEBPACK_IMPORTED_MODULE_0__["a"])({url:c+d,method:"put",headers:{Authorization:"token "+a},data:{content:e,branch:r,message:"Upload by "+window.location.href}}),m=`raw.githubusercontent.com/${n}/${s}/${r}/`,p=`fastly.jsdelivr.net/gh/${n}/${s}@${r}/`;return u.content=(null===(o=u.data)||void 0===o?void 0:o.content)||u.content,i?u.content.download_url.replace(m,p):u.content.download_url}async function giteeUpload(e,t){var o;const i="default"===localStorage.getItem("imgHost"),{username:n,repo:s,branch:r,accessToken:a}=getConfig(i,"gitee"),l=getDir(),c=getDateFilename(t),d=`https://gitee.com/api/v5/repos/${n}/${s}/contents/${l}/${c}`,u=await Object(_fetch__WEBPACK_IMPORTED_MODULE_0__["a"])({url:d,method:"POST",data:{content:e,branch:r,access_token:a,message:"Upload by "+window.location.href}});return u.content=(null===(o=u.data)||void 0===o?void 0:o.content)||u.content,encodeURI(u.content.download_url)}function getQiniuToken(e,t,o){const i=JSON.stringify(o),n=Object(_assets_scripts_tokenTools__WEBPACK_IMPORTED_MODULE_9__["base64encode"])(Object(_assets_scripts_tokenTools__WEBPACK_IMPORTED_MODULE_9__["utf16to8"])(i)),s=crypto_js__WEBPACK_IMPORTED_MODULE_2___default.a.HmacSHA1(n,t),r=s.toString(crypto_js__WEBPACK_IMPORTED_MODULE_2___default.a.enc.Base64);return`${e}:${Object(_assets_scripts_tokenTools__WEBPACK_IMPORTED_MODULE_9__["safe64"])(r)}:${n}`}async function qiniuUpload(e){const{accessKey:t,secretKey:o,bucket:i,region:n,path:s,domain:r}=JSON.parse(localStorage.getItem("qiniuConfig")),a=getQiniuToken(t,o,{scope:i,deadline:Math.trunc((new Date).getTime()/1e3)+3600}),l=s?s+"/":"",c=l+getDateFilename(e.name),d=qiniu_js__WEBPACK_IMPORTED_MODULE_8__["upload"](e,c,a,{},{region:n});return new Promise((e,t)=>{d.subscribe({next:e=>{console.log(e)},error:e=>{t(e.message)},complete:t=>{e(`${r}/${t.key}`)}})})}async function aliOSSFileUpload(e,t){const o=getDateFilename(t),{region:i,bucket:n,accessKeyId:s,accessKeySecret:r,cdnHost:a,path:l}=JSON.parse(localStorage.getItem("aliOSSConfig")),c=buffer_from__WEBPACK_IMPORTED_MODULE_6___default()(e,"base64"),d=`${l}/${o}`,u=new ali_oss__WEBPACK_IMPORTED_MODULE_3___default.a({region:i,bucket:n,accessKeyId:s,accessKeySecret:r});try{const e=await u.put(d,c);return""===a?e.url:`${a}/${""===l?o:d}`}catch(m){return Promise.reject(m)}}async function txCOSFileUpload(e){const t=getDateFilename(e.name),{secretId:o,secretKey:i,bucket:n,region:s,path:r,cdnHost:a}=JSON.parse(localStorage.getItem("txCOSConfig")),l=new cos_js_sdk_v5__WEBPACK_IMPORTED_MODULE_5___default.a({SecretId:o,SecretKey:i});return new Promise((o,i)=>{l.putObject({Bucket:n,Region:s,Key:`${r}/${t}`,Body:e},(function(e,n){e?i(e):o(a?""==r?`${a}/${t}`:`${a}/${r}/${t}`:"https://"+n.Location)}))})}async function minioFileUpload(e,t){const o=getDateFilename(t),{endpoint:i,port:n,useSSL:s,bucket:r,accessKey:a,secretKey:l}=JSON.parse(localStorage.getItem("minioConfig")),c=buffer_from__WEBPACK_IMPORTED_MODULE_6___default()(e,"base64"),d={endPoint:i,useSSL:s,accessKey:a,secretKey:l},u=Number(n||0),m=u>0&&80!==u&&443!==u;return m&&(d.port=u),new Promise((e,t)=>{const a=new minio__WEBPACK_IMPORTED_MODULE_4__["Client"](d);try{a.putObject(r,o,c,(function(a){a&&t(a);const l=`${s?"https://":"http://"}${i}${m?":"+n:""}`,c=`${l}/${r}/${o}`;e(c)}))}catch(l){t(l)}})}async function formCustomUpload(content,file){const str=`\n async (CUSTOM_ARG) => {\n ${localStorage.getItem("formCustomConfig")}\n }\n `;return new Promise((resolve,reject)=>{const exportObj={content:content,file:file,util:{axios:_fetch__WEBPACK_IMPORTED_MODULE_0__["a"],CryptoJS:crypto_js__WEBPACK_IMPORTED_MODULE_2___default(),OSS:ali_oss__WEBPACK_IMPORTED_MODULE_3___default(),COS:cos_js_sdk_v5__WEBPACK_IMPORTED_MODULE_5___default(),Buffer:buffer_from__WEBPACK_IMPORTED_MODULE_6___default(),uuidv4:uuid__WEBPACK_IMPORTED_MODULE_7__["a"],qiniu:qiniu_js__WEBPACK_IMPORTED_MODULE_8__,tokenTools:_assets_scripts_tokenTools__WEBPACK_IMPORTED_MODULE_9__,getDir:getDir,getDateFilename:getDateFilename},okCb:resolve,errCb:reject};eval(str)(exportObj).catch(e=>{console.error(e),reject(e)})})}function fileUpload(e,t){const o=localStorage.getItem("imgHost");switch(!o&&localStorage.setItem("imgHost","default"),o){case"aliOSS":return aliOSSFileUpload(e,t.name);case"minio":return minioFileUpload(e,t.name);case"txCOS":return txCOSFileUpload(t);case"qiniu":return qiniuUpload(t);case"gitee":return giteeUpload(e,t.name);case"github":return ghFileUpload(e,t.name);case"formCustom":return formCustomUpload(e,t);default:return ghFileUpload(e,t.name)}}__webpack_exports__["a"]={fileUpload:fileUpload}},"5ad8":function(e,t,o){"use strict";o("05fc")},6:function(e,t){},"6bdb":function(e,t,o){"use strict";o("c2d6")},7:function(e,t){},7206:function(e,t,o){},"7f25":function(e,t,o){"use strict";o("8af6")},8:function(e,t){},"8af6":function(e,t,o){},"8f11":function(e,t,o){"use strict";function i(e){var t,o,i,n;for(t="",i=e.length,o=0;o=1&&n<=127?t+=e.charAt(o):n>2047?(t+=String.fromCharCode(224|n>>12&15),t+=String.fromCharCode(128|n>>6&63),t+=String.fromCharCode(128|n>>0&63)):(t+=String.fromCharCode(192|n>>6&31),t+=String.fromCharCode(128|n>>0&63));return t}function n(e){var t,o,i,n,s,r;t="",i=e.length,o=0;while(o>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:t+=e.charAt(o-1);break;case 12:case 13:s=e.charCodeAt(o++),t+=String.fromCharCode((31&n)<<6|63&s);break;case 14:s=e.charCodeAt(o++),r=e.charCodeAt(o++),t+=String.fromCharCode((15&n)<<12|(63&s)<<6|(63&r)<<0);break}return t}o.r(t),o.d(t,"utf16to8",(function(){return i})),o.d(t,"utf8to16",(function(){return n})),o.d(t,"base64encode",(function(){return a})),o.d(t,"base64decode",(function(){return l})),o.d(t,"safe64",(function(){return c}));const s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",r=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1);function a(e){var t,o,i,n,r,a;i=e.length,o=0,t="";while(o>2),t+=s.charAt((3&n)<<4),t+="==";break}if(r=e.charCodeAt(o++),o==i){t+=s.charAt(n>>2),t+=s.charAt((3&n)<<4|(240&r)>>4),t+=s.charAt((15&r)<<2),t+="=";break}a=e.charCodeAt(o++),t+=s.charAt(n>>2),t+=s.charAt((3&n)<<4|(240&r)>>4),t+=s.charAt((15&r)<<2|(192&a)>>6),t+=s.charAt(63&a)}return t}function l(e){var t,o,i,n,s,a,l;a=e.length,s=0,l="";while(s>4);do{if(i=255&e.charCodeAt(s++),61==i)return l;i=r[i]}while(s>2);do{if(n=255&e.charCodeAt(s++),61==n)return l;n=r[n]}while(s0&&void 0!==arguments[0]?arguments[0]:{},d=i.split("-",1)[0],p=e.flatMap(e=>e.languages||[]).filter(f),h=r(Object.assign({},...e.map(e=>{let{options:t}=e;return t}),o),"name").filter(e=>f(e)&&m(e)).sort((e,t)=>e.name===t.name?0:e.name{t=Object.assign({},t),Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(f).sort((e,t)=>n.compare(t.since,e.since))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter(e=>f(e)&&m(e)),"parser"===t.name&&l(t,p,e));let r=Object.fromEntries(e.filter(e=>e.defaultOptions&&void 0!==e.defaultOptions[t.name]).map(e=>[e.name,e.defaultOptions[t.name]]));return Object.assign(Object.assign({},t),{},{pluginDefaults:r})});return{languages:p,options:h};function f(e){return t||!("since"in e)||e.since&&n.gte(d,e.since)}function m(e){return a||!("deprecated"in e)||e.deprecated&&n.lt(d,e.deprecated)}function g(e){if(u)return e;let{cliName:t,cliCategory:n,cliDescription:r}=e;return c(e,s)}}function l(e,t,n){let r=new Set(e.choices.map(e=>e.value));for(let i of t)if(i.parsers)for(let t of i.parsers)if(!r.has(t)){r.add(t);let o=n.find(e=>e.parsers&&e.parsers[t]),a=i.name;o&&o.name&&(a+=` (plugin: ${o.name})`),e.choices.push({value:t,description:a})}}t.exports={getSupportInfo:a}}}),ce=_({"src/utils/is-non-empty-array.js"(e,t){function n(e){return Array.isArray(e)&&e.length>0}C(),t.exports=n}}),de=_({"src/utils/text/skip.js"(e,t){function n(e){return(t,n,r)=>{let i=r&&r.backwards;if(!1===n)return!1;let{length:o}=t,a=n;for(;a>=0&&ae[e.length-2];function g(e){return(t,n,r)=>{let i=r&&r.backwards;if(!1===n)return!1;let{length:o}=t,a=n;for(;a>=0&&a2&&void 0!==arguments[2]?arguments[2]:{},r=l(e,n.backwards?t-1:t,n),i=h(e,r,n);return r!==i}function b(e,t,n){for(let r=t;r2&&void 0!==arguments[2]?arguments[2]:{};return l(e,n.backwards?t-1:t,n)!==t}function D(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=0;for(let i=n;in?o:i}return a}function O(e,t){let n=e.slice(1,-1),r="json"===t.parser||"json5"===t.parser&&"preserve"===t.quoteProps&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":k(n,t.singleQuote?"'":'"').quote;return I(n,r,!("css"===t.parser||"less"===t.parser||"scss"===t.parser||t.__embeddedInHtml))}function I(e,t,n){let r='"'===t?"'":'"',i=/\\(.)|(["'])/gs,o=e.replace(i,(e,i,o)=>i===r?i:o===t?"\\"+o:o||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(i)?i:"\\"+i));return t+o+t}function M(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}function R(e,t){let r=e.match(new RegExp(`(${n(t)})+`,"g"));return null===r?0:r.reduce((e,n)=>Math.max(e,n.length/t.length),0)}function P(e,t){let r=e.match(new RegExp(`(${n(t)})+`,"g"));if(null===r)return 0;let i=new Map,o=0;for(let n of r){let e=n.length/t.length;i.set(e,!0),e>o&&(o=e)}for(let n=1;n{let{name:n}=t;return n.toLowerCase()===e})||n.find(t=>{let{aliases:n}=t;return Array.isArray(n)&&n.includes(e)})||n.find(t=>{let{extensions:n}=t;return Array.isArray(n)&&n.includes("."+e)});return r&&r.parsers[0]}function z(e){return e&&"front-matter"===e.type}function q(e){let t=new WeakMap;return function(n){return t.has(n)||t.set(n,Symbol(e)),t.get(n)}}function $(e){let t=e.type||e.kind||"(unknown type)",n=String(e.name||e.id&&("object"==typeof e.id?e.id.name:e.id)||e.key&&("object"==typeof e.key?e.key.name:e.key)||e.value&&("object"==typeof e.value?"":String(e.value))||e.operator||"");return n.length>20&&(n=n.slice(0,19)+"…"),t+(n?" "+n:"")}t.exports={inferParserByLanguage:U,getStringWidth:a,getMaxContinuousCount:R,getMinNotPresentContinuousCount:P,getPenultimate:m,getLast:r,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:f,getNextNonSpaceNonCommentCharacterIndex:w,getNextNonSpaceNonCommentCharacter:S,skip:g,skipWhitespace:s,skipSpaces:l,skipToLineEnd:u,skipEverythingButNewLine:c,skipInlineComment:d,skipTrailingComment:p,skipNewline:h,isNextLineEmptyAfterIndex:_,isNextLineEmpty:E,isPreviousLineEmpty:y,hasNewline:v,hasNewlineInRange:b,hasSpaces:T,getAlignmentSize:D,getIndentSize:A,getPreferredQuote:k,printString:O,printNumber:M,makeString:I,addLeadingComment:F,addDanglingComment:B,addTrailingComment:j,isFrontMatterNode:z,isNonEmptyArray:o,createGroupIdMapper:q}}}),ve={};function be(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function ye(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:"/";if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r.charAt(0))}return e=be(De(e.split("/"),(function(e){return!!e})),!t).join("/"),(t?"/":"")+e||"."}function _e(e){var t=Ee(e),n="/"===Re(e,-1);return e=be(De(e.split("/"),(function(e){return!!e})),!t).join("/"),!e&&!t&&(e="."),e&&n&&(e+="/"),(t?"/":"")+e}function Ee(e){return"/"===e.charAt(0)}function we(){var e=Array.prototype.slice.call(arguments,0);return _e(De(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))}function Se(e,t){function n(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=ye(e).substr(1),t=ye(t).substr(1);for(var r=n(e.split("/")),i=n(t.split("/")),o=Math.min(r.length,i.length),a=o,s=0;sCe,default:()=>Me,delimiter:()=>Ie,dirname:()=>xe,extname:()=>Te,isAbsolute:()=>Ee,join:()=>we,normalize:()=>_e,relative:()=>Se,resolve:()=>ye,sep:()=>Ne});var Ae,Oe,Ne,Ie,Me,Re,Pe=y({"node-modules-polyfills:path"(){C(),Ae=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,Oe=function(e){return Ae.exec(e).slice(1)},Ne="/",Ie=":",Me={extname:Te,basename:Ce,dirname:xe,sep:Ne,delimiter:Ie,relative:Se,join:we,isAbsolute:Ee,normalize:_e,resolve:ye},Re="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}}),Le=_({"node-modules-polyfills-commonjs:path"(e,t){C();var n=(Pe(),x(ve));if(n&&n.default){t.exports=n.default;for(let e in n)t.exports[e]=n[e]}else n&&(t.exports=n)}}),Be=_({"src/common/errors.js"(e,t){C();var n=class extends Error{},r=class extends Error{},i=class extends Error{},o=class extends Error{};t.exports={ConfigError:n,DebugError:r,UndefinedParserError:i,ArgExpansionBailout:o}}}),je={};function ze(e,t){function n(){this.constructor=e}dt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function $e(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function Ve(e,t){return function(n,r){t(n,r,e)}}function Ye(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function We(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function Ke(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Je(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function et(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{l(i[e](t))}catch(n){d(o[0][3],n)}}function l(e){e.value instanceof nt?Promise.resolve(e.value.v).then(u,c):d(o[0][2],e)}function u(e){s("next",e)}function c(e){s("throw",e)}function d(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function it(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:nt(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function ot(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof Ze?Ze(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){t=e[n](t),i(r,o,t.done,t.value)}))}}function i(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}}function at(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function st(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function lt(e){return e&&e.__esModule?e:{default:e}}function ut(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function ct(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}E(je,{__assign:()=>pt,__asyncDelegator:()=>it,__asyncGenerator:()=>rt,__asyncValues:()=>ot,__await:()=>nt,__awaiter:()=>We,__classPrivateFieldGet:()=>ut,__classPrivateFieldSet:()=>ct,__createBinding:()=>Qe,__decorate:()=>Ge,__exportStar:()=>Xe,__extends:()=>ze,__generator:()=>Ke,__importDefault:()=>lt,__importStar:()=>st,__makeTemplateObject:()=>at,__metadata:()=>Ye,__param:()=>Ve,__read:()=>Je,__rest:()=>$e,__spread:()=>et,__spreadArrays:()=>tt,__values:()=>Ze});var dt,pt,ht=y({"node_modules/tslib/tslib.es6.js"(){C(),dt=function(e,t){return dt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},dt(e,t)},pt=function(){return pt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(t){if(null===t||"object"!=typeof t)return JSON.stringify(t);if(Array.isArray(t))return`[${t.map(t=>e.apiDescriptor.value(t)).join(", ")}]`;let n=Object.keys(t);return 0===n.length?"{}":`{ ${n.map(n=>`${e.apiDescriptor.key(n)}: ${e.apiDescriptor.value(t[n])}`).join(", ")} }`},pair:t=>{let{key:n,value:r}=t;return e.apiDescriptor.value({[n]:r})}}}}),mt=_({"node_modules/vnopts/lib/descriptors/index.js"(e){C(),Object.defineProperty(e,"__esModule",{value:!0});var t=(ht(),x(je));t.__exportStar(ft(),e)}}),gt=_({"scripts/build/shims/chalk.cjs"(e,t){C();var n=e=>e;n.grey=n,n.red=n,n.bold=n,n.yellow=n,n.blue=n,n.default=n,t.exports=n}}),vt=_({"node_modules/vnopts/lib/handlers/deprecated/common.js"(e){C(),Object.defineProperty(e,"__esModule",{value:!0});var t=gt();e.commonDeprecatedHandler=(e,n,r)=>{let{descriptor:i}=r,o=[t.default.yellow("string"==typeof e?i.key(e):i.pair(e))+" is deprecated"];return n&&o.push("we now treat it as "+t.default.blue("string"==typeof n?i.key(n):i.pair(n))),o.join("; ")+"."}}}),bt=_({"node_modules/vnopts/lib/handlers/deprecated/index.js"(e){C(),Object.defineProperty(e,"__esModule",{value:!0});var t=(ht(),x(je));t.__exportStar(vt(),e)}}),yt=_({"node_modules/vnopts/lib/handlers/invalid/common.js"(e){C(),Object.defineProperty(e,"__esModule",{value:!0});var t=gt();e.commonInvalidHandler=(e,n,r)=>[`Invalid ${t.default.red(r.descriptor.key(e))} value.`,`Expected ${t.default.blue(r.schemas[e].expected(r))},`,`but received ${t.default.red(r.descriptor.value(n))}.`].join(" ")}}),_t=_({"node_modules/vnopts/lib/handlers/invalid/index.js"(e){C(),Object.defineProperty(e,"__esModule",{value:!0});var t=(ht(),x(je));t.__exportStar(yt(),e)}}),Et=_({"node_modules/vnopts/node_modules/leven/index.js"(e,t){C();var n=[],r=[];t.exports=function(e,t){if(e===t)return 0;var i=e;e.length>t.length&&(e=t,t=i);var o=e.length,a=t.length;if(0===o)return a;if(0===a)return o;for(;o>0&&e.charCodeAt(~-o)===t.charCodeAt(~-a);)o--,a--;if(0===o)return a;for(var s=0;su?d>u?u+1:d:d>c?c+1:d;return u}}}),wt=_({"node_modules/vnopts/lib/handlers/unknown/leven.js"(e){C(),Object.defineProperty(e,"__esModule",{value:!0});var t=gt(),n=Et();e.levenUnknownHandler=(e,r,i)=>{let{descriptor:o,logger:a,schemas:s}=i,l=[`Ignored unknown option ${t.default.yellow(o.pair({key:e,value:r}))}.`],u=Object.keys(s).sort().find(t=>n(e,t)<3);u&&l.push(`Did you mean ${t.default.blue(o.key(u))}?`),a.warn(l.join(" "))}}}),St=_({"node_modules/vnopts/lib/handlers/unknown/index.js"(e){C(),Object.defineProperty(e,"__esModule",{value:!0});var t=(ht(),x(je));t.__exportStar(wt(),e)}}),xt=_({"node_modules/vnopts/lib/handlers/index.js"(e){C(),Object.defineProperty(e,"__esModule",{value:!0});var t=(ht(),x(je));t.__exportStar(bt(),e),t.__exportStar(_t(),e),t.__exportStar(St(),e)}}),Ct=_({"node_modules/vnopts/lib/schema.js"(e){C(),Object.defineProperty(e,"__esModule",{value:!0});var t=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function n(e,n){let o=new e(n),a=Object.create(o);for(let s of t)s in n&&(a[s]=i(n[s],o,r.prototype[s].length));return a}e.createSchema=n;var r=class{constructor(e){this.name=e.name}static create(e){return n(this,e)}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,n){return e}preprocess(e,t){return e}postprocess(e,t){return e}};function i(e,t,n){return"function"==typeof e?function(){for(var r=arguments.length,i=new Array(r),o=0;oe}e.Schema=r}}),Tt=_({"node_modules/vnopts/lib/schemas/alias.js"(e){C(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ct(),n=class extends t.Schema{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}};e.AliasSchema=n}}),Dt=_({"node_modules/vnopts/lib/schemas/any.js"(e){C(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ct(),n=class extends t.Schema{expected(){return"anything"}validate(){return!0}};e.AnySchema=n}}),At=_({"node_modules/vnopts/lib/schemas/array.js"(e){C(),Object.defineProperty(e,"__esModule",{value:!0});var t=(ht(),x(je)),n=Ct(),r=class extends n.Schema{constructor(e){var{valueSchema:n,name:r=n.name}=e,i=t.__rest(e,["valueSchema","name"]);super(Object.assign({},i,{name:r})),this._valueSchema=n}expected(e){return"an array of "+this._valueSchema.expected(e)}validate(e,t){if(!Array.isArray(e))return!1;let n=[];for(let r of e){let e=t.normalizeValidateResult(this._valueSchema.validate(r,t),r);!0!==e&&n.push(e.value)}return 0===n.length||{value:n}}deprecated(e,t){let n=[];for(let r of e){let e=t.normalizeDeprecatedResult(this._valueSchema.deprecated(r,t),r);!1!==e&&n.push(...e.map(e=>{let{value:t}=e;return{value:[t]}}))}return n}forward(e,t){let n=[];for(let r of e){let e=t.normalizeForwardResult(this._valueSchema.forward(r,t),r);n.push(...e.map(i))}return n}redirect(e,t){let n=[],r=[];for(let o of e){let e=t.normalizeRedirectResult(this._valueSchema.redirect(o,t),o);"remain"in e&&n.push(e.remain),r.push(...e.redirect.map(i))}return 0===n.length?{redirect:r}:{redirect:r,remain:n}}overlap(e,t){return e.concat(t)}};function i(e){let{from:t,to:n}=e;return{from:[t],to:n}}e.ArraySchema=r}}),kt=_({"node_modules/vnopts/lib/schemas/boolean.js"(e){C(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ct(),n=class extends t.Schema{expected(){return"true or false"}validate(e){return"boolean"==typeof e}};e.BooleanSchema=n}}),Ot=_({"node_modules/vnopts/lib/utils.js"(e){function t(e,t){let n=Object.create(null);for(let r of e){let e=r[t];if(n[e])throw new Error(`Duplicate ${t} ${JSON.stringify(e)}`);n[e]=r}return n}function n(e,t){let n=new Map;for(let r of e){let e=r[t];if(n.has(e))throw new Error(`Duplicate ${t} ${JSON.stringify(e)}`);n.set(e,r)}return n}function r(){let e=Object.create(null);return t=>{let n=JSON.stringify(t);return!!e[n]||(e[n]=!0,!1)}}function i(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return[n,r]}function o(e){return e===Math.floor(e)}function a(e,t){if(e===t)return 0;let n=typeof e,r=typeof t,i=["undefined","object","boolean","number","string"];return n!==r?i.indexOf(n)-i.indexOf(r):"string"!==n?Number(e)-Number(t):e.localeCompare(t)}function s(e){return void 0===e?{}:e}function l(e,t){return!0===e||(!1===e?{value:t}:e)}function u(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!1!==e&&(!0===e?!!n||[{value:t}]:"value"in e?[e]:0!==e.length&&e)}function c(e,t){return"string"==typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function d(e,t){return void 0===e?[]:Array.isArray(e)?e.map(e=>c(e,t)):[c(e,t)]}function p(e,t){let n=d("object"==typeof e&&"redirect"in e?e.redirect:e,t);return 0===n.length?{remain:t,redirect:n}:"object"==typeof e&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}}C(),Object.defineProperty(e,"__esModule",{value:!0}),e.recordFromArray=t,e.mapFromArray=n,e.createAutoChecklist=r,e.partition=i,e.isInt=o,e.comparePrimitive=a,e.normalizeDefaultResult=s,e.normalizeValidateResult=l,e.normalizeDeprecatedResult=u,e.normalizeTransferResult=c,e.normalizeForwardResult=d,e.normalizeRedirectResult=p}}),Nt=_({"node_modules/vnopts/lib/schemas/choice.js"(e){C(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ct(),n=Ot(),r=class extends t.Schema{constructor(e){super(e),this._choices=n.mapFromArray(e.choices.map(e=>e&&"object"==typeof e?e:{value:e}),"value")}expected(e){let{descriptor:t}=e,r=Array.from(this._choices.keys()).map(e=>this._choices.get(e)).filter(e=>!e.deprecated).map(e=>e.value).sort(n.comparePrimitive).map(t.value),i=r.slice(0,-2),o=r.slice(-2);return i.concat(o.join(" or ")).join(", ")}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}};e.ChoiceSchema=r}}),It=_({"node_modules/vnopts/lib/schemas/number.js"(e){C(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ct(),n=class extends t.Schema{expected(){return"a number"}validate(e,t){return"number"==typeof e}};e.NumberSchema=n}}),Mt=_({"node_modules/vnopts/lib/schemas/integer.js"(e){C(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ot(),n=It(),r=class extends n.NumberSchema{expected(){return"an integer"}validate(e,n){return!0===n.normalizeValidateResult(super.validate(e,n),e)&&t.isInt(e)}};e.IntegerSchema=r}}),Rt=_({"node_modules/vnopts/lib/schemas/string.js"(e){C(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ct(),n=class extends t.Schema{expected(){return"a string"}validate(e){return"string"==typeof e}};e.StringSchema=n}}),Pt=_({"node_modules/vnopts/lib/schemas/index.js"(e){C(),Object.defineProperty(e,"__esModule",{value:!0});var t=(ht(),x(je));t.__exportStar(Tt(),e),t.__exportStar(Dt(),e),t.__exportStar(At(),e),t.__exportStar(kt(),e),t.__exportStar(Nt(),e),t.__exportStar(Mt(),e),t.__exportStar(It(),e),t.__exportStar(Rt(),e)}}),Lt=_({"node_modules/vnopts/lib/defaults.js"(e){C(),Object.defineProperty(e,"__esModule",{value:!0});var t=ft(),n=vt(),r=_t(),i=wt();e.defaultDescriptor=t.apiDescriptor,e.defaultUnknownHandler=i.levenUnknownHandler,e.defaultInvalidHandler=r.commonInvalidHandler,e.defaultDeprecatedHandler=n.commonDeprecatedHandler}}),Ft=_({"node_modules/vnopts/lib/normalize.js"(e){C(),Object.defineProperty(e,"__esModule",{value:!0});var t=Lt(),n=Ot();e.normalize=(e,t,n)=>new r(t,n).normalize(e);var r=class{constructor(e,r){let{logger:i=console,descriptor:o=t.defaultDescriptor,unknown:a=t.defaultUnknownHandler,invalid:s=t.defaultInvalidHandler,deprecated:l=t.defaultDeprecatedHandler}=r||{};this._utils={descriptor:o,logger:i||{warn:()=>{}},schemas:n.recordFromArray(e,"name"),normalizeDefaultResult:n.normalizeDefaultResult,normalizeDeprecatedResult:n.normalizeDeprecatedResult,normalizeForwardResult:n.normalizeForwardResult,normalizeRedirectResult:n.normalizeRedirectResult,normalizeValidateResult:n.normalizeValidateResult},this._unknownHandler=a,this._invalidHandler=s,this._deprecatedHandler=l,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=n.createAutoChecklist()}normalize(e){let t={},r=[e],i=()=>{for(;0!==r.length;){let e=r.shift(),n=this._applyNormalization(e,t);r.push(...n)}};i();for(let o of Object.keys(this._utils.schemas)){let e=this._utils.schemas[o];if(!(o in t)){let t=n.normalizeDefaultResult(e.default(this._utils));"value"in t&&r.push({[o]:t.value})}}i();for(let n of Object.keys(this._utils.schemas)){let e=this._utils.schemas[n];n in t&&(t[n]=e.postprocess(t[n],this._utils))}return t}_applyNormalization(e,t){let r=[],[i,o]=n.partition(Object.keys(e),e=>e in this._utils.schemas);for(let a of i){let i=this._utils.schemas[a],o=i.preprocess(e[a],this._utils),s=n.normalizeValidateResult(i.validate(o,this._utils),o);if(!0!==s){let{value:e}=s,t=this._invalidHandler(a,e,this._utils);throw"string"==typeof t?new Error(t):t}let l=e=>{let{from:t,to:n}=e;r.push("string"==typeof n?{[n]:t}:{[n.key]:n.value})},u=e=>{let{value:t,redirectTo:r}=e,s=n.normalizeDeprecatedResult(i.deprecated(t,this._utils),o,!0);if(!1!==s)if(!0===s)this._hasDeprecationWarned(a)||this._utils.logger.warn(this._deprecatedHandler(a,r,this._utils));else for(let{value:n}of s){let e={key:a,value:n};if(!this._hasDeprecationWarned(e)){let t="string"==typeof r?{key:r,value:n}:r;this._utils.logger.warn(this._deprecatedHandler(e,t,this._utils))}}};n.normalizeForwardResult(i.forward(o,this._utils),o).forEach(l);let c=n.normalizeRedirectResult(i.redirect(o,this._utils),o);if(c.redirect.forEach(l),"remain"in c){let e=c.remain;t[a]=a in t?i.overlap(t[a],e,this._utils):e,u({value:e})}for(let{from:e,to:t}of c.redirect)u({value:e,redirectTo:t})}for(let n of o){let i=e[n],o=this._unknownHandler(n,i,this._utils);if(o)for(let e of Object.keys(o)){let n={[e]:o[e]};e in this._utils.schemas?r.push(n):Object.assign(t,n)}}return r}};e.Normalizer=r}}),Bt=_({"node_modules/vnopts/lib/index.js"(e){C(),Object.defineProperty(e,"__esModule",{value:!0});var t=(ht(),x(je));t.__exportStar(mt(),e),t.__exportStar(xt(),e),t.__exportStar(Pt(),e),t.__exportStar(Ft(),e),t.__exportStar(Ct(),e)}}),jt=_({"src/main/options-normalizer.js"(e,t){C();var n,r=Bt(),i=N(),o={key:e=>1===e.length?"-"+e:"--"+e,value:e=>r.apiDescriptor.value(e),pair:e=>{let{key:t,value:n}=e;return!1===n?"--no-"+t:!0===n?o.key(t):""===n?o.key(t)+" without an argument":`${o.key(t)}=${n}`}},a=e=>{let{colorsModule:t,levenshteinDistance:n}=e;return class extends r.ChoiceSchema{constructor(e){let{name:t,flags:n}=e;super({name:t,choices:n}),this._flags=[...n].sort()}preprocess(e,r){if("string"==typeof e&&e.length>0&&!this._flags.includes(e)){let i=this._flags.find(t=>n(t,e)<3);if(i)return r.logger.warn([`Unknown flag ${t.yellow(r.descriptor.value(e))},`,`did you mean ${t.blue(r.descriptor.value(i))}?`].join(" ")),i}return e}expected(){return"a flag"}}};function s(e,t){let{logger:i=!1,isCLI:a=!1,passThrough:s=!1,colorsModule:d=null,levenshteinDistance:p=null}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},h=s?Array.isArray(s)?(e,t)=>s.includes(e)?{[e]:t}:void 0:(e,t)=>({[e]:t}):(e,t,n)=>{let i=n.schemas,{_:o}=i,a=c(i,l);return r.levenUnknownHandler(e,t,Object.assign(Object.assign({},n),{},{schemas:a}))},f=a?o:r.apiDescriptor,m=u(t,{isCLI:a,colorsModule:d,levenshteinDistance:p}),g=new r.Normalizer(m,{logger:i,unknown:h,descriptor:f}),v=!1!==i;v&&n&&(g._hasDeprecationWarned=n);let b=g.normalize(e);return v&&(n=g._hasDeprecationWarned),a&&!1===b["plugin-search"]&&(b["plugin-search-dir"]=!1),b}function u(e,t){let{isCLI:n,colorsModule:i,levenshteinDistance:o}=t,a=[];n&&a.push(r.AnySchema.create({name:"_"}));for(let s of e)a.push(d(s,{isCLI:n,optionInfos:e,colorsModule:i,levenshteinDistance:o})),s.alias&&n&&a.push(r.AliasSchema.create({name:s.alias,sourceName:s.name}));return a}function d(e,t){let{isCLI:n,optionInfos:o,colorsModule:s,levenshteinDistance:l}=t,{name:u}=e;if("plugin-search-dir"===u||"pluginSearchDirs"===u)return r.AnySchema.create({name:u,preprocess(e){return!1===e||(e=Array.isArray(e)?e:[e]),e},validate(e){return!1===e||e.every(e=>"string"==typeof e)},expected(){return"false or paths to plugin search dir"}});let c,d={name:u},p={};switch(e.type){case"int":c=r.IntegerSchema,n&&(d.preprocess=Number);break;case"string":c=r.StringSchema;break;case"choice":c=r.ChoiceSchema,d.choices=e.choices.map(t=>"object"==typeof t&&t.redirect?Object.assign(Object.assign({},t),{},{redirect:{to:{key:e.name,value:t.redirect}}}):t);break;case"boolean":c=r.BooleanSchema;break;case"flag":c=a({colorsModule:s,levenshteinDistance:l}),d.flags=o.flatMap(e=>[e.alias,e.description&&e.name,e.oppositeDescription&&"no-"+e.name].filter(Boolean));break;case"path":c=r.StringSchema;break;default:throw new Error("Unexpected type "+e.type)}if(e.exception?d.validate=(t,n,r)=>e.exception(t)||n.validate(t,r):d.validate=(e,t,n)=>void 0===e||t.validate(e,n),e.redirect&&(p.redirect=t=>t?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(p.deprecated=!0),n&&!e.array){let e=d.preprocess||(e=>e);d.preprocess=(t,n,r)=>n.preprocess(e(Array.isArray(t)?i(t):t),r)}return e.array?r.ArraySchema.create(Object.assign(Object.assign(Object.assign({},n?{preprocess:e=>Array.isArray(e)?e:[e]}:{}),p),{},{valueSchema:c.create(d)})):c.create(Object.assign(Object.assign({},d),p))}function p(e,t,n){return s(e,t,n)}function h(e,t,n){return s(e,t,Object.assign({isCLI:!0},n))}t.exports={normalizeApiOptions:p,normalizeCliOptions:h}}}),Ut=_({"src/language-js/loc.js"(e,t){C();var n=ce();function r(e){var t,i;let o=e.range?e.range[0]:e.start,a=null!==(t=null===(i=e.declaration)||void 0===i?void 0:i.decorators)&&void 0!==t?t:e.decorators;return n(a)?Math.min(r(a[0]),o):o}function i(e){return e.range?e.range[1]:e.end}function o(e,t){let n=r(e);return Number.isInteger(n)&&n===r(t)}function a(e,t){let n=i(e);return Number.isInteger(n)&&n===i(t)}function s(e,t){return o(e,t)&&a(e,t)}t.exports={locStart:r,locEnd:i,hasSameLocStart:o,hasSameLoc:s}}}),zt=_({"src/main/load-parser.js"(e,t){C(),t.exports=()=>{}}}),qt=_({"scripts/build/shims/babel-highlight.cjs"(e,t){C();var n=gt(),r={shouldHighlight:()=>!1,getChalk:()=>n};t.exports=r}}),Ht=_({"node_modules/@babel/code-frame/lib/index.js"(e){C(),Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=a,e.default=s;var t=qt(),n=!1;function r(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}var i=/\r\n|[\n\r\u2028\u2029]/;function o(e,t,n){let r=Object.assign({column:0,line:-1},e.start),i=Object.assign({},r,e.end),{linesAbove:o=2,linesBelow:a=3}=n||{},s=r.line,l=r.column,u=i.line,c=i.column,d=Math.max(s-(o+1),0),p=Math.min(t.length,u+a);-1===s&&(d=0),-1===u&&(p=t.length);let h=u-s,f={};if(h)for(let m=0;m<=h;m++){let e=m+s;if(l)if(0===m){let n=t[e-1].length;f[e]=[l,n-l+1]}else if(m===h)f[e]=[0,c];else{let n=t[e-m].length;f[e]=[0,n]}else f[e]=!0}else f[s]=l===c?!l||[l,0]:[l,c-l];return{start:d,end:p,markerLines:f}}function a(e,n){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=(a.highlightCode||a.forceColor)&&(0,t.shouldHighlight)(a),l=(0,t.getChalk)(a),u=r(l),c=(e,t)=>s?e(t):t,d=e.split(i),{start:p,end:h,markerLines:f}=o(n,d,a),m=n.start&&"number"==typeof n.start.column,g=String(h).length,v=(s?(0,t.default)(e,a):e).split(i,h).slice(p,h).map((e,t)=>{let n=p+1+t,r=` ${(" "+n).slice(-g)} |`,i=f[n],o=!f[n+1];if(i){let t="";if(Array.isArray(i)){let n=e.slice(0,Math.max(i[0]-1,0)).replace(/[^\t]/g," "),s=i[1]||1;t=["\n ",c(u.gutter,r.replace(/\d/g," "))," ",n,c(u.marker,"^").repeat(s)].join(""),o&&a.message&&(t+=" "+c(u.message,a.message))}return[c(u.marker,">"),c(u.gutter,r),e.length>0?" "+e:"",t].join("")}return` ${c(u.gutter,r)}${e.length>0?" "+e:""}`}).join("\n");return a.message&&!m&&(v=`${" ".repeat(g+1)}${a.message}\n${v}`),s?l.reset(v):v}function s(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!n){n=!0;let e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(p.emitWarning)p.emitWarning(e,"DeprecationWarning");else{let t=new Error(e);t.name="DeprecationWarning",console.warn(new Error(e))}}return r=Math.max(r,0),a(e,{start:{column:r,line:t}},i)}}}),$t=_({"src/main/parser.js"(e,t){C();var{ConfigError:n}=Be(),r=Ut(),{locStart:i,locEnd:o}=(zt(),r),a=Object.getOwnPropertyNames,s=Object.getOwnPropertyDescriptor;function l(e){let t={};for(let n of e.plugins)if(n.parsers)for(let e of a(n.parsers))Object.defineProperty(t,e,s(n.parsers,e));return t}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l(e);if("function"==typeof e.parser)return{parse:e.parser,astFormat:"estree",locStart:i,locEnd:o};if("string"==typeof e.parser){if(Object.prototype.hasOwnProperty.call(t,e.parser))return t[e.parser];throw new n(`Couldn't resolve parser "${e.parser}". Parsers must be explicitly added to the standalone bundle.`)}}function c(e,t){let n=l(t),r=Object.defineProperties({},Object.fromEntries(Object.keys(n).map(e=>[e,{enumerable:!0,get(){return n[e].parse}}]))),i=u(t,n);try{return i.preprocess&&(e=i.preprocess(e,t)),{text:e,ast:i.parse(e,r,t)}}catch(o){let{loc:t}=o;if(t){let{codeFrameColumns:n}=Ht();throw o.codeFrame=n(e,t,{highlightCode:!0}),o.message+="\n"+o.codeFrame,o}throw o}}t.exports={parse:c,resolveParser:u}}}),Gt=_({"src/main/options.js"(e,t){C();var n=Le(),{UndefinedParserError:r}=Be(),{getSupportInfo:i}=ue(),o=jt(),{resolveParser:a}=$t(),s={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign({},e),l=i({plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,d=Object.assign(Object.assign({},s),Object.fromEntries(l.filter(e=>void 0!==e.default).map(e=>[e.name,e.default])));if(!n.parser)if(n.filepath){if(n.parser=c(n.filepath,n.plugins),!n.parser)throw new r("No parser could be inferred for file: "+n.filepath)}else(t.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),n.parser="babel";let p=a(o.normalizeApiOptions(n,[l.find(e=>"parser"===e.name)],{passThrough:!0,logger:!1}));n.astFormat=p.astFormat,n.locEnd=p.locEnd,n.locStart=p.locStart;let h=u(n);n.printer=h.printers[n.astFormat];let f=Object.fromEntries(l.filter(e=>e.pluginDefaults&&void 0!==e.pluginDefaults[h.name]).map(e=>[e.name,e.pluginDefaults[h.name]])),m=Object.assign(Object.assign({},d),f);for(let[r,i]of Object.entries(m))(null===n[r]||void 0===n[r])&&(n[r]=i);return"json"===n.parser&&(n.trailingComma="none"),o.normalizeApiOptions(n,l,Object.assign({passThrough:Object.keys(s)},t))}function u(e){let{astFormat:t}=e;if(!t)throw new Error("getPlugin() requires astFormat to be set");let n=e.plugins.find(e=>e.printers&&e.printers[t]);if(!n)throw new Error(`Couldn't find plugin for AST format "${t}"`);return n}function c(e,t){let r=n.basename(e).toLowerCase(),o=i({plugins:t}).languages.filter(e=>null!==e.since).find(e=>e.extensions&&e.extensions.some(e=>r.endsWith(e))||e.filenames&&e.filenames.some(e=>e.toLowerCase()===r));return o&&o.parsers[0]}t.exports={normalize:l,hiddenDefaults:s,inferParser:c}}}),Vt=_({"src/main/massage-ast.js"(e,t){function n(e,t,r){if(Array.isArray(e))return e.map(e=>n(e,t,r)).filter(Boolean);if(!e||"object"!=typeof e)return e;let i,o=t.printer.massageAstNode;i=o&&o.ignoredProperties?o.ignoredProperties:new Set;let a={};for(let[s,l]of Object.entries(e))!i.has(s)&&"function"!=typeof l&&(a[s]=n(l,t,e));if(o){let t=o(e,a,r);if(null===t)return;if(t)return t}return a}C(),t.exports=n}}),Yt=_({"scripts/build/shims/assert.cjs"(e,t){C();var n=()=>{};n.ok=n,n.strictEqual=n,t.exports=n}}),Wt=_({"src/main/comments.js"(e,t){C();var n=Yt(),{builders:{line:r,hardline:i,breakParent:o,indent:a,lineSuffix:s,join:l,cursor:u}}=Y(),{hasNewline:c,skipNewline:d,skipSpaces:p,isPreviousLineEmpty:h,addLeadingComment:f,addDanglingComment:m,addTrailingComment:g}=ge(),v=new WeakMap;function b(e,t,n){if(!e)return;let{printer:r,locStart:i,locEnd:o}=t;if(n){if(r.canAttachComment&&r.canAttachComment(e)){let t;for(t=n.length-1;t>=0&&!(i(n[t])<=i(e)&&o(n[t])<=o(e));--t);return void n.splice(t+1,0,e)}}else if(v.has(e))return v.get(e);let a=r.getCommentChildNodes&&r.getCommentChildNodes(e,t)||"object"==typeof e&&Object.entries(e).filter(e=>{let[t]=e;return"enclosingNode"!==t&&"precedingNode"!==t&&"followingNode"!==t&&"tokens"!==t&&"comments"!==t&&"parent"!==t}).map(e=>{let[,t]=e;return t});if(a){n||(n=[],v.set(e,n));for(let e of a)b(e,t,n);return n}}function y(e,t,n,r){let i,o,{locStart:a,locEnd:s}=n,l=a(t),u=s(t),c=b(e,n),d=0,p=c.length;for(;d>1,r=c[e],h=a(r),f=s(r);if(h<=l&&u<=f)return y(r,t,n,r);if(f<=l)i=r,d=e+1;else{if(!(u<=h))throw new Error("Comment location overlaps with node location");o=r,p=e}}if(r&&"TemplateLiteral"===r.type){let{quasis:e}=r,a=A(e,t,n);i&&A(e,i,n)!==a&&(i=null),o&&A(e,o,n)!==a&&(o=null)}return{enclosingNode:r,precedingNode:i,followingNode:o}}var _=()=>!1;function E(e,t,n,r){if(!Array.isArray(e))return;let i=[],{locStart:o,locEnd:a,printer:{handleComments:s={}}}=r,{avoidAstMutation:l,ownLine:u=_,endOfLine:c=_,remaining:d=_}=s,p=e.map((i,o)=>Object.assign(Object.assign({},y(t,i,r)),{},{comment:i,text:n,options:r,ast:t,isLastComment:e.length-1===o}));for(let[h,v]of p.entries()){let e,{comment:t,precedingNode:n,enclosingNode:r,followingNode:s,text:b,options:y,ast:_,isLastComment:E}=v;if("json"===y.parser||"json5"===y.parser||"__js_expression"===y.parser||"__vue_expression"===y.parser||"__vue_ts_expression"===y.parser){if(o(t)-o(_)<=0){f(_,t);continue}if(a(t)-a(_)>=0){g(_,t);continue}}if(l?e=[v]:(t.enclosingNode=r,t.precedingNode=n,t.followingNode=s,e=[t,b,y,_,E]),S(b,y,p,h))t.placement="ownLine",u(...e)||(s?f(s,t):n?g(n,t):m(r||_,t));else if(x(b,y,p,h))t.placement="endOfLine",c(...e)||(n?g(n,t):s?f(s,t):m(r||_,t));else if(t.placement="remaining",!d(...e))if(n&&s){let e=i.length;e>0&&i[e-1].followingNode!==s&&T(i,b,y),i.push(v)}else n?g(n,t):s?f(s,t):m(r||_,t)}if(T(i,n,r),!l)for(let h of e)delete h.precedingNode,delete h.enclosingNode,delete h.followingNode}var w=e=>!/[\S\n\u2028\u2029]/.test(e);function S(e,t,n,r){let{comment:i,precedingNode:o}=n[r],{locStart:a,locEnd:s}=t,l=a(i);if(o)for(let u=r-1;u>=0;u--){let{comment:t,precedingNode:r}=n[u];if(r!==o||!w(e.slice(s(t),l)))break;l=a(t)}return c(e,l,{backwards:!0})}function x(e,t,n,r){let{comment:i,followingNode:o}=n[r],{locStart:a,locEnd:s}=t,l=s(i);if(o)for(let u=r+1;u0;--o){let{comment:i,precedingNode:l,followingNode:d}=e[o-1];n.strictEqual(l,a),n.strictEqual(d,s);let p=t.slice(r.locEnd(i),c);if(!u.test(p))break;c=r.locStart(i)}for(let[n,{comment:d}]of e.entries())n1&&n.comments.sort((e,t)=>r.locStart(e)-r.locStart(t));e.length=0}function D(e,t){let n=e.getValue();return n.printed=!0,t.printer.printComment(e,t)}function A(e,t,n){let r=n.locStart(t)-1;for(let i=1;i{let n=e.getValue();!n.leading&&!n.trailing&&(!r||r(n))&&o.push(D(e,t))},"comments"),0!==o.length)?n?l(i,o):a([i,l(i,o)]):""}function I(e,t,n){let r=e.getValue();if(!r)return{};let i=r.comments||[];n&&(i=i.filter(e=>!n.has(e)));let o=r===t.cursorNode;if(0===i.length){let e=o?u:"";return{leading:e,trailing:e}}let a=[],s=[];return e.each(()=>{let r=e.getValue();if(n&&n.has(r))return;let{leading:i,trailing:o}=r;i?a.push(k(e,t)):o&&s.push(O(e,t))},"comments"),o&&(a.unshift(u),s.push(u)),{leading:a,trailing:s}}function M(e,t,n,r){let{leading:i,trailing:o}=I(e,n,r);return i||o?[i,t,o]:t}function R(e){if(e)for(let t of e){if(!t.printed)throw new Error('Comment "'+t.value.trim()+'" was not printed. Please report this error!');delete t.printed}}t.exports={attach:E,printComments:M,printCommentsSeparately:I,printDanglingComments:N,getSortedChildNodes:b,ensureAllCommentsPrinted:R}}}),Kt=_({"src/common/ast-path.js"(e,t){C();var n=N();function r(e,t){let n=i(e.stack,t);return-1===n?null:e.stack[n]}function i(e,t){for(let n=e.length-1;n>=0;n-=2){let r=e[n];if(r&&!Array.isArray(r)&&--t<0)return n}return-1}var o=class{constructor(e){this.stack=[e]}getName(){let{stack:e}=this,{length:t}=e;return t>1?e[t-2]:null}getValue(){return n(this.stack)}getNode(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return r(this,e)}getParentNode(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return r(this,e+1)}call(e){let{stack:t}=this,{length:r}=t,i=n(t);for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s1&&void 0!==arguments[1]?arguments[1]:0,n=i(this.stack,t+1),r=this.stack.splice(n+1),o=e(this);return this.stack.push(...r),o}each(e){let{stack:t}=this,{length:r}=t,i=n(t);for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s1?n-1:0),i=1;i{t[r]=e(n,r,i)},...r),t}try(e){let{stack:t}=this,n=[...t];try{return e()}finally{t.length=0,t.push(...n)}}match(){let e=this.stack.length-1,t=null,n=this.stack[e--];for(var r=arguments.length,i=new Array(r),o=0;oa(e,t,n,r,i),n)}function a(e,t,o,a){let{stripTrailingHardline:s=!1}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},l=r(Object.assign(Object.assign(Object.assign({},o),t),{},{parentParser:o.parser,originalText:e}),{passThrough:!0}),u=$t().parse(e,l),{ast:c}=u;e=u.text;let d=c.comments;delete c.comments,i.attach(d,c,e,l),l[Symbol.for("comments")]=d||[],l[Symbol.for("tokens")]=c.tokens||[];let p=a(c,l);return i.ensureAllCommentsPrinted(d),s?"string"==typeof p?p.replace(/(?:\r?\n)*$/,""):n(p):p}t.exports={printSubtree:o}}}),Xt=_({"src/main/ast-to-doc.js"(e,t){C();var n=Kt(),{builders:{hardline:r,addAlignmentToDoc:i},utils:{propagateBreaks:o}}=Y(),{printComments:a}=Wt(),s=Qt();function l(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,{printer:s}=t;s.preprocess&&(e=s.preprocess(e,t));let l=new Map,u=new n(e),d=p();return a>0&&(d=i([r,d],a,t.tabWidth)),o(d),d;function p(e,t){return void 0===e||e===u?h(t):Array.isArray(e)?u.call(()=>h(t),...e):u.call(()=>h(t),e)}function h(e){let n=u.getValue(),r=n&&"object"==typeof n&&void 0===e;if(r&&l.has(n))return l.get(n);let i=c(u,t,p,e);return r&&l.set(n,i),i}}function u(e,t){let{originalText:n,[Symbol.for("comments")]:r,locStart:i,locEnd:o}=t,a=i(e),s=o(e),l=new Set;for(let u of r)i(u)>=a&&o(u)<=s&&(u.printed=!0,l.add(u));return{doc:n.slice(a,s),printedComments:l}}function c(e,t,n,r){let i,o,c=e.getValue(),{printer:d}=t;if(d.hasPrettierIgnore&&d.hasPrettierIgnore(e))({doc:i,printedComments:o}=u(c,t));else{if(c)try{i=s.printSubtree(e,n,t,l)}catch(p){if(globalThis.PRETTIER_DEBUG)throw p}i||(i=d.print(e,t,n,r))}return(!d.willPrintOwnComments||!d.willPrintOwnComments(e,t))&&(i=a(e,i,t,o)),i}t.exports=l}}),Zt=_({"src/main/range-util.js"(e,t){C();var n=Yt(),r=Wt(),i=e=>{let{parser:t}=e;return"json"===t||"json5"===t||"json-stringify"===t};function o(e,t){let n=[e.node,...e.parentNodes],r=new Set([t.node,...t.parentNodes]);return n.find(e=>c.has(e.type)&&r.has(e))}function a(e){let t=e.length-1;for(;;){let n=e[t];if(!n||"Program"!==n.type&&"File"!==n.type)break;t--}return e.slice(0,t+1)}function s(e,t,n){let{locStart:r,locEnd:i}=n,o=e.node,s=t.node;if(o===s)return{startNode:o,endNode:s};let l=r(e.node);for(let c of a(t.parentNodes)){if(!(r(c)>=l))break;s=c}let u=i(t.node);for(let c of a(e.parentNodes)){if(!(i(c)<=u))break;if(o=c,o===s)break}return{startNode:o,endNode:s}}function l(e,t,n,i){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5?arguments[5]:void 0,{locStart:s,locEnd:u}=n,c=s(e),d=u(e);if(!(t>d||ta);let h=e.slice(a,u).search(/\S/),f=-1===h;if(!f)for(a+=h;u>a&&!/\S/.test(e[u-1]);--u);let m,g,v=l(r,a,t,(e,n)=>p(t,e,n),[],"rangeStart"),b=f?v:l(r,u,t,e=>p(t,e),[],"rangeEnd");if(!v||!b)return{rangeStart:0,rangeEnd:0};if(i(t)){let e=o(v,b);m=e,g=e}else({startNode:m,endNode:g}=s(v,b,t));return{rangeStart:Math.min(c(m),c(g)),rangeEnd:Math.max(d(m),d(g))}}t.exports={calculateRange:h,findNodeAtOffset:l}}}),Jt=_({"src/main/core.js"(e,t){C();var{diffArrays:n}=A(),{printer:{printDocToString:r},debug:{printDocToDebug:i}}=Y(),{getAlignmentSize:o}=ge(),{guessEndOfLine:a,convertEndOfLineToChars:s,countEndOfLineChars:l,normalizeEndOfLine:u}=O(),c=Gt().normalize,d=Vt(),p=Wt(),h=$t(),f=Xt(),m=Zt(),g="\ufeff",v=Symbol("cursor");function b(e,t,n){let r=t.comments;return r&&(delete t.comments,p.attach(r,t,e,n)),n[Symbol.for("comments")]=r||[],n[Symbol.for("tokens")]=t.tokens||[],n.originalText=e,r}function y(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!e||0===e.trim().length)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:o,text:a}=h.parse(e,t);if(t.cursorOffset>=0){let e=m.findNodeAtOffset(o,t.cursorOffset,t);e&&e.node&&(t.cursorNode=e.node)}let l=b(a,o,t),u=f(o,t,i),c=r(u,t);if(p.ensureAllCommentsPrinted(l),i>0){let e=c.formatted.trim();void 0!==c.cursorNodeStart&&(c.cursorNodeStart-=c.formatted.indexOf(e)),c.formatted=e+s(t.endOfLine)}if(t.cursorOffset>=0){let e,r,i,o,s;if(t.cursorNode&&c.cursorNodeText?(e=t.locStart(t.cursorNode),r=a.slice(e,t.locEnd(t.cursorNode)),i=t.cursorOffset-e,o=c.cursorNodeStart,s=c.cursorNodeText):(e=0,r=a,i=t.cursorOffset,o=0,s=c.formatted),r===s)return{formatted:c.formatted,cursorOffset:o+i,comments:l};let u=[...r];u.splice(i,0,v);let d=[...s],p=n(u,d),h=o;for(let t of p)if(t.removed){if(t.value.includes(v))break}else h+=t.count;return{formatted:c.formatted,cursorOffset:h,comments:l}}return{formatted:c.formatted,cursorOffset:-1,comments:l}}function _(e,t){let{ast:n,text:r}=h.parse(e,t),{rangeStart:i,rangeEnd:a}=m.calculateRange(r,t,n),u=r.slice(i,a),c=Math.min(i,r.lastIndexOf("\n",i)+1),d=r.slice(c,i).match(/^\s*/)[0],p=o(d,t.tabWidth),f=y(u,Object.assign(Object.assign({},t),{},{rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=a?t.cursorOffset-i:-1,endOfLine:"lf"}),p),g=f.formatted.trimEnd(),{cursorOffset:v}=t;v>a?v+=g.length-u.length:f.cursorOffset>=0&&(v=f.cursorOffset+i);let b=r.slice(0,i)+g+r.slice(a);if("lf"!==t.endOfLine){let e=s(t.endOfLine);v>=0&&"\r\n"===e&&(v+=l(b.slice(0,v),"\n")),b=b.replace(/\n/g,e)}return{formatted:b,cursorOffset:v,comments:f.comments}}function E(e,t,n){return"number"!=typeof t||Number.isNaN(t)||t<0||t>e.length?n:t}function w(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i}=t;return n=E(e,n,-1),r=E(e,r,0),i=E(e,i,e.length),Object.assign(Object.assign({},t),{},{cursorOffset:n,rangeStart:r,rangeEnd:i})}function S(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:o}=w(e,t),s=e.charAt(0)===g;if(s&&(e=e.slice(1),n--,r--,i--),"auto"===o&&(o=a(e)),e.includes("\r")){let t=t=>l(e.slice(0,Math.max(t,0)),"\r\n");n-=t(n),r-=t(r),i-=t(i),e=u(e)}return{hasBOM:s,text:e,options:w(e,Object.assign(Object.assign({},t),{},{cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:o}))}}function x(e,t){let n=h.resolveParser(t);return!n.hasPragma||n.hasPragma(e)}function T(e,t){let n,{hasBOM:r,text:i,options:o}=S(e,c(t));return o.rangeStart>=o.rangeEnd&&""!==i||o.requirePragma&&!x(i,o)?{formatted:e,cursorOffset:t.cursorOffset,comments:[]}:(o.rangeStart>0||o.rangeEnd=0&&n.cursorOffset++),n)}t.exports={formatWithCursor:T,parse(e,t,n){let{text:r,options:i}=S(e,c(t)),o=h.parse(r,i);return n&&(o.ast=d(o.ast,i)),o},formatAST(e,t){t=c(t);let n=f(e,t);return r(n,t)},formatDoc(e,t){return T(i(e),Object.assign(Object.assign({},t),{},{parser:"__js_expression"})).formatted},printToDoc(e,t){t=c(t);let{ast:n,text:r}=h.parse(e,t);return b(r,n,t),f(n,t)},printDocToString(e,t){return r(e,c(t))}}}}),en=_({"src/common/util-shared.js"(e,t){C();var{getMaxContinuousCount:n,getStringWidth:r,getAlignmentSize:i,getIndentSize:o,skip:a,skipWhitespace:s,skipSpaces:l,skipNewline:u,skipToLineEnd:c,skipEverythingButNewLine:d,skipInlineComment:p,skipTrailingComment:h,hasNewline:f,hasNewlineInRange:m,hasSpaces:g,isNextLineEmpty:v,isNextLineEmptyAfterIndex:b,isPreviousLineEmpty:y,getNextNonSpaceNonCommentCharacterIndex:_,makeString:E,addLeadingComment:w,addDanglingComment:S,addTrailingComment:x}=ge();t.exports={getMaxContinuousCount:n,getStringWidth:r,getAlignmentSize:i,getIndentSize:o,skip:a,skipWhitespace:s,skipSpaces:l,skipNewline:u,skipToLineEnd:c,skipEverythingButNewLine:d,skipInlineComment:p,skipTrailingComment:h,hasNewline:f,hasNewlineInRange:m,hasSpaces:g,isNextLineEmpty:v,isNextLineEmptyAfterIndex:b,isPreviousLineEmpty:y,getNextNonSpaceNonCommentCharacterIndex:_,makeString:E,addLeadingComment:w,addDanglingComment:S,addTrailingComment:x}}}),tn=_({"src/utils/create-language.js"(e,t){C(),t.exports=function(e,t){let{languageId:n}=e,r=c(e,u);return Object.assign(Object.assign({linguistLanguageId:n},r),t(e))}}}),nn=_({"node_modules/esutils/lib/ast.js"(e,t){C(),function(){function e(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function n(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function r(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function i(e){return r(e)||null!=e&&"FunctionDeclaration"===e.type}function o(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}function a(e){var t;if("IfStatement"!==e.type||null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=o(t)}while(t);return!1}t.exports={isExpression:e,isStatement:r,isIterationStatement:n,isSourceElement:i,isProblematicIfStatement:a,trailingStatement:o}}()}}),rn=_({"node_modules/esutils/lib/code.js"(e,t){C(),function(){var e,n,r,i,o,a;function s(e){return 48<=e&&e<=57}function l(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70}function u(e){return e>=48&&e<=55}function c(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&r.indexOf(e)>=0}function d(e){return 10===e||13===e||8232===e||8233===e}function p(e){if(e<=65535)return String.fromCharCode(e);var t=String.fromCharCode(Math.floor((e-65536)/1024)+55296),n=String.fromCharCode((e-65536)%1024+56320);return t+n}for(n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],i=new Array(128),a=0;a<128;++a)i[a]=a>=97&&a<=122||a>=65&&a<=90||36===a||95===a;for(o=new Array(128),a=0;a<128;++a)o[a]=a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||36===a||95===a;function h(e){return e<128?i[e]:n.NonAsciiIdentifierStart.test(p(e))}function f(e){return e<128?o[e]:n.NonAsciiIdentifierPart.test(p(e))}function m(t){return t<128?i[t]:e.NonAsciiIdentifierStart.test(p(t))}function g(t){return t<128?o[t]:e.NonAsciiIdentifierPart.test(p(t))}t.exports={isDecimalDigit:s,isHexDigit:l,isOctalDigit:u,isWhiteSpace:c,isLineTerminator:d,isIdentifierStartES5:h,isIdentifierPartES5:f,isIdentifierStartES6:m,isIdentifierPartES6:g}}()}}),on=_({"node_modules/esutils/lib/keyword.js"(e,t){C(),function(){var e=rn();function n(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function r(e,t){return!(!t&&"yield"===e)&&i(e,t)}function i(e,t){if(t&&n(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function o(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function a(e,t){return"null"===e||"true"===e||"false"===e||i(e,t)}function s(e){return"eval"===e||"arguments"===e}function l(t){var n,r,i;if(0===t.length||(i=t.charCodeAt(0),!e.isIdentifierStartES5(i)))return!1;for(n=1,r=t.length;n=r||(o=t.charCodeAt(n),!(56320<=o&&o<=57343)))return!1;i=u(i,o)}if(!a(i))return!1;a=e.isIdentifierPartES6}return!0}function d(e,t){return l(e)&&!o(e,t)}function p(e,t){return c(e)&&!a(e,t)}t.exports={isKeywordES5:r,isKeywordES6:i,isReservedWordES5:o,isReservedWordES6:a,isRestrictedWord:s,isIdentifierNameES5:l,isIdentifierNameES6:c,isIdentifierES5:d,isIdentifierES6:p}}()}}),an=_({"node_modules/esutils/lib/utils.js"(e){C(),function(){e.ast=nn(),e.code=rn(),e.keyword=on()}()}}),sn=_({"src/language-js/utils/is-block-comment.js"(e,t){C();var n=new Set(["Block","CommentBlock","MultiLine"]),r=e=>n.has(null==e?void 0:e.type);t.exports=r}}),ln=_({"src/language-js/utils/is-node-matches.js"(e,t){function n(e,t){let n=t.split(".");for(let r=n.length-1;r>=0;r--){let t=n[r];if(0===r)return"Identifier"===e.type&&e.name===t;if("MemberExpression"!==e.type||e.optional||e.computed||"Identifier"!==e.property.type||e.property.name!==t)return!1;e=e.object}}function r(e,t){return t.some(t=>n(e,t))}C(),t.exports=r}}),un=_({"src/language-js/utils/index.js"(e,t){C();var n=an().keyword.isIdentifierNameES5,{getLast:r,hasNewline:i,skipWhitespace:o,isNonEmptyArray:a,isNextLineEmptyAfterIndex:s,getStringWidth:l}=ge(),{locStart:u,locEnd:c,hasSameLocStart:d}=Ut(),p=sn(),h=ln(),f="(?:(?=.)\\s)",m=new RegExp(`^${f}*:`),g=new RegExp(`^${f}*::`);function v(e){var t,n;return(null===(t=e.extra)||void 0===t?void 0:t.parenthesized)&&p(null===(n=e.trailingComments)||void 0===n?void 0:n[0])&&m.test(e.trailingComments[0].value)}function b(e){let t=null==e?void 0:e[0];return p(t)&&g.test(t.value)}function y(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e))return e.some(e=>y(e,t));let n=t(e);return"boolean"==typeof n?n:Object.values(e).some(e=>y(e,t))}function _(e){return"AssignmentExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type||"ConditionalExpression"===e.type||Q(e)||X(e)||"SequenceExpression"===e.type||"TaggedTemplateExpression"===e.type||"BindExpression"===e.type||"UpdateExpression"===e.type&&!e.prefix||He(e)||"TSNonNullExpression"===e.type}function E(e){var t,n,r,i,o,a;return e.expressions?e.expressions[0]:null!==(t=null!==(n=null!==(r=null!==(i=null!==(o=null!==(a=e.left)&&void 0!==a?a:e.test)&&void 0!==o?o:e.callee)&&void 0!==i?i:e.object)&&void 0!==r?r:e.tag)&&void 0!==n?n:e.argument)&&void 0!==t?t:e.expression}function w(e,t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw new Error("Unexpected node has no left side.")}function S(e){return e=new Set(e),t=>e.has(null==t?void 0:t.type)}var x=S(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose"]),T=S(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function D(e){let t=e.getParentNode();return"declaration"===e.getName()&&T(t)?t:null}var A=S(["BooleanLiteral","DirectiveLiteral","Literal","NullLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","RegExpLiteral","StringLiteral","TemplateLiteral","TSTypeLiteral","JSXText"]);function k(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"==typeof e.value}function O(e){return"UnaryExpression"===e.type&&("+"===e.operator||"-"===e.operator)&&k(e.argument)}function N(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"==typeof e.value}var I=S(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),M=S(["FunctionExpression","ArrowFunctionExpression"]);function R(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}function P(e){return Q(e)&&"Identifier"===e.callee.type&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var L=S(["JSXElement","JSXFragment"]);function F(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;let n=t.getNode();if(!n.expression||!L(n.expression))return!1;let r=t.getParentNode();return"Program"===r.type&&1===r.body.length}function B(e){return"get"===e.kind||"set"===e.kind}function j(e){return B(e)||d(e,e.value)}function U(e){return("ObjectTypeProperty"===e.type||"ObjectTypeInternalSlot"===e.type)&&"FunctionTypeAnnotation"===e.value.type&&!e.static&&!j(e)}function z(e){return("TypeAnnotation"===e.type||"TSTypeAnnotation"===e.type)&&"FunctionTypeAnnotation"===e.typeAnnotation.type&&!e.static&&!d(e,e.typeAnnotation)}var q=S(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function H(e){return X(e)||"BindExpression"===e.type&&Boolean(e.object)}var $=new Set(["AnyTypeAnnotation","TSAnyKeyword","NullLiteralTypeAnnotation","TSNullKeyword","ThisTypeAnnotation","TSThisType","NumberTypeAnnotation","TSNumberKeyword","VoidTypeAnnotation","TSVoidKeyword","BooleanTypeAnnotation","TSBooleanKeyword","BigIntTypeAnnotation","TSBigIntKeyword","SymbolTypeAnnotation","TSSymbolKeyword","StringTypeAnnotation","TSStringKeyword","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType","EmptyTypeAnnotation","MixedTypeAnnotation","TSNeverKeyword","TSObjectKeyword","TSUndefinedKeyword","TSUnknownKeyword"]);function G(e){return!!e&&!(("GenericTypeAnnotation"!==e.type&&"TSTypeReference"!==e.type||e.typeParameters)&&!$.has(e.type))}function V(e){let t=/^(?:before|after)(?:Each|All)$/;return"Identifier"===e.callee.type&&t.test(e.callee.name)&&1===e.arguments.length}var Y=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function W(e){return h(e,Y)}function K(e,t){if("CallExpression"!==e.type)return!1;if(1===e.arguments.length){if(P(e)&&t&&K(t))return M(e.arguments[0]);if(V(e))return P(e.arguments[0])}else if((2===e.arguments.length||3===e.arguments.length)&&("TemplateLiteral"===e.arguments[0].type||N(e.arguments[0]))&&W(e.callee))return!(e.arguments[2]&&!k(e.arguments[2]))&&((2===e.arguments.length?M(e.arguments[1]):R(e.arguments[1])&&Te(e.arguments[1]).length<=1)||P(e.arguments[1]));return!1}var Q=S(["CallExpression","OptionalCallExpression"]),X=S(["MemberExpression","OptionalMemberExpression"]);function Z(e){let t="expressions";"TSTemplateLiteralType"===e.type&&(t="types");let n=e[t];return 0!==n.length&&n.every(e=>{if(Le(e))return!1;if("Identifier"===e.type||"ThisExpression"===e.type)return!0;if(X(e)){let t=e;for(;X(t);)if("Identifier"!==t.property.type&&"Literal"!==t.property.type&&"StringLiteral"!==t.property.type&&"NumericLiteral"!==t.property.type||(t=t.object,Le(t)))return!1;return"Identifier"===t.type||"ThisExpression"===t.type}return!1})}function J(e,t){return"+"===e||"-"===e?e+t:t}function ee(e,t){let n=u(t),r=o(e,c(t));return!1!==r&&"/*"===e.slice(n,n+2)&&"*/"===e.slice(r,r+2)}function te(e,t){return L(t)?Ie(t):Le(t,Re.Leading,t=>i(e,c(t)))}function ne(e,t){return"json"!==t.parser&&N(e.key)&&de(e.key).slice(1,-1)===e.key.value&&(n(e.key.value)&&!("babel-ts"===t.parser&&"ClassProperty"===e.type||"typescript"===t.parser&&"PropertyDefinition"===e.type)||re(e.key.value)&&String(Number(e.key.value))===e.key.value&&("babel"===t.parser||"acorn"===t.parser||"espree"===t.parser||"meriyah"===t.parser||"__babel_estree"===t.parser))}function re(e){return/^(?:\d+|\d+\.\d+)$/.test(e)}function ie(e,t){let n=/^[fx]?(?:describe|it|test)$/;return"TaggedTemplateExpression"===t.type&&t.quasi===e&&"MemberExpression"===t.tag.type&&"Identifier"===t.tag.property.type&&"each"===t.tag.property.name&&("Identifier"===t.tag.object.type&&n.test(t.tag.object.name)||"MemberExpression"===t.tag.object.type&&"Identifier"===t.tag.object.property.type&&("only"===t.tag.object.property.name||"skip"===t.tag.object.property.name)&&"Identifier"===t.tag.object.object.type&&n.test(t.tag.object.object.name))}function oe(e){return e.quasis.some(e=>e.value.raw.includes("\n"))}function ae(e,t){return("TemplateLiteral"===e.type&&oe(e)||"TaggedTemplateExpression"===e.type&&oe(e.quasi))&&!i(t,u(e),{backwards:!0})}function se(e){if(!Le(e))return!1;let t=r(Fe(e,Re.Dangling));return t&&!p(t)}function le(e){if(e.length<=1)return!1;let t=0;for(let n of e)if(M(n)){if(t+=1,t>1)return!0}else if(Q(n))for(let e of n.arguments)if(M(e))return!0;return!1}function ue(e){let t=e.getValue(),n=e.getParentNode();return Q(t)&&Q(n)&&n.callee===t&&t.arguments.length>n.arguments.length&&n.arguments.length>0}function ce(e,t){if(t>=2)return!1;let n=e=>ce(e,t+1),r="Literal"===e.type&&"regex"in e&&e.regex.pattern||"RegExpLiteral"===e.type&&e.pattern;if(r&&l(r)>5)return!1;if("Literal"===e.type||"BigIntLiteral"===e.type||"DecimalLiteral"===e.type||"BooleanLiteral"===e.type||"NullLiteral"===e.type||"NumericLiteral"===e.type||"RegExpLiteral"===e.type||"StringLiteral"===e.type||"Identifier"===e.type||"ThisExpression"===e.type||"Super"===e.type||"PrivateName"===e.type||"PrivateIdentifier"===e.type||"ArgumentPlaceholder"===e.type||"Import"===e.type)return!0;if("TemplateLiteral"===e.type)return e.quasis.every(e=>!e.value.raw.includes("\n"))&&e.expressions.every(n);if("ObjectExpression"===e.type)return e.properties.every(e=>!e.computed&&(e.shorthand||e.value&&n(e.value)));if("ArrayExpression"===e.type)return e.elements.every(e=>null===e||n(e));if(je(e))return("ImportExpression"===e.type||ce(e.callee,t))&&ke(e).every(n);if(X(e))return ce(e.object,t)&&ce(e.property,t);let i={"!":!0,"-":!0,"+":!0,"~":!0};if("UnaryExpression"===e.type&&i[e.operator])return ce(e.argument,t);let o={"++":!0,"--":!0};return"UpdateExpression"===e.type&&o[e.operator]?ce(e.argument,t):"TSNonNullExpression"===e.type&&ce(e.expression,t)}function de(e){var t,n;return null!==(t=null===(n=e.extra)||void 0===n?void 0:n.raw)&&void 0!==t?t:e.raw}function pe(e){return e}function he(e){return e.filepath&&/\.tsx$/i.test(e.filepath)}function fe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"es5";return"es5"===e.trailingComma&&"es5"===t||"all"===e.trailingComma&&("all"===t||"es5"===t)}function me(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return me(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return me(e.object,t);case"TaggedTemplateExpression":return"FunctionExpression"!==e.tag.type&&me(e.tag,t);case"CallExpression":case"OptionalCallExpression":return"FunctionExpression"!==e.callee.type&&me(e.callee,t);case"ConditionalExpression":return me(e.test,t);case"UpdateExpression":return!e.prefix&&me(e.argument,t);case"BindExpression":return e.object&&me(e.object,t);case"SequenceExpression":return me(e.expressions[0],t);case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":return me(e.expression,t);default:return t(e)}}var ve={"==":!0,"!=":!0,"===":!0,"!==":!0},be={"*":!0,"/":!0,"%":!0},ye={">>":!0,">>>":!0,"<<":!0};function _e(e,t){return!(we(t)!==we(e)||"**"===e||ve[e]&&ve[t]||"%"===t&&be[e]||"%"===e&&be[t]||t!==e&&be[t]&&be[e]||ye[e]&&ye[t])}var Ee=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(e=>[e,t])));function we(e){return Ee.get(e)}function Se(e){return Boolean(ye[e])||"|"===e||"^"===e||"&"===e}function xe(e){var t;if(e.rest)return!0;let n=Te(e);return"RestElement"===(null===(t=r(n))||void 0===t?void 0:t.type)}var Ce=new WeakMap;function Te(e){if(Ce.has(e))return Ce.get(e);let t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),Ce.set(e,t),t}function De(e,t){let n=e.getValue(),r=0,i=e=>t(e,r++);n.this&&e.call(i,"this"),Array.isArray(n.parameters)?e.each(i,"parameters"):Array.isArray(n.params)&&e.each(i,"params"),n.rest&&e.call(i,"rest")}var Ae=new WeakMap;function ke(e){if(Ae.has(e))return Ae.get(e);let t=e.arguments;return"ImportExpression"===e.type&&(t=[e.source],e.attributes&&t.push(e.attributes)),Ae.set(e,t),t}function Oe(e,t){let n=e.getValue();"ImportExpression"===n.type?(e.call(e=>t(e,0),"source"),n.attributes&&e.call(e=>t(e,1),"attributes")):e.each(t,"arguments")}function Ne(e){return"prettier-ignore"===e.value.trim()&&!e.unignore}function Ie(e){return e&&(e.prettierIgnore||Le(e,Re.PrettierIgnore))}function Me(e){let t=e.getValue();return Ie(t)}var Re={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},Pe=(e,t)=>{if("function"==typeof e&&(t=e,e=0),e||t)return(n,r,i)=>!(e&Re.Leading&&!n.leading||e&Re.Trailing&&!n.trailing||e&Re.Dangling&&(n.leading||n.trailing)||e&Re.Block&&!p(n)||e&Re.Line&&!x(n)||e&Re.First&&0!==r||e&Re.Last&&r!==i.length-1||e&Re.PrettierIgnore&&!Ne(n)||t&&!t(n))};function Le(e,t,n){if(!a(null==e?void 0:e.comments))return!1;let r=Pe(t,n);return!r||e.comments.some(r)}function Fe(e,t,n){if(!Array.isArray(null==e?void 0:e.comments))return[];let r=Pe(t,n);return r?e.comments.filter(r):e.comments}var Be=(e,t)=>{let{originalText:n}=t;return s(n,c(e))};function je(e){return Q(e)||"NewExpression"===e.type||"ImportExpression"===e.type}function Ue(e){return e&&("ObjectProperty"===e.type||"Property"===e.type&&!e.method&&"init"===e.kind)}function ze(e){return Boolean(e.__isUsingHackPipeline)}var qe=Symbol("ifWithoutBlockAndSameLineComment");function He(e){return"TSAsExpression"===e.type||"TSSatisfiesExpression"===e.type}t.exports={getFunctionParameters:Te,iterateFunctionParametersPath:De,getCallArguments:ke,iterateCallArgumentsPath:Oe,hasRestParameter:xe,getLeftSide:E,getLeftSidePathName:w,getParentExportDeclaration:D,getTypeScriptMappedTypeModifier:J,hasFlowAnnotationComment:b,hasFlowShorthandAnnotationComment:v,hasLeadingOwnLineComment:te,hasNakedLeftSide:_,hasNode:y,hasIgnoreComment:Me,hasNodeIgnoreComment:Ie,identity:pe,isBinaryish:q,isCallLikeExpression:je,isEnabledHackPipeline:ze,isLineComment:x,isPrettierIgnoreComment:Ne,isCallExpression:Q,isMemberExpression:X,isExportDeclaration:T,isFlowAnnotationComment:ee,isFunctionCompositionArgs:le,isFunctionNotation:j,isFunctionOrArrowExpression:M,isGetterOrSetter:B,isJestEachTemplateLiteral:ie,isJsxNode:L,isLiteral:A,isLongCurriedCallExpression:ue,isSimpleCallArgument:ce,isMemberish:H,isNumericLiteral:k,isSignedNumericLiteral:O,isObjectProperty:Ue,isObjectType:I,isObjectTypePropertyAFunction:U,isSimpleType:G,isSimpleNumber:re,isSimpleTemplateLiteral:Z,isStringLiteral:N,isStringPropSafeToUnquote:ne,isTemplateOnItsOwnLine:ae,isTestCall:K,isTheOnlyJsxElementInMarkdown:F,isTSXFile:he,isTypeAnnotationAFunction:z,isNextLineEmpty:Be,needsHardlineAfterDanglingComment:se,rawText:de,shouldPrintComma:fe,isBitwiseOperator:Se,shouldFlatten:_e,startsWithNoLookaheadToken:me,getPrecedence:we,hasComment:Le,getComments:Fe,CommentCheckFlags:Re,markerForIfWithoutBlockAndSameLineComment:qe,isTSTypeExpression:He}}}),cn=_({"src/language-js/print/template-literal.js"(e,t){C();var n=N(),{getStringWidth:r,getIndentSize:i}=ge(),{builders:{join:o,hardline:a,softline:s,group:l,indent:u,align:c,lineSuffixBoundary:d,addAlignmentToDoc:p},printer:{printDocToString:h},utils:{mapDoc:f}}=Y(),{isBinaryish:m,isJestEachTemplateLiteral:g,isSimpleTemplateLiteral:v,hasComment:b,isMemberExpression:y,isTSTypeExpression:_}=un();function E(e,t,n){let r=e.getValue();if("TemplateLiteral"===r.type&&g(r,e.getParentNode())){let r=w(e,n,t);if(r)return r}let o="expressions";"TSTemplateLiteralType"===r.type&&(o="types");let a=[],f=e.map(t,o),E=v(r);return E&&(f=f.map(e=>h(e,Object.assign(Object.assign({},n),{},{printWidth:Number.POSITIVE_INFINITY})).formatted)),a.push(d,"`"),e.each(e=>{let h=e.getName();if(a.push(t()),h1||l.some(e=>e.length>0)){t.__inJestEach=!0;let c=e.map(i,"expressions");t.__inJestEach=!1;let p=[],f=c.map(e=>"${"+h(e,Object.assign(Object.assign({},t),{},{printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"})).formatted+"}"),m=[{hasLineBreak:!1,cells:[]}];for(let e=1;ee.cells.length)),v=Array.from({length:g}).fill(0),b=[{cells:l},...m.filter(e=>e.cells.length>0)];for(let{cells:e}of b.filter(e=>!e.hasLineBreak))for(let[t,n]of e.entries())v[t]=Math.max(v[t],r(n));return p.push(d,"`",u([a,o(a,b.map(e=>o(" | ",e.cells.map((t,n)=>e.hasLineBreak?t:t+" ".repeat(v[n]-r(t))))))]),a,"`"),p}}function S(e,t){let n=e.getValue(),r=t();return b(n)&&(r=l([u([s,r]),s])),["${",r,d,"}"]}function x(e,t){return e.map(e=>S(e,t),"expressions")}function T(e,t){return f(e,e=>"string"==typeof e?t?e.replace(/(\\*)`/g,"$1$1\\`"):D(e):e)}function D(e){return e.replace(/([\\`]|\${)/g,"\\$1")}t.exports={printTemplateLiteral:E,printTemplateExpressions:x,escapeTemplateCharacters:T,uncookTemplateElementValue:D}}}),dn=_({"src/language-js/embed/markdown.js"(e,t){C();var{builders:{indent:n,softline:r,literalline:i,dedentToRoot:o}}=Y(),{escapeTemplateCharacters:a}=cn();function s(e,t,s){let u=e.getValue().quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,(e,t)=>"\\".repeat(t.length/2)+"`"),c=l(u),d=""!==c;d&&(u=u.replace(new RegExp("^"+c,"gm"),""));let p=a(s(u,{parser:"markdown",__inJsTemplate:!0},{stripTrailingHardline:!0}),!0);return["`",d?n([r,p]):[i,o(p)],r,"`"]}function l(e){let t=e.match(/^([^\S\n]*)\S/m);return null===t?"":t[1]}t.exports=s}}),pn=_({"src/language-js/embed/css.js"(e,t){C();var{isNonEmptyArray:n}=ge(),{builders:{indent:r,hardline:i,softline:o},utils:{mapDoc:a,replaceEndOfLine:s,cleanDoc:l}}=Y(),{printTemplateExpressions:u}=cn();function c(e,t,n){let r=e.getValue(),i=r.quasis.map(e=>e.value.raw),o=0,a=i.reduce((e,t,n)=>0===n?t:e+"@prettier-placeholder-"+o+++"-id"+t,""),s=n(a,{parser:"scss"},{stripTrailingHardline:!0}),l=u(e,t);return d(s,r,l)}function d(e,t,n){if(1===t.quasis.length&&!t.quasis[0].value.raw.trim())return"``";let a=p(e,n);if(!a)throw new Error("Couldn't insert all the expressions");return["`",r([i,a]),o,"`"]}function p(e,t){if(!n(t))return e;let r=0,i=a(l(e),e=>"string"==typeof e&&e.includes("@prettier-placeholder")?e.split(/@prettier-placeholder-(\d+)-id/).map((e,n)=>n%2===0?s(e):(r++,t[e])):e);return t.length===r?i:null}t.exports=c}}),hn=_({"src/language-js/embed/graphql.js"(e,t){C();var{builders:{indent:n,join:r,hardline:i}}=Y(),{escapeTemplateCharacters:o,printTemplateExpressions:a}=cn();function s(e,t,s){let u=e.getValue(),c=u.quasis.length;if(1===c&&""===u.quasis[0].value.raw.trim())return"``";let d=a(e,t),p=[];for(let n=0;n2&&""===a[0].trim()&&""===a[1].trim(),g=h>2&&""===a[h-1].trim()&&""===a[h-2].trim(),v=a.every(e=>/^\s*(?:#[^\n\r]*)?$/.test(e));if(!r&&/#[^\n\r]*$/.test(a[h-1]))return null;let b=null;b=v?l(a):s(i,{parser:"graphql"},{stripTrailingHardline:!0}),b?(b=o(b,!1),!t&&m&&p.push(""),p.push(b),!r&&g&&p.push("")):!t&&!r&&m&&p.push(""),f&&p.push(f)}return["`",n([i,r(i,p)]),i,"`"]}function l(e){let t=[],n=!1,o=e.map(e=>e.trim());for(let[r,a]of o.entries())""!==a&&(""===o[r-1]&&n?t.push([i,a]):t.push(a),n=!0);return 0===t.length?null:r(i,t)}t.exports=s}}),fn=_({"src/language-js/embed/html.js"(e,t){C();var{builders:{indent:n,line:r,hardline:i,group:o},utils:{mapDoc:a}}=Y(),{printTemplateExpressions:s,uncookTemplateElementValue:l}=cn(),u=0;function c(e,t,c,d,p){let{parser:h}=p,f=e.getValue(),m=u;u=u+1>>>0;let g=e=>`PRETTIER_HTML_PLACEHOLDER_${e}_${m}_IN_JS`,v=f.quasis.map((e,t,n)=>t===n.length-1?e.value.cooked:e.value.cooked+g(t)).join(""),b=s(e,t);if(0===b.length&&0===v.trim().length)return"``";let y=new RegExp(g("(\\d+)"),"g"),_=0,E=c(v,{parser:h,__onHtmlRoot(e){_=e.children.length}},{stripTrailingHardline:!0}),w=a(E,e=>{if("string"!=typeof e)return e;let t=[],n=e.split(y);for(let r=0;r1?n(o(w)):o(w),x,"`"])}t.exports=c}}),mn=_({"src/language-js/embed.js"(e,t){C();var{hasComment:n,CommentCheckFlags:r,isObjectProperty:i}=un(),o=dn(),a=pn(),s=hn(),l=fn();function u(e){return p(e)||g(e)||v(e)||h(e)?"css":_(e)?"graphql":w(e)?"html":f(e)?"angular":d(e)?"markdown":void 0}function c(e,t,n,r){let i=e.getValue();if("TemplateLiteral"!==i.type||S(i))return;let c=u(e);if(c){if("markdown"===c)return o(e,t,n);if("css"===c)return a(e,t,n);if("graphql"===c)return s(e,t,n);if("html"===c||"angular"===c)return l(e,t,n,r,{parser:c})}}function d(e){let t=e.getValue(),n=e.getParentNode();return n&&"TaggedTemplateExpression"===n.type&&1===t.quasis.length&&"Identifier"===n.tag.type&&("md"===n.tag.name||"markdown"===n.tag.name)}function p(e){let t=e.getValue(),n=e.getParentNode(),r=e.getParentNode(1);return r&&t.quasis&&"JSXExpressionContainer"===n.type&&"JSXElement"===r.type&&"style"===r.openingElement.name.name&&r.openingElement.attributes.some(e=>"jsx"===e.name.name)||n&&"TaggedTemplateExpression"===n.type&&"Identifier"===n.tag.type&&"css"===n.tag.name||n&&"TaggedTemplateExpression"===n.type&&"MemberExpression"===n.tag.type&&"css"===n.tag.object.name&&("global"===n.tag.property.name||"resolve"===n.tag.property.name)}function h(e){return e.match(e=>"TemplateLiteral"===e.type,(e,t)=>"ArrayExpression"===e.type&&"elements"===t,(e,t)=>i(e)&&"Identifier"===e.key.type&&"styles"===e.key.name&&"value"===t,...m)}function f(e){return e.match(e=>"TemplateLiteral"===e.type,(e,t)=>i(e)&&"Identifier"===e.key.type&&"template"===e.key.name&&"value"===t,...m)}var m=[(e,t)=>"ObjectExpression"===e.type&&"properties"===t,(e,t)=>"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t,(e,t)=>"Decorator"===e.type&&"expression"===t];function g(e){let t=e.getParentNode();if(!t||"TaggedTemplateExpression"!==t.type)return!1;let n="ParenthesizedExpression"===t.tag.type?t.tag.expression:t.tag;switch(n.type){case"MemberExpression":return b(n.object)||y(n);case"CallExpression":return b(n.callee)||"MemberExpression"===n.callee.type&&("MemberExpression"===n.callee.object.type&&(b(n.callee.object.object)||y(n.callee.object))||"CallExpression"===n.callee.object.type&&b(n.callee.object.callee));case"Identifier":return"css"===n.name;default:return!1}}function v(e){let t=e.getParentNode(),n=e.getParentNode(1);return n&&"JSXExpressionContainer"===t.type&&"JSXAttribute"===n.type&&"JSXIdentifier"===n.name.type&&"css"===n.name.name}function b(e){return"Identifier"===e.type&&"styled"===e.name}function y(e){return/^[A-Z]/.test(e.object.name)&&"extend"===e.property.name}function _(e){let t=e.getValue(),n=e.getParentNode();return E(t,"GraphQL")||n&&("TaggedTemplateExpression"===n.type&&("MemberExpression"===n.tag.type&&"graphql"===n.tag.object.name&&"experimental"===n.tag.property.name||"Identifier"===n.tag.type&&("gql"===n.tag.name||"graphql"===n.tag.name))||"CallExpression"===n.type&&"Identifier"===n.callee.type&&"graphql"===n.callee.name)}function E(e,t){return n(e,r.Block|r.Leading,e=>{let{value:n}=e;return n===` ${t} `})}function w(e){return E(e.getValue(),"HTML")||e.match(e=>"TemplateLiteral"===e.type,(e,t)=>"TaggedTemplateExpression"===e.type&&"Identifier"===e.tag.type&&"html"===e.tag.name&&"quasi"===t)}function S(e){let{quasis:t}=e;return t.some(e=>{let{value:{cooked:t}}=e;return null===t})}t.exports=c}}),gn=_({"src/language-js/clean.js"(e,t){C();var n=sn(),r=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),i=e=>{for(let t of e.quasis)delete t.value};function o(e,t,r){if("Program"===e.type&&delete t.sourceType,("BigIntLiteral"===e.type||"BigIntLiteralTypeAnnotation"===e.type)&&t.value&&(t.value=t.value.toLowerCase()),("BigIntLiteral"===e.type||"Literal"===e.type)&&t.bigint&&(t.bigint=t.bigint.toLowerCase()),"DecimalLiteral"===e.type&&(t.value=Number(t.value)),"Literal"===e.type&&t.decimal&&(t.decimal=Number(t.decimal)),"EmptyStatement"===e.type||"JSXText"===e.type||"JSXExpressionContainer"===e.type&&("Literal"===e.expression.type||"StringLiteral"===e.expression.type)&&" "===e.expression.value)return null;if(("Property"===e.type||"ObjectProperty"===e.type||"MethodDefinition"===e.type||"ClassProperty"===e.type||"ClassMethod"===e.type||"PropertyDefinition"===e.type||"TSDeclareMethod"===e.type||"TSPropertySignature"===e.type||"ObjectTypeProperty"===e.type)&&"object"==typeof e.key&&e.key&&("Literal"===e.key.type||"NumericLiteral"===e.key.type||"StringLiteral"===e.key.type||"Identifier"===e.key.type)&&delete t.key,"JSXElement"===e.type&&"style"===e.openingElement.name.name&&e.openingElement.attributes.some(e=>"jsx"===e.name.name))for(let{type:n,expression:s}of t.children)"JSXExpressionContainer"===n&&"TemplateLiteral"===s.type&&i(s);"JSXAttribute"===e.type&&"css"===e.name.name&&"JSXExpressionContainer"===e.value.type&&"TemplateLiteral"===e.value.expression.type&&i(t.value.expression),"JSXAttribute"===e.type&&e.value&&"Literal"===e.value.type&&/["']|"|'/.test(e.value.value)&&(t.value.value=t.value.value.replace(/["']|"|'/g,'"'));let o=e.expression||e.callee;if("Decorator"===e.type&&"CallExpression"===o.type&&"Component"===o.callee.name&&1===o.arguments.length){let n=e.expression.arguments[0].properties;for(let[e,r]of t.expression.arguments[0].properties.entries())switch(n[e].key.name){case"styles":"ArrayExpression"===r.value.type&&i(r.value.elements[0]);break;case"template":"TemplateLiteral"===r.value.type&&i(r.value);break}}var a;("TaggedTemplateExpression"===e.type&&("MemberExpression"===e.tag.type||"Identifier"===e.tag.type&&("gql"===e.tag.name||"graphql"===e.tag.name||"css"===e.tag.name||"md"===e.tag.name||"markdown"===e.tag.name||"html"===e.tag.name)||"CallExpression"===e.tag.type)&&i(t.quasi),"TemplateLiteral"===e.type)&&(((null===(a=e.leadingComments)||void 0===a?void 0:a.some(e=>n(e)&&["GraphQL","HTML"].some(t=>e.value===` ${t} `)))||"CallExpression"===r.type&&"graphql"===r.callee.name||!e.leadingComments)&&i(t));return"InterpreterDirective"===e.type&&(t.value=t.value.trimEnd()),"TSIntersectionType"!==e.type&&"TSUnionType"!==e.type||1!==e.types.length?void 0:t.types[0]}o.ignoredProperties=r,t.exports=o}}),vn={};function bn(){if(typeof In>"u"){var e=new ArrayBuffer(2),t=new Uint8Array(e),n=new Uint16Array(e);if(t[0]=1,t[1]=2,258===n[0])In="BE";else{if(513!==n[0])throw new Error("unable to figure out endianess");In="LE"}}return In}function yn(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function _n(){return[]}function En(){return 0}function wn(){return Number.MAX_VALUE}function Sn(){return Number.MAX_VALUE}function xn(){return[]}function Cn(){return"Browser"}function Tn(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function Dn(){}function An(){}function kn(){return"javascript"}function On(){return"browser"}function Nn(){return"/tmp"}E(vn,{EOL:()=>Rn,arch:()=>kn,cpus:()=>xn,default:()=>Pn,endianness:()=>bn,freemem:()=>wn,getNetworkInterfaces:()=>An,hostname:()=>yn,loadavg:()=>_n,networkInterfaces:()=>Dn,platform:()=>On,release:()=>Tn,tmpDir:()=>Nn,tmpdir:()=>Mn,totalmem:()=>Sn,type:()=>Cn,uptime:()=>En});var In,Mn,Rn,Pn,Ln=y({"node-modules-polyfills:os"(){C(),Mn=Nn,Rn="\n",Pn={EOL:Rn,tmpdir:Mn,tmpDir:Nn,networkInterfaces:Dn,getNetworkInterfaces:An,release:Tn,type:Cn,cpus:xn,totalmem:Sn,freemem:wn,uptime:En,loadavg:_n,hostname:yn,endianness:bn}}}),Fn=_({"node-modules-polyfills-commonjs:os"(e,t){C();var n=(Ln(),x(vn));if(n&&n.default){t.exports=n.default;for(let e in n)t.exports[e]=n[e]}else n&&(t.exports=n)}}),Bn=_({"node_modules/detect-newline/index.js"(e,t){C();var n=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");let t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return;let n=t.filter(e=>"\r\n"===e).length,r=t.length-n;return n>r?"\r\n":"\n"};t.exports=n,t.exports.graceful=e=>"string"==typeof e&&n(e)||"\n"}}),jn=_({"node_modules/jest-docblock/build/index.js"(e){function t(){let e=Fn();return t=function(){return e},e}function n(){let e=r(Bn());return n=function(){return e},e}function r(e){return e&&e.__esModule?e:{default:e}}C(),Object.defineProperty(e,"__esModule",{value:!0}),e.extract=h,e.parse=m,e.parseWithComments=g,e.print=v,e.strip=f;var i=/\*\/$/,o=/^\/\*\*?/,a=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,s=/(^|\s+)\/\/([^\r\n]*)/g,l=/^(\r?\n)+/,u=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,c=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,d=/(\r?\n|^) *\* ?/g,p=[];function h(e){let t=e.match(a);return t?t[0].trimLeft():""}function f(e){let t=e.match(a);return t&&t[0]?e.substring(t[0].length):e}function m(e){return g(e).pragmas}function g(e){let r=(0,n().default)(e)||t().EOL;e=e.replace(o,"").replace(i,"").replace(d,"$1");let a="";for(;a!==e;)a=e,e=e.replace(u,`${r}$1 $2${r}`);e=e.replace(l,"").trimRight();let h,f=Object.create(null),m=e.replace(c,"").replace(l,"").trimRight();for(;h=c.exec(e);){let e=h[2].replace(s,"");"string"==typeof f[h[1]]||Array.isArray(f[h[1]])?f[h[1]]=p.concat(f[h[1]],e):f[h[1]]=e}return{comments:m,pragmas:f}}function v(e){let{comments:r="",pragmas:i={}}=e,o=(0,n().default)(r)||t().EOL,a="/**",s=" *",l=" */",u=Object.keys(i),c=u.map(e=>b(e,i[e])).reduce((e,t)=>e.concat(t),[]).map(e=>`${s} ${e}${o}`).join("");if(!r){if(0===u.length)return"";if(1===u.length&&!Array.isArray(i[u[0]])){let e=i[u[0]];return`${a} ${b(u[0],e)[0]}${l}`}}let d=r.split(o).map(e=>`${s} ${e}`).join(o)+o;return a+o+(r?d:"")+(r&&u.length?s+o:"")+c+l}function b(e,t){return p.concat(t).map(t=>`@${e} ${t}`.trim())}}}),Un=_({"src/language-js/utils/get-shebang.js"(e,t){function n(e){if(!e.startsWith("#!"))return"";let t=e.indexOf("\n");return-1===t?e:e.slice(0,t)}C(),t.exports=n}}),zn=_({"src/language-js/pragma.js"(e,t){C();var{parseWithComments:n,strip:r,extract:i,print:o}=jn(),{normalizeEndOfLine:a}=O(),s=Un();function l(e){let t=s(e);t&&(e=e.slice(t.length+1));let r=i(e),{pragmas:o,comments:a}=n(r);return{shebang:t,text:e,pragmas:o,comments:a}}function u(e){let t=Object.keys(l(e).pragmas);return t.includes("prettier")||t.includes("format")}function c(e){let{shebang:t,text:n,pragmas:i,comments:s}=l(e),u=r(n),c=o({pragmas:Object.assign({format:""},i),comments:s.trimStart()});return(t?t+"\n":"")+a(c)+(u.startsWith("\n")?"\n":"\n\n")+u}t.exports={hasPragma:u,insertPragma:c}}}),qn=_({"src/language-js/utils/is-type-cast-comment.js"(e,t){C();var n=sn();function r(e){return n(e)&&"*"===e.value[0]&&/@(?:type|satisfies)\b/.test(e.value)}t.exports=r}}),Hn=_({"src/language-js/comments.js"(e,t){C();var{getLast:n,hasNewline:r,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:i,getNextNonSpaceNonCommentCharacter:o,hasNewlineInRange:a,addLeadingComment:s,addTrailingComment:l,addDanglingComment:u,getNextNonSpaceNonCommentCharacterIndex:c,isNonEmptyArray:d}=ge(),{getFunctionParameters:p,isPrettierIgnoreComment:h,isJsxNode:f,hasFlowShorthandAnnotationComment:m,hasFlowAnnotationComment:g,hasIgnoreComment:v,isCallLikeExpression:b,getCallArguments:y,isCallExpression:_,isMemberExpression:E,isObjectProperty:w,isLineComment:S,getComments:x,CommentCheckFlags:T,markerForIfWithoutBlockAndSameLineComment:D}=un(),{locStart:A,locEnd:k}=Ut(),O=sn(),N=qn();function I(e){return[pe,Z,z,B,j,U,G,oe,ne,ie,ae,se,Y,J,ee].some(t=>t(e))}function M(e){return[F,Z,q,ae,B,j,U,G,J,te,re,ie,ce,ee,fe].some(t=>t(e))}function R(e){return[pe,B,j,H,X,Y,ie,Q,K,he,ee,de].some(t=>t(e))}function P(e,t){let n=(e.body||e.properties).find(e=>{let{type:t}=e;return"EmptyStatement"!==t});n?s(n,t):u(e,t)}function L(e,t){"BlockStatement"===e.type?P(e,t):s(e,t)}function F(e){let{comment:t,followingNode:n}=e;return!(!n||!N(t))&&(s(n,t),!0)}function B(e){let{comment:t,precedingNode:n,enclosingNode:r,followingNode:i,text:a}=e;if("IfStatement"!==(null==r?void 0:r.type)||!i)return!1;if(")"===o(a,t,k))return l(n,t),!0;if(n===r.consequent&&i===r.alternate){if("BlockStatement"===n.type)l(n,t);else{let e="SingleLine"===t.type||t.loc.start.line===t.loc.end.line,i=t.loc.start.line===n.loc.start.line;e&&i?u(n,t,D):u(r,t)}return!0}return"BlockStatement"===i.type?(P(i,t),!0):"IfStatement"===i.type?(L(i.consequent,t),!0):r.consequent===i&&(s(i,t),!0)}function j(e){let{comment:t,precedingNode:n,enclosingNode:r,followingNode:i,text:a}=e;return!("WhileStatement"!==(null==r?void 0:r.type)||!i)&&(")"===o(a,t,k)?(l(n,t),!0):"BlockStatement"===i.type?(P(i,t),!0):r.body===i&&(s(i,t),!0))}function U(e){let{comment:t,precedingNode:n,enclosingNode:r,followingNode:i}=e;return!("TryStatement"!==(null==r?void 0:r.type)&&"CatchClause"!==(null==r?void 0:r.type)||!i)&&("CatchClause"===r.type&&n?(l(n,t),!0):"BlockStatement"===i.type?(P(i,t),!0):"TryStatement"===i.type?(L(i.finalizer,t),!0):"CatchClause"===i.type&&(L(i.body,t),!0))}function z(e){let{comment:t,enclosingNode:n,followingNode:r}=e;return!(!E(n)||"Identifier"!==(null==r?void 0:r.type))&&(s(n,t),!0)}function q(e){let{comment:t,precedingNode:n,enclosingNode:r,followingNode:i,text:o}=e,l=n&&!a(o,k(n),A(t));return!(n&&l||"ConditionalExpression"!==(null==r?void 0:r.type)&&"TSConditionalType"!==(null==r?void 0:r.type)||!i)&&(s(i,t),!0)}function H(e){let{comment:t,precedingNode:n,enclosingNode:r}=e;return!(!w(r)||!r.shorthand||r.key!==n||"AssignmentPattern"!==r.value.type)&&(l(r.value.left,t),!0)}var $=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function G(e){let{comment:t,precedingNode:r,enclosingNode:i,followingNode:o}=e;if($.has(null==i?void 0:i.type)){if(d(i.decorators)&&(!o||"Decorator"!==o.type))return l(n(i.decorators),t),!0;if(i.body&&o===i.body)return P(i.body,t),!0;if(o){if(i.superClass&&o===i.superClass&&r&&(r===i.id||r===i.typeParameters))return l(r,t),!0;for(let e of["implements","extends","mixins"])if(i[e]&&o===i[e][0])return!r||r!==i.id&&r!==i.typeParameters&&r!==i.superClass?u(i,t,e):l(r,t),!0}}return!1}var V=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty"]);function Y(e){let{comment:t,precedingNode:n,enclosingNode:r,text:i}=e;return!!(r&&n&&"("===o(i,t,k)&&("Property"===r.type||"TSDeclareMethod"===r.type||"TSAbstractMethodDefinition"===r.type)&&"Identifier"===n.type&&r.key===n&&":"!==o(i,n,k)||"Decorator"===(null==n?void 0:n.type)&&V.has(null==r?void 0:r.type))&&(l(n,t),!0)}var W=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function K(e){let{comment:t,precedingNode:n,enclosingNode:r,text:i}=e;return"("===o(i,t,k)&&(!(!n||!W.has(null==r?void 0:r.type))&&(l(n,t),!0))}function Q(e){let{comment:t,enclosingNode:n,text:r}=e;if("ArrowFunctionExpression"!==(null==n?void 0:n.type))return!1;let i=c(r,t,k);return!1!==i&&"=>"===r.slice(i,i+2)&&(u(n,t),!0)}function X(e){let{comment:t,enclosingNode:n,text:r}=e;return")"===o(r,t,k)&&(n&&(me(n)&&0===p(n).length||b(n)&&0===y(n).length)?(u(n,t),!0):("MethodDefinition"===(null==n?void 0:n.type)||"TSAbstractMethodDefinition"===(null==n?void 0:n.type))&&0===p(n.value).length&&(u(n.value,t),!0))}function Z(e){let{comment:t,precedingNode:r,enclosingNode:a,followingNode:s,text:u}=e;if("FunctionTypeParam"===(null==r?void 0:r.type)&&"FunctionTypeAnnotation"===(null==a?void 0:a.type)&&"FunctionTypeParam"!==(null==s?void 0:s.type)||("Identifier"===(null==r?void 0:r.type)||"AssignmentPattern"===(null==r?void 0:r.type))&&a&&me(a)&&")"===o(u,t,k))return l(r,t),!0;if("FunctionDeclaration"===(null==a?void 0:a.type)&&"BlockStatement"===(null==s?void 0:s.type)){let e=(()=>{let e=p(a);if(e.length>0)return i(u,k(n(e)));let t=i(u,k(a.id));return!1!==t&&i(u,t+1)})();if(A(t)>e)return P(s,t),!0}return!1}function J(e){let{comment:t,enclosingNode:n}=e;return"LabeledStatement"===(null==n?void 0:n.type)&&(s(n,t),!0)}function ee(e){let{comment:t,enclosingNode:n}=e;return!("ContinueStatement"!==(null==n?void 0:n.type)&&"BreakStatement"!==(null==n?void 0:n.type)||n.label)&&(l(n,t),!0)}function te(e){let{comment:t,precedingNode:n,enclosingNode:r}=e;return!!(_(r)&&n&&r.callee===n&&r.arguments.length>0)&&(s(r.arguments[0],t),!0)}function ne(e){let{comment:t,precedingNode:n,enclosingNode:r,followingNode:i}=e;return"UnionTypeAnnotation"===(null==r?void 0:r.type)||"TSUnionType"===(null==r?void 0:r.type)?(h(t)&&(i.prettierIgnore=!0,t.unignore=!0),!!n&&(l(n,t),!0)):(("UnionTypeAnnotation"===(null==i?void 0:i.type)||"TSUnionType"===(null==i?void 0:i.type))&&h(t)&&(i.types[0].prettierIgnore=!0,t.unignore=!0),!1)}function re(e){let{comment:t,enclosingNode:n}=e;return!!w(n)&&(s(n,t),!0)}function ie(e){let{comment:t,enclosingNode:n,followingNode:r,ast:i,isLastComment:o}=e;return i&&i.body&&0===i.body.length?(o?u(i,t):s(i,t),!0):"Program"!==(null==n?void 0:n.type)||0!==(null==n?void 0:n.body.length)||d(n.directives)?"Program"===(null==r?void 0:r.type)&&0===(null==r?void 0:r.body.length)&&"ModuleExpression"===(null==n?void 0:n.type)&&(u(r,t),!0):(o?u(n,t):s(n,t),!0)}function oe(e){let{comment:t,enclosingNode:n}=e;return("ForInStatement"===(null==n?void 0:n.type)||"ForOfStatement"===(null==n?void 0:n.type))&&(s(n,t),!0)}function ae(e){let{comment:t,precedingNode:n,enclosingNode:i,text:o}=e;if("ImportSpecifier"===(null==i?void 0:i.type)||"ExportSpecifier"===(null==i?void 0:i.type))return s(i,t),!0;let a="ImportSpecifier"===(null==n?void 0:n.type)&&"ImportDeclaration"===(null==i?void 0:i.type),u="ExportSpecifier"===(null==n?void 0:n.type)&&"ExportNamedDeclaration"===(null==i?void 0:i.type);return!(!a&&!u||!r(o,k(t)))&&(l(n,t),!0)}function se(e){let{comment:t,enclosingNode:n}=e;return"AssignmentPattern"===(null==n?void 0:n.type)&&(s(n,t),!0)}var le=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),ue=new Set(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function ce(e){let{comment:t,enclosingNode:n,followingNode:r}=e;return!(!le.has(null==n?void 0:n.type)||!r||!ue.has(r.type)&&!O(t))&&(s(r,t),!0)}function de(e){let{comment:t,enclosingNode:n,followingNode:r,text:i}=e;return!(r||"TSMethodSignature"!==(null==n?void 0:n.type)&&"TSDeclareFunction"!==(null==n?void 0:n.type)&&"TSAbstractMethodDefinition"!==(null==n?void 0:n.type)||";"!==o(i,t,k))&&(l(n,t),!0)}function pe(e){let{comment:t,enclosingNode:n,followingNode:r}=e;if(h(t)&&"TSMappedType"===(null==n?void 0:n.type)&&"TSTypeParameter"===(null==r?void 0:r.type)&&r.constraint)return n.prettierIgnore=!0,t.unignore=!0,!0}function he(e){let{comment:t,precedingNode:n,enclosingNode:r,followingNode:i}=e;return"TSMappedType"===(null==r?void 0:r.type)&&("TSTypeParameter"===(null==i?void 0:i.type)&&i.name?(s(i.name,t),!0):!("TSTypeParameter"!==(null==n?void 0:n.type)||!n.constraint)&&(l(n.constraint,t),!0))}function fe(e){let{comment:t,enclosingNode:n,followingNode:r}=e;return!(!n||"SwitchCase"!==n.type||n.test||!r||r!==n.consequent[0])&&("BlockStatement"===r.type&&S(t)?P(r,t):u(n,t),!0)}function me(e){return"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"FunctionDeclaration"===e.type||"ObjectMethod"===e.type||"ClassMethod"===e.type||"TSDeclareFunction"===e.type||"TSCallSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSMethodSignature"===e.type||"TSConstructorType"===e.type||"TSFunctionType"===e.type||"TSDeclareMethod"===e.type}function ve(e,t){if(("typescript"===t.parser||"flow"===t.parser||"acorn"===t.parser||"espree"===t.parser||"meriyah"===t.parser||"__babel_estree"===t.parser)&&"MethodDefinition"===e.type&&e.value&&"FunctionExpression"===e.value.type&&0===p(e.value).length&&!e.value.returnType&&!d(e.value.typeParameters)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]}function be(e){let t=e.getValue(),n=e.getParentNode(),r=e=>g(x(e,T.Leading))||g(x(e,T.Trailing));return(t&&(f(t)||m(t)||_(n)&&r(t))||n&&("JSXSpreadAttribute"===n.type||"JSXSpreadChild"===n.type||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type||("ClassDeclaration"===n.type||"ClassExpression"===n.type)&&n.superClass===t))&&(!v(e)||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type)}t.exports={handleOwnLineComment:I,handleEndOfLineComment:M,handleRemainingComment:R,getCommentChildNodes:ve,willPrintOwnComments:be}}}),$n=_({"src/language-js/needs-parens.js"(e,t){C();var n=N(),r=ce(),{getFunctionParameters:i,getLeftSidePathName:o,hasFlowShorthandAnnotationComment:a,hasNakedLeftSide:s,hasNode:l,isBitwiseOperator:u,startsWithNoLookaheadToken:c,shouldFlatten:d,getPrecedence:p,isCallExpression:h,isMemberExpression:f,isObjectProperty:m,isTSTypeExpression:g}=un();function v(e,t){let n=e.getParentNode();if(!n)return!1;let o=e.getName(),s=e.getNode();if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&E(s)&&w(e))return!0;if(b(s))return!1;if("flow"!==t.parser&&a(e.getValue()))return!0;if("Identifier"===s.type){if(s.extra&&s.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(s.name)||"left"===o&&("async"===s.name&&!n.await||"let"===s.name)&&"ForOfStatement"===n.type)return!0;if("let"===s.name){var l;let t=null===(l=e.findAncestor(e=>"ForOfStatement"===e.type))||void 0===l?void 0:l.left;if(t&&c(t,e=>e===s))return!0}if("object"===o&&"let"===s.name&&"MemberExpression"===n.type&&n.computed&&!n.optional){let t=e.findAncestor(e=>"ExpressionStatement"===e.type||"ForStatement"===e.type||"ForInStatement"===e.type),n=t?"ExpressionStatement"===t.type?t.expression:"ForStatement"===t.type?t.init:t.left:void 0;if(n&&c(n,e=>e===s))return!0}return!1}if("ObjectExpression"===s.type||"FunctionExpression"===s.type||"ClassExpression"===s.type||"DoExpression"===s.type){var v;let t=null===(v=e.findAncestor(e=>"ExpressionStatement"===e.type))||void 0===v?void 0:v.expression;if(t&&c(t,e=>e===s))return!0}switch(n.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if("superClass"===o&&("ArrowFunctionExpression"===s.type||"AssignmentExpression"===s.type||"AwaitExpression"===s.type||"BinaryExpression"===s.type||"ConditionalExpression"===s.type||"LogicalExpression"===s.type||"NewExpression"===s.type||"ObjectExpression"===s.type||"SequenceExpression"===s.type||"TaggedTemplateExpression"===s.type||"UnaryExpression"===s.type||"UpdateExpression"===s.type||"YieldExpression"===s.type||"TSNonNullExpression"===s.type))return!0;break;case"ExportDefaultDeclaration":return S(e,t)||"SequenceExpression"===s.type;case"Decorator":if("expression"===o){if(f(s)&&s.computed)return!0;let e=!1,n=!1,r=s;for(;r;)switch(r.type){case"MemberExpression":n=!0,r=r.object;break;case"CallExpression":if(n||e)return"typescript"!==t.parser;e=!0,r=r.callee;break;case"Identifier":return!1;case"TaggedTemplateExpression":return"typescript"!==t.parser;default:return!0}return!0}break;case"ArrowFunctionExpression":if("body"===o&&"SequenceExpression"!==s.type&&c(s,e=>"ObjectExpression"===e.type))return!0;break}switch(s.type){case"UpdateExpression":if("UnaryExpression"===n.type)return s.prefix&&("++"===s.operator&&"+"===n.operator||"--"===s.operator&&"-"===n.operator);case"UnaryExpression":switch(n.type){case"UnaryExpression":return s.operator===n.operator&&("+"===s.operator||"-"===s.operator);case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===o;case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===o;case"BinaryExpression":return"left"===o&&"**"===n.operator;case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if("UpdateExpression"===n.type||"in"===s.operator&&y(e))return!0;if("|>"===s.operator&&s.extra&&s.extra.parenthesized){let t=e.getParentNode(1);if("BinaryExpression"===t.type&&"|>"===t.operator)return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"LogicalExpression":switch(n.type){case"TSSatisfiesExpression":case"TSAsExpression":return!g(s);case"ConditionalExpression":return g(s);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return"callee"===o;case"ClassExpression":case"ClassDeclaration":return"superClass"===o;case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===o;case"AssignmentExpression":case"AssignmentPattern":return"left"===o&&("TSTypeAssertion"===s.type||g(s));case"LogicalExpression":if("LogicalExpression"===s.type)return n.operator!==s.operator;case"BinaryExpression":{let{operator:e,type:t}=s;if(!e&&"TSTypeAssertion"!==t)return!0;let r=p(e),i=n.operator,a=p(i);return a>r||"right"===o&&a===r||a===r&&!d(i,e)||(a"===n.operator);default:return!1}case"TSConditionalType":case"TSFunctionType":case"TSConstructorType":if("extendsType"===o&&"TSConditionalType"===n.type){if("TSConditionalType"===s.type)return!0;let{typeAnnotation:e}=s.returnType||s.typeAnnotation;if("TSTypePredicate"===e.type&&e.typeAnnotation&&(e=e.typeAnnotation.typeAnnotation),"TSInferType"===e.type&&e.typeParameter.constraint)return!0}if("checkType"===o&&"TSConditionalType"===n.type)return!0;case"TSUnionType":case"TSIntersectionType":if(("TSUnionType"===n.type||"TSIntersectionType"===n.type)&&n.types.length>1&&(!s.types||s.types.length>1))return!0;case"TSInferType":if("TSInferType"===s.type&&"TSRestType"===n.type)return!1;case"TSTypeOperator":return"TSArrayType"===n.type||"TSOptionalType"===n.type||"TSRestType"===n.type||"objectType"===o&&"TSIndexedAccessType"===n.type||"TSTypeOperator"===n.type||"TSTypeAnnotation"===n.type&&e.getParentNode(1).type.startsWith("TSJSDoc");case"TSTypeQuery":return"objectType"===o&&"TSIndexedAccessType"===n.type||"elementType"===o&&"TSArrayType"===n.type;case"TypeofTypeAnnotation":return"objectType"===o&&("IndexedAccessType"===n.type||"OptionalIndexedAccessType"===n.type)||"elementType"===o&&"ArrayTypeAnnotation"===n.type;case"ArrayTypeAnnotation":return"NullableTypeAnnotation"===n.type;case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return"ArrayTypeAnnotation"===n.type||"NullableTypeAnnotation"===n.type||"IntersectionTypeAnnotation"===n.type||"UnionTypeAnnotation"===n.type||"objectType"===o&&("IndexedAccessType"===n.type||"OptionalIndexedAccessType"===n.type);case"NullableTypeAnnotation":return"ArrayTypeAnnotation"===n.type||"objectType"===o&&("IndexedAccessType"===n.type||"OptionalIndexedAccessType"===n.type);case"FunctionTypeAnnotation":{let t="NullableTypeAnnotation"===n.type?e.getParentNode(1):n;return"UnionTypeAnnotation"===t.type||"IntersectionTypeAnnotation"===t.type||"ArrayTypeAnnotation"===t.type||"objectType"===o&&("IndexedAccessType"===t.type||"OptionalIndexedAccessType"===t.type)||"NullableTypeAnnotation"===t.type||"FunctionTypeParam"===n.type&&null===n.name&&i(s).some(e=>e.typeAnnotation&&"NullableTypeAnnotation"===e.typeAnnotation.type)}case"OptionalIndexedAccessType":return"objectType"===o&&"IndexedAccessType"===n.type;case"StringLiteral":case"NumericLiteral":case"Literal":if("string"==typeof s.value&&"ExpressionStatement"===n.type&&!n.directive){let t=e.getParentNode(1);return"Program"===t.type||"BlockStatement"===t.type}return"object"===o&&"MemberExpression"===n.type&&"number"==typeof s.value;case"AssignmentExpression":{let t=e.getParentNode(1);return"body"===o&&"ArrowFunctionExpression"===n.type||("key"!==o||"ClassProperty"!==n.type&&"PropertyDefinition"!==n.type||!n.computed)&&("init"!==o&&"update"!==o||"ForStatement"!==n.type)&&("ExpressionStatement"===n.type?"ObjectPattern"===s.left.type:!("key"===o&&"TSPropertySignature"===n.type||"AssignmentExpression"===n.type||"SequenceExpression"===n.type&&t&&"ForStatement"===t.type&&(t.init===n||t.update===n)||"value"===o&&"Property"===n.type&&t&&"ObjectPattern"===t.type&&t.properties.includes(n)||"NGChainedExpression"===n.type))}case"ConditionalExpression":switch(n.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===o;case"ConditionalExpression":return"test"===o;case"MemberExpression":case"OptionalMemberExpression":return"object"===o;default:return!1}case"FunctionExpression":switch(n.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===o;case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(n.type){case"BinaryExpression":return"|>"!==n.operator||s.extra&&s.extra.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===o;case"MemberExpression":case"OptionalMemberExpression":return"object"===o;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return"test"===o;default:return!1}case"ClassExpression":if(r(s.decorators))return!0;switch(n.type){case"NewExpression":return"callee"===o;default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":{let t=e.getParentNode(1);if("object"===o&&"MemberExpression"===n.type||"callee"===o&&("CallExpression"===n.type||"NewExpression"===n.type)||"TSNonNullExpression"===n.type&&"MemberExpression"===t.type&&t.object===n)return!0}case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if("callee"===o&&("BindExpression"===n.type||"NewExpression"===n.type)){let e=s;for(;e;)switch(e.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":e=e.object;break;case"TaggedTemplateExpression":e=e.tag;break;case"TSNonNullExpression":e=e.expression;break;default:return!1}}return!1;case"BindExpression":return"callee"===o&&("BindExpression"===n.type||"NewExpression"===n.type)||"object"===o&&f(n);case"NGPipeExpression":return!("NGRoot"===n.type||"NGMicrosyntaxExpression"===n.type||"ObjectProperty"===n.type&&(!s.extra||!s.extra.parenthesized)||"ArrayExpression"===n.type||h(n)&&n.arguments[o]===s||"right"===o&&"NGPipeExpression"===n.type||"property"===o&&"MemberExpression"===n.type||"AssignmentExpression"===n.type);case"JSXFragment":case"JSXElement":return"callee"===o||"left"===o&&"BinaryExpression"===n.type&&"<"===n.operator||"ArrayExpression"!==n.type&&"ArrowFunctionExpression"!==n.type&&"AssignmentExpression"!==n.type&&"AssignmentPattern"!==n.type&&"BinaryExpression"!==n.type&&"NewExpression"!==n.type&&"ConditionalExpression"!==n.type&&"ExpressionStatement"!==n.type&&"JsExpressionRoot"!==n.type&&"JSXAttribute"!==n.type&&"JSXElement"!==n.type&&"JSXExpressionContainer"!==n.type&&"JSXFragment"!==n.type&&"LogicalExpression"!==n.type&&!h(n)&&!m(n)&&"ReturnStatement"!==n.type&&"ThrowStatement"!==n.type&&"TypeCastExpression"!==n.type&&"VariableDeclarator"!==n.type&&"YieldExpression"!==n.type;case"TypeAnnotation":return"returnType"===o&&"ArrowFunctionExpression"===n.type&&_(s)}return!1}function b(e){return"BlockStatement"===e.type||"BreakStatement"===e.type||"ClassBody"===e.type||"ClassDeclaration"===e.type||"ClassMethod"===e.type||"ClassProperty"===e.type||"PropertyDefinition"===e.type||"ClassPrivateProperty"===e.type||"ContinueStatement"===e.type||"DebuggerStatement"===e.type||"DeclareClass"===e.type||"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type||"DeclareFunction"===e.type||"DeclareInterface"===e.type||"DeclareModule"===e.type||"DeclareModuleExports"===e.type||"DeclareVariable"===e.type||"DoWhileStatement"===e.type||"EnumDeclaration"===e.type||"ExportAllDeclaration"===e.type||"ExportDefaultDeclaration"===e.type||"ExportNamedDeclaration"===e.type||"ExpressionStatement"===e.type||"ForInStatement"===e.type||"ForOfStatement"===e.type||"ForStatement"===e.type||"FunctionDeclaration"===e.type||"IfStatement"===e.type||"ImportDeclaration"===e.type||"InterfaceDeclaration"===e.type||"LabeledStatement"===e.type||"MethodDefinition"===e.type||"ReturnStatement"===e.type||"SwitchStatement"===e.type||"ThrowStatement"===e.type||"TryStatement"===e.type||"TSDeclareFunction"===e.type||"TSEnumDeclaration"===e.type||"TSImportEqualsDeclaration"===e.type||"TSInterfaceDeclaration"===e.type||"TSModuleDeclaration"===e.type||"TSNamespaceExportDeclaration"===e.type||"TypeAlias"===e.type||"VariableDeclaration"===e.type||"WhileStatement"===e.type||"WithStatement"===e.type}function y(e){let t=0,n=e.getValue();for(;n;){let r=e.getParentNode(t++);if(r&&"ForStatement"===r.type&&r.init===n)return!0;n=r}return!1}function _(e){return l(e,e=>"ObjectTypeAnnotation"===e.type&&l(e,e=>"FunctionTypeAnnotation"===e.type||void 0)||void 0)}function E(e){switch(e.type){case"ObjectExpression":return!0;default:return!1}}function w(e){let t=e.getValue(),r=e.getParentNode(),i=e.getName();switch(r.type){case"NGPipeExpression":if("number"==typeof i&&r.arguments[i]===t&&r.arguments.length-1===i)return e.callParent(w);break;case"ObjectProperty":if("value"===i){let t=e.getParentNode(1);return n(t.properties)===r}break;case"BinaryExpression":case"LogicalExpression":if("right"===i)return e.callParent(w);break;case"ConditionalExpression":if("alternate"===i)return e.callParent(w);break;case"UnaryExpression":if(r.prefix)return e.callParent(w);break}return!1}function S(e,t){let n=e.getValue(),r=e.getParentNode();return"FunctionExpression"===n.type||"ClassExpression"===n.type?"ExportDefaultDeclaration"===r.type||!v(e,t):!(!s(n)||"ExportDefaultDeclaration"!==r.type&&v(e,t))&&e.call(e=>S(e,t),...o(e,n))}t.exports=v}}),Gn=_({"src/language-js/print-preprocess.js"(e,t){function n(e,t){switch(t.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":case"__vue_ts_expression":return Object.assign(Object.assign({},e),{},{type:t.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[],rootMarker:t.rootMarker});default:return e}}C(),t.exports=n}}),Vn=_({"src/language-js/print/html-binding.js"(e,t){C();var{builders:{join:n,line:r,group:i,softline:o,indent:a}}=Y();function s(e,t,s){let l=e.getValue();if(t.__onHtmlBindingRoot&&null===e.getName()&&t.__onHtmlBindingRoot(l,t),"File"===l.type){if(t.__isVueForBindingLeft)return e.call(e=>{let t=n([",",r],e.map(s,"params")),{params:l}=e.getValue();return 1===l.length?t:["(",a([o,i(t)]),o,")"]},"program","body",0);if(t.__isVueBindings)return e.call(e=>n([",",r],e.map(s,"params")),"program","body",0)}}function l(e){switch(e.type){case"MemberExpression":switch(e.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return l(e.object)}return!1;case"Identifier":return!0;default:return!1}}t.exports={isVueEventBindingExpression:l,printHtmlBinding:s}}}),Yn=_({"src/language-js/print/binaryish.js"(e,t){C();var{printComments:n}=Wt(),{getLast:r}=ge(),{builders:{join:i,line:o,softline:a,group:s,indent:l,align:u,indentIfBreak:c},utils:{cleanDoc:d,getDocParts:p,isConcat:h}}=Y(),{hasLeadingOwnLineComment:f,isBinaryish:m,isJsxNode:g,shouldFlatten:v,hasComment:b,CommentCheckFlags:y,isCallExpression:_,isMemberExpression:E,isObjectProperty:w,isEnabledHackPipeline:S}=un(),x=0;function T(e,t,n){let i=e.getValue(),o=e.getParentNode(),u=e.getParentNode(1),d=i!==o.body&&("IfStatement"===o.type||"WhileStatement"===o.type||"SwitchStatement"===o.type||"DoWhileStatement"===o.type),p=S(t)&&"|>"===i.operator,h=D(e,n,t,!1,d);if(d)return h;if(p)return s(h);if(_(o)&&o.callee===i||"UnaryExpression"===o.type||E(o)&&!o.computed)return s([l([a,...h]),a]);let f="ReturnStatement"===o.type||"ThrowStatement"===o.type||"JSXExpressionContainer"===o.type&&"JSXAttribute"===u.type||"|"!==i.operator&&"JsExpressionRoot"===o.type||"NGPipeExpression"!==i.type&&("NGRoot"===o.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===o.type&&"NGMicrosyntax"===u.type&&1===u.body.length)||i===o.body&&"ArrowFunctionExpression"===o.type||i!==o.body&&"ForStatement"===o.type||"ConditionalExpression"===o.type&&"ReturnStatement"!==u.type&&"ThrowStatement"!==u.type&&!_(u)||"TemplateLiteral"===o.type,b="AssignmentExpression"===o.type||"VariableDeclarator"===o.type||"ClassProperty"===o.type||"PropertyDefinition"===o.type||"TSAbstractPropertyDefinition"===o.type||"ClassPrivateProperty"===o.type||w(o),y=m(i.left)&&v(i.operator,i.left.operator);if(f||A(i)&&!y||!A(i)&&b)return s(h);if(0===h.length)return"";let C=g(i.right),T=h.findIndex(e=>"string"!=typeof e&&!Array.isArray(e)&&"group"===e.type),k=h.slice(0,-1===T?1:T+1),O=h.slice(k.length,C?-1:void 0),N=Symbol("logicalChain-"+ ++x),I=s([...k,l(O)],{id:N});if(!C)return I;let M=r(h);return s([I,c(M,{groupId:N})])}function D(e,t,r,a,c){let g=e.getValue();if(!m(g))return[s(t())];let _=[];v(g.operator,g.left.operator)?_=e.call(e=>D(e,t,r,!0,c),"left"):_.push(s(t("left")));let E,w=A(g),x=("|>"===g.operator||"NGPipeExpression"===g.type||"|"===g.operator&&"__vue_expression"===r.parser)&&!f(r.originalText,g.right),C="NGPipeExpression"===g.type?"|":g.operator,T="NGPipeExpression"===g.type&&g.arguments.length>0?s(l([o,": ",i([o,": "],e.map(t,"arguments").map(e=>u(2,s(e))))])):"";if(w)E=[C," ",t("right"),T];else{let n=S(r)&&"|>"===C?e.call(e=>D(e,t,r,!0,c),"right"):t("right");E=[x?o:"",C,x?" ":o,n,T]}let k=e.getParentNode(),O=b(g.left,y.Trailing|y.Line),N=O||!(c&&"LogicalExpression"===g.type)&&k.type!==g.type&&g.left.type!==g.type&&g.right.type!==g.type;if(_.push(x?"":" ",N?s(E,{shouldBreak:O}):E),a&&b(g)){let t=d(n(e,_,r));return h(t)||"fill"===t.type?p(t):[t]}return _}function A(e){return"LogicalExpression"===e.type&&!!("ObjectExpression"===e.right.type&&e.right.properties.length>0||"ArrayExpression"===e.right.type&&e.right.elements.length>0||g(e.right))}t.exports={printBinaryishExpression:T,shouldInlineLogicalExpression:A}}}),Wn=_({"src/language-js/print/angular.js"(e,t){C();var{builders:{join:n,line:r,group:i}}=Y(),{hasNode:o,hasComment:a,getComments:s}=un(),{printBinaryishExpression:l}=Yn();function u(e,t,o){let u=e.getValue();if(u.type.startsWith("NG"))switch(u.type){case"NGRoot":return[o("node"),a(u.node)?" //"+s(u.node)[0].value.trimEnd():""];case"NGPipeExpression":return l(e,t,o);case"NGChainedExpression":return i(n([";",r],e.map(e=>d(e)?o():["(",o(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return[u.prefix,": ",u.value.trim()];case"NGMicrosyntax":return e.map((e,t)=>[0===t?"":c(e.getValue(),t,u)?" ":[";",r],o()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(u.name)?u.name:JSON.stringify(u.name);case"NGMicrosyntaxExpression":return[o("expression"),null===u.alias?"":[" as ",o("alias")]];case"NGMicrosyntaxKeyedExpression":{let t=e.getName(),n=e.getParentNode(),r=c(u,t,n)||(1===t&&("then"===u.key.name||"else"===u.key.name)||2===t&&"else"===u.key.name&&"NGMicrosyntaxKeyedExpression"===n.body[t-1].type&&"then"===n.body[t-1].key.name)&&"NGMicrosyntaxExpression"===n.body[0].type;return[o("key"),r?" ":": ",o("expression")]}case"NGMicrosyntaxLet":return["let ",o("key"),null===u.value?"":[" = ",o("value")]];case"NGMicrosyntaxAs":return[o("key")," as ",o("alias")];default:throw new Error(`Unknown Angular node type: ${JSON.stringify(u.type)}.`)}}function c(e,t,n){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t&&"NGMicrosyntaxLet"===n.body[0].type&&null===n.body[0].value}function d(e){return o(e.getValue(),e=>{switch(e.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}})}t.exports={printAngular:u}}}),Kn=_({"src/language-js/print/jsx.js"(e,t){C();var{printComments:n,printDanglingComments:r,printCommentsSeparately:i}=Wt(),{builders:{line:o,hardline:a,softline:s,group:l,indent:u,conditionalGroup:c,fill:d,ifBreak:p,lineSuffixBoundary:h,join:f},utils:{willBreak:m}}=Y(),{getLast:g,getPreferredQuote:v}=ge(),{isJsxNode:b,rawText:y,isCallExpression:_,isStringLiteral:E,isBinaryish:w,hasComment:S,CommentCheckFlags:x,hasNodeIgnoreComment:T}=un(),D=$n(),{willPrintOwnComments:A}=Hn(),k=e=>""===e||e===o||e===a||e===s;function O(e,t,n){let r=e.getValue();if("JSXElement"===r.type&&X(r))return[n("openingElement"),n("closingElement")];let i="JSXElement"===r.type?n("openingElement"):n("openingFragment"),o="JSXElement"===r.type?n("closingElement"):n("closingFragment");if(1===r.children.length&&"JSXExpressionContainer"===r.children[0].type&&("TemplateLiteral"===r.children[0].expression.type||"TaggedTemplateExpression"===r.children[0].expression.type))return[i,...e.map(n,"children"),o];r.children=r.children.map(e=>J(e)?{type:"JSXText",value:" ",raw:" "}:e);let h=r.children.some(b),f=r.children.filter(e=>"JSXExpressionContainer"===e.type).length>1,v="JSXElement"===r.type&&r.openingElement.attributes.length>1,y=m(i)||h||v||f,_="mdx"===e.getParentNode().rootMarker,E=t.singleQuote?"{' '}":'{" "}',w=_?" ":p([E,s]," "),S=r.openingElement&&r.openingElement.name&&"fbt"===r.openingElement.name.name,x=N(e,t,n,w,S),C=r.children.some(e=>Z(e));for(let l=x.length-2;l>=0;l--){let e=""===x[l]&&""===x[l+1],t=x[l]===a&&""===x[l+1]&&x[l+2]===a,n=(x[l]===s||x[l]===a)&&""===x[l+1]&&x[l+2]===w,r=x[l]===w&&""===x[l+1]&&(x[l+2]===s||x[l+2]===a),i=x[l]===w&&""===x[l+1]&&x[l+2]===w,o=x[l]===s&&""===x[l+1]&&x[l+2]===a||x[l]===a&&""===x[l+1]&&x[l+2]===s;t&&C||e||n||i||o?x.splice(l,2):r&&x.splice(l+1,2)}for(;x.length>0&&k(g(x));)x.pop();for(;x.length>1&&k(x[0])&&k(x[1]);)x.shift(),x.shift();let T=[];for(let[s,l]of x.entries()){if(l===w){if(1===s&&""===x[s-1]){if(2===x.length){T.push(E);continue}T.push([E,a]);continue}if(s===x.length-1){T.push(E);continue}if(""===x[s-1]&&x[s-2]===a){T.push(E);continue}}T.push(l),m(l)&&(y=!0)}let D=C?d(T):l(T,{shouldBreak:!0});if(_)return D;let A=l([i,u([a,D]),a,o]);return y?A:c([l([i,...x,o]),A])}function N(e,t,n,r,i){let s=[];return e.each((e,t,l)=>{let u=e.getValue();if("JSXText"===u.type){let e=y(u);if(Z(u)){let n,a=e.split(W);if(""===a[0]){if(s.push(""),a.shift(),/\n/.test(a[0])){let e=l[t+1];s.push(M(i,a[1],u,e))}else s.push(r);a.shift()}if(""===g(a)&&(a.pop(),n=a.pop()),0===a.length)return;for(let[e,t]of a.entries())e%2===1?s.push(o):s.push(t);if(void 0!==n)if(/\n/.test(n)){let e=l[t+1];s.push(M(i,g(s),u,e))}else s.push(r);else{let e=l[t+1];s.push(I(i,g(s),u,e))}}else/\n/.test(e)?e.match(/\n/g).length>1&&s.push("",a):s.push("",r)}else{let e=n();s.push(e);let r=l[t+1];if(r&&Z(r)){let e=Q(y(r)).split(W)[0];s.push(I(i,e,u,r))}else s.push(a)}},"children"),s}function I(e,t,n,r){return e?"":"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?1===t.length?s:a:s}function M(e,t,n,r){return e?a:1===t.length?"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?a:s:a}function R(e,t,n){let r=e.getParentNode();if(!r||{ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[r.type])return t;let i=e.match(void 0,e=>"ArrowFunctionExpression"===e.type,_,e=>"JSXExpressionContainer"===e.type),o=D(e,n);return l([o?"":p("("),u([s,t]),s,o?"":p(")")],{shouldBreak:i})}function P(e,t,n){let r=e.getValue(),o=[];if(o.push(n("name")),r.value){let a;if(E(r.value)){let n=y(r.value).slice(1,-1).replace(/'/g,"'").replace(/"/g,'"'),{escaped:o,quote:s,regex:l}=v(n,t.jsxSingleQuote?"'":'"');n=n.replace(l,o);let{leading:u,trailing:c}=e.call(()=>i(e,t),"value");a=[u,s,n,s,c]}else a=n("value");o.push("=",a)}return o}function L(e,t,n){let r=e.getValue(),i=(e,t)=>"JSXEmptyExpression"===e.type||!S(e)&&("ArrayExpression"===e.type||"ObjectExpression"===e.type||"ArrowFunctionExpression"===e.type||"AwaitExpression"===e.type&&(i(e.argument,e)||"JSXElement"===e.argument.type)||_(e)||"FunctionExpression"===e.type||"TemplateLiteral"===e.type||"TaggedTemplateExpression"===e.type||"DoExpression"===e.type||b(t)&&("ConditionalExpression"===e.type||w(e)));return i(r.expression,e.getParentNode(0))?l(["{",n("expression"),h,"}"]):l(["{",u([s,n("expression")]),s,h,"}"])}function F(e,t,n){let r=e.getValue(),i=r.name&&S(r.name)||r.typeParameters&&S(r.typeParameters);if(r.selfClosing&&0===r.attributes.length&&!i)return["<",n("name"),n("typeParameters")," />"];if(r.attributes&&1===r.attributes.length&&r.attributes[0].value&&E(r.attributes[0].value)&&!r.attributes[0].value.value.includes("\n")&&!i&&!S(r.attributes[0]))return l(["<",n("name"),n("typeParameters")," ",...e.map(n,"attributes"),r.selfClosing?" />":">"]);let s=r.attributes&&r.attributes.some(e=>e.value&&E(e.value)&&e.value.value.includes("\n")),c=t.singleAttributePerLine&&r.attributes.length>1?a:o;return l(["<",n("name"),n("typeParameters"),u(e.map(()=>[c,n()],"attributes")),...B(r,t,i)],{shouldBreak:s})}function B(e,t,n){return e.selfClosing?[o,"/>"]:j(e,t,n)?[">"]:[s,">"]}function j(e,t,n){let r=e.attributes.length>0&&S(g(e.attributes),x.Trailing);return 0===e.attributes.length&&!n||(t.bracketSameLine||t.jsxBracketSameLine)&&(!n||e.attributes.length>0)&&!r}function U(e,t,n){let r=e.getValue(),i=[];i.push(""),i}function z(e,t){let n=e.getValue(),i=S(n),o=S(n,x.Line),s="JSXOpeningFragment"===n.type;return[s?"<":""]}function q(e,t,r){let i=n(e,O(e,t,r),t);return R(e,i,t)}function H(e,t){let n=e.getValue(),i=S(n,x.Line);return[r(e,t,!i),i?a:""]}function $(e,t,r){let i=e.getValue();return["{",e.call(e=>{let i=["...",r()],o=e.getValue();return S(o)&&A(e)?[u([s,n(e,i,t)]),s]:i},"JSXSpreadAttribute"===i.type?"argument":"expression"),"}"]}function G(e,t,n){let r=e.getValue();if(r.type.startsWith("JSX"))switch(r.type){case"JSXAttribute":return P(e,t,n);case"JSXIdentifier":return String(r.name);case"JSXNamespacedName":return f(":",[n("namespace"),n("name")]);case"JSXMemberExpression":return f(".",[n("object"),n("property")]);case"JSXSpreadAttribute":return $(e,t,n);case"JSXSpreadChild":return $(e,t,n);case"JSXExpressionContainer":return L(e,t,n);case"JSXFragment":case"JSXElement":return q(e,t,n);case"JSXOpeningElement":return F(e,t,n);case"JSXClosingElement":return U(e,t,n);case"JSXOpeningFragment":case"JSXClosingFragment":return z(e,t);case"JSXEmptyExpression":return H(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Error(`Unknown JSX node type: ${JSON.stringify(r.type)}.`)}}var V=" \n\r\t",W=new RegExp("(["+V+"]+)"),K=new RegExp("[^"+V+"]"),Q=e=>e.replace(new RegExp("(?:^"+W.source+"|"+W.source+"$)"),"");function X(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;let t=e.children[0];return"JSXText"===t.type&&!Z(t)}function Z(e){return"JSXText"===e.type&&(K.test(y(e))||!/\n/.test(y(e)))}function J(e){return"JSXExpressionContainer"===e.type&&E(e.expression)&&" "===e.expression.value&&!S(e.expression)}function ee(e){let t=e.getValue(),n=e.getParentNode();if(!n||!t||!b(t)||!b(n))return!1;let r=n.children.indexOf(t),i=null;for(let o=r;o>0;o--){let e=n.children[o-1];if("JSXText"!==e.type||Z(e)){i=e;break}}return i&&"JSXExpressionContainer"===i.type&&"JSXEmptyExpression"===i.expression.type&&T(i.expression)}t.exports={hasJsxIgnoreComment:ee,printJsx:G}}}),Qn=_({"src/language-js/print/misc.js"(e,t){C();var{isNonEmptyArray:n}=ge(),{builders:{indent:r,join:i,line:o}}=Y(),{isFlowAnnotationComment:a}=un();function s(e){let t=e.getValue();return!t.optional||"Identifier"===t.type&&t===e.getParentNode().key?"":"OptionalCallExpression"===t.type||"OptionalMemberExpression"===t.type&&t.computed?"?.":"?"}function l(e){return e.getValue().definite||e.match(void 0,(e,t)=>"id"===t&&"VariableDeclarator"===e.type&&e.definite)?"!":""}function u(e,t,n){let r=e.getValue();return r.typeArguments?n("typeArguments"):r.typeParameters?n("typeParameters"):""}function c(e,t,n){let r=e.getValue();if(!r.typeAnnotation)return"";let i=e.getParentNode(),o="DeclareFunction"===i.type&&i.id===r;return a(t.originalText,r.typeAnnotation)?[" /*: ",n("typeAnnotation")," */"]:[o?"":": ",n("typeAnnotation")]}function d(e,t,n){return["::",n("callee")]}function p(e,t,r){let o=e.getValue();return n(o.modifiers)?[i(" ",e.map(r,"modifiers"))," "]:""}function h(e,t,n){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||n?[" ",t]:r([o,t])}function f(e,t,n){return["...",n("argument"),c(e,t,n)]}function m(e,t){let n=e.slice(1,-1);if(n.includes('"')||n.includes("'"))return e;let r=t.singleQuote?"'":'"';return r+n+r}t.exports={printOptionalToken:s,printDefiniteToken:l,printFunctionTypeParameters:u,printBindExpressionCallee:d,printTypeScriptModifiers:p,printTypeAnnotation:c,printRestSpread:f,adjustClause:h,printDirective:m}}}),Xn=_({"src/language-js/print/array.js"(e,t){C();var{printDanglingComments:n}=Wt(),{builders:{line:r,softline:i,hardline:o,group:a,indent:s,ifBreak:l,fill:u}}=Y(),{getLast:c,hasNewline:d}=ge(),{shouldPrintComma:p,hasComment:h,CommentCheckFlags:f,isNextLineEmpty:m,isNumericLiteral:g,isSignedNumericLiteral:v}=un(),{locStart:b}=Ut(),{printOptionalToken:y,printTypeAnnotation:_}=Qn();function E(e,t,r){let o=e.getValue(),u=[],d="TupleExpression"===o.type?"#[":"[",m="]";if(0===o.elements.length)h(o,f.Dangling)?u.push(a([d,n(e,t),i,m])):u.push(d,m);else{let h=c(o.elements),f=!(h&&"RestElement"===h.type),g=null===h,v=Symbol("array"),b=!t.__inJestEach&&o.elements.length>1&&o.elements.every((e,t,n)=>{let r=e&&e.type;if("ArrayExpression"!==r&&"ObjectExpression"!==r)return!1;let i=n[t+1];if(i&&r!==i.type)return!1;let o="ArrayExpression"===r?"elements":"properties";return e[o]&&e[o].length>1}),y=w(o,t),_=f?g?",":p(t)?y?l(",","",{groupId:v}):l(","):"":"";u.push(a([d,s([i,y?x(e,t,r,_):[S(e,t,"elements",r),_],n(e,t,!0)]),i,m],{shouldBreak:b,id:v}))}return u.push(y(e),_(e,t,r)),u}function w(e,t){return e.elements.length>1&&e.elements.every(e=>e&&(g(e)||v(e)&&!h(e.argument))&&!h(e,f.Trailing|f.Line,e=>!d(t.originalText,b(e),{backwards:!0})))}function S(e,t,n,o){let s=[],l=[];return e.each(e=>{s.push(l,a(o())),l=[",",r],e.getValue()&&m(e.getValue(),t)&&l.push(i)},n),s}function x(e,t,n,i){let a=[];return e.each((e,s,l)=>{let u=s===l.length-1;a.push([n(),u?i:","]),u||a.push(m(e.getValue(),t)?[o,o]:h(l[s+1],f.Leading|f.Line)?o:r)},"elements"),u(a)}t.exports={printArray:E,printArrayItems:S,isConciselyPrintedArray:w}}}),Zn=_({"src/language-js/print/call-arguments.js"(e,t){C();var{printDanglingComments:n}=Wt(),{getLast:r,getPenultimate:i}=ge(),{getFunctionParameters:o,hasComment:a,CommentCheckFlags:s,isFunctionCompositionArgs:l,isJsxNode:u,isLongCurriedCallExpression:c,shouldPrintComma:d,getCallArguments:p,iterateCallArgumentsPath:h,isNextLineEmpty:f,isCallExpression:m,isStringLiteral:g,isObjectProperty:v,isTSTypeExpression:b}=un(),{builders:{line:y,hardline:_,softline:E,group:w,indent:S,conditionalGroup:x,ifBreak:T,breakParent:D},utils:{willBreak:A}}=Y(),{ArgExpansionBailout:k}=Be(),{isConciselyPrintedArray:O}=Xn();function N(e,t,i){let o=e.getValue(),a="ImportExpression"===o.type,s=p(o);if(0===s.length)return["(",n(e,t,!0),")"];if(P(s))return["(",i(["arguments",0]),", ",i(["arguments",1]),")"];let u=!1,m=!1,g=s.length-1,v=[];h(e,(e,n)=>{let r=e.getNode(),o=[i()];n===g||(f(r,t)?(0===n&&(m=!0),u=!0,o.push(",",_,_)):o.push(",",y)),v.push(o)});let b=a||o.callee&&"Import"===o.callee.type||!d(t,"all")?"":",";function C(){return w(["(",S([y,...v]),b,y,")"],{shouldBreak:!0})}if(u||"Decorator"!==e.getParentNode().type&&l(s))return C();let O=R(s),N=M(s,t);if(O||N){if(O?v.slice(1).some(A):v.slice(0,-1).some(A))return C();let t=[];try{e.try(()=>{h(e,(e,n)=>{O&&0===n&&(t=[[i([],{expandFirstArg:!0}),v.length>1?",":"",m?_:y,m?_:""],...v.slice(1)]),N&&n===g&&(t=[...v.slice(0,-1),i([],{expandLastArg:!0})])})})}catch(L){if(L instanceof k)return C();throw L}return[v.some(A)?D:"",x([["(",...t,")"],O?["(",w(t[0],{shouldBreak:!0}),...t.slice(1),")"]:["(",...v.slice(0,-1),w(r(t),{shouldBreak:!0}),")"],C()])]}let I=["(",S([E,...v]),T(b),E,")"];return c(e)?I:w(I,{shouldBreak:v.some(A)||u})}function I(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"ObjectExpression"===e.type&&(e.properties.length>0||a(e))||"ArrayExpression"===e.type&&(e.elements.length>0||a(e))||"TSTypeAssertion"===e.type&&I(e.expression)||b(e)&&I(e.expression)||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&(!e.returnType||!e.returnType.typeAnnotation||"TSTypeReference"!==e.returnType.typeAnnotation.type||L(e.body))&&("BlockStatement"===e.body.type||"ArrowFunctionExpression"===e.body.type&&I(e.body,!0)||"ObjectExpression"===e.body.type||"ArrayExpression"===e.body.type||!t&&(m(e.body)||"ConditionalExpression"===e.body.type)||u(e.body))||"DoExpression"===e.type||"ModuleExpression"===e.type}function M(e,t){let n=r(e),o=i(e);return!a(n,s.Leading)&&!a(n,s.Trailing)&&I(n)&&(!o||o.type!==n.type)&&(2!==e.length||"ArrowFunctionExpression"!==o.type||"ArrayExpression"!==n.type)&&!(e.length>1&&"ArrayExpression"===n.type&&O(n,t))}function R(e){if(2!==e.length)return!1;let[t,n]=e;return!("ModuleExpression"!==t.type||!F(n))||!a(t)&&("FunctionExpression"===t.type||"ArrowFunctionExpression"===t.type&&"BlockStatement"===t.body.type)&&"FunctionExpression"!==n.type&&"ArrowFunctionExpression"!==n.type&&"ConditionalExpression"!==n.type&&!I(n)}function P(e){return 2===e.length&&"ArrowFunctionExpression"===e[0].type&&0===o(e[0]).length&&"BlockStatement"===e[0].body.type&&"ArrayExpression"===e[1].type&&!e.some(e=>a(e))}function L(e){return"BlockStatement"===e.type&&(e.body.some(e=>"EmptyStatement"!==e.type)||a(e,s.Dangling))}function F(e){return"ObjectExpression"===e.type&&1===e.properties.length&&v(e.properties[0])&&"Identifier"===e.properties[0].key.type&&"type"===e.properties[0].key.name&&g(e.properties[0].value)&&"module"===e.properties[0].value.value}t.exports=N}}),Jn=_({"src/language-js/print/member.js"(e,t){C();var{builders:{softline:n,group:r,indent:i,label:o}}=Y(),{isNumericLiteral:a,isMemberExpression:s,isCallExpression:l}=un(),{printOptionalToken:u}=Qn();function c(e,t,a){let u,c=e.getValue(),p=e.getParentNode(),h=0;do{u=e.getParentNode(h),h++}while(u&&(s(u)||"TSNonNullExpression"===u.type));let f=a("object"),m=d(e,t,a),g=u&&("NewExpression"===u.type||"BindExpression"===u.type||"AssignmentExpression"===u.type&&"Identifier"!==u.left.type)||c.computed||"Identifier"===c.object.type&&"Identifier"===c.property.type&&!s(p)||("AssignmentExpression"===p.type||"VariableDeclarator"===p.type)&&(l(c.object)&&c.object.arguments.length>0||"TSNonNullExpression"===c.object.type&&l(c.object.expression)&&c.object.expression.arguments.length>0||"member-chain"===f.label);return o("member-chain"===f.label?"member-chain":"member",[f,g?m:r(i([n,m]))])}function d(e,t,o){let s=o("property"),l=e.getValue(),c=u(e);return l.computed?!l.property||a(l.property)?[c,"[",s,"]"]:r([c,"[",i([n,s]),n,"]"]):[c,".",s]}t.exports={printMemberExpression:c,printMemberLookup:d}}}),er=_({"src/language-js/print/member-chain.js"(e,t){C();var{printComments:n}=Wt(),{getLast:r,isNextLineEmptyAfterIndex:i,getNextNonSpaceNonCommentCharacterIndex:o}=ge(),a=$n(),{isCallExpression:s,isMemberExpression:l,isFunctionOrArrowExpression:u,isLongCurriedCallExpression:c,isMemberish:d,isNumericLiteral:p,isSimpleCallArgument:h,hasComment:f,CommentCheckFlags:m,isNextLineEmpty:g}=un(),{locEnd:v}=Ut(),{builders:{join:b,hardline:y,group:_,indent:E,conditionalGroup:w,breakParent:S,label:x},utils:{willBreak:T}}=Y(),D=Zn(),{printMemberLookup:A}=Jn(),{printOptionalToken:k,printFunctionTypeParameters:O,printBindExpressionCallee:N}=Qn();function I(e,t,C){let I=e.getParentNode(),M=!I||"ExpressionStatement"===I.type,R=[];function P(e){let{originalText:n}=t,r=o(n,e,v);return")"===n.charAt(r)?!1!==r&&i(n,r+1):g(e,t)}function L(e){let r=e.getValue();s(r)&&(d(r.callee)||s(r.callee))?(R.unshift({node:r,printed:[n(e,[k(e),O(e,t,C),D(e,t,C)],t),P(r)?y:""]}),e.call(e=>L(e),"callee")):d(r)?(R.unshift({node:r,needsParens:a(e,t),printed:n(e,l(r)?A(e,t,C):N(e,t,C),t)}),e.call(e=>L(e),"object")):"TSNonNullExpression"===r.type?(R.unshift({node:r,printed:n(e,"!",t)}),e.call(e=>L(e),"expression")):R.unshift({node:r,printed:C()})}let F=e.getValue();R.unshift({node:F,printed:[k(e),O(e,t,C),D(e,t,C)]}),F.callee&&e.call(e=>L(e),"callee");let B=[],j=[R[0]],U=1;for(;U0&&e[1][0].node.computed;if(1===e[0].length){let n=e[0][0].node;return"ThisExpression"===n.type||"Identifier"===n.type&&(q(n.name)||M&&H(n.name)||t)}let n=r(e[0]).node;return l(n)&&"Identifier"===n.property.type&&(q(n.property.name)||t)}j.length>0&&B.push(j);let G=B.length>=2&&!f(B[1][0].node)&&$(B);function V(e){let t=e.map(e=>e.printed);return e.length>0&&r(e).needsParens?["(",...t,")"]:t}function Y(e){return 0===e.length?"":E(_([y,b(y,e.map(V))]))}let W=B.map(V),K=W,Q=G?3:2,X=B.flat(),Z=X.slice(1,-1).some(e=>f(e.node,m.Leading))||X.slice(0,-1).some(e=>f(e.node,m.Trailing))||B[Q]&&f(B[Q][0].node,m.Leading);if(B.length<=Q&&!Z)return c(e)?K:_(K);let J,ee=r(B[G?1:0]).node,te=!s(ee)&&P(ee),ne=[V(B[0]),G?B.slice(1,2).map(V):"",te?y:"",Y(B.slice(G?2:1))],re=R.map(e=>{let{node:t}=e;return t}).filter(s);function ie(){let e=r(r(B)).node,t=r(W);return s(e)&&T(t)&&re.slice(0,-1).some(e=>e.arguments.some(u))}return J=Z||re.length>2&&re.some(e=>!e.arguments.every(e=>h(e,0)))||W.slice(0,-1).some(T)||ie()?_(ne):[T(K)||te?S:"",w([K,ne])],x("member-chain",J)}t.exports=I}}),tr=_({"src/language-js/print/call-expression.js"(e,t){C();var{builders:{join:n,group:r}}=Y(),i=$n(),{getCallArguments:o,hasFlowAnnotationComment:a,isCallExpression:s,isMemberish:l,isStringLiteral:u,isTemplateOnItsOwnLine:c,isTestCall:d,iterateCallArgumentsPath:p}=un(),h=er(),f=Zn(),{printOptionalToken:m,printFunctionTypeParameters:g}=Qn();function v(e,t,u){let v=e.getValue(),y=e.getParentNode(),_="NewExpression"===v.type,E="ImportExpression"===v.type,w=m(e),S=o(v);if(S.length>0&&(!E&&!_&&b(v,y)||1===S.length&&c(S[0],t.originalText)||!_&&d(v,y))){let r=[];return p(e,()=>{r.push(u())}),[_?"new ":"",u("callee"),w,g(e,t,u),"(",n(", ",r),")"]}let x=("babel"===t.parser||"babel-flow"===t.parser)&&v.callee&&"Identifier"===v.callee.type&&a(v.callee.trailingComments);if(x&&(v.callee.trailingComments[0].printed=!0),!E&&!_&&l(v.callee)&&!e.call(e=>i(e,t),"callee"))return h(e,t,u);let C=[_?"new ":"",E?"import":u("callee"),w,x?`/*:: ${v.callee.trailingComments[0].value.slice(2).trim()} */`:"",g(e,t,u),f(e,t,u)];return E||s(v.callee)?r(C):C}function b(e,t){if("Identifier"!==e.callee.type)return!1;if("require"===e.callee.name)return!0;if("define"===e.callee.name){let n=o(e);return"ExpressionStatement"===t.type&&(1===n.length||2===n.length&&"ArrayExpression"===n[0].type||3===n.length&&u(n[0])&&"ArrayExpression"===n[1].type)}return!1}t.exports={printCallExpression:v}}}),nr=_({"src/language-js/print/assignment.js"(e,t){C();var{isNonEmptyArray:n,getStringWidth:r}=ge(),{builders:{line:i,group:o,indent:a,indentIfBreak:s,lineSuffixBoundary:l},utils:{cleanDoc:u,willBreak:c,canBreak:d}}=Y(),{hasLeadingOwnLineComment:p,isBinaryish:h,isStringLiteral:f,isLiteral:m,isNumericLiteral:g,isCallExpression:v,isMemberExpression:b,getCallArguments:y,rawText:_,hasComment:E,isSignedNumericLiteral:w,isObjectProperty:S}=un(),{shouldInlineLogicalExpression:x}=Yn(),{printCallExpression:T}=tr();function D(e,t,n,r,u,c){let d=O(e,t,n,r,c),p=n(c,{assignmentLayout:d});switch(d){case"break-after-operator":return o([o(r),u,o(a([i,p]))]);case"never-break-after-operator":return o([o(r),u," ",p]);case"fluid":{let e=Symbol("assignment");return o([o(r),u,o(a(i),{id:e}),l,s(p,{groupId:e})])}case"break-lhs":return o([r,u," ",o(p)]);case"chain":return[o(r),u,i,p];case"chain-tail":return[o(r),u,a([i,p])];case"chain-tail-arrow-chain":return[o(r),u,p];case"only-left":return r}}function A(e,t,n){let r=e.getValue();return D(e,t,n,n("left"),[" ",r.operator],"right")}function k(e,t,n){return D(e,t,n,n("id")," =","init")}function O(e,t,n,r,i){let o=e.getValue(),a=o[i];if(!a)return"only-left";let s=!M(a);if(e.match(M,R,e=>!s||"ExpressionStatement"!==e.type&&"VariableDeclaration"!==e.type))return s?"ArrowFunctionExpression"===a.type&&"ArrowFunctionExpression"===a.body.type?"chain-tail-arrow-chain":"chain-tail":"chain";if(!s&&M(a.right)||p(t.originalText,a))return"break-after-operator";if("CallExpression"===a.type&&"require"===a.callee.name||"json5"===t.parser||"json"===t.parser)return"never-break-after-operator";if(I(o)||P(o)||B(o)||j(o)&&d(r))return"break-lhs";let l=G(o,r,t);return e.call(()=>N(e,t,n,l),i)?"break-after-operator":l||"TemplateLiteral"===a.type||"TaggedTemplateExpression"===a.type||"BooleanLiteral"===a.type||g(a)||"ClassExpression"===a.type?"never-break-after-operator":"fluid"}function N(e,t,r,i){let o=e.getValue();if(h(o)&&!x(o))return!0;switch(o.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"ConditionalExpression":{let{test:e}=o;return h(e)&&!x(e)}case"ClassExpression":return n(o.decorators)}if(i)return!1;let a=o,s=[];for(;;)if("UnaryExpression"===a.type)a=a.argument,s.push("argument");else{if("TSNonNullExpression"!==a.type)break;a=a.expression,s.push("expression")}return!(!f(a)&&!e.call(()=>q(e,t,r),...s))}function I(e){if(R(e)){let t=e.left||e.id;return"ObjectPattern"===t.type&&t.properties.length>2&&t.properties.some(e=>S(e)&&(!e.shorthand||e.value&&"AssignmentPattern"===e.value.type))}return!1}function M(e){return"AssignmentExpression"===e.type}function R(e){return M(e)||"VariableDeclarator"===e.type}function P(e){let t=L(e);if(n(t)){let n="TSTypeAliasDeclaration"===e.type?"constraint":"bound";if(t.length>1&&t.some(e=>e[n]||e.default))return!0}return!1}function L(e){return F(e)&&e.typeParameters&&e.typeParameters.params?e.typeParameters.params:null}function F(e){return"TSTypeAliasDeclaration"===e.type||"TypeAlias"===e.type}function B(e){if("VariableDeclarator"!==e.type)return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let r=U(t.typeAnnotation);return n(r)&&r.length>1&&r.some(e=>n(U(e))||"TSConditionalType"===e.type)}function j(e){return"VariableDeclarator"===e.type&&e.init&&"ArrowFunctionExpression"===e.init.type}function U(e){return z(e)&&e.typeParameters&&e.typeParameters.params?e.typeParameters.params:null}function z(e){return"TSTypeReference"===e.type||"GenericTypeAnnotation"===e.type}function q(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e.getValue(),o=()=>q(e,t,n,!0);if("TSNonNullExpression"===i.type)return e.call(o,"expression");if(v(i)){if("member-chain"===T(e,t,n).label)return!1;let r=y(i);return!(!(0===r.length||1===r.length&&$(r[0],t))||V(i,n))&&e.call(o,"callee")}return b(i)?e.call(o,"object"):r&&("Identifier"===i.type||"ThisExpression"===i.type)}var H=.25;function $(e,t){let{printWidth:n}=t;if(E(e))return!1;let r=n*H;if("ThisExpression"===e.type||"Identifier"===e.type&&e.name.length<=r||w(e)&&!E(e.argument))return!0;let i="Literal"===e.type&&"regex"in e&&e.regex.pattern||"RegExpLiteral"===e.type&&e.pattern;return i?i.length<=r:f(e)?_(e).length<=r:"TemplateLiteral"===e.type?0===e.expressions.length&&e.quasis[0].value.raw.length<=r&&!e.quasis[0].value.raw.includes("\n"):m(e)}function G(e,t,n){if(!S(e))return!1;t=u(t);let i=3;return"string"==typeof t&&r(t)1)return!0;if(1===r.length){let e=r[0];if("TSUnionType"===e.type||"UnionTypeAnnotation"===e.type||"TSIntersectionType"===e.type||"IntersectionTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"ObjectTypeAnnotation"===e.type)return!0}let n=e.typeParameters?"typeParameters":"typeArguments";if(c(t(n)))return!0}return!1}function W(e){return e.typeParameters&&e.typeParameters.params||e.typeArguments&&e.typeArguments.params}t.exports={printVariableDeclarator:k,printAssignmentExpression:A,printAssignment:D,isArrowFunctionVariableDeclarator:j}}}),rr=_({"src/language-js/print/function-parameters.js"(e,t){C();var{getNextNonSpaceNonCommentCharacter:n}=ge(),{printDanglingComments:r}=Wt(),{builders:{line:i,hardline:o,softline:a,group:s,indent:l,ifBreak:u},utils:{removeLines:c,willBreak:d}}=Y(),{getFunctionParameters:p,iterateFunctionParametersPath:h,isSimpleType:f,isTestCall:m,isTypeAnnotationAFunction:g,isObjectType:v,isObjectTypePropertyAFunction:b,hasRestParameter:y,shouldPrintComma:_,hasComment:E,isNextLineEmpty:w}=un(),{locEnd:S}=Ut(),{ArgExpansionBailout:x}=Be(),{printFunctionTypeParameters:T}=Qn();function D(e,t,v,E,C){let D=e.getValue(),k=p(D),O=C?T(e,v,t):"";if(0===k.length)return[O,"(",r(e,v,!0,e=>")"===n(v.originalText,e,S)),")"];let N=e.getParentNode(),I=m(N),M=A(D),R=[];if(h(e,(e,n)=>{let r=n===k.length-1;r&&D.rest&&R.push("..."),R.push(t()),!r&&(R.push(","),I||M?R.push(" "):w(k[n],v)?R.push(o,o):R.push(i))}),E){if(d(O)||d(R))throw new x;return s([c(O),"(",c(R),")"])}let P=k.every(e=>!e.decorators);return M&&P||I?[O,"(",...R,")"]:(b(N)||g(N)||"TypeAlias"===N.type||"UnionTypeAnnotation"===N.type||"TSUnionType"===N.type||"IntersectionTypeAnnotation"===N.type||"FunctionTypeAnnotation"===N.type&&N.returnType===D)&&1===k.length&&null===k[0].name&&D.this!==k[0]&&k[0].typeAnnotation&&null===D.typeParameters&&f(k[0].typeAnnotation)&&!D.rest?"always"===v.arrowParens?["(",...R,")"]:R:[O,"(",l([a,...R]),u(!y(D)&&_(v,"all")?",":""),a,")"]}function A(e){if(!e)return!1;let t=p(e);if(1!==t.length)return!1;let[n]=t;return!E(n)&&("ObjectPattern"===n.type||"ArrayPattern"===n.type||"Identifier"===n.type&&n.typeAnnotation&&("TypeAnnotation"===n.typeAnnotation.type||"TSTypeAnnotation"===n.typeAnnotation.type)&&v(n.typeAnnotation.typeAnnotation)||"FunctionTypeParam"===n.type&&v(n.typeAnnotation)||"AssignmentPattern"===n.type&&("ObjectPattern"===n.left.type||"ArrayPattern"===n.left.type)&&("Identifier"===n.right.type||"ObjectExpression"===n.right.type&&0===n.right.properties.length||"ArrayExpression"===n.right.type&&0===n.right.elements.length))}function k(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function O(e,t){let n=k(e);if(!n)return!1;let r=e.typeParameters&&e.typeParameters.params;if(r){if(r.length>1)return!1;if(1===r.length){let e=r[0];if(e.constraint||e.default)return!1}}return 1===p(e).length&&(v(n)||d(t))}t.exports={printFunctionParameters:D,shouldHugFunctionParameters:A,shouldGroupFunctionParameters:O}}}),ir=_({"src/language-js/print/type-annotation.js"(e,t){C();var{printComments:n,printDanglingComments:r}=Wt(),{isNonEmptyArray:i}=ge(),{builders:{group:o,join:a,line:s,softline:l,indent:u,align:c,ifBreak:d}}=Y(),p=$n(),{locStart:h}=Ut(),{isSimpleType:f,isObjectType:m,hasLeadingOwnLineComment:g,isObjectTypePropertyAFunction:v,shouldPrintComma:b}=un(),{printAssignment:y}=nr(),{printFunctionParameters:_,shouldGroupFunctionParameters:E}=rr(),{printArrayItems:w}=Xn();function S(e){if(f(e)||m(e))return!0;if("UnionTypeAnnotation"===e.type||"TSUnionType"===e.type){let t=e.types.filter(e=>"VoidTypeAnnotation"===e.type||"TSVoidKeyword"===e.type||"NullLiteralTypeAnnotation"===e.type||"TSNullKeyword"===e.type).length,n=e.types.some(e=>"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type);if(e.types.length-1===t&&n)return!0}return!1}function x(e,t,n){let r=t.semi?";":"",i=e.getValue(),o=[];return o.push("opaque type ",n("id"),n("typeParameters")),i.supertype&&o.push(": ",n("supertype")),i.impltype&&o.push(" = ",n("impltype")),o.push(r),o}function T(e,t,n){let r=t.semi?";":"",i=e.getValue(),o=[];i.declare&&o.push("declare "),o.push("type ",n("id"),n("typeParameters"));let a="TSTypeAliasDeclaration"===i.type?"typeAnnotation":"right";return[y(e,t,n,o," =",a),r]}function D(e,t,n){let r=e.getValue(),i=e.map(n,"types"),a=[],l=!1;for(let o=0;o1&&(l=!0),a.push(" & ",o>1?u(i[o]):i[o])):a.push(u([" &",s,i[o]]));return o(a)}function A(e,t,r){let i=e.getValue(),h=e.getParentNode(),f="TypeParameterInstantiation"!==h.type&&"TSTypeParameterInstantiation"!==h.type&&"GenericTypeAnnotation"!==h.type&&"TSTypeReference"!==h.type&&"TSTypeAssertion"!==h.type&&"TupleTypeAnnotation"!==h.type&&"TSTupleType"!==h.type&&!("FunctionTypeParam"===h.type&&!h.name&&e.getParentNode(1).this!==h)&&!(("TypeAlias"===h.type||"VariableDeclarator"===h.type||"TSTypeAliasDeclaration"===h.type)&&g(t.originalText,i)),m=S(i),v=e.map(e=>{let i=r();return m||(i=c(2,i)),n(e,i,t)},"types");if(m)return a(" | ",v);let b=f&&!g(t.originalText,i),y=[d([b?s:"","| "]),a([s,"| "],v)];return p(e,t)?o([u(y),l]):"TupleTypeAnnotation"===h.type&&h.types.length>1||"TSTupleType"===h.type&&h.elementTypes.length>1?o([u([d(["(",l]),y]),l,d(")")]):o(f?u(y):y)}function k(e,t,n){let r=e.getValue(),i=[],a=e.getParentNode(0),s=e.getParentNode(1),l=e.getParentNode(2),u="TSFunctionType"===r.type||!(("ObjectTypeProperty"===a.type||"ObjectTypeInternalSlot"===a.type)&&!a.variance&&!a.optional&&h(a)===h(r)||"ObjectTypeCallProperty"===a.type||l&&"DeclareFunction"===l.type),c=u&&("TypeAnnotation"===a.type||"TSTypeAnnotation"===a.type),d=c&&u&&("TypeAnnotation"===a.type||"TSTypeAnnotation"===a.type)&&"ArrowFunctionExpression"===s.type;v(a)&&(u=!0,c=!0),d&&i.push("(");let p=_(e,n,t,!1,!0),f=r.returnType||r.predicate||r.typeAnnotation?[u?" => ":": ",n("returnType"),n("predicate"),n("typeAnnotation")]:"",m=E(r,f);return i.push(m?o(p):p),f&&i.push(f),d&&i.push(")"),o(i)}function O(e,t,n){let a=e.getValue(),s="TSTupleType"===a.type?"elementTypes":"types",c=a[s],p=i(c),h=p?l:"";return o(["[",u([h,w(e,t,s,n)]),d(p&&b(t,"all")?",":""),r(e,t,!0),h,"]"])}function N(e,t,n){let r=e.getValue(),i="OptionalIndexedAccessType"===r.type&&r.optional?"?.[":"[";return[n("objectType"),i,n("indexType"),"]"]}function I(e,t,n){let r=e.getValue();return[r.postfix?"":n,t("typeAnnotation"),r.postfix?n:""]}t.exports={printOpaqueType:x,printTypeAlias:T,printIntersectionType:D,printUnionType:A,printFunctionType:k,printTupleType:O,printIndexedAccessType:N,shouldHugType:S,printJSDocType:I}}}),or=_({"src/language-js/print/type-parameters.js"(e,t){C();var{printDanglingComments:n}=Wt(),{builders:{join:r,line:i,hardline:o,softline:a,group:s,indent:l,ifBreak:u}}=Y(),{isTestCall:c,hasComment:d,CommentCheckFlags:p,isTSXFile:h,shouldPrintComma:f,getFunctionParameters:m,isObjectType:g,getTypeScriptMappedTypeModifier:v}=un(),{createGroupIdMapper:b}=ge(),{shouldHugType:y}=ir(),{isArrowFunctionVariableDeclarator:_}=nr(),E=b("typeParameters");function w(e,t,n,o){let d=e.getValue();if(!d[o])return"";if(!Array.isArray(d[o]))return n(o);let p=e.getNode(2),v=p&&c(p),b=e.match(e=>!(1===e[o].length&&g(e[o][0])),void 0,(e,t)=>"typeAnnotation"===t,e=>"Identifier"===e.type,_);if(0===d[o].length||!b&&(v||1===d[o].length&&("NullableTypeAnnotation"===d[o][0].type||y(d[o][0]))))return["<",r(", ",e.map(n,o)),S(e,t),">"];let w="TSTypeParameterInstantiation"===d.type?"":1===m(d).length&&h(t)&&!d[o][0].constraint&&"ArrowFunctionExpression"===e.getParentNode().type?",":f(t,"all")?u(","):"";return s(["<",l([a,r([",",i],e.map(n,o))]),w,a,">"],{id:E(d)})}function S(e,t){let r=e.getValue();if(!d(r,p.Dangling))return"";let i=!d(r,p.Line),a=n(e,t,i);return i?a:[a,o]}function x(e,t,n){let r=e.getValue(),i=["TSTypeParameter"===r.type&&r.const?"const ":""],o=e.getParentNode();return"TSMappedType"===o.type?(o.readonly&&i.push(v(o.readonly,"readonly")," "),i.push("[",n("name")),r.constraint&&i.push(" in ",n("constraint")),o.nameType&&i.push(" as ",e.callParent(()=>n("nameType"))),i.push("]"),i):(r.variance&&i.push(n("variance")),r.in&&i.push("in "),r.out&&i.push("out "),i.push(n("name")),r.bound&&i.push(": ",n("bound")),r.constraint&&i.push(" extends ",n("constraint")),r.default&&i.push(" = ",n("default")),i)}t.exports={printTypeParameter:x,printTypeParameters:w,getTypeParametersGroupId:E}}}),ar=_({"src/language-js/print/property.js"(e,t){C();var{printComments:n}=Wt(),{printString:r,printNumber:i}=ge(),{isNumericLiteral:o,isSimpleNumber:a,isStringLiteral:s,isStringPropSafeToUnquote:l,rawText:u}=un(),{printAssignment:c}=nr(),d=new WeakMap;function p(e,t,c){let p=e.getNode();if(p.computed)return["[",c("key"),"]"];let h=e.getParentNode(),{key:f}=p;if("consistent"===t.quoteProps&&!d.has(h)){let e=(h.properties||h.body||h.members).some(e=>!e.computed&&e.key&&s(e.key)&&!l(e,t));d.set(h,e)}if(("Identifier"===f.type||o(f)&&a(i(u(f)))&&String(f.value)===i(u(f))&&"typescript"!==t.parser&&"babel-ts"!==t.parser)&&("json"===t.parser||"consistent"===t.quoteProps&&d.get(h))){let i=r(JSON.stringify("Identifier"===f.type?f.name:f.value.toString()),t);return e.call(e=>n(e,i,t),"key")}return l(p,t)&&("as-needed"===t.quoteProps||"consistent"===t.quoteProps&&!d.get(h))?e.call(e=>n(e,/^\d/.test(f.value)?i(f.value):f.value,t),"key"):c("key")}function h(e,t,n){return e.getValue().shorthand?n("value"):c(e,t,n,p(e,t,n),":","value")}t.exports={printProperty:h,printPropertyKey:p}}}),sr=_({"src/language-js/print/function.js"(e,t){C();var n=Yt(),{printDanglingComments:r,printCommentsSeparately:i}=Wt(),o=N(),{getNextNonSpaceNonCommentCharacterIndex:a}=ge(),{builders:{line:s,softline:l,group:u,indent:c,ifBreak:d,hardline:p,join:h,indentIfBreak:f},utils:{removeLines:m,willBreak:g}}=Y(),{ArgExpansionBailout:v}=Be(),{getFunctionParameters:b,hasLeadingOwnLineComment:y,isFlowAnnotationComment:_,isJsxNode:E,isTemplateOnItsOwnLine:w,shouldPrintComma:S,startsWithNoLookaheadToken:x,isBinaryish:T,isLineComment:D,hasComment:A,getComments:k,CommentCheckFlags:O,isCallLikeExpression:I,isCallExpression:M,getCallArguments:R,hasNakedLeftSide:P,getLeftSide:L}=un(),{locEnd:F}=Ut(),{printFunctionParameters:B,shouldGroupFunctionParameters:j}=rr(),{printPropertyKey:U}=ar(),{printFunctionTypeParameters:z}=Qn();function q(e,t,n,r){let i=e.getValue(),o=!1;if(("FunctionDeclaration"===i.type||"FunctionExpression"===i.type)&&r&&r.expandLastArg){let t=e.getParentNode();M(t)&&R(t).length>1&&(o=!0)}let a=[];"TSDeclareFunction"===i.type&&i.declare&&a.push("declare "),i.async&&a.push("async "),i.generator?a.push("function* "):a.push("function "),i.id&&a.push(t("id"));let s=B(e,t,n,o),l=X(e,t,n),c=j(i,l);return a.push(z(e,n,t),u([c?u(s):s,l]),i.body?" ":"",t("body")),n.semi&&(i.declare||!i.body)&&a.push(";"),a}function H(e,t,r){let i=e.getNode(),{kind:o}=i,a=i.value||i,s=[];return o&&"init"!==o&&"method"!==o&&"constructor"!==o?(n.ok("get"===o||"set"===o),s.push(o," ")):a.async&&s.push("async "),a.generator&&s.push("*"),s.push(U(e,t,r),i.optional||i.key.optional?"?":""),i===a?s.push($(e,t,r)):"FunctionExpression"===a.type?s.push(e.call(e=>$(e,t,r),"value")):s.push(r("value")),s}function $(e,t,n){let r=e.getNode(),i=B(e,n,t),o=X(e,n,t),a=j(r,o),s=[z(e,t,n),u([a?u(i):i,o])];return r.body?s.push(" ",n("body")):s.push(t.semi?";":""),s}function G(e,t,n,i){let o=e.getValue(),s=[];if(o.async&&s.push("async "),Q(e,t))s.push(n(["params",0]));else{let r=i&&(i.expandLastArg||i.expandFirstArg),o=X(e,n,t);if(r){if(g(o))throw new v;o=u(m(o))}s.push(u([B(e,n,t,r,!0),o]))}let l=r(e,t,!0,e=>{let n=a(t.originalText,e,F);return!1!==n&&"=>"===t.originalText.slice(n,n+2)});return l&&s.push(" ",l),s}function V(e,t,n,r,i,o){let a=e.getName(),p=e.getParentNode(),m=I(p)&&"callee"===a,g=Boolean(t&&t.assignmentLayout),v="BlockStatement"!==o.body.type&&"ObjectExpression"!==o.body.type&&"SequenceExpression"!==o.body.type,b=m&&v||t&&"chain-tail-arrow-chain"===t.assignmentLayout,y=Symbol("arrow-chain");return"SequenceExpression"===o.body.type&&(i=u(["(",c([l,i]),l,")"])),u([u(c([m||g?l:"",u(h([" =>",s],n),{shouldBreak:r})]),{id:y,shouldBreak:b})," =>",f(v?c([s,i]):[" ",i],{groupId:y}),m?d(l,"",{groupId:y}):""])}function W(e,t,n,r){let o=e.getValue(),a=[],p=[],h=!1;if(function s(){let l=G(e,t,n,r);if(0===a.length)a.push(l);else{let{leading:n,trailing:r}=i(e,t);a.push([n,l]),p.unshift(r)}h=h||o.returnType&&b(o).length>0||o.typeParameters||b(o).some(e=>"Identifier"!==e.type),"ArrowFunctionExpression"!==o.body.type||r&&r.expandLastArg?p.unshift(n("body",r)):(o=o.body,e.call(s,"body"))}(),a.length>1)return V(e,r,a,h,p,o);let f=a;if(f.push(" =>"),!y(t.originalText,o.body)&&("ArrayExpression"===o.body.type||"ObjectExpression"===o.body.type||"BlockStatement"===o.body.type||E(o.body)||w(o.body,t.originalText)||"ArrowFunctionExpression"===o.body.type||"DoExpression"===o.body.type))return u([...f," ",p]);if("SequenceExpression"===o.body.type)return u([...f,u([" (",c([l,p]),l,")"])]);let m=(r&&r.expandLastArg||"JSXExpressionContainer"===e.getParentNode().type)&&!A(o),g=r&&r.expandLastArg&&S(t,"all"),v="ConditionalExpression"===o.body.type&&!x(o.body,e=>"ObjectExpression"===e.type);return u([...f,u([c([s,v?d("","("):"",p,v?d("",")"):""]),m?[d(g?",":""),l]:""])])}function K(e){let t=b(e);return 1===t.length&&!e.typeParameters&&!A(e,O.Dangling)&&"Identifier"===t[0].type&&!t[0].typeAnnotation&&!A(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function Q(e,t){if("always"===t.arrowParens)return!1;if("avoid"===t.arrowParens){let t=e.getValue();return K(t)}return!1}function X(e,t,n){let r=e.getValue(),i=t("returnType");if(r.returnType&&_(n.originalText,r.returnType))return[" /*: ",i," */"];let o=[i];return r.returnType&&r.returnType.typeAnnotation&&o.unshift(": "),r.predicate&&o.push(r.returnType?" ":": ",t("predicate")),o}function Z(e,t,n){let i=e.getValue(),a=t.semi?";":"",s=[];i.argument&&(te(t,i.argument)?s.push([" (",c([p,n("argument")]),p,")"]):T(i.argument)||"SequenceExpression"===i.argument.type?s.push(u([d(" ("," "),c([l,n("argument")]),l,d(")")])):s.push(" ",n("argument")));let h=k(i),f=o(h),m=f&&D(f);return m&&s.push(a),A(i,O.Dangling)&&s.push(" ",r(e,t,!0)),m||s.push(a),s}function J(e,t,n){return["return",Z(e,t,n)]}function ee(e,t,n){return["throw",Z(e,t,n)]}function te(e,t){if(y(e.originalText,t))return!0;if(P(t)){let n,r=t;for(;n=L(r);)if(r=n,y(e.originalText,r))return!0}return!1}t.exports={printFunction:q,printArrowFunction:W,printMethod:H,printReturnStatement:J,printThrowStatement:ee,printMethodInternal:$,shouldPrintParamsWithoutParens:Q}}}),lr=_({"src/language-js/print/decorators.js"(e,t){C();var{isNonEmptyArray:n,hasNewline:r}=ge(),{builders:{line:i,hardline:o,join:a,breakParent:s,group:l}}=Y(),{locStart:u,locEnd:c}=Ut(),{getParentExportDeclaration:d}=un();function p(e,t,n){let r=e.getValue();return l([a(i,e.map(n,"decorators")),m(r,t)?o:i])}function h(e,t,n){return[a(o,e.map(n,"declaration","decorators")),o]}function f(e,t,r){let l=e.getValue(),{decorators:u}=l;if(!n(u)||g(e.getParentNode()))return;let c="ClassExpression"===l.type||"ClassDeclaration"===l.type||m(l,t);return[d(e)?o:c?s:"",a(i,e.map(r,"decorators")),i]}function m(e,t){return e.decorators.some(e=>r(t.originalText,c(e)))}function g(e){if("ExportDefaultDeclaration"!==e.type&&"ExportNamedDeclaration"!==e.type&&"DeclareExportDeclaration"!==e.type)return!1;let t=e.declaration&&e.declaration.decorators;return n(t)&&u(e)===u(t[0])}t.exports={printDecorators:f,printClassMemberDecorators:p,printDecoratorsBeforeExport:h,hasDecoratorsBeforeExport:g}}}),ur=_({"src/language-js/print/class.js"(e,t){C();var{isNonEmptyArray:n,createGroupIdMapper:r}=ge(),{printComments:i,printDanglingComments:o}=Wt(),{builders:{join:a,line:s,hardline:l,softline:u,group:c,indent:d,ifBreak:p}}=Y(),{hasComment:h,CommentCheckFlags:f}=un(),{getTypeParametersGroupId:m}=or(),{printMethod:g}=sr(),{printOptionalToken:v,printTypeAnnotation:b,printDefiniteToken:y}=Qn(),{printPropertyKey:_}=ar(),{printAssignment:E}=nr(),{printClassMemberDecorators:w}=lr();function S(e,t,r){let o=e.getValue(),a=[];o.declare&&a.push("declare "),o.abstract&&a.push("abstract "),a.push("class");let l=o.id&&h(o.id,f.Trailing)||o.typeParameters&&h(o.typeParameters,f.Trailing)||o.superClass&&h(o.superClass)||n(o.extends)||n(o.mixins)||n(o.implements),u=[],p=[];if(o.id&&u.push(" ",r("id")),u.push(r("typeParameters")),o.superClass){let n=[O(e,t,r),r("superTypeParameters")],o=e.call(e=>["extends ",i(e,n,t)],"superClass");l?p.push(s,c(o)):p.push(" ",o)}else p.push(k(e,t,r,"extends"));if(p.push(k(e,t,r,"mixins"),k(e,t,r,"implements")),l){let e;e=A(o)?[...u,d(p)]:d([...u,p]),a.push(c(e,{id:x(o)}))}else a.push(...u,...p);return a.push(" ",r("body")),a}var x=r("heritageGroup");function T(e){return p(l,"",{groupId:x(e)})}function D(e){return["superClass","extends","mixins","implements"].filter(t=>Boolean(e[t])).length>1}function A(e){return e.typeParameters&&!h(e.typeParameters,f.Trailing|f.Line)&&!D(e)}function k(e,t,r,i){let u=e.getValue();if(!n(u[i]))return"";let h=o(e,t,!0,e=>{let{marker:t}=e;return t===i});return[A(u)?p(" ",s,{groupId:m(u.typeParameters)}):s,h,h&&l,i,c(d([s,a([",",s],e.map(r,i))]))]}function O(e,t,n){let r=n("superClass");return"AssignmentExpression"===e.getParentNode().type?c(p(["(",d([u,r]),u,")"],r)):r}function N(e,t,r){let i=e.getValue(),o=[];return n(i.decorators)&&o.push(w(e,t,r)),i.accessibility&&o.push(i.accessibility+" "),i.readonly&&o.push("readonly "),i.declare&&o.push("declare "),i.static&&o.push("static "),("TSAbstractMethodDefinition"===i.type||i.abstract)&&o.push("abstract "),i.override&&o.push("override "),o.push(g(e,t,r)),o}function I(e,t,r){let i=e.getValue(),o=[],a=t.semi?";":"";return n(i.decorators)&&o.push(w(e,t,r)),i.accessibility&&o.push(i.accessibility+" "),i.declare&&o.push("declare "),i.static&&o.push("static "),("TSAbstractPropertyDefinition"===i.type||"TSAbstractAccessorProperty"===i.type||i.abstract)&&o.push("abstract "),i.override&&o.push("override "),i.readonly&&o.push("readonly "),i.variance&&o.push(r("variance")),("ClassAccessorProperty"===i.type||"AccessorProperty"===i.type||"TSAbstractAccessorProperty"===i.type)&&o.push("accessor "),o.push(_(e,t,r),v(e),y(e),b(e,t,r)),[E(e,t,r,o," =","value"),a]}t.exports={printClass:S,printClassMethod:N,printClassProperty:I,printHardlineAfterHeritage:T}}}),cr=_({"src/language-js/print/interface.js"(e,t){C();var{isNonEmptyArray:n}=ge(),{builders:{join:r,line:i,group:o,indent:a,ifBreak:s}}=Y(),{hasComment:l,identity:u,CommentCheckFlags:c}=un(),{getTypeParametersGroupId:d}=or(),{printTypeScriptModifiers:p}=Qn();function h(e,t,h){let f=e.getValue(),m=[];f.declare&&m.push("declare "),"TSInterfaceDeclaration"===f.type&&m.push(f.abstract?"abstract ":"",p(e,t,h)),m.push("interface");let g=[],v=[];"InterfaceTypeAnnotation"!==f.type&&g.push(" ",h("id"),h("typeParameters"));let b=f.typeParameters&&!l(f.typeParameters,c.Trailing|c.Line);return n(f.extends)&&v.push(b?s(" ",i,{groupId:d(f.typeParameters)}):i,"extends ",(1===f.extends.length?u:a)(r([",",i],e.map(h,"extends")))),f.id&&l(f.id,c.Trailing)||n(f.extends)?b?m.push(o([...g,a(v)])):m.push(o(a([...g,...v]))):m.push(...g,...v),m.push(" ",h("body")),o(m)}t.exports={printInterface:h}}}),dr=_({"src/language-js/print/module.js"(e,t){C();var{isNonEmptyArray:n}=ge(),{builders:{softline:r,group:i,indent:o,join:a,line:s,ifBreak:l,hardline:u}}=Y(),{printDanglingComments:c}=Wt(),{hasComment:d,CommentCheckFlags:p,shouldPrintComma:h,needsHardlineAfterDanglingComment:f,isStringLiteral:m,rawText:g}=un(),{locStart:v,hasSameLoc:b}=Ut(),{hasDecoratorsBeforeExport:y,printDecoratorsBeforeExport:_}=lr();function E(e,t,n){let r=e.getValue(),i=t.semi?";":"",o=[],{importKind:a}=r;return o.push("import"),a&&"value"!==a&&o.push(" ",a),o.push(D(e,t,n),T(e,t,n),k(e,t,n),i),o}function w(e,t,n){let r=e.getValue(),i=[];y(r)&&i.push(_(e,t,n));let{type:o,exportKind:a,declaration:s}=r;return i.push("export"),(r.default||"ExportDefaultDeclaration"===o)&&i.push(" default"),d(r,p.Dangling)&&(i.push(" ",c(e,t,!0)),f(r)&&i.push(u)),s?i.push(" ",n("declaration")):i.push("type"===a?" type":"",D(e,t,n),T(e,t,n),k(e,t,n)),x(r,t)&&i.push(";"),i}function S(e,t,n){let r=e.getValue(),i=t.semi?";":"",o=[],{exportKind:a,exported:s}=r;return o.push("export"),"type"===a&&o.push(" type"),o.push(" *"),s&&o.push(" as ",n("exported")),o.push(T(e,t,n),k(e,t,n),i),o}function x(e,t){if(!t.semi)return!1;let{type:n,declaration:r}=e,i=e.default||"ExportDefaultDeclaration"===n;if(!r)return!0;let{type:o}=r;return!(!i||"ClassDeclaration"===o||"FunctionDeclaration"===o||"TSInterfaceDeclaration"===o||"DeclareClass"===o||"DeclareFunction"===o||"TSDeclareFunction"===o||"EnumDeclaration"===o)}function T(e,t,n){let r=e.getValue();if(!r.source)return"";let i=[];return A(r,t)||i.push(" from"),i.push(" ",n("source")),i}function D(e,t,u){let c=e.getValue();if(A(c,t))return"";let p=[" "];if(n(c.specifiers)){let n=[],f=[];e.each(()=>{let t=e.getValue().type;if("ExportNamespaceSpecifier"===t||"ExportDefaultSpecifier"===t||"ImportNamespaceSpecifier"===t||"ImportDefaultSpecifier"===t)n.push(u());else{if("ExportSpecifier"!==t&&"ImportSpecifier"!==t)throw new Error("Unknown specifier type "+JSON.stringify(t));f.push(u())}},"specifiers"),p.push(a(", ",n)),f.length>0&&(n.length>0&&p.push(", "),f.length>1||n.length>0||c.specifiers.some(e=>d(e))?p.push(i(["{",o([t.bracketSpacing?s:r,a([",",s],f)]),l(h(t)?",":""),t.bracketSpacing?s:r,"}"])):p.push(["{",t.bracketSpacing?" ":"",...f,t.bracketSpacing?" ":"","}"]))}else p.push("{}");return p}function A(e,t){let{type:r,importKind:i,source:o,specifiers:a}=e;return"ImportDeclaration"===r&&!n(a)&&"type"!==i&&!/{\s*}/.test(t.originalText.slice(v(e),v(o)))}function k(e,t,r){let i=e.getNode();return n(i.assertions)?[" assert {",t.bracketSpacing?" ":"",a(", ",e.map(r,"assertions")),t.bracketSpacing?" ":"","}"]:""}function O(e,t,n){let r=e.getNode(),{type:i}=r,o=[],a="ImportSpecifier"===i?r.importKind:r.exportKind;a&&"value"!==a&&o.push(a," ");let s=i.startsWith("Import"),l=s?"imported":"local",u=s?"local":"exported",c=r[l],d=r[u],p="",h="";return"ExportNamespaceSpecifier"===i||"ImportNamespaceSpecifier"===i?p="*":c&&(p=n(l)),d&&!N(r)&&(h=n(u)),o.push(p,p&&h?" as ":"",h),o}function N(e){if("ImportSpecifier"!==e.type&&"ExportSpecifier"!==e.type)return!1;let{local:t,["ImportSpecifier"===e.type?"imported":"exported"]:n}=e;if(t.type!==n.type||!b(t,n))return!1;if(m(t))return t.value===n.value&&g(t)===g(n);switch(t.type){case"Identifier":return t.name===n.name;default:return!1}}t.exports={printImportDeclaration:E,printExportDeclaration:w,printExportAllDeclaration:S,printModuleSpecifier:O}}}),pr=_({"src/language-js/print/object.js"(e,t){C();var{printDanglingComments:n}=Wt(),{builders:{line:r,softline:i,group:o,indent:a,ifBreak:s,hardline:l}}=Y(),{getLast:u,hasNewlineInRange:c,hasNewline:d,isNonEmptyArray:p}=ge(),{shouldPrintComma:h,hasComment:f,getComments:m,CommentCheckFlags:g,isNextLineEmpty:v}=un(),{locStart:b,locEnd:y}=Ut(),{printOptionalToken:_,printTypeAnnotation:E}=Qn(),{shouldHugFunctionParameters:w}=rr(),{shouldHugType:S}=ir(),{printHardlineAfterHeritage:x}=ur();function T(e,t,C){let T,D=t.semi?";":"",A=e.getValue();T="TSTypeLiteral"===A.type?"members":"TSInterfaceBody"===A.type?"body":"properties";let k="ObjectTypeAnnotation"===A.type,O=[T];k&&O.push("indexers","callProperties","internalSlots");let N=O.map(e=>A[e][0]).sort((e,t)=>b(e)-b(t))[0],I=e.getParentNode(0),M=k&&I&&("InterfaceDeclaration"===I.type||"DeclareInterface"===I.type||"DeclareClass"===I.type)&&"body"===e.getName(),R="TSInterfaceBody"===A.type||M||"ObjectPattern"===A.type&&"FunctionDeclaration"!==I.type&&"FunctionExpression"!==I.type&&"ArrowFunctionExpression"!==I.type&&"ObjectMethod"!==I.type&&"ClassMethod"!==I.type&&"ClassPrivateMethod"!==I.type&&"AssignmentPattern"!==I.type&&"CatchClause"!==I.type&&A.properties.some(e=>e.value&&("ObjectPattern"===e.value.type||"ArrayPattern"===e.value.type))||"ObjectPattern"!==A.type&&N&&c(t.originalText,b(A),b(N)),P=M?";":"TSInterfaceBody"===A.type||"TSTypeLiteral"===A.type?s(D,";"):",",L="RecordExpression"===A.type?"#{":A.exact?"{|":"{",F=A.exact?"|}":"}",B=[];for(let n of O)e.each(e=>{let t=e.getValue();B.push({node:t,printed:C(),loc:b(t)})},n);O.length>1&&B.sort((e,t)=>e.loc-t.loc);let j=[],U=B.map(e=>{let n=[...j,o(e.printed)];return j=[P,r],("TSPropertySignature"===e.node.type||"TSMethodSignature"===e.node.type||"TSConstructSignatureDeclaration"===e.node.type)&&f(e.node,g.PrettierIgnore)&&j.shift(),v(e.node,t)&&j.push(l),n});if(A.inexact){let i;if(f(A,g.Dangling)){let o=f(A,g.Line);i=[n(e,t,!0),o||d(t.originalText,y(u(m(A))))?l:r,"..."]}else i=["..."];U.push([...j,...i])}let z,q=u(A[T]),H=!(A.inexact||q&&"RestElement"===q.type||q&&("TSPropertySignature"===q.type||"TSCallSignatureDeclaration"===q.type||"TSMethodSignature"===q.type||"TSConstructSignatureDeclaration"===q.type)&&f(q,g.PrettierIgnore));if(0===U.length){if(!f(A,g.Dangling))return[L,F,E(e,t,C)];z=o([L,n(e,t),i,F,_(e),E(e,t,C)])}else z=[M&&p(A.properties)?x(I):"",L,a([t.bracketSpacing?r:i,...U]),s(H&&(","!==P||h(t))?P:""),t.bracketSpacing?r:i,F,_(e),E(e,t,C)];return e.match(e=>"ObjectPattern"===e.type&&!e.decorators,(e,t,n)=>w(e)&&("params"===t||"parameters"===t||"this"===t||"rest"===t)&&0===n)||e.match(S,(e,t)=>"typeAnnotation"===t,(e,t)=>"typeAnnotation"===t,(e,t,n)=>w(e)&&("params"===t||"parameters"===t||"this"===t||"rest"===t)&&0===n)||!R&&e.match(e=>"ObjectPattern"===e.type,e=>"AssignmentExpression"===e.type||"VariableDeclarator"===e.type)?z:o(z,{shouldBreak:R})}t.exports={printObject:T}}}),hr=_({"src/language-js/print/flow.js"(e,t){C();var n=Yt(),{printDanglingComments:r}=Wt(),{printString:i,printNumber:o}=ge(),{builders:{hardline:a,softline:s,group:l,indent:u}}=Y(),{getParentExportDeclaration:c,isFunctionNotation:d,isGetterOrSetter:p,rawText:h,shouldPrintComma:f}=un(),{locStart:m,locEnd:g}=Ut(),{replaceTextEndOfLine:v}=$(),{printClass:b}=ur(),{printOpaqueType:y,printTypeAlias:_,printIntersectionType:E,printUnionType:w,printFunctionType:S,printTupleType:x,printIndexedAccessType:T}=ir(),{printInterface:D}=cr(),{printTypeParameter:A,printTypeParameters:k}=or(),{printExportDeclaration:O,printExportAllDeclaration:N}=dr(),{printArrayItems:I}=Xn(),{printObject:M}=pr(),{printPropertyKey:R}=ar(),{printOptionalToken:P,printTypeAnnotation:L,printRestSpread:F}=Qn();function B(e,t,c){let C=e.getValue(),B=t.semi?";":"",U=[];switch(C.type){case"DeclareClass":return j(e,b(e,t,c));case"DeclareFunction":return j(e,["function ",c("id"),C.predicate?" ":"",c("predicate"),B]);case"DeclareModule":return j(e,["module ",c("id")," ",c("body")]);case"DeclareModuleExports":return j(e,["module.exports",": ",c("typeAnnotation"),B]);case"DeclareVariable":return j(e,["var ",c("id"),B]);case"DeclareOpaqueType":return j(e,y(e,t,c));case"DeclareInterface":return j(e,D(e,t,c));case"DeclareTypeAlias":return j(e,_(e,t,c));case"DeclareExportDeclaration":return j(e,O(e,t,c));case"DeclareExportAllDeclaration":return j(e,N(e,t,c));case"OpaqueType":return y(e,t,c);case"TypeAlias":return _(e,t,c);case"IntersectionTypeAnnotation":return E(e,t,c);case"UnionTypeAnnotation":return w(e,t,c);case"FunctionTypeAnnotation":return S(e,t,c);case"TupleTypeAnnotation":return x(e,t,c);case"GenericTypeAnnotation":return[c("id"),k(e,t,c,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return T(e,t,c);case"TypeAnnotation":return c("typeAnnotation");case"TypeParameter":return A(e,t,c);case"TypeofTypeAnnotation":return["typeof ",c("argument")];case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return[c("elementType"),"[]"];case"BooleanLiteralTypeAnnotation":return String(C.value);case"EnumDeclaration":return["enum ",c("id")," ",c("body")];case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":if("EnumSymbolBody"===C.type||C.explicitType){let e=null;switch(C.type){case"EnumBooleanBody":e="boolean";break;case"EnumNumberBody":e="number";break;case"EnumStringBody":e="string";break;case"EnumSymbolBody":e="symbol";break}U.push("of ",e," ")}if(0!==C.members.length||C.hasUnknownMembers){let n=C.members.length>0?[a,I(e,t,"members",c),C.hasUnknownMembers||f(t)?",":""]:[];U.push(l(["{",u([...n,...C.hasUnknownMembers?[a,"..."]:[]]),r(e,t,!0),a,"}"]))}else U.push(l(["{",r(e,t),s,"}"]));return U;case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return[c("id")," = ","object"==typeof C.init?c("init"):String(C.init)];case"EnumDefaultedMember":return c("id");case"FunctionTypeParam":{let t=C.name?c("name"):e.getParentNode().this===C?"this":"";return[t,P(e),t?": ":"",c("typeAnnotation")]}case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return D(e,t,c);case"ClassImplements":case"InterfaceExtends":return[c("id"),c("typeParameters")];case"NullableTypeAnnotation":return["?",c("typeAnnotation")];case"Variance":{let{kind:e}=C;return n.ok("plus"===e||"minus"===e),"plus"===e?"+":"-"}case"ObjectTypeCallProperty":return C.static&&U.push("static "),U.push(c("value")),U;case"ObjectTypeIndexer":return[C.static?"static ":"",C.variance?c("variance"):"","[",c("id"),C.id?": ":"",c("key"),"]: ",c("value")];case"ObjectTypeProperty":{let n="";return C.proto?n="proto ":C.static&&(n="static "),[n,p(C)?C.kind+" ":"",C.variance?c("variance"):"",R(e,t,c),P(e),d(C)?"":": ",c("value")]}case"ObjectTypeAnnotation":return M(e,t,c);case"ObjectTypeInternalSlot":return[C.static?"static ":"","[[",c("id"),"]]",P(e),C.method?"":": ",c("value")];case"ObjectTypeSpreadProperty":return F(e,t,c);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[c("qualification"),".",c("id")];case"StringLiteralTypeAnnotation":return v(i(h(C),t));case"NumberLiteralTypeAnnotation":n.strictEqual(typeof C.value,"number");case"BigIntLiteralTypeAnnotation":return C.extra?o(C.extra.raw):o(C.raw);case"TypeCastExpression":return["(",c("expression"),L(e,t,c),")"];case"TypeParameterDeclaration":case"TypeParameterInstantiation":{let n=k(e,t,c,"params");if("flow"===t.parser){let e=m(C),r=g(C),i=t.originalText.lastIndexOf("/*",e),o=t.originalText.indexOf("*/",r);if(-1!==i&&-1!==o){let e=t.originalText.slice(i+2,o).trim();if(e.startsWith("::")&&!e.includes("/*")&&!e.includes("*/"))return["/*:: ",n," */"]}}return n}case"InferredPredicate":return"%checks";case"DeclaredPredicate":return["%checks(",c("value"),")"];case"AnyTypeAnnotation":return"any";case"BooleanTypeAnnotation":return"boolean";case"BigIntTypeAnnotation":return"bigint";case"NullLiteralTypeAnnotation":return"null";case"NumberTypeAnnotation":return"number";case"SymbolTypeAnnotation":return"symbol";case"StringTypeAnnotation":return"string";case"VoidTypeAnnotation":return"void";case"ThisTypeAnnotation":return"this";case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"MemberTypeAnnotation":case"Type":throw new Error("unprintable type: "+JSON.stringify(C.type))}}function j(e,t){let r=c(e);return r?(n.strictEqual(r.type,"DeclareExportDeclaration"),t):["declare ",t]}t.exports={printFlow:B}}}),fr=_({"src/language-js/utils/is-ts-keyword-type.js"(e,t){function n(e){let{type:t}=e;return t.startsWith("TS")&&t.endsWith("Keyword")}C(),t.exports=n}}),mr=_({"src/language-js/print/ternary.js"(e,t){C();var{hasNewlineInRange:n}=ge(),{isJsxNode:r,getComments:i,isCallExpression:o,isMemberExpression:a,isTSTypeExpression:s}=un(),{locStart:l,locEnd:u}=Ut(),c=sn(),{builders:{line:d,softline:p,group:h,indent:f,align:m,ifBreak:g,dedent:v,breakParent:b}}=Y();function y(e){let t=[e];for(let n=0;nI[e]===S),R=I.type===S.type&&!M,P=0;do{E=s||S,s=e.getParentNode(P),P++}while(s&&s.type===S.type&&D.every(e=>s[e]!==E));let L=s||I,F=E;if(x&&(r(S[D[0]])||r(A)||r(k)||y(F))){N=!0,R=!0;let e=e=>[g("("),f([p,e]),p,g(")")],t=e=>"NullLiteral"===e.type||"Literal"===e.type&&null===e.value||"Identifier"===e.type&&"undefined"===e.name;O.push(" ? ",t(A)?o(C):e(o(C))," : ",k.type===S.type||t(k)?o(T):e(o(T)))}else{let e=[d,"? ",A.type===S.type?g("","("):"",m(2,o(C)),A.type===S.type?g("",")"):"",d,": ",k.type===S.type?o(T):m(2,o(T))];O.push(I.type!==S.type||I[T]===S||M?e:t.useTabs?v(f(e)):m(Math.max(0,t.tabWidth-2),e))}let B=[...D.map(e=>i(S[e])),i(A),i(k)].flat().some(e=>c(e)&&n(t.originalText,l(e),u(e))),j=e=>I===L?h(e,{shouldBreak:B}):B?[e,b]:e,U=!N&&(a(I)||"NGPipeExpression"===I.type&&I.left===S)&&!I.computed,z=w(e),q=j([_(e,t,o),R?O:f(O),x&&U&&!z?p:""]);return M||z?h([f([p,q]),p]):q}t.exports={printTernary:S}}}),gr=_({"src/language-js/print/statement.js"(e,t){C();var{builders:{hardline:n}}=Y(),r=$n(),{getLeftSidePathName:i,hasNakedLeftSide:o,isJsxNode:a,isTheOnlyJsxElementInMarkdown:s,hasComment:l,CommentCheckFlags:u,isNextLineEmpty:c}=un(),{shouldPrintParamsWithoutParens:d}=sr();function p(e,t,r,i){let o=e.getValue(),a=[],d="ClassBody"===o.type,p=h(o[i]);return e.each((e,i,o)=>{let h=e.getValue();if("EmptyStatement"===h.type)return;let m=r();t.semi||d||s(t,e)||!f(e,t)?a.push(m):l(h,u.Leading)?a.push(r([],{needsSemi:!0})):a.push(";",m),!t.semi&&d&&b(h)&&y(h,o[i+1])&&a.push(";"),h!==p&&(a.push(n),c(h,t)&&a.push(n))},i),a}function h(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if("EmptyStatement"!==n.type)return n}}function f(e,t){return"ExpressionStatement"===e.getNode().type&&e.call(e=>m(e,t),"expression")}function m(e,t){let n=e.getValue();switch(n.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!d(e,t))return!0;break;case"UnaryExpression":{let{prefix:e,operator:t}=n;if(e&&("+"===t||"-"===t))return!0;break}case"BindExpression":if(!n.object)return!0;break;case"Literal":if(n.regex)return!0;break;default:if(a(n))return!0}return!!r(e,t)||!!o(n)&&e.call(e=>m(e,t),...i(e,n))}function g(e,t,n){return p(e,t,n,"body")}function v(e,t,n){return p(e,t,n,"consequent")}var b=e=>{let{type:t}=e;return"ClassProperty"===t||"PropertyDefinition"===t||"ClassPrivateProperty"===t||"ClassAccessorProperty"===t||"AccessorProperty"===t||"TSAbstractPropertyDefinition"===t||"TSAbstractAccessorProperty"===t};function y(e,t){let{type:n,name:r}=e.key;if(!e.computed&&"Identifier"===n&&("static"===r||"get"===r||"set"===r||"accessor"===r)&&!e.value&&!e.typeAnnotation)return!0;if(!t||t.static||t.accessibility)return!1;if(!t.computed){let e=t.key&&t.key.name;if("in"===e||"instanceof"===e)return!0}if(b(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||"get"===t.kind||"set"===t.kind)return!1;let e=t.value?t.value.generator:t.generator;return!(!t.computed&&!e)}case"TSIndexSignature":return!0}return!1}t.exports={printBody:g,printSwitchCaseConsequent:v}}}),vr=_({"src/language-js/print/block.js"(e,t){C();var{printDanglingComments:n}=Wt(),{isNonEmptyArray:r}=ge(),{builders:{hardline:i,indent:o}}=Y(),{hasComment:a,CommentCheckFlags:s,isNextLineEmpty:l}=un(),{printHardlineAfterHeritage:u}=ur(),{printBody:c}=gr();function d(e,t,n){let a=e.getValue(),s=[];if("StaticBlock"===a.type&&s.push("static "),"ClassBody"===a.type&&r(a.body)){let t=e.getParentNode();s.push(u(t))}s.push("{");let l=p(e,t,n);if(l)s.push(o([i,l]),i);else{let t=e.getParentNode(),n=e.getParentNode(1);"ArrowFunctionExpression"===t.type||"FunctionExpression"===t.type||"FunctionDeclaration"===t.type||"ObjectMethod"===t.type||"ClassMethod"===t.type||"ClassPrivateMethod"===t.type||"ForStatement"===t.type||"WhileStatement"===t.type||"DoWhileStatement"===t.type||"DoExpression"===t.type||"CatchClause"===t.type&&!n.finalizer||"TSModuleDeclaration"===t.type||"TSDeclareFunction"===t.type||"StaticBlock"===a.type||"ClassBody"===a.type||s.push(i)}return s.push("}"),s}function p(e,t,o){let u=e.getValue(),d=r(u.directives),p=u.body.some(e=>"EmptyStatement"!==e.type),h=a(u,s.Dangling);if(!d&&!p&&!h)return"";let f=[];if(d&&e.each((e,n,r)=>{f.push(o()),(n"]),n=[d("("),u([s,C("expression")]),s,d(")")];return e?c([[t,C("expression")],[t,l(n,{shouldBreak:!0})],[t,C("expression")]]):l([t,C("expression")])}case"TSDeclareFunction":return R(e,C,t);case"TSExportAssignment":return["export = ",C("expression"),V];case"TSModuleBlock":return F(e,t,C);case"TSInterfaceBody":case"TSTypeLiteral":return A(e,t,C);case"TSTypeAliasDeclaration":return B(e,t,C);case"TSQualifiedName":return i(".",[C("left"),C("right")]);case"TSAbstractMethodDefinition":case"TSDeclareMethod":return O(e,t,C);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return k(e,t,C);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return Y.push(C("expression")),G.typeParameters&&Y.push(C("typeParameters")),Y;case"TSTemplateLiteralType":return T(e,C,t);case"TSNamedTupleMember":return[C("label"),G.optional?"?":"",": ",C("elementType")];case"TSRestType":return["...",C("typeAnnotation")];case"TSOptionalType":return[C("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return L(e,t,C);case"TSClassImplements":return[C("expression"),C("typeParameters")];case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return I(e,t,C,"params");case"TSTypeParameter":return N(e,t,C);case"TSSatisfiesExpression":case"TSAsExpression":{let t="TSAsExpression"===G.type?"as":"satisfies";Y.push(C("expression"),` ${t} `,C("typeAnnotation"));let n=e.getParentNode();return m(n)&&n.callee===G||g(n)&&n.object===G?l([u([s,...Y]),s]):Y}case"TSArrayType":return[C("elementType"),"[]"];case"TSPropertySignature":return G.readonly&&Y.push("readonly "),Y.push(M(e,t,C),_(e)),G.typeAnnotation&&Y.push(": ",C("typeAnnotation")),G.initializer&&Y.push(" = ",C("initializer")),Y;case"TSParameterProperty":return G.accessibility&&Y.push(G.accessibility+" "),G.export&&Y.push("export "),G.static&&Y.push("static "),G.override&&Y.push("override "),G.readonly&&Y.push("readonly "),Y.push(C("parameter")),Y;case"TSTypeQuery":return["typeof ",C("exprName"),C("typeParameters")];case"TSIndexSignature":{let n=e.getParentNode(),r=G.parameters.length>1?d(f(t)?",":""):"",o=l([u([s,i([", ",s],e.map(C,"parameters"))]),r,s]);return[G.export?"export ":"",G.accessibility?[G.accessibility," "]:"",G.static?"static ":"",G.readonly?"readonly ":"",G.declare?"declare ":"","[",G.parameters?o:"",G.typeAnnotation?"]: ":"]",G.typeAnnotation?C("typeAnnotation"):"","ClassBody"===n.type?V:""]}case"TSTypePredicate":return[G.asserts?"asserts ":"",C("parameterName"),G.typeAnnotation?[" is ",C("typeAnnotation")]:""];case"TSNonNullExpression":return[C("expression"),"!"];case"TSImportType":return[G.isTypeOf?"typeof ":"","import(",C(G.parameter?"parameter":"argument"),")",G.qualifier?[".",C("qualifier")]:"",I(e,t,C,"typeParameters")];case"TSLiteralType":return C("literal");case"TSIndexedAccessType":return H(e,t,C);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if("TSConstructorType"===G.type&&G.abstract&&Y.push("abstract "),"TSCallSignatureDeclaration"!==G.type&&Y.push("new "),Y.push(l(S(e,C,t,!1,!0))),G.returnType||G.typeAnnotation){let e="TSConstructorType"===G.type;Y.push(e?" => ":": ",C("returnType"),C("typeAnnotation"))}return Y;case"TSTypeOperator":return[G.operator," ",C("typeAnnotation")];case"TSMappedType":{let i=r(t.originalText,b(G),y(G));return l(["{",u([t.bracketSpacing?o:s,C("typeParameter"),G.optional?h(G.optional,"?"):"",G.typeAnnotation?": ":"",C("typeAnnotation"),d(V)]),n(e,t,!0),t.bracketSpacing?o:s,"}"],{shouldBreak:i})}case"TSMethodSignature":{let n=G.kind&&"method"!==G.kind?G.kind+" ":"";Y.push(G.accessibility?[G.accessibility," "]:"",n,G.export?"export ":"",G.static?"static ":"",G.readonly?"readonly ":"",G.abstract?"abstract ":"",G.declare?"declare ":"",G.computed?"[":"",C("key"),G.computed?"]":"",_(e));let r=S(e,C,t,!1,!0),i=G.returnType?"returnType":"typeAnnotation",o=G[i],a=o?C(i):"",s=x(G,a);return Y.push(s?l(r):r),o&&Y.push(": ",l(a)),l(Y)}case"TSNamespaceExportDeclaration":return Y.push("export as namespace ",C("id")),t.semi&&Y.push(";"),l(Y);case"TSEnumDeclaration":return G.declare&&Y.push("declare "),G.modifiers&&Y.push(E(e,t,C)),G.const&&Y.push("const "),Y.push("enum ",C("id")," "),0===G.members.length?Y.push(l(["{",n(e,t),s,"}"])):Y.push(l(["{",u([a,D(e,t,"members",C),f(t,"es5")?",":""]),n(e,t,!0),a,"}"])),Y;case"TSEnumMember":return G.computed?Y.push("[",C("id"),"]"):Y.push(C("id")),G.initializer&&Y.push(" = ",C("initializer")),Y;case"TSImportEqualsDeclaration":return G.isExport&&Y.push("export "),Y.push("import "),G.importKind&&"value"!==G.importKind&&Y.push(G.importKind," "),Y.push(C("id")," = ",C("moduleReference")),t.semi&&Y.push(";"),l(Y);case"TSExternalModuleReference":return["require(",C("expression"),")"];case"TSModuleDeclaration":{let n=e.getParentNode(),r=p(G.id),i="TSModuleDeclaration"===n.type,o=G.body&&"TSModuleDeclaration"===G.body.type;if(i)Y.push(".");else{G.declare&&Y.push("declare "),Y.push(E(e,t,C));let n=t.originalText.slice(b(G),b(G.id));"Identifier"===G.id.type&&"global"===G.id.name&&!/namespace|module/.test(n)||Y.push(r||/(?:^|\s)module(?:\s|$)/.test(n)?"module ":"namespace ")}return Y.push(C("id")),o?Y.push(C("body")):G.body?Y.push(" ",l(C("body"))):Y.push(V),Y}case"TSConditionalType":return w(e,t,C);case"TSInferType":return["infer"," ",C("typeParameter")];case"TSIntersectionType":return j(e,t,C);case"TSUnionType":return U(e,t,C);case"TSFunctionType":return z(e,t,C);case"TSTupleType":return q(e,t,C);case"TSTypeReference":return[C("typeName"),I(e,t,C,"typeParameters")];case"TSTypeAnnotation":return C("typeAnnotation");case"TSEmptyBodyFunctionExpression":return P(e,t,C);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return $(e,C,"?");case"TSJSDocNonNullableType":return $(e,C,"!");case"TSInstantiationExpression":return[C("expression"),C("typeParameters")];default:throw new Error(`Unknown TypeScript node type: ${JSON.stringify(G.type)}.`)}}t.exports={printTypescript:G}}}),yr=_({"src/language-js/print/comment.js"(e,t){C();var{hasNewline:n}=ge(),{builders:{join:r,hardline:i},utils:{replaceTextEndOfLine:o}}=Y(),{isLineComment:a}=un(),{locStart:s,locEnd:l}=Ut(),u=sn();function c(e,t){let r=e.getValue();if(a(r))return t.originalText.slice(s(r),l(r)).trimEnd();if(u(r)){if(d(r)){let e=p(r);return r.trailing&&!n(t.originalText,s(r),{backwards:!0})?[i,e]:e}let e=l(r),a="*-/"===t.originalText.slice(e-3,e);return["/*",o(r.value),a?"*-/":"*/"]}throw new Error("Not a comment: "+JSON.stringify(r))}function d(e){let t=`*${e.value}*`.split("\n");return t.length>1&&t.every(e=>"*"===e.trim()[0])}function p(e){let t=e.value.split("\n");return["/*",r(i,t.map((e,n)=>0===n?e.trimEnd():" "+(n{let{marker:t}=e;return t===A});return[d("expression"),_(t,e)?"":f,r?[" ",r]:""]}case"ParenthesizedExpression":return b(h.expression)||"ObjectExpression"!==h.expression.type&&"ArrayExpression"!==h.expression.type?l(["(",u([s,d("expression")]),s,")"]):["(",d("expression"),")"];case"AssignmentExpression":return pe(e,t,d);case"VariableDeclarator":return de(e,t,d);case"BinaryExpression":case"LogicalExpression":return he(e,t,d);case"AssignmentPattern":return[d("left")," = ",d("right")];case"OptionalMemberExpression":case"MemberExpression":return me(e,t,d);case"MetaProperty":return[d("meta"),".",d("property")];case"BindExpression":return h.object&&m.push(d("object")),m.push(l(u([s,U(e,t,d)]))),m;case"Identifier":return[h.name,j(e),$(e),z(e,t,d)];case"V8IntrinsicIdentifier":return["%",h.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":return H(e,t,d);case"FunctionDeclaration":case"FunctionExpression":return oe(e,d,t,p);case"ArrowFunctionExpression":return ae(e,t,d,p);case"YieldExpression":return m.push("yield"),h.delegate&&m.push("*"),h.argument&&m.push(" ",d("argument")),m;case"AwaitExpression":if(m.push("await"),h.argument){m.push(" ",d("argument"));let t=e.getParentNode();if(T(t)&&t.callee===h||D(t)&&t.object===h){m=[u([s,...m]),s];let t=e.findAncestor(e=>"AwaitExpression"===e.type||"BlockStatement"===e.type);if(!t||"AwaitExpression"!==t.type)return l(m)}}return m;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return W(e,t,d);case"ExportAllDeclaration":return K(e,t,d);case"ImportDeclaration":return V(e,t,d);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return Q(e,t,d);case"ImportAttribute":return[d("key"),": ",d("value")];case"Import":return"import";case"BlockStatement":case"StaticBlock":case"ClassBody":return ve(e,t,d);case"ThrowStatement":return ue(e,t,d);case"ReturnStatement":return le(e,t,d);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return ce(e,t,d);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return ee(e,t,d);case"ObjectProperty":case"Property":return h.method||"get"===h.kind||"set"===h.kind?se(e,t,d):ie(e,t,d);case"ObjectMethod":return se(e,t,d);case"Decorator":return["@",d("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return J(e,t,d);case"SequenceExpression":{let t=e.getParentNode(0);if("ExpressionStatement"===t.type||"ForStatement"===t.type){let t=[];return e.each((e,n)=>{0===n?t.push(d()):t.push(",",u([o,d()]))},"expressions"),l(t)}return l(i([",",o],e.map(d,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[d("value"),f];case"DirectiveLiteral":return G(h.extra.raw,t);case"UnaryExpression":return m.push(h.operator),/[a-z]$/.test(h.operator)&&m.push(" "),b(h.argument)?m.push(l(["(",u([s,d("argument")]),s,")"])):m.push(d("argument")),m;case"UpdateExpression":return m.push(d("argument"),h.operator),h.prefix&&m.reverse(),m;case"ConditionalExpression":return X(e,t,d);case"VariableDeclaration":{let t,n=e.map(d,"declarations"),r=e.getParentNode(),i="ForStatement"===r.type||"ForInStatement"===r.type||"ForOfStatement"===r.type,s=h.declarations.some(e=>e.init);return 1!==n.length||b(h.declarations[0])?n.length>0&&(t=u(n[0])):t=n[0],m=[h.declare?"declare ":"",h.kind,t?[" ",t]:"",u(n.slice(1).map(e=>[",",s&&!i?a:o,e]))],i&&r.body!==h||m.push(f),l(m)}case"WithStatement":return l(["with (",d("object"),")",q(h.body,d("body"))]);case"IfStatement":{let r=q(h.consequent,d("consequent")),i=l(["if (",l([u([s,d("test")]),s]),")",r]);if(m.push(i),h.alternate){let r=b(h.consequent,y.Trailing|y.Line)||S(h),i="BlockStatement"===h.consequent.type&&!r;m.push(i?" ":a),b(h,y.Dangling)&&m.push(n(e,t,!0),r?a:" "),m.push("else",l(q(h.alternate,d("alternate"),"IfStatement"===h.alternate.type)))}return m}case"ForStatement":{let r=q(h.body,d("body")),i=n(e,t,!0),a=i?[i,s]:"";return h.init||h.test||h.update?[a,l(["for (",l([u([s,d("init"),";",o,d("test"),";",o,d("update")]),s]),")",r])]:[a,l(["for (;;)",r])]}case"WhileStatement":return l(["while (",l([u([s,d("test")]),s]),")",q(h.body,d("body"))]);case"ForInStatement":return l(["for (",d("left")," in ",d("right"),")",q(h.body,d("body"))]);case"ForOfStatement":return l(["for",h.await?" await":""," (",d("left")," of ",d("right"),")",q(h.body,d("body"))]);case"DoWhileStatement":{let e=q(h.body,d("body"));return m=[l(["do",e])],"BlockStatement"===h.body.type?m.push(" "):m.push(a),m.push("while (",l([u([s,d("test")]),s]),")",f),m}case"DoExpression":return[h.async?"async ":"","do ",d("body")];case"BreakStatement":return m.push("break"),h.label&&m.push(" ",d("label")),m.push(f),m;case"ContinueStatement":return m.push("continue"),h.label&&m.push(" ",d("label")),m.push(f),m;case"LabeledStatement":return"EmptyStatement"===h.body.type?[d("label"),":;"]:[d("label"),": ",d("body")];case"TryStatement":return["try ",d("block"),h.handler?[" ",d("handler")]:"",h.finalizer?[" finally ",d("finalizer")]:""];case"CatchClause":if(h.param){let e=b(h.param,e=>!N(e)||e.leading&&r(t.originalText,O(e))||e.trailing&&r(t.originalText,k(e),{backwards:!0})),n=d("param");return["catch ",e?["(",u([s,n]),s,") "]:["(",n,") "],d("body")]}return["catch ",d("body")];case"SwitchStatement":return[l(["switch (",u([s,d("discriminant")]),s,")"])," {",h.cases.length>0?u([a,i(a,e.map((e,n,r)=>{let i=e.getValue();return[d(),n!==r.length-1&&w(i,t)?a:""]},"cases"))]):"",a,"}"];case"SwitchCase":{h.test?m.push("case ",d("test"),":"):m.push("default:"),b(h,y.Dangling)&&m.push(" ",n(e,t,!0));let r=h.consequent.filter(e=>"EmptyStatement"!==e.type);if(r.length>0){let n=fe(e,t,d);m.push(1===r.length&&"BlockStatement"===r[0].type?[" ",n]:u([a,n]))}return m}case"DebuggerStatement":return["debugger",f];case"ClassDeclaration":case"ClassExpression":return te(e,t,d);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return ne(e,t,d);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return re(e,t,d);case"TemplateElement":return c(h.value.raw);case"TemplateLiteral":return Z(e,d,t);case"TaggedTemplateExpression":return[d("tag"),d("typeParameters"),d("quasi")];case"PrivateIdentifier":return["#",d("name")];case"PrivateName":return["#",d("id")];case"InterpreterDirective":return m.push("#!",h.value,a),w(h,t)&&m.push(a),m;case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":{m.push("module {");let e=d("body");return e&&m.push(u([a,e]),a),m.push("}"),m}default:throw new Error("unknown type: "+JSON.stringify(h.type))}}function xe(e){return e.type&&!N(e)&&!E(e)&&"EmptyStatement"!==e.type&&"TemplateElement"!==e.type&&"Import"!==e.type&&"TSEmptyBodyFunctionExpression"!==e.type}t.exports={preprocess:g,print:we,embed:d,insertPragma:h,massageAstNode:p,hasPrettierIgnore(e){return x(e)||L(e)},willPrintOwnComments:f.willPrintOwnComments,canAttachComment:xe,printComment:ye,isBlockComment:N,handleComments:{avoidAstMutation:!0,ownLine:f.handleOwnLineComment,endOfLine:f.handleEndOfLineComment,remaining:f.handleRemainingComment},getCommentChildNodes:f.getCommentChildNodes}}}),wr=_({"src/language-js/printer-estree-json.js"(e,t){C();var{builders:{hardline:n,indent:r,join:i}}=Y(),o=Gn();function a(e,t,o){let a=e.getValue();switch(a.type){case"JsonRoot":return[o("node"),n];case"ArrayExpression":{if(0===a.elements.length)return"[]";let t=e.map(()=>null===e.getValue()?"null":o(),"elements");return["[",r([n,i([",",n],t)]),n,"]"]}case"ObjectExpression":return 0===a.properties.length?"{}":["{",r([n,i([",",n],e.map(o,"properties"))]),n,"}"];case"ObjectProperty":return[o("key"),": ",o("value")];case"UnaryExpression":return["+"===a.operator?"":a.operator,o("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return a.value?"true":"false";case"StringLiteral":return JSON.stringify(a.value);case"NumericLiteral":return s(e)?JSON.stringify(String(a.value)):JSON.stringify(a.value);case"Identifier":return s(e)?JSON.stringify(a.name):a.name;case"TemplateLiteral":return o(["quasis",0]);case"TemplateElement":return JSON.stringify(a.value.cooked);default:throw new Error("unknown type: "+JSON.stringify(a.type))}}function s(e){return"key"===e.getName()&&"ObjectProperty"===e.getParentNode().type}var l=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function u(e,t){let{type:n}=e;if("ObjectProperty"!==n){if("UnaryExpression"===n&&"+"===e.operator)return t.argument;if("ArrayExpression"!==n)return"TemplateLiteral"===n?{type:"StringLiteral",value:e.quasis[0].value.cooked}:void 0;for(let[n,r]of e.elements.entries())null===r&&t.elements.splice(n,0,{type:"NullLiteral"})}else{let{key:n}=e;"Identifier"===n.type?t.key={type:"StringLiteral",value:n.name}:"NumericLiteral"===n.type&&(t.key={type:"StringLiteral",value:String(n.value)})}}u.ignoredProperties=l,t.exports={preprocess:o,print:a,massageAstNode:u}}}),Sr=_({"src/common/common-options.js"(e,t){C();var n="Common";t.exports={bracketSpacing:{since:"0.0.0",category:n,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:n,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:n,type:"choice",default:[{since:"1.8.2",value:!0},{since:"1.9.0",value:"preserve"}],description:"How to wrap prose.",choices:[{since:"1.9.0",value:"always",description:"Wrap prose if it exceeds the print width."},{since:"1.9.0",value:"never",description:"Do not wrap prose."},{since:"1.9.0",value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{since:"2.4.0",category:n,type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{since:"2.6.0",category:n,type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}}}}),xr=_({"src/language-js/options.js"(e,t){C();var n=Sr(),r="JavaScript";t.exports={arrowParens:{since:"1.9.0",category:r,type:"choice",default:[{since:"1.9.0",value:"avoid"},{since:"2.0.0",value:"always"}],description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:n.bracketSameLine,bracketSpacing:n.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:r,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{since:"1.0.0",category:r,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:n.singleQuote,jsxSingleQuote:{since:"1.15.0",category:r,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:r,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{since:"0.0.0",category:r,type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"},{since:"2.0.0",value:"es5"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."},{value:"all",description:"Trailing commas wherever possible (including function arguments)."}]},singleAttributePerLine:n.singleAttributePerLine}}}),Cr=_({"src/language-js/parse/parsers.js"(){C()}}),Tr=_({"node_modules/linguist-languages/data/JavaScript.json"(e,t){t.exports={name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".jsx",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],languageId:183}}}),Dr=_({"node_modules/linguist-languages/data/TypeScript.json"(e,t){t.exports={name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378}}}),Ar=_({"node_modules/linguist-languages/data/TSX.json"(e,t){t.exports={name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924}}}),kr=_({"node_modules/linguist-languages/data/JSON.json"(e,t){t.exports={name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","mcmod.info"],languageId:174}}}),Or=_({"node_modules/linguist-languages/data/JSON with Comments.json"(e,t){t.exports={name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[".babelrc",".devcontainer.json",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","api-extractor.json","devcontainer.json","jsconfig.json","language-configuration.json","tsconfig.json","tslint.json"],languageId:423}}}),Nr=_({"node_modules/linguist-languages/data/JSON5.json"(e,t){t.exports={name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175}}}),Ir=_({"src/language-js/index.js"(e,t){C();var n=tn(),r=Er(),i=wr(),o=xr(),a=Cr(),s=[n(Tr(),e=>({since:"0.0.0",parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],interpreters:[...e.interpreters,"zx"],extensions:[...e.extensions.filter(e=>".jsx"!==e),".wxs"]})),n(Tr(),()=>({name:"Flow",since:"0.0.0",parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]})),n(Tr(),()=>({name:"JSX",since:"0.0.0",parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],aliases:void 0,filenames:void 0,extensions:[".jsx"],group:"JavaScript",interpreters:void 0,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0})),n(Dr(),()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]})),n(Ar(),()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]})),n(kr(),()=>({name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"]})),n(kr(),e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],extensions:e.extensions.filter(e=>".jsonl"!==e)})),n(Or(),e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:[...e.filenames,".eslintrc",".swcrc"]})),n(Nr(),()=>({since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]}))],l={estree:r,"estree-json":i};t.exports={languages:s,options:o,printers:l,parsers:a}}}),Mr=_({"src/language-css/clean.js"(e,t){C();var{isFrontMatterNode:n}=ge(),r=N(),i=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma"]);function o(e,t,i){if(n(e)&&"yaml"===e.lang&&delete t.value,"css-comment"===e.type&&"css-root"===i.type&&i.nodes.length>0&&((i.nodes[0]===e||n(i.nodes[0])&&i.nodes[1]===e)&&(delete t.text,/^\*\s*@(?:format|prettier)\s*$/.test(e.text))||"css-root"===i.type&&r(i.nodes)===e))return null;if("value-root"===e.type&&delete t.text,("media-query"===e.type||"media-query-list"===e.type||"media-feature-expression"===e.type)&&delete t.value,"css-rule"===e.type&&delete t.params,"selector-combinator"===e.type&&(t.value=t.value.replace(/\s+/g," ")),"media-feature"===e.type&&(t.value=t.value.replace(/ /g,"")),("value-word"===e.type&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(t.value.replace().toLowerCase()))||"media-feature"===e.type||"selector-root-invalid"===e.type||"selector-pseudo"===e.type)&&(t.value=t.value.toLowerCase()),"css-decl"===e.type&&(t.prop=t.prop.toLowerCase()),("css-atrule"===e.type||"css-import"===e.type)&&(t.name=t.name.toLowerCase()),"value-number"===e.type&&(t.unit=t.unit.toLowerCase()),("media-feature"===e.type||"media-keyword"===e.type||"media-type"===e.type||"media-unknown"===e.type||"media-url"===e.type||"media-value"===e.type||"selector-attribute"===e.type||"selector-string"===e.type||"selector-class"===e.type||"selector-combinator"===e.type||"value-string"===e.type)&&t.value&&(t.value=a(t.value)),"selector-attribute"===e.type&&(t.attribute=t.attribute.trim(),t.namespace&&"string"==typeof t.namespace&&(t.namespace=t.namespace.trim(),0===t.namespace.length&&(t.namespace=!0)),t.value&&(t.value=t.value.trim().replace(/^["']|["']$/g,""),delete t.quoted)),("media-value"===e.type||"media-type"===e.type||"value-number"===e.type||"selector-root-invalid"===e.type||"selector-class"===e.type||"selector-combinator"===e.type||"selector-tag"===e.type)&&t.value&&(t.value=t.value.replace(/([\d+.Ee-]+)([A-Za-z]*)/g,(e,t,n)=>{let r=Number(t);return Number.isNaN(r)?e:r+n.toLowerCase()})),"selector-tag"===e.type){let n=e.value.toLowerCase();["from","to"].includes(n)&&(t.value=n)}if("css-atrule"===e.type&&"supports"===e.name.toLowerCase()&&delete t.value,"selector-unknown"===e.type&&delete t.value,"value-comma_group"===e.type){let n=e.groups.findIndex(e=>"value-number"===e.type&&"..."===e.unit);-1!==n&&(t.groups[n].unit="",t.groups.splice(n+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}return"value-comma_group"===e.type&&e.groups.some(e=>"value-atword"===e.type&&e.value.endsWith("[")||"value-word"===e.type&&e.value.startsWith("]"))?{type:"value-atword",value:e.groups.map(e=>e.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}:void 0}function a(e){return e.replace(/'/g,'"').replace(/\\([^\dA-Fa-f])/g,"$1")}o.ignoredProperties=i,t.exports=o}}),Rr=_({"src/utils/front-matter/print.js"(e,t){C();var{builders:{hardline:n,markAsRoot:r}}=Y();function i(e,t){if("yaml"===e.lang){let i=e.value.trim(),o=i?t(i,{parser:"yaml"},{stripTrailingHardline:!0}):"";return r([e.startDelimiter,n,o,o?n:"",e.endDelimiter])}}t.exports=i}}),Pr=_({"src/language-css/embed.js"(e,t){C();var{builders:{hardline:n}}=Y(),r=Rr();function i(e,t,i){let o=e.getValue();if("front-matter"===o.type){let e=r(o,i);return e?[e,n]:""}}t.exports=i}}),Lr=_({"src/utils/front-matter/parse.js"(e,t){C();var n=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?.*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function r(e){let t=e.match(n);if(!t)return{content:e};let{startDelimiter:r,language:i,value:o="",endDelimiter:a}=t.groups,s=i.trim()||"yaml";if("+++"===r&&(s="toml"),"yaml"!==s&&r!==a)return{content:e};let[l]=t;return{frontMatter:{type:"front-matter",lang:s,value:o,startDelimiter:r,endDelimiter:a,raw:l.replace(/\n$/,"")},content:l.replace(/[^\n]/g," ")+e.slice(l.length)}}t.exports=r}}),Fr=_({"src/language-css/pragma.js"(e,t){C();var n=zn(),r=Lr();function i(e){return n.hasPragma(r(e).content)}function o(e){let{frontMatter:t,content:i}=r(e);return(t?t.raw+"\n\n":"")+n.insertPragma(i)}t.exports={hasPragma:i,insertPragma:o}}}),Br=_({"src/language-css/utils/index.js"(e,t){C();var n=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function r(e,t){let n,r=Array.isArray(t)?t:[t],i=-1;for(;n=e.getParentNode(++i);)if(r.includes(n.type))return i;return-1}function i(e,t){let n=r(e,t);return-1===n?null:e.getParentNode(n)}function o(e){var t;let n=i(e,"css-decl");return null==n||null===(t=n.prop)||void 0===t?void 0:t.toLowerCase()}var a=new Set(["initial","inherit","unset","revert"]);function s(e){return a.has(e.toLowerCase())}function l(e,t){let n=i(e,"css-atrule");return(null==n?void 0:n.name)&&n.name.toLowerCase().endsWith("keyframes")&&["from","to"].includes(t.toLowerCase())}function u(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()}function c(e,t){var n;let r=i(e,"value-func");return(null==r||null===(n=r.value)||void 0===n?void 0:n.toLowerCase())===t}function d(e){var t;let n=i(e,"css-rule"),r=null==n||null===(t=n.raws)||void 0===t?void 0:t.selector;return r&&(r.startsWith(":import")||r.startsWith(":export"))}function p(e,t){let n=Array.isArray(t)?t:[t],r=i(e,"css-atrule");return r&&n.includes(r.name.toLowerCase())}function h(e){let t=e.getValue(),n=i(e,"css-atrule");return"import"===(null==n?void 0:n.name)&&"url"===t.groups[0].value&&2===t.groups.length}function f(e){return"value-func"===e.type&&"url"===e.value.toLowerCase()}function m(e,t){var n;let r=null===(n=e.getParentNode())||void 0===n?void 0:n.nodes;return r&&r.indexOf(t)===r.length-1}function g(e){let{selector:t}=e;return!!t&&("string"==typeof t&&/^@.+:.*$/.test(t)||t.value&&/^@.+:.*$/.test(t.value))}function v(e){return"value-word"===e.type&&["from","through","end"].includes(e.value)}function b(e){return"value-word"===e.type&&["and","or","not"].includes(e.value)}function y(e){return"value-word"===e.type&&"in"===e.value}function _(e){return"value-operator"===e.type&&"*"===e.value}function E(e){return"value-operator"===e.type&&"/"===e.value}function w(e){return"value-operator"===e.type&&"+"===e.value}function S(e){return"value-operator"===e.type&&"-"===e.value}function x(e){return"value-operator"===e.type&&"%"===e.value}function T(e){return _(e)||E(e)||w(e)||S(e)||x(e)}function D(e){return"value-word"===e.type&&["==","!="].includes(e.value)}function A(e){return"value-word"===e.type&&["<",">","<=",">="].includes(e.value)}function k(e){return"css-atrule"===e.type&&["if","else","for","each","while"].includes(e.name)}function O(e){var t;return(null===(t=e.raws)||void 0===t?void 0:t.params)&&/^\(\s*\)$/.test(e.raws.params)}function N(e){return e.name.startsWith("prettier-placeholder")}function I(e){return e.prop.startsWith("@prettier-placeholder")}function M(e,t){return"$$"===e.value&&"value-func"===e.type&&"value-word"===(null==t?void 0:t.type)&&!t.raws.before}function R(e){var t,n;return"value-root"===(null===(t=e.value)||void 0===t?void 0:t.type)&&"value-value"===(null===(n=e.value.group)||void 0===n?void 0:n.type)&&"composes"===e.prop.toLowerCase()}function P(e){var t,n,r;return"value-paren_group"===(null===(t=e.value)||void 0===t||null===(n=t.group)||void 0===n||null===(r=n.group)||void 0===r?void 0:r.type)&&null!==e.value.group.group.open&&null!==e.value.group.group.close}function L(e){var t;return""===(null===(t=e.raws)||void 0===t?void 0:t.before)}function F(e){var t,n;return"value-comma_group"===e.type&&"value-colon"===(null===(t=e.groups)||void 0===t||null===(n=t[1])||void 0===n?void 0:n.type)}function B(e){var t;return"value-paren_group"===e.type&&(null===(t=e.groups)||void 0===t?void 0:t[0])&&F(e.groups[0])}function j(e){var t;let n=e.getValue();if(0===n.groups.length)return!1;let r=e.getParentNode(1);if(!B(n)&&(!r||!B(r)))return!1;let o=i(e,"css-decl");return!!(null!=o&&null!==(t=o.prop)&&void 0!==t&&t.startsWith("$")||B(r)||"value-func"===r.type)}function U(e){return"value-comment"===e.type&&e.inline}function z(e){return"value-word"===e.type&&"#"===e.value}function q(e){return"value-word"===e.type&&"{"===e.value}function H(e){return"value-word"===e.type&&"}"===e.value}function $(e){return["value-word","value-atword"].includes(e.type)}function G(e){return"value-colon"===(null==e?void 0:e.type)}function V(e,t){if(!F(t))return!1;let{groups:n}=t,r=n.indexOf(e);return-1!==r&&G(n[r+1])}function Y(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())}function W(e){return"value-func"===e.type&&n.has(e.value.toLowerCase())}function K(e){return/\/\//.test(e.split(/[\n\r]/).pop())}function Q(e){return"value-atword"===(null==e?void 0:e.type)&&e.value.startsWith("prettier-placeholder-")}function X(e,t){var n,r;if("("!==(null===(n=e.open)||void 0===n?void 0:n.value)||")"!==(null===(r=e.close)||void 0===r?void 0:r.value)||e.groups.some(e=>"value-comma_group"!==e.type))return!1;if("value-comma_group"===t.type){let n=t.groups.indexOf(e)-1,r=t.groups[n];if("value-word"===(null==r?void 0:r.type)&&"with"===r.value)return!0}return!1}function Z(e){var t,n;return"value-paren_group"===e.type&&"("===(null===(t=e.open)||void 0===t?void 0:t.value)&&")"===(null===(n=e.close)||void 0===n?void 0:n.value)}t.exports={getAncestorCounter:r,getAncestorNode:i,getPropOfDeclNode:o,maybeToLowerCase:u,insideValueFunctionNode:c,insideICSSRuleNode:d,insideAtRuleNode:p,insideURLFunctionInImportAtRuleNode:h,isKeyframeAtRuleKeywords:l,isWideKeywords:s,isLastNode:m,isSCSSControlDirectiveNode:k,isDetachedRulesetDeclarationNode:g,isRelationalOperatorNode:A,isEqualityOperatorNode:D,isMultiplicationNode:_,isDivisionNode:E,isAdditionNode:w,isSubtractionNode:S,isModuloNode:x,isMathOperatorNode:T,isEachKeywordNode:y,isForKeywordNode:v,isURLFunctionNode:f,isIfElseKeywordNode:b,hasComposesNode:R,hasParensAroundNode:P,hasEmptyRawBefore:L,isDetachedRulesetCallNode:O,isTemplatePlaceholderNode:N,isTemplatePropNode:I,isPostcssSimpleVarNode:M,isKeyValuePairNode:F,isKeyValuePairInParenGroupNode:B,isKeyInValuePairNode:V,isSCSSMapItemNode:j,isInlineValueCommentNode:U,isHashNode:z,isLeftCurlyBraceNode:q,isRightCurlyBraceNode:H,isWordNode:$,isColonNode:G,isMediaAndSupportsKeywords:Y,isColorAdjusterFuncNode:W,lastLineHasInlineComment:K,isAtWordPlaceholderNode:Q,isConfigurationNode:X,isParenGroupNode:Z}}}),jr=_({"src/utils/line-column-to-index.js"(e,t){C(),t.exports=function(e,t){let n=0;for(let r=0;r0?d:""]}case"css-comment":{let e=o.inline||o.raws.inline,n=t.originalText.slice(ye(o),_e(o));return e?n.trimEnd():n}case"css-rule":return[r("selector"),o.important?" !important":"",o.nodes?[o.selector&&"selector-unknown"===o.selector.type&&fe(o.selector.value)?c:" ","{",o.nodes.length>0?m([d,Te(e,t,r)]):"",d,"}",F(o)?";":""]:";"];case"css-decl":{let n=e.getParentNode(),{between:i}=o.raws,a=i.trim(),s=":"===a,l=Q(o)?y(r("value")):r("value");return!s&&fe(a)&&(l=m([d,g(l)])),[o.raws.before.replace(/[\s;]/g,""),"css-atrule"===n.type&&n.variable||k(e)?o.prop:D(o.prop),a.startsWith("//")?" ":"",a,o.extend?"":" ",Ee(t)&&o.extend&&o.selector?["extend(",r("selector"),")"]:"",l,o.raws.important?o.raws.important.replace(/\s*!\s*important/i," !important"):o.important?" !important":"",o.raws.scssDefault?o.raws.scssDefault.replace(/\s*!default/i," !default"):o.scssDefault?" !default":"",o.raws.scssGlobal?o.raws.scssGlobal.replace(/\s*!global/i," !global"):o.scssGlobal?" !global":"",o.nodes?[" {",m([p,Te(e,t,r)]),p,"}"]:re(o)&&!n.raws.semicolon&&";"!==t.originalText[_e(o)-1]?"":t.__isHTMLStyleAttribute&&P(e,o)?v(";"):";"]}case"css-atrule":{let n=e.getParentNode(),i=ne(o)&&!n.raws.semicolon&&";"!==t.originalText[_e(o)-1];if(Ee(t)){if(o.mixin)return[r("selector"),o.important?" !important":"",i?"":";"];if(o.function)return[o.name,r("params"),i?"":";"];if(o.variable)return["@",o.name,": ",o.value?r("value"):"",o.raws.between.trim()?o.raws.between.trim()+" ":"",o.nodes?["{",m([o.nodes.length>0?p:"",Te(e,t,r)]),p,"}"]:"",i?"":";"]}return["@",te(o)||o.name.endsWith(":")?o.name:D(o.name),o.params?[te(o)?"":ne(o)?""===o.raws.afterName?"":o.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(o.raws.afterName)?[d,d]:/^\s*\n/.test(o.raws.afterName)?d:" ":" ",r("params")]:"",o.selector?m([" ",r("selector")]):"",o.value?h([" ",r("value"),L(o)?X(o)?" ":c:""]):"else"===o.name?" ":"",o.nodes?[L(o)?"":o.selector&&!o.selector.nodes&&"string"==typeof o.selector.value&&fe(o.selector.value)||!o.selector&&"string"==typeof o.params&&fe(o.params)?c:" ","{",m([o.nodes.length>0?p:"",Te(e,t,r)]),p,"}"]:i?"":";"]}case"media-query-list":{let t=[];return e.each(e=>{let n=e.getValue();"media-query"===n.type&&""===n.value||t.push(r())},"nodes"),h(m(u(c,t)))}case"media-query":return[u(" ",e.map(r,"nodes")),P(e,o)?"":","];case"media-type":return Re(Ie(o.value,t));case"media-feature-expression":return o.nodes?["(",...e.map(r,"nodes"),")"]:o.value;case"media-feature":return D(Ie(o.value.replace(/ +/g," "),t));case"media-colon":return[o.value," "];case"media-value":return Re(Ie(o.value,t));case"media-keyword":return Ie(o.value,t);case"media-url":return Ie(o.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/g,")"),t);case"media-unknown":return o.value;case"selector-root":return h([O(e,"custom-selector")?[x(e,"css-atrule").customSelector,c]:"",u([",",O(e,["extend","custom-selector","nest"])?c:d],e.map(r,"nodes"))]);case"selector-selector":return h(m(e.map(r,"nodes")));case"selector-comment":return o.value;case"selector-string":return Ie(o.value,t);case"selector-tag":{let t=e.getParentNode(),n=t&&t.nodes.indexOf(o),r=n&&t.nodes[n-1];return[o.namespace?[!0===o.namespace?"":o.namespace.trim(),"|"]:"","selector-nesting"===r.type?o.value:Re(M(e,o.value)?o.value.toLowerCase():o.value)]}case"selector-id":return["#",o.value];case"selector-class":return[".",Re(Ie(o.value,t))];case"selector-attribute":var a;return["[",o.namespace?[!0===o.namespace?"":o.namespace.trim(),"|"]:"",o.attribute.trim(),null!==(a=o.operator)&&void 0!==a?a:"",o.value?Me(Ie(o.value.trim(),t),t):"",o.insensitive?" i":"","]"];case"selector-combinator":{if("+"===o.value||">"===o.value||"~"===o.value||">>>"===o.value){let t=e.getParentNode();return["selector-selector"===t.type&&t.nodes[0]===o?"":c,o.value,P(e,o)?"":" "]}let n=o.value.trim().startsWith("(")?c:"",r=Re(Ie(o.value.trim(),t))||c;return[n,r]}case"selector-universal":return[o.namespace?[!0===o.namespace?"":o.namespace.trim(),"|"]:"",o.value];case"selector-pseudo":return[D(o.value),l(o.nodes)?h(["(",m([p,u([",",c],e.map(r,"nodes"))]),p,")"]):""];case"selector-nesting":return o.value;case"selector-unknown":{let n=x(e,"css-rule");if(n&&n.isSCSSNesterProperty)return Re(Ie(D(o.value),t));let r=e.getParentNode();if(r.raws&&r.raws.selector){let e=ye(r),n=e+r.raws.selector.length;return t.originalText.slice(e,n).trim()}let i=e.getParentNode(1);if("value-paren_group"===r.type&&i&&"value-func"===i.type&&"selector"===i.value){let e=_e(r.open)+1,n=ye(r.close),i=t.originalText.slice(e,n).trim();return fe(i)?[b,i]:i}return o.value}case"value-value":case"value-root":return r("group");case"value-comment":return t.originalText.slice(ye(o),_e(o));case"value-comma_group":{let n=e.getParentNode(),i=e.getParentNode(1),a=T(e),s=a&&"value-value"===n.type&&("grid"===a||a.startsWith("grid-template")),l=x(e,"css-atrule"),u=l&&L(l),v=o.groups.some(e=>ae(e)),y=e.map(r,"groups"),_=[],w=A(e,"url"),S=!1,C=!1;for(let r=0;rt:-1!==e?S=!0:-1!==t&&(S=!1)}if(S||de(h)||de(f)||"value-atword"===h.type&&(""===h.value||h.value.endsWith("["))||"value-word"===f.type&&f.value.startsWith("]")||"~"===h.value||h.value&&h.value.includes("\\")&&f&&"value-comment"!==f.type||a&&a.value&&a.value.indexOf("\\")===a.value.length-1&&"value-operator"===h.type&&"/"===h.value||"\\"===h.value||ie(h,f)||se(h)||le(h)||ue(f)||le(f)&&Z(f)||ue(h)&&Z(f)||"--"===h.value&&se(f))continue;let v=$(h),b=$(f);if((v&&se(f)||b&&ue(h))&&Z(f)||!a&&z(h)||A(e,"calc")&&(q(h)||q(f)||H(h)||H(f))&&Z(f))continue;let x=(q(h)||H(h))&&0===r&&("value-number"===f.type||f.isHex)&&i&&he(i)&&!Z(f),T=m&&"value-func"===m.type||m&&ce(m)||"value-func"===h.type||ce(h),D="value-func"===f.type||ce(f)||a&&"value-func"===a.type||a&&ce(a);if((U(f)||U(h)||A(e,"calc")||x||!(z(f)&&!T||z(h)&&!D||q(f)&&!T||q(h)&&!D||H(f)||H(h))||!(Z(f)||v&&(!a||a&&$(a))))&&("scss"!==t.parser&&"less"!==t.parser||!v||"-"!==h.value||!be(f)||_e(h)!==ye(f.open)||"("!==f.open.value)){if(ae(h)){if("value-paren_group"===n.type){_.push(g(d));continue}_.push(d);continue}if(u&&(j(f)||B(f)||K(f)||G(h)||V(h))){_.push(" ");continue}if(l&&"namespace"===l.name.toLowerCase()){_.push(" ");continue}if(s){h.source&&f.source&&h.source.start.line!==f.source.start.line?(_.push(d),C=!0):_.push(" ");continue}if(b){_.push(" ");continue}if((!f||"..."!==f.value)&&(!me(h)||!me(f)||_e(h)!==ye(f))){if(me(h)&&be(f)&&_e(h)===ye(f.open)){_.push(p);continue}if("with"===h.value&&be(f)){_.push(" ");continue}null!==(E=h.value)&&void 0!==E&&E.endsWith("#")&&"{"===f.value&&be(f.group)||_.push(c)}}}return v&&_.push(b),C&&_.unshift(d),u?h(m(_)):I(e)?h(f(_)):h(m(f(_)))}case"value-paren_group":{let i=e.getParentNode();if(i&&W(i)&&(1===o.groups.length||o.groups.length>0&&"value-comma_group"===o.groups[0].type&&o.groups[0].groups.length>0&&"value-word"===o.groups[0].groups[0].type&&o.groups[0].groups[0].value.startsWith("data:")))return[o.open?r("open"):"",u(",",e.map(r,"groups")),o.close?r("close"):""];if(!o.open){let t=e.map(r,"groups"),n=[];for(let e=0;e{let a=e.getValue(),u=i===o.groups.length-1,c=[r(),u?"":","];if(J(a)&&"value-comma_group"===a.type&&a.groups&&"value-paren_group"!==a.groups[0].type&&a.groups[2]&&"value-paren_group"===a.groups[2].type){let e=_(c[0].contents.contents);e[1]=h(e[1]),c=[h(g(c))]}if(!u&&"value-comma_group"===a.type&&l(a.groups)){let e=n(a.groups);!e.source&&e.close&&(e=e.close),e.source&&s(t.originalText,e,_e)&&c.push(d)}return c},"groups"))]),v(!y&&we(t.parser,t.originalText)&&a&&xe(t)?",":""),p,o.close?r("close"):""],{shouldBreak:S});return x?g(C):C}case"value-func":return[o.value,O(e,"supports")&&pe(o)?" ":"",r("group")];case"value-paren":return o.value;case"value-number":return[Pe(o.value),Se(o.unit)];case"value-operator":return o.value;case"value-word":return o.isColor&&o.isHex||R(o.value)?o.value.toLowerCase():o.value;case"value-colon":{let t=e.getParentNode(),r=t&&t.groups.indexOf(o),i=r&&t.groups[r-1];return[o.value,i&&"string"==typeof i.value&&"\\"===n(i.value)||A(e,"url")?"":c]}case"value-comma":return[o.value," "];case"value-string":return i(o.raws.quote+o.value+o.raws.quote,t);case"value-atword":return["@",o.value];case"value-unicode-range":return o.value;case"value-unknown":return o.value;default:throw new Error("Unknown postcss type "+JSON.stringify(o.type))}}function Te(e,t,n){let r=[];return e.each((e,i,l)=>{let u=l[i-1];if(u&&"css-comment"===u.type&&"prettier-ignore"===u.text.trim()){let n=e.getValue();r.push(t.originalText.slice(ye(n),_e(n)))}else r.push(n());i!==l.length-1&&("css-comment"===l[i+1].type&&!o(t.originalText,ye(l[i+1]),{backwards:!0})&&!a(l[i])||"css-atrule"===l[i+1].type&&"else"===l[i+1].name&&"css-comment"!==l[i].type?r.push(" "):(r.push(t.__isHTMLStyleAttribute?c:d),s(t.originalText,e.getValue(),_e)&&!a(l[i])&&r.push(d)))},"nodes"),r}var De=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gs,Ae=/(?:\d*\.\d+|\d+\.?)(?:[Ee][+-]?\d+)?/g,ke=/[A-Za-z]+/g,Oe=/[$@]?[A-Z_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/g,Ne=new RegExp(De.source+`|(${Oe.source})?(${Ae.source})(${ke.source})?`,"g");function Ie(e,t){return e.replace(De,e=>i(e,t))}function Me(e,t){let n=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:n+e+n}function Re(e){return e.replace(Ne,(e,t,n,r,i)=>!n&&r?Pe(r)+D(i||""):e)}function Pe(e){return r(e).replace(/\.0(?=$|e)/,"")}t.exports={print:Ce,embed:w,insertPragma:S,massageAstNode:E}}}),Vr=_({"src/language-css/options.js"(e,t){C();var n=Sr();t.exports={singleQuote:n.singleQuote}}}),Yr=_({"src/language-css/parsers.js"(){C()}}),Wr=_({"node_modules/linguist-languages/data/CSS.json"(e,t){t.exports={name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css"],languageId:50}}}),Kr=_({"node_modules/linguist-languages/data/PostCSS.json"(e,t){t.exports={name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",languageId:262764437}}}),Qr=_({"node_modules/linguist-languages/data/Less.json"(e,t){t.exports={name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",languageId:198}}}),Xr=_({"node_modules/linguist-languages/data/SCSS.json"(e,t){t.exports={name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],languageId:329}}}),Zr=_({"src/language-css/index.js"(e,t){C();var n=tn(),r=Gr(),i=Vr(),o=Yr(),a=[n(Wr(),e=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"],extensions:[...e.extensions,".wxss"]})),n(Kr(),()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"]})),n(Qr(),()=>({since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]})),n(Xr(),()=>({since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]}))],s={postcss:r};t.exports={languages:a,options:i,printers:s,parsers:o}}}),Jr=_({"src/language-handlebars/loc.js"(e,t){function n(e){return e.loc.start.offset}function r(e){return e.loc.end.offset}C(),t.exports={locStart:n,locEnd:r}}}),ei=_({"src/language-handlebars/clean.js"(e,t){function n(e,t){if("TextNode"===e.type){let n=e.chars.trim();if(!n)return null;t.chars=n.replace(/[\t\n\f\r ]+/g," ")}"AttrNode"===e.type&&"class"===e.name.toLowerCase()&&delete t.value}C(),n.ignoredProperties=new Set(["loc","selfClosing"]),t.exports=n}}),ti=_({"src/language-handlebars/html-void-elements.evaluate.js"(e,t){t.exports=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]}}),ni=_({"src/language-handlebars/utils.js"(e,t){C();var n=N(),r=ti();function i(e){let t=e.getValue(),r=e.getParentNode(0);return!!(p(e,["ElementNode"])&&n(r.children)===t||p(e,["Block"])&&n(r.body)===t)}function o(e){return e.toUpperCase()===e}function a(e){return d(e,["ElementNode"])&&"string"==typeof e.tag&&!e.tag.startsWith(":")&&(o(e.tag[0])||e.tag.includes("."))}var s=new Set(r);function l(e){return s.has(e.toLowerCase())&&!o(e[0])}function u(e){return!0===e.selfClosing||l(e.tag)||a(e)&&e.children.every(e=>c(e))}function c(e){return d(e,["TextNode"])&&!/\S/.test(e.chars)}function d(e,t){return e&&t.includes(e.type)}function p(e,t){let n=e.getParentNode(0);return d(n,t)}function h(e,t){let n=g(e);return d(n,t)}function f(e,t){let n=v(e);return d(n,t)}function m(e,t){var n,r,i,o;let a=e.getValue(),s=null!==(n=e.getParentNode(0))&&void 0!==n?n:{},l=null!==(r=null!==(i=null!==(o=s.children)&&void 0!==o?o:s.body)&&void 0!==i?i:s.parts)&&void 0!==r?r:[],u=l.indexOf(a);return-1!==u&&l[u+t]}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return m(e,-t)}function v(e){return m(e,1)}function b(e){return d(e,["MustacheCommentStatement"])&&"string"==typeof e.value&&"prettier-ignore"===e.value.trim()}function y(e){let t=e.getValue(),n=g(e,2);return b(t)||b(n)}t.exports={getNextNode:v,getPreviousNode:g,hasPrettierIgnore:y,isLastNodeOfSiblings:i,isNextNodeOfSomeType:f,isNodeOfSomeType:d,isParentOfSomeType:p,isPreviousNodeOfSomeType:h,isVoid:u,isWhitespaceNode:c}}}),ri=_({"src/language-handlebars/printer-glimmer.js"(e,t){C();var{builders:{dedent:n,fill:r,group:i,hardline:o,ifBreak:a,indent:s,join:l,line:u,softline:c},utils:{getDocParts:d,replaceTextEndOfLine:p}}=Y(),{getPreferredQuote:h,isNonEmptyArray:f}=ge(),{locStart:m,locEnd:g}=Jr(),v=ei(),{getNextNode:b,getPreviousNode:y,hasPrettierIgnore:_,isLastNodeOfSiblings:E,isNextNodeOfSomeType:w,isNodeOfSomeType:S,isParentOfSomeType:x,isPreviousNodeOfSomeType:T,isVoid:D,isWhitespaceNode:A}=ni(),k=2;function O(e,t,a){let d=e.getValue();if(!d)return"";if(_(e))return t.originalText.slice(m(d),g(d));let f=t.singleQuote?"'":'"';switch(d.type){case"Block":case"Program":case"Template":return i(e.map(a,"body"));case"ElementNode":{let n=i(I(e,a)),r="ignore"===t.htmlWhitespaceSensitivity&&w(e,["ElementNode"])?c:"";if(D(d))return[n,r];let l=[""];return 0===d.children.length?[n,s(l),r]:"ignore"===t.htmlWhitespaceSensitivity?[n,s(M(e,t,a)),o,s(l),r]:[n,s(i(M(e,t,a))),s(l),r]}case"BlockStatement":{let n=e.getParentNode(1);return n&&n.inverse&&1===n.inverse.body.length&&n.inverse.body[0]===d&&n.inverse.body[0].path.parts[0]===n.path.parts[0]?[G(e,a,n.inverse.body[0].path.parts[0]),X(e,a,t),Z(e,a,t)]:[H(e,a),i([X(e,a,t),Z(e,a,t),V(e,a,t)])]}case"ElementModifierStatement":return i(["{{",ue(e,a),"}}"]);case"MustacheStatement":return i([P(d),ue(e,a),L(d)]);case"SubExpression":return i(["(",le(e,a),c,")"]);case"AttrNode":{let e="TextNode"===d.value.type;if(e&&""===d.value.chars&&m(d.value)===g(d.value))return d.name;let t=e?h(d.value.chars,f).quote:"ConcatStatement"===d.value.type?h(d.value.parts.filter(e=>"TextNode"===e.type).map(e=>e.chars).join(""),f).quote:"",n=a("value");return[d.name,"=",t,"class"===d.name&&t?i(s(n)):n,t]}case"ConcatStatement":return e.map(a,"parts");case"Hash":return l(u,e.map(a,"pairs"));case"HashPair":return[d.key,"=",a("value")];case"TextNode":{let i=d.chars.replace(/{{/g,"\\{{"),o=te(e);if(o){if("class"===o){let t=i.trim().split(/\s+/).join(" "),n=!1,r=!1;return x(e,["ConcatStatement"])&&(T(e,["MustacheStatement"])&&/^\s/.test(i)&&(n=!0),w(e,["MustacheStatement"])&&/\s$/.test(i)&&""!==t&&(r=!0)),[n?u:"",t,r?u:""]}return p(i)}let a=/^[\t\n\f\r ]*$/.test(i),s=!y(e),l=!b(e);if("ignore"!==t.htmlWhitespaceSensitivity){let t=/^[\t\n\f\r ]*/,o=/[\t\n\f\r ]*$/,c=l&&x(e,["Template"]),d=s&&x(e,["Template"]);if(a){if(d||c)return"";let t=[u],r=ne(i);return r&&(t=oe(r)),E(e)&&(t=t.map(e=>n(e))),t}let[p]=i.match(t),[h]=i.match(o),f=[];if(p){f=[u];let e=ne(p);e&&(f=oe(e)),i=i.replace(t,"")}let m=[];if(h){if(!c){m=[u];let t=ne(h);t&&(m=oe(t)),E(e)&&(m=m.map(e=>n(e)))}i=i.replace(o,"")}return[...f,r(J(i)),...m]}let c=ne(i),h=re(i),f=ie(i);if((s||l)&&a&&x(e,["Block","ElementNode","Template"]))return"";a&&c?(h=Math.min(c,k),f=0):(w(e,["BlockStatement","ElementNode"])&&(f=Math.max(f,1)),T(e,["BlockStatement","ElementNode"])&&(h=Math.max(h,1)));let m="",g="";return 0===f&&w(e,["MustacheStatement"])&&(g=" "),0===h&&T(e,["MustacheStatement"])&&(m=" "),s&&(h=0,m=""),l&&(f=0,g=""),i=i.replace(/^[\t\n\f\r ]+/g,m).replace(/[\t\n\f\r ]+$/,g),[...oe(h),r(J(i)),...oe(f)]}case"MustacheCommentStatement":{let e=m(d),n=g(d),r="~"===t.originalText.charAt(e+2),i="~"===t.originalText.charAt(n-3),o=d.value.includes("}}")?"--":"";return["{{",r?"~":"","!",o,d.value,o,i?"~":"","}}"]}case"PathExpression":return d.original;case"BooleanLiteral":return String(d.value);case"CommentStatement":return["\x3c!--",d.value,"--\x3e"];case"StringLiteral":if(se(e)){let e=t.singleQuote?'"':"'";return ae(d.value,e)}return ae(d.value,f);case"NumberLiteral":return String(d.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(d.type))}}function N(e,t){return m(e)-m(t)}function I(e,t){let n=e.getValue(),r=["attributes","modifiers","comments"].filter(e=>f(n[e])),i=r.flatMap(e=>n[e]).sort(N);for(let o of r)e.each(e=>{let n=i.indexOf(e.getValue());i.splice(n,1,[u,t()])},o);return f(n.blockParams)&&i.push(u,pe(n)),["<",n.tag,s(i),R(n)]}function M(e,t,n){let r=e.getValue().children.every(e=>A(e));return"ignore"===t.htmlWhitespaceSensitivity&&r?"":e.map((e,r)=>{let i=n();return 0===r&&"ignore"===t.htmlWhitespaceSensitivity?[c,i]:i},"children")}function R(e){return D(e)?a([c,"/>"],[" />",c]):a([c,">"],">")}function P(e){let t=!1===e.escaped?"{{{":"{{",n=e.strip&&e.strip.open?"~":"";return[t,n]}function L(e){let t=!1===e.escaped?"}}}":"}}";return[e.strip&&e.strip.close?"~":"",t]}function F(e){let t=P(e),n=e.openStrip.open?"~":"";return[t,n,"#"]}function B(e){let t=L(e);return[e.openStrip.close?"~":"",t]}function j(e){let t=P(e),n=e.closeStrip.open?"~":"";return[t,n,"/"]}function U(e){let t=L(e);return[e.closeStrip.close?"~":"",t]}function z(e){let t=P(e),n=e.inverseStrip.open?"~":"";return[t,n]}function q(e){let t=L(e);return[e.inverseStrip.close?"~":"",t]}function H(e,t){let n=e.getValue(),r=[],o=de(e,t);return o&&r.push(i(o)),f(n.program.blockParams)&&r.push(pe(n.program)),i([F(n),ce(e,t),r.length>0?s([u,l(u,r)]):"",c,B(n)])}function $(e,t){return["ignore"===t.htmlWhitespaceSensitivity?o:"",z(e),"else",q(e)]}function G(e,t,n){let r=e.getValue(),o=e.getParentNode(1);return i([z(o),["else"," ",n],s([u,i(de(e,t)),...f(r.program.blockParams)?[u,pe(r.program)]:[]]),c,q(o)])}function V(e,t,n){let r=e.getValue();return"ignore"===n.htmlWhitespaceSensitivity?[W(r)?c:o,j(r),t("path"),U(r)]:[j(r),t("path"),U(r)]}function W(e){return S(e,["BlockStatement"])&&e.program.body.every(e=>A(e))}function K(e){return Q(e)&&1===e.inverse.body.length&&S(e.inverse.body[0],["BlockStatement"])&&e.inverse.body[0].path.parts[0]===e.path.parts[0]}function Q(e){return S(e,["BlockStatement"])&&e.inverse}function X(e,t,n){let r=e.getValue();if(W(r))return"";let i=t("program");return"ignore"===n.htmlWhitespaceSensitivity?s([o,i]):s(i)}function Z(e,t,n){let r=e.getValue(),i=t("inverse"),a="ignore"===n.htmlWhitespaceSensitivity?[o,i]:i;return K(r)?a:Q(r)?[$(r,n),s(a)]:""}function J(e){return d(l(u,ee(e)))}function ee(e){return e.split(/[\t\n\f\r ]+/)}function te(e){for(let t=0;t<2;t++){let n=e.getParentNode(t);if(n&&"AttrNode"===n.type)return n.name.toLowerCase()}}function ne(e){return e="string"==typeof e?e:"",e.split("\n").length-1}function re(e){e="string"==typeof e?e:"";let t=(e.match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"";return ne(t)}function ie(e){e="string"==typeof e?e:"";let t=(e.match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"";return ne(t)}function oe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Array.from({length:Math.min(e,k)}).fill(o)}function ae(e,t){let{quote:n,regex:r}=h(e,t);return[n,e.replace(r,"\\"+n),n]}function se(e){let t=0,n=e.getParentNode(t);for(;n&&S(n,["SubExpression"]);)t++,n=e.getParentNode(t);return!!(n&&S(e.getParentNode(t+1),["ConcatStatement"])&&S(e.getParentNode(t+2),["AttrNode"]))}function le(e,t){let n=ce(e,t),r=de(e,t);return r?s([n,u,i(r)]):n}function ue(e,t){let n=ce(e,t),r=de(e,t);return r?[s([n,u,r]),c]:n}function ce(e,t){return t("path")}function de(e,t){let n=e.getValue(),r=[];if(n.params.length>0){let n=e.map(t,"params");r.push(...n)}if(n.hash&&n.hash.pairs.length>0){let e=t("hash");r.push(e)}return 0===r.length?"":l(u,r)}function pe(e){return["as |",e.blockParams.join(" "),"|"]}t.exports={print:O,massageAstNode:v}}}),ii=_({"src/language-handlebars/parsers.js"(){C()}}),oi=_({"node_modules/linguist-languages/data/Handlebars.json"(e,t){t.exports={name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155}}}),ai=_({"src/language-handlebars/index.js"(e,t){C();var n=tn(),r=ri(),i=ii(),o=[n(oi(),()=>({since:"2.3.0",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}))],a={glimmer:r};t.exports={languages:o,printers:a,parsers:i}}}),si=_({"src/language-graphql/pragma.js"(e,t){function n(e){return/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/.test(e)}function r(e){return"# @format\n\n"+e}C(),t.exports={hasPragma:n,insertPragma:r}}}),li=_({"src/language-graphql/loc.js"(e,t){function n(e){return"number"==typeof e.start?e.start:e.loc&&e.loc.start}function r(e){return"number"==typeof e.end?e.end:e.loc&&e.loc.end}C(),t.exports={locStart:n,locEnd:r}}}),ui=_({"src/language-graphql/printer-graphql.js"(e,t){C();var{builders:{join:n,hardline:r,line:i,softline:o,group:a,indent:s,ifBreak:l}}=Y(),{isNextLineEmpty:u,isNonEmptyArray:c}=ge(),{insertPragma:d}=si(),{locStart:p,locEnd:h}=li();function f(e,t,d){let f=e.getValue();if(!f)return"";if("string"==typeof f)return f;switch(f.kind){case"Document":{let n=[];return e.each((e,i,o)=>{n.push(d()),i!==o.length-1&&(n.push(r),u(t.originalText,e.getValue(),h)&&n.push(r))},"definitions"),[...n,r]}case"OperationDefinition":{let r="{"!==t.originalText[p(f)],i=Boolean(f.name);return[r?f.operation:"",r&&i?[" ",d("name")]:"",r&&!i&&c(f.variableDefinitions)?" ":"",c(f.variableDefinitions)?a(["(",s([o,n([l("",", "),o],e.map(d,"variableDefinitions"))]),o,")"]):"",m(e,d,f),f.selectionSet&&(r||i)?" ":"",d("selectionSet")]}case"FragmentDefinition":return["fragment ",d("name"),c(f.variableDefinitions)?a(["(",s([o,n([l("",", "),o],e.map(d,"variableDefinitions"))]),o,")"]):""," on ",d("typeCondition"),m(e,d,f)," ",d("selectionSet")];case"SelectionSet":return["{",s([r,n(r,g(e,t,d,"selections"))]),r,"}"];case"Field":return a([f.alias?[d("alias"),": "]:"",d("name"),f.arguments.length>0?a(["(",s([o,n([l("",", "),o],g(e,t,d,"arguments"))]),o,")"]):"",m(e,d,f),f.selectionSet?" ":"",d("selectionSet")]);case"Name":return f.value;case"StringValue":if(f.block){let e=f.value.replace(/"""/g,"\\$&").split("\n");return 1===e.length&&(e[0]=e[0].trim()),e.every(e=>""===e)&&(e.length=0),n(r,['"""',...e,'"""'])}return['"',f.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"'];case"IntValue":case"FloatValue":case"EnumValue":return f.value;case"BooleanValue":return f.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",d("name")];case"ListValue":return a(["[",s([o,n([l("",", "),o],e.map(d,"values"))]),o,"]"]);case"ObjectValue":return a(["{",t.bracketSpacing&&f.fields.length>0?" ":"",s([o,n([l("",", "),o],e.map(d,"fields"))]),o,l("",t.bracketSpacing&&f.fields.length>0?" ":""),"}"]);case"ObjectField":case"Argument":return[d("name"),": ",d("value")];case"Directive":return["@",d("name"),f.arguments.length>0?a(["(",s([o,n([l("",", "),o],g(e,t,d,"arguments"))]),o,")"]):""];case"NamedType":return d("name");case"VariableDefinition":return[d("variable"),": ",d("type"),f.defaultValue?[" = ",d("defaultValue")]:"",m(e,d,f)];case"ObjectTypeExtension":case"ObjectTypeDefinition":return[d("description"),f.description?r:"","ObjectTypeExtension"===f.kind?"extend ":"","type ",d("name"),f.interfaces.length>0?[" implements ",...y(e,t,d)]:"",m(e,d,f),f.fields.length>0?[" {",s([r,n(r,g(e,t,d,"fields"))]),r,"}"]:""];case"FieldDefinition":return[d("description"),f.description?r:"",d("name"),f.arguments.length>0?a(["(",s([o,n([l("",", "),o],g(e,t,d,"arguments"))]),o,")"]):"",": ",d("type"),m(e,d,f)];case"DirectiveDefinition":return[d("description"),f.description?r:"","directive ","@",d("name"),f.arguments.length>0?a(["(",s([o,n([l("",", "),o],g(e,t,d,"arguments"))]),o,")"]):"",f.repeatable?" repeatable":""," on ",n(" | ",e.map(d,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[d("description"),f.description?r:"","EnumTypeExtension"===f.kind?"extend ":"","enum ",d("name"),m(e,d,f),f.values.length>0?[" {",s([r,n(r,g(e,t,d,"values"))]),r,"}"]:""];case"EnumValueDefinition":return[d("description"),f.description?r:"",d("name"),m(e,d,f)];case"InputValueDefinition":return[d("description"),f.description?f.description.block?r:i:"",d("name"),": ",d("type"),f.defaultValue?[" = ",d("defaultValue")]:"",m(e,d,f)];case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return[d("description"),f.description?r:"","InputObjectTypeExtension"===f.kind?"extend ":"","input ",d("name"),m(e,d,f),f.fields.length>0?[" {",s([r,n(r,g(e,t,d,"fields"))]),r,"}"]:""];case"SchemaExtension":return["extend schema",m(e,d,f),...f.operationTypes.length>0?[" {",s([r,n(r,g(e,t,d,"operationTypes"))]),r,"}"]:[]];case"SchemaDefinition":return[d("description"),f.description?r:"","schema",m(e,d,f)," {",f.operationTypes.length>0?s([r,n(r,g(e,t,d,"operationTypes"))]):"",r,"}"];case"OperationTypeDefinition":return[d("operation"),": ",d("type")];case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return[d("description"),f.description?r:"","InterfaceTypeExtension"===f.kind?"extend ":"","interface ",d("name"),f.interfaces.length>0?[" implements ",...y(e,t,d)]:"",m(e,d,f),f.fields.length>0?[" {",s([r,n(r,g(e,t,d,"fields"))]),r,"}"]:""];case"FragmentSpread":return["...",d("name"),m(e,d,f)];case"InlineFragment":return["...",f.typeCondition?[" on ",d("typeCondition")]:"",m(e,d,f)," ",d("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return a([d("description"),f.description?r:"",a(["UnionTypeExtension"===f.kind?"extend ":"","union ",d("name"),m(e,d,f),f.types.length>0?[" =",l(""," "),s([l([i," "]),n([i,"| "],e.map(d,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[d("description"),f.description?r:"","ScalarTypeExtension"===f.kind?"extend ":"","scalar ",d("name"),m(e,d,f)];case"NonNullType":return[d("type"),"!"];case"ListType":return["[",d("type"),"]"];default:throw new Error("unknown graphql type: "+JSON.stringify(f.kind))}}function m(e,t,r){if(0===r.directives.length)return"";let l=n(i,e.map(t,"directives"));return"FragmentDefinition"===r.kind||"OperationDefinition"===r.kind?a([i,l]):[" ",a(s([o,l]))]}function g(e,t,n,i){return e.map((e,i,o)=>{let a=n();return in(e),"interfaces");for(let l=0;l"prettier-ignore"===e.value.trim())}_.ignoredProperties=new Set(["loc","comments"]),t.exports={print:f,massageAstNode:_,hasPrettierIgnore:E,insertPragma:d,printComment:b,canAttachComment:v}}}),ci=_({"src/language-graphql/options.js"(e,t){C();var n=Sr();t.exports={bracketSpacing:n.bracketSpacing}}}),di=_({"src/language-graphql/parsers.js"(){C()}}),pi=_({"node_modules/linguist-languages/data/GraphQL.json"(e,t){t.exports={name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",languageId:139}}}),hi=_({"src/language-graphql/index.js"(e,t){C();var n=tn(),r=ui(),i=ci(),o=di(),a=[n(pi(),()=>({since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]}))],s={graphql:r};t.exports={languages:a,options:i,printers:s,parsers:o}}}),fi=_({"node_modules/collapse-white-space/index.js"(e,t){function n(e){return String(e).replace(/\s+/g," ")}C(),t.exports=n}}),mi=_({"src/language-markdown/loc.js"(e,t){function n(e){return e.position.start.offset}function r(e){return e.position.end.offset}C(),t.exports={locStart:n,locEnd:r}}}),gi=_({"src/language-markdown/constants.evaluate.js"(e,t){t.exports={cjkPattern:"(?:[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u2ff0-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d])(?:[\\ufe00-\\ufe0f]|\\udb40[\\udd00-\\uddef])?",kPattern:"[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",punctuationPattern:"[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]"}}}),vi=_({"src/language-markdown/utils.js"(e,t){C();var{getLast:n}=ge(),{locStart:r,locEnd:i}=mi(),{cjkPattern:o,kPattern:a,punctuationPattern:s}=gi(),l=["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],u=[...l,"tableCell","paragraph","heading"],c=new RegExp(a),d=new RegExp(s);function p(e,t){let r="non-cjk",i="cj-letter",a="k-letter",s="cjk-punctuation",l=[],u=("preserve"===t.proseWrap?e:e.replace(new RegExp(`(${o})\n(${o})`,"g"),"$1$2")).split(/([\t\n ]+)/);for(let[h,f]of u.entries()){if(h%2===1){l.push({type:"whitespace",value:/\n/.test(f)?"\n":" "});continue}if((0===h||h===u.length-1)&&""===f)continue;let e=f.split(new RegExp(`(${o})`));for(let[t,o]of e.entries())if(0!==t&&t!==e.length-1||""!==o){if(t%2===0){""!==o&&p({type:"word",value:o,kind:r,hasLeadingPunctuation:d.test(o[0]),hasTrailingPunctuation:d.test(n(o))});continue}p(d.test(o)?{type:"word",value:o,kind:s,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:o,kind:c.test(o)?a:i,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return l;function p(e){let t=n(l);function o(n,r){return t.kind===n&&e.kind===r||t.kind===r&&e.kind===n}t&&"word"===t.type&&(t.kind===r&&e.kind===i&&!t.hasTrailingPunctuation||t.kind===i&&e.kind===r&&!e.hasLeadingPunctuation?l.push({type:"whitespace",value:" "}):!o(r,s)&&![t.value,e.value].some(e=>/\u3000/.test(e))&&l.push({type:"whitespace",value:""})),l.push(e)}}function h(e,t){let[,n,r,i]=t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:n,marker:r,leadingSpaces:i}}function f(e,t){if(!e.ordered||e.children.length<2)return!1;let n=Number(h(e.children[0],t.originalText).numberText),r=Number(h(e.children[1],t.originalText).numberText);if(0===n&&e.children.length>2){let n=Number(h(e.children[2],t.originalText).numberText);return 1===r&&1===n}return 1===r}function m(e,t){let{value:n}=e;return e.position.end.offset===t.length&&n.endsWith("\n")&&t.endsWith("\n")?n.slice(0,-1):n}function g(e,t){return function e(n,r,i){let o=Object.assign({},t(n,r,i));return o.children&&(o.children=o.children.map((t,n)=>e(t,n,[o,...i]))),o}(e,null,[])}function v(e){if("link"!==(null==e?void 0:e.type)||1!==e.children.length)return!1;let[t]=e.children;return r(e)===r(t)&&i(e)===i(t)}t.exports={mapAst:g,splitText:p,punctuationPattern:s,getFencedCodeBlockValue:m,getOrderedListItemInfo:h,hasGitDiffFriendlyOrderedList:f,INLINE_NODE_TYPES:l,INLINE_NODE_WRAPPER_TYPES:u,isAutolink:v}}}),bi=_({"src/language-markdown/embed.js"(e,t){C();var{inferParserByLanguage:n,getMaxContinuousCount:r}=ge(),{builders:{hardline:i,markAsRoot:o},utils:{replaceEndOfLine:a}}=Y(),s=Rr(),{getFencedCodeBlockValue:l}=vi();function u(e,t,u,c){let d=e.getValue();if("code"===d.type&&null!==d.lang){let e=n(d.lang,c);if(e){let t=c.__inJsTemplate?"~":"`",n=t.repeat(Math.max(3,r(d.value,t)+1)),s={parser:e};"tsx"===d.lang&&(s.filepath="dummy.tsx");let p=u(l(d,c.originalText),s,{stripTrailingHardline:!0});return o([n,d.lang,d.meta?" "+d.meta:"",i,a(p),i,n])}}switch(d.type){case"front-matter":return s(d,u);case"importExport":return[u(d.value,{parser:"babel"},{stripTrailingHardline:!0}),i];case"jsx":return u(`<$>${d.value}`,{parser:"__js_expression",rootMarker:"mdx"},{stripTrailingHardline:!0})}return null}t.exports=u}}),yi=_({"src/language-markdown/pragma.js"(e,t){C();var n=Lr(),r=["format","prettier"];function i(e){let t=`@(${r.join("|")})`,n=new RegExp([`\x3c!--\\s*${t}\\s*--\x3e`,`{\\s*\\/\\*\\s*${t}\\s*\\*\\/\\s*}`,`\x3c!--.*\r?\n[\\s\\S]*(^|\n)[^\\S\n]*${t}[^\\S\n]*($|\n)[\\s\\S]*\n.*--\x3e`].join("|"),"m"),i=e.match(n);return 0===(null==i?void 0:i.index)}t.exports={startWithPragma:i,hasPragma:e=>i(n(e).content.trimStart()),insertPragma:e=>{let t=n(e),i=`\x3c!-- @${r[0]} --\x3e`;return t.frontMatter?`${t.frontMatter.raw}\n\n${i}\n\n${t.content}`:`${i}\n\n${t.content}`}}}}),_i=_({"src/language-markdown/print-preprocess.js"(e,t){C();var n=N(),{getOrderedListItemInfo:r,mapAst:i,splitText:o}=vi(),a=/^.$/su;function s(e,t){return e=c(e,t),e=h(e),e=u(e,t),e=m(e,t),e=g(e,t),e=f(e,t),e=l(e),e=d(e),e}function l(e){return i(e,e=>"import"!==e.type&&"export"!==e.type?e:Object.assign(Object.assign({},e),{},{type:"importExport"}))}function u(e,t){return i(e,e=>"inlineCode"!==e.type||"preserve"===t.proseWrap?e:Object.assign(Object.assign({},e),{},{value:e.value.replace(/\s+/g," ")}))}function c(e,t){return i(e,e=>"text"===e.type&&"*"!==e.value&&"_"!==e.value&&a.test(e.value)&&e.position.end.offset-e.position.start.offset!==e.value.length?Object.assign(Object.assign({},e),{},{value:t.originalText.slice(e.position.start.offset,e.position.end.offset)}):e)}function d(e){return p(e,(e,t)=>"importExport"===e.type&&"importExport"===t.type,(e,t)=>({type:"importExport",value:e.value+"\n\n"+t.value,position:{start:e.position.start,end:t.position.end}}))}function p(e,t,r){return i(e,e=>{if(!e.children)return e;let i=e.children.reduce((e,i)=>{let o=n(e);return o&&t(o,i)?e.splice(-1,1,r(o,i)):e.push(i),e},[]);return Object.assign(Object.assign({},e),{},{children:i})})}function h(e){return p(e,(e,t)=>"text"===e.type&&"text"===t.type,(e,t)=>({type:"text",value:e.value+t.value,position:{start:e.position.start,end:t.position.end}}))}function f(e,t){return i(e,(e,n,r)=>{let[i]=r;if("text"!==e.type)return e;let{value:a}=e;return"paragraph"===i.type&&(0===n&&(a=a.trimStart()),n===i.children.length-1&&(a=a.trimEnd())),{type:"sentence",position:e.position,children:o(a,t)}})}function m(e,t){return i(e,(e,n,r)=>{if("code"===e.type){let n=/^\n?(?: {4,}|\t)/.test(t.originalText.slice(e.position.start.offset,e.position.end.offset));if(e.isIndented=n,n)for(let e=0;e{if("list"===e.type&&e.children.length>0){for(let t=0;t1)return!0;let a=n(i);if(-1===a)return!1;if(1===e.children.length)return a%t.tabWidth===0;let s=n(o);return a===s&&(a%t.tabWidth===0||r(o,t.originalText).leadingSpaces.length>1)}}t.exports=s}}),Ei=_({"src/language-markdown/clean.js"(e,t){C();var n=fi(),{isFrontMatterNode:r}=ge(),{startWithPragma:i}=yi(),o=new Set(["position","raw"]);function a(e,t,o){if(("front-matter"===e.type||"code"===e.type||"yaml"===e.type||"import"===e.type||"export"===e.type||"jsx"===e.type)&&delete t.value,"list"===e.type&&delete t.isAligned,("list"===e.type||"listItem"===e.type)&&(delete t.spread,delete t.loose),"text"===e.type||("inlineCode"===e.type&&(t.value=e.value.replace(/[\t\n ]+/g," ")),"wikiLink"===e.type&&(t.value=e.value.trim().replace(/[\t\n]+/g," ")),("definition"===e.type||"linkReference"===e.type||"imageReference"===e.type)&&(t.label=n(e.label)),("definition"===e.type||"link"===e.type||"image"===e.type)&&e.title&&(t.title=e.title.replace(/\\(["')])/g,"$1")),o&&"root"===o.type&&o.children.length>0&&(o.children[0]===e||r(o.children[0])&&o.children[1]===e)&&"html"===e.type&&i(e.value)))return null}a.ignoredProperties=o,t.exports=a}}),wi=_({"src/language-markdown/printer-markdown.js"(e,t){C();var n=fi(),{getLast:r,getMinNotPresentContinuousCount:i,getMaxContinuousCount:o,getStringWidth:a,isNonEmptyArray:s}=ge(),{builders:{breakParent:l,join:u,line:c,literalline:d,markAsRoot:p,hardline:h,softline:f,ifBreak:m,fill:g,align:v,indent:b,group:y,hardlineWithoutBreakParent:_},utils:{normalizeDoc:E,replaceTextEndOfLine:w},printer:{printDocToString:S}}=Y(),x=bi(),{insertPragma:T}=yi(),{locStart:D,locEnd:A}=mi(),k=_i(),O=Ei(),{getFencedCodeBlockValue:N,hasGitDiffFriendlyOrderedList:I,splitText:M,punctuationPattern:R,INLINE_NODE_TYPES:P,INLINE_NODE_WRAPPER_TYPES:L,isAutolink:F}=vi(),B=new Set(["importExport"]),j=["heading","tableCell","link","wikiLink"],U=new Set(["listItem","definition","footnoteDefinition"]);function z(e,t,n){let a=e.getValue();if(oe(e))return M(t.originalText.slice(a.position.start.offset,a.position.end.offset),t).map(n=>"word"===n.type?n.value:""===n.value?"":K(e,n.value,t));switch(a.type){case"front-matter":return t.originalText.slice(a.position.start.offset,a.position.end.offset);case"root":return 0===a.children.length?"":[E(X(e,t,n)),B.has(ee(a).type)?"":h];case"paragraph":return Z(e,t,n,{postprocessor:g});case"sentence":return Z(e,t,n);case"word":{let t=a.value.replace(/\*/g,"\\$&").replace(new RegExp([`(^|${R})(_+)`,`(_+)(${R}|$)`].join("|"),"g"),(e,t,n,r,i)=>(n?`${t}${n}`:`${r}${i}`).replace(/_/g,"\\_")),n=(e,t,n)=>"sentence"===e.type&&0===n,r=(e,t,n)=>F(e.children[n-1]);return t!==a.value&&(e.match(void 0,n,r)||e.match(void 0,n,(e,t,n)=>"emphasis"===e.type&&0===n,r))&&(t=t.replace(/^(\\?[*_])+/,e=>e.replace(/\\/g,""))),t}case"whitespace":{let n=e.getParentNode(),r=n.children.indexOf(a),i=n.children[r+1],o=i&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/.test(i.value)?"never":t.proseWrap;return K(e,a.value,{proseWrap:o})}case"emphasis":{let i;if(F(a.children[0]))i=t.originalText[a.position.start.offset];else{let t=e.getParentNode(),n=t.children.indexOf(a),o=t.children[n-1],s=t.children[n+1];i=o&&"sentence"===o.type&&o.children.length>0&&"word"===r(o.children).type&&!r(o.children).hasTrailingPunctuation||s&&"sentence"===s.type&&s.children.length>0&&"word"===s.children[0].type&&!s.children[0].hasLeadingPunctuation||W(e,"emphasis")?"*":"_"}return[i,Z(e,t,n),i]}case"strong":return["**",Z(e,t,n),"**"];case"delete":return["~~",Z(e,t,n),"~~"];case"inlineCode":{let e=i(a.value,"`"),t="`".repeat(e||1),n=e&&!/^\s/.test(a.value)?" ":"";return[t,n,a.value,n,t]}case"wikiLink":{let e="";return e="preserve"===t.proseWrap?a.value:a.value.replace(/[\t\n]+/g," "),["[[",e,"]]"]}case"link":switch(t.originalText[a.position.start.offset]){case"<":{let e="mailto:";return["<",a.url.startsWith(e)&&t.originalText.slice(a.position.start.offset+1,a.position.start.offset+1+e.length)!==e?a.url.slice(e.length):a.url,">"]}case"[":return["[",Z(e,t,n),"](",ae(a.url,")"),se(a.title,t),")"];default:return t.originalText.slice(a.position.start.offset,a.position.end.offset)}case"image":return["![",a.alt||"","](",ae(a.url,")"),se(a.title,t),")"];case"blockquote":return["> ",v("> ",Z(e,t,n))];case"heading":return["#".repeat(a.depth)+" ",Z(e,t,n)];case"code":{if(a.isIndented){let e=" ".repeat(4);return v(e,[e,...w(a.value,h)])}let e=t.__inJsTemplate?"~":"`",n=e.repeat(Math.max(3,o(a.value,e)+1));return[n,a.lang||"",a.meta?" "+a.meta:"",h,...w(N(a,t.originalText),h),h,n]}case"html":{let t=e.getParentNode(),n="root"===t.type&&r(t.children)===a?a.value.trimEnd():a.value,i=/^$/s.test(n);return w(n,i?h:p(d))}case"list":{let r=$(a,e.getParentNode()),i=I(a,t);return Z(e,t,n,{processor:(e,o)=>{let s=u(),l=e.getValue();return 2===l.children.length&&"html"===l.children[1].type&&l.children[0].position.start.column!==l.children[1].position.start.column?[s,q(e,t,n,s)]:[s,v(" ".repeat(s.length),q(e,t,n,s))];function u(){let e=a.ordered?(0===o?a.start:i?1:a.start+o)+(r%2===0?". ":") "):r%2===0?"- ":"* ";return a.isAligned||a.hasIndentedCodeblock?H(e,t):e}}})}case"thematicBreak":{let t=V(e,"list");return-1===t?"---":$(e.getParentNode(t),e.getParentNode(t+1))%2===0?"***":"---"}case"linkReference":return["[",Z(e,t,n),"]","full"===a.referenceType?ce(a):"collapsed"===a.referenceType?"[]":""];case"imageReference":switch(a.referenceType){case"full":return["![",a.alt||"","]",ce(a)];default:return["![",a.alt,"]","collapsed"===a.referenceType?"[]":""]}case"definition":{let e="always"===t.proseWrap?c:" ";return y([ce(a),":",b([e,ae(a.url),null===a.title?"":[e,se(a.title,t,!1)]])])}case"footnote":return["[^",Z(e,t,n),"]"];case"footnoteReference":return de(a);case"footnoteDefinition":{let r=e.getParentNode().children[e.getName()+1],i=1===a.children.length&&"paragraph"===a.children[0].type&&("never"===t.proseWrap||"preserve"===t.proseWrap&&a.children[0].position.start.line===a.children[0].position.end.line);return[de(a),": ",i?Z(e,t,n):y([v(" ".repeat(4),Z(e,t,n,{processor:(e,t)=>0===t?y([f,n()]):n()})),r&&"footnoteDefinition"===r.type?f:""])]}case"table":return Q(e,t,n);case"tableCell":return Z(e,t,n);case"break":return/\s/.test(t.originalText[a.position.start.offset])?[" ",p(d)]:["\\",h];case"liquidNode":return w(a.value,h);case"importExport":return[a.value,h];case"esComment":return["{/* ",a.value," */}"];case"jsx":return a.value;case"math":return["$$",h,a.value?[...w(a.value,h),h]:"","$$"];case"inlineMath":return t.originalText.slice(D(a),A(a));case"tableRow":case"listItem":default:throw new Error("Unknown markdown type "+JSON.stringify(a.type))}}function q(e,t,n,r){let i=e.getValue(),o=null===i.checked?"":i.checked?"[x] ":"[ ] ";return[o,Z(e,t,n,{processor:(e,i)=>{if(0===i&&"list"!==e.getValue().type)return v(" ".repeat(o.length),n());let a=" ".repeat(le(t.tabWidth-r.length,0,3));return[a,v(a,n())]}})]}function H(e,t){let n=r();return e+" ".repeat(n>=4?0:n);function r(){let n=e.length%t.tabWidth;return 0===n?0:t.tabWidth-n}}function $(e,t){return G(e,t,t=>t.ordered===e.ordered)}function G(e,t,n){let r=-1;for(let i of t.children)if(i.type===e.type&&n(i)?r++:r=-1,i===e)return r}function V(e,t){let n,r=Array.isArray(t)?t:[t],i=-1;for(;n=e.getParentNode(++i);)if(r.includes(n.type))return i;return-1}function W(e,t){let n=V(e,t);return-1===n?null:e.getParentNode(n)}function K(e,t,n){if("preserve"===n.proseWrap&&"\n"===t)return h;let r="always"===n.proseWrap&&!W(e,j);return""!==t?r?c:" ":r?f:""}function Q(e,t,n){let r=e.getValue(),i=[],o=e.map(e=>e.map((e,r)=>{let o=S(n(),t).formatted,s=a(o);return i[r]=Math.max(i[r]||3,s),{text:o,width:s}},"children"),"children"),s=d(!1);if("never"!==t.proseWrap)return[l,s];let c=d(!0);return[l,y(m(c,s))];function d(e){let t=[h(o[0],e),p(e)];return o.length>1&&t.push(u(_,o.slice(1).map(t=>h(t,e)))),u(_,t)}function p(e){return`| ${i.map((t,n)=>{let i=r.align[n],o="center"===i||"left"===i?":":"-",a="center"===i||"right"===i?":":"-",s=e?"-":"-".repeat(t-2);return`${o}${s}${a}`}).join(" | ")} |`}function h(e,t){return`| ${e.map((e,n)=>{let{text:o,width:a}=e;if(t)return o;let s=i[n]-a,l=r.align[n],u=0;"right"===l?u=s:"center"===l&&(u=Math.floor(s/2));let c=s-u;return`${" ".repeat(u)}${o}${" ".repeat(c)}`}).join(" | ")} |`}}function X(e,t,n){let r=[],i=null,{children:o}=e.getValue();for(let[a,s]of o.entries())switch(te(s)){case"start":null===i&&(i={index:a,offset:s.position.end.offset});break;case"end":null!==i&&(r.push({start:i,end:{index:a,offset:s.position.start.offset}}),i=null);break;default:break}return Z(e,t,n,{processor:(e,i)=>{if(r.length>0){let e=r[0];if(i===e.start.index)return[J(o[e.start.index]),t.originalText.slice(e.start.offset,e.end.offset),J(o[e.end.index])];if(e.start.index3&&void 0!==arguments[3]?arguments[3]:{},{postprocessor:o}=i,a=i.processor||(()=>n()),s=e.getValue(),l=[];return e.each((e,n)=>{let i=e.getValue(),o=a(e,n);if(!1!==o){let e={parts:l,prevNode:r,parentNode:s,options:t};ne(i,e)&&(l.push(h),r&&B.has(r.type)||(re(i,e)||ie(i,e))&&l.push(h),ie(i,e)&&l.push(h)),l.push(o),r=i}},"children"),o?o(l):l}function J(e){return"html"===e.type?e.value:"paragraph"===e.type&&Array.isArray(e.children)&&1===e.children.length&&"esComment"===e.children[0].type?["{/* ",e.children[0].value," */}"]:void 0}function ee(e){let t=e;for(;s(t.children);)t=r(t.children);return t}function te(e){let t;if("html"===e.type)t=e.value.match(/^$/);else{let n;"esComment"===e.type?n=e:"paragraph"===e.type&&1===e.children.length&&"esComment"===e.children[0].type&&(n=e.children[0]),n&&(t=n.value.match(/^prettier-ignore(?:-(start|end))?$/))}return!!t&&(t[1]||"next")}function ne(e,t){let n=0===t.parts.length,r=P.includes(e.type),i="html"===e.type&&L.includes(t.parentNode.type);return!n&&!r&&!i}function re(e,t){var n,r,i;let o=(t.prevNode&&t.prevNode.type)===e.type&&U.has(e.type),a="listItem"===t.parentNode.type&&!t.parentNode.loose,s="listItem"===(null===(n=t.prevNode)||void 0===n?void 0:n.type)&&t.prevNode.loose,l="next"===te(t.prevNode),u="html"===e.type&&"html"===(null===(r=t.prevNode)||void 0===r?void 0:r.type)&&t.prevNode.position.end.line+1===e.position.start.line,c="html"===e.type&&"listItem"===t.parentNode.type&&"paragraph"===(null===(i=t.prevNode)||void 0===i?void 0:i.type)&&t.prevNode.position.end.line+1===e.position.start.line;return s||!(o||a||l||u||c)}function ie(e,t){let n=t.prevNode&&"list"===t.prevNode.type,r="code"===e.type&&e.isIndented;return n&&r}function oe(e){let t=W(e,["linkReference","imageReference"]);return t&&("linkReference"!==t.type||"full"!==t.referenceType)}function ae(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[" ",...Array.isArray(t)?t:[t]];return new RegExp(n.map(e=>"\\"+e).join("|")).test(e)?`<${e}>`:e}function se(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e)return"";if(n)return" "+se(e,t,!1);if(e=e.replace(/\\(["')])/g,"$1"),e.includes('"')&&e.includes("'")&&!e.includes(")"))return`(${e})`;let r=e.split("'").length-1,i=e.split('"').length-1,o=r>i?'"':i>r||t.singleQuote?"'":'"';return e=e.replace(/\\/,"\\\\"),e=e.replace(new RegExp(`(${o})`,"g"),"\\$1"),`${o}${e}${o}`}function le(e,t,n){return en?n:e}function ue(e){let t=Number(e.getName());if(0===t)return!1;let n=e.getParentNode().children[t-1];return"next"===te(n)}function ce(e){return`[${n(e.label)}]`}function de(e){return`[^${e.label}]`}t.exports={preprocess:k,print:z,embed:x,massageAstNode:O,hasPrettierIgnore:ue,insertPragma:T}}}),Si=_({"src/language-markdown/options.js"(e,t){C();var n=Sr();t.exports={proseWrap:n.proseWrap,singleQuote:n.singleQuote}}}),xi=_({"src/language-markdown/parsers.js"(){C()}}),Ci=_({"node_modules/linguist-languages/data/Markdown.json"(e,t){t.exports={name:"Markdown",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr"],tmScope:"source.gfm",languageId:222}}}),Ti=_({"src/language-markdown/index.js"(e,t){C();var n=tn(),r=wi(),i=Si(),o=xi(),a=[n(Ci(),e=>({since:"1.8.0",parsers:["markdown"],vscodeLanguageIds:["markdown"],filenames:[...e.filenames,"README"],extensions:e.extensions.filter(e=>".mdx"!==e)})),n(Ci(),()=>({name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]}))],s={mdast:r};t.exports={languages:a,options:i,printers:s,parsers:o}}}),Di=_({"src/language-html/clean.js"(e,t){C();var{isFrontMatterNode:n}=ge(),r=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan"]);function i(e,t){if("text"===e.type||"comment"===e.type||n(e)||"yaml"===e.type||"toml"===e.type)return null;"attribute"===e.type&&delete t.value,"docType"===e.type&&delete t.value}i.ignoredProperties=r,t.exports=i}}),Ai=_({"src/language-html/constants.evaluate.js"(e,t){t.exports={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"}}}),ki=_({"src/language-html/utils/is-unknown-namespace.js"(e,t){function n(e){return"element"===e.type&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}C(),t.exports=n}}),Oi=_({"src/language-html/utils/index.js"(e,t){C();var{inferParserByLanguage:n,isFrontMatterNode:r}=ge(),{builders:{line:i,hardline:o,join:a},utils:{getDocParts:s,replaceTextEndOfLine:l}}=Y(),{CSS_DISPLAY_TAGS:u,CSS_DISPLAY_DEFAULT:c,CSS_WHITE_SPACE_TAGS:d,CSS_WHITE_SPACE_DEFAULT:p}=Ai(),h=ki(),f=new Set(["\t","\n","\f","\r"," "]),m=e=>e.replace(/^[\t\n\f\r ]+/,""),g=e=>e.replace(/[\t\n\f\r ]+$/,""),v=e=>m(g(e)),b=e=>e.replace(/^[\t\f\r ]*\n/g,""),y=e=>b(g(e)),_=e=>e.split(/[\t\n\f\r ]+/),E=e=>e.match(/^[\t\n\f\r ]*/)[0],w=e=>{let[,t,n,r]=e.match(/^([\t\n\f\r ]*)(.*?)([\t\n\f\r ]*)$/s);return{leadingWhitespace:t,trailingWhitespace:r,text:n}},S=e=>/[\t\n\f\r ]/.test(e);function x(e,t){return!!("ieConditionalComment"===e.type&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||"ieConditionalComment"===e.type&&!e.complete||re(e)&&e.children.some(e=>"text"!==e.type&&"interpolation"!==e.type)||me(e,t)&&!k(e)&&"interpolation"!==e.type)}function T(e){return!("attribute"===e.type||!e.parent||!e.prev)&&D(e.prev)}function D(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}function A(e){return"text"===e.type||"comment"===e.type}function k(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName||h(e)&&("script"===e.name||"style"===e.name))}function O(e){return e.children&&!k(e)}function N(e){return k(e)||"interpolation"===e.type||I(e)}function I(e){return se(e).startsWith("pre")}function M(e,t){let n=i();return n&&!e.prev&&e.parent&&e.parent.tagDefinition&&e.parent.tagDefinition.ignoreFirstLf?"interpolation"===e.type:n;function i(){return!r(e)&&(!("text"!==e.type&&"interpolation"!==e.type||!e.prev||"text"!==e.prev.type&&"interpolation"!==e.prev.type)||!(!e.parent||"none"===e.parent.cssDisplay)&&(!!re(e.parent)||!(!e.prev&&("root"===e.parent.type||re(e)&&e.parent||k(e.parent)||he(e.parent,t)||!Z(e.parent.cssDisplay))||e.prev&&!te(e.prev.cssDisplay))))}}function R(e,t){return!r(e)&&(!("text"!==e.type&&"interpolation"!==e.type||!e.next||"text"!==e.next.type&&"interpolation"!==e.next.type)||!(!e.parent||"none"===e.parent.cssDisplay)&&(!!re(e.parent)||!(!e.next&&("root"===e.parent.type||re(e)&&e.parent||k(e.parent)||he(e.parent,t)||!J(e.parent.cssDisplay))||e.next&&!ee(e.next.cssDisplay))))}function P(e){return ne(e.cssDisplay)&&!k(e)}function L(e){return r(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+10&&(["body","script","style"].includes(e.name)||e.children.some(e=>V(e)))||e.firstChild&&e.firstChild===e.lastChild&&"text"!==e.firstChild.type&&q(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||H(e.lastChild))}function B(e){return"element"===e.type&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function j(e){return $(e)||e.prev&&U(e.prev)||z(e)}function U(e){return $(e)||"element"===e.type&&"br"===e.fullName||z(e)}function z(e){return q(e)&&H(e)}function q(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.linee.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function $(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function G(e){return e.lastChild?G(e.lastChild):e}function V(e){return e.children&&e.children.some(e=>"text"!==e.type)}function W(e){let{type:t,lang:n}=e.attrMap;return"module"===t||"text/javascript"===t||"text/babel"===t||"application/javascript"===t||"jsx"===n?"babel":"application/x-typescript"===t||"ts"===n||"tsx"===n?"typescript":"text/markdown"===t?"markdown":"text/html"===t?"html":t&&(t.endsWith("json")||t.endsWith("importmap"))||"speculationrules"===t?"json":"text/x-handlebars-template"===t?"glimmer":void 0}function K(e,t){let{lang:r}=e.attrMap;return r&&"postcss"!==r&&"css"!==r?"scss"===r?"scss":"less"===r?"less":"stylus"===r?n("stylus",t):void 0:"css"}function Q(e,t){return"script"!==e.name||e.attrMap.src?"style"===e.name?K(e,t):t&&me(e,t)?W(e)||!("src"in e.attrMap)&&n(e.attrMap.lang,t):void 0:e.attrMap.lang||e.attrMap.type?W(e):"babel"}function X(e){return"block"===e||"list-item"===e||e.startsWith("table")}function Z(e){return!X(e)&&"inline-block"!==e}function J(e){return!X(e)&&"inline-block"!==e}function ee(e){return!X(e)}function te(e){return!X(e)}function ne(e){return!X(e)&&"inline-block"!==e}function re(e){return se(e).startsWith("pre")}function ie(e,t){let n=0;for(let r=e.stack.length-1;r>=0;r--){let i=e.stack[r];i&&"object"==typeof i&&!Array.isArray(i)&&t(i)&&n++}return n}function oe(e,t){let n=e;for(;n;){if(t(n))return!0;n=n.parent}return!1}function ae(e,t){if(e.prev&&"comment"===e.prev.type){let t=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(t)return t[1]}let n=!1;if("element"===e.type&&"svg"===e.namespace){if(!oe(e,e=>"svg:foreignObject"===e.fullName))return"svg"===e.name?"inline-block":"block";n=!0}switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return"vue"===t.parser&&e.parent&&"root"===e.parent.type?"block":"element"===e.type&&(!e.namespace||n||h(e))&&u[e.name]||c}}function se(e){return"element"===e.type&&(!e.namespace||h(e))&&d[e.name]||p}function le(e){let t=Number.POSITIVE_INFINITY;for(let n of e.split("\n")){if(0===n.length)continue;if(!f.has(n[0]))return 0;let e=E(n).length;n.length!==e&&e1&&void 0!==arguments[1]?arguments[1]:le(e);return 0===t?e:e.split("\n").map(e=>e.slice(t)).join("\n")}function ce(e,t){let n=0;for(let r=0;r1&&void 0!==arguments[1]?arguments[1]:e.value;return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?l(t):l(ue(y(t)),o):s(a(i,_(t)))}function _e(e,t){return fe(e,t)&&"script"===e.name}t.exports={htmlTrim:v,htmlTrimPreserveIndentation:y,hasHtmlWhitespace:S,getLeadingAndTrailingHtmlWhitespace:w,canHaveInterpolation:O,countChars:ce,countParents:ie,dedentString:ue,forceBreakChildren:B,forceBreakContent:F,forceNextEmptyLine:L,getLastDescendant:G,getNodeCssStyleDisplay:ae,getNodeCssStyleWhiteSpace:se,hasPrettierIgnore:T,inferScriptParser:Q,isVueCustomBlock:he,isVueNonHtmlBlock:me,isVueScriptTag:_e,isVueSlotAttribute:ve,isVueSfcBindingsAttribute:be,isVueSfcBlock:fe,isDanglingSpaceSensitiveNode:P,isIndentationSensitiveNode:I,isLeadingSpaceSensitiveNode:M,isPreLikeNode:re,isScriptLikeTag:k,isTextLikeNode:A,isTrailingSpaceSensitiveNode:R,isWhitespaceSensitiveNode:N,isUnknownNamespace:h,preferHardlineAsLeadingSpaces:j,preferHardlineAsTrailingSpaces:U,shouldPreserveContent:x,unescapeQuoteEntities:de,getTextValueParts:ye}}}),Ni=_({"node_modules/angular-html-parser/lib/compiler/src/chars.js"(e){function t(t){return t>=e.$TAB&&t<=e.$SPACE||t==e.$NBSP}function n(t){return e.$0<=t&&t<=e.$9}function r(t){return t>=e.$a&&t<=e.$z||t>=e.$A&&t<=e.$Z}function i(t){return t>=e.$a&&t<=e.$f||t>=e.$A&&t<=e.$F||n(t)}function o(t){return t===e.$LF||t===e.$CR}function a(t){return e.$0<=t&&t<=e.$7}C(),Object.defineProperty(e,"__esModule",{value:!0}),e.$EOF=0,e.$BSPACE=8,e.$TAB=9,e.$LF=10,e.$VTAB=11,e.$FF=12,e.$CR=13,e.$SPACE=32,e.$BANG=33,e.$DQ=34,e.$HASH=35,e.$$=36,e.$PERCENT=37,e.$AMPERSAND=38,e.$SQ=39,e.$LPAREN=40,e.$RPAREN=41,e.$STAR=42,e.$PLUS=43,e.$COMMA=44,e.$MINUS=45,e.$PERIOD=46,e.$SLASH=47,e.$COLON=58,e.$SEMICOLON=59,e.$LT=60,e.$EQ=61,e.$GT=62,e.$QUESTION=63,e.$0=48,e.$7=55,e.$9=57,e.$A=65,e.$E=69,e.$F=70,e.$X=88,e.$Z=90,e.$LBRACKET=91,e.$BACKSLASH=92,e.$RBRACKET=93,e.$CARET=94,e.$_=95,e.$a=97,e.$b=98,e.$e=101,e.$f=102,e.$n=110,e.$r=114,e.$t=116,e.$u=117,e.$v=118,e.$x=120,e.$z=122,e.$LBRACE=123,e.$BAR=124,e.$RBRACE=125,e.$NBSP=160,e.$PIPE=124,e.$TILDA=126,e.$AT=64,e.$BT=96,e.isWhitespace=t,e.isDigit=n,e.isAsciiLetter=r,e.isAsciiHexDigit=i,e.isNewLine=o,e.isOctalDigit=a}}),Ii=_({"node_modules/angular-html-parser/lib/compiler/src/aot/static_symbol.js"(e){C(),Object.defineProperty(e,"__esModule",{value:!0});var t=class{constructor(e,t,n){this.filePath=e,this.name=t,this.members=n}assertNoMembers(){if(this.members.length)throw new Error(`Illegal state: symbol without members expected, but got ${JSON.stringify(this)}.`)}};e.StaticSymbol=t;var n=class{constructor(){this.cache=new Map}get(e,n,r){r=r||[];let i=r.length?"."+r.join("."):"",o=`"${e}".${n}${i}`,a=this.cache.get(o);return a||(a=new t(e,n,r),this.cache.set(o,a)),a}};e.StaticSymbolCache=n}}),Mi=_({"node_modules/angular-html-parser/lib/compiler/src/util.js"(e){C(),Object.defineProperty(e,"__esModule",{value:!0});var t=/-+([a-z0-9])/g;function n(e){return e.replace(t,(function(){for(var e=arguments.length,t=new Array(e),n=0;na(e,this,t))}visitStringMap(e,t){let n={};return Object.keys(e).forEach(r=>{n[r]=a(e[r],this,t)}),n}visitPrimitive(e,t){return e}visitOther(e,t){return e}};function c(e){throw new Error("Internal Error: "+e)}function d(e,t){let n=Error(e);return n[p]=!0,t&&(n[h]=t),n}e.ValueTransformer=u,e.SyncAsync={assertSync:e=>{if(w(e))throw new Error("Illegal state: value cannot be a promise");return e},then:(e,t)=>w(e)?e.then(t):t(e),all:e=>e.some(w)?Promise.all(e):e},e.error=c,e.syntaxError=d;var p="ngSyntaxError",h="ngParseErrors";function f(e){return e[p]}function m(e){return e[h]||[]}function g(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}e.isSyntaxError=f,e.getParseErrors=m,e.escapeRegExp=g;var v=Object.getPrototypeOf({});function b(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===v}function y(e){let t="";for(let n=0;n=55296&&r<=56319&&e.length>n+1){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(n++,r=(r-55296<<10)+t-56320+65536)}r<=127?t+=String.fromCharCode(r):r<=2047?t+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?t+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(t+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return t}function _(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(_).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;if(!e.toString)return"object";let t=e.toString();if(null==t)return""+t;let n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function E(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e}function w(e){return!!e&&"function"==typeof e.then}e.utf8Encode=y,e.stringify=_,e.resolveForwardRef=E,e.isPromise=w;var S=class{constructor(e){this.full=e;let t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}};e.Version=S;var x=typeof window<"u"&&window,T=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,D=typeof globalThis<"u"&&globalThis,A=D||x||T;e.global=A}}),Ri=_({"node_modules/angular-html-parser/lib/compiler/src/compile_metadata.js"(e){C(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ii(),n=Mi(),r=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function i(e){return e.replace(/\W/g,"_")}e.sanitizeIdentifier=i;var o,a=0;function s(e){if(!e||!e.reference)return null;let r=e.reference;if(r instanceof t.StaticSymbol)return r.name;if(r.__anonymousType)return r.__anonymousType;let o=n.stringify(r);return o.indexOf("(")>=0?(o="anonymous_"+a++,r.__anonymousType=o):o=i(o),o}function l(e){let r=e.reference;return r instanceof t.StaticSymbol?r.filePath:"./"+n.stringify(r)}function u(e,t){return`View_${s({reference:e})}_${t}`}function c(e){return"RenderType_"+s({reference:e})}function d(e){return"HostView_"+s({reference:e})}function p(e){return s({reference:e})+"NgFactory"}function h(e){return null!=e.value?i(e.value):s(e.identifier)}function f(e){return null!=e.identifier?e.identifier.reference:e.value}e.identifierName=s,e.identifierModuleUrl=l,e.viewClassName=u,e.rendererTypeName=c,e.hostViewClassName=d,e.componentFactoryName=p,function(e){e[e.Pipe=0]="Pipe",e[e.Directive=1]="Directive",e[e.NgModule=2]="NgModule",e[e.Injectable=3]="Injectable"}(o=e.CompileSummaryKind||(e.CompileSummaryKind={})),e.tokenName=h,e.tokenReference=f;var m=class{constructor(){let{moduleUrl:e,styles:t,styleUrls:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.moduleUrl=e||null,this.styles=w(t),this.styleUrls=w(n)}};e.CompileStylesheetMetadata=m;var g=class{constructor(e){let{encapsulation:t,template:n,templateUrl:r,htmlAst:i,styles:o,styleUrls:a,externalStylesheets:s,animations:l,ngContentSelectors:u,interpolation:c,isInline:d,preserveWhitespaces:p}=e;if(this.encapsulation=t,this.template=n,this.templateUrl=r,this.htmlAst=i,this.styles=w(o),this.styleUrls=w(a),this.externalStylesheets=w(s),this.animations=l?x(l):[],this.ngContentSelectors=u||[],c&&2!=c.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=c,this.isInline=d,this.preserveWhitespaces=p}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};e.CompileTemplateMetadata=g;var v=class{static create(e){let{isHost:t,type:i,isComponent:o,selector:a,exportAs:s,changeDetection:l,inputs:u,outputs:c,host:d,providers:p,viewProviders:h,queries:f,guards:m,viewQueries:g,entryComponents:b,template:y,componentViewType:_,rendererType:E,componentFactory:w}=e,S={},x={},C={};null!=d&&Object.keys(d).forEach(e=>{let t=d[e],n=e.match(r);null===n?C[e]=t:null!=n[1]?x[n[1]]=t:null!=n[2]&&(S[n[2]]=t)});let T={};null!=u&&u.forEach(e=>{let t=n.splitAtColon(e,[e,e]);T[t[0]]=t[1]});let D={};return null!=c&&c.forEach(e=>{let t=n.splitAtColon(e,[e,e]);D[t[0]]=t[1]}),new v({isHost:t,type:i,isComponent:!!o,selector:a,exportAs:s,changeDetection:l,inputs:T,outputs:D,hostListeners:S,hostProperties:x,hostAttributes:C,providers:p,viewProviders:h,queries:f,guards:m,viewQueries:g,entryComponents:b,template:y,componentViewType:_,rendererType:E,componentFactory:w})}constructor(e){let{isHost:t,type:n,isComponent:r,selector:i,exportAs:o,changeDetection:a,inputs:s,outputs:l,hostListeners:u,hostProperties:c,hostAttributes:d,providers:p,viewProviders:h,queries:f,guards:m,viewQueries:g,entryComponents:v,template:b,componentViewType:y,rendererType:_,componentFactory:E}=e;this.isHost=!!t,this.type=n,this.isComponent=r,this.selector=i,this.exportAs=o,this.changeDetection=a,this.inputs=s,this.outputs=l,this.hostListeners=u,this.hostProperties=c,this.hostAttributes=d,this.providers=w(p),this.viewProviders=w(h),this.queries=w(f),this.guards=m,this.viewQueries=w(g),this.entryComponents=w(v),this.template=b,this.componentViewType=y,this.rendererType=_,this.componentFactory=E}toSummary(){return{summaryKind:o.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}};e.CompileDirectiveMetadata=v;var b=class{constructor(e){let{type:t,name:n,pure:r}=e;this.type=t,this.name=n,this.pure=!!r}toSummary(){return{summaryKind:o.Pipe,type:this.type,name:this.name,pure:this.pure}}};e.CompilePipeMetadata=b;var y=class{};e.CompileShallowModuleMetadata=y;var _=class{constructor(e){let{type:t,providers:n,declaredDirectives:r,exportedDirectives:i,declaredPipes:o,exportedPipes:a,entryComponents:s,bootstrapComponents:l,importedModules:u,exportedModules:c,schemas:d,transitiveModule:p,id:h}=e;this.type=t||null,this.declaredDirectives=w(r),this.exportedDirectives=w(i),this.declaredPipes=w(o),this.exportedPipes=w(a),this.providers=w(n),this.entryComponents=w(s),this.bootstrapComponents=w(l),this.importedModules=w(u),this.exportedModules=w(c),this.schemas=w(d),this.id=h||null,this.transitiveModule=p||null}toSummary(){let e=this.transitiveModule;return{summaryKind:o.NgModule,type:this.type,entryComponents:e.entryComponents,providers:e.providers,modules:e.modules,exportedDirectives:e.exportedDirectives,exportedPipes:e.exportedPipes}}};e.CompileNgModuleMetadata=_;var E=class{constructor(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}addProvider(e,t){this.providers.push({provider:e,module:t})}addDirective(e){this.directivesSet.has(e.reference)||(this.directivesSet.add(e.reference),this.directives.push(e))}addExportedDirective(e){this.exportedDirectivesSet.has(e.reference)||(this.exportedDirectivesSet.add(e.reference),this.exportedDirectives.push(e))}addPipe(e){this.pipesSet.has(e.reference)||(this.pipesSet.add(e.reference),this.pipes.push(e))}addExportedPipe(e){this.exportedPipesSet.has(e.reference)||(this.exportedPipesSet.add(e.reference),this.exportedPipes.push(e))}addModule(e){this.modulesSet.has(e.reference)||(this.modulesSet.add(e.reference),this.modules.push(e))}addEntryComponent(e){this.entryComponentsSet.has(e.componentType)||(this.entryComponentsSet.add(e.componentType),this.entryComponents.push(e))}};function w(e){return e||[]}e.TransitiveCompileNgModuleMetadata=E;var S=class{constructor(e,t){let{useClass:n,useValue:r,useExisting:i,useFactory:o,deps:a,multi:s}=t;this.token=e,this.useClass=n||null,this.useValue=r,this.useExisting=i,this.useFactory=o||null,this.dependencies=a||null,this.multi=!!s}};function x(e){return e.reduce((e,t)=>{let n=Array.isArray(t)?x(t):t;return e.concat(n)},[])}function T(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function D(e,n,r){let i;return i=r.isInline?n.type.reference instanceof t.StaticSymbol?`${n.type.reference.filePath}.${n.type.reference.name}.html`:`${s(e)}/${s(n.type)}.html`:r.templateUrl,n.type.reference instanceof t.StaticSymbol?i:T(i)}function A(e,t){let n=e.moduleUrl.split(/\/\\/g),r=n[n.length-1];return T(`css/${t}${r}.ngstyle.js`)}function k(e){return T(s(e.type)+"/module.ngfactory.js")}function O(e,t){return T(`${s(e)}/${s(t.type)}.ngfactory.js`)}e.ProviderMeta=S,e.flatten=x,e.templateSourceUrl=D,e.sharedStylesheetJitUrl=A,e.ngModuleJitUrl=k,e.templateJitUrl=O}}),Pi=_({"node_modules/angular-html-parser/lib/compiler/src/parse_util.js"(e){C(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ni(),n=Ri(),r=class{constructor(e,t,n,r){this.file=e,this.offset=t,this.line=n,this.col=r}toString(){return null!=this.offset?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let n=this.file.content,i=n.length,o=this.offset,a=this.line,s=this.col;for(;o>0&&e<0;)if(o--,e++,n.charCodeAt(o)==t.$LF){a--;let e=n.substr(0,o-1).lastIndexOf(String.fromCharCode(t.$LF));s=e>0?o-e:o}else s--;for(;o0;){let r=n.charCodeAt(o);o++,e--,r==t.$LF?(a++,s=0):s++}return new r(this.file,o,a,s)}getContext(e,t){let n=this.file.content,r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);let i=r,o=0,a=0;for(;o0&&(r--,o++,"\n"!=n[r]||++a!=t););for(o=0,a=0;o2&&void 0!==arguments[2]?arguments[2]:null;this.start=e,this.end=t,this.details=n}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}};e.ParseSourceSpan=a,e.EMPTY_PARSE_LOCATION=new r(new i("",""),0,0,0),e.EMPTY_SOURCE_SPAN=new a(e.EMPTY_PARSE_LOCATION,e.EMPTY_PARSE_LOCATION),function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR"}(o=e.ParseErrorLevel||(e.ParseErrorLevel={}));var s=class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.ERROR;this.span=e,this.msg=t,this.level=n}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${o[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?", "+this.span.details:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};function l(e,t){let o=n.identifierModuleUrl(t),s=null!=o?`in ${e} ${n.identifierName(t)} in ${o}`:`in ${e} ${n.identifierName(t)}`,l=new i("",s);return new a(new r(l,-1,-1,-1),new r(l,-1,-1,-1))}function u(e,t,n){let o=`in ${e} ${t} in ${n}`,s=new i("",o);return new a(new r(s,-1,-1,-1),new r(s,-1,-1,-1))}e.ParseError=s,e.typeSourceSpan=l,e.r3JitTypeSourceSpan=u}}),Li=_({"src/language-html/print-preprocess.js"(e,t){C();var{ParseSourceSpan:n}=Pi(),{htmlTrim:r,getLeadingAndTrailingHtmlWhitespace:i,hasHtmlWhitespace:o,canHaveInterpolation:a,getNodeCssStyleDisplay:s,isDanglingSpaceSensitiveNode:l,isIndentationSensitiveNode:u,isLeadingSpaceSensitiveNode:c,isTrailingSpaceSensitiveNode:d,isWhitespaceSensitiveNode:p,isVueScriptTag:h}=Oi(),f=[g,v,y,E,w,T,S,x,D,_,A];function m(e,t){for(let n of f)n(e,t);return e}function g(e){e.walk(e=>{if("element"===e.type&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&"text"===e.children[0].type&&"\n"===e.children[0].value[0]){let t=e.children[0];1===t.value.length?e.removeChild(t):t.value=t.value.slice(1)}})}function v(e){let t=e=>"element"===e.type&&e.prev&&"ieConditionalStartComment"===e.prev.type&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&e.firstChild&&"ieConditionalEndComment"===e.firstChild.type&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset;e.walk(e=>{if(e.children)for(let r=0;r{if(e.children)for(let i=0;i"cdata"===e.type,e=>``)}function _(e){let t=e=>"element"===e.type&&0===e.attrs.length&&1===e.children.length&&"text"===e.firstChild.type&&!o(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&e.prev&&"text"===e.prev.type&&e.next&&"text"===e.next.type;e.walk(e=>{if(e.children)for(let r=0;r`+i.firstChild.value+``+a.value,o.sourceSpan=new n(o.sourceSpan.start,a.sourceSpan.end),o.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,o.hasTrailingSpaces=a.hasTrailingSpaces,e.removeChild(i),r--,e.removeChild(a)}})}function E(e,t){if("html"===t.parser)return;let r=/{{(.+?)}}/s;e.walk(e=>{if(a(e))for(let t of e.children){if("text"!==t.type)continue;let i=t.sourceSpan.start,o=null,a=t.value.split(r);for(let r=0;r0&&e.insertChildBefore(t,{type:"text",value:s,sourceSpan:new n(i,o)}))}e.removeChild(t)}})}function w(e){e.walk(e=>{if(!e.children)return;if(0===e.children.length||1===e.children.length&&"text"===e.children[0].type&&0===r(e.children[0].value).length)return e.hasDanglingSpaces=e.children.length>0,void(e.children=[]);let t=p(e),o=u(e);if(!t)for(let r=0;r{e.isSelfClosing=!e.children||"element"===e.type&&(e.tagDefinition.isVoid||e.startSourceSpan===e.endSourceSpan)})}function x(e,t){e.walk(e=>{"element"===e.type&&(e.hasHtmComponentClosingTag=e.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset)))})}function T(e,t){e.walk(e=>{e.cssDisplay=s(e,t)})}function D(e,t){e.walk(e=>{let{children:n}=e;if(n){if(0===n.length)return void(e.isDanglingSpaceSensitive=l(e));for(let e of n)e.isLeadingSpaceSensitive=c(e,t),e.isTrailingSpaceSensitive=d(e,t);for(let e=0;eh(e,t));if(!n)return;let{lang:r}=n.attrMap;("ts"===r||"typescript"===r)&&(t.__should_parse_vue_template_with_ts=!0)}}t.exports=m}}),Fi=_({"src/language-html/pragma.js"(e,t){function n(e){return/^\s*/.test(e)}function r(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"")}C(),t.exports={hasPragma:n,insertPragma:r}}}),Bi=_({"src/language-html/loc.js"(e,t){function n(e){return e.sourceSpan.start.offset}function r(e){return e.sourceSpan.end.offset}C(),t.exports={locStart:n,locEnd:r}}}),ji=_({"src/language-html/print/tag.js"(e,t){C();var n=Yt(),{isNonEmptyArray:r}=ge(),{builders:{indent:i,join:o,line:a,softline:s,hardline:l},utils:{replaceTextEndOfLine:u}}=Y(),{locStart:c,locEnd:d}=Bi(),{isTextLikeNode:p,getLastDescendant:h,isPreLikeNode:f,hasPrettierIgnore:m,shouldPreserveContent:g,isVueSfcBlock:v}=Oi();function b(e,t){return[e.isSelfClosing?"":y(e,t),_(e,t)]}function y(e,t){return e.lastChild&&k(e.lastChild)?"":[E(e,t),S(e,t)]}function _(e,t){return(e.next?D(e.next):A(e.parent))?"":[x(e,t),w(e,t)]}function E(e,t){return A(e)?x(e.lastChild,t):""}function w(e,t){return k(e)?S(e.parent,t):O(e)?B(e.next):""}function S(e,t){if(n(!e.isSelfClosing),T(e,t))return"";switch(e.type){case"ieConditionalComment":return"\x3c!--\x3e";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function T(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(m(e)||g(e.parent,t))}function D(e){return e.prev&&"docType"!==e.prev.type&&!p(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function A(e){return e.lastChild&&e.lastChild.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!p(h(e.lastChild))&&!f(e)}function k(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&p(h(e))}function O(e){return e.next&&!p(e.next)&&p(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function N(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return!!t&&(!t[1]||t[1].split(/\s+/))}function I(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function M(e,t,n){let p=e.getValue();if(!r(p.attrs))return p.isSelfClosing?" ":"";let h=p.prev&&"comment"===p.prev.type&&N(p.prev.value),f="boolean"==typeof h?()=>h:Array.isArray(h)?e=>h.includes(e.rawName):()=>!1,m=e.map(e=>{let r=e.getValue();return f(r)?u(t.originalText.slice(c(r),d(r))):n()},"attrs"),g="element"===p.type&&"script"===p.fullName&&1===p.attrs.length&&"src"===p.attrs[0].fullName&&0===p.children.length,b=t.singleAttributePerLine&&p.attrs.length>1&&!v(p,t)?l:a,y=[i([g?" ":a,o(b,m)])];return p.firstChild&&I(p.firstChild)||p.isSelfClosing&&A(p.parent)||g?y.push(p.isSelfClosing?" ":""):y.push(t.bracketSameLine?p.isSelfClosing?" ":"":p.isSelfClosing?a:s),y}function R(e){return e.firstChild&&I(e.firstChild)?"":j(e)}function P(e,t,n){let r=e.getValue();return[L(r,t),M(e,t,n),r.isSelfClosing?"":R(r)]}function L(e,t){return e.prev&&O(e.prev)?"":[F(e,t),B(e)]}function F(e,t){return I(e)?j(e.parent):D(e)?x(e.prev,t):""}function B(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return"\x3c!--[if "+e.condition;case"ieConditionalEndComment":return"\x3c!--\x3c!--\x3e<${e.rawName}`;default:return"<"+e.rawName}}function j(e){switch(n(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--"}}t.exports={printClosingTag:b,printClosingTagStart:y,printClosingTagStartMarker:S,printClosingTagEndMarker:x,printClosingTagSuffix:w,printClosingTagEnd:_,needsToBorrowLastChildClosingTagEndMarker:A,needsToBorrowParentClosingTagStartMarker:k,needsToBorrowPrevClosingTagEndMarker:D,printOpeningTag:P,printOpeningTagStart:L,printOpeningTagPrefix:F,printOpeningTagStartMarker:B,printOpeningTagEndMarker:j,needsToBorrowNextOpeningTagStartMarker:O,needsToBorrowParentOpeningTagEndMarker:I}}}),Ui=_({"node_modules/parse-srcset/src/parse-srcset.js"(n,a){C(),function(n,a){i=[],r=a,o="function"===typeof r?r.apply(t,i):r,void 0===o||(e.exports=o)}(0,(function(){return function(e,t){var n=t&&t.logger||console;function r(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function i(t){var n,r=t.exec(e.substring(v));if(r)return n=r[0],v+=n.length,n}for(var o,a,s,l,u,c=e.length,d=/^[ \t\n\r\u000c]+/,p=/^[, \t\n\r\u000c]+/,h=/^[^ \t\n\r\u000c]+/,f=/[,]+$/,m=/^\d+$/,g=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,v=0,b=[];;){if(i(p),v>=c)return b;o=i(h),a=[],","===o.slice(-1)?(o=o.replace(f,""),_()):y()}function y(){for(i(d),s="",l="in descriptor";;){if(u=e.charAt(v),"in descriptor"===l)if(r(u))s&&(a.push(s),s="",l="after descriptor");else{if(","===u)return v+=1,s&&a.push(s),void _();if("("===u)s+=u,l="in parens";else{if(""===u)return s&&a.push(s),void _();s+=u}}else if("in parens"===l)if(")"===u)s+=u,l="in descriptor";else{if(""===u)return a.push(s),void _();s+=u}else if("after descriptor"===l&&!r(u)){if(""===u)return void _();l="in descriptor",v-=1}v+=1}}function _(){var t,r,i,s,l,u,c,d,p,h=!1,f={};for(s=0;s{let{w:t}=e;return t}),s=t.some(e=>{let{h:t}=e;return t}),l=t.some(e=>{let{d:t}=e;return t});if(a+s+l>1)throw new Error("Mixed descriptor in srcset is not supported");let u=a?"w":s?"h":"d",c=a?"w":s?"h":"x",d=e=>Math.max(...e),p=t.map(e=>e.url),h=d(p.map(e=>e.length)),f=t.map(e=>e[u]).map(e=>e?e.toString():""),m=f.map(e=>{let t=e.indexOf(".");return-1===t?e.length:t}),g=d(m);return i([",",o],p.map((e,t)=>{let n=[e],i=f[t];if(i){let o=h-e.length+1,a=g-m[t],s=" ".repeat(o+a);n.push(r(s," "),i+c)}return n}))}function s(e){return e.trim().split(/\s+/).join(" ")}t.exports={printImgSrcset:a,printClassNames:s}}}),qi=_({"src/language-html/syntax-vue.js"(e,t){C();var{builders:{group:n}}=Y();function r(e,t){let{left:r,operator:o,right:a}=i(e);return[n(t(`function _(${r}) {}`,{parser:"babel",__isVueForBindingLeft:!0}))," ",o," ",t(a,{parser:"__js_expression"},{stripTrailingHardline:!0})]}function i(e){let t=/(.*?)\s+(in|of)\s+(.*)/s,n=/,([^,\]}]*)(?:,([^,\]}]*))?$/,r=/^\(|\)$/g,i=e.match(t);if(!i)return;let o={};if(o.for=i[3].trim(),!o.for)return;let a=i[1].trim().replace(r,""),s=a.match(n);s?(o.alias=a.replace(n,""),o.iterator1=s[1].trim(),s[2]&&(o.iterator2=s[2].trim())):o.alias=a;let l=[o.alias,o.iterator1,o.iterator2];return l.some((e,t)=>!e&&(0===t||l.slice(t+1).some(Boolean)))?void 0:{left:l.filter(Boolean).join(","),operator:i[2],right:o.for}}function o(e,t){return t(`function _(${e}) {}`,{parser:"babel",__isVueBindings:!0})}function a(e){let t=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/,n=/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*']|\["[^"]*"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/,r=e.trim();return t.test(r)||n.test(r)}t.exports={isVueEventBindingExpression:a,printVueFor:r,printVueBindings:o}}}),Hi=_({"src/language-html/get-node-content.js"(e,t){C();var{needsToBorrowParentClosingTagStartMarker:n,printClosingTagStartMarker:r,needsToBorrowLastChildClosingTagEndMarker:i,printClosingTagEndMarker:o,needsToBorrowParentOpeningTagEndMarker:a,printOpeningTagEndMarker:s}=ji();function l(e,t){let l=e.startSourceSpan.end.offset;e.firstChild&&a(e.firstChild)&&(l-=s(e).length);let u=e.endSourceSpan.start.offset;return e.lastChild&&n(e.lastChild)?u+=r(e,t).length:i(e)&&(u-=o(e.lastChild,t).length),t.originalText.slice(l,u)}t.exports=l}}),$i=_({"src/language-html/embed.js"(e,t){C();var{builders:{breakParent:n,group:r,hardline:i,indent:o,line:a,fill:s,softline:l},utils:{mapDoc:u,replaceTextEndOfLine:c}}=Y(),d=Rr(),{printClosingTag:p,printClosingTagSuffix:h,needsToBorrowPrevClosingTagEndMarker:f,printOpeningTagPrefix:m,printOpeningTag:g}=ji(),{printImgSrcset:v,printClassNames:b}=zi(),{printVueFor:y,printVueBindings:_,isVueEventBindingExpression:E}=qi(),{isScriptLikeTag:w,isVueNonHtmlBlock:S,inferScriptParser:x,htmlTrimPreserveIndentation:T,dedentString:D,unescapeQuoteEntities:A,isVueSlotAttribute:k,isVueSfcBindingsAttribute:O,getTextValueParts:N}=Oi(),I=Hi();function M(e,t,n){let i=t=>new RegExp(t.join("|")).test(e.fullName),u=()=>A(e.value),d=!1,p=(e,t)=>{let n="NGRoot"===e.type?"NGMicrosyntax"===e.node.type&&1===e.node.body.length&&"NGMicrosyntaxExpression"===e.node.body[0].type?e.node.body[0].expression:e.node:"JsExpressionRoot"===e.type?e.node:e;n&&("ObjectExpression"===n.type||"ArrayExpression"===n.type||"__vue_expression"===t.parser&&("TemplateLiteral"===n.type||"StringLiteral"===n.type))&&(d=!0)},h=e=>r(e),f=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return r([o([l,e]),t?l:""])},m=e=>d?h(e):f(e),g=(e,n)=>t(e,Object.assign({__onHtmlBindingRoot:p,__embeddedInHtml:!0},n));if("srcset"===e.fullName&&("img"===e.parent.fullName||"source"===e.parent.fullName))return f(v(u()));if("class"===e.fullName&&!n.parentParser){let e=u();if(!e.includes("{{"))return b(e)}if("style"===e.fullName&&!n.parentParser){let e=u();if(!e.includes("{{"))return f(g(e,{parser:"css",__isHTMLStyleAttribute:!0}))}if("vue"===n.parser){if("v-for"===e.fullName)return y(u(),g);if(k(e)||O(e,n))return _(u(),g);let t=["^@","^v-on:"],r=["^:","^v-bind:"],o=["^v-"];if(i(t)){let e=u(),t=E(e)?"__js_expression":n.__should_parse_vue_template_with_ts?"__vue_ts_event_binding":"__vue_event_binding";return m(g(e,{parser:t}))}if(i(r))return m(g(u(),{parser:"__vue_expression"}));if(i(o))return m(g(u(),{parser:"__js_expression"}))}if("angular"===n.parser){let t=(e,t)=>g(e,Object.assign(Object.assign({},t),{},{trailingComma:"none"})),n=["^\\*"],l=["^\\(.+\\)$","^on-"],d=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],p=["^i18n(-.+)?$"];if(i(l))return m(t(u(),{parser:"__ng_action"}));if(i(d))return m(t(u(),{parser:"__ng_binding"}));if(i(p)){let t=u().trim();return f(s(N(e,t)),!t.includes("@@"))}if(i(n))return m(t(u(),{parser:"__ng_directive"}));let h=/{{(.+?)}}/s,v=u();if(h.test(v)){let e=[];for(let[n,i]of v.split(h).entries())if(n%2===0)e.push(c(i));else try{e.push(r(["{{",o([a,t(i,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),a,"}}"]))}catch{e.push("{{",c(i),"}}")}return r(e)}}return null}function R(e,t,s,l){let c=e.getValue();switch(c.type){case"element":if(w(c)||"interpolation"===c.type)return;if(!c.isSelfClosing&&S(c,l)){let n=x(c,l);if(!n)return;let o=I(c,l),a=/^\s*$/.test(o),u="";return a||(u=s(T(o),{parser:n,__embeddedInHtml:!0},{stripTrailingHardline:!0}),a=""===u),[m(c,l),r(g(e,l,t)),a?"":i,u,a?"":i,p(c,l),h(c,l)]}break;case"text":if(w(c.parent)){let e=x(c.parent,l);if(e){let t="markdown"===e?D(c.value.replace(/^[^\S\n]*\n/,"")):c.value,r={parser:e,__embeddedInHtml:!0};if("html"===l.parser&&"babel"===e){let e="script",{attrMap:t}=c.parent;t&&("module"===t.type||"text/babel"===t.type&&"module"===t["data-type"])&&(e="module"),r.__babelSourceType=e}return[n,m(c,l),s(t,r,{stripTrailingHardline:!0}),h(c,l)]}}else if("interpolation"===c.parent.type){let e={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return"angular"===l.parser?(e.parser="__ng_interpolation",e.trailingComma="none"):"vue"===l.parser?e.parser=l.__should_parse_vue_template_with_ts?"__vue_ts_expression":"__vue_expression":e.parser="__js_expression",[o([a,s(c.value,e,{stripTrailingHardline:!0})]),c.parent.next&&f(c.parent.next)?" ":a]}break;case"attribute":{if(!c.value)break;if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(l.originalText.slice(c.valueSpan.start.offset,c.valueSpan.end.offset)))return[c.rawName,"=",c.value];if("lwc"===l.parser&&/^{.*}$/s.test(l.originalText.slice(c.valueSpan.start.offset,c.valueSpan.end.offset)))return[c.rawName,"=",c.value];let e=M(c,(e,t)=>s(e,Object.assign({__isInHtmlAttribute:!0,__embeddedInHtml:!0},t),{stripTrailingHardline:!0}),l);if(e)return[c.rawName,'="',r(u(e,e=>"string"==typeof e?e.replace(/"/g,"""):e)),'"'];break}case"front-matter":return d(c,s)}}t.exports=R}}),Gi=_({"src/language-html/print/children.js"(e,t){C();var{builders:{breakParent:n,group:r,ifBreak:i,line:o,softline:a,hardline:s},utils:{replaceTextEndOfLine:l}}=Y(),{locStart:u,locEnd:c}=Bi(),{forceBreakChildren:d,forceNextEmptyLine:p,isTextLikeNode:h,hasPrettierIgnore:f,preferHardlineAsLeadingSpaces:m}=Oi(),{printOpeningTagPrefix:g,needsToBorrowNextOpeningTagStartMarker:v,printOpeningTagStartMarker:b,needsToBorrowPrevClosingTagEndMarker:y,printClosingTagEndMarker:_,printClosingTagSuffix:E,needsToBorrowParentClosingTagStartMarker:w}=ji();function S(e,t,n){let r=e.getValue();return f(r)?[g(r,t),...l(t.originalText.slice(u(r)+(r.prev&&v(r.prev)?b(r).length:0),c(r)-(r.next&&y(r.next)?_(r,t).length:0))),E(r,t)]:n()}function x(e,t){return h(e)&&h(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?m(t)?s:o:"":m(t)?s:a:v(e)&&(f(t)||t.firstChild||t.isSelfClosing||"element"===t.type&&t.attrs.length>0)||"element"===e.type&&e.isSelfClosing&&y(t)?"":!t.isLeadingSpaceSensitive||m(t)||y(t)&&e.lastChild&&w(e.lastChild)&&e.lastChild.lastChild&&w(e.lastChild.lastChild)?s:t.hasLeadingSpaces?o:a}function T(e,t,o){let l=e.getValue();if(d(l))return[n,...e.map(e=>{let n=e.getValue(),r=n.prev?x(n.prev,n):"";return[r?[r,p(n.prev)?s:""]:"",S(e,t,o)]},"children")];let u=l.children.map(()=>Symbol(""));return e.map((e,n)=>{let l=e.getValue();if(h(l)){if(l.prev&&h(l.prev)){let n=x(l.prev,l);if(n)return p(l.prev)?[s,s,S(e,t,o)]:[n,S(e,t,o)]}return S(e,t,o)}let c=[],d=[],f=[],m=[],g=l.prev?x(l.prev,l):"",v=l.next?x(l,l.next):"";return g&&(p(l.prev)?c.push(s,s):g===s?c.push(s):h(l.prev)?d.push(g):d.push(i("",a,{groupId:u[n-1]}))),v&&(p(l)?h(l.next)&&m.push(s,s):v===s?h(l.next)&&m.push(s):f.push(v)),[...c,r([...d,r([S(e,t,o),...f],{id:u[n]})]),...m]},"children")}t.exports={printChildren:T}}}),Vi=_({"src/language-html/print/element.js"(e,t){C();var{builders:{breakParent:n,dedentToRoot:r,group:i,ifBreak:o,indentIfBreak:a,indent:s,line:l,softline:u},utils:{replaceTextEndOfLine:c}}=Y(),d=Hi(),{shouldPreserveContent:p,isScriptLikeTag:h,isVueCustomBlock:f,countParents:m,forceBreakContent:g}=Oi(),{printOpeningTagPrefix:v,printOpeningTag:b,printClosingTagSuffix:y,printClosingTag:_,needsToBorrowPrevClosingTagEndMarker:E,needsToBorrowLastChildClosingTagEndMarker:w}=ji(),{printChildren:S}=Gi();function x(e,t,x){let C=e.getValue();if(p(C,t))return[v(C,t),i(b(e,t,x)),...c(d(C,t)),..._(C,t),y(C,t)];let T=1===C.children.length&&"interpolation"===C.firstChild.type&&C.firstChild.isLeadingSpaceSensitive&&!C.firstChild.hasLeadingSpaces&&C.lastChild.isTrailingSpaceSensitive&&!C.lastChild.hasTrailingSpaces,D=Symbol("element-attr-group-id"),A=n=>i([i(b(e,t,x),{id:D}),n,_(C,t)]),k=e=>T?a(e,{groupId:D}):!h(C)&&!f(C,t)||"root"!==C.parent.type||"vue"!==t.parser||t.vueIndentScriptAndStyle?s(e):e,O=()=>T?o(u,"",{groupId:D}):C.firstChild.hasLeadingSpaces&&C.firstChild.isLeadingSpaceSensitive?l:"text"===C.firstChild.type&&C.isWhitespaceSensitive&&C.isIndentationSensitive?r(u):u,N=()=>(C.next?E(C.next):w(C.parent))?C.lastChild.hasTrailingSpaces&&C.lastChild.isTrailingSpaceSensitive?" ":"":T?o(u,"",{groupId:D}):C.lastChild.hasTrailingSpaces&&C.lastChild.isTrailingSpaceSensitive?l:("comment"===C.lastChild.type||"text"===C.lastChild.type&&C.isWhitespaceSensitive&&C.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${t.tabWidth*m(e,e=>e.parent&&"root"!==e.parent.type)}}$`).test(C.lastChild.value)?"":u;return 0===C.children.length?A(C.hasDanglingSpaces&&C.isDanglingSpaceSensitive?l:""):A([g(C)?n:"",k([O(),S(e,t,x)]),N()])}t.exports={printElement:x}}}),Yi=_({"src/language-html/printer-html.js"(e,t){C();var{builders:{fill:n,group:r,hardline:i,literalline:o},utils:{cleanDoc:a,getDocParts:s,isConcat:l,replaceTextEndOfLine:u}}=Y(),c=Di(),{countChars:d,unescapeQuoteEntities:p,getTextValueParts:h}=Oi(),f=Li(),{insertPragma:m}=Fi(),{locStart:g,locEnd:v}=Bi(),b=$i(),{printClosingTagSuffix:y,printClosingTagEnd:_,printOpeningTagPrefix:E,printOpeningTagStart:w}=ji(),{printElement:S}=Vi(),{printChildren:x}=Gi();function T(e,t,c){let f=e.getValue();switch(f.type){case"front-matter":return u(f.raw);case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(f),[r(x(e,t,c)),i];case"element":case"ieConditionalComment":return S(e,t,c);case"ieConditionalStartComment":case"ieConditionalEndComment":return[w(f),_(f)];case"interpolation":return[w(f,t),...e.map(c,"children"),_(f,t)];case"text":{if("interpolation"===f.parent.type){let e=/\n[^\S\n]*$/,t=e.test(f.value),n=t?f.value.replace(e,""):f.value;return[...u(n),t?i:""]}let e=a([E(f,t),...h(f),y(f,t)]);return l(e)||"fill"===e.type?n(s(e)):e}case"docType":return[r([w(f,t)," ",f.value.replace(/^html\b/i,"html").replace(/\s+/g," ")]),_(f,t)];case"comment":return[E(f,t),...u(t.originalText.slice(g(f),v(f)),o),y(f,t)];case"attribute":{if(null===f.value)return f.rawName;let e=p(f.value),t=d(e,"'"),n=d(e,'"'),r=t({name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]})),n(Qi(),e=>({since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:[...e.extensions,".mjml"]})),n(Qi(),()=>({name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]})),n(Xi(),()=>({since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]}))],s={html:r};t.exports={languages:a,printers:s,options:i,parsers:o}}}),Ji=_({"src/language-yaml/pragma.js"(e,t){function n(e){return/^\s*@(?:prettier|format)\s*$/.test(e)}function r(e){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/.test(e)}function i(e){return"# @format\n\n"+e}C(),t.exports={isPragma:n,hasPragma:r,insertPragma:i}}}),eo=_({"src/language-yaml/loc.js"(e,t){function n(e){return e.position.start.offset}function r(e){return e.position.end.offset}C(),t.exports={locStart:n,locEnd:r}}}),to=_({"src/language-yaml/embed.js"(e,t){function n(e,t,n,r){if("root"===e.getValue().type&&r.filepath&&/(?:[/\\]|^)\.(?:prettier|stylelint|lintstaged)rc$/.test(r.filepath))return n(r.originalText,Object.assign(Object.assign({},r),{},{parser:"json"}))}C(),t.exports=n}}),no=_({"src/language-yaml/utils.js"(e,t){C();var{getLast:n,isNonEmptyArray:r}=ge();function i(e,t){let n=0,r=e.stack.length-1;for(let i=0;ia(n,t,e))}):e,n)}function s(e,t,n){Object.defineProperty(e,t,{get:n,enumerable:!1})}function l(e,t){let n=0,r=t.length;for(let i=e.position.end.offset-1;i0===t&&t===n.length-1?e:0!==t&&t!==n.length-1?e.trim():0===t?e.trimEnd():e.trimStart());return"preserve"===r.proseWrap?i.map(e=>0===e.length?[]:[e]):i.map(e=>0===e.length?[]:_(e)).reduce((t,r,o)=>0!==o&&i[o-1].length>0&&r.length>0&&("quoteDouble"!==e||!n(n(t)).endsWith("\\"))?[...t.slice(0,-1),[...n(t),...r]]:[...t,r],[]).map(e=>"never"===r.proseWrap?[e.join(" ")]:e)}function w(e,t){let r,{parentIndent:i,isLastDescendant:o,options:a}=t,s=e.position.start.line===e.position.end.line?"":a.originalText.slice(e.position.start.offset,e.position.end.offset).match(/^[^\n]*\n(.*)$/s)[1];if(null===e.indent){let e=s.match(/^(? *)[^\n\r ]/m);r=e?e.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else r=e.indent-1+i;let l=s.split("\n").map(e=>e.slice(r));return"preserve"===a.proseWrap||"blockLiteral"===e.type?u(l.map(e=>0===e.length?[]:[e])):u(l.map(e=>0===e.length?[]:_(e)).reduce((e,t,r)=>0!==r&&l[r-1].length>0&&t.length>0&&!/^\s/.test(t[0])&&!/^\s|\s$/.test(n(e))?[...e.slice(0,-1),[...n(e),...t]]:[...e,t],[]).map(e=>e.reduce((e,t)=>e.length>0&&/\s$/.test(n(e))?[...e.slice(0,-1),n(e)+" "+t]:[...e,t],[])).map(e=>"never"===a.proseWrap?[e.join(" ")]:e));function u(t){if("keep"===e.chomping)return 0===n(t).length?t.slice(0,-1):t;let r=0;for(let e=t.length-1;e>=0&&0===t[e].length;e--)r++;return 0===r?t:r>=2&&!o?t.slice(0,-(r-1)):t.slice(0,-r)}}function S(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}t.exports={getLast:n,getAncestorCount:i,isNode:o,isEmptyNode:h,isInlineNode:S,mapNode:a,defineShortcut:s,isNextLineEmpty:l,isLastDescendantNode:u,getBlockValueLineContents:w,getFlowScalarLineContents:E,getLastDescendantNode:c,hasPrettierIgnore:p,hasLeadingComments:m,hasMiddleComments:g,hasIndicatorComment:v,hasTrailingComment:b,hasEndComments:y}}}),ro=_({"src/language-yaml/print-preprocess.js"(e,t){C();var{defineShortcut:n,mapNode:r}=no();function i(e){return r(e,o)}function o(e){switch(e.type){case"document":n(e,"head",()=>e.children[0]),n(e,"body",()=>e.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":n(e,"content",()=>e.children[0]);break;case"mappingItem":case"flowMappingItem":n(e,"key",()=>e.children[0]),n(e,"value",()=>e.children[1]);break}return e}t.exports=i}}),io=_({"src/language-yaml/print/misc.js"(e,t){C();var{builders:{softline:n,align:r}}=Y(),{hasEndComments:i,isNextLineEmpty:o,isNode:a}=no(),s=new WeakMap;function l(e,t){let r,i=e.getValue(),a=e.stack[0];return s.has(a)?r=s.get(a):(r=new Set,s.set(a,r)),r.has(i.position.end.line)||(r.add(i.position.end.line),!o(i,t)||u(e.getParentNode()))?"":n}function u(e){return i(e)&&!a(e,["documentHead","documentBody","flowMapping","flowSequence"])}function c(e,t){return r(" ".repeat(e),t)}t.exports={alignWithSpaces:c,shouldPrintEndComments:u,printNextEmptyLine:l}}}),oo=_({"src/language-yaml/print/flow-mapping-sequence.js"(e,t){C();var{builders:{ifBreak:n,line:r,softline:i,hardline:o,join:a}}=Y(),{isEmptyNode:s,getLast:l,hasEndComments:u}=no(),{printNextEmptyLine:c,alignWithSpaces:d}=io();function p(e,t,c){let p=e.getValue(),f="flowMapping"===p.type,m=f?"{":"[",g=f?"}":"]",v=i;f&&p.children.length>0&&c.bracketSpacing&&(v=r);let b=l(p.children),y=b&&"flowMappingItem"===b.type&&s(b.key)&&s(b.value);return[m,d(c.tabWidth,[v,h(e,t,c),"none"===c.trailingComma?"":n(","),u(p)?[o,a(o,e.map(t,"endComments"))]:""]),y?"":v,g]}function h(e,t,n){let i=e.getValue();return e.map((e,o)=>[t(),o===i.children.length-1?"":[",",r,i.children[o].position.start.line!==i.children[o+1].position.start.line?c(e,n.originalText):""]],"children")}t.exports={printFlowMapping:p,printFlowSequence:p}}}),ao=_({"src/language-yaml/print/mapping-item.js"(e,t){C();var{builders:{conditionalGroup:n,group:r,hardline:i,ifBreak:o,join:a,line:s}}=Y(),{hasLeadingComments:l,hasMiddleComments:u,hasTrailingComment:c,hasEndComments:d,isNode:p,isEmptyNode:h,isInlineNode:f}=no(),{alignWithSpaces:m}=io();function g(e,t,g,_,E){let{key:w,value:S}=e,x=h(w),C=h(S);if(x&&C)return": ";let T=_("key"),D=b(e)?" ":"";if(C)return"flowMappingItem"===e.type&&"flowMapping"===t.type?T:"mappingItem"!==e.type||!v(w.content,E)||c(w.content)||t.tag&&"tag:yaml.org,2002:set"===t.tag.value?["? ",m(2,T)]:[T,D,":"];let A=_("value");if(x)return[": ",m(2,A)];if(l(S)||!f(w.content))return["? ",m(2,T),i,a("",g.map(_,"value","leadingComments").map(e=>[e,i])),": ",m(2,A)];if(y(w.content)&&!l(w.content)&&!u(w.content)&&!c(w.content)&&!d(w)&&!l(S.content)&&!u(S.content)&&!d(S)&&v(S.content,E))return[T,D,": ",A];let k=Symbol("mappingKey"),O=r([o("? "),r(m(2,T),{id:k})]),N=[i,": ",m(2,A)],I=[D,":"];l(S.content)||d(S)&&S.content&&!p(S.content,["mapping","sequence"])||"mapping"===t.type&&c(w.content)&&f(S.content)||p(S.content,["mapping","sequence"])&&null===S.content.tag&&null===S.content.anchor?I.push(i):S.content&&I.push(s),I.push(A);let M=m(E.tabWidth,I);return!v(w.content,E)||l(w.content)||u(w.content)||d(w)?n([[O,o(N,M,{groupId:k})]]):n([[T,M]])}function v(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if("preserve"===t.proseWrap)return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return!e.value.includes("\n");case"always":return!/[\n ]/.test(e.value);default:return!1}}function b(e){return e.key.content&&"alias"===e.key.content.type}function y(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1}}t.exports=g}}),so=_({"src/language-yaml/print/block.js"(e,t){C();var{builders:{dedent:n,dedentToRoot:r,fill:i,hardline:o,join:a,line:s,literalline:l,markAsRoot:u},utils:{getDocParts:c}}=Y(),{getAncestorCount:d,getBlockValueLineContents:p,hasIndicatorComment:h,isLastDescendantNode:f,isNode:m}=no(),{alignWithSpaces:g}=io();function v(e,t,v){let b=e.getValue(),y=d(e,e=>m(e,["sequence","mapping"])),_=f(e),E=["blockFolded"===b.type?">":"|"];null!==b.indent&&E.push(b.indent.toString()),"clip"!==b.chomping&&E.push("keep"===b.chomping?"+":"-"),h(b)&&E.push(" ",t("indicatorComment"));let w=p(b,{parentIndent:y,isLastDescendant:_,options:v}),S=[];for(let[n,d]of w.entries())0===n&&S.push(o),S.push(i(c(a(s,d)))),n!==w.length-1?S.push(0===d.length?o:u(l)):"keep"===b.chomping&&_&&S.push(r(0===d.length?o:l));return null===b.indent?E.push(n(g(v.tabWidth,S))):E.push(r(g(b.indent-1+y,S))),E}t.exports=v}}),lo=_({"src/language-yaml/printer-yaml.js"(e,t){C();var{builders:{breakParent:n,fill:r,group:i,hardline:o,join:a,line:s,lineSuffix:l,literalline:u},utils:{getDocParts:c,replaceTextEndOfLine:d}}=Y(),{isPreviousLineEmpty:p}=ge(),{insertPragma:h,isPragma:f}=Ji(),{locStart:m}=eo(),g=to(),{getFlowScalarLineContents:v,getLastDescendantNode:b,hasLeadingComments:y,hasMiddleComments:_,hasTrailingComment:E,hasEndComments:w,hasPrettierIgnore:S,isLastDescendantNode:x,isNode:T,isInlineNode:D}=no(),A=ro(),{alignWithSpaces:k,printNextEmptyLine:O,shouldPrintEndComments:N}=io(),{printFlowMapping:I,printFlowSequence:M}=oo(),R=ao(),P=so();function L(e,t,r){let s=e.getValue(),c=[];"mappingValue"!==s.type&&y(s)&&c.push([a(o,e.map(r,"leadingComments")),o]);let{tag:h,anchor:f}=s;h&&c.push(r("tag")),h&&f&&c.push(" "),f&&c.push(r("anchor"));let g="";T(s,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!x(e)&&(g=O(e,t.originalText)),(h||f)&&(T(s,["sequence","mapping"])&&!_(s)?c.push(o):c.push(" ")),_(s)&&c.push([1===s.middleComments.length?"":o,a(o,e.map(r,"middleComments")),o]);let v=e.getParentNode();return S(e)?c.push(d(t.originalText.slice(s.position.start.offset,s.position.end.offset).trimEnd(),u)):c.push(i(F(s,v,e,t,r))),E(s)&&!T(s,["document","documentHead"])&&c.push(l(["mappingValue"!==s.type||s.content?" ":"","mappingKey"===v.type&&"mapping"===e.getParentNode(2).type&&D(s)?"":n,r("trailingComment")])),N(s)&&c.push(k("sequenceItem"===s.type?2:0,[o,a(o,e.map(e=>[p(t.originalText,e.getValue(),m)?o:"",r()],"endComments"))])),c.push(g),c}function F(e,t,n,r,i){switch(e.type){case"root":{let{children:t}=e,r=[];n.each((e,n)=>{let a=t[n],s=t[n+1];0!==n&&r.push(o),r.push(i()),j(a,s)?(r.push(o,"..."),E(a)&&r.push(" ",i("trailingComment"))):s&&!E(s.head)&&r.push(o,"---")},"children");let a=b(e);return(!T(a,["blockLiteral","blockFolded"])||"keep"!==a.chomping)&&r.push(o),r}case"document":{let s=t.children[n.getName()+1],l=[];return"head"===U(e,s,t,r)&&((e.head.children.length>0||e.head.endComments.length>0)&&l.push(i("head")),E(e.head)?l.push(["---"," ",i(["head","trailingComment"])]):l.push("---")),B(e)&&l.push(i("body")),a(o,l)}case"documentHead":return a(o,[...n.map(i,"children"),...n.map(i,"endComments")]);case"documentBody":{let{children:t,endComments:r}=e,s="";if(t.length>0&&r.length>0){let t=b(e);T(t,["blockFolded","blockLiteral"])?"keep"!==t.chomping&&(s=[o,o]):s=o}return[a(o,n.map(i,"children")),s,a(o,n.map(i,"endComments"))]}case"directive":return["%",a(" ",[e.name,...e.parameters])];case"comment":return["#",e.value];case"alias":return["*",e.value];case"tag":return r.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return["&",e.value];case"plain":return z(e.type,r.originalText.slice(e.position.start.offset,e.position.end.offset),r);case"quoteDouble":case"quoteSingle":{let t="'",n='"',i=r.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&i.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(i)){let o="quoteDouble"===e.type?n:t;return[o,z(e.type,i,r),o]}if(i.includes(n))return[t,z(e.type,"quoteDouble"===e.type?i.replace(/\\"/g,n).replace(/'/g,t.repeat(2)):i,r),t];if(i.includes(t))return[n,z(e.type,"quoteSingle"===e.type?i.replace(/''/g,t):i,r),n];let o=r.singleQuote?t:n;return[o,z(e.type,i,r),o]}case"blockFolded":case"blockLiteral":return P(n,i,r);case"mapping":case"sequence":return a(o,n.map(i,"children"));case"sequenceItem":return["- ",k(2,e.content?i("content"):"")];case"mappingKey":case"mappingValue":return e.content?i("content"):"";case"mappingItem":case"flowMappingItem":return R(e,t,n,i,r);case"flowMapping":return I(n,i,r);case"flowSequence":return M(n,i,r);case"flowSequenceItem":return i("content");default:throw new Error("Unexpected node type "+e.type)}}function B(e){return e.body.children.length>0||w(e.body)}function j(e,t){return E(e)||t&&(t.head.children.length>0||w(t.head))}function U(e,t,n,r){return n.children[0]===e&&/---(?:\s|$)/.test(r.originalText.slice(m(e),m(e)+4))||e.head.children.length>0||w(e.head)||E(e.head)?"head":!j(e,t)&&(!!t&&"root")}function z(e,t,n){let i=v(e,t,n);return a(o,i.map(e=>r(c(a(s,e)))))}function q(e,t){if(T(t))switch(delete t.position,t.type){case"comment":if(f(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote";break}}t.exports={preprocess:A,embed:g,print:L,massageAstNode:q,insertPragma:h}}}),uo=_({"src/language-yaml/options.js"(e,t){C();var n=Sr();t.exports={bracketSpacing:n.bracketSpacing,singleQuote:n.singleQuote,proseWrap:n.proseWrap}}}),co=_({"src/language-yaml/parsers.js"(){C()}}),po=_({"node_modules/linguist-languages/data/YAML.json"(e,t){t.exports={name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock","yarn.lock"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407}}}),ho=_({"src/language-yaml/index.js"(e,t){C();var n=tn(),r=lo(),i=uo(),o=co(),a=[n(po(),e=>({since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"],filenames:[...e.filenames.filter(e=>"yarn.lock"!==e),".prettierrc",".stylelintrc",".lintstagedrc"]}))];t.exports={languages:a,printers:{yaml:r},options:i,parsers:o}}}),fo=_({"src/languages.js"(e,t){C(),t.exports=[Ir(),Zr(),ai(),hi(),Ti(),Zi(),ho()]}});C();var{version:mo}=T(),go=Jt(),{getSupportInfo:vo}=ue(),bo=en(),yo=fo(),_o=Y();function Eo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return function(){for(var n=arguments.length,r=new Array(n),i=0;i